@stigg/js-client-sdk 4.11.0 → 4.13.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/api/CreditsApi.d.ts +3 -1
- package/dist/client.d.ts +5 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/offlineClient.d.ts +8 -0
- package/package.json +4 -4
package/dist/models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BillingCadence, BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, SubscriptionQueryFragment, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, PackageEntitlementFragment, PageInfoFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, SubscriptionBillingCycleAnchor, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js';
|
|
1
|
+
import { BillingCadence, BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, SubscriptionQueryFragment, TrialPeriodUnits, ExperimentGroupType, CustomerPortalEntitlementFragment, CustomerPortalPromotionalEntitlementFragment, CustomerPortalSubscriptionFragment, CustomerPortalSubscriptionAddonFragment, CustomerPortalBillingInformationFragment, PaywallConfigurationFragment, CustomerPortalConfigurationFragment, WidgetType, CustomerPortalSubscriptionScheduledUpdateDataFragment, DiscountType, DiscountDurationType, PackageEntitlementFragment, PageInfoFragment, PaywallCurrencyFragment, FeatureType, MeterType, EntitlementResetPeriod, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, SubscriptionBillingCycleAnchor, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, AirwallexCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js';
|
|
2
2
|
export { BaseEntitlement, BooleanEntitlement, EnumEntitlement, NumericEntitlement, MeteredEntitlement, CreditEntitlement, Entitlement, EntitlementV2, CustomerEntitlementsResult, CustomerEntitlementsResultV2, BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT, NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT, METERED_DEFAULT_FALLBACK_ENTITLEMENT, ENUM_DEFAULT_FALLBACK_ENTITLEMENT, CREDIT_DEFAULT_FALLBACK_ENTITLEMENT, BooleanEntitlementFallback, BooleanEntitlementOptions, NumericEntitlementFallback, NumericEntitlementOptions, MeteredEntitlementFallback, MeteredEntitlementOptions, EnumEntitlementFallback, EnumEntitlementOptions, CreditEntitlementFallback, CreditEntitlementOptions, EntitlementsFallback, } from '@stigg/sdk-core';
|
|
3
3
|
import type { GetBooleanEntitlement as SdkCoreGetBooleanEntitlement, GetNumericEntitlement as SdkCoreGetNumericEntitlement, GetMeteredEntitlement as SdkCoreGetMeteredEntitlement, GetEnumEntitlement as SdkCoreGetEnumEntitlement, GetCreditEntitlement as SdkCoreGetCreditEntitlement } from '@stigg/sdk-core';
|
|
4
4
|
export * from '@stigg/api-client-js';
|
|
@@ -299,7 +299,7 @@ export type CustomerPortal = {
|
|
|
299
299
|
export type CheckoutStatePlan = Plan & Pick<PlanFragment, 'prices'>;
|
|
300
300
|
export type CheckoutBillingIntegration = {
|
|
301
301
|
billingIdentifier: BillingVendorIdentifier;
|
|
302
|
-
billingCredentials: StripeCheckoutCredentialsFragment | ZuoraCheckoutCredentialsFragment;
|
|
302
|
+
billingCredentials: StripeCheckoutCredentialsFragment | ZuoraCheckoutCredentialsFragment | AirwallexCheckoutCredentialsFragment;
|
|
303
303
|
credentials: {
|
|
304
304
|
accountId?: string | null;
|
|
305
305
|
publicKey?: string | null;
|
package/dist/offlineClient.d.ts
CHANGED
|
@@ -29,6 +29,14 @@ export declare class OfflineStigg extends Stigg {
|
|
|
29
29
|
previewNextInvoice(): Promise<SubscriptionInvoicePreviewFragment>;
|
|
30
30
|
previewSubscription(): Promise<SubscriptionPreviewV2>;
|
|
31
31
|
estimateSubscriptionUpdate(): Promise<SubscriptionPreview>;
|
|
32
|
+
estimateEventCost(): Promise<{
|
|
33
|
+
estimates: never[];
|
|
34
|
+
warnings: never[];
|
|
35
|
+
}>;
|
|
36
|
+
estimateUsageCost(): Promise<{
|
|
37
|
+
estimates: never[];
|
|
38
|
+
warnings: never[];
|
|
39
|
+
}>;
|
|
32
40
|
waitForCheckoutCompleted(): Promise<Subscription | null>;
|
|
33
41
|
refresh(): Promise<void>;
|
|
34
42
|
fetchUsageHistory(): Promise<UsageHistoryPoint[] | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Stigg client-side SDK for Browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@apollo/client": "^3.4.17",
|
|
38
38
|
"@sentry/browser": "^7.11.1",
|
|
39
|
-
"@stigg/api-client-js": "6.
|
|
40
|
-
"@stigg/cache-core": "1.
|
|
41
|
-
"@stigg/sdk-core": "2.
|
|
39
|
+
"@stigg/api-client-js": "6.21.0",
|
|
40
|
+
"@stigg/cache-core": "1.23.0",
|
|
41
|
+
"@stigg/sdk-core": "2.13.0",
|
|
42
42
|
"cross-fetch": "^3.1.6",
|
|
43
43
|
"dayjs": "^1.11.13",
|
|
44
44
|
"fetch-retry": "^5.0.6",
|