@stigg/api-client-js 0.0.9 → 0.2.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/package.json +1 -1
- package/src/generated/sdk.d.ts +336 -1059
- package/src/generated/sdk.js +196 -685
- package/src/generated/sdk.js.map +1 -1
package/src/generated/sdk.d.ts
CHANGED
|
@@ -36,10 +36,6 @@ export declare enum AccessDeniedReason {
|
|
|
36
36
|
RequestedUsageExceedingLimit = "RequestedUsageExceedingLimit",
|
|
37
37
|
Unknown = "Unknown"
|
|
38
38
|
}
|
|
39
|
-
export declare enum AccountStatus {
|
|
40
|
-
Active = "ACTIVE",
|
|
41
|
-
Blocked = "BLOCKED"
|
|
42
|
-
}
|
|
43
39
|
export declare type AddCompatibleAddonsToPlanInput = {
|
|
44
40
|
/** The id of the record. */
|
|
45
41
|
id: Scalars['String'];
|
|
@@ -52,7 +48,6 @@ export declare type AddonCreateInput = {
|
|
|
52
48
|
description?: InputMaybe<Scalars['String']>;
|
|
53
49
|
displayName: Scalars['String'];
|
|
54
50
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
55
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
56
51
|
productId: Scalars['String'];
|
|
57
52
|
refId?: InputMaybe<Scalars['String']>;
|
|
58
53
|
status?: InputMaybe<PackageStatus>;
|
|
@@ -99,7 +94,6 @@ export declare type AddonUpdateInput = {
|
|
|
99
94
|
billingId?: InputMaybe<Scalars['String']>;
|
|
100
95
|
description?: InputMaybe<Scalars['String']>;
|
|
101
96
|
displayName: Scalars['String'];
|
|
102
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
103
97
|
id: Scalars['String'];
|
|
104
98
|
status?: InputMaybe<PackageStatus>;
|
|
105
99
|
};
|
|
@@ -112,12 +106,6 @@ export declare type Address = {
|
|
|
112
106
|
postalCode?: InputMaybe<Scalars['String']>;
|
|
113
107
|
state?: InputMaybe<Scalars['String']>;
|
|
114
108
|
};
|
|
115
|
-
/** Alignment */
|
|
116
|
-
export declare enum Alignment {
|
|
117
|
-
Center = "CENTER",
|
|
118
|
-
Left = "LEFT",
|
|
119
|
-
Right = "RIGHT"
|
|
120
|
-
}
|
|
121
109
|
export declare type ApiKeyFilter = {
|
|
122
110
|
and?: InputMaybe<Array<ApiKeyFilter>>;
|
|
123
111
|
id?: InputMaybe<StringFieldComparison>;
|
|
@@ -144,10 +132,9 @@ export declare type ArchivePlanInput = {
|
|
|
144
132
|
id: Scalars['String'];
|
|
145
133
|
};
|
|
146
134
|
export declare type AttachCustomerPaymentMethodInput = {
|
|
147
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
148
135
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
149
136
|
paymentMethodId: Scalars['String'];
|
|
150
|
-
refId
|
|
137
|
+
refId: Scalars['String'];
|
|
151
138
|
vendorIdentifier: VendorIdentifier;
|
|
152
139
|
};
|
|
153
140
|
export declare enum BillingAnchor {
|
|
@@ -204,17 +191,8 @@ export declare type BooleanFieldComparison = {
|
|
|
204
191
|
export declare enum ChangeType {
|
|
205
192
|
Added = "ADDED",
|
|
206
193
|
Deleted = "DELETED",
|
|
207
|
-
Modified = "MODIFIED"
|
|
208
|
-
Reordered = "REORDERED"
|
|
194
|
+
Modified = "MODIFIED"
|
|
209
195
|
}
|
|
210
|
-
export declare type CheckoutOptions = {
|
|
211
|
-
allowPromoCodes?: InputMaybe<Scalars['Boolean']>;
|
|
212
|
-
allowTaxIdCollection?: InputMaybe<Scalars['Boolean']>;
|
|
213
|
-
cancelUrl: Scalars['String'];
|
|
214
|
-
collectBillingAddress?: InputMaybe<Scalars['Boolean']>;
|
|
215
|
-
referenceId?: InputMaybe<Scalars['String']>;
|
|
216
|
-
successUrl: Scalars['String'];
|
|
217
|
-
};
|
|
218
196
|
export declare type CouponFilter = {
|
|
219
197
|
and?: InputMaybe<Array<CouponFilter>>;
|
|
220
198
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
@@ -237,9 +215,9 @@ export declare type CouponFilterCustomerFilter = {
|
|
|
237
215
|
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
238
216
|
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
239
217
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
240
|
-
customerId?: InputMaybe<StringFieldComparison>;
|
|
241
218
|
email?: InputMaybe<StringFieldComparison>;
|
|
242
219
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
220
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
243
221
|
id?: InputMaybe<StringFieldComparison>;
|
|
244
222
|
name?: InputMaybe<StringFieldComparison>;
|
|
245
223
|
or?: InputMaybe<Array<CouponFilterCustomerFilter>>;
|
|
@@ -318,9 +296,7 @@ export declare type CreateEnvironment = {
|
|
|
318
296
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
319
297
|
description?: InputMaybe<Scalars['String']>;
|
|
320
298
|
displayName?: InputMaybe<Scalars['String']>;
|
|
321
|
-
hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
322
299
|
id?: InputMaybe<Scalars['String']>;
|
|
323
|
-
provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
|
|
324
300
|
slug?: InputMaybe<Scalars['String']>;
|
|
325
301
|
};
|
|
326
302
|
export declare type CreateEnvironmentOptions = {
|
|
@@ -383,126 +359,7 @@ export declare type CreateOneProductInput = {
|
|
|
383
359
|
};
|
|
384
360
|
/** Currency */
|
|
385
361
|
export declare enum Currency {
|
|
386
|
-
|
|
387
|
-
All = "ALL",
|
|
388
|
-
Amd = "AMD",
|
|
389
|
-
Ang = "ANG",
|
|
390
|
-
Aud = "AUD",
|
|
391
|
-
Awg = "AWG",
|
|
392
|
-
Azn = "AZN",
|
|
393
|
-
Bam = "BAM",
|
|
394
|
-
Bbd = "BBD",
|
|
395
|
-
Bdt = "BDT",
|
|
396
|
-
Bgn = "BGN",
|
|
397
|
-
Bhd = "BHD",
|
|
398
|
-
Bif = "BIF",
|
|
399
|
-
Bmd = "BMD",
|
|
400
|
-
Bnd = "BND",
|
|
401
|
-
Bsd = "BSD",
|
|
402
|
-
Bwp = "BWP",
|
|
403
|
-
Byn = "BYN",
|
|
404
|
-
Bzd = "BZD",
|
|
405
|
-
Cad = "CAD",
|
|
406
|
-
Cdf = "CDF",
|
|
407
|
-
Chf = "CHF",
|
|
408
|
-
Clp = "CLP",
|
|
409
|
-
Cny = "CNY",
|
|
410
|
-
Czk = "CZK",
|
|
411
|
-
Djf = "DJF",
|
|
412
|
-
Dkk = "DKK",
|
|
413
|
-
Dop = "DOP",
|
|
414
|
-
Dzd = "DZD",
|
|
415
|
-
Egp = "EGP",
|
|
416
|
-
Etb = "ETB",
|
|
417
|
-
Eur = "EUR",
|
|
418
|
-
Fjd = "FJD",
|
|
419
|
-
Gbp = "GBP",
|
|
420
|
-
Gel = "GEL",
|
|
421
|
-
Gip = "GIP",
|
|
422
|
-
Gmd = "GMD",
|
|
423
|
-
Gnf = "GNF",
|
|
424
|
-
Gyd = "GYD",
|
|
425
|
-
Hkd = "HKD",
|
|
426
|
-
Hrk = "HRK",
|
|
427
|
-
Htg = "HTG",
|
|
428
|
-
Idr = "IDR",
|
|
429
|
-
Ils = "ILS",
|
|
430
|
-
Inr = "INR",
|
|
431
|
-
Isk = "ISK",
|
|
432
|
-
Jmd = "JMD",
|
|
433
|
-
Jod = "JOD",
|
|
434
|
-
Jpy = "JPY",
|
|
435
|
-
Kes = "KES",
|
|
436
|
-
Kgs = "KGS",
|
|
437
|
-
Khr = "KHR",
|
|
438
|
-
Kmf = "KMF",
|
|
439
|
-
Krw = "KRW",
|
|
440
|
-
Kwd = "KWD",
|
|
441
|
-
Kyd = "KYD",
|
|
442
|
-
Kzt = "KZT",
|
|
443
|
-
Lbp = "LBP",
|
|
444
|
-
Lkr = "LKR",
|
|
445
|
-
Lrd = "LRD",
|
|
446
|
-
Lsl = "LSL",
|
|
447
|
-
Mad = "MAD",
|
|
448
|
-
Mdl = "MDL",
|
|
449
|
-
Mga = "MGA",
|
|
450
|
-
Mkd = "MKD",
|
|
451
|
-
Mmk = "MMK",
|
|
452
|
-
Mnt = "MNT",
|
|
453
|
-
Mop = "MOP",
|
|
454
|
-
Mro = "MRO",
|
|
455
|
-
Mvr = "MVR",
|
|
456
|
-
Mwk = "MWK",
|
|
457
|
-
Mxn = "MXN",
|
|
458
|
-
Myr = "MYR",
|
|
459
|
-
Mzn = "MZN",
|
|
460
|
-
Nad = "NAD",
|
|
461
|
-
Ngn = "NGN",
|
|
462
|
-
Nok = "NOK",
|
|
463
|
-
Npr = "NPR",
|
|
464
|
-
Nzd = "NZD",
|
|
465
|
-
Omr = "OMR",
|
|
466
|
-
Pgk = "PGK",
|
|
467
|
-
Php = "PHP",
|
|
468
|
-
Pkr = "PKR",
|
|
469
|
-
Pln = "PLN",
|
|
470
|
-
Pyg = "PYG",
|
|
471
|
-
Qar = "QAR",
|
|
472
|
-
Ron = "RON",
|
|
473
|
-
Rsd = "RSD",
|
|
474
|
-
Rub = "RUB",
|
|
475
|
-
Rwf = "RWF",
|
|
476
|
-
Sar = "SAR",
|
|
477
|
-
Sbd = "SBD",
|
|
478
|
-
Scr = "SCR",
|
|
479
|
-
Sek = "SEK",
|
|
480
|
-
Sgd = "SGD",
|
|
481
|
-
Sle = "SLE",
|
|
482
|
-
Sll = "SLL",
|
|
483
|
-
Sos = "SOS",
|
|
484
|
-
Szl = "SZL",
|
|
485
|
-
Thb = "THB",
|
|
486
|
-
Tjs = "TJS",
|
|
487
|
-
Tnd = "TND",
|
|
488
|
-
Top = "TOP",
|
|
489
|
-
Try = "TRY",
|
|
490
|
-
Ttd = "TTD",
|
|
491
|
-
Tzs = "TZS",
|
|
492
|
-
Uah = "UAH",
|
|
493
|
-
Ugx = "UGX",
|
|
494
|
-
Usd = "USD",
|
|
495
|
-
Uzs = "UZS",
|
|
496
|
-
Vnd = "VND",
|
|
497
|
-
Vuv = "VUV",
|
|
498
|
-
Wst = "WST",
|
|
499
|
-
Xaf = "XAF",
|
|
500
|
-
Xcd = "XCD",
|
|
501
|
-
Xof = "XOF",
|
|
502
|
-
Xpf = "XPF",
|
|
503
|
-
Yer = "YER",
|
|
504
|
-
Zar = "ZAR",
|
|
505
|
-
Zmw = "ZMW"
|
|
362
|
+
Usd = "USD"
|
|
506
363
|
}
|
|
507
364
|
export declare type CursorPaging = {
|
|
508
365
|
/** Paginate after opaque cursor */
|
|
@@ -531,9 +388,9 @@ export declare type CustomerFilter = {
|
|
|
531
388
|
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
532
389
|
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
533
390
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
534
|
-
customerId?: InputMaybe<StringFieldComparison>;
|
|
535
391
|
email?: InputMaybe<StringFieldComparison>;
|
|
536
392
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
393
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
537
394
|
id?: InputMaybe<StringFieldComparison>;
|
|
538
395
|
name?: InputMaybe<StringFieldComparison>;
|
|
539
396
|
or?: InputMaybe<Array<CustomerFilter>>;
|
|
@@ -553,14 +410,13 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
553
410
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
554
411
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
555
412
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
413
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
556
414
|
id?: InputMaybe<StringFieldComparison>;
|
|
557
|
-
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
558
415
|
or?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
559
416
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
560
417
|
refId?: InputMaybe<StringFieldComparison>;
|
|
561
418
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
562
419
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
563
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
564
420
|
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
565
421
|
};
|
|
566
422
|
export declare type CustomerFilterPromotionalEntitlementFilter = {
|
|
@@ -577,31 +433,13 @@ export declare type CustomerInput = {
|
|
|
577
433
|
billingId?: InputMaybe<Scalars['String']>;
|
|
578
434
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
579
435
|
couponRefId?: InputMaybe<Scalars['String']>;
|
|
580
|
-
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
581
436
|
crmId?: InputMaybe<Scalars['String']>;
|
|
582
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
583
437
|
email?: InputMaybe<Scalars['String']>;
|
|
584
438
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
585
439
|
name?: InputMaybe<Scalars['String']>;
|
|
586
|
-
refId
|
|
440
|
+
refId: Scalars['String'];
|
|
587
441
|
shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
|
|
588
442
|
};
|
|
589
|
-
export declare type CustomerPortalColorsPaletteInput = {
|
|
590
|
-
backgroundColor?: InputMaybe<Scalars['String']>;
|
|
591
|
-
borderColor?: InputMaybe<Scalars['String']>;
|
|
592
|
-
currentPlanBackground?: InputMaybe<Scalars['String']>;
|
|
593
|
-
iconsColor?: InputMaybe<Scalars['String']>;
|
|
594
|
-
paywallBackgroundColor?: InputMaybe<Scalars['String']>;
|
|
595
|
-
primary?: InputMaybe<Scalars['String']>;
|
|
596
|
-
textColor?: InputMaybe<Scalars['String']>;
|
|
597
|
-
};
|
|
598
|
-
export declare type CustomerPortalConfigurationInput = {
|
|
599
|
-
palette?: InputMaybe<CustomerPortalColorsPaletteInput>;
|
|
600
|
-
typography?: InputMaybe<TypographyConfigurationInput>;
|
|
601
|
-
};
|
|
602
|
-
export declare type CustomerPortalInput = {
|
|
603
|
-
customerId: Scalars['String'];
|
|
604
|
-
};
|
|
605
443
|
export declare type CustomerSort = {
|
|
606
444
|
direction: SortDirection;
|
|
607
445
|
field: CustomerSortFields;
|
|
@@ -613,9 +451,9 @@ export declare enum CustomerSortFields {
|
|
|
613
451
|
CrmHubspotCompanyId = "crmHubspotCompanyId",
|
|
614
452
|
CrmHubspotCompanyUrl = "crmHubspotCompanyUrl",
|
|
615
453
|
CrmId = "crmId",
|
|
616
|
-
CustomerId = "customerId",
|
|
617
454
|
Email = "email",
|
|
618
455
|
EnvironmentId = "environmentId",
|
|
456
|
+
ExperimentGroup = "experimentGroup",
|
|
619
457
|
Id = "id",
|
|
620
458
|
Name = "name",
|
|
621
459
|
RefId = "refId",
|
|
@@ -634,16 +472,14 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
634
472
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
635
473
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
636
474
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
475
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
637
476
|
id?: InputMaybe<StringFieldComparison>;
|
|
638
|
-
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
639
477
|
or?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
640
478
|
prices?: InputMaybe<CustomerSubscriptionFilterSubscriptionPriceFilter>;
|
|
641
479
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
642
480
|
refId?: InputMaybe<StringFieldComparison>;
|
|
643
481
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
644
482
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
645
|
-
subscriptionEntitlements?: InputMaybe<CustomerSubscriptionFilterSubscriptionEntitlementFilter>;
|
|
646
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
647
483
|
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
648
484
|
};
|
|
649
485
|
export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
@@ -653,9 +489,9 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
|
653
489
|
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
654
490
|
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
655
491
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
656
|
-
customerId?: InputMaybe<StringFieldComparison>;
|
|
657
492
|
email?: InputMaybe<StringFieldComparison>;
|
|
658
493
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
494
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
659
495
|
id?: InputMaybe<StringFieldComparison>;
|
|
660
496
|
name?: InputMaybe<StringFieldComparison>;
|
|
661
497
|
or?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
|
|
@@ -670,15 +506,6 @@ export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
|
|
|
670
506
|
quantity?: InputMaybe<NumberFieldComparison>;
|
|
671
507
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
672
508
|
};
|
|
673
|
-
export declare type CustomerSubscriptionFilterSubscriptionEntitlementFilter = {
|
|
674
|
-
and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionEntitlementFilter>>;
|
|
675
|
-
createdAt?: InputMaybe<DateFieldComparison>;
|
|
676
|
-
environmentId?: InputMaybe<StringFieldComparison>;
|
|
677
|
-
id?: InputMaybe<StringFieldComparison>;
|
|
678
|
-
or?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionEntitlementFilter>>;
|
|
679
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
680
|
-
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
681
|
-
};
|
|
682
509
|
export declare type CustomerSubscriptionFilterSubscriptionPriceFilter = {
|
|
683
510
|
and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
|
|
684
511
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -702,13 +529,12 @@ export declare enum CustomerSubscriptionSortFields {
|
|
|
702
529
|
EffectiveEndDate = "effectiveEndDate",
|
|
703
530
|
EndDate = "endDate",
|
|
704
531
|
EnvironmentId = "environmentId",
|
|
532
|
+
ExperimentGroup = "experimentGroup",
|
|
705
533
|
Id = "id",
|
|
706
|
-
OldBillingId = "oldBillingId",
|
|
707
534
|
PricingType = "pricingType",
|
|
708
535
|
RefId = "refId",
|
|
709
536
|
StartDate = "startDate",
|
|
710
537
|
Status = "status",
|
|
711
|
-
SubscriptionId = "subscriptionId",
|
|
712
538
|
TrialEndDate = "trialEndDate"
|
|
713
539
|
}
|
|
714
540
|
export declare type DateFieldComparison = {
|
|
@@ -761,6 +587,10 @@ export declare type DeleteOnePackageEntitlementInput = {
|
|
|
761
587
|
/** The id of the record to delete. */
|
|
762
588
|
id: Scalars['String'];
|
|
763
589
|
};
|
|
590
|
+
export declare type DeleteOnePlanInput = {
|
|
591
|
+
/** The id of the record to delete. */
|
|
592
|
+
id: Scalars['String'];
|
|
593
|
+
};
|
|
764
594
|
export declare type DeleteOnePriceInput = {
|
|
765
595
|
/** The id of the record to delete. */
|
|
766
596
|
id: Scalars['String'];
|
|
@@ -819,13 +649,6 @@ export declare type EnvironmentFilter = {
|
|
|
819
649
|
or?: InputMaybe<Array<EnvironmentFilter>>;
|
|
820
650
|
slug?: InputMaybe<StringFieldComparison>;
|
|
821
651
|
};
|
|
822
|
-
/** EnvironmentProvisionStatus. */
|
|
823
|
-
export declare enum EnvironmentProvisionStatus {
|
|
824
|
-
Done = "DONE",
|
|
825
|
-
Failed = "FAILED",
|
|
826
|
-
InProgress = "IN_PROGRESS",
|
|
827
|
-
NotProvisioned = "NOT_PROVISIONED"
|
|
828
|
-
}
|
|
829
652
|
export declare type EnvironmentSort = {
|
|
830
653
|
direction: SortDirection;
|
|
831
654
|
field: EnvironmentSortFields;
|
|
@@ -843,31 +666,22 @@ export declare enum ErrorCode {
|
|
|
843
666
|
AddonHasToHavePriceError = "AddonHasToHavePriceError",
|
|
844
667
|
AddonNotFound = "AddonNotFound",
|
|
845
668
|
ArchivedCouponCantBeApplied = "ArchivedCouponCantBeApplied",
|
|
846
|
-
AuthCustomerMismatch = "AuthCustomerMismatch",
|
|
847
669
|
BadUserInput = "BadUserInput",
|
|
848
670
|
BillingPeriodMissingError = "BillingPeriodMissingError",
|
|
849
671
|
CannotDeleteCustomerError = "CannotDeleteCustomerError",
|
|
850
672
|
CannotDeleteFeatureError = "CannotDeleteFeatureError",
|
|
851
|
-
|
|
673
|
+
CantCreateExperiment = "CantCreateExperiment",
|
|
852
674
|
CheckoutIsNotSupported = "CheckoutIsNotSupported",
|
|
853
|
-
CheckoutOptionsMissing = "CheckoutOptionsMissing",
|
|
854
675
|
CouponNotFound = "CouponNotFound",
|
|
855
|
-
CustomerAlreadyHaveCustomerCoupon = "CustomerAlreadyHaveCustomerCoupon",
|
|
856
|
-
CustomerAlreadyUsesCoupon = "CustomerAlreadyUsesCoupon",
|
|
857
676
|
CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
|
|
858
677
|
CustomerNoBillingId = "CustomerNoBillingId",
|
|
859
678
|
CustomerNotFound = "CustomerNotFound",
|
|
860
|
-
DowngradeBillingPeriodNotSupportedError = "DowngradeBillingPeriodNotSupportedError",
|
|
861
679
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
862
680
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
863
681
|
EditAllowedOnDraftPackageOnlyError = "EditAllowedOnDraftPackageOnlyError",
|
|
864
|
-
EntitlementsMustBelongToSamePackage = "EntitlementsMustBelongToSamePackage",
|
|
865
|
-
EntityIdDifferentFromRefIdError = "EntityIdDifferentFromRefIdError",
|
|
866
682
|
EnvironmentMissing = "EnvironmentMissing",
|
|
867
|
-
ExperimentAlreadyRunning = "ExperimentAlreadyRunning",
|
|
868
683
|
ExperimentNotFoundError = "ExperimentNotFoundError",
|
|
869
684
|
ExperimentStatusError = "ExperimentStatusError",
|
|
870
|
-
FailedToCreateCheckoutSessionError = "FailedToCreateCheckoutSessionError",
|
|
871
685
|
FailedToImportCustomer = "FailedToImportCustomer",
|
|
872
686
|
FeatureNotFound = "FeatureNotFound",
|
|
873
687
|
IdentityForbidden = "IdentityForbidden",
|
|
@@ -887,26 +701,16 @@ export declare enum ErrorCode {
|
|
|
887
701
|
MemberInvitationError = "MemberInvitationError",
|
|
888
702
|
MemberNotFound = "MemberNotFound",
|
|
889
703
|
MeteringNotAvailableForFeatureType = "MeteringNotAvailableForFeatureType",
|
|
890
|
-
MissingEntityIdError = "MissingEntityIdError",
|
|
891
704
|
NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription",
|
|
892
|
-
NoProductsAvailable = "NoProductsAvailable",
|
|
893
|
-
OperationNotAllowedDuringInProgressExperiment = "OperationNotAllowedDuringInProgressExperiment",
|
|
894
705
|
PackageAlreadyPublished = "PackageAlreadyPublished",
|
|
895
706
|
PackagePricingTypeNotSet = "PackagePricingTypeNotSet",
|
|
896
707
|
PlanAlreadyExtended = "PlanAlreadyExtended",
|
|
897
|
-
PlanCannotBePublishWhenBasePlanIsDraft = "PlanCannotBePublishWhenBasePlanIsDraft",
|
|
898
708
|
PlanIsUsedAsDefaultStartPlan = "PlanIsUsedAsDefaultStartPlan",
|
|
899
709
|
PlanIsUsedAsDowngradePlan = "PlanIsUsedAsDowngradePlan",
|
|
900
710
|
PlanNotFound = "PlanNotFound",
|
|
901
711
|
PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted",
|
|
902
712
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
903
713
|
PriceNotFound = "PriceNotFound",
|
|
904
|
-
PromotionCodeCustomerNotFirstPurchase = "PromotionCodeCustomerNotFirstPurchase",
|
|
905
|
-
PromotionCodeMaxRedemptionsReached = "PromotionCodeMaxRedemptionsReached",
|
|
906
|
-
PromotionCodeMinimumAmountNotReached = "PromotionCodeMinimumAmountNotReached",
|
|
907
|
-
PromotionCodeNotActive = "PromotionCodeNotActive",
|
|
908
|
-
PromotionCodeNotForCustomer = "PromotionCodeNotForCustomer",
|
|
909
|
-
PromotionCodeNotFound = "PromotionCodeNotFound",
|
|
910
714
|
RateLimitExceeded = "RateLimitExceeded",
|
|
911
715
|
ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
|
|
912
716
|
SelectedBillingModelDoesntMatchImportedItemError = "SelectedBillingModelDoesntMatchImportedItemError",
|
|
@@ -921,27 +725,8 @@ export declare enum ErrorCode {
|
|
|
921
725
|
UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon",
|
|
922
726
|
UnexpectedError = "UnexpectedError",
|
|
923
727
|
UnsupportedFeatureType = "UnsupportedFeatureType",
|
|
924
|
-
UnsupportedSubscriptionScheduleType = "UnsupportedSubscriptionScheduleType",
|
|
925
728
|
UnsupportedVendorIdentifier = "UnsupportedVendorIdentifier"
|
|
926
729
|
}
|
|
927
|
-
export declare type EstimateSubscriptionInput = {
|
|
928
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
929
|
-
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
930
|
-
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
931
|
-
customerId: Scalars['String'];
|
|
932
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
933
|
-
planId: Scalars['String'];
|
|
934
|
-
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
935
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
936
|
-
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
937
|
-
};
|
|
938
|
-
export declare type EstimateSubscriptionUpdateInput = {
|
|
939
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
940
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
941
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
942
|
-
subscriptionId: Scalars['String'];
|
|
943
|
-
unitQuantity?: InputMaybe<Scalars['Float']>;
|
|
944
|
-
};
|
|
945
730
|
/** EventLogType */
|
|
946
731
|
export declare enum EventLogType {
|
|
947
732
|
AddonCreated = "ADDON_CREATED",
|
|
@@ -955,12 +740,10 @@ export declare enum EventLogType {
|
|
|
955
740
|
CustomerDeleted = "CUSTOMER_DELETED",
|
|
956
741
|
CustomerPaymentFailed = "CUSTOMER_PAYMENT_FAILED",
|
|
957
742
|
CustomerUpdated = "CUSTOMER_UPDATED",
|
|
958
|
-
EdgeApiDataResync = "EDGE_API_DATA_RESYNC",
|
|
959
743
|
EntitlementsUpdated = "ENTITLEMENTS_UPDATED",
|
|
960
744
|
EntitlementDenied = "ENTITLEMENT_DENIED",
|
|
961
745
|
EntitlementGranted = "ENTITLEMENT_GRANTED",
|
|
962
746
|
EntitlementRequested = "ENTITLEMENT_REQUESTED",
|
|
963
|
-
EnvironmentDeleted = "ENVIRONMENT_DELETED",
|
|
964
747
|
FeatureCreated = "FEATURE_CREATED",
|
|
965
748
|
FeatureDeleted = "FEATURE_DELETED",
|
|
966
749
|
FeatureUpdated = "FEATURE_UPDATED",
|
|
@@ -971,9 +754,6 @@ export declare enum EventLogType {
|
|
|
971
754
|
PlanCreated = "PLAN_CREATED",
|
|
972
755
|
PlanDeleted = "PLAN_DELETED",
|
|
973
756
|
PlanUpdated = "PLAN_UPDATED",
|
|
974
|
-
ProductCreated = "PRODUCT_CREATED",
|
|
975
|
-
ProductDeleted = "PRODUCT_DELETED",
|
|
976
|
-
ProductUpdated = "PRODUCT_UPDATED",
|
|
977
757
|
PromotionalEntitlementExpired = "PROMOTIONAL_ENTITLEMENT_EXPIRED",
|
|
978
758
|
PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
|
|
979
759
|
PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
|
|
@@ -988,8 +768,7 @@ export declare enum EventLogType {
|
|
|
988
768
|
SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
|
|
989
769
|
SubscriptionUpdated = "SUBSCRIPTION_UPDATED",
|
|
990
770
|
SubscriptionUsageUpdated = "SUBSCRIPTION_USAGE_UPDATED",
|
|
991
|
-
SyncFailed = "SYNC_FAILED"
|
|
992
|
-
WidgetConfigurationUpdated = "WIDGET_CONFIGURATION_UPDATED"
|
|
771
|
+
SyncFailed = "SYNC_FAILED"
|
|
993
772
|
}
|
|
994
773
|
export declare type ExperimentFilter = {
|
|
995
774
|
and?: InputMaybe<Array<ExperimentFilter>>;
|
|
@@ -1010,15 +789,36 @@ export declare type ExperimentFilterCustomerFilter = {
|
|
|
1010
789
|
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
1011
790
|
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
1012
791
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1013
|
-
customerId?: InputMaybe<StringFieldComparison>;
|
|
1014
792
|
email?: InputMaybe<StringFieldComparison>;
|
|
1015
793
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
794
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
1016
795
|
id?: InputMaybe<StringFieldComparison>;
|
|
1017
796
|
name?: InputMaybe<StringFieldComparison>;
|
|
1018
797
|
or?: InputMaybe<Array<ExperimentFilterCustomerFilter>>;
|
|
1019
798
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1020
799
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1021
800
|
};
|
|
801
|
+
/** The group of the experiment */
|
|
802
|
+
export declare enum ExperimentGroup {
|
|
803
|
+
Control = "CONTROL",
|
|
804
|
+
Variant = "VARIANT"
|
|
805
|
+
}
|
|
806
|
+
export declare type ExperimentGroupFilterComparison = {
|
|
807
|
+
eq?: InputMaybe<ExperimentGroup>;
|
|
808
|
+
gt?: InputMaybe<ExperimentGroup>;
|
|
809
|
+
gte?: InputMaybe<ExperimentGroup>;
|
|
810
|
+
iLike?: InputMaybe<ExperimentGroup>;
|
|
811
|
+
in?: InputMaybe<Array<ExperimentGroup>>;
|
|
812
|
+
is?: InputMaybe<Scalars['Boolean']>;
|
|
813
|
+
isNot?: InputMaybe<Scalars['Boolean']>;
|
|
814
|
+
like?: InputMaybe<ExperimentGroup>;
|
|
815
|
+
lt?: InputMaybe<ExperimentGroup>;
|
|
816
|
+
lte?: InputMaybe<ExperimentGroup>;
|
|
817
|
+
neq?: InputMaybe<ExperimentGroup>;
|
|
818
|
+
notILike?: InputMaybe<ExperimentGroup>;
|
|
819
|
+
notIn?: InputMaybe<Array<ExperimentGroup>>;
|
|
820
|
+
notLike?: InputMaybe<ExperimentGroup>;
|
|
821
|
+
};
|
|
1022
822
|
export declare type ExperimentSort = {
|
|
1023
823
|
direction: SortDirection;
|
|
1024
824
|
field: ExperimentSortFields;
|
|
@@ -1033,10 +833,6 @@ export declare enum ExperimentSortFields {
|
|
|
1033
833
|
RefId = "refId",
|
|
1034
834
|
Status = "status"
|
|
1035
835
|
}
|
|
1036
|
-
export declare type ExperimentStatsQuery = {
|
|
1037
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
1038
|
-
experimentRefId: Scalars['String'];
|
|
1039
|
-
};
|
|
1040
836
|
/** The status of the EXPERIMENT */
|
|
1041
837
|
export declare enum ExperimentStatus {
|
|
1042
838
|
Completed = "COMPLETED",
|
|
@@ -1074,9 +870,8 @@ export declare type FeatureFilter = {
|
|
|
1074
870
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1075
871
|
};
|
|
1076
872
|
export declare type FeatureInput = {
|
|
1077
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1078
873
|
description?: InputMaybe<Scalars['String']>;
|
|
1079
|
-
displayName
|
|
874
|
+
displayName?: InputMaybe<Scalars['String']>;
|
|
1080
875
|
environmentId: Scalars['String'];
|
|
1081
876
|
featureStatus?: InputMaybe<FeatureStatus>;
|
|
1082
877
|
featureType: FeatureType;
|
|
@@ -1155,33 +950,11 @@ export declare type FetchEntitlementsQuery = {
|
|
|
1155
950
|
customerId: Scalars['String'];
|
|
1156
951
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
1157
952
|
};
|
|
1158
|
-
export declare type FontVariantInput = {
|
|
1159
|
-
fontSize?: InputMaybe<Scalars['Float']>;
|
|
1160
|
-
fontWeight?: InputMaybe<FontWeight>;
|
|
1161
|
-
};
|
|
1162
|
-
/** Font weight */
|
|
1163
|
-
export declare enum FontWeight {
|
|
1164
|
-
Bold = "BOLD",
|
|
1165
|
-
Normal = "NORMAL"
|
|
1166
|
-
}
|
|
1167
|
-
export declare type GetCustomerByRefIdInput = {
|
|
1168
|
-
customerId: Scalars['String'];
|
|
1169
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
1170
|
-
};
|
|
1171
953
|
export declare type GetPackageByRefIdInput = {
|
|
1172
954
|
environmentId: Scalars['String'];
|
|
1173
955
|
refId: Scalars['String'];
|
|
1174
956
|
versionNumber?: InputMaybe<Scalars['Float']>;
|
|
1175
957
|
};
|
|
1176
|
-
export declare type GetPaywallInput = {
|
|
1177
|
-
context?: InputMaybe<WidgetType>;
|
|
1178
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
1179
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
1180
|
-
productId?: InputMaybe<Scalars['String']>;
|
|
1181
|
-
};
|
|
1182
|
-
export declare type GetWidgetConfigurationInput = {
|
|
1183
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
1184
|
-
};
|
|
1185
958
|
export declare type HookFilter = {
|
|
1186
959
|
and?: InputMaybe<Array<HookFilter>>;
|
|
1187
960
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -1229,13 +1002,11 @@ export declare type HubspotCredentialsInput = {
|
|
|
1229
1002
|
refreshToken?: InputMaybe<Scalars['String']>;
|
|
1230
1003
|
};
|
|
1231
1004
|
export declare type ImportCustomerInput = {
|
|
1232
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1233
1005
|
billingId: Scalars['String'];
|
|
1234
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
1235
1006
|
email?: InputMaybe<Scalars['String']>;
|
|
1236
1007
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
1237
1008
|
name?: InputMaybe<Scalars['String']>;
|
|
1238
|
-
refId
|
|
1009
|
+
refId: Scalars['String'];
|
|
1239
1010
|
};
|
|
1240
1011
|
export declare type ImportIntegrationCatalogInput = {
|
|
1241
1012
|
billingModel?: InputMaybe<BillingModel>;
|
|
@@ -1284,12 +1055,10 @@ export declare type InitAddStripeCustomerPaymentMethodInput = {
|
|
|
1284
1055
|
};
|
|
1285
1056
|
export declare type InitiateCheckoutInput = {
|
|
1286
1057
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1287
|
-
allowPromoCodes?: InputMaybe<Scalars['Boolean']>;
|
|
1288
|
-
allowTaxIdCollection?: InputMaybe<Scalars['Boolean']>;
|
|
1289
1058
|
billingPeriod: BillingPeriod;
|
|
1290
1059
|
cancelUrl: Scalars['String'];
|
|
1291
|
-
collectBillingAddress?: InputMaybe<Scalars['Boolean']>;
|
|
1292
1060
|
customerId: Scalars['String'];
|
|
1061
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
1293
1062
|
planId: Scalars['String'];
|
|
1294
1063
|
successUrl: Scalars['String'];
|
|
1295
1064
|
unitQuantity?: InputMaybe<Scalars['Int']>;
|
|
@@ -1484,14 +1253,10 @@ export declare type PackageEntitlementFilterPackageDtoFilter = {
|
|
|
1484
1253
|
};
|
|
1485
1254
|
export declare type PackageEntitlementInput = {
|
|
1486
1255
|
description?: InputMaybe<Scalars['String']>;
|
|
1487
|
-
displayNameOverride?: InputMaybe<Scalars['String']>;
|
|
1488
1256
|
environmentId: Scalars['String'];
|
|
1489
1257
|
featureId: Scalars['String'];
|
|
1490
1258
|
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
1491
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1492
|
-
isCustom?: InputMaybe<Scalars['Boolean']>;
|
|
1493
1259
|
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
1494
|
-
order?: InputMaybe<Scalars['Float']>;
|
|
1495
1260
|
packageId: Scalars['String'];
|
|
1496
1261
|
resetPeriod?: InputMaybe<EntitlementResetPeriod>;
|
|
1497
1262
|
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
@@ -1511,12 +1276,8 @@ export declare enum PackageEntitlementSortFields {
|
|
|
1511
1276
|
}
|
|
1512
1277
|
export declare type PackageEntitlementUpdateInput = {
|
|
1513
1278
|
description?: InputMaybe<Scalars['String']>;
|
|
1514
|
-
displayNameOverride?: InputMaybe<Scalars['String']>;
|
|
1515
1279
|
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
1516
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1517
|
-
isCustom?: InputMaybe<Scalars['Boolean']>;
|
|
1518
1280
|
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
1519
|
-
order?: InputMaybe<Scalars['Float']>;
|
|
1520
1281
|
resetPeriod?: InputMaybe<EntitlementResetPeriod>;
|
|
1521
1282
|
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
1522
1283
|
weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
|
|
@@ -1558,31 +1319,12 @@ export declare enum PaymentMethodType {
|
|
|
1558
1319
|
Bank = "BANK",
|
|
1559
1320
|
Card = "CARD"
|
|
1560
1321
|
}
|
|
1561
|
-
export declare type PaywallColorsPaletteInput = {
|
|
1562
|
-
backgroundColor?: InputMaybe<Scalars['String']>;
|
|
1563
|
-
borderColor?: InputMaybe<Scalars['String']>;
|
|
1564
|
-
currentPlanBackground?: InputMaybe<Scalars['String']>;
|
|
1565
|
-
primary?: InputMaybe<Scalars['String']>;
|
|
1566
|
-
textColor?: InputMaybe<Scalars['String']>;
|
|
1567
|
-
};
|
|
1568
|
-
export declare type PaywallConfigurationInput = {
|
|
1569
|
-
layout?: InputMaybe<PaywallLayoutConfigurationInput>;
|
|
1570
|
-
palette?: InputMaybe<PaywallColorsPaletteInput>;
|
|
1571
|
-
typography?: InputMaybe<TypographyConfigurationInput>;
|
|
1572
|
-
};
|
|
1573
|
-
export declare type PaywallLayoutConfigurationInput = {
|
|
1574
|
-
alignment?: InputMaybe<Alignment>;
|
|
1575
|
-
planMargin?: InputMaybe<Scalars['Float']>;
|
|
1576
|
-
planPadding?: InputMaybe<Scalars['Float']>;
|
|
1577
|
-
planWidth?: InputMaybe<Scalars['Float']>;
|
|
1578
|
-
};
|
|
1579
1322
|
export declare type PlanCreateInput = {
|
|
1580
1323
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1581
1324
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1582
1325
|
description?: InputMaybe<Scalars['String']>;
|
|
1583
1326
|
displayName: Scalars['String'];
|
|
1584
1327
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
1585
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1586
1328
|
parentPlanId?: InputMaybe<Scalars['String']>;
|
|
1587
1329
|
productId: Scalars['String'];
|
|
1588
1330
|
refId?: InputMaybe<Scalars['String']>;
|
|
@@ -1662,14 +1404,12 @@ export declare type PlanUpdateInput = {
|
|
|
1662
1404
|
defaultTrialConfig?: InputMaybe<DefaultTrialConfigInputDto>;
|
|
1663
1405
|
description?: InputMaybe<Scalars['String']>;
|
|
1664
1406
|
displayName?: InputMaybe<Scalars['String']>;
|
|
1665
|
-
hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
|
|
1666
1407
|
id: Scalars['String'];
|
|
1667
1408
|
parentPlanId?: InputMaybe<Scalars['String']>;
|
|
1668
1409
|
status?: InputMaybe<PackageStatus>;
|
|
1669
1410
|
};
|
|
1670
1411
|
export declare type PriceFilter = {
|
|
1671
1412
|
and?: InputMaybe<Array<PriceFilter>>;
|
|
1672
|
-
billingId?: InputMaybe<StringFieldComparison>;
|
|
1673
1413
|
billingModel?: InputMaybe<BillingModelFilterComparison>;
|
|
1674
1414
|
billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
|
|
1675
1415
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -1695,7 +1435,6 @@ export declare type PriceFilterPackageDtoFilter = {
|
|
|
1695
1435
|
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
1696
1436
|
};
|
|
1697
1437
|
export declare type PricePeriodInput = {
|
|
1698
|
-
billingCountryCode?: InputMaybe<Scalars['String']>;
|
|
1699
1438
|
billingPeriod: BillingPeriod;
|
|
1700
1439
|
price: MoneyInputDto;
|
|
1701
1440
|
};
|
|
@@ -1705,7 +1444,6 @@ export declare type PriceSort = {
|
|
|
1705
1444
|
nulls?: InputMaybe<SortNulls>;
|
|
1706
1445
|
};
|
|
1707
1446
|
export declare enum PriceSortFields {
|
|
1708
|
-
BillingId = "billingId",
|
|
1709
1447
|
BillingModel = "billingModel",
|
|
1710
1448
|
BillingPeriod = "billingPeriod",
|
|
1711
1449
|
CreatedAt = "createdAt",
|
|
@@ -1714,8 +1452,6 @@ export declare enum PriceSortFields {
|
|
|
1714
1452
|
export declare type PricingModelCreateInput = {
|
|
1715
1453
|
billingModel: BillingModel;
|
|
1716
1454
|
featureId?: InputMaybe<Scalars['String']>;
|
|
1717
|
-
maxUnitQuantity?: InputMaybe<Scalars['Float']>;
|
|
1718
|
-
minUnitQuantity?: InputMaybe<Scalars['Float']>;
|
|
1719
1455
|
pricePeriods: Array<PricePeriodInput>;
|
|
1720
1456
|
};
|
|
1721
1457
|
/** Package pricing type. */
|
|
@@ -1760,7 +1496,6 @@ export declare type ProductFilter = {
|
|
|
1760
1496
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1761
1497
|
};
|
|
1762
1498
|
export declare type ProductSettingsInput = {
|
|
1763
|
-
downgradeAtEndOfBillingPeriod?: InputMaybe<Scalars['String']>;
|
|
1764
1499
|
downgradePlanId?: InputMaybe<Scalars['String']>;
|
|
1765
1500
|
subscriptionCancellationTime: SubscriptionCancellationTime;
|
|
1766
1501
|
subscriptionEndSetup: SubscriptionEndSetup;
|
|
@@ -1865,76 +1600,19 @@ export declare type PromotionalEntitlementUpdateInput = {
|
|
|
1865
1600
|
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
1866
1601
|
weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
|
|
1867
1602
|
};
|
|
1868
|
-
export declare enum ProrationBehavior {
|
|
1869
|
-
CreateProrations = "CREATE_PRORATIONS",
|
|
1870
|
-
InvoiceImmediately = "INVOICE_IMMEDIATELY"
|
|
1871
|
-
}
|
|
1872
1603
|
export declare type ProvisionCustomerInput = {
|
|
1873
1604
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1874
1605
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1875
1606
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
1876
1607
|
couponRefId?: InputMaybe<Scalars['String']>;
|
|
1877
|
-
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
1878
1608
|
crmId?: InputMaybe<Scalars['String']>;
|
|
1879
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
1880
1609
|
email?: InputMaybe<Scalars['String']>;
|
|
1881
1610
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
1882
|
-
excludeFromExperiment?: InputMaybe<Scalars['Boolean']>;
|
|
1883
1611
|
name?: InputMaybe<Scalars['String']>;
|
|
1884
|
-
refId
|
|
1612
|
+
refId: Scalars['String'];
|
|
1885
1613
|
shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
|
|
1886
|
-
subscriptionParams?: InputMaybe<
|
|
1887
|
-
};
|
|
1888
|
-
export declare type ProvisionCustomerSubscriptionInput = {
|
|
1889
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1890
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1891
|
-
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1892
|
-
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
1893
|
-
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1894
|
-
planId: Scalars['String'];
|
|
1895
|
-
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
1896
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
1897
|
-
refId?: InputMaybe<Scalars['String']>;
|
|
1898
|
-
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
1899
|
-
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
1900
|
-
};
|
|
1901
|
-
export declare type ProvisionSubscription = {
|
|
1902
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1903
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1904
|
-
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1905
|
-
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
1906
|
-
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1907
|
-
checkoutOptions?: InputMaybe<CheckoutOptions>;
|
|
1908
|
-
customerId: Scalars['String'];
|
|
1909
|
-
planId: Scalars['String'];
|
|
1910
|
-
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
1911
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
1912
|
-
refId?: InputMaybe<Scalars['String']>;
|
|
1913
|
-
skipTrial?: InputMaybe<Scalars['Boolean']>;
|
|
1914
|
-
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
1915
|
-
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
1916
|
-
};
|
|
1917
|
-
export declare type ProvisionSubscriptionInput = {
|
|
1918
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1919
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1920
|
-
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1921
|
-
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
1922
|
-
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1923
|
-
checkoutOptions?: InputMaybe<CheckoutOptions>;
|
|
1924
|
-
customerId: Scalars['String'];
|
|
1925
|
-
planId: Scalars['String'];
|
|
1926
|
-
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
1927
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
1928
|
-
refId?: InputMaybe<Scalars['String']>;
|
|
1929
|
-
skipTrial?: InputMaybe<Scalars['Boolean']>;
|
|
1930
|
-
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
1931
|
-
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
1614
|
+
subscriptionParams?: InputMaybe<SubscriptionBaseInput>;
|
|
1932
1615
|
};
|
|
1933
|
-
/** Provision subscription status */
|
|
1934
|
-
export declare enum ProvisionSubscriptionStatus {
|
|
1935
|
-
PaymentRequired = "PAYMENT_REQUIRED",
|
|
1936
|
-
Success = "SUCCESS"
|
|
1937
|
-
}
|
|
1938
1616
|
/** PublishMigrationType */
|
|
1939
1617
|
export declare enum PublishMigrationType {
|
|
1940
1618
|
AllCustomers = "ALL_CUSTOMERS",
|
|
@@ -1958,12 +1636,6 @@ export declare type RemoveCouponFromCustomerInput = {
|
|
|
1958
1636
|
/** The id of relation. */
|
|
1959
1637
|
relationId: Scalars['String'];
|
|
1960
1638
|
};
|
|
1961
|
-
export declare type RemoveCouponFromCustomerSubscriptionInput = {
|
|
1962
|
-
/** The id of the record. */
|
|
1963
|
-
id: Scalars['String'];
|
|
1964
|
-
/** The id of relation. */
|
|
1965
|
-
relationId: Scalars['String'];
|
|
1966
|
-
};
|
|
1967
1639
|
export declare type RemoveExperimentFromCustomerInput = {
|
|
1968
1640
|
/** The id of the record. */
|
|
1969
1641
|
id: Scalars['String'];
|
|
@@ -1998,12 +1670,6 @@ export declare type SetCouponOnCustomerInput = {
|
|
|
1998
1670
|
/** The id of relation. */
|
|
1999
1671
|
relationId: Scalars['String'];
|
|
2000
1672
|
};
|
|
2001
|
-
export declare type SetCouponOnCustomerSubscriptionInput = {
|
|
2002
|
-
/** The id of the record. */
|
|
2003
|
-
id: Scalars['String'];
|
|
2004
|
-
/** The id of relation. */
|
|
2005
|
-
relationId: Scalars['String'];
|
|
2006
|
-
};
|
|
2007
1673
|
export declare type SetExperimentOnCustomerInput = {
|
|
2008
1674
|
/** The id of the record. */
|
|
2009
1675
|
id: Scalars['String'];
|
|
@@ -2112,19 +1778,17 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
2112
1778
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
2113
1779
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
2114
1780
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1781
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
2115
1782
|
id?: InputMaybe<StringFieldComparison>;
|
|
2116
|
-
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
2117
1783
|
or?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
2118
1784
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
2119
1785
|
refId?: InputMaybe<StringFieldComparison>;
|
|
2120
1786
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
2121
1787
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
2122
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
2123
1788
|
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
2124
1789
|
};
|
|
2125
1790
|
export declare type SubscriptionAddonFilterPriceFilter = {
|
|
2126
1791
|
and?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
|
|
2127
|
-
billingId?: InputMaybe<StringFieldComparison>;
|
|
2128
1792
|
billingModel?: InputMaybe<BillingModelFilterComparison>;
|
|
2129
1793
|
billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
|
|
2130
1794
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -2133,6 +1797,7 @@ export declare type SubscriptionAddonFilterPriceFilter = {
|
|
|
2133
1797
|
};
|
|
2134
1798
|
export declare type SubscriptionAddonInput = {
|
|
2135
1799
|
addonId: Scalars['String'];
|
|
1800
|
+
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
2136
1801
|
quantity?: InputMaybe<Scalars['Int']>;
|
|
2137
1802
|
};
|
|
2138
1803
|
export declare type SubscriptionAddonSort = {
|
|
@@ -2146,6 +1811,25 @@ export declare enum SubscriptionAddonSortFields {
|
|
|
2146
1811
|
Quantity = "quantity",
|
|
2147
1812
|
UpdatedAt = "updatedAt"
|
|
2148
1813
|
}
|
|
1814
|
+
export declare type SubscriptionBaseInput = {
|
|
1815
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1816
|
+
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1817
|
+
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1818
|
+
billingCycleAnchor?: InputMaybe<Scalars['DateTime']>;
|
|
1819
|
+
billingId?: InputMaybe<Scalars['String']>;
|
|
1820
|
+
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
1821
|
+
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1822
|
+
crmId?: InputMaybe<Scalars['String']>;
|
|
1823
|
+
currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
|
|
1824
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
1825
|
+
isCustomPriceSubscription?: InputMaybe<Scalars['Boolean']>;
|
|
1826
|
+
isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
|
|
1827
|
+
isTrial?: InputMaybe<Scalars['Boolean']>;
|
|
1828
|
+
planId?: InputMaybe<Scalars['String']>;
|
|
1829
|
+
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
1830
|
+
refId?: InputMaybe<Scalars['String']>;
|
|
1831
|
+
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
1832
|
+
};
|
|
2149
1833
|
export declare type SubscriptionBillingInfo = {
|
|
2150
1834
|
taxRateIds?: InputMaybe<Array<Scalars['String']>>;
|
|
2151
1835
|
};
|
|
@@ -2188,108 +1872,37 @@ export declare enum SubscriptionCancellationTime {
|
|
|
2188
1872
|
Immediate = "IMMEDIATE",
|
|
2189
1873
|
SpecificDate = "SPECIFIC_DATE"
|
|
2190
1874
|
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
SkippedSubscriptionCreation = "SKIPPED_SUBSCRIPTION_CREATION"
|
|
2197
|
-
}
|
|
1875
|
+
export declare type SubscriptionEditTrialEndDateInput = {
|
|
1876
|
+
environmentId: Scalars['String'];
|
|
1877
|
+
subscriptionRefId: Scalars['String'];
|
|
1878
|
+
trialEndDate: Scalars['DateTime'];
|
|
1879
|
+
};
|
|
2198
1880
|
export declare enum SubscriptionEndSetup {
|
|
2199
1881
|
CancelSubscription = "CANCEL_SUBSCRIPTION",
|
|
2200
1882
|
DowngradeToFree = "DOWNGRADE_TO_FREE"
|
|
2201
1883
|
}
|
|
2202
|
-
export declare type SubscriptionEntitlementFilter = {
|
|
2203
|
-
and?: InputMaybe<Array<SubscriptionEntitlementFilter>>;
|
|
2204
|
-
createdAt?: InputMaybe<DateFieldComparison>;
|
|
2205
|
-
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2206
|
-
feature?: InputMaybe<SubscriptionEntitlementFilterFeatureFilter>;
|
|
2207
|
-
id?: InputMaybe<StringFieldComparison>;
|
|
2208
|
-
or?: InputMaybe<Array<SubscriptionEntitlementFilter>>;
|
|
2209
|
-
subscription?: InputMaybe<SubscriptionEntitlementFilterCustomerSubscriptionFilter>;
|
|
2210
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
2211
|
-
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
2212
|
-
};
|
|
2213
|
-
export declare type SubscriptionEntitlementFilterCustomerSubscriptionFilter = {
|
|
2214
|
-
and?: InputMaybe<Array<SubscriptionEntitlementFilterCustomerSubscriptionFilter>>;
|
|
2215
|
-
billingId?: InputMaybe<StringFieldComparison>;
|
|
2216
|
-
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
2217
|
-
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
2218
|
-
createdAt?: InputMaybe<DateFieldComparison>;
|
|
2219
|
-
crmId?: InputMaybe<StringFieldComparison>;
|
|
2220
|
-
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
2221
|
-
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
2222
|
-
endDate?: InputMaybe<DateFieldComparison>;
|
|
2223
|
-
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2224
|
-
id?: InputMaybe<StringFieldComparison>;
|
|
2225
|
-
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
2226
|
-
or?: InputMaybe<Array<SubscriptionEntitlementFilterCustomerSubscriptionFilter>>;
|
|
2227
|
-
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
2228
|
-
refId?: InputMaybe<StringFieldComparison>;
|
|
2229
|
-
startDate?: InputMaybe<DateFieldComparison>;
|
|
2230
|
-
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
2231
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
2232
|
-
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
2233
|
-
};
|
|
2234
|
-
export declare type SubscriptionEntitlementFilterFeatureFilter = {
|
|
2235
|
-
and?: InputMaybe<Array<SubscriptionEntitlementFilterFeatureFilter>>;
|
|
2236
|
-
createdAt?: InputMaybe<DateFieldComparison>;
|
|
2237
|
-
description?: InputMaybe<StringFieldComparison>;
|
|
2238
|
-
displayName?: InputMaybe<StringFieldComparison>;
|
|
2239
|
-
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2240
|
-
featureStatus?: InputMaybe<FeatureStatusFilterComparison>;
|
|
2241
|
-
featureType?: InputMaybe<FeatureTypeFilterComparison>;
|
|
2242
|
-
id?: InputMaybe<StringFieldComparison>;
|
|
2243
|
-
meterType?: InputMaybe<MeterTypeFilterComparison>;
|
|
2244
|
-
or?: InputMaybe<Array<SubscriptionEntitlementFilterFeatureFilter>>;
|
|
2245
|
-
refId?: InputMaybe<StringFieldComparison>;
|
|
2246
|
-
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
2247
|
-
};
|
|
2248
|
-
export declare type SubscriptionEntitlementInput = {
|
|
2249
|
-
description?: InputMaybe<Scalars['String']>;
|
|
2250
|
-
featureId: Scalars['String'];
|
|
2251
|
-
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
2252
|
-
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
2253
|
-
resetPeriod?: InputMaybe<EntitlementResetPeriod>;
|
|
2254
|
-
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
2255
|
-
weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
|
|
2256
|
-
};
|
|
2257
|
-
export declare type SubscriptionEntitlementSort = {
|
|
2258
|
-
direction: SortDirection;
|
|
2259
|
-
field: SubscriptionEntitlementSortFields;
|
|
2260
|
-
nulls?: InputMaybe<SortNulls>;
|
|
2261
|
-
};
|
|
2262
|
-
export declare enum SubscriptionEntitlementSortFields {
|
|
2263
|
-
CreatedAt = "createdAt",
|
|
2264
|
-
EnvironmentId = "environmentId",
|
|
2265
|
-
Id = "id",
|
|
2266
|
-
SubscriptionId = "subscriptionId",
|
|
2267
|
-
UpdatedAt = "updatedAt"
|
|
2268
|
-
}
|
|
2269
1884
|
export declare type SubscriptionInput = {
|
|
2270
1885
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2271
1886
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
2272
1887
|
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1888
|
+
billingCycleAnchor?: InputMaybe<Scalars['DateTime']>;
|
|
2273
1889
|
billingId?: InputMaybe<Scalars['String']>;
|
|
2274
1890
|
billingInformation?: InputMaybe<SubscriptionBillingInfo>;
|
|
2275
1891
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
2276
1892
|
crmId?: InputMaybe<Scalars['String']>;
|
|
1893
|
+
currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
|
|
2277
1894
|
customerId: Scalars['String'];
|
|
2278
1895
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
2279
1896
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
2280
1897
|
isCustomPriceSubscription?: InputMaybe<Scalars['Boolean']>;
|
|
2281
1898
|
isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
|
|
2282
1899
|
isTrial?: InputMaybe<Scalars['Boolean']>;
|
|
2283
|
-
planId
|
|
1900
|
+
planId?: InputMaybe<Scalars['String']>;
|
|
2284
1901
|
priceUnitAmount?: InputMaybe<Scalars['Float']>;
|
|
2285
|
-
promotionCode?: InputMaybe<Scalars['String']>;
|
|
2286
1902
|
refId?: InputMaybe<Scalars['String']>;
|
|
2287
1903
|
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
2288
|
-
subscriptionEntitlements?: InputMaybe<Array<SubscriptionEntitlementInput>>;
|
|
2289
|
-
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
2290
1904
|
};
|
|
2291
1905
|
export declare type SubscriptionMigrationInput = {
|
|
2292
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
2293
1906
|
subscriptionId: Scalars['String'];
|
|
2294
1907
|
};
|
|
2295
1908
|
export declare type SubscriptionMigrationTaskFilter = {
|
|
@@ -2334,19 +1947,17 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
2334
1947
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
2335
1948
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
2336
1949
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1950
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
2337
1951
|
id?: InputMaybe<StringFieldComparison>;
|
|
2338
|
-
oldBillingId?: InputMaybe<StringFieldComparison>;
|
|
2339
1952
|
or?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
2340
1953
|
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
2341
1954
|
refId?: InputMaybe<StringFieldComparison>;
|
|
2342
1955
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
2343
1956
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
2344
|
-
subscriptionId?: InputMaybe<StringFieldComparison>;
|
|
2345
1957
|
trialEndDate?: InputMaybe<DateFieldComparison>;
|
|
2346
1958
|
};
|
|
2347
1959
|
export declare type SubscriptionPriceFilterPriceFilter = {
|
|
2348
1960
|
and?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
|
|
2349
|
-
billingId?: InputMaybe<StringFieldComparison>;
|
|
2350
1961
|
billingModel?: InputMaybe<BillingModelFilterComparison>;
|
|
2351
1962
|
billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
|
|
2352
1963
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -2364,19 +1975,6 @@ export declare enum SubscriptionPriceSortFields {
|
|
|
2364
1975
|
UpdatedAt = "updatedAt",
|
|
2365
1976
|
UsageLimit = "usageLimit"
|
|
2366
1977
|
}
|
|
2367
|
-
/** Subscription scheduled schedule status */
|
|
2368
|
-
export declare enum SubscriptionScheduleStatus {
|
|
2369
|
-
Canceled = "Canceled",
|
|
2370
|
-
Done = "Done",
|
|
2371
|
-
Failed = "Failed",
|
|
2372
|
-
Scheduled = "Scheduled"
|
|
2373
|
-
}
|
|
2374
|
-
/** Subscription scheduled schedule type */
|
|
2375
|
-
export declare enum SubscriptionScheduleType {
|
|
2376
|
-
BillingPeriod = "BillingPeriod",
|
|
2377
|
-
Downgrade = "Downgrade",
|
|
2378
|
-
UnitAmount = "UnitAmount"
|
|
2379
|
-
}
|
|
2380
1978
|
export declare enum SubscriptionStartSetup {
|
|
2381
1979
|
FreePlan = "FREE_PLAN",
|
|
2382
1980
|
PlanSelection = "PLAN_SELECTION",
|
|
@@ -2407,10 +2005,13 @@ export declare type SubscriptionStatusFilterComparison = {
|
|
|
2407
2005
|
notIn?: InputMaybe<Array<SubscriptionStatus>>;
|
|
2408
2006
|
notLike?: InputMaybe<SubscriptionStatus>;
|
|
2409
2007
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2008
|
+
/** Subscription strategy decision */
|
|
2009
|
+
export declare enum SubscriptionStrategyDecision {
|
|
2010
|
+
PredefinedFreePlan = "PREDEFINED_FREE_PLAN",
|
|
2011
|
+
PredefinedTrialPlan = "PREDEFINED_TRIAL_PLAN",
|
|
2012
|
+
RequestedPlan = "REQUESTED_PLAN",
|
|
2013
|
+
SkippedSubscriptionCreation = "SKIPPED_SUBSCRIPTION_CREATION"
|
|
2014
|
+
}
|
|
2414
2015
|
/** Status of the integration sync */
|
|
2415
2016
|
export declare enum SyncStatus {
|
|
2416
2017
|
Error = "ERROR",
|
|
@@ -2477,18 +2078,10 @@ export declare enum TrialPeriodUnits {
|
|
|
2477
2078
|
Day = "DAY",
|
|
2478
2079
|
Month = "MONTH"
|
|
2479
2080
|
}
|
|
2480
|
-
export declare type TypographyConfigurationInput = {
|
|
2481
|
-
body?: InputMaybe<FontVariantInput>;
|
|
2482
|
-
fontFamily?: InputMaybe<Scalars['String']>;
|
|
2483
|
-
h1?: InputMaybe<FontVariantInput>;
|
|
2484
|
-
h2?: InputMaybe<FontVariantInput>;
|
|
2485
|
-
h3?: InputMaybe<FontVariantInput>;
|
|
2486
|
-
};
|
|
2487
2081
|
export declare type UpdateAccountInput = {
|
|
2488
2082
|
displayName: Scalars['String'];
|
|
2489
2083
|
id: Scalars['String'];
|
|
2490
2084
|
subscriptionBillingAnchor?: InputMaybe<BillingAnchor>;
|
|
2491
|
-
subscriptionProrationBehavior?: InputMaybe<ProrationBehavior>;
|
|
2492
2085
|
timezone?: InputMaybe<Scalars['String']>;
|
|
2493
2086
|
};
|
|
2494
2087
|
export declare type UpdateCouponInput = {
|
|
@@ -2504,20 +2097,16 @@ export declare type UpdateCustomerInput = {
|
|
|
2504
2097
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
2505
2098
|
couponRefId?: InputMaybe<Scalars['String']>;
|
|
2506
2099
|
crmId?: InputMaybe<Scalars['String']>;
|
|
2507
|
-
customerId?: InputMaybe<Scalars['String']>;
|
|
2508
2100
|
email?: InputMaybe<Scalars['String']>;
|
|
2509
2101
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
2510
2102
|
name?: InputMaybe<Scalars['String']>;
|
|
2511
|
-
refId
|
|
2103
|
+
refId: Scalars['String'];
|
|
2512
2104
|
};
|
|
2513
2105
|
export declare type UpdateEnvironment = {
|
|
2514
2106
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2515
2107
|
description?: InputMaybe<Scalars['String']>;
|
|
2516
2108
|
displayName?: InputMaybe<Scalars['String']>;
|
|
2517
|
-
hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
2518
2109
|
id?: InputMaybe<Scalars['String']>;
|
|
2519
|
-
provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
|
|
2520
|
-
signingToken?: InputMaybe<Scalars['String']>;
|
|
2521
2110
|
slug?: InputMaybe<Scalars['String']>;
|
|
2522
2111
|
};
|
|
2523
2112
|
export declare type UpdateExperimentInput = {
|
|
@@ -2527,12 +2116,11 @@ export declare type UpdateExperimentInput = {
|
|
|
2527
2116
|
name?: InputMaybe<Scalars['String']>;
|
|
2528
2117
|
productId?: InputMaybe<Scalars['String']>;
|
|
2529
2118
|
productSettings?: InputMaybe<ProductSettingsInput>;
|
|
2530
|
-
refId
|
|
2119
|
+
refId?: InputMaybe<Scalars['String']>;
|
|
2531
2120
|
variantGroupName?: InputMaybe<Scalars['String']>;
|
|
2532
2121
|
variantPercentage?: InputMaybe<Scalars['Float']>;
|
|
2533
2122
|
};
|
|
2534
2123
|
export declare type UpdateFeature = {
|
|
2535
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2536
2124
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2537
2125
|
description?: InputMaybe<Scalars['String']>;
|
|
2538
2126
|
displayName?: InputMaybe<Scalars['String']>;
|
|
@@ -2546,15 +2134,6 @@ export declare type UpdateFeature = {
|
|
|
2546
2134
|
refId?: InputMaybe<Scalars['String']>;
|
|
2547
2135
|
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
|
2548
2136
|
};
|
|
2549
|
-
export declare type UpdateFeatureInput = {
|
|
2550
|
-
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2551
|
-
description?: InputMaybe<Scalars['String']>;
|
|
2552
|
-
displayName?: InputMaybe<Scalars['String']>;
|
|
2553
|
-
environmentId: Scalars['String'];
|
|
2554
|
-
featureUnits?: InputMaybe<Scalars['String']>;
|
|
2555
|
-
featureUnitsPlural?: InputMaybe<Scalars['String']>;
|
|
2556
|
-
refId: Scalars['String'];
|
|
2557
|
-
};
|
|
2558
2137
|
export declare type UpdateHook = {
|
|
2559
2138
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2560
2139
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -2612,33 +2191,10 @@ export declare type UpdateOnePromotionalEntitlementInput = {
|
|
|
2612
2191
|
/** The update to apply. */
|
|
2613
2192
|
update: PromotionalEntitlementUpdateInput;
|
|
2614
2193
|
};
|
|
2615
|
-
export declare type UpdatePackageEntitlementOrderInput = {
|
|
2616
|
-
entitlements: Array<UpdatePackageEntitlementOrderItemInput>;
|
|
2617
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
2618
|
-
packageId: Scalars['String'];
|
|
2619
|
-
};
|
|
2620
|
-
export declare type UpdatePackageEntitlementOrderItemInput = {
|
|
2621
|
-
id: Scalars['String'];
|
|
2622
|
-
order?: InputMaybe<Scalars['Float']>;
|
|
2623
|
-
};
|
|
2624
|
-
export declare type UpdateSubscriptionEntitlementInput = {
|
|
2625
|
-
hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
|
|
2626
|
-
id: Scalars['String'];
|
|
2627
|
-
monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
|
|
2628
|
-
resetPeriod?: InputMaybe<EntitlementResetPeriod>;
|
|
2629
|
-
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
2630
|
-
weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
|
|
2631
|
-
};
|
|
2632
2194
|
export declare type UpdateSubscriptionInput = {
|
|
2633
2195
|
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2634
|
-
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
2635
|
-
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
2636
2196
|
environmentId?: InputMaybe<Scalars['String']>;
|
|
2637
|
-
|
|
2638
|
-
refId?: InputMaybe<Scalars['String']>;
|
|
2639
|
-
subscriptionEntitlements?: InputMaybe<Array<UpdateSubscriptionEntitlementInput>>;
|
|
2640
|
-
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
2641
|
-
trialEndDate?: InputMaybe<Scalars['DateTime']>;
|
|
2197
|
+
refId: Scalars['String'];
|
|
2642
2198
|
unitQuantity?: InputMaybe<Scalars['Float']>;
|
|
2643
2199
|
};
|
|
2644
2200
|
export declare type UsageHistoryInput = {
|
|
@@ -2674,9 +2230,9 @@ export declare type UsageMeasurementFilterCustomerFilter = {
|
|
|
2674
2230
|
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
2675
2231
|
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
2676
2232
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
2677
|
-
customerId?: InputMaybe<StringFieldComparison>;
|
|
2678
2233
|
email?: InputMaybe<StringFieldComparison>;
|
|
2679
2234
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
2235
|
+
experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
|
|
2680
2236
|
id?: InputMaybe<StringFieldComparison>;
|
|
2681
2237
|
name?: InputMaybe<StringFieldComparison>;
|
|
2682
2238
|
or?: InputMaybe<Array<UsageMeasurementFilterCustomerFilter>>;
|
|
@@ -2742,145 +2298,28 @@ export declare enum WeeklyAccordingTo {
|
|
|
2742
2298
|
export declare type WeeklyResetPeriodConfigInput = {
|
|
2743
2299
|
accordingTo: WeeklyAccordingTo;
|
|
2744
2300
|
};
|
|
2745
|
-
export declare type WidgetConfigurationUpdateInput = {
|
|
2746
|
-
customerPortalConfiguration?: InputMaybe<CustomerPortalConfigurationInput>;
|
|
2747
|
-
environmentId?: InputMaybe<Scalars['String']>;
|
|
2748
|
-
paywallConfiguration?: InputMaybe<PaywallConfigurationInput>;
|
|
2749
|
-
};
|
|
2750
|
-
/** The widget type */
|
|
2751
|
-
export declare enum WidgetType {
|
|
2752
|
-
CustomerPortal = "CUSTOMER_PORTAL",
|
|
2753
|
-
Paywall = "PAYWALL"
|
|
2754
|
-
}
|
|
2755
2301
|
export declare type ZuoraCredentialsInput = {
|
|
2756
2302
|
baseUrl: Scalars['String'];
|
|
2757
2303
|
clientId: Scalars['String'];
|
|
2758
2304
|
clientSecret: Scalars['String'];
|
|
2759
2305
|
};
|
|
2760
|
-
/** The group of the experiment */
|
|
2761
|
-
export declare enum ExperimentGroupType {
|
|
2762
|
-
Control = "CONTROL",
|
|
2763
|
-
Variant = "VARIANT"
|
|
2764
|
-
}
|
|
2765
|
-
export declare type CouponFragment = {
|
|
2766
|
-
__typename?: 'Coupon';
|
|
2767
|
-
id: string;
|
|
2768
|
-
discountValue: number;
|
|
2769
|
-
type: CouponType;
|
|
2770
|
-
additionalMetaData?: any | null;
|
|
2771
|
-
refId: string;
|
|
2772
|
-
name: string;
|
|
2773
|
-
description?: string | null;
|
|
2774
|
-
createdAt: any;
|
|
2775
|
-
updatedAt: any;
|
|
2776
|
-
billingId?: string | null;
|
|
2777
|
-
billingLinkUrl?: string | null;
|
|
2778
|
-
status: CouponStatus;
|
|
2779
|
-
syncStates?: Array<{
|
|
2780
|
-
__typename?: 'SyncState';
|
|
2781
|
-
vendorIdentifier: VendorIdentifier;
|
|
2782
|
-
status: SyncStatus;
|
|
2783
|
-
}> | null;
|
|
2784
|
-
customers?: Array<{
|
|
2785
|
-
__typename?: 'Customer';
|
|
2786
|
-
id: string;
|
|
2787
|
-
}> | null;
|
|
2788
|
-
};
|
|
2789
|
-
export declare type PriceFragment = {
|
|
2790
|
-
__typename?: 'Price';
|
|
2791
|
-
billingModel: BillingModel;
|
|
2792
|
-
billingPeriod: BillingPeriod;
|
|
2793
|
-
billingId?: string | null;
|
|
2794
|
-
minUnitQuantity?: number | null;
|
|
2795
|
-
maxUnitQuantity?: number | null;
|
|
2796
|
-
price: {
|
|
2797
|
-
__typename?: 'Money';
|
|
2798
|
-
amount: number;
|
|
2799
|
-
currency: Currency;
|
|
2800
|
-
};
|
|
2801
|
-
feature?: {
|
|
2802
|
-
__typename?: 'Feature';
|
|
2803
|
-
featureUnits?: string | null;
|
|
2804
|
-
featureUnitsPlural?: string | null;
|
|
2805
|
-
displayName: string;
|
|
2806
|
-
} | null;
|
|
2807
|
-
};
|
|
2808
|
-
export declare type TotalPriceFragment = {
|
|
2809
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
2810
|
-
subTotal: {
|
|
2811
|
-
__typename?: 'Money';
|
|
2812
|
-
amount: number;
|
|
2813
|
-
currency: Currency;
|
|
2814
|
-
};
|
|
2815
|
-
total: {
|
|
2816
|
-
__typename?: 'Money';
|
|
2817
|
-
amount: number;
|
|
2818
|
-
currency: Currency;
|
|
2819
|
-
};
|
|
2820
|
-
};
|
|
2821
|
-
export declare type PackageEntitlementFragment = {
|
|
2822
|
-
__typename?: 'PackageEntitlement';
|
|
2823
|
-
usageLimit?: number | null;
|
|
2824
|
-
hasUnlimitedUsage?: boolean | null;
|
|
2825
|
-
featureId: string;
|
|
2826
|
-
resetPeriod?: EntitlementResetPeriod | null;
|
|
2827
|
-
hiddenFromWidgets?: Array<WidgetType> | null;
|
|
2828
|
-
isCustom?: boolean | null;
|
|
2829
|
-
displayNameOverride?: string | null;
|
|
2830
|
-
feature: {
|
|
2831
|
-
__typename?: 'Feature';
|
|
2832
|
-
featureType: FeatureType;
|
|
2833
|
-
meterType?: MeterType | null;
|
|
2834
|
-
featureUnits?: string | null;
|
|
2835
|
-
featureUnitsPlural?: string | null;
|
|
2836
|
-
displayName: string;
|
|
2837
|
-
description?: string | null;
|
|
2838
|
-
refId: string;
|
|
2839
|
-
additionalMetaData?: any | null;
|
|
2840
|
-
};
|
|
2841
|
-
};
|
|
2842
|
-
export declare type AddonFragment = {
|
|
2843
|
-
__typename?: 'Addon';
|
|
2844
|
-
refId: string;
|
|
2845
|
-
billingId?: string | null;
|
|
2846
|
-
displayName: string;
|
|
2847
|
-
description?: string | null;
|
|
2848
|
-
additionalMetaData?: any | null;
|
|
2849
|
-
pricingType?: PricingType | null;
|
|
2850
|
-
entitlements?: Array<({
|
|
2851
|
-
__typename?: 'PackageEntitlement';
|
|
2852
|
-
} & PackageEntitlementFragment)> | null;
|
|
2853
|
-
prices?: Array<({
|
|
2854
|
-
__typename?: 'Price';
|
|
2855
|
-
} & PriceFragment)> | null;
|
|
2856
|
-
};
|
|
2857
2306
|
export declare type PlanFragment = {
|
|
2858
2307
|
__typename?: 'Plan';
|
|
2859
|
-
refId: string;
|
|
2860
2308
|
displayName: string;
|
|
2861
2309
|
description?: string | null;
|
|
2862
|
-
billingId?: string | null;
|
|
2863
|
-
additionalMetaData?: any | null;
|
|
2864
2310
|
pricingType?: PricingType | null;
|
|
2311
|
+
id: string;
|
|
2312
|
+
metadata?: any | null;
|
|
2865
2313
|
product: {
|
|
2866
2314
|
__typename?: 'Product';
|
|
2867
|
-
refId: string;
|
|
2868
2315
|
displayName?: string | null;
|
|
2869
2316
|
description?: string | null;
|
|
2870
|
-
|
|
2871
|
-
productSettings: {
|
|
2872
|
-
__typename?: 'ProductSettings';
|
|
2873
|
-
downgradePlan?: {
|
|
2874
|
-
__typename?: 'Plan';
|
|
2875
|
-
refId: string;
|
|
2876
|
-
displayName: string;
|
|
2877
|
-
} | null;
|
|
2878
|
-
};
|
|
2317
|
+
id: string;
|
|
2879
2318
|
};
|
|
2880
2319
|
basePlan?: {
|
|
2881
2320
|
__typename?: 'Plan';
|
|
2882
|
-
refId: string;
|
|
2883
2321
|
displayName: string;
|
|
2322
|
+
id: string;
|
|
2884
2323
|
} | null;
|
|
2885
2324
|
entitlements?: Array<({
|
|
2886
2325
|
__typename?: 'PackageEntitlement';
|
|
@@ -2900,100 +2339,73 @@ export declare type PlanFragment = {
|
|
|
2900
2339
|
units: TrialPeriodUnits;
|
|
2901
2340
|
} | null;
|
|
2902
2341
|
};
|
|
2903
|
-
export declare type
|
|
2904
|
-
__typename?: '
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
billingId?: string | null;
|
|
2910
|
-
billingLinkUrl?: string | null;
|
|
2911
|
-
effectiveEndDate?: any | null;
|
|
2912
|
-
currentBillingPeriodEnd?: any | null;
|
|
2913
|
-
pricingType: PricingType;
|
|
2914
|
-
experimentInfo?: {
|
|
2915
|
-
__typename?: 'experimentInfo';
|
|
2916
|
-
name: string;
|
|
2917
|
-
id: string;
|
|
2918
|
-
groupName: string;
|
|
2919
|
-
groupType: ExperimentGroupType;
|
|
2920
|
-
} | null;
|
|
2921
|
-
prices?: Array<{
|
|
2922
|
-
__typename?: 'SubscriptionPrice';
|
|
2923
|
-
usageLimit?: number | null;
|
|
2924
|
-
price?: ({
|
|
2925
|
-
__typename?: 'Price';
|
|
2926
|
-
} & PriceFragment) | null;
|
|
2927
|
-
}> | null;
|
|
2928
|
-
totalPrice?: ({
|
|
2929
|
-
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
2930
|
-
} & TotalPriceFragment) | null;
|
|
2931
|
-
plan: {
|
|
2932
|
-
__typename?: 'Plan';
|
|
2933
|
-
id: string;
|
|
2934
|
-
refId: string;
|
|
2342
|
+
export declare type TotalPriceFragment = {
|
|
2343
|
+
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
2344
|
+
subTotal: {
|
|
2345
|
+
__typename?: 'Money';
|
|
2346
|
+
amount: number;
|
|
2347
|
+
currency: Currency;
|
|
2935
2348
|
};
|
|
2936
|
-
|
|
2937
|
-
__typename?: '
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
__typename?: 'Addon';
|
|
2941
|
-
id: string;
|
|
2942
|
-
refId: string;
|
|
2943
|
-
};
|
|
2944
|
-
}> | null;
|
|
2945
|
-
customer: {
|
|
2946
|
-
__typename?: 'Customer';
|
|
2947
|
-
id: string;
|
|
2948
|
-
refId: string;
|
|
2349
|
+
total: {
|
|
2350
|
+
__typename?: 'Money';
|
|
2351
|
+
amount: number;
|
|
2352
|
+
currency: Currency;
|
|
2949
2353
|
};
|
|
2950
2354
|
};
|
|
2951
|
-
export declare type
|
|
2952
|
-
__typename?: '
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2355
|
+
export declare type PriceFragment = {
|
|
2356
|
+
__typename?: 'Price';
|
|
2357
|
+
billingModel: BillingModel;
|
|
2358
|
+
billingPeriod: BillingPeriod;
|
|
2359
|
+
price: {
|
|
2360
|
+
__typename?: 'Money';
|
|
2361
|
+
amount: number;
|
|
2362
|
+
currency: Currency;
|
|
2363
|
+
};
|
|
2364
|
+
feature?: ({
|
|
2365
|
+
__typename?: 'Feature';
|
|
2366
|
+
} & FeatureFragment) | null;
|
|
2367
|
+
};
|
|
2368
|
+
export declare type PackageEntitlementFragment = {
|
|
2369
|
+
__typename?: 'PackageEntitlement';
|
|
2370
|
+
usageLimit?: number | null;
|
|
2371
|
+
hasUnlimitedUsage?: boolean | null;
|
|
2372
|
+
featureId: string;
|
|
2373
|
+
resetPeriod?: EntitlementResetPeriod | null;
|
|
2374
|
+
feature: ({
|
|
2375
|
+
__typename?: 'Feature';
|
|
2376
|
+
} & FeatureFragment);
|
|
2377
|
+
};
|
|
2378
|
+
export declare type AddonFragment = {
|
|
2379
|
+
__typename?: 'Addon';
|
|
2380
|
+
displayName: string;
|
|
2381
|
+
description?: string | null;
|
|
2382
|
+
pricingType?: PricingType | null;
|
|
2383
|
+
id: string;
|
|
2384
|
+
metadata?: any | null;
|
|
2385
|
+
entitlements?: Array<({
|
|
2386
|
+
__typename?: 'PackageEntitlement';
|
|
2387
|
+
} & PackageEntitlementFragment)> | null;
|
|
2968
2388
|
};
|
|
2969
2389
|
export declare type SubscriptionFragment = {
|
|
2970
2390
|
__typename?: 'CustomerSubscription';
|
|
2971
|
-
|
|
2391
|
+
status: SubscriptionStatus;
|
|
2972
2392
|
startDate: any;
|
|
2973
2393
|
endDate?: any | null;
|
|
2974
2394
|
trialEndDate?: any | null;
|
|
2975
2395
|
cancellationDate?: any | null;
|
|
2976
2396
|
effectiveEndDate?: any | null;
|
|
2977
|
-
status: SubscriptionStatus;
|
|
2978
|
-
refId: string;
|
|
2979
2397
|
currentBillingPeriodEnd?: any | null;
|
|
2980
|
-
additionalMetaData?: any | null;
|
|
2981
2398
|
billingId?: string | null;
|
|
2982
2399
|
billingLinkUrl?: string | null;
|
|
2983
2400
|
pricingType: PricingType;
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
name: string;
|
|
2987
|
-
groupType: ExperimentGroupType;
|
|
2988
|
-
groupName: string;
|
|
2989
|
-
id: string;
|
|
2990
|
-
} | null;
|
|
2401
|
+
id: string;
|
|
2402
|
+
metadata?: any | null;
|
|
2991
2403
|
prices?: Array<{
|
|
2992
2404
|
__typename?: 'SubscriptionPrice';
|
|
2993
2405
|
usageLimit?: number | null;
|
|
2994
|
-
price
|
|
2406
|
+
price: ({
|
|
2995
2407
|
__typename?: 'Price';
|
|
2996
|
-
} & PriceFragment)
|
|
2408
|
+
} & PriceFragment);
|
|
2997
2409
|
}> | null;
|
|
2998
2410
|
totalPrice?: ({
|
|
2999
2411
|
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
@@ -3009,9 +2421,6 @@ export declare type SubscriptionFragment = {
|
|
|
3009
2421
|
__typename?: 'Addon';
|
|
3010
2422
|
} & AddonFragment);
|
|
3011
2423
|
}> | null;
|
|
3012
|
-
scheduledUpdates?: Array<({
|
|
3013
|
-
__typename?: 'SubscriptionScheduledUpdate';
|
|
3014
|
-
} & SubscriptionScheduledUpdateDataFragment)> | null;
|
|
3015
2424
|
};
|
|
3016
2425
|
export declare type PromotionalEntitlementFragment = {
|
|
3017
2426
|
__typename?: 'PromotionalEntitlement';
|
|
@@ -3022,138 +2431,124 @@ export declare type PromotionalEntitlementFragment = {
|
|
|
3022
2431
|
resetPeriod?: EntitlementResetPeriod | null;
|
|
3023
2432
|
endDate?: any | null;
|
|
3024
2433
|
isVisible: boolean;
|
|
3025
|
-
feature: {
|
|
2434
|
+
feature: ({
|
|
3026
2435
|
__typename?: 'Feature';
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
2436
|
+
} & FeatureFragment);
|
|
2437
|
+
};
|
|
2438
|
+
export declare type CouponFragment = {
|
|
2439
|
+
__typename?: 'Coupon';
|
|
2440
|
+
name: string;
|
|
2441
|
+
description?: string | null;
|
|
2442
|
+
type: CouponType;
|
|
2443
|
+
discountValue: number;
|
|
2444
|
+
createdAt: any;
|
|
2445
|
+
updatedAt: any;
|
|
2446
|
+
billingId?: string | null;
|
|
2447
|
+
billingLinkUrl?: string | null;
|
|
2448
|
+
status: CouponStatus;
|
|
2449
|
+
id: string;
|
|
2450
|
+
metadata?: any | null;
|
|
3036
2451
|
};
|
|
3037
2452
|
export declare type CustomerFragment = {
|
|
3038
2453
|
__typename?: 'Customer';
|
|
3039
|
-
id: string;
|
|
3040
2454
|
name?: string | null;
|
|
3041
2455
|
email?: string | null;
|
|
3042
2456
|
createdAt?: any | null;
|
|
3043
2457
|
updatedAt: any;
|
|
3044
2458
|
hasPaymentMethod: boolean;
|
|
3045
|
-
refId: string;
|
|
3046
2459
|
billingId?: string | null;
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
additionalMetaData?: any | null;
|
|
3051
|
-
trialedPlans?: Array<{
|
|
3052
|
-
__typename?: 'TrialedPlan';
|
|
3053
|
-
productId?: string | null;
|
|
3054
|
-
productRefId?: string | null;
|
|
3055
|
-
planRefId?: string | null;
|
|
3056
|
-
planId?: string | null;
|
|
3057
|
-
}> | null;
|
|
3058
|
-
experimentInfo?: {
|
|
3059
|
-
__typename?: 'experimentInfo';
|
|
3060
|
-
groupType: ExperimentGroupType;
|
|
3061
|
-
groupName: string;
|
|
3062
|
-
id: string;
|
|
3063
|
-
name: string;
|
|
3064
|
-
} | null;
|
|
3065
|
-
coupon?: ({
|
|
3066
|
-
__typename?: 'Coupon';
|
|
3067
|
-
} & CouponFragment) | null;
|
|
3068
|
-
eligibleForTrial?: Array<{
|
|
3069
|
-
__typename?: 'EligibleForTrial';
|
|
3070
|
-
productId?: string | null;
|
|
3071
|
-
productRefId?: string | null;
|
|
3072
|
-
eligible: boolean;
|
|
3073
|
-
}> | null;
|
|
3074
|
-
promotionalEntitlements: Array<({
|
|
3075
|
-
__typename?: 'PromotionalEntitlement';
|
|
3076
|
-
} & PromotionalEntitlementFragment)>;
|
|
2460
|
+
id: string;
|
|
2461
|
+
metadata?: any | null;
|
|
2462
|
+
email2?: string | null;
|
|
3077
2463
|
subscriptions?: Array<({
|
|
3078
2464
|
__typename?: 'CustomerSubscription';
|
|
3079
2465
|
} & SubscriptionFragment)> | null;
|
|
2466
|
+
promotionalEntitlements: Array<({
|
|
2467
|
+
__typename?: 'PromotionalEntitlement';
|
|
2468
|
+
} & PromotionalEntitlementFragment)>;
|
|
2469
|
+
coupon?: ({
|
|
2470
|
+
__typename?: 'Coupon';
|
|
2471
|
+
} & CouponFragment) | null;
|
|
3080
2472
|
};
|
|
3081
|
-
export declare type
|
|
3082
|
-
__typename?: '
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
2473
|
+
export declare type SlimSubscriptionFragment = {
|
|
2474
|
+
__typename?: 'CustomerSubscription';
|
|
2475
|
+
status: SubscriptionStatus;
|
|
2476
|
+
billingId?: string | null;
|
|
2477
|
+
billingLinkUrl?: string | null;
|
|
2478
|
+
effectiveEndDate?: any | null;
|
|
2479
|
+
currentBillingPeriodEnd?: any | null;
|
|
2480
|
+
pricingType: PricingType;
|
|
2481
|
+
id: string;
|
|
2482
|
+
metadata?: any | null;
|
|
2483
|
+
prices?: Array<{
|
|
2484
|
+
__typename?: 'SubscriptionPrice';
|
|
2485
|
+
usageLimit?: number | null;
|
|
2486
|
+
price: ({
|
|
2487
|
+
__typename?: 'Price';
|
|
2488
|
+
} & PriceFragment);
|
|
2489
|
+
}> | null;
|
|
2490
|
+
totalPrice?: ({
|
|
2491
|
+
__typename?: 'CustomerSubscriptionTotalPrice';
|
|
2492
|
+
} & TotalPriceFragment) | null;
|
|
2493
|
+
plan: {
|
|
2494
|
+
__typename?: 'Plan';
|
|
2495
|
+
id: string;
|
|
3087
2496
|
};
|
|
3088
|
-
|
|
3089
|
-
__typename?: '
|
|
3090
|
-
|
|
3091
|
-
|
|
2497
|
+
addons?: Array<{
|
|
2498
|
+
__typename?: 'SubscriptionAddon';
|
|
2499
|
+
quantity: number;
|
|
2500
|
+
addon: {
|
|
2501
|
+
__typename?: 'Addon';
|
|
2502
|
+
id: string;
|
|
2503
|
+
};
|
|
2504
|
+
}> | null;
|
|
2505
|
+
customer: {
|
|
2506
|
+
__typename?: 'Customer';
|
|
2507
|
+
id: string;
|
|
3092
2508
|
};
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
2509
|
+
};
|
|
2510
|
+
export declare type PaywallPlanFragment = {
|
|
2511
|
+
__typename?: 'Plan';
|
|
2512
|
+
description?: string | null;
|
|
2513
|
+
displayName: string;
|
|
2514
|
+
pricingType?: PricingType | null;
|
|
2515
|
+
id: string;
|
|
2516
|
+
metadata?: any | null;
|
|
2517
|
+
product: {
|
|
2518
|
+
__typename?: 'Product';
|
|
2519
|
+
displayName?: string | null;
|
|
2520
|
+
description?: string | null;
|
|
2521
|
+
id: string;
|
|
3097
2522
|
};
|
|
3098
|
-
|
|
3099
|
-
__typename?: '
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
2523
|
+
basePlan?: {
|
|
2524
|
+
__typename?: 'Plan';
|
|
2525
|
+
displayName: string;
|
|
2526
|
+
id: string;
|
|
2527
|
+
} | null;
|
|
2528
|
+
entitlements?: Array<({
|
|
2529
|
+
__typename?: 'PackageEntitlement';
|
|
2530
|
+
} & PaywallPackageEntitlementFragment)> | null;
|
|
2531
|
+
inheritedEntitlements?: Array<({
|
|
2532
|
+
__typename?: 'PackageEntitlement';
|
|
2533
|
+
} & PaywallPackageEntitlementFragment)> | null;
|
|
2534
|
+
prices?: Array<({
|
|
2535
|
+
__typename?: 'Price';
|
|
2536
|
+
} & PaywallPriceFragment)> | null;
|
|
2537
|
+
defaultTrialConfig?: {
|
|
2538
|
+
__typename?: 'DefaultTrialConfig';
|
|
2539
|
+
duration: number;
|
|
2540
|
+
units: TrialPeriodUnits;
|
|
3111
2541
|
} | null;
|
|
3112
2542
|
};
|
|
3113
2543
|
export declare type FeatureFragment = {
|
|
3114
|
-
__typename?: '
|
|
2544
|
+
__typename?: 'Feature';
|
|
3115
2545
|
featureType: FeatureType;
|
|
3116
2546
|
meterType?: MeterType | null;
|
|
3117
2547
|
featureUnits?: string | null;
|
|
3118
2548
|
featureUnitsPlural?: string | null;
|
|
3119
|
-
description?: string | null;
|
|
3120
2549
|
displayName: string;
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
declare type ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ = ({
|
|
3124
|
-
__typename: 'MonthlyResetPeriodConfig';
|
|
3125
|
-
} & MonthlyResetPeriodConfigFragment);
|
|
3126
|
-
declare type ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_ = ({
|
|
3127
|
-
__typename: 'WeeklyResetPeriodConfig';
|
|
3128
|
-
} & WeeklyResetPeriodConfigFragment);
|
|
3129
|
-
export declare type ResetPeriodConfigurationFragment = ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ | ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_;
|
|
3130
|
-
export declare type MonthlyResetPeriodConfigFragment = {
|
|
3131
|
-
__typename?: 'MonthlyResetPeriodConfig';
|
|
3132
|
-
monthlyAccordingTo?: MonthlyAccordingTo | null;
|
|
3133
|
-
};
|
|
3134
|
-
export declare type WeeklyResetPeriodConfigFragment = {
|
|
3135
|
-
__typename?: 'WeeklyResetPeriodConfig';
|
|
3136
|
-
weeklyAccordingTo?: WeeklyAccordingTo | null;
|
|
3137
|
-
};
|
|
3138
|
-
export declare type EntitlementFragment = {
|
|
3139
|
-
__typename?: 'Entitlement';
|
|
3140
|
-
isGranted: boolean;
|
|
3141
|
-
accessDeniedReason?: AccessDeniedReason | null;
|
|
3142
|
-
customerId?: string | null;
|
|
3143
|
-
usageLimit?: number | null;
|
|
3144
|
-
hasUnlimitedUsage: boolean;
|
|
3145
|
-
currentUsage?: number | null;
|
|
3146
|
-
requestedUsage?: number | null;
|
|
3147
|
-
nextResetDate?: any | null;
|
|
3148
|
-
resetPeriod?: EntitlementResetPeriod | null;
|
|
3149
|
-
resetPeriodConfiguration?: ({
|
|
3150
|
-
__typename?: 'MonthlyResetPeriodConfig';
|
|
3151
|
-
} & ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_) | ({
|
|
3152
|
-
__typename?: 'WeeklyResetPeriodConfig';
|
|
3153
|
-
} & ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_) | null;
|
|
3154
|
-
feature?: ({
|
|
3155
|
-
__typename?: 'EntitlementFeature';
|
|
3156
|
-
} & FeatureFragment) | null;
|
|
2550
|
+
description?: string | null;
|
|
2551
|
+
id: string;
|
|
3157
2552
|
};
|
|
3158
2553
|
export declare type PaywallPackageEntitlementFragment = {
|
|
3159
2554
|
__typename?: 'PackageEntitlement';
|
|
@@ -3161,133 +2556,67 @@ export declare type PaywallPackageEntitlementFragment = {
|
|
|
3161
2556
|
hasUnlimitedUsage?: boolean | null;
|
|
3162
2557
|
featureId: string;
|
|
3163
2558
|
resetPeriod?: EntitlementResetPeriod | null;
|
|
3164
|
-
feature: {
|
|
2559
|
+
feature: ({
|
|
3165
2560
|
__typename?: 'Feature';
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
2561
|
+
} & FeatureFragment);
|
|
2562
|
+
};
|
|
2563
|
+
export declare type PaywallPriceFragment = {
|
|
2564
|
+
__typename?: 'Price';
|
|
2565
|
+
billingModel: BillingModel;
|
|
2566
|
+
billingPeriod: BillingPeriod;
|
|
2567
|
+
price: {
|
|
2568
|
+
__typename?: 'Money';
|
|
2569
|
+
amount: number;
|
|
2570
|
+
currency: Currency;
|
|
3173
2571
|
};
|
|
2572
|
+
feature?: ({
|
|
2573
|
+
__typename?: 'Feature';
|
|
2574
|
+
} & FeatureFragment) | null;
|
|
3174
2575
|
};
|
|
3175
2576
|
export declare type PaywallAddonFragment = {
|
|
3176
2577
|
__typename?: 'Addon';
|
|
3177
|
-
id: string;
|
|
3178
|
-
refId: string;
|
|
3179
|
-
billingId?: string | null;
|
|
3180
2578
|
displayName: string;
|
|
3181
2579
|
description?: string | null;
|
|
3182
|
-
additionalMetaData?: any | null;
|
|
3183
2580
|
pricingType?: PricingType | null;
|
|
3184
|
-
entitlements?: Array<({
|
|
3185
|
-
__typename?: 'PackageEntitlement';
|
|
3186
|
-
} & PaywallPackageEntitlementFragment)> | null;
|
|
3187
|
-
prices?: Array<({
|
|
3188
|
-
__typename?: 'Price';
|
|
3189
|
-
} & PriceFragment)> | null;
|
|
3190
|
-
};
|
|
3191
|
-
export declare type PaywallPlanFragment = {
|
|
3192
|
-
__typename?: 'Plan';
|
|
3193
2581
|
id: string;
|
|
3194
|
-
|
|
3195
|
-
description?: string | null;
|
|
3196
|
-
displayName: string;
|
|
3197
|
-
billingId?: string | null;
|
|
3198
|
-
additionalMetaData?: any | null;
|
|
3199
|
-
pricingType?: PricingType | null;
|
|
3200
|
-
product: {
|
|
3201
|
-
__typename?: 'Product';
|
|
3202
|
-
refId: string;
|
|
3203
|
-
displayName?: string | null;
|
|
3204
|
-
description?: string | null;
|
|
3205
|
-
additionalMetaData?: any | null;
|
|
3206
|
-
productSettings: {
|
|
3207
|
-
__typename?: 'ProductSettings';
|
|
3208
|
-
downgradePlan?: {
|
|
3209
|
-
__typename?: 'Plan';
|
|
3210
|
-
refId: string;
|
|
3211
|
-
displayName: string;
|
|
3212
|
-
} | null;
|
|
3213
|
-
};
|
|
3214
|
-
};
|
|
3215
|
-
basePlan?: {
|
|
3216
|
-
__typename?: 'Plan';
|
|
3217
|
-
refId: string;
|
|
3218
|
-
displayName: string;
|
|
3219
|
-
} | null;
|
|
2582
|
+
metadata?: any | null;
|
|
3220
2583
|
entitlements?: Array<({
|
|
3221
2584
|
__typename?: 'PackageEntitlement';
|
|
3222
2585
|
} & PaywallPackageEntitlementFragment)> | null;
|
|
3223
|
-
inheritedEntitlements?: Array<({
|
|
3224
|
-
__typename?: 'PackageEntitlement';
|
|
3225
|
-
} & PaywallPackageEntitlementFragment)> | null;
|
|
3226
2586
|
prices?: Array<({
|
|
3227
2587
|
__typename?: 'Price';
|
|
3228
|
-
} &
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
__typename?: '
|
|
3243
|
-
} &
|
|
3244
|
-
h2?: ({
|
|
3245
|
-
__typename?: 'FontVariant';
|
|
3246
|
-
} & FontVariantFragment) | null;
|
|
3247
|
-
h3?: ({
|
|
3248
|
-
__typename?: 'FontVariant';
|
|
3249
|
-
} & FontVariantFragment) | null;
|
|
3250
|
-
body?: ({
|
|
3251
|
-
__typename?: 'FontVariant';
|
|
3252
|
-
} & FontVariantFragment) | null;
|
|
3253
|
-
};
|
|
3254
|
-
export declare type FontVariantFragment = {
|
|
3255
|
-
__typename?: 'FontVariant';
|
|
3256
|
-
fontSize?: number | null;
|
|
3257
|
-
fontWeight?: FontWeight | null;
|
|
3258
|
-
};
|
|
3259
|
-
export declare type LayoutConfigurationFragment = {
|
|
3260
|
-
__typename?: 'PaywallLayoutConfiguration';
|
|
3261
|
-
alignment?: Alignment | null;
|
|
3262
|
-
planWidth?: number | null;
|
|
3263
|
-
planMargin?: number | null;
|
|
3264
|
-
planPadding?: number | null;
|
|
3265
|
-
};
|
|
3266
|
-
export declare type PaywallConfigurationFragment = {
|
|
3267
|
-
__typename?: 'PaywallConfiguration';
|
|
3268
|
-
palette?: {
|
|
3269
|
-
__typename?: 'PaywallColorsPalette';
|
|
3270
|
-
primary?: string | null;
|
|
3271
|
-
textColor?: string | null;
|
|
3272
|
-
backgroundColor?: string | null;
|
|
3273
|
-
borderColor?: string | null;
|
|
3274
|
-
currentPlanBackground?: string | null;
|
|
3275
|
-
} | null;
|
|
3276
|
-
typography?: ({
|
|
3277
|
-
__typename?: 'TypographyConfiguration';
|
|
3278
|
-
} & TypographyConfigurationFragment) | null;
|
|
3279
|
-
layout?: ({
|
|
3280
|
-
__typename?: 'PaywallLayoutConfiguration';
|
|
3281
|
-
} & LayoutConfigurationFragment) | null;
|
|
2588
|
+
} & PaywallPriceFragment)> | null;
|
|
2589
|
+
};
|
|
2590
|
+
export declare type CreateCustomerMutationVariables = Exact<{
|
|
2591
|
+
customerId: Scalars['String'];
|
|
2592
|
+
email?: InputMaybe<Scalars['String']>;
|
|
2593
|
+
name?: InputMaybe<Scalars['String']>;
|
|
2594
|
+
billingInfo?: InputMaybe<CustomerBillingInfo>;
|
|
2595
|
+
metadata?: InputMaybe<Scalars['JSON']>;
|
|
2596
|
+
couponId?: InputMaybe<Scalars['String']>;
|
|
2597
|
+
shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
|
|
2598
|
+
}>;
|
|
2599
|
+
export declare type CreateCustomerMutation = {
|
|
2600
|
+
__typename?: 'Mutation';
|
|
2601
|
+
createCustomer: ({
|
|
2602
|
+
__typename?: 'Customer';
|
|
2603
|
+
} & CustomerFragment);
|
|
3282
2604
|
};
|
|
3283
2605
|
export declare type ProvisionCustomerMutationVariables = Exact<{
|
|
3284
|
-
|
|
2606
|
+
customerId: Scalars['String'];
|
|
2607
|
+
email?: InputMaybe<Scalars['String']>;
|
|
2608
|
+
name?: InputMaybe<Scalars['String']>;
|
|
2609
|
+
billingInfo?: InputMaybe<CustomerBillingInfo>;
|
|
2610
|
+
metadata?: InputMaybe<Scalars['JSON']>;
|
|
2611
|
+
couponId?: InputMaybe<Scalars['String']>;
|
|
2612
|
+
shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
|
|
2613
|
+
subscriptionParams?: InputMaybe<SubscriptionBaseInput>;
|
|
3285
2614
|
}>;
|
|
3286
2615
|
export declare type ProvisionCustomerMutation = {
|
|
3287
2616
|
__typename?: 'Mutation';
|
|
3288
2617
|
provisionCustomer: {
|
|
3289
2618
|
__typename?: 'ProvisionedCustomer';
|
|
3290
|
-
|
|
2619
|
+
subscriptionStrategyDecision: SubscriptionStrategyDecision;
|
|
3291
2620
|
customer: ({
|
|
3292
2621
|
__typename?: 'Customer';
|
|
3293
2622
|
} & CustomerFragment);
|
|
@@ -3297,7 +2626,10 @@ export declare type ProvisionCustomerMutation = {
|
|
|
3297
2626
|
};
|
|
3298
2627
|
};
|
|
3299
2628
|
export declare type ImportCustomerMutationVariables = Exact<{
|
|
3300
|
-
|
|
2629
|
+
customerId: Scalars['String'];
|
|
2630
|
+
billingId: Scalars['String'];
|
|
2631
|
+
email?: InputMaybe<Scalars['String']>;
|
|
2632
|
+
name?: InputMaybe<Scalars['String']>;
|
|
3301
2633
|
}>;
|
|
3302
2634
|
export declare type ImportCustomerMutation = {
|
|
3303
2635
|
__typename?: 'Mutation';
|
|
@@ -3306,7 +2638,12 @@ export declare type ImportCustomerMutation = {
|
|
|
3306
2638
|
} & CustomerFragment);
|
|
3307
2639
|
};
|
|
3308
2640
|
export declare type UpdateCustomerMutationVariables = Exact<{
|
|
3309
|
-
|
|
2641
|
+
metadata?: InputMaybe<Scalars['JSON']>;
|
|
2642
|
+
billingInfo?: InputMaybe<CustomerBillingInfo>;
|
|
2643
|
+
couponId?: InputMaybe<Scalars['String']>;
|
|
2644
|
+
email?: InputMaybe<Scalars['String']>;
|
|
2645
|
+
name?: InputMaybe<Scalars['String']>;
|
|
2646
|
+
customerId: Scalars['String'];
|
|
3310
2647
|
}>;
|
|
3311
2648
|
export declare type UpdateCustomerMutation = {
|
|
3312
2649
|
__typename?: 'Mutation';
|
|
@@ -3314,22 +2651,10 @@ export declare type UpdateCustomerMutation = {
|
|
|
3314
2651
|
__typename?: 'Customer';
|
|
3315
2652
|
} & CustomerFragment);
|
|
3316
2653
|
};
|
|
3317
|
-
export declare type ProvisionSubscriptionMutationVariables = Exact<{
|
|
3318
|
-
input: ProvisionSubscriptionInput;
|
|
3319
|
-
}>;
|
|
3320
|
-
export declare type ProvisionSubscriptionMutation = {
|
|
3321
|
-
__typename?: 'Mutation';
|
|
3322
|
-
provisionSubscriptionV2: {
|
|
3323
|
-
__typename?: 'ProvisionSubscriptionResult';
|
|
3324
|
-
checkoutUrl?: string | null;
|
|
3325
|
-
status: ProvisionSubscriptionStatus;
|
|
3326
|
-
subscription?: ({
|
|
3327
|
-
__typename?: 'CustomerSubscription';
|
|
3328
|
-
} & SlimSubscriptionFragment) | null;
|
|
3329
|
-
};
|
|
3330
|
-
};
|
|
3331
2654
|
export declare type UpdateSubscriptionMutationVariables = Exact<{
|
|
3332
|
-
|
|
2655
|
+
metadata?: InputMaybe<Scalars['JSON']>;
|
|
2656
|
+
subscriptionId: Scalars['String'];
|
|
2657
|
+
unitQuantity?: InputMaybe<Scalars['Float']>;
|
|
3333
2658
|
}>;
|
|
3334
2659
|
export declare type UpdateSubscriptionMutation = {
|
|
3335
2660
|
__typename?: 'Mutation';
|
|
@@ -3337,8 +2662,31 @@ export declare type UpdateSubscriptionMutation = {
|
|
|
3337
2662
|
__typename?: 'CustomerSubscription';
|
|
3338
2663
|
} & SlimSubscriptionFragment);
|
|
3339
2664
|
};
|
|
2665
|
+
export declare type CreateSubscriptionMutationVariables = Exact<{
|
|
2666
|
+
metadata?: InputMaybe<Scalars['JSON']>;
|
|
2667
|
+
addons?: InputMaybe<Array<SubscriptionAddonInput> | SubscriptionAddonInput>;
|
|
2668
|
+
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
2669
|
+
billingId?: InputMaybe<Scalars['String']>;
|
|
2670
|
+
billingInfo?: InputMaybe<SubscriptionBillingInfo>;
|
|
2671
|
+
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
2672
|
+
customerId: Scalars['String'];
|
|
2673
|
+
isTrial?: InputMaybe<Scalars['Boolean']>;
|
|
2674
|
+
isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
|
|
2675
|
+
planId?: InputMaybe<Scalars['String']>;
|
|
2676
|
+
unitQuantity?: InputMaybe<Scalars['Float']>;
|
|
2677
|
+
subscriptionId?: InputMaybe<Scalars['String']>;
|
|
2678
|
+
startDate?: InputMaybe<Scalars['DateTime']>;
|
|
2679
|
+
}>;
|
|
2680
|
+
export declare type CreateSubscriptionMutation = {
|
|
2681
|
+
__typename?: 'Mutation';
|
|
2682
|
+
createSubscription: ({
|
|
2683
|
+
__typename?: 'CustomerSubscription';
|
|
2684
|
+
} & SlimSubscriptionFragment);
|
|
2685
|
+
};
|
|
3340
2686
|
export declare type CancelSubscriptionMutationVariables = Exact<{
|
|
3341
|
-
|
|
2687
|
+
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
2688
|
+
cancellationTime?: InputMaybe<SubscriptionCancellationTime>;
|
|
2689
|
+
subscriptionId: Scalars['String'];
|
|
3342
2690
|
}>;
|
|
3343
2691
|
export declare type CancelSubscriptionMutation = {
|
|
3344
2692
|
__typename?: 'Mutation';
|
|
@@ -3347,52 +2695,37 @@ export declare type CancelSubscriptionMutation = {
|
|
|
3347
2695
|
} & SlimSubscriptionFragment);
|
|
3348
2696
|
};
|
|
3349
2697
|
export declare type InitiateCheckoutMutationVariables = Exact<{
|
|
3350
|
-
|
|
2698
|
+
addons?: InputMaybe<Array<SubscriptionAddonInput> | SubscriptionAddonInput>;
|
|
2699
|
+
billingPeriod: BillingPeriod;
|
|
2700
|
+
cancelUrl: Scalars['String'];
|
|
2701
|
+
customerId: Scalars['String'];
|
|
2702
|
+
planId: Scalars['String'];
|
|
2703
|
+
successUrl: Scalars['String'];
|
|
2704
|
+
unitQuantity?: InputMaybe<Scalars['Int']>;
|
|
3351
2705
|
}>;
|
|
3352
2706
|
export declare type InitiateCheckoutMutation = {
|
|
3353
2707
|
__typename?: 'Mutation';
|
|
3354
2708
|
initiateCheckout: {
|
|
3355
2709
|
__typename?: 'Checkout';
|
|
2710
|
+
id: string;
|
|
3356
2711
|
checkoutUrl: string;
|
|
3357
2712
|
checkoutBillingId: string;
|
|
3358
2713
|
};
|
|
3359
2714
|
};
|
|
3360
|
-
export declare type EstimateSubscriptionMutationVariables = Exact<{
|
|
3361
|
-
input: EstimateSubscriptionInput;
|
|
3362
|
-
}>;
|
|
3363
|
-
export declare type EstimateSubscriptionMutation = {
|
|
3364
|
-
__typename?: 'Mutation';
|
|
3365
|
-
estimateSubscription: ({
|
|
3366
|
-
__typename?: 'SubscriptionPreview';
|
|
3367
|
-
} & SubscriptionPreviewFragment);
|
|
3368
|
-
};
|
|
3369
|
-
export declare type EstimateSubscriptionUpdateMutationVariables = Exact<{
|
|
3370
|
-
input: EstimateSubscriptionUpdateInput;
|
|
3371
|
-
}>;
|
|
3372
|
-
export declare type EstimateSubscriptionUpdateMutation = {
|
|
3373
|
-
__typename?: 'Mutation';
|
|
3374
|
-
estimateSubscriptionUpdate: ({
|
|
3375
|
-
__typename?: 'SubscriptionPreview';
|
|
3376
|
-
} & SubscriptionPreviewFragment);
|
|
3377
|
-
};
|
|
3378
|
-
export declare type ReportUsageMutationVariables = Exact<{
|
|
3379
|
-
input: UsageMeasurementCreateInput;
|
|
3380
|
-
}>;
|
|
3381
|
-
export declare type ReportUsageMutation = {
|
|
3382
|
-
__typename?: 'Mutation';
|
|
3383
|
-
createUsageMeasurement: {
|
|
3384
|
-
__typename?: 'UsageMeasurement';
|
|
3385
|
-
id: string;
|
|
3386
|
-
};
|
|
3387
|
-
};
|
|
3388
2715
|
export declare type GetCustomerByIdQueryVariables = Exact<{
|
|
3389
|
-
|
|
2716
|
+
customerId?: InputMaybe<Scalars['String']>;
|
|
3390
2717
|
}>;
|
|
3391
2718
|
export declare type GetCustomerByIdQuery = {
|
|
3392
2719
|
__typename?: 'Query';
|
|
3393
|
-
|
|
3394
|
-
__typename?: '
|
|
3395
|
-
|
|
2720
|
+
customers: {
|
|
2721
|
+
__typename?: 'CustomerConnection';
|
|
2722
|
+
edges: Array<{
|
|
2723
|
+
__typename?: 'CustomerEdge';
|
|
2724
|
+
node: ({
|
|
2725
|
+
__typename?: 'Customer';
|
|
2726
|
+
} & CustomerFragment);
|
|
2727
|
+
}>;
|
|
2728
|
+
};
|
|
3396
2729
|
};
|
|
3397
2730
|
export declare type GetCouponsQueryVariables = Exact<{
|
|
3398
2731
|
[key: string]: never;
|
|
@@ -3409,98 +2742,42 @@ export declare type GetCouponsQuery = {
|
|
|
3409
2742
|
}>;
|
|
3410
2743
|
};
|
|
3411
2744
|
};
|
|
3412
|
-
export declare
|
|
3413
|
-
input: GetPaywallInput;
|
|
3414
|
-
}>;
|
|
3415
|
-
export declare type GetPaywallQuery = {
|
|
3416
|
-
__typename?: 'Query';
|
|
3417
|
-
paywall: {
|
|
3418
|
-
__typename?: 'Paywall';
|
|
3419
|
-
plans: Array<({
|
|
3420
|
-
__typename?: 'Plan';
|
|
3421
|
-
} & PlanFragment)>;
|
|
3422
|
-
configuration?: ({
|
|
3423
|
-
__typename?: 'PaywallConfiguration';
|
|
3424
|
-
} & PaywallConfigurationFragment) | null;
|
|
3425
|
-
customer?: ({
|
|
3426
|
-
__typename?: 'Customer';
|
|
3427
|
-
} & CustomerFragment) | null;
|
|
3428
|
-
};
|
|
3429
|
-
};
|
|
3430
|
-
export declare type GetEntitlementsQueryVariables = Exact<{
|
|
3431
|
-
query: FetchEntitlementsQuery;
|
|
3432
|
-
}>;
|
|
3433
|
-
export declare type GetEntitlementsQuery = {
|
|
3434
|
-
__typename?: 'Query';
|
|
3435
|
-
entitlements: Array<({
|
|
3436
|
-
__typename?: 'Entitlement';
|
|
3437
|
-
} & EntitlementFragment)>;
|
|
3438
|
-
};
|
|
3439
|
-
export declare type GetEntitlementQueryVariables = Exact<{
|
|
3440
|
-
query: FetchEntitlementQuery;
|
|
3441
|
-
}>;
|
|
3442
|
-
export declare type GetEntitlementQuery = {
|
|
3443
|
-
__typename?: 'Query';
|
|
3444
|
-
entitlement: ({
|
|
3445
|
-
__typename?: 'Entitlement';
|
|
3446
|
-
} & EntitlementFragment);
|
|
3447
|
-
};
|
|
2745
|
+
export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
|
|
3448
2746
|
export declare const PriceFragmentDoc: import("graphql").DocumentNode;
|
|
3449
2747
|
export declare const TotalPriceFragmentDoc: import("graphql").DocumentNode;
|
|
3450
|
-
export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
|
|
3451
|
-
export declare const CouponFragmentDoc: import("graphql").DocumentNode;
|
|
3452
|
-
export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
|
|
3453
2748
|
export declare const PackageEntitlementFragmentDoc: import("graphql").DocumentNode;
|
|
3454
2749
|
export declare const AddonFragmentDoc: import("graphql").DocumentNode;
|
|
3455
2750
|
export declare const PlanFragmentDoc: import("graphql").DocumentNode;
|
|
3456
|
-
export declare const SubscriptionScheduledUpdateDataFragmentDoc: import("graphql").DocumentNode;
|
|
3457
2751
|
export declare const SubscriptionFragmentDoc: import("graphql").DocumentNode;
|
|
2752
|
+
export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
|
|
2753
|
+
export declare const CouponFragmentDoc: import("graphql").DocumentNode;
|
|
3458
2754
|
export declare const CustomerFragmentDoc: import("graphql").DocumentNode;
|
|
3459
|
-
export declare const
|
|
3460
|
-
export declare const MonthlyResetPeriodConfigFragmentDoc: import("graphql").DocumentNode;
|
|
3461
|
-
export declare const WeeklyResetPeriodConfigFragmentDoc: import("graphql").DocumentNode;
|
|
3462
|
-
export declare const ResetPeriodConfigurationFragmentDoc: import("graphql").DocumentNode;
|
|
3463
|
-
export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
|
|
3464
|
-
export declare const EntitlementFragmentDoc: import("graphql").DocumentNode;
|
|
2755
|
+
export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
|
|
3465
2756
|
export declare const PaywallPackageEntitlementFragmentDoc: import("graphql").DocumentNode;
|
|
3466
|
-
export declare const
|
|
2757
|
+
export declare const PaywallPriceFragmentDoc: import("graphql").DocumentNode;
|
|
3467
2758
|
export declare const PaywallPlanFragmentDoc: import("graphql").DocumentNode;
|
|
3468
|
-
export declare const
|
|
3469
|
-
export declare const
|
|
3470
|
-
export declare const LayoutConfigurationFragmentDoc: import("graphql").DocumentNode;
|
|
3471
|
-
export declare const PaywallConfigurationFragmentDoc: import("graphql").DocumentNode;
|
|
2759
|
+
export declare const PaywallAddonFragmentDoc: import("graphql").DocumentNode;
|
|
2760
|
+
export declare const CreateCustomerDocument: import("graphql").DocumentNode;
|
|
3472
2761
|
export declare const ProvisionCustomerDocument: import("graphql").DocumentNode;
|
|
3473
2762
|
export declare const ImportCustomerDocument: import("graphql").DocumentNode;
|
|
3474
2763
|
export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
|
|
3475
|
-
export declare const ProvisionSubscriptionDocument: import("graphql").DocumentNode;
|
|
3476
2764
|
export declare const UpdateSubscriptionDocument: import("graphql").DocumentNode;
|
|
2765
|
+
export declare const CreateSubscriptionDocument: import("graphql").DocumentNode;
|
|
3477
2766
|
export declare const CancelSubscriptionDocument: import("graphql").DocumentNode;
|
|
3478
2767
|
export declare const InitiateCheckoutDocument: import("graphql").DocumentNode;
|
|
3479
|
-
export declare const EstimateSubscriptionDocument: import("graphql").DocumentNode;
|
|
3480
|
-
export declare const EstimateSubscriptionUpdateDocument: import("graphql").DocumentNode;
|
|
3481
|
-
export declare const ReportUsageDocument: import("graphql").DocumentNode;
|
|
3482
2768
|
export declare const GetCustomerByIdDocument: import("graphql").DocumentNode;
|
|
3483
2769
|
export declare const GetCouponsDocument: import("graphql").DocumentNode;
|
|
3484
|
-
export declare const GetPaywallDocument: import("graphql").DocumentNode;
|
|
3485
|
-
export declare const GetEntitlementsDocument: import("graphql").DocumentNode;
|
|
3486
|
-
export declare const GetEntitlementDocument: import("graphql").DocumentNode;
|
|
3487
2770
|
export declare type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
|
|
3488
2771
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
2772
|
+
createCustomer(variables: CreateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateCustomerMutation>;
|
|
3489
2773
|
provisionCustomer(variables: ProvisionCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionCustomerMutation>;
|
|
3490
2774
|
importCustomer(variables: ImportCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ImportCustomerMutation>;
|
|
3491
2775
|
updateCustomer(variables: UpdateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateCustomerMutation>;
|
|
3492
|
-
provisionSubscription(variables: ProvisionSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionSubscriptionMutation>;
|
|
3493
2776
|
updateSubscription(variables: UpdateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateSubscriptionMutation>;
|
|
2777
|
+
createSubscription(variables: CreateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateSubscriptionMutation>;
|
|
3494
2778
|
cancelSubscription(variables: CancelSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CancelSubscriptionMutation>;
|
|
3495
2779
|
initiateCheckout(variables: InitiateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<InitiateCheckoutMutation>;
|
|
3496
|
-
|
|
3497
|
-
estimateSubscriptionUpdate(variables: EstimateSubscriptionUpdateMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionUpdateMutation>;
|
|
3498
|
-
reportUsage(variables: ReportUsageMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ReportUsageMutation>;
|
|
3499
|
-
getCustomerById(variables: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
|
|
2780
|
+
getCustomerById(variables?: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
|
|
3500
2781
|
getCoupons(variables?: GetCouponsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCouponsQuery>;
|
|
3501
|
-
getPaywall(variables: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetPaywallQuery>;
|
|
3502
|
-
getEntitlements(variables: GetEntitlementsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementsQuery>;
|
|
3503
|
-
getEntitlement(variables: GetEntitlementQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementQuery>;
|
|
3504
2782
|
};
|
|
3505
2783
|
export declare type Sdk = ReturnType<typeof getSdk>;
|
|
3506
|
-
export {};
|