@stigg/js-client-sdk 3.65.1 → 3.67.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 +6 -2
- package/dist/index.esm.js +79 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +79 -20
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -1
- package/dist/offlineClient.d.ts +1 -1
- package/dist/src/client.d.ts +6 -2
- package/dist/src/models.d.ts +2 -1
- package/dist/src/offlineClient.d.ts +1 -1
- package/package.json +2 -2
package/dist/models.d.ts
CHANGED
|
@@ -366,11 +366,12 @@ export declare type CustomerPortal = {
|
|
|
366
366
|
entitlements: CustomerPortalEntitlement[];
|
|
367
367
|
promotionalEntitlements: CustomerPortalPromotionalEntitlement[];
|
|
368
368
|
billingInformation: CustomerPortalBillingInformation;
|
|
369
|
-
showWatermark: boolean;
|
|
370
369
|
canUpgradeSubscription: boolean;
|
|
371
370
|
billingPortalUrl?: string | null;
|
|
372
371
|
configuration?: CustomerPortalConfiguration | null;
|
|
373
372
|
resource: CustomerResource | null;
|
|
373
|
+
/** @deprecated This field has been moved to SDK configuration */
|
|
374
|
+
showWatermark?: boolean;
|
|
374
375
|
};
|
|
375
376
|
export declare type CheckoutStatePlan = Plan & Pick<PlanFragment, 'prices'>;
|
|
376
377
|
export declare type CheckoutBillingIntegration = {
|
package/dist/offlineClient.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare class OfflineStigg extends Stigg {
|
|
|
14
14
|
getSubscription(): Promise<Subscription>;
|
|
15
15
|
get isCustomerLoaded(): boolean;
|
|
16
16
|
get isResourceLoaded(): boolean;
|
|
17
|
-
get isWidgetWatermarkEnabled(): boolean;
|
|
18
17
|
removeListener(): void;
|
|
19
18
|
waitForInitialization(): Promise<StiggClient>;
|
|
20
19
|
setResource(): Promise<void>;
|
|
@@ -39,4 +38,5 @@ export declare class OfflineStigg extends Stigg {
|
|
|
39
38
|
getCreditLedger(): Promise<CreditLedgerFragment[]>;
|
|
40
39
|
getCreditUsage(): Promise<CreditUsageFragment>;
|
|
41
40
|
createPaymentSession(): Promise<PaymentSessionFragment>;
|
|
41
|
+
getShowWatermark(): boolean;
|
|
42
42
|
}
|
package/dist/src/client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { LoggerService } from './services/loggerService';
|
|
|
6
6
|
export interface StiggClient {
|
|
7
7
|
isCustomerLoaded: boolean;
|
|
8
8
|
isResourceLoaded: boolean;
|
|
9
|
+
/** @deprecated Use {@link getShowWatermark} instead */
|
|
9
10
|
isWidgetWatermarkEnabled: boolean;
|
|
10
11
|
getBooleanEntitlement: (params: GetBooleanEntitlement) => BooleanEntitlement;
|
|
11
12
|
getNumericEntitlement: (params: GetNumericEntitlement) => NumericEntitlement;
|
|
@@ -42,6 +43,7 @@ export interface StiggClient {
|
|
|
42
43
|
getCreditLedger(input?: GetCreditLedgerInput): Promise<CreditLedgerFragment[]>;
|
|
43
44
|
getCreditUsage(input: GetCreditUsageInput): Promise<CreditUsageFragment>;
|
|
44
45
|
createPaymentSession(input: CreatePaymentSessionInput): Promise<PaymentSessionFragment>;
|
|
46
|
+
getShowWatermark(): boolean;
|
|
45
47
|
}
|
|
46
48
|
export declare class Stigg implements StiggClient {
|
|
47
49
|
private readonly apiGateway;
|
|
@@ -54,7 +56,9 @@ export declare class Stigg implements StiggClient {
|
|
|
54
56
|
private readonly modelMapper;
|
|
55
57
|
private readonly eventEmitter;
|
|
56
58
|
private readonly initializationStateTracker;
|
|
57
|
-
private
|
|
59
|
+
private showWatermark;
|
|
60
|
+
/** @deprecated Use {@link getShowWatermark} instead */
|
|
61
|
+
isWidgetWatermarkEnabled: boolean;
|
|
58
62
|
protected constructor(configuration: Required<ClientConfiguration>, loggerService: LoggerService);
|
|
59
63
|
/**
|
|
60
64
|
* Creates an instance of Stigg client.
|
|
@@ -75,7 +79,7 @@ export declare class Stigg implements StiggClient {
|
|
|
75
79
|
private static initializeSdk;
|
|
76
80
|
get isCustomerLoaded(): boolean;
|
|
77
81
|
get isResourceLoaded(): boolean;
|
|
78
|
-
|
|
82
|
+
getShowWatermark(): boolean;
|
|
79
83
|
/**
|
|
80
84
|
* Add a listener to handle updates of entitlements changes
|
|
81
85
|
* @param eventName
|
package/dist/src/models.d.ts
CHANGED
|
@@ -366,11 +366,12 @@ export declare type CustomerPortal = {
|
|
|
366
366
|
entitlements: CustomerPortalEntitlement[];
|
|
367
367
|
promotionalEntitlements: CustomerPortalPromotionalEntitlement[];
|
|
368
368
|
billingInformation: CustomerPortalBillingInformation;
|
|
369
|
-
showWatermark: boolean;
|
|
370
369
|
canUpgradeSubscription: boolean;
|
|
371
370
|
billingPortalUrl?: string | null;
|
|
372
371
|
configuration?: CustomerPortalConfiguration | null;
|
|
373
372
|
resource: CustomerResource | null;
|
|
373
|
+
/** @deprecated This field has been moved to SDK configuration */
|
|
374
|
+
showWatermark?: boolean;
|
|
374
375
|
};
|
|
375
376
|
export declare type CheckoutStatePlan = Plan & Pick<PlanFragment, 'prices'>;
|
|
376
377
|
export declare type CheckoutBillingIntegration = {
|
|
@@ -14,7 +14,6 @@ export declare class OfflineStigg extends Stigg {
|
|
|
14
14
|
getSubscription(): Promise<Subscription>;
|
|
15
15
|
get isCustomerLoaded(): boolean;
|
|
16
16
|
get isResourceLoaded(): boolean;
|
|
17
|
-
get isWidgetWatermarkEnabled(): boolean;
|
|
18
17
|
removeListener(): void;
|
|
19
18
|
waitForInitialization(): Promise<StiggClient>;
|
|
20
19
|
setResource(): Promise<void>;
|
|
@@ -39,4 +38,5 @@ export declare class OfflineStigg extends Stigg {
|
|
|
39
38
|
getCreditLedger(): Promise<CreditLedgerFragment[]>;
|
|
40
39
|
getCreditUsage(): Promise<CreditUsageFragment>;
|
|
41
40
|
createPaymentSession(): Promise<PaymentSessionFragment>;
|
|
41
|
+
getShowWatermark(): boolean;
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/js-client-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.67.0",
|
|
4
4
|
"description": "Stigg client-side SDK for Browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@apollo/client": "^3.4.17",
|
|
38
38
|
"@sentry/browser": "^7.11.1",
|
|
39
|
-
"@stigg/api-client-js": "3.
|
|
39
|
+
"@stigg/api-client-js": "3.123.0",
|
|
40
40
|
"cross-fetch": "^3.1.6",
|
|
41
41
|
"dayjs": "^1.11.13",
|
|
42
42
|
"fetch-retry": "^5.0.6",
|