@stigg/js-client-sdk 2.15.0 → 2.17.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 { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, SubscriptionBillingInfo, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, SubscriptionBillingInfo, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierInput } from '@stigg/api-client-js/src/generated/sdk';
2
2
  export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, SubscriptionScheduleType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, } from '@stigg/api-client-js/src/generated/sdk';
3
3
  interface Metadata {
4
4
  [key: string]: string;
@@ -66,8 +66,10 @@ export declare type Price = {
66
66
  pricingModel: BillingModel;
67
67
  billingPeriod: BillingPeriod;
68
68
  billingId?: string | null;
69
- amount: number;
69
+ amount?: number | null;
70
70
  currency: Currency;
71
+ tiers?: PriceTierInput[] | null | undefined;
72
+ tiersMode: TiersMode | null | undefined;
71
73
  minUnitQuantity?: number | null | undefined;
72
74
  maxUnitQuantity?: number | null | undefined;
73
75
  billingCountryCode?: string | null | undefined;
@@ -217,7 +219,10 @@ export declare type Subscription = {
217
219
  cancellationDate?: Date;
218
220
  metadata?: Metadata | null;
219
221
  experimentInfo?: ExperimentInfo | null;
222
+ /** @deprecated use {@link futureUpdates} instead with filter for {@link SubscriptionScheduleStatus.Scheduled} */
220
223
  scheduledUpdates?: CustomerPortalSubscriptionScheduledUpdateDataFragment[];
224
+ /** Future updates can be of 2 types {@link SubscriptionScheduleStatus.Scheduled} or {@link SubscriptionScheduleStatus.PendingPayment} */
225
+ futureUpdates: SubscriptionFutureUpdateDataFragment[];
221
226
  latestInvoice?: SubscriptionInvoiceFragment;
222
227
  paymentCollection: PaymentCollection;
223
228
  };
@@ -1,4 +1,4 @@
1
- import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, SubscriptionBillingInfo, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, SubscriptionBillingInfo, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierInput } from '@stigg/api-client-js/src/generated/sdk';
2
2
  export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, SubscriptionScheduleType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, } from '@stigg/api-client-js/src/generated/sdk';
3
3
  interface Metadata {
4
4
  [key: string]: string;
@@ -66,8 +66,10 @@ export declare type Price = {
66
66
  pricingModel: BillingModel;
67
67
  billingPeriod: BillingPeriod;
68
68
  billingId?: string | null;
69
- amount: number;
69
+ amount?: number | null;
70
70
  currency: Currency;
71
+ tiers?: PriceTierInput[] | null | undefined;
72
+ tiersMode: TiersMode | null | undefined;
71
73
  minUnitQuantity?: number | null | undefined;
72
74
  maxUnitQuantity?: number | null | undefined;
73
75
  billingCountryCode?: string | null | undefined;
@@ -217,7 +219,10 @@ export declare type Subscription = {
217
219
  cancellationDate?: Date;
218
220
  metadata?: Metadata | null;
219
221
  experimentInfo?: ExperimentInfo | null;
222
+ /** @deprecated use {@link futureUpdates} instead with filter for {@link SubscriptionScheduleStatus.Scheduled} */
220
223
  scheduledUpdates?: CustomerPortalSubscriptionScheduledUpdateDataFragment[];
224
+ /** Future updates can be of 2 types {@link SubscriptionScheduleStatus.Scheduled} or {@link SubscriptionScheduleStatus.PendingPayment} */
225
+ futureUpdates: SubscriptionFutureUpdateDataFragment[];
221
226
  latestInvoice?: SubscriptionInvoiceFragment;
222
227
  paymentCollection: PaymentCollection;
223
228
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@apollo/client": "^3.4.17",
30
30
  "@sentry/browser": "^7.11.1",
31
- "@stigg/api-client-js": "0.528.0",
31
+ "@stigg/api-client-js": "0.540.2",
32
32
  "cross-fetch": "^3.1.6",
33
33
  "fetch-retry": "^5.0.6",
34
34
  "husky": "^7.0.4",