@stigg/js-client-sdk 1.12.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.
@@ -1,9 +1,10 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetCustomerByRefIdQuery, GetCustomerPortalByRefIdQuery } from './generated/types';
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<GetCustomerByRefIdQuery>>;
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 { GetEntitlementsQuery, GetPaywallQuery, SdkConfigurationQuery } from './generated/types';
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 { GetEntitlementsQuery, EntitlementCheckResult } from './generated/types';
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("./generated/types").Exact<{
12
- query: import("./generated/types").FetchEntitlementsQuery;
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
  }
@@ -1,6 +1,7 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetPaywallQuery, WidgetType } from './generated/types';
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
- Usd = "USD"
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
  };
@@ -2771,9 +2885,6 @@ export declare type CustomerPortalSubscriptionFragment = {
2771
2885
  addons: Array<{
2772
2886
  __typename?: 'CustomerPortalAddon';
2773
2887
  } & CustomerPortalSubscriptionAddonFragment>;
2774
- scheduledUpdates?: Array<{
2775
- __typename?: 'SubscriptionScheduledUpdate';
2776
- } & SubscriptionScheduledUpdateDataFragment> | null | undefined;
2777
2888
  };
2778
2889
  export declare type CustomerPortalConfigurationFragment = {
2779
2890
  __typename?: 'CustomerPortalConfiguration';
@@ -2812,15 +2923,6 @@ export declare type CustomerPortalFragment = {
2812
2923
  __typename?: 'CustomerPortalConfiguration';
2813
2924
  } & CustomerPortalConfigurationFragment) | null | undefined;
2814
2925
  };
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
2926
  export declare type GetCustomerPortalByRefIdQueryVariables = Exact<{
2825
2927
  input: CustomerPortalInput;
2826
2928
  }>;
@@ -2855,35 +2957,6 @@ export declare type FeatureFragment = {
2855
2957
  displayName: string;
2856
2958
  refId: string;
2857
2959
  };
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
2960
  export declare type ReportEntitlementCheckRequestedMutationVariables = Exact<{
2888
2961
  entitlementCheckRequested: EntitlementCheckRequested;
2889
2962
  }>;
@@ -2891,7 +2964,7 @@ export declare type ReportEntitlementCheckRequestedMutation = {
2891
2964
  __typename?: 'Mutation';
2892
2965
  reportEntitlementCheckRequested: boolean;
2893
2966
  };
2894
- export declare type PaywallPackageEntitlementFragment = {
2967
+ export declare type MockPaywallPackageEntitlementFragment = {
2895
2968
  __typename?: 'Entitlement';
2896
2969
  usageLimit?: number | null | undefined;
2897
2970
  hasUnlimitedUsage: boolean;
@@ -2910,7 +2983,7 @@ export declare type PaywallPackageEntitlementFragment = {
2910
2983
  additionalMetaData?: any | null | undefined;
2911
2984
  } | null | undefined;
2912
2985
  };
2913
- export declare type PaywallAddonFragment = {
2986
+ export declare type MockPaywallAddonFragment = {
2914
2987
  __typename?: 'PaywallAddon';
2915
2988
  refId: string;
2916
2989
  displayName: string;
@@ -2920,12 +2993,12 @@ export declare type PaywallAddonFragment = {
2920
2993
  pricingType?: PricingType | null | undefined;
2921
2994
  entitlements: Array<{
2922
2995
  __typename?: 'Entitlement';
2923
- } & PaywallPackageEntitlementFragment>;
2996
+ } & MockPaywallPackageEntitlementFragment>;
2924
2997
  prices: Array<{
2925
2998
  __typename?: 'PaywallPrice';
2926
- } & PaywallPriceFragment>;
2999
+ } & MockPaywallPriceFragment>;
2927
3000
  };
2928
- export declare type PaywallPriceFragment = {
3001
+ export declare type MockPaywallPriceFragment = {
2929
3002
  __typename?: 'PaywallPrice';
2930
3003
  billingModel: BillingModel;
2931
3004
  billingPeriod: BillingPeriod;
@@ -2944,7 +3017,7 @@ export declare type PaywallPriceFragment = {
2944
3017
  displayName: string;
2945
3018
  } | null | undefined;
2946
3019
  };
2947
- export declare type PayWallPlanFragment = {
3020
+ export declare type MockPaywallPlanFragment = {
2948
3021
  __typename?: 'PaywallPlan';
2949
3022
  refId: string;
2950
3023
  description?: string | null | undefined;
@@ -2966,13 +3039,13 @@ export declare type PayWallPlanFragment = {
2966
3039
  } | null | undefined;
2967
3040
  entitlements?: Array<{
2968
3041
  __typename?: 'Entitlement';
2969
- } & PaywallPackageEntitlementFragment> | null | undefined;
3042
+ } & MockPaywallPackageEntitlementFragment> | null | undefined;
2970
3043
  inheritedEntitlements?: Array<{
2971
3044
  __typename?: 'Entitlement';
2972
- } & PaywallPackageEntitlementFragment> | null | undefined;
3045
+ } & MockPaywallPackageEntitlementFragment> | null | undefined;
2973
3046
  prices: Array<{
2974
3047
  __typename?: 'PaywallPrice';
2975
- } & PaywallPriceFragment>;
3048
+ } & MockPaywallPriceFragment>;
2976
3049
  defaultTrialConfig?: {
2977
3050
  __typename?: 'DefaultTrialConfig';
2978
3051
  duration: number;
@@ -2980,7 +3053,7 @@ export declare type PayWallPlanFragment = {
2980
3053
  } | null | undefined;
2981
3054
  compatibleAddons?: Array<{
2982
3055
  __typename?: 'PaywallAddon';
2983
- } & PaywallAddonFragment> | null | undefined;
3056
+ } & MockPaywallAddonFragment> | null | undefined;
2984
3057
  };
2985
3058
  export declare type GetMockPaywallQueryVariables = Exact<{
2986
3059
  input: GetPaywallInput;
@@ -2991,86 +3064,12 @@ export declare type GetMockPaywallQuery = {
2991
3064
  __typename?: 'MockPaywall';
2992
3065
  plans: Array<{
2993
3066
  __typename?: 'PaywallPlan';
2994
- } & PayWallPlanFragment>;
3067
+ } & MockPaywallPlanFragment>;
2995
3068
  configuration?: ({
2996
3069
  __typename?: 'PaywallConfiguration';
2997
3070
  } & PaywallConfigurationFragment) | null | undefined;
2998
3071
  };
2999
3072
  };
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
3073
  export declare type TypographyConfigurationFragment = {
3075
3074
  __typename?: 'TypographyConfiguration';
3076
3075
  fontFamily?: string | null | undefined;
@@ -3116,24 +3115,6 @@ export declare type PaywallConfigurationFragment = {
3116
3115
  __typename?: 'PaywallLayoutConfiguration';
3117
3116
  } & LayoutConfigurationFragment) | null | undefined;
3118
3117
  };
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
3118
  export declare type SdkConfigurationQueryVariables = Exact<{
3138
3119
  [key: string]: never;
3139
3120
  }>;
@@ -3145,238 +3126,4 @@ export declare type SdkConfigurationQuery = {
3145
3126
  isWidgetWatermarkEnabled?: boolean | null | undefined;
3146
3127
  } | null | undefined;
3147
3128
  };
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
3129
  export {};