@stigg/node-server-sdk 0.72.1 → 0.74.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/customerFragments.d.ts +0 -4
- package/dist/api/customerFragments.js +2 -209
- package/dist/api/entitlements/entitlementsApi.d.ts +7 -4
- package/dist/api/entitlements/entitlementsApi.js +9 -12
- package/dist/api/entitlements/entitlementsGql.d.ts +1 -2
- package/dist/api/entitlements/entitlementsGql.js +17 -19
- package/dist/api/generated/types.d.ts +129 -322
- package/dist/api/generated/types.js +114 -1
- package/dist/api/managementApi.d.ts +3 -2
- package/dist/api/managementApi.js +4 -20
- package/dist/client.d.ts +1 -0
- package/dist/client.js +20 -47
- package/dist/clientInitialization.d.ts +12 -0
- package/dist/clientInitialization.js +59 -0
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +1 -1
- package/dist/models.d.ts +2 -5
- package/dist/models.js +2 -6
- package/dist/services/EdgeApiClient.d.ts +2 -1
- package/dist/services/EdgeApiClient.js +1 -1
- package/dist/services/cache/cacheService.d.ts +3 -6
- package/dist/services/cache/inMemoryCacheService.d.ts +2 -5
- package/dist/services/cache/inMemoryCacheService.js +3 -9
- package/dist/services/cache/redisCacheService.d.ts +21 -0
- package/dist/services/cache/redisCacheService.js +142 -0
- package/dist/services/entitlementsService.d.ts +28 -30
- package/dist/services/entitlementsService.js +46 -93
- package/dist/services/inMemoryEntitlementsService.d.ts +20 -0
- package/dist/services/inMemoryEntitlementsService.js +80 -0
- package/dist/services/redisEntitlementsService.d.ts +18 -0
- package/dist/services/redisEntitlementsService.js +83 -0
- package/dist/utils/ModelMapper.d.ts +4 -3
- package/dist/utils/ModelMapper.js +24 -26
- package/dist/utils/apiErrorHandling.js +1 -1
- package/package.json +5 -1
- package/dist/api/packagesFragments.d.ts +0 -1
- package/dist/api/packagesFragments.js +0 -85
|
@@ -380,8 +380,121 @@ export declare type CreateOneProductInput = {
|
|
|
380
380
|
};
|
|
381
381
|
/** Currency */
|
|
382
382
|
export declare enum Currency {
|
|
383
|
+
Aed = "AED",
|
|
384
|
+
All = "ALL",
|
|
385
|
+
Amd = "AMD",
|
|
386
|
+
Ang = "ANG",
|
|
387
|
+
Aud = "AUD",
|
|
388
|
+
Awg = "AWG",
|
|
389
|
+
Azn = "AZN",
|
|
390
|
+
Bam = "BAM",
|
|
391
|
+
Bbd = "BBD",
|
|
392
|
+
Bdt = "BDT",
|
|
393
|
+
Bgn = "BGN",
|
|
394
|
+
Bif = "BIF",
|
|
395
|
+
Bmd = "BMD",
|
|
396
|
+
Bnd = "BND",
|
|
397
|
+
Bsd = "BSD",
|
|
398
|
+
Bwp = "BWP",
|
|
399
|
+
Byn = "BYN",
|
|
400
|
+
Bzd = "BZD",
|
|
401
|
+
Cad = "CAD",
|
|
402
|
+
Cdf = "CDF",
|
|
403
|
+
Chf = "CHF",
|
|
404
|
+
Clp = "CLP",
|
|
405
|
+
Cny = "CNY",
|
|
406
|
+
Czk = "CZK",
|
|
407
|
+
Djf = "DJF",
|
|
408
|
+
Dkk = "DKK",
|
|
409
|
+
Dop = "DOP",
|
|
410
|
+
Dzd = "DZD",
|
|
411
|
+
Egp = "EGP",
|
|
412
|
+
Etb = "ETB",
|
|
413
|
+
Eur = "EUR",
|
|
414
|
+
Fjd = "FJD",
|
|
415
|
+
Gbp = "GBP",
|
|
416
|
+
Gel = "GEL",
|
|
417
|
+
Gip = "GIP",
|
|
418
|
+
Gmd = "GMD",
|
|
419
|
+
Gnf = "GNF",
|
|
420
|
+
Gyd = "GYD",
|
|
421
|
+
Hkd = "HKD",
|
|
422
|
+
Hrk = "HRK",
|
|
423
|
+
Htg = "HTG",
|
|
424
|
+
Idr = "IDR",
|
|
383
425
|
Ils = "ILS",
|
|
384
|
-
|
|
426
|
+
Inr = "INR",
|
|
427
|
+
Isk = "ISK",
|
|
428
|
+
Jmd = "JMD",
|
|
429
|
+
Jpy = "JPY",
|
|
430
|
+
Kes = "KES",
|
|
431
|
+
Kgs = "KGS",
|
|
432
|
+
Khr = "KHR",
|
|
433
|
+
Kmf = "KMF",
|
|
434
|
+
Krw = "KRW",
|
|
435
|
+
Kyd = "KYD",
|
|
436
|
+
Kzt = "KZT",
|
|
437
|
+
Lbp = "LBP",
|
|
438
|
+
Lkr = "LKR",
|
|
439
|
+
Lrd = "LRD",
|
|
440
|
+
Lsl = "LSL",
|
|
441
|
+
Mad = "MAD",
|
|
442
|
+
Mdl = "MDL",
|
|
443
|
+
Mga = "MGA",
|
|
444
|
+
Mkd = "MKD",
|
|
445
|
+
Mmk = "MMK",
|
|
446
|
+
Mnt = "MNT",
|
|
447
|
+
Mop = "MOP",
|
|
448
|
+
Mro = "MRO",
|
|
449
|
+
Mvr = "MVR",
|
|
450
|
+
Mwk = "MWK",
|
|
451
|
+
Mxn = "MXN",
|
|
452
|
+
Myr = "MYR",
|
|
453
|
+
Mzn = "MZN",
|
|
454
|
+
Nad = "NAD",
|
|
455
|
+
Ngn = "NGN",
|
|
456
|
+
Nok = "NOK",
|
|
457
|
+
Npr = "NPR",
|
|
458
|
+
Nzd = "NZD",
|
|
459
|
+
Pgk = "PGK",
|
|
460
|
+
Php = "PHP",
|
|
461
|
+
Pkr = "PKR",
|
|
462
|
+
Pln = "PLN",
|
|
463
|
+
Pyg = "PYG",
|
|
464
|
+
Qar = "QAR",
|
|
465
|
+
Ron = "RON",
|
|
466
|
+
Rsd = "RSD",
|
|
467
|
+
Rub = "RUB",
|
|
468
|
+
Rwf = "RWF",
|
|
469
|
+
Sar = "SAR",
|
|
470
|
+
Sbd = "SBD",
|
|
471
|
+
Scr = "SCR",
|
|
472
|
+
Sek = "SEK",
|
|
473
|
+
Sgd = "SGD",
|
|
474
|
+
Sle = "SLE",
|
|
475
|
+
Sll = "SLL",
|
|
476
|
+
Sos = "SOS",
|
|
477
|
+
Szl = "SZL",
|
|
478
|
+
Thb = "THB",
|
|
479
|
+
Tjs = "TJS",
|
|
480
|
+
Top = "TOP",
|
|
481
|
+
Try = "TRY",
|
|
482
|
+
Ttd = "TTD",
|
|
483
|
+
Tzs = "TZS",
|
|
484
|
+
Uah = "UAH",
|
|
485
|
+
Ugx = "UGX",
|
|
486
|
+
Usd = "USD",
|
|
487
|
+
Uzs = "UZS",
|
|
488
|
+
Vnd = "VND",
|
|
489
|
+
Vuv = "VUV",
|
|
490
|
+
Wst = "WST",
|
|
491
|
+
Xaf = "XAF",
|
|
492
|
+
Xcd = "XCD",
|
|
493
|
+
Xof = "XOF",
|
|
494
|
+
Xpf = "XPF",
|
|
495
|
+
Yer = "YER",
|
|
496
|
+
Zar = "ZAR",
|
|
497
|
+
Zmw = "ZMW"
|
|
385
498
|
}
|
|
386
499
|
export declare type CursorPaging = {
|
|
387
500
|
/** Paginate after opaque cursor */
|
|
@@ -1574,6 +1687,7 @@ export declare type PriceFilterPackageDtoFilter = {
|
|
|
1574
1687
|
versionNumber?: Maybe<IntFieldComparison>;
|
|
1575
1688
|
};
|
|
1576
1689
|
export declare type PricePeriodInput = {
|
|
1690
|
+
billingCountryCode?: Maybe<Scalars['String']>;
|
|
1577
1691
|
billingPeriod: BillingPeriod;
|
|
1578
1692
|
price: MoneyInputDto;
|
|
1579
1693
|
};
|
|
@@ -2713,83 +2827,6 @@ export declare type TotalPriceFragment = {
|
|
|
2713
2827
|
currency: Currency;
|
|
2714
2828
|
};
|
|
2715
2829
|
};
|
|
2716
|
-
export declare type PackageEntitlementFragment = {
|
|
2717
|
-
__typename?: 'PackageEntitlement';
|
|
2718
|
-
usageLimit?: number | null | undefined;
|
|
2719
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
2720
|
-
featureId: string;
|
|
2721
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2722
|
-
feature: {
|
|
2723
|
-
__typename?: 'Feature';
|
|
2724
|
-
featureType: FeatureType;
|
|
2725
|
-
meterType?: MeterType | null | undefined;
|
|
2726
|
-
featureUnits?: string | null | undefined;
|
|
2727
|
-
featureUnitsPlural?: string | null | undefined;
|
|
2728
|
-
displayName: string;
|
|
2729
|
-
description?: string | null | undefined;
|
|
2730
|
-
refId: string;
|
|
2731
|
-
additionalMetaData?: any | null | undefined;
|
|
2732
|
-
};
|
|
2733
|
-
};
|
|
2734
|
-
export declare type AddonFragment = {
|
|
2735
|
-
__typename?: 'Addon';
|
|
2736
|
-
refId: string;
|
|
2737
|
-
billingId?: string | null | undefined;
|
|
2738
|
-
displayName: string;
|
|
2739
|
-
description?: string | null | undefined;
|
|
2740
|
-
additionalMetaData?: any | null | undefined;
|
|
2741
|
-
pricingType?: PricingType | null | undefined;
|
|
2742
|
-
entitlements?: Array<{
|
|
2743
|
-
__typename?: 'PackageEntitlement';
|
|
2744
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
2745
|
-
};
|
|
2746
|
-
export declare type PlanFragment = {
|
|
2747
|
-
__typename?: 'Plan';
|
|
2748
|
-
refId: string;
|
|
2749
|
-
displayName: string;
|
|
2750
|
-
description?: string | null | undefined;
|
|
2751
|
-
billingId?: string | null | undefined;
|
|
2752
|
-
additionalMetaData?: any | null | undefined;
|
|
2753
|
-
pricingType?: PricingType | null | undefined;
|
|
2754
|
-
product: {
|
|
2755
|
-
__typename?: 'Product';
|
|
2756
|
-
refId: string;
|
|
2757
|
-
displayName?: string | null | undefined;
|
|
2758
|
-
description?: string | null | undefined;
|
|
2759
|
-
additionalMetaData?: any | null | undefined;
|
|
2760
|
-
productSettings: {
|
|
2761
|
-
__typename?: 'ProductSettings';
|
|
2762
|
-
downgradePlan?: {
|
|
2763
|
-
__typename?: 'Plan';
|
|
2764
|
-
refId: string;
|
|
2765
|
-
displayName: string;
|
|
2766
|
-
} | null | undefined;
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
basePlan?: {
|
|
2770
|
-
__typename?: 'Plan';
|
|
2771
|
-
id: string;
|
|
2772
|
-
refId: string;
|
|
2773
|
-
displayName: string;
|
|
2774
|
-
} | null | undefined;
|
|
2775
|
-
entitlements?: Array<{
|
|
2776
|
-
__typename?: 'PackageEntitlement';
|
|
2777
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
2778
|
-
inheritedEntitlements?: Array<{
|
|
2779
|
-
__typename?: 'PackageEntitlement';
|
|
2780
|
-
} & PackageEntitlementFragment> | null | undefined;
|
|
2781
|
-
compatibleAddons?: Array<{
|
|
2782
|
-
__typename?: 'Addon';
|
|
2783
|
-
} & AddonFragment> | null | undefined;
|
|
2784
|
-
prices?: Array<{
|
|
2785
|
-
__typename?: 'Price';
|
|
2786
|
-
} & PriceFragment> | null | undefined;
|
|
2787
|
-
defaultTrialConfig?: {
|
|
2788
|
-
__typename?: 'DefaultTrialConfig';
|
|
2789
|
-
duration: number;
|
|
2790
|
-
units: TrialPeriodUnits;
|
|
2791
|
-
} | null | undefined;
|
|
2792
|
-
};
|
|
2793
2830
|
export declare type SlimSubscriptionFragment = {
|
|
2794
2831
|
__typename?: 'CustomerSubscription';
|
|
2795
2832
|
id: string;
|
|
@@ -2838,128 +2875,6 @@ export declare type SlimSubscriptionFragment = {
|
|
|
2838
2875
|
refId: string;
|
|
2839
2876
|
};
|
|
2840
2877
|
};
|
|
2841
|
-
export declare type SubscriptionScheduledUpdateDataFragment = {
|
|
2842
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
2843
|
-
subscriptionScheduleType: SubscriptionScheduleType;
|
|
2844
|
-
scheduleStatus: SubscriptionScheduleStatus;
|
|
2845
|
-
scheduledExecutionTime: any;
|
|
2846
|
-
scheduleVariables?: {
|
|
2847
|
-
__typename?: 'BillingPeriodChangeVariables';
|
|
2848
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
2849
|
-
} | {
|
|
2850
|
-
__typename?: 'DowngradeChangeVariables';
|
|
2851
|
-
addonRefIds?: string | null | undefined;
|
|
2852
|
-
billingPeriod?: BillingPeriod | null | undefined;
|
|
2853
|
-
downgradePlanRefId: string;
|
|
2854
|
-
} | {
|
|
2855
|
-
__typename?: 'UnitAmountChangeVariables';
|
|
2856
|
-
newUnitAmount?: number | null | undefined;
|
|
2857
|
-
} | null | undefined;
|
|
2858
|
-
};
|
|
2859
|
-
export declare type SubscriptionFragment = {
|
|
2860
|
-
__typename?: 'CustomerSubscription';
|
|
2861
|
-
id: string;
|
|
2862
|
-
startDate: any;
|
|
2863
|
-
endDate?: any | null | undefined;
|
|
2864
|
-
trialEndDate?: any | null | undefined;
|
|
2865
|
-
cancellationDate?: any | null | undefined;
|
|
2866
|
-
effectiveEndDate?: any | null | undefined;
|
|
2867
|
-
status: SubscriptionStatus;
|
|
2868
|
-
refId: string;
|
|
2869
|
-
currentBillingPeriodEnd?: any | null | undefined;
|
|
2870
|
-
additionalMetaData?: any | null | undefined;
|
|
2871
|
-
billingId?: string | null | undefined;
|
|
2872
|
-
billingLinkUrl?: string | null | undefined;
|
|
2873
|
-
pricingType: PricingType;
|
|
2874
|
-
experimentInfo?: {
|
|
2875
|
-
__typename?: 'experimentInfo';
|
|
2876
|
-
name: string;
|
|
2877
|
-
groupType: ExperimentGroupType;
|
|
2878
|
-
groupName: string;
|
|
2879
|
-
id: string;
|
|
2880
|
-
} | null | undefined;
|
|
2881
|
-
prices?: Array<{
|
|
2882
|
-
__typename?: 'SubscriptionPrice';
|
|
2883
|
-
usageLimit?: number | null | undefined;
|
|
2884
|
-
price?: ({
|
|
2885
|
-
__typename?: 'Price';
|
|
2886
|
-
} & PriceFragment) | null | undefined;
|
|
2887
|
-
}> | null | undefined;
|
|
2888
|
-
totalPrice?: ({
|
|
2889
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
2890
|
-
} & TotalPriceFragment) | null | undefined;
|
|
2891
|
-
plan: {
|
|
2892
|
-
__typename?: 'Plan';
|
|
2893
|
-
} & PlanFragment;
|
|
2894
|
-
addons?: Array<{
|
|
2895
|
-
__typename?: 'SubscriptionAddon';
|
|
2896
|
-
id: string;
|
|
2897
|
-
quantity: number;
|
|
2898
|
-
addon: {
|
|
2899
|
-
__typename?: 'Addon';
|
|
2900
|
-
} & AddonFragment;
|
|
2901
|
-
}> | null | undefined;
|
|
2902
|
-
scheduledUpdates?: Array<{
|
|
2903
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
2904
|
-
} & SubscriptionScheduledUpdateDataFragment> | null | undefined;
|
|
2905
|
-
};
|
|
2906
|
-
export declare type PromotionalEntitlementFragment = {
|
|
2907
|
-
__typename?: 'PromotionalEntitlement';
|
|
2908
|
-
status: PromotionalEntitlementStatus;
|
|
2909
|
-
usageLimit?: number | null | undefined;
|
|
2910
|
-
featureId: string;
|
|
2911
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
2912
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
2913
|
-
endDate?: any | null | undefined;
|
|
2914
|
-
isVisible: boolean;
|
|
2915
|
-
feature: {
|
|
2916
|
-
__typename?: 'Feature';
|
|
2917
|
-
featureType: FeatureType;
|
|
2918
|
-
meterType?: MeterType | null | undefined;
|
|
2919
|
-
featureUnits?: string | null | undefined;
|
|
2920
|
-
featureUnitsPlural?: string | null | undefined;
|
|
2921
|
-
displayName: string;
|
|
2922
|
-
description?: string | null | undefined;
|
|
2923
|
-
refId: string;
|
|
2924
|
-
additionalMetaData?: any | null | undefined;
|
|
2925
|
-
};
|
|
2926
|
-
};
|
|
2927
|
-
export declare type CustomerFragment = {
|
|
2928
|
-
__typename?: 'Customer';
|
|
2929
|
-
id: string;
|
|
2930
|
-
name?: string | null | undefined;
|
|
2931
|
-
email?: string | null | undefined;
|
|
2932
|
-
createdAt?: any | null | undefined;
|
|
2933
|
-
updatedAt: any;
|
|
2934
|
-
hasPaymentMethod: boolean;
|
|
2935
|
-
refId: string;
|
|
2936
|
-
billingId?: string | null | undefined;
|
|
2937
|
-
defaultPaymentExpirationMonth?: number | null | undefined;
|
|
2938
|
-
defaultPaymentExpirationYear?: number | null | undefined;
|
|
2939
|
-
defaultPaymentMethodLast4Digits?: string | null | undefined;
|
|
2940
|
-
additionalMetaData?: any | null | undefined;
|
|
2941
|
-
trialedPlans?: Array<{
|
|
2942
|
-
__typename?: 'TrialedPlan';
|
|
2943
|
-
productRefId?: string | null | undefined;
|
|
2944
|
-
planRefId?: string | null | undefined;
|
|
2945
|
-
}> | null | undefined;
|
|
2946
|
-
experimentInfo?: {
|
|
2947
|
-
__typename?: 'experimentInfo';
|
|
2948
|
-
groupType: ExperimentGroupType;
|
|
2949
|
-
groupName: string;
|
|
2950
|
-
id: string;
|
|
2951
|
-
name: string;
|
|
2952
|
-
} | null | undefined;
|
|
2953
|
-
coupon?: ({
|
|
2954
|
-
__typename?: 'Coupon';
|
|
2955
|
-
} & CouponFragment) | null | undefined;
|
|
2956
|
-
promotionalEntitlements: Array<{
|
|
2957
|
-
__typename?: 'PromotionalEntitlement';
|
|
2958
|
-
} & PromotionalEntitlementFragment>;
|
|
2959
|
-
subscriptions?: Array<{
|
|
2960
|
-
__typename?: 'CustomerSubscription';
|
|
2961
|
-
} & SubscriptionFragment> | null | undefined;
|
|
2962
|
-
};
|
|
2963
2878
|
export declare type SubscriptionPreviewFragment = {
|
|
2964
2879
|
__typename?: 'SubscriptionPreview';
|
|
2965
2880
|
subTotal: {
|
|
@@ -2992,15 +2907,6 @@ export declare type SubscriptionPreviewFragment = {
|
|
|
2992
2907
|
};
|
|
2993
2908
|
} | null | undefined;
|
|
2994
2909
|
};
|
|
2995
|
-
export declare type GetEntitlementsQueryVariables = Exact<{
|
|
2996
|
-
query: FetchEntitlementsQuery;
|
|
2997
|
-
}>;
|
|
2998
|
-
export declare type GetEntitlementsQuery = {
|
|
2999
|
-
__typename?: 'Query';
|
|
3000
|
-
entitlements: Array<{
|
|
3001
|
-
__typename?: 'Entitlement';
|
|
3002
|
-
} & EntitlementFragment>;
|
|
3003
|
-
};
|
|
3004
2910
|
export declare type CreateUsageMeasurementMutationVariables = Exact<{
|
|
3005
2911
|
usageMeasurement: UsageMeasurementCreateInput;
|
|
3006
2912
|
}>;
|
|
@@ -3018,15 +2924,7 @@ export declare type ReportEntitlementCheckRequestedMutation = {
|
|
|
3018
2924
|
__typename?: 'Mutation';
|
|
3019
2925
|
reportEntitlementCheckRequested: boolean;
|
|
3020
2926
|
};
|
|
3021
|
-
export declare type
|
|
3022
|
-
__typename?: 'EntitlementFeature';
|
|
3023
|
-
featureType: FeatureType;
|
|
3024
|
-
meterType?: MeterType | null | undefined;
|
|
3025
|
-
featureUnits?: string | null | undefined;
|
|
3026
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3027
|
-
refId: string;
|
|
3028
|
-
};
|
|
3029
|
-
export declare type EntitlementFragment = {
|
|
2927
|
+
export declare type UpdatedEntitlementFragment = {
|
|
3030
2928
|
__typename?: 'Entitlement';
|
|
3031
2929
|
isGranted: boolean;
|
|
3032
2930
|
accessDeniedReason?: AccessDeniedReason | null | undefined;
|
|
@@ -3035,6 +2933,8 @@ export declare type EntitlementFragment = {
|
|
|
3035
2933
|
hasUnlimitedUsage: boolean;
|
|
3036
2934
|
currentUsage?: number | null | undefined;
|
|
3037
2935
|
requestedUsage?: number | null | undefined;
|
|
2936
|
+
usageUpdatedAt?: number | null | undefined;
|
|
2937
|
+
entitlementUpdatedAt?: number | null | undefined;
|
|
3038
2938
|
nextResetDate?: any | null | undefined;
|
|
3039
2939
|
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3040
2940
|
resetPeriodConfiguration?: ({
|
|
@@ -3042,9 +2942,16 @@ export declare type EntitlementFragment = {
|
|
|
3042
2942
|
} & ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_) | ({
|
|
3043
2943
|
__typename?: 'WeeklyResetPeriodConfig';
|
|
3044
2944
|
} & ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_) | null | undefined;
|
|
3045
|
-
feature?:
|
|
2945
|
+
feature?: {
|
|
3046
2946
|
__typename?: 'EntitlementFeature';
|
|
3047
|
-
|
|
2947
|
+
featureType: FeatureType;
|
|
2948
|
+
meterType?: MeterType | null | undefined;
|
|
2949
|
+
featureUnits?: string | null | undefined;
|
|
2950
|
+
featureUnitsPlural?: string | null | undefined;
|
|
2951
|
+
description?: string | null | undefined;
|
|
2952
|
+
displayName: string;
|
|
2953
|
+
refId: string;
|
|
2954
|
+
} | null | undefined;
|
|
3048
2955
|
};
|
|
3049
2956
|
declare type ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ = {
|
|
3050
2957
|
__typename: 'MonthlyResetPeriodConfig';
|
|
@@ -3075,7 +2982,7 @@ export declare type EntitlementsUpdatedPayloadFragment = {
|
|
|
3075
2982
|
customerId: string;
|
|
3076
2983
|
entitlements: Array<{
|
|
3077
2984
|
__typename?: 'Entitlement';
|
|
3078
|
-
} &
|
|
2985
|
+
} & UpdatedEntitlementFragment>;
|
|
3079
2986
|
};
|
|
3080
2987
|
export declare type UsageUpdatedSubscriptionVariables = Exact<{
|
|
3081
2988
|
[key: string]: never;
|
|
@@ -3097,7 +3004,7 @@ export declare type EntitlementUsageUpdatedFragment = {
|
|
|
3097
3004
|
};
|
|
3098
3005
|
entitlement: {
|
|
3099
3006
|
__typename?: 'Entitlement';
|
|
3100
|
-
} &
|
|
3007
|
+
} & UpdatedEntitlementFragment;
|
|
3101
3008
|
};
|
|
3102
3009
|
export declare type CreateCustomerMutationVariables = Exact<{
|
|
3103
3010
|
input: CustomerInput;
|
|
@@ -3146,15 +3053,6 @@ export declare type UpdateOneCustomerMutation = {
|
|
|
3146
3053
|
refId: string;
|
|
3147
3054
|
};
|
|
3148
3055
|
};
|
|
3149
|
-
export declare type GetCustomerByRefIdQueryVariables = Exact<{
|
|
3150
|
-
input: GetCustomerByRefIdInput;
|
|
3151
|
-
}>;
|
|
3152
|
-
export declare type GetCustomerByRefIdQuery = {
|
|
3153
|
-
__typename?: 'Query';
|
|
3154
|
-
getCustomerByRefId?: ({
|
|
3155
|
-
__typename?: 'Customer';
|
|
3156
|
-
} & CustomerFragment) | null | undefined;
|
|
3157
|
-
};
|
|
3158
3056
|
export declare type UpdateOneSubscriptionMutationVariables = Exact<{
|
|
3159
3057
|
input: UpdateSubscriptionInput;
|
|
3160
3058
|
}>;
|
|
@@ -3207,18 +3105,6 @@ export declare type InitiateCheckoutMutation = {
|
|
|
3207
3105
|
checkoutBillingId: string;
|
|
3208
3106
|
};
|
|
3209
3107
|
};
|
|
3210
|
-
export declare type GetPaywallQueryVariables = Exact<{
|
|
3211
|
-
input: GetPaywallInput;
|
|
3212
|
-
}>;
|
|
3213
|
-
export declare type GetPaywallQuery = {
|
|
3214
|
-
__typename?: 'Query';
|
|
3215
|
-
paywall: {
|
|
3216
|
-
__typename?: 'Paywall';
|
|
3217
|
-
plans: Array<{
|
|
3218
|
-
__typename?: 'Plan';
|
|
3219
|
-
} & PaywallPlanFragment>;
|
|
3220
|
-
};
|
|
3221
|
-
};
|
|
3222
3108
|
export declare type EstimateSubscriptionMutationVariables = Exact<{
|
|
3223
3109
|
input: EstimateSubscriptionInput;
|
|
3224
3110
|
}>;
|
|
@@ -3244,85 +3130,6 @@ export declare type CancelSubscriptionUpdatesMutation = {
|
|
|
3244
3130
|
__typename?: 'Mutation';
|
|
3245
3131
|
cancelSchedule: string;
|
|
3246
3132
|
};
|
|
3247
|
-
export declare type PaywallPackageEntitlementFragment = {
|
|
3248
|
-
__typename?: 'PackageEntitlement';
|
|
3249
|
-
usageLimit?: number | null | undefined;
|
|
3250
|
-
hasUnlimitedUsage?: boolean | null | undefined;
|
|
3251
|
-
featureId: string;
|
|
3252
|
-
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
3253
|
-
feature: {
|
|
3254
|
-
__typename?: 'Feature';
|
|
3255
|
-
featureType: FeatureType;
|
|
3256
|
-
meterType?: MeterType | null | undefined;
|
|
3257
|
-
featureUnits?: string | null | undefined;
|
|
3258
|
-
featureUnitsPlural?: string | null | undefined;
|
|
3259
|
-
displayName: string;
|
|
3260
|
-
description?: string | null | undefined;
|
|
3261
|
-
refId: string;
|
|
3262
|
-
additionalMetaData?: any | null | undefined;
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
export declare type PaywallAddonFragment = {
|
|
3266
|
-
__typename?: 'Addon';
|
|
3267
|
-
refId: string;
|
|
3268
|
-
displayName: string;
|
|
3269
|
-
billingId?: string | null | undefined;
|
|
3270
|
-
description?: string | null | undefined;
|
|
3271
|
-
additionalMetaData?: any | null | undefined;
|
|
3272
|
-
pricingType?: PricingType | null | undefined;
|
|
3273
|
-
entitlements?: Array<{
|
|
3274
|
-
__typename?: 'PackageEntitlement';
|
|
3275
|
-
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
3276
|
-
prices?: Array<{
|
|
3277
|
-
__typename?: 'Price';
|
|
3278
|
-
} & PriceFragment> | null | undefined;
|
|
3279
|
-
};
|
|
3280
|
-
export declare type PaywallPlanFragment = {
|
|
3281
|
-
__typename?: 'Plan';
|
|
3282
|
-
refId: string;
|
|
3283
|
-
description?: string | null | undefined;
|
|
3284
|
-
displayName: string;
|
|
3285
|
-
billingId?: string | null | undefined;
|
|
3286
|
-
additionalMetaData?: any | null | undefined;
|
|
3287
|
-
pricingType?: PricingType | null | undefined;
|
|
3288
|
-
product: {
|
|
3289
|
-
__typename?: 'Product';
|
|
3290
|
-
refId: string;
|
|
3291
|
-
displayName?: string | null | undefined;
|
|
3292
|
-
description?: string | null | undefined;
|
|
3293
|
-
additionalMetaData?: any | null | undefined;
|
|
3294
|
-
productSettings: {
|
|
3295
|
-
__typename?: 'ProductSettings';
|
|
3296
|
-
downgradePlan?: {
|
|
3297
|
-
__typename?: 'Plan';
|
|
3298
|
-
refId: string;
|
|
3299
|
-
displayName: string;
|
|
3300
|
-
} | null | undefined;
|
|
3301
|
-
};
|
|
3302
|
-
};
|
|
3303
|
-
basePlan?: {
|
|
3304
|
-
__typename?: 'Plan';
|
|
3305
|
-
refId: string;
|
|
3306
|
-
displayName: string;
|
|
3307
|
-
} | null | undefined;
|
|
3308
|
-
entitlements?: Array<{
|
|
3309
|
-
__typename?: 'PackageEntitlement';
|
|
3310
|
-
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
3311
|
-
inheritedEntitlements?: Array<{
|
|
3312
|
-
__typename?: 'PackageEntitlement';
|
|
3313
|
-
} & PaywallPackageEntitlementFragment> | null | undefined;
|
|
3314
|
-
prices?: Array<{
|
|
3315
|
-
__typename?: 'Price';
|
|
3316
|
-
} & PriceFragment> | null | undefined;
|
|
3317
|
-
defaultTrialConfig?: {
|
|
3318
|
-
__typename?: 'DefaultTrialConfig';
|
|
3319
|
-
duration: number;
|
|
3320
|
-
units: TrialPeriodUnits;
|
|
3321
|
-
} | null | undefined;
|
|
3322
|
-
compatibleAddons?: Array<{
|
|
3323
|
-
__typename?: 'Addon';
|
|
3324
|
-
} & PaywallAddonFragment> | null | undefined;
|
|
3325
|
-
};
|
|
3326
3133
|
export declare type SdkConfigurationQueryVariables = Exact<{
|
|
3327
3134
|
[key: string]: never;
|
|
3328
3135
|
}>;
|