@stigg/js-client-sdk 3.100.1 → 3.102.0

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/models.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BillingCadence, BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, SubscriptionQueryFragment, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, PackageEntitlementFragment, PageInfoFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, EntitlementsStateAccessDeniedReason, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js';
1
+ import { BillingCadence, BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, SubscriptionQueryFragment, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, PackageEntitlementFragment, PageInfoFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, SubscriptionBillingCycleAnchor, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, EntitlementsStateAccessDeniedReason, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js';
2
2
  export * from '@stigg/api-client-js';
3
3
  interface Metadata {
4
4
  [key: string]: string;
@@ -283,6 +283,7 @@ export type ApplySubscription = {
283
283
  billingInformation?: Omit<SubscriptionBillingInfo, 'taxPercentage'>;
284
284
  billingCountryCode?: string;
285
285
  scheduleStrategy?: ScheduleStrategy;
286
+ billingCycleAnchor?: SubscriptionBillingCycleAnchor;
286
287
  };
287
288
  export type TaxId = {
288
289
  type: string;
@@ -646,6 +647,7 @@ export type PreviewSubscription = {
646
647
  billingInformation?: SubscriptionBillingInfo;
647
648
  promotionCode?: string;
648
649
  scheduleStrategy?: ScheduleStrategy;
650
+ billingCycleAnchor?: SubscriptionBillingCycleAnchor;
649
651
  };
650
652
  export type FetchUsageHistory = {
651
653
  customerId: string;
@@ -664,6 +666,7 @@ export type BillableFeature = {
664
666
  quantity: number;
665
667
  };
666
668
  export type GetCreditUsageInput = Omit<CreditUsageInput, 'customerId' | 'resourceId'>;
669
+ /** @deprecated Use {@link getCreditEntitlement} instead. */
667
670
  export type GetCreditBalanceInput = Omit<CreditBalanceSummaryInput, 'customerId' | 'resourceId'>;
668
671
  export type GetCreditGrantsInput = Omit<GetCreditGrantsInputGenerated, 'customerId' | 'resourceId'>;
669
672
  export type GetCreditLedgerInput = Omit<CreditLedgerInput, 'customerId' | 'resourceId'>;
@@ -38,6 +38,7 @@ export declare class OfflineStigg extends Stigg {
38
38
  getActiveSubscriptions(): Promise<Subscription[]>;
39
39
  getSubscriptions(): Promise<GetSubscriptionsResult>;
40
40
  getCustomer(): Promise<Customer>;
41
+ /** @deprecated Use {@link getCreditEntitlement} instead. */
41
42
  getCreditBalance(): Promise<CreditsBalanceSummaryFragment>;
42
43
  getCreditGrants(): Promise<GetCreditGrantsResult>;
43
44
  getCreditLedger(): Promise<GetCreditLedgerResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "3.100.1",
3
+ "version": "3.102.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@apollo/client": "^3.4.17",
38
38
  "@sentry/browser": "^7.11.1",
39
- "@stigg/api-client-js": "6.5.1",
39
+ "@stigg/api-client-js": "6.7.0",
40
40
  "cross-fetch": "^3.1.6",
41
41
  "dayjs": "^1.11.13",
42
42
  "fetch-retry": "^5.0.6",