@stigg/js-client-sdk 3.98.4 → 3.98.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -2,6 +2,7 @@ import { CreditsBalanceSummaryFragment, CreditUsageFragment, PaymentSessionFragm
2
2
  import { ClientConfiguration } from './configuration';
3
3
  import { ApplySubscription, ApplySubscriptionResults, BooleanEntitlement, Coupon, CreditEntitlement, Customer, CustomerPortal, Entitlement, EstimateSubscription, EstimateSubscriptionUpdate, FetchUsageHistory, GetActiveSubscriptions, GetBooleanEntitlement, GetCheckoutStateResults, GetCheckoutState, GetCreditEntitlement, GetCustomerPortal, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, GetSubscription, MeteredEntitlement, NumericEntitlement, Paywall, PreviewSubscription, Subscription, SubscriptionPreview, SubscriptionPreviewV2, UsageHistoryPoint, WaitForCheckoutCompleted, PreviewNextInvoice, GetSubscriptionsParams, GetSubscriptionsResult, EnumEntitlement, GetEnumEntitlement, CreatePaymentSessionInput, GetCreditBalanceInput, GetCreditGrantsInput, GetCreditLedgerInput, GetCreditUsageInput, GetCreditGrantsResult, GetCreditLedgerResult, AutomaticRechargeConfiguration, GetAutomaticRechargeConfigurationInput, SaveAutomaticRechargeConfigurationInput, EntitlementsState } from './models';
4
4
  import { EventNames, Events } from './services/eventEmitter';
5
+ import { InitializationStateTracker } from './services/initializationStateTracker';
5
6
  import { LoggerService } from './services/loggerService';
6
7
  export interface StiggClient {
7
8
  isCustomerLoaded: boolean;
@@ -62,13 +63,14 @@ export declare class Stigg implements StiggClient {
62
63
  private resourceEntitlementsService;
63
64
  private readonly modelMapper;
64
65
  private readonly eventEmitter;
65
- private readonly initializationStateTracker;
66
+ protected readonly initializationStateTracker: InitializationStateTracker;
66
67
  private showWatermark;
67
68
  /** @deprecated Use {@link getShowWatermark} instead */
68
69
  isWidgetWatermarkEnabled: boolean;
69
70
  protected constructor(configuration: Required<ClientConfiguration>, loggerService: LoggerService);
70
71
  /**
71
72
  * Creates an instance of Stigg client.
73
+ * Overridden at module load time by initializeStigg to add offline mode support.
72
74
  *
73
75
  * @param configuration configuration settings.
74
76
  * @returns The new client instance.