UNPKG

autumn-js

Version:

Autumn JS Library

84 lines (81 loc) 2.71 kB
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-_GDUnrai.mjs'; import 'zod'; declare const attachAction: (args: Omit<{ options?: { quantity: number; featureId: string; }[] | undefined; metadata?: Record<string, string> | undefined; reward?: string | undefined; productId?: string | undefined; entityId?: string | undefined; productIds?: string[] | undefined; freeTrial?: boolean | undefined; successUrl?: string | undefined; forceCheckout?: boolean | undefined; dialog?: any; entityData?: any; openInNewTab?: boolean | 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<{ productId?: string | undefined; entityId?: string | undefined; featureId?: string | undefined; dialog?: any; entityData?: any; requiredBalance?: number | undefined; sendEvent?: boolean | undefined; withPreview?: boolean | undefined; } & { customerId: string; customerData?: CustomerData; }, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; declare const trackAction: (args: Omit<{ value?: number | undefined; entityId?: string | undefined; featureId?: string | undefined; entityData?: any; eventName?: string | undefined; idempotencyKey?: string | undefined; } & { 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 };