@stigg/js-client-sdk 3.17.0 → 3.17.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/EdgeApiClient.d.ts +0 -2
- package/dist/api/EntitlementsApi.d.ts +0 -3
- package/dist/configuration.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/services/cacheService.d.ts +1 -0
- package/dist/services/entitlementsService.d.ts +3 -5
- package/dist/services/inMemoryCacheService.d.ts +3 -1
- package/dist/src/api/EdgeApiClient.d.ts +0 -2
- package/dist/src/api/EntitlementsApi.d.ts +0 -3
- package/dist/src/configuration.d.ts +3 -0
- package/dist/src/services/cacheService.d.ts +1 -0
- package/dist/src/services/entitlementsService.d.ts +3 -5
- package/dist/src/services/inMemoryCacheService.d.ts +3 -1
- package/package.json +1 -1
- package/dist/src/utils/ObservablePoller.d.ts +0 -8
- package/dist/utils/ObservablePoller.d.ts +0 -8
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
2
|
import { GetEntitlementsQuery, GetPaywallQuery, GetSdkConfigurationQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
|
-
import { ObservablePoller } from '../utils/ObservablePoller';
|
|
4
3
|
declare type EdgeApiClientConfiguration = {
|
|
5
4
|
apiKey: string;
|
|
6
5
|
baseEdgeUri: string;
|
|
@@ -16,7 +15,6 @@ export declare class EdgeApiClient {
|
|
|
16
15
|
getPaywall(productId?: string, billingCountryCode?: string, includeHiddenPlans?: boolean): Promise<ApolloQueryResult<GetPaywallQuery>>;
|
|
17
16
|
getEntitlements(customerId: string, resourceId: string | undefined): Promise<ApolloQueryResult<GetEntitlementsQuery>>;
|
|
18
17
|
getSdkConfiguration(): Promise<ApolloQueryResult<GetSdkConfigurationQuery>>;
|
|
19
|
-
watchEntitlements(customerId: string, interval: number, resourceId: string | undefined): ObservablePoller<GetEntitlementsQuery>;
|
|
20
18
|
private get;
|
|
21
19
|
}
|
|
22
20
|
export {};
|
|
@@ -6,9 +6,6 @@ declare class EntitlementsApi {
|
|
|
6
6
|
private readonly edgeApiClient;
|
|
7
7
|
constructor(client: ApolloClient<NormalizedCacheObject>, edgeApiClient: EdgeApiClient | null);
|
|
8
8
|
getEntitlements(customerId: string, skipEdge?: boolean, resourceId?: string): Promise<import("@apollo/client/core").ApolloQueryResult<GetEntitlementsQuery>>;
|
|
9
|
-
pollEntitlements(customerId: string, interval: number, resourceId?: string): import("../utils/ObservablePoller").ObservablePoller<GetEntitlementsQuery> | import("@apollo/client/core").ObservableQuery<GetEntitlementsQuery, import("@stigg/api-client-js/src/generated/sdk").Exact<{
|
|
10
|
-
query: import("@stigg/api-client-js/src/generated/sdk").FetchEntitlementsQuery;
|
|
11
|
-
}>>;
|
|
12
9
|
reportEntitlementRequested(featureId: string, customerId: string, entitlementCheckResult: EntitlementCheckResult, resourceId?: string, requestedUsage?: number): Promise<void>;
|
|
13
10
|
}
|
|
14
11
|
export default EntitlementsApi;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -10,8 +10,11 @@ export declare type ClientConfiguration = {
|
|
|
10
10
|
customerId?: string | null;
|
|
11
11
|
resourceId?: string | null;
|
|
12
12
|
customerToken?: string | null;
|
|
13
|
+
/** @deprecated not longer in use */
|
|
13
14
|
entitlementPollingInterval?: number;
|
|
15
|
+
/** @deprecated not longer in use */
|
|
14
16
|
useEntitlementPolling?: boolean;
|
|
17
|
+
cacheTtlMs?: number;
|
|
15
18
|
logConfiguration?: LogConfiguration;
|
|
16
19
|
lazyLoad?: boolean;
|
|
17
20
|
enableEdge?: boolean;
|