@stigg/js-client-sdk 2.16.0 → 2.18.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/index.js +118 -5
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +9 -3
- package/dist/src/models.d.ts +9 -3
- package/dist/src/utils/ModelMapper.d.ts +1 -1
- package/dist/utils/ModelMapper.d.ts +1 -1
- package/package.json +2 -2
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, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, SubscriptionBillingInfo, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, SubscriptionFutureUpdateDataFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
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';
|
|
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, PriceTierFragment, TotalPriceFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
2
|
+
export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, SubscriptionScheduleType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PriceTierFragment, } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
interface Metadata {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
@@ -66,8 +66,11 @@ export declare type Price = {
|
|
|
66
66
|
pricingModel: BillingModel;
|
|
67
67
|
billingPeriod: BillingPeriod;
|
|
68
68
|
billingId?: string | null;
|
|
69
|
-
amount
|
|
69
|
+
amount?: number | null;
|
|
70
70
|
currency: Currency;
|
|
71
|
+
tiers?: PriceTierFragment[] | null | undefined;
|
|
72
|
+
tiersMode: TiersMode | null | undefined;
|
|
73
|
+
isTieredPrice: boolean;
|
|
71
74
|
minUnitQuantity?: number | null | undefined;
|
|
72
75
|
maxUnitQuantity?: number | null | undefined;
|
|
73
76
|
billingCountryCode?: string | null | undefined;
|
|
@@ -201,7 +204,10 @@ export declare type Subscription = {
|
|
|
201
204
|
status: SubscriptionStatus;
|
|
202
205
|
resourceId?: string;
|
|
203
206
|
plan: Plan;
|
|
207
|
+
/** @deprecated use {@link prices} instead with {@link totalPrice} */
|
|
204
208
|
price: SubscriptionPrice | null;
|
|
209
|
+
prices: Price[];
|
|
210
|
+
totalPrice: TotalPriceFragment | null | undefined;
|
|
205
211
|
pricingType: PricingType;
|
|
206
212
|
addons: SubscriptionAddon[];
|
|
207
213
|
billingId?: string;
|
package/dist/src/models.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, SubscriptionFutureUpdateDataFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
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';
|
|
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, PriceTierFragment, TotalPriceFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
2
|
+
export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, WidgetType, FontWeight, Alignment, SubscriptionScheduleType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PriceTierFragment, } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
interface Metadata {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
@@ -66,8 +66,11 @@ export declare type Price = {
|
|
|
66
66
|
pricingModel: BillingModel;
|
|
67
67
|
billingPeriod: BillingPeriod;
|
|
68
68
|
billingId?: string | null;
|
|
69
|
-
amount
|
|
69
|
+
amount?: number | null;
|
|
70
70
|
currency: Currency;
|
|
71
|
+
tiers?: PriceTierFragment[] | null | undefined;
|
|
72
|
+
tiersMode: TiersMode | null | undefined;
|
|
73
|
+
isTieredPrice: boolean;
|
|
71
74
|
minUnitQuantity?: number | null | undefined;
|
|
72
75
|
maxUnitQuantity?: number | null | undefined;
|
|
73
76
|
billingCountryCode?: string | null | undefined;
|
|
@@ -201,7 +204,10 @@ export declare type Subscription = {
|
|
|
201
204
|
status: SubscriptionStatus;
|
|
202
205
|
resourceId?: string;
|
|
203
206
|
plan: Plan;
|
|
207
|
+
/** @deprecated use {@link prices} instead with {@link totalPrice} */
|
|
204
208
|
price: SubscriptionPrice | null;
|
|
209
|
+
prices: Price[];
|
|
210
|
+
totalPrice: TotalPriceFragment | null | undefined;
|
|
205
211
|
pricingType: PricingType;
|
|
206
212
|
addons: SubscriptionAddon[];
|
|
207
213
|
billingId?: string;
|
|
@@ -17,7 +17,7 @@ export declare class ModelMapper {
|
|
|
17
17
|
mapCustomerPortal(customerPortal: CustomerPortalFragment): CustomerPortal;
|
|
18
18
|
mapCustomer(customer: CustomerFragment, subscriptions: SubscriptionFragment[]): Customer;
|
|
19
19
|
private mapPaymentDetails;
|
|
20
|
-
private
|
|
20
|
+
private mapPriceWithTotalPrice;
|
|
21
21
|
private mapPrice;
|
|
22
22
|
private mapPlan;
|
|
23
23
|
private mapCompatibleAddons;
|
|
@@ -17,7 +17,7 @@ export declare class ModelMapper {
|
|
|
17
17
|
mapCustomerPortal(customerPortal: CustomerPortalFragment): CustomerPortal;
|
|
18
18
|
mapCustomer(customer: CustomerFragment, subscriptions: SubscriptionFragment[]): Customer;
|
|
19
19
|
private mapPaymentDetails;
|
|
20
|
-
private
|
|
20
|
+
private mapPriceWithTotalPrice;
|
|
21
21
|
private mapPrice;
|
|
22
22
|
private mapPlan;
|
|
23
23
|
private mapCompatibleAddons;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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.
|
|
31
|
+
"@stigg/api-client-js": "0.544.1",
|
|
32
32
|
"cross-fetch": "^3.1.6",
|
|
33
33
|
"fetch-retry": "^5.0.6",
|
|
34
34
|
"husky": "^7.0.4",
|