@stigg/node-server-sdk 0.25.1 → 0.27.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/customerFragments.d.ts +4 -0
- package/dist/api/customerFragments.js +151 -0
- package/dist/api/generated/types.d.ts +200 -19
- package/dist/api/generated/types.js +13 -1
- package/dist/api/managementApi.d.ts +2 -1
- package/dist/api/managementApi.js +24 -1
- package/dist/client.d.ts +12 -1
- package/dist/client.js +23 -1
- package/dist/models.d.ts +119 -1
- package/dist/models.js +23 -6
- package/dist/services/entitlementsService.d.ts +3 -2
- package/dist/services/entitlementsService.js +34 -20
- package/dist/utils/ModelMapper.d.ts +10 -2
- package/dist/utils/ModelMapper.js +128 -27
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PRICE_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
2
|
+
export declare const SUBSCRIPTION_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
3
|
+
export declare const PROMOTIONAL_ENTITLEMENT_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
4
|
+
export declare const CUSTOMER_FRAGMENT: import("graphql/language/ast").DocumentNode;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUSTOMER_FRAGMENT = exports.PROMOTIONAL_ENTITLEMENT_FRAGMENT = exports.SUBSCRIPTION_FRAGMENT = exports.PRICE_FRAGMENT = void 0;
|
|
4
|
+
const core_1 = require("@apollo/client/core");
|
|
5
|
+
exports.PRICE_FRAGMENT = (0, core_1.gql) `
|
|
6
|
+
fragment PriceFragment on Price {
|
|
7
|
+
billingModel
|
|
8
|
+
billingPeriod
|
|
9
|
+
price {
|
|
10
|
+
amount
|
|
11
|
+
currency
|
|
12
|
+
}
|
|
13
|
+
feature {
|
|
14
|
+
featureUnits
|
|
15
|
+
featureUnitsPlural
|
|
16
|
+
displayName
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
const PACKAGE_ENTITLEMENT_FRAGMENT = (0, core_1.gql) `
|
|
21
|
+
fragment PackageEntitlementFragment on PackageEntitlement {
|
|
22
|
+
usageLimit
|
|
23
|
+
hasUnlimitedUsage
|
|
24
|
+
featureId
|
|
25
|
+
resetPeriod
|
|
26
|
+
feature {
|
|
27
|
+
featureType
|
|
28
|
+
meterType
|
|
29
|
+
featureUnits
|
|
30
|
+
featureUnitsPlural
|
|
31
|
+
displayName
|
|
32
|
+
description
|
|
33
|
+
refId
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const ADDON_FRAGMENT = (0, core_1.gql) `
|
|
38
|
+
fragment AddonFragment on Addon {
|
|
39
|
+
id
|
|
40
|
+
refId
|
|
41
|
+
displayName
|
|
42
|
+
description
|
|
43
|
+
entitlements {
|
|
44
|
+
...PackageEntitlementFragment
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const PLAN_FRAGMENT = (0, core_1.gql) `
|
|
49
|
+
fragment PlanFragment on Plan {
|
|
50
|
+
id
|
|
51
|
+
refId
|
|
52
|
+
displayName
|
|
53
|
+
description
|
|
54
|
+
product {
|
|
55
|
+
refId
|
|
56
|
+
displayName
|
|
57
|
+
}
|
|
58
|
+
basePlan {
|
|
59
|
+
id
|
|
60
|
+
refId
|
|
61
|
+
displayName
|
|
62
|
+
}
|
|
63
|
+
entitlements {
|
|
64
|
+
...PackageEntitlementFragment
|
|
65
|
+
}
|
|
66
|
+
inheritedEntitlements {
|
|
67
|
+
...PackageEntitlementFragment
|
|
68
|
+
}
|
|
69
|
+
compatibleAddons {
|
|
70
|
+
...AddonFragment
|
|
71
|
+
}
|
|
72
|
+
prices {
|
|
73
|
+
...PriceFragment
|
|
74
|
+
}
|
|
75
|
+
defaultTrialConfig {
|
|
76
|
+
duration
|
|
77
|
+
units
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
${PACKAGE_ENTITLEMENT_FRAGMENT}
|
|
81
|
+
${exports.PRICE_FRAGMENT}
|
|
82
|
+
${ADDON_FRAGMENT}
|
|
83
|
+
`;
|
|
84
|
+
exports.SUBSCRIPTION_FRAGMENT = (0, core_1.gql) `
|
|
85
|
+
fragment SubscriptionFragment on CustomerSubscription {
|
|
86
|
+
id
|
|
87
|
+
startDate
|
|
88
|
+
endDate
|
|
89
|
+
status
|
|
90
|
+
refId
|
|
91
|
+
prices {
|
|
92
|
+
usageLimit
|
|
93
|
+
price {
|
|
94
|
+
...PriceFragment
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
plan {
|
|
98
|
+
...PlanFragment
|
|
99
|
+
}
|
|
100
|
+
addons {
|
|
101
|
+
id
|
|
102
|
+
quantity
|
|
103
|
+
addon {
|
|
104
|
+
...AddonFragment
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
${PLAN_FRAGMENT}
|
|
109
|
+
${ADDON_FRAGMENT}
|
|
110
|
+
${exports.PRICE_FRAGMENT}
|
|
111
|
+
`;
|
|
112
|
+
exports.PROMOTIONAL_ENTITLEMENT_FRAGMENT = (0, core_1.gql) `
|
|
113
|
+
fragment PromotionalEntitlementFragment on PromotionalEntitlement {
|
|
114
|
+
status
|
|
115
|
+
usageLimit
|
|
116
|
+
featureId
|
|
117
|
+
hasUnlimitedUsage
|
|
118
|
+
resetPeriod
|
|
119
|
+
endDate
|
|
120
|
+
isVisible
|
|
121
|
+
feature {
|
|
122
|
+
featureType
|
|
123
|
+
meterType
|
|
124
|
+
featureUnits
|
|
125
|
+
featureUnitsPlural
|
|
126
|
+
displayName
|
|
127
|
+
description
|
|
128
|
+
refId
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
exports.CUSTOMER_FRAGMENT = (0, core_1.gql) `
|
|
133
|
+
fragment CustomerFragment on Customer {
|
|
134
|
+
id
|
|
135
|
+
name
|
|
136
|
+
email
|
|
137
|
+
createdAt
|
|
138
|
+
updatedAt
|
|
139
|
+
hasPaymentMethod
|
|
140
|
+
refId
|
|
141
|
+
promotionalEntitlements {
|
|
142
|
+
...PromotionalEntitlementFragment
|
|
143
|
+
}
|
|
144
|
+
subscriptions {
|
|
145
|
+
...SubscriptionFragment
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
${exports.SUBSCRIPTION_FRAGMENT}
|
|
149
|
+
${exports.PROMOTIONAL_ENTITLEMENT_FRAGMENT}
|
|
150
|
+
`;
|
|
151
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tZXJGcmFnbWVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBpL2N1c3RvbWVyRnJhZ21lbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhDQUEwQztBQUU3QixRQUFBLGNBQWMsR0FBRyxJQUFBLFVBQUcsRUFBQTs7Ozs7Ozs7Ozs7Ozs7Q0FjaEMsQ0FBQztBQUVGLE1BQU0sNEJBQTRCLEdBQUcsSUFBQSxVQUFHLEVBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FnQnZDLENBQUM7QUFFRixNQUFNLGNBQWMsR0FBRyxJQUFBLFVBQUcsRUFBQTs7Ozs7Ozs7OztDQVV6QixDQUFDO0FBRUYsTUFBTSxhQUFhLEdBQUcsSUFBQSxVQUFHLEVBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBZ0NyQiw0QkFBNEI7SUFDNUIsc0JBQWM7SUFDZCxjQUFjO0NBQ2pCLENBQUM7QUFFVyxRQUFBLHFCQUFxQixHQUFHLElBQUEsVUFBRyxFQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUF3QnBDLGFBQWE7SUFDYixjQUFjO0lBQ2Qsc0JBQWM7Q0FDakIsQ0FBQztBQUVXLFFBQUEsZ0NBQWdDLEdBQUcsSUFBQSxVQUFHLEVBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FtQmxELENBQUM7QUFFVyxRQUFBLGlCQUFpQixHQUFHLElBQUEsVUFBRyxFQUFBOzs7Ozs7Ozs7Ozs7Ozs7O0lBZ0JoQyw2QkFBcUI7SUFDckIsd0NBQWdDO0NBQ25DLENBQUMifQ==
|
|
@@ -43,7 +43,7 @@ export declare type AddonCreateInput = {
|
|
|
43
43
|
displayName: Scalars['String'];
|
|
44
44
|
environmentId: Scalars['String'];
|
|
45
45
|
productId: Scalars['String'];
|
|
46
|
-
refId
|
|
46
|
+
refId?: Maybe<Scalars['String']>;
|
|
47
47
|
status?: Maybe<PackageStatus>;
|
|
48
48
|
};
|
|
49
49
|
export declare type AddonFilter = {
|
|
@@ -175,24 +175,11 @@ export declare type CheckoutAddonInput = {
|
|
|
175
175
|
quantity?: Maybe<Scalars['Int']>;
|
|
176
176
|
};
|
|
177
177
|
export declare type CreateEnvironment = {
|
|
178
|
-
description?: Maybe<Scalars['String']>;
|
|
179
|
-
displayName?: Maybe<Scalars['String']>;
|
|
180
|
-
id?: Maybe<Scalars['String']>;
|
|
181
|
-
slug?: Maybe<Scalars['String']>;
|
|
182
|
-
};
|
|
183
|
-
export declare type CreateFeature = {
|
|
184
178
|
createdAt?: Maybe<Scalars['DateTime']>;
|
|
185
179
|
description?: Maybe<Scalars['String']>;
|
|
186
180
|
displayName?: Maybe<Scalars['String']>;
|
|
187
|
-
environmentId?: Maybe<Scalars['String']>;
|
|
188
|
-
featureStatus?: Maybe<FeatureStatus>;
|
|
189
|
-
featureType?: Maybe<FeatureType>;
|
|
190
|
-
featureUnits?: Maybe<Scalars['String']>;
|
|
191
|
-
featureUnitsPlural?: Maybe<Scalars['String']>;
|
|
192
181
|
id?: Maybe<Scalars['String']>;
|
|
193
|
-
|
|
194
|
-
refId?: Maybe<Scalars['String']>;
|
|
195
|
-
updatedAt?: Maybe<Scalars['DateTime']>;
|
|
182
|
+
slug?: Maybe<Scalars['String']>;
|
|
196
183
|
};
|
|
197
184
|
export declare type CreateHook = {
|
|
198
185
|
createdAt?: Maybe<Scalars['DateTime']>;
|
|
@@ -224,7 +211,7 @@ export declare type CreateOneEnvironmentInput = {
|
|
|
224
211
|
};
|
|
225
212
|
export declare type CreateOneFeatureInput = {
|
|
226
213
|
/** The record to create */
|
|
227
|
-
feature:
|
|
214
|
+
feature: FeatureInput;
|
|
228
215
|
};
|
|
229
216
|
export declare type CreateOneHookInput = {
|
|
230
217
|
/** The record to create */
|
|
@@ -278,6 +265,7 @@ export declare type CustomerFilter = {
|
|
|
278
265
|
export declare type CustomerFilterCustomerSubscriptionFilter = {
|
|
279
266
|
and?: Maybe<Array<CustomerFilterCustomerSubscriptionFilter>>;
|
|
280
267
|
billingId?: Maybe<StringFieldComparison>;
|
|
268
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
281
269
|
crmId?: Maybe<StringFieldComparison>;
|
|
282
270
|
endDate?: Maybe<DateFieldComparison>;
|
|
283
271
|
environmentId?: Maybe<StringFieldComparison>;
|
|
@@ -325,6 +313,7 @@ export declare type CustomerSubscriptionFilter = {
|
|
|
325
313
|
addons?: Maybe<CustomerSubscriptionFilterSubscriptionAddonFilter>;
|
|
326
314
|
and?: Maybe<Array<CustomerSubscriptionFilter>>;
|
|
327
315
|
billingId?: Maybe<StringFieldComparison>;
|
|
316
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
328
317
|
crmId?: Maybe<StringFieldComparison>;
|
|
329
318
|
customer?: Maybe<CustomerSubscriptionFilterCustomerFilter>;
|
|
330
319
|
endDate?: Maybe<DateFieldComparison>;
|
|
@@ -351,6 +340,7 @@ export declare type CustomerSubscriptionFilterCustomerFilter = {
|
|
|
351
340
|
};
|
|
352
341
|
export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
|
|
353
342
|
and?: Maybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
|
|
343
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
354
344
|
id?: Maybe<StringFieldComparison>;
|
|
355
345
|
or?: Maybe<Array<CustomerSubscriptionFilterSubscriptionAddonFilter>>;
|
|
356
346
|
quantity?: Maybe<NumberFieldComparison>;
|
|
@@ -358,6 +348,7 @@ export declare type CustomerSubscriptionFilterSubscriptionAddonFilter = {
|
|
|
358
348
|
};
|
|
359
349
|
export declare type CustomerSubscriptionFilterSubscriptionPriceFilter = {
|
|
360
350
|
and?: Maybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
|
|
351
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
361
352
|
id?: Maybe<StringFieldComparison>;
|
|
362
353
|
or?: Maybe<Array<CustomerSubscriptionFilterSubscriptionPriceFilter>>;
|
|
363
354
|
updatedAt?: Maybe<DateFieldComparison>;
|
|
@@ -370,6 +361,7 @@ export declare type CustomerSubscriptionSort = {
|
|
|
370
361
|
};
|
|
371
362
|
export declare enum CustomerSubscriptionSortFields {
|
|
372
363
|
BillingId = "billingId",
|
|
364
|
+
CreatedAt = "createdAt",
|
|
373
365
|
CrmId = "crmId",
|
|
374
366
|
EndDate = "endDate",
|
|
375
367
|
EnvironmentId = "environmentId",
|
|
@@ -480,6 +472,7 @@ export declare enum EntitlementResetPeriod {
|
|
|
480
472
|
}
|
|
481
473
|
export declare type EnvironmentFilter = {
|
|
482
474
|
and?: Maybe<Array<EnvironmentFilter>>;
|
|
475
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
483
476
|
displayName?: Maybe<StringFieldComparison>;
|
|
484
477
|
id?: Maybe<StringFieldComparison>;
|
|
485
478
|
or?: Maybe<Array<EnvironmentFilter>>;
|
|
@@ -490,14 +483,17 @@ export declare type EnvironmentSort = {
|
|
|
490
483
|
nulls?: Maybe<SortNulls>;
|
|
491
484
|
};
|
|
492
485
|
export declare enum EnvironmentSortFields {
|
|
486
|
+
CreatedAt = "createdAt",
|
|
493
487
|
DisplayName = "displayName",
|
|
494
488
|
Id = "id"
|
|
495
489
|
}
|
|
496
490
|
/** error codes */
|
|
497
491
|
export declare enum ErrorCode {
|
|
498
492
|
AddonNotFound = "AddonNotFound",
|
|
493
|
+
BadUserInput = "BadUserInput",
|
|
499
494
|
BillingPeriodMissingError = "BillingPeriodMissingError",
|
|
500
495
|
CheckoutIsNotSupported = "CheckoutIsNotSupported",
|
|
496
|
+
CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
|
|
501
497
|
CustomerNotFound = "CustomerNotFound",
|
|
502
498
|
DraftPlanCantBeArchived = "DraftPlanCantBeArchived",
|
|
503
499
|
DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed",
|
|
@@ -519,9 +515,11 @@ export declare enum ErrorCode {
|
|
|
519
515
|
PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted",
|
|
520
516
|
PlansCircularDependencyError = "PlansCircularDependencyError",
|
|
521
517
|
PriceNotFound = "PriceNotFound",
|
|
518
|
+
RateLimitExceeded = "RateLimitExceeded",
|
|
522
519
|
SubscriptionNotFound = "SubscriptionNotFound",
|
|
523
520
|
TrialsNotAllowedInProduct = "TrialsNotAllowedInProduct",
|
|
524
521
|
UnPublishedPackage = "UnPublishedPackage",
|
|
522
|
+
Unauthenticated = "Unauthenticated",
|
|
525
523
|
UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon",
|
|
526
524
|
UnexpectedError = "UnexpectedError",
|
|
527
525
|
UnsupportedFeatureType = "UnsupportedFeatureType",
|
|
@@ -573,6 +571,17 @@ export declare type FeatureFilter = {
|
|
|
573
571
|
refId?: Maybe<StringFieldComparison>;
|
|
574
572
|
updatedAt?: Maybe<DateFieldComparison>;
|
|
575
573
|
};
|
|
574
|
+
export declare type FeatureInput = {
|
|
575
|
+
description?: Maybe<Scalars['String']>;
|
|
576
|
+
displayName?: Maybe<Scalars['String']>;
|
|
577
|
+
environmentId: Scalars['String'];
|
|
578
|
+
featureStatus?: Maybe<FeatureStatus>;
|
|
579
|
+
featureType: FeatureType;
|
|
580
|
+
featureUnits?: Maybe<Scalars['String']>;
|
|
581
|
+
featureUnitsPlural?: Maybe<Scalars['String']>;
|
|
582
|
+
meterType?: Maybe<MeterType>;
|
|
583
|
+
refId: Scalars['String'];
|
|
584
|
+
};
|
|
576
585
|
export declare type FeatureSort = {
|
|
577
586
|
direction: SortDirection;
|
|
578
587
|
field: FeatureSortFields;
|
|
@@ -719,6 +728,7 @@ export declare type IntFieldComparisonBetween = {
|
|
|
719
728
|
};
|
|
720
729
|
export declare type IntegrationFilter = {
|
|
721
730
|
and?: Maybe<Array<IntegrationFilter>>;
|
|
731
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
722
732
|
environmentId?: Maybe<StringFieldComparison>;
|
|
723
733
|
id?: Maybe<StringFieldComparison>;
|
|
724
734
|
or?: Maybe<Array<IntegrationFilter>>;
|
|
@@ -730,12 +740,14 @@ export declare type IntegrationSort = {
|
|
|
730
740
|
nulls?: Maybe<SortNulls>;
|
|
731
741
|
};
|
|
732
742
|
export declare enum IntegrationSortFields {
|
|
743
|
+
CreatedAt = "createdAt",
|
|
733
744
|
EnvironmentId = "environmentId",
|
|
734
745
|
Id = "id",
|
|
735
746
|
VendorIdentifier = "vendorIdentifier"
|
|
736
747
|
}
|
|
737
748
|
export declare type MemberFilter = {
|
|
738
749
|
and?: Maybe<Array<MemberFilter>>;
|
|
750
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
739
751
|
id?: Maybe<StringFieldComparison>;
|
|
740
752
|
or?: Maybe<Array<MemberFilter>>;
|
|
741
753
|
};
|
|
@@ -745,6 +757,7 @@ export declare type MemberSort = {
|
|
|
745
757
|
nulls?: Maybe<SortNulls>;
|
|
746
758
|
};
|
|
747
759
|
export declare enum MemberSortFields {
|
|
760
|
+
CreatedAt = "createdAt",
|
|
748
761
|
Id = "id"
|
|
749
762
|
}
|
|
750
763
|
/** Member Status. */
|
|
@@ -944,7 +957,7 @@ export declare type PlanCreateInput = {
|
|
|
944
957
|
environmentId: Scalars['String'];
|
|
945
958
|
parentPlanId?: Maybe<Scalars['String']>;
|
|
946
959
|
productId: Scalars['String'];
|
|
947
|
-
refId
|
|
960
|
+
refId?: Maybe<Scalars['String']>;
|
|
948
961
|
status?: Maybe<PackageStatus>;
|
|
949
962
|
};
|
|
950
963
|
export declare type PlanFilter = {
|
|
@@ -1016,6 +1029,7 @@ export declare type PriceFilter = {
|
|
|
1016
1029
|
and?: Maybe<Array<PriceFilter>>;
|
|
1017
1030
|
billingModel?: Maybe<BillingModelFilterComparison>;
|
|
1018
1031
|
billingPeriod?: Maybe<BillingPeriodFilterComparison>;
|
|
1032
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1019
1033
|
id?: Maybe<StringFieldComparison>;
|
|
1020
1034
|
or?: Maybe<Array<PriceFilter>>;
|
|
1021
1035
|
package?: Maybe<PriceFilterPackageDtoFilter>;
|
|
@@ -1044,6 +1058,7 @@ export declare type PriceSort = {
|
|
|
1044
1058
|
export declare enum PriceSortFields {
|
|
1045
1059
|
BillingModel = "billingModel",
|
|
1046
1060
|
BillingPeriod = "billingPeriod",
|
|
1061
|
+
CreatedAt = "createdAt",
|
|
1047
1062
|
Id = "id"
|
|
1048
1063
|
}
|
|
1049
1064
|
export declare type PriceUpdateInput = {
|
|
@@ -1238,6 +1253,7 @@ export declare type StripeCredentialsInput = {
|
|
|
1238
1253
|
export declare type SubscriptionAddonFilter = {
|
|
1239
1254
|
addon?: Maybe<SubscriptionAddonFilterAddonFilter>;
|
|
1240
1255
|
and?: Maybe<Array<SubscriptionAddonFilter>>;
|
|
1256
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1241
1257
|
id?: Maybe<StringFieldComparison>;
|
|
1242
1258
|
or?: Maybe<Array<SubscriptionAddonFilter>>;
|
|
1243
1259
|
price?: Maybe<SubscriptionAddonFilterPriceFilter>;
|
|
@@ -1264,6 +1280,7 @@ export declare type SubscriptionAddonFilterAddonFilter = {
|
|
|
1264
1280
|
export declare type SubscriptionAddonFilterCustomerSubscriptionFilter = {
|
|
1265
1281
|
and?: Maybe<Array<SubscriptionAddonFilterCustomerSubscriptionFilter>>;
|
|
1266
1282
|
billingId?: Maybe<StringFieldComparison>;
|
|
1283
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1267
1284
|
crmId?: Maybe<StringFieldComparison>;
|
|
1268
1285
|
endDate?: Maybe<DateFieldComparison>;
|
|
1269
1286
|
environmentId?: Maybe<StringFieldComparison>;
|
|
@@ -1277,6 +1294,7 @@ export declare type SubscriptionAddonFilterPriceFilter = {
|
|
|
1277
1294
|
and?: Maybe<Array<SubscriptionAddonFilterPriceFilter>>;
|
|
1278
1295
|
billingModel?: Maybe<BillingModelFilterComparison>;
|
|
1279
1296
|
billingPeriod?: Maybe<BillingPeriodFilterComparison>;
|
|
1297
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1280
1298
|
id?: Maybe<StringFieldComparison>;
|
|
1281
1299
|
or?: Maybe<Array<SubscriptionAddonFilterPriceFilter>>;
|
|
1282
1300
|
};
|
|
@@ -1291,6 +1309,7 @@ export declare type SubscriptionAddonSort = {
|
|
|
1291
1309
|
nulls?: Maybe<SortNulls>;
|
|
1292
1310
|
};
|
|
1293
1311
|
export declare enum SubscriptionAddonSortFields {
|
|
1312
|
+
CreatedAt = "createdAt",
|
|
1294
1313
|
Id = "id",
|
|
1295
1314
|
Quantity = "quantity",
|
|
1296
1315
|
UpdatedAt = "updatedAt"
|
|
@@ -1319,16 +1338,17 @@ export declare type SubscriptionInput = {
|
|
|
1319
1338
|
environmentId: Scalars['String'];
|
|
1320
1339
|
isOverridingTrialConfig?: Maybe<Scalars['Boolean']>;
|
|
1321
1340
|
isTrial?: Maybe<Scalars['Boolean']>;
|
|
1322
|
-
planId
|
|
1341
|
+
planId?: Maybe<Scalars['String']>;
|
|
1323
1342
|
priceUnitAmount?: Maybe<Scalars['Float']>;
|
|
1324
1343
|
refId?: Maybe<Scalars['String']>;
|
|
1325
|
-
startDate
|
|
1344
|
+
startDate?: Maybe<Scalars['DateTime']>;
|
|
1326
1345
|
};
|
|
1327
1346
|
export declare type SubscriptionMigrationInput = {
|
|
1328
1347
|
subscriptionId: Scalars['String'];
|
|
1329
1348
|
};
|
|
1330
1349
|
export declare type SubscriptionMigrationTaskFilter = {
|
|
1331
1350
|
and?: Maybe<Array<SubscriptionMigrationTaskFilter>>;
|
|
1351
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1332
1352
|
id?: Maybe<StringFieldComparison>;
|
|
1333
1353
|
or?: Maybe<Array<SubscriptionMigrationTaskFilter>>;
|
|
1334
1354
|
status?: Maybe<TaskStatusFilterComparison>;
|
|
@@ -1340,12 +1360,14 @@ export declare type SubscriptionMigrationTaskSort = {
|
|
|
1340
1360
|
nulls?: Maybe<SortNulls>;
|
|
1341
1361
|
};
|
|
1342
1362
|
export declare enum SubscriptionMigrationTaskSortFields {
|
|
1363
|
+
CreatedAt = "createdAt",
|
|
1343
1364
|
Id = "id",
|
|
1344
1365
|
Status = "status",
|
|
1345
1366
|
TaskType = "taskType"
|
|
1346
1367
|
}
|
|
1347
1368
|
export declare type SubscriptionPriceFilter = {
|
|
1348
1369
|
and?: Maybe<Array<SubscriptionPriceFilter>>;
|
|
1370
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1349
1371
|
id?: Maybe<StringFieldComparison>;
|
|
1350
1372
|
or?: Maybe<Array<SubscriptionPriceFilter>>;
|
|
1351
1373
|
price?: Maybe<SubscriptionPriceFilterPriceFilter>;
|
|
@@ -1356,6 +1378,7 @@ export declare type SubscriptionPriceFilter = {
|
|
|
1356
1378
|
export declare type SubscriptionPriceFilterCustomerSubscriptionFilter = {
|
|
1357
1379
|
and?: Maybe<Array<SubscriptionPriceFilterCustomerSubscriptionFilter>>;
|
|
1358
1380
|
billingId?: Maybe<StringFieldComparison>;
|
|
1381
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1359
1382
|
crmId?: Maybe<StringFieldComparison>;
|
|
1360
1383
|
endDate?: Maybe<DateFieldComparison>;
|
|
1361
1384
|
environmentId?: Maybe<StringFieldComparison>;
|
|
@@ -1369,6 +1392,7 @@ export declare type SubscriptionPriceFilterPriceFilter = {
|
|
|
1369
1392
|
and?: Maybe<Array<SubscriptionPriceFilterPriceFilter>>;
|
|
1370
1393
|
billingModel?: Maybe<BillingModelFilterComparison>;
|
|
1371
1394
|
billingPeriod?: Maybe<BillingPeriodFilterComparison>;
|
|
1395
|
+
createdAt?: Maybe<DateFieldComparison>;
|
|
1372
1396
|
id?: Maybe<StringFieldComparison>;
|
|
1373
1397
|
or?: Maybe<Array<SubscriptionPriceFilterPriceFilter>>;
|
|
1374
1398
|
};
|
|
@@ -1378,6 +1402,7 @@ export declare type SubscriptionPriceSort = {
|
|
|
1378
1402
|
nulls?: Maybe<SortNulls>;
|
|
1379
1403
|
};
|
|
1380
1404
|
export declare enum SubscriptionPriceSortFields {
|
|
1405
|
+
CreatedAt = "createdAt",
|
|
1381
1406
|
Id = "id",
|
|
1382
1407
|
UpdatedAt = "updatedAt",
|
|
1383
1408
|
UsageLimit = "usageLimit"
|
|
@@ -1471,6 +1496,7 @@ export declare type UpdateCustomerInput = {
|
|
|
1471
1496
|
refId: Scalars['String'];
|
|
1472
1497
|
};
|
|
1473
1498
|
export declare type UpdateEnvironment = {
|
|
1499
|
+
createdAt?: Maybe<Scalars['DateTime']>;
|
|
1474
1500
|
description?: Maybe<Scalars['String']>;
|
|
1475
1501
|
displayName?: Maybe<Scalars['String']>;
|
|
1476
1502
|
id?: Maybe<Scalars['String']>;
|
|
@@ -1656,6 +1682,146 @@ export declare type GetEnvironmentQuery = {
|
|
|
1656
1682
|
__typename?: 'Query';
|
|
1657
1683
|
currentEnvironment: string;
|
|
1658
1684
|
};
|
|
1685
|
+
export declare type PriceFragment = {
|
|
1686
|
+
__typename?: 'Price';
|
|
1687
|
+
billingModel: BillingModel;
|
|
1688
|
+
billingPeriod: BillingPeriod;
|
|
1689
|
+
price: {
|
|
1690
|
+
__typename?: 'Money';
|
|
1691
|
+
amount: number;
|
|
1692
|
+
currency: Currency;
|
|
1693
|
+
};
|
|
1694
|
+
feature?: {
|
|
1695
|
+
__typename?: 'Feature';
|
|
1696
|
+
featureUnits?: string | null | undefined;
|
|
1697
|
+
featureUnitsPlural?: string | null | undefined;
|
|
1698
|
+
displayName: string;
|
|
1699
|
+
} | null | undefined;
|
|
1700
|
+
};
|
|
1701
|
+
export declare type PackageEntitlementFragment = {
|
|
1702
|
+
__typename?: 'PackageEntitlement';
|
|
1703
|
+
usageLimit?: number | null | undefined;
|
|
1704
|
+
hasUnlimitedUsage?: boolean | null | undefined;
|
|
1705
|
+
featureId: string;
|
|
1706
|
+
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
1707
|
+
feature: {
|
|
1708
|
+
__typename?: 'Feature';
|
|
1709
|
+
featureType: FeatureType;
|
|
1710
|
+
meterType?: MeterType | null | undefined;
|
|
1711
|
+
featureUnits?: string | null | undefined;
|
|
1712
|
+
featureUnitsPlural?: string | null | undefined;
|
|
1713
|
+
displayName: string;
|
|
1714
|
+
description?: string | null | undefined;
|
|
1715
|
+
refId: string;
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
export declare type AddonFragment = {
|
|
1719
|
+
__typename?: 'Addon';
|
|
1720
|
+
id: string;
|
|
1721
|
+
refId: string;
|
|
1722
|
+
displayName: string;
|
|
1723
|
+
description?: string | null | undefined;
|
|
1724
|
+
entitlements?: Array<{
|
|
1725
|
+
__typename?: 'PackageEntitlement';
|
|
1726
|
+
} & PackageEntitlementFragment> | null | undefined;
|
|
1727
|
+
};
|
|
1728
|
+
export declare type PlanFragment = {
|
|
1729
|
+
__typename?: 'Plan';
|
|
1730
|
+
id: string;
|
|
1731
|
+
refId: string;
|
|
1732
|
+
displayName: string;
|
|
1733
|
+
description?: string | null | undefined;
|
|
1734
|
+
product: {
|
|
1735
|
+
__typename?: 'Product';
|
|
1736
|
+
refId: string;
|
|
1737
|
+
displayName?: string | null | undefined;
|
|
1738
|
+
};
|
|
1739
|
+
basePlan?: {
|
|
1740
|
+
__typename?: 'Plan';
|
|
1741
|
+
id: string;
|
|
1742
|
+
refId: string;
|
|
1743
|
+
displayName: string;
|
|
1744
|
+
} | null | undefined;
|
|
1745
|
+
entitlements?: Array<{
|
|
1746
|
+
__typename?: 'PackageEntitlement';
|
|
1747
|
+
} & PackageEntitlementFragment> | null | undefined;
|
|
1748
|
+
inheritedEntitlements?: Array<{
|
|
1749
|
+
__typename?: 'PackageEntitlement';
|
|
1750
|
+
} & PackageEntitlementFragment> | null | undefined;
|
|
1751
|
+
compatibleAddons?: Array<{
|
|
1752
|
+
__typename?: 'Addon';
|
|
1753
|
+
} & AddonFragment> | null | undefined;
|
|
1754
|
+
prices?: Array<{
|
|
1755
|
+
__typename?: 'Price';
|
|
1756
|
+
} & PriceFragment> | null | undefined;
|
|
1757
|
+
defaultTrialConfig?: {
|
|
1758
|
+
__typename?: 'DefaultTrialConfig';
|
|
1759
|
+
duration: number;
|
|
1760
|
+
units: TrialPeriodUnits;
|
|
1761
|
+
} | null | undefined;
|
|
1762
|
+
};
|
|
1763
|
+
export declare type SubscriptionFragment = {
|
|
1764
|
+
__typename?: 'CustomerSubscription';
|
|
1765
|
+
id: string;
|
|
1766
|
+
startDate: any;
|
|
1767
|
+
endDate?: any | null | undefined;
|
|
1768
|
+
status: SubscriptionStatus;
|
|
1769
|
+
refId: string;
|
|
1770
|
+
prices?: Array<{
|
|
1771
|
+
__typename?: 'SubscriptionPrice';
|
|
1772
|
+
usageLimit?: number | null | undefined;
|
|
1773
|
+
price: {
|
|
1774
|
+
__typename?: 'Price';
|
|
1775
|
+
} & PriceFragment;
|
|
1776
|
+
}> | null | undefined;
|
|
1777
|
+
plan: {
|
|
1778
|
+
__typename?: 'Plan';
|
|
1779
|
+
} & PlanFragment;
|
|
1780
|
+
addons?: Array<{
|
|
1781
|
+
__typename?: 'SubscriptionAddon';
|
|
1782
|
+
id: string;
|
|
1783
|
+
quantity: number;
|
|
1784
|
+
addon: {
|
|
1785
|
+
__typename?: 'Addon';
|
|
1786
|
+
} & AddonFragment;
|
|
1787
|
+
}> | null | undefined;
|
|
1788
|
+
};
|
|
1789
|
+
export declare type PromotionalEntitlementFragment = {
|
|
1790
|
+
__typename?: 'PromotionalEntitlement';
|
|
1791
|
+
status: PromotionalEntitlementStatus;
|
|
1792
|
+
usageLimit?: number | null | undefined;
|
|
1793
|
+
featureId: string;
|
|
1794
|
+
hasUnlimitedUsage?: boolean | null | undefined;
|
|
1795
|
+
resetPeriod?: EntitlementResetPeriod | null | undefined;
|
|
1796
|
+
endDate?: any | null | undefined;
|
|
1797
|
+
isVisible: boolean;
|
|
1798
|
+
feature: {
|
|
1799
|
+
__typename?: 'Feature';
|
|
1800
|
+
featureType: FeatureType;
|
|
1801
|
+
meterType?: MeterType | null | undefined;
|
|
1802
|
+
featureUnits?: string | null | undefined;
|
|
1803
|
+
featureUnitsPlural?: string | null | undefined;
|
|
1804
|
+
displayName: string;
|
|
1805
|
+
description?: string | null | undefined;
|
|
1806
|
+
refId: string;
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
export declare type CustomerFragment = {
|
|
1810
|
+
__typename?: 'Customer';
|
|
1811
|
+
id: string;
|
|
1812
|
+
name?: string | null | undefined;
|
|
1813
|
+
email?: string | null | undefined;
|
|
1814
|
+
createdAt?: any | null | undefined;
|
|
1815
|
+
updatedAt: any;
|
|
1816
|
+
hasPaymentMethod: boolean;
|
|
1817
|
+
refId: string;
|
|
1818
|
+
promotionalEntitlements: Array<{
|
|
1819
|
+
__typename?: 'PromotionalEntitlement';
|
|
1820
|
+
} & PromotionalEntitlementFragment>;
|
|
1821
|
+
subscriptions?: Array<{
|
|
1822
|
+
__typename?: 'CustomerSubscription';
|
|
1823
|
+
} & SubscriptionFragment> | null | undefined;
|
|
1824
|
+
};
|
|
1659
1825
|
export declare type CachedEntitlementsQueryVariables = Exact<{
|
|
1660
1826
|
query: FetchEntitlementsQuery;
|
|
1661
1827
|
}>;
|
|
@@ -1777,6 +1943,21 @@ export declare type UpdateOneCustomerMutation = {
|
|
|
1777
1943
|
refId: string;
|
|
1778
1944
|
};
|
|
1779
1945
|
};
|
|
1946
|
+
export declare type GetCustomerByRefIdQueryVariables = Exact<{
|
|
1947
|
+
filter?: Maybe<CustomerFilter>;
|
|
1948
|
+
}>;
|
|
1949
|
+
export declare type GetCustomerByRefIdQuery = {
|
|
1950
|
+
__typename?: 'Query';
|
|
1951
|
+
customers: {
|
|
1952
|
+
__typename?: 'CustomerConnection';
|
|
1953
|
+
edges: Array<{
|
|
1954
|
+
__typename?: 'CustomerEdge';
|
|
1955
|
+
node: {
|
|
1956
|
+
__typename?: 'Customer';
|
|
1957
|
+
} & CustomerFragment;
|
|
1958
|
+
}>;
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1780
1961
|
export declare type CreateSubscriptionMutationVariables = Exact<{
|
|
1781
1962
|
input: SubscriptionInput;
|
|
1782
1963
|
}>;
|