@stigg/js-client-sdk 0.34.1 → 0.36.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.
- package/dist/api/generated/types.d.ts +152 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +19 -1
- package/dist/utils/ModelMapper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ export declare type Scalars = {
|
|
|
22
22
|
ConnectionCursor: any;
|
|
23
23
|
/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
|
|
24
24
|
DateTime: any;
|
|
25
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
26
|
+
JSON: any;
|
|
25
27
|
};
|
|
26
28
|
/** DenyReason of get access policy */
|
|
27
29
|
export declare enum AccessDeniedReason {
|
|
@@ -39,6 +41,7 @@ export declare type AddCompatibleAddonsToPlanInput = {
|
|
|
39
41
|
relationIds: Array<Scalars['String']>;
|
|
40
42
|
};
|
|
41
43
|
export declare type AddonCreateInput = {
|
|
44
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
42
45
|
billingId?: InputMaybe<Scalars['String']>;
|
|
43
46
|
description?: InputMaybe<Scalars['String']>;
|
|
44
47
|
displayName: Scalars['String'];
|
|
@@ -85,6 +88,7 @@ export declare enum AddonSortFields {
|
|
|
85
88
|
VersionNumber = "versionNumber"
|
|
86
89
|
}
|
|
87
90
|
export declare type AddonUpdateInput = {
|
|
91
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
88
92
|
billingId?: InputMaybe<Scalars['String']>;
|
|
89
93
|
description?: InputMaybe<Scalars['String']>;
|
|
90
94
|
displayName: Scalars['String'];
|
|
@@ -121,6 +125,12 @@ export declare type ArchivePlanInput = {
|
|
|
121
125
|
environmentId: Scalars['String'];
|
|
122
126
|
id: Scalars['String'];
|
|
123
127
|
};
|
|
128
|
+
export declare type AttachCustomerPaymentMethodInput = {
|
|
129
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
130
|
+
paymentMethodId: Scalars['String'];
|
|
131
|
+
refId: Scalars['String'];
|
|
132
|
+
vendorIdentifier: VendorIdentifier;
|
|
133
|
+
};
|
|
124
134
|
/** Billing model. */
|
|
125
135
|
export declare enum BillingModel {
|
|
126
136
|
FlatFee = "FLAT_FEE",
|
|
@@ -173,10 +183,6 @@ export declare enum ChangeType {
|
|
|
173
183
|
Deleted = "DELETED",
|
|
174
184
|
Modified = "MODIFIED"
|
|
175
185
|
}
|
|
176
|
-
export declare type CheckoutAddonInput = {
|
|
177
|
-
addonId: Scalars['String'];
|
|
178
|
-
quantity?: InputMaybe<Scalars['Int']>;
|
|
179
|
-
};
|
|
180
186
|
export declare type CreateEnvironment = {
|
|
181
187
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
182
188
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -255,6 +261,8 @@ export declare type CustomerFilter = {
|
|
|
255
261
|
and?: InputMaybe<Array<CustomerFilter>>;
|
|
256
262
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
257
263
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
264
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
265
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
258
266
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
259
267
|
email?: InputMaybe<StringFieldComparison>;
|
|
260
268
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -273,6 +281,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
273
281
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
274
282
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
275
283
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
284
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
276
285
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
277
286
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
278
287
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -294,6 +303,7 @@ export declare type CustomerFilterPromotionalEntitlementFilter = {
|
|
|
294
303
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
295
304
|
};
|
|
296
305
|
export declare type CustomerInput = {
|
|
306
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
297
307
|
billingId?: InputMaybe<Scalars['String']>;
|
|
298
308
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
299
309
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -310,6 +320,8 @@ export declare type CustomerSort = {
|
|
|
310
320
|
export declare enum CustomerSortFields {
|
|
311
321
|
BillingId = "billingId",
|
|
312
322
|
CreatedAt = "createdAt",
|
|
323
|
+
CrmHubspotCompanyId = "crmHubspotCompanyId",
|
|
324
|
+
CrmHubspotCompanyUrl = "crmHubspotCompanyUrl",
|
|
313
325
|
CrmId = "crmId",
|
|
314
326
|
Email = "email",
|
|
315
327
|
EnvironmentId = "environmentId",
|
|
@@ -326,6 +338,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
326
338
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
327
339
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
328
340
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
341
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
329
342
|
customer?: InputMaybe<CustomerSubscriptionFilterCustomerFilter>;
|
|
330
343
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
331
344
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
@@ -343,6 +356,8 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
|
343
356
|
and?: InputMaybe<Array<CustomerSubscriptionFilterCustomerFilter>>;
|
|
344
357
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
345
358
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
359
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
360
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
346
361
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
347
362
|
email?: InputMaybe<StringFieldComparison>;
|
|
348
363
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -379,6 +394,7 @@ export declare enum CustomerSubscriptionSortFields {
|
|
|
379
394
|
CancellationDate = "cancellationDate",
|
|
380
395
|
CreatedAt = "createdAt",
|
|
381
396
|
CrmId = "crmId",
|
|
397
|
+
CrmLinkUrl = "crmLinkUrl",
|
|
382
398
|
EffectiveEndDate = "effectiveEndDate",
|
|
383
399
|
EndDate = "endDate",
|
|
384
400
|
EnvironmentId = "environmentId",
|
|
@@ -489,6 +505,10 @@ export declare enum EntitlementResetPeriod {
|
|
|
489
505
|
Month = "MONTH",
|
|
490
506
|
Week = "WEEK"
|
|
491
507
|
}
|
|
508
|
+
export declare enum EntitySelectionMode {
|
|
509
|
+
BlackList = "BLACK_LIST",
|
|
510
|
+
WhiteList = "WHITE_LIST"
|
|
511
|
+
}
|
|
492
512
|
export declare type EnvironmentFilter = {
|
|
493
513
|
and?: InputMaybe<Array<EnvironmentFilter>>;
|
|
494
514
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
@@ -515,6 +535,7 @@ export declare enum ErrorCode {
|
|
|
515
535
|
BillingPeriodMissingError = "BillingPeriodMissingError",
|
|
516
536
|
CheckoutIsNotSupported = "CheckoutIsNotSupported",
|
|
517
537
|
CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
|
|
538
|
+
CustomerNoBillingId = "CustomerNoBillingId",
|
|
518
539
|
CustomerNotFound = "CustomerNotFound",
|
|
519
540
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
520
541
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
@@ -523,12 +544,16 @@ export declare enum ErrorCode {
|
|
|
523
544
|
FailedToImportCustomer = "FailedToImportCustomer",
|
|
524
545
|
FeatureNotFound = "FeatureNotFound",
|
|
525
546
|
IdentityForbidden = "IdentityForbidden",
|
|
547
|
+
ImportAlreadyInProgress = "ImportAlreadyInProgress",
|
|
548
|
+
InitStripePaymentMethodError = "InitStripePaymentMethodError",
|
|
549
|
+
IntegrationNotFound = "IntegrationNotFound",
|
|
526
550
|
IntegrityViolation = "IntegrityViolation",
|
|
527
551
|
InvalidAddressError = "InvalidAddressError",
|
|
528
552
|
InvalidArgumentError = "InvalidArgumentError",
|
|
529
553
|
InvalidCancellationDate = "InvalidCancellationDate",
|
|
530
554
|
InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
|
|
531
555
|
InvalidMemberDelete = "InvalidMemberDelete",
|
|
556
|
+
InvalidQuantity = "InvalidQuantity",
|
|
532
557
|
InvalidSubscriptionStatus = "InvalidSubscriptionStatus",
|
|
533
558
|
InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
|
|
534
559
|
MemberInvitationError = "MemberInvitationError",
|
|
@@ -543,10 +568,13 @@ export declare enum ErrorCode {
|
|
|
543
568
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
544
569
|
PriceNotFound = "PriceNotFound",
|
|
545
570
|
RateLimitExceeded = "RateLimitExceeded",
|
|
571
|
+
ResyncAlreadyInProgress = "ResyncAlreadyInProgress",
|
|
572
|
+
StripeCustomerIsDeleted = "StripeCustomerIsDeleted",
|
|
546
573
|
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
574
|
+
SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError",
|
|
547
575
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
548
|
-
TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
|
|
549
576
|
TrialMinDateError = "TrialMinDateError",
|
|
577
|
+
TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
|
|
550
578
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
551
579
|
UnPublishedPackage = "UnPublishedPackage",
|
|
552
580
|
Unauthenticated = "Unauthenticated",
|
|
@@ -570,6 +598,8 @@ export declare enum EventLogType {
|
|
|
570
598
|
FeatureCreated = "FEATURE_CREATED",
|
|
571
599
|
FeatureDeleted = "FEATURE_DELETED",
|
|
572
600
|
FeatureUpdated = "FEATURE_UPDATED",
|
|
601
|
+
ImportIntegrationCatalogTriggered = "IMPORT_INTEGRATION_CATALOG_TRIGGERED",
|
|
602
|
+
ImportIntegrationCustomersTriggered = "IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",
|
|
573
603
|
MeasurementReported = "MEASUREMENT_REPORTED",
|
|
574
604
|
PackagePublished = "PACKAGE_PUBLISHED",
|
|
575
605
|
PlanCreated = "PLAN_CREATED",
|
|
@@ -579,6 +609,7 @@ export declare enum EventLogType {
|
|
|
579
609
|
PromotionalEntitlementGranted = "PROMOTIONAL_ENTITLEMENT_GRANTED",
|
|
580
610
|
PromotionalEntitlementRevoked = "PROMOTIONAL_ENTITLEMENT_REVOKED",
|
|
581
611
|
PromotionalEntitlementUpdated = "PROMOTIONAL_ENTITLEMENT_UPDATED",
|
|
612
|
+
ResyncIntegrationTriggered = "RESYNC_INTEGRATION_TRIGGERED",
|
|
582
613
|
SubscriptionCanceled = "SUBSCRIPTION_CANCELED",
|
|
583
614
|
SubscriptionCreated = "SUBSCRIPTION_CREATED",
|
|
584
615
|
SubscriptionExpired = "SUBSCRIPTION_EXPIRED",
|
|
@@ -586,7 +617,8 @@ export declare enum EventLogType {
|
|
|
586
617
|
SubscriptionTrialEndsSoon = "SUBSCRIPTION_TRIAL_ENDS_SOON",
|
|
587
618
|
SubscriptionTrialExpired = "SUBSCRIPTION_TRIAL_EXPIRED",
|
|
588
619
|
SubscriptionTrialStarted = "SUBSCRIPTION_TRIAL_STARTED",
|
|
589
|
-
SubscriptionUpdated = "SUBSCRIPTION_UPDATED"
|
|
620
|
+
SubscriptionUpdated = "SUBSCRIPTION_UPDATED",
|
|
621
|
+
SubscriptionUsageUpdated = "SUBSCRIPTION_USAGE_UPDATED"
|
|
590
622
|
}
|
|
591
623
|
export declare type FeatureFilter = {
|
|
592
624
|
and?: InputMaybe<Array<FeatureFilter>>;
|
|
@@ -741,8 +773,50 @@ export declare type ImportCustomerInput = {
|
|
|
741
773
|
name?: InputMaybe<Scalars['String']>;
|
|
742
774
|
refId: Scalars['String'];
|
|
743
775
|
};
|
|
776
|
+
export declare type ImportIntegrationCatalogInput = {
|
|
777
|
+
entitySelectionMode: EntitySelectionMode;
|
|
778
|
+
environmentId: Scalars['String'];
|
|
779
|
+
plansSelectionBlacklist?: InputMaybe<Array<Scalars['String']>>;
|
|
780
|
+
plansSelectionWhitelist?: InputMaybe<Array<Scalars['String']>>;
|
|
781
|
+
productId: Scalars['String'];
|
|
782
|
+
selectedAddonBillingIds: Array<Scalars['String']>;
|
|
783
|
+
vendorIdentifier: VendorIdentifier;
|
|
784
|
+
};
|
|
785
|
+
export declare type ImportIntegrationCustomersInput = {
|
|
786
|
+
customersSelectionBlacklist?: InputMaybe<Array<Scalars['String']>>;
|
|
787
|
+
customersSelectionWhitelist?: InputMaybe<Array<Scalars['String']>>;
|
|
788
|
+
entitySelectionMode: EntitySelectionMode;
|
|
789
|
+
environmentId: Scalars['String'];
|
|
790
|
+
productId: Scalars['String'];
|
|
791
|
+
vendorIdentifier: VendorIdentifier;
|
|
792
|
+
};
|
|
793
|
+
export declare type ImportIntegrationTaskFilter = {
|
|
794
|
+
and?: InputMaybe<Array<ImportIntegrationTaskFilter>>;
|
|
795
|
+
createdAt?: InputMaybe<DateFieldComparison>;
|
|
796
|
+
environmentId?: InputMaybe<StringFieldComparison>;
|
|
797
|
+
id?: InputMaybe<StringFieldComparison>;
|
|
798
|
+
or?: InputMaybe<Array<ImportIntegrationTaskFilter>>;
|
|
799
|
+
status?: InputMaybe<TaskStatusFilterComparison>;
|
|
800
|
+
taskType?: InputMaybe<TaskTypeFilterComparison>;
|
|
801
|
+
};
|
|
802
|
+
export declare type ImportIntegrationTaskSort = {
|
|
803
|
+
direction: SortDirection;
|
|
804
|
+
field: ImportIntegrationTaskSortFields;
|
|
805
|
+
nulls?: InputMaybe<SortNulls>;
|
|
806
|
+
};
|
|
807
|
+
export declare enum ImportIntegrationTaskSortFields {
|
|
808
|
+
CreatedAt = "createdAt",
|
|
809
|
+
EnvironmentId = "environmentId",
|
|
810
|
+
Id = "id",
|
|
811
|
+
Status = "status",
|
|
812
|
+
TaskType = "taskType"
|
|
813
|
+
}
|
|
814
|
+
export declare type InitAddStripeCustomerPaymentMethodInput = {
|
|
815
|
+
customerRefId: Scalars['String'];
|
|
816
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
817
|
+
};
|
|
744
818
|
export declare type InitiateCheckoutInput = {
|
|
745
|
-
addons?: InputMaybe<Array<
|
|
819
|
+
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
746
820
|
billingPeriod: BillingPeriod;
|
|
747
821
|
cancelUrl: Scalars['String'];
|
|
748
822
|
customerId: Scalars['String'];
|
|
@@ -1001,7 +1075,13 @@ export declare type PackageStatusFilterComparison = {
|
|
|
1001
1075
|
notIn?: InputMaybe<Array<PackageStatus>>;
|
|
1002
1076
|
notLike?: InputMaybe<PackageStatus>;
|
|
1003
1077
|
};
|
|
1078
|
+
/** Type of a payment method */
|
|
1079
|
+
export declare enum PaymentMethodType {
|
|
1080
|
+
Bank = "BANK",
|
|
1081
|
+
Card = "CARD"
|
|
1082
|
+
}
|
|
1004
1083
|
export declare type PlanCreateInput = {
|
|
1084
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1005
1085
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1006
1086
|
description?: InputMaybe<Scalars['String']>;
|
|
1007
1087
|
displayName: Scalars['String'];
|
|
@@ -1080,6 +1160,7 @@ export declare enum PlanSortFields {
|
|
|
1080
1160
|
VersionNumber = "versionNumber"
|
|
1081
1161
|
}
|
|
1082
1162
|
export declare type PlanUpdateInput = {
|
|
1163
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1083
1164
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1084
1165
|
defaultTrialConfig?: InputMaybe<DefaultTrialConfigInputDto>;
|
|
1085
1166
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -1157,6 +1238,7 @@ export declare type PricingTypeFilterComparison = {
|
|
|
1157
1238
|
notLike?: InputMaybe<PricingType>;
|
|
1158
1239
|
};
|
|
1159
1240
|
export declare type ProductCreateInput = {
|
|
1241
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1160
1242
|
description?: InputMaybe<Scalars['String']>;
|
|
1161
1243
|
displayName?: InputMaybe<Scalars['String']>;
|
|
1162
1244
|
environmentId: Scalars['String'];
|
|
@@ -1195,6 +1277,7 @@ export declare enum ProductSortFields {
|
|
|
1195
1277
|
UpdatedAt = "updatedAt"
|
|
1196
1278
|
}
|
|
1197
1279
|
export declare type ProductUpdateInput = {
|
|
1280
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1198
1281
|
description?: InputMaybe<Scalars['String']>;
|
|
1199
1282
|
displayName?: InputMaybe<Scalars['String']>;
|
|
1200
1283
|
productSettings?: InputMaybe<ProductSettingsInput>;
|
|
@@ -1293,6 +1376,10 @@ export declare type RemoveCompatibleAddonsFromPlanInput = {
|
|
|
1293
1376
|
/** The ids of the relations. */
|
|
1294
1377
|
relationIds: Array<Scalars['String']>;
|
|
1295
1378
|
};
|
|
1379
|
+
export declare type ResyncIntegrationInput = {
|
|
1380
|
+
environmentId: Scalars['String'];
|
|
1381
|
+
vendorIdentifier: VendorIdentifier;
|
|
1382
|
+
};
|
|
1296
1383
|
export declare type SetBasePlanOnPlanInput = {
|
|
1297
1384
|
/** The id of the record. */
|
|
1298
1385
|
id: Scalars['String'];
|
|
@@ -1336,6 +1423,20 @@ export declare type StripeCredentialsInput = {
|
|
|
1336
1423
|
authorizationCode: Scalars['String'];
|
|
1337
1424
|
isTestMode: Scalars['Boolean'];
|
|
1338
1425
|
};
|
|
1426
|
+
export declare type StripeCustomerSearchInput = {
|
|
1427
|
+
customerName?: InputMaybe<Scalars['String']>;
|
|
1428
|
+
environmentId: Scalars['String'];
|
|
1429
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1430
|
+
};
|
|
1431
|
+
export declare type StripeProductSearchInput = {
|
|
1432
|
+
environmentId: Scalars['String'];
|
|
1433
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1434
|
+
productName?: InputMaybe<Scalars['String']>;
|
|
1435
|
+
};
|
|
1436
|
+
export declare type StripeSubscriptionSearchInput = {
|
|
1437
|
+
environmentId: Scalars['String'];
|
|
1438
|
+
nextPage?: InputMaybe<Scalars['String']>;
|
|
1439
|
+
};
|
|
1339
1440
|
export declare type SubscriptionAddonFilter = {
|
|
1340
1441
|
addon?: InputMaybe<SubscriptionAddonFilterAddonFilter>;
|
|
1341
1442
|
and?: InputMaybe<Array<SubscriptionAddonFilter>>;
|
|
@@ -1371,6 +1472,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1371
1472
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1372
1473
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1373
1474
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1475
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
1374
1476
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1375
1477
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1376
1478
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1413,6 +1515,7 @@ export declare enum SubscriptionCancelReason {
|
|
|
1413
1515
|
Expired = "Expired",
|
|
1414
1516
|
Immediate = "Immediate",
|
|
1415
1517
|
PendingPaymentExpired = "PendingPaymentExpired",
|
|
1518
|
+
ScheduledCancellation = "ScheduledCancellation",
|
|
1416
1519
|
TrialConverted = "TrialConverted",
|
|
1417
1520
|
TrialEnded = "TrialEnded",
|
|
1418
1521
|
UpgradeOrDowngrade = "UpgradeOrDowngrade"
|
|
@@ -1454,7 +1557,9 @@ export declare enum SubscriptionEndSetup {
|
|
|
1454
1557
|
DowngradeToFree = "DOWNGRADE_TO_FREE"
|
|
1455
1558
|
}
|
|
1456
1559
|
export declare type SubscriptionInput = {
|
|
1560
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1457
1561
|
addons?: InputMaybe<Array<SubscriptionAddonInput>>;
|
|
1562
|
+
awaitPaymentConfirmation?: InputMaybe<Scalars['Boolean']>;
|
|
1458
1563
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1459
1564
|
billingPeriod?: InputMaybe<BillingPeriod>;
|
|
1460
1565
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -1511,6 +1616,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
1511
1616
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1512
1617
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1513
1618
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1619
|
+
crmLinkUrl?: InputMaybe<StringFieldComparison>;
|
|
1514
1620
|
effectiveEndDate?: InputMaybe<DateFieldComparison>;
|
|
1515
1621
|
endDate?: InputMaybe<DateFieldComparison>;
|
|
1516
1622
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1566,11 +1672,18 @@ export declare type SubscriptionStatusFilterComparison = {
|
|
|
1566
1672
|
notIn?: InputMaybe<Array<SubscriptionStatus>>;
|
|
1567
1673
|
notLike?: InputMaybe<SubscriptionStatus>;
|
|
1568
1674
|
};
|
|
1675
|
+
/** Status of the integration sync */
|
|
1676
|
+
export declare enum SyncStatus {
|
|
1677
|
+
Error = "ERROR",
|
|
1678
|
+
NoSyncRequired = "NO_SYNC_REQUIRED",
|
|
1679
|
+
Pending = "PENDING",
|
|
1680
|
+
Success = "SUCCESS"
|
|
1681
|
+
}
|
|
1569
1682
|
export declare enum TaskStatus {
|
|
1570
1683
|
Completed = "COMPLETED",
|
|
1571
1684
|
Failed = "FAILED",
|
|
1572
1685
|
InProgress = "IN_PROGRESS",
|
|
1573
|
-
|
|
1686
|
+
PartiallyFailed = "PARTIALLY_FAILED",
|
|
1574
1687
|
Pending = "PENDING"
|
|
1575
1688
|
}
|
|
1576
1689
|
export declare type TaskStatusFilterComparison = {
|
|
@@ -1590,6 +1703,9 @@ export declare type TaskStatusFilterComparison = {
|
|
|
1590
1703
|
notLike?: InputMaybe<TaskStatus>;
|
|
1591
1704
|
};
|
|
1592
1705
|
export declare enum TaskType {
|
|
1706
|
+
ImportIntegrationCatalog = "IMPORT_INTEGRATION_CATALOG",
|
|
1707
|
+
ImportIntegrationCustomers = "IMPORT_INTEGRATION_CUSTOMERS",
|
|
1708
|
+
ResyncIntegration = "RESYNC_INTEGRATION",
|
|
1593
1709
|
SubscriptionMigration = "SUBSCRIPTION_MIGRATION"
|
|
1594
1710
|
}
|
|
1595
1711
|
export declare type TaskTypeFilterComparison = {
|
|
@@ -1621,7 +1737,13 @@ export declare enum TrialPeriodUnits {
|
|
|
1621
1737
|
Day = "DAY",
|
|
1622
1738
|
Month = "MONTH"
|
|
1623
1739
|
}
|
|
1740
|
+
export declare type UpdateAccountInput = {
|
|
1741
|
+
displayName: Scalars['String'];
|
|
1742
|
+
id: Scalars['String'];
|
|
1743
|
+
timezone?: InputMaybe<Scalars['String']>;
|
|
1744
|
+
};
|
|
1624
1745
|
export declare type UpdateCustomerInput = {
|
|
1746
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1625
1747
|
billingId?: InputMaybe<Scalars['String']>;
|
|
1626
1748
|
billingInformation?: InputMaybe<CustomerBillingInfo>;
|
|
1627
1749
|
crmId?: InputMaybe<Scalars['String']>;
|
|
@@ -1708,6 +1830,11 @@ export declare type UpdateOnePromotionalEntitlementInput = {
|
|
|
1708
1830
|
/** The update to apply. */
|
|
1709
1831
|
update: PromotionalEntitlementUpdateInput;
|
|
1710
1832
|
};
|
|
1833
|
+
export declare type UpdateSubscriptionInput = {
|
|
1834
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
1835
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
1836
|
+
refId: Scalars['String'];
|
|
1837
|
+
};
|
|
1711
1838
|
export declare type UsageHistoryInput = {
|
|
1712
1839
|
customerRefId: Scalars['String'];
|
|
1713
1840
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
@@ -1738,6 +1865,8 @@ export declare type UsageMeasurementFilterCustomerFilter = {
|
|
|
1738
1865
|
and?: InputMaybe<Array<UsageMeasurementFilterCustomerFilter>>;
|
|
1739
1866
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1740
1867
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1868
|
+
crmHubspotCompanyId?: InputMaybe<StringFieldComparison>;
|
|
1869
|
+
crmHubspotCompanyUrl?: InputMaybe<StringFieldComparison>;
|
|
1741
1870
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
1742
1871
|
email?: InputMaybe<StringFieldComparison>;
|
|
1743
1872
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1818,9 +1947,11 @@ export declare type SubscriptionFragment = {
|
|
|
1818
1947
|
endDate?: any | null | undefined;
|
|
1819
1948
|
trialEndDate?: any | null | undefined;
|
|
1820
1949
|
cancellationDate?: any | null | undefined;
|
|
1950
|
+
effectiveEndDate?: any | null | undefined;
|
|
1821
1951
|
status: SubscriptionStatus;
|
|
1822
1952
|
refId: string;
|
|
1823
1953
|
currentBillingPeriodEnd?: any | null | undefined;
|
|
1954
|
+
additionalMetaData?: any | null | undefined;
|
|
1824
1955
|
pricingType: PricingType;
|
|
1825
1956
|
prices?: Array<{
|
|
1826
1957
|
__typename?: 'SubscriptionPrice';
|
|
@@ -1835,6 +1966,7 @@ export declare type SubscriptionFragment = {
|
|
|
1835
1966
|
refId: string;
|
|
1836
1967
|
displayName: string;
|
|
1837
1968
|
description?: string | null | undefined;
|
|
1969
|
+
additionalMetaData?: any | null | undefined;
|
|
1838
1970
|
product: {
|
|
1839
1971
|
__typename?: 'Product';
|
|
1840
1972
|
refId: string;
|
|
@@ -1890,6 +2022,7 @@ export declare type SubscriptionFragment = {
|
|
|
1890
2022
|
refId: string;
|
|
1891
2023
|
displayName: string;
|
|
1892
2024
|
description?: string | null | undefined;
|
|
2025
|
+
additionalMetaData?: any | null | undefined;
|
|
1893
2026
|
entitlements?: Array<{
|
|
1894
2027
|
__typename?: 'PackageEntitlement';
|
|
1895
2028
|
usageLimit?: number | null | undefined;
|
|
@@ -1938,6 +2071,14 @@ export declare type CustomerFragment = {
|
|
|
1938
2071
|
updatedAt: any;
|
|
1939
2072
|
hasPaymentMethod: boolean;
|
|
1940
2073
|
refId: string;
|
|
2074
|
+
additionalMetaData?: any | null | undefined;
|
|
2075
|
+
trialedPlans?: Array<{
|
|
2076
|
+
__typename?: 'TrialedPlan';
|
|
2077
|
+
productId?: string | null | undefined;
|
|
2078
|
+
productRefId?: string | null | undefined;
|
|
2079
|
+
planRefId?: string | null | undefined;
|
|
2080
|
+
planId?: string | null | undefined;
|
|
2081
|
+
}> | null | undefined;
|
|
1941
2082
|
promotionalEntitlements: Array<{
|
|
1942
2083
|
__typename?: 'PromotionalEntitlement';
|
|
1943
2084
|
} & PromotionalEntitlementFragment>;
|
|
@@ -2043,6 +2184,7 @@ export declare type AddonFragment = {
|
|
|
2043
2184
|
refId: string;
|
|
2044
2185
|
displayName: string;
|
|
2045
2186
|
description?: string | null | undefined;
|
|
2187
|
+
additionalMetaData?: any | null | undefined;
|
|
2046
2188
|
pricingType?: PricingType | null | undefined;
|
|
2047
2189
|
entitlements?: Array<{
|
|
2048
2190
|
__typename?: 'PackageEntitlement';
|
|
@@ -2057,12 +2199,14 @@ export declare type PlanFragment = {
|
|
|
2057
2199
|
refId: string;
|
|
2058
2200
|
description?: string | null | undefined;
|
|
2059
2201
|
displayName: string;
|
|
2202
|
+
additionalMetaData?: any | null | undefined;
|
|
2060
2203
|
pricingType?: PricingType | null | undefined;
|
|
2061
2204
|
product: {
|
|
2062
2205
|
__typename?: 'Product';
|
|
2063
2206
|
refId: string;
|
|
2064
2207
|
displayName?: string | null | undefined;
|
|
2065
2208
|
description?: string | null | undefined;
|
|
2209
|
+
additionalMetaData?: any | null | undefined;
|
|
2066
2210
|
};
|
|
2067
2211
|
basePlan?: {
|
|
2068
2212
|
__typename?: 'Plan';
|