@stigg/node-server-sdk 0.18.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +3 -0
  3. package/dist/api/configurationApi.d.ts +8 -0
  4. package/dist/api/configurationApi.js +19 -0
  5. package/dist/api/entitlements/entitlementsApi.d.ts +16 -0
  6. package/dist/api/entitlements/entitlementsApi.js +70 -0
  7. package/dist/api/entitlements/entitlementsGql.d.ts +4 -0
  8. package/dist/api/entitlements/entitlementsGql.js +57 -0
  9. package/dist/api/generated/types.d.ts +2413 -0
  10. package/dist/api/generated/types.js +379 -0
  11. package/dist/api/initApolloClient.d.ts +12 -0
  12. package/dist/api/initApolloClient.js +75 -0
  13. package/dist/api/managementApi.d.ts +12 -0
  14. package/dist/api/managementApi.js +80 -0
  15. package/dist/client.d.ts +61 -0
  16. package/dist/client.js +166 -0
  17. package/dist/configuration.d.ts +18 -0
  18. package/dist/configuration.js +47 -0
  19. package/dist/index.d.ts +6 -0
  20. package/dist/index.js +19 -0
  21. package/dist/models.d.ts +107 -0
  22. package/dist/models.js +27 -0
  23. package/dist/services/cache/cacheService.d.ts +9 -0
  24. package/dist/services/cache/cacheService.js +3 -0
  25. package/dist/services/cache/cachedEntitlement.d.ts +18 -0
  26. package/dist/services/cache/cachedEntitlement.js +10 -0
  27. package/dist/services/cache/inMemoryCacheService.d.ts +13 -0
  28. package/dist/services/cache/inMemoryCacheService.js +33 -0
  29. package/dist/services/entitlementDecisionService.d.ts +9 -0
  30. package/dist/services/entitlementDecisionService.js +43 -0
  31. package/dist/services/entitlementsService.d.ts +22 -0
  32. package/dist/services/entitlementsService.js +80 -0
  33. package/dist/services/loggerService.d.ts +14 -0
  34. package/dist/services/loggerService.js +32 -0
  35. package/dist/utils/ModelMapper.d.ts +13 -0
  36. package/dist/utils/ModelMapper.js +109 -0
  37. package/package.json +80 -0
@@ -0,0 +1,2413 @@
1
+ export declare type Maybe<T> = T | null;
2
+ export declare type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ export declare type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
8
+ [SubKey in K]?: Maybe<T[SubKey]>;
9
+ };
10
+ export declare type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
11
+ [SubKey in K]: Maybe<T[SubKey]>;
12
+ };
13
+ /** All built-in and custom scalars, mapped to their actual values */
14
+ export declare type Scalars = {
15
+ ID: string;
16
+ String: string;
17
+ Boolean: boolean;
18
+ Int: number;
19
+ Float: number;
20
+ /** Cursor for paging through collections */
21
+ ConnectionCursor: any;
22
+ /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
23
+ DateTime: any;
24
+ };
25
+ /** DenyReason of get access policy */
26
+ export declare enum AccessDeniedReason {
27
+ CustomerNotFound = "CustomerNotFound",
28
+ FeatureNotFound = "FeatureNotFound",
29
+ NoActiveSubscription = "NoActiveSubscription",
30
+ NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription",
31
+ RequestedUsageExceedingLimit = "RequestedUsageExceedingLimit",
32
+ Unknown = "Unknown"
33
+ }
34
+ export declare type AddAddonsToCustomerSubscriptionInput = {
35
+ /** The id of the record. */
36
+ id: Scalars['String'];
37
+ /** The ids of the relations. */
38
+ relationIds: Array<Scalars['String']>;
39
+ };
40
+ export declare type AddApiKeysToEnvironmentInput = {
41
+ /** The id of the record. */
42
+ id: Scalars['String'];
43
+ /** The ids of the relations. */
44
+ relationIds: Array<Scalars['String']>;
45
+ };
46
+ export declare type AddCompatibleAddonsToPlanInput = {
47
+ /** The id of the record. */
48
+ id: Scalars['String'];
49
+ /** The ids of the relations. */
50
+ relationIds: Array<Scalars['String']>;
51
+ };
52
+ export declare type AddPricesToAddonInput = {
53
+ /** The id of the record. */
54
+ id: Scalars['String'];
55
+ /** The ids of the relations. */
56
+ relationIds: Array<Scalars['String']>;
57
+ };
58
+ export declare type AddPricesToCustomerSubscriptionInput = {
59
+ /** The id of the record. */
60
+ id: Scalars['String'];
61
+ /** The ids of the relations. */
62
+ relationIds: Array<Scalars['String']>;
63
+ };
64
+ export declare type AddPricesToPlanInput = {
65
+ /** The id of the record. */
66
+ id: Scalars['String'];
67
+ /** The ids of the relations. */
68
+ relationIds: Array<Scalars['String']>;
69
+ };
70
+ export declare type AddSubscriptionsToCustomerInput = {
71
+ /** The id of the record. */
72
+ id: Scalars['String'];
73
+ /** The ids of the relations. */
74
+ relationIds: Array<Scalars['String']>;
75
+ };
76
+ export declare type AddonCreateInput = {
77
+ billingId?: Maybe<Scalars['String']>;
78
+ description?: Maybe<Scalars['String']>;
79
+ displayName: Scalars['String'];
80
+ environmentId: Scalars['String'];
81
+ productId: Scalars['String'];
82
+ refId: Scalars['String'];
83
+ status?: Maybe<PackageStatus>;
84
+ };
85
+ export declare type AddonDeleteFilter = {
86
+ and?: Maybe<Array<AddonDeleteFilter>>;
87
+ billingId?: Maybe<StringFieldComparison>;
88
+ createdAt?: Maybe<DateFieldComparison>;
89
+ description?: Maybe<StringFieldComparison>;
90
+ displayName?: Maybe<StringFieldComparison>;
91
+ environmentId?: Maybe<StringFieldComparison>;
92
+ id?: Maybe<StringFieldComparison>;
93
+ isLatest?: Maybe<BooleanFieldComparison>;
94
+ or?: Maybe<Array<AddonDeleteFilter>>;
95
+ productId?: Maybe<StringFieldComparison>;
96
+ refId?: Maybe<StringFieldComparison>;
97
+ status?: Maybe<PackageStatusFilterComparison>;
98
+ updatedAt?: Maybe<DateFieldComparison>;
99
+ versionNumber?: Maybe<IntFieldComparison>;
100
+ };
101
+ export declare type AddonFilter = {
102
+ and?: Maybe<Array<AddonFilter>>;
103
+ billingId?: Maybe<StringFieldComparison>;
104
+ createdAt?: Maybe<DateFieldComparison>;
105
+ description?: Maybe<StringFieldComparison>;
106
+ displayName?: Maybe<StringFieldComparison>;
107
+ environmentId?: Maybe<StringFieldComparison>;
108
+ id?: Maybe<StringFieldComparison>;
109
+ isLatest?: Maybe<BooleanFieldComparison>;
110
+ or?: Maybe<Array<AddonFilter>>;
111
+ productId?: Maybe<StringFieldComparison>;
112
+ refId?: Maybe<StringFieldComparison>;
113
+ status?: Maybe<PackageStatusFilterComparison>;
114
+ updatedAt?: Maybe<DateFieldComparison>;
115
+ versionNumber?: Maybe<IntFieldComparison>;
116
+ };
117
+ export declare type AddonSort = {
118
+ direction: SortDirection;
119
+ field: AddonSortFields;
120
+ nulls?: Maybe<SortNulls>;
121
+ };
122
+ export declare enum AddonSortFields {
123
+ BillingId = "billingId",
124
+ CreatedAt = "createdAt",
125
+ Description = "description",
126
+ DisplayName = "displayName",
127
+ EnvironmentId = "environmentId",
128
+ Id = "id",
129
+ IsLatest = "isLatest",
130
+ ProductId = "productId",
131
+ RefId = "refId",
132
+ Status = "status",
133
+ UpdatedAt = "updatedAt",
134
+ VersionNumber = "versionNumber"
135
+ }
136
+ export declare type AddonUpdateInput = {
137
+ billingId?: Maybe<Scalars['String']>;
138
+ description?: Maybe<Scalars['String']>;
139
+ displayName: Scalars['String'];
140
+ id: Scalars['String'];
141
+ status?: Maybe<PackageStatus>;
142
+ };
143
+ export declare type ApiKeyFilter = {
144
+ and?: Maybe<Array<ApiKeyFilter>>;
145
+ id?: Maybe<StringFieldComparison>;
146
+ or?: Maybe<Array<ApiKeyFilter>>;
147
+ };
148
+ export declare type ApiKeySort = {
149
+ direction: SortDirection;
150
+ field: ApiKeySortFields;
151
+ nulls?: Maybe<SortNulls>;
152
+ };
153
+ export declare enum ApiKeySortFields {
154
+ Id = "id"
155
+ }
156
+ export declare enum ApiKeyType {
157
+ Client = "CLIENT",
158
+ Server = "SERVER"
159
+ }
160
+ /** Billing model. */
161
+ export declare enum BillingModel {
162
+ FlatFee = "FLAT_FEE",
163
+ PerUnit = "PER_UNIT",
164
+ UsageBased = "USAGE_BASED"
165
+ }
166
+ export declare type BillingModelFilterComparison = {
167
+ eq?: Maybe<BillingModel>;
168
+ gt?: Maybe<BillingModel>;
169
+ gte?: Maybe<BillingModel>;
170
+ iLike?: Maybe<BillingModel>;
171
+ in?: Maybe<Array<BillingModel>>;
172
+ is?: Maybe<Scalars['Boolean']>;
173
+ isNot?: Maybe<Scalars['Boolean']>;
174
+ like?: Maybe<BillingModel>;
175
+ lt?: Maybe<BillingModel>;
176
+ lte?: Maybe<BillingModel>;
177
+ neq?: Maybe<BillingModel>;
178
+ notILike?: Maybe<BillingModel>;
179
+ notIn?: Maybe<Array<BillingModel>>;
180
+ notLike?: Maybe<BillingModel>;
181
+ };
182
+ /** Billing period. */
183
+ export declare enum BillingPeriod {
184
+ Annually = "ANNUALLY",
185
+ Monthly = "MONTHLY"
186
+ }
187
+ export declare type BillingPeriodFilterComparison = {
188
+ eq?: Maybe<BillingPeriod>;
189
+ gt?: Maybe<BillingPeriod>;
190
+ gte?: Maybe<BillingPeriod>;
191
+ iLike?: Maybe<BillingPeriod>;
192
+ in?: Maybe<Array<BillingPeriod>>;
193
+ is?: Maybe<Scalars['Boolean']>;
194
+ isNot?: Maybe<Scalars['Boolean']>;
195
+ like?: Maybe<BillingPeriod>;
196
+ lt?: Maybe<BillingPeriod>;
197
+ lte?: Maybe<BillingPeriod>;
198
+ neq?: Maybe<BillingPeriod>;
199
+ notILike?: Maybe<BillingPeriod>;
200
+ notIn?: Maybe<Array<BillingPeriod>>;
201
+ notLike?: Maybe<BillingPeriod>;
202
+ };
203
+ export declare type BooleanFieldComparison = {
204
+ is?: Maybe<Scalars['Boolean']>;
205
+ isNot?: Maybe<Scalars['Boolean']>;
206
+ };
207
+ export declare enum ChangeType {
208
+ Added = "ADDED",
209
+ Deleted = "DELETED",
210
+ Modified = "MODIFIED"
211
+ }
212
+ export declare type CheckoutAddonInput = {
213
+ addonId: Scalars['String'];
214
+ quantity?: Maybe<Scalars['Int']>;
215
+ };
216
+ export declare type CreateEnvironment = {
217
+ description?: Maybe<Scalars['String']>;
218
+ displayName?: Maybe<Scalars['String']>;
219
+ id?: Maybe<Scalars['String']>;
220
+ slug?: Maybe<Scalars['String']>;
221
+ };
222
+ export declare type CreateFeature = {
223
+ createdAt?: Maybe<Scalars['DateTime']>;
224
+ description?: Maybe<Scalars['String']>;
225
+ displayName?: Maybe<Scalars['String']>;
226
+ environmentId?: Maybe<Scalars['String']>;
227
+ featureStatus?: Maybe<FeatureStatus>;
228
+ featureType?: Maybe<FeatureType>;
229
+ featureUnits?: Maybe<Scalars['String']>;
230
+ featureUnitsPlural?: Maybe<Scalars['String']>;
231
+ id?: Maybe<Scalars['String']>;
232
+ meterType?: Maybe<MeterType>;
233
+ refId?: Maybe<Scalars['String']>;
234
+ updatedAt?: Maybe<Scalars['DateTime']>;
235
+ };
236
+ export declare type CreateHook = {
237
+ createdAt?: Maybe<Scalars['DateTime']>;
238
+ description?: Maybe<Scalars['String']>;
239
+ endpoint?: Maybe<Scalars['String']>;
240
+ environmentId?: Maybe<Scalars['String']>;
241
+ eventLogTypes?: Maybe<Array<EventLogType>>;
242
+ id?: Maybe<Scalars['String']>;
243
+ secretKey?: Maybe<Scalars['String']>;
244
+ status?: Maybe<HookStatus>;
245
+ };
246
+ export declare type CreateIntegrationInput = {
247
+ environmentId: Scalars['String'];
248
+ stripeCredentials?: Maybe<StripeCredentialsInput>;
249
+ vendorIdentifier: VendorIdentifier;
250
+ zuoraCredentials?: Maybe<ZuoraCredentialsInput>;
251
+ };
252
+ export declare type CreateManyCustomersInput = {
253
+ /** Array of records to create */
254
+ customers: Array<CustomerInput>;
255
+ };
256
+ export declare type CreateManyEnvironmentsInput = {
257
+ /** Array of records to create */
258
+ environments: Array<CreateEnvironment>;
259
+ };
260
+ export declare type CreateManyHooksInput = {
261
+ /** Array of records to create */
262
+ hooks: Array<CreateHook>;
263
+ };
264
+ export declare type CreateManyIntegrationsInput = {
265
+ /** Array of records to create */
266
+ integrations: Array<CreateIntegrationInput>;
267
+ };
268
+ export declare type CreateManyPackageEntitlementsInput = {
269
+ /** Array of records to create */
270
+ packageEntitlements: Array<PackageEntitlementInput>;
271
+ };
272
+ export declare type CreateManyProductsInput = {
273
+ /** Array of records to create */
274
+ products: Array<ProductCreateInput>;
275
+ };
276
+ export declare type CreateManyPromotionalEntitlementsInput = {
277
+ /** Array of records to create */
278
+ promotionalEntitlements: Array<PromotionalEntitlementInput>;
279
+ };
280
+ export declare type CreateOneCustomerInput = {
281
+ /** The record to create */
282
+ customer: CustomerInput;
283
+ };
284
+ export declare type CreateOneEnvironmentInput = {
285
+ /** The record to create */
286
+ environment: CreateEnvironment;
287
+ };
288
+ export declare type CreateOneFeatureInput = {
289
+ /** The record to create */
290
+ feature: CreateFeature;
291
+ };
292
+ export declare type CreateOneHookInput = {
293
+ /** The record to create */
294
+ hook: CreateHook;
295
+ };
296
+ export declare type CreateOneIntegrationInput = {
297
+ /** The record to create */
298
+ integration: CreateIntegrationInput;
299
+ };
300
+ export declare type CreateOnePackageEntitlementInput = {
301
+ /** The record to create */
302
+ packageEntitlement: PackageEntitlementInput;
303
+ };
304
+ export declare type CreateOneProductInput = {
305
+ /** The record to create */
306
+ product: ProductCreateInput;
307
+ };
308
+ export declare type CreateOnePromotionalEntitlementInput = {
309
+ /** The record to create */
310
+ promotionalEntitlement: PromotionalEntitlementInput;
311
+ };
312
+ /** Currency */
313
+ export declare enum Currency {
314
+ Usd = "USD"
315
+ }
316
+ export declare type CursorPaging = {
317
+ /** Paginate after opaque cursor */
318
+ after?: Maybe<Scalars['ConnectionCursor']>;
319
+ /** Paginate before opaque cursor */
320
+ before?: Maybe<Scalars['ConnectionCursor']>;
321
+ /** Paginate first */
322
+ first?: Maybe<Scalars['Int']>;
323
+ /** Paginate last */
324
+ last?: Maybe<Scalars['Int']>;
325
+ };
326
+ export declare type CustomerDeleteFilter = {
327
+ and?: Maybe<Array<CustomerDeleteFilter>>;
328
+ billingId?: Maybe<StringFieldComparison>;
329
+ createdAt?: Maybe<DateFieldComparison>;
330
+ crmId?: Maybe<StringFieldComparison>;
331
+ email?: Maybe<StringFieldComparison>;
332
+ environmentId?: Maybe<StringFieldComparison>;
333
+ id?: Maybe<StringFieldComparison>;
334
+ name?: Maybe<StringFieldComparison>;
335
+ or?: Maybe<Array<CustomerDeleteFilter>>;
336
+ refId?: Maybe<StringFieldComparison>;
337
+ updatedAt?: Maybe<DateFieldComparison>;
338
+ };
339
+ export declare type CustomerFilter = {
340
+ and?: Maybe<Array<CustomerFilter>>;
341
+ billingId?: Maybe<StringFieldComparison>;
342
+ createdAt?: Maybe<DateFieldComparison>;
343
+ crmId?: Maybe<StringFieldComparison>;
344
+ email?: Maybe<StringFieldComparison>;
345
+ environmentId?: Maybe<StringFieldComparison>;
346
+ id?: Maybe<StringFieldComparison>;
347
+ name?: Maybe<StringFieldComparison>;
348
+ or?: Maybe<Array<CustomerFilter>>;
349
+ promotionalEntitlements?: Maybe<CustomerFilterPromotionalEntitlementFilter>;
350
+ refId?: Maybe<StringFieldComparison>;
351
+ subscriptions?: Maybe<CustomerFilterCustomerSubscriptionFilter>;
352
+ updatedAt?: Maybe<DateFieldComparison>;
353
+ };
354
+ export declare type CustomerFilterCustomerSubscriptionFilter = {
355
+ and?: Maybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
356
+ billingId?: Maybe<StringFieldComparison>;
357
+ crmId?: Maybe<StringFieldComparison>;
358
+ endDate?: Maybe<DateFieldComparison>;
359
+ environmentId?: Maybe<StringFieldComparison>;
360
+ id?: Maybe<StringFieldComparison>;
361
+ or?: Maybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
362
+ refId?: Maybe<StringFieldComparison>;
363
+ startDate?: Maybe<DateFieldComparison>;
364
+ status?: Maybe<SubscriptionStatusFilterComparison>;
365
+ };
366
+ export declare type CustomerFilterPromotionalEntitlementFilter = {
367
+ and?: Maybe<Array<CustomerFilterPromotionalEntitlementFilter>>;
368
+ createdAt?: Maybe<DateFieldComparison>;
369
+ environmentId?: Maybe<StringFieldComparison>;
370
+ id?: Maybe<StringFieldComparison>;
371
+ or?: Maybe<Array<CustomerFilterPromotionalEntitlementFilter>>;
372
+ status?: Maybe<PromotionalEntitlementStatusFilterComparison>;
373
+ updatedAt?: Maybe<DateFieldComparison>;
374
+ };
375
+ export declare type CustomerInput = {
376
+ billingId?: Maybe<Scalars['String']>;
377
+ crmId?: Maybe<Scalars['String']>;
378
+ email?: Maybe<Scalars['String']>;
379
+ environmentId?: Maybe<Scalars['String']>;
380
+ name?: Maybe<Scalars['String']>;
381
+ refId: Scalars['String'];
382
+ };
383
+ export declare type CustomerSort = {
384
+ direction: SortDirection;
385
+ field: CustomerSortFields;
386
+ nulls?: Maybe<SortNulls>;
387
+ };
388
+ export declare enum CustomerSortFields {
389
+ BillingId = "billingId",
390
+ CreatedAt = "createdAt",
391
+ CrmId = "crmId",
392
+ Email = "email",
393
+ EnvironmentId = "environmentId",
394
+ Id = "id",
395
+ Name = "name",
396
+ RefId = "refId",
397
+ UpdatedAt = "updatedAt"
398
+ }
399
+ export declare type CustomerSubscriptionFilter = {
400
+ addons?: Maybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
401
+ and?: Maybe<Array<CustomerSubscriptionFilter>>;
402
+ billingId?: Maybe<StringFieldComparison>;
403
+ crmId?: Maybe<StringFieldComparison>;
404
+ customer?: Maybe<CustomerSubscriptionFilterCustomerFilter>;
405
+ endDate?: Maybe<DateFieldComparison>;
406
+ environmentId?: Maybe<StringFieldComparison>;
407
+ id?: Maybe<StringFieldComparison>;
408
+ or?: Maybe<Array<CustomerSubscriptionFilter>>;
409
+ prices?: Maybe<CustomerSubscriptionFilterSubscriptionPriceFilter>;
410
+ refId?: Maybe<StringFieldComparison>;
411
+ startDate?: Maybe<DateFieldComparison>;
412
+ status?: Maybe<SubscriptionStatusFilterComparison>;
413
+ };
414
+ export declare type CustomerSubscriptionFilterCustomerFilter = {
415
+ and?: Maybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
416
+ billingId?: Maybe<StringFieldComparison>;
417
+ createdAt?: Maybe<DateFieldComparison>;
418
+ crmId?: Maybe<StringFieldComparison>;
419
+ email?: Maybe<StringFieldComparison>;
420
+ environmentId?: Maybe<StringFieldComparison>;
421
+ id?: Maybe<StringFieldComparison>;
422
+ name?: Maybe<StringFieldComparison>;
423
+ or?: Maybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
424
+ refId?: Maybe<StringFieldComparison>;
425
+ updatedAt?: Maybe<DateFieldComparison>;
426
+ };
427
+ export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
428
+ and?: Maybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
429
+ id?: Maybe<StringFieldComparison>;
430
+ or?: Maybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
431
+ quantity?: Maybe<NumberFieldComparison>;
432
+ updatedAt?: Maybe<DateFieldComparison>;
433
+ };
434
+ export declare type CustomerSubscriptionFilterSubscriptionPriceFilter = {
435
+ and?: Maybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
436
+ id?: Maybe<StringFieldComparison>;
437
+ or?: Maybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
438
+ updatedAt?: Maybe<DateFieldComparison>;
439
+ usageLimit?: Maybe<NumberFieldComparison>;
440
+ };
441
+ export declare type CustomerSubscriptionSort = {
442
+ direction: SortDirection;
443
+ field: CustomerSubscriptionSortFields;
444
+ nulls?: Maybe<SortNulls>;
445
+ };
446
+ export declare enum CustomerSubscriptionSortFields {
447
+ BillingId = "billingId",
448
+ CrmId = "crmId",
449
+ EndDate = "endDate",
450
+ EnvironmentId = "environmentId",
451
+ Id = "id",
452
+ RefId = "refId",
453
+ StartDate = "startDate",
454
+ Status = "status"
455
+ }
456
+ export declare type CustomerUpdateFilter = {
457
+ and?: Maybe<Array<CustomerUpdateFilter>>;
458
+ billingId?: Maybe<StringFieldComparison>;
459
+ createdAt?: Maybe<DateFieldComparison>;
460
+ crmId?: Maybe<StringFieldComparison>;
461
+ email?: Maybe<StringFieldComparison>;
462
+ environmentId?: Maybe<StringFieldComparison>;
463
+ id?: Maybe<StringFieldComparison>;
464
+ name?: Maybe<StringFieldComparison>;
465
+ or?: Maybe<Array<CustomerUpdateFilter>>;
466
+ refId?: Maybe<StringFieldComparison>;
467
+ updatedAt?: Maybe<DateFieldComparison>;
468
+ };
469
+ export declare type DateFieldComparison = {
470
+ between?: Maybe<DateFieldComparisonBetween>;
471
+ eq?: Maybe<Scalars['DateTime']>;
472
+ gt?: Maybe<Scalars['DateTime']>;
473
+ gte?: Maybe<Scalars['DateTime']>;
474
+ in?: Maybe<Array<Scalars['DateTime']>>;
475
+ is?: Maybe<Scalars['Boolean']>;
476
+ isNot?: Maybe<Scalars['Boolean']>;
477
+ lt?: Maybe<Scalars['DateTime']>;
478
+ lte?: Maybe<Scalars['DateTime']>;
479
+ neq?: Maybe<Scalars['DateTime']>;
480
+ notBetween?: Maybe<DateFieldComparisonBetween>;
481
+ notIn?: Maybe<Array<Scalars['DateTime']>>;
482
+ };
483
+ export declare type DateFieldComparisonBetween = {
484
+ lower: Scalars['DateTime'];
485
+ upper: Scalars['DateTime'];
486
+ };
487
+ export declare type DefaultTrialConfigInputDto = {
488
+ duration: Scalars['Float'];
489
+ units: TrialPeriodUnits;
490
+ };
491
+ export declare type DeleteManyAddonsInput = {
492
+ /** Filter to find records to delete */
493
+ filter: AddonDeleteFilter;
494
+ };
495
+ export declare type DeleteManyCustomersInput = {
496
+ /** Filter to find records to delete */
497
+ filter: CustomerDeleteFilter;
498
+ };
499
+ export declare type DeleteManyEnvironmentsInput = {
500
+ /** Filter to find records to delete */
501
+ filter: EnvironmentDeleteFilter;
502
+ };
503
+ export declare type DeleteManyEventLogsInput = {
504
+ /** Filter to find records to delete */
505
+ filter: EventLogDeleteFilter;
506
+ };
507
+ export declare type DeleteManyHooksInput = {
508
+ /** Filter to find records to delete */
509
+ filter: HookDeleteFilter;
510
+ };
511
+ export declare type DeleteManyIntegrationsInput = {
512
+ /** Filter to find records to delete */
513
+ filter: IntegrationDeleteFilter;
514
+ };
515
+ export declare type DeleteManyPackageEntitlementsInput = {
516
+ /** Filter to find records to delete */
517
+ filter: PackageEntitlementDeleteFilter;
518
+ };
519
+ export declare type DeleteManyPlansInput = {
520
+ /** Filter to find records to delete */
521
+ filter: PlanDeleteFilter;
522
+ };
523
+ export declare type DeleteManyPricesInput = {
524
+ /** Filter to find records to delete */
525
+ filter: PriceDeleteFilter;
526
+ };
527
+ export declare type DeleteManyProductsInput = {
528
+ /** Filter to find records to delete */
529
+ filter: ProductDeleteFilter;
530
+ };
531
+ export declare type DeleteManyPromotionalEntitlementsInput = {
532
+ /** Filter to find records to delete */
533
+ filter: PromotionalEntitlementDeleteFilter;
534
+ };
535
+ export declare type DeleteOneAddonInput = {
536
+ /** The id of the record to delete. */
537
+ id: Scalars['String'];
538
+ };
539
+ export declare type DeleteOneCustomerInput = {
540
+ /** The id of the record to delete. */
541
+ id: Scalars['String'];
542
+ };
543
+ export declare type DeleteOneEnvironmentInput = {
544
+ /** The id of the record to delete. */
545
+ id: Scalars['String'];
546
+ };
547
+ export declare type DeleteOneEventLogInput = {
548
+ /** The id of the record to delete. */
549
+ id: Scalars['String'];
550
+ };
551
+ export declare type DeleteOneFeatureInput = {
552
+ /** The id of the record to delete. */
553
+ id: Scalars['String'];
554
+ };
555
+ export declare type DeleteOneHookInput = {
556
+ /** The id of the record to delete. */
557
+ id: Scalars['String'];
558
+ };
559
+ export declare type DeleteOneIntegrationInput = {
560
+ /** The id of the record to delete. */
561
+ id: Scalars['String'];
562
+ };
563
+ export declare type DeleteOnePackageEntitlementInput = {
564
+ /** The id of the record to delete. */
565
+ id: Scalars['String'];
566
+ };
567
+ export declare type DeleteOnePlanInput = {
568
+ /** The id of the record to delete. */
569
+ id: Scalars['String'];
570
+ };
571
+ export declare type DeleteOnePriceInput = {
572
+ /** The id of the record to delete. */
573
+ id: Scalars['String'];
574
+ };
575
+ export declare type DeleteOneProductInput = {
576
+ /** The id of the record to delete. */
577
+ id: Scalars['String'];
578
+ };
579
+ export declare type DeleteOnePromotionalEntitlementInput = {
580
+ /** The id of the record to delete. */
581
+ id: Scalars['String'];
582
+ };
583
+ export declare type DiscardPackageDraftInput = {
584
+ environmentId: Scalars['String'];
585
+ refId: Scalars['String'];
586
+ };
587
+ export declare type EntitlementOptions = {
588
+ requestedUsage?: Maybe<Scalars['Float']>;
589
+ shouldTrack?: Maybe<Scalars['Boolean']>;
590
+ };
591
+ /** Entitlement reset period. */
592
+ export declare enum EntitlementResetPeriod {
593
+ Day = "DAY",
594
+ Hour = "HOUR",
595
+ Month = "MONTH",
596
+ Week = "WEEK"
597
+ }
598
+ export declare type EnvironmentDeleteFilter = {
599
+ and?: Maybe<Array<EnvironmentDeleteFilter>>;
600
+ displayName?: Maybe<StringFieldComparison>;
601
+ id?: Maybe<StringFieldComparison>;
602
+ or?: Maybe<Array<EnvironmentDeleteFilter>>;
603
+ };
604
+ export declare type EnvironmentFilter = {
605
+ and?: Maybe<Array<EnvironmentFilter>>;
606
+ displayName?: Maybe<StringFieldComparison>;
607
+ id?: Maybe<StringFieldComparison>;
608
+ or?: Maybe<Array<EnvironmentFilter>>;
609
+ };
610
+ export declare type EnvironmentSort = {
611
+ direction: SortDirection;
612
+ field: EnvironmentSortFields;
613
+ nulls?: Maybe<SortNulls>;
614
+ };
615
+ export declare enum EnvironmentSortFields {
616
+ DisplayName = "displayName",
617
+ Id = "id"
618
+ }
619
+ export declare type EnvironmentUpdateFilter = {
620
+ and?: Maybe<Array<EnvironmentUpdateFilter>>;
621
+ displayName?: Maybe<StringFieldComparison>;
622
+ id?: Maybe<StringFieldComparison>;
623
+ or?: Maybe<Array<EnvironmentUpdateFilter>>;
624
+ };
625
+ /** error codes */
626
+ export declare enum ErrorCode {
627
+ AddonNotFound = "AddonNotFound",
628
+ CheckoutIsNotSupported = "CheckoutIsNotSupported",
629
+ CustomerNotFound = "CustomerNotFound",
630
+ DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
631
+ EnvironmentMissing = "EnvironmentMissing",
632
+ FeatureNotFound = "FeatureNotFound",
633
+ IdentityForbidden = "IdentityForbidden",
634
+ IntegrityViolation = "IntegrityViolation",
635
+ InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
636
+ InvalidMemberDelete = "InvalidMemberDelete",
637
+ InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
638
+ MemberInvitationError = "MemberInvitationError",
639
+ MemberNotFound = "MemberNotFound",
640
+ MeteringNotAvailableForFeatureType = "MeteringNotAvailableForFeatureType",
641
+ NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription",
642
+ PackageAlreadyPublished = "PackageAlreadyPublished",
643
+ PlanAlreadyExtended = "PlanAlreadyExtended",
644
+ PlanNotFound = "PlanNotFound",
645
+ PlansCircularDependencyError = "PlansCircularDependencyError",
646
+ PriceNotFound = "PriceNotFound",
647
+ TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
648
+ UnPublishedPackage = "UnPublishedPackage",
649
+ UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon",
650
+ UnexpectedError = "UnexpectedError",
651
+ UnsupportedFeatureType = "UnsupportedFeatureType",
652
+ UnsupportedVendorIdentifier = "UnsupportedVendorIdentifier"
653
+ }
654
+ export declare type EventLogDeleteFilter = {
655
+ and?: Maybe<Array<EventLogDeleteFilter>>;
656
+ environmentId?: Maybe<StringFieldComparison>;
657
+ id?: Maybe<StringFieldComparison>;
658
+ or?: Maybe<Array<EventLogDeleteFilter>>;
659
+ };
660
+ export declare type EventLogFilter = {
661
+ and?: Maybe<Array<EventLogFilter>>;
662
+ environmentId?: Maybe<StringFieldComparison>;
663
+ id?: Maybe<StringFieldComparison>;
664
+ or?: Maybe<Array<EventLogFilter>>;
665
+ };
666
+ export declare type EventLogSort = {
667
+ direction: SortDirection;
668
+ field: EventLogSortFields;
669
+ nulls?: Maybe<SortNulls>;
670
+ };
671
+ export declare enum EventLogSortFields {
672
+ EnvironmentId = "environmentId",
673
+ Id = "id"
674
+ }
675
+ /** EventLogType */
676
+ export declare enum EventLogType {
677
+ AddonCreated = "ADDON_CREATED",
678
+ AddonDeleted = "ADDON_DELETED",
679
+ AddonUpdated = "ADDON_UPDATED",
680
+ CustomerCreated = "CUSTOMER_CREATED",
681
+ CustomerDeleted = "CUSTOMER_DELETED",
682
+ CustomerUpdated = "CUSTOMER_UPDATED",
683
+ EntitlementDenied = "ENTITLEMENT_DENIED",
684
+ EntitlementGranted = "ENTITLEMENT_GRANTED",
685
+ EntitlementRequested = "ENTITLEMENT_REQUESTED",
686
+ FeatureCreated = "FEATURE_CREATED",
687
+ FeatureDeleted = "FEATURE_DELETED",
688
+ FeatureUpdated = "FEATURE_UPDATED",
689
+ MeasurementReported = "MEASUREMENT_REPORTED",
690
+ PackagePublished = "PACKAGE_PUBLISHED",
691
+ PlanCreated = "PLAN_CREATED",
692
+ PlanDeleted = "PLAN_DELETED",
693
+ PlanUpdated = "PLAN_UPDATED",
694
+ PromotionalEntitlementExpired = "PROMOTIONAL_ENTITLEMENT_EXPIRED",
695
+ PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
696
+ PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
697
+ PromotionalEntitlementUpdated = "PROMOTIONAL_ENTITLEMENT_UPDATED",
698
+ SubscriptionCanceled = "SUBSCRIPTION_CANCELED",
699
+ SubscriptionCreated = "SUBSCRIPTION_CREATED",
700
+ SubscriptionExpired = "SUBSCRIPTION_EXPIRED",
701
+ SubscriptionTrialConverted = "SUBSCRIPTION_TRIAL_CONVERTED",
702
+ SubscriptionTrialEndsSoon = "SUBSCRIPTION_TRIAL_ENDS_SOON",
703
+ SubscriptionTrialExpired = "SUBSCRIPTION_TRIAL_EXPIRED",
704
+ SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
705
+ SubscriptionUpdated = "SUBSCRIPTION_UPDATED"
706
+ }
707
+ export declare type FeatureFilter = {
708
+ and?: Maybe<Array<FeatureFilter>>;
709
+ createdAt?: Maybe<DateFieldComparison>;
710
+ description?: Maybe<StringFieldComparison>;
711
+ displayName?: Maybe<StringFieldComparison>;
712
+ environmentId?: Maybe<StringFieldComparison>;
713
+ featureStatus?: Maybe<FeatureStatusFilterComparison>;
714
+ featureType?: Maybe<FeatureTypeFilterComparison>;
715
+ id?: Maybe<StringFieldComparison>;
716
+ meterType?: Maybe<MeterTypeFilterComparison>;
717
+ or?: Maybe<Array<FeatureFilter>>;
718
+ refId?: Maybe<StringFieldComparison>;
719
+ updatedAt?: Maybe<DateFieldComparison>;
720
+ };
721
+ export declare type FeatureSort = {
722
+ direction: SortDirection;
723
+ field: FeatureSortFields;
724
+ nulls?: Maybe<SortNulls>;
725
+ };
726
+ export declare enum FeatureSortFields {
727
+ CreatedAt = "createdAt",
728
+ Description = "description",
729
+ DisplayName = "displayName",
730
+ EnvironmentId = "environmentId",
731
+ FeatureStatus = "featureStatus",
732
+ FeatureType = "featureType",
733
+ Id = "id",
734
+ MeterType = "meterType",
735
+ RefId = "refId",
736
+ UpdatedAt = "updatedAt"
737
+ }
738
+ /** Feature status. */
739
+ export declare enum FeatureStatus {
740
+ Active = "ACTIVE",
741
+ New = "NEW",
742
+ Suspended = "SUSPENDED"
743
+ }
744
+ export declare type FeatureStatusFilterComparison = {
745
+ eq?: Maybe<FeatureStatus>;
746
+ gt?: Maybe<FeatureStatus>;
747
+ gte?: Maybe<FeatureStatus>;
748
+ iLike?: Maybe<FeatureStatus>;
749
+ in?: Maybe<Array<FeatureStatus>>;
750
+ is?: Maybe<Scalars['Boolean']>;
751
+ isNot?: Maybe<Scalars['Boolean']>;
752
+ like?: Maybe<FeatureStatus>;
753
+ lt?: Maybe<FeatureStatus>;
754
+ lte?: Maybe<FeatureStatus>;
755
+ neq?: Maybe<FeatureStatus>;
756
+ notILike?: Maybe<FeatureStatus>;
757
+ notIn?: Maybe<Array<FeatureStatus>>;
758
+ notLike?: Maybe<FeatureStatus>;
759
+ };
760
+ /** The type of the feature */
761
+ export declare enum FeatureType {
762
+ Boolean = "BOOLEAN",
763
+ Number = "NUMBER"
764
+ }
765
+ export declare type FeatureTypeFilterComparison = {
766
+ eq?: Maybe<FeatureType>;
767
+ gt?: Maybe<FeatureType>;
768
+ gte?: Maybe<FeatureType>;
769
+ iLike?: Maybe<FeatureType>;
770
+ in?: Maybe<Array<FeatureType>>;
771
+ is?: Maybe<Scalars['Boolean']>;
772
+ isNot?: Maybe<Scalars['Boolean']>;
773
+ like?: Maybe<FeatureType>;
774
+ lt?: Maybe<FeatureType>;
775
+ lte?: Maybe<FeatureType>;
776
+ neq?: Maybe<FeatureType>;
777
+ notILike?: Maybe<FeatureType>;
778
+ notIn?: Maybe<Array<FeatureType>>;
779
+ notLike?: Maybe<FeatureType>;
780
+ };
781
+ export declare type FetchEntitlementQuery = {
782
+ customerId: Scalars['String'];
783
+ environmentId?: Maybe<Scalars['String']>;
784
+ featureId: Scalars['String'];
785
+ options?: Maybe<EntitlementOptions>;
786
+ };
787
+ export declare type FetchEntitlementsQuery = {
788
+ customerId: Scalars['String'];
789
+ environmentId?: Maybe<Scalars['String']>;
790
+ };
791
+ export declare type GetPackageByRefIdInput = {
792
+ environmentId: Scalars['String'];
793
+ refId: Scalars['String'];
794
+ versionNumber?: Maybe<Scalars['Float']>;
795
+ };
796
+ export declare type HookDeleteFilter = {
797
+ and?: Maybe<Array<HookDeleteFilter>>;
798
+ createdAt?: Maybe<DateFieldComparison>;
799
+ endpoint?: Maybe<StringFieldComparison>;
800
+ environmentId?: Maybe<StringFieldComparison>;
801
+ id?: Maybe<StringFieldComparison>;
802
+ or?: Maybe<Array<HookDeleteFilter>>;
803
+ status?: Maybe<HookStatusFilterComparison>;
804
+ };
805
+ export declare type HookFilter = {
806
+ and?: Maybe<Array<HookFilter>>;
807
+ createdAt?: Maybe<DateFieldComparison>;
808
+ endpoint?: Maybe<StringFieldComparison>;
809
+ environmentId?: Maybe<StringFieldComparison>;
810
+ id?: Maybe<StringFieldComparison>;
811
+ or?: Maybe<Array<HookFilter>>;
812
+ status?: Maybe<HookStatusFilterComparison>;
813
+ };
814
+ export declare type HookSort = {
815
+ direction: SortDirection;
816
+ field: HookSortFields;
817
+ nulls?: Maybe<SortNulls>;
818
+ };
819
+ export declare enum HookSortFields {
820
+ CreatedAt = "createdAt",
821
+ Endpoint = "endpoint",
822
+ EnvironmentId = "environmentId",
823
+ Id = "id",
824
+ Status = "status"
825
+ }
826
+ /** HookStatus. */
827
+ export declare enum HookStatus {
828
+ Active = "ACTIVE",
829
+ Inactive = "INACTIVE"
830
+ }
831
+ export declare type HookStatusFilterComparison = {
832
+ eq?: Maybe<HookStatus>;
833
+ gt?: Maybe<HookStatus>;
834
+ gte?: Maybe<HookStatus>;
835
+ iLike?: Maybe<HookStatus>;
836
+ in?: Maybe<Array<HookStatus>>;
837
+ is?: Maybe<Scalars['Boolean']>;
838
+ isNot?: Maybe<Scalars['Boolean']>;
839
+ like?: Maybe<HookStatus>;
840
+ lt?: Maybe<HookStatus>;
841
+ lte?: Maybe<HookStatus>;
842
+ neq?: Maybe<HookStatus>;
843
+ notILike?: Maybe<HookStatus>;
844
+ notIn?: Maybe<Array<HookStatus>>;
845
+ notLike?: Maybe<HookStatus>;
846
+ };
847
+ export declare type HookUpdateFilter = {
848
+ and?: Maybe<Array<HookUpdateFilter>>;
849
+ createdAt?: Maybe<DateFieldComparison>;
850
+ endpoint?: Maybe<StringFieldComparison>;
851
+ environmentId?: Maybe<StringFieldComparison>;
852
+ id?: Maybe<StringFieldComparison>;
853
+ or?: Maybe<Array<HookUpdateFilter>>;
854
+ status?: Maybe<HookStatusFilterComparison>;
855
+ };
856
+ export declare type InitiateCheckoutInput = {
857
+ addons?: Maybe<Array<CheckoutAddonInput>>;
858
+ billingPeriod: BillingPeriod;
859
+ cancelUrl: Scalars['String'];
860
+ customerId: Scalars['String'];
861
+ environmentId?: Maybe<Scalars['String']>;
862
+ planId: Scalars['String'];
863
+ successUrl: Scalars['String'];
864
+ };
865
+ export declare type IntFieldComparison = {
866
+ between?: Maybe<IntFieldComparisonBetween>;
867
+ eq?: Maybe<Scalars['Int']>;
868
+ gt?: Maybe<Scalars['Int']>;
869
+ gte?: Maybe<Scalars['Int']>;
870
+ in?: Maybe<Array<Scalars['Int']>>;
871
+ is?: Maybe<Scalars['Boolean']>;
872
+ isNot?: Maybe<Scalars['Boolean']>;
873
+ lt?: Maybe<Scalars['Int']>;
874
+ lte?: Maybe<Scalars['Int']>;
875
+ neq?: Maybe<Scalars['Int']>;
876
+ notBetween?: Maybe<IntFieldComparisonBetween>;
877
+ notIn?: Maybe<Array<Scalars['Int']>>;
878
+ };
879
+ export declare type IntFieldComparisonBetween = {
880
+ lower: Scalars['Int'];
881
+ upper: Scalars['Int'];
882
+ };
883
+ export declare type IntegrationDeleteFilter = {
884
+ and?: Maybe<Array<IntegrationDeleteFilter>>;
885
+ environmentId?: Maybe<StringFieldComparison>;
886
+ id?: Maybe<StringFieldComparison>;
887
+ or?: Maybe<Array<IntegrationDeleteFilter>>;
888
+ vendorIdentifier?: Maybe<VendorIdentifierFilterComparison>;
889
+ };
890
+ export declare type IntegrationFilter = {
891
+ and?: Maybe<Array<IntegrationFilter>>;
892
+ environmentId?: Maybe<StringFieldComparison>;
893
+ id?: Maybe<StringFieldComparison>;
894
+ or?: Maybe<Array<IntegrationFilter>>;
895
+ vendorIdentifier?: Maybe<VendorIdentifierFilterComparison>;
896
+ };
897
+ export declare type IntegrationSort = {
898
+ direction: SortDirection;
899
+ field: IntegrationSortFields;
900
+ nulls?: Maybe<SortNulls>;
901
+ };
902
+ export declare enum IntegrationSortFields {
903
+ EnvironmentId = "environmentId",
904
+ Id = "id",
905
+ VendorIdentifier = "vendorIdentifier"
906
+ }
907
+ export declare type IntegrationUpdateFilter = {
908
+ and?: Maybe<Array<IntegrationUpdateFilter>>;
909
+ environmentId?: Maybe<StringFieldComparison>;
910
+ id?: Maybe<StringFieldComparison>;
911
+ or?: Maybe<Array<IntegrationUpdateFilter>>;
912
+ vendorIdentifier?: Maybe<VendorIdentifierFilterComparison>;
913
+ };
914
+ export declare type MemberFilter = {
915
+ and?: Maybe<Array<MemberFilter>>;
916
+ id?: Maybe<StringFieldComparison>;
917
+ or?: Maybe<Array<MemberFilter>>;
918
+ };
919
+ export declare type MemberSort = {
920
+ direction: SortDirection;
921
+ field: MemberSortFields;
922
+ nulls?: Maybe<SortNulls>;
923
+ };
924
+ export declare enum MemberSortFields {
925
+ Id = "id"
926
+ }
927
+ /** Member Status. */
928
+ export declare enum MemberStatus {
929
+ Invited = "INVITED",
930
+ Registered = "REGISTERED"
931
+ }
932
+ /** The meter type of the feature */
933
+ export declare enum MeterType {
934
+ Fluctuating = "Fluctuating",
935
+ Incremental = "Incremental",
936
+ None = "None"
937
+ }
938
+ export declare type MeterTypeFilterComparison = {
939
+ eq?: Maybe<MeterType>;
940
+ gt?: Maybe<MeterType>;
941
+ gte?: Maybe<MeterType>;
942
+ iLike?: Maybe<MeterType>;
943
+ in?: Maybe<Array<MeterType>>;
944
+ is?: Maybe<Scalars['Boolean']>;
945
+ isNot?: Maybe<Scalars['Boolean']>;
946
+ like?: Maybe<MeterType>;
947
+ lt?: Maybe<MeterType>;
948
+ lte?: Maybe<MeterType>;
949
+ neq?: Maybe<MeterType>;
950
+ notILike?: Maybe<MeterType>;
951
+ notIn?: Maybe<Array<MeterType>>;
952
+ notLike?: Maybe<MeterType>;
953
+ };
954
+ export declare type MoneyInputDto = {
955
+ amount: Scalars['Float'];
956
+ currency?: Maybe<Currency>;
957
+ };
958
+ /** Montly reset period according to configuration */
959
+ export declare enum MonthlyAccordingTo {
960
+ StartOfTheMonth = "StartOfTheMonth",
961
+ SubscriptionStart = "SubscriptionStart"
962
+ }
963
+ export declare type MonthlyResetPeriodConfigInput = {
964
+ accordingTo: MonthlyAccordingTo;
965
+ };
966
+ export declare type NumberFieldComparison = {
967
+ between?: Maybe<NumberFieldComparisonBetween>;
968
+ eq?: Maybe<Scalars['Float']>;
969
+ gt?: Maybe<Scalars['Float']>;
970
+ gte?: Maybe<Scalars['Float']>;
971
+ in?: Maybe<Array<Scalars['Float']>>;
972
+ is?: Maybe<Scalars['Boolean']>;
973
+ isNot?: Maybe<Scalars['Boolean']>;
974
+ lt?: Maybe<Scalars['Float']>;
975
+ lte?: Maybe<Scalars['Float']>;
976
+ neq?: Maybe<Scalars['Float']>;
977
+ notBetween?: Maybe<NumberFieldComparisonBetween>;
978
+ notIn?: Maybe<Array<Scalars['Float']>>;
979
+ };
980
+ export declare type NumberFieldComparisonBetween = {
981
+ lower: Scalars['Float'];
982
+ upper: Scalars['Float'];
983
+ };
984
+ export declare type PackageEntitlementDeleteFilter = {
985
+ and?: Maybe<Array<PackageEntitlementDeleteFilter>>;
986
+ createdAt?: Maybe<DateFieldComparison>;
987
+ environmentId?: Maybe<StringFieldComparison>;
988
+ id?: Maybe<StringFieldComparison>;
989
+ or?: Maybe<Array<PackageEntitlementDeleteFilter>>;
990
+ packageId?: Maybe<StringFieldComparison>;
991
+ updatedAt?: Maybe<DateFieldComparison>;
992
+ };
993
+ export declare type PackageEntitlementFilter = {
994
+ and?: Maybe<Array<PackageEntitlementFilter>>;
995
+ createdAt?: Maybe<DateFieldComparison>;
996
+ environmentId?: Maybe<StringFieldComparison>;
997
+ feature?: Maybe<PackageEntitlementFilterFeatureFilter>;
998
+ id?: Maybe<StringFieldComparison>;
999
+ or?: Maybe<Array<PackageEntitlementFilter>>;
1000
+ package?: Maybe<PackageEntitlementFilterPackageDtoFilter>;
1001
+ packageId?: Maybe<StringFieldComparison>;
1002
+ updatedAt?: Maybe<DateFieldComparison>;
1003
+ };
1004
+ export declare type PackageEntitlementFilterFeatureFilter = {
1005
+ and?: Maybe<Array<PackageEntitlementFilterFeatureFilter>>;
1006
+ createdAt?: Maybe<DateFieldComparison>;
1007
+ description?: Maybe<StringFieldComparison>;
1008
+ displayName?: Maybe<StringFieldComparison>;
1009
+ environmentId?: Maybe<StringFieldComparison>;
1010
+ featureStatus?: Maybe<FeatureStatusFilterComparison>;
1011
+ featureType?: Maybe<FeatureTypeFilterComparison>;
1012
+ id?: Maybe<StringFieldComparison>;
1013
+ meterType?: Maybe<MeterTypeFilterComparison>;
1014
+ or?: Maybe<Array<PackageEntitlementFilterFeatureFilter>>;
1015
+ refId?: Maybe<StringFieldComparison>;
1016
+ updatedAt?: Maybe<DateFieldComparison>;
1017
+ };
1018
+ export declare type PackageEntitlementFilterPackageDtoFilter = {
1019
+ and?: Maybe<Array<PackageEntitlementFilterPackageDtoFilter>>;
1020
+ billingId?: Maybe<StringFieldComparison>;
1021
+ createdAt?: Maybe<DateFieldComparison>;
1022
+ description?: Maybe<StringFieldComparison>;
1023
+ displayName?: Maybe<StringFieldComparison>;
1024
+ environmentId?: Maybe<StringFieldComparison>;
1025
+ id?: Maybe<StringFieldComparison>;
1026
+ isLatest?: Maybe<BooleanFieldComparison>;
1027
+ or?: Maybe<Array<PackageEntitlementFilterPackageDtoFilter>>;
1028
+ productId?: Maybe<StringFieldComparison>;
1029
+ refId?: Maybe<StringFieldComparison>;
1030
+ status?: Maybe<PackageStatusFilterComparison>;
1031
+ updatedAt?: Maybe<DateFieldComparison>;
1032
+ versionNumber?: Maybe<IntFieldComparison>;
1033
+ };
1034
+ export declare type PackageEntitlementInput = {
1035
+ description?: Maybe<Scalars['String']>;
1036
+ environmentId: Scalars['String'];
1037
+ featureId: Scalars['String'];
1038
+ hasUnlimitedUsage?: Maybe<Scalars['Boolean']>;
1039
+ monthlyResetPeriodConfiguration?: Maybe<MonthlyResetPeriodConfigInput>;
1040
+ packageId: Scalars['String'];
1041
+ resetPeriod?: Maybe<EntitlementResetPeriod>;
1042
+ usageLimit?: Maybe<Scalars['Float']>;
1043
+ weeklyResetPeriodConfiguration?: Maybe<WeeklyResetPeriodConfigInput>;
1044
+ };
1045
+ export declare type PackageEntitlementSort = {
1046
+ direction: SortDirection;
1047
+ field: PackageEntitlementSortFields;
1048
+ nulls?: Maybe<SortNulls>;
1049
+ };
1050
+ export declare enum PackageEntitlementSortFields {
1051
+ CreatedAt = "createdAt",
1052
+ EnvironmentId = "environmentId",
1053
+ Id = "id",
1054
+ PackageId = "packageId",
1055
+ UpdatedAt = "updatedAt"
1056
+ }
1057
+ export declare type PackageEntitlementUpdateFilter = {
1058
+ and?: Maybe<Array<PackageEntitlementUpdateFilter>>;
1059
+ createdAt?: Maybe<DateFieldComparison>;
1060
+ environmentId?: Maybe<StringFieldComparison>;
1061
+ id?: Maybe<StringFieldComparison>;
1062
+ or?: Maybe<Array<PackageEntitlementUpdateFilter>>;
1063
+ packageId?: Maybe<StringFieldComparison>;
1064
+ updatedAt?: Maybe<DateFieldComparison>;
1065
+ };
1066
+ export declare type PackageEntitlementUpdateInput = {
1067
+ description?: Maybe<Scalars['String']>;
1068
+ hasUnlimitedUsage?: Maybe<Scalars['Boolean']>;
1069
+ monthlyResetPeriodConfiguration?: Maybe<MonthlyResetPeriodConfigInput>;
1070
+ resetPeriod?: Maybe<EntitlementResetPeriod>;
1071
+ usageLimit?: Maybe<Scalars['Float']>;
1072
+ weeklyResetPeriodConfiguration?: Maybe<WeeklyResetPeriodConfigInput>;
1073
+ };
1074
+ export declare type PackagePublishInput = {
1075
+ id: Scalars['ID'];
1076
+ migrationType: PublishMigrationType;
1077
+ };
1078
+ /** Package status. */
1079
+ export declare enum PackageStatus {
1080
+ Draft = "DRAFT",
1081
+ Published = "PUBLISHED"
1082
+ }
1083
+ export declare type PackageStatusFilterComparison = {
1084
+ eq?: Maybe<PackageStatus>;
1085
+ gt?: Maybe<PackageStatus>;
1086
+ gte?: Maybe<PackageStatus>;
1087
+ iLike?: Maybe<PackageStatus>;
1088
+ in?: Maybe<Array<PackageStatus>>;
1089
+ is?: Maybe<Scalars['Boolean']>;
1090
+ isNot?: Maybe<Scalars['Boolean']>;
1091
+ like?: Maybe<PackageStatus>;
1092
+ lt?: Maybe<PackageStatus>;
1093
+ lte?: Maybe<PackageStatus>;
1094
+ neq?: Maybe<PackageStatus>;
1095
+ notILike?: Maybe<PackageStatus>;
1096
+ notIn?: Maybe<Array<PackageStatus>>;
1097
+ notLike?: Maybe<PackageStatus>;
1098
+ };
1099
+ export declare type PlanCreateInput = {
1100
+ billingId?: Maybe<Scalars['String']>;
1101
+ description?: Maybe<Scalars['String']>;
1102
+ displayName: Scalars['String'];
1103
+ environmentId: Scalars['String'];
1104
+ parentPlanId?: Maybe<Scalars['String']>;
1105
+ productId: Scalars['String'];
1106
+ refId: Scalars['String'];
1107
+ status?: Maybe<PackageStatus>;
1108
+ };
1109
+ export declare type PlanDeleteFilter = {
1110
+ and?: Maybe<Array<PlanDeleteFilter>>;
1111
+ billingId?: Maybe<StringFieldComparison>;
1112
+ createdAt?: Maybe<DateFieldComparison>;
1113
+ description?: Maybe<StringFieldComparison>;
1114
+ displayName?: Maybe<StringFieldComparison>;
1115
+ environmentId?: Maybe<StringFieldComparison>;
1116
+ id?: Maybe<StringFieldComparison>;
1117
+ isLatest?: Maybe<BooleanFieldComparison>;
1118
+ or?: Maybe<Array<PlanDeleteFilter>>;
1119
+ productId?: Maybe<StringFieldComparison>;
1120
+ refId?: Maybe<StringFieldComparison>;
1121
+ status?: Maybe<PackageStatusFilterComparison>;
1122
+ updatedAt?: Maybe<DateFieldComparison>;
1123
+ versionNumber?: Maybe<IntFieldComparison>;
1124
+ };
1125
+ export declare type PlanFilter = {
1126
+ and?: Maybe<Array<PlanFilter>>;
1127
+ billingId?: Maybe<StringFieldComparison>;
1128
+ createdAt?: Maybe<DateFieldComparison>;
1129
+ description?: Maybe<StringFieldComparison>;
1130
+ displayName?: Maybe<StringFieldComparison>;
1131
+ environmentId?: Maybe<StringFieldComparison>;
1132
+ id?: Maybe<StringFieldComparison>;
1133
+ isLatest?: Maybe<BooleanFieldComparison>;
1134
+ or?: Maybe<Array<PlanFilter>>;
1135
+ productId?: Maybe<StringFieldComparison>;
1136
+ refId?: Maybe<StringFieldComparison>;
1137
+ status?: Maybe<PackageStatusFilterComparison>;
1138
+ updatedAt?: Maybe<DateFieldComparison>;
1139
+ versionNumber?: Maybe<IntFieldComparison>;
1140
+ };
1141
+ export declare type PlanSort = {
1142
+ direction: SortDirection;
1143
+ field: PlanSortFields;
1144
+ nulls?: Maybe<SortNulls>;
1145
+ };
1146
+ export declare enum PlanSortFields {
1147
+ BillingId = "billingId",
1148
+ CreatedAt = "createdAt",
1149
+ Description = "description",
1150
+ DisplayName = "displayName",
1151
+ EnvironmentId = "environmentId",
1152
+ Id = "id",
1153
+ IsLatest = "isLatest",
1154
+ ProductId = "productId",
1155
+ RefId = "refId",
1156
+ Status = "status",
1157
+ UpdatedAt = "updatedAt",
1158
+ VersionNumber = "versionNumber"
1159
+ }
1160
+ export declare type PlanUpdateInput = {
1161
+ billingId?: Maybe<Scalars['String']>;
1162
+ defaultTrialConfig?: Maybe<DefaultTrialConfigInputDto>;
1163
+ description?: Maybe<Scalars['String']>;
1164
+ displayName?: Maybe<Scalars['String']>;
1165
+ id: Scalars['String'];
1166
+ parentPlanId?: Maybe<Scalars['String']>;
1167
+ status?: Maybe<PackageStatus>;
1168
+ };
1169
+ export declare type PriceCreateInput = {
1170
+ billingModel: BillingModel;
1171
+ billingPeriod: BillingPeriod;
1172
+ environmentId: Scalars['String'];
1173
+ featureId?: Maybe<Scalars['String']>;
1174
+ packageId: Scalars['String'];
1175
+ price: MoneyInputDto;
1176
+ };
1177
+ export declare type PriceDeleteFilter = {
1178
+ and?: Maybe<Array<PriceDeleteFilter>>;
1179
+ billingModel?: Maybe<BillingModelFilterComparison>;
1180
+ billingPeriod?: Maybe<BillingPeriodFilterComparison>;
1181
+ id?: Maybe<StringFieldComparison>;
1182
+ or?: Maybe<Array<PriceDeleteFilter>>;
1183
+ };
1184
+ export declare type PriceFilter = {
1185
+ and?: Maybe<Array<PriceFilter>>;
1186
+ billingModel?: Maybe<BillingModelFilterComparison>;
1187
+ billingPeriod?: Maybe<BillingPeriodFilterComparison>;
1188
+ id?: Maybe<StringFieldComparison>;
1189
+ or?: Maybe<Array<PriceFilter>>;
1190
+ package?: Maybe<PriceFilterPackageDtoFilter>;
1191
+ };
1192
+ export declare type PriceFilterPackageDtoFilter = {
1193
+ and?: Maybe<Array<PriceFilterPackageDtoFilter>>;
1194
+ billingId?: Maybe<StringFieldComparison>;
1195
+ createdAt?: Maybe<DateFieldComparison>;
1196
+ description?: Maybe<StringFieldComparison>;
1197
+ displayName?: Maybe<StringFieldComparison>;
1198
+ environmentId?: Maybe<StringFieldComparison>;
1199
+ id?: Maybe<StringFieldComparison>;
1200
+ isLatest?: Maybe<BooleanFieldComparison>;
1201
+ or?: Maybe<Array<PriceFilterPackageDtoFilter>>;
1202
+ productId?: Maybe<StringFieldComparison>;
1203
+ refId?: Maybe<StringFieldComparison>;
1204
+ status?: Maybe<PackageStatusFilterComparison>;
1205
+ updatedAt?: Maybe<DateFieldComparison>;
1206
+ versionNumber?: Maybe<IntFieldComparison>;
1207
+ };
1208
+ export declare type PriceSort = {
1209
+ direction: SortDirection;
1210
+ field: PriceSortFields;
1211
+ nulls?: Maybe<SortNulls>;
1212
+ };
1213
+ export declare enum PriceSortFields {
1214
+ BillingModel = "billingModel",
1215
+ BillingPeriod = "billingPeriod",
1216
+ Id = "id"
1217
+ }
1218
+ export declare type PriceUpdateInput = {
1219
+ billingModel: BillingModel;
1220
+ billingPeriod: BillingPeriod;
1221
+ environmentId: Scalars['String'];
1222
+ featureId?: Maybe<Scalars['String']>;
1223
+ id: Scalars['String'];
1224
+ packageId: Scalars['String'];
1225
+ price: MoneyInputDto;
1226
+ };
1227
+ export declare type ProductCreateInput = {
1228
+ description?: Maybe<Scalars['String']>;
1229
+ displayName?: Maybe<Scalars['String']>;
1230
+ environmentId: Scalars['String'];
1231
+ refId: Scalars['String'];
1232
+ };
1233
+ export declare type ProductDeleteFilter = {
1234
+ and?: Maybe<Array<ProductDeleteFilter>>;
1235
+ createdAt?: Maybe<DateFieldComparison>;
1236
+ description?: Maybe<StringFieldComparison>;
1237
+ displayName?: Maybe<StringFieldComparison>;
1238
+ environmentId?: Maybe<StringFieldComparison>;
1239
+ id?: Maybe<StringFieldComparison>;
1240
+ isDefaultProduct?: Maybe<BooleanFieldComparison>;
1241
+ or?: Maybe<Array<ProductDeleteFilter>>;
1242
+ refId?: Maybe<StringFieldComparison>;
1243
+ updatedAt?: Maybe<DateFieldComparison>;
1244
+ };
1245
+ export declare type ProductFilter = {
1246
+ and?: Maybe<Array<ProductFilter>>;
1247
+ createdAt?: Maybe<DateFieldComparison>;
1248
+ description?: Maybe<StringFieldComparison>;
1249
+ displayName?: Maybe<StringFieldComparison>;
1250
+ environmentId?: Maybe<StringFieldComparison>;
1251
+ id?: Maybe<StringFieldComparison>;
1252
+ isDefaultProduct?: Maybe<BooleanFieldComparison>;
1253
+ or?: Maybe<Array<ProductFilter>>;
1254
+ refId?: Maybe<StringFieldComparison>;
1255
+ updatedAt?: Maybe<DateFieldComparison>;
1256
+ };
1257
+ export declare type ProductSort = {
1258
+ direction: SortDirection;
1259
+ field: ProductSortFields;
1260
+ nulls?: Maybe<SortNulls>;
1261
+ };
1262
+ export declare enum ProductSortFields {
1263
+ CreatedAt = "createdAt",
1264
+ Description = "description",
1265
+ DisplayName = "displayName",
1266
+ EnvironmentId = "environmentId",
1267
+ Id = "id",
1268
+ IsDefaultProduct = "isDefaultProduct",
1269
+ RefId = "refId",
1270
+ UpdatedAt = "updatedAt"
1271
+ }
1272
+ export declare type ProductUpdateFilter = {
1273
+ and?: Maybe<Array<ProductUpdateFilter>>;
1274
+ createdAt?: Maybe<DateFieldComparison>;
1275
+ description?: Maybe<StringFieldComparison>;
1276
+ displayName?: Maybe<StringFieldComparison>;
1277
+ environmentId?: Maybe<StringFieldComparison>;
1278
+ id?: Maybe<StringFieldComparison>;
1279
+ isDefaultProduct?: Maybe<BooleanFieldComparison>;
1280
+ or?: Maybe<Array<ProductUpdateFilter>>;
1281
+ refId?: Maybe<StringFieldComparison>;
1282
+ updatedAt?: Maybe<DateFieldComparison>;
1283
+ };
1284
+ export declare type ProductUpdateInput = {
1285
+ description?: Maybe<Scalars['String']>;
1286
+ displayName?: Maybe<Scalars['String']>;
1287
+ downgradePlanId?: Maybe<Scalars['String']>;
1288
+ trialSetup?: Maybe<TrialSetup>;
1289
+ };
1290
+ export declare type PromotionalEntitlementDeleteFilter = {
1291
+ and?: Maybe<Array<PromotionalEntitlementDeleteFilter>>;
1292
+ createdAt?: Maybe<DateFieldComparison>;
1293
+ environmentId?: Maybe<StringFieldComparison>;
1294
+ id?: Maybe<StringFieldComparison>;
1295
+ or?: Maybe<Array<PromotionalEntitlementDeleteFilter>>;
1296
+ status?: Maybe<PromotionalEntitlementStatusFilterComparison>;
1297
+ updatedAt?: Maybe<DateFieldComparison>;
1298
+ };
1299
+ export declare type PromotionalEntitlementFilter = {
1300
+ and?: Maybe<Array<PromotionalEntitlementFilter>>;
1301
+ createdAt?: Maybe<DateFieldComparison>;
1302
+ environmentId?: Maybe<StringFieldComparison>;
1303
+ id?: Maybe<StringFieldComparison>;
1304
+ or?: Maybe<Array<PromotionalEntitlementFilter>>;
1305
+ status?: Maybe<PromotionalEntitlementStatusFilterComparison>;
1306
+ updatedAt?: Maybe<DateFieldComparison>;
1307
+ };
1308
+ export declare type PromotionalEntitlementInput = {
1309
+ customerId: Scalars['String'];
1310
+ description?: Maybe<Scalars['String']>;
1311
+ endDate?: Maybe<Scalars['DateTime']>;
1312
+ environmentId: Scalars['String'];
1313
+ featureId: Scalars['String'];
1314
+ hasUnlimitedUsage?: Maybe<Scalars['Boolean']>;
1315
+ isVisible: Scalars['Boolean'];
1316
+ monthlyResetPeriodConfiguration?: Maybe<MonthlyResetPeriodConfigInput>;
1317
+ period: PromotionalEntitlementPeriod;
1318
+ resetPeriod?: Maybe<EntitlementResetPeriod>;
1319
+ usageLimit?: Maybe<Scalars['Float']>;
1320
+ weeklyResetPeriodConfiguration?: Maybe<WeeklyResetPeriodConfigInput>;
1321
+ };
1322
+ /** Promotional entitlement duration */
1323
+ export declare enum PromotionalEntitlementPeriod {
1324
+ Custom = "CUSTOM",
1325
+ Lifetime = "LIFETIME",
1326
+ OneMonth = "ONE_MONTH",
1327
+ OneWeek = "ONE_WEEK",
1328
+ OneYear = "ONE_YEAR",
1329
+ SixMonth = "SIX_MONTH"
1330
+ }
1331
+ export declare type PromotionalEntitlementSort = {
1332
+ direction: SortDirection;
1333
+ field: PromotionalEntitlementSortFields;
1334
+ nulls?: Maybe<SortNulls>;
1335
+ };
1336
+ export declare enum PromotionalEntitlementSortFields {
1337
+ CreatedAt = "createdAt",
1338
+ EnvironmentId = "environmentId",
1339
+ Id = "id",
1340
+ Status = "status",
1341
+ UpdatedAt = "updatedAt"
1342
+ }
1343
+ /** Promotional entitlement status */
1344
+ export declare enum PromotionalEntitlementStatus {
1345
+ Active = "Active",
1346
+ Expired = "Expired",
1347
+ Paused = "Paused"
1348
+ }
1349
+ export declare type PromotionalEntitlementStatusFilterComparison = {
1350
+ eq?: Maybe<PromotionalEntitlementStatus>;
1351
+ gt?: Maybe<PromotionalEntitlementStatus>;
1352
+ gte?: Maybe<PromotionalEntitlementStatus>;
1353
+ iLike?: Maybe<PromotionalEntitlementStatus>;
1354
+ in?: Maybe<Array<PromotionalEntitlementStatus>>;
1355
+ is?: Maybe<Scalars['Boolean']>;
1356
+ isNot?: Maybe<Scalars['Boolean']>;
1357
+ like?: Maybe<PromotionalEntitlementStatus>;
1358
+ lt?: Maybe<PromotionalEntitlementStatus>;
1359
+ lte?: Maybe<PromotionalEntitlementStatus>;
1360
+ neq?: Maybe<PromotionalEntitlementStatus>;
1361
+ notILike?: Maybe<PromotionalEntitlementStatus>;
1362
+ notIn?: Maybe<Array<PromotionalEntitlementStatus>>;
1363
+ notLike?: Maybe<PromotionalEntitlementStatus>;
1364
+ };
1365
+ export declare type PromotionalEntitlementUpdateFilter = {
1366
+ and?: Maybe<Array<PromotionalEntitlementUpdateFilter>>;
1367
+ createdAt?: Maybe<DateFieldComparison>;
1368
+ environmentId?: Maybe<StringFieldComparison>;
1369
+ id?: Maybe<StringFieldComparison>;
1370
+ or?: Maybe<Array<PromotionalEntitlementUpdateFilter>>;
1371
+ status?: Maybe<PromotionalEntitlementStatusFilterComparison>;
1372
+ updatedAt?: Maybe<DateFieldComparison>;
1373
+ };
1374
+ export declare type PromotionalEntitlementUpdateInput = {
1375
+ description?: Maybe<Scalars['String']>;
1376
+ endDate?: Maybe<Scalars['DateTime']>;
1377
+ hasUnlimitedUsage?: Maybe<Scalars['Boolean']>;
1378
+ isVisible: Scalars['Boolean'];
1379
+ monthlyResetPeriodConfiguration?: Maybe<MonthlyResetPeriodConfigInput>;
1380
+ period: PromotionalEntitlementPeriod;
1381
+ resetPeriod?: Maybe<EntitlementResetPeriod>;
1382
+ usageLimit?: Maybe<Scalars['Float']>;
1383
+ weeklyResetPeriodConfiguration?: Maybe<WeeklyResetPeriodConfigInput>;
1384
+ };
1385
+ /** PublishMigrationType */
1386
+ export declare enum PublishMigrationType {
1387
+ AllCustomers = "ALL_CUSTOMERS",
1388
+ NewCustomers = "NEW_CUSTOMERS"
1389
+ }
1390
+ export declare type RemoveAccountFromEnvironmentInput = {
1391
+ /** The id of the record. */
1392
+ id: Scalars['String'];
1393
+ /** The id of relation. */
1394
+ relationId: Scalars['String'];
1395
+ };
1396
+ export declare type RemoveAccountFromFeatureInput = {
1397
+ /** The id of the record. */
1398
+ id: Scalars['String'];
1399
+ /** The id of relation. */
1400
+ relationId: Scalars['String'];
1401
+ };
1402
+ export declare type RemoveAccountFromHookInput = {
1403
+ /** The id of the record. */
1404
+ id: Scalars['String'];
1405
+ /** The id of relation. */
1406
+ relationId: Scalars['String'];
1407
+ };
1408
+ export declare type RemoveAccountFromIntegrationInput = {
1409
+ /** The id of the record. */
1410
+ id: Scalars['String'];
1411
+ /** The id of relation. */
1412
+ relationId: Scalars['String'];
1413
+ };
1414
+ export declare type RemoveAccountFromMemberInput = {
1415
+ /** The id of the record. */
1416
+ id: Scalars['String'];
1417
+ /** The id of relation. */
1418
+ relationId: Scalars['String'];
1419
+ };
1420
+ export declare type RemoveAddonFromSubscriptionAddonInput = {
1421
+ /** The id of the record. */
1422
+ id: Scalars['String'];
1423
+ /** The id of relation. */
1424
+ relationId: Scalars['String'];
1425
+ };
1426
+ export declare type RemoveAddonsFromCustomerSubscriptionInput = {
1427
+ /** The id of the record. */
1428
+ id: Scalars['String'];
1429
+ /** The ids of the relations. */
1430
+ relationIds: Array<Scalars['String']>;
1431
+ };
1432
+ export declare type RemoveBasePlanFromPlanInput = {
1433
+ /** The id of the record. */
1434
+ id: Scalars['String'];
1435
+ /** The id of relation. */
1436
+ relationId: Scalars['String'];
1437
+ };
1438
+ export declare type RemoveCompatibleAddonsFromPlanInput = {
1439
+ /** The id of the record. */
1440
+ id: Scalars['String'];
1441
+ /** The ids of the relations. */
1442
+ relationIds: Array<Scalars['String']>;
1443
+ };
1444
+ export declare type RemoveCustomerFromCustomerSubscriptionInput = {
1445
+ /** The id of the record. */
1446
+ id: Scalars['String'];
1447
+ /** The id of relation. */
1448
+ relationId: Scalars['String'];
1449
+ };
1450
+ export declare type RemoveCustomerFromPromotionalEntitlementInput = {
1451
+ /** The id of the record. */
1452
+ id: Scalars['String'];
1453
+ /** The id of relation. */
1454
+ relationId: Scalars['String'];
1455
+ };
1456
+ export declare type RemoveCustomerFromUsageMeasurementInput = {
1457
+ /** The id of the record. */
1458
+ id: Scalars['String'];
1459
+ /** The id of relation. */
1460
+ relationId: Scalars['String'];
1461
+ };
1462
+ export declare type RemoveDowngradePlanFromProductInput = {
1463
+ /** The id of the record. */
1464
+ id: Scalars['String'];
1465
+ /** The id of relation. */
1466
+ relationId: Scalars['String'];
1467
+ };
1468
+ export declare type RemoveEnvironmentFromAddonInput = {
1469
+ /** The id of the record. */
1470
+ id: Scalars['String'];
1471
+ /** The id of relation. */
1472
+ relationId: Scalars['String'];
1473
+ };
1474
+ export declare type RemoveEnvironmentFromCustomerInput = {
1475
+ /** The id of the record. */
1476
+ id: Scalars['String'];
1477
+ /** The id of relation. */
1478
+ relationId: Scalars['String'];
1479
+ };
1480
+ export declare type RemoveEnvironmentFromCustomerSubscriptionInput = {
1481
+ /** The id of the record. */
1482
+ id: Scalars['String'];
1483
+ /** The id of relation. */
1484
+ relationId: Scalars['String'];
1485
+ };
1486
+ export declare type RemoveEnvironmentFromEventLogInput = {
1487
+ /** The id of the record. */
1488
+ id: Scalars['String'];
1489
+ /** The id of relation. */
1490
+ relationId: Scalars['String'];
1491
+ };
1492
+ export declare type RemoveEnvironmentFromFeatureInput = {
1493
+ /** The id of the record. */
1494
+ id: Scalars['String'];
1495
+ /** The id of relation. */
1496
+ relationId: Scalars['String'];
1497
+ };
1498
+ export declare type RemoveEnvironmentFromHookInput = {
1499
+ /** The id of the record. */
1500
+ id: Scalars['String'];
1501
+ /** The id of relation. */
1502
+ relationId: Scalars['String'];
1503
+ };
1504
+ export declare type RemoveEnvironmentFromIntegrationInput = {
1505
+ /** The id of the record. */
1506
+ id: Scalars['String'];
1507
+ /** The id of relation. */
1508
+ relationId: Scalars['String'];
1509
+ };
1510
+ export declare type RemoveEnvironmentFromPlanInput = {
1511
+ /** The id of the record. */
1512
+ id: Scalars['String'];
1513
+ /** The id of relation. */
1514
+ relationId: Scalars['String'];
1515
+ };
1516
+ export declare type RemoveEnvironmentFromProductInput = {
1517
+ /** The id of the record. */
1518
+ id: Scalars['String'];
1519
+ /** The id of relation. */
1520
+ relationId: Scalars['String'];
1521
+ };
1522
+ export declare type RemoveEnvironmentFromUsageMeasurementInput = {
1523
+ /** The id of the record. */
1524
+ id: Scalars['String'];
1525
+ /** The id of relation. */
1526
+ relationId: Scalars['String'];
1527
+ };
1528
+ export declare type RemoveFeatureFromPackageEntitlementInput = {
1529
+ /** The id of the record. */
1530
+ id: Scalars['String'];
1531
+ /** The id of relation. */
1532
+ relationId: Scalars['String'];
1533
+ };
1534
+ export declare type RemoveFeatureFromPromotionalEntitlementInput = {
1535
+ /** The id of the record. */
1536
+ id: Scalars['String'];
1537
+ /** The id of relation. */
1538
+ relationId: Scalars['String'];
1539
+ };
1540
+ export declare type RemoveFeatureFromUsageMeasurementInput = {
1541
+ /** The id of the record. */
1542
+ id: Scalars['String'];
1543
+ /** The id of relation. */
1544
+ relationId: Scalars['String'];
1545
+ };
1546
+ export declare type RemovePackageFromPackageEntitlementInput = {
1547
+ /** The id of the record. */
1548
+ id: Scalars['String'];
1549
+ /** The id of relation. */
1550
+ relationId: Scalars['String'];
1551
+ };
1552
+ export declare type RemovePackageFromPriceInput = {
1553
+ /** The id of the record. */
1554
+ id: Scalars['String'];
1555
+ /** The id of relation. */
1556
+ relationId: Scalars['String'];
1557
+ };
1558
+ export declare type RemovePlanFromCustomerSubscriptionInput = {
1559
+ /** The id of the record. */
1560
+ id: Scalars['String'];
1561
+ /** The id of relation. */
1562
+ relationId: Scalars['String'];
1563
+ };
1564
+ export declare type RemovePriceFromSubscriptionAddonInput = {
1565
+ /** The id of the record. */
1566
+ id: Scalars['String'];
1567
+ /** The id of relation. */
1568
+ relationId: Scalars['String'];
1569
+ };
1570
+ export declare type RemovePriceFromSubscriptionPriceInput = {
1571
+ /** The id of the record. */
1572
+ id: Scalars['String'];
1573
+ /** The id of relation. */
1574
+ relationId: Scalars['String'];
1575
+ };
1576
+ export declare type RemovePricesFromAddonInput = {
1577
+ /** The id of the record. */
1578
+ id: Scalars['String'];
1579
+ /** The ids of the relations. */
1580
+ relationIds: Array<Scalars['String']>;
1581
+ };
1582
+ export declare type RemovePricesFromCustomerSubscriptionInput = {
1583
+ /** The id of the record. */
1584
+ id: Scalars['String'];
1585
+ /** The ids of the relations. */
1586
+ relationIds: Array<Scalars['String']>;
1587
+ };
1588
+ export declare type RemovePricesFromPlanInput = {
1589
+ /** The id of the record. */
1590
+ id: Scalars['String'];
1591
+ /** The ids of the relations. */
1592
+ relationIds: Array<Scalars['String']>;
1593
+ };
1594
+ export declare type RemoveSubscriptionFromSubscriptionAddonInput = {
1595
+ /** The id of the record. */
1596
+ id: Scalars['String'];
1597
+ /** The id of relation. */
1598
+ relationId: Scalars['String'];
1599
+ };
1600
+ export declare type RemoveSubscriptionFromSubscriptionPriceInput = {
1601
+ /** The id of the record. */
1602
+ id: Scalars['String'];
1603
+ /** The id of relation. */
1604
+ relationId: Scalars['String'];
1605
+ };
1606
+ export declare type RemoveUserFromMemberInput = {
1607
+ /** The id of the record. */
1608
+ id: Scalars['String'];
1609
+ /** The id of relation. */
1610
+ relationId: Scalars['String'];
1611
+ };
1612
+ export declare type SetAccountOnEnvironmentInput = {
1613
+ /** The id of the record. */
1614
+ id: Scalars['String'];
1615
+ /** The id of relation. */
1616
+ relationId: Scalars['String'];
1617
+ };
1618
+ export declare type SetAccountOnFeatureInput = {
1619
+ /** The id of the record. */
1620
+ id: Scalars['String'];
1621
+ /** The id of relation. */
1622
+ relationId: Scalars['String'];
1623
+ };
1624
+ export declare type SetAccountOnHookInput = {
1625
+ /** The id of the record. */
1626
+ id: Scalars['String'];
1627
+ /** The id of relation. */
1628
+ relationId: Scalars['String'];
1629
+ };
1630
+ export declare type SetAccountOnIntegrationInput = {
1631
+ /** The id of the record. */
1632
+ id: Scalars['String'];
1633
+ /** The id of relation. */
1634
+ relationId: Scalars['String'];
1635
+ };
1636
+ export declare type SetAccountOnMemberInput = {
1637
+ /** The id of the record. */
1638
+ id: Scalars['String'];
1639
+ /** The id of relation. */
1640
+ relationId: Scalars['String'];
1641
+ };
1642
+ export declare type SetAddonOnSubscriptionAddonInput = {
1643
+ /** The id of the record. */
1644
+ id: Scalars['String'];
1645
+ /** The id of relation. */
1646
+ relationId: Scalars['String'];
1647
+ };
1648
+ export declare type SetAddonsOnCustomerSubscriptionInput = {
1649
+ /** The id of the record. */
1650
+ id: Scalars['String'];
1651
+ /** The ids of the relations. */
1652
+ relationIds: Array<Scalars['String']>;
1653
+ };
1654
+ export declare type SetApiKeysOnEnvironmentInput = {
1655
+ /** The id of the record. */
1656
+ id: Scalars['String'];
1657
+ /** The ids of the relations. */
1658
+ relationIds: Array<Scalars['String']>;
1659
+ };
1660
+ export declare type SetBasePlanOnPlanInput = {
1661
+ /** The id of the record. */
1662
+ id: Scalars['String'];
1663
+ /** The id of relation. */
1664
+ relationId: Scalars['String'];
1665
+ };
1666
+ export declare type SetCompatibleAddonsOnPlanInput = {
1667
+ /** The id of the record. */
1668
+ id: Scalars['String'];
1669
+ /** The ids of the relations. */
1670
+ relationIds: Array<Scalars['String']>;
1671
+ };
1672
+ export declare type SetCustomerOnCustomerSubscriptionInput = {
1673
+ /** The id of the record. */
1674
+ id: Scalars['String'];
1675
+ /** The id of relation. */
1676
+ relationId: Scalars['String'];
1677
+ };
1678
+ export declare type SetCustomerOnPromotionalEntitlementInput = {
1679
+ /** The id of the record. */
1680
+ id: Scalars['String'];
1681
+ /** The id of relation. */
1682
+ relationId: Scalars['String'];
1683
+ };
1684
+ export declare type SetCustomerOnUsageMeasurementInput = {
1685
+ /** The id of the record. */
1686
+ id: Scalars['String'];
1687
+ /** The id of relation. */
1688
+ relationId: Scalars['String'];
1689
+ };
1690
+ export declare type SetDowngradePlanOnProductInput = {
1691
+ /** The id of the record. */
1692
+ id: Scalars['String'];
1693
+ /** The id of relation. */
1694
+ relationId: Scalars['String'];
1695
+ };
1696
+ export declare type SetEnvironmentOnAddonInput = {
1697
+ /** The id of the record. */
1698
+ id: Scalars['String'];
1699
+ /** The id of relation. */
1700
+ relationId: Scalars['String'];
1701
+ };
1702
+ export declare type SetEnvironmentOnCustomerInput = {
1703
+ /** The id of the record. */
1704
+ id: Scalars['String'];
1705
+ /** The id of relation. */
1706
+ relationId: Scalars['String'];
1707
+ };
1708
+ export declare type SetEnvironmentOnCustomerSubscriptionInput = {
1709
+ /** The id of the record. */
1710
+ id: Scalars['String'];
1711
+ /** The id of relation. */
1712
+ relationId: Scalars['String'];
1713
+ };
1714
+ export declare type SetEnvironmentOnEventLogInput = {
1715
+ /** The id of the record. */
1716
+ id: Scalars['String'];
1717
+ /** The id of relation. */
1718
+ relationId: Scalars['String'];
1719
+ };
1720
+ export declare type SetEnvironmentOnFeatureInput = {
1721
+ /** The id of the record. */
1722
+ id: Scalars['String'];
1723
+ /** The id of relation. */
1724
+ relationId: Scalars['String'];
1725
+ };
1726
+ export declare type SetEnvironmentOnHookInput = {
1727
+ /** The id of the record. */
1728
+ id: Scalars['String'];
1729
+ /** The id of relation. */
1730
+ relationId: Scalars['String'];
1731
+ };
1732
+ export declare type SetEnvironmentOnIntegrationInput = {
1733
+ /** The id of the record. */
1734
+ id: Scalars['String'];
1735
+ /** The id of relation. */
1736
+ relationId: Scalars['String'];
1737
+ };
1738
+ export declare type SetEnvironmentOnPlanInput = {
1739
+ /** The id of the record. */
1740
+ id: Scalars['String'];
1741
+ /** The id of relation. */
1742
+ relationId: Scalars['String'];
1743
+ };
1744
+ export declare type SetEnvironmentOnProductInput = {
1745
+ /** The id of the record. */
1746
+ id: Scalars['String'];
1747
+ /** The id of relation. */
1748
+ relationId: Scalars['String'];
1749
+ };
1750
+ export declare type SetEnvironmentOnUsageMeasurementInput = {
1751
+ /** The id of the record. */
1752
+ id: Scalars['String'];
1753
+ /** The id of relation. */
1754
+ relationId: Scalars['String'];
1755
+ };
1756
+ export declare type SetFeatureOnPackageEntitlementInput = {
1757
+ /** The id of the record. */
1758
+ id: Scalars['String'];
1759
+ /** The id of relation. */
1760
+ relationId: Scalars['String'];
1761
+ };
1762
+ export declare type SetFeatureOnPromotionalEntitlementInput = {
1763
+ /** The id of the record. */
1764
+ id: Scalars['String'];
1765
+ /** The id of relation. */
1766
+ relationId: Scalars['String'];
1767
+ };
1768
+ export declare type SetFeatureOnUsageMeasurementInput = {
1769
+ /** The id of the record. */
1770
+ id: Scalars['String'];
1771
+ /** The id of relation. */
1772
+ relationId: Scalars['String'];
1773
+ };
1774
+ export declare type SetPackageOnPackageEntitlementInput = {
1775
+ /** The id of the record. */
1776
+ id: Scalars['String'];
1777
+ /** The id of relation. */
1778
+ relationId: Scalars['String'];
1779
+ };
1780
+ export declare type SetPackageOnPriceInput = {
1781
+ /** The id of the record. */
1782
+ id: Scalars['String'];
1783
+ /** The id of relation. */
1784
+ relationId: Scalars['String'];
1785
+ };
1786
+ export declare type SetPlanOnCustomerSubscriptionInput = {
1787
+ /** The id of the record. */
1788
+ id: Scalars['String'];
1789
+ /** The id of relation. */
1790
+ relationId: Scalars['String'];
1791
+ };
1792
+ export declare type SetPriceOnSubscriptionAddonInput = {
1793
+ /** The id of the record. */
1794
+ id: Scalars['String'];
1795
+ /** The id of relation. */
1796
+ relationId: Scalars['String'];
1797
+ };
1798
+ export declare type SetPriceOnSubscriptionPriceInput = {
1799
+ /** The id of the record. */
1800
+ id: Scalars['String'];
1801
+ /** The id of relation. */
1802
+ relationId: Scalars['String'];
1803
+ };
1804
+ export declare type SetPricesOnAddonInput = {
1805
+ /** The id of the record. */
1806
+ id: Scalars['String'];
1807
+ /** The ids of the relations. */
1808
+ relationIds: Array<Scalars['String']>;
1809
+ };
1810
+ export declare type SetPricesOnCustomerSubscriptionInput = {
1811
+ /** The id of the record. */
1812
+ id: Scalars['String'];
1813
+ /** The ids of the relations. */
1814
+ relationIds: Array<Scalars['String']>;
1815
+ };
1816
+ export declare type SetPricesOnPlanInput = {
1817
+ /** The id of the record. */
1818
+ id: Scalars['String'];
1819
+ /** The ids of the relations. */
1820
+ relationIds: Array<Scalars['String']>;
1821
+ };
1822
+ export declare type SetProductOnAddonInput = {
1823
+ /** The id of the record. */
1824
+ id: Scalars['String'];
1825
+ /** The id of relation. */
1826
+ relationId: Scalars['String'];
1827
+ };
1828
+ export declare type SetProductOnPlanInput = {
1829
+ /** The id of the record. */
1830
+ id: Scalars['String'];
1831
+ /** The id of relation. */
1832
+ relationId: Scalars['String'];
1833
+ };
1834
+ export declare type SetSubscriptionOnSubscriptionAddonInput = {
1835
+ /** The id of the record. */
1836
+ id: Scalars['String'];
1837
+ /** The id of relation. */
1838
+ relationId: Scalars['String'];
1839
+ };
1840
+ export declare type SetSubscriptionOnSubscriptionPriceInput = {
1841
+ /** The id of the record. */
1842
+ id: Scalars['String'];
1843
+ /** The id of relation. */
1844
+ relationId: Scalars['String'];
1845
+ };
1846
+ export declare type SetSubscriptionsOnCustomerInput = {
1847
+ /** The id of the record. */
1848
+ id: Scalars['String'];
1849
+ /** The ids of the relations. */
1850
+ relationIds: Array<Scalars['String']>;
1851
+ };
1852
+ export declare type SetUserOnMemberInput = {
1853
+ /** The id of the record. */
1854
+ id: Scalars['String'];
1855
+ /** The id of relation. */
1856
+ relationId: Scalars['String'];
1857
+ };
1858
+ /** Sort Directions */
1859
+ export declare enum SortDirection {
1860
+ Asc = "ASC",
1861
+ Desc = "DESC"
1862
+ }
1863
+ /** Sort Nulls Options */
1864
+ export declare enum SortNulls {
1865
+ NullsFirst = "NULLS_FIRST",
1866
+ NullsLast = "NULLS_LAST"
1867
+ }
1868
+ export declare type StringFieldComparison = {
1869
+ eq?: Maybe<Scalars['String']>;
1870
+ gt?: Maybe<Scalars['String']>;
1871
+ gte?: Maybe<Scalars['String']>;
1872
+ iLike?: Maybe<Scalars['String']>;
1873
+ in?: Maybe<Array<Scalars['String']>>;
1874
+ is?: Maybe<Scalars['Boolean']>;
1875
+ isNot?: Maybe<Scalars['Boolean']>;
1876
+ like?: Maybe<Scalars['String']>;
1877
+ lt?: Maybe<Scalars['String']>;
1878
+ lte?: Maybe<Scalars['String']>;
1879
+ neq?: Maybe<Scalars['String']>;
1880
+ notILike?: Maybe<Scalars['String']>;
1881
+ notIn?: Maybe<Array<Scalars['String']>>;
1882
+ notLike?: Maybe<Scalars['String']>;
1883
+ };
1884
+ export declare type StripeCredentialsInput = {
1885
+ accountId?: Maybe<Scalars['String']>;
1886
+ authorizationCode: Scalars['String'];
1887
+ isTestMode: Scalars['Boolean'];
1888
+ };
1889
+ export declare type SubscriptionAddonFilter = {
1890
+ addon?: Maybe<SubscriptionAddonFilterAddonFilter>;
1891
+ and?: Maybe<Array<SubscriptionAddonFilter>>;
1892
+ id?: Maybe<StringFieldComparison>;
1893
+ or?: Maybe<Array<SubscriptionAddonFilter>>;
1894
+ price?: Maybe<SubscriptionAddonFilterPriceFilter>;
1895
+ quantity?: Maybe<NumberFieldComparison>;
1896
+ subscription?: Maybe<SubscriptionAddonFilterCustomerSubscriptionFilter>;
1897
+ updatedAt?: Maybe<DateFieldComparison>;
1898
+ };
1899
+ export declare type SubscriptionAddonFilterAddonFilter = {
1900
+ and?: Maybe<Array<SubscriptionAddonFilterAddonFilter>>;
1901
+ billingId?: Maybe<StringFieldComparison>;
1902
+ createdAt?: Maybe<DateFieldComparison>;
1903
+ description?: Maybe<StringFieldComparison>;
1904
+ displayName?: Maybe<StringFieldComparison>;
1905
+ environmentId?: Maybe<StringFieldComparison>;
1906
+ id?: Maybe<StringFieldComparison>;
1907
+ isLatest?: Maybe<BooleanFieldComparison>;
1908
+ or?: Maybe<Array<SubscriptionAddonFilterAddonFilter>>;
1909
+ productId?: Maybe<StringFieldComparison>;
1910
+ refId?: Maybe<StringFieldComparison>;
1911
+ status?: Maybe<PackageStatusFilterComparison>;
1912
+ updatedAt?: Maybe<DateFieldComparison>;
1913
+ versionNumber?: Maybe<IntFieldComparison>;
1914
+ };
1915
+ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
1916
+ and?: Maybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
1917
+ billingId?: Maybe<StringFieldComparison>;
1918
+ crmId?: Maybe<StringFieldComparison>;
1919
+ endDate?: Maybe<DateFieldComparison>;
1920
+ environmentId?: Maybe<StringFieldComparison>;
1921
+ id?: Maybe<StringFieldComparison>;
1922
+ or?: Maybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
1923
+ refId?: Maybe<StringFieldComparison>;
1924
+ startDate?: Maybe<DateFieldComparison>;
1925
+ status?: Maybe<SubscriptionStatusFilterComparison>;
1926
+ };
1927
+ export declare type SubscriptionAddonFilterPriceFilter = {
1928
+ and?: Maybe<Array<SubscriptionAddonFilterPriceFilter>>;
1929
+ billingModel?: Maybe<BillingModelFilterComparison>;
1930
+ billingPeriod?: Maybe<BillingPeriodFilterComparison>;
1931
+ id?: Maybe<StringFieldComparison>;
1932
+ or?: Maybe<Array<SubscriptionAddonFilterPriceFilter>>;
1933
+ };
1934
+ export declare type SubscriptionAddonInput = {
1935
+ addonId: Scalars['String'];
1936
+ billingPeriod: BillingPeriod;
1937
+ quantity?: Maybe<Scalars['Int']>;
1938
+ };
1939
+ export declare type SubscriptionAddonSort = {
1940
+ direction: SortDirection;
1941
+ field: SubscriptionAddonSortFields;
1942
+ nulls?: Maybe<SortNulls>;
1943
+ };
1944
+ export declare enum SubscriptionAddonSortFields {
1945
+ Id = "id",
1946
+ Quantity = "quantity",
1947
+ UpdatedAt = "updatedAt"
1948
+ }
1949
+ export declare type SubscriptionInput = {
1950
+ addons?: Maybe<Array<SubscriptionAddonInput>>;
1951
+ billingId?: Maybe<Scalars['String']>;
1952
+ billingPeriod: BillingPeriod;
1953
+ crmId?: Maybe<Scalars['String']>;
1954
+ customerId: Scalars['String'];
1955
+ endDate?: Maybe<Scalars['DateTime']>;
1956
+ environmentId: Scalars['String'];
1957
+ isTrial?: Maybe<Scalars['Boolean']>;
1958
+ planId: Scalars['String'];
1959
+ priceUnitAmount?: Maybe<Scalars['Float']>;
1960
+ refId?: Maybe<Scalars['String']>;
1961
+ startDate: Scalars['DateTime'];
1962
+ };
1963
+ export declare type SubscriptionMigrationInput = {
1964
+ subscriptionId: Scalars['String'];
1965
+ };
1966
+ export declare type SubscriptionPriceFilter = {
1967
+ and?: Maybe<Array<SubscriptionPriceFilter>>;
1968
+ id?: Maybe<StringFieldComparison>;
1969
+ or?: Maybe<Array<SubscriptionPriceFilter>>;
1970
+ price?: Maybe<SubscriptionPriceFilterPriceFilter>;
1971
+ subscription?: Maybe<SubscriptionPriceFilterCustomerSubscriptionFilter>;
1972
+ updatedAt?: Maybe<DateFieldComparison>;
1973
+ usageLimit?: Maybe<NumberFieldComparison>;
1974
+ };
1975
+ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
1976
+ and?: Maybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
1977
+ billingId?: Maybe<StringFieldComparison>;
1978
+ crmId?: Maybe<StringFieldComparison>;
1979
+ endDate?: Maybe<DateFieldComparison>;
1980
+ environmentId?: Maybe<StringFieldComparison>;
1981
+ id?: Maybe<StringFieldComparison>;
1982
+ or?: Maybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
1983
+ refId?: Maybe<StringFieldComparison>;
1984
+ startDate?: Maybe<DateFieldComparison>;
1985
+ status?: Maybe<SubscriptionStatusFilterComparison>;
1986
+ };
1987
+ export declare type SubscriptionPriceFilterPriceFilter = {
1988
+ and?: Maybe<Array<SubscriptionPriceFilterPriceFilter>>;
1989
+ billingModel?: Maybe<BillingModelFilterComparison>;
1990
+ billingPeriod?: Maybe<BillingPeriodFilterComparison>;
1991
+ id?: Maybe<StringFieldComparison>;
1992
+ or?: Maybe<Array<SubscriptionPriceFilterPriceFilter>>;
1993
+ };
1994
+ export declare type SubscriptionPriceSort = {
1995
+ direction: SortDirection;
1996
+ field: SubscriptionPriceSortFields;
1997
+ nulls?: Maybe<SortNulls>;
1998
+ };
1999
+ export declare enum SubscriptionPriceSortFields {
2000
+ Id = "id",
2001
+ UpdatedAt = "updatedAt",
2002
+ UsageLimit = "usageLimit"
2003
+ }
2004
+ /** Subscription status */
2005
+ export declare enum SubscriptionStatus {
2006
+ Active = "ACTIVE",
2007
+ Expired = "EXPIRED",
2008
+ Inactive = "INACTIVE",
2009
+ InTrial = "IN_TRIAL"
2010
+ }
2011
+ export declare type SubscriptionStatusFilterComparison = {
2012
+ eq?: Maybe<SubscriptionStatus>;
2013
+ gt?: Maybe<SubscriptionStatus>;
2014
+ gte?: Maybe<SubscriptionStatus>;
2015
+ iLike?: Maybe<SubscriptionStatus>;
2016
+ in?: Maybe<Array<SubscriptionStatus>>;
2017
+ is?: Maybe<Scalars['Boolean']>;
2018
+ isNot?: Maybe<Scalars['Boolean']>;
2019
+ like?: Maybe<SubscriptionStatus>;
2020
+ lt?: Maybe<SubscriptionStatus>;
2021
+ lte?: Maybe<SubscriptionStatus>;
2022
+ neq?: Maybe<SubscriptionStatus>;
2023
+ notILike?: Maybe<SubscriptionStatus>;
2024
+ notIn?: Maybe<Array<SubscriptionStatus>>;
2025
+ notLike?: Maybe<SubscriptionStatus>;
2026
+ };
2027
+ export declare type TestHookInput = {
2028
+ endpointUrl: Scalars['String'];
2029
+ hookEventType: EventLogType;
2030
+ };
2031
+ /** day or month. */
2032
+ export declare enum TrialPeriodUnits {
2033
+ Day = "DAY",
2034
+ Month = "MONTH"
2035
+ }
2036
+ export declare enum TrialSetup {
2037
+ CancelSubscription = "CANCEL_SUBSCRIPTION",
2038
+ DowngradeToFree = "DOWNGRADE_TO_FREE",
2039
+ NoTrials = "NO_TRIALS"
2040
+ }
2041
+ export declare type UpdateCustomer = {
2042
+ billingId?: Maybe<Scalars['String']>;
2043
+ billingLinkUrl?: Maybe<Scalars['String']>;
2044
+ createdAt?: Maybe<Scalars['DateTime']>;
2045
+ crmId?: Maybe<Scalars['String']>;
2046
+ email?: Maybe<Scalars['String']>;
2047
+ environmentId?: Maybe<Scalars['String']>;
2048
+ id?: Maybe<Scalars['String']>;
2049
+ name?: Maybe<Scalars['String']>;
2050
+ refId?: Maybe<Scalars['String']>;
2051
+ updatedAt?: Maybe<Scalars['DateTime']>;
2052
+ };
2053
+ export declare type UpdateEnvironment = {
2054
+ description?: Maybe<Scalars['String']>;
2055
+ displayName?: Maybe<Scalars['String']>;
2056
+ id?: Maybe<Scalars['String']>;
2057
+ slug?: Maybe<Scalars['String']>;
2058
+ };
2059
+ export declare type UpdateFeature = {
2060
+ createdAt?: Maybe<Scalars['DateTime']>;
2061
+ description?: Maybe<Scalars['String']>;
2062
+ displayName?: Maybe<Scalars['String']>;
2063
+ environmentId?: Maybe<Scalars['String']>;
2064
+ featureStatus?: Maybe<FeatureStatus>;
2065
+ featureType?: Maybe<FeatureType>;
2066
+ featureUnits?: Maybe<Scalars['String']>;
2067
+ featureUnitsPlural?: Maybe<Scalars['String']>;
2068
+ id?: Maybe<Scalars['String']>;
2069
+ meterType?: Maybe<MeterType>;
2070
+ refId?: Maybe<Scalars['String']>;
2071
+ updatedAt?: Maybe<Scalars['DateTime']>;
2072
+ };
2073
+ export declare type UpdateHook = {
2074
+ createdAt?: Maybe<Scalars['DateTime']>;
2075
+ description?: Maybe<Scalars['String']>;
2076
+ endpoint?: Maybe<Scalars['String']>;
2077
+ environmentId?: Maybe<Scalars['String']>;
2078
+ eventLogTypes?: Maybe<Array<EventLogType>>;
2079
+ id?: Maybe<Scalars['String']>;
2080
+ secretKey?: Maybe<Scalars['String']>;
2081
+ status?: Maybe<HookStatus>;
2082
+ };
2083
+ export declare type UpdateIntegrationInput = {
2084
+ stripeCredentials?: Maybe<StripeCredentialsInput>;
2085
+ vendorIdentifier: VendorIdentifier;
2086
+ zuoraCredentials?: Maybe<ZuoraCredentialsInput>;
2087
+ };
2088
+ export declare type UpdateManyCustomersInput = {
2089
+ /** Filter used to find fields to update */
2090
+ filter: CustomerUpdateFilter;
2091
+ /** The update to apply to all records found using the filter */
2092
+ update: UpdateCustomer;
2093
+ };
2094
+ export declare type UpdateManyEnvironmentsInput = {
2095
+ /** Filter used to find fields to update */
2096
+ filter: EnvironmentUpdateFilter;
2097
+ /** The update to apply to all records found using the filter */
2098
+ update: UpdateEnvironment;
2099
+ };
2100
+ export declare type UpdateManyHooksInput = {
2101
+ /** Filter used to find fields to update */
2102
+ filter: HookUpdateFilter;
2103
+ /** The update to apply to all records found using the filter */
2104
+ update: UpdateHook;
2105
+ };
2106
+ export declare type UpdateManyIntegrationsInput = {
2107
+ /** Filter used to find fields to update */
2108
+ filter: IntegrationUpdateFilter;
2109
+ /** The update to apply to all records found using the filter */
2110
+ update: UpdateIntegrationInput;
2111
+ };
2112
+ export declare type UpdateManyPackageEntitlementsInput = {
2113
+ /** Filter used to find fields to update */
2114
+ filter: PackageEntitlementUpdateFilter;
2115
+ /** The update to apply to all records found using the filter */
2116
+ update: PackageEntitlementUpdateInput;
2117
+ };
2118
+ export declare type UpdateManyProductsInput = {
2119
+ /** Filter used to find fields to update */
2120
+ filter: ProductUpdateFilter;
2121
+ /** The update to apply to all records found using the filter */
2122
+ update: ProductUpdateInput;
2123
+ };
2124
+ export declare type UpdateManyPromotionalEntitlementsInput = {
2125
+ /** Filter used to find fields to update */
2126
+ filter: PromotionalEntitlementUpdateFilter;
2127
+ /** The update to apply to all records found using the filter */
2128
+ update: PromotionalEntitlementUpdateInput;
2129
+ };
2130
+ export declare type UpdateOneCustomerInput = {
2131
+ /** The id of the record to update */
2132
+ id: Scalars['String'];
2133
+ /** The update to apply. */
2134
+ update: UpdateCustomer;
2135
+ };
2136
+ export declare type UpdateOneEnvironmentInput = {
2137
+ /** The id of the record to update */
2138
+ id: Scalars['String'];
2139
+ /** The update to apply. */
2140
+ update: UpdateEnvironment;
2141
+ };
2142
+ export declare type UpdateOneFeatureInput = {
2143
+ /** The id of the record to update */
2144
+ id: Scalars['String'];
2145
+ /** The update to apply. */
2146
+ update: UpdateFeature;
2147
+ };
2148
+ export declare type UpdateOneHookInput = {
2149
+ /** The id of the record to update */
2150
+ id: Scalars['String'];
2151
+ /** The update to apply. */
2152
+ update: UpdateHook;
2153
+ };
2154
+ export declare type UpdateOneIntegrationInput = {
2155
+ /** The id of the record to update */
2156
+ id: Scalars['String'];
2157
+ /** The update to apply. */
2158
+ update: UpdateIntegrationInput;
2159
+ };
2160
+ export declare type UpdateOnePackageEntitlementInput = {
2161
+ /** The id of the record to update */
2162
+ id: Scalars['String'];
2163
+ /** The update to apply. */
2164
+ update: PackageEntitlementUpdateInput;
2165
+ };
2166
+ export declare type UpdateOneProductInput = {
2167
+ /** The id of the record to update */
2168
+ id: Scalars['String'];
2169
+ /** The update to apply. */
2170
+ update: ProductUpdateInput;
2171
+ };
2172
+ export declare type UpdateOnePromotionalEntitlementInput = {
2173
+ /** The id of the record to update */
2174
+ id: Scalars['String'];
2175
+ /** The update to apply. */
2176
+ update: PromotionalEntitlementUpdateInput;
2177
+ };
2178
+ export declare type UsageHistoryInput = {
2179
+ customerRefId: Scalars['String'];
2180
+ endDate?: Maybe<Scalars['DateTime']>;
2181
+ environmentId?: Maybe<Scalars['String']>;
2182
+ featureRefId: Scalars['String'];
2183
+ monthlyResetPeriodConfiguration?: Maybe<MonthlyResetPeriodConfigInput>;
2184
+ resetPeriod?: Maybe<EntitlementResetPeriod>;
2185
+ startDate: Scalars['DateTime'];
2186
+ weeklyResetPeriodConfiguration?: Maybe<WeeklyResetPeriodConfigInput>;
2187
+ };
2188
+ export declare type UsageMeasurementCreateInput = {
2189
+ createdAt?: Maybe<Scalars['DateTime']>;
2190
+ customerId: Scalars['String'];
2191
+ environmentId?: Maybe<Scalars['String']>;
2192
+ featureId: Scalars['String'];
2193
+ value: Scalars['Float'];
2194
+ };
2195
+ export declare type UsageMeasurementFilter = {
2196
+ and?: Maybe<Array<UsageMeasurementFilter>>;
2197
+ createdAt?: Maybe<DateFieldComparison>;
2198
+ customer?: Maybe<UsageMeasurementFilterCustomerFilter>;
2199
+ environmentId?: Maybe<StringFieldComparison>;
2200
+ feature?: Maybe<UsageMeasurementFilterFeatureFilter>;
2201
+ id?: Maybe<StringFieldComparison>;
2202
+ or?: Maybe<Array<UsageMeasurementFilter>>;
2203
+ };
2204
+ export declare type UsageMeasurementFilterCustomerFilter = {
2205
+ and?: Maybe<Array<UsageMeasurementFilterCustomerFilter>>;
2206
+ billingId?: Maybe<StringFieldComparison>;
2207
+ createdAt?: Maybe<DateFieldComparison>;
2208
+ crmId?: Maybe<StringFieldComparison>;
2209
+ email?: Maybe<StringFieldComparison>;
2210
+ environmentId?: Maybe<StringFieldComparison>;
2211
+ id?: Maybe<StringFieldComparison>;
2212
+ name?: Maybe<StringFieldComparison>;
2213
+ or?: Maybe<Array<UsageMeasurementFilterCustomerFilter>>;
2214
+ refId?: Maybe<StringFieldComparison>;
2215
+ updatedAt?: Maybe<DateFieldComparison>;
2216
+ };
2217
+ export declare type UsageMeasurementFilterFeatureFilter = {
2218
+ and?: Maybe<Array<UsageMeasurementFilterFeatureFilter>>;
2219
+ createdAt?: Maybe<DateFieldComparison>;
2220
+ description?: Maybe<StringFieldComparison>;
2221
+ displayName?: Maybe<StringFieldComparison>;
2222
+ environmentId?: Maybe<StringFieldComparison>;
2223
+ featureStatus?: Maybe<FeatureStatusFilterComparison>;
2224
+ featureType?: Maybe<FeatureTypeFilterComparison>;
2225
+ id?: Maybe<StringFieldComparison>;
2226
+ meterType?: Maybe<MeterTypeFilterComparison>;
2227
+ or?: Maybe<Array<UsageMeasurementFilterFeatureFilter>>;
2228
+ refId?: Maybe<StringFieldComparison>;
2229
+ updatedAt?: Maybe<DateFieldComparison>;
2230
+ };
2231
+ export declare type UsageMeasurementSort = {
2232
+ direction: SortDirection;
2233
+ field: UsageMeasurementSortFields;
2234
+ nulls?: Maybe<SortNulls>;
2235
+ };
2236
+ export declare enum UsageMeasurementSortFields {
2237
+ CreatedAt = "createdAt",
2238
+ EnvironmentId = "environmentId",
2239
+ Id = "id"
2240
+ }
2241
+ export declare enum VendorIdentifier {
2242
+ Stripe = "STRIPE",
2243
+ Zuora = "ZUORA"
2244
+ }
2245
+ export declare type VendorIdentifierFilterComparison = {
2246
+ eq?: Maybe<VendorIdentifier>;
2247
+ gt?: Maybe<VendorIdentifier>;
2248
+ gte?: Maybe<VendorIdentifier>;
2249
+ iLike?: Maybe<VendorIdentifier>;
2250
+ in?: Maybe<Array<VendorIdentifier>>;
2251
+ is?: Maybe<Scalars['Boolean']>;
2252
+ isNot?: Maybe<Scalars['Boolean']>;
2253
+ like?: Maybe<VendorIdentifier>;
2254
+ lt?: Maybe<VendorIdentifier>;
2255
+ lte?: Maybe<VendorIdentifier>;
2256
+ neq?: Maybe<VendorIdentifier>;
2257
+ notILike?: Maybe<VendorIdentifier>;
2258
+ notIn?: Maybe<Array<VendorIdentifier>>;
2259
+ notLike?: Maybe<VendorIdentifier>;
2260
+ };
2261
+ /** Weekly reset period according to configuration */
2262
+ export declare enum WeeklyAccordingTo {
2263
+ EveryFriday = "EveryFriday",
2264
+ EveryMonday = "EveryMonday",
2265
+ EverySaturday = "EverySaturday",
2266
+ EverySunday = "EverySunday",
2267
+ EveryThursday = "EveryThursday",
2268
+ EveryTuesday = "EveryTuesday",
2269
+ EveryWednesday = "EveryWednesday",
2270
+ SubscriptionStart = "SubscriptionStart"
2271
+ }
2272
+ export declare type WeeklyResetPeriodConfigInput = {
2273
+ accordingTo: WeeklyAccordingTo;
2274
+ };
2275
+ export declare type ZuoraCredentialsInput = {
2276
+ baseUrl: Scalars['String'];
2277
+ clientId: Scalars['String'];
2278
+ clientSecret: Scalars['String'];
2279
+ };
2280
+ export declare type GetEnvironmentQueryVariables = Exact<{
2281
+ [key: string]: never;
2282
+ }>;
2283
+ export declare type GetEnvironmentQuery = {
2284
+ __typename?: 'Query';
2285
+ currentEnvironment: string;
2286
+ };
2287
+ export declare type EntitlementQueryVariables = Exact<{
2288
+ query: FetchEntitlementQuery;
2289
+ }>;
2290
+ export declare type EntitlementQuery = {
2291
+ __typename?: 'Query';
2292
+ entitlement: {
2293
+ __typename?: 'Entitlement';
2294
+ } & EntitlementFragment;
2295
+ };
2296
+ export declare type CachedEntitlementsQueryVariables = Exact<{
2297
+ query: FetchEntitlementsQuery;
2298
+ }>;
2299
+ export declare type CachedEntitlementsQuery = {
2300
+ __typename?: 'Query';
2301
+ cachedEntitlements: Array<{
2302
+ __typename?: 'Entitlement';
2303
+ } & EntitlementFragment>;
2304
+ };
2305
+ export declare type CreateUsageMeasurementMutationVariables = Exact<{
2306
+ usageMeasurement: UsageMeasurementCreateInput;
2307
+ }>;
2308
+ export declare type CreateUsageMeasurementMutation = {
2309
+ __typename?: 'Mutation';
2310
+ createUsageMeasurement: {
2311
+ __typename?: 'UsageMeasurement';
2312
+ id: string;
2313
+ };
2314
+ };
2315
+ export declare type FeatureFragment = {
2316
+ __typename?: 'EntitlementFeature';
2317
+ featureType: FeatureType;
2318
+ meterType?: MeterType | null | undefined;
2319
+ featureUnits?: string | null | undefined;
2320
+ featureUnitsPlural?: string | null | undefined;
2321
+ refId: string;
2322
+ };
2323
+ export declare type EntitlementFragment = {
2324
+ __typename?: 'Entitlement';
2325
+ isGranted: boolean;
2326
+ accessDeniedReason?: AccessDeniedReason | null | undefined;
2327
+ customerId?: string | null | undefined;
2328
+ usageLimit?: number | null | undefined;
2329
+ hasUnlimitedUsage: boolean;
2330
+ currentUsage?: number | null | undefined;
2331
+ requestedUsage?: number | null | undefined;
2332
+ nextResetDate?: any | null | undefined;
2333
+ feature?: ({
2334
+ __typename?: 'EntitlementFeature';
2335
+ } & FeatureFragment) | null | undefined;
2336
+ };
2337
+ export declare type EntitlementsUpdatedSubscriptionVariables = Exact<{
2338
+ [key: string]: never;
2339
+ }>;
2340
+ export declare type EntitlementsUpdatedSubscription = {
2341
+ __typename?: 'Subscription';
2342
+ entitlementsUpdated: {
2343
+ __typename?: 'EntitlementsUpdated';
2344
+ customerId: string;
2345
+ entitlements: Array<{
2346
+ __typename?: 'Entitlement';
2347
+ } & EntitlementFragment>;
2348
+ };
2349
+ };
2350
+ export declare type UsageUpdatedSubscriptionVariables = Exact<{
2351
+ [key: string]: never;
2352
+ }>;
2353
+ export declare type UsageUpdatedSubscription = {
2354
+ __typename?: 'Subscription';
2355
+ usageUpdated: {
2356
+ __typename?: 'UsageUpdated';
2357
+ usage: {
2358
+ __typename?: 'UsageMeasurementUpdated';
2359
+ customerId: string;
2360
+ featureId: string;
2361
+ currentUsage: number;
2362
+ nextResetDate?: number | null | undefined;
2363
+ };
2364
+ entitlement: {
2365
+ __typename?: 'Entitlement';
2366
+ } & EntitlementFragment;
2367
+ };
2368
+ };
2369
+ export declare type CreateCustomerMutationVariables = Exact<{
2370
+ input: CreateOneCustomerInput;
2371
+ }>;
2372
+ export declare type CreateCustomerMutation = {
2373
+ __typename?: 'Mutation';
2374
+ createOneCustomer: {
2375
+ __typename?: 'Customer';
2376
+ refId: string;
2377
+ };
2378
+ };
2379
+ export declare type CreateSubscriptionMutationVariables = Exact<{
2380
+ input: SubscriptionInput;
2381
+ }>;
2382
+ export declare type CreateSubscriptionMutation = {
2383
+ __typename?: 'Mutation';
2384
+ createSubscription: {
2385
+ __typename?: 'CustomerSubscription';
2386
+ plan: {
2387
+ __typename?: 'Plan';
2388
+ refId: string;
2389
+ };
2390
+ addons?: Array<{
2391
+ __typename?: 'SubscriptionAddon';
2392
+ addon: {
2393
+ __typename?: 'Addon';
2394
+ refId: string;
2395
+ };
2396
+ }> | null | undefined;
2397
+ customer: {
2398
+ __typename?: 'Customer';
2399
+ refId: string;
2400
+ };
2401
+ };
2402
+ };
2403
+ export declare type InitiateCheckoutMutationVariables = Exact<{
2404
+ input: InitiateCheckoutInput;
2405
+ }>;
2406
+ export declare type InitiateCheckoutMutation = {
2407
+ __typename?: 'Mutation';
2408
+ initiateCheckout: {
2409
+ __typename?: 'Checkout';
2410
+ checkoutUrl: string;
2411
+ checkoutBillingId: string;
2412
+ };
2413
+ };