@stigg/js-client-sdk 3.95.0 → 3.98.1
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/AutomaticRechargeApi.d.ts +1 -1
- package/dist/api/CheckoutApi.d.ts +1 -1
- package/dist/api/CouponsApi.d.ts +1 -1
- package/dist/api/CreditsApi.d.ts +1 -1
- package/dist/api/CustomersApi.d.ts +1 -1
- package/dist/api/EdgeApiClient.d.ts +1 -1
- package/dist/api/EntitlementsApi.d.ts +1 -1
- package/dist/api/MockPaywallApi.d.ts +1 -1
- package/dist/api/PaywallApi.d.ts +1 -1
- package/dist/api/SdkConfigurationApi.d.ts +1 -1
- package/dist/api/SubscriptionEstimationsApi.d.ts +1 -1
- package/dist/api/SubscriptionsApi.d.ts +1 -1
- package/dist/api/UsageHistoryApi.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/index.esm.js +432 -432
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +432 -432
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/services/cachedEntitlement.d.ts +1 -1
- package/dist/services/entitlementsService.d.ts +1 -1
- package/dist/utils/ModelMapper.d.ts +1 -1
- package/dist/utils/calculateUsagePeriod.d.ts +1 -1
- package/dist/utils/isMetered.d.ts +1 -1
- package/package.json +7 -5
package/dist/models.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { 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, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, EntitlementsStateAccessDeniedReason, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js
|
|
2
|
-
export * from '@stigg/api-client-js
|
|
1
|
+
import { 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, AccessDeniedReason, PaywallCalculatedPricePointsFragment, SubscriptionInvoiceFragment, PaymentCollection, PlanFragment, BillingVendorIdentifier, TiersMode, SubscriptionFutureUpdateDataFragment, PriceTierFragment, TotalPriceFragment, CheckoutConfigurationFragment, TypographyConfigurationFragment, BillingAddress, ScheduleStrategy, PaymentCollectionMethod, BudgetConfigurationInput, SubscriptionProrationBehavior, PaymentSessionInput, CreditBalanceSummaryInput, StripeCheckoutCredentialsFragment, ZuoraCheckoutCredentialsFragment, GetCreditGrantsInput as GetCreditGrantsInputGenerated, CreditLedgerInput, CreditUsageInput, CreditGrantFragment, CreditLedgerFragment, EntitlementsStateAccessDeniedReason, AutoRechargeSettingsFragment, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput, PackageEntitlementUnionFragment, EntitlementUnionFragment } from '@stigg/api-client-js';
|
|
2
|
+
export * from '@stigg/api-client-js';
|
|
3
3
|
interface Metadata {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreditEntitlementCurrency, EntitlementFeature, EntitlementResetPeriod } from '../models';
|
|
2
|
-
import { AccessDeniedReason, EntitlementsStateAccessDeniedReason, ResetPeriodConfigurationFragment } from '@stigg/api-client-js
|
|
2
|
+
import { AccessDeniedReason, EntitlementsStateAccessDeniedReason, ResetPeriodConfigurationFragment } from '@stigg/api-client-js';
|
|
3
3
|
export interface CalculatedEntitlement {
|
|
4
4
|
usageLimit?: number | null;
|
|
5
5
|
hasUnlimitedUsage: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
-
import { EntitlementsStateAccessDeniedReason, EntitlementUnionFragment } from '@stigg/api-client-js
|
|
2
|
+
import { EntitlementsStateAccessDeniedReason, EntitlementUnionFragment } from '@stigg/api-client-js';
|
|
3
3
|
import { BooleanEntitlement, BooleanEntitlementOptions, CreditEntitlement, EntitlementsState, EnumEntitlement, EnumEntitlementOptions, MeteredEntitlement, MeteredEntitlementOptions, NumericEntitlement, NumericEntitlementOptions } from '../models';
|
|
4
4
|
import CachedEntitlement from './cachedEntitlement';
|
|
5
5
|
import { CacheService } from './cacheService';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplySubscriptionMutation, CustomerFragment, CustomerPortalFragment, CustomerResourceFragment, CheckoutStateFragment, GetCouponsQuery, GetMockPaywallQuery, GetPaywallQuery, SubscriptionFragment, SubscriptionPreviewFragment, UsageHistoryFragment, SubscriptionPreviewV2Fragment, SubscriptionPreviewInvoiceFragment, ImmediateSubscriptionPreviewInvoiceFragment, SlimCustomerFragment, CreditEntitlementFragment, EntitlementUnionFragment, FeatureEntitlementFragment } from '@stigg/api-client-js
|
|
1
|
+
import { ApplySubscriptionMutation, CustomerFragment, CustomerPortalFragment, CustomerResourceFragment, CheckoutStateFragment, GetCouponsQuery, GetMockPaywallQuery, GetPaywallQuery, SubscriptionFragment, SubscriptionPreviewFragment, UsageHistoryFragment, SubscriptionPreviewV2Fragment, SubscriptionPreviewInvoiceFragment, ImmediateSubscriptionPreviewInvoiceFragment, SlimCustomerFragment, CreditEntitlementFragment, EntitlementUnionFragment, FeatureEntitlementFragment } from '@stigg/api-client-js';
|
|
2
2
|
import { BooleanEntitlement, ApplySubscriptionResults, Coupon, Customer, CustomerPortal, CustomerResource, GetCheckoutStateResults, EnumEntitlement, MeteredEntitlement, Money, NumericEntitlement, Paywall, Plan, Subscription, SubscriptionPreview, SubscriptionPreviewDiscount, UsageHistoryPoint, SubscriptionPreviewV2, SubscriptionPreviewInvoice, SlimCustomer, SubscriptionPreviewCredits, CreditEntitlement } from '../models';
|
|
3
3
|
import CachedEntitlement, { CachedCreditEntitlement } from '../services/cachedEntitlement';
|
|
4
4
|
import { Decision } from '../services/entitlementDecisionService';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntitlementResetPeriod } from '@stigg/api-client-js
|
|
1
|
+
import { EntitlementResetPeriod } from '@stigg/api-client-js';
|
|
2
2
|
export declare function calculateUsagePeriod(usagePeriodAnchor: Date, baseDate: Date, resetPeriod: EntitlementResetPeriod): {
|
|
3
3
|
usagePeriodStart: Date;
|
|
4
4
|
usagePeriodEnd: Date;
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.98.1",
|
|
4
4
|
"description": "Stigg client-side SDK for Browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"typings": "dist/index.d.ts"
|
|
12
|
+
},
|
|
8
13
|
"exports": {
|
|
9
14
|
".": {
|
|
10
15
|
"types": "./dist/index.d.ts",
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
"dependencies": {
|
|
32
37
|
"@apollo/client": "^3.4.17",
|
|
33
38
|
"@sentry/browser": "^7.11.1",
|
|
34
|
-
"@stigg/api-client-js": "
|
|
39
|
+
"@stigg/api-client-js": "6.3.1",
|
|
35
40
|
"cross-fetch": "^3.1.6",
|
|
36
41
|
"dayjs": "^1.11.13",
|
|
37
42
|
"fetch-retry": "^5.0.6",
|
|
@@ -50,8 +55,5 @@
|
|
|
50
55
|
"webpack": "^5.64.1",
|
|
51
56
|
"webpack-cli": "^4.9.1",
|
|
52
57
|
"webpack-dev-server": "^4.5.0"
|
|
53
|
-
},
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"access": "public"
|
|
56
58
|
}
|
|
57
59
|
}
|