@stigg/js-client-sdk 0.26.3 → 0.28.1

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.
@@ -44,7 +44,7 @@ export declare type AddonCreateInput = {
44
44
  displayName: Scalars['String'];
45
45
  environmentId: Scalars['String'];
46
46
  productId: Scalars['String'];
47
- refId: Scalars['String'];
47
+ refId?: InputMaybe<Scalars['String']>;
48
48
  status?: InputMaybe<PackageStatus>;
49
49
  };
50
50
  export declare type AddonFilter = {
@@ -89,6 +89,15 @@ export declare type AddonUpdateInput = {
89
89
  id: Scalars['String'];
90
90
  status?: InputMaybe<PackageStatus>;
91
91
  };
92
+ export declare type Address = {
93
+ addressLine1?: InputMaybe<Scalars['String']>;
94
+ addressLine2?: InputMaybe<Scalars['String']>;
95
+ city?: InputMaybe<Scalars['String']>;
96
+ country?: InputMaybe<Scalars['String']>;
97
+ phoneNumber?: InputMaybe<Scalars['String']>;
98
+ postalCode?: InputMaybe<Scalars['String']>;
99
+ state?: InputMaybe<Scalars['String']>;
100
+ };
92
101
  export declare type ApiKeyFilter = {
93
102
  and?: InputMaybe<Array<ApiKeyFilter>>;
94
103
  id?: InputMaybe<StringFieldComparison>;
@@ -106,6 +115,10 @@ export declare enum ApiKeyType {
106
115
  Client = "CLIENT",
107
116
  Server = "SERVER"
108
117
  }
118
+ export declare type ArchivePlanInput = {
119
+ environmentId: Scalars['String'];
120
+ id: Scalars['String'];
121
+ };
109
122
  /** Billing model. */
110
123
  export declare enum BillingModel {
111
124
  FlatFee = "FLAT_FEE",
@@ -163,24 +176,11 @@ export declare type CheckoutAddonInput = {
163
176
  quantity?: InputMaybe<Scalars['Int']>;
164
177
  };
165
178
  export declare type CreateEnvironment = {
166
- description?: InputMaybe<Scalars['String']>;
167
- displayName?: InputMaybe<Scalars['String']>;
168
- id?: InputMaybe<Scalars['String']>;
169
- slug?: InputMaybe<Scalars['String']>;
170
- };
171
- export declare type CreateFeature = {
172
179
  createdAt?: InputMaybe<Scalars['DateTime']>;
173
180
  description?: InputMaybe<Scalars['String']>;
174
181
  displayName?: InputMaybe<Scalars['String']>;
175
- environmentId?: InputMaybe<Scalars['String']>;
176
- featureStatus?: InputMaybe<FeatureStatus>;
177
- featureType?: InputMaybe<FeatureType>;
178
- featureUnits?: InputMaybe<Scalars['String']>;
179
- featureUnitsPlural?: InputMaybe<Scalars['String']>;
180
182
  id?: InputMaybe<Scalars['String']>;
181
- meterType?: InputMaybe<MeterType>;
182
- refId?: InputMaybe<Scalars['String']>;
183
- updatedAt?: InputMaybe<Scalars['DateTime']>;
183
+ slug?: InputMaybe<Scalars['String']>;
184
184
  };
185
185
  export declare type CreateHook = {
186
186
  createdAt?: InputMaybe<Scalars['DateTime']>;
@@ -194,6 +194,7 @@ export declare type CreateHook = {
194
194
  };
195
195
  export declare type CreateIntegrationInput = {
196
196
  environmentId: Scalars['String'];
197
+ hubspotCredentials?: InputMaybe<HubspotCredentialsInput>;
197
198
  stripeCredentials?: InputMaybe<StripeCredentialsInput>;
198
199
  vendorIdentifier: VendorIdentifier;
199
200
  zuoraCredentials?: InputMaybe<ZuoraCredentialsInput>;
@@ -206,17 +207,13 @@ export declare type CreateManyPromotionalEntitlementsInput = {
206
207
  /** Array of records to create */
207
208
  promotionalEntitlements: Array<PromotionalEntitlementInput>;
208
209
  };
209
- export declare type CreateOneCustomerInput = {
210
- /** The record to create */
211
- customer: CustomerInput;
212
- };
213
210
  export declare type CreateOneEnvironmentInput = {
214
211
  /** The record to create */
215
212
  environment: CreateEnvironment;
216
213
  };
217
214
  export declare type CreateOneFeatureInput = {
218
215
  /** The record to create */
219
- feature: CreateFeature;
216
+ feature: FeatureInput;
220
217
  };
221
218
  export declare type CreateOneHookInput = {
222
219
  /** The record to create */
@@ -244,6 +241,14 @@ export declare type CursorPaging = {
244
241
  /** Paginate last */
245
242
  last?: InputMaybe<Scalars['Int']>;
246
243
  };
244
+ export declare type CustomerBillingInfo = {
245
+ billingAddress?: InputMaybe<Address>;
246
+ currency?: InputMaybe<Currency>;
247
+ language?: InputMaybe<Scalars['String']>;
248
+ shippingAddress?: InputMaybe<Address>;
249
+ taxIds?: InputMaybe<Array<TaxExempt>>;
250
+ timezone?: InputMaybe<Scalars['String']>;
251
+ };
247
252
  export declare type CustomerFilter = {
248
253
  and?: InputMaybe<Array<CustomerFilter>>;
249
254
  billingId?: InputMaybe<StringFieldComparison>;
@@ -262,6 +267,7 @@ export declare type CustomerFilter = {
262
267
  export declare type CustomerFilterCustomerSubscriptionFilter = {
263
268
  and?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
264
269
  billingId?: InputMaybe<StringFieldComparison>;
270
+ createdAt?: InputMaybe<DateFieldComparison>;
265
271
  crmId?: InputMaybe<StringFieldComparison>;
266
272
  endDate?: InputMaybe<DateFieldComparison>;
267
273
  environmentId?: InputMaybe<StringFieldComparison>;
@@ -282,6 +288,7 @@ export declare type CustomerFilterPromotionalEntitlementFilter = {
282
288
  };
283
289
  export declare type CustomerInput = {
284
290
  billingId?: InputMaybe<Scalars['String']>;
291
+ billingInformation?: InputMaybe<CustomerBillingInfo>;
285
292
  crmId?: InputMaybe<Scalars['String']>;
286
293
  email?: InputMaybe<Scalars['String']>;
287
294
  environmentId?: InputMaybe<Scalars['String']>;
@@ -308,6 +315,7 @@ export declare type CustomerSubscriptionFilter = {
308
315
  addons?: InputMaybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
309
316
  and?: InputMaybe<Array<CustomerSubscriptionFilter>>;
310
317
  billingId?: InputMaybe<StringFieldComparison>;
318
+ createdAt?: InputMaybe<DateFieldComparison>;
311
319
  crmId?: InputMaybe<StringFieldComparison>;
312
320
  customer?: InputMaybe<CustomerSubscriptionFilterCustomerFilter>;
313
321
  endDate?: InputMaybe<DateFieldComparison>;
@@ -334,6 +342,7 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
334
342
  };
335
343
  export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
336
344
  and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
345
+ createdAt?: InputMaybe<DateFieldComparison>;
337
346
  id?: InputMaybe<StringFieldComparison>;
338
347
  or?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
339
348
  quantity?: InputMaybe<NumberFieldComparison>;
@@ -341,6 +350,7 @@ export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
341
350
  };
342
351
  export declare type CustomerSubscriptionFilterSubscriptionPriceFilter = {
343
352
  and?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
353
+ createdAt?: InputMaybe<DateFieldComparison>;
344
354
  id?: InputMaybe<StringFieldComparison>;
345
355
  or?: InputMaybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
346
356
  updatedAt?: InputMaybe<DateFieldComparison>;
@@ -353,6 +363,7 @@ export declare type CustomerSubscriptionSort = {
353
363
  };
354
364
  export declare enum CustomerSubscriptionSortFields {
355
365
  BillingId = "billingId",
366
+ CreatedAt = "createdAt",
356
367
  CrmId = "crmId",
357
368
  EndDate = "endDate",
358
369
  EnvironmentId = "environmentId",
@@ -380,8 +391,8 @@ export declare type DateFieldComparisonBetween = {
380
391
  upper: Scalars['DateTime'];
381
392
  };
382
393
  export declare type DefaultTrialConfigInputDto = {
383
- duration: Scalars['Float'];
384
- units: TrialPeriodUnits;
394
+ duration?: InputMaybe<Scalars['Float']>;
395
+ units?: InputMaybe<TrialPeriodUnits>;
385
396
  };
386
397
  export declare type DeleteOneAddonInput = {
387
398
  /** The id of the record to delete. */
@@ -463,6 +474,7 @@ export declare enum EntitlementResetPeriod {
463
474
  }
464
475
  export declare type EnvironmentFilter = {
465
476
  and?: InputMaybe<Array<EnvironmentFilter>>;
477
+ createdAt?: InputMaybe<DateFieldComparison>;
466
478
  displayName?: InputMaybe<StringFieldComparison>;
467
479
  id?: InputMaybe<StringFieldComparison>;
468
480
  or?: InputMaybe<Array<EnvironmentFilter>>;
@@ -473,19 +485,25 @@ export declare type EnvironmentSort = {
473
485
  nulls?: InputMaybe<SortNulls>;
474
486
  };
475
487
  export declare enum EnvironmentSortFields {
488
+ CreatedAt = "createdAt",
476
489
  DisplayName = "displayName",
477
490
  Id = "id"
478
491
  }
479
492
  /** error codes */
480
493
  export declare enum ErrorCode {
481
494
  AddonNotFound = "AddonNotFound",
495
+ BadUserInput = "BadUserInput",
496
+ BillingPeriodMissingError = "BillingPeriodMissingError",
482
497
  CheckoutIsNotSupported = "CheckoutIsNotSupported",
498
+ CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
483
499
  CustomerNotFound = "CustomerNotFound",
500
+ DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
484
501
  DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
485
502
  EnvironmentMissing = "EnvironmentMissing",
486
503
  FeatureNotFound = "FeatureNotFound",
487
504
  IdentityForbidden = "IdentityForbidden",
488
505
  IntegrityViolation = "IntegrityViolation",
506
+ InvalidAddressError = "InvalidAddressError",
489
507
  InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
490
508
  InvalidMemberDelete = "InvalidMemberDelete",
491
509
  InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
@@ -496,11 +514,14 @@ export declare enum ErrorCode {
496
514
  PackageAlreadyPublished = "PackageAlreadyPublished",
497
515
  PlanAlreadyExtended = "PlanAlreadyExtended",
498
516
  PlanNotFound = "PlanNotFound",
517
+ PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted",
499
518
  PlansCircularDependencyError = "PlansCircularDependencyError",
500
519
  PriceNotFound = "PriceNotFound",
520
+ RateLimitExceeded = "RateLimitExceeded",
501
521
  SubscriptionNotFound = "SubscriptionNotFound",
502
522
  TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
503
523
  UnPublishedPackage = "UnPublishedPackage",
524
+ Unauthenticated = "Unauthenticated",
504
525
  UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon",
505
526
  UnexpectedError = "UnexpectedError",
506
527
  UnsupportedFeatureType = "UnsupportedFeatureType",
@@ -514,6 +535,7 @@ export declare enum EventLogType {
514
535
  CustomerCreated = "CUSTOMER_CREATED",
515
536
  CustomerDeleted = "CUSTOMER_DELETED",
516
537
  CustomerUpdated = "CUSTOMER_UPDATED",
538
+ EntitlementsUpdated = "ENTITLEMENTS_UPDATED",
517
539
  EntitlementDenied = "ENTITLEMENT_DENIED",
518
540
  EntitlementGranted = "ENTITLEMENT_GRANTED",
519
541
  EntitlementRequested = "ENTITLEMENT_REQUESTED",
@@ -552,6 +574,17 @@ export declare type FeatureFilter = {
552
574
  refId?: InputMaybe<StringFieldComparison>;
553
575
  updatedAt?: InputMaybe<DateFieldComparison>;
554
576
  };
577
+ export declare type FeatureInput = {
578
+ description?: InputMaybe<Scalars['String']>;
579
+ displayName?: InputMaybe<Scalars['String']>;
580
+ environmentId: Scalars['String'];
581
+ featureStatus?: InputMaybe<FeatureStatus>;
582
+ featureType: FeatureType;
583
+ featureUnits?: InputMaybe<Scalars['String']>;
584
+ featureUnitsPlural?: InputMaybe<Scalars['String']>;
585
+ meterType?: InputMaybe<MeterType>;
586
+ refId: Scalars['String'];
587
+ };
555
588
  export declare type FeatureSort = {
556
589
  direction: SortDirection;
557
590
  field: FeatureSortFields;
@@ -669,6 +702,10 @@ export declare type HookStatusFilterComparison = {
669
702
  notIn?: InputMaybe<Array<HookStatus>>;
670
703
  notLike?: InputMaybe<HookStatus>;
671
704
  };
705
+ export declare type HubspotCredentialsInput = {
706
+ authorizationCode: Scalars['String'];
707
+ refreshToken?: InputMaybe<Scalars['String']>;
708
+ };
672
709
  export declare type InitiateCheckoutInput = {
673
710
  addons?: InputMaybe<Array<CheckoutAddonInput>>;
674
711
  billingPeriod: BillingPeriod;
@@ -698,6 +735,7 @@ export declare type IntFieldComparisonBetween = {
698
735
  };
699
736
  export declare type IntegrationFilter = {
700
737
  and?: InputMaybe<Array<IntegrationFilter>>;
738
+ createdAt?: InputMaybe<DateFieldComparison>;
701
739
  environmentId?: InputMaybe<StringFieldComparison>;
702
740
  id?: InputMaybe<StringFieldComparison>;
703
741
  or?: InputMaybe<Array<IntegrationFilter>>;
@@ -709,12 +747,14 @@ export declare type IntegrationSort = {
709
747
  nulls?: InputMaybe<SortNulls>;
710
748
  };
711
749
  export declare enum IntegrationSortFields {
750
+ CreatedAt = "createdAt",
712
751
  EnvironmentId = "environmentId",
713
752
  Id = "id",
714
753
  VendorIdentifier = "vendorIdentifier"
715
754
  }
716
755
  export declare type MemberFilter = {
717
756
  and?: InputMaybe<Array<MemberFilter>>;
757
+ createdAt?: InputMaybe<DateFieldComparison>;
718
758
  id?: InputMaybe<StringFieldComparison>;
719
759
  or?: InputMaybe<Array<MemberFilter>>;
720
760
  };
@@ -724,6 +764,7 @@ export declare type MemberSort = {
724
764
  nulls?: InputMaybe<SortNulls>;
725
765
  };
726
766
  export declare enum MemberSortFields {
767
+ CreatedAt = "createdAt",
727
768
  Id = "id"
728
769
  }
729
770
  /** Member Status. */
@@ -783,6 +824,41 @@ export declare type NumberFieldComparisonBetween = {
783
824
  lower: Scalars['Float'];
784
825
  upper: Scalars['Float'];
785
826
  };
827
+ export declare type PackageDtoFilter = {
828
+ and?: InputMaybe<Array<PackageDtoFilter>>;
829
+ billingId?: InputMaybe<StringFieldComparison>;
830
+ createdAt?: InputMaybe<DateFieldComparison>;
831
+ description?: InputMaybe<StringFieldComparison>;
832
+ displayName?: InputMaybe<StringFieldComparison>;
833
+ environmentId?: InputMaybe<StringFieldComparison>;
834
+ id?: InputMaybe<StringFieldComparison>;
835
+ isLatest?: InputMaybe<BooleanFieldComparison>;
836
+ or?: InputMaybe<Array<PackageDtoFilter>>;
837
+ productId?: InputMaybe<StringFieldComparison>;
838
+ refId?: InputMaybe<StringFieldComparison>;
839
+ status?: InputMaybe<PackageStatusFilterComparison>;
840
+ updatedAt?: InputMaybe<DateFieldComparison>;
841
+ versionNumber?: InputMaybe<IntFieldComparison>;
842
+ };
843
+ export declare type PackageDtoSort = {
844
+ direction: SortDirection;
845
+ field: PackageDtoSortFields;
846
+ nulls?: InputMaybe<SortNulls>;
847
+ };
848
+ export declare enum PackageDtoSortFields {
849
+ BillingId = "billingId",
850
+ CreatedAt = "createdAt",
851
+ Description = "description",
852
+ DisplayName = "displayName",
853
+ EnvironmentId = "environmentId",
854
+ Id = "id",
855
+ IsLatest = "isLatest",
856
+ ProductId = "productId",
857
+ RefId = "refId",
858
+ Status = "status",
859
+ UpdatedAt = "updatedAt",
860
+ VersionNumber = "versionNumber"
861
+ }
786
862
  export declare type PackageEntitlementFilter = {
787
863
  and?: InputMaybe<Array<PackageEntitlementFilter>>;
788
864
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -861,6 +937,7 @@ export declare type PackagePublishInput = {
861
937
  };
862
938
  /** Package status. */
863
939
  export declare enum PackageStatus {
940
+ Archived = "ARCHIVED",
864
941
  Draft = "DRAFT",
865
942
  Published = "PUBLISHED"
866
943
  }
@@ -887,12 +964,13 @@ export declare type PlanCreateInput = {
887
964
  environmentId: Scalars['String'];
888
965
  parentPlanId?: InputMaybe<Scalars['String']>;
889
966
  productId: Scalars['String'];
890
- refId: Scalars['String'];
967
+ refId?: InputMaybe<Scalars['String']>;
891
968
  status?: InputMaybe<PackageStatus>;
892
969
  };
893
970
  export declare type PlanFilter = {
894
971
  and?: InputMaybe<Array<PlanFilter>>;
895
972
  billingId?: InputMaybe<StringFieldComparison>;
973
+ compatibleAddons?: InputMaybe<PlanFilterAddonFilter>;
896
974
  createdAt?: InputMaybe<DateFieldComparison>;
897
975
  description?: InputMaybe<StringFieldComparison>;
898
976
  displayName?: InputMaybe<StringFieldComparison>;
@@ -907,6 +985,22 @@ export declare type PlanFilter = {
907
985
  updatedAt?: InputMaybe<DateFieldComparison>;
908
986
  versionNumber?: InputMaybe<IntFieldComparison>;
909
987
  };
988
+ export declare type PlanFilterAddonFilter = {
989
+ and?: InputMaybe<Array<PlanFilterAddonFilter>>;
990
+ billingId?: InputMaybe<StringFieldComparison>;
991
+ createdAt?: InputMaybe<DateFieldComparison>;
992
+ description?: InputMaybe<StringFieldComparison>;
993
+ displayName?: InputMaybe<StringFieldComparison>;
994
+ environmentId?: InputMaybe<StringFieldComparison>;
995
+ id?: InputMaybe<StringFieldComparison>;
996
+ isLatest?: InputMaybe<BooleanFieldComparison>;
997
+ or?: InputMaybe<Array<PlanFilterAddonFilter>>;
998
+ productId?: InputMaybe<StringFieldComparison>;
999
+ refId?: InputMaybe<StringFieldComparison>;
1000
+ status?: InputMaybe<PackageStatusFilterComparison>;
1001
+ updatedAt?: InputMaybe<DateFieldComparison>;
1002
+ versionNumber?: InputMaybe<IntFieldComparison>;
1003
+ };
910
1004
  export declare type PlanFilterProductFilter = {
911
1005
  and?: InputMaybe<Array<PlanFilterProductFilter>>;
912
1006
  createdAt?: InputMaybe<DateFieldComparison>;
@@ -959,6 +1053,7 @@ export declare type PriceFilter = {
959
1053
  and?: InputMaybe<Array<PriceFilter>>;
960
1054
  billingModel?: InputMaybe<BillingModelFilterComparison>;
961
1055
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1056
+ createdAt?: InputMaybe<DateFieldComparison>;
962
1057
  id?: InputMaybe<StringFieldComparison>;
963
1058
  or?: InputMaybe<Array<PriceFilter>>;
964
1059
  package?: InputMaybe<PriceFilterPackageDtoFilter>;
@@ -987,6 +1082,7 @@ export declare type PriceSort = {
987
1082
  export declare enum PriceSortFields {
988
1083
  BillingModel = "billingModel",
989
1084
  BillingPeriod = "billingPeriod",
1085
+ CreatedAt = "createdAt",
990
1086
  Id = "id"
991
1087
  }
992
1088
  export declare type PriceUpdateInput = {
@@ -1181,6 +1277,7 @@ export declare type StripeCredentialsInput = {
1181
1277
  export declare type SubscriptionAddonFilter = {
1182
1278
  addon?: InputMaybe<SubscriptionAddonFilterAddonFilter>;
1183
1279
  and?: InputMaybe<Array<SubscriptionAddonFilter>>;
1280
+ createdAt?: InputMaybe<DateFieldComparison>;
1184
1281
  id?: InputMaybe<StringFieldComparison>;
1185
1282
  or?: InputMaybe<Array<SubscriptionAddonFilter>>;
1186
1283
  price?: InputMaybe<SubscriptionAddonFilterPriceFilter>;
@@ -1207,6 +1304,7 @@ export declare type SubscriptionAddonFilterAddonFilter = {
1207
1304
  export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
1208
1305
  and?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
1209
1306
  billingId?: InputMaybe<StringFieldComparison>;
1307
+ createdAt?: InputMaybe<DateFieldComparison>;
1210
1308
  crmId?: InputMaybe<StringFieldComparison>;
1211
1309
  endDate?: InputMaybe<DateFieldComparison>;
1212
1310
  environmentId?: InputMaybe<StringFieldComparison>;
@@ -1220,12 +1318,13 @@ export declare type SubscriptionAddonFilterPriceFilter = {
1220
1318
  and?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
1221
1319
  billingModel?: InputMaybe<BillingModelFilterComparison>;
1222
1320
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1321
+ createdAt?: InputMaybe<DateFieldComparison>;
1223
1322
  id?: InputMaybe<StringFieldComparison>;
1224
1323
  or?: InputMaybe<Array<SubscriptionAddonFilterPriceFilter>>;
1225
1324
  };
1226
1325
  export declare type SubscriptionAddonInput = {
1227
1326
  addonId: Scalars['String'];
1228
- billingPeriod: BillingPeriod;
1327
+ billingPeriod?: InputMaybe<BillingPeriod>;
1229
1328
  quantity?: InputMaybe<Scalars['Int']>;
1230
1329
  };
1231
1330
  export declare type SubscriptionAddonSort = {
@@ -1234,6 +1333,7 @@ export declare type SubscriptionAddonSort = {
1234
1333
  nulls?: InputMaybe<SortNulls>;
1235
1334
  };
1236
1335
  export declare enum SubscriptionAddonSortFields {
1336
+ CreatedAt = "createdAt",
1237
1337
  Id = "id",
1238
1338
  Quantity = "quantity",
1239
1339
  UpdatedAt = "updatedAt"
@@ -1255,22 +1355,43 @@ export declare enum SubscriptionEndSetup {
1255
1355
  export declare type SubscriptionInput = {
1256
1356
  addons?: InputMaybe<Array<SubscriptionAddonInput>>;
1257
1357
  billingId?: InputMaybe<Scalars['String']>;
1258
- billingPeriod: BillingPeriod;
1358
+ billingPeriod?: InputMaybe<BillingPeriod>;
1259
1359
  crmId?: InputMaybe<Scalars['String']>;
1260
1360
  customerId: Scalars['String'];
1261
1361
  endDate?: InputMaybe<Scalars['DateTime']>;
1262
1362
  environmentId: Scalars['String'];
1363
+ isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
1263
1364
  isTrial?: InputMaybe<Scalars['Boolean']>;
1264
- planId: Scalars['String'];
1365
+ planId?: InputMaybe<Scalars['String']>;
1265
1366
  priceUnitAmount?: InputMaybe<Scalars['Float']>;
1266
1367
  refId?: InputMaybe<Scalars['String']>;
1267
- startDate: Scalars['DateTime'];
1368
+ startDate?: InputMaybe<Scalars['DateTime']>;
1268
1369
  };
1269
1370
  export declare type SubscriptionMigrationInput = {
1270
1371
  subscriptionId: Scalars['String'];
1271
1372
  };
1373
+ export declare type SubscriptionMigrationTaskFilter = {
1374
+ and?: InputMaybe<Array<SubscriptionMigrationTaskFilter>>;
1375
+ createdAt?: InputMaybe<DateFieldComparison>;
1376
+ id?: InputMaybe<StringFieldComparison>;
1377
+ or?: InputMaybe<Array<SubscriptionMigrationTaskFilter>>;
1378
+ status?: InputMaybe<TaskStatusFilterComparison>;
1379
+ taskType?: InputMaybe<TaskTypeFilterComparison>;
1380
+ };
1381
+ export declare type SubscriptionMigrationTaskSort = {
1382
+ direction: SortDirection;
1383
+ field: SubscriptionMigrationTaskSortFields;
1384
+ nulls?: InputMaybe<SortNulls>;
1385
+ };
1386
+ export declare enum SubscriptionMigrationTaskSortFields {
1387
+ CreatedAt = "createdAt",
1388
+ Id = "id",
1389
+ Status = "status",
1390
+ TaskType = "taskType"
1391
+ }
1272
1392
  export declare type SubscriptionPriceFilter = {
1273
1393
  and?: InputMaybe<Array<SubscriptionPriceFilter>>;
1394
+ createdAt?: InputMaybe<DateFieldComparison>;
1274
1395
  id?: InputMaybe<StringFieldComparison>;
1275
1396
  or?: InputMaybe<Array<SubscriptionPriceFilter>>;
1276
1397
  price?: InputMaybe<SubscriptionPriceFilterPriceFilter>;
@@ -1281,6 +1402,7 @@ export declare type SubscriptionPriceFilter = {
1281
1402
  export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
1282
1403
  and?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
1283
1404
  billingId?: InputMaybe<StringFieldComparison>;
1405
+ createdAt?: InputMaybe<DateFieldComparison>;
1284
1406
  crmId?: InputMaybe<StringFieldComparison>;
1285
1407
  endDate?: InputMaybe<DateFieldComparison>;
1286
1408
  environmentId?: InputMaybe<StringFieldComparison>;
@@ -1294,6 +1416,7 @@ export declare type SubscriptionPriceFilterPriceFilter = {
1294
1416
  and?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
1295
1417
  billingModel?: InputMaybe<BillingModelFilterComparison>;
1296
1418
  billingPeriod?: InputMaybe<BillingPeriodFilterComparison>;
1419
+ createdAt?: InputMaybe<DateFieldComparison>;
1297
1420
  id?: InputMaybe<StringFieldComparison>;
1298
1421
  or?: InputMaybe<Array<SubscriptionPriceFilterPriceFilter>>;
1299
1422
  };
@@ -1303,6 +1426,7 @@ export declare type SubscriptionPriceSort = {
1303
1426
  nulls?: InputMaybe<SortNulls>;
1304
1427
  };
1305
1428
  export declare enum SubscriptionPriceSortFields {
1429
+ CreatedAt = "createdAt",
1306
1430
  Id = "id",
1307
1431
  UpdatedAt = "updatedAt",
1308
1432
  UsageLimit = "usageLimit"
@@ -1331,6 +1455,52 @@ export declare type SubscriptionStatusFilterComparison = {
1331
1455
  notIn?: InputMaybe<Array<SubscriptionStatus>>;
1332
1456
  notLike?: InputMaybe<SubscriptionStatus>;
1333
1457
  };
1458
+ export declare enum TaskStatus {
1459
+ Completed = "COMPLETED",
1460
+ Failed = "FAILED",
1461
+ InProgress = "IN_PROGRESS",
1462
+ PartiallyCompleted = "PARTIALLY_COMPLETED",
1463
+ Pending = "PENDING"
1464
+ }
1465
+ export declare type TaskStatusFilterComparison = {
1466
+ eq?: InputMaybe<TaskStatus>;
1467
+ gt?: InputMaybe<TaskStatus>;
1468
+ gte?: InputMaybe<TaskStatus>;
1469
+ iLike?: InputMaybe<TaskStatus>;
1470
+ in?: InputMaybe<Array<TaskStatus>>;
1471
+ is?: InputMaybe<Scalars['Boolean']>;
1472
+ isNot?: InputMaybe<Scalars['Boolean']>;
1473
+ like?: InputMaybe<TaskStatus>;
1474
+ lt?: InputMaybe<TaskStatus>;
1475
+ lte?: InputMaybe<TaskStatus>;
1476
+ neq?: InputMaybe<TaskStatus>;
1477
+ notILike?: InputMaybe<TaskStatus>;
1478
+ notIn?: InputMaybe<Array<TaskStatus>>;
1479
+ notLike?: InputMaybe<TaskStatus>;
1480
+ };
1481
+ export declare enum TaskType {
1482
+ SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
1483
+ }
1484
+ export declare type TaskTypeFilterComparison = {
1485
+ eq?: InputMaybe<TaskType>;
1486
+ gt?: InputMaybe<TaskType>;
1487
+ gte?: InputMaybe<TaskType>;
1488
+ iLike?: InputMaybe<TaskType>;
1489
+ in?: InputMaybe<Array<TaskType>>;
1490
+ is?: InputMaybe<Scalars['Boolean']>;
1491
+ isNot?: InputMaybe<Scalars['Boolean']>;
1492
+ like?: InputMaybe<TaskType>;
1493
+ lt?: InputMaybe<TaskType>;
1494
+ lte?: InputMaybe<TaskType>;
1495
+ neq?: InputMaybe<TaskType>;
1496
+ notILike?: InputMaybe<TaskType>;
1497
+ notIn?: InputMaybe<Array<TaskType>>;
1498
+ notLike?: InputMaybe<TaskType>;
1499
+ };
1500
+ export declare type TaxExempt = {
1501
+ type: Scalars['String'];
1502
+ value: Scalars['String'];
1503
+ };
1334
1504
  export declare type TestHookInput = {
1335
1505
  endpointUrl: Scalars['String'];
1336
1506
  hookEventType: EventLogType;
@@ -1340,19 +1510,17 @@ export declare enum TrialPeriodUnits {
1340
1510
  Day = "DAY",
1341
1511
  Month = "MONTH"
1342
1512
  }
1343
- export declare type UpdateCustomer = {
1513
+ export declare type UpdateCustomerInput = {
1344
1514
  billingId?: InputMaybe<Scalars['String']>;
1345
- billingLinkUrl?: InputMaybe<Scalars['String']>;
1346
- createdAt?: InputMaybe<Scalars['DateTime']>;
1515
+ billingInformation?: InputMaybe<CustomerBillingInfo>;
1347
1516
  crmId?: InputMaybe<Scalars['String']>;
1348
1517
  email?: InputMaybe<Scalars['String']>;
1349
1518
  environmentId?: InputMaybe<Scalars['String']>;
1350
- id?: InputMaybe<Scalars['String']>;
1351
1519
  name?: InputMaybe<Scalars['String']>;
1352
- refId?: InputMaybe<Scalars['String']>;
1353
- updatedAt?: InputMaybe<Scalars['DateTime']>;
1520
+ refId: Scalars['String'];
1354
1521
  };
1355
1522
  export declare type UpdateEnvironment = {
1523
+ createdAt?: InputMaybe<Scalars['DateTime']>;
1356
1524
  description?: InputMaybe<Scalars['String']>;
1357
1525
  displayName?: InputMaybe<Scalars['String']>;
1358
1526
  id?: InputMaybe<Scalars['String']>;
@@ -1387,12 +1555,6 @@ export declare type UpdateIntegrationInput = {
1387
1555
  vendorIdentifier: VendorIdentifier;
1388
1556
  zuoraCredentials?: InputMaybe<ZuoraCredentialsInput>;
1389
1557
  };
1390
- export declare type UpdateOneCustomerInput = {
1391
- /** The id of the record to update */
1392
- id: Scalars['String'];
1393
- /** The update to apply. */
1394
- update: UpdateCustomer;
1395
- };
1396
1558
  export declare type UpdateOneEnvironmentInput = {
1397
1559
  /** The id of the record to update */
1398
1560
  id: Scalars['String'];
@@ -1499,6 +1661,7 @@ export declare enum UsageMeasurementSortFields {
1499
1661
  Id = "id"
1500
1662
  }
1501
1663
  export declare enum VendorIdentifier {
1664
+ Hubspot = "HUBSPOT",
1502
1665
  Stripe = "STRIPE",
1503
1666
  Zuora = "ZUORA"
1504
1667
  }
@@ -1656,8 +1819,9 @@ export declare type CustomerFragment = {
1656
1819
  id: string;
1657
1820
  name?: string | null | undefined;
1658
1821
  email?: string | null | undefined;
1659
- createdAt: any;
1822
+ createdAt?: any | null | undefined;
1660
1823
  updatedAt: any;
1824
+ hasPaymentMethod: boolean;
1661
1825
  refId: string;
1662
1826
  promotionalEntitlements: Array<{
1663
1827
  __typename?: 'PromotionalEntitlement';
@@ -1767,6 +1931,9 @@ export declare type AddonFragment = {
1767
1931
  entitlements?: Array<{
1768
1932
  __typename?: 'PackageEntitlement';
1769
1933
  } & PackageEntitlementFragment> | null | undefined;
1934
+ prices?: Array<{
1935
+ __typename?: 'Price';
1936
+ } & PriceFragment> | null | undefined;
1770
1937
  };
1771
1938
  export declare type PlanFragment = {
1772
1939
  __typename?: 'Plan';
@@ -1778,6 +1945,7 @@ export declare type PlanFragment = {
1778
1945
  __typename?: 'Product';
1779
1946
  refId: string;
1780
1947
  displayName?: string | null | undefined;
1948
+ description?: string | null | undefined;
1781
1949
  };
1782
1950
  basePlan?: {
1783
1951
  __typename?: 'Plan';
@@ -1791,9 +1959,6 @@ export declare type PlanFragment = {
1791
1959
  inheritedEntitlements?: Array<{
1792
1960
  __typename?: 'PackageEntitlement';
1793
1961
  } & PackageEntitlementFragment> | null | undefined;
1794
- compatibleAddons?: Array<{
1795
- __typename?: 'Addon';
1796
- } & AddonFragment> | null | undefined;
1797
1962
  prices?: Array<{
1798
1963
  __typename?: 'Price';
1799
1964
  } & PriceFragment> | null | undefined;
@@ -1806,6 +1971,7 @@ export declare type PlanFragment = {
1806
1971
  export declare type GetPlansQueryVariables = Exact<{
1807
1972
  paging?: Maybe<CursorPaging>;
1808
1973
  filter?: Maybe<PlanFilter>;
1974
+ addonFilter?: Maybe<AddonFilter>;
1809
1975
  sorting?: Maybe<Array<PlanSort> | PlanSort>;
1810
1976
  }>;
1811
1977
  export declare type GetPlansQuery = {
@@ -1816,6 +1982,9 @@ export declare type GetPlansQuery = {
1816
1982
  __typename?: 'PlanEdge';
1817
1983
  node: {
1818
1984
  __typename?: 'Plan';
1985
+ compatibleAddons?: Array<{
1986
+ __typename?: 'Addon';
1987
+ } & AddonFragment> | null | undefined;
1819
1988
  } & PlanFragment;
1820
1989
  }>;
1821
1990
  };