@stigg/js-client-sdk 2.25.0 → 3.1.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/EdgeApiClient.d.ts +1 -1
- package/dist/api/PaywallApi.d.ts +2 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +1 -0
- package/dist/src/api/EdgeApiClient.d.ts +1 -1
- package/dist/src/api/PaywallApi.d.ts +2 -1
- package/dist/src/client.d.ts +1 -1
- package/dist/src/models.d.ts +1 -0
- package/dist/src/utils/ModelMapper.d.ts +1 -0
- package/dist/utils/ModelMapper.d.ts +1 -0
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ export declare class EdgeApiClient {
|
|
|
13
13
|
static create(config: EdgeApiClientConfiguration, dynamicData: {
|
|
14
14
|
customerToken?: string | null;
|
|
15
15
|
}): EdgeApiClient | null;
|
|
16
|
-
getPaywall(productId?: string, billingCountryCode?: string): Promise<ApolloQueryResult<GetPaywallQuery>>;
|
|
16
|
+
getPaywall(productId?: string, billingCountryCode?: string, includeHiddenPlans?: boolean): Promise<ApolloQueryResult<GetPaywallQuery>>;
|
|
17
17
|
getEntitlements(customerId: string, resourceId: string | undefined): Promise<ApolloQueryResult<GetEntitlementsQuery>>;
|
|
18
18
|
getSdkConfiguration(): Promise<ApolloQueryResult<GetSdkConfigurationQuery>>;
|
|
19
19
|
watchEntitlements(customerId: string, interval: number, resourceId: string | undefined): ObservablePoller<GetEntitlementsQuery>;
|
package/dist/api/PaywallApi.d.ts
CHANGED
|
@@ -7,11 +7,12 @@ export declare type GetPaywallProps = {
|
|
|
7
7
|
resourceId?: string | null;
|
|
8
8
|
context?: WidgetType;
|
|
9
9
|
billingCountryCode?: string;
|
|
10
|
+
includeHiddenPlans?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare class PaywallApi {
|
|
12
13
|
private readonly client;
|
|
13
14
|
private readonly edgeApiClient;
|
|
14
15
|
constructor(client: ApolloClient<NormalizedCacheObject>, edgeApiClient: EdgeApiClient | null);
|
|
15
|
-
getPaywall({ productId, customerId, resourceId, context, billingCountryCode }: GetPaywallProps): Promise<import("@apollo/client/core").ApolloQueryResult<GetPaywallQuery>>;
|
|
16
|
+
getPaywall({ productId, customerId, resourceId, context, billingCountryCode, includeHiddenPlans }: GetPaywallProps): Promise<import("@apollo/client/core").ApolloQueryResult<GetPaywallQuery>>;
|
|
16
17
|
}
|
|
17
18
|
export default PaywallApi;
|
package/dist/client.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export declare class Stigg implements StiggClient {
|
|
|
129
129
|
*
|
|
130
130
|
* @returns {Promise<Paywall>}
|
|
131
131
|
*/
|
|
132
|
-
getPaywall({ productId, resourceId, context, billingCountryCode }?: GetPaywall): Promise<Paywall>;
|
|
132
|
+
getPaywall({ productId, resourceId, context, billingCountryCode, includeHiddenPlans, }?: GetPaywall): Promise<Paywall>;
|
|
133
133
|
/**
|
|
134
134
|
* Get a list of coupons
|
|
135
135
|
*
|