@stigg/js-client-sdk 3.85.0 → 3.86.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/EdgeApiClient.d.ts +1 -1
- package/dist/api/MockPaywallApi.d.ts +1 -1
- package/dist/api/PaywallApi.d.ts +1 -1
- package/dist/api/SubscriptionsApi.d.ts +2 -2
- package/dist/api/initApolloClient.d.ts +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +101 -101
- package/dist/services/eventEmitter.d.ts +1 -1
- package/dist/utils/dateUtils.d.ts +1 -1
- package/dist/utils/fetch.d.ts +1 -2
- package/dist/utils/isMetered.d.ts +1 -1
- package/dist/utils/mapGetEntitlementsFallback.d.ts +5 -5
- package/dist/utils/withErrorHandling.d.ts +2 -2
- package/package.json +15 -16
- package/dist/src/api/ApiGateway.d.ts +0 -28
- package/dist/src/api/AutomaticRechargeApi.d.ts +0 -23
- package/dist/src/api/CheckoutApi.d.ts +0 -8
- package/dist/src/api/CouponsApi.d.ts +0 -8
- package/dist/src/api/CreditsApi.d.ts +0 -11
- package/dist/src/api/CustomersApi.d.ts +0 -16
- package/dist/src/api/EdgeApiClient.d.ts +0 -21
- package/dist/src/api/EntitlementsApi.d.ts +0 -10
- package/dist/src/api/MockPaywallApi.d.ts +0 -10
- package/dist/src/api/PaywallApi.d.ts +0 -18
- package/dist/src/api/SdkConfigurationApi.d.ts +0 -10
- package/dist/src/api/SubscriptionEstimationsApi.d.ts +0 -12
- package/dist/src/api/SubscriptionsApi.d.ts +0 -22
- package/dist/src/api/UsageHistoryApi.d.ts +0 -7
- package/dist/src/api/initApolloClient.d.ts +0 -11
- package/dist/src/client.d.ts +0 -312
- package/dist/src/clients.d.ts +0 -2
- package/dist/src/configuration.d.ts +0 -28
- package/dist/src/index.d.ts +0 -6
- package/dist/src/models.d.ts +0 -670
- package/dist/src/offlineClient.d.ts +0 -46
- package/dist/src/services/cacheService.d.ts +0 -14
- package/dist/src/services/cachedEntitlement.d.ts +0 -45
- package/dist/src/services/entitlementDecisionService.d.ts +0 -10
- package/dist/src/services/entitlementsService.d.ts +0 -34
- package/dist/src/services/eventEmitter.d.ts +0 -11
- package/dist/src/services/inMemoryCacheService.d.ts +0 -22
- package/dist/src/services/initializationStateTracker.d.ts +0 -16
- package/dist/src/services/loggerService.d.ts +0 -23
- package/dist/src/services/sentryService.d.ts +0 -3
- package/dist/src/utils/ModelMapper.d.ts +0 -58
- package/dist/src/utils/calculateUsagePeriod.d.ts +0 -5
- package/dist/src/utils/dateUtils.d.ts +0 -1
- package/dist/src/utils/fetch.d.ts +0 -3
- package/dist/src/utils/isMetered.d.ts +0 -7
- package/dist/src/utils/mapGetEntitlementsFallback.d.ts +0 -35
- package/dist/src/utils/withErrorHandling.d.ts +0 -23
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
2
|
import { GetActiveSubscriptionsListQuery, GetEntitlementsStateQuery, GetPaywallQuery, GetSdkConfigurationQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
|
-
|
|
3
|
+
type EdgeApiClientConfiguration = {
|
|
4
4
|
apiKey: string;
|
|
5
5
|
baseEdgeUri: string;
|
|
6
6
|
enableEdge: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
2
|
import { GetMockPaywallQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
import { GetPaywallProps } from './PaywallApi';
|
|
4
|
-
|
|
4
|
+
type GetMockPaywallProps = GetPaywallProps;
|
|
5
5
|
declare class MockPaywallApi {
|
|
6
6
|
private readonly client;
|
|
7
7
|
constructor(client: ApolloClient<NormalizedCacheObject>);
|
package/dist/api/PaywallApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetPaywallQuery, WidgetType } from '@stigg/api-client-js/src/generated/sdk';
|
|
2
2
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
3
3
|
import { EdgeApiClient } from './EdgeApiClient';
|
|
4
|
-
export
|
|
4
|
+
export type GetPaywallProps = {
|
|
5
5
|
productId?: string;
|
|
6
6
|
customerId?: string | null;
|
|
7
7
|
resourceId?: string | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { GetCheckoutStateQuery, ApplySubscriptionMutation, GetSubscriptionsQuery, SubscriptionStatus } from '@stigg/api-client-js/src/generated/sdk';
|
|
2
2
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
3
3
|
import { ApplySubscription, GetCheckoutState } from '../models';
|
|
4
|
-
export
|
|
4
|
+
export type ApplySubscriptionParams = ApplySubscription & {
|
|
5
5
|
customerId: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type GetCheckoutStateParams = GetCheckoutState & {
|
|
8
8
|
customerId: string;
|
|
9
9
|
};
|
|
10
10
|
declare class SubscriptionsApi {
|
package/dist/configuration.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EntitlementsFallback } from './models';
|
|
|
3
3
|
import { LogConfiguration, LoggerService } from './services/loggerService';
|
|
4
4
|
export declare const SDK_SOURCE_TYPE = SourceType.JsClientSdk;
|
|
5
5
|
export declare const SDK_NAME = "js-client-sdk";
|
|
6
|
-
export
|
|
6
|
+
export type ClientConfiguration = {
|
|
7
7
|
apiKey: string;
|
|
8
8
|
baseUri?: string;
|
|
9
9
|
baseEdgeUri?: string;
|