@stigg/js-client-sdk 3.2.0 → 3.4.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/initApolloClient.d.ts +2 -0
- package/dist/configuration.d.ts +2 -0
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/services/cachedEntitlement.d.ts +1 -0
- package/dist/src/api/initApolloClient.d.ts +2 -0
- package/dist/src/configuration.d.ts +2 -0
- package/dist/src/services/cachedEntitlement.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { ResetPeriodConfigurationFragment } from '@stigg/api-client-js/src/gener
|
|
|
3
3
|
export interface CalculatedEntitlement {
|
|
4
4
|
usageLimit?: number | null;
|
|
5
5
|
hasUnlimitedUsage: boolean;
|
|
6
|
+
hasSoftLimit: boolean;
|
|
6
7
|
feature?: EntitlementFeature;
|
|
7
8
|
}
|
|
8
9
|
export interface EntitlementUsage {
|
|
@@ -4,6 +4,8 @@ declare type ApolloClientConfiguration = {
|
|
|
4
4
|
baseUri: string;
|
|
5
5
|
customerId?: string | null;
|
|
6
6
|
customerToken?: string | null;
|
|
7
|
+
clientName?: string;
|
|
8
|
+
clientVersion?: string;
|
|
7
9
|
};
|
|
8
10
|
declare const initApolloClient: (config: Partial<ApolloClientConfiguration>) => ApolloClient<import("@apollo/client/core").NormalizedCacheObject>;
|
|
9
11
|
export declare const initBatchedApolloClient: (config: ApolloClientConfiguration) => ApolloClient<import("@apollo/client/core").NormalizedCacheObject>;
|
|
@@ -16,6 +16,8 @@ export declare type ClientConfiguration = {
|
|
|
16
16
|
lazyLoad?: boolean;
|
|
17
17
|
enableEdge?: boolean;
|
|
18
18
|
entitlementsFallback?: EntitlementsFallback;
|
|
19
|
+
clientName?: string;
|
|
20
|
+
clientVersion?: string;
|
|
19
21
|
};
|
|
20
22
|
export declare function validateConfiguration(configuration: ClientConfiguration, loggerService: LoggerService): void;
|
|
21
23
|
export declare function getConfiguration(configuration: ClientConfiguration): Required<ClientConfiguration>;
|
|
@@ -3,6 +3,7 @@ import { ResetPeriodConfigurationFragment } from '@stigg/api-client-js/src/gener
|
|
|
3
3
|
export interface CalculatedEntitlement {
|
|
4
4
|
usageLimit?: number | null;
|
|
5
5
|
hasUnlimitedUsage: boolean;
|
|
6
|
+
hasSoftLimit: boolean;
|
|
6
7
|
feature?: EntitlementFeature;
|
|
7
8
|
}
|
|
8
9
|
export interface EntitlementUsage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.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": "1.
|
|
31
|
+
"@stigg/api-client-js": "1.46.0",
|
|
32
32
|
"cross-fetch": "^3.1.6",
|
|
33
33
|
"fetch-retry": "^5.0.6",
|
|
34
34
|
"husky": "^7.0.4",
|