Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
1 KiB
Text
55 lines
1 KiB
Text
import { Logger } from "../logger";
|
|
/**
|
|
* @public
|
|
*/
|
|
export type ReferenceObject = {
|
|
ref: string;
|
|
};
|
|
/**
|
|
* @public
|
|
*/
|
|
export type FunctionObject = {
|
|
fn: string;
|
|
argv: FunctionArgv;
|
|
};
|
|
/**
|
|
* @public
|
|
*/
|
|
export type FunctionArgv = Array<Expression | boolean | number>;
|
|
/**
|
|
* @public
|
|
*/
|
|
export type FunctionReturn = string | boolean | number | {
|
|
[key: string]: FunctionReturn;
|
|
};
|
|
/**
|
|
* @public
|
|
*/
|
|
export type ConditionObject = FunctionObject & {
|
|
assign?: string;
|
|
};
|
|
/**
|
|
* @public
|
|
*/
|
|
export type Expression = string | ReferenceObject | FunctionObject;
|
|
/**
|
|
* @public
|
|
*/
|
|
export type EndpointParams = Record<string, string | boolean>;
|
|
/**
|
|
* @public
|
|
*/
|
|
export type EndpointResolverOptions = {
|
|
endpointParams: EndpointParams;
|
|
logger?: Logger;
|
|
};
|
|
/**
|
|
* @public
|
|
*/
|
|
export type ReferenceRecord = Record<string, FunctionReturn>;
|
|
/**
|
|
* @public
|
|
*/
|
|
export type EvaluateOptions = EndpointResolverOptions & {
|
|
referenceRecord: ReferenceRecord;
|
|
};
|