@stigg/js-client-sdk 1.9.0 → 1.10.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,5 +1,5 @@
1
- import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PackageEntitlementFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType } from './api/generated/types';
2
- export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, } from './api/generated/types';
1
+ import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PackageEntitlementFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, SubscriptionScheduledUpdateDataFragment } from './api/generated/types';
2
+ export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, SubscriptionScheduledUpdateDataFragment, SubscriptionScheduleType, } from './api/generated/types';
3
3
  interface Metadata {
4
4
  [key: string]: string;
5
5
  }
@@ -43,6 +43,17 @@ export declare type BaseEntitlement = {
43
43
  accessDeniedReason?: AccessDeniedReason;
44
44
  feature?: EntitlementFeature;
45
45
  };
46
+ export declare type DowngradeChangeVariables = {
47
+ addonRefIds?: string;
48
+ billingPeriod?: BillingPeriod;
49
+ downgradePlanRefId: string;
50
+ };
51
+ export declare type BillingPeriodChangeVariables = {
52
+ billingPeriod?: BillingPeriod;
53
+ };
54
+ export declare type UnitAmountChangeVariables = {
55
+ newUnitAmount?: number;
56
+ };
46
57
  export interface BooleanEntitlement extends BaseEntitlement {
47
58
  }
48
59
  export interface NumericEntitlement extends BaseEntitlement {
@@ -223,6 +234,7 @@ export declare type Subscription = {
223
234
  cancellationDate?: Date;
224
235
  metadata?: Metadata | null;
225
236
  experimentInfo?: ExperimentInfo | null;
237
+ scheduledUpdates?: SubscriptionScheduledUpdateDataFragment[];
226
238
  };
227
239
  export declare type CustomerPortalBillingInformation = Omit<CustomerPortalBillingInformationFragment, '__typename'>;
228
240
  export declare type CustomerPortalSubscriptionAddon = Omit<CustomerPortalSubscriptionAddonFragment, '__typename'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",