@wix/auto_sdk_app-management_app-instances 1.0.15 → 1.0.16
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/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts +25 -13
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +25 -13
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts +25 -13
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +25 -13
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts +25 -13
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +25 -13
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts +25 -13
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +25 -13
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -61,7 +61,7 @@ export interface BillingInfo {
|
|
|
61
61
|
* This is primarily for usage credits (for example, 5 SMS) but may occasionally apply
|
|
62
62
|
* to a one-time setup for the app.
|
|
63
63
|
*/
|
|
64
|
-
billingCycle?:
|
|
64
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Date and time the Wix user purchased the app's paid plan or began their free trial. In
|
|
67
67
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
@@ -102,12 +102,14 @@ export declare enum PaymentCycle {
|
|
|
102
102
|
FOUR_YEARS = "FOUR_YEARS",
|
|
103
103
|
FIVE_YEARS = "FIVE_YEARS"
|
|
104
104
|
}
|
|
105
|
+
/** @enumType */
|
|
106
|
+
export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
105
107
|
export interface FreeTrialInfo {
|
|
106
108
|
/**
|
|
107
109
|
* Current free trial status.
|
|
108
110
|
* @readonly
|
|
109
111
|
*/
|
|
110
|
-
status?:
|
|
112
|
+
status?: FreeTrialStatusWithLiterals;
|
|
111
113
|
/**
|
|
112
114
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
113
115
|
* @readonly
|
|
@@ -124,6 +126,8 @@ export declare enum FreeTrialStatus {
|
|
|
124
126
|
/** No free trial was applied, as none was available. */
|
|
125
127
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
126
128
|
}
|
|
129
|
+
/** @enumType */
|
|
130
|
+
export type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
127
131
|
export interface AvailablePlan {
|
|
128
132
|
/** Package name of the available plan. */
|
|
129
133
|
packageName?: string;
|
|
@@ -158,7 +162,7 @@ export interface PaidPlanPurchased {
|
|
|
158
162
|
*/
|
|
159
163
|
vendorProductId?: string;
|
|
160
164
|
/** Selected payment cycle. */
|
|
161
|
-
cycle?:
|
|
165
|
+
cycle?: PaymentCycleWithLiterals;
|
|
162
166
|
/** Plan expiration date. */
|
|
163
167
|
expiresOn?: Date | null;
|
|
164
168
|
/**
|
|
@@ -181,14 +185,14 @@ export interface PaidPlanChanged {
|
|
|
181
185
|
*/
|
|
182
186
|
vendorProductId?: string;
|
|
183
187
|
/** Newly selected payment cycle. */
|
|
184
|
-
cycle?:
|
|
188
|
+
cycle?: PaymentCycleWithLiterals;
|
|
185
189
|
/**
|
|
186
190
|
* Previous app plan.
|
|
187
191
|
* @maxLength 100
|
|
188
192
|
*/
|
|
189
193
|
previousVendorProductId?: string | null;
|
|
190
194
|
/** Previous payment cycle. */
|
|
191
|
-
previousCycle?:
|
|
195
|
+
previousCycle?: PaymentCycleWithLiterals;
|
|
192
196
|
/**
|
|
193
197
|
* Coupon applied to purchase (if relevant).
|
|
194
198
|
* @maxLength 150
|
|
@@ -209,7 +213,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
209
213
|
*/
|
|
210
214
|
vendorProductId?: string;
|
|
211
215
|
/** Current payment cycle. */
|
|
212
|
-
cycle?:
|
|
216
|
+
cycle?: PaymentCycleWithLiterals;
|
|
213
217
|
/**
|
|
214
218
|
* Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).
|
|
215
219
|
* @maxLength 100
|
|
@@ -226,7 +230,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
226
230
|
*/
|
|
227
231
|
subscriptionCancellationType?: string | null;
|
|
228
232
|
/** Whether the cancellation occurred during a free trial. */
|
|
229
|
-
cancelledDuringFreeTrial?:
|
|
233
|
+
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
230
234
|
}
|
|
231
235
|
export declare enum FreeTrialPeriod {
|
|
232
236
|
/** Free trial status unknown. */
|
|
@@ -236,6 +240,8 @@ export declare enum FreeTrialPeriod {
|
|
|
236
240
|
/** Not during a free trial period. */
|
|
237
241
|
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
238
242
|
}
|
|
243
|
+
/** @enumType */
|
|
244
|
+
export type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
239
245
|
export interface PlanTransferred {
|
|
240
246
|
/** Date and time of transfer. */
|
|
241
247
|
operationTimeStamp?: Date | null;
|
|
@@ -245,7 +251,7 @@ export interface PlanTransferred {
|
|
|
245
251
|
*/
|
|
246
252
|
vendorProductId?: string;
|
|
247
253
|
/** Selected payment cycle. */
|
|
248
|
-
cycle?:
|
|
254
|
+
cycle?: PaymentCycleWithLiterals;
|
|
249
255
|
/**
|
|
250
256
|
* Invoice ID.
|
|
251
257
|
* @maxLength 50
|
|
@@ -261,7 +267,7 @@ export interface PlanReactivated {
|
|
|
261
267
|
*/
|
|
262
268
|
vendorProductId?: string;
|
|
263
269
|
/** Selected payment cycle. */
|
|
264
|
-
cycle?:
|
|
270
|
+
cycle?: PaymentCycleWithLiterals;
|
|
265
271
|
/** Plan expiration date. */
|
|
266
272
|
expiresOn?: Date | null;
|
|
267
273
|
/**
|
|
@@ -270,7 +276,7 @@ export interface PlanReactivated {
|
|
|
270
276
|
*/
|
|
271
277
|
invoiceId?: string | null;
|
|
272
278
|
/** Reason for reactivation. */
|
|
273
|
-
reason?:
|
|
279
|
+
reason?: ReactivationReasonWithLiterals;
|
|
274
280
|
}
|
|
275
281
|
export declare enum ReactivationReason {
|
|
276
282
|
/** Reactivation reason unknown. */
|
|
@@ -278,6 +284,8 @@ export declare enum ReactivationReason {
|
|
|
278
284
|
/** The subscription's auto-renewal is turned on. */
|
|
279
285
|
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
280
286
|
}
|
|
287
|
+
/** @enumType */
|
|
288
|
+
export type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
281
289
|
export interface PlanConvertedToPaid {
|
|
282
290
|
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
283
291
|
operationTimeStamp?: Date | null;
|
|
@@ -287,7 +295,7 @@ export interface PlanConvertedToPaid {
|
|
|
287
295
|
*/
|
|
288
296
|
vendorProductId?: string;
|
|
289
297
|
/** Selected payment cycle. */
|
|
290
|
-
cycle?:
|
|
298
|
+
cycle?: PaymentCycleWithLiterals;
|
|
291
299
|
/** Plan expiration date. */
|
|
292
300
|
expiresOn?: Date | null;
|
|
293
301
|
}
|
|
@@ -350,7 +358,7 @@ export interface SupportedLanguage {
|
|
|
350
358
|
/** Language icon. */
|
|
351
359
|
countryCode?: string;
|
|
352
360
|
/** How the language will be resolved. For internal use. */
|
|
353
|
-
resolutionMethod?:
|
|
361
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
354
362
|
}
|
|
355
363
|
export interface Locale {
|
|
356
364
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
@@ -363,6 +371,8 @@ export declare enum ResolutionMethod {
|
|
|
363
371
|
SUBDOMAIN = "SUBDOMAIN",
|
|
364
372
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
365
373
|
}
|
|
374
|
+
/** @enumType */
|
|
375
|
+
export type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
366
376
|
export interface OwnerInfo {
|
|
367
377
|
/**
|
|
368
378
|
* Wix user's email address. Identical to the their login email.
|
|
@@ -423,7 +433,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
423
433
|
*/
|
|
424
434
|
appId?: string;
|
|
425
435
|
/** @readonly */
|
|
426
|
-
identityType?:
|
|
436
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
427
437
|
}
|
|
428
438
|
/** @oneof */
|
|
429
439
|
export interface IdentificationDataIdOneOf {
|
|
@@ -455,3 +465,5 @@ export declare enum WebhookIdentityType {
|
|
|
455
465
|
WIX_USER = "WIX_USER",
|
|
456
466
|
APP = "APP"
|
|
457
467
|
}
|
|
468
|
+
/** @enumType */
|
|
469
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.types.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts"],"names":[],"mappings":";;;AAgGA,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.types.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts"],"names":[],"mappings":";;;AAgGA,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAwHD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AA+CD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AA8FD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAmGD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -62,7 +62,7 @@ export interface BillingInfo {
|
|
|
62
62
|
* This is primarily for usage credits (for example, 5 SMS) but may occasionally apply
|
|
63
63
|
* to a one-time setup for the app.
|
|
64
64
|
*/
|
|
65
|
-
billingCycle?:
|
|
65
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
66
66
|
/**
|
|
67
67
|
* Date and time the Wix user purchased the app's paid plan or began their free trial. In
|
|
68
68
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
@@ -103,12 +103,14 @@ export declare enum PaymentCycle {
|
|
|
103
103
|
FOUR_YEARS = "FOUR_YEARS",
|
|
104
104
|
FIVE_YEARS = "FIVE_YEARS"
|
|
105
105
|
}
|
|
106
|
+
/** @enumType */
|
|
107
|
+
export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
106
108
|
export interface FreeTrialInfo {
|
|
107
109
|
/**
|
|
108
110
|
* Current free trial status.
|
|
109
111
|
* @readonly
|
|
110
112
|
*/
|
|
111
|
-
status?:
|
|
113
|
+
status?: FreeTrialStatusWithLiterals;
|
|
112
114
|
/**
|
|
113
115
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
114
116
|
* @readonly
|
|
@@ -125,6 +127,8 @@ export declare enum FreeTrialStatus {
|
|
|
125
127
|
/** No free trial was applied, as none was available. */
|
|
126
128
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
127
129
|
}
|
|
130
|
+
/** @enumType */
|
|
131
|
+
export type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
128
132
|
export interface AvailablePlan {
|
|
129
133
|
/** Package name of the available plan. */
|
|
130
134
|
packageName?: string;
|
|
@@ -159,7 +163,7 @@ export interface PaidPlanPurchased {
|
|
|
159
163
|
*/
|
|
160
164
|
vendorProductId?: string;
|
|
161
165
|
/** Selected payment cycle. */
|
|
162
|
-
cycle?:
|
|
166
|
+
cycle?: PaymentCycleWithLiterals;
|
|
163
167
|
/** Plan expiration date. */
|
|
164
168
|
expiresOn?: Date | null;
|
|
165
169
|
/**
|
|
@@ -182,14 +186,14 @@ export interface PaidPlanChanged {
|
|
|
182
186
|
*/
|
|
183
187
|
vendorProductId?: string;
|
|
184
188
|
/** Newly selected payment cycle. */
|
|
185
|
-
cycle?:
|
|
189
|
+
cycle?: PaymentCycleWithLiterals;
|
|
186
190
|
/**
|
|
187
191
|
* Previous app plan.
|
|
188
192
|
* @maxLength 100
|
|
189
193
|
*/
|
|
190
194
|
previousVendorProductId?: string | null;
|
|
191
195
|
/** Previous payment cycle. */
|
|
192
|
-
previousCycle?:
|
|
196
|
+
previousCycle?: PaymentCycleWithLiterals;
|
|
193
197
|
/**
|
|
194
198
|
* Coupon applied to purchase (if relevant).
|
|
195
199
|
* @maxLength 150
|
|
@@ -210,7 +214,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
210
214
|
*/
|
|
211
215
|
vendorProductId?: string;
|
|
212
216
|
/** Current payment cycle. */
|
|
213
|
-
cycle?:
|
|
217
|
+
cycle?: PaymentCycleWithLiterals;
|
|
214
218
|
/**
|
|
215
219
|
* Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).
|
|
216
220
|
* @maxLength 100
|
|
@@ -227,7 +231,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
227
231
|
*/
|
|
228
232
|
subscriptionCancellationType?: string | null;
|
|
229
233
|
/** Whether the cancellation occurred during a free trial. */
|
|
230
|
-
cancelledDuringFreeTrial?:
|
|
234
|
+
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
231
235
|
}
|
|
232
236
|
export declare enum FreeTrialPeriod {
|
|
233
237
|
/** Free trial status unknown. */
|
|
@@ -237,6 +241,8 @@ export declare enum FreeTrialPeriod {
|
|
|
237
241
|
/** Not during a free trial period. */
|
|
238
242
|
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
239
243
|
}
|
|
244
|
+
/** @enumType */
|
|
245
|
+
export type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
240
246
|
export interface PlanTransferred {
|
|
241
247
|
/** Date and time of transfer. */
|
|
242
248
|
operationTimeStamp?: Date | null;
|
|
@@ -246,7 +252,7 @@ export interface PlanTransferred {
|
|
|
246
252
|
*/
|
|
247
253
|
vendorProductId?: string;
|
|
248
254
|
/** Selected payment cycle. */
|
|
249
|
-
cycle?:
|
|
255
|
+
cycle?: PaymentCycleWithLiterals;
|
|
250
256
|
/**
|
|
251
257
|
* Invoice ID.
|
|
252
258
|
* @maxLength 50
|
|
@@ -262,7 +268,7 @@ export interface PlanReactivated {
|
|
|
262
268
|
*/
|
|
263
269
|
vendorProductId?: string;
|
|
264
270
|
/** Selected payment cycle. */
|
|
265
|
-
cycle?:
|
|
271
|
+
cycle?: PaymentCycleWithLiterals;
|
|
266
272
|
/** Plan expiration date. */
|
|
267
273
|
expiresOn?: Date | null;
|
|
268
274
|
/**
|
|
@@ -271,7 +277,7 @@ export interface PlanReactivated {
|
|
|
271
277
|
*/
|
|
272
278
|
invoiceId?: string | null;
|
|
273
279
|
/** Reason for reactivation. */
|
|
274
|
-
reason?:
|
|
280
|
+
reason?: ReactivationReasonWithLiterals;
|
|
275
281
|
}
|
|
276
282
|
export declare enum ReactivationReason {
|
|
277
283
|
/** Reactivation reason unknown. */
|
|
@@ -279,6 +285,8 @@ export declare enum ReactivationReason {
|
|
|
279
285
|
/** The subscription's auto-renewal is turned on. */
|
|
280
286
|
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
281
287
|
}
|
|
288
|
+
/** @enumType */
|
|
289
|
+
export type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
282
290
|
export interface PlanConvertedToPaid {
|
|
283
291
|
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
284
292
|
operationTimeStamp?: Date | null;
|
|
@@ -288,7 +296,7 @@ export interface PlanConvertedToPaid {
|
|
|
288
296
|
*/
|
|
289
297
|
vendorProductId?: string;
|
|
290
298
|
/** Selected payment cycle. */
|
|
291
|
-
cycle?:
|
|
299
|
+
cycle?: PaymentCycleWithLiterals;
|
|
292
300
|
/** Plan expiration date. */
|
|
293
301
|
expiresOn?: Date | null;
|
|
294
302
|
}
|
|
@@ -351,7 +359,7 @@ export interface SupportedLanguage {
|
|
|
351
359
|
/** Language icon. */
|
|
352
360
|
countryCode?: string;
|
|
353
361
|
/** How the language will be resolved. For internal use. */
|
|
354
|
-
resolutionMethod?:
|
|
362
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
355
363
|
}
|
|
356
364
|
export interface Locale {
|
|
357
365
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
@@ -364,6 +372,8 @@ export declare enum ResolutionMethod {
|
|
|
364
372
|
SUBDOMAIN = "SUBDOMAIN",
|
|
365
373
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
366
374
|
}
|
|
375
|
+
/** @enumType */
|
|
376
|
+
export type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
367
377
|
export interface OwnerInfo {
|
|
368
378
|
/**
|
|
369
379
|
* Wix user's email address. Identical to the their login email.
|
|
@@ -424,7 +434,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
424
434
|
*/
|
|
425
435
|
appId?: string;
|
|
426
436
|
/** @readonly */
|
|
427
|
-
identityType?:
|
|
437
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
428
438
|
}
|
|
429
439
|
/** @oneof */
|
|
430
440
|
export interface IdentificationDataIdOneOf {
|
|
@@ -456,6 +466,8 @@ export declare enum WebhookIdentityType {
|
|
|
456
466
|
WIX_USER = "WIX_USER",
|
|
457
467
|
APP = "APP"
|
|
458
468
|
}
|
|
469
|
+
/** @enumType */
|
|
470
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
459
471
|
export interface BaseEventMetadata {
|
|
460
472
|
/**
|
|
461
473
|
* App instance ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAwHD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AA+CD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AA8FD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAmGD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA2ND;;;;;;;;;;;;;;;;;;GAkBG;AACI,KAAK,UAAU,cAAc;IAsBlC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,8CAA8C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,wCAqDC"}
|
|
@@ -61,7 +61,7 @@ export interface BillingInfo {
|
|
|
61
61
|
* This is primarily for usage credits (for example, 5 SMS) but may occasionally apply
|
|
62
62
|
* to a one-time setup for the app.
|
|
63
63
|
*/
|
|
64
|
-
billingCycle?:
|
|
64
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
65
65
|
/**
|
|
66
66
|
* Date and time the Wix user purchased the app's paid plan or began their free trial. In
|
|
67
67
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
@@ -102,12 +102,14 @@ export declare enum PaymentCycle {
|
|
|
102
102
|
FOUR_YEARS = "FOUR_YEARS",
|
|
103
103
|
FIVE_YEARS = "FIVE_YEARS"
|
|
104
104
|
}
|
|
105
|
+
/** @enumType */
|
|
106
|
+
export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
105
107
|
export interface FreeTrialInfo {
|
|
106
108
|
/**
|
|
107
109
|
* Current free trial status.
|
|
108
110
|
* @readonly
|
|
109
111
|
*/
|
|
110
|
-
status?:
|
|
112
|
+
status?: FreeTrialStatusWithLiterals;
|
|
111
113
|
/**
|
|
112
114
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
113
115
|
* @readonly
|
|
@@ -124,6 +126,8 @@ export declare enum FreeTrialStatus {
|
|
|
124
126
|
/** No free trial was applied, as none was available. */
|
|
125
127
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
126
128
|
}
|
|
129
|
+
/** @enumType */
|
|
130
|
+
export type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
127
131
|
export interface AvailablePlan {
|
|
128
132
|
/** Package name of the available plan. */
|
|
129
133
|
packageName?: string;
|
|
@@ -158,7 +162,7 @@ export interface PaidPlanPurchased {
|
|
|
158
162
|
*/
|
|
159
163
|
vendorProductId?: string;
|
|
160
164
|
/** Selected payment cycle. */
|
|
161
|
-
cycle?:
|
|
165
|
+
cycle?: PaymentCycleWithLiterals;
|
|
162
166
|
/** Plan expiration date. */
|
|
163
167
|
expiresOn?: Date | null;
|
|
164
168
|
/**
|
|
@@ -181,14 +185,14 @@ export interface PaidPlanChanged {
|
|
|
181
185
|
*/
|
|
182
186
|
vendorProductId?: string;
|
|
183
187
|
/** Newly selected payment cycle. */
|
|
184
|
-
cycle?:
|
|
188
|
+
cycle?: PaymentCycleWithLiterals;
|
|
185
189
|
/**
|
|
186
190
|
* Previous app plan.
|
|
187
191
|
* @maxLength 100
|
|
188
192
|
*/
|
|
189
193
|
previousVendorProductId?: string | null;
|
|
190
194
|
/** Previous payment cycle. */
|
|
191
|
-
previousCycle?:
|
|
195
|
+
previousCycle?: PaymentCycleWithLiterals;
|
|
192
196
|
/**
|
|
193
197
|
* Coupon applied to purchase (if relevant).
|
|
194
198
|
* @maxLength 150
|
|
@@ -209,7 +213,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
209
213
|
*/
|
|
210
214
|
vendorProductId?: string;
|
|
211
215
|
/** Current payment cycle. */
|
|
212
|
-
cycle?:
|
|
216
|
+
cycle?: PaymentCycleWithLiterals;
|
|
213
217
|
/**
|
|
214
218
|
* Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).
|
|
215
219
|
* @maxLength 100
|
|
@@ -226,7 +230,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
226
230
|
*/
|
|
227
231
|
subscriptionCancellationType?: string | null;
|
|
228
232
|
/** Whether the cancellation occurred during a free trial. */
|
|
229
|
-
cancelledDuringFreeTrial?:
|
|
233
|
+
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
230
234
|
}
|
|
231
235
|
export declare enum FreeTrialPeriod {
|
|
232
236
|
/** Free trial status unknown. */
|
|
@@ -236,6 +240,8 @@ export declare enum FreeTrialPeriod {
|
|
|
236
240
|
/** Not during a free trial period. */
|
|
237
241
|
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
238
242
|
}
|
|
243
|
+
/** @enumType */
|
|
244
|
+
export type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
239
245
|
export interface PlanTransferred {
|
|
240
246
|
/** Date and time of transfer. */
|
|
241
247
|
operationTimeStamp?: Date | null;
|
|
@@ -245,7 +251,7 @@ export interface PlanTransferred {
|
|
|
245
251
|
*/
|
|
246
252
|
vendorProductId?: string;
|
|
247
253
|
/** Selected payment cycle. */
|
|
248
|
-
cycle?:
|
|
254
|
+
cycle?: PaymentCycleWithLiterals;
|
|
249
255
|
/**
|
|
250
256
|
* Invoice ID.
|
|
251
257
|
* @maxLength 50
|
|
@@ -261,7 +267,7 @@ export interface PlanReactivated {
|
|
|
261
267
|
*/
|
|
262
268
|
vendorProductId?: string;
|
|
263
269
|
/** Selected payment cycle. */
|
|
264
|
-
cycle?:
|
|
270
|
+
cycle?: PaymentCycleWithLiterals;
|
|
265
271
|
/** Plan expiration date. */
|
|
266
272
|
expiresOn?: Date | null;
|
|
267
273
|
/**
|
|
@@ -270,7 +276,7 @@ export interface PlanReactivated {
|
|
|
270
276
|
*/
|
|
271
277
|
invoiceId?: string | null;
|
|
272
278
|
/** Reason for reactivation. */
|
|
273
|
-
reason?:
|
|
279
|
+
reason?: ReactivationReasonWithLiterals;
|
|
274
280
|
}
|
|
275
281
|
export declare enum ReactivationReason {
|
|
276
282
|
/** Reactivation reason unknown. */
|
|
@@ -278,6 +284,8 @@ export declare enum ReactivationReason {
|
|
|
278
284
|
/** The subscription's auto-renewal is turned on. */
|
|
279
285
|
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
280
286
|
}
|
|
287
|
+
/** @enumType */
|
|
288
|
+
export type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
281
289
|
export interface PlanConvertedToPaid {
|
|
282
290
|
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
283
291
|
operationTimeStamp?: Date | null;
|
|
@@ -287,7 +295,7 @@ export interface PlanConvertedToPaid {
|
|
|
287
295
|
*/
|
|
288
296
|
vendorProductId?: string;
|
|
289
297
|
/** Selected payment cycle. */
|
|
290
|
-
cycle?:
|
|
298
|
+
cycle?: PaymentCycleWithLiterals;
|
|
291
299
|
/** Plan expiration date. */
|
|
292
300
|
expiresOn?: Date | null;
|
|
293
301
|
}
|
|
@@ -350,7 +358,7 @@ export interface SupportedLanguage {
|
|
|
350
358
|
/** Language icon. */
|
|
351
359
|
countryCode?: string;
|
|
352
360
|
/** How the language will be resolved. For internal use. */
|
|
353
|
-
resolutionMethod?:
|
|
361
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
354
362
|
}
|
|
355
363
|
export interface Locale {
|
|
356
364
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
@@ -363,6 +371,8 @@ export declare enum ResolutionMethod {
|
|
|
363
371
|
SUBDOMAIN = "SUBDOMAIN",
|
|
364
372
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
365
373
|
}
|
|
374
|
+
/** @enumType */
|
|
375
|
+
export type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
366
376
|
export interface OwnerInfo {
|
|
367
377
|
/**
|
|
368
378
|
* Wix user's email address. Identical to the their login email.
|
|
@@ -423,7 +433,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
423
433
|
*/
|
|
424
434
|
appId?: string;
|
|
425
435
|
/** @readonly */
|
|
426
|
-
identityType?:
|
|
436
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
427
437
|
}
|
|
428
438
|
/** @oneof */
|
|
429
439
|
export interface IdentificationDataIdOneOf {
|
|
@@ -455,3 +465,5 @@ export declare enum WebhookIdentityType {
|
|
|
455
465
|
WIX_USER = "WIX_USER",
|
|
456
466
|
APP = "APP"
|
|
457
467
|
}
|
|
468
|
+
/** @enumType */
|
|
469
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.types.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts"],"names":[],"mappings":"AAgGA,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.types.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.types.ts"],"names":[],"mappings":"AAgGA,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AA2BD,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAwHD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AA+CD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AA8FD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAmGD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -62,7 +62,7 @@ export interface BillingInfo {
|
|
|
62
62
|
* This is primarily for usage credits (for example, 5 SMS) but may occasionally apply
|
|
63
63
|
* to a one-time setup for the app.
|
|
64
64
|
*/
|
|
65
|
-
billingCycle?:
|
|
65
|
+
billingCycle?: PaymentCycleWithLiterals;
|
|
66
66
|
/**
|
|
67
67
|
* Date and time the Wix user purchased the app's paid plan or began their free trial. In
|
|
68
68
|
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
@@ -103,12 +103,14 @@ export declare enum PaymentCycle {
|
|
|
103
103
|
FOUR_YEARS = "FOUR_YEARS",
|
|
104
104
|
FIVE_YEARS = "FIVE_YEARS"
|
|
105
105
|
}
|
|
106
|
+
/** @enumType */
|
|
107
|
+
export type PaymentCycleWithLiterals = PaymentCycle | 'NO_CYCLE' | 'MONTHLY' | 'YEARLY' | 'ONE_TIME' | 'TWO_YEARS' | 'THREE_YEARS' | 'FOUR_YEARS' | 'FIVE_YEARS';
|
|
106
108
|
export interface FreeTrialInfo {
|
|
107
109
|
/**
|
|
108
110
|
* Current free trial status.
|
|
109
111
|
* @readonly
|
|
110
112
|
*/
|
|
111
|
-
status?:
|
|
113
|
+
status?: FreeTrialStatusWithLiterals;
|
|
112
114
|
/**
|
|
113
115
|
* When the free trial has ended. Populated only once the free trial is over.
|
|
114
116
|
* @readonly
|
|
@@ -125,6 +127,8 @@ export declare enum FreeTrialStatus {
|
|
|
125
127
|
/** No free trial was applied, as none was available. */
|
|
126
128
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
127
129
|
}
|
|
130
|
+
/** @enumType */
|
|
131
|
+
export type FreeTrialStatusWithLiterals = FreeTrialStatus | 'UNKNOWN_STATUS' | 'IN_PROGRESS' | 'ENDED' | 'NOT_AVAILABLE';
|
|
128
132
|
export interface AvailablePlan {
|
|
129
133
|
/** Package name of the available plan. */
|
|
130
134
|
packageName?: string;
|
|
@@ -159,7 +163,7 @@ export interface PaidPlanPurchased {
|
|
|
159
163
|
*/
|
|
160
164
|
vendorProductId?: string;
|
|
161
165
|
/** Selected payment cycle. */
|
|
162
|
-
cycle?:
|
|
166
|
+
cycle?: PaymentCycleWithLiterals;
|
|
163
167
|
/** Plan expiration date. */
|
|
164
168
|
expiresOn?: Date | null;
|
|
165
169
|
/**
|
|
@@ -182,14 +186,14 @@ export interface PaidPlanChanged {
|
|
|
182
186
|
*/
|
|
183
187
|
vendorProductId?: string;
|
|
184
188
|
/** Newly selected payment cycle. */
|
|
185
|
-
cycle?:
|
|
189
|
+
cycle?: PaymentCycleWithLiterals;
|
|
186
190
|
/**
|
|
187
191
|
* Previous app plan.
|
|
188
192
|
* @maxLength 100
|
|
189
193
|
*/
|
|
190
194
|
previousVendorProductId?: string | null;
|
|
191
195
|
/** Previous payment cycle. */
|
|
192
|
-
previousCycle?:
|
|
196
|
+
previousCycle?: PaymentCycleWithLiterals;
|
|
193
197
|
/**
|
|
194
198
|
* Coupon applied to purchase (if relevant).
|
|
195
199
|
* @maxLength 150
|
|
@@ -210,7 +214,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
210
214
|
*/
|
|
211
215
|
vendorProductId?: string;
|
|
212
216
|
/** Current payment cycle. */
|
|
213
|
-
cycle?:
|
|
217
|
+
cycle?: PaymentCycleWithLiterals;
|
|
214
218
|
/**
|
|
215
219
|
* Supported values: `UNKNOWN_CANCELLATION_TYPE_ERROR_STATE`, `USER_CANCEL`, `FAILED_PAYMENT`, `TRANSFER_CANCELLATION_REASON`. Reason provided by app for cancellation (if relevant).
|
|
216
220
|
* @maxLength 100
|
|
@@ -227,7 +231,7 @@ export interface PaidPlanAutoRenewalCancelled {
|
|
|
227
231
|
*/
|
|
228
232
|
subscriptionCancellationType?: string | null;
|
|
229
233
|
/** Whether the cancellation occurred during a free trial. */
|
|
230
|
-
cancelledDuringFreeTrial?:
|
|
234
|
+
cancelledDuringFreeTrial?: FreeTrialPeriodWithLiterals;
|
|
231
235
|
}
|
|
232
236
|
export declare enum FreeTrialPeriod {
|
|
233
237
|
/** Free trial status unknown. */
|
|
@@ -237,6 +241,8 @@ export declare enum FreeTrialPeriod {
|
|
|
237
241
|
/** Not during a free trial period. */
|
|
238
242
|
NOT_DURING_FREE_TRIAL = "NOT_DURING_FREE_TRIAL"
|
|
239
243
|
}
|
|
244
|
+
/** @enumType */
|
|
245
|
+
export type FreeTrialPeriodWithLiterals = FreeTrialPeriod | 'FREE_TRIAL_PERIOD_UNKNOWN' | 'DURING_FREE_TRIAL' | 'NOT_DURING_FREE_TRIAL';
|
|
240
246
|
export interface PlanTransferred {
|
|
241
247
|
/** Date and time of transfer. */
|
|
242
248
|
operationTimeStamp?: Date | null;
|
|
@@ -246,7 +252,7 @@ export interface PlanTransferred {
|
|
|
246
252
|
*/
|
|
247
253
|
vendorProductId?: string;
|
|
248
254
|
/** Selected payment cycle. */
|
|
249
|
-
cycle?:
|
|
255
|
+
cycle?: PaymentCycleWithLiterals;
|
|
250
256
|
/**
|
|
251
257
|
* Invoice ID.
|
|
252
258
|
* @maxLength 50
|
|
@@ -262,7 +268,7 @@ export interface PlanReactivated {
|
|
|
262
268
|
*/
|
|
263
269
|
vendorProductId?: string;
|
|
264
270
|
/** Selected payment cycle. */
|
|
265
|
-
cycle?:
|
|
271
|
+
cycle?: PaymentCycleWithLiterals;
|
|
266
272
|
/** Plan expiration date. */
|
|
267
273
|
expiresOn?: Date | null;
|
|
268
274
|
/**
|
|
@@ -271,7 +277,7 @@ export interface PlanReactivated {
|
|
|
271
277
|
*/
|
|
272
278
|
invoiceId?: string | null;
|
|
273
279
|
/** Reason for reactivation. */
|
|
274
|
-
reason?:
|
|
280
|
+
reason?: ReactivationReasonWithLiterals;
|
|
275
281
|
}
|
|
276
282
|
export declare enum ReactivationReason {
|
|
277
283
|
/** Reactivation reason unknown. */
|
|
@@ -279,6 +285,8 @@ export declare enum ReactivationReason {
|
|
|
279
285
|
/** The subscription's auto-renewal is turned on. */
|
|
280
286
|
AUTO_RENEW_TURNED_ON = "AUTO_RENEW_TURNED_ON"
|
|
281
287
|
}
|
|
288
|
+
/** @enumType */
|
|
289
|
+
export type ReactivationReasonWithLiterals = ReactivationReason | 'REACTIVATION_REASON_UNKNOWN' | 'AUTO_RENEW_TURNED_ON';
|
|
282
290
|
export interface PlanConvertedToPaid {
|
|
283
291
|
/** Date and time of conversion to paid subscription (free-trial ended). */
|
|
284
292
|
operationTimeStamp?: Date | null;
|
|
@@ -288,7 +296,7 @@ export interface PlanConvertedToPaid {
|
|
|
288
296
|
*/
|
|
289
297
|
vendorProductId?: string;
|
|
290
298
|
/** Selected payment cycle. */
|
|
291
|
-
cycle?:
|
|
299
|
+
cycle?: PaymentCycleWithLiterals;
|
|
292
300
|
/** Plan expiration date. */
|
|
293
301
|
expiresOn?: Date | null;
|
|
294
302
|
}
|
|
@@ -351,7 +359,7 @@ export interface SupportedLanguage {
|
|
|
351
359
|
/** Language icon. */
|
|
352
360
|
countryCode?: string;
|
|
353
361
|
/** How the language will be resolved. For internal use. */
|
|
354
|
-
resolutionMethod?:
|
|
362
|
+
resolutionMethod?: ResolutionMethodWithLiterals;
|
|
355
363
|
}
|
|
356
364
|
export interface Locale {
|
|
357
365
|
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
@@ -364,6 +372,8 @@ export declare enum ResolutionMethod {
|
|
|
364
372
|
SUBDOMAIN = "SUBDOMAIN",
|
|
365
373
|
SUBDIRECTORY = "SUBDIRECTORY"
|
|
366
374
|
}
|
|
375
|
+
/** @enumType */
|
|
376
|
+
export type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
|
|
367
377
|
export interface OwnerInfo {
|
|
368
378
|
/**
|
|
369
379
|
* Wix user's email address. Identical to the their login email.
|
|
@@ -424,7 +434,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
424
434
|
*/
|
|
425
435
|
appId?: string;
|
|
426
436
|
/** @readonly */
|
|
427
|
-
identityType?:
|
|
437
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
428
438
|
}
|
|
429
439
|
/** @oneof */
|
|
430
440
|
export interface IdentificationDataIdOneOf {
|
|
@@ -456,6 +466,8 @@ export declare enum WebhookIdentityType {
|
|
|
456
466
|
WIX_USER = "WIX_USER",
|
|
457
467
|
APP = "APP"
|
|
458
468
|
}
|
|
469
|
+
/** @enumType */
|
|
470
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
459
471
|
export interface BaseEventMetadata {
|
|
460
472
|
/**
|
|
461
473
|
* App instance ID.
|