@stigg/js-client-sdk 1.32.0 → 1.32.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/client.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +3 -0
- package/dist/src/client.d.ts +3 -3
- package/dist/src/models.d.ts +3 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanEntitlement, Coupon, Customer, Entitlement, GetBooleanEntitlement, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, MeteredEntitlement, NumericEntitlement, Subscription, WaitForCheckoutCompleted, CustomerPortal, Paywall, EstimateSubscription, SubscriptionPreview, EstimateSubscriptionUpdate, GetCustomerPortal } from './models';
|
|
1
|
+
import { BooleanEntitlement, Coupon, Customer, Entitlement, GetBooleanEntitlement, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, MeteredEntitlement, NumericEntitlement, Subscription, WaitForCheckoutCompleted, CustomerPortal, Paywall, EstimateSubscription, SubscriptionPreview, EstimateSubscriptionUpdate, GetCustomerPortal, GetActiveSubscriptions } from './models';
|
|
2
2
|
import { ClientConfiguration } from './configuration';
|
|
3
3
|
import { EventNames, Events } from './services/eventEmitter';
|
|
4
4
|
export interface StiggClient {
|
|
@@ -13,7 +13,7 @@ export interface StiggClient {
|
|
|
13
13
|
clearResource: () => Promise<void>;
|
|
14
14
|
getPaywall: (params?: GetPaywall) => Promise<Paywall>;
|
|
15
15
|
getCustomer: () => Promise<Customer>;
|
|
16
|
-
getActiveSubscriptions: () => Promise<Subscription[]>;
|
|
16
|
+
getActiveSubscriptions: (params?: GetActiveSubscriptions) => Promise<Subscription[]>;
|
|
17
17
|
getCoupons(): Promise<Coupon[]>;
|
|
18
18
|
getEntitlements: (resourceId?: string) => Promise<Entitlement[]>;
|
|
19
19
|
refresh: () => Promise<void>;
|
|
@@ -169,5 +169,5 @@ export declare class Stigg implements StiggClient {
|
|
|
169
169
|
* @param refreshOnComplete should refresh entitlements if subscription was found
|
|
170
170
|
*/
|
|
171
171
|
waitForCheckoutCompleted({ timeoutMs, refreshOnComplete, }?: WaitForCheckoutCompleted): Promise<Subscription | null>;
|
|
172
|
-
getActiveSubscriptions(): Promise<Subscription[]>;
|
|
172
|
+
getActiveSubscriptions({ resourceId }?: GetActiveSubscriptions): Promise<Subscription[]>;
|
|
173
173
|
}
|