@stigg/js-client-sdk 0.52.0 → 0.54.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;
|
|
@@ -1305,6 +1305,7 @@ export declare enum PackageEntitlementSortFields {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
export declare type PackageEntitlementUpdateInput = {
|
|
1307
1307
|
description?: InputMaybe<Scalars['String']>;
|
|
1308
|
+
displayNameOverride?: InputMaybe<Scalars['String']>;
|
|
1308
1309
|
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
1309
1310
|
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1310
1311
|
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
@@ -2799,6 +2800,105 @@ export declare type ReportEntitlementCheckRequestedMutation = {
|
|
|
2799
2800
|
__typename?: 'Mutation';
|
|
2800
2801
|
reportEntitlementCheckRequested: boolean;
|
|
2801
2802
|
};
|
|
2803
|
+
export declare type PaywallPackageEntitlementFragment = {
|
|
2804
|
+
__typename?: 'Entitlement';
|
|
2805
|
+
usageLimit?: number | null | undefined;
|
|
2806
|
+
hasUnlimitedUsage: boolean;
|
|
2807
|
+
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2808
|
+
hiddenFromWidgets?: Array<WidgetType> | null | undefined;
|
|
2809
|
+
displayNameOverride?: string | null | undefined;
|
|
2810
|
+
feature?: {
|
|
2811
|
+
__typename?: 'EntitlementFeature';
|
|
2812
|
+
featureType: FeatureType;
|
|
2813
|
+
meterType?: MeterType | null | undefined;
|
|
2814
|
+
featureUnits?: string | null | undefined;
|
|
2815
|
+
featureUnitsPlural?: string | null | undefined;
|
|
2816
|
+
displayName: string;
|
|
2817
|
+
description?: string | null | undefined;
|
|
2818
|
+
refId: string;
|
|
2819
|
+
} | null | undefined;
|
|
2820
|
+
};
|
|
2821
|
+
export declare type PaywallAddonFragment = {
|
|
2822
|
+
__typename?: 'PaywallAddon';
|
|
2823
|
+
refId: string;
|
|
2824
|
+
displayName: string;
|
|
2825
|
+
description?: string | null | undefined;
|
|
2826
|
+
additionalMetaData?: any | null | undefined;
|
|
2827
|
+
pricingType?: PricingType | null | undefined;
|
|
2828
|
+
entitlements: Array<{
|
|
2829
|
+
__typename?: 'Entitlement';
|
|
2830
|
+
} & PaywallPackageEntitlementFragment>;
|
|
2831
|
+
prices: Array<{
|
|
2832
|
+
__typename?: 'PaywallPrice';
|
|
2833
|
+
} & PaywallPriceFragment>;
|
|
2834
|
+
};
|
|
2835
|
+
export declare type PaywallPriceFragment = {
|
|
2836
|
+
__typename?: 'PaywallPrice';
|
|
2837
|
+
billingModel: BillingModel;
|
|
2838
|
+
billingPeriod: BillingPeriod;
|
|
2839
|
+
minUnitQuantity?: number | null | undefined;
|
|
2840
|
+
maxUnitQuantity?: number | null | undefined;
|
|
2841
|
+
price: {
|
|
2842
|
+
__typename?: 'Money';
|
|
2843
|
+
amount: number;
|
|
2844
|
+
currency: Currency;
|
|
2845
|
+
};
|
|
2846
|
+
feature?: {
|
|
2847
|
+
__typename?: 'EntitlementFeature';
|
|
2848
|
+
featureUnits?: string | null | undefined;
|
|
2849
|
+
featureUnitsPlural?: string | null | undefined;
|
|
2850
|
+
displayName: string;
|
|
2851
|
+
} | null | undefined;
|
|
2852
|
+
};
|
|
2853
|
+
export declare type PayWallPlanFragment = {
|
|
2854
|
+
__typename?: 'PaywallPlan';
|
|
2855
|
+
refId: string;
|
|
2856
|
+
description?: string | null | undefined;
|
|
2857
|
+
displayName: string;
|
|
2858
|
+
additionalMetaData?: any | null | undefined;
|
|
2859
|
+
pricingType?: PricingType | null | undefined;
|
|
2860
|
+
product: {
|
|
2861
|
+
__typename?: 'PaywallProduct';
|
|
2862
|
+
refId: string;
|
|
2863
|
+
displayName?: string | null | undefined;
|
|
2864
|
+
description?: string | null | undefined;
|
|
2865
|
+
additionalMetaData?: any | null | undefined;
|
|
2866
|
+
};
|
|
2867
|
+
basePlan?: {
|
|
2868
|
+
__typename?: 'PaywallBasePlan';
|
|
2869
|
+
refId: string;
|
|
2870
|
+
displayName: string;
|
|
2871
|
+
} | null | undefined;
|
|
2872
|
+
entitlements?: Array<{
|
|
2873
|
+
__typename?: 'Entitlement';
|
|
2874
|
+
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
2875
|
+
inheritedEntitlements?: Array<{
|
|
2876
|
+
__typename?: 'Entitlement';
|
|
2877
|
+
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
2878
|
+
prices: Array<{
|
|
2879
|
+
__typename?: 'PaywallPrice';
|
|
2880
|
+
} & PaywallPriceFragment>;
|
|
2881
|
+
defaultTrialConfig?: {
|
|
2882
|
+
__typename?: 'DefaultTrialConfig';
|
|
2883
|
+
duration: number;
|
|
2884
|
+
units: TrialPeriodUnits;
|
|
2885
|
+
} | null | undefined;
|
|
2886
|
+
compatibleAddons?: Array<{
|
|
2887
|
+
__typename?: 'PaywallAddon';
|
|
2888
|
+
} & PaywallAddonFragment> | null | undefined;
|
|
2889
|
+
};
|
|
2890
|
+
export declare type GetMockPaywallQueryVariables = Exact<{
|
|
2891
|
+
input: GetPaywallInput;
|
|
2892
|
+
}>;
|
|
2893
|
+
export declare type GetMockPaywallQuery = {
|
|
2894
|
+
__typename?: 'Query';
|
|
2895
|
+
mockPaywall: {
|
|
2896
|
+
__typename?: 'MockPaywall';
|
|
2897
|
+
plans: Array<{
|
|
2898
|
+
__typename?: 'PaywallPlan';
|
|
2899
|
+
} & PayWallPlanFragment>;
|
|
2900
|
+
};
|
|
2901
|
+
};
|
|
2802
2902
|
export declare type PackageEntitlementFragment = {
|
|
2803
2903
|
__typename?: 'PackageEntitlement';
|
|
2804
2904
|
usageLimit?: number | null | undefined;
|
|
@@ -2806,6 +2906,7 @@ export declare type PackageEntitlementFragment = {
|
|
|
2806
2906
|
featureId: string;
|
|
2807
2907
|
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2808
2908
|
hiddenFromWidgets?: Array<WidgetType> | null | undefined;
|
|
2909
|
+
displayNameOverride?: string | null | undefined;
|
|
2809
2910
|
feature: {
|
|
2810
2911
|
__typename?: 'Feature';
|
|
2811
2912
|
featureType: FeatureType;
|