@stigg/node-server-sdk 0.38.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,8 @@ export declare type Scalars = {
21
21
  ConnectionCursor: any;
22
22
  /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
23
23
  DateTime: any;
24
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
25
+ JSON: any;
24
26
  };
25
27
  /** DenyReason of get access policy */
26
28
  export declare enum AccessDeniedReason {
@@ -38,6 +40,7 @@ export declare type AddCompatibleAddonsToPlanInput = {
38
40
  relationIds: Array<Scalars['String']>;
39
41
  };
40
42
  export declare type AddonCreateInput = {
43
+ additionalMetaData?: Maybe<Scalars['JSON']>;
41
44
  billingId?: Maybe<Scalars['String']>;
42
45
  description?: Maybe<Scalars['String']>;
43
46
  displayName: Scalars['String'];
@@ -84,6 +87,7 @@ export declare enum AddonSortFields {
84
87
  VersionNumber = "versionNumber"
85
88
  }
86
89
  export declare type AddonUpdateInput = {
90
+ additionalMetaData?: Maybe<Scalars['JSON']>;
87
91
  billingId?: Maybe<Scalars['String']>;
88
92
  description?: Maybe<Scalars['String']>;
89
93
  displayName: Scalars['String'];
@@ -116,10 +120,20 @@ export declare enum ApiKeyType {
116
120
  Client = "CLIENT",
117
121
  Server = "SERVER"
118
122
  }
123
+ export declare type ArchiveCouponInput = {
124
+ environmentId?: Maybe<Scalars['String']>;
125
+ refId: Scalars['String'];
126
+ };
119
127
  export declare type ArchivePlanInput = {
120
128
  environmentId: Scalars['String'];
121
129
  id: Scalars['String'];
122
130
  };
131
+ export declare type AttachCustomerPaymentMethodInput = {
132
+ environmentId?: Maybe<Scalars['String']>;
133
+ paymentMethodId: Scalars['String'];
134
+ refId: Scalars['String'];
135
+ vendorIdentifier: VendorIdentifier;
136
+ };
123
137
  /** Billing model. */
124
138
  export declare enum BillingModel {
125
139
  FlatFee = "FLAT_FEE",
@@ -172,9 +186,103 @@ export declare enum ChangeType {
172
186
  Deleted = "DELETED",
173
187
  Modified = "MODIFIED"
174
188
  }
175
- export declare type CheckoutAddonInput = {
176
- addonId: Scalars['String'];
177
- quantity?: Maybe<Scalars['Int']>;
189
+ export declare type CouponFilter = {
190
+ and?: Maybe<Array<CouponFilter>>;
191
+ billingId?: Maybe<StringFieldComparison>;
192
+ createdAt?: Maybe<DateFieldComparison>;
193
+ customers?: Maybe<CouponFilterCustomerFilter>;
194
+ description?: Maybe<StringFieldComparison>;
195
+ environmentId?: Maybe<StringFieldComparison>;
196
+ id?: Maybe<StringFieldComparison>;
197
+ name?: Maybe<StringFieldComparison>;
198
+ or?: Maybe<Array<CouponFilter>>;
199
+ refId?: Maybe<StringFieldComparison>;
200
+ status?: Maybe<CouponStatusFilterComparison>;
201
+ type?: Maybe<CouponTypeFilterComparison>;
202
+ updatedAt?: Maybe<DateFieldComparison>;
203
+ };
204
+ export declare type CouponFilterCustomerFilter = {
205
+ and?: Maybe<Array<CouponFilterCustomerFilter>>;
206
+ billingId?: Maybe<StringFieldComparison>;
207
+ createdAt?: Maybe<DateFieldComparison>;
208
+ crmHubspotCompanyId?: Maybe<StringFieldComparison>;
209
+ crmHubspotCompanyUrl?: Maybe<StringFieldComparison>;
210
+ crmId?: Maybe<StringFieldComparison>;
211
+ email?: Maybe<StringFieldComparison>;
212
+ environmentId?: Maybe<StringFieldComparison>;
213
+ id?: Maybe<StringFieldComparison>;
214
+ name?: Maybe<StringFieldComparison>;
215
+ or?: Maybe<Array<CouponFilterCustomerFilter>>;
216
+ refId?: Maybe<StringFieldComparison>;
217
+ updatedAt?: Maybe<DateFieldComparison>;
218
+ };
219
+ export declare type CouponSort = {
220
+ direction: SortDirection;
221
+ field: CouponSortFields;
222
+ nulls?: Maybe<SortNulls>;
223
+ };
224
+ export declare enum CouponSortFields {
225
+ BillingId = "billingId",
226
+ CreatedAt = "createdAt",
227
+ Description = "description",
228
+ EnvironmentId = "environmentId",
229
+ Id = "id",
230
+ Name = "name",
231
+ RefId = "refId",
232
+ Status = "status",
233
+ Type = "type",
234
+ UpdatedAt = "updatedAt"
235
+ }
236
+ /** The status of the coupon */
237
+ export declare enum CouponStatus {
238
+ Active = "ACTIVE",
239
+ Archived = "ARCHIVED"
240
+ }
241
+ export declare type CouponStatusFilterComparison = {
242
+ eq?: Maybe<CouponStatus>;
243
+ gt?: Maybe<CouponStatus>;
244
+ gte?: Maybe<CouponStatus>;
245
+ iLike?: Maybe<CouponStatus>;
246
+ in?: Maybe<Array<CouponStatus>>;
247
+ is?: Maybe<Scalars['Boolean']>;
248
+ isNot?: Maybe<Scalars['Boolean']>;
249
+ like?: Maybe<CouponStatus>;
250
+ lt?: Maybe<CouponStatus>;
251
+ lte?: Maybe<CouponStatus>;
252
+ neq?: Maybe<CouponStatus>;
253
+ notILike?: Maybe<CouponStatus>;
254
+ notIn?: Maybe<Array<CouponStatus>>;
255
+ notLike?: Maybe<CouponStatus>;
256
+ };
257
+ /** The type of the coupon */
258
+ export declare enum CouponType {
259
+ Fixed = "FIXED",
260
+ Percentage = "PERCENTAGE"
261
+ }
262
+ export declare type CouponTypeFilterComparison = {
263
+ eq?: Maybe<CouponType>;
264
+ gt?: Maybe<CouponType>;
265
+ gte?: Maybe<CouponType>;
266
+ iLike?: Maybe<CouponType>;
267
+ in?: Maybe<Array<CouponType>>;
268
+ is?: Maybe<Scalars['Boolean']>;
269
+ isNot?: Maybe<Scalars['Boolean']>;
270
+ like?: Maybe<CouponType>;
271
+ lt?: Maybe<CouponType>;
272
+ lte?: Maybe<CouponType>;
273
+ neq?: Maybe<CouponType>;
274
+ notILike?: Maybe<CouponType>;
275
+ notIn?: Maybe<Array<CouponType>>;
276
+ notLike?: Maybe<CouponType>;
277
+ };
278
+ export declare type CreateCouponInput = {
279
+ additionalMetaData?: Maybe<Scalars['JSON']>;
280
+ description?: Maybe<Scalars['String']>;
281
+ discountValue: Scalars['Float'];
282
+ environmentId: Scalars['String'];
283
+ name: Scalars['String'];
284
+ refId: Scalars['String'];
285
+ type: CouponType;
178
286
  };
179
287
  export declare type CreateEnvironment = {
180
288
  createdAt?: Maybe<Scalars['DateTime']>;
@@ -296,8 +404,10 @@ export declare type CustomerFilterPromotionalEntitlementFilter = {
296
404
  updatedAt?: Maybe<DateFieldComparison>;
297
405
  };
298
406
  export declare type CustomerInput = {
407
+ additionalMetaData?: Maybe<Scalars['JSON']>;
299
408
  billingId?: Maybe<Scalars['String']>;
300
409
  billingInformation?: Maybe<CustomerBillingInfo>;
410
+ couponRefId?: Maybe<Scalars['String']>;
301
411
  crmId?: Maybe<Scalars['String']>;
302
412
  email?: Maybe<Scalars['String']>;
303
413
  environmentId?: Maybe<Scalars['String']>;
@@ -497,6 +607,10 @@ export declare enum EntitlementResetPeriod {
497
607
  Month = "MONTH",
498
608
  Week = "WEEK"
499
609
  }
610
+ export declare enum EntitySelectionMode {
611
+ BlackList = "BLACK_LIST",
612
+ WhiteList = "WHITE_LIST"
613
+ }
500
614
  export declare type EnvironmentFilter = {
501
615
  and?: Maybe<Array<EnvironmentFilter>>;
502
616
  createdAt?: Maybe<DateFieldComparison>;
@@ -518,11 +632,15 @@ export declare enum EnvironmentSortFields {
518
632
  }
519
633
  /** error codes */
520
634
  export declare enum ErrorCode {
635
+ AddonHasToHavePriceError = "AddonHasToHavePriceError",
521
636
  AddonNotFound = "AddonNotFound",
637
+ ArchivedCouponCantBeApplied = "ArchivedCouponCantBeApplied",
522
638
  BadUserInput = "BadUserInput",
523
639
  BillingPeriodMissingError = "BillingPeriodMissingError",
524
640
  CheckoutIsNotSupported = "CheckoutIsNotSupported",
641
+ CouponNotFound = "CouponNotFound",
525
642
  CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
643
+ CustomerNoBillingId = "CustomerNoBillingId",
526
644
  CustomerNotFound = "CustomerNotFound",
527
645
  DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
528
646
  DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
@@ -531,12 +649,16 @@ export declare enum ErrorCode {
531
649
  FailedToImportCustomer = "FailedToImportCustomer",
532
650
  FeatureNotFound = "FeatureNotFound",
533
651
  IdentityForbidden = "IdentityForbidden",
652
+ ImportAlreadyInProgress = "ImportAlreadyInProgress",
653
+ InitStripePaymentMethodError = "InitStripePaymentMethodError",
654
+ IntegrationNotFound = "IntegrationNotFound",
534
655
  IntegrityViolation = "IntegrityViolation",
535
656
  InvalidAddressError = "InvalidAddressError",
536
657
  InvalidArgumentError = "InvalidArgumentError",
537
658
  InvalidCancellationDate = "InvalidCancellationDate",
538
659
  InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
539
660
  InvalidMemberDelete = "InvalidMemberDelete",
661
+ InvalidQuantity = "InvalidQuantity",
540
662
  InvalidSubscriptionStatus = "InvalidSubscriptionStatus",
541
663
  InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
542
664
  MemberInvitationError = "MemberInvitationError",
@@ -551,7 +673,11 @@ export declare enum ErrorCode {
551
673
  PlansCircularDependencyError = "PlansCircularDependencyError",
552
674
  PriceNotFound = "PriceNotFound",
553
675
  RateLimitExceeded = "RateLimitExceeded",
676
+ ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
677
+ SelectedBillingModelDoesntMatchImportedItemError = "SelectedBillingModelDoesntMatchImportedItemError",
678
+ StripeCustomerIsDeleted = "StripeCustomerIsDeleted",
554
679
  SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
680
+ SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError",
555
681
  SubscriptionNotFound = "SubscriptionNotFound",
556
682
  TrialMinDateError = "TrialMinDateError",
557
683
  TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
@@ -568,6 +694,9 @@ export declare enum EventLogType {
568
694
  AddonCreated = "ADDON_CREATED",
569
695
  AddonDeleted = "ADDON_DELETED",
570
696
  AddonUpdated = "ADDON_UPDATED",
697
+ CouponArchived = "COUPON_ARCHIVED",
698
+ CouponCreated = "COUPON_CREATED",
699
+ CouponUpdated = "COUPON_UPDATED",
571
700
  CustomerCreated = "CUSTOMER_CREATED",
572
701
  CustomerDeleted = "CUSTOMER_DELETED",
573
702
  CustomerUpdated = "CUSTOMER_UPDATED",
@@ -578,6 +707,8 @@ export declare enum EventLogType {
578
707
  FeatureCreated = "FEATURE_CREATED",
579
708
  FeatureDeleted = "FEATURE_DELETED",
580
709
  FeatureUpdated = "FEATURE_UPDATED",
710
+ ImportIntegrationCatalogTriggered = "IMPORT_INTEGRATION_CATALOG_TRIGGERED",
711
+ ImportIntegrationCustomersTriggered = "IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",
581
712
  MeasurementReported = "MEASUREMENT_REPORTED",
582
713
  PackagePublished = "PACKAGE_PUBLISHED",
583
714
  PlanCreated = "PLAN_CREATED",
@@ -587,6 +718,7 @@ export declare enum EventLogType {
587
718
  PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
588
719
  PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
589
720
  PromotionalEntitlementUpdated = "PROMOTIONAL_ENTITLEMENT_UPDATED",
721
+ ResyncIntegrationTriggered = "RESYNC_INTEGRATION_TRIGGERED",
590
722
  SubscriptionCanceled = "SUBSCRIPTION_CANCELED",
591
723
  SubscriptionCreated = "SUBSCRIPTION_CREATED",
592
724
  SubscriptionExpired = "SUBSCRIPTION_EXPIRED",
@@ -594,7 +726,8 @@ export declare enum EventLogType {
594
726
  SubscriptionTrialEndsSoon = "SUBSCRIPTION_TRIAL_ENDS_SOON",
595
727
  SubscriptionTrialExpired = "SUBSCRIPTION_TRIAL_EXPIRED",
596
728
  SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
597
- SubscriptionUpdated = "SUBSCRIPTION_UPDATED"
729
+ SubscriptionUpdated = "SUBSCRIPTION_UPDATED",
730
+ SubscriptionUsageUpdated = "SUBSCRIPTION_USAGE_UPDATED"
598
731
  }
599
732
  export declare type FeatureFilter = {
600
733
  and?: Maybe<Array<FeatureFilter>>;
@@ -749,8 +882,53 @@ export declare type ImportCustomerInput = {
749
882
  name?: Maybe<Scalars['String']>;
750
883
  refId: Scalars['String'];
751
884
  };
885
+ export declare type ImportIntegrationCatalogInput = {
886
+ billingModel?: Maybe<BillingModel>;
887
+ entitySelectionMode: EntitySelectionMode;
888
+ environmentId: Scalars['String'];
889
+ featureUnitName?: Maybe<Scalars['String']>;
890
+ featureUnitPluralName?: Maybe<Scalars['String']>;
891
+ plansSelectionBlacklist?: Maybe<Array<Scalars['String']>>;
892
+ plansSelectionWhitelist?: Maybe<Array<Scalars['String']>>;
893
+ productId: Scalars['String'];
894
+ selectedAddonBillingIds: Array<Scalars['String']>;
895
+ vendorIdentifier: VendorIdentifier;
896
+ };
897
+ export declare type ImportIntegrationCustomersInput = {
898
+ customersSelectionBlacklist?: Maybe<Array<Scalars['String']>>;
899
+ customersSelectionWhitelist?: Maybe<Array<Scalars['String']>>;
900
+ entitySelectionMode: EntitySelectionMode;
901
+ environmentId: Scalars['String'];
902
+ productId: Scalars['String'];
903
+ vendorIdentifier: VendorIdentifier;
904
+ };
905
+ export declare type ImportIntegrationTaskFilter = {
906
+ and?: Maybe<Array<ImportIntegrationTaskFilter>>;
907
+ createdAt?: Maybe<DateFieldComparison>;
908
+ environmentId?: Maybe<StringFieldComparison>;
909
+ id?: Maybe<StringFieldComparison>;
910
+ or?: Maybe<Array<ImportIntegrationTaskFilter>>;
911
+ status?: Maybe<TaskStatusFilterComparison>;
912
+ taskType?: Maybe<TaskTypeFilterComparison>;
913
+ };
914
+ export declare type ImportIntegrationTaskSort = {
915
+ direction: SortDirection;
916
+ field: ImportIntegrationTaskSortFields;
917
+ nulls?: Maybe<SortNulls>;
918
+ };
919
+ export declare enum ImportIntegrationTaskSortFields {
920
+ CreatedAt = "createdAt",
921
+ EnvironmentId = "environmentId",
922
+ Id = "id",
923
+ Status = "status",
924
+ TaskType = "taskType"
925
+ }
926
+ export declare type InitAddStripeCustomerPaymentMethodInput = {
927
+ customerRefId: Scalars['String'];
928
+ environmentId?: Maybe<Scalars['String']>;
929
+ };
752
930
  export declare type InitiateCheckoutInput = {
753
- addons?: Maybe<Array<CheckoutAddonInput>>;
931
+ addons?: Maybe<Array<SubscriptionAddonInput>>;
754
932
  billingPeriod: BillingPeriod;
755
933
  cancelUrl: Scalars['String'];
756
934
  customerId: Scalars['String'];
@@ -1009,7 +1187,13 @@ export declare type PackageStatusFilterComparison = {
1009
1187
  notIn?: Maybe<Array<PackageStatus>>;
1010
1188
  notLike?: Maybe<PackageStatus>;
1011
1189
  };
1190
+ /** Type of a payment method */
1191
+ export declare enum PaymentMethodType {
1192
+ Bank = "BANK",
1193
+ Card = "CARD"
1194
+ }
1012
1195
  export declare type PlanCreateInput = {
1196
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1013
1197
  billingId?: Maybe<Scalars['String']>;
1014
1198
  description?: Maybe<Scalars['String']>;
1015
1199
  displayName: Scalars['String'];
@@ -1088,6 +1272,7 @@ export declare enum PlanSortFields {
1088
1272
  VersionNumber = "versionNumber"
1089
1273
  }
1090
1274
  export declare type PlanUpdateInput = {
1275
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1091
1276
  billingId?: Maybe<Scalars['String']>;
1092
1277
  defaultTrialConfig?: Maybe<DefaultTrialConfigInputDto>;
1093
1278
  description?: Maybe<Scalars['String']>;
@@ -1165,6 +1350,7 @@ export declare type PricingTypeFilterComparison = {
1165
1350
  notLike?: Maybe<PricingType>;
1166
1351
  };
1167
1352
  export declare type ProductCreateInput = {
1353
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1168
1354
  description?: Maybe<Scalars['String']>;
1169
1355
  displayName?: Maybe<Scalars['String']>;
1170
1356
  environmentId: Scalars['String'];
@@ -1203,6 +1389,7 @@ export declare enum ProductSortFields {
1203
1389
  UpdatedAt = "updatedAt"
1204
1390
  }
1205
1391
  export declare type ProductUpdateInput = {
1392
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1206
1393
  description?: Maybe<Scalars['String']>;
1207
1394
  displayName?: Maybe<Scalars['String']>;
1208
1395
  productSettings?: Maybe<ProductSettingsInput>;
@@ -1301,6 +1488,16 @@ export declare type RemoveCompatibleAddonsFromPlanInput = {
1301
1488
  /** The ids of the relations. */
1302
1489
  relationIds: Array<Scalars['String']>;
1303
1490
  };
1491
+ export declare type RemoveCouponFromCustomerInput = {
1492
+ /** The id of the record. */
1493
+ id: Scalars['String'];
1494
+ /** The id of relation. */
1495
+ relationId: Scalars['String'];
1496
+ };
1497
+ export declare type ResyncIntegrationInput = {
1498
+ environmentId: Scalars['String'];
1499
+ vendorIdentifier: VendorIdentifier;
1500
+ };
1304
1501
  export declare type SetBasePlanOnPlanInput = {
1305
1502
  /** The id of the record. */
1306
1503
  id: Scalars['String'];
@@ -1313,6 +1510,12 @@ export declare type SetCompatibleAddonsOnPlanInput = {
1313
1510
  /** The ids of the relations. */
1314
1511
  relationIds: Array<Scalars['String']>;
1315
1512
  };
1513
+ export declare type SetCouponOnCustomerInput = {
1514
+ /** The id of the record. */
1515
+ id: Scalars['String'];
1516
+ /** The id of relation. */
1517
+ relationId: Scalars['String'];
1518
+ };
1316
1519
  /** Sort Directions */
1317
1520
  export declare enum SortDirection {
1318
1521
  Asc = "ASC",
@@ -1344,6 +1547,20 @@ export declare type StripeCredentialsInput = {
1344
1547
  authorizationCode: Scalars['String'];
1345
1548
  isTestMode: Scalars['Boolean'];
1346
1549
  };
1550
+ export declare type StripeCustomerSearchInput = {
1551
+ customerName?: Maybe<Scalars['String']>;
1552
+ environmentId: Scalars['String'];
1553
+ nextPage?: Maybe<Scalars['String']>;
1554
+ };
1555
+ export declare type StripeProductSearchInput = {
1556
+ environmentId: Scalars['String'];
1557
+ nextPage?: Maybe<Scalars['String']>;
1558
+ productName?: Maybe<Scalars['String']>;
1559
+ };
1560
+ export declare type StripeSubscriptionSearchInput = {
1561
+ environmentId: Scalars['String'];
1562
+ nextPage?: Maybe<Scalars['String']>;
1563
+ };
1347
1564
  export declare type SubscriptionAddonFilter = {
1348
1565
  addon?: Maybe<SubscriptionAddonFilterAddonFilter>;
1349
1566
  and?: Maybe<Array<SubscriptionAddonFilter>>;
@@ -1464,7 +1681,9 @@ export declare enum SubscriptionEndSetup {
1464
1681
  DowngradeToFree = "DOWNGRADE_TO_FREE"
1465
1682
  }
1466
1683
  export declare type SubscriptionInput = {
1684
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1467
1685
  addons?: Maybe<Array<SubscriptionAddonInput>>;
1686
+ awaitPaymentConfirmation?: Maybe<Scalars['Boolean']>;
1468
1687
  billingId?: Maybe<Scalars['String']>;
1469
1688
  billingPeriod?: Maybe<BillingPeriod>;
1470
1689
  crmId?: Maybe<Scalars['String']>;
@@ -1577,11 +1796,18 @@ export declare type SubscriptionStatusFilterComparison = {
1577
1796
  notIn?: Maybe<Array<SubscriptionStatus>>;
1578
1797
  notLike?: Maybe<SubscriptionStatus>;
1579
1798
  };
1799
+ /** Status of the integration sync */
1800
+ export declare enum SyncStatus {
1801
+ Error = "ERROR",
1802
+ NoSyncRequired = "NO_SYNC_REQUIRED",
1803
+ Pending = "PENDING",
1804
+ Success = "SUCCESS"
1805
+ }
1580
1806
  export declare enum TaskStatus {
1581
1807
  Completed = "COMPLETED",
1582
1808
  Failed = "FAILED",
1583
1809
  InProgress = "IN_PROGRESS",
1584
- PartiallyCompleted = "PARTIALLY_COMPLETED",
1810
+ PartiallyFailed = "PARTIALLY_FAILED",
1585
1811
  Pending = "PENDING"
1586
1812
  }
1587
1813
  export declare type TaskStatusFilterComparison = {
@@ -1601,6 +1827,9 @@ export declare type TaskStatusFilterComparison = {
1601
1827
  notLike?: Maybe<TaskStatus>;
1602
1828
  };
1603
1829
  export declare enum TaskType {
1830
+ ImportIntegrationCatalog = "IMPORT_INTEGRATION_CATALOG",
1831
+ ImportIntegrationCustomers = "IMPORT_INTEGRATION_CUSTOMERS",
1832
+ ResyncIntegration = "RESYNC_INTEGRATION",
1604
1833
  SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
1605
1834
  }
1606
1835
  export declare type TaskTypeFilterComparison = {
@@ -1632,9 +1861,23 @@ export declare enum TrialPeriodUnits {
1632
1861
  Day = "DAY",
1633
1862
  Month = "MONTH"
1634
1863
  }
1864
+ export declare type UpdateAccountInput = {
1865
+ displayName: Scalars['String'];
1866
+ id: Scalars['String'];
1867
+ timezone?: Maybe<Scalars['String']>;
1868
+ };
1869
+ export declare type UpdateCouponInput = {
1870
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1871
+ description?: Maybe<Scalars['String']>;
1872
+ environmentId?: Maybe<Scalars['String']>;
1873
+ name: Scalars['String'];
1874
+ refId: Scalars['String'];
1875
+ };
1635
1876
  export declare type UpdateCustomerInput = {
1877
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1636
1878
  billingId?: Maybe<Scalars['String']>;
1637
1879
  billingInformation?: Maybe<CustomerBillingInfo>;
1880
+ couponRefId?: Maybe<Scalars['String']>;
1638
1881
  crmId?: Maybe<Scalars['String']>;
1639
1882
  email?: Maybe<Scalars['String']>;
1640
1883
  environmentId?: Maybe<Scalars['String']>;
@@ -1719,6 +1962,11 @@ export declare type UpdateOnePromotionalEntitlementInput = {
1719
1962
  /** The update to apply. */
1720
1963
  update: PromotionalEntitlementUpdateInput;
1721
1964
  };
1965
+ export declare type UpdateSubscriptionInput = {
1966
+ additionalMetaData?: Maybe<Scalars['JSON']>;
1967
+ environmentId?: Maybe<Scalars['String']>;
1968
+ refId: Scalars['String'];
1969
+ };
1722
1970
  export declare type UsageHistoryInput = {
1723
1971
  customerRefId: Scalars['String'];
1724
1972
  endDate?: Maybe<Scalars['DateTime']>;
@@ -1831,6 +2079,47 @@ export declare type GetEnvironmentQuery = {
1831
2079
  __typename?: 'Query';
1832
2080
  currentEnvironment: string;
1833
2081
  };
2082
+ export declare type CouponFragment = {
2083
+ __typename?: 'Coupon';
2084
+ id: string;
2085
+ discountValue: number;
2086
+ type: CouponType;
2087
+ additionalMetaData?: any | null | undefined;
2088
+ refId: string;
2089
+ name: string;
2090
+ description?: string | null | undefined;
2091
+ createdAt: any;
2092
+ updatedAt: any;
2093
+ billingId?: string | null | undefined;
2094
+ billingLinkUrl?: string | null | undefined;
2095
+ status: CouponStatus;
2096
+ syncStates?: Array<{
2097
+ __typename?: 'SyncState';
2098
+ vendorIdentifier: VendorIdentifier;
2099
+ status: SyncStatus;
2100
+ }> | null | undefined;
2101
+ customers?: Array<{
2102
+ __typename?: 'Customer';
2103
+ id: string;
2104
+ }> | null | undefined;
2105
+ };
2106
+ export declare type FetchCouponsQueryVariables = Exact<{
2107
+ filter?: Maybe<CouponFilter>;
2108
+ sorting?: Maybe<Array<CouponSort> | CouponSort>;
2109
+ paging?: Maybe<CursorPaging>;
2110
+ }>;
2111
+ export declare type FetchCouponsQuery = {
2112
+ __typename?: 'Query';
2113
+ coupons: {
2114
+ __typename?: 'CouponConnection';
2115
+ edges: Array<{
2116
+ __typename?: 'CouponEdge';
2117
+ node: {
2118
+ __typename?: 'Coupon';
2119
+ } & CouponFragment;
2120
+ }>;
2121
+ };
2122
+ };
1834
2123
  export declare type PriceFragment = {
1835
2124
  __typename?: 'Price';
1836
2125
  billingModel: BillingModel;
@@ -1847,6 +2136,19 @@ export declare type PriceFragment = {
1847
2136
  displayName: string;
1848
2137
  } | null | undefined;
1849
2138
  };
2139
+ export declare type TotalPriceFragment = {
2140
+ __typename?: 'CustomerSubscriptionTotalPrice';
2141
+ subTotal: {
2142
+ __typename?: 'Money';
2143
+ amount: number;
2144
+ currency: Currency;
2145
+ };
2146
+ total: {
2147
+ __typename?: 'Money';
2148
+ amount: number;
2149
+ currency: Currency;
2150
+ };
2151
+ };
1850
2152
  export declare type PackageEntitlementFragment = {
1851
2153
  __typename?: 'PackageEntitlement';
1852
2154
  usageLimit?: number | null | undefined;
@@ -1870,6 +2172,7 @@ export declare type AddonFragment = {
1870
2172
  refId: string;
1871
2173
  displayName: string;
1872
2174
  description?: string | null | undefined;
2175
+ additionalMetaData?: any | null | undefined;
1873
2176
  pricingType?: PricingType | null | undefined;
1874
2177
  entitlements?: Array<{
1875
2178
  __typename?: 'PackageEntitlement';
@@ -1881,6 +2184,7 @@ export declare type PlanFragment = {
1881
2184
  refId: string;
1882
2185
  displayName: string;
1883
2186
  description?: string | null | undefined;
2187
+ additionalMetaData?: any | null | undefined;
1884
2188
  pricingType?: PricingType | null | undefined;
1885
2189
  product: {
1886
2190
  __typename?: 'Product';
@@ -1923,6 +2227,7 @@ export declare type SubscriptionFragment = {
1923
2227
  status: SubscriptionStatus;
1924
2228
  refId: string;
1925
2229
  currentBillingPeriodEnd?: any | null | undefined;
2230
+ additionalMetaData?: any | null | undefined;
1926
2231
  pricingType: PricingType;
1927
2232
  prices?: Array<{
1928
2233
  __typename?: 'SubscriptionPrice';
@@ -1931,6 +2236,9 @@ export declare type SubscriptionFragment = {
1931
2236
  __typename?: 'Price';
1932
2237
  } & PriceFragment;
1933
2238
  }> | null | undefined;
2239
+ totalPrice?: ({
2240
+ __typename?: 'CustomerSubscriptionTotalPrice';
2241
+ } & TotalPriceFragment) | null | undefined;
1934
2242
  plan: {
1935
2243
  __typename?: 'Plan';
1936
2244
  } & PlanFragment;
@@ -1973,6 +2281,10 @@ export declare type CustomerFragment = {
1973
2281
  hasPaymentMethod: boolean;
1974
2282
  refId: string;
1975
2283
  billingId?: string | null | undefined;
2284
+ additionalMetaData?: any | null | undefined;
2285
+ coupon?: ({
2286
+ __typename?: 'Coupon';
2287
+ } & CouponFragment) | null | undefined;
1976
2288
  promotionalEntitlements: Array<{
1977
2289
  __typename?: 'PromotionalEntitlement';
1978
2290
  } & PromotionalEntitlementFragment>;
@@ -2139,20 +2451,27 @@ export declare type CreateSubscriptionMutation = {
2139
2451
  __typename?: 'Mutation';
2140
2452
  createSubscription: {
2141
2453
  __typename?: 'CustomerSubscription';
2454
+ id: string;
2142
2455
  refId: string;
2456
+ status: SubscriptionStatus;
2457
+ additionalMetaData?: any | null | undefined;
2143
2458
  plan: {
2144
2459
  __typename?: 'Plan';
2460
+ id: string;
2145
2461
  refId: string;
2146
2462
  };
2147
2463
  addons?: Array<{
2148
2464
  __typename?: 'SubscriptionAddon';
2465
+ quantity: number;
2149
2466
  addon: {
2150
2467
  __typename?: 'Addon';
2468
+ id: string;
2151
2469
  refId: string;
2152
2470
  };
2153
2471
  }> | null | undefined;
2154
2472
  customer: {
2155
2473
  __typename?: 'Customer';
2474
+ id: string;
2156
2475
  refId: string;
2157
2476
  };
2158
2477
  };
@@ -2164,20 +2483,27 @@ export declare type CancelSubscriptionMutation = {
2164
2483
  __typename?: 'Mutation';
2165
2484
  cancelSubscription: {
2166
2485
  __typename?: 'CustomerSubscription';
2486
+ id: string;
2167
2487
  refId: string;
2488
+ status: SubscriptionStatus;
2489
+ additionalMetaData?: any | null | undefined;
2168
2490
  plan: {
2169
2491
  __typename?: 'Plan';
2492
+ id: string;
2170
2493
  refId: string;
2171
2494
  };
2172
2495
  addons?: Array<{
2173
2496
  __typename?: 'SubscriptionAddon';
2497
+ quantity: number;
2174
2498
  addon: {
2175
2499
  __typename?: 'Addon';
2500
+ id: string;
2176
2501
  refId: string;
2177
2502
  };
2178
2503
  }> | null | undefined;
2179
2504
  customer: {
2180
2505
  __typename?: 'Customer';
2506
+ id: string;
2181
2507
  refId: string;
2182
2508
  };
2183
2509
  };