@stigg/js-client-sdk 1.12.0 → 1.13.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/api/CustomersApi.d.ts +3 -2
- package/dist/api/EdgeApiClient.d.ts +2 -1
- package/dist/api/EntitlementsApi.d.ts +4 -3
- package/dist/api/PaywallApi.d.ts +2 -1
- package/dist/api/generated/types.d.ts +151 -377
- package/dist/index.js +625 -1
- package/dist/index.js.LICENSE.txt +15 -0
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +4 -3
- package/dist/services/entitlementsService.d.ts +1 -1
- package/dist/utils/ModelMapper.d.ts +2 -1
- package/package.json +2 -1
- package/dist/api/fragments/customerFragment.d.ts +0 -1
- package/dist/api/fragments/priceFragment.d.ts +0 -1
- package/dist/api/fragments/scheduledUpdateFragment.d.ts +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
-
import {
|
|
2
|
+
import { GetCustomerPortalByRefIdQuery } from './generated/types';
|
|
3
|
+
import { GetCustomerByIdQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
4
|
declare class CustomersApi {
|
|
4
5
|
private readonly client;
|
|
5
6
|
constructor(client: ApolloClient<NormalizedCacheObject>);
|
|
6
|
-
getCustomer(customerId: string): Promise<import("@apollo/client/core").ApolloQueryResult<
|
|
7
|
+
getCustomer(customerId: string): Promise<import("@apollo/client/core").ApolloQueryResult<GetCustomerByIdQuery>>;
|
|
7
8
|
getCustomerPortal(customerId: string): Promise<import("@apollo/client/core").ApolloQueryResult<GetCustomerPortalByRefIdQuery>>;
|
|
8
9
|
}
|
|
9
10
|
export default CustomersApi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SdkConfigurationQuery } from './generated/types';
|
|
3
|
+
import { GetEntitlementsQuery, GetPaywallQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
4
|
import { ObservablePoller } from '../utils/ObservablePoller';
|
|
4
5
|
declare type EdgeApiClientConfiguration = {
|
|
5
6
|
apiKey: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
-
import {
|
|
2
|
+
import { EntitlementCheckResult } from './generated/types';
|
|
3
3
|
import { EdgeApiClient } from './EdgeApiClient';
|
|
4
|
+
import { GetEntitlementsQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
4
5
|
export declare const RESET_PERIOD_CONFIGURATION_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
5
6
|
export declare const FEATURE_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
6
7
|
declare class EntitlementsApi {
|
|
@@ -8,8 +9,8 @@ declare class EntitlementsApi {
|
|
|
8
9
|
private readonly edgeApiClient;
|
|
9
10
|
constructor(client: ApolloClient<NormalizedCacheObject>, edgeApiClient: EdgeApiClient | null);
|
|
10
11
|
getEntitlements(customerId: string): Promise<import("@apollo/client/core").ApolloQueryResult<GetEntitlementsQuery>>;
|
|
11
|
-
pollEntitlements(customerId: string, interval: number): import("../utils/ObservablePoller").ObservablePoller<GetEntitlementsQuery> | import("@apollo/client/core").ObservableQuery<GetEntitlementsQuery, import("
|
|
12
|
-
query: import("
|
|
12
|
+
pollEntitlements(customerId: string, interval: number): import("../utils/ObservablePoller").ObservablePoller<GetEntitlementsQuery> | import("@apollo/client/core").ObservableQuery<GetEntitlementsQuery, import("@stigg/api-client-js/src/generated/sdk").Exact<{
|
|
13
|
+
query: import("@stigg/api-client-js/src/generated/sdk").FetchEntitlementsQuery;
|
|
13
14
|
}>>;
|
|
14
15
|
reportEntitlementRequested(featureId: string, customerId: string, entitlementCheckResult: EntitlementCheckResult, requestedUsage?: number): Promise<void>;
|
|
15
16
|
}
|
package/dist/api/PaywallApi.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetType } from './generated/types';
|
|
3
3
|
import { EdgeApiClient } from './EdgeApiClient';
|
|
4
|
+
import { GetPaywallQuery } from '@stigg/api-client-js/src/generated/sdk';
|
|
4
5
|
export declare const TYPOGRAPHY_CONFIGURATION: import("graphql/language/ast").DocumentNode;
|
|
5
6
|
export declare const PAYWALL_CONFIGURATION: import("graphql/language/ast").DocumentNode;
|
|
6
7
|
export declare type GetPaywallProps = {
|
|
@@ -381,8 +381,121 @@ export declare type CreateOneProductInput = {
|
|
|
381
381
|
};
|
|
382
382
|
/** Currency */
|
|
383
383
|
export declare enum Currency {
|
|
384
|
+
Aed = "AED",
|
|
385
|
+
All = "ALL",
|
|
386
|
+
Amd = "AMD",
|
|
387
|
+
Ang = "ANG",
|
|
388
|
+
Aud = "AUD",
|
|
389
|
+
Awg = "AWG",
|
|
390
|
+
Azn = "AZN",
|
|
391
|
+
Bam = "BAM",
|
|
392
|
+
Bbd = "BBD",
|
|
393
|
+
Bdt = "BDT",
|
|
394
|
+
Bgn = "BGN",
|
|
395
|
+
Bif = "BIF",
|
|
396
|
+
Bmd = "BMD",
|
|
397
|
+
Bnd = "BND",
|
|
398
|
+
Bsd = "BSD",
|
|
399
|
+
Bwp = "BWP",
|
|
400
|
+
Byn = "BYN",
|
|
401
|
+
Bzd = "BZD",
|
|
402
|
+
Cad = "CAD",
|
|
403
|
+
Cdf = "CDF",
|
|
404
|
+
Chf = "CHF",
|
|
405
|
+
Clp = "CLP",
|
|
406
|
+
Cny = "CNY",
|
|
407
|
+
Czk = "CZK",
|
|
408
|
+
Djf = "DJF",
|
|
409
|
+
Dkk = "DKK",
|
|
410
|
+
Dop = "DOP",
|
|
411
|
+
Dzd = "DZD",
|
|
412
|
+
Egp = "EGP",
|
|
413
|
+
Etb = "ETB",
|
|
414
|
+
Eur = "EUR",
|
|
415
|
+
Fjd = "FJD",
|
|
416
|
+
Gbp = "GBP",
|
|
417
|
+
Gel = "GEL",
|
|
418
|
+
Gip = "GIP",
|
|
419
|
+
Gmd = "GMD",
|
|
420
|
+
Gnf = "GNF",
|
|
421
|
+
Gyd = "GYD",
|
|
422
|
+
Hkd = "HKD",
|
|
423
|
+
Hrk = "HRK",
|
|
424
|
+
Htg = "HTG",
|
|
425
|
+
Idr = "IDR",
|
|
384
426
|
Ils = "ILS",
|
|
385
|
-
|
|
427
|
+
Inr = "INR",
|
|
428
|
+
Isk = "ISK",
|
|
429
|
+
Jmd = "JMD",
|
|
430
|
+
Jpy = "JPY",
|
|
431
|
+
Kes = "KES",
|
|
432
|
+
Kgs = "KGS",
|
|
433
|
+
Khr = "KHR",
|
|
434
|
+
Kmf = "KMF",
|
|
435
|
+
Krw = "KRW",
|
|
436
|
+
Kyd = "KYD",
|
|
437
|
+
Kzt = "KZT",
|
|
438
|
+
Lbp = "LBP",
|
|
439
|
+
Lkr = "LKR",
|
|
440
|
+
Lrd = "LRD",
|
|
441
|
+
Lsl = "LSL",
|
|
442
|
+
Mad = "MAD",
|
|
443
|
+
Mdl = "MDL",
|
|
444
|
+
Mga = "MGA",
|
|
445
|
+
Mkd = "MKD",
|
|
446
|
+
Mmk = "MMK",
|
|
447
|
+
Mnt = "MNT",
|
|
448
|
+
Mop = "MOP",
|
|
449
|
+
Mro = "MRO",
|
|
450
|
+
Mvr = "MVR",
|
|
451
|
+
Mwk = "MWK",
|
|
452
|
+
Mxn = "MXN",
|
|
453
|
+
Myr = "MYR",
|
|
454
|
+
Mzn = "MZN",
|
|
455
|
+
Nad = "NAD",
|
|
456
|
+
Ngn = "NGN",
|
|
457
|
+
Nok = "NOK",
|
|
458
|
+
Npr = "NPR",
|
|
459
|
+
Nzd = "NZD",
|
|
460
|
+
Pgk = "PGK",
|
|
461
|
+
Php = "PHP",
|
|
462
|
+
Pkr = "PKR",
|
|
463
|
+
Pln = "PLN",
|
|
464
|
+
Pyg = "PYG",
|
|
465
|
+
Qar = "QAR",
|
|
466
|
+
Ron = "RON",
|
|
467
|
+
Rsd = "RSD",
|
|
468
|
+
Rub = "RUB",
|
|
469
|
+
Rwf = "RWF",
|
|
470
|
+
Sar = "SAR",
|
|
471
|
+
Sbd = "SBD",
|
|
472
|
+
Scr = "SCR",
|
|
473
|
+
Sek = "SEK",
|
|
474
|
+
Sgd = "SGD",
|
|
475
|
+
Sle = "SLE",
|
|
476
|
+
Sll = "SLL",
|
|
477
|
+
Sos = "SOS",
|
|
478
|
+
Szl = "SZL",
|
|
479
|
+
Thb = "THB",
|
|
480
|
+
Tjs = "TJS",
|
|
481
|
+
Top = "TOP",
|
|
482
|
+
Try = "TRY",
|
|
483
|
+
Ttd = "TTD",
|
|
484
|
+
Tzs = "TZS",
|
|
485
|
+
Uah = "UAH",
|
|
486
|
+
Ugx = "UGX",
|
|
487
|
+
Usd = "USD",
|
|
488
|
+
Uzs = "UZS",
|
|
489
|
+
Vnd = "VND",
|
|
490
|
+
Vuv = "VUV",
|
|
491
|
+
Wst = "WST",
|
|
492
|
+
Xaf = "XAF",
|
|
493
|
+
Xcd = "XCD",
|
|
494
|
+
Xof = "XOF",
|
|
495
|
+
Xpf = "XPF",
|
|
496
|
+
Yer = "YER",
|
|
497
|
+
Zar = "ZAR",
|
|
498
|
+
Zmw = "ZMW"
|
|
386
499
|
}
|
|
387
500
|
export declare type CursorPaging = {
|
|
388
501
|
/** Paginate after opaque cursor */
|
|
@@ -1575,6 +1688,7 @@ export declare type PriceFilterPackageDtoFilter = {
|
|
|
1575
1688
|
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
1576
1689
|
};
|
|
1577
1690
|
export declare type PricePeriodInput = {
|
|
1691
|
+
billingCountryCode?: InputMaybe<Scalars['String']>;
|
|
1578
1692
|
billingPeriod: BillingPeriod;
|
|
1579
1693
|
price: MoneyInputDto;
|
|
1580
1694
|
};
|
|
@@ -2724,6 +2838,30 @@ export declare type CustomerPortalBillingInformationFragment = {
|
|
|
2724
2838
|
defaultPaymentExpirationMonth?: number | null | undefined;
|
|
2725
2839
|
defaultPaymentExpirationYear?: number | null | undefined;
|
|
2726
2840
|
};
|
|
2841
|
+
export declare type CustomerPortalSubscriptionScheduledUpdateDataFragment = {
|
|
2842
|
+
__typename?: 'SubscriptionScheduledUpdate';
|
|
2843
|
+
subscriptionScheduleType: SubscriptionScheduleType;
|
|
2844
|
+
scheduleStatus: SubscriptionScheduleStatus;
|
|
2845
|
+
scheduledExecutionTime: any;
|
|
2846
|
+
targetPackage?: {
|
|
2847
|
+
__typename?: 'PackageDTO';
|
|
2848
|
+
id: string;
|
|
2849
|
+
refId: string;
|
|
2850
|
+
displayName: string;
|
|
2851
|
+
} | null | undefined;
|
|
2852
|
+
scheduleVariables?: {
|
|
2853
|
+
__typename?: 'BillingPeriodChangeVariables';
|
|
2854
|
+
billingPeriod?: BillingPeriod | null | undefined;
|
|
2855
|
+
} | {
|
|
2856
|
+
__typename?: 'DowngradeChangeVariables';
|
|
2857
|
+
addonRefIds?: string | null | undefined;
|
|
2858
|
+
billingPeriod?: BillingPeriod | null | undefined;
|
|
2859
|
+
downgradePlanRefId: string;
|
|
2860
|
+
} | {
|
|
2861
|
+
__typename?: 'UnitAmountChangeVariables';
|
|
2862
|
+
newUnitAmount?: number | null | undefined;
|
|
2863
|
+
} | null | undefined;
|
|
2864
|
+
};
|
|
2727
2865
|
export declare type CustomerPortalSubscriptionFragment = {
|
|
2728
2866
|
__typename?: 'CustomerPortalSubscription';
|
|
2729
2867
|
subscriptionId: string;
|
|
@@ -2773,7 +2911,7 @@ export declare type CustomerPortalSubscriptionFragment = {
|
|
|
2773
2911
|
} & CustomerPortalSubscriptionAddonFragment>;
|
|
2774
2912
|
scheduledUpdates?: Array<{
|
|
2775
2913
|
__typename?: 'SubscriptionScheduledUpdate';
|
|
2776
|
-
} &
|
|
2914
|
+
} & CustomerPortalSubscriptionScheduledUpdateDataFragment> | null | undefined;
|
|
2777
2915
|
};
|
|
2778
2916
|
export declare type CustomerPortalConfigurationFragment = {
|
|
2779
2917
|
__typename?: 'CustomerPortalConfiguration';
|
|
@@ -2812,15 +2950,6 @@ export declare type CustomerPortalFragment = {
|
|
|
2812
2950
|
__typename?: 'CustomerPortalConfiguration';
|
|
2813
2951
|
} & CustomerPortalConfigurationFragment) | null | undefined;
|
|
2814
2952
|
};
|
|
2815
|
-
export declare type GetCustomerByRefIdQueryVariables = Exact<{
|
|
2816
|
-
input: GetCustomerByRefIdInput;
|
|
2817
|
-
}>;
|
|
2818
|
-
export declare type GetCustomerByRefIdQuery = {
|
|
2819
|
-
__typename?: 'Query';
|
|
2820
|
-
getCustomerByRefId?: ({
|
|
2821
|
-
__typename?: 'Customer';
|
|
2822
|
-
} & CustomerFragment) | null | undefined;
|
|
2823
|
-
};
|
|
2824
2953
|
export declare type GetCustomerPortalByRefIdQueryVariables = Exact<{
|
|
2825
2954
|
input: CustomerPortalInput;
|
|
2826
2955
|
}>;
|
|
@@ -2855,35 +2984,6 @@ export declare type FeatureFragment = {
|
|
|
2855
2984
|
displayName: string;
|
|
2856
2985
|
refId: string;
|
|
2857
2986
|
};
|
|
2858
|
-
export declare type EntitlementFragment = {
|
|
2859
|
-
__typename?: 'Entitlement';
|
|
2860
|
-
isGranted: boolean;
|
|
2861
|
-
accessDeniedReason?: AccessDeniedReason | null | undefined;
|
|
2862
|
-
customerId?: string | null | undefined;
|
|
2863
|
-
usageLimit?: number | null | undefined;
|
|
2864
|
-
hasUnlimitedUsage: boolean;
|
|
2865
|
-
currentUsage?: number | null | undefined;
|
|
2866
|
-
requestedUsage?: number | null | undefined;
|
|
2867
|
-
nextResetDate?: any | null | undefined;
|
|
2868
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2869
|
-
resetPeriodConfiguration?: ({
|
|
2870
|
-
__typename?: 'MonthlyResetPeriodConfig';
|
|
2871
|
-
} & ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_) | ({
|
|
2872
|
-
__typename?: 'WeeklyResetPeriodConfig';
|
|
2873
|
-
} & ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_) | null | undefined;
|
|
2874
|
-
feature?: ({
|
|
2875
|
-
__typename?: 'EntitlementFeature';
|
|
2876
|
-
} & FeatureFragment) | null | undefined;
|
|
2877
|
-
};
|
|
2878
|
-
export declare type GetEntitlementsQueryVariables = Exact<{
|
|
2879
|
-
query: FetchEntitlementsQuery;
|
|
2880
|
-
}>;
|
|
2881
|
-
export declare type GetEntitlementsQuery = {
|
|
2882
|
-
__typename?: 'Query';
|
|
2883
|
-
entitlements: Array<{
|
|
2884
|
-
__typename?: 'Entitlement';
|
|
2885
|
-
} & EntitlementFragment>;
|
|
2886
|
-
};
|
|
2887
2987
|
export declare type ReportEntitlementCheckRequestedMutationVariables = Exact<{
|
|
2888
2988
|
entitlementCheckRequested: EntitlementCheckRequested;
|
|
2889
2989
|
}>;
|
|
@@ -2891,7 +2991,7 @@ export declare type ReportEntitlementCheckRequestedMutation = {
|
|
|
2891
2991
|
__typename?: 'Mutation';
|
|
2892
2992
|
reportEntitlementCheckRequested: boolean;
|
|
2893
2993
|
};
|
|
2894
|
-
export declare type
|
|
2994
|
+
export declare type MockPaywallPackageEntitlementFragment = {
|
|
2895
2995
|
__typename?: 'Entitlement';
|
|
2896
2996
|
usageLimit?: number | null | undefined;
|
|
2897
2997
|
hasUnlimitedUsage: boolean;
|
|
@@ -2910,7 +3010,7 @@ export declare type PaywallPackageEntitlementFragment = {
|
|
|
2910
3010
|
additionalMetaData?: any | null | undefined;
|
|
2911
3011
|
} | null | undefined;
|
|
2912
3012
|
};
|
|
2913
|
-
export declare type
|
|
3013
|
+
export declare type MockPaywallAddonFragment = {
|
|
2914
3014
|
__typename?: 'PaywallAddon';
|
|
2915
3015
|
refId: string;
|
|
2916
3016
|
displayName: string;
|
|
@@ -2920,12 +3020,12 @@ export declare type PaywallAddonFragment = {
|
|
|
2920
3020
|
pricingType?: PricingType | null | undefined;
|
|
2921
3021
|
entitlements: Array<{
|
|
2922
3022
|
__typename?: 'Entitlement';
|
|
2923
|
-
} &
|
|
3023
|
+
} & MockPaywallPackageEntitlementFragment>;
|
|
2924
3024
|
prices: Array<{
|
|
2925
3025
|
__typename?: 'PaywallPrice';
|
|
2926
|
-
} &
|
|
3026
|
+
} & MockPaywallPriceFragment>;
|
|
2927
3027
|
};
|
|
2928
|
-
export declare type
|
|
3028
|
+
export declare type MockPaywallPriceFragment = {
|
|
2929
3029
|
__typename?: 'PaywallPrice';
|
|
2930
3030
|
billingModel: BillingModel;
|
|
2931
3031
|
billingPeriod: BillingPeriod;
|
|
@@ -2944,7 +3044,7 @@ export declare type PaywallPriceFragment = {
|
|
|
2944
3044
|
displayName: string;
|
|
2945
3045
|
} | null | undefined;
|
|
2946
3046
|
};
|
|
2947
|
-
export declare type
|
|
3047
|
+
export declare type MockPaywallPlanFragment = {
|
|
2948
3048
|
__typename?: 'PaywallPlan';
|
|
2949
3049
|
refId: string;
|
|
2950
3050
|
description?: string | null | undefined;
|
|
@@ -2966,13 +3066,13 @@ export declare type PayWallPlanFragment = {
|
|
|
2966
3066
|
} | null | undefined;
|
|
2967
3067
|
entitlements?: Array<{
|
|
2968
3068
|
__typename?: 'Entitlement';
|
|
2969
|
-
} &
|
|
3069
|
+
} & MockPaywallPackageEntitlementFragment> | null | undefined;
|
|
2970
3070
|
inheritedEntitlements?: Array<{
|
|
2971
3071
|
__typename?: 'Entitlement';
|
|
2972
|
-
} &
|
|
3072
|
+
} & MockPaywallPackageEntitlementFragment> | null | undefined;
|
|
2973
3073
|
prices: Array<{
|
|
2974
3074
|
__typename?: 'PaywallPrice';
|
|
2975
|
-
} &
|
|
3075
|
+
} & MockPaywallPriceFragment>;
|
|
2976
3076
|
defaultTrialConfig?: {
|
|
2977
3077
|
__typename?: 'DefaultTrialConfig';
|
|
2978
3078
|
duration: number;
|
|
@@ -2980,7 +3080,7 @@ export declare type PayWallPlanFragment = {
|
|
|
2980
3080
|
} | null | undefined;
|
|
2981
3081
|
compatibleAddons?: Array<{
|
|
2982
3082
|
__typename?: 'PaywallAddon';
|
|
2983
|
-
} &
|
|
3083
|
+
} & MockPaywallAddonFragment> | null | undefined;
|
|
2984
3084
|
};
|
|
2985
3085
|
export declare type GetMockPaywallQueryVariables = Exact<{
|
|
2986
3086
|
input: GetPaywallInput;
|
|
@@ -2991,86 +3091,12 @@ export declare type GetMockPaywallQuery = {
|
|
|
2991
3091
|
__typename?: 'MockPaywall';
|
|
2992
3092
|
plans: Array<{
|
|
2993
3093
|
__typename?: 'PaywallPlan';
|
|
2994
|
-
} &
|
|
3094
|
+
} & MockPaywallPlanFragment>;
|
|
2995
3095
|
configuration?: ({
|
|
2996
3096
|
__typename?: 'PaywallConfiguration';
|
|
2997
3097
|
} & PaywallConfigurationFragment) | null | undefined;
|
|
2998
3098
|
};
|
|
2999
3099
|
};
|
|
3000
|
-
export declare type PackageEntitlementFragment = {
|
|
3001
|
-
__typename?: 'PackageEntitlement';
|
|
3002
|
-
usageLimit?: number | null | undefined;
|
|
3003
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3004
|
-
featureId: string;
|
|
3005
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3006
|
-
isCustom?: boolean | null | undefined;
|
|
3007
|
-
hiddenFromWidgets?: Array<WidgetType> | null | undefined;
|
|
3008
|
-
displayNameOverride?: string | null | undefined;
|
|
3009
|
-
feature: {
|
|
3010
|
-
__typename?: 'Feature';
|
|
3011
|
-
featureType: FeatureType;
|
|
3012
|
-
meterType?: MeterType | null | undefined;
|
|
3013
|
-
featureUnits?: string | null | undefined;
|
|
3014
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3015
|
-
displayName: string;
|
|
3016
|
-
description?: string | null | undefined;
|
|
3017
|
-
refId: string;
|
|
3018
|
-
additionalMetaData?: any | null | undefined;
|
|
3019
|
-
};
|
|
3020
|
-
};
|
|
3021
|
-
export declare type AddonFragment = {
|
|
3022
|
-
__typename?: 'Addon';
|
|
3023
|
-
refId: string;
|
|
3024
|
-
displayName: string;
|
|
3025
|
-
billingId?: string | null | undefined;
|
|
3026
|
-
description?: string | null | undefined;
|
|
3027
|
-
additionalMetaData?: any | null | undefined;
|
|
3028
|
-
pricingType?: PricingType | null | undefined;
|
|
3029
|
-
entitlements?: Array<{
|
|
3030
|
-
__typename?: 'PackageEntitlement';
|
|
3031
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3032
|
-
prices?: Array<{
|
|
3033
|
-
__typename?: 'Price';
|
|
3034
|
-
} & PriceFragment> | null | undefined;
|
|
3035
|
-
};
|
|
3036
|
-
export declare type PlanFragment = {
|
|
3037
|
-
__typename?: 'Plan';
|
|
3038
|
-
refId: string;
|
|
3039
|
-
description?: string | null | undefined;
|
|
3040
|
-
displayName: string;
|
|
3041
|
-
billingId?: string | null | undefined;
|
|
3042
|
-
additionalMetaData?: any | null | undefined;
|
|
3043
|
-
pricingType?: PricingType | null | undefined;
|
|
3044
|
-
product: {
|
|
3045
|
-
__typename?: 'Product';
|
|
3046
|
-
refId: string;
|
|
3047
|
-
displayName?: string | null | undefined;
|
|
3048
|
-
description?: string | null | undefined;
|
|
3049
|
-
additionalMetaData?: any | null | undefined;
|
|
3050
|
-
};
|
|
3051
|
-
basePlan?: {
|
|
3052
|
-
__typename?: 'Plan';
|
|
3053
|
-
refId: string;
|
|
3054
|
-
displayName: string;
|
|
3055
|
-
} | null | undefined;
|
|
3056
|
-
entitlements?: Array<{
|
|
3057
|
-
__typename?: 'PackageEntitlement';
|
|
3058
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3059
|
-
inheritedEntitlements?: Array<{
|
|
3060
|
-
__typename?: 'PackageEntitlement';
|
|
3061
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3062
|
-
prices?: Array<{
|
|
3063
|
-
__typename?: 'Price';
|
|
3064
|
-
} & PriceFragment> | null | undefined;
|
|
3065
|
-
defaultTrialConfig?: {
|
|
3066
|
-
__typename?: 'DefaultTrialConfig';
|
|
3067
|
-
duration: number;
|
|
3068
|
-
units: TrialPeriodUnits;
|
|
3069
|
-
} | null | undefined;
|
|
3070
|
-
compatibleAddons?: Array<{
|
|
3071
|
-
__typename?: 'Addon';
|
|
3072
|
-
} & AddonFragment> | null | undefined;
|
|
3073
|
-
};
|
|
3074
3100
|
export declare type TypographyConfigurationFragment = {
|
|
3075
3101
|
__typename?: 'TypographyConfiguration';
|
|
3076
3102
|
fontFamily?: string | null | undefined;
|
|
@@ -3116,24 +3142,6 @@ export declare type PaywallConfigurationFragment = {
|
|
|
3116
3142
|
__typename?: 'PaywallLayoutConfiguration';
|
|
3117
3143
|
} & LayoutConfigurationFragment) | null | undefined;
|
|
3118
3144
|
};
|
|
3119
|
-
export declare type GetPaywallQueryVariables = Exact<{
|
|
3120
|
-
input: GetPaywallInput;
|
|
3121
|
-
}>;
|
|
3122
|
-
export declare type GetPaywallQuery = {
|
|
3123
|
-
__typename?: 'Query';
|
|
3124
|
-
paywall: {
|
|
3125
|
-
__typename?: 'Paywall';
|
|
3126
|
-
plans: Array<{
|
|
3127
|
-
__typename?: 'Plan';
|
|
3128
|
-
} & PlanFragment>;
|
|
3129
|
-
configuration?: ({
|
|
3130
|
-
__typename?: 'PaywallConfiguration';
|
|
3131
|
-
} & PaywallConfigurationFragment) | null | undefined;
|
|
3132
|
-
customer?: ({
|
|
3133
|
-
__typename?: 'Customer';
|
|
3134
|
-
} & CustomerFragment) | null | undefined;
|
|
3135
|
-
};
|
|
3136
|
-
};
|
|
3137
3145
|
export declare type SdkConfigurationQueryVariables = Exact<{
|
|
3138
3146
|
[key: string]: never;
|
|
3139
3147
|
}>;
|
|
@@ -3145,238 +3153,4 @@ export declare type SdkConfigurationQuery = {
|
|
|
3145
3153
|
isWidgetWatermarkEnabled?: boolean | null | undefined;
|
|
3146
3154
|
} | null | undefined;
|
|
3147
3155
|
};
|
|
3148
|
-
export declare type TotalPriceFragment = {
|
|
3149
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
3150
|
-
subTotal: {
|
|
3151
|
-
__typename?: 'Money';
|
|
3152
|
-
amount: number;
|
|
3153
|
-
currency: Currency;
|
|
3154
|
-
};
|
|
3155
|
-
total: {
|
|
3156
|
-
__typename?: 'Money';
|
|
3157
|
-
amount: number;
|
|
3158
|
-
currency: Currency;
|
|
3159
|
-
};
|
|
3160
|
-
};
|
|
3161
|
-
export declare type SubscriptionFragment = {
|
|
3162
|
-
__typename?: 'CustomerSubscription';
|
|
3163
|
-
id: string;
|
|
3164
|
-
startDate: any;
|
|
3165
|
-
endDate?: any | null | undefined;
|
|
3166
|
-
trialEndDate?: any | null | undefined;
|
|
3167
|
-
cancellationDate?: any | null | undefined;
|
|
3168
|
-
effectiveEndDate?: any | null | undefined;
|
|
3169
|
-
status: SubscriptionStatus;
|
|
3170
|
-
refId: string;
|
|
3171
|
-
currentBillingPeriodEnd?: any | null | undefined;
|
|
3172
|
-
additionalMetaData?: any | null | undefined;
|
|
3173
|
-
pricingType: PricingType;
|
|
3174
|
-
experimentInfo?: {
|
|
3175
|
-
__typename?: 'experimentInfo';
|
|
3176
|
-
name: string;
|
|
3177
|
-
groupName: string;
|
|
3178
|
-
groupType: ExperimentGroupType;
|
|
3179
|
-
id: string;
|
|
3180
|
-
} | null | undefined;
|
|
3181
|
-
prices?: Array<{
|
|
3182
|
-
__typename?: 'SubscriptionPrice';
|
|
3183
|
-
usageLimit?: number | null | undefined;
|
|
3184
|
-
price?: ({
|
|
3185
|
-
__typename?: 'Price';
|
|
3186
|
-
} & PriceFragment) | null | undefined;
|
|
3187
|
-
}> | null | undefined;
|
|
3188
|
-
totalPrice?: ({
|
|
3189
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
3190
|
-
} & TotalPriceFragment) | null | undefined;
|
|
3191
|
-
plan: {
|
|
3192
|
-
__typename?: 'Plan';
|
|
3193
|
-
id: string;
|
|
3194
|
-
refId: string;
|
|
3195
|
-
billingId?: string | null | undefined;
|
|
3196
|
-
displayName: string;
|
|
3197
|
-
description?: string | null | undefined;
|
|
3198
|
-
additionalMetaData?: any | null | undefined;
|
|
3199
|
-
product: {
|
|
3200
|
-
__typename?: 'Product';
|
|
3201
|
-
refId: string;
|
|
3202
|
-
displayName?: string | null | undefined;
|
|
3203
|
-
};
|
|
3204
|
-
entitlements?: Array<{
|
|
3205
|
-
__typename?: 'PackageEntitlement';
|
|
3206
|
-
usageLimit?: number | null | undefined;
|
|
3207
|
-
featureId: string;
|
|
3208
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3209
|
-
packageId: string;
|
|
3210
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3211
|
-
feature: {
|
|
3212
|
-
__typename?: 'Feature';
|
|
3213
|
-
featureType: FeatureType;
|
|
3214
|
-
meterType?: MeterType | null | undefined;
|
|
3215
|
-
featureUnits?: string | null | undefined;
|
|
3216
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3217
|
-
displayName: string;
|
|
3218
|
-
description?: string | null | undefined;
|
|
3219
|
-
refId: string;
|
|
3220
|
-
};
|
|
3221
|
-
}> | null | undefined;
|
|
3222
|
-
inheritedEntitlements?: Array<{
|
|
3223
|
-
__typename?: 'PackageEntitlement';
|
|
3224
|
-
usageLimit?: number | null | undefined;
|
|
3225
|
-
featureId: string;
|
|
3226
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3227
|
-
packageId: string;
|
|
3228
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3229
|
-
feature: {
|
|
3230
|
-
__typename?: 'Feature';
|
|
3231
|
-
featureType: FeatureType;
|
|
3232
|
-
meterType?: MeterType | null | undefined;
|
|
3233
|
-
featureUnits?: string | null | undefined;
|
|
3234
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3235
|
-
displayName: string;
|
|
3236
|
-
description?: string | null | undefined;
|
|
3237
|
-
refId: string;
|
|
3238
|
-
};
|
|
3239
|
-
}> | null | undefined;
|
|
3240
|
-
prices?: Array<{
|
|
3241
|
-
__typename?: 'Price';
|
|
3242
|
-
} & PriceFragment> | null | undefined;
|
|
3243
|
-
};
|
|
3244
|
-
addons?: Array<{
|
|
3245
|
-
__typename?: 'SubscriptionAddon';
|
|
3246
|
-
id: string;
|
|
3247
|
-
quantity: number;
|
|
3248
|
-
addon: {
|
|
3249
|
-
__typename?: 'Addon';
|
|
3250
|
-
id: string;
|
|
3251
|
-
refId: string;
|
|
3252
|
-
billingId?: string | null | undefined;
|
|
3253
|
-
displayName: string;
|
|
3254
|
-
description?: string | null | undefined;
|
|
3255
|
-
additionalMetaData?: any | null | undefined;
|
|
3256
|
-
entitlements?: Array<{
|
|
3257
|
-
__typename?: 'PackageEntitlement';
|
|
3258
|
-
usageLimit?: number | null | undefined;
|
|
3259
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3260
|
-
featureId: string;
|
|
3261
|
-
feature: {
|
|
3262
|
-
__typename?: 'Feature';
|
|
3263
|
-
featureType: FeatureType;
|
|
3264
|
-
meterType?: MeterType | null | undefined;
|
|
3265
|
-
featureUnits?: string | null | undefined;
|
|
3266
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3267
|
-
displayName: string;
|
|
3268
|
-
description?: string | null | undefined;
|
|
3269
|
-
refId: string;
|
|
3270
|
-
};
|
|
3271
|
-
}> | null | undefined;
|
|
3272
|
-
};
|
|
3273
|
-
}> | null | undefined;
|
|
3274
|
-
scheduledUpdates?: Array<{
|
|
3275
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
3276
|
-
} & SubscriptionScheduledUpdateDataFragment> | null | undefined;
|
|
3277
|
-
};
|
|
3278
|
-
export declare type PromotionalEntitlementFragment = {
|
|
3279
|
-
__typename?: 'PromotionalEntitlement';
|
|
3280
|
-
status: PromotionalEntitlementStatus;
|
|
3281
|
-
usageLimit?: number | null | undefined;
|
|
3282
|
-
featureId: string;
|
|
3283
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3284
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3285
|
-
endDate?: any | null | undefined;
|
|
3286
|
-
isVisible: boolean;
|
|
3287
|
-
feature: {
|
|
3288
|
-
__typename?: 'Feature';
|
|
3289
|
-
featureType: FeatureType;
|
|
3290
|
-
meterType?: MeterType | null | undefined;
|
|
3291
|
-
featureUnits?: string | null | undefined;
|
|
3292
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3293
|
-
displayName: string;
|
|
3294
|
-
description?: string | null | undefined;
|
|
3295
|
-
refId: string;
|
|
3296
|
-
additionalMetaData?: any | null | undefined;
|
|
3297
|
-
};
|
|
3298
|
-
};
|
|
3299
|
-
export declare type CustomerFragment = {
|
|
3300
|
-
__typename?: 'Customer';
|
|
3301
|
-
id: string;
|
|
3302
|
-
name?: string | null | undefined;
|
|
3303
|
-
email?: string | null | undefined;
|
|
3304
|
-
createdAt?: any | null | undefined;
|
|
3305
|
-
updatedAt: any;
|
|
3306
|
-
hasPaymentMethod: boolean;
|
|
3307
|
-
refId: string;
|
|
3308
|
-
additionalMetaData?: any | null | undefined;
|
|
3309
|
-
defaultPaymentExpirationMonth?: number | null | undefined;
|
|
3310
|
-
defaultPaymentExpirationYear?: number | null | undefined;
|
|
3311
|
-
defaultPaymentMethodLast4Digits?: string | null | undefined;
|
|
3312
|
-
experimentInfo?: {
|
|
3313
|
-
__typename?: 'experimentInfo';
|
|
3314
|
-
name: string;
|
|
3315
|
-
groupType: ExperimentGroupType;
|
|
3316
|
-
groupName: string;
|
|
3317
|
-
id: string;
|
|
3318
|
-
} | null | undefined;
|
|
3319
|
-
trialedPlans?: Array<{
|
|
3320
|
-
__typename?: 'TrialedPlan';
|
|
3321
|
-
productId?: string | null | undefined;
|
|
3322
|
-
productRefId?: string | null | undefined;
|
|
3323
|
-
planRefId?: string | null | undefined;
|
|
3324
|
-
planId?: string | null | undefined;
|
|
3325
|
-
}> | null | undefined;
|
|
3326
|
-
eligibleForTrial?: Array<{
|
|
3327
|
-
__typename?: 'EligibleForTrial';
|
|
3328
|
-
productId?: string | null | undefined;
|
|
3329
|
-
productRefId?: string | null | undefined;
|
|
3330
|
-
eligible: boolean;
|
|
3331
|
-
}> | null | undefined;
|
|
3332
|
-
promotionalEntitlements: Array<{
|
|
3333
|
-
__typename?: 'PromotionalEntitlement';
|
|
3334
|
-
} & PromotionalEntitlementFragment>;
|
|
3335
|
-
subscriptions?: Array<{
|
|
3336
|
-
__typename?: 'CustomerSubscription';
|
|
3337
|
-
} & SubscriptionFragment> | null | undefined;
|
|
3338
|
-
};
|
|
3339
|
-
export declare type PriceFragment = {
|
|
3340
|
-
__typename?: 'Price';
|
|
3341
|
-
billingModel: BillingModel;
|
|
3342
|
-
billingPeriod: BillingPeriod;
|
|
3343
|
-
billingId?: string | null | undefined;
|
|
3344
|
-
minUnitQuantity?: number | null | undefined;
|
|
3345
|
-
maxUnitQuantity?: number | null | undefined;
|
|
3346
|
-
price: {
|
|
3347
|
-
__typename?: 'Money';
|
|
3348
|
-
amount: number;
|
|
3349
|
-
currency: Currency;
|
|
3350
|
-
};
|
|
3351
|
-
feature?: {
|
|
3352
|
-
__typename?: 'Feature';
|
|
3353
|
-
featureUnits?: string | null | undefined;
|
|
3354
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3355
|
-
displayName: string;
|
|
3356
|
-
} | null | undefined;
|
|
3357
|
-
};
|
|
3358
|
-
export declare type SubscriptionScheduledUpdateDataFragment = {
|
|
3359
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
3360
|
-
subscriptionScheduleType: SubscriptionScheduleType;
|
|
3361
|
-
scheduleStatus: SubscriptionScheduleStatus;
|
|
3362
|
-
scheduledExecutionTime: any;
|
|
3363
|
-
targetPackage?: {
|
|
3364
|
-
__typename?: 'Plan';
|
|
3365
|
-
id: string;
|
|
3366
|
-
refId: string;
|
|
3367
|
-
displayName: string;
|
|
3368
|
-
} | null | undefined;
|
|
3369
|
-
scheduleVariables?: {
|
|
3370
|
-
__typename?: 'BillingPeriodChangeVariables';
|
|
3371
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
3372
|
-
} | {
|
|
3373
|
-
__typename?: 'DowngradeChangeVariables';
|
|
3374
|
-
addonRefIds?: string | null | undefined;
|
|
3375
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
3376
|
-
downgradePlanRefId: string;
|
|
3377
|
-
} | {
|
|
3378
|
-
__typename?: 'UnitAmountChangeVariables';
|
|
3379
|
-
newUnitAmount?: number | null | undefined;
|
|
3380
|
-
} | null | undefined;
|
|
3381
|
-
};
|
|
3382
3156
|
export {};
|