@stigg/js-client-sdk 0.45.2 → 0.46.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/client.d.ts +5 -0
- package/dist/configuration.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface StiggClient {
|
|
|
7
7
|
getNumericEntitlement: (params: GetNumericEntitlement) => NumericEntitlement;
|
|
8
8
|
getMeteredEntitlement: (params: GetMeteredEntitlement) => MeteredEntitlement;
|
|
9
9
|
setCustomerId: (customerId: string) => Promise<void>;
|
|
10
|
+
clearCustomer: () => void;
|
|
10
11
|
getPaywall: (params?: GetPaywall) => Promise<Plan[]>;
|
|
11
12
|
getCustomer: () => Promise<Customer>;
|
|
12
13
|
getEntitlements: () => Promise<Entitlement[]>;
|
|
@@ -62,6 +63,10 @@ export declare class Stigg implements StiggClient {
|
|
|
62
63
|
* Set the customer ID, usually after the customer signs in or restores a session
|
|
63
64
|
*/
|
|
64
65
|
setCustomerId(customerId: string): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Clear the customer ID, usually after the customer signs out
|
|
68
|
+
*/
|
|
69
|
+
clearCustomer(): void;
|
|
65
70
|
/**
|
|
66
71
|
* Reload entitlements
|
|
67
72
|
*/
|
package/dist/configuration.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const SDK_NAME = "js-client-sdk";
|
|
|
5
5
|
export declare type ClientConfiguration = {
|
|
6
6
|
apiKey: string;
|
|
7
7
|
baseUri?: string;
|
|
8
|
-
customerId?: string;
|
|
8
|
+
customerId?: string | null;
|
|
9
9
|
entitlementPollingInterval?: number;
|
|
10
10
|
useEntitlementPolling?: boolean;
|
|
11
11
|
logConfiguration?: LogConfiguration;
|