@stigg/api-client-js 0.0.1 → 0.0.2

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,6 +36,10 @@ 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
+ }
39
43
  export declare type AddCompatibleAddonsToPlanInput = {
40
44
  /** The id of the record. */
41
45
  id: Scalars['String'];
@@ -48,6 +52,7 @@ export declare type AddonCreateInput = {
48
52
  description?: InputMaybe<Scalars['String']>;
49
53
  displayName: Scalars['String'];
50
54
  environmentId?: InputMaybe<Scalars['String']>;
55
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
51
56
  productId: Scalars['String'];
52
57
  refId?: InputMaybe<Scalars['String']>;
53
58
  status?: InputMaybe<PackageStatus>;
@@ -94,6 +99,7 @@ export declare type AddonUpdateInput = {
94
99
  billingId?: InputMaybe<Scalars['String']>;
95
100
  description?: InputMaybe<Scalars['String']>;
96
101
  displayName: Scalars['String'];
102
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
97
103
  id: Scalars['String'];
98
104
  status?: InputMaybe<PackageStatus>;
99
105
  };
@@ -106,6 +112,12 @@ export declare type Address = {
106
112
  postalCode?: InputMaybe<Scalars['String']>;
107
113
  state?: InputMaybe<Scalars['String']>;
108
114
  };
115
+ /** Alignment */
116
+ export declare enum Alignment {
117
+ Center = "CENTER",
118
+ Left = "LEFT",
119
+ Right = "RIGHT"
120
+ }
109
121
  export declare type ApiKeyFilter = {
110
122
  and?: InputMaybe<Array<ApiKeyFilter>>;
111
123
  id?: InputMaybe<StringFieldComparison>;
@@ -132,9 +144,10 @@ export declare type ArchivePlanInput = {
132
144
  id: Scalars['String'];
133
145
  };
134
146
  export declare type AttachCustomerPaymentMethodInput = {
147
+ customerId?: InputMaybe<Scalars['String']>;
135
148
  environmentId?: InputMaybe<Scalars['String']>;
136
149
  paymentMethodId: Scalars['String'];
137
- refId: Scalars['String'];
150
+ refId?: InputMaybe<Scalars['String']>;
138
151
  vendorIdentifier: VendorIdentifier;
139
152
  };
140
153
  export declare enum BillingAnchor {
@@ -191,8 +204,17 @@ export declare type BooleanFieldComparison = {
191
204
  export declare enum ChangeType {
192
205
  Added = "ADDED",
193
206
  Deleted = "DELETED",
194
- Modified = "MODIFIED"
207
+ Modified = "MODIFIED",
208
+ Reordered = "REORDERED"
195
209
  }
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
+ };
196
218
  export declare type CouponFilter = {
197
219
  and?: InputMaybe<Array<CouponFilter>>;
198
220
  billingId?: InputMaybe<StringFieldComparison>;
@@ -215,9 +237,9 @@ export declare type CouponFilterCustomerFilter = {
215
237
  crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
216
238
  crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
217
239
  crmId?: InputMaybe<StringFieldComparison>;
240
+ customerId?: InputMaybe<StringFieldComparison>;
218
241
  email?: InputMaybe<StringFieldComparison>;
219
242
  environmentId?: InputMaybe<StringFieldComparison>;
220
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
221
243
  id?: InputMaybe<StringFieldComparison>;
222
244
  name?: InputMaybe<StringFieldComparison>;
223
245
  or?: InputMaybe<Array<CouponFilterCustomerFilter>>;
@@ -296,7 +318,9 @@ export declare type CreateEnvironment = {
296
318
  createdAt?: InputMaybe<Scalars['DateTime']>;
297
319
  description?: InputMaybe<Scalars['String']>;
298
320
  displayName?: InputMaybe<Scalars['String']>;
321
+ hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
299
322
  id?: InputMaybe<Scalars['String']>;
323
+ provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
300
324
  slug?: InputMaybe<Scalars['String']>;
301
325
  };
302
326
  export declare type CreateEnvironmentOptions = {
@@ -359,6 +383,7 @@ export declare type CreateOneProductInput = {
359
383
  };
360
384
  /** Currency */
361
385
  export declare enum Currency {
386
+ Ils = "ILS",
362
387
  Usd = "USD"
363
388
  }
364
389
  export declare type CursorPaging = {
@@ -388,9 +413,9 @@ export declare type CustomerFilter = {
388
413
  crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
389
414
  crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
390
415
  crmId?: InputMaybe<StringFieldComparison>;
416
+ customerId?: InputMaybe<StringFieldComparison>;
391
417
  email?: InputMaybe<StringFieldComparison>;
392
418
  environmentId?: InputMaybe<StringFieldComparison>;
393
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
394
419
  id?: InputMaybe<StringFieldComparison>;
395
420
  name?: InputMaybe<StringFieldComparison>;
396
421
  or?: InputMaybe<Array<CustomerFilter>>;
@@ -410,13 +435,14 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
410
435
  effectiveEndDate?: InputMaybe<DateFieldComparison>;
411
436
  endDate?: InputMaybe<DateFieldComparison>;
412
437
  environmentId?: InputMaybe<StringFieldComparison>;
413
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
414
438
  id?: InputMaybe<StringFieldComparison>;
439
+ oldBillingId?: InputMaybe<StringFieldComparison>;
415
440
  or?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
416
441
  pricingType?: InputMaybe<PricingTypeFilterComparison>;
417
442
  refId?: InputMaybe<StringFieldComparison>;
418
443
  startDate?: InputMaybe<DateFieldComparison>;
419
444
  status?: InputMaybe<SubscriptionStatusFilterComparison>;
445
+ subscriptionId?: InputMaybe<StringFieldComparison>;
420
446
  trialEndDate?: InputMaybe<DateFieldComparison>;
421
447
  };
422
448
  export declare type CustomerFilterPromotionalEntitlementFilter = {
@@ -433,13 +459,31 @@ export declare type CustomerInput = {
433
459
  billingId?: InputMaybe<Scalars['String']>;
434
460
  billingInformation?: InputMaybe<CustomerBillingInfo>;
435
461
  couponRefId?: InputMaybe<Scalars['String']>;
462
+ createdAt?: InputMaybe<Scalars['DateTime']>;
436
463
  crmId?: InputMaybe<Scalars['String']>;
464
+ customerId?: InputMaybe<Scalars['String']>;
437
465
  email?: InputMaybe<Scalars['String']>;
438
466
  environmentId?: InputMaybe<Scalars['String']>;
439
467
  name?: InputMaybe<Scalars['String']>;
440
- refId: Scalars['String'];
468
+ refId?: InputMaybe<Scalars['String']>;
441
469
  shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
442
470
  };
471
+ export declare type CustomerPortalColorsPaletteInput = {
472
+ backgroundColor?: InputMaybe<Scalars['String']>;
473
+ borderColor?: InputMaybe<Scalars['String']>;
474
+ currentPlanBackground?: InputMaybe<Scalars['String']>;
475
+ iconsColor?: InputMaybe<Scalars['String']>;
476
+ paywallBackgroundColor?: InputMaybe<Scalars['String']>;
477
+ primary?: InputMaybe<Scalars['String']>;
478
+ textColor?: InputMaybe<Scalars['String']>;
479
+ };
480
+ export declare type CustomerPortalConfigurationInput = {
481
+ palette?: InputMaybe<CustomerPortalColorsPaletteInput>;
482
+ typography?: InputMaybe<TypographyConfigurationInput>;
483
+ };
484
+ export declare type CustomerPortalInput = {
485
+ customerId: Scalars['String'];
486
+ };
443
487
  export declare type CustomerSort = {
444
488
  direction: SortDirection;
445
489
  field: CustomerSortFields;
@@ -451,9 +495,9 @@ export declare enum CustomerSortFields {
451
495
  CrmHubspotCompanyId = "crmHubspotCompanyId",
452
496
  CrmHubspotCompanyUrl = "crmHubspotCompanyUrl",
453
497
  CrmId = "crmId",
498
+ CustomerId = "customerId",
454
499
  Email = "email",
455
500
  EnvironmentId = "environmentId",
456
- ExperimentGroup = "experimentGroup",
457
501
  Id = "id",
458
502
  Name = "name",
459
503
  RefId = "refId",
@@ -472,14 +516,16 @@ export declare type CustomerSubscriptionFilter = {
472
516
  effectiveEndDate?: InputMaybe<DateFieldComparison>;
473
517
  endDate?: InputMaybe<DateFieldComparison>;
474
518
  environmentId?: InputMaybe<StringFieldComparison>;
475
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
476
519
  id?: InputMaybe<StringFieldComparison>;
520
+ oldBillingId?: InputMaybe<StringFieldComparison>;
477
521
  or?: InputMaybe<Array<CustomerSubscriptionFilter>>;
478
522
  prices?: InputMaybe<CustomerSubscriptionFilterSubscriptionPriceFilter>;
479
523
  pricingType?: InputMaybe<PricingTypeFilterComparison>;
480
524
  refId?: InputMaybe<StringFieldComparison>;
481
525
  startDate?: InputMaybe<DateFieldComparison>;
482
526
  status?: InputMaybe<SubscriptionStatusFilterComparison>;
527
+ subscriptionEntitlements?: InputMaybe<CustomerSubscriptionFilterSubscriptionEntitlementFilter>;
528
+ subscriptionId?: InputMaybe<StringFieldComparison>;
483
529
  trialEndDate?: InputMaybe<DateFieldComparison>;
484
530
  };
485
531
  export declare type CustomerSubscriptionFilterCustomerFilter = {
@@ -489,9 +535,9 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
489
535
  crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
490
536
  crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
491
537
  crmId?: InputMaybe<StringFieldComparison>;
538
+ customerId?: InputMaybe<StringFieldComparison>;
492
539
  email?: InputMaybe<StringFieldComparison>;
493
540
  environmentId?: InputMaybe<StringFieldComparison>;
494
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
495
541
  id?: InputMaybe<StringFieldComparison>;
496
542
  name?: InputMaybe<StringFieldComparison>;
497
543
  or?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
@@ -506,6 +552,15 @@ export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
506
552
  quantity?: InputMaybe<NumberFieldComparison>;
507
553
  updatedAt?: InputMaybe<DateFieldComparison>;
508
554
  };
555
+ export declare type CustomerSubscriptionFilterSubscriptionEntitlementFilter = {
556
+ and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionEntitlementFilter>>;
557
+ createdAt?: InputMaybe<DateFieldComparison>;
558
+ environmentId?: InputMaybe<StringFieldComparison>;
559
+ id?: InputMaybe<StringFieldComparison>;
560
+ or?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionEntitlementFilter>>;
561
+ subscriptionId?: InputMaybe<StringFieldComparison>;
562
+ updatedAt?: InputMaybe<DateFieldComparison>;
563
+ };
509
564
  export declare type CustomerSubscriptionFilterSubscriptionPriceFilter = {
510
565
  and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
511
566
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -529,12 +584,13 @@ export declare enum CustomerSubscriptionSortFields {
529
584
  EffectiveEndDate = "effectiveEndDate",
530
585
  EndDate = "endDate",
531
586
  EnvironmentId = "environmentId",
532
- ExperimentGroup = "experimentGroup",
533
587
  Id = "id",
588
+ OldBillingId = "oldBillingId",
534
589
  PricingType = "pricingType",
535
590
  RefId = "refId",
536
591
  StartDate = "startDate",
537
592
  Status = "status",
593
+ SubscriptionId = "subscriptionId",
538
594
  TrialEndDate = "trialEndDate"
539
595
  }
540
596
  export declare type DateFieldComparison = {
@@ -587,10 +643,6 @@ export declare type DeleteOnePackageEntitlementInput = {
587
643
  /** The id of the record to delete. */
588
644
  id: Scalars['String'];
589
645
  };
590
- export declare type DeleteOnePlanInput = {
591
- /** The id of the record to delete. */
592
- id: Scalars['String'];
593
- };
594
646
  export declare type DeleteOnePriceInput = {
595
647
  /** The id of the record to delete. */
596
648
  id: Scalars['String'];
@@ -649,6 +701,13 @@ export declare type EnvironmentFilter = {
649
701
  or?: InputMaybe<Array<EnvironmentFilter>>;
650
702
  slug?: InputMaybe<StringFieldComparison>;
651
703
  };
704
+ /** EnvironmentProvisionStatus. */
705
+ export declare enum EnvironmentProvisionStatus {
706
+ Done = "DONE",
707
+ Failed = "FAILED",
708
+ InProgress = "IN_PROGRESS",
709
+ NotProvisioned = "NOT_PROVISIONED"
710
+ }
652
711
  export declare type EnvironmentSort = {
653
712
  direction: SortDirection;
654
713
  field: EnvironmentSortFields;
@@ -666,22 +725,31 @@ export declare enum ErrorCode {
666
725
  AddonHasToHavePriceError = "AddonHasToHavePriceError",
667
726
  AddonNotFound = "AddonNotFound",
668
727
  ArchivedCouponCantBeApplied = "ArchivedCouponCantBeApplied",
728
+ AuthCustomerMismatch = "AuthCustomerMismatch",
669
729
  BadUserInput = "BadUserInput",
670
730
  BillingPeriodMissingError = "BillingPeriodMissingError",
671
731
  CannotDeleteCustomerError = "CannotDeleteCustomerError",
672
732
  CannotDeleteFeatureError = "CannotDeleteFeatureError",
673
- CantCreateExperiment = "CantCreateExperiment",
733
+ CannotEditPackageInNonDraftMode = "CannotEditPackageInNonDraftMode",
674
734
  CheckoutIsNotSupported = "CheckoutIsNotSupported",
735
+ CheckoutOptionsMissing = "CheckoutOptionsMissing",
675
736
  CouponNotFound = "CouponNotFound",
737
+ CustomerAlreadyHaveCustomerCoupon = "CustomerAlreadyHaveCustomerCoupon",
738
+ CustomerAlreadyUsesCoupon = "CustomerAlreadyUsesCoupon",
676
739
  CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
677
740
  CustomerNoBillingId = "CustomerNoBillingId",
678
741
  CustomerNotFound = "CustomerNotFound",
742
+ DowngradeBillingPeriodNotSupportedError = "DowngradeBillingPeriodNotSupportedError",
679
743
  DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
680
744
  DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
681
745
  EditAllowedOnDraftPackageOnlyError = "EditAllowedOnDraftPackageOnlyError",
746
+ EntitlementsMustBelongToSamePackage = "EntitlementsMustBelongToSamePackage",
747
+ EntityIdDifferentFromRefIdError = "EntityIdDifferentFromRefIdError",
682
748
  EnvironmentMissing = "EnvironmentMissing",
749
+ ExperimentAlreadyRunning = "ExperimentAlreadyRunning",
683
750
  ExperimentNotFoundError = "ExperimentNotFoundError",
684
751
  ExperimentStatusError = "ExperimentStatusError",
752
+ FailedToCreateCheckoutSessionError = "FailedToCreateCheckoutSessionError",
685
753
  FailedToImportCustomer = "FailedToImportCustomer",
686
754
  FeatureNotFound = "FeatureNotFound",
687
755
  IdentityForbidden = "IdentityForbidden",
@@ -701,16 +769,26 @@ export declare enum ErrorCode {
701
769
  MemberInvitationError = "MemberInvitationError",
702
770
  MemberNotFound = "MemberNotFound",
703
771
  MeteringNotAvailableForFeatureType = "MeteringNotAvailableForFeatureType",
772
+ MissingEntityIdError = "MissingEntityIdError",
704
773
  NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription",
774
+ NoProductsAvailable = "NoProductsAvailable",
775
+ OperationNotAllowedDuringInProgressExperiment = "OperationNotAllowedDuringInProgressExperiment",
705
776
  PackageAlreadyPublished = "PackageAlreadyPublished",
706
777
  PackagePricingTypeNotSet = "PackagePricingTypeNotSet",
707
778
  PlanAlreadyExtended = "PlanAlreadyExtended",
779
+ PlanCannotBePublishWhenBasePlanIsDraft = "PlanCannotBePublishWhenBasePlanIsDraft",
708
780
  PlanIsUsedAsDefaultStartPlan = "PlanIsUsedAsDefaultStartPlan",
709
781
  PlanIsUsedAsDowngradePlan = "PlanIsUsedAsDowngradePlan",
710
782
  PlanNotFound = "PlanNotFound",
711
783
  PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted",
712
784
  PlansCircularDependencyError = "PlansCircularDependencyError",
713
785
  PriceNotFound = "PriceNotFound",
786
+ PromotionCodeCustomerNotFirstPurchase = "PromotionCodeCustomerNotFirstPurchase",
787
+ PromotionCodeMaxRedemptionsReached = "PromotionCodeMaxRedemptionsReached",
788
+ PromotionCodeMinimumAmountNotReached = "PromotionCodeMinimumAmountNotReached",
789
+ PromotionCodeNotActive = "PromotionCodeNotActive",
790
+ PromotionCodeNotForCustomer = "PromotionCodeNotForCustomer",
791
+ PromotionCodeNotFound = "PromotionCodeNotFound",
714
792
  RateLimitExceeded = "RateLimitExceeded",
715
793
  ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
716
794
  SelectedBillingModelDoesntMatchImportedItemError = "SelectedBillingModelDoesntMatchImportedItemError",
@@ -725,8 +803,27 @@ export declare enum ErrorCode {
725
803
  UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon",
726
804
  UnexpectedError = "UnexpectedError",
727
805
  UnsupportedFeatureType = "UnsupportedFeatureType",
806
+ UnsupportedSubscriptionScheduleType = "UnsupportedSubscriptionScheduleType",
728
807
  UnsupportedVendorIdentifier = "UnsupportedVendorIdentifier"
729
808
  }
809
+ export declare type EstimateSubscriptionInput = {
810
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
811
+ billingInformation?: InputMaybe<SubscriptionBillingInfo>;
812
+ billingPeriod?: InputMaybe<BillingPeriod>;
813
+ customerId: Scalars['String'];
814
+ environmentId?: InputMaybe<Scalars['String']>;
815
+ planId: Scalars['String'];
816
+ priceUnitAmount?: InputMaybe<Scalars['Float']>;
817
+ promotionCode?: InputMaybe<Scalars['String']>;
818
+ startDate?: InputMaybe<Scalars['DateTime']>;
819
+ };
820
+ export declare type EstimateSubscriptionUpdateInput = {
821
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
822
+ environmentId?: InputMaybe<Scalars['String']>;
823
+ promotionCode?: InputMaybe<Scalars['String']>;
824
+ subscriptionId: Scalars['String'];
825
+ unitQuantity?: InputMaybe<Scalars['Float']>;
826
+ };
730
827
  /** EventLogType */
731
828
  export declare enum EventLogType {
732
829
  AddonCreated = "ADDON_CREATED",
@@ -740,10 +837,12 @@ export declare enum EventLogType {
740
837
  CustomerDeleted = "CUSTOMER_DELETED",
741
838
  CustomerPaymentFailed = "CUSTOMER_PAYMENT_FAILED",
742
839
  CustomerUpdated = "CUSTOMER_UPDATED",
840
+ EdgeApiDataResync = "EDGE_API_DATA_RESYNC",
743
841
  EntitlementsUpdated = "ENTITLEMENTS_UPDATED",
744
842
  EntitlementDenied = "ENTITLEMENT_DENIED",
745
843
  EntitlementGranted = "ENTITLEMENT_GRANTED",
746
844
  EntitlementRequested = "ENTITLEMENT_REQUESTED",
845
+ EnvironmentDeleted = "ENVIRONMENT_DELETED",
747
846
  FeatureCreated = "FEATURE_CREATED",
748
847
  FeatureDeleted = "FEATURE_DELETED",
749
848
  FeatureUpdated = "FEATURE_UPDATED",
@@ -754,6 +853,9 @@ export declare enum EventLogType {
754
853
  PlanCreated = "PLAN_CREATED",
755
854
  PlanDeleted = "PLAN_DELETED",
756
855
  PlanUpdated = "PLAN_UPDATED",
856
+ ProductCreated = "PRODUCT_CREATED",
857
+ ProductDeleted = "PRODUCT_DELETED",
858
+ ProductUpdated = "PRODUCT_UPDATED",
757
859
  PromotionalEntitlementExpired = "PROMOTIONAL_ENTITLEMENT_EXPIRED",
758
860
  PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
759
861
  PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
@@ -768,7 +870,8 @@ export declare enum EventLogType {
768
870
  SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
769
871
  SubscriptionUpdated = "SUBSCRIPTION_UPDATED",
770
872
  SubscriptionUsageUpdated = "SUBSCRIPTION_USAGE_UPDATED",
771
- SyncFailed = "SYNC_FAILED"
873
+ SyncFailed = "SYNC_FAILED",
874
+ WidgetConfigurationUpdated = "WIDGET_CONFIGURATION_UPDATED"
772
875
  }
773
876
  export declare type ExperimentFilter = {
774
877
  and?: InputMaybe<Array<ExperimentFilter>>;
@@ -789,36 +892,15 @@ export declare type ExperimentFilterCustomerFilter = {
789
892
  crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
790
893
  crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
791
894
  crmId?: InputMaybe<StringFieldComparison>;
895
+ customerId?: InputMaybe<StringFieldComparison>;
792
896
  email?: InputMaybe<StringFieldComparison>;
793
897
  environmentId?: InputMaybe<StringFieldComparison>;
794
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
795
898
  id?: InputMaybe<StringFieldComparison>;
796
899
  name?: InputMaybe<StringFieldComparison>;
797
900
  or?: InputMaybe<Array<ExperimentFilterCustomerFilter>>;
798
901
  refId?: InputMaybe<StringFieldComparison>;
799
902
  updatedAt?: InputMaybe<DateFieldComparison>;
800
903
  };
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
- };
822
904
  export declare type ExperimentSort = {
823
905
  direction: SortDirection;
824
906
  field: ExperimentSortFields;
@@ -833,6 +915,10 @@ export declare enum ExperimentSortFields {
833
915
  RefId = "refId",
834
916
  Status = "status"
835
917
  }
918
+ export declare type ExperimentStatsQuery = {
919
+ environmentId?: InputMaybe<Scalars['String']>;
920
+ experimentRefId: Scalars['String'];
921
+ };
836
922
  /** The status of the EXPERIMENT */
837
923
  export declare enum ExperimentStatus {
838
924
  Completed = "COMPLETED",
@@ -870,8 +956,9 @@ export declare type FeatureFilter = {
870
956
  updatedAt?: InputMaybe<DateFieldComparison>;
871
957
  };
872
958
  export declare type FeatureInput = {
959
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
873
960
  description?: InputMaybe<Scalars['String']>;
874
- displayName?: InputMaybe<Scalars['String']>;
961
+ displayName: Scalars['String'];
875
962
  environmentId: Scalars['String'];
876
963
  featureStatus?: InputMaybe<FeatureStatus>;
877
964
  featureType: FeatureType;
@@ -950,11 +1037,33 @@ export declare type FetchEntitlementsQuery = {
950
1037
  customerId: Scalars['String'];
951
1038
  environmentId?: InputMaybe<Scalars['String']>;
952
1039
  };
1040
+ export declare type FontVariantInput = {
1041
+ fontSize?: InputMaybe<Scalars['Float']>;
1042
+ fontWeight?: InputMaybe<FontWeight>;
1043
+ };
1044
+ /** Font weight */
1045
+ export declare enum FontWeight {
1046
+ Bold = "BOLD",
1047
+ Normal = "NORMAL"
1048
+ }
1049
+ export declare type GetCustomerByRefIdInput = {
1050
+ customerId: Scalars['String'];
1051
+ environmentId?: InputMaybe<Scalars['String']>;
1052
+ };
953
1053
  export declare type GetPackageByRefIdInput = {
954
1054
  environmentId: Scalars['String'];
955
1055
  refId: Scalars['String'];
956
1056
  versionNumber?: InputMaybe<Scalars['Float']>;
957
1057
  };
1058
+ export declare type GetPaywallInput = {
1059
+ context?: InputMaybe<WidgetType>;
1060
+ customerId?: InputMaybe<Scalars['String']>;
1061
+ environmentId?: InputMaybe<Scalars['String']>;
1062
+ productId?: InputMaybe<Scalars['String']>;
1063
+ };
1064
+ export declare type GetWidgetConfigurationInput = {
1065
+ environmentId?: InputMaybe<Scalars['String']>;
1066
+ };
958
1067
  export declare type HookFilter = {
959
1068
  and?: InputMaybe<Array<HookFilter>>;
960
1069
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -1002,11 +1111,13 @@ export declare type HubspotCredentialsInput = {
1002
1111
  refreshToken?: InputMaybe<Scalars['String']>;
1003
1112
  };
1004
1113
  export declare type ImportCustomerInput = {
1114
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1005
1115
  billingId: Scalars['String'];
1116
+ customerId?: InputMaybe<Scalars['String']>;
1006
1117
  email?: InputMaybe<Scalars['String']>;
1007
1118
  environmentId?: InputMaybe<Scalars['String']>;
1008
1119
  name?: InputMaybe<Scalars['String']>;
1009
- refId: Scalars['String'];
1120
+ refId?: InputMaybe<Scalars['String']>;
1010
1121
  };
1011
1122
  export declare type ImportIntegrationCatalogInput = {
1012
1123
  billingModel?: InputMaybe<BillingModel>;
@@ -1055,10 +1166,12 @@ export declare type InitAddStripeCustomerPaymentMethodInput = {
1055
1166
  };
1056
1167
  export declare type InitiateCheckoutInput = {
1057
1168
  addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1169
+ allowPromoCodes?: InputMaybe<Scalars['Boolean']>;
1170
+ allowTaxIdCollection?: InputMaybe<Scalars['Boolean']>;
1058
1171
  billingPeriod: BillingPeriod;
1059
1172
  cancelUrl: Scalars['String'];
1173
+ collectBillingAddress?: InputMaybe<Scalars['Boolean']>;
1060
1174
  customerId: Scalars['String'];
1061
- environmentId?: InputMaybe<Scalars['String']>;
1062
1175
  planId: Scalars['String'];
1063
1176
  successUrl: Scalars['String'];
1064
1177
  unitQuantity?: InputMaybe<Scalars['Int']>;
@@ -1253,10 +1366,14 @@ export declare type PackageEntitlementFilterPackageDtoFilter = {
1253
1366
  };
1254
1367
  export declare type PackageEntitlementInput = {
1255
1368
  description?: InputMaybe<Scalars['String']>;
1369
+ displayNameOverride?: InputMaybe<Scalars['String']>;
1256
1370
  environmentId: Scalars['String'];
1257
1371
  featureId: Scalars['String'];
1258
1372
  hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
1373
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
1374
+ isCustom?: InputMaybe<Scalars['Boolean']>;
1259
1375
  monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
1376
+ order?: InputMaybe<Scalars['Float']>;
1260
1377
  packageId: Scalars['String'];
1261
1378
  resetPeriod?: InputMaybe<EntitlementResetPeriod>;
1262
1379
  usageLimit?: InputMaybe<Scalars['Float']>;
@@ -1276,8 +1393,12 @@ export declare enum PackageEntitlementSortFields {
1276
1393
  }
1277
1394
  export declare type PackageEntitlementUpdateInput = {
1278
1395
  description?: InputMaybe<Scalars['String']>;
1396
+ displayNameOverride?: InputMaybe<Scalars['String']>;
1279
1397
  hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
1398
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
1399
+ isCustom?: InputMaybe<Scalars['Boolean']>;
1280
1400
  monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
1401
+ order?: InputMaybe<Scalars['Float']>;
1281
1402
  resetPeriod?: InputMaybe<EntitlementResetPeriod>;
1282
1403
  usageLimit?: InputMaybe<Scalars['Float']>;
1283
1404
  weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
@@ -1319,12 +1440,31 @@ export declare enum PaymentMethodType {
1319
1440
  Bank = "BANK",
1320
1441
  Card = "CARD"
1321
1442
  }
1443
+ export declare type PaywallColorsPaletteInput = {
1444
+ backgroundColor?: InputMaybe<Scalars['String']>;
1445
+ borderColor?: InputMaybe<Scalars['String']>;
1446
+ currentPlanBackground?: InputMaybe<Scalars['String']>;
1447
+ primary?: InputMaybe<Scalars['String']>;
1448
+ textColor?: InputMaybe<Scalars['String']>;
1449
+ };
1450
+ export declare type PaywallConfigurationInput = {
1451
+ layout?: InputMaybe<PaywallLayoutConfigurationInput>;
1452
+ palette?: InputMaybe<PaywallColorsPaletteInput>;
1453
+ typography?: InputMaybe<TypographyConfigurationInput>;
1454
+ };
1455
+ export declare type PaywallLayoutConfigurationInput = {
1456
+ alignment?: InputMaybe<Alignment>;
1457
+ planMargin?: InputMaybe<Scalars['Float']>;
1458
+ planPadding?: InputMaybe<Scalars['Float']>;
1459
+ planWidth?: InputMaybe<Scalars['Float']>;
1460
+ };
1322
1461
  export declare type PlanCreateInput = {
1323
1462
  additionalMetaData?: InputMaybe<Scalars['JSON']>;
1324
1463
  billingId?: InputMaybe<Scalars['String']>;
1325
1464
  description?: InputMaybe<Scalars['String']>;
1326
1465
  displayName: Scalars['String'];
1327
1466
  environmentId?: InputMaybe<Scalars['String']>;
1467
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
1328
1468
  parentPlanId?: InputMaybe<Scalars['String']>;
1329
1469
  productId: Scalars['String'];
1330
1470
  refId?: InputMaybe<Scalars['String']>;
@@ -1404,12 +1544,14 @@ export declare type PlanUpdateInput = {
1404
1544
  defaultTrialConfig?: InputMaybe<DefaultTrialConfigInputDto>;
1405
1545
  description?: InputMaybe<Scalars['String']>;
1406
1546
  displayName?: InputMaybe<Scalars['String']>;
1547
+ hiddenFromWidgets?: InputMaybe<Array<WidgetType>>;
1407
1548
  id: Scalars['String'];
1408
1549
  parentPlanId?: InputMaybe<Scalars['String']>;
1409
1550
  status?: InputMaybe<PackageStatus>;
1410
1551
  };
1411
1552
  export declare type PriceFilter = {
1412
1553
  and?: InputMaybe<Array<PriceFilter>>;
1554
+ billingId?: InputMaybe<StringFieldComparison>;
1413
1555
  billingModel?: InputMaybe<BillingModelFilterComparison>;
1414
1556
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1415
1557
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -1444,6 +1586,7 @@ export declare type PriceSort = {
1444
1586
  nulls?: InputMaybe<SortNulls>;
1445
1587
  };
1446
1588
  export declare enum PriceSortFields {
1589
+ BillingId = "billingId",
1447
1590
  BillingModel = "billingModel",
1448
1591
  BillingPeriod = "billingPeriod",
1449
1592
  CreatedAt = "createdAt",
@@ -1452,6 +1595,8 @@ export declare enum PriceSortFields {
1452
1595
  export declare type PricingModelCreateInput = {
1453
1596
  billingModel: BillingModel;
1454
1597
  featureId?: InputMaybe<Scalars['String']>;
1598
+ maxUnitQuantity?: InputMaybe<Scalars['Float']>;
1599
+ minUnitQuantity?: InputMaybe<Scalars['Float']>;
1455
1600
  pricePeriods: Array<PricePeriodInput>;
1456
1601
  };
1457
1602
  /** Package pricing type. */
@@ -1496,6 +1641,7 @@ export declare type ProductFilter = {
1496
1641
  updatedAt?: InputMaybe<DateFieldComparison>;
1497
1642
  };
1498
1643
  export declare type ProductSettingsInput = {
1644
+ downgradeAtEndOfBillingPeriod?: InputMaybe<Scalars['String']>;
1499
1645
  downgradePlanId?: InputMaybe<Scalars['String']>;
1500
1646
  subscriptionCancellationTime: SubscriptionCancellationTime;
1501
1647
  subscriptionEndSetup: SubscriptionEndSetup;
@@ -1600,19 +1746,76 @@ export declare type PromotionalEntitlementUpdateInput = {
1600
1746
  usageLimit?: InputMaybe<Scalars['Float']>;
1601
1747
  weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
1602
1748
  };
1749
+ export declare enum ProrationBehavior {
1750
+ CreateProrations = "CREATE_PRORATIONS",
1751
+ InvoiceImmediately = "INVOICE_IMMEDIATELY"
1752
+ }
1603
1753
  export declare type ProvisionCustomerInput = {
1604
1754
  additionalMetaData?: InputMaybe<Scalars['JSON']>;
1605
1755
  billingId?: InputMaybe<Scalars['String']>;
1606
1756
  billingInformation?: InputMaybe<CustomerBillingInfo>;
1607
1757
  couponRefId?: InputMaybe<Scalars['String']>;
1758
+ createdAt?: InputMaybe<Scalars['DateTime']>;
1608
1759
  crmId?: InputMaybe<Scalars['String']>;
1760
+ customerId?: InputMaybe<Scalars['String']>;
1609
1761
  email?: InputMaybe<Scalars['String']>;
1610
1762
  environmentId?: InputMaybe<Scalars['String']>;
1763
+ excludeFromExperiment?: InputMaybe<Scalars['Boolean']>;
1611
1764
  name?: InputMaybe<Scalars['String']>;
1612
- refId: Scalars['String'];
1765
+ refId?: InputMaybe<Scalars['String']>;
1613
1766
  shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
1614
- subscriptionParams?: InputMaybe<SubscriptionBaseInput>;
1767
+ subscriptionParams?: InputMaybe<ProvisionCustomerSubscriptionInput>;
1768
+ };
1769
+ export declare type ProvisionCustomerSubscriptionInput = {
1770
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1771
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1772
+ awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
1773
+ billingInformation?: InputMaybe<SubscriptionBillingInfo>;
1774
+ billingPeriod?: InputMaybe<BillingPeriod>;
1775
+ planId: Scalars['String'];
1776
+ priceUnitAmount?: InputMaybe<Scalars['Float']>;
1777
+ promotionCode?: InputMaybe<Scalars['String']>;
1778
+ refId?: InputMaybe<Scalars['String']>;
1779
+ startDate?: InputMaybe<Scalars['DateTime']>;
1780
+ subscriptionId?: InputMaybe<Scalars['String']>;
1781
+ };
1782
+ export declare type ProvisionSubscription = {
1783
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1784
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1785
+ awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
1786
+ billingInformation?: InputMaybe<SubscriptionBillingInfo>;
1787
+ billingPeriod?: InputMaybe<BillingPeriod>;
1788
+ checkoutOptions?: InputMaybe<CheckoutOptions>;
1789
+ customerId: Scalars['String'];
1790
+ planId: Scalars['String'];
1791
+ priceUnitAmount?: InputMaybe<Scalars['Float']>;
1792
+ promotionCode?: InputMaybe<Scalars['String']>;
1793
+ refId?: InputMaybe<Scalars['String']>;
1794
+ skipTrial?: InputMaybe<Scalars['Boolean']>;
1795
+ startDate?: InputMaybe<Scalars['DateTime']>;
1796
+ subscriptionId?: InputMaybe<Scalars['String']>;
1797
+ };
1798
+ export declare type ProvisionSubscriptionInput = {
1799
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
1800
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1801
+ awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
1802
+ billingInformation?: InputMaybe<SubscriptionBillingInfo>;
1803
+ billingPeriod?: InputMaybe<BillingPeriod>;
1804
+ checkoutOptions?: InputMaybe<CheckoutOptions>;
1805
+ customerId: Scalars['String'];
1806
+ planId: Scalars['String'];
1807
+ priceUnitAmount?: InputMaybe<Scalars['Float']>;
1808
+ promotionCode?: InputMaybe<Scalars['String']>;
1809
+ refId?: InputMaybe<Scalars['String']>;
1810
+ skipTrial?: InputMaybe<Scalars['Boolean']>;
1811
+ startDate?: InputMaybe<Scalars['DateTime']>;
1812
+ subscriptionId?: InputMaybe<Scalars['String']>;
1615
1813
  };
1814
+ /** Provision subscription status */
1815
+ export declare enum ProvisionSubscriptionStatus {
1816
+ PaymentRequired = "PAYMENT_REQUIRED",
1817
+ Success = "SUCCESS"
1818
+ }
1616
1819
  /** PublishMigrationType */
1617
1820
  export declare enum PublishMigrationType {
1618
1821
  AllCustomers = "ALL_CUSTOMERS",
@@ -1636,6 +1839,12 @@ export declare type RemoveCouponFromCustomerInput = {
1636
1839
  /** The id of relation. */
1637
1840
  relationId: Scalars['String'];
1638
1841
  };
1842
+ export declare type RemoveCouponFromCustomerSubscriptionInput = {
1843
+ /** The id of the record. */
1844
+ id: Scalars['String'];
1845
+ /** The id of relation. */
1846
+ relationId: Scalars['String'];
1847
+ };
1639
1848
  export declare type RemoveExperimentFromCustomerInput = {
1640
1849
  /** The id of the record. */
1641
1850
  id: Scalars['String'];
@@ -1670,6 +1879,12 @@ export declare type SetCouponOnCustomerInput = {
1670
1879
  /** The id of relation. */
1671
1880
  relationId: Scalars['String'];
1672
1881
  };
1882
+ export declare type SetCouponOnCustomerSubscriptionInput = {
1883
+ /** The id of the record. */
1884
+ id: Scalars['String'];
1885
+ /** The id of relation. */
1886
+ relationId: Scalars['String'];
1887
+ };
1673
1888
  export declare type SetExperimentOnCustomerInput = {
1674
1889
  /** The id of the record. */
1675
1890
  id: Scalars['String'];
@@ -1778,17 +1993,19 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
1778
1993
  effectiveEndDate?: InputMaybe<DateFieldComparison>;
1779
1994
  endDate?: InputMaybe<DateFieldComparison>;
1780
1995
  environmentId?: InputMaybe<StringFieldComparison>;
1781
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
1782
1996
  id?: InputMaybe<StringFieldComparison>;
1997
+ oldBillingId?: InputMaybe<StringFieldComparison>;
1783
1998
  or?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
1784
1999
  pricingType?: InputMaybe<PricingTypeFilterComparison>;
1785
2000
  refId?: InputMaybe<StringFieldComparison>;
1786
2001
  startDate?: InputMaybe<DateFieldComparison>;
1787
2002
  status?: InputMaybe<SubscriptionStatusFilterComparison>;
2003
+ subscriptionId?: InputMaybe<StringFieldComparison>;
1788
2004
  trialEndDate?: InputMaybe<DateFieldComparison>;
1789
2005
  };
1790
2006
  export declare type SubscriptionAddonFilterPriceFilter = {
1791
2007
  and?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
2008
+ billingId?: InputMaybe<StringFieldComparison>;
1792
2009
  billingModel?: InputMaybe<BillingModelFilterComparison>;
1793
2010
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1794
2011
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -1797,7 +2014,6 @@ export declare type SubscriptionAddonFilterPriceFilter = {
1797
2014
  };
1798
2015
  export declare type SubscriptionAddonInput = {
1799
2016
  addonId: Scalars['String'];
1800
- billingPeriod?: InputMaybe<BillingPeriod>;
1801
2017
  quantity?: InputMaybe<Scalars['Int']>;
1802
2018
  };
1803
2019
  export declare type SubscriptionAddonSort = {
@@ -1811,25 +2027,6 @@ export declare enum SubscriptionAddonSortFields {
1811
2027
  Quantity = "quantity",
1812
2028
  UpdatedAt = "updatedAt"
1813
2029
  }
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
- };
1833
2030
  export declare type SubscriptionBillingInfo = {
1834
2031
  taxRateIds?: InputMaybe<Array<Scalars['String']>>;
1835
2032
  };
@@ -1872,37 +2069,108 @@ export declare enum SubscriptionCancellationTime {
1872
2069
  Immediate = "IMMEDIATE",
1873
2070
  SpecificDate = "SPECIFIC_DATE"
1874
2071
  }
1875
- export declare type SubscriptionEditTrialEndDateInput = {
1876
- environmentId: Scalars['String'];
1877
- subscriptionRefId: Scalars['String'];
1878
- trialEndDate: Scalars['DateTime'];
1879
- };
2072
+ /** Subscription decision strategy */
2073
+ export declare enum SubscriptionDecisionStrategy {
2074
+ PredefinedFreePlan = "PREDEFINED_FREE_PLAN",
2075
+ PredefinedTrialPlan = "PREDEFINED_TRIAL_PLAN",
2076
+ RequestedPlan = "REQUESTED_PLAN",
2077
+ SkippedSubscriptionCreation = "SKIPPED_SUBSCRIPTION_CREATION"
2078
+ }
1880
2079
  export declare enum SubscriptionEndSetup {
1881
2080
  CancelSubscription = "CANCEL_SUBSCRIPTION",
1882
2081
  DowngradeToFree = "DOWNGRADE_TO_FREE"
1883
2082
  }
2083
+ export declare type SubscriptionEntitlementFilter = {
2084
+ and?: InputMaybe<Array<SubscriptionEntitlementFilter>>;
2085
+ createdAt?: InputMaybe<DateFieldComparison>;
2086
+ environmentId?: InputMaybe<StringFieldComparison>;
2087
+ feature?: InputMaybe<SubscriptionEntitlementFilterFeatureFilter>;
2088
+ id?: InputMaybe<StringFieldComparison>;
2089
+ or?: InputMaybe<Array<SubscriptionEntitlementFilter>>;
2090
+ subscription?: InputMaybe<SubscriptionEntitlementFilterCustomerSubscriptionFilter>;
2091
+ subscriptionId?: InputMaybe<StringFieldComparison>;
2092
+ updatedAt?: InputMaybe<DateFieldComparison>;
2093
+ };
2094
+ export declare type SubscriptionEntitlementFilterCustomerSubscriptionFilter = {
2095
+ and?: InputMaybe<Array<SubscriptionEntitlementFilterCustomerSubscriptionFilter>>;
2096
+ billingId?: InputMaybe<StringFieldComparison>;
2097
+ cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
2098
+ cancellationDate?: InputMaybe<DateFieldComparison>;
2099
+ createdAt?: InputMaybe<DateFieldComparison>;
2100
+ crmId?: InputMaybe<StringFieldComparison>;
2101
+ crmLinkUrl?: InputMaybe<StringFieldComparison>;
2102
+ effectiveEndDate?: InputMaybe<DateFieldComparison>;
2103
+ endDate?: InputMaybe<DateFieldComparison>;
2104
+ environmentId?: InputMaybe<StringFieldComparison>;
2105
+ id?: InputMaybe<StringFieldComparison>;
2106
+ oldBillingId?: InputMaybe<StringFieldComparison>;
2107
+ or?: InputMaybe<Array<SubscriptionEntitlementFilterCustomerSubscriptionFilter>>;
2108
+ pricingType?: InputMaybe<PricingTypeFilterComparison>;
2109
+ refId?: InputMaybe<StringFieldComparison>;
2110
+ startDate?: InputMaybe<DateFieldComparison>;
2111
+ status?: InputMaybe<SubscriptionStatusFilterComparison>;
2112
+ subscriptionId?: InputMaybe<StringFieldComparison>;
2113
+ trialEndDate?: InputMaybe<DateFieldComparison>;
2114
+ };
2115
+ export declare type SubscriptionEntitlementFilterFeatureFilter = {
2116
+ and?: InputMaybe<Array<SubscriptionEntitlementFilterFeatureFilter>>;
2117
+ createdAt?: InputMaybe<DateFieldComparison>;
2118
+ description?: InputMaybe<StringFieldComparison>;
2119
+ displayName?: InputMaybe<StringFieldComparison>;
2120
+ environmentId?: InputMaybe<StringFieldComparison>;
2121
+ featureStatus?: InputMaybe<FeatureStatusFilterComparison>;
2122
+ featureType?: InputMaybe<FeatureTypeFilterComparison>;
2123
+ id?: InputMaybe<StringFieldComparison>;
2124
+ meterType?: InputMaybe<MeterTypeFilterComparison>;
2125
+ or?: InputMaybe<Array<SubscriptionEntitlementFilterFeatureFilter>>;
2126
+ refId?: InputMaybe<StringFieldComparison>;
2127
+ updatedAt?: InputMaybe<DateFieldComparison>;
2128
+ };
2129
+ export declare type SubscriptionEntitlementInput = {
2130
+ description?: InputMaybe<Scalars['String']>;
2131
+ featureId: Scalars['String'];
2132
+ hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
2133
+ monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
2134
+ resetPeriod?: InputMaybe<EntitlementResetPeriod>;
2135
+ usageLimit?: InputMaybe<Scalars['Float']>;
2136
+ weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
2137
+ };
2138
+ export declare type SubscriptionEntitlementSort = {
2139
+ direction: SortDirection;
2140
+ field: SubscriptionEntitlementSortFields;
2141
+ nulls?: InputMaybe<SortNulls>;
2142
+ };
2143
+ export declare enum SubscriptionEntitlementSortFields {
2144
+ CreatedAt = "createdAt",
2145
+ EnvironmentId = "environmentId",
2146
+ Id = "id",
2147
+ SubscriptionId = "subscriptionId",
2148
+ UpdatedAt = "updatedAt"
2149
+ }
1884
2150
  export declare type SubscriptionInput = {
1885
2151
  additionalMetaData?: InputMaybe<Scalars['JSON']>;
1886
2152
  addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1887
2153
  awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
1888
- billingCycleAnchor?: InputMaybe<Scalars['DateTime']>;
1889
2154
  billingId?: InputMaybe<Scalars['String']>;
1890
2155
  billingInformation?: InputMaybe<SubscriptionBillingInfo>;
1891
2156
  billingPeriod?: InputMaybe<BillingPeriod>;
1892
2157
  crmId?: InputMaybe<Scalars['String']>;
1893
- currentBillingPeriodEnd?: InputMaybe<Scalars['DateTime']>;
1894
2158
  customerId: Scalars['String'];
1895
2159
  endDate?: InputMaybe<Scalars['DateTime']>;
1896
2160
  environmentId?: InputMaybe<Scalars['String']>;
1897
2161
  isCustomPriceSubscription?: InputMaybe<Scalars['Boolean']>;
1898
2162
  isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
1899
2163
  isTrial?: InputMaybe<Scalars['Boolean']>;
1900
- planId?: InputMaybe<Scalars['String']>;
2164
+ planId: Scalars['String'];
1901
2165
  priceUnitAmount?: InputMaybe<Scalars['Float']>;
2166
+ promotionCode?: InputMaybe<Scalars['String']>;
1902
2167
  refId?: InputMaybe<Scalars['String']>;
1903
2168
  startDate?: InputMaybe<Scalars['DateTime']>;
2169
+ subscriptionEntitlements?: InputMaybe<Array<SubscriptionEntitlementInput>>;
2170
+ subscriptionId?: InputMaybe<Scalars['String']>;
1904
2171
  };
1905
2172
  export declare type SubscriptionMigrationInput = {
2173
+ environmentId?: InputMaybe<Scalars['String']>;
1906
2174
  subscriptionId: Scalars['String'];
1907
2175
  };
1908
2176
  export declare type SubscriptionMigrationTaskFilter = {
@@ -1947,17 +2215,19 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
1947
2215
  effectiveEndDate?: InputMaybe<DateFieldComparison>;
1948
2216
  endDate?: InputMaybe<DateFieldComparison>;
1949
2217
  environmentId?: InputMaybe<StringFieldComparison>;
1950
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
1951
2218
  id?: InputMaybe<StringFieldComparison>;
2219
+ oldBillingId?: InputMaybe<StringFieldComparison>;
1952
2220
  or?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
1953
2221
  pricingType?: InputMaybe<PricingTypeFilterComparison>;
1954
2222
  refId?: InputMaybe<StringFieldComparison>;
1955
2223
  startDate?: InputMaybe<DateFieldComparison>;
1956
2224
  status?: InputMaybe<SubscriptionStatusFilterComparison>;
2225
+ subscriptionId?: InputMaybe<StringFieldComparison>;
1957
2226
  trialEndDate?: InputMaybe<DateFieldComparison>;
1958
2227
  };
1959
2228
  export declare type SubscriptionPriceFilterPriceFilter = {
1960
2229
  and?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
2230
+ billingId?: InputMaybe<StringFieldComparison>;
1961
2231
  billingModel?: InputMaybe<BillingModelFilterComparison>;
1962
2232
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1963
2233
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -1975,6 +2245,19 @@ export declare enum SubscriptionPriceSortFields {
1975
2245
  UpdatedAt = "updatedAt",
1976
2246
  UsageLimit = "usageLimit"
1977
2247
  }
2248
+ /** Subscription scheduled schedule status */
2249
+ export declare enum SubscriptionScheduleStatus {
2250
+ Canceled = "Canceled",
2251
+ Done = "Done",
2252
+ Failed = "Failed",
2253
+ Scheduled = "Scheduled"
2254
+ }
2255
+ /** Subscription scheduled schedule type */
2256
+ export declare enum SubscriptionScheduleType {
2257
+ BillingPeriod = "BillingPeriod",
2258
+ Downgrade = "Downgrade",
2259
+ UnitAmount = "UnitAmount"
2260
+ }
1978
2261
  export declare enum SubscriptionStartSetup {
1979
2262
  FreePlan = "FREE_PLAN",
1980
2263
  PlanSelection = "PLAN_SELECTION",
@@ -2005,13 +2288,10 @@ export declare type SubscriptionStatusFilterComparison = {
2005
2288
  notIn?: InputMaybe<Array<SubscriptionStatus>>;
2006
2289
  notLike?: InputMaybe<SubscriptionStatus>;
2007
2290
  };
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
- }
2291
+ export declare type SubscriptionUpdateScheduleCancellationInput = {
2292
+ environmentId?: InputMaybe<Scalars['String']>;
2293
+ subscriptionId: Scalars['String'];
2294
+ };
2015
2295
  /** Status of the integration sync */
2016
2296
  export declare enum SyncStatus {
2017
2297
  Error = "ERROR",
@@ -2078,10 +2358,18 @@ export declare enum TrialPeriodUnits {
2078
2358
  Day = "DAY",
2079
2359
  Month = "MONTH"
2080
2360
  }
2361
+ export declare type TypographyConfigurationInput = {
2362
+ body?: InputMaybe<FontVariantInput>;
2363
+ fontFamily?: InputMaybe<Scalars['String']>;
2364
+ h1?: InputMaybe<FontVariantInput>;
2365
+ h2?: InputMaybe<FontVariantInput>;
2366
+ h3?: InputMaybe<FontVariantInput>;
2367
+ };
2081
2368
  export declare type UpdateAccountInput = {
2082
2369
  displayName: Scalars['String'];
2083
2370
  id: Scalars['String'];
2084
2371
  subscriptionBillingAnchor?: InputMaybe<BillingAnchor>;
2372
+ subscriptionProrationBehavior?: InputMaybe<ProrationBehavior>;
2085
2373
  timezone?: InputMaybe<Scalars['String']>;
2086
2374
  };
2087
2375
  export declare type UpdateCouponInput = {
@@ -2097,16 +2385,20 @@ export declare type UpdateCustomerInput = {
2097
2385
  billingInformation?: InputMaybe<CustomerBillingInfo>;
2098
2386
  couponRefId?: InputMaybe<Scalars['String']>;
2099
2387
  crmId?: InputMaybe<Scalars['String']>;
2388
+ customerId?: InputMaybe<Scalars['String']>;
2100
2389
  email?: InputMaybe<Scalars['String']>;
2101
2390
  environmentId?: InputMaybe<Scalars['String']>;
2102
2391
  name?: InputMaybe<Scalars['String']>;
2103
- refId: Scalars['String'];
2392
+ refId?: InputMaybe<Scalars['String']>;
2104
2393
  };
2105
2394
  export declare type UpdateEnvironment = {
2106
2395
  createdAt?: InputMaybe<Scalars['DateTime']>;
2107
2396
  description?: InputMaybe<Scalars['String']>;
2108
2397
  displayName?: InputMaybe<Scalars['String']>;
2398
+ hardenClientAccessEnabled?: InputMaybe<Scalars['Boolean']>;
2109
2399
  id?: InputMaybe<Scalars['String']>;
2400
+ provisionStatus?: InputMaybe<EnvironmentProvisionStatus>;
2401
+ signingToken?: InputMaybe<Scalars['String']>;
2110
2402
  slug?: InputMaybe<Scalars['String']>;
2111
2403
  };
2112
2404
  export declare type UpdateExperimentInput = {
@@ -2116,11 +2408,12 @@ export declare type UpdateExperimentInput = {
2116
2408
  name?: InputMaybe<Scalars['String']>;
2117
2409
  productId?: InputMaybe<Scalars['String']>;
2118
2410
  productSettings?: InputMaybe<ProductSettingsInput>;
2119
- refId?: InputMaybe<Scalars['String']>;
2411
+ refId: Scalars['String'];
2120
2412
  variantGroupName?: InputMaybe<Scalars['String']>;
2121
2413
  variantPercentage?: InputMaybe<Scalars['Float']>;
2122
2414
  };
2123
2415
  export declare type UpdateFeature = {
2416
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
2124
2417
  createdAt?: InputMaybe<Scalars['DateTime']>;
2125
2418
  description?: InputMaybe<Scalars['String']>;
2126
2419
  displayName?: InputMaybe<Scalars['String']>;
@@ -2134,6 +2427,15 @@ export declare type UpdateFeature = {
2134
2427
  refId?: InputMaybe<Scalars['String']>;
2135
2428
  updatedAt?: InputMaybe<Scalars['DateTime']>;
2136
2429
  };
2430
+ export declare type UpdateFeatureInput = {
2431
+ additionalMetaData?: InputMaybe<Scalars['JSON']>;
2432
+ description?: InputMaybe<Scalars['String']>;
2433
+ displayName?: InputMaybe<Scalars['String']>;
2434
+ environmentId: Scalars['String'];
2435
+ featureUnits?: InputMaybe<Scalars['String']>;
2436
+ featureUnitsPlural?: InputMaybe<Scalars['String']>;
2437
+ refId: Scalars['String'];
2438
+ };
2137
2439
  export declare type UpdateHook = {
2138
2440
  createdAt?: InputMaybe<Scalars['DateTime']>;
2139
2441
  description?: InputMaybe<Scalars['String']>;
@@ -2191,10 +2493,33 @@ export declare type UpdateOnePromotionalEntitlementInput = {
2191
2493
  /** The update to apply. */
2192
2494
  update: PromotionalEntitlementUpdateInput;
2193
2495
  };
2496
+ export declare type UpdatePackageEntitlementOrderInput = {
2497
+ entitlements: Array<UpdatePackageEntitlementOrderItemInput>;
2498
+ environmentId?: InputMaybe<Scalars['String']>;
2499
+ packageId: Scalars['String'];
2500
+ };
2501
+ export declare type UpdatePackageEntitlementOrderItemInput = {
2502
+ id: Scalars['String'];
2503
+ order?: InputMaybe<Scalars['Float']>;
2504
+ };
2505
+ export declare type UpdateSubscriptionEntitlementInput = {
2506
+ hasUnlimitedUsage?: InputMaybe<Scalars['Boolean']>;
2507
+ id: Scalars['String'];
2508
+ monthlyResetPeriodConfiguration?: InputMaybe<MonthlyResetPeriodConfigInput>;
2509
+ resetPeriod?: InputMaybe<EntitlementResetPeriod>;
2510
+ usageLimit?: InputMaybe<Scalars['Float']>;
2511
+ weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
2512
+ };
2194
2513
  export declare type UpdateSubscriptionInput = {
2195
2514
  additionalMetaData?: InputMaybe<Scalars['JSON']>;
2515
+ addons?: InputMaybe<Array<SubscriptionAddonInput>>;
2516
+ billingPeriod?: InputMaybe<BillingPeriod>;
2196
2517
  environmentId?: InputMaybe<Scalars['String']>;
2197
- refId: Scalars['String'];
2518
+ promotionCode?: InputMaybe<Scalars['String']>;
2519
+ refId?: InputMaybe<Scalars['String']>;
2520
+ subscriptionEntitlements?: InputMaybe<Array<UpdateSubscriptionEntitlementInput>>;
2521
+ subscriptionId?: InputMaybe<Scalars['String']>;
2522
+ trialEndDate?: InputMaybe<Scalars['DateTime']>;
2198
2523
  unitQuantity?: InputMaybe<Scalars['Float']>;
2199
2524
  };
2200
2525
  export declare type UsageHistoryInput = {
@@ -2230,9 +2555,9 @@ export declare type UsageMeasurementFilterCustomerFilter = {
2230
2555
  crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
2231
2556
  crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
2232
2557
  crmId?: InputMaybe<StringFieldComparison>;
2558
+ customerId?: InputMaybe<StringFieldComparison>;
2233
2559
  email?: InputMaybe<StringFieldComparison>;
2234
2560
  environmentId?: InputMaybe<StringFieldComparison>;
2235
- experimentGroup?: InputMaybe<ExperimentGroupFilterComparison>;
2236
2561
  id?: InputMaybe<StringFieldComparison>;
2237
2562
  name?: InputMaybe<StringFieldComparison>;
2238
2563
  or?: InputMaybe<Array<UsageMeasurementFilterCustomerFilter>>;
@@ -2298,45 +2623,67 @@ export declare enum WeeklyAccordingTo {
2298
2623
  export declare type WeeklyResetPeriodConfigInput = {
2299
2624
  accordingTo: WeeklyAccordingTo;
2300
2625
  };
2626
+ export declare type WidgetConfigurationUpdateInput = {
2627
+ customerPortalConfiguration?: InputMaybe<CustomerPortalConfigurationInput>;
2628
+ environmentId?: InputMaybe<Scalars['String']>;
2629
+ paywallConfiguration?: InputMaybe<PaywallConfigurationInput>;
2630
+ };
2631
+ /** The widget type */
2632
+ export declare enum WidgetType {
2633
+ CustomerPortal = "CUSTOMER_PORTAL",
2634
+ Paywall = "PAYWALL"
2635
+ }
2301
2636
  export declare type ZuoraCredentialsInput = {
2302
2637
  baseUrl: Scalars['String'];
2303
2638
  clientId: Scalars['String'];
2304
2639
  clientSecret: Scalars['String'];
2305
2640
  };
2306
- export declare type PlanFragment = {
2307
- __typename?: 'Plan';
2308
- displayName: string;
2309
- description?: string | null;
2310
- pricingType?: PricingType | null;
2311
- id: string;
2312
- metadata?: any | null;
2313
- product: {
2314
- __typename?: 'Product';
2315
- displayName?: string | null;
2316
- description?: string | null;
2641
+ /** The group of the experiment */
2642
+ export declare enum ExperimentGroupType {
2643
+ Control = "CONTROL",
2644
+ Variant = "VARIANT"
2645
+ }
2646
+ export declare type CouponFragment = {
2647
+ __typename?: 'Coupon';
2648
+ id: string;
2649
+ discountValue: number;
2650
+ type: CouponType;
2651
+ additionalMetaData?: any | null;
2652
+ refId: string;
2653
+ name: string;
2654
+ description?: string | null;
2655
+ createdAt: any;
2656
+ updatedAt: any;
2657
+ billingId?: string | null;
2658
+ billingLinkUrl?: string | null;
2659
+ status: CouponStatus;
2660
+ syncStates?: Array<{
2661
+ __typename?: 'SyncState';
2662
+ vendorIdentifier: VendorIdentifier;
2663
+ status: SyncStatus;
2664
+ }> | null;
2665
+ customers?: Array<{
2666
+ __typename?: 'Customer';
2317
2667
  id: string;
2668
+ }> | null;
2669
+ };
2670
+ export declare type PriceFragment = {
2671
+ __typename?: 'Price';
2672
+ billingModel: BillingModel;
2673
+ billingPeriod: BillingPeriod;
2674
+ billingId?: string | null;
2675
+ minUnitQuantity?: number | null;
2676
+ maxUnitQuantity?: number | null;
2677
+ price: {
2678
+ __typename?: 'Money';
2679
+ amount: number;
2680
+ currency: Currency;
2318
2681
  };
2319
- basePlan?: {
2320
- __typename?: 'Plan';
2682
+ feature?: {
2683
+ __typename?: 'Feature';
2684
+ featureUnits?: string | null;
2685
+ featureUnitsPlural?: string | null;
2321
2686
  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;
2340
2687
  } | null;
2341
2688
  };
2342
2689
  export declare type TotalPriceFragment = {
@@ -2352,60 +2699,160 @@ export declare type TotalPriceFragment = {
2352
2699
  currency: Currency;
2353
2700
  };
2354
2701
  };
2355
- export declare type PriceFragment = {
2356
- __typename?: 'Price';
2357
- billingModel: BillingModel;
2358
- billingPeriod: BillingPeriod;
2359
- price: {
2360
- __typename?: 'Money';
2361
- amount: number;
2362
- currency: Currency;
2363
- };
2364
- feature?: ({
2365
- __typename?: 'Feature';
2366
- } & FeatureFragment) | null;
2367
- };
2368
2702
  export declare type PackageEntitlementFragment = {
2369
2703
  __typename?: 'PackageEntitlement';
2370
2704
  usageLimit?: number | null;
2371
2705
  hasUnlimitedUsage?: boolean | null;
2372
2706
  featureId: string;
2373
2707
  resetPeriod?: EntitlementResetPeriod | null;
2374
- feature: ({
2708
+ feature: {
2375
2709
  __typename?: 'Feature';
2376
- } & FeatureFragment);
2710
+ featureType: FeatureType;
2711
+ meterType?: MeterType | null;
2712
+ featureUnits?: string | null;
2713
+ featureUnitsPlural?: string | null;
2714
+ displayName: string;
2715
+ description?: string | null;
2716
+ refId: string;
2717
+ };
2377
2718
  };
2378
2719
  export declare type AddonFragment = {
2379
2720
  __typename?: 'Addon';
2721
+ id: string;
2722
+ refId: string;
2723
+ billingId?: string | null;
2380
2724
  displayName: string;
2381
2725
  description?: string | null;
2726
+ additionalMetaData?: any | null;
2382
2727
  pricingType?: PricingType | null;
2728
+ entitlements?: Array<({
2729
+ __typename?: 'PackageEntitlement';
2730
+ } & PackageEntitlementFragment)> | null;
2731
+ };
2732
+ export declare type PlanFragment = {
2733
+ __typename?: 'Plan';
2383
2734
  id: string;
2384
- metadata?: any | null;
2735
+ refId: string;
2736
+ displayName: string;
2737
+ description?: string | null;
2738
+ billingId?: string | null;
2739
+ additionalMetaData?: any | null;
2740
+ pricingType?: PricingType | null;
2741
+ product: {
2742
+ __typename?: 'Product';
2743
+ refId: string;
2744
+ displayName?: string | null;
2745
+ description?: string | null;
2746
+ additionalMetaData?: any | null;
2747
+ productSettings: {
2748
+ __typename?: 'ProductSettings';
2749
+ downgradePlan?: {
2750
+ __typename?: 'Plan';
2751
+ refId: string;
2752
+ displayName: string;
2753
+ } | null;
2754
+ };
2755
+ };
2756
+ basePlan?: {
2757
+ __typename?: 'Plan';
2758
+ id: string;
2759
+ refId: string;
2760
+ displayName: string;
2761
+ } | null;
2385
2762
  entitlements?: Array<({
2386
2763
  __typename?: 'PackageEntitlement';
2387
2764
  } & PackageEntitlementFragment)> | null;
2765
+ inheritedEntitlements?: Array<({
2766
+ __typename?: 'PackageEntitlement';
2767
+ } & PackageEntitlementFragment)> | null;
2768
+ compatibleAddons?: Array<({
2769
+ __typename?: 'Addon';
2770
+ } & AddonFragment)> | null;
2771
+ prices?: Array<({
2772
+ __typename?: 'Price';
2773
+ } & PriceFragment)> | null;
2774
+ defaultTrialConfig?: {
2775
+ __typename?: 'DefaultTrialConfig';
2776
+ duration: number;
2777
+ units: TrialPeriodUnits;
2778
+ } | null;
2388
2779
  };
2389
- export declare type SubscriptionFragment = {
2780
+ export declare type SlimSubscriptionFragment = {
2390
2781
  __typename?: 'CustomerSubscription';
2782
+ id: string;
2783
+ refId: string;
2391
2784
  status: SubscriptionStatus;
2785
+ additionalMetaData?: any | null;
2786
+ billingId?: string | null;
2787
+ billingLinkUrl?: string | null;
2788
+ effectiveEndDate?: any | null;
2789
+ currentBillingPeriodEnd?: any | null;
2790
+ pricingType: PricingType;
2791
+ experimentInfo?: {
2792
+ __typename?: 'experimentInfo';
2793
+ name: string;
2794
+ id: string;
2795
+ groupName: string;
2796
+ groupType: ExperimentGroupType;
2797
+ } | null;
2798
+ prices?: Array<{
2799
+ __typename?: 'SubscriptionPrice';
2800
+ usageLimit?: number | null;
2801
+ price?: ({
2802
+ __typename?: 'Price';
2803
+ } & PriceFragment) | null;
2804
+ }> | null;
2805
+ totalPrice?: ({
2806
+ __typename?: 'CustomerSubscriptionTotalPrice';
2807
+ } & TotalPriceFragment) | null;
2808
+ plan: {
2809
+ __typename?: 'Plan';
2810
+ id: string;
2811
+ refId: string;
2812
+ };
2813
+ addons?: Array<{
2814
+ __typename?: 'SubscriptionAddon';
2815
+ quantity: number;
2816
+ addon: {
2817
+ __typename?: 'Addon';
2818
+ id: string;
2819
+ refId: string;
2820
+ };
2821
+ }> | null;
2822
+ customer: {
2823
+ __typename?: 'Customer';
2824
+ id: string;
2825
+ refId: string;
2826
+ };
2827
+ };
2828
+ export declare type SubscriptionFragment = {
2829
+ __typename?: 'CustomerSubscription';
2830
+ id: string;
2392
2831
  startDate: any;
2393
2832
  endDate?: any | null;
2394
2833
  trialEndDate?: any | null;
2395
2834
  cancellationDate?: any | null;
2396
2835
  effectiveEndDate?: any | null;
2836
+ status: SubscriptionStatus;
2837
+ refId: string;
2397
2838
  currentBillingPeriodEnd?: any | null;
2839
+ additionalMetaData?: any | null;
2398
2840
  billingId?: string | null;
2399
2841
  billingLinkUrl?: string | null;
2400
2842
  pricingType: PricingType;
2401
- id: string;
2402
- metadata?: any | null;
2843
+ experimentInfo?: {
2844
+ __typename?: 'experimentInfo';
2845
+ name: string;
2846
+ groupType: ExperimentGroupType;
2847
+ groupName: string;
2848
+ id: string;
2849
+ } | null;
2403
2850
  prices?: Array<{
2404
2851
  __typename?: 'SubscriptionPrice';
2405
2852
  usageLimit?: number | null;
2406
- price: ({
2853
+ price?: ({
2407
2854
  __typename?: 'Price';
2408
- } & PriceFragment);
2855
+ } & PriceFragment) | null;
2409
2856
  }> | null;
2410
2857
  totalPrice?: ({
2411
2858
  __typename?: 'CustomerSubscriptionTotalPrice';
@@ -2431,123 +2878,114 @@ export declare type PromotionalEntitlementFragment = {
2431
2878
  resetPeriod?: EntitlementResetPeriod | null;
2432
2879
  endDate?: any | null;
2433
2880
  isVisible: boolean;
2434
- feature: ({
2881
+ feature: {
2435
2882
  __typename?: 'Feature';
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;
2883
+ featureType: FeatureType;
2884
+ meterType?: MeterType | null;
2885
+ featureUnits?: string | null;
2886
+ featureUnitsPlural?: string | null;
2887
+ displayName: string;
2888
+ description?: string | null;
2889
+ refId: string;
2890
+ };
2451
2891
  };
2452
2892
  export declare type CustomerFragment = {
2453
2893
  __typename?: 'Customer';
2894
+ id: string;
2454
2895
  name?: string | null;
2455
2896
  email?: string | null;
2456
2897
  createdAt?: any | null;
2457
2898
  updatedAt: any;
2458
2899
  hasPaymentMethod: boolean;
2900
+ refId: string;
2459
2901
  billingId?: string | null;
2460
- id: string;
2461
- metadata?: any | null;
2462
- subscriptions?: Array<({
2463
- __typename?: 'CustomerSubscription';
2464
- } & SubscriptionFragment)> | null;
2465
- promotionalEntitlements: Array<({
2466
- __typename?: 'PromotionalEntitlement';
2467
- } & PromotionalEntitlementFragment)>;
2902
+ defaultPaymentExpirationMonth?: number | null;
2903
+ defaultPaymentExpirationYear?: number | null;
2904
+ defaultPaymentMethodLast4Digits?: string | null;
2905
+ additionalMetaData?: any | null;
2906
+ trialedPlans?: Array<{
2907
+ __typename?: 'TrialedPlan';
2908
+ productRefId?: string | null;
2909
+ planRefId?: string | null;
2910
+ }> | null;
2911
+ experimentInfo?: {
2912
+ __typename?: 'experimentInfo';
2913
+ groupType: ExperimentGroupType;
2914
+ groupName: string;
2915
+ id: string;
2916
+ name: string;
2917
+ } | null;
2468
2918
  coupon?: ({
2469
2919
  __typename?: 'Coupon';
2470
2920
  } & CouponFragment) | null;
2921
+ promotionalEntitlements: Array<({
2922
+ __typename?: 'PromotionalEntitlement';
2923
+ } & PromotionalEntitlementFragment)>;
2924
+ subscriptions?: Array<({
2925
+ __typename?: 'CustomerSubscription';
2926
+ } & SubscriptionFragment)> | null;
2471
2927
  };
2472
- export declare type SlimSubscriptionFragment = {
2473
- __typename?: 'CustomerSubscription';
2474
- status: SubscriptionStatus;
2475
- billingId?: string | null;
2476
- billingLinkUrl?: string | null;
2477
- effectiveEndDate?: any | null;
2478
- currentBillingPeriodEnd?: any | null;
2479
- pricingType: PricingType;
2480
- id: string;
2481
- metadata?: any | null;
2482
- prices?: Array<{
2483
- __typename?: 'SubscriptionPrice';
2484
- usageLimit?: number | null;
2485
- price: ({
2486
- __typename?: 'Price';
2487
- } & PriceFragment);
2488
- }> | null;
2489
- totalPrice?: ({
2490
- __typename?: 'CustomerSubscriptionTotalPrice';
2491
- } & TotalPriceFragment) | null;
2492
- plan: {
2493
- __typename?: 'Plan';
2494
- id: string;
2928
+ export declare type SubscriptionPreviewFragment = {
2929
+ __typename?: 'SubscriptionPreview';
2930
+ subTotal: {
2931
+ __typename?: 'Money';
2932
+ amount: number;
2933
+ currency: Currency;
2495
2934
  };
2496
- addons?: Array<{
2497
- __typename?: 'SubscriptionAddon';
2498
- quantity: number;
2499
- addon: {
2500
- __typename?: 'Addon';
2501
- id: string;
2502
- };
2503
- }> | null;
2504
- customer: {
2505
- __typename?: 'Customer';
2506
- id: string;
2935
+ total: {
2936
+ __typename?: 'Money';
2937
+ amount: number;
2938
+ currency: Currency;
2507
2939
  };
2508
- };
2509
- export declare type PaywallPlanFragment = {
2510
- __typename?: 'Plan';
2511
- description?: string | null;
2512
- displayName: string;
2513
- pricingType?: PricingType | null;
2514
- id: string;
2515
- metadata?: any | null;
2516
- product: {
2517
- __typename?: 'Product';
2518
- displayName?: string | null;
2519
- description?: string | null;
2520
- id: string;
2940
+ billingPeriodRange: {
2941
+ __typename?: 'DateRange';
2942
+ start?: any | null;
2943
+ end?: any | null;
2521
2944
  };
2522
- basePlan?: {
2523
- __typename?: 'Plan';
2524
- displayName: string;
2525
- id: string;
2526
- } | null;
2527
- entitlements?: Array<({
2528
- __typename?: 'PackageEntitlement';
2529
- } & PaywallPackageEntitlementFragment)> | null;
2530
- inheritedEntitlements?: Array<({
2531
- __typename?: 'PackageEntitlement';
2532
- } & PaywallPackageEntitlementFragment)> | null;
2533
- prices?: Array<({
2534
- __typename?: 'Price';
2535
- } & PaywallPriceFragment)> | null;
2536
- defaultTrialConfig?: {
2537
- __typename?: 'DefaultTrialConfig';
2538
- duration: number;
2539
- units: TrialPeriodUnits;
2945
+ proration?: {
2946
+ __typename?: 'SubscriptionPreviewProrations';
2947
+ prorationDate: any;
2948
+ credit: {
2949
+ __typename?: 'Money';
2950
+ amount: number;
2951
+ currency: Currency;
2952
+ };
2953
+ debit: {
2954
+ __typename?: 'Money';
2955
+ amount: number;
2956
+ currency: Currency;
2957
+ };
2540
2958
  } | null;
2541
2959
  };
2542
2960
  export declare type FeatureFragment = {
2543
- __typename?: 'Feature';
2961
+ __typename?: 'EntitlementFeature';
2544
2962
  featureType: FeatureType;
2545
2963
  meterType?: MeterType | null;
2546
2964
  featureUnits?: string | null;
2547
2965
  featureUnitsPlural?: string | null;
2548
- displayName: string;
2549
- description?: string | null;
2550
- id: string;
2966
+ refId: string;
2967
+ };
2968
+ export declare type EntitlementFragment = {
2969
+ __typename?: 'Entitlement';
2970
+ isGranted: boolean;
2971
+ accessDeniedReason?: AccessDeniedReason | null;
2972
+ customerId?: string | null;
2973
+ usageLimit?: number | null;
2974
+ hasUnlimitedUsage: boolean;
2975
+ currentUsage?: number | null;
2976
+ requestedUsage?: number | null;
2977
+ nextResetDate?: any | null;
2978
+ resetPeriod?: EntitlementResetPeriod | null;
2979
+ resetPeriodConfiguration?: {
2980
+ __typename?: 'MonthlyResetPeriodConfig';
2981
+ monthlyAccordingTo?: MonthlyAccordingTo | null;
2982
+ } | {
2983
+ __typename?: 'WeeklyResetPeriodConfig';
2984
+ weeklyAccordingTo?: WeeklyAccordingTo | null;
2985
+ } | null;
2986
+ feature?: ({
2987
+ __typename?: 'EntitlementFeature';
2988
+ } & FeatureFragment) | null;
2551
2989
  };
2552
2990
  export declare type PaywallPackageEntitlementFragment = {
2553
2991
  __typename?: 'PackageEntitlement';
@@ -2555,67 +2993,89 @@ export declare type PaywallPackageEntitlementFragment = {
2555
2993
  hasUnlimitedUsage?: boolean | null;
2556
2994
  featureId: string;
2557
2995
  resetPeriod?: EntitlementResetPeriod | null;
2558
- feature: ({
2996
+ feature: {
2559
2997
  __typename?: 'Feature';
2560
- } & FeatureFragment);
2561
- };
2562
- export declare type PaywallPriceFragment = {
2563
- __typename?: 'Price';
2564
- billingModel: BillingModel;
2565
- billingPeriod: BillingPeriod;
2566
- price: {
2567
- __typename?: 'Money';
2568
- amount: number;
2569
- currency: Currency;
2998
+ featureType: FeatureType;
2999
+ meterType?: MeterType | null;
3000
+ featureUnits?: string | null;
3001
+ featureUnitsPlural?: string | null;
3002
+ displayName: string;
3003
+ description?: string | null;
3004
+ refId: string;
2570
3005
  };
2571
- feature?: ({
2572
- __typename?: 'Feature';
2573
- } & FeatureFragment) | null;
2574
3006
  };
2575
3007
  export declare type PaywallAddonFragment = {
2576
3008
  __typename?: 'Addon';
3009
+ id: string;
3010
+ refId: string;
3011
+ billingId?: string | null;
2577
3012
  displayName: string;
2578
3013
  description?: string | null;
3014
+ additionalMetaData?: any | null;
2579
3015
  pricingType?: PricingType | null;
2580
- id: string;
2581
- metadata?: any | null;
2582
3016
  entitlements?: Array<({
2583
3017
  __typename?: 'PackageEntitlement';
2584
3018
  } & PaywallPackageEntitlementFragment)> | null;
2585
3019
  prices?: Array<({
2586
3020
  __typename?: 'Price';
2587
- } & PaywallPriceFragment)> | null;
3021
+ } & PriceFragment)> | null;
2588
3022
  };
2589
- export declare type CreateCustomerMutationVariables = Exact<{
2590
- customerId: Scalars['String'];
2591
- email?: InputMaybe<Scalars['String']>;
2592
- name?: InputMaybe<Scalars['String']>;
2593
- billingInfo?: InputMaybe<CustomerBillingInfo>;
2594
- metadata?: InputMaybe<Scalars['JSON']>;
2595
- couponId?: InputMaybe<Scalars['String']>;
2596
- shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
2597
- }>;
2598
- export declare type CreateCustomerMutation = {
2599
- __typename?: 'Mutation';
2600
- createCustomer: ({
2601
- __typename?: 'Customer';
2602
- } & CustomerFragment);
3023
+ export declare type PaywallPlanFragment = {
3024
+ __typename?: 'Plan';
3025
+ id: string;
3026
+ refId: string;
3027
+ description?: string | null;
3028
+ displayName: string;
3029
+ billingId?: string | null;
3030
+ additionalMetaData?: any | null;
3031
+ pricingType?: PricingType | null;
3032
+ product: {
3033
+ __typename?: 'Product';
3034
+ refId: string;
3035
+ displayName?: string | null;
3036
+ description?: string | null;
3037
+ additionalMetaData?: any | null;
3038
+ productSettings: {
3039
+ __typename?: 'ProductSettings';
3040
+ downgradePlan?: {
3041
+ __typename?: 'Plan';
3042
+ refId: string;
3043
+ displayName: string;
3044
+ } | null;
3045
+ };
3046
+ };
3047
+ basePlan?: {
3048
+ __typename?: 'Plan';
3049
+ id: string;
3050
+ refId: string;
3051
+ displayName: string;
3052
+ } | null;
3053
+ entitlements?: Array<({
3054
+ __typename?: 'PackageEntitlement';
3055
+ } & PaywallPackageEntitlementFragment)> | null;
3056
+ inheritedEntitlements?: Array<({
3057
+ __typename?: 'PackageEntitlement';
3058
+ } & PaywallPackageEntitlementFragment)> | null;
3059
+ prices?: Array<({
3060
+ __typename?: 'Price';
3061
+ } & PriceFragment)> | null;
3062
+ defaultTrialConfig?: {
3063
+ __typename?: 'DefaultTrialConfig';
3064
+ duration: number;
3065
+ units: TrialPeriodUnits;
3066
+ } | null;
3067
+ compatibleAddons?: Array<({
3068
+ __typename?: 'Addon';
3069
+ } & PaywallAddonFragment)> | null;
2603
3070
  };
2604
3071
  export declare type ProvisionCustomerMutationVariables = Exact<{
2605
- customerId: Scalars['String'];
2606
- email?: InputMaybe<Scalars['String']>;
2607
- name?: InputMaybe<Scalars['String']>;
2608
- billingInfo?: InputMaybe<CustomerBillingInfo>;
2609
- metadata?: InputMaybe<Scalars['JSON']>;
2610
- couponId?: InputMaybe<Scalars['String']>;
2611
- shouldSyncFree?: InputMaybe<Scalars['Boolean']>;
2612
- subscriptionParams?: InputMaybe<SubscriptionBaseInput>;
3072
+ input: ProvisionCustomerInput;
2613
3073
  }>;
2614
3074
  export declare type ProvisionCustomerMutation = {
2615
3075
  __typename?: 'Mutation';
2616
3076
  provisionCustomer: {
2617
3077
  __typename?: 'ProvisionedCustomer';
2618
- subscriptionStrategyDecision: SubscriptionStrategyDecision;
3078
+ subscriptionDecisionStrategy: SubscriptionDecisionStrategy;
2619
3079
  customer: ({
2620
3080
  __typename?: 'Customer';
2621
3081
  } & CustomerFragment);
@@ -2625,10 +3085,7 @@ export declare type ProvisionCustomerMutation = {
2625
3085
  };
2626
3086
  };
2627
3087
  export declare type ImportCustomerMutationVariables = Exact<{
2628
- customerId: Scalars['String'];
2629
- billingId: Scalars['String'];
2630
- email?: InputMaybe<Scalars['String']>;
2631
- name?: InputMaybe<Scalars['String']>;
3088
+ input: ImportCustomerInput;
2632
3089
  }>;
2633
3090
  export declare type ImportCustomerMutation = {
2634
3091
  __typename?: 'Mutation';
@@ -2637,12 +3094,7 @@ export declare type ImportCustomerMutation = {
2637
3094
  } & CustomerFragment);
2638
3095
  };
2639
3096
  export declare type UpdateCustomerMutationVariables = Exact<{
2640
- metadata?: InputMaybe<Scalars['JSON']>;
2641
- billingInfo?: InputMaybe<CustomerBillingInfo>;
2642
- couponId?: InputMaybe<Scalars['String']>;
2643
- email?: InputMaybe<Scalars['String']>;
2644
- name?: InputMaybe<Scalars['String']>;
2645
- customerId: Scalars['String'];
3097
+ input: UpdateCustomerInput;
2646
3098
  }>;
2647
3099
  export declare type UpdateCustomerMutation = {
2648
3100
  __typename?: 'Mutation';
@@ -2650,42 +3102,31 @@ export declare type UpdateCustomerMutation = {
2650
3102
  __typename?: 'Customer';
2651
3103
  } & CustomerFragment);
2652
3104
  };
2653
- export declare type UpdateSubscriptionMutationVariables = Exact<{
2654
- metadata?: InputMaybe<Scalars['JSON']>;
2655
- subscriptionId: Scalars['String'];
2656
- unitQuantity?: InputMaybe<Scalars['Float']>;
3105
+ export declare type ProvisionSubscriptionMutationVariables = Exact<{
3106
+ input: ProvisionSubscriptionInput;
2657
3107
  }>;
2658
- export declare type UpdateSubscriptionMutation = {
3108
+ export declare type ProvisionSubscriptionMutation = {
2659
3109
  __typename?: 'Mutation';
2660
- updateSubscription: ({
2661
- __typename?: 'CustomerSubscription';
2662
- } & SlimSubscriptionFragment);
3110
+ provisionSubscriptionV2: {
3111
+ __typename?: 'ProvisionSubscriptionResult';
3112
+ checkoutUrl?: string | null;
3113
+ status: ProvisionSubscriptionStatus;
3114
+ subscription?: ({
3115
+ __typename?: 'CustomerSubscription';
3116
+ } & SlimSubscriptionFragment) | null;
3117
+ };
2663
3118
  };
2664
- export declare type CreateSubscriptionMutationVariables = Exact<{
2665
- metadata?: InputMaybe<Scalars['JSON']>;
2666
- addons?: InputMaybe<Array<SubscriptionAddonInput> | SubscriptionAddonInput>;
2667
- awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
2668
- billingId?: InputMaybe<Scalars['String']>;
2669
- billingInfo?: InputMaybe<SubscriptionBillingInfo>;
2670
- billingPeriod?: InputMaybe<BillingPeriod>;
2671
- customerId: Scalars['String'];
2672
- isTrial?: InputMaybe<Scalars['Boolean']>;
2673
- isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
2674
- planId?: InputMaybe<Scalars['String']>;
2675
- unitQuantity?: InputMaybe<Scalars['Float']>;
2676
- subscriptionId?: InputMaybe<Scalars['String']>;
2677
- startDate?: InputMaybe<Scalars['DateTime']>;
3119
+ export declare type UpdateSubscriptionMutationVariables = Exact<{
3120
+ input: UpdateSubscriptionInput;
2678
3121
  }>;
2679
- export declare type CreateSubscriptionMutation = {
3122
+ export declare type UpdateSubscriptionMutation = {
2680
3123
  __typename?: 'Mutation';
2681
- createSubscription: ({
3124
+ updateSubscription: ({
2682
3125
  __typename?: 'CustomerSubscription';
2683
3126
  } & SlimSubscriptionFragment);
2684
3127
  };
2685
3128
  export declare type CancelSubscriptionMutationVariables = Exact<{
2686
- endDate?: InputMaybe<Scalars['DateTime']>;
2687
- cancellationTime?: InputMaybe<SubscriptionCancellationTime>;
2688
- subscriptionId: Scalars['String'];
3129
+ input: SubscriptionCancellationInput;
2689
3130
  }>;
2690
3131
  export declare type CancelSubscriptionMutation = {
2691
3132
  __typename?: 'Mutation';
@@ -2694,55 +3135,52 @@ export declare type CancelSubscriptionMutation = {
2694
3135
  } & SlimSubscriptionFragment);
2695
3136
  };
2696
3137
  export declare type InitiateCheckoutMutationVariables = Exact<{
2697
- addons?: InputMaybe<Array<SubscriptionAddonInput> | SubscriptionAddonInput>;
2698
- billingPeriod: BillingPeriod;
2699
- cancelUrl: Scalars['String'];
2700
- customerId: Scalars['String'];
2701
- planId: Scalars['String'];
2702
- successUrl: Scalars['String'];
2703
- unitQuantity?: InputMaybe<Scalars['Int']>;
3138
+ input: InitiateCheckoutInput;
2704
3139
  }>;
2705
3140
  export declare type InitiateCheckoutMutation = {
2706
3141
  __typename?: 'Mutation';
2707
3142
  initiateCheckout: {
2708
3143
  __typename?: 'Checkout';
2709
- id: string;
2710
3144
  checkoutUrl: string;
2711
3145
  checkoutBillingId: string;
2712
3146
  };
2713
3147
  };
2714
- export declare type GetCustomerByIdQueryVariables = Exact<{
2715
- customerId?: InputMaybe<Scalars['String']>;
3148
+ export declare type EstimateSubscriptionMutationVariables = Exact<{
3149
+ input: EstimateSubscriptionInput;
2716
3150
  }>;
2717
- export declare type GetCustomerByIdQuery = {
2718
- __typename?: 'Query';
2719
- customers: {
2720
- __typename?: 'CustomerConnection';
2721
- edges: Array<{
2722
- __typename?: 'CustomerEdge';
2723
- node: ({
2724
- __typename?: 'Customer';
2725
- } & CustomerFragment);
2726
- }>;
3151
+ export declare type EstimateSubscriptionMutation = {
3152
+ __typename?: 'Mutation';
3153
+ estimateSubscription: ({
3154
+ __typename?: 'SubscriptionPreview';
3155
+ } & SubscriptionPreviewFragment);
3156
+ };
3157
+ export declare type EstimateSubscriptionUpdateMutationVariables = Exact<{
3158
+ input: EstimateSubscriptionUpdateInput;
3159
+ }>;
3160
+ export declare type EstimateSubscriptionUpdateMutation = {
3161
+ __typename?: 'Mutation';
3162
+ estimateSubscriptionUpdate: ({
3163
+ __typename?: 'SubscriptionPreview';
3164
+ } & SubscriptionPreviewFragment);
3165
+ };
3166
+ export declare type ReportUsageMutationVariables = Exact<{
3167
+ input: UsageMeasurementCreateInput;
3168
+ }>;
3169
+ export declare type ReportUsageMutation = {
3170
+ __typename?: 'Mutation';
3171
+ createUsageMeasurement: {
3172
+ __typename?: 'UsageMeasurement';
3173
+ id: string;
2727
3174
  };
2728
3175
  };
2729
- export declare type GetPaywallQueryVariables = Exact<{
2730
- productId?: InputMaybe<Scalars['String']>;
3176
+ export declare type GetCustomerByIdQueryVariables = Exact<{
3177
+ input: GetCustomerByRefIdInput;
2731
3178
  }>;
2732
- export declare type GetPaywallQuery = {
3179
+ export declare type GetCustomerByIdQuery = {
2733
3180
  __typename?: 'Query';
2734
- plans: {
2735
- __typename?: 'PlanConnection';
2736
- edges: Array<{
2737
- __typename?: 'PlanEdge';
2738
- node: ({
2739
- __typename?: 'Plan';
2740
- compatibleAddons?: Array<({
2741
- __typename?: 'Addon';
2742
- } & PaywallAddonFragment)> | null;
2743
- } & PaywallPlanFragment);
2744
- }>;
2745
- };
3181
+ getCustomerByRefId?: ({
3182
+ __typename?: 'Customer';
3183
+ } & CustomerFragment) | null;
2746
3184
  };
2747
3185
  export declare type GetCouponsQueryVariables = Exact<{
2748
3186
  [key: string]: never;
@@ -2759,44 +3197,80 @@ export declare type GetCouponsQuery = {
2759
3197
  }>;
2760
3198
  };
2761
3199
  };
2762
- export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
3200
+ export declare type GetPaywallQueryVariables = Exact<{
3201
+ input: GetPaywallInput;
3202
+ }>;
3203
+ export declare type GetPaywallQuery = {
3204
+ __typename?: 'Query';
3205
+ getPaywall: Array<({
3206
+ __typename?: 'Plan';
3207
+ } & PaywallPlanFragment)>;
3208
+ };
3209
+ export declare type GetEntitlementsQueryVariables = Exact<{
3210
+ query: FetchEntitlementsQuery;
3211
+ }>;
3212
+ export declare type GetEntitlementsQuery = {
3213
+ __typename?: 'Query';
3214
+ entitlements: Array<({
3215
+ __typename?: 'Entitlement';
3216
+ } & EntitlementFragment)>;
3217
+ };
3218
+ export declare type GetEntitlementQueryVariables = Exact<{
3219
+ query: FetchEntitlementQuery;
3220
+ }>;
3221
+ export declare type GetEntitlementQuery = {
3222
+ __typename?: 'Query';
3223
+ entitlement: ({
3224
+ __typename?: 'Entitlement';
3225
+ } & EntitlementFragment);
3226
+ };
2763
3227
  export declare const PriceFragmentDoc: import("graphql").DocumentNode;
2764
3228
  export declare const TotalPriceFragmentDoc: import("graphql").DocumentNode;
3229
+ export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
3230
+ export declare const CouponFragmentDoc: import("graphql").DocumentNode;
3231
+ export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
2765
3232
  export declare const PackageEntitlementFragmentDoc: import("graphql").DocumentNode;
2766
3233
  export declare const AddonFragmentDoc: import("graphql").DocumentNode;
2767
3234
  export declare const PlanFragmentDoc: import("graphql").DocumentNode;
2768
3235
  export declare const SubscriptionFragmentDoc: import("graphql").DocumentNode;
2769
- export declare const PromotionalEntitlementFragmentDoc: import("graphql").DocumentNode;
2770
- export declare const CouponFragmentDoc: import("graphql").DocumentNode;
2771
3236
  export declare const CustomerFragmentDoc: import("graphql").DocumentNode;
2772
- export declare const SlimSubscriptionFragmentDoc: import("graphql").DocumentNode;
3237
+ export declare const SubscriptionPreviewFragmentDoc: import("graphql").DocumentNode;
3238
+ export declare const FeatureFragmentDoc: import("graphql").DocumentNode;
3239
+ export declare const EntitlementFragmentDoc: import("graphql").DocumentNode;
2773
3240
  export declare const PaywallPackageEntitlementFragmentDoc: import("graphql").DocumentNode;
2774
- export declare const PaywallPriceFragmentDoc: import("graphql").DocumentNode;
2775
- export declare const PaywallPlanFragmentDoc: import("graphql").DocumentNode;
2776
3241
  export declare const PaywallAddonFragmentDoc: import("graphql").DocumentNode;
2777
- export declare const CreateCustomerDocument: import("graphql").DocumentNode;
3242
+ export declare const PaywallPlanFragmentDoc: import("graphql").DocumentNode;
2778
3243
  export declare const ProvisionCustomerDocument: import("graphql").DocumentNode;
2779
3244
  export declare const ImportCustomerDocument: import("graphql").DocumentNode;
2780
3245
  export declare const UpdateCustomerDocument: import("graphql").DocumentNode;
3246
+ export declare const ProvisionSubscriptionDocument: import("graphql").DocumentNode;
2781
3247
  export declare const UpdateSubscriptionDocument: import("graphql").DocumentNode;
2782
- export declare const CreateSubscriptionDocument: import("graphql").DocumentNode;
2783
3248
  export declare const CancelSubscriptionDocument: import("graphql").DocumentNode;
2784
3249
  export declare const InitiateCheckoutDocument: import("graphql").DocumentNode;
3250
+ export declare const EstimateSubscriptionDocument: import("graphql").DocumentNode;
3251
+ export declare const EstimateSubscriptionUpdateDocument: import("graphql").DocumentNode;
3252
+ export declare const ReportUsageDocument: import("graphql").DocumentNode;
2785
3253
  export declare const GetCustomerByIdDocument: import("graphql").DocumentNode;
2786
- export declare const GetPaywallDocument: import("graphql").DocumentNode;
2787
3254
  export declare const GetCouponsDocument: import("graphql").DocumentNode;
3255
+ export declare const GetPaywallDocument: import("graphql").DocumentNode;
3256
+ export declare const GetEntitlementsDocument: import("graphql").DocumentNode;
3257
+ export declare const GetEntitlementDocument: import("graphql").DocumentNode;
2788
3258
  export declare type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
2789
3259
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
2790
- createCustomer(variables: CreateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateCustomerMutation>;
2791
3260
  provisionCustomer(variables: ProvisionCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionCustomerMutation>;
2792
3261
  importCustomer(variables: ImportCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ImportCustomerMutation>;
2793
3262
  updateCustomer(variables: UpdateCustomerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateCustomerMutation>;
3263
+ provisionSubscription(variables: ProvisionSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ProvisionSubscriptionMutation>;
2794
3264
  updateSubscription(variables: UpdateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<UpdateSubscriptionMutation>;
2795
- createSubscription(variables: CreateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CreateSubscriptionMutation>;
2796
3265
  cancelSubscription(variables: CancelSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<CancelSubscriptionMutation>;
2797
3266
  initiateCheckout(variables: InitiateCheckoutMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<InitiateCheckoutMutation>;
2798
- getCustomerById(variables?: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
2799
- getPaywall(variables?: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetPaywallQuery>;
3267
+ estimateSubscription(variables: EstimateSubscriptionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionMutation>;
3268
+ estimateSubscriptionUpdate(variables: EstimateSubscriptionUpdateMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<EstimateSubscriptionUpdateMutation>;
3269
+ reportUsage(variables: ReportUsageMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ReportUsageMutation>;
3270
+ getCustomerById(variables: GetCustomerByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCustomerByIdQuery>;
2800
3271
  getCoupons(variables?: GetCouponsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetCouponsQuery>;
3272
+ getPaywall(variables: GetPaywallQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetPaywallQuery>;
3273
+ getEntitlements(variables: GetEntitlementsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementsQuery>;
3274
+ getEntitlement(variables: GetEntitlementQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetEntitlementQuery>;
2801
3275
  };
2802
3276
  export declare type Sdk = ReturnType<typeof getSdk>;