@stigg/js-client-sdk 2.20.0 → 2.22.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +9 -2
- package/dist/src/models.d.ts +9 -2
- 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, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment } 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, SubscriptionInvoiceFragment, PaymentCollection, BillingVendorIdentifier, PriceTierFragment, TiersMode, } 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, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress } 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, SubscriptionInvoiceFragment, PaymentCollection, BillingVendorIdentifier, PriceTierFragment, TiersMode, BillingAddress, } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
interface Metadata {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
@@ -178,6 +178,7 @@ export declare type ApplySubscription = {
|
|
|
178
178
|
export declare type SubscriptionBillingInfo = {
|
|
179
179
|
taxRateIds?: string[];
|
|
180
180
|
taxPercentage?: number;
|
|
181
|
+
billingAddress?: BillingAddress;
|
|
181
182
|
};
|
|
182
183
|
export declare type ApplySubscriptionResults = {
|
|
183
184
|
subscription?: Subscription;
|
|
@@ -386,6 +387,11 @@ export declare type SubscriptionPreviewTaxDetails = {
|
|
|
386
387
|
percentage: number;
|
|
387
388
|
inclusive: boolean;
|
|
388
389
|
};
|
|
390
|
+
export declare type SubscriptionPreviewCredits = {
|
|
391
|
+
initial: Money;
|
|
392
|
+
used: Money;
|
|
393
|
+
remaining: Money;
|
|
394
|
+
};
|
|
389
395
|
export interface SubscriptionPreview {
|
|
390
396
|
subTotal: Money;
|
|
391
397
|
totalExcludingTax: Money;
|
|
@@ -398,6 +404,7 @@ export interface SubscriptionPreview {
|
|
|
398
404
|
subscription?: SubscriptionPricePreview;
|
|
399
405
|
isPlanDowngrade?: boolean;
|
|
400
406
|
hasScheduledUpdates?: boolean;
|
|
407
|
+
credits?: SubscriptionPreviewCredits;
|
|
401
408
|
}
|
|
402
409
|
export declare type EstimateSubscription = {
|
|
403
410
|
customerId: 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, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment } 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, SubscriptionInvoiceFragment, PaymentCollection, BillingVendorIdentifier, PriceTierFragment, TiersMode, } 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, DiscountType, DiscountDurationType, PackageEntitlementFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress } 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, SubscriptionInvoiceFragment, PaymentCollection, BillingVendorIdentifier, PriceTierFragment, TiersMode, BillingAddress, } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
interface Metadata {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
@@ -178,6 +178,7 @@ export declare type ApplySubscription = {
|
|
|
178
178
|
export declare type SubscriptionBillingInfo = {
|
|
179
179
|
taxRateIds?: string[];
|
|
180
180
|
taxPercentage?: number;
|
|
181
|
+
billingAddress?: BillingAddress;
|
|
181
182
|
};
|
|
182
183
|
export declare type ApplySubscriptionResults = {
|
|
183
184
|
subscription?: Subscription;
|
|
@@ -386,6 +387,11 @@ export declare type SubscriptionPreviewTaxDetails = {
|
|
|
386
387
|
percentage: number;
|
|
387
388
|
inclusive: boolean;
|
|
388
389
|
};
|
|
390
|
+
export declare type SubscriptionPreviewCredits = {
|
|
391
|
+
initial: Money;
|
|
392
|
+
used: Money;
|
|
393
|
+
remaining: Money;
|
|
394
|
+
};
|
|
389
395
|
export interface SubscriptionPreview {
|
|
390
396
|
subTotal: Money;
|
|
391
397
|
totalExcludingTax: Money;
|
|
@@ -398,6 +404,7 @@ export interface SubscriptionPreview {
|
|
|
398
404
|
subscription?: SubscriptionPricePreview;
|
|
399
405
|
isPlanDowngrade?: boolean;
|
|
400
406
|
hasScheduledUpdates?: boolean;
|
|
407
|
+
credits?: SubscriptionPreviewCredits;
|
|
401
408
|
}
|
|
402
409
|
export declare type EstimateSubscription = {
|
|
403
410
|
customerId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.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": "
|
|
31
|
+
"@stigg/api-client-js": "0.556.0",
|
|
32
32
|
"cross-fetch": "^3.1.6",
|
|
33
33
|
"fetch-retry": "^5.0.6",
|
|
34
34
|
"husky": "^7.0.4",
|