UNPKG

autumn-js

Version:

Autumn JS Library

116 lines (113 loc) 3.79 kB
import { z } from 'zod'; declare const AttachFeatureOptionsSchema: z.ZodObject<{ featureId: z.ZodString; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity: number; featureId: string; }, { quantity: number; featureId: string; }>; type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>; declare const AttachParamsSchema: z.ZodObject<{ productId: z.ZodOptional<z.ZodString>; entityId: z.ZodOptional<z.ZodString>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ featureId: z.ZodString; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity: number; featureId: string; }, { quantity: number; featureId: string; }>, "many">>; productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; freeTrial: z.ZodOptional<z.ZodBoolean>; successUrl: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; forceCheckout: z.ZodOptional<z.ZodBoolean>; /** * @deprecated This field is deprecated and will be removed in a future version. */ dialog: z.ZodOptional<z.ZodAny>; entityData: z.ZodOptional<z.ZodAny>; openInNewTab: z.ZodOptional<z.ZodBoolean>; reward: z.ZodOptional<z.ZodString>; checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { options?: { quantity: number; featureId: string; }[] | undefined; metadata?: Record<string, string> | undefined; reward?: string | undefined; productId?: string | undefined; entityId?: string | undefined; dialog?: any; entityData?: any; productIds?: string[] | undefined; freeTrial?: boolean | undefined; successUrl?: string | undefined; forceCheckout?: boolean | undefined; openInNewTab?: boolean | undefined; checkoutSessionParams?: Record<string, any> | undefined; }, { options?: { quantity: number; featureId: string; }[] | undefined; metadata?: Record<string, string> | undefined; reward?: string | undefined; productId?: string | undefined; entityId?: string | undefined; dialog?: any; entityData?: any; productIds?: string[] | undefined; freeTrial?: boolean | undefined; successUrl?: string | undefined; forceCheckout?: boolean | undefined; openInNewTab?: boolean | undefined; checkoutSessionParams?: Record<string, any> | undefined; }>; type AttachParams = z.infer<typeof AttachParamsSchema>; declare const CheckoutParamsSchema: z.ZodObject<{ productId: z.ZodString; entityId: z.ZodOptional<z.ZodString>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ featureId: z.ZodString; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { quantity: number; featureId: string; }, { quantity: number; featureId: string; }>, "many">>; successUrl: z.ZodOptional<z.ZodString>; openInNewTab: z.ZodOptional<z.ZodBoolean>; dialog: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { productId: string; options?: { quantity: number; featureId: string; }[] | undefined; entityId?: string | undefined; dialog?: any; successUrl?: string | undefined; openInNewTab?: boolean | undefined; }, { productId: string; options?: { quantity: number; featureId: string; }[] | undefined; entityId?: string | undefined; dialog?: any; successUrl?: string | undefined; openInNewTab?: boolean | undefined; }>; type CheckoutParams = z.infer<typeof CheckoutParamsSchema>; export { type AttachFeatureOptions, AttachFeatureOptionsSchema, type AttachParams, AttachParamsSchema, type CheckoutParams, CheckoutParamsSchema };