@stigg/js-client-sdk 0.51.0 → 0.53.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/ApiGateway.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import SdkConfigurationApi from './SdkConfigurationApi';
|
|
|
3
3
|
import PaywallApi from './PaywallApi';
|
|
4
4
|
import CustomersApi from './CustomersApi';
|
|
5
5
|
import CouponsApi from './CouponsApi';
|
|
6
|
+
import MockPaywallApi from './MockPaywallApi';
|
|
6
7
|
declare class ApiGateway {
|
|
7
8
|
sdkConfiguration: SdkConfigurationApi;
|
|
8
9
|
paywall: PaywallApi;
|
|
10
|
+
mockPaywall: MockPaywallApi;
|
|
9
11
|
customers: CustomersApi;
|
|
10
12
|
coupons: CouponsApi;
|
|
11
13
|
constructor(client: ApolloClient<NormalizedCacheObject>);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
+
import { GetMockPaywallQuery } from './generated/types';
|
|
3
|
+
declare class MockPaywallApi {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: ApolloClient<NormalizedCacheObject>);
|
|
6
|
+
getMockPaywall(productId?: string): Promise<import("@apollo/client/core").ApolloQueryResult<GetMockPaywallQuery>>;
|
|
7
|
+
}
|
|
8
|
+
export default MockPaywallApi;
|
|
@@ -2799,6 +2799,104 @@ export declare type ReportEntitlementCheckRequestedMutation = {
|
|
|
2799
2799
|
__typename?: 'Mutation';
|
|
2800
2800
|
reportEntitlementCheckRequested: boolean;
|
|
2801
2801
|
};
|
|
2802
|
+
export declare type PaywallPackageEntitlementFragment = {
|
|
2803
|
+
__typename?: 'Entitlement';
|
|
2804
|
+
usageLimit?: number | null | undefined;
|
|
2805
|
+
hasUnlimitedUsage: boolean;
|
|
2806
|
+
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2807
|
+
hiddenFromWidgets?: Array<WidgetType> | null | undefined;
|
|
2808
|
+
feature?: {
|
|
2809
|
+
__typename?: 'EntitlementFeature';
|
|
2810
|
+
featureType: FeatureType;
|
|
2811
|
+
meterType?: MeterType | null | undefined;
|
|
2812
|
+
featureUnits?: string | null | undefined;
|
|
2813
|
+
featureUnitsPlural?: string | null | undefined;
|
|
2814
|
+
displayName: string;
|
|
2815
|
+
description?: string | null | undefined;
|
|
2816
|
+
refId: string;
|
|
2817
|
+
} | null | undefined;
|
|
2818
|
+
};
|
|
2819
|
+
export declare type PaywallAddonFragment = {
|
|
2820
|
+
__typename?: 'PaywallAddon';
|
|
2821
|
+
refId: string;
|
|
2822
|
+
displayName: string;
|
|
2823
|
+
description?: string | null | undefined;
|
|
2824
|
+
additionalMetaData?: any | null | undefined;
|
|
2825
|
+
pricingType?: PricingType | null | undefined;
|
|
2826
|
+
entitlements: Array<{
|
|
2827
|
+
__typename?: 'Entitlement';
|
|
2828
|
+
} & PaywallPackageEntitlementFragment>;
|
|
2829
|
+
prices: Array<{
|
|
2830
|
+
__typename?: 'PaywallPrice';
|
|
2831
|
+
} & PaywallPriceFragment>;
|
|
2832
|
+
};
|
|
2833
|
+
export declare type PaywallPriceFragment = {
|
|
2834
|
+
__typename?: 'PaywallPrice';
|
|
2835
|
+
billingModel: BillingModel;
|
|
2836
|
+
billingPeriod: BillingPeriod;
|
|
2837
|
+
minUnitQuantity?: number | null | undefined;
|
|
2838
|
+
maxUnitQuantity?: number | null | undefined;
|
|
2839
|
+
price: {
|
|
2840
|
+
__typename?: 'Money';
|
|
2841
|
+
amount: number;
|
|
2842
|
+
currency: Currency;
|
|
2843
|
+
};
|
|
2844
|
+
feature?: {
|
|
2845
|
+
__typename?: 'EntitlementFeature';
|
|
2846
|
+
featureUnits?: string | null | undefined;
|
|
2847
|
+
featureUnitsPlural?: string | null | undefined;
|
|
2848
|
+
displayName: string;
|
|
2849
|
+
} | null | undefined;
|
|
2850
|
+
};
|
|
2851
|
+
export declare type PayWallPlanFragment = {
|
|
2852
|
+
__typename?: 'PaywallPlan';
|
|
2853
|
+
refId: string;
|
|
2854
|
+
description?: string | null | undefined;
|
|
2855
|
+
displayName: string;
|
|
2856
|
+
additionalMetaData?: any | null | undefined;
|
|
2857
|
+
pricingType?: PricingType | null | undefined;
|
|
2858
|
+
product: {
|
|
2859
|
+
__typename?: 'PaywallProduct';
|
|
2860
|
+
refId: string;
|
|
2861
|
+
displayName?: string | null | undefined;
|
|
2862
|
+
description?: string | null | undefined;
|
|
2863
|
+
additionalMetaData?: any | null | undefined;
|
|
2864
|
+
};
|
|
2865
|
+
basePlan?: {
|
|
2866
|
+
__typename?: 'PaywallBasePlan';
|
|
2867
|
+
refId: string;
|
|
2868
|
+
displayName: string;
|
|
2869
|
+
} | null | undefined;
|
|
2870
|
+
entitlements?: Array<{
|
|
2871
|
+
__typename?: 'Entitlement';
|
|
2872
|
+
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
2873
|
+
inheritedEntitlements?: Array<{
|
|
2874
|
+
__typename?: 'Entitlement';
|
|
2875
|
+
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
2876
|
+
prices: Array<{
|
|
2877
|
+
__typename?: 'PaywallPrice';
|
|
2878
|
+
} & PaywallPriceFragment>;
|
|
2879
|
+
defaultTrialConfig?: {
|
|
2880
|
+
__typename?: 'DefaultTrialConfig';
|
|
2881
|
+
duration: number;
|
|
2882
|
+
units: TrialPeriodUnits;
|
|
2883
|
+
} | null | undefined;
|
|
2884
|
+
compatibleAddons?: Array<{
|
|
2885
|
+
__typename?: 'PaywallAddon';
|
|
2886
|
+
} & PaywallAddonFragment> | null | undefined;
|
|
2887
|
+
};
|
|
2888
|
+
export declare type GetMockPaywallQueryVariables = Exact<{
|
|
2889
|
+
input: GetPaywallInput;
|
|
2890
|
+
}>;
|
|
2891
|
+
export declare type GetMockPaywallQuery = {
|
|
2892
|
+
__typename?: 'Query';
|
|
2893
|
+
mockPaywall: {
|
|
2894
|
+
__typename?: 'MockPaywall';
|
|
2895
|
+
plans: Array<{
|
|
2896
|
+
__typename?: 'PaywallPlan';
|
|
2897
|
+
} & PayWallPlanFragment>;
|
|
2898
|
+
};
|
|
2899
|
+
};
|
|
2802
2900
|
export declare type PackageEntitlementFragment = {
|
|
2803
2901
|
__typename?: 'PackageEntitlement';
|
|
2804
2902
|
usageLimit?: number | null | undefined;
|
|
@@ -2833,7 +2931,6 @@ export declare type AddonFragment = {
|
|
|
2833
2931
|
};
|
|
2834
2932
|
export declare type PlanFragment = {
|
|
2835
2933
|
__typename?: 'Plan';
|
|
2836
|
-
id: string;
|
|
2837
2934
|
refId: string;
|
|
2838
2935
|
description?: string | null | undefined;
|
|
2839
2936
|
displayName: string;
|
|
@@ -2848,7 +2945,6 @@ export declare type PlanFragment = {
|
|
|
2848
2945
|
};
|
|
2849
2946
|
basePlan?: {
|
|
2850
2947
|
__typename?: 'Plan';
|
|
2851
|
-
id: string;
|
|
2852
2948
|
refId: string;
|
|
2853
2949
|
displayName: string;
|
|
2854
2950
|
} | null | undefined;
|
|
@@ -2875,9 +2971,12 @@ export declare type GetPaywallQueryVariables = Exact<{
|
|
|
2875
2971
|
}>;
|
|
2876
2972
|
export declare type GetPaywallQuery = {
|
|
2877
2973
|
__typename?: 'Query';
|
|
2878
|
-
|
|
2879
|
-
__typename?: '
|
|
2880
|
-
|
|
2974
|
+
paywall: {
|
|
2975
|
+
__typename?: 'Paywall';
|
|
2976
|
+
plans: Array<{
|
|
2977
|
+
__typename?: 'Plan';
|
|
2978
|
+
} & PlanFragment>;
|
|
2979
|
+
};
|
|
2881
2980
|
};
|
|
2882
2981
|
export declare type SdkConfigurationQueryVariables = Exact<{
|
|
2883
2982
|
[key: string]: never;
|