@stigg/js-client-sdk 1.10.0 → 1.13.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/CustomersApi.d.ts +3 -2
- package/dist/api/EdgeApiClient.d.ts +3 -1
- package/dist/api/EntitlementsApi.d.ts +4 -3
- package/dist/api/PaywallApi.d.ts +2 -1
- package/dist/api/SdkConfigurationApi.d.ts +5 -6
- package/dist/api/generated/types.d.ts +130 -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 +5 -2
- 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
|
@@ -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 */
|
|
@@ -954,6 +1067,7 @@ export declare type FeatureFilter = {
|
|
|
954
1067
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
955
1068
|
};
|
|
956
1069
|
export declare type FeatureInput = {
|
|
1070
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
957
1071
|
description?: InputMaybe<Scalars['String']>;
|
|
958
1072
|
displayName: Scalars['String'];
|
|
959
1073
|
environmentId: Scalars['String'];
|
|
@@ -1574,6 +1688,7 @@ export declare type PriceFilterPackageDtoFilter = {
|
|
|
1574
1688
|
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
1575
1689
|
};
|
|
1576
1690
|
export declare type PricePeriodInput = {
|
|
1691
|
+
billingCountryCode?: InputMaybe<Scalars['String']>;
|
|
1577
1692
|
billingPeriod: BillingPeriod;
|
|
1578
1693
|
price: MoneyInputDto;
|
|
1579
1694
|
};
|
|
@@ -2410,6 +2525,7 @@ export declare type UpdateExperimentInput = {
|
|
|
2410
2525
|
variantPercentage?: InputMaybe<Scalars['Float']>;
|
|
2411
2526
|
};
|
|
2412
2527
|
export declare type UpdateFeature = {
|
|
2528
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2413
2529
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2414
2530
|
description?: InputMaybe<Scalars['String']>;
|
|
2415
2531
|
displayName?: InputMaybe<Scalars['String']>;
|
|
@@ -2424,6 +2540,7 @@ export declare type UpdateFeature = {
|
|
|
2424
2540
|
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
|
2425
2541
|
};
|
|
2426
2542
|
export declare type UpdateFeatureInput = {
|
|
2543
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2427
2544
|
description?: InputMaybe<Scalars['String']>;
|
|
2428
2545
|
displayName?: InputMaybe<Scalars['String']>;
|
|
2429
2546
|
environmentId: Scalars['String'];
|
|
@@ -2768,9 +2885,6 @@ export declare type CustomerPortalSubscriptionFragment = {
|
|
|
2768
2885
|
addons: Array<{
|
|
2769
2886
|
__typename?: 'CustomerPortalAddon';
|
|
2770
2887
|
} & CustomerPortalSubscriptionAddonFragment>;
|
|
2771
|
-
scheduledUpdates?: Array<{
|
|
2772
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
2773
|
-
} & SubscriptionScheduledUpdateDataFragment> | null | undefined;
|
|
2774
2888
|
};
|
|
2775
2889
|
export declare type CustomerPortalConfigurationFragment = {
|
|
2776
2890
|
__typename?: 'CustomerPortalConfiguration';
|
|
@@ -2809,15 +2923,6 @@ export declare type CustomerPortalFragment = {
|
|
|
2809
2923
|
__typename?: 'CustomerPortalConfiguration';
|
|
2810
2924
|
} & CustomerPortalConfigurationFragment) | null | undefined;
|
|
2811
2925
|
};
|
|
2812
|
-
export declare type GetCustomerByRefIdQueryVariables = Exact<{
|
|
2813
|
-
input: GetCustomerByRefIdInput;
|
|
2814
|
-
}>;
|
|
2815
|
-
export declare type GetCustomerByRefIdQuery = {
|
|
2816
|
-
__typename?: 'Query';
|
|
2817
|
-
getCustomerByRefId?: ({
|
|
2818
|
-
__typename?: 'Customer';
|
|
2819
|
-
} & CustomerFragment) | null | undefined;
|
|
2820
|
-
};
|
|
2821
2926
|
export declare type GetCustomerPortalByRefIdQueryVariables = Exact<{
|
|
2822
2927
|
input: CustomerPortalInput;
|
|
2823
2928
|
}>;
|
|
@@ -2852,35 +2957,6 @@ export declare type FeatureFragment = {
|
|
|
2852
2957
|
displayName: string;
|
|
2853
2958
|
refId: string;
|
|
2854
2959
|
};
|
|
2855
|
-
export declare type EntitlementFragment = {
|
|
2856
|
-
__typename?: 'Entitlement';
|
|
2857
|
-
isGranted: boolean;
|
|
2858
|
-
accessDeniedReason?: AccessDeniedReason | null | undefined;
|
|
2859
|
-
customerId?: string | null | undefined;
|
|
2860
|
-
usageLimit?: number | null | undefined;
|
|
2861
|
-
hasUnlimitedUsage: boolean;
|
|
2862
|
-
currentUsage?: number | null | undefined;
|
|
2863
|
-
requestedUsage?: number | null | undefined;
|
|
2864
|
-
nextResetDate?: any | null | undefined;
|
|
2865
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2866
|
-
resetPeriodConfiguration?: ({
|
|
2867
|
-
__typename?: 'MonthlyResetPeriodConfig';
|
|
2868
|
-
} & ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_) | ({
|
|
2869
|
-
__typename?: 'WeeklyResetPeriodConfig';
|
|
2870
|
-
} & ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_) | null | undefined;
|
|
2871
|
-
feature?: ({
|
|
2872
|
-
__typename?: 'EntitlementFeature';
|
|
2873
|
-
} & FeatureFragment) | null | undefined;
|
|
2874
|
-
};
|
|
2875
|
-
export declare type GetEntitlementsQueryVariables = Exact<{
|
|
2876
|
-
query: FetchEntitlementsQuery;
|
|
2877
|
-
}>;
|
|
2878
|
-
export declare type GetEntitlementsQuery = {
|
|
2879
|
-
__typename?: 'Query';
|
|
2880
|
-
entitlements: Array<{
|
|
2881
|
-
__typename?: 'Entitlement';
|
|
2882
|
-
} & EntitlementFragment>;
|
|
2883
|
-
};
|
|
2884
2960
|
export declare type ReportEntitlementCheckRequestedMutationVariables = Exact<{
|
|
2885
2961
|
entitlementCheckRequested: EntitlementCheckRequested;
|
|
2886
2962
|
}>;
|
|
@@ -2888,7 +2964,7 @@ export declare type ReportEntitlementCheckRequestedMutation = {
|
|
|
2888
2964
|
__typename?: 'Mutation';
|
|
2889
2965
|
reportEntitlementCheckRequested: boolean;
|
|
2890
2966
|
};
|
|
2891
|
-
export declare type
|
|
2967
|
+
export declare type MockPaywallPackageEntitlementFragment = {
|
|
2892
2968
|
__typename?: 'Entitlement';
|
|
2893
2969
|
usageLimit?: number | null | undefined;
|
|
2894
2970
|
hasUnlimitedUsage: boolean;
|
|
@@ -2904,9 +2980,10 @@ export declare type PaywallPackageEntitlementFragment = {
|
|
|
2904
2980
|
displayName: string;
|
|
2905
2981
|
description?: string | null | undefined;
|
|
2906
2982
|
refId: string;
|
|
2983
|
+
additionalMetaData?: any | null | undefined;
|
|
2907
2984
|
} | null | undefined;
|
|
2908
2985
|
};
|
|
2909
|
-
export declare type
|
|
2986
|
+
export declare type MockPaywallAddonFragment = {
|
|
2910
2987
|
__typename?: 'PaywallAddon';
|
|
2911
2988
|
refId: string;
|
|
2912
2989
|
displayName: string;
|
|
@@ -2916,12 +2993,12 @@ export declare type PaywallAddonFragment = {
|
|
|
2916
2993
|
pricingType?: PricingType | null | undefined;
|
|
2917
2994
|
entitlements: Array<{
|
|
2918
2995
|
__typename?: 'Entitlement';
|
|
2919
|
-
} &
|
|
2996
|
+
} & MockPaywallPackageEntitlementFragment>;
|
|
2920
2997
|
prices: Array<{
|
|
2921
2998
|
__typename?: 'PaywallPrice';
|
|
2922
|
-
} &
|
|
2999
|
+
} & MockPaywallPriceFragment>;
|
|
2923
3000
|
};
|
|
2924
|
-
export declare type
|
|
3001
|
+
export declare type MockPaywallPriceFragment = {
|
|
2925
3002
|
__typename?: 'PaywallPrice';
|
|
2926
3003
|
billingModel: BillingModel;
|
|
2927
3004
|
billingPeriod: BillingPeriod;
|
|
@@ -2940,7 +3017,7 @@ export declare type PaywallPriceFragment = {
|
|
|
2940
3017
|
displayName: string;
|
|
2941
3018
|
} | null | undefined;
|
|
2942
3019
|
};
|
|
2943
|
-
export declare type
|
|
3020
|
+
export declare type MockPaywallPlanFragment = {
|
|
2944
3021
|
__typename?: 'PaywallPlan';
|
|
2945
3022
|
refId: string;
|
|
2946
3023
|
description?: string | null | undefined;
|
|
@@ -2962,13 +3039,13 @@ export declare type PayWallPlanFragment = {
|
|
|
2962
3039
|
} | null | undefined;
|
|
2963
3040
|
entitlements?: Array<{
|
|
2964
3041
|
__typename?: 'Entitlement';
|
|
2965
|
-
} &
|
|
3042
|
+
} & MockPaywallPackageEntitlementFragment> | null | undefined;
|
|
2966
3043
|
inheritedEntitlements?: Array<{
|
|
2967
3044
|
__typename?: 'Entitlement';
|
|
2968
|
-
} &
|
|
3045
|
+
} & MockPaywallPackageEntitlementFragment> | null | undefined;
|
|
2969
3046
|
prices: Array<{
|
|
2970
3047
|
__typename?: 'PaywallPrice';
|
|
2971
|
-
} &
|
|
3048
|
+
} & MockPaywallPriceFragment>;
|
|
2972
3049
|
defaultTrialConfig?: {
|
|
2973
3050
|
__typename?: 'DefaultTrialConfig';
|
|
2974
3051
|
duration: number;
|
|
@@ -2976,7 +3053,7 @@ export declare type PayWallPlanFragment = {
|
|
|
2976
3053
|
} | null | undefined;
|
|
2977
3054
|
compatibleAddons?: Array<{
|
|
2978
3055
|
__typename?: 'PaywallAddon';
|
|
2979
|
-
} &
|
|
3056
|
+
} & MockPaywallAddonFragment> | null | undefined;
|
|
2980
3057
|
};
|
|
2981
3058
|
export declare type GetMockPaywallQueryVariables = Exact<{
|
|
2982
3059
|
input: GetPaywallInput;
|
|
@@ -2987,85 +3064,12 @@ export declare type GetMockPaywallQuery = {
|
|
|
2987
3064
|
__typename?: 'MockPaywall';
|
|
2988
3065
|
plans: Array<{
|
|
2989
3066
|
__typename?: 'PaywallPlan';
|
|
2990
|
-
} &
|
|
3067
|
+
} & MockPaywallPlanFragment>;
|
|
2991
3068
|
configuration?: ({
|
|
2992
3069
|
__typename?: 'PaywallConfiguration';
|
|
2993
3070
|
} & PaywallConfigurationFragment) | null | undefined;
|
|
2994
3071
|
};
|
|
2995
3072
|
};
|
|
2996
|
-
export declare type PackageEntitlementFragment = {
|
|
2997
|
-
__typename?: 'PackageEntitlement';
|
|
2998
|
-
usageLimit?: number | null | undefined;
|
|
2999
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3000
|
-
featureId: string;
|
|
3001
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3002
|
-
isCustom?: boolean | null | undefined;
|
|
3003
|
-
hiddenFromWidgets?: Array<WidgetType> | null | undefined;
|
|
3004
|
-
displayNameOverride?: string | null | undefined;
|
|
3005
|
-
feature: {
|
|
3006
|
-
__typename?: 'Feature';
|
|
3007
|
-
featureType: FeatureType;
|
|
3008
|
-
meterType?: MeterType | null | undefined;
|
|
3009
|
-
featureUnits?: string | null | undefined;
|
|
3010
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3011
|
-
displayName: string;
|
|
3012
|
-
description?: string | null | undefined;
|
|
3013
|
-
refId: string;
|
|
3014
|
-
};
|
|
3015
|
-
};
|
|
3016
|
-
export declare type AddonFragment = {
|
|
3017
|
-
__typename?: 'Addon';
|
|
3018
|
-
refId: string;
|
|
3019
|
-
displayName: string;
|
|
3020
|
-
billingId?: string | null | undefined;
|
|
3021
|
-
description?: string | null | undefined;
|
|
3022
|
-
additionalMetaData?: any | null | undefined;
|
|
3023
|
-
pricingType?: PricingType | null | undefined;
|
|
3024
|
-
entitlements?: Array<{
|
|
3025
|
-
__typename?: 'PackageEntitlement';
|
|
3026
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3027
|
-
prices?: Array<{
|
|
3028
|
-
__typename?: 'Price';
|
|
3029
|
-
} & PriceFragment> | null | undefined;
|
|
3030
|
-
};
|
|
3031
|
-
export declare type PlanFragment = {
|
|
3032
|
-
__typename?: 'Plan';
|
|
3033
|
-
refId: string;
|
|
3034
|
-
description?: string | null | undefined;
|
|
3035
|
-
displayName: string;
|
|
3036
|
-
billingId?: string | null | undefined;
|
|
3037
|
-
additionalMetaData?: any | null | undefined;
|
|
3038
|
-
pricingType?: PricingType | null | undefined;
|
|
3039
|
-
product: {
|
|
3040
|
-
__typename?: 'Product';
|
|
3041
|
-
refId: string;
|
|
3042
|
-
displayName?: string | null | undefined;
|
|
3043
|
-
description?: string | null | undefined;
|
|
3044
|
-
additionalMetaData?: any | null | undefined;
|
|
3045
|
-
};
|
|
3046
|
-
basePlan?: {
|
|
3047
|
-
__typename?: 'Plan';
|
|
3048
|
-
refId: string;
|
|
3049
|
-
displayName: string;
|
|
3050
|
-
} | null | undefined;
|
|
3051
|
-
entitlements?: Array<{
|
|
3052
|
-
__typename?: 'PackageEntitlement';
|
|
3053
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3054
|
-
inheritedEntitlements?: Array<{
|
|
3055
|
-
__typename?: 'PackageEntitlement';
|
|
3056
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
3057
|
-
prices?: Array<{
|
|
3058
|
-
__typename?: 'Price';
|
|
3059
|
-
} & PriceFragment> | null | undefined;
|
|
3060
|
-
defaultTrialConfig?: {
|
|
3061
|
-
__typename?: 'DefaultTrialConfig';
|
|
3062
|
-
duration: number;
|
|
3063
|
-
units: TrialPeriodUnits;
|
|
3064
|
-
} | null | undefined;
|
|
3065
|
-
compatibleAddons?: Array<{
|
|
3066
|
-
__typename?: 'Addon';
|
|
3067
|
-
} & AddonFragment> | null | undefined;
|
|
3068
|
-
};
|
|
3069
3073
|
export declare type TypographyConfigurationFragment = {
|
|
3070
3074
|
__typename?: 'TypographyConfiguration';
|
|
3071
3075
|
fontFamily?: string | null | undefined;
|
|
@@ -3111,24 +3115,6 @@ export declare type PaywallConfigurationFragment = {
|
|
|
3111
3115
|
__typename?: 'PaywallLayoutConfiguration';
|
|
3112
3116
|
} & LayoutConfigurationFragment) | null | undefined;
|
|
3113
3117
|
};
|
|
3114
|
-
export declare type GetPaywallQueryVariables = Exact<{
|
|
3115
|
-
input: GetPaywallInput;
|
|
3116
|
-
}>;
|
|
3117
|
-
export declare type GetPaywallQuery = {
|
|
3118
|
-
__typename?: 'Query';
|
|
3119
|
-
paywall: {
|
|
3120
|
-
__typename?: 'Paywall';
|
|
3121
|
-
plans: Array<{
|
|
3122
|
-
__typename?: 'Plan';
|
|
3123
|
-
} & PlanFragment>;
|
|
3124
|
-
configuration?: ({
|
|
3125
|
-
__typename?: 'PaywallConfiguration';
|
|
3126
|
-
} & PaywallConfigurationFragment) | null | undefined;
|
|
3127
|
-
customer?: ({
|
|
3128
|
-
__typename?: 'Customer';
|
|
3129
|
-
} & CustomerFragment) | null | undefined;
|
|
3130
|
-
};
|
|
3131
|
-
};
|
|
3132
3118
|
export declare type SdkConfigurationQueryVariables = Exact<{
|
|
3133
3119
|
[key: string]: never;
|
|
3134
3120
|
}>;
|
|
@@ -3140,237 +3126,4 @@ export declare type SdkConfigurationQuery = {
|
|
|
3140
3126
|
isWidgetWatermarkEnabled?: boolean | null | undefined;
|
|
3141
3127
|
} | null | undefined;
|
|
3142
3128
|
};
|
|
3143
|
-
export declare type TotalPriceFragment = {
|
|
3144
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
3145
|
-
subTotal: {
|
|
3146
|
-
__typename?: 'Money';
|
|
3147
|
-
amount: number;
|
|
3148
|
-
currency: Currency;
|
|
3149
|
-
};
|
|
3150
|
-
total: {
|
|
3151
|
-
__typename?: 'Money';
|
|
3152
|
-
amount: number;
|
|
3153
|
-
currency: Currency;
|
|
3154
|
-
};
|
|
3155
|
-
};
|
|
3156
|
-
export declare type SubscriptionFragment = {
|
|
3157
|
-
__typename?: 'CustomerSubscription';
|
|
3158
|
-
id: string;
|
|
3159
|
-
startDate: any;
|
|
3160
|
-
endDate?: any | null | undefined;
|
|
3161
|
-
trialEndDate?: any | null | undefined;
|
|
3162
|
-
cancellationDate?: any | null | undefined;
|
|
3163
|
-
effectiveEndDate?: any | null | undefined;
|
|
3164
|
-
status: SubscriptionStatus;
|
|
3165
|
-
refId: string;
|
|
3166
|
-
currentBillingPeriodEnd?: any | null | undefined;
|
|
3167
|
-
additionalMetaData?: any | null | undefined;
|
|
3168
|
-
pricingType: PricingType;
|
|
3169
|
-
experimentInfo?: {
|
|
3170
|
-
__typename?: 'experimentInfo';
|
|
3171
|
-
name: string;
|
|
3172
|
-
groupName: string;
|
|
3173
|
-
groupType: ExperimentGroupType;
|
|
3174
|
-
id: string;
|
|
3175
|
-
} | null | undefined;
|
|
3176
|
-
prices?: Array<{
|
|
3177
|
-
__typename?: 'SubscriptionPrice';
|
|
3178
|
-
usageLimit?: number | null | undefined;
|
|
3179
|
-
price?: ({
|
|
3180
|
-
__typename?: 'Price';
|
|
3181
|
-
} & PriceFragment) | null | undefined;
|
|
3182
|
-
}> | null | undefined;
|
|
3183
|
-
totalPrice?: ({
|
|
3184
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
3185
|
-
} & TotalPriceFragment) | null | undefined;
|
|
3186
|
-
plan: {
|
|
3187
|
-
__typename?: 'Plan';
|
|
3188
|
-
id: string;
|
|
3189
|
-
refId: string;
|
|
3190
|
-
billingId?: string | null | undefined;
|
|
3191
|
-
displayName: string;
|
|
3192
|
-
description?: string | null | undefined;
|
|
3193
|
-
additionalMetaData?: any | null | undefined;
|
|
3194
|
-
product: {
|
|
3195
|
-
__typename?: 'Product';
|
|
3196
|
-
refId: string;
|
|
3197
|
-
displayName?: string | null | undefined;
|
|
3198
|
-
};
|
|
3199
|
-
entitlements?: Array<{
|
|
3200
|
-
__typename?: 'PackageEntitlement';
|
|
3201
|
-
usageLimit?: number | null | undefined;
|
|
3202
|
-
featureId: string;
|
|
3203
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3204
|
-
packageId: string;
|
|
3205
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3206
|
-
feature: {
|
|
3207
|
-
__typename?: 'Feature';
|
|
3208
|
-
featureType: FeatureType;
|
|
3209
|
-
meterType?: MeterType | null | undefined;
|
|
3210
|
-
featureUnits?: string | null | undefined;
|
|
3211
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3212
|
-
displayName: string;
|
|
3213
|
-
description?: string | null | undefined;
|
|
3214
|
-
refId: string;
|
|
3215
|
-
};
|
|
3216
|
-
}> | null | undefined;
|
|
3217
|
-
inheritedEntitlements?: Array<{
|
|
3218
|
-
__typename?: 'PackageEntitlement';
|
|
3219
|
-
usageLimit?: number | null | undefined;
|
|
3220
|
-
featureId: string;
|
|
3221
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3222
|
-
packageId: string;
|
|
3223
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3224
|
-
feature: {
|
|
3225
|
-
__typename?: 'Feature';
|
|
3226
|
-
featureType: FeatureType;
|
|
3227
|
-
meterType?: MeterType | null | undefined;
|
|
3228
|
-
featureUnits?: string | null | undefined;
|
|
3229
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3230
|
-
displayName: string;
|
|
3231
|
-
description?: string | null | undefined;
|
|
3232
|
-
refId: string;
|
|
3233
|
-
};
|
|
3234
|
-
}> | null | undefined;
|
|
3235
|
-
prices?: Array<{
|
|
3236
|
-
__typename?: 'Price';
|
|
3237
|
-
} & PriceFragment> | null | undefined;
|
|
3238
|
-
};
|
|
3239
|
-
addons?: Array<{
|
|
3240
|
-
__typename?: 'SubscriptionAddon';
|
|
3241
|
-
id: string;
|
|
3242
|
-
quantity: number;
|
|
3243
|
-
addon: {
|
|
3244
|
-
__typename?: 'Addon';
|
|
3245
|
-
id: string;
|
|
3246
|
-
refId: string;
|
|
3247
|
-
billingId?: string | null | undefined;
|
|
3248
|
-
displayName: string;
|
|
3249
|
-
description?: string | null | undefined;
|
|
3250
|
-
additionalMetaData?: any | null | undefined;
|
|
3251
|
-
entitlements?: Array<{
|
|
3252
|
-
__typename?: 'PackageEntitlement';
|
|
3253
|
-
usageLimit?: number | null | undefined;
|
|
3254
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3255
|
-
featureId: string;
|
|
3256
|
-
feature: {
|
|
3257
|
-
__typename?: 'Feature';
|
|
3258
|
-
featureType: FeatureType;
|
|
3259
|
-
meterType?: MeterType | null | undefined;
|
|
3260
|
-
featureUnits?: string | null | undefined;
|
|
3261
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3262
|
-
displayName: string;
|
|
3263
|
-
description?: string | null | undefined;
|
|
3264
|
-
refId: string;
|
|
3265
|
-
};
|
|
3266
|
-
}> | null | undefined;
|
|
3267
|
-
};
|
|
3268
|
-
}> | null | undefined;
|
|
3269
|
-
scheduledUpdates?: Array<{
|
|
3270
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
3271
|
-
} & SubscriptionScheduledUpdateDataFragment> | null | undefined;
|
|
3272
|
-
};
|
|
3273
|
-
export declare type PromotionalEntitlementFragment = {
|
|
3274
|
-
__typename?: 'PromotionalEntitlement';
|
|
3275
|
-
status: PromotionalEntitlementStatus;
|
|
3276
|
-
usageLimit?: number | null | undefined;
|
|
3277
|
-
featureId: string;
|
|
3278
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3279
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3280
|
-
endDate?: any | null | undefined;
|
|
3281
|
-
isVisible: boolean;
|
|
3282
|
-
feature: {
|
|
3283
|
-
__typename?: 'Feature';
|
|
3284
|
-
featureType: FeatureType;
|
|
3285
|
-
meterType?: MeterType | null | undefined;
|
|
3286
|
-
featureUnits?: string | null | undefined;
|
|
3287
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3288
|
-
displayName: string;
|
|
3289
|
-
description?: string | null | undefined;
|
|
3290
|
-
refId: string;
|
|
3291
|
-
};
|
|
3292
|
-
};
|
|
3293
|
-
export declare type CustomerFragment = {
|
|
3294
|
-
__typename?: 'Customer';
|
|
3295
|
-
id: string;
|
|
3296
|
-
name?: string | null | undefined;
|
|
3297
|
-
email?: string | null | undefined;
|
|
3298
|
-
createdAt?: any | null | undefined;
|
|
3299
|
-
updatedAt: any;
|
|
3300
|
-
hasPaymentMethod: boolean;
|
|
3301
|
-
refId: string;
|
|
3302
|
-
additionalMetaData?: any | null | undefined;
|
|
3303
|
-
defaultPaymentExpirationMonth?: number | null | undefined;
|
|
3304
|
-
defaultPaymentExpirationYear?: number | null | undefined;
|
|
3305
|
-
defaultPaymentMethodLast4Digits?: string | null | undefined;
|
|
3306
|
-
experimentInfo?: {
|
|
3307
|
-
__typename?: 'experimentInfo';
|
|
3308
|
-
name: string;
|
|
3309
|
-
groupType: ExperimentGroupType;
|
|
3310
|
-
groupName: string;
|
|
3311
|
-
id: string;
|
|
3312
|
-
} | null | undefined;
|
|
3313
|
-
trialedPlans?: Array<{
|
|
3314
|
-
__typename?: 'TrialedPlan';
|
|
3315
|
-
productId?: string | null | undefined;
|
|
3316
|
-
productRefId?: string | null | undefined;
|
|
3317
|
-
planRefId?: string | null | undefined;
|
|
3318
|
-
planId?: string | null | undefined;
|
|
3319
|
-
}> | null | undefined;
|
|
3320
|
-
eligibleForTrial?: Array<{
|
|
3321
|
-
__typename?: 'EligibleForTrial';
|
|
3322
|
-
productId?: string | null | undefined;
|
|
3323
|
-
productRefId?: string | null | undefined;
|
|
3324
|
-
eligible: boolean;
|
|
3325
|
-
}> | null | undefined;
|
|
3326
|
-
promotionalEntitlements: Array<{
|
|
3327
|
-
__typename?: 'PromotionalEntitlement';
|
|
3328
|
-
} & PromotionalEntitlementFragment>;
|
|
3329
|
-
subscriptions?: Array<{
|
|
3330
|
-
__typename?: 'CustomerSubscription';
|
|
3331
|
-
} & SubscriptionFragment> | null | undefined;
|
|
3332
|
-
};
|
|
3333
|
-
export declare type PriceFragment = {
|
|
3334
|
-
__typename?: 'Price';
|
|
3335
|
-
billingModel: BillingModel;
|
|
3336
|
-
billingPeriod: BillingPeriod;
|
|
3337
|
-
billingId?: string | null | undefined;
|
|
3338
|
-
minUnitQuantity?: number | null | undefined;
|
|
3339
|
-
maxUnitQuantity?: number | null | undefined;
|
|
3340
|
-
price: {
|
|
3341
|
-
__typename?: 'Money';
|
|
3342
|
-
amount: number;
|
|
3343
|
-
currency: Currency;
|
|
3344
|
-
};
|
|
3345
|
-
feature?: {
|
|
3346
|
-
__typename?: 'Feature';
|
|
3347
|
-
featureUnits?: string | null | undefined;
|
|
3348
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3349
|
-
displayName: string;
|
|
3350
|
-
} | null | undefined;
|
|
3351
|
-
};
|
|
3352
|
-
export declare type SubscriptionScheduledUpdateDataFragment = {
|
|
3353
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
3354
|
-
subscriptionScheduleType: SubscriptionScheduleType;
|
|
3355
|
-
scheduleStatus: SubscriptionScheduleStatus;
|
|
3356
|
-
scheduledExecutionTime: any;
|
|
3357
|
-
targetPackage?: {
|
|
3358
|
-
__typename?: 'Plan';
|
|
3359
|
-
id: string;
|
|
3360
|
-
refId: string;
|
|
3361
|
-
displayName: string;
|
|
3362
|
-
} | null | undefined;
|
|
3363
|
-
scheduleVariables?: {
|
|
3364
|
-
__typename?: 'BillingPeriodChangeVariables';
|
|
3365
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
3366
|
-
} | {
|
|
3367
|
-
__typename?: 'DowngradeChangeVariables';
|
|
3368
|
-
addonRefIds?: string | null | undefined;
|
|
3369
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
3370
|
-
downgradePlanRefId: string;
|
|
3371
|
-
} | {
|
|
3372
|
-
__typename?: 'UnitAmountChangeVariables';
|
|
3373
|
-
newUnitAmount?: number | null | undefined;
|
|
3374
|
-
} | null | undefined;
|
|
3375
|
-
};
|
|
3376
3129
|
export {};
|