@stigg/js-client-sdk 0.32.0 → 0.34.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 +111 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +5 -2
- package/dist/utils/ModelMapper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -57,6 +57,7 @@ export declare type AddonFilter = {
|
|
|
57
57
|
id?: InputMaybe<StringFieldComparison>;
|
|
58
58
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
59
59
|
or?: InputMaybe<Array<AddonFilter>>;
|
|
60
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
60
61
|
productId?: InputMaybe<StringFieldComparison>;
|
|
61
62
|
refId?: InputMaybe<StringFieldComparison>;
|
|
62
63
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
@@ -76,6 +77,7 @@ export declare enum AddonSortFields {
|
|
|
76
77
|
EnvironmentId = "environmentId",
|
|
77
78
|
Id = "id",
|
|
78
79
|
IsLatest = "isLatest",
|
|
80
|
+
PricingType = "pricingType",
|
|
79
81
|
ProductId = "productId",
|
|
80
82
|
RefId = "refId",
|
|
81
83
|
Status = "status",
|
|
@@ -267,6 +269,7 @@ export declare type CustomerFilter = {
|
|
|
267
269
|
export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
268
270
|
and?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
269
271
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
272
|
+
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
270
273
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
271
274
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
272
275
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
@@ -275,6 +278,7 @@ export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
|
275
278
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
276
279
|
id?: InputMaybe<StringFieldComparison>;
|
|
277
280
|
or?: InputMaybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
281
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
278
282
|
refId?: InputMaybe<StringFieldComparison>;
|
|
279
283
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
280
284
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
@@ -318,6 +322,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
318
322
|
addons?: InputMaybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
|
|
319
323
|
and?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
320
324
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
325
|
+
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
321
326
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
322
327
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
323
328
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
@@ -328,6 +333,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
328
333
|
id?: InputMaybe<StringFieldComparison>;
|
|
329
334
|
or?: InputMaybe<Array<CustomerSubscriptionFilter>>;
|
|
330
335
|
prices?: InputMaybe<CustomerSubscriptionFilterSubscriptionPriceFilter>;
|
|
336
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
331
337
|
refId?: InputMaybe<StringFieldComparison>;
|
|
332
338
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
333
339
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
@@ -369,6 +375,7 @@ export declare type CustomerSubscriptionSort = {
|
|
|
369
375
|
};
|
|
370
376
|
export declare enum CustomerSubscriptionSortFields {
|
|
371
377
|
BillingId = "billingId",
|
|
378
|
+
CancelReason = "cancelReason",
|
|
372
379
|
CancellationDate = "cancellationDate",
|
|
373
380
|
CreatedAt = "createdAt",
|
|
374
381
|
CrmId = "crmId",
|
|
@@ -376,6 +383,7 @@ export declare enum CustomerSubscriptionSortFields {
|
|
|
376
383
|
EndDate = "endDate",
|
|
377
384
|
EnvironmentId = "environmentId",
|
|
378
385
|
Id = "id",
|
|
386
|
+
PricingType = "pricingType",
|
|
379
387
|
RefId = "refId",
|
|
380
388
|
StartDate = "startDate",
|
|
381
389
|
Status = "status",
|
|
@@ -487,6 +495,7 @@ export declare type EnvironmentFilter = {
|
|
|
487
495
|
displayName?: InputMaybe<StringFieldComparison>;
|
|
488
496
|
id?: InputMaybe<StringFieldComparison>;
|
|
489
497
|
or?: InputMaybe<Array<EnvironmentFilter>>;
|
|
498
|
+
slug?: InputMaybe<StringFieldComparison>;
|
|
490
499
|
};
|
|
491
500
|
export declare type EnvironmentSort = {
|
|
492
501
|
direction: SortDirection;
|
|
@@ -496,7 +505,8 @@ export declare type EnvironmentSort = {
|
|
|
496
505
|
export declare enum EnvironmentSortFields {
|
|
497
506
|
CreatedAt = "createdAt",
|
|
498
507
|
DisplayName = "displayName",
|
|
499
|
-
Id = "id"
|
|
508
|
+
Id = "id",
|
|
509
|
+
Slug = "slug"
|
|
500
510
|
}
|
|
501
511
|
/** error codes */
|
|
502
512
|
export declare enum ErrorCode {
|
|
@@ -508,20 +518,25 @@ export declare enum ErrorCode {
|
|
|
508
518
|
CustomerNotFound = "CustomerNotFound",
|
|
509
519
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
510
520
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
521
|
+
EditAllowedOnDraftPackageOnlyError = "EditAllowedOnDraftPackageOnlyError",
|
|
511
522
|
EnvironmentMissing = "EnvironmentMissing",
|
|
523
|
+
FailedToImportCustomer = "FailedToImportCustomer",
|
|
512
524
|
FeatureNotFound = "FeatureNotFound",
|
|
513
525
|
IdentityForbidden = "IdentityForbidden",
|
|
514
526
|
IntegrityViolation = "IntegrityViolation",
|
|
515
527
|
InvalidAddressError = "InvalidAddressError",
|
|
528
|
+
InvalidArgumentError = "InvalidArgumentError",
|
|
516
529
|
InvalidCancellationDate = "InvalidCancellationDate",
|
|
517
530
|
InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod",
|
|
518
531
|
InvalidMemberDelete = "InvalidMemberDelete",
|
|
532
|
+
InvalidSubscriptionStatus = "InvalidSubscriptionStatus",
|
|
519
533
|
InvalidUsageValueForIncrementalFeatureError = "InvalidUsageValueForIncrementalFeatureError",
|
|
520
534
|
MemberInvitationError = "MemberInvitationError",
|
|
521
535
|
MemberNotFound = "MemberNotFound",
|
|
522
536
|
MeteringNotAvailableForFeatureType = "MeteringNotAvailableForFeatureType",
|
|
523
537
|
NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription",
|
|
524
538
|
PackageAlreadyPublished = "PackageAlreadyPublished",
|
|
539
|
+
PackagePricingTypeNotSet = "PackagePricingTypeNotSet",
|
|
525
540
|
PlanAlreadyExtended = "PlanAlreadyExtended",
|
|
526
541
|
PlanNotFound = "PlanNotFound",
|
|
527
542
|
PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted",
|
|
@@ -530,7 +545,8 @@ export declare enum ErrorCode {
|
|
|
530
545
|
RateLimitExceeded = "RateLimitExceeded",
|
|
531
546
|
SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired",
|
|
532
547
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
533
|
-
|
|
548
|
+
TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately",
|
|
549
|
+
TrialMinDateError = "TrialMinDateError",
|
|
534
550
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
535
551
|
UnPublishedPackage = "UnPublishedPackage",
|
|
536
552
|
Unauthenticated = "Unauthenticated",
|
|
@@ -718,6 +734,13 @@ export declare type HubspotCredentialsInput = {
|
|
|
718
734
|
authorizationCode: Scalars['String'];
|
|
719
735
|
refreshToken?: InputMaybe<Scalars['String']>;
|
|
720
736
|
};
|
|
737
|
+
export declare type ImportCustomerInput = {
|
|
738
|
+
billingId: Scalars['String'];
|
|
739
|
+
email?: InputMaybe<Scalars['String']>;
|
|
740
|
+
environmentId?: InputMaybe<Scalars['String']>;
|
|
741
|
+
name?: InputMaybe<Scalars['String']>;
|
|
742
|
+
refId: Scalars['String'];
|
|
743
|
+
};
|
|
721
744
|
export declare type InitiateCheckoutInput = {
|
|
722
745
|
addons?: InputMaybe<Array<CheckoutAddonInput>>;
|
|
723
746
|
billingPeriod: BillingPeriod;
|
|
@@ -846,6 +869,7 @@ export declare type PackageDtoFilter = {
|
|
|
846
869
|
id?: InputMaybe<StringFieldComparison>;
|
|
847
870
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
848
871
|
or?: InputMaybe<Array<PackageDtoFilter>>;
|
|
872
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
849
873
|
productId?: InputMaybe<StringFieldComparison>;
|
|
850
874
|
refId?: InputMaybe<StringFieldComparison>;
|
|
851
875
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
@@ -865,6 +889,7 @@ export declare enum PackageDtoSortFields {
|
|
|
865
889
|
EnvironmentId = "environmentId",
|
|
866
890
|
Id = "id",
|
|
867
891
|
IsLatest = "isLatest",
|
|
892
|
+
PricingType = "pricingType",
|
|
868
893
|
ProductId = "productId",
|
|
869
894
|
RefId = "refId",
|
|
870
895
|
Status = "status",
|
|
@@ -906,6 +931,7 @@ export declare type PackageEntitlementFilterPackageDtoFilter = {
|
|
|
906
931
|
id?: InputMaybe<StringFieldComparison>;
|
|
907
932
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
908
933
|
or?: InputMaybe<Array<PackageEntitlementFilterPackageDtoFilter>>;
|
|
934
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
909
935
|
productId?: InputMaybe<StringFieldComparison>;
|
|
910
936
|
refId?: InputMaybe<StringFieldComparison>;
|
|
911
937
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
@@ -943,6 +969,12 @@ export declare type PackageEntitlementUpdateInput = {
|
|
|
943
969
|
usageLimit?: InputMaybe<Scalars['Float']>;
|
|
944
970
|
weeklyResetPeriodConfiguration?: InputMaybe<WeeklyResetPeriodConfigInput>;
|
|
945
971
|
};
|
|
972
|
+
export declare type PackagePricingInput = {
|
|
973
|
+
environmentId: Scalars['String'];
|
|
974
|
+
packageId: Scalars['String'];
|
|
975
|
+
pricingModel?: InputMaybe<PricingModelCreateInput>;
|
|
976
|
+
pricingType: PricingType;
|
|
977
|
+
};
|
|
946
978
|
export declare type PackagePublishInput = {
|
|
947
979
|
id: Scalars['ID'];
|
|
948
980
|
migrationType: PublishMigrationType;
|
|
@@ -990,6 +1022,7 @@ export declare type PlanFilter = {
|
|
|
990
1022
|
id?: InputMaybe<StringFieldComparison>;
|
|
991
1023
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
992
1024
|
or?: InputMaybe<Array<PlanFilter>>;
|
|
1025
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
993
1026
|
product?: InputMaybe<PlanFilterProductFilter>;
|
|
994
1027
|
productId?: InputMaybe<StringFieldComparison>;
|
|
995
1028
|
refId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1007,6 +1040,7 @@ export declare type PlanFilterAddonFilter = {
|
|
|
1007
1040
|
id?: InputMaybe<StringFieldComparison>;
|
|
1008
1041
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
1009
1042
|
or?: InputMaybe<Array<PlanFilterAddonFilter>>;
|
|
1043
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1010
1044
|
productId?: InputMaybe<StringFieldComparison>;
|
|
1011
1045
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1012
1046
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
@@ -1038,6 +1072,7 @@ export declare enum PlanSortFields {
|
|
|
1038
1072
|
EnvironmentId = "environmentId",
|
|
1039
1073
|
Id = "id",
|
|
1040
1074
|
IsLatest = "isLatest",
|
|
1075
|
+
PricingType = "pricingType",
|
|
1041
1076
|
ProductId = "productId",
|
|
1042
1077
|
RefId = "refId",
|
|
1043
1078
|
Status = "status",
|
|
@@ -1053,14 +1088,6 @@ export declare type PlanUpdateInput = {
|
|
|
1053
1088
|
parentPlanId?: InputMaybe<Scalars['String']>;
|
|
1054
1089
|
status?: InputMaybe<PackageStatus>;
|
|
1055
1090
|
};
|
|
1056
|
-
export declare type PriceCreateInput = {
|
|
1057
|
-
billingModel: BillingModel;
|
|
1058
|
-
billingPeriod: BillingPeriod;
|
|
1059
|
-
environmentId: Scalars['String'];
|
|
1060
|
-
featureId?: InputMaybe<Scalars['String']>;
|
|
1061
|
-
packageId: Scalars['String'];
|
|
1062
|
-
price: MoneyInputDto;
|
|
1063
|
-
};
|
|
1064
1091
|
export declare type PriceFilter = {
|
|
1065
1092
|
and?: InputMaybe<Array<PriceFilter>>;
|
|
1066
1093
|
billingModel?: InputMaybe<BillingModelFilterComparison>;
|
|
@@ -1080,12 +1107,17 @@ export declare type PriceFilterPackageDtoFilter = {
|
|
|
1080
1107
|
id?: InputMaybe<StringFieldComparison>;
|
|
1081
1108
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
1082
1109
|
or?: InputMaybe<Array<PriceFilterPackageDtoFilter>>;
|
|
1110
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1083
1111
|
productId?: InputMaybe<StringFieldComparison>;
|
|
1084
1112
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1085
1113
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
1086
1114
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
1087
1115
|
versionNumber?: InputMaybe<IntFieldComparison>;
|
|
1088
1116
|
};
|
|
1117
|
+
export declare type PricePeriodInput = {
|
|
1118
|
+
billingPeriod: BillingPeriod;
|
|
1119
|
+
price: MoneyInputDto;
|
|
1120
|
+
};
|
|
1089
1121
|
export declare type PriceSort = {
|
|
1090
1122
|
direction: SortDirection;
|
|
1091
1123
|
field: PriceSortFields;
|
|
@@ -1097,14 +1129,32 @@ export declare enum PriceSortFields {
|
|
|
1097
1129
|
CreatedAt = "createdAt",
|
|
1098
1130
|
Id = "id"
|
|
1099
1131
|
}
|
|
1100
|
-
export declare type
|
|
1132
|
+
export declare type PricingModelCreateInput = {
|
|
1101
1133
|
billingModel: BillingModel;
|
|
1102
|
-
billingPeriod: BillingPeriod;
|
|
1103
|
-
environmentId: Scalars['String'];
|
|
1104
1134
|
featureId?: InputMaybe<Scalars['String']>;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1135
|
+
pricePeriods: Array<PricePeriodInput>;
|
|
1136
|
+
};
|
|
1137
|
+
/** Package pricing type. */
|
|
1138
|
+
export declare enum PricingType {
|
|
1139
|
+
Custom = "CUSTOM",
|
|
1140
|
+
Free = "FREE",
|
|
1141
|
+
Paid = "PAID"
|
|
1142
|
+
}
|
|
1143
|
+
export declare type PricingTypeFilterComparison = {
|
|
1144
|
+
eq?: InputMaybe<PricingType>;
|
|
1145
|
+
gt?: InputMaybe<PricingType>;
|
|
1146
|
+
gte?: InputMaybe<PricingType>;
|
|
1147
|
+
iLike?: InputMaybe<PricingType>;
|
|
1148
|
+
in?: InputMaybe<Array<PricingType>>;
|
|
1149
|
+
is?: InputMaybe<Scalars['Boolean']>;
|
|
1150
|
+
isNot?: InputMaybe<Scalars['Boolean']>;
|
|
1151
|
+
like?: InputMaybe<PricingType>;
|
|
1152
|
+
lt?: InputMaybe<PricingType>;
|
|
1153
|
+
lte?: InputMaybe<PricingType>;
|
|
1154
|
+
neq?: InputMaybe<PricingType>;
|
|
1155
|
+
notILike?: InputMaybe<PricingType>;
|
|
1156
|
+
notIn?: InputMaybe<Array<PricingType>>;
|
|
1157
|
+
notLike?: InputMaybe<PricingType>;
|
|
1108
1158
|
};
|
|
1109
1159
|
export declare type ProductCreateInput = {
|
|
1110
1160
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -1307,6 +1357,7 @@ export declare type SubscriptionAddonFilterAddonFilter = {
|
|
|
1307
1357
|
id?: InputMaybe<StringFieldComparison>;
|
|
1308
1358
|
isLatest?: InputMaybe<BooleanFieldComparison>;
|
|
1309
1359
|
or?: InputMaybe<Array<SubscriptionAddonFilterAddonFilter>>;
|
|
1360
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1310
1361
|
productId?: InputMaybe<StringFieldComparison>;
|
|
1311
1362
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1312
1363
|
status?: InputMaybe<PackageStatusFilterComparison>;
|
|
@@ -1316,6 +1367,7 @@ export declare type SubscriptionAddonFilterAddonFilter = {
|
|
|
1316
1367
|
export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
1317
1368
|
and?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1318
1369
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1370
|
+
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
1319
1371
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1320
1372
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1321
1373
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1324,6 +1376,7 @@ export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
|
1324
1376
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1325
1377
|
id?: InputMaybe<StringFieldComparison>;
|
|
1326
1378
|
or?: InputMaybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1379
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1327
1380
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1328
1381
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1329
1382
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
@@ -1353,6 +1406,33 @@ export declare enum SubscriptionAddonSortFields {
|
|
|
1353
1406
|
Quantity = "quantity",
|
|
1354
1407
|
UpdatedAt = "updatedAt"
|
|
1355
1408
|
}
|
|
1409
|
+
/** Subscription cancellation status */
|
|
1410
|
+
export declare enum SubscriptionCancelReason {
|
|
1411
|
+
CancelledByBilling = "CancelledByBilling",
|
|
1412
|
+
DetachBilling = "DetachBilling",
|
|
1413
|
+
Expired = "Expired",
|
|
1414
|
+
Immediate = "Immediate",
|
|
1415
|
+
PendingPaymentExpired = "PendingPaymentExpired",
|
|
1416
|
+
TrialConverted = "TrialConverted",
|
|
1417
|
+
TrialEnded = "TrialEnded",
|
|
1418
|
+
UpgradeOrDowngrade = "UpgradeOrDowngrade"
|
|
1419
|
+
}
|
|
1420
|
+
export declare type SubscriptionCancelReasonFilterComparison = {
|
|
1421
|
+
eq?: InputMaybe<SubscriptionCancelReason>;
|
|
1422
|
+
gt?: InputMaybe<SubscriptionCancelReason>;
|
|
1423
|
+
gte?: InputMaybe<SubscriptionCancelReason>;
|
|
1424
|
+
iLike?: InputMaybe<SubscriptionCancelReason>;
|
|
1425
|
+
in?: InputMaybe<Array<SubscriptionCancelReason>>;
|
|
1426
|
+
is?: InputMaybe<Scalars['Boolean']>;
|
|
1427
|
+
isNot?: InputMaybe<Scalars['Boolean']>;
|
|
1428
|
+
like?: InputMaybe<SubscriptionCancelReason>;
|
|
1429
|
+
lt?: InputMaybe<SubscriptionCancelReason>;
|
|
1430
|
+
lte?: InputMaybe<SubscriptionCancelReason>;
|
|
1431
|
+
neq?: InputMaybe<SubscriptionCancelReason>;
|
|
1432
|
+
notILike?: InputMaybe<SubscriptionCancelReason>;
|
|
1433
|
+
notIn?: InputMaybe<Array<SubscriptionCancelReason>>;
|
|
1434
|
+
notLike?: InputMaybe<SubscriptionCancelReason>;
|
|
1435
|
+
};
|
|
1356
1436
|
export declare type SubscriptionCancellationInput = {
|
|
1357
1437
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
1358
1438
|
environmentId: Scalars['String'];
|
|
@@ -1364,6 +1444,11 @@ export declare enum SubscriptionCancellationTime {
|
|
|
1364
1444
|
Immediate = "IMMEDIATE",
|
|
1365
1445
|
SpecificDate = "SPECIFIC_DATE"
|
|
1366
1446
|
}
|
|
1447
|
+
export declare type SubscriptionEditTrialEndDateInput = {
|
|
1448
|
+
environmentId: Scalars['String'];
|
|
1449
|
+
subscriptionRefId: Scalars['String'];
|
|
1450
|
+
trialEndDate: Scalars['DateTime'];
|
|
1451
|
+
};
|
|
1367
1452
|
export declare enum SubscriptionEndSetup {
|
|
1368
1453
|
CancelSubscription = "CANCEL_SUBSCRIPTION",
|
|
1369
1454
|
DowngradeToFree = "DOWNGRADE_TO_FREE"
|
|
@@ -1377,6 +1462,7 @@ export declare type SubscriptionInput = {
|
|
|
1377
1462
|
customerId: Scalars['String'];
|
|
1378
1463
|
endDate?: InputMaybe<Scalars['DateTime']>;
|
|
1379
1464
|
environmentId: Scalars['String'];
|
|
1465
|
+
isCustomPriceSubscription?: InputMaybe<Scalars['Boolean']>;
|
|
1380
1466
|
isOverridingTrialConfig?: InputMaybe<Scalars['Boolean']>;
|
|
1381
1467
|
isTrial?: InputMaybe<Scalars['Boolean']>;
|
|
1382
1468
|
planId?: InputMaybe<Scalars['String']>;
|
|
@@ -1390,6 +1476,7 @@ export declare type SubscriptionMigrationInput = {
|
|
|
1390
1476
|
export declare type SubscriptionMigrationTaskFilter = {
|
|
1391
1477
|
and?: InputMaybe<Array<SubscriptionMigrationTaskFilter>>;
|
|
1392
1478
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1479
|
+
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1393
1480
|
id?: InputMaybe<StringFieldComparison>;
|
|
1394
1481
|
or?: InputMaybe<Array<SubscriptionMigrationTaskFilter>>;
|
|
1395
1482
|
status?: InputMaybe<TaskStatusFilterComparison>;
|
|
@@ -1402,6 +1489,7 @@ export declare type SubscriptionMigrationTaskSort = {
|
|
|
1402
1489
|
};
|
|
1403
1490
|
export declare enum SubscriptionMigrationTaskSortFields {
|
|
1404
1491
|
CreatedAt = "createdAt",
|
|
1492
|
+
EnvironmentId = "environmentId",
|
|
1405
1493
|
Id = "id",
|
|
1406
1494
|
Status = "status",
|
|
1407
1495
|
TaskType = "taskType"
|
|
@@ -1419,6 +1507,7 @@ export declare type SubscriptionPriceFilter = {
|
|
|
1419
1507
|
export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
1420
1508
|
and?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
1421
1509
|
billingId?: InputMaybe<StringFieldComparison>;
|
|
1510
|
+
cancelReason?: InputMaybe<SubscriptionCancelReasonFilterComparison>;
|
|
1422
1511
|
cancellationDate?: InputMaybe<DateFieldComparison>;
|
|
1423
1512
|
createdAt?: InputMaybe<DateFieldComparison>;
|
|
1424
1513
|
crmId?: InputMaybe<StringFieldComparison>;
|
|
@@ -1427,6 +1516,7 @@ export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
|
1427
1516
|
environmentId?: InputMaybe<StringFieldComparison>;
|
|
1428
1517
|
id?: InputMaybe<StringFieldComparison>;
|
|
1429
1518
|
or?: InputMaybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
1519
|
+
pricingType?: InputMaybe<PricingTypeFilterComparison>;
|
|
1430
1520
|
refId?: InputMaybe<StringFieldComparison>;
|
|
1431
1521
|
startDate?: InputMaybe<DateFieldComparison>;
|
|
1432
1522
|
status?: InputMaybe<SubscriptionStatusFilterComparison>;
|
|
@@ -1457,7 +1547,8 @@ export declare enum SubscriptionStatus {
|
|
|
1457
1547
|
Canceled = "CANCELED",
|
|
1458
1548
|
Expired = "EXPIRED",
|
|
1459
1549
|
InTrial = "IN_TRIAL",
|
|
1460
|
-
NotStarted = "NOT_STARTED"
|
|
1550
|
+
NotStarted = "NOT_STARTED",
|
|
1551
|
+
PaymentPending = "PAYMENT_PENDING"
|
|
1461
1552
|
}
|
|
1462
1553
|
export declare type SubscriptionStatusFilterComparison = {
|
|
1463
1554
|
eq?: InputMaybe<SubscriptionStatus>;
|
|
@@ -1730,6 +1821,7 @@ export declare type SubscriptionFragment = {
|
|
|
1730
1821
|
status: SubscriptionStatus;
|
|
1731
1822
|
refId: string;
|
|
1732
1823
|
currentBillingPeriodEnd?: any | null | undefined;
|
|
1824
|
+
pricingType: PricingType;
|
|
1733
1825
|
prices?: Array<{
|
|
1734
1826
|
__typename?: 'SubscriptionPrice';
|
|
1735
1827
|
usageLimit?: number | null | undefined;
|
|
@@ -1951,6 +2043,7 @@ export declare type AddonFragment = {
|
|
|
1951
2043
|
refId: string;
|
|
1952
2044
|
displayName: string;
|
|
1953
2045
|
description?: string | null | undefined;
|
|
2046
|
+
pricingType?: PricingType | null | undefined;
|
|
1954
2047
|
entitlements?: Array<{
|
|
1955
2048
|
__typename?: 'PackageEntitlement';
|
|
1956
2049
|
} & PackageEntitlementFragment> | null | undefined;
|
|
@@ -1964,6 +2057,7 @@ export declare type PlanFragment = {
|
|
|
1964
2057
|
refId: string;
|
|
1965
2058
|
description?: string | null | undefined;
|
|
1966
2059
|
displayName: string;
|
|
2060
|
+
pricingType?: PricingType | null | undefined;
|
|
1967
2061
|
product: {
|
|
1968
2062
|
__typename?: 'Product';
|
|
1969
2063
|
refId: string;
|