@stigg/api-client-js 0.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/package.json +11 -0
- package/src/generated/sdk.d.ts +3529 -0
- package/src/generated/sdk.js +1563 -0
- package/src/generated/sdk.js.map +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/index.js.map +1 -0
- package/src/lib/client.d.ts +10 -0
- package/src/lib/client.js +19 -0
- package/src/lib/client.js.map +1 -0
|
@@ -0,0 +1,1563 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProvisionSubscriptionStatus = exports.ProrationBehavior = exports.PromotionalEntitlementStatus = exports.PromotionalEntitlementSortFields = exports.PromotionalEntitlementPeriod = exports.ProductSortFields = exports.PricingType = exports.PlanSortFields = exports.PaymentMethodType = exports.PackageStatus = exports.PackageEntitlementSortFields = exports.PackageDtoSortFields = exports.MonthlyAccordingTo = exports.MeterType = exports.MemberStatus = exports.MemberSortFields = exports.IntegrationSortFields = exports.ImportIntegrationTaskSortFields = exports.HookStatus = exports.HookSortFields = exports.FontWeight = exports.FeatureType = exports.FeatureStatus = exports.FeatureSortFields = exports.ExperimentStatus = exports.ExperimentSortFields = exports.EventLogType = exports.ErrorCode = exports.EnvironmentSortFields = exports.EnvironmentProvisionStatus = exports.EntitySelectionMode = exports.EntitlementResetPeriod = exports.DiscountType = exports.DiscountDurationType = exports.CustomerSubscriptionSortFields = exports.CustomerSortFields = exports.Currency = exports.CouponType = exports.CouponStatus = exports.CouponSortFields = exports.ChangeType = exports.BillingPeriod = exports.BillingModel = exports.BillingAnchor = exports.ApiKeyType = exports.ApiKeySortFields = exports.Alignment = exports.AddonSortFields = exports.AccountStatus = exports.AccessDeniedReason = void 0;
|
|
4
|
+
exports.ProvisionCustomerDocument = exports.PaywallConfigurationFragmentDoc = exports.LayoutConfigurationFragmentDoc = exports.TypographyConfigurationFragmentDoc = exports.FontVariantFragmentDoc = exports.PaywallPlanFragmentDoc = exports.PaywallAddonFragmentDoc = exports.PaywallPackageEntitlementFragmentDoc = exports.EntitlementFragmentDoc = exports.FeatureFragmentDoc = exports.ResetPeriodConfigurationFragmentDoc = exports.WeeklyResetPeriodConfigFragmentDoc = exports.MonthlyResetPeriodConfigFragmentDoc = exports.SubscriptionPreviewFragmentDoc = exports.CustomerFragmentDoc = exports.SubscriptionFragmentDoc = exports.SubscriptionScheduledUpdateDataFragmentDoc = exports.PlanFragmentDoc = exports.AddonFragmentDoc = exports.PackageEntitlementFragmentDoc = exports.PromotionalEntitlementFragmentDoc = exports.CouponFragmentDoc = exports.SlimSubscriptionFragmentDoc = exports.TotalPriceFragmentDoc = exports.PriceFragmentDoc = exports.ExperimentGroupType = exports.WidgetType = exports.WeeklyAccordingTo = exports.VendorIdentifier = exports.UsageMeasurementSortFields = exports.TrialPeriodUnits = exports.TaskType = exports.TaskStatus = exports.SyncStatus = exports.SubscriptionStatus = exports.SubscriptionStartSetup = exports.SubscriptionScheduleType = exports.SubscriptionScheduleStatus = exports.SubscriptionPriceSortFields = exports.SubscriptionMigrationTaskSortFields = exports.SubscriptionEntitlementSortFields = exports.SubscriptionEndSetup = exports.SubscriptionDecisionStrategy = exports.SubscriptionCancellationTime = exports.SubscriptionCancelReason = exports.SubscriptionAddonSortFields = exports.SourceType = exports.SortNulls = exports.SortDirection = exports.PublishMigrationType = void 0;
|
|
5
|
+
exports.getSdk = exports.GetEntitlementDocument = exports.GetEntitlementsDocument = exports.GetPaywallDocument = exports.GetCouponsDocument = exports.GetCustomerByIdDocument = exports.ReportUsageDocument = exports.EstimateSubscriptionUpdateDocument = exports.EstimateSubscriptionDocument = exports.InitiateCheckoutDocument = exports.CancelSubscriptionDocument = exports.UpdateSubscriptionDocument = exports.ProvisionSubscriptionDocument = exports.UpdateCustomerDocument = exports.ImportCustomerDocument = void 0;
|
|
6
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
7
|
+
/** DenyReason of get access policy */
|
|
8
|
+
var AccessDeniedReason;
|
|
9
|
+
(function (AccessDeniedReason) {
|
|
10
|
+
AccessDeniedReason["CustomerNotFound"] = "CustomerNotFound";
|
|
11
|
+
AccessDeniedReason["FeatureNotFound"] = "FeatureNotFound";
|
|
12
|
+
AccessDeniedReason["NoActiveSubscription"] = "NoActiveSubscription";
|
|
13
|
+
AccessDeniedReason["NoFeatureEntitlementInSubscription"] = "NoFeatureEntitlementInSubscription";
|
|
14
|
+
AccessDeniedReason["RequestedUsageExceedingLimit"] = "RequestedUsageExceedingLimit";
|
|
15
|
+
AccessDeniedReason["Unknown"] = "Unknown";
|
|
16
|
+
})(AccessDeniedReason = exports.AccessDeniedReason || (exports.AccessDeniedReason = {}));
|
|
17
|
+
var AccountStatus;
|
|
18
|
+
(function (AccountStatus) {
|
|
19
|
+
AccountStatus["Active"] = "ACTIVE";
|
|
20
|
+
AccountStatus["Blocked"] = "BLOCKED";
|
|
21
|
+
})(AccountStatus = exports.AccountStatus || (exports.AccountStatus = {}));
|
|
22
|
+
var AddonSortFields;
|
|
23
|
+
(function (AddonSortFields) {
|
|
24
|
+
AddonSortFields["BillingId"] = "billingId";
|
|
25
|
+
AddonSortFields["CreatedAt"] = "createdAt";
|
|
26
|
+
AddonSortFields["Description"] = "description";
|
|
27
|
+
AddonSortFields["DisplayName"] = "displayName";
|
|
28
|
+
AddonSortFields["EnvironmentId"] = "environmentId";
|
|
29
|
+
AddonSortFields["Id"] = "id";
|
|
30
|
+
AddonSortFields["IsLatest"] = "isLatest";
|
|
31
|
+
AddonSortFields["PricingType"] = "pricingType";
|
|
32
|
+
AddonSortFields["ProductId"] = "productId";
|
|
33
|
+
AddonSortFields["RefId"] = "refId";
|
|
34
|
+
AddonSortFields["Status"] = "status";
|
|
35
|
+
AddonSortFields["UpdatedAt"] = "updatedAt";
|
|
36
|
+
AddonSortFields["VersionNumber"] = "versionNumber";
|
|
37
|
+
})(AddonSortFields = exports.AddonSortFields || (exports.AddonSortFields = {}));
|
|
38
|
+
/** Alignment */
|
|
39
|
+
var Alignment;
|
|
40
|
+
(function (Alignment) {
|
|
41
|
+
Alignment["Center"] = "CENTER";
|
|
42
|
+
Alignment["Left"] = "LEFT";
|
|
43
|
+
Alignment["Right"] = "RIGHT";
|
|
44
|
+
})(Alignment = exports.Alignment || (exports.Alignment = {}));
|
|
45
|
+
var ApiKeySortFields;
|
|
46
|
+
(function (ApiKeySortFields) {
|
|
47
|
+
ApiKeySortFields["Id"] = "id";
|
|
48
|
+
})(ApiKeySortFields = exports.ApiKeySortFields || (exports.ApiKeySortFields = {}));
|
|
49
|
+
var ApiKeyType;
|
|
50
|
+
(function (ApiKeyType) {
|
|
51
|
+
ApiKeyType["Client"] = "CLIENT";
|
|
52
|
+
ApiKeyType["Server"] = "SERVER";
|
|
53
|
+
})(ApiKeyType = exports.ApiKeyType || (exports.ApiKeyType = {}));
|
|
54
|
+
var BillingAnchor;
|
|
55
|
+
(function (BillingAnchor) {
|
|
56
|
+
BillingAnchor["StartOfTheMonth"] = "START_OF_THE_MONTH";
|
|
57
|
+
BillingAnchor["SubscriptionStart"] = "SUBSCRIPTION_START";
|
|
58
|
+
})(BillingAnchor = exports.BillingAnchor || (exports.BillingAnchor = {}));
|
|
59
|
+
/** Billing model. */
|
|
60
|
+
var BillingModel;
|
|
61
|
+
(function (BillingModel) {
|
|
62
|
+
BillingModel["FlatFee"] = "FLAT_FEE";
|
|
63
|
+
BillingModel["PerUnit"] = "PER_UNIT";
|
|
64
|
+
BillingModel["UsageBased"] = "USAGE_BASED";
|
|
65
|
+
})(BillingModel = exports.BillingModel || (exports.BillingModel = {}));
|
|
66
|
+
/** Billing period. */
|
|
67
|
+
var BillingPeriod;
|
|
68
|
+
(function (BillingPeriod) {
|
|
69
|
+
BillingPeriod["Annually"] = "ANNUALLY";
|
|
70
|
+
BillingPeriod["Monthly"] = "MONTHLY";
|
|
71
|
+
})(BillingPeriod = exports.BillingPeriod || (exports.BillingPeriod = {}));
|
|
72
|
+
var ChangeType;
|
|
73
|
+
(function (ChangeType) {
|
|
74
|
+
ChangeType["Added"] = "ADDED";
|
|
75
|
+
ChangeType["Deleted"] = "DELETED";
|
|
76
|
+
ChangeType["Modified"] = "MODIFIED";
|
|
77
|
+
ChangeType["Reordered"] = "REORDERED";
|
|
78
|
+
})(ChangeType = exports.ChangeType || (exports.ChangeType = {}));
|
|
79
|
+
var CouponSortFields;
|
|
80
|
+
(function (CouponSortFields) {
|
|
81
|
+
CouponSortFields["BillingId"] = "billingId";
|
|
82
|
+
CouponSortFields["CreatedAt"] = "createdAt";
|
|
83
|
+
CouponSortFields["Description"] = "description";
|
|
84
|
+
CouponSortFields["EnvironmentId"] = "environmentId";
|
|
85
|
+
CouponSortFields["Id"] = "id";
|
|
86
|
+
CouponSortFields["Name"] = "name";
|
|
87
|
+
CouponSortFields["RefId"] = "refId";
|
|
88
|
+
CouponSortFields["Status"] = "status";
|
|
89
|
+
CouponSortFields["Type"] = "type";
|
|
90
|
+
CouponSortFields["UpdatedAt"] = "updatedAt";
|
|
91
|
+
})(CouponSortFields = exports.CouponSortFields || (exports.CouponSortFields = {}));
|
|
92
|
+
/** The status of the coupon */
|
|
93
|
+
var CouponStatus;
|
|
94
|
+
(function (CouponStatus) {
|
|
95
|
+
CouponStatus["Active"] = "ACTIVE";
|
|
96
|
+
CouponStatus["Archived"] = "ARCHIVED";
|
|
97
|
+
})(CouponStatus = exports.CouponStatus || (exports.CouponStatus = {}));
|
|
98
|
+
/** The type of the coupon */
|
|
99
|
+
var CouponType;
|
|
100
|
+
(function (CouponType) {
|
|
101
|
+
CouponType["Fixed"] = "FIXED";
|
|
102
|
+
CouponType["Percentage"] = "PERCENTAGE";
|
|
103
|
+
})(CouponType = exports.CouponType || (exports.CouponType = {}));
|
|
104
|
+
/** Currency */
|
|
105
|
+
var Currency;
|
|
106
|
+
(function (Currency) {
|
|
107
|
+
Currency["Aed"] = "AED";
|
|
108
|
+
Currency["All"] = "ALL";
|
|
109
|
+
Currency["Amd"] = "AMD";
|
|
110
|
+
Currency["Ang"] = "ANG";
|
|
111
|
+
Currency["Aud"] = "AUD";
|
|
112
|
+
Currency["Awg"] = "AWG";
|
|
113
|
+
Currency["Azn"] = "AZN";
|
|
114
|
+
Currency["Bam"] = "BAM";
|
|
115
|
+
Currency["Bbd"] = "BBD";
|
|
116
|
+
Currency["Bdt"] = "BDT";
|
|
117
|
+
Currency["Bgn"] = "BGN";
|
|
118
|
+
Currency["Bif"] = "BIF";
|
|
119
|
+
Currency["Bmd"] = "BMD";
|
|
120
|
+
Currency["Bnd"] = "BND";
|
|
121
|
+
Currency["Bsd"] = "BSD";
|
|
122
|
+
Currency["Bwp"] = "BWP";
|
|
123
|
+
Currency["Byn"] = "BYN";
|
|
124
|
+
Currency["Bzd"] = "BZD";
|
|
125
|
+
Currency["Cad"] = "CAD";
|
|
126
|
+
Currency["Cdf"] = "CDF";
|
|
127
|
+
Currency["Chf"] = "CHF";
|
|
128
|
+
Currency["Clp"] = "CLP";
|
|
129
|
+
Currency["Cny"] = "CNY";
|
|
130
|
+
Currency["Czk"] = "CZK";
|
|
131
|
+
Currency["Djf"] = "DJF";
|
|
132
|
+
Currency["Dkk"] = "DKK";
|
|
133
|
+
Currency["Dop"] = "DOP";
|
|
134
|
+
Currency["Dzd"] = "DZD";
|
|
135
|
+
Currency["Egp"] = "EGP";
|
|
136
|
+
Currency["Etb"] = "ETB";
|
|
137
|
+
Currency["Eur"] = "EUR";
|
|
138
|
+
Currency["Fjd"] = "FJD";
|
|
139
|
+
Currency["Gbp"] = "GBP";
|
|
140
|
+
Currency["Gel"] = "GEL";
|
|
141
|
+
Currency["Gip"] = "GIP";
|
|
142
|
+
Currency["Gmd"] = "GMD";
|
|
143
|
+
Currency["Gnf"] = "GNF";
|
|
144
|
+
Currency["Gyd"] = "GYD";
|
|
145
|
+
Currency["Hkd"] = "HKD";
|
|
146
|
+
Currency["Hrk"] = "HRK";
|
|
147
|
+
Currency["Htg"] = "HTG";
|
|
148
|
+
Currency["Idr"] = "IDR";
|
|
149
|
+
Currency["Ils"] = "ILS";
|
|
150
|
+
Currency["Inr"] = "INR";
|
|
151
|
+
Currency["Isk"] = "ISK";
|
|
152
|
+
Currency["Jmd"] = "JMD";
|
|
153
|
+
Currency["Jpy"] = "JPY";
|
|
154
|
+
Currency["Kes"] = "KES";
|
|
155
|
+
Currency["Kgs"] = "KGS";
|
|
156
|
+
Currency["Khr"] = "KHR";
|
|
157
|
+
Currency["Kmf"] = "KMF";
|
|
158
|
+
Currency["Krw"] = "KRW";
|
|
159
|
+
Currency["Kyd"] = "KYD";
|
|
160
|
+
Currency["Kzt"] = "KZT";
|
|
161
|
+
Currency["Lbp"] = "LBP";
|
|
162
|
+
Currency["Lkr"] = "LKR";
|
|
163
|
+
Currency["Lrd"] = "LRD";
|
|
164
|
+
Currency["Lsl"] = "LSL";
|
|
165
|
+
Currency["Mad"] = "MAD";
|
|
166
|
+
Currency["Mdl"] = "MDL";
|
|
167
|
+
Currency["Mga"] = "MGA";
|
|
168
|
+
Currency["Mkd"] = "MKD";
|
|
169
|
+
Currency["Mmk"] = "MMK";
|
|
170
|
+
Currency["Mnt"] = "MNT";
|
|
171
|
+
Currency["Mop"] = "MOP";
|
|
172
|
+
Currency["Mro"] = "MRO";
|
|
173
|
+
Currency["Mvr"] = "MVR";
|
|
174
|
+
Currency["Mwk"] = "MWK";
|
|
175
|
+
Currency["Mxn"] = "MXN";
|
|
176
|
+
Currency["Myr"] = "MYR";
|
|
177
|
+
Currency["Mzn"] = "MZN";
|
|
178
|
+
Currency["Nad"] = "NAD";
|
|
179
|
+
Currency["Ngn"] = "NGN";
|
|
180
|
+
Currency["Nok"] = "NOK";
|
|
181
|
+
Currency["Npr"] = "NPR";
|
|
182
|
+
Currency["Nzd"] = "NZD";
|
|
183
|
+
Currency["Pgk"] = "PGK";
|
|
184
|
+
Currency["Php"] = "PHP";
|
|
185
|
+
Currency["Pkr"] = "PKR";
|
|
186
|
+
Currency["Pln"] = "PLN";
|
|
187
|
+
Currency["Pyg"] = "PYG";
|
|
188
|
+
Currency["Qar"] = "QAR";
|
|
189
|
+
Currency["Ron"] = "RON";
|
|
190
|
+
Currency["Rsd"] = "RSD";
|
|
191
|
+
Currency["Rub"] = "RUB";
|
|
192
|
+
Currency["Rwf"] = "RWF";
|
|
193
|
+
Currency["Sar"] = "SAR";
|
|
194
|
+
Currency["Sbd"] = "SBD";
|
|
195
|
+
Currency["Scr"] = "SCR";
|
|
196
|
+
Currency["Sek"] = "SEK";
|
|
197
|
+
Currency["Sgd"] = "SGD";
|
|
198
|
+
Currency["Sle"] = "SLE";
|
|
199
|
+
Currency["Sll"] = "SLL";
|
|
200
|
+
Currency["Sos"] = "SOS";
|
|
201
|
+
Currency["Szl"] = "SZL";
|
|
202
|
+
Currency["Thb"] = "THB";
|
|
203
|
+
Currency["Tjs"] = "TJS";
|
|
204
|
+
Currency["Top"] = "TOP";
|
|
205
|
+
Currency["Try"] = "TRY";
|
|
206
|
+
Currency["Ttd"] = "TTD";
|
|
207
|
+
Currency["Tzs"] = "TZS";
|
|
208
|
+
Currency["Uah"] = "UAH";
|
|
209
|
+
Currency["Ugx"] = "UGX";
|
|
210
|
+
Currency["Usd"] = "USD";
|
|
211
|
+
Currency["Uzs"] = "UZS";
|
|
212
|
+
Currency["Vnd"] = "VND";
|
|
213
|
+
Currency["Vuv"] = "VUV";
|
|
214
|
+
Currency["Wst"] = "WST";
|
|
215
|
+
Currency["Xaf"] = "XAF";
|
|
216
|
+
Currency["Xcd"] = "XCD";
|
|
217
|
+
Currency["Xof"] = "XOF";
|
|
218
|
+
Currency["Xpf"] = "XPF";
|
|
219
|
+
Currency["Yer"] = "YER";
|
|
220
|
+
Currency["Zar"] = "ZAR";
|
|
221
|
+
Currency["Zmw"] = "ZMW";
|
|
222
|
+
})(Currency = exports.Currency || (exports.Currency = {}));
|
|
223
|
+
var CustomerSortFields;
|
|
224
|
+
(function (CustomerSortFields) {
|
|
225
|
+
CustomerSortFields["BillingId"] = "billingId";
|
|
226
|
+
CustomerSortFields["CreatedAt"] = "createdAt";
|
|
227
|
+
CustomerSortFields["CrmHubspotCompanyId"] = "crmHubspotCompanyId";
|
|
228
|
+
CustomerSortFields["CrmHubspotCompanyUrl"] = "crmHubspotCompanyUrl";
|
|
229
|
+
CustomerSortFields["CrmId"] = "crmId";
|
|
230
|
+
CustomerSortFields["CustomerId"] = "customerId";
|
|
231
|
+
CustomerSortFields["Email"] = "email";
|
|
232
|
+
CustomerSortFields["EnvironmentId"] = "environmentId";
|
|
233
|
+
CustomerSortFields["Id"] = "id";
|
|
234
|
+
CustomerSortFields["Name"] = "name";
|
|
235
|
+
CustomerSortFields["RefId"] = "refId";
|
|
236
|
+
CustomerSortFields["UpdatedAt"] = "updatedAt";
|
|
237
|
+
})(CustomerSortFields = exports.CustomerSortFields || (exports.CustomerSortFields = {}));
|
|
238
|
+
var CustomerSubscriptionSortFields;
|
|
239
|
+
(function (CustomerSubscriptionSortFields) {
|
|
240
|
+
CustomerSubscriptionSortFields["BillingId"] = "billingId";
|
|
241
|
+
CustomerSubscriptionSortFields["CancelReason"] = "cancelReason";
|
|
242
|
+
CustomerSubscriptionSortFields["CancellationDate"] = "cancellationDate";
|
|
243
|
+
CustomerSubscriptionSortFields["CreatedAt"] = "createdAt";
|
|
244
|
+
CustomerSubscriptionSortFields["CrmId"] = "crmId";
|
|
245
|
+
CustomerSubscriptionSortFields["CrmLinkUrl"] = "crmLinkUrl";
|
|
246
|
+
CustomerSubscriptionSortFields["EffectiveEndDate"] = "effectiveEndDate";
|
|
247
|
+
CustomerSubscriptionSortFields["EndDate"] = "endDate";
|
|
248
|
+
CustomerSubscriptionSortFields["EnvironmentId"] = "environmentId";
|
|
249
|
+
CustomerSubscriptionSortFields["Id"] = "id";
|
|
250
|
+
CustomerSubscriptionSortFields["OldBillingId"] = "oldBillingId";
|
|
251
|
+
CustomerSubscriptionSortFields["PricingType"] = "pricingType";
|
|
252
|
+
CustomerSubscriptionSortFields["RefId"] = "refId";
|
|
253
|
+
CustomerSubscriptionSortFields["StartDate"] = "startDate";
|
|
254
|
+
CustomerSubscriptionSortFields["Status"] = "status";
|
|
255
|
+
CustomerSubscriptionSortFields["SubscriptionId"] = "subscriptionId";
|
|
256
|
+
CustomerSubscriptionSortFields["TrialEndDate"] = "trialEndDate";
|
|
257
|
+
})(CustomerSubscriptionSortFields = exports.CustomerSubscriptionSortFields || (exports.CustomerSubscriptionSortFields = {}));
|
|
258
|
+
/** The type of the discount duration */
|
|
259
|
+
var DiscountDurationType;
|
|
260
|
+
(function (DiscountDurationType) {
|
|
261
|
+
DiscountDurationType["Forever"] = "FOREVER";
|
|
262
|
+
DiscountDurationType["Once"] = "ONCE";
|
|
263
|
+
DiscountDurationType["Repeating"] = "REPEATING";
|
|
264
|
+
})(DiscountDurationType = exports.DiscountDurationType || (exports.DiscountDurationType = {}));
|
|
265
|
+
/** The type of the discount */
|
|
266
|
+
var DiscountType;
|
|
267
|
+
(function (DiscountType) {
|
|
268
|
+
DiscountType["Fixed"] = "FIXED";
|
|
269
|
+
DiscountType["Percentage"] = "PERCENTAGE";
|
|
270
|
+
})(DiscountType = exports.DiscountType || (exports.DiscountType = {}));
|
|
271
|
+
/** Entitlement reset period. */
|
|
272
|
+
var EntitlementResetPeriod;
|
|
273
|
+
(function (EntitlementResetPeriod) {
|
|
274
|
+
EntitlementResetPeriod["Day"] = "DAY";
|
|
275
|
+
EntitlementResetPeriod["Hour"] = "HOUR";
|
|
276
|
+
EntitlementResetPeriod["Month"] = "MONTH";
|
|
277
|
+
EntitlementResetPeriod["Week"] = "WEEK";
|
|
278
|
+
})(EntitlementResetPeriod = exports.EntitlementResetPeriod || (exports.EntitlementResetPeriod = {}));
|
|
279
|
+
var EntitySelectionMode;
|
|
280
|
+
(function (EntitySelectionMode) {
|
|
281
|
+
EntitySelectionMode["BlackList"] = "BLACK_LIST";
|
|
282
|
+
EntitySelectionMode["WhiteList"] = "WHITE_LIST";
|
|
283
|
+
})(EntitySelectionMode = exports.EntitySelectionMode || (exports.EntitySelectionMode = {}));
|
|
284
|
+
/** EnvironmentProvisionStatus. */
|
|
285
|
+
var EnvironmentProvisionStatus;
|
|
286
|
+
(function (EnvironmentProvisionStatus) {
|
|
287
|
+
EnvironmentProvisionStatus["Done"] = "DONE";
|
|
288
|
+
EnvironmentProvisionStatus["Failed"] = "FAILED";
|
|
289
|
+
EnvironmentProvisionStatus["InProgress"] = "IN_PROGRESS";
|
|
290
|
+
EnvironmentProvisionStatus["NotProvisioned"] = "NOT_PROVISIONED";
|
|
291
|
+
})(EnvironmentProvisionStatus = exports.EnvironmentProvisionStatus || (exports.EnvironmentProvisionStatus = {}));
|
|
292
|
+
var EnvironmentSortFields;
|
|
293
|
+
(function (EnvironmentSortFields) {
|
|
294
|
+
EnvironmentSortFields["CreatedAt"] = "createdAt";
|
|
295
|
+
EnvironmentSortFields["DisplayName"] = "displayName";
|
|
296
|
+
EnvironmentSortFields["Id"] = "id";
|
|
297
|
+
EnvironmentSortFields["Slug"] = "slug";
|
|
298
|
+
})(EnvironmentSortFields = exports.EnvironmentSortFields || (exports.EnvironmentSortFields = {}));
|
|
299
|
+
/** error codes */
|
|
300
|
+
var ErrorCode;
|
|
301
|
+
(function (ErrorCode) {
|
|
302
|
+
ErrorCode["AccountNotFoundError"] = "AccountNotFoundError";
|
|
303
|
+
ErrorCode["AddonHasToHavePriceError"] = "AddonHasToHavePriceError";
|
|
304
|
+
ErrorCode["AddonNotFound"] = "AddonNotFound";
|
|
305
|
+
ErrorCode["ArchivedCouponCantBeApplied"] = "ArchivedCouponCantBeApplied";
|
|
306
|
+
ErrorCode["AuthCustomerMismatch"] = "AuthCustomerMismatch";
|
|
307
|
+
ErrorCode["BadUserInput"] = "BadUserInput";
|
|
308
|
+
ErrorCode["BillingPeriodMissingError"] = "BillingPeriodMissingError";
|
|
309
|
+
ErrorCode["CannotDeleteCustomerError"] = "CannotDeleteCustomerError";
|
|
310
|
+
ErrorCode["CannotDeleteFeatureError"] = "CannotDeleteFeatureError";
|
|
311
|
+
ErrorCode["CannotEditPackageInNonDraftMode"] = "CannotEditPackageInNonDraftMode";
|
|
312
|
+
ErrorCode["CheckoutIsNotSupported"] = "CheckoutIsNotSupported";
|
|
313
|
+
ErrorCode["CheckoutOptionsMissing"] = "CheckoutOptionsMissing";
|
|
314
|
+
ErrorCode["CouponNotFound"] = "CouponNotFound";
|
|
315
|
+
ErrorCode["CustomerAlreadyHaveCustomerCoupon"] = "CustomerAlreadyHaveCustomerCoupon";
|
|
316
|
+
ErrorCode["CustomerAlreadyUsesCoupon"] = "CustomerAlreadyUsesCoupon";
|
|
317
|
+
ErrorCode["CustomerHasNoPaymentMethod"] = "CustomerHasNoPaymentMethod";
|
|
318
|
+
ErrorCode["CustomerNoBillingId"] = "CustomerNoBillingId";
|
|
319
|
+
ErrorCode["CustomerNotFound"] = "CustomerNotFound";
|
|
320
|
+
ErrorCode["DowngradeBillingPeriodNotSupportedError"] = "DowngradeBillingPeriodNotSupportedError";
|
|
321
|
+
ErrorCode["DraftPlanCantBeArchived"] = "DraftPlanCantBeArchived";
|
|
322
|
+
ErrorCode["DuplicatedEntityNotAllowed"] = "DuplicatedEntityNotAllowed";
|
|
323
|
+
ErrorCode["EditAllowedOnDraftPackageOnlyError"] = "EditAllowedOnDraftPackageOnlyError";
|
|
324
|
+
ErrorCode["EntitlementsMustBelongToSamePackage"] = "EntitlementsMustBelongToSamePackage";
|
|
325
|
+
ErrorCode["EntityIdDifferentFromRefIdError"] = "EntityIdDifferentFromRefIdError";
|
|
326
|
+
ErrorCode["EnvironmentMissing"] = "EnvironmentMissing";
|
|
327
|
+
ErrorCode["ExperimentAlreadyRunning"] = "ExperimentAlreadyRunning";
|
|
328
|
+
ErrorCode["ExperimentNotFoundError"] = "ExperimentNotFoundError";
|
|
329
|
+
ErrorCode["ExperimentStatusError"] = "ExperimentStatusError";
|
|
330
|
+
ErrorCode["FailedToCreateCheckoutSessionError"] = "FailedToCreateCheckoutSessionError";
|
|
331
|
+
ErrorCode["FailedToImportCustomer"] = "FailedToImportCustomer";
|
|
332
|
+
ErrorCode["FeatureNotFound"] = "FeatureNotFound";
|
|
333
|
+
ErrorCode["FetchAllCountriesPricesNotAllowed"] = "FetchAllCountriesPricesNotAllowed";
|
|
334
|
+
ErrorCode["IdentityForbidden"] = "IdentityForbidden";
|
|
335
|
+
ErrorCode["ImportAlreadyInProgress"] = "ImportAlreadyInProgress";
|
|
336
|
+
ErrorCode["InitStripePaymentMethodError"] = "InitStripePaymentMethodError";
|
|
337
|
+
ErrorCode["IntegrationNotFound"] = "IntegrationNotFound";
|
|
338
|
+
ErrorCode["IntegrityViolation"] = "IntegrityViolation";
|
|
339
|
+
ErrorCode["InvalidAddressError"] = "InvalidAddressError";
|
|
340
|
+
ErrorCode["InvalidArgumentError"] = "InvalidArgumentError";
|
|
341
|
+
ErrorCode["InvalidCancellationDate"] = "InvalidCancellationDate";
|
|
342
|
+
ErrorCode["InvalidEntitlementResetPeriod"] = "InvalidEntitlementResetPeriod";
|
|
343
|
+
ErrorCode["InvalidMemberDelete"] = "InvalidMemberDelete";
|
|
344
|
+
ErrorCode["InvalidQuantity"] = "InvalidQuantity";
|
|
345
|
+
ErrorCode["InvalidSubscriptionStatus"] = "InvalidSubscriptionStatus";
|
|
346
|
+
ErrorCode["InvalidUpdatePriceUnitAmountError"] = "InvalidUpdatePriceUnitAmountError";
|
|
347
|
+
ErrorCode["InvalidUsageValueForIncrementalFeatureError"] = "InvalidUsageValueForIncrementalFeatureError";
|
|
348
|
+
ErrorCode["MemberInvitationError"] = "MemberInvitationError";
|
|
349
|
+
ErrorCode["MemberNotFound"] = "MemberNotFound";
|
|
350
|
+
ErrorCode["MeteringNotAvailableForFeatureType"] = "MeteringNotAvailableForFeatureType";
|
|
351
|
+
ErrorCode["MissingEntityIdError"] = "MissingEntityIdError";
|
|
352
|
+
ErrorCode["NoFeatureEntitlementInSubscription"] = "NoFeatureEntitlementInSubscription";
|
|
353
|
+
ErrorCode["NoProductsAvailable"] = "NoProductsAvailable";
|
|
354
|
+
ErrorCode["OperationNotAllowedDuringInProgressExperiment"] = "OperationNotAllowedDuringInProgressExperiment";
|
|
355
|
+
ErrorCode["PackageAlreadyPublished"] = "PackageAlreadyPublished";
|
|
356
|
+
ErrorCode["PackagePricingTypeNotSet"] = "PackagePricingTypeNotSet";
|
|
357
|
+
ErrorCode["PlanAlreadyExtended"] = "PlanAlreadyExtended";
|
|
358
|
+
ErrorCode["PlanCannotBePublishWhenBasePlanIsDraft"] = "PlanCannotBePublishWhenBasePlanIsDraft";
|
|
359
|
+
ErrorCode["PlanIsUsedAsDefaultStartPlan"] = "PlanIsUsedAsDefaultStartPlan";
|
|
360
|
+
ErrorCode["PlanIsUsedAsDowngradePlan"] = "PlanIsUsedAsDowngradePlan";
|
|
361
|
+
ErrorCode["PlanNotFound"] = "PlanNotFound";
|
|
362
|
+
ErrorCode["PlanWithChildCantBeDeleted"] = "PlanWithChildCantBeDeleted";
|
|
363
|
+
ErrorCode["PlansCircularDependencyError"] = "PlansCircularDependencyError";
|
|
364
|
+
ErrorCode["PriceNotFound"] = "PriceNotFound";
|
|
365
|
+
ErrorCode["PromotionCodeCustomerNotFirstPurchase"] = "PromotionCodeCustomerNotFirstPurchase";
|
|
366
|
+
ErrorCode["PromotionCodeMaxRedemptionsReached"] = "PromotionCodeMaxRedemptionsReached";
|
|
367
|
+
ErrorCode["PromotionCodeMinimumAmountNotReached"] = "PromotionCodeMinimumAmountNotReached";
|
|
368
|
+
ErrorCode["PromotionCodeNotActive"] = "PromotionCodeNotActive";
|
|
369
|
+
ErrorCode["PromotionCodeNotForCustomer"] = "PromotionCodeNotForCustomer";
|
|
370
|
+
ErrorCode["PromotionCodeNotFound"] = "PromotionCodeNotFound";
|
|
371
|
+
ErrorCode["RateLimitExceeded"] = "RateLimitExceeded";
|
|
372
|
+
ErrorCode["ResyncAlreadyInProgress"] = "ResyncAlreadyInProgress";
|
|
373
|
+
ErrorCode["SelectedBillingModelDoesntMatchImportedItemError"] = "SelectedBillingModelDoesntMatchImportedItemError";
|
|
374
|
+
ErrorCode["StripeCustomerIsDeleted"] = "StripeCustomerIsDeleted";
|
|
375
|
+
ErrorCode["SubscriptionAlreadyCanceledOrExpired"] = "SubscriptionAlreadyCanceledOrExpired";
|
|
376
|
+
ErrorCode["SubscriptionMustHaveSinglePlanError"] = "SubscriptionMustHaveSinglePlanError";
|
|
377
|
+
ErrorCode["SubscriptionNotFound"] = "SubscriptionNotFound";
|
|
378
|
+
ErrorCode["TrialMinDateError"] = "TrialMinDateError";
|
|
379
|
+
ErrorCode["TrialMustBeCancelledImmediately"] = "TrialMustBeCancelledImmediately";
|
|
380
|
+
ErrorCode["UnPublishedPackage"] = "UnPublishedPackage";
|
|
381
|
+
ErrorCode["Unauthenticated"] = "Unauthenticated";
|
|
382
|
+
ErrorCode["UncompatibleSubscriptionAddon"] = "UncompatibleSubscriptionAddon";
|
|
383
|
+
ErrorCode["UnexpectedError"] = "UnexpectedError";
|
|
384
|
+
ErrorCode["UnsupportedFeatureType"] = "UnsupportedFeatureType";
|
|
385
|
+
ErrorCode["UnsupportedSubscriptionScheduleType"] = "UnsupportedSubscriptionScheduleType";
|
|
386
|
+
ErrorCode["UnsupportedVendorIdentifier"] = "UnsupportedVendorIdentifier";
|
|
387
|
+
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
388
|
+
/** EventLogType */
|
|
389
|
+
var EventLogType;
|
|
390
|
+
(function (EventLogType) {
|
|
391
|
+
EventLogType["AddonCreated"] = "ADDON_CREATED";
|
|
392
|
+
EventLogType["AddonDeleted"] = "ADDON_DELETED";
|
|
393
|
+
EventLogType["AddonUpdated"] = "ADDON_UPDATED";
|
|
394
|
+
EventLogType["CouponArchived"] = "COUPON_ARCHIVED";
|
|
395
|
+
EventLogType["CouponCreated"] = "COUPON_CREATED";
|
|
396
|
+
EventLogType["CouponUpdated"] = "COUPON_UPDATED";
|
|
397
|
+
EventLogType["CreateSubscriptionFailed"] = "CREATE_SUBSCRIPTION_FAILED";
|
|
398
|
+
EventLogType["CustomerCreated"] = "CUSTOMER_CREATED";
|
|
399
|
+
EventLogType["CustomerDeleted"] = "CUSTOMER_DELETED";
|
|
400
|
+
EventLogType["CustomerPaymentFailed"] = "CUSTOMER_PAYMENT_FAILED";
|
|
401
|
+
EventLogType["CustomerUpdated"] = "CUSTOMER_UPDATED";
|
|
402
|
+
EventLogType["EdgeApiDataResync"] = "EDGE_API_DATA_RESYNC";
|
|
403
|
+
EventLogType["EntitlementsUpdated"] = "ENTITLEMENTS_UPDATED";
|
|
404
|
+
EventLogType["EntitlementDenied"] = "ENTITLEMENT_DENIED";
|
|
405
|
+
EventLogType["EntitlementGranted"] = "ENTITLEMENT_GRANTED";
|
|
406
|
+
EventLogType["EntitlementRequested"] = "ENTITLEMENT_REQUESTED";
|
|
407
|
+
EventLogType["EnvironmentDeleted"] = "ENVIRONMENT_DELETED";
|
|
408
|
+
EventLogType["FeatureCreated"] = "FEATURE_CREATED";
|
|
409
|
+
EventLogType["FeatureDeleted"] = "FEATURE_DELETED";
|
|
410
|
+
EventLogType["FeatureUpdated"] = "FEATURE_UPDATED";
|
|
411
|
+
EventLogType["ImportIntegrationCatalogTriggered"] = "IMPORT_INTEGRATION_CATALOG_TRIGGERED";
|
|
412
|
+
EventLogType["ImportIntegrationCustomersTriggered"] = "IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED";
|
|
413
|
+
EventLogType["MeasurementReported"] = "MEASUREMENT_REPORTED";
|
|
414
|
+
EventLogType["PackagePublished"] = "PACKAGE_PUBLISHED";
|
|
415
|
+
EventLogType["PlanCreated"] = "PLAN_CREATED";
|
|
416
|
+
EventLogType["PlanDeleted"] = "PLAN_DELETED";
|
|
417
|
+
EventLogType["PlanUpdated"] = "PLAN_UPDATED";
|
|
418
|
+
EventLogType["ProductCreated"] = "PRODUCT_CREATED";
|
|
419
|
+
EventLogType["ProductDeleted"] = "PRODUCT_DELETED";
|
|
420
|
+
EventLogType["ProductUpdated"] = "PRODUCT_UPDATED";
|
|
421
|
+
EventLogType["PromotionalEntitlementExpired"] = "PROMOTIONAL_ENTITLEMENT_EXPIRED";
|
|
422
|
+
EventLogType["PromotionalEntitlementGranted"] = "PROMOTIONAL_ENTITLEMENT_GRANTED";
|
|
423
|
+
EventLogType["PromotionalEntitlementRevoked"] = "PROMOTIONAL_ENTITLEMENT_REVOKED";
|
|
424
|
+
EventLogType["PromotionalEntitlementUpdated"] = "PROMOTIONAL_ENTITLEMENT_UPDATED";
|
|
425
|
+
EventLogType["ResyncIntegrationTriggered"] = "RESYNC_INTEGRATION_TRIGGERED";
|
|
426
|
+
EventLogType["SubscriptionCanceled"] = "SUBSCRIPTION_CANCELED";
|
|
427
|
+
EventLogType["SubscriptionCreated"] = "SUBSCRIPTION_CREATED";
|
|
428
|
+
EventLogType["SubscriptionExpired"] = "SUBSCRIPTION_EXPIRED";
|
|
429
|
+
EventLogType["SubscriptionTrialConverted"] = "SUBSCRIPTION_TRIAL_CONVERTED";
|
|
430
|
+
EventLogType["SubscriptionTrialEndsSoon"] = "SUBSCRIPTION_TRIAL_ENDS_SOON";
|
|
431
|
+
EventLogType["SubscriptionTrialExpired"] = "SUBSCRIPTION_TRIAL_EXPIRED";
|
|
432
|
+
EventLogType["SubscriptionTrialStarted"] = "SUBSCRIPTION_TRIAL_STARTED";
|
|
433
|
+
EventLogType["SubscriptionUpdated"] = "SUBSCRIPTION_UPDATED";
|
|
434
|
+
EventLogType["SubscriptionUsageUpdated"] = "SUBSCRIPTION_USAGE_UPDATED";
|
|
435
|
+
EventLogType["SyncFailed"] = "SYNC_FAILED";
|
|
436
|
+
EventLogType["WidgetConfigurationUpdated"] = "WIDGET_CONFIGURATION_UPDATED";
|
|
437
|
+
})(EventLogType = exports.EventLogType || (exports.EventLogType = {}));
|
|
438
|
+
var ExperimentSortFields;
|
|
439
|
+
(function (ExperimentSortFields) {
|
|
440
|
+
ExperimentSortFields["CreatedAt"] = "createdAt";
|
|
441
|
+
ExperimentSortFields["EnvironmentId"] = "environmentId";
|
|
442
|
+
ExperimentSortFields["Id"] = "id";
|
|
443
|
+
ExperimentSortFields["Name"] = "name";
|
|
444
|
+
ExperimentSortFields["ProductId"] = "productId";
|
|
445
|
+
ExperimentSortFields["RefId"] = "refId";
|
|
446
|
+
ExperimentSortFields["Status"] = "status";
|
|
447
|
+
})(ExperimentSortFields = exports.ExperimentSortFields || (exports.ExperimentSortFields = {}));
|
|
448
|
+
/** The status of the EXPERIMENT */
|
|
449
|
+
var ExperimentStatus;
|
|
450
|
+
(function (ExperimentStatus) {
|
|
451
|
+
ExperimentStatus["Completed"] = "COMPLETED";
|
|
452
|
+
ExperimentStatus["Draft"] = "DRAFT";
|
|
453
|
+
ExperimentStatus["InProgress"] = "IN_PROGRESS";
|
|
454
|
+
})(ExperimentStatus = exports.ExperimentStatus || (exports.ExperimentStatus = {}));
|
|
455
|
+
var FeatureSortFields;
|
|
456
|
+
(function (FeatureSortFields) {
|
|
457
|
+
FeatureSortFields["CreatedAt"] = "createdAt";
|
|
458
|
+
FeatureSortFields["Description"] = "description";
|
|
459
|
+
FeatureSortFields["DisplayName"] = "displayName";
|
|
460
|
+
FeatureSortFields["EnvironmentId"] = "environmentId";
|
|
461
|
+
FeatureSortFields["FeatureStatus"] = "featureStatus";
|
|
462
|
+
FeatureSortFields["FeatureType"] = "featureType";
|
|
463
|
+
FeatureSortFields["Id"] = "id";
|
|
464
|
+
FeatureSortFields["MeterType"] = "meterType";
|
|
465
|
+
FeatureSortFields["RefId"] = "refId";
|
|
466
|
+
FeatureSortFields["UpdatedAt"] = "updatedAt";
|
|
467
|
+
})(FeatureSortFields = exports.FeatureSortFields || (exports.FeatureSortFields = {}));
|
|
468
|
+
/** Feature status. */
|
|
469
|
+
var FeatureStatus;
|
|
470
|
+
(function (FeatureStatus) {
|
|
471
|
+
FeatureStatus["Active"] = "ACTIVE";
|
|
472
|
+
FeatureStatus["New"] = "NEW";
|
|
473
|
+
FeatureStatus["Suspended"] = "SUSPENDED";
|
|
474
|
+
})(FeatureStatus = exports.FeatureStatus || (exports.FeatureStatus = {}));
|
|
475
|
+
/** The type of the feature */
|
|
476
|
+
var FeatureType;
|
|
477
|
+
(function (FeatureType) {
|
|
478
|
+
FeatureType["Boolean"] = "BOOLEAN";
|
|
479
|
+
FeatureType["Number"] = "NUMBER";
|
|
480
|
+
})(FeatureType = exports.FeatureType || (exports.FeatureType = {}));
|
|
481
|
+
/** Font weight */
|
|
482
|
+
var FontWeight;
|
|
483
|
+
(function (FontWeight) {
|
|
484
|
+
FontWeight["Bold"] = "BOLD";
|
|
485
|
+
FontWeight["Normal"] = "NORMAL";
|
|
486
|
+
})(FontWeight = exports.FontWeight || (exports.FontWeight = {}));
|
|
487
|
+
var HookSortFields;
|
|
488
|
+
(function (HookSortFields) {
|
|
489
|
+
HookSortFields["CreatedAt"] = "createdAt";
|
|
490
|
+
HookSortFields["Endpoint"] = "endpoint";
|
|
491
|
+
HookSortFields["EnvironmentId"] = "environmentId";
|
|
492
|
+
HookSortFields["Id"] = "id";
|
|
493
|
+
HookSortFields["Status"] = "status";
|
|
494
|
+
})(HookSortFields = exports.HookSortFields || (exports.HookSortFields = {}));
|
|
495
|
+
/** HookStatus. */
|
|
496
|
+
var HookStatus;
|
|
497
|
+
(function (HookStatus) {
|
|
498
|
+
HookStatus["Active"] = "ACTIVE";
|
|
499
|
+
HookStatus["Inactive"] = "INACTIVE";
|
|
500
|
+
})(HookStatus = exports.HookStatus || (exports.HookStatus = {}));
|
|
501
|
+
var ImportIntegrationTaskSortFields;
|
|
502
|
+
(function (ImportIntegrationTaskSortFields) {
|
|
503
|
+
ImportIntegrationTaskSortFields["CreatedAt"] = "createdAt";
|
|
504
|
+
ImportIntegrationTaskSortFields["EnvironmentId"] = "environmentId";
|
|
505
|
+
ImportIntegrationTaskSortFields["Id"] = "id";
|
|
506
|
+
ImportIntegrationTaskSortFields["Status"] = "status";
|
|
507
|
+
ImportIntegrationTaskSortFields["TaskType"] = "taskType";
|
|
508
|
+
})(ImportIntegrationTaskSortFields = exports.ImportIntegrationTaskSortFields || (exports.ImportIntegrationTaskSortFields = {}));
|
|
509
|
+
var IntegrationSortFields;
|
|
510
|
+
(function (IntegrationSortFields) {
|
|
511
|
+
IntegrationSortFields["CreatedAt"] = "createdAt";
|
|
512
|
+
IntegrationSortFields["EnvironmentId"] = "environmentId";
|
|
513
|
+
IntegrationSortFields["Id"] = "id";
|
|
514
|
+
IntegrationSortFields["VendorIdentifier"] = "vendorIdentifier";
|
|
515
|
+
})(IntegrationSortFields = exports.IntegrationSortFields || (exports.IntegrationSortFields = {}));
|
|
516
|
+
var MemberSortFields;
|
|
517
|
+
(function (MemberSortFields) {
|
|
518
|
+
MemberSortFields["CreatedAt"] = "createdAt";
|
|
519
|
+
MemberSortFields["Id"] = "id";
|
|
520
|
+
})(MemberSortFields = exports.MemberSortFields || (exports.MemberSortFields = {}));
|
|
521
|
+
/** Member Status. */
|
|
522
|
+
var MemberStatus;
|
|
523
|
+
(function (MemberStatus) {
|
|
524
|
+
MemberStatus["Invited"] = "INVITED";
|
|
525
|
+
MemberStatus["Registered"] = "REGISTERED";
|
|
526
|
+
})(MemberStatus = exports.MemberStatus || (exports.MemberStatus = {}));
|
|
527
|
+
/** The meter type of the feature */
|
|
528
|
+
var MeterType;
|
|
529
|
+
(function (MeterType) {
|
|
530
|
+
MeterType["Fluctuating"] = "Fluctuating";
|
|
531
|
+
MeterType["Incremental"] = "Incremental";
|
|
532
|
+
MeterType["None"] = "None";
|
|
533
|
+
})(MeterType = exports.MeterType || (exports.MeterType = {}));
|
|
534
|
+
/** Montly reset period according to configuration */
|
|
535
|
+
var MonthlyAccordingTo;
|
|
536
|
+
(function (MonthlyAccordingTo) {
|
|
537
|
+
MonthlyAccordingTo["StartOfTheMonth"] = "StartOfTheMonth";
|
|
538
|
+
MonthlyAccordingTo["SubscriptionStart"] = "SubscriptionStart";
|
|
539
|
+
})(MonthlyAccordingTo = exports.MonthlyAccordingTo || (exports.MonthlyAccordingTo = {}));
|
|
540
|
+
var PackageDtoSortFields;
|
|
541
|
+
(function (PackageDtoSortFields) {
|
|
542
|
+
PackageDtoSortFields["BillingId"] = "billingId";
|
|
543
|
+
PackageDtoSortFields["CreatedAt"] = "createdAt";
|
|
544
|
+
PackageDtoSortFields["Description"] = "description";
|
|
545
|
+
PackageDtoSortFields["DisplayName"] = "displayName";
|
|
546
|
+
PackageDtoSortFields["EnvironmentId"] = "environmentId";
|
|
547
|
+
PackageDtoSortFields["Id"] = "id";
|
|
548
|
+
PackageDtoSortFields["IsLatest"] = "isLatest";
|
|
549
|
+
PackageDtoSortFields["PricingType"] = "pricingType";
|
|
550
|
+
PackageDtoSortFields["ProductId"] = "productId";
|
|
551
|
+
PackageDtoSortFields["RefId"] = "refId";
|
|
552
|
+
PackageDtoSortFields["Status"] = "status";
|
|
553
|
+
PackageDtoSortFields["UpdatedAt"] = "updatedAt";
|
|
554
|
+
PackageDtoSortFields["VersionNumber"] = "versionNumber";
|
|
555
|
+
})(PackageDtoSortFields = exports.PackageDtoSortFields || (exports.PackageDtoSortFields = {}));
|
|
556
|
+
var PackageEntitlementSortFields;
|
|
557
|
+
(function (PackageEntitlementSortFields) {
|
|
558
|
+
PackageEntitlementSortFields["CreatedAt"] = "createdAt";
|
|
559
|
+
PackageEntitlementSortFields["EnvironmentId"] = "environmentId";
|
|
560
|
+
PackageEntitlementSortFields["Id"] = "id";
|
|
561
|
+
PackageEntitlementSortFields["PackageId"] = "packageId";
|
|
562
|
+
PackageEntitlementSortFields["UpdatedAt"] = "updatedAt";
|
|
563
|
+
})(PackageEntitlementSortFields = exports.PackageEntitlementSortFields || (exports.PackageEntitlementSortFields = {}));
|
|
564
|
+
/** Package status. */
|
|
565
|
+
var PackageStatus;
|
|
566
|
+
(function (PackageStatus) {
|
|
567
|
+
PackageStatus["Archived"] = "ARCHIVED";
|
|
568
|
+
PackageStatus["Draft"] = "DRAFT";
|
|
569
|
+
PackageStatus["Published"] = "PUBLISHED";
|
|
570
|
+
})(PackageStatus = exports.PackageStatus || (exports.PackageStatus = {}));
|
|
571
|
+
/** Type of a payment method */
|
|
572
|
+
var PaymentMethodType;
|
|
573
|
+
(function (PaymentMethodType) {
|
|
574
|
+
PaymentMethodType["Bank"] = "BANK";
|
|
575
|
+
PaymentMethodType["Card"] = "CARD";
|
|
576
|
+
})(PaymentMethodType = exports.PaymentMethodType || (exports.PaymentMethodType = {}));
|
|
577
|
+
var PlanSortFields;
|
|
578
|
+
(function (PlanSortFields) {
|
|
579
|
+
PlanSortFields["BillingId"] = "billingId";
|
|
580
|
+
PlanSortFields["CreatedAt"] = "createdAt";
|
|
581
|
+
PlanSortFields["Description"] = "description";
|
|
582
|
+
PlanSortFields["DisplayName"] = "displayName";
|
|
583
|
+
PlanSortFields["EnvironmentId"] = "environmentId";
|
|
584
|
+
PlanSortFields["Id"] = "id";
|
|
585
|
+
PlanSortFields["IsLatest"] = "isLatest";
|
|
586
|
+
PlanSortFields["PricingType"] = "pricingType";
|
|
587
|
+
PlanSortFields["ProductId"] = "productId";
|
|
588
|
+
PlanSortFields["RefId"] = "refId";
|
|
589
|
+
PlanSortFields["Status"] = "status";
|
|
590
|
+
PlanSortFields["UpdatedAt"] = "updatedAt";
|
|
591
|
+
PlanSortFields["VersionNumber"] = "versionNumber";
|
|
592
|
+
})(PlanSortFields = exports.PlanSortFields || (exports.PlanSortFields = {}));
|
|
593
|
+
/** Package pricing type. */
|
|
594
|
+
var PricingType;
|
|
595
|
+
(function (PricingType) {
|
|
596
|
+
PricingType["Custom"] = "CUSTOM";
|
|
597
|
+
PricingType["Free"] = "FREE";
|
|
598
|
+
PricingType["Paid"] = "PAID";
|
|
599
|
+
})(PricingType = exports.PricingType || (exports.PricingType = {}));
|
|
600
|
+
var ProductSortFields;
|
|
601
|
+
(function (ProductSortFields) {
|
|
602
|
+
ProductSortFields["CreatedAt"] = "createdAt";
|
|
603
|
+
ProductSortFields["Description"] = "description";
|
|
604
|
+
ProductSortFields["DisplayName"] = "displayName";
|
|
605
|
+
ProductSortFields["EnvironmentId"] = "environmentId";
|
|
606
|
+
ProductSortFields["Id"] = "id";
|
|
607
|
+
ProductSortFields["IsDefaultProduct"] = "isDefaultProduct";
|
|
608
|
+
ProductSortFields["RefId"] = "refId";
|
|
609
|
+
ProductSortFields["UpdatedAt"] = "updatedAt";
|
|
610
|
+
})(ProductSortFields = exports.ProductSortFields || (exports.ProductSortFields = {}));
|
|
611
|
+
/** Promotional entitlement duration */
|
|
612
|
+
var PromotionalEntitlementPeriod;
|
|
613
|
+
(function (PromotionalEntitlementPeriod) {
|
|
614
|
+
PromotionalEntitlementPeriod["Custom"] = "CUSTOM";
|
|
615
|
+
PromotionalEntitlementPeriod["Lifetime"] = "LIFETIME";
|
|
616
|
+
PromotionalEntitlementPeriod["OneMonth"] = "ONE_MONTH";
|
|
617
|
+
PromotionalEntitlementPeriod["OneWeek"] = "ONE_WEEK";
|
|
618
|
+
PromotionalEntitlementPeriod["OneYear"] = "ONE_YEAR";
|
|
619
|
+
PromotionalEntitlementPeriod["SixMonth"] = "SIX_MONTH";
|
|
620
|
+
})(PromotionalEntitlementPeriod = exports.PromotionalEntitlementPeriod || (exports.PromotionalEntitlementPeriod = {}));
|
|
621
|
+
var PromotionalEntitlementSortFields;
|
|
622
|
+
(function (PromotionalEntitlementSortFields) {
|
|
623
|
+
PromotionalEntitlementSortFields["CreatedAt"] = "createdAt";
|
|
624
|
+
PromotionalEntitlementSortFields["EnvironmentId"] = "environmentId";
|
|
625
|
+
PromotionalEntitlementSortFields["Id"] = "id";
|
|
626
|
+
PromotionalEntitlementSortFields["Status"] = "status";
|
|
627
|
+
PromotionalEntitlementSortFields["UpdatedAt"] = "updatedAt";
|
|
628
|
+
})(PromotionalEntitlementSortFields = exports.PromotionalEntitlementSortFields || (exports.PromotionalEntitlementSortFields = {}));
|
|
629
|
+
/** Promotional entitlement status */
|
|
630
|
+
var PromotionalEntitlementStatus;
|
|
631
|
+
(function (PromotionalEntitlementStatus) {
|
|
632
|
+
PromotionalEntitlementStatus["Active"] = "Active";
|
|
633
|
+
PromotionalEntitlementStatus["Expired"] = "Expired";
|
|
634
|
+
PromotionalEntitlementStatus["Paused"] = "Paused";
|
|
635
|
+
})(PromotionalEntitlementStatus = exports.PromotionalEntitlementStatus || (exports.PromotionalEntitlementStatus = {}));
|
|
636
|
+
var ProrationBehavior;
|
|
637
|
+
(function (ProrationBehavior) {
|
|
638
|
+
ProrationBehavior["CreateProrations"] = "CREATE_PRORATIONS";
|
|
639
|
+
ProrationBehavior["InvoiceImmediately"] = "INVOICE_IMMEDIATELY";
|
|
640
|
+
})(ProrationBehavior = exports.ProrationBehavior || (exports.ProrationBehavior = {}));
|
|
641
|
+
/** Provision subscription status */
|
|
642
|
+
var ProvisionSubscriptionStatus;
|
|
643
|
+
(function (ProvisionSubscriptionStatus) {
|
|
644
|
+
ProvisionSubscriptionStatus["PaymentRequired"] = "PAYMENT_REQUIRED";
|
|
645
|
+
ProvisionSubscriptionStatus["Success"] = "SUCCESS";
|
|
646
|
+
})(ProvisionSubscriptionStatus = exports.ProvisionSubscriptionStatus || (exports.ProvisionSubscriptionStatus = {}));
|
|
647
|
+
/** PublishMigrationType */
|
|
648
|
+
var PublishMigrationType;
|
|
649
|
+
(function (PublishMigrationType) {
|
|
650
|
+
PublishMigrationType["AllCustomers"] = "ALL_CUSTOMERS";
|
|
651
|
+
PublishMigrationType["NewCustomers"] = "NEW_CUSTOMERS";
|
|
652
|
+
})(PublishMigrationType = exports.PublishMigrationType || (exports.PublishMigrationType = {}));
|
|
653
|
+
/** Sort Directions */
|
|
654
|
+
var SortDirection;
|
|
655
|
+
(function (SortDirection) {
|
|
656
|
+
SortDirection["Asc"] = "ASC";
|
|
657
|
+
SortDirection["Desc"] = "DESC";
|
|
658
|
+
})(SortDirection = exports.SortDirection || (exports.SortDirection = {}));
|
|
659
|
+
/** Sort Nulls Options */
|
|
660
|
+
var SortNulls;
|
|
661
|
+
(function (SortNulls) {
|
|
662
|
+
SortNulls["NullsFirst"] = "NULLS_FIRST";
|
|
663
|
+
SortNulls["NullsLast"] = "NULLS_LAST";
|
|
664
|
+
})(SortNulls = exports.SortNulls || (exports.SortNulls = {}));
|
|
665
|
+
var SourceType;
|
|
666
|
+
(function (SourceType) {
|
|
667
|
+
SourceType["JsClientSdk"] = "JS_CLIENT_SDK";
|
|
668
|
+
SourceType["NodeServerSdk"] = "NODE_SERVER_SDK";
|
|
669
|
+
})(SourceType = exports.SourceType || (exports.SourceType = {}));
|
|
670
|
+
var SubscriptionAddonSortFields;
|
|
671
|
+
(function (SubscriptionAddonSortFields) {
|
|
672
|
+
SubscriptionAddonSortFields["CreatedAt"] = "createdAt";
|
|
673
|
+
SubscriptionAddonSortFields["Id"] = "id";
|
|
674
|
+
SubscriptionAddonSortFields["Quantity"] = "quantity";
|
|
675
|
+
SubscriptionAddonSortFields["UpdatedAt"] = "updatedAt";
|
|
676
|
+
})(SubscriptionAddonSortFields = exports.SubscriptionAddonSortFields || (exports.SubscriptionAddonSortFields = {}));
|
|
677
|
+
/** Subscription cancellation status */
|
|
678
|
+
var SubscriptionCancelReason;
|
|
679
|
+
(function (SubscriptionCancelReason) {
|
|
680
|
+
SubscriptionCancelReason["CancelledByBilling"] = "CancelledByBilling";
|
|
681
|
+
SubscriptionCancelReason["DetachBilling"] = "DetachBilling";
|
|
682
|
+
SubscriptionCancelReason["Expired"] = "Expired";
|
|
683
|
+
SubscriptionCancelReason["Immediate"] = "Immediate";
|
|
684
|
+
SubscriptionCancelReason["PendingPaymentExpired"] = "PendingPaymentExpired";
|
|
685
|
+
SubscriptionCancelReason["ScheduledCancellation"] = "ScheduledCancellation";
|
|
686
|
+
SubscriptionCancelReason["TrialConverted"] = "TrialConverted";
|
|
687
|
+
SubscriptionCancelReason["TrialEnded"] = "TrialEnded";
|
|
688
|
+
SubscriptionCancelReason["UpgradeOrDowngrade"] = "UpgradeOrDowngrade";
|
|
689
|
+
})(SubscriptionCancelReason = exports.SubscriptionCancelReason || (exports.SubscriptionCancelReason = {}));
|
|
690
|
+
var SubscriptionCancellationTime;
|
|
691
|
+
(function (SubscriptionCancellationTime) {
|
|
692
|
+
SubscriptionCancellationTime["EndOfBillingPeriod"] = "END_OF_BILLING_PERIOD";
|
|
693
|
+
SubscriptionCancellationTime["Immediate"] = "IMMEDIATE";
|
|
694
|
+
SubscriptionCancellationTime["SpecificDate"] = "SPECIFIC_DATE";
|
|
695
|
+
})(SubscriptionCancellationTime = exports.SubscriptionCancellationTime || (exports.SubscriptionCancellationTime = {}));
|
|
696
|
+
/** Subscription decision strategy */
|
|
697
|
+
var SubscriptionDecisionStrategy;
|
|
698
|
+
(function (SubscriptionDecisionStrategy) {
|
|
699
|
+
SubscriptionDecisionStrategy["PredefinedFreePlan"] = "PREDEFINED_FREE_PLAN";
|
|
700
|
+
SubscriptionDecisionStrategy["PredefinedTrialPlan"] = "PREDEFINED_TRIAL_PLAN";
|
|
701
|
+
SubscriptionDecisionStrategy["RequestedPlan"] = "REQUESTED_PLAN";
|
|
702
|
+
SubscriptionDecisionStrategy["SkippedSubscriptionCreation"] = "SKIPPED_SUBSCRIPTION_CREATION";
|
|
703
|
+
})(SubscriptionDecisionStrategy = exports.SubscriptionDecisionStrategy || (exports.SubscriptionDecisionStrategy = {}));
|
|
704
|
+
var SubscriptionEndSetup;
|
|
705
|
+
(function (SubscriptionEndSetup) {
|
|
706
|
+
SubscriptionEndSetup["CancelSubscription"] = "CANCEL_SUBSCRIPTION";
|
|
707
|
+
SubscriptionEndSetup["DowngradeToFree"] = "DOWNGRADE_TO_FREE";
|
|
708
|
+
})(SubscriptionEndSetup = exports.SubscriptionEndSetup || (exports.SubscriptionEndSetup = {}));
|
|
709
|
+
var SubscriptionEntitlementSortFields;
|
|
710
|
+
(function (SubscriptionEntitlementSortFields) {
|
|
711
|
+
SubscriptionEntitlementSortFields["CreatedAt"] = "createdAt";
|
|
712
|
+
SubscriptionEntitlementSortFields["EnvironmentId"] = "environmentId";
|
|
713
|
+
SubscriptionEntitlementSortFields["Id"] = "id";
|
|
714
|
+
SubscriptionEntitlementSortFields["SubscriptionId"] = "subscriptionId";
|
|
715
|
+
SubscriptionEntitlementSortFields["UpdatedAt"] = "updatedAt";
|
|
716
|
+
})(SubscriptionEntitlementSortFields = exports.SubscriptionEntitlementSortFields || (exports.SubscriptionEntitlementSortFields = {}));
|
|
717
|
+
var SubscriptionMigrationTaskSortFields;
|
|
718
|
+
(function (SubscriptionMigrationTaskSortFields) {
|
|
719
|
+
SubscriptionMigrationTaskSortFields["CreatedAt"] = "createdAt";
|
|
720
|
+
SubscriptionMigrationTaskSortFields["EnvironmentId"] = "environmentId";
|
|
721
|
+
SubscriptionMigrationTaskSortFields["Id"] = "id";
|
|
722
|
+
SubscriptionMigrationTaskSortFields["Status"] = "status";
|
|
723
|
+
SubscriptionMigrationTaskSortFields["TaskType"] = "taskType";
|
|
724
|
+
})(SubscriptionMigrationTaskSortFields = exports.SubscriptionMigrationTaskSortFields || (exports.SubscriptionMigrationTaskSortFields = {}));
|
|
725
|
+
var SubscriptionPriceSortFields;
|
|
726
|
+
(function (SubscriptionPriceSortFields) {
|
|
727
|
+
SubscriptionPriceSortFields["CreatedAt"] = "createdAt";
|
|
728
|
+
SubscriptionPriceSortFields["Id"] = "id";
|
|
729
|
+
SubscriptionPriceSortFields["UpdatedAt"] = "updatedAt";
|
|
730
|
+
SubscriptionPriceSortFields["UsageLimit"] = "usageLimit";
|
|
731
|
+
})(SubscriptionPriceSortFields = exports.SubscriptionPriceSortFields || (exports.SubscriptionPriceSortFields = {}));
|
|
732
|
+
/** Subscription scheduled schedule status */
|
|
733
|
+
var SubscriptionScheduleStatus;
|
|
734
|
+
(function (SubscriptionScheduleStatus) {
|
|
735
|
+
SubscriptionScheduleStatus["Canceled"] = "Canceled";
|
|
736
|
+
SubscriptionScheduleStatus["Done"] = "Done";
|
|
737
|
+
SubscriptionScheduleStatus["Failed"] = "Failed";
|
|
738
|
+
SubscriptionScheduleStatus["Scheduled"] = "Scheduled";
|
|
739
|
+
})(SubscriptionScheduleStatus = exports.SubscriptionScheduleStatus || (exports.SubscriptionScheduleStatus = {}));
|
|
740
|
+
/** Subscription scheduled schedule type */
|
|
741
|
+
var SubscriptionScheduleType;
|
|
742
|
+
(function (SubscriptionScheduleType) {
|
|
743
|
+
SubscriptionScheduleType["BillingPeriod"] = "BillingPeriod";
|
|
744
|
+
SubscriptionScheduleType["Downgrade"] = "Downgrade";
|
|
745
|
+
SubscriptionScheduleType["UnitAmount"] = "UnitAmount";
|
|
746
|
+
})(SubscriptionScheduleType = exports.SubscriptionScheduleType || (exports.SubscriptionScheduleType = {}));
|
|
747
|
+
var SubscriptionStartSetup;
|
|
748
|
+
(function (SubscriptionStartSetup) {
|
|
749
|
+
SubscriptionStartSetup["FreePlan"] = "FREE_PLAN";
|
|
750
|
+
SubscriptionStartSetup["PlanSelection"] = "PLAN_SELECTION";
|
|
751
|
+
SubscriptionStartSetup["TrialPeriod"] = "TRIAL_PERIOD";
|
|
752
|
+
})(SubscriptionStartSetup = exports.SubscriptionStartSetup || (exports.SubscriptionStartSetup = {}));
|
|
753
|
+
/** Subscription status */
|
|
754
|
+
var SubscriptionStatus;
|
|
755
|
+
(function (SubscriptionStatus) {
|
|
756
|
+
SubscriptionStatus["Active"] = "ACTIVE";
|
|
757
|
+
SubscriptionStatus["Canceled"] = "CANCELED";
|
|
758
|
+
SubscriptionStatus["Expired"] = "EXPIRED";
|
|
759
|
+
SubscriptionStatus["InTrial"] = "IN_TRIAL";
|
|
760
|
+
SubscriptionStatus["NotStarted"] = "NOT_STARTED";
|
|
761
|
+
SubscriptionStatus["PaymentPending"] = "PAYMENT_PENDING";
|
|
762
|
+
})(SubscriptionStatus = exports.SubscriptionStatus || (exports.SubscriptionStatus = {}));
|
|
763
|
+
/** Status of the integration sync */
|
|
764
|
+
var SyncStatus;
|
|
765
|
+
(function (SyncStatus) {
|
|
766
|
+
SyncStatus["Error"] = "ERROR";
|
|
767
|
+
SyncStatus["NoSyncRequired"] = "NO_SYNC_REQUIRED";
|
|
768
|
+
SyncStatus["Pending"] = "PENDING";
|
|
769
|
+
SyncStatus["Success"] = "SUCCESS";
|
|
770
|
+
})(SyncStatus = exports.SyncStatus || (exports.SyncStatus = {}));
|
|
771
|
+
var TaskStatus;
|
|
772
|
+
(function (TaskStatus) {
|
|
773
|
+
TaskStatus["Completed"] = "COMPLETED";
|
|
774
|
+
TaskStatus["Failed"] = "FAILED";
|
|
775
|
+
TaskStatus["InProgress"] = "IN_PROGRESS";
|
|
776
|
+
TaskStatus["PartiallyFailed"] = "PARTIALLY_FAILED";
|
|
777
|
+
TaskStatus["Pending"] = "PENDING";
|
|
778
|
+
})(TaskStatus = exports.TaskStatus || (exports.TaskStatus = {}));
|
|
779
|
+
var TaskType;
|
|
780
|
+
(function (TaskType) {
|
|
781
|
+
TaskType["ImportIntegrationCatalog"] = "IMPORT_INTEGRATION_CATALOG";
|
|
782
|
+
TaskType["ImportIntegrationCustomers"] = "IMPORT_INTEGRATION_CUSTOMERS";
|
|
783
|
+
TaskType["ResyncIntegration"] = "RESYNC_INTEGRATION";
|
|
784
|
+
TaskType["SubscriptionMigration"] = "SUBSCRIPTION_MIGRATION";
|
|
785
|
+
})(TaskType = exports.TaskType || (exports.TaskType = {}));
|
|
786
|
+
/** day or month. */
|
|
787
|
+
var TrialPeriodUnits;
|
|
788
|
+
(function (TrialPeriodUnits) {
|
|
789
|
+
TrialPeriodUnits["Day"] = "DAY";
|
|
790
|
+
TrialPeriodUnits["Month"] = "MONTH";
|
|
791
|
+
})(TrialPeriodUnits = exports.TrialPeriodUnits || (exports.TrialPeriodUnits = {}));
|
|
792
|
+
var UsageMeasurementSortFields;
|
|
793
|
+
(function (UsageMeasurementSortFields) {
|
|
794
|
+
UsageMeasurementSortFields["CreatedAt"] = "createdAt";
|
|
795
|
+
UsageMeasurementSortFields["EnvironmentId"] = "environmentId";
|
|
796
|
+
UsageMeasurementSortFields["Id"] = "id";
|
|
797
|
+
})(UsageMeasurementSortFields = exports.UsageMeasurementSortFields || (exports.UsageMeasurementSortFields = {}));
|
|
798
|
+
var VendorIdentifier;
|
|
799
|
+
(function (VendorIdentifier) {
|
|
800
|
+
VendorIdentifier["Hubspot"] = "HUBSPOT";
|
|
801
|
+
VendorIdentifier["Stripe"] = "STRIPE";
|
|
802
|
+
VendorIdentifier["Zuora"] = "ZUORA";
|
|
803
|
+
})(VendorIdentifier = exports.VendorIdentifier || (exports.VendorIdentifier = {}));
|
|
804
|
+
/** Weekly reset period according to configuration */
|
|
805
|
+
var WeeklyAccordingTo;
|
|
806
|
+
(function (WeeklyAccordingTo) {
|
|
807
|
+
WeeklyAccordingTo["EveryFriday"] = "EveryFriday";
|
|
808
|
+
WeeklyAccordingTo["EveryMonday"] = "EveryMonday";
|
|
809
|
+
WeeklyAccordingTo["EverySaturday"] = "EverySaturday";
|
|
810
|
+
WeeklyAccordingTo["EverySunday"] = "EverySunday";
|
|
811
|
+
WeeklyAccordingTo["EveryThursday"] = "EveryThursday";
|
|
812
|
+
WeeklyAccordingTo["EveryTuesday"] = "EveryTuesday";
|
|
813
|
+
WeeklyAccordingTo["EveryWednesday"] = "EveryWednesday";
|
|
814
|
+
WeeklyAccordingTo["SubscriptionStart"] = "SubscriptionStart";
|
|
815
|
+
})(WeeklyAccordingTo = exports.WeeklyAccordingTo || (exports.WeeklyAccordingTo = {}));
|
|
816
|
+
/** The widget type */
|
|
817
|
+
var WidgetType;
|
|
818
|
+
(function (WidgetType) {
|
|
819
|
+
WidgetType["CustomerPortal"] = "CUSTOMER_PORTAL";
|
|
820
|
+
WidgetType["Paywall"] = "PAYWALL";
|
|
821
|
+
})(WidgetType = exports.WidgetType || (exports.WidgetType = {}));
|
|
822
|
+
/** The group of the experiment */
|
|
823
|
+
var ExperimentGroupType;
|
|
824
|
+
(function (ExperimentGroupType) {
|
|
825
|
+
ExperimentGroupType["Control"] = "CONTROL";
|
|
826
|
+
ExperimentGroupType["Variant"] = "VARIANT";
|
|
827
|
+
})(ExperimentGroupType = exports.ExperimentGroupType || (exports.ExperimentGroupType = {}));
|
|
828
|
+
exports.PriceFragmentDoc = (0, graphql_tag_1.default) `
|
|
829
|
+
fragment PriceFragment on Price {
|
|
830
|
+
billingModel
|
|
831
|
+
billingPeriod
|
|
832
|
+
billingId
|
|
833
|
+
minUnitQuantity
|
|
834
|
+
maxUnitQuantity
|
|
835
|
+
billingCountryCode
|
|
836
|
+
price {
|
|
837
|
+
amount
|
|
838
|
+
currency
|
|
839
|
+
}
|
|
840
|
+
feature {
|
|
841
|
+
featureUnits
|
|
842
|
+
featureUnitsPlural
|
|
843
|
+
displayName
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
`;
|
|
847
|
+
exports.TotalPriceFragmentDoc = (0, graphql_tag_1.default) `
|
|
848
|
+
fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
|
|
849
|
+
subTotal {
|
|
850
|
+
amount
|
|
851
|
+
currency
|
|
852
|
+
}
|
|
853
|
+
total {
|
|
854
|
+
amount
|
|
855
|
+
currency
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
`;
|
|
859
|
+
exports.SlimSubscriptionFragmentDoc = (0, graphql_tag_1.default) `
|
|
860
|
+
fragment SlimSubscriptionFragment on CustomerSubscription {
|
|
861
|
+
id
|
|
862
|
+
refId
|
|
863
|
+
status
|
|
864
|
+
additionalMetaData
|
|
865
|
+
billingId
|
|
866
|
+
billingLinkUrl
|
|
867
|
+
effectiveEndDate
|
|
868
|
+
currentBillingPeriodEnd
|
|
869
|
+
pricingType
|
|
870
|
+
experimentInfo {
|
|
871
|
+
name
|
|
872
|
+
id
|
|
873
|
+
groupName
|
|
874
|
+
groupType
|
|
875
|
+
}
|
|
876
|
+
prices {
|
|
877
|
+
usageLimit
|
|
878
|
+
price {
|
|
879
|
+
...PriceFragment
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
totalPrice {
|
|
883
|
+
...TotalPriceFragment
|
|
884
|
+
}
|
|
885
|
+
plan {
|
|
886
|
+
id
|
|
887
|
+
refId
|
|
888
|
+
}
|
|
889
|
+
addons {
|
|
890
|
+
quantity
|
|
891
|
+
addon {
|
|
892
|
+
id
|
|
893
|
+
refId
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
customer {
|
|
897
|
+
id
|
|
898
|
+
refId
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
${exports.PriceFragmentDoc}
|
|
902
|
+
${exports.TotalPriceFragmentDoc}`;
|
|
903
|
+
exports.CouponFragmentDoc = (0, graphql_tag_1.default) `
|
|
904
|
+
fragment CouponFragment on Coupon {
|
|
905
|
+
id
|
|
906
|
+
discountValue
|
|
907
|
+
type
|
|
908
|
+
additionalMetaData
|
|
909
|
+
refId
|
|
910
|
+
name
|
|
911
|
+
description
|
|
912
|
+
createdAt
|
|
913
|
+
updatedAt
|
|
914
|
+
billingId
|
|
915
|
+
billingLinkUrl
|
|
916
|
+
type
|
|
917
|
+
status
|
|
918
|
+
syncStates {
|
|
919
|
+
vendorIdentifier
|
|
920
|
+
status
|
|
921
|
+
}
|
|
922
|
+
customers {
|
|
923
|
+
id
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
`;
|
|
927
|
+
exports.PromotionalEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
928
|
+
fragment PromotionalEntitlementFragment on PromotionalEntitlement {
|
|
929
|
+
status
|
|
930
|
+
usageLimit
|
|
931
|
+
featureId
|
|
932
|
+
hasUnlimitedUsage
|
|
933
|
+
resetPeriod
|
|
934
|
+
endDate
|
|
935
|
+
isVisible
|
|
936
|
+
feature {
|
|
937
|
+
featureType
|
|
938
|
+
meterType
|
|
939
|
+
featureUnits
|
|
940
|
+
featureUnitsPlural
|
|
941
|
+
displayName
|
|
942
|
+
description
|
|
943
|
+
refId
|
|
944
|
+
additionalMetaData
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
`;
|
|
948
|
+
exports.PackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
949
|
+
fragment PackageEntitlementFragment on PackageEntitlement {
|
|
950
|
+
usageLimit
|
|
951
|
+
hasUnlimitedUsage
|
|
952
|
+
featureId
|
|
953
|
+
resetPeriod
|
|
954
|
+
hiddenFromWidgets
|
|
955
|
+
isCustom
|
|
956
|
+
displayNameOverride
|
|
957
|
+
feature {
|
|
958
|
+
featureType
|
|
959
|
+
meterType
|
|
960
|
+
featureUnits
|
|
961
|
+
featureUnitsPlural
|
|
962
|
+
displayName
|
|
963
|
+
description
|
|
964
|
+
refId
|
|
965
|
+
additionalMetaData
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
`;
|
|
969
|
+
exports.AddonFragmentDoc = (0, graphql_tag_1.default) `
|
|
970
|
+
fragment AddonFragment on Addon {
|
|
971
|
+
id
|
|
972
|
+
refId
|
|
973
|
+
billingId
|
|
974
|
+
displayName
|
|
975
|
+
description
|
|
976
|
+
additionalMetaData
|
|
977
|
+
entitlements {
|
|
978
|
+
...PackageEntitlementFragment
|
|
979
|
+
}
|
|
980
|
+
prices {
|
|
981
|
+
...PriceFragment
|
|
982
|
+
}
|
|
983
|
+
pricingType
|
|
984
|
+
}
|
|
985
|
+
${exports.PackageEntitlementFragmentDoc}
|
|
986
|
+
${exports.PriceFragmentDoc}`;
|
|
987
|
+
exports.PlanFragmentDoc = (0, graphql_tag_1.default) `
|
|
988
|
+
fragment PlanFragment on Plan {
|
|
989
|
+
id
|
|
990
|
+
refId
|
|
991
|
+
displayName
|
|
992
|
+
description
|
|
993
|
+
billingId
|
|
994
|
+
additionalMetaData
|
|
995
|
+
product {
|
|
996
|
+
refId
|
|
997
|
+
displayName
|
|
998
|
+
description
|
|
999
|
+
additionalMetaData
|
|
1000
|
+
productSettings {
|
|
1001
|
+
downgradePlan {
|
|
1002
|
+
refId
|
|
1003
|
+
displayName
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
basePlan {
|
|
1008
|
+
refId
|
|
1009
|
+
displayName
|
|
1010
|
+
}
|
|
1011
|
+
entitlements {
|
|
1012
|
+
...PackageEntitlementFragment
|
|
1013
|
+
}
|
|
1014
|
+
inheritedEntitlements {
|
|
1015
|
+
...PackageEntitlementFragment
|
|
1016
|
+
}
|
|
1017
|
+
compatibleAddons {
|
|
1018
|
+
...AddonFragment
|
|
1019
|
+
}
|
|
1020
|
+
prices {
|
|
1021
|
+
...PriceFragment
|
|
1022
|
+
}
|
|
1023
|
+
pricingType
|
|
1024
|
+
defaultTrialConfig {
|
|
1025
|
+
duration
|
|
1026
|
+
units
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
${exports.PackageEntitlementFragmentDoc}
|
|
1030
|
+
${exports.AddonFragmentDoc}
|
|
1031
|
+
${exports.PriceFragmentDoc}`;
|
|
1032
|
+
exports.SubscriptionScheduledUpdateDataFragmentDoc = (0, graphql_tag_1.default) `
|
|
1033
|
+
fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
|
1034
|
+
subscriptionScheduleType
|
|
1035
|
+
scheduleStatus
|
|
1036
|
+
scheduledExecutionTime
|
|
1037
|
+
targetPackage {
|
|
1038
|
+
id
|
|
1039
|
+
refId
|
|
1040
|
+
displayName
|
|
1041
|
+
}
|
|
1042
|
+
scheduleVariables {
|
|
1043
|
+
... on DowngradeChangeVariables {
|
|
1044
|
+
addonRefIds
|
|
1045
|
+
billingPeriod
|
|
1046
|
+
downgradePlanRefId
|
|
1047
|
+
}
|
|
1048
|
+
... on BillingPeriodChangeVariables {
|
|
1049
|
+
billingPeriod
|
|
1050
|
+
}
|
|
1051
|
+
... on UnitAmountChangeVariables {
|
|
1052
|
+
newUnitAmount
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
`;
|
|
1057
|
+
exports.SubscriptionFragmentDoc = (0, graphql_tag_1.default) `
|
|
1058
|
+
fragment SubscriptionFragment on CustomerSubscription {
|
|
1059
|
+
id
|
|
1060
|
+
startDate
|
|
1061
|
+
endDate
|
|
1062
|
+
trialEndDate
|
|
1063
|
+
cancellationDate
|
|
1064
|
+
effectiveEndDate
|
|
1065
|
+
status
|
|
1066
|
+
refId
|
|
1067
|
+
currentBillingPeriodEnd
|
|
1068
|
+
additionalMetaData
|
|
1069
|
+
billingId
|
|
1070
|
+
billingLinkUrl
|
|
1071
|
+
experimentInfo {
|
|
1072
|
+
name
|
|
1073
|
+
groupType
|
|
1074
|
+
groupName
|
|
1075
|
+
id
|
|
1076
|
+
}
|
|
1077
|
+
prices {
|
|
1078
|
+
usageLimit
|
|
1079
|
+
price {
|
|
1080
|
+
...PriceFragment
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
totalPrice {
|
|
1084
|
+
...TotalPriceFragment
|
|
1085
|
+
}
|
|
1086
|
+
pricingType
|
|
1087
|
+
plan {
|
|
1088
|
+
...PlanFragment
|
|
1089
|
+
}
|
|
1090
|
+
addons {
|
|
1091
|
+
id
|
|
1092
|
+
quantity
|
|
1093
|
+
addon {
|
|
1094
|
+
...AddonFragment
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
scheduledUpdates {
|
|
1098
|
+
...SubscriptionScheduledUpdateData
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
${exports.PriceFragmentDoc}
|
|
1102
|
+
${exports.TotalPriceFragmentDoc}
|
|
1103
|
+
${exports.PlanFragmentDoc}
|
|
1104
|
+
${exports.AddonFragmentDoc}
|
|
1105
|
+
${exports.SubscriptionScheduledUpdateDataFragmentDoc}`;
|
|
1106
|
+
exports.CustomerFragmentDoc = (0, graphql_tag_1.default) `
|
|
1107
|
+
fragment CustomerFragment on Customer {
|
|
1108
|
+
id
|
|
1109
|
+
name
|
|
1110
|
+
email
|
|
1111
|
+
createdAt
|
|
1112
|
+
updatedAt
|
|
1113
|
+
hasPaymentMethod
|
|
1114
|
+
refId
|
|
1115
|
+
billingId
|
|
1116
|
+
defaultPaymentExpirationMonth
|
|
1117
|
+
defaultPaymentExpirationYear
|
|
1118
|
+
defaultPaymentMethodLast4Digits
|
|
1119
|
+
additionalMetaData
|
|
1120
|
+
trialedPlans {
|
|
1121
|
+
productId
|
|
1122
|
+
productRefId
|
|
1123
|
+
planRefId
|
|
1124
|
+
planId
|
|
1125
|
+
}
|
|
1126
|
+
experimentInfo {
|
|
1127
|
+
groupType
|
|
1128
|
+
groupName
|
|
1129
|
+
id
|
|
1130
|
+
name
|
|
1131
|
+
}
|
|
1132
|
+
coupon {
|
|
1133
|
+
...CouponFragment
|
|
1134
|
+
}
|
|
1135
|
+
eligibleForTrial {
|
|
1136
|
+
productId
|
|
1137
|
+
productRefId
|
|
1138
|
+
eligible
|
|
1139
|
+
}
|
|
1140
|
+
promotionalEntitlements {
|
|
1141
|
+
...PromotionalEntitlementFragment
|
|
1142
|
+
}
|
|
1143
|
+
subscriptions {
|
|
1144
|
+
...SubscriptionFragment
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
${exports.CouponFragmentDoc}
|
|
1148
|
+
${exports.PromotionalEntitlementFragmentDoc}
|
|
1149
|
+
${exports.SubscriptionFragmentDoc}`;
|
|
1150
|
+
exports.SubscriptionPreviewFragmentDoc = (0, graphql_tag_1.default) `
|
|
1151
|
+
fragment SubscriptionPreviewFragment on SubscriptionPreview {
|
|
1152
|
+
subTotal {
|
|
1153
|
+
amount
|
|
1154
|
+
currency
|
|
1155
|
+
}
|
|
1156
|
+
total {
|
|
1157
|
+
amount
|
|
1158
|
+
currency
|
|
1159
|
+
}
|
|
1160
|
+
billingPeriodRange {
|
|
1161
|
+
start
|
|
1162
|
+
end
|
|
1163
|
+
}
|
|
1164
|
+
discount {
|
|
1165
|
+
type
|
|
1166
|
+
value
|
|
1167
|
+
durationType
|
|
1168
|
+
durationInMonths
|
|
1169
|
+
}
|
|
1170
|
+
subscription {
|
|
1171
|
+
subTotal {
|
|
1172
|
+
amount
|
|
1173
|
+
currency
|
|
1174
|
+
}
|
|
1175
|
+
total {
|
|
1176
|
+
amount
|
|
1177
|
+
currency
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
proration {
|
|
1181
|
+
prorationDate
|
|
1182
|
+
credit {
|
|
1183
|
+
amount
|
|
1184
|
+
currency
|
|
1185
|
+
}
|
|
1186
|
+
debit {
|
|
1187
|
+
amount
|
|
1188
|
+
currency
|
|
1189
|
+
}
|
|
1190
|
+
netAmount {
|
|
1191
|
+
amount
|
|
1192
|
+
currency
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
`;
|
|
1197
|
+
exports.MonthlyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
|
|
1198
|
+
fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
|
|
1199
|
+
monthlyAccordingTo
|
|
1200
|
+
}
|
|
1201
|
+
`;
|
|
1202
|
+
exports.WeeklyResetPeriodConfigFragmentDoc = (0, graphql_tag_1.default) `
|
|
1203
|
+
fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
|
|
1204
|
+
weeklyAccordingTo
|
|
1205
|
+
}
|
|
1206
|
+
`;
|
|
1207
|
+
exports.ResetPeriodConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1208
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
1209
|
+
__typename
|
|
1210
|
+
... on MonthlyResetPeriodConfig {
|
|
1211
|
+
...MonthlyResetPeriodConfigFragment
|
|
1212
|
+
}
|
|
1213
|
+
... on WeeklyResetPeriodConfig {
|
|
1214
|
+
...WeeklyResetPeriodConfigFragment
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
${exports.MonthlyResetPeriodConfigFragmentDoc}
|
|
1218
|
+
${exports.WeeklyResetPeriodConfigFragmentDoc}`;
|
|
1219
|
+
exports.FeatureFragmentDoc = (0, graphql_tag_1.default) `
|
|
1220
|
+
fragment FeatureFragment on EntitlementFeature {
|
|
1221
|
+
featureType
|
|
1222
|
+
meterType
|
|
1223
|
+
featureUnits
|
|
1224
|
+
featureUnitsPlural
|
|
1225
|
+
description
|
|
1226
|
+
displayName
|
|
1227
|
+
refId
|
|
1228
|
+
}
|
|
1229
|
+
`;
|
|
1230
|
+
exports.EntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
1231
|
+
fragment EntitlementFragment on Entitlement {
|
|
1232
|
+
isGranted
|
|
1233
|
+
accessDeniedReason
|
|
1234
|
+
customerId
|
|
1235
|
+
usageLimit
|
|
1236
|
+
hasUnlimitedUsage
|
|
1237
|
+
currentUsage
|
|
1238
|
+
requestedUsage
|
|
1239
|
+
entitlementUpdatedAt
|
|
1240
|
+
usageUpdatedAt
|
|
1241
|
+
nextResetDate
|
|
1242
|
+
resetPeriod
|
|
1243
|
+
resetPeriodConfiguration {
|
|
1244
|
+
...ResetPeriodConfigurationFragment
|
|
1245
|
+
}
|
|
1246
|
+
feature {
|
|
1247
|
+
...FeatureFragment
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
${exports.ResetPeriodConfigurationFragmentDoc}
|
|
1251
|
+
${exports.FeatureFragmentDoc}`;
|
|
1252
|
+
exports.PaywallPackageEntitlementFragmentDoc = (0, graphql_tag_1.default) `
|
|
1253
|
+
fragment PaywallPackageEntitlementFragment on PackageEntitlement {
|
|
1254
|
+
usageLimit
|
|
1255
|
+
hasUnlimitedUsage
|
|
1256
|
+
featureId
|
|
1257
|
+
resetPeriod
|
|
1258
|
+
feature {
|
|
1259
|
+
featureType
|
|
1260
|
+
meterType
|
|
1261
|
+
featureUnits
|
|
1262
|
+
featureUnitsPlural
|
|
1263
|
+
displayName
|
|
1264
|
+
description
|
|
1265
|
+
refId
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
`;
|
|
1269
|
+
exports.PaywallAddonFragmentDoc = (0, graphql_tag_1.default) `
|
|
1270
|
+
fragment PaywallAddonFragment on Addon {
|
|
1271
|
+
id
|
|
1272
|
+
refId
|
|
1273
|
+
billingId
|
|
1274
|
+
displayName
|
|
1275
|
+
description
|
|
1276
|
+
entitlements {
|
|
1277
|
+
...PaywallPackageEntitlementFragment
|
|
1278
|
+
}
|
|
1279
|
+
prices {
|
|
1280
|
+
...PriceFragment
|
|
1281
|
+
}
|
|
1282
|
+
additionalMetaData
|
|
1283
|
+
pricingType
|
|
1284
|
+
}
|
|
1285
|
+
${exports.PaywallPackageEntitlementFragmentDoc}
|
|
1286
|
+
${exports.PriceFragmentDoc}`;
|
|
1287
|
+
exports.PaywallPlanFragmentDoc = (0, graphql_tag_1.default) `
|
|
1288
|
+
fragment PaywallPlanFragment on Plan {
|
|
1289
|
+
id
|
|
1290
|
+
refId
|
|
1291
|
+
description
|
|
1292
|
+
displayName
|
|
1293
|
+
billingId
|
|
1294
|
+
product {
|
|
1295
|
+
refId
|
|
1296
|
+
displayName
|
|
1297
|
+
description
|
|
1298
|
+
additionalMetaData
|
|
1299
|
+
productSettings {
|
|
1300
|
+
downgradePlan {
|
|
1301
|
+
refId
|
|
1302
|
+
displayName
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
basePlan {
|
|
1307
|
+
refId
|
|
1308
|
+
displayName
|
|
1309
|
+
}
|
|
1310
|
+
entitlements {
|
|
1311
|
+
...PaywallPackageEntitlementFragment
|
|
1312
|
+
}
|
|
1313
|
+
additionalMetaData
|
|
1314
|
+
inheritedEntitlements {
|
|
1315
|
+
...PaywallPackageEntitlementFragment
|
|
1316
|
+
}
|
|
1317
|
+
prices {
|
|
1318
|
+
...PriceFragment
|
|
1319
|
+
}
|
|
1320
|
+
pricingType
|
|
1321
|
+
defaultTrialConfig {
|
|
1322
|
+
duration
|
|
1323
|
+
units
|
|
1324
|
+
}
|
|
1325
|
+
compatibleAddons {
|
|
1326
|
+
...PaywallAddonFragment
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
${exports.PaywallPackageEntitlementFragmentDoc}
|
|
1330
|
+
${exports.PriceFragmentDoc}
|
|
1331
|
+
${exports.PaywallAddonFragmentDoc}`;
|
|
1332
|
+
exports.FontVariantFragmentDoc = (0, graphql_tag_1.default) `
|
|
1333
|
+
fragment FontVariantFragment on FontVariant {
|
|
1334
|
+
fontSize
|
|
1335
|
+
fontWeight
|
|
1336
|
+
}
|
|
1337
|
+
`;
|
|
1338
|
+
exports.TypographyConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1339
|
+
fragment TypographyConfigurationFragment on TypographyConfiguration {
|
|
1340
|
+
fontFamily
|
|
1341
|
+
h1 {
|
|
1342
|
+
...FontVariantFragment
|
|
1343
|
+
}
|
|
1344
|
+
h2 {
|
|
1345
|
+
...FontVariantFragment
|
|
1346
|
+
}
|
|
1347
|
+
h3 {
|
|
1348
|
+
...FontVariantFragment
|
|
1349
|
+
}
|
|
1350
|
+
body {
|
|
1351
|
+
...FontVariantFragment
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
${exports.FontVariantFragmentDoc}`;
|
|
1355
|
+
exports.LayoutConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1356
|
+
fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {
|
|
1357
|
+
alignment
|
|
1358
|
+
planWidth
|
|
1359
|
+
planMargin
|
|
1360
|
+
planPadding
|
|
1361
|
+
}
|
|
1362
|
+
`;
|
|
1363
|
+
exports.PaywallConfigurationFragmentDoc = (0, graphql_tag_1.default) `
|
|
1364
|
+
fragment PaywallConfigurationFragment on PaywallConfiguration {
|
|
1365
|
+
palette {
|
|
1366
|
+
primary
|
|
1367
|
+
textColor
|
|
1368
|
+
backgroundColor
|
|
1369
|
+
borderColor
|
|
1370
|
+
currentPlanBackground
|
|
1371
|
+
}
|
|
1372
|
+
typography {
|
|
1373
|
+
...TypographyConfigurationFragment
|
|
1374
|
+
}
|
|
1375
|
+
layout {
|
|
1376
|
+
...LayoutConfigurationFragment
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
${exports.TypographyConfigurationFragmentDoc}
|
|
1380
|
+
${exports.LayoutConfigurationFragmentDoc}`;
|
|
1381
|
+
exports.ProvisionCustomerDocument = (0, graphql_tag_1.default) `
|
|
1382
|
+
mutation provisionCustomer($input: ProvisionCustomerInput!) {
|
|
1383
|
+
provisionCustomer(input: $input) {
|
|
1384
|
+
customer {
|
|
1385
|
+
...CustomerFragment
|
|
1386
|
+
}
|
|
1387
|
+
subscriptionDecisionStrategy
|
|
1388
|
+
subscription {
|
|
1389
|
+
...SlimSubscriptionFragment
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
${exports.CustomerFragmentDoc}
|
|
1394
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1395
|
+
exports.ImportCustomerDocument = (0, graphql_tag_1.default) `
|
|
1396
|
+
mutation importCustomer($input: ImportCustomerInput!) {
|
|
1397
|
+
importCustomer: importOneCustomer(input: $input) {
|
|
1398
|
+
...CustomerFragment
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
${exports.CustomerFragmentDoc}`;
|
|
1402
|
+
exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
|
|
1403
|
+
mutation updateCustomer($input: UpdateCustomerInput!) {
|
|
1404
|
+
updateCustomer: updateOneCustomer(input: $input) {
|
|
1405
|
+
...CustomerFragment
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
${exports.CustomerFragmentDoc}`;
|
|
1409
|
+
exports.ProvisionSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1410
|
+
mutation provisionSubscription($input: ProvisionSubscriptionInput!) {
|
|
1411
|
+
provisionSubscriptionV2(input: $input) {
|
|
1412
|
+
checkoutUrl
|
|
1413
|
+
status
|
|
1414
|
+
subscription {
|
|
1415
|
+
...SlimSubscriptionFragment
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1420
|
+
exports.UpdateSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1421
|
+
mutation updateSubscription($input: UpdateSubscriptionInput!) {
|
|
1422
|
+
updateSubscription: updateOneSubscription(input: $input) {
|
|
1423
|
+
...SlimSubscriptionFragment
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1427
|
+
exports.CancelSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1428
|
+
mutation cancelSubscription($input: SubscriptionCancellationInput!) {
|
|
1429
|
+
cancelSubscription(input: $input) {
|
|
1430
|
+
...SlimSubscriptionFragment
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
${exports.SlimSubscriptionFragmentDoc}`;
|
|
1434
|
+
exports.InitiateCheckoutDocument = (0, graphql_tag_1.default) `
|
|
1435
|
+
mutation initiateCheckout($input: InitiateCheckoutInput!) {
|
|
1436
|
+
initiateCheckout(input: $input) {
|
|
1437
|
+
checkoutUrl
|
|
1438
|
+
checkoutBillingId
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
`;
|
|
1442
|
+
exports.EstimateSubscriptionDocument = (0, graphql_tag_1.default) `
|
|
1443
|
+
mutation estimateSubscription($input: EstimateSubscriptionInput!) {
|
|
1444
|
+
estimateSubscription(input: $input) {
|
|
1445
|
+
...SubscriptionPreviewFragment
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
${exports.SubscriptionPreviewFragmentDoc}`;
|
|
1449
|
+
exports.EstimateSubscriptionUpdateDocument = (0, graphql_tag_1.default) `
|
|
1450
|
+
mutation estimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {
|
|
1451
|
+
estimateSubscriptionUpdate(input: $input) {
|
|
1452
|
+
...SubscriptionPreviewFragment
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
${exports.SubscriptionPreviewFragmentDoc}`;
|
|
1456
|
+
exports.ReportUsageDocument = (0, graphql_tag_1.default) `
|
|
1457
|
+
mutation reportUsage($input: UsageMeasurementCreateInput!) {
|
|
1458
|
+
createUsageMeasurement(usageMeasurement: $input) {
|
|
1459
|
+
id
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
`;
|
|
1463
|
+
exports.GetCustomerByIdDocument = (0, graphql_tag_1.default) `
|
|
1464
|
+
query getCustomerById($input: GetCustomerByRefIdInput!) {
|
|
1465
|
+
getCustomerByRefId(input: $input) {
|
|
1466
|
+
...CustomerFragment
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
${exports.CustomerFragmentDoc}`;
|
|
1470
|
+
exports.GetCouponsDocument = (0, graphql_tag_1.default) `
|
|
1471
|
+
query getCoupons {
|
|
1472
|
+
coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 50}) {
|
|
1473
|
+
edges {
|
|
1474
|
+
node {
|
|
1475
|
+
...CouponFragment
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
${exports.CouponFragmentDoc}`;
|
|
1481
|
+
exports.GetPaywallDocument = (0, graphql_tag_1.default) `
|
|
1482
|
+
query getPaywall($input: GetPaywallInput!) {
|
|
1483
|
+
paywall(input: $input) {
|
|
1484
|
+
plans {
|
|
1485
|
+
...PlanFragment
|
|
1486
|
+
}
|
|
1487
|
+
configuration {
|
|
1488
|
+
...PaywallConfigurationFragment
|
|
1489
|
+
}
|
|
1490
|
+
customer {
|
|
1491
|
+
...CustomerFragment
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
${exports.PlanFragmentDoc}
|
|
1496
|
+
${exports.PaywallConfigurationFragmentDoc}
|
|
1497
|
+
${exports.CustomerFragmentDoc}`;
|
|
1498
|
+
exports.GetEntitlementsDocument = (0, graphql_tag_1.default) `
|
|
1499
|
+
query getEntitlements($query: FetchEntitlementsQuery!) {
|
|
1500
|
+
entitlements: cachedEntitlements(query: $query) {
|
|
1501
|
+
...EntitlementFragment
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
${exports.EntitlementFragmentDoc}`;
|
|
1505
|
+
exports.GetEntitlementDocument = (0, graphql_tag_1.default) `
|
|
1506
|
+
query getEntitlement($query: FetchEntitlementQuery!) {
|
|
1507
|
+
entitlement(query: $query) {
|
|
1508
|
+
...EntitlementFragment
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
${exports.EntitlementFragmentDoc}`;
|
|
1512
|
+
const defaultWrapper = (action, _operationName, _operationType) => action();
|
|
1513
|
+
function getSdk(client, withWrapper = defaultWrapper) {
|
|
1514
|
+
return {
|
|
1515
|
+
provisionCustomer(variables, requestHeaders) {
|
|
1516
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.ProvisionCustomerDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'provisionCustomer', 'mutation');
|
|
1517
|
+
},
|
|
1518
|
+
importCustomer(variables, requestHeaders) {
|
|
1519
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.ImportCustomerDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'importCustomer', 'mutation');
|
|
1520
|
+
},
|
|
1521
|
+
updateCustomer(variables, requestHeaders) {
|
|
1522
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.UpdateCustomerDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateCustomer', 'mutation');
|
|
1523
|
+
},
|
|
1524
|
+
provisionSubscription(variables, requestHeaders) {
|
|
1525
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.ProvisionSubscriptionDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'provisionSubscription', 'mutation');
|
|
1526
|
+
},
|
|
1527
|
+
updateSubscription(variables, requestHeaders) {
|
|
1528
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.UpdateSubscriptionDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateSubscription', 'mutation');
|
|
1529
|
+
},
|
|
1530
|
+
cancelSubscription(variables, requestHeaders) {
|
|
1531
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.CancelSubscriptionDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'cancelSubscription', 'mutation');
|
|
1532
|
+
},
|
|
1533
|
+
initiateCheckout(variables, requestHeaders) {
|
|
1534
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.InitiateCheckoutDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'initiateCheckout', 'mutation');
|
|
1535
|
+
},
|
|
1536
|
+
estimateSubscription(variables, requestHeaders) {
|
|
1537
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.EstimateSubscriptionDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'estimateSubscription', 'mutation');
|
|
1538
|
+
},
|
|
1539
|
+
estimateSubscriptionUpdate(variables, requestHeaders) {
|
|
1540
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.EstimateSubscriptionUpdateDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'estimateSubscriptionUpdate', 'mutation');
|
|
1541
|
+
},
|
|
1542
|
+
reportUsage(variables, requestHeaders) {
|
|
1543
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.ReportUsageDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'reportUsage', 'mutation');
|
|
1544
|
+
},
|
|
1545
|
+
getCustomerById(variables, requestHeaders) {
|
|
1546
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetCustomerByIdDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCustomerById', 'query');
|
|
1547
|
+
},
|
|
1548
|
+
getCoupons(variables, requestHeaders) {
|
|
1549
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetCouponsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCoupons', 'query');
|
|
1550
|
+
},
|
|
1551
|
+
getPaywall(variables, requestHeaders) {
|
|
1552
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetPaywallDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getPaywall', 'query');
|
|
1553
|
+
},
|
|
1554
|
+
getEntitlements(variables, requestHeaders) {
|
|
1555
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetEntitlementsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEntitlements', 'query');
|
|
1556
|
+
},
|
|
1557
|
+
getEntitlement(variables, requestHeaders) {
|
|
1558
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetEntitlementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEntitlement', 'query');
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
exports.getSdk = getSdk;
|
|
1563
|
+
//# sourceMappingURL=sdk.js.map
|