Options
All
  • Public
  • Public/Protected
  • All
Menu

@stigg/js-client-sdk - v1.36.0

Index

Enumerations

Classes

Interfaces

Type aliases

Type aliases

Addon: { billingId?: string | null; description: string; displayName: string; entitlements: PackageEntitlement[]; id: string; metadata?: Metadata | null; pricePoints: Price[]; pricingType?: PricingType | null }

Type declaration

  • Optional billingId?: string | null
  • description: string
  • displayName: string
  • entitlements: PackageEntitlement[]
  • id: string
  • Optional metadata?: Metadata | null
  • pricePoints: Price[]
  • Optional pricingType?: PricingType | null
BaseEntitlement: { accessDeniedReason?: AccessDeniedReason; feature?: EntitlementFeature; hasAccess: boolean; isFallback: boolean }

Type declaration

BasePlan: { displayName: string; id: string }

Type declaration

  • displayName: string
  • id: string
BillingPeriodChangeVariables: { billingPeriod?: BillingPeriod }

Type declaration

BooleanEntitlementFallback: { hasAccess: boolean }

Type declaration

  • hasAccess: boolean
BooleanEntitlementOptions: { fallback?: BooleanEntitlementFallback; shouldTrack?: boolean }

Type declaration

ClientConfiguration: { apiKey: string; baseEdgeUri?: string; baseUri?: string; customerId?: string | null; customerToken?: string | null; enableEdge?: boolean; entitlementPollingInterval?: number; entitlementsFallback?: EntitlementsFallback; lazyLoad?: boolean; logConfiguration?: LogConfiguration; resourceId?: string | null; useEntitlementPolling?: boolean }

Type declaration

  • apiKey: string
  • Optional baseEdgeUri?: string
  • Optional baseUri?: string
  • Optional customerId?: string | null
  • Optional customerToken?: string | null
  • Optional enableEdge?: boolean
  • Optional entitlementPollingInterval?: number
  • Optional entitlementsFallback?: EntitlementsFallback
  • Optional lazyLoad?: boolean
  • Optional logConfiguration?: LogConfiguration
  • Optional resourceId?: string | null
  • Optional useEntitlementPolling?: boolean
Coupon: { description?: string | null; discountValue: number; id: string; metadata?: Metadata | null; name: string }

Type declaration

  • Optional description?: string | null
  • discountValue: number
  • id: string
  • Optional metadata?: Metadata | null
  • name: string
Customer: { createdAt: Date; eligibleForTrial?: EligibleForTrial[] | null; email?: string; experimentInfo?: ExperimentInfo | null; hasPaymentMethod: boolean; id: string; metadata?: Metadata | null; name?: string; paymentMethodDetails?: PaymentMethodDetails; promotionalEntitlements: PromotionalEntitlement[]; subscriptions: Subscription[]; trialedPlans?: TrialedPlan[] | null; updatedAt: Date; getActivePromotionalEntitlements: any; getActiveSubscriptions: any; getActiveTrials: any }

Type declaration

CustomerPortal: { billingInformation: CustomerPortalBillingInformation; billingPortalUrl?: string | null; canUpgradeSubscription: boolean; configuration?: CustomerPortalConfiguration | null; entitlements: CustomerPortalEntitlement[]; promotionalEntitlements: CustomerPortalPromotionalEntitlement[]; resource: CustomerResource | null; showWatermark: boolean; subscriptions: CustomerPortalSubscription[] }

Type declaration

CustomerPortalBillingInformation: Omit<CustomerPortalBillingInformationFragment, "__typename">
CustomerPortalConfiguration: Omit<CustomerPortalConfigurationFragment, "__typename">
CustomerPortalEntitlement: Omit<CustomerPortalEntitlementFragment, "__typename">
CustomerPortalPromotionalEntitlement: Omit<CustomerPortalPromotionalEntitlementFragment, "__typename">
CustomerPortalSubscription: Omit<CustomerPortalSubscriptionFragment, "__typename">
CustomerPortalSubscriptionAddon: Omit<CustomerPortalSubscriptionAddonFragment, "__typename">
CustomerPortalSubscriptionScheduledUpdateDataFragment: { __typename?: "SubscriptionScheduledUpdate"; scheduleStatus: SubscriptionScheduleStatus; scheduleVariables?: { __typename?: "BillingPeriodChangeVariables"; billingPeriod?: BillingPeriod | null } | { __typename?: "DowngradeChangeVariables"; addonRefIds?: string | null; billingPeriod?: BillingPeriod | null; downgradePlanRefId: string } | { __typename?: "UnitAmountChangeVariables"; newUnitAmount?: number | null } | null; scheduledExecutionTime: any; subscriptionScheduleType: SubscriptionScheduleType; targetPackage?: { __typename?: "PackageDTO"; displayName: string; id: string; refId: string } | null }

Type declaration

  • Optional __typename?: "SubscriptionScheduledUpdate"
  • scheduleStatus: SubscriptionScheduleStatus
  • Optional scheduleVariables?: { __typename?: "BillingPeriodChangeVariables"; billingPeriod?: BillingPeriod | null } | { __typename?: "DowngradeChangeVariables"; addonRefIds?: string | null; billingPeriod?: BillingPeriod | null; downgradePlanRefId: string } | { __typename?: "UnitAmountChangeVariables"; newUnitAmount?: number | null } | null
  • scheduledExecutionTime: any
  • subscriptionScheduleType: SubscriptionScheduleType
  • Optional targetPackage?: { __typename?: "PackageDTO"; displayName: string; id: string; refId: string } | null
CustomerResource: { id: string }

Type declaration

  • id: string
CustomerState: Omit<Customer, "getActiveSubscriptions" | "getActivePromotionalEntitlements" | "getActiveTrials">
DateRange: { end?: Date; start?: Date }

Type declaration

  • Optional end?: Date
  • Optional start?: Date
DefaultTrialConfig: { duration: number; units: TrialPeriodUnits }

Type declaration

DowngradeChangeVariables: { addonRefIds?: string; billingPeriod?: BillingPeriod; downgradePlanRefId: string }

Type declaration

  • Optional addonRefIds?: string
  • Optional billingPeriod?: BillingPeriod
  • downgradePlanRefId: string
EligibleForTrial: { eligible: boolean; productId?: string | null }

Type declaration

  • eligible: boolean
  • Optional productId?: string | null
EntitlementFeature: { description?: string; displayName: string; featureType: FeatureType; id: string; isMetered?: boolean; metadata?: Record<string, string>; meterType?: Fluctuating | Incremental | None; units?: string; unitsPlural?: string }

Type declaration

  • Optional description?: string
  • displayName: string
  • featureType: FeatureType
  • id: string
  • Optional isMetered?: boolean
  • Optional metadata?: Record<string, string>
  • Optional meterType?: Fluctuating | Incremental | None
  • Optional units?: string
  • Optional unitsPlural?: string
EntitlementsFallback: {}
EstimateSubscription: { addons?: SubscriptionEstimationAddon[]; billingCountryCode?: string; billingInformation?: SubscriptionBillingInfo; billingPeriod?: BillingPeriod; customerId: string; planId: string; promotionCode?: string; resourceId?: string; skipTrial?: boolean; startDate?: Date; unitQuantity?: number }

Type declaration

  • Optional addons?: SubscriptionEstimationAddon[]
  • Optional billingCountryCode?: string
  • Optional billingInformation?: SubscriptionBillingInfo
  • Optional billingPeriod?: BillingPeriod
  • customerId: string
  • planId: string
  • Optional promotionCode?: string
  • Optional resourceId?: string
  • Optional skipTrial?: boolean
  • Optional startDate?: Date
  • Optional unitQuantity?: number
EstimateSubscriptionUpdate: { addons?: SubscriptionEstimationAddon[]; promotionCode?: string; subscriptionId: string; unitQuantity?: number }

Type declaration

ExperimentInfo: { groupName: string; groupType?: ExperimentGroupType | null; id: string; name: string }

Type declaration

GetActiveSubscriptions: { resourceId?: string }

Type declaration

  • Optional resourceId?: string
GetBooleanEntitlement: { featureId: string; options?: BooleanEntitlementOptions; resourceId?: string }

Type declaration

GetCustomerPortal: { resourceId?: string }

Type declaration

  • Optional resourceId?: string
GetMeteredEntitlement: { featureId: string; options?: MeteredEntitlementOptions; resourceId?: string }

Type declaration

GetNumericEntitlement: { featureId: string; options?: NumericEntitlementOptions; resourceId?: string }

Type declaration

GetPaywall: { billingCountryCode?: string; context?: WidgetType; productId?: string; resourceId?: string }

Type declaration

  • Optional billingCountryCode?: string
  • Optional context?: WidgetType
  • Optional productId?: string
  • Optional resourceId?: string
MeteredEntitlementFallback: { hasAccess: boolean; isUnlimited?: boolean; usageLimit?: number }

Type declaration

  • hasAccess: boolean
  • Optional isUnlimited?: boolean
  • Optional usageLimit?: number
MeteredEntitlementOptions: { fallback?: MeteredEntitlementFallback; requestedUsage?: number; shouldTrack?: boolean }

Type declaration

Money: { amount: number; currency: string }

Type declaration

  • amount: number
  • currency: string
NumericEntitlementFallback: { hasAccess: boolean; isUnlimited?: boolean; value?: number }

Type declaration

  • hasAccess: boolean
  • Optional isUnlimited?: boolean
  • Optional value?: number
NumericEntitlementOptions: { fallback?: NumericEntitlementFallback; shouldTrack?: boolean }

Type declaration

PackageEntitlement: { displayNameOverride?: PackageEntitlementFragment["displayNameOverride"]; feature?: EntitlementFeature; hasUnlimitedUsage?: boolean | null; hiddenFromWidgets?: PackageEntitlementFragment["hiddenFromWidgets"]; isCustom?: boolean; resetPeriod?: EntitlementResetPeriod | null; usageLimit: number }

Type declaration

  • Optional displayNameOverride?: PackageEntitlementFragment["displayNameOverride"]
  • Optional feature?: EntitlementFeature
  • Optional hasUnlimitedUsage?: boolean | null
  • Optional hiddenFromWidgets?: PackageEntitlementFragment["hiddenFromWidgets"]
  • Optional isCustom?: boolean
  • Optional resetPeriod?: EntitlementResetPeriod | null
  • usageLimit: number
PaymentMethodDetails: { expirationMonth?: number | null; expirationYear?: number | null; last4Digits?: string | null }

Type declaration

  • Optional expirationMonth?: number | null
  • Optional expirationYear?: number | null
  • Optional last4Digits?: string | null
Paywall: { activeSubscriptions: Subscription[] | null; configuration?: PaywallConfiguration | null; currency: PaywallCurrency; customer: Customer | null; plans: Plan[]; resource: CustomerResource | null }

Type declaration

PaywallConfiguration: Omit<PaywallConfigurationFragment, "__typename">
PaywallCurrency: Omit<PaywallCurrencyFragment, "__typename">
Plan: { basePlan?: BasePlan; billingId?: string | null; compatibleAddons: Addon[]; defaultTrialConfig?: DefaultTrialConfig | null; description?: string | null; displayName: string; entitlements: PackageEntitlement[]; id: string; inheritedEntitlements: PackageEntitlement[]; metadata?: Metadata | null; order: number; pricePoints: Price[]; pricingType?: PricingType | null; product: Product }

Type declaration

Price: { amount: number; billingCountryCode?: string | null; billingId?: string | null; billingPeriod: BillingPeriod; currency: Currency; feature?: { displayName: string; unitQuantity?: number | null; units?: string | null; unitsPlural?: string | null } | null; maxUnitQuantity?: number | null; minUnitQuantity?: number | null; pricingModel: BillingModel }

Type declaration

  • amount: number
  • Optional billingCountryCode?: string | null
  • Optional billingId?: string | null
  • billingPeriod: BillingPeriod
  • currency: Currency
  • Optional feature?: { displayName: string; unitQuantity?: number | null; units?: string | null; unitsPlural?: string | null } | null
  • Optional maxUnitQuantity?: number | null
  • Optional minUnitQuantity?: number | null
  • pricingModel: BillingModel
Product: { description?: string | null; displayName?: string | null; id: string; metadata?: Metadata | null }

Type declaration

  • Optional description?: string | null
  • Optional displayName?: string | null
  • id: string
  • Optional metadata?: Metadata | null
PromotionalEntitlement: { expiresAt?: Date; feature: EntitlementFeature; hasExpirationDate: boolean; hasUnlimitedUsage?: boolean | null; isVisible: boolean; status: PromotionalEntitlementStatus; usageLimit: number }

Type declaration

ResetSettings: { nextResetDate: Date; resetPeriod: EntitlementResetPeriod }

Type declaration

Subscription: { addons: SubscriptionAddon[]; billingId?: string; cancellationDate?: Date; crmId?: string; currentBillingPeriodEnd?: Date; effectiveEndDate?: Date; endDate?: Date; experimentInfo?: ExperimentInfo | null; id: string; metadata?: Metadata | null; plan: Plan; price: SubscriptionPrice | null; pricingType: PricingType; resourceId?: string; scheduledUpdates?: CustomerPortalSubscriptionScheduledUpdateDataFragment[]; startDate: Date; status: SubscriptionStatus; trialEndDate?: Date }

Type declaration

  • addons: SubscriptionAddon[]
  • Optional billingId?: string
  • Optional cancellationDate?: Date
  • Optional crmId?: string
  • Optional currentBillingPeriodEnd?: Date
  • Optional effectiveEndDate?: Date

    The calculated end date after which the subscription will be canceled, which takes trial expiration and scheduled cancellations into consideration

  • Optional endDate?: Date
  • Optional experimentInfo?: ExperimentInfo | null
  • id: string
  • Optional metadata?: Metadata | null
  • plan: Plan
  • price: SubscriptionPrice | null
  • pricingType: PricingType
  • Optional resourceId?: string
  • Optional scheduledUpdates?: CustomerPortalSubscriptionScheduledUpdateDataFragment[]
  • startDate: Date
  • status: SubscriptionStatus
  • Optional trialEndDate?: Date
SubscriptionAddon: { addon: Addon; quantity: number }

Type declaration

  • addon: Addon
  • quantity: number
SubscriptionEstimationAddon: { addonId: string; quantity?: number }

Type declaration

  • addonId: string
  • Optional quantity?: number
SubscriptionPreviewDiscount: { durationInMonths?: number; durationType: DiscountDurationType; type: DiscountType; value: number }

Type declaration

SubscriptionPreviewProration: { credit: Money; debit: Money; netAmount: Money; prorationDate: Date }

Type declaration

SubscriptionPreviewTaxDetails: { displayName: string; inclusive: boolean; percentage: number }

Type declaration

  • displayName: string
  • inclusive: boolean
  • percentage: number
SubscriptionPrice: Price & { grossAmount: number }
SubscriptionPricePreview: { subTotal: Money; tax: Money; total: Money; totalExcludingTax: Money }

Type declaration

TrialedPlan: { planId?: string | null; productId?: string | null }

Type declaration

  • Optional planId?: string | null
  • Optional productId?: string | null
UnitAmountChangeVariables: { newUnitAmount?: number }

Type declaration

  • Optional newUnitAmount?: number
WaitForCheckoutCompleted: { refreshOnComplete?: boolean; timeoutMs?: number }

Type declaration

  • Optional refreshOnComplete?: boolean
  • Optional timeoutMs?: number

Generated using TypeDoc