@stigg/api-client-js 0.0.8 → 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.
@@ -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?: InputMaybe<Scalars['String']>;
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
- Aed = "AED",
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?: InputMaybe<Scalars['String']>;
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
- CannotEditPackageInNonDraftMode = "CannotEditPackageInNonDraftMode",
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: Scalars['String'];
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?: InputMaybe<Scalars['String']>;
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?: InputMaybe<Scalars['String']>;
1612
+ refId: Scalars['String'];
1885
1613
  shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
1886
- subscriptionParams?: InputMaybe<ProvisionCustomerSubscriptionInput>;
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
- /** Subscription decision strategy */
2192
- export declare enum SubscriptionDecisionStrategy {
2193
- PredefinedFreePlan = "PREDEFINED_FREE_PLAN",
2194
- PredefinedTrialPlan = "PREDEFINED_TRIAL_PLAN",
2195
- RequestedPlan = "REQUESTED_PLAN",
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: Scalars['String'];
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
- export declare type SubscriptionUpdateScheduleCancellationInput = {
2411
- environmentId?: InputMaybe<Scalars['String']>;
2412
- subscriptionId: Scalars['String'];
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?: InputMaybe<Scalars['String']>;
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: Scalars['String'];
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
- promotionCode?: InputMaybe<Scalars['String']>;
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,67 +2298,45 @@ 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;
2306
+ export declare type PlanFragment = {
2307
+ __typename?: 'Plan';
2308
+ displayName: string;
2773
2309
  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';
2310
+ pricingType?: PricingType | null;
2311
+ id: string;
2312
+ metadata?: any | null;
2313
+ product: {
2314
+ __typename?: 'Product';
2315
+ displayName?: string | null;
2316
+ description?: string | null;
2786
2317
  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
2318
  };
2801
- feature?: {
2802
- __typename?: 'Feature';
2803
- featureUnits?: string | null;
2804
- featureUnitsPlural?: string | null;
2319
+ basePlan?: {
2320
+ __typename?: 'Plan';
2805
2321
  displayName: string;
2322
+ id: string;
2323
+ } | null;
2324
+ entitlements?: Array<({
2325
+ __typename?: 'PackageEntitlement';
2326
+ } & PackageEntitlementFragment)> | null;
2327
+ inheritedEntitlements?: Array<({
2328
+ __typename?: 'PackageEntitlement';
2329
+ } & PackageEntitlementFragment)> | null;
2330
+ compatibleAddons?: Array<({
2331
+ __typename?: 'Addon';
2332
+ } & AddonFragment)> | null;
2333
+ prices?: Array<({
2334
+ __typename?: 'Price';
2335
+ } & PriceFragment)> | null;
2336
+ defaultTrialConfig?: {
2337
+ __typename?: 'DefaultTrialConfig';
2338
+ duration: number;
2339
+ units: TrialPeriodUnits;
2806
2340
  } | null;
2807
2341
  };
2808
2342
  export declare type TotalPriceFragment = {
@@ -2818,164 +2352,60 @@ export declare type TotalPriceFragment = {
2818
2352
  currency: Currency;
2819
2353
  };
2820
2354
  };
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
+ };
2821
2368
  export declare type PackageEntitlementFragment = {
2822
2369
  __typename?: 'PackageEntitlement';
2823
2370
  usageLimit?: number | null;
2824
2371
  hasUnlimitedUsage?: boolean | null;
2825
2372
  featureId: string;
2826
2373
  resetPeriod?: EntitlementResetPeriod | null;
2827
- hiddenFromWidgets?: Array<WidgetType> | null;
2828
- isCustom?: boolean | null;
2829
- displayNameOverride?: string | null;
2830
- feature: {
2374
+ feature: ({
2831
2375
  __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
- };
2376
+ } & FeatureFragment);
2841
2377
  };
2842
2378
  export declare type AddonFragment = {
2843
2379
  __typename?: 'Addon';
2844
- refId: string;
2845
- billingId?: string | null;
2846
2380
  displayName: string;
2847
2381
  description?: string | null;
2848
- additionalMetaData?: any | null;
2849
2382
  pricingType?: PricingType | null;
2383
+ id: string;
2384
+ metadata?: any | null;
2850
2385
  entitlements?: Array<({
2851
2386
  __typename?: 'PackageEntitlement';
2852
2387
  } & PackageEntitlementFragment)> | null;
2853
- prices?: Array<({
2854
- __typename?: 'Price';
2855
- } & PriceFragment)> | null;
2856
- };
2857
- export declare type PlanFragment = {
2858
- __typename?: 'Plan';
2859
- refId: string;
2860
- displayName: string;
2861
- description?: string | null;
2862
- billingId?: string | null;
2863
- additionalMetaData?: any | null;
2864
- pricingType?: PricingType | null;
2865
- product: {
2866
- __typename?: 'Product';
2867
- refId: string;
2868
- displayName?: string | null;
2869
- description?: string | null;
2870
- additionalMetaData?: any | null;
2871
- productSettings: {
2872
- __typename?: 'ProductSettings';
2873
- downgradePlan?: {
2874
- __typename?: 'Plan';
2875
- refId: string;
2876
- displayName: string;
2877
- } | null;
2878
- };
2879
- };
2880
- basePlan?: {
2881
- __typename?: 'Plan';
2882
- refId: string;
2883
- displayName: string;
2884
- } | null;
2885
- entitlements?: Array<({
2886
- __typename?: 'PackageEntitlement';
2887
- } & PackageEntitlementFragment)> | null;
2888
- inheritedEntitlements?: Array<({
2889
- __typename?: 'PackageEntitlement';
2890
- } & PackageEntitlementFragment)> | null;
2891
- compatibleAddons?: Array<({
2892
- __typename?: 'Addon';
2893
- } & AddonFragment)> | null;
2894
- prices?: Array<({
2895
- __typename?: 'Price';
2896
- } & PriceFragment)> | null;
2897
- defaultTrialConfig?: {
2898
- __typename?: 'DefaultTrialConfig';
2899
- duration: number;
2900
- units: TrialPeriodUnits;
2901
- } | null;
2902
- };
2903
- export declare type SlimSubscriptionFragment = {
2904
- __typename?: 'CustomerSubscription';
2905
- id: string;
2906
- refId: string;
2907
- status: SubscriptionStatus;
2908
- additionalMetaData?: any | null;
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;
2935
- };
2936
- addons?: Array<{
2937
- __typename?: 'SubscriptionAddon';
2938
- quantity: number;
2939
- addon: {
2940
- __typename?: 'Addon';
2941
- id: string;
2942
- refId: string;
2943
- };
2944
- }> | null;
2945
- customer: {
2946
- __typename?: 'Customer';
2947
- id: string;
2948
- refId: string;
2949
- };
2950
2388
  };
2951
2389
  export declare type SubscriptionFragment = {
2952
2390
  __typename?: 'CustomerSubscription';
2953
- id: string;
2391
+ status: SubscriptionStatus;
2954
2392
  startDate: any;
2955
2393
  endDate?: any | null;
2956
2394
  trialEndDate?: any | null;
2957
2395
  cancellationDate?: any | null;
2958
2396
  effectiveEndDate?: any | null;
2959
- status: SubscriptionStatus;
2960
- refId: string;
2961
2397
  currentBillingPeriodEnd?: any | null;
2962
- additionalMetaData?: any | null;
2963
2398
  billingId?: string | null;
2964
2399
  billingLinkUrl?: string | null;
2965
2400
  pricingType: PricingType;
2966
- experimentInfo?: {
2967
- __typename?: 'experimentInfo';
2968
- name: string;
2969
- groupType: ExperimentGroupType;
2970
- groupName: string;
2971
- id: string;
2972
- } | null;
2401
+ id: string;
2402
+ metadata?: any | null;
2973
2403
  prices?: Array<{
2974
2404
  __typename?: 'SubscriptionPrice';
2975
2405
  usageLimit?: number | null;
2976
- price?: ({
2406
+ price: ({
2977
2407
  __typename?: 'Price';
2978
- } & PriceFragment) | null;
2408
+ } & PriceFragment);
2979
2409
  }> | null;
2980
2410
  totalPrice?: ({
2981
2411
  __typename?: 'CustomerSubscriptionTotalPrice';
@@ -3001,131 +2431,124 @@ export declare type PromotionalEntitlementFragment = {
3001
2431
  resetPeriod?: EntitlementResetPeriod | null;
3002
2432
  endDate?: any | null;
3003
2433
  isVisible: boolean;
3004
- feature: {
2434
+ feature: ({
3005
2435
  __typename?: 'Feature';
3006
- featureType: FeatureType;
3007
- meterType?: MeterType | null;
3008
- featureUnits?: string | null;
3009
- featureUnitsPlural?: string | null;
3010
- displayName: string;
3011
- description?: string | null;
3012
- refId: string;
3013
- };
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;
3014
2451
  };
3015
2452
  export declare type CustomerFragment = {
3016
2453
  __typename?: 'Customer';
3017
- id: string;
3018
2454
  name?: string | null;
3019
2455
  email?: string | null;
3020
2456
  createdAt?: any | null;
3021
2457
  updatedAt: any;
3022
2458
  hasPaymentMethod: boolean;
3023
- refId: string;
3024
2459
  billingId?: string | null;
3025
- defaultPaymentExpirationMonth?: number | null;
3026
- defaultPaymentExpirationYear?: number | null;
3027
- defaultPaymentMethodLast4Digits?: string | null;
3028
- additionalMetaData?: any | null;
3029
- trialedPlans?: Array<{
3030
- __typename?: 'TrialedPlan';
3031
- productId?: string | null;
3032
- productRefId?: string | null;
3033
- planRefId?: string | null;
3034
- planId?: string | null;
3035
- }> | null;
3036
- experimentInfo?: {
3037
- __typename?: 'experimentInfo';
3038
- groupType: ExperimentGroupType;
3039
- groupName: string;
3040
- id: string;
3041
- name: string;
3042
- } | null;
3043
- coupon?: ({
3044
- __typename?: 'Coupon';
3045
- } & CouponFragment) | null;
3046
- promotionalEntitlements: Array<({
3047
- __typename?: 'PromotionalEntitlement';
3048
- } & PromotionalEntitlementFragment)>;
2460
+ id: string;
2461
+ metadata?: any | null;
2462
+ email2?: string | null;
3049
2463
  subscriptions?: Array<({
3050
2464
  __typename?: 'CustomerSubscription';
3051
2465
  } & SubscriptionFragment)> | null;
2466
+ promotionalEntitlements: Array<({
2467
+ __typename?: 'PromotionalEntitlement';
2468
+ } & PromotionalEntitlementFragment)>;
2469
+ coupon?: ({
2470
+ __typename?: 'Coupon';
2471
+ } & CouponFragment) | null;
3052
2472
  };
3053
- export declare type SubscriptionPreviewFragment = {
3054
- __typename?: 'SubscriptionPreview';
3055
- subTotal: {
3056
- __typename?: 'Money';
3057
- amount: number;
3058
- currency: Currency;
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;
3059
2496
  };
3060
- total: {
3061
- __typename?: 'Money';
3062
- amount: number;
3063
- currency: Currency;
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;
3064
2508
  };
3065
- billingPeriodRange: {
3066
- __typename?: 'DateRange';
3067
- start?: any | null;
3068
- end?: any | null;
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;
3069
2522
  };
3070
- proration?: {
3071
- __typename?: 'SubscriptionPreviewProrations';
3072
- prorationDate: any;
3073
- credit: {
3074
- __typename?: 'Money';
3075
- amount: number;
3076
- currency: Currency;
3077
- };
3078
- debit: {
3079
- __typename?: 'Money';
3080
- amount: number;
3081
- currency: Currency;
3082
- };
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;
3083
2541
  } | null;
3084
2542
  };
3085
2543
  export declare type FeatureFragment = {
3086
- __typename?: 'EntitlementFeature';
2544
+ __typename?: 'Feature';
3087
2545
  featureType: FeatureType;
3088
2546
  meterType?: MeterType | null;
3089
2547
  featureUnits?: string | null;
3090
2548
  featureUnitsPlural?: string | null;
3091
- description?: string | null;
3092
2549
  displayName: string;
3093
- refId: string;
3094
- };
3095
- declare type ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ = ({
3096
- __typename: 'MonthlyResetPeriodConfig';
3097
- } & MonthlyResetPeriodConfigFragment);
3098
- declare type ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_ = ({
3099
- __typename: 'WeeklyResetPeriodConfig';
3100
- } & WeeklyResetPeriodConfigFragment);
3101
- export declare type ResetPeriodConfigurationFragment = ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_ | ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_;
3102
- export declare type MonthlyResetPeriodConfigFragment = {
3103
- __typename?: 'MonthlyResetPeriodConfig';
3104
- monthlyAccordingTo?: MonthlyAccordingTo | null;
3105
- };
3106
- export declare type WeeklyResetPeriodConfigFragment = {
3107
- __typename?: 'WeeklyResetPeriodConfig';
3108
- weeklyAccordingTo?: WeeklyAccordingTo | null;
3109
- };
3110
- export declare type EntitlementFragment = {
3111
- __typename?: 'Entitlement';
3112
- isGranted: boolean;
3113
- accessDeniedReason?: AccessDeniedReason | null;
3114
- customerId?: string | null;
3115
- usageLimit?: number | null;
3116
- hasUnlimitedUsage: boolean;
3117
- currentUsage?: number | null;
3118
- requestedUsage?: number | null;
3119
- nextResetDate?: any | null;
3120
- resetPeriod?: EntitlementResetPeriod | null;
3121
- resetPeriodConfiguration?: ({
3122
- __typename?: 'MonthlyResetPeriodConfig';
3123
- } & ResetPeriodConfigurationFragment_MonthlyResetPeriodConfig_) | ({
3124
- __typename?: 'WeeklyResetPeriodConfig';
3125
- } & ResetPeriodConfigurationFragment_WeeklyResetPeriodConfig_) | null;
3126
- feature?: ({
3127
- __typename?: 'EntitlementFeature';
3128
- } & FeatureFragment) | null;
2550
+ description?: string | null;
2551
+ id: string;
3129
2552
  };
3130
2553
  export declare type PaywallPackageEntitlementFragment = {
3131
2554
  __typename?: 'PackageEntitlement';
@@ -3133,133 +2556,67 @@ export declare type PaywallPackageEntitlementFragment = {
3133
2556
  hasUnlimitedUsage?: boolean | null;
3134
2557
  featureId: string;
3135
2558
  resetPeriod?: EntitlementResetPeriod | null;
3136
- feature: {
2559
+ feature: ({
3137
2560
  __typename?: 'Feature';
3138
- featureType: FeatureType;
3139
- meterType?: MeterType | null;
3140
- featureUnits?: string | null;
3141
- featureUnitsPlural?: string | null;
3142
- displayName: string;
3143
- description?: string | null;
3144
- refId: string;
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;
3145
2571
  };
2572
+ feature?: ({
2573
+ __typename?: 'Feature';
2574
+ } & FeatureFragment) | null;
3146
2575
  };
3147
2576
  export declare type PaywallAddonFragment = {
3148
2577
  __typename?: 'Addon';
3149
- id: string;
3150
- refId: string;
3151
- billingId?: string | null;
3152
2578
  displayName: string;
3153
2579
  description?: string | null;
3154
- additionalMetaData?: any | null;
3155
2580
  pricingType?: PricingType | null;
3156
- entitlements?: Array<({
3157
- __typename?: 'PackageEntitlement';
3158
- } & PaywallPackageEntitlementFragment)> | null;
3159
- prices?: Array<({
3160
- __typename?: 'Price';
3161
- } & PriceFragment)> | null;
3162
- };
3163
- export declare type PaywallPlanFragment = {
3164
- __typename?: 'Plan';
3165
2581
  id: string;
3166
- refId: string;
3167
- description?: string | null;
3168
- displayName: string;
3169
- billingId?: string | null;
3170
- additionalMetaData?: any | null;
3171
- pricingType?: PricingType | null;
3172
- product: {
3173
- __typename?: 'Product';
3174
- refId: string;
3175
- displayName?: string | null;
3176
- description?: string | null;
3177
- additionalMetaData?: any | null;
3178
- productSettings: {
3179
- __typename?: 'ProductSettings';
3180
- downgradePlan?: {
3181
- __typename?: 'Plan';
3182
- refId: string;
3183
- displayName: string;
3184
- } | null;
3185
- };
3186
- };
3187
- basePlan?: {
3188
- __typename?: 'Plan';
3189
- refId: string;
3190
- displayName: string;
3191
- } | null;
2582
+ metadata?: any | null;
3192
2583
  entitlements?: Array<({
3193
2584
  __typename?: 'PackageEntitlement';
3194
2585
  } & PaywallPackageEntitlementFragment)> | null;
3195
- inheritedEntitlements?: Array<({
3196
- __typename?: 'PackageEntitlement';
3197
- } & PaywallPackageEntitlementFragment)> | null;
3198
2586
  prices?: Array<({
3199
2587
  __typename?: 'Price';
3200
- } & PriceFragment)> | null;
3201
- defaultTrialConfig?: {
3202
- __typename?: 'DefaultTrialConfig';
3203
- duration: number;
3204
- units: TrialPeriodUnits;
3205
- } | null;
3206
- compatibleAddons?: Array<({
3207
- __typename?: 'Addon';
3208
- } & PaywallAddonFragment)> | null;
3209
- };
3210
- export declare type TypographyConfigurationFragment = {
3211
- __typename?: 'TypographyConfiguration';
3212
- fontFamily?: string | null;
3213
- h1?: ({
3214
- __typename?: 'FontVariant';
3215
- } & FontVariantFragment) | null;
3216
- h2?: ({
3217
- __typename?: 'FontVariant';
3218
- } & FontVariantFragment) | null;
3219
- h3?: ({
3220
- __typename?: 'FontVariant';
3221
- } & FontVariantFragment) | null;
3222
- body?: ({
3223
- __typename?: 'FontVariant';
3224
- } & FontVariantFragment) | null;
3225
- };
3226
- export declare type FontVariantFragment = {
3227
- __typename?: 'FontVariant';
3228
- fontSize?: number | null;
3229
- fontWeight?: FontWeight | null;
3230
- };
3231
- export declare type LayoutConfigurationFragment = {
3232
- __typename?: 'PaywallLayoutConfiguration';
3233
- alignment?: Alignment | null;
3234
- planWidth?: number | null;
3235
- planMargin?: number | null;
3236
- planPadding?: number | null;
3237
- };
3238
- export declare type PaywallConfigurationFragment = {
3239
- __typename?: 'PaywallConfiguration';
3240
- palette?: {
3241
- __typename?: 'PaywallColorsPalette';
3242
- primary?: string | null;
3243
- textColor?: string | null;
3244
- backgroundColor?: string | null;
3245
- borderColor?: string | null;
3246
- currentPlanBackground?: string | null;
3247
- } | null;
3248
- typography?: ({
3249
- __typename?: 'TypographyConfiguration';
3250
- } & TypographyConfigurationFragment) | null;
3251
- layout?: ({
3252
- __typename?: 'PaywallLayoutConfiguration';
3253
- } & 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);
3254
2604
  };
3255
2605
  export declare type ProvisionCustomerMutationVariables = Exact<{
3256
- input: ProvisionCustomerInput;
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>;
3257
2614
  }>;
3258
2615
  export declare type ProvisionCustomerMutation = {
3259
2616
  __typename?: 'Mutation';
3260
2617
  provisionCustomer: {
3261
2618
  __typename?: 'ProvisionedCustomer';
3262
- subscriptionDecisionStrategy: SubscriptionDecisionStrategy;
2619
+ subscriptionStrategyDecision: SubscriptionStrategyDecision;
3263
2620
  customer: ({
3264
2621
  __typename?: 'Customer';
3265
2622
  } & CustomerFragment);
@@ -3269,7 +2626,10 @@ export declare type ProvisionCustomerMutation = {
3269
2626
  };
3270
2627
  };
3271
2628
  export declare type ImportCustomerMutationVariables = Exact<{
3272
- input: ImportCustomerInput;
2629
+ customerId: Scalars['String'];
2630
+ billingId: Scalars['String'];
2631
+ email?: InputMaybe<Scalars['String']>;
2632
+ name?: InputMaybe<Scalars['String']>;
3273
2633
  }>;
3274
2634
  export declare type ImportCustomerMutation = {
3275
2635
  __typename?: 'Mutation';
@@ -3278,7 +2638,12 @@ export declare type ImportCustomerMutation = {
3278
2638
  } & CustomerFragment);
3279
2639
  };
3280
2640
  export declare type UpdateCustomerMutationVariables = Exact<{
3281
- input: UpdateCustomerInput;
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'];
3282
2647
  }>;
3283
2648
  export declare type UpdateCustomerMutation = {
3284
2649
  __typename?: 'Mutation';
@@ -3286,22 +2651,10 @@ export declare type UpdateCustomerMutation = {
3286
2651
  __typename?: 'Customer';
3287
2652
  } & CustomerFragment);
3288
2653
  };
3289
- export declare type ProvisionSubscriptionMutationVariables = Exact<{
3290
- input: ProvisionSubscriptionInput;
3291
- }>;
3292
- export declare type ProvisionSubscriptionMutation = {
3293
- __typename?: 'Mutation';
3294
- provisionSubscriptionV2: {
3295
- __typename?: 'ProvisionSubscriptionResult';
3296
- checkoutUrl?: string | null;
3297
- status: ProvisionSubscriptionStatus;
3298
- subscription?: ({
3299
- __typename?: 'CustomerSubscription';
3300
- } & SlimSubscriptionFragment) | null;
3301
- };
3302
- };
3303
2654
  export declare type UpdateSubscriptionMutationVariables = Exact<{
3304
- input: UpdateSubscriptionInput;
2655
+ metadata?: InputMaybe<Scalars['JSON']>;
2656
+ subscriptionId: Scalars['String'];
2657
+ unitQuantity?: InputMaybe<Scalars['Float']>;
3305
2658
  }>;
3306
2659
  export declare type UpdateSubscriptionMutation = {
3307
2660
  __typename?: 'Mutation';
@@ -3309,8 +2662,31 @@ export declare type UpdateSubscriptionMutation = {
3309
2662
  __typename?: 'CustomerSubscription';
3310
2663
  } & SlimSubscriptionFragment);
3311
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
+ };
3312
2686
  export declare type CancelSubscriptionMutationVariables = Exact<{
3313
- input: SubscriptionCancellationInput;
2687
+ endDate?: InputMaybe<Scalars['DateTime']>;
2688
+ cancellationTime?: InputMaybe<SubscriptionCancellationTime>;
2689
+ subscriptionId: Scalars['String'];
3314
2690
  }>;
3315
2691
  export declare type CancelSubscriptionMutation = {
3316
2692
  __typename?: 'Mutation';
@@ -3319,52 +2695,37 @@ export declare type CancelSubscriptionMutation = {
3319
2695
  } & SlimSubscriptionFragment);
3320
2696
  };
3321
2697
  export declare type InitiateCheckoutMutationVariables = Exact<{
3322
- input: InitiateCheckoutInput;
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']>;
3323
2705
  }>;
3324
2706
  export declare type InitiateCheckoutMutation = {
3325
2707
  __typename?: 'Mutation';
3326
2708
  initiateCheckout: {
3327
2709
  __typename?: 'Checkout';
2710
+ id: string;
3328
2711
  checkoutUrl: string;
3329
2712
  checkoutBillingId: string;
3330
2713
  };
3331
2714
  };
3332
- export declare type EstimateSubscriptionMutationVariables = Exact<{
3333
- input: EstimateSubscriptionInput;
3334
- }>;
3335
- export declare type EstimateSubscriptionMutation = {
3336
- __typename?: 'Mutation';
3337
- estimateSubscription: ({
3338
- __typename?: 'SubscriptionPreview';
3339
- } & SubscriptionPreviewFragment);
3340
- };
3341
- export declare type EstimateSubscriptionUpdateMutationVariables = Exact<{
3342
- input: EstimateSubscriptionUpdateInput;
3343
- }>;
3344
- export declare type EstimateSubscriptionUpdateMutation = {
3345
- __typename?: 'Mutation';
3346
- estimateSubscriptionUpdate: ({
3347
- __typename?: 'SubscriptionPreview';
3348
- } & SubscriptionPreviewFragment);
3349
- };
3350
- export declare type ReportUsageMutationVariables = Exact<{
3351
- input: UsageMeasurementCreateInput;
3352
- }>;
3353
- export declare type ReportUsageMutation = {
3354
- __typename?: 'Mutation';
3355
- createUsageMeasurement: {
3356
- __typename?: 'UsageMeasurement';
3357
- id: string;
3358
- };
3359
- };
3360
2715
  export declare type GetCustomerByIdQueryVariables = Exact<{
3361
- input: GetCustomerByRefIdInput;
2716
+ customerId?: InputMaybe<Scalars['String']>;
3362
2717
  }>;
3363
2718
  export declare type GetCustomerByIdQuery = {
3364
2719
  __typename?: 'Query';
3365
- getCustomerByRefId?: ({
3366
- __typename?: 'Customer';
3367
- } & CustomerFragment) | null;
2720
+ customers: {
2721
+ __typename?: 'CustomerConnection';
2722
+ edges: Array<{
2723
+ __typename?: 'CustomerEdge';
2724
+ node: ({
2725
+ __typename?: 'Customer';
2726
+ } & CustomerFragment);
2727
+ }>;
2728
+ };
3368
2729
  };
3369
2730
  export declare type GetCouponsQueryVariables = Exact<{
3370
2731
  [key: string]: never;
@@ -3381,97 +2742,42 @@ export declare type GetCouponsQuery = {
3381
2742
  }>;
3382
2743
  };
3383
2744
  };
3384
- export declare type GetPaywallQueryVariables = Exact<{
3385
- input: GetPaywallInput;
3386
- }>;
3387
- export declare type GetPaywallQuery = {
3388
- __typename?: 'Query';
3389
- paywall: {
3390
- __typename?: 'Paywall';
3391
- plans: Array<({
3392
- __typename?: 'Plan';
3393
- } & PlanFragment)>;
3394
- configuration?: ({
3395
- __typename?: 'PaywallConfiguration';
3396
- } & PaywallConfigurationFragment) | null;
3397
- customer?: ({
3398
- __typename?: 'Customer';
3399
- } & CustomerFragment) | null;
3400
- };
3401
- };
3402
- export declare type GetEntitlementsQueryVariables = Exact<{
3403
- query: FetchEntitlementsQuery;
3404
- }>;
3405
- export declare type GetEntitlementsQuery = {
3406
- __typename?: 'Query';
3407
- entitlements: Array<({
3408
- __typename?: 'Entitlement';
3409
- } & EntitlementFragment)>;
3410
- };
3411
- export declare type GetEntitlementQueryVariables = Exact<{
3412
- query: FetchEntitlementQuery;
3413
- }>;
3414
- export declare type GetEntitlementQuery = {
3415
- __typename?: 'Query';
3416
- entitlement: ({
3417
- __typename?: 'Entitlement';
3418
- } & EntitlementFragment);
3419
- };
2745
+ export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
3420
2746
  export declare const PriceFragmentDoc: import("graphql").DocumentNode;
3421
2747
  export declare const TotalPriceFragmentDoc: import("graphql").DocumentNode;
3422
- export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
3423
- export declare const CouponFragmentDoc: import("graphql").DocumentNode;
3424
- export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
3425
2748
  export declare const PackageEntitlementFragmentDoc: import("graphql").DocumentNode;
3426
2749
  export declare const AddonFragmentDoc: import("graphql").DocumentNode;
3427
2750
  export declare const PlanFragmentDoc: import("graphql").DocumentNode;
3428
2751
  export declare const SubscriptionFragmentDoc: import("graphql").DocumentNode;
2752
+ export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
2753
+ export declare const CouponFragmentDoc: import("graphql").DocumentNode;
3429
2754
  export declare const CustomerFragmentDoc: import("graphql").DocumentNode;
3430
- export declare const SubscriptionPreviewFragmentDoc: import("graphql").DocumentNode;
3431
- export declare const MonthlyResetPeriodConfigFragmentDoc: import("graphql").DocumentNode;
3432
- export declare const WeeklyResetPeriodConfigFragmentDoc: import("graphql").DocumentNode;
3433
- export declare const ResetPeriodConfigurationFragmentDoc: import("graphql").DocumentNode;
3434
- export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
3435
- export declare const EntitlementFragmentDoc: import("graphql").DocumentNode;
2755
+ export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
3436
2756
  export declare const PaywallPackageEntitlementFragmentDoc: import("graphql").DocumentNode;
3437
- export declare const PaywallAddonFragmentDoc: import("graphql").DocumentNode;
2757
+ export declare const PaywallPriceFragmentDoc: import("graphql").DocumentNode;
3438
2758
  export declare const PaywallPlanFragmentDoc: import("graphql").DocumentNode;
3439
- export declare const FontVariantFragmentDoc: import("graphql").DocumentNode;
3440
- export declare const TypographyConfigurationFragmentDoc: import("graphql").DocumentNode;
3441
- export declare const LayoutConfigurationFragmentDoc: import("graphql").DocumentNode;
3442
- export declare const PaywallConfigurationFragmentDoc: import("graphql").DocumentNode;
2759
+ export declare const PaywallAddonFragmentDoc: import("graphql").DocumentNode;
2760
+ export declare const CreateCustomerDocument: import("graphql").DocumentNode;
3443
2761
  export declare const ProvisionCustomerDocument: import("graphql").DocumentNode;
3444
2762
  export declare const ImportCustomerDocument: import("graphql").DocumentNode;
3445
2763
  export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
3446
- export declare const ProvisionSubscriptionDocument: import("graphql").DocumentNode;
3447
2764
  export declare const UpdateSubscriptionDocument: import("graphql").DocumentNode;
2765
+ export declare const CreateSubscriptionDocument: import("graphql").DocumentNode;
3448
2766
  export declare const CancelSubscriptionDocument: import("graphql").DocumentNode;
3449
2767
  export declare const InitiateCheckoutDocument: import("graphql").DocumentNode;
3450
- export declare const EstimateSubscriptionDocument: import("graphql").DocumentNode;
3451
- export declare const EstimateSubscriptionUpdateDocument: import("graphql").DocumentNode;
3452
- export declare const ReportUsageDocument: import("graphql").DocumentNode;
3453
2768
  export declare const GetCustomerByIdDocument: import("graphql").DocumentNode;
3454
2769
  export declare const GetCouponsDocument: import("graphql").DocumentNode;
3455
- export declare const GetPaywallDocument: import("graphql").DocumentNode;
3456
- export declare const GetEntitlementsDocument: import("graphql").DocumentNode;
3457
- export declare const GetEntitlementDocument: import("graphql").DocumentNode;
3458
2770
  export declare type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
3459
2771
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
2772
+ createCustomer(variables: CreateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateCustomerMutation>;
3460
2773
  provisionCustomer(variables: ProvisionCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionCustomerMutation>;
3461
2774
  importCustomer(variables: ImportCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ImportCustomerMutation>;
3462
2775
  updateCustomer(variables: UpdateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateCustomerMutation>;
3463
- provisionSubscription(variables: ProvisionSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionSubscriptionMutation>;
3464
2776
  updateSubscription(variables: UpdateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateSubscriptionMutation>;
2777
+ createSubscription(variables: CreateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateSubscriptionMutation>;
3465
2778
  cancelSubscription(variables: CancelSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CancelSubscriptionMutation>;
3466
2779
  initiateCheckout(variables: InitiateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<InitiateCheckoutMutation>;
3467
- estimateSubscription(variables: EstimateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionMutation>;
3468
- estimateSubscriptionUpdate(variables: EstimateSubscriptionUpdateMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionUpdateMutation>;
3469
- reportUsage(variables: ReportUsageMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ReportUsageMutation>;
3470
- getCustomerById(variables: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
2780
+ getCustomerById(variables?: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
3471
2781
  getCoupons(variables?: GetCouponsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCouponsQuery>;
3472
- getPaywall(variables: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetPaywallQuery>;
3473
- getEntitlements(variables: GetEntitlementsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementsQuery>;
3474
- getEntitlement(variables: GetEntitlementQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementQuery>;
3475
2782
  };
3476
2783
  export declare type Sdk = ReturnType<typeof getSdk>;
3477
- export {};