@stigg/js-client-sdk 0.32.0 → 0.34.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, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits } from './api/generated/types';
2
- export { SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, } from './api/generated/types';
1
+ import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits } from './api/generated/types';
2
+ export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, } from './api/generated/types';
3
3
  export declare enum AccessDeniedReason {
4
4
  InvalidFeatureType = "InvalidFeatureType",
5
5
  CustomerNotFound = "CustomerNotFound",
@@ -103,6 +103,7 @@ export declare type Plan = {
103
103
  entitlements: PackageEntitlement[];
104
104
  inheritedEntitlements: PackageEntitlement[];
105
105
  pricePoints: Price[];
106
+ pricingType?: PricingType | null;
106
107
  defaultTrialConfig?: DefaultTrialConfig | null;
107
108
  compatibleAddons: Addon[];
108
109
  product: Product;
@@ -163,6 +164,7 @@ export declare type Addon = {
163
164
  description: string;
164
165
  entitlements: PackageEntitlement[];
165
166
  pricePoints: Price[];
167
+ pricingType?: PricingType | null;
166
168
  };
167
169
  export declare type SubscriptionAddon = {
168
170
  quantity: number;
@@ -173,6 +175,7 @@ export declare type Subscription = {
173
175
  status: SubscriptionStatus;
174
176
  plan: Plan;
175
177
  price: Price | null;
178
+ pricingType: PricingType;
176
179
  addons: SubscriptionAddon[];
177
180
  billingId?: string;
178
181
  crmId?: string;
@@ -16,6 +16,7 @@ export declare class ModelMapper {
16
16
  mapCustomer(customer: CustomerFragment): Customer;
17
17
  private mapPrice;
18
18
  private mapPlan;
19
+ private mapCompatibleAddons;
19
20
  private mapPackageEntitlement;
20
21
  private mapPromotionalEntitlement;
21
22
  private mapSubscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",