UNPKG

autumn-js

Version:
85 lines (82 loc) 2.76 kB
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-CrLBF0Kx.js'; import 'zod/v4'; declare const attachAction: (args: Omit<{ productId?: string | undefined; entityId?: string | undefined; options?: { featureId: string; quantity: number; }[] | undefined; productIds?: string[] | undefined; freeTrial?: boolean | undefined; successUrl?: string | undefined; metadata?: Record<string, string> | undefined; forceCheckout?: boolean | undefined; dialog?: any; entityData?: any; openInNewTab?: boolean | undefined; reward?: string | undefined; checkoutSessionParams?: Record<string, any> | undefined; } & { customerId: string; customerData?: CustomerData; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const cancelAction: (args: Omit<{ productId: string; entityId?: string | undefined; cancelImmediately?: boolean | undefined; } & { customerId: string; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const checkAction: (args: Omit<{ featureId?: string | undefined; productId?: string | undefined; entityId?: string | undefined; requiredBalance?: number | undefined; sendEvent?: boolean | undefined; withPreview?: boolean | undefined; dialog?: any; entityData?: any; properties?: Record<string, any> | undefined; } & { customerId: string; customerData?: CustomerData; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const trackAction: (args: Omit<{ featureId?: string | undefined; eventName?: string | undefined; entityId?: string | undefined; value?: number | undefined; idempotencyKey?: string | undefined; entityData?: any; } & { customerId: string; customerData?: CustomerData; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const getBillingPortalAction: (args: Omit<{ customerId: string; params?: BillingPortalParams; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const generateReferralCodeAction: (args: Omit<{ customerId: string; programId: string; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const redeemReferralCodeAction: (args: Omit<{ code: string; customerId: string; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; export { attachAction, cancelAction, checkAction, generateReferralCodeAction, getBillingPortalAction, redeemReferralCodeAction, trackAction };