@wix/app-management 1.0.47 → 1.0.49
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/es/package.json +3 -0
- package/meta/package.json +1 -5
- package/package.json +38 -21
- package/service-plugins/package.json +1 -5
- package/context/package.json +0 -7
- package/service-plugins/context/package.json +0 -7
- package/type-bundles/context.bundle.d.ts +0 -1834
- package/type-bundles/index.bundle.d.ts +0 -1834
- package/type-bundles/meta.bundle.d.ts +0 -1565
- package/type-bundles/service-plugins-context.bundle.d.ts +0 -424
- package/type-bundles/service-plugins.bundle.d.ts +0 -424
|
@@ -1,1565 +0,0 @@
|
|
|
1
|
-
interface AppPlans$1 {
|
|
2
|
-
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
-
id?: string;
|
|
4
|
-
/**
|
|
5
|
-
* List of the app's pricing plans.
|
|
6
|
-
*
|
|
7
|
-
* Min: `0` plans
|
|
8
|
-
* Max: `50` plans
|
|
9
|
-
*/
|
|
10
|
-
plans?: Plan$1[];
|
|
11
|
-
}
|
|
12
|
-
declare enum DiscountType$1 {
|
|
13
|
-
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
14
|
-
/** Discount is a fixed amount in USD. */
|
|
15
|
-
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
16
|
-
/** Discount is a percentage of the total price. */
|
|
17
|
-
PERCENTAGE = "PERCENTAGE"
|
|
18
|
-
}
|
|
19
|
-
declare enum SaleType$1 {
|
|
20
|
-
/** Default value, can be used when no specific sale is associated. */
|
|
21
|
-
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
22
|
-
CYBER_MONDAY = "CYBER_MONDAY",
|
|
23
|
-
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
24
|
-
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
25
|
-
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
26
|
-
}
|
|
27
|
-
interface Cycle$1 {
|
|
28
|
-
/**
|
|
29
|
-
* Type of the billing cycle.
|
|
30
|
-
*
|
|
31
|
-
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
32
|
-
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
33
|
-
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
34
|
-
*/
|
|
35
|
-
cycleType?: CycleType$1;
|
|
36
|
-
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
37
|
-
cycleDuration?: Duration$1;
|
|
38
|
-
}
|
|
39
|
-
declare enum DurationUnit$1 {
|
|
40
|
-
/** unknown interval unit */
|
|
41
|
-
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
42
|
-
/** month */
|
|
43
|
-
MONTH = "MONTH",
|
|
44
|
-
/** year */
|
|
45
|
-
YEAR = "YEAR"
|
|
46
|
-
}
|
|
47
|
-
declare enum CycleType$1 {
|
|
48
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
49
|
-
ONE_TIME = "ONE_TIME",
|
|
50
|
-
RECURRING = "RECURRING"
|
|
51
|
-
}
|
|
52
|
-
interface Duration$1 {
|
|
53
|
-
/** Unit of the billing cycle. */
|
|
54
|
-
unit?: DurationUnit$1;
|
|
55
|
-
/** Count of units that make up the billing cycle. */
|
|
56
|
-
count?: number;
|
|
57
|
-
}
|
|
58
|
-
interface UsageBasedDetails$1 {
|
|
59
|
-
/**
|
|
60
|
-
* Smallest possible amount that your app charges customers in usage-based
|
|
61
|
-
* pricing. For example, the price of a single SMS message if your
|
|
62
|
-
* app charges customers for sending text messages. Always in
|
|
63
|
-
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
64
|
-
*
|
|
65
|
-
* Min: `0.00`
|
|
66
|
-
* Max: 1024 characters
|
|
67
|
-
*/
|
|
68
|
-
minimumChargeIncrement?: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Recurring, monthly base fee in usaged-based pricing that your app
|
|
71
|
-
* charges customers regardless of how much they use your app.
|
|
72
|
-
*
|
|
73
|
-
* Min: `0.00`
|
|
74
|
-
* Max: 1024 characters
|
|
75
|
-
*/
|
|
76
|
-
monthlyBaseFee?: string | null;
|
|
77
|
-
/**
|
|
78
|
-
* Description of the usaged-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
79
|
-
*
|
|
80
|
-
* Max: 1024 characters
|
|
81
|
-
*/
|
|
82
|
-
customChargeDescription?: string | null;
|
|
83
|
-
}
|
|
84
|
-
interface Discount$1 {
|
|
85
|
-
type?: DiscountType$1;
|
|
86
|
-
/** Discount amount */
|
|
87
|
-
amount?: string;
|
|
88
|
-
saleId?: string | null;
|
|
89
|
-
/**
|
|
90
|
-
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
91
|
-
* average price per month. You can get thefull price by multiplying the
|
|
92
|
-
* returned price with 12.
|
|
93
|
-
* Min: `0.00`
|
|
94
|
-
* Max: 1024 characters
|
|
95
|
-
*/
|
|
96
|
-
priceBeforeTax?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Total price including taxes.
|
|
99
|
-
* Min: `0.00`
|
|
100
|
-
* Max: 1024 characters
|
|
101
|
-
*/
|
|
102
|
-
totalPrice?: string;
|
|
103
|
-
saleType?: SaleType$1;
|
|
104
|
-
}
|
|
105
|
-
declare enum BillingSource$1 {
|
|
106
|
-
UNKNOWN = "UNKNOWN",
|
|
107
|
-
/** plan billing and charges is managed by Wix */
|
|
108
|
-
WIX = "WIX",
|
|
109
|
-
/** plan billing and charges is managed by the app */
|
|
110
|
-
EXTERNAL = "EXTERNAL"
|
|
111
|
-
}
|
|
112
|
-
interface Price$1 {
|
|
113
|
-
/**
|
|
114
|
-
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
115
|
-
* average price per month. You can get thefull price by multiplying the
|
|
116
|
-
* returned price with 12.
|
|
117
|
-
*
|
|
118
|
-
* Min: `0.00`
|
|
119
|
-
* Max: 1024 characters
|
|
120
|
-
*/
|
|
121
|
-
priceBeforeTax?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Total price including taxes.
|
|
124
|
-
*
|
|
125
|
-
* Min: `0.00`
|
|
126
|
-
* Max: 1024 characters
|
|
127
|
-
*/
|
|
128
|
-
totalPrice?: string;
|
|
129
|
-
/** Information about the plan's recurring billing cycle or single payment. */
|
|
130
|
-
billingCycle?: Cycle$1;
|
|
131
|
-
/**
|
|
132
|
-
* Details about the plan's usage-based pricing.
|
|
133
|
-
* Available only for plans with
|
|
134
|
-
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
135
|
-
*/
|
|
136
|
-
usageBaseOptions?: UsageBasedDetails$1;
|
|
137
|
-
discount?: Discount$1;
|
|
138
|
-
billingSource?: BillingSource$1;
|
|
139
|
-
/** Can be shown instead of plan price - used for dynamic plans */
|
|
140
|
-
customPaymentTitle?: string | null;
|
|
141
|
-
}
|
|
142
|
-
interface Plan$1 {
|
|
143
|
-
/**
|
|
144
|
-
* ID of the app plan.
|
|
145
|
-
* @readonly
|
|
146
|
-
*/
|
|
147
|
-
id?: string;
|
|
148
|
-
/**
|
|
149
|
-
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
150
|
-
* Identical to `vendorProductId` in the
|
|
151
|
-
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
152
|
-
*/
|
|
153
|
-
vendorId?: string;
|
|
154
|
-
/** Name of your app's pricing plan, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
155
|
-
name?: string;
|
|
156
|
-
/**
|
|
157
|
-
* List of your plan's benefits, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
158
|
-
* Currently, the benefits are available only in English.
|
|
159
|
-
*
|
|
160
|
-
* Min: `0` benefits
|
|
161
|
-
* Max: `4` benefits
|
|
162
|
-
* Max per benefit: 1024 characters
|
|
163
|
-
*/
|
|
164
|
-
benefits?: string[];
|
|
165
|
-
/**
|
|
166
|
-
* List of the plan's prices. Available only when the plan's prices are managed
|
|
167
|
-
* by Wix and not externally.
|
|
168
|
-
*
|
|
169
|
-
* Min: `0` prices
|
|
170
|
-
* Max: `10` prices
|
|
171
|
-
*/
|
|
172
|
-
prices?: Price$1[];
|
|
173
|
-
}
|
|
174
|
-
interface ListAppPlansByAppIdRequest$1 {
|
|
175
|
-
/**
|
|
176
|
-
* List of app IDs to retrieve plans for.
|
|
177
|
-
*
|
|
178
|
-
* Min: 1 app ID
|
|
179
|
-
* Max: 100 app IDs
|
|
180
|
-
*/
|
|
181
|
-
appIds: string[];
|
|
182
|
-
}
|
|
183
|
-
interface ListAppPlansByAppIdResponse$1 {
|
|
184
|
-
/**
|
|
185
|
-
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
186
|
-
* you pass in the call's header. If you don't pass a country code in the header,
|
|
187
|
-
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
188
|
-
* tax settings may not resolve properly if you call through a VPN.
|
|
189
|
-
*/
|
|
190
|
-
taxSettings?: TaxSettings$1;
|
|
191
|
-
/**
|
|
192
|
-
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
193
|
-
* format. Wix calculates the currency based on the country code that
|
|
194
|
-
* you pass in the call's header. If you don't pass a country code in the header,
|
|
195
|
-
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
196
|
-
* currency may not resolve properly if you call through a VPN.
|
|
197
|
-
*/
|
|
198
|
-
currency?: string;
|
|
199
|
-
/**
|
|
200
|
-
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
201
|
-
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
202
|
-
* country code that you pass in the call's header. If you don't pass a country
|
|
203
|
-
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
204
|
-
* address. Note that the currency symbol may not resolve properly if you call
|
|
205
|
-
* through a VPN.
|
|
206
|
-
*/
|
|
207
|
-
currencySymbol?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Retrieved app plans.
|
|
210
|
-
*
|
|
211
|
-
* Min: 0 plans
|
|
212
|
-
* Max: 50 plans
|
|
213
|
-
*/
|
|
214
|
-
appPlans?: AppPlans$1[];
|
|
215
|
-
}
|
|
216
|
-
interface TaxSettings$1 {
|
|
217
|
-
/**
|
|
218
|
-
* Whether you must display the total price including taxes in the given
|
|
219
|
-
* country.
|
|
220
|
-
*/
|
|
221
|
-
showPriceWithTax?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Tax rate for the given country as percentage. Returned as `0` when
|
|
224
|
-
* `{"showPriceWithTax": false}`.
|
|
225
|
-
*/
|
|
226
|
-
percentage?: string | null;
|
|
227
|
-
/**
|
|
228
|
-
* Type of tax required in the given country.
|
|
229
|
-
*
|
|
230
|
-
* + `"NOT_APPLICABLE"`: The country doesn't require that you display the total price including taxes, or Wix failed to calculate the country based on the call's IP address.
|
|
231
|
-
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
232
|
-
* + `"GST"`: The given country requires that you display the total price including [generation-skipping transfer tax (GST)](https://en.wikipedia.org/wiki/Generation-skipping_transfer_tax).
|
|
233
|
-
*/
|
|
234
|
-
taxType?: TaxType$1;
|
|
235
|
-
}
|
|
236
|
-
declare enum TaxType$1 {
|
|
237
|
-
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
238
|
-
VAT = "VAT",
|
|
239
|
-
GST = "GST"
|
|
240
|
-
}
|
|
241
|
-
interface TaxSettingsNonNullableFields$1 {
|
|
242
|
-
showPriceWithTax: boolean;
|
|
243
|
-
taxType: TaxType$1;
|
|
244
|
-
}
|
|
245
|
-
interface DurationNonNullableFields$1 {
|
|
246
|
-
unit: DurationUnit$1;
|
|
247
|
-
count: number;
|
|
248
|
-
}
|
|
249
|
-
interface CycleNonNullableFields$1 {
|
|
250
|
-
cycleType: CycleType$1;
|
|
251
|
-
cycleDuration?: DurationNonNullableFields$1;
|
|
252
|
-
}
|
|
253
|
-
interface DiscountNonNullableFields$1 {
|
|
254
|
-
type: DiscountType$1;
|
|
255
|
-
amount: string;
|
|
256
|
-
priceBeforeTax: string;
|
|
257
|
-
totalPrice: string;
|
|
258
|
-
saleType: SaleType$1;
|
|
259
|
-
}
|
|
260
|
-
interface PriceNonNullableFields$1 {
|
|
261
|
-
priceBeforeTax: string;
|
|
262
|
-
totalPrice: string;
|
|
263
|
-
billingCycle?: CycleNonNullableFields$1;
|
|
264
|
-
discount?: DiscountNonNullableFields$1;
|
|
265
|
-
billingSource: BillingSource$1;
|
|
266
|
-
}
|
|
267
|
-
interface PlanNonNullableFields$1 {
|
|
268
|
-
id: string;
|
|
269
|
-
vendorId: string;
|
|
270
|
-
name: string;
|
|
271
|
-
benefits: string[];
|
|
272
|
-
prices: PriceNonNullableFields$1[];
|
|
273
|
-
}
|
|
274
|
-
interface AppPlansNonNullableFields$1 {
|
|
275
|
-
id: string;
|
|
276
|
-
plans: PlanNonNullableFields$1[];
|
|
277
|
-
}
|
|
278
|
-
interface ListAppPlansByAppIdResponseNonNullableFields$1 {
|
|
279
|
-
taxSettings?: TaxSettingsNonNullableFields$1;
|
|
280
|
-
currency: string;
|
|
281
|
-
currencySymbol: string;
|
|
282
|
-
appPlans: AppPlansNonNullableFields$1[];
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
interface AppPlans {
|
|
286
|
-
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
287
|
-
_id?: string;
|
|
288
|
-
/**
|
|
289
|
-
* List of the app's pricing plans.
|
|
290
|
-
*
|
|
291
|
-
* Min: `0` plans
|
|
292
|
-
* Max: `50` plans
|
|
293
|
-
*/
|
|
294
|
-
plans?: Plan[];
|
|
295
|
-
}
|
|
296
|
-
declare enum DiscountType {
|
|
297
|
-
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
298
|
-
/** Discount is a fixed amount in USD. */
|
|
299
|
-
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
300
|
-
/** Discount is a percentage of the total price. */
|
|
301
|
-
PERCENTAGE = "PERCENTAGE"
|
|
302
|
-
}
|
|
303
|
-
declare enum SaleType {
|
|
304
|
-
/** Default value, can be used when no specific sale is associated. */
|
|
305
|
-
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
306
|
-
CYBER_MONDAY = "CYBER_MONDAY",
|
|
307
|
-
NOVEMBER_SALE = "NOVEMBER_SALE",
|
|
308
|
-
BLACK_FRIDAY = "BLACK_FRIDAY",
|
|
309
|
-
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
310
|
-
}
|
|
311
|
-
interface Cycle {
|
|
312
|
-
/**
|
|
313
|
-
* Type of the billing cycle.
|
|
314
|
-
*
|
|
315
|
-
* + `"UNKNOWN_UNIT"`: There is no information about the billing cycle.
|
|
316
|
-
* + `"ONE_TIME"`: The customer pays for unlimited usage of the app with a single payment.
|
|
317
|
-
* + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.
|
|
318
|
-
*/
|
|
319
|
-
cycleType?: CycleType;
|
|
320
|
-
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
321
|
-
cycleDuration?: Duration;
|
|
322
|
-
}
|
|
323
|
-
declare enum DurationUnit {
|
|
324
|
-
/** unknown interval unit */
|
|
325
|
-
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
326
|
-
/** month */
|
|
327
|
-
MONTH = "MONTH",
|
|
328
|
-
/** year */
|
|
329
|
-
YEAR = "YEAR"
|
|
330
|
-
}
|
|
331
|
-
declare enum CycleType {
|
|
332
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
333
|
-
ONE_TIME = "ONE_TIME",
|
|
334
|
-
RECURRING = "RECURRING"
|
|
335
|
-
}
|
|
336
|
-
interface Duration {
|
|
337
|
-
/** Unit of the billing cycle. */
|
|
338
|
-
unit?: DurationUnit;
|
|
339
|
-
/** Count of units that make up the billing cycle. */
|
|
340
|
-
count?: number;
|
|
341
|
-
}
|
|
342
|
-
interface UsageBasedDetails {
|
|
343
|
-
/**
|
|
344
|
-
* Smallest possible amount that your app charges customers in usage-based
|
|
345
|
-
* pricing. For example, the price of a single SMS message if your
|
|
346
|
-
* app charges customers for sending text messages. Always in
|
|
347
|
-
* [USD](https://en.wikipedia.org/wiki/United_States_dollar).
|
|
348
|
-
*
|
|
349
|
-
* Min: `0.00`
|
|
350
|
-
* Max: 1024 characters
|
|
351
|
-
*/
|
|
352
|
-
minimumChargeIncrement?: string | null;
|
|
353
|
-
/**
|
|
354
|
-
* Recurring, monthly base fee in usaged-based pricing that your app
|
|
355
|
-
* charges customers regardless of how much they use your app.
|
|
356
|
-
*
|
|
357
|
-
* Min: `0.00`
|
|
358
|
-
* Max: 1024 characters
|
|
359
|
-
*/
|
|
360
|
-
monthlyBaseFee?: string | null;
|
|
361
|
-
/**
|
|
362
|
-
* Description of the usaged-based pricing plan, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
363
|
-
*
|
|
364
|
-
* Max: 1024 characters
|
|
365
|
-
*/
|
|
366
|
-
customChargeDescription?: string | null;
|
|
367
|
-
}
|
|
368
|
-
interface Discount {
|
|
369
|
-
type?: DiscountType;
|
|
370
|
-
/** Discount amount */
|
|
371
|
-
amount?: string;
|
|
372
|
-
saleId?: string | null;
|
|
373
|
-
/**
|
|
374
|
-
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
375
|
-
* average price per month. You can get thefull price by multiplying the
|
|
376
|
-
* returned price with 12.
|
|
377
|
-
* Min: `0.00`
|
|
378
|
-
* Max: 1024 characters
|
|
379
|
-
*/
|
|
380
|
-
priceBeforeTax?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Total price including taxes.
|
|
383
|
-
* Min: `0.00`
|
|
384
|
-
* Max: 1024 characters
|
|
385
|
-
*/
|
|
386
|
-
totalPrice?: string;
|
|
387
|
-
saleType?: SaleType;
|
|
388
|
-
}
|
|
389
|
-
declare enum BillingSource {
|
|
390
|
-
UNKNOWN = "UNKNOWN",
|
|
391
|
-
/** plan billing and charges is managed by Wix */
|
|
392
|
-
WIX = "WIX",
|
|
393
|
-
/** plan billing and charges is managed by the app */
|
|
394
|
-
EXTERNAL = "EXTERNAL"
|
|
395
|
-
}
|
|
396
|
-
interface Price {
|
|
397
|
-
/**
|
|
398
|
-
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
399
|
-
* average price per month. You can get thefull price by multiplying the
|
|
400
|
-
* returned price with 12.
|
|
401
|
-
*
|
|
402
|
-
* Min: `0.00`
|
|
403
|
-
* Max: 1024 characters
|
|
404
|
-
*/
|
|
405
|
-
priceBeforeTax?: string;
|
|
406
|
-
/**
|
|
407
|
-
* Total price including taxes.
|
|
408
|
-
*
|
|
409
|
-
* Min: `0.00`
|
|
410
|
-
* Max: 1024 characters
|
|
411
|
-
*/
|
|
412
|
-
totalPrice?: string;
|
|
413
|
-
/** Information about the plan's recurring billing cycle or single payment. */
|
|
414
|
-
billingCycle?: Cycle;
|
|
415
|
-
/**
|
|
416
|
-
* Details about the plan's usage-based pricing.
|
|
417
|
-
* Available only for plans with
|
|
418
|
-
* [usage-based pricing](https://dev.wix.com/docs/build-apps/build-your-app/pricing-plans/usage-based-pricing).
|
|
419
|
-
*/
|
|
420
|
-
usageBaseOptions?: UsageBasedDetails;
|
|
421
|
-
discount?: Discount;
|
|
422
|
-
billingSource?: BillingSource;
|
|
423
|
-
/** Can be shown instead of plan price - used for dynamic plans */
|
|
424
|
-
customPaymentTitle?: string | null;
|
|
425
|
-
}
|
|
426
|
-
interface Plan {
|
|
427
|
-
/**
|
|
428
|
-
* ID of the app plan.
|
|
429
|
-
* @readonly
|
|
430
|
-
*/
|
|
431
|
-
_id?: string;
|
|
432
|
-
/**
|
|
433
|
-
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
434
|
-
* Identical to `vendorProductId` in the
|
|
435
|
-
* [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
436
|
-
*/
|
|
437
|
-
vendorId?: string;
|
|
438
|
-
/** Name of your app's pricing plan, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
439
|
-
name?: string;
|
|
440
|
-
/**
|
|
441
|
-
* List of your plan's benefits, as defined by you in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
442
|
-
* Currently, the benefits are available only in English.
|
|
443
|
-
*
|
|
444
|
-
* Min: `0` benefits
|
|
445
|
-
* Max: `4` benefits
|
|
446
|
-
* Max per benefit: 1024 characters
|
|
447
|
-
*/
|
|
448
|
-
benefits?: string[];
|
|
449
|
-
/**
|
|
450
|
-
* List of the plan's prices. Available only when the plan's prices are managed
|
|
451
|
-
* by Wix and not externally.
|
|
452
|
-
*
|
|
453
|
-
* Min: `0` prices
|
|
454
|
-
* Max: `10` prices
|
|
455
|
-
*/
|
|
456
|
-
prices?: Price[];
|
|
457
|
-
}
|
|
458
|
-
interface ListAppPlansByAppIdRequest {
|
|
459
|
-
/**
|
|
460
|
-
* List of app IDs to retrieve plans for.
|
|
461
|
-
*
|
|
462
|
-
* Min: 1 app ID
|
|
463
|
-
* Max: 100 app IDs
|
|
464
|
-
*/
|
|
465
|
-
appIds: string[];
|
|
466
|
-
}
|
|
467
|
-
interface ListAppPlansByAppIdResponse {
|
|
468
|
-
/**
|
|
469
|
-
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
470
|
-
* you pass in the call's header. If you don't pass a country code in the header,
|
|
471
|
-
* Wix calculates the tax settings based on the caller's IP address. Note that the
|
|
472
|
-
* tax settings may not resolve properly if you call through a VPN.
|
|
473
|
-
*/
|
|
474
|
-
taxSettings?: TaxSettings;
|
|
475
|
-
/**
|
|
476
|
-
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)
|
|
477
|
-
* format. Wix calculates the currency based on the country code that
|
|
478
|
-
* you pass in the call's header. If you don't pass a country code in the header,
|
|
479
|
-
* Wix calculates the currency based on the caller's IP address. Note that the
|
|
480
|
-
* currency may not resolve properly if you call through a VPN.
|
|
481
|
-
*/
|
|
482
|
-
currency?: string;
|
|
483
|
-
/**
|
|
484
|
-
* Currency symbol in decimal HTML entity format. For example, `$` for $
|
|
485
|
-
* (United States Dollar). Wix calculates the currency symbol based on the
|
|
486
|
-
* country code that you pass in the call's header. If you don't pass a country
|
|
487
|
-
* code in the header, Wix calculates the tax settings based on the caller's IP
|
|
488
|
-
* address. Note that the currency symbol may not resolve properly if you call
|
|
489
|
-
* through a VPN.
|
|
490
|
-
*/
|
|
491
|
-
currencySymbol?: string;
|
|
492
|
-
/**
|
|
493
|
-
* Retrieved app plans.
|
|
494
|
-
*
|
|
495
|
-
* Min: 0 plans
|
|
496
|
-
* Max: 50 plans
|
|
497
|
-
*/
|
|
498
|
-
appPlans?: AppPlans[];
|
|
499
|
-
}
|
|
500
|
-
interface TaxSettings {
|
|
501
|
-
/**
|
|
502
|
-
* Whether you must display the total price including taxes in the given
|
|
503
|
-
* country.
|
|
504
|
-
*/
|
|
505
|
-
showPriceWithTax?: boolean;
|
|
506
|
-
/**
|
|
507
|
-
* Tax rate for the given country as percentage. Returned as `0` when
|
|
508
|
-
* `{"showPriceWithTax": false}`.
|
|
509
|
-
*/
|
|
510
|
-
percentage?: string | null;
|
|
511
|
-
/**
|
|
512
|
-
* Type of tax required in the given country.
|
|
513
|
-
*
|
|
514
|
-
* + `"NOT_APPLICABLE"`: The country doesn't require that you display the total price including taxes, or Wix failed to calculate the country based on the call's IP address.
|
|
515
|
-
* + `"VAT"`: The given country requires that you display the total price including [value-added tax (VAT)](https://en.wikipedia.org/wiki/Value-added_tax).
|
|
516
|
-
* + `"GST"`: The given country requires that you display the total price including [generation-skipping transfer tax (GST)](https://en.wikipedia.org/wiki/Generation-skipping_transfer_tax).
|
|
517
|
-
*/
|
|
518
|
-
taxType?: TaxType;
|
|
519
|
-
}
|
|
520
|
-
declare enum TaxType {
|
|
521
|
-
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
522
|
-
VAT = "VAT",
|
|
523
|
-
GST = "GST"
|
|
524
|
-
}
|
|
525
|
-
interface TaxSettingsNonNullableFields {
|
|
526
|
-
showPriceWithTax: boolean;
|
|
527
|
-
taxType: TaxType;
|
|
528
|
-
}
|
|
529
|
-
interface DurationNonNullableFields {
|
|
530
|
-
unit: DurationUnit;
|
|
531
|
-
count: number;
|
|
532
|
-
}
|
|
533
|
-
interface CycleNonNullableFields {
|
|
534
|
-
cycleType: CycleType;
|
|
535
|
-
cycleDuration?: DurationNonNullableFields;
|
|
536
|
-
}
|
|
537
|
-
interface DiscountNonNullableFields {
|
|
538
|
-
type: DiscountType;
|
|
539
|
-
amount: string;
|
|
540
|
-
priceBeforeTax: string;
|
|
541
|
-
totalPrice: string;
|
|
542
|
-
saleType: SaleType;
|
|
543
|
-
}
|
|
544
|
-
interface PriceNonNullableFields {
|
|
545
|
-
priceBeforeTax: string;
|
|
546
|
-
totalPrice: string;
|
|
547
|
-
billingCycle?: CycleNonNullableFields;
|
|
548
|
-
discount?: DiscountNonNullableFields;
|
|
549
|
-
billingSource: BillingSource;
|
|
550
|
-
}
|
|
551
|
-
interface PlanNonNullableFields {
|
|
552
|
-
_id: string;
|
|
553
|
-
vendorId: string;
|
|
554
|
-
name: string;
|
|
555
|
-
benefits: string[];
|
|
556
|
-
prices: PriceNonNullableFields[];
|
|
557
|
-
}
|
|
558
|
-
interface AppPlansNonNullableFields {
|
|
559
|
-
_id: string;
|
|
560
|
-
plans: PlanNonNullableFields[];
|
|
561
|
-
}
|
|
562
|
-
interface ListAppPlansByAppIdResponseNonNullableFields {
|
|
563
|
-
taxSettings?: TaxSettingsNonNullableFields;
|
|
564
|
-
currency: string;
|
|
565
|
-
currencySymbol: string;
|
|
566
|
-
appPlans: AppPlansNonNullableFields[];
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
570
|
-
getUrl: (context: any) => string;
|
|
571
|
-
httpMethod: K;
|
|
572
|
-
path: string;
|
|
573
|
-
pathParams: M;
|
|
574
|
-
__requestType: T;
|
|
575
|
-
__originalRequestType: S;
|
|
576
|
-
__responseType: Q;
|
|
577
|
-
__originalResponseType: R;
|
|
578
|
-
};
|
|
579
|
-
declare function listAppPlansByAppId(): __PublicMethodMetaInfo$4<'GET', {
|
|
580
|
-
appIds: string;
|
|
581
|
-
}, ListAppPlansByAppIdRequest, ListAppPlansByAppIdRequest$1, ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields, ListAppPlansByAppIdResponse$1 & ListAppPlansByAppIdResponseNonNullableFields$1>;
|
|
582
|
-
|
|
583
|
-
declare const meta$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
584
|
-
declare namespace meta$4 {
|
|
585
|
-
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* An app instance is a specific occurrence of your app on a particular Wix site.
|
|
590
|
-
* When a site owner installs your app, a unique instance is generated for that
|
|
591
|
-
* specific site. Use the `instanceId` to keep track of the individual data
|
|
592
|
-
* associated with each app instance.
|
|
593
|
-
*/
|
|
594
|
-
interface AppInstance$1 {
|
|
595
|
-
/**
|
|
596
|
-
* ID of the app instance. You can use it to keep track of the individual
|
|
597
|
-
* data that's associated with the specific occurence of your app that's
|
|
598
|
-
* installed on a Wix site.
|
|
599
|
-
*/
|
|
600
|
-
instanceId?: string;
|
|
601
|
-
/**
|
|
602
|
-
* App name, as set by you in the Customs Apps page during the app creation
|
|
603
|
-
* process.
|
|
604
|
-
*/
|
|
605
|
-
appName?: string;
|
|
606
|
-
/** Version of your app that's installed on the Wix site, as set by you during the app creation process. */
|
|
607
|
-
appVersion?: string | null;
|
|
608
|
-
/**
|
|
609
|
-
* Whether the site owners have installed a free or paid version of your app
|
|
610
|
-
* on their site.
|
|
611
|
-
*/
|
|
612
|
-
isFree?: boolean;
|
|
613
|
-
/**
|
|
614
|
-
* Billing information for the app instance. Available only in case
|
|
615
|
-
* `{"isFree": false}`.
|
|
616
|
-
*/
|
|
617
|
-
billing?: BillingInfo$1;
|
|
618
|
-
/**
|
|
619
|
-
* List of [permissions](https://dev.wix.com/docs/build-apps/developer-tools/developers-center/example-app-walkthrough/build-an-app#4-add-permissions)
|
|
620
|
-
* that the site owners have granted your app. You set the list of permissions that
|
|
621
|
-
* your app requires from the site owners in your app's Permissions page during the
|
|
622
|
-
* app creation process.
|
|
623
|
-
*/
|
|
624
|
-
permissions?: string[];
|
|
625
|
-
/** Plans available to this app instance. */
|
|
626
|
-
availablePlans?: AvailablePlan$1[];
|
|
627
|
-
/**
|
|
628
|
-
* ID of the Wix site from which the instance of your app has been cloned.
|
|
629
|
-
* Available only in case `{"copiedFromTemplate": true}`.
|
|
630
|
-
* All visual settings of the Wix site and app data are duplicated during the
|
|
631
|
-
* cloning process. Wix also notifies you in case there is any additional
|
|
632
|
-
* external functionality for the original site.
|
|
633
|
-
*/
|
|
634
|
-
originInstanceId?: string | null;
|
|
635
|
-
/**
|
|
636
|
-
* __Deprecated__. This parameter will be removed on March 30, 2023. Use
|
|
637
|
-
* `copiedFromTemplate` instead.
|
|
638
|
-
* @deprecated
|
|
639
|
-
*/
|
|
640
|
-
isOriginSiteTemplate?: boolean;
|
|
641
|
-
/** Whether the app instance was created when another Wix site was cloned. */
|
|
642
|
-
copiedFromTemplate?: boolean;
|
|
643
|
-
/** Whether the app instance includes a free trial that hasn't started yet. */
|
|
644
|
-
freeTrialAvailable?: boolean;
|
|
645
|
-
}
|
|
646
|
-
interface BillingInfo$1 {
|
|
647
|
-
/** Name of the package that the site owner has paid for. */
|
|
648
|
-
packageName?: string;
|
|
649
|
-
/**
|
|
650
|
-
* Interval of the billing cycle. `"ONE_TIME"` means that site owners have
|
|
651
|
-
* purchased unlimited access to the app with a single, upfront payment.
|
|
652
|
-
*/
|
|
653
|
-
billingCycle?: PaymentCycle$3;
|
|
654
|
-
/**
|
|
655
|
-
* Date and time the site owners have purchased the app's paid plan in
|
|
656
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
657
|
-
*/
|
|
658
|
-
timeStamp?: string;
|
|
659
|
-
/**
|
|
660
|
-
* Date and time the app's current billing cycle ends in
|
|
661
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and
|
|
662
|
-
* multi-yearly plans.
|
|
663
|
-
*/
|
|
664
|
-
expirationDate?: string | null;
|
|
665
|
-
/**
|
|
666
|
-
* Whether the app's subscription automatically renews at the end of the
|
|
667
|
-
* current billing cycle.
|
|
668
|
-
*/
|
|
669
|
-
autoRenewing?: boolean | null;
|
|
670
|
-
/** ID of the invoice for the current billing cycle. */
|
|
671
|
-
invoiceId?: string | null;
|
|
672
|
-
/**
|
|
673
|
-
* Information about any discounts applied to the app instance's current billing cycle.
|
|
674
|
-
* If the site owners applied a developer coupon or Wix Voucher
|
|
675
|
-
* when installing the paid version of your app, this field holds the coupon's
|
|
676
|
-
* name or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when
|
|
677
|
-
* upgrading their Wix subscription. If there is no discount for the
|
|
678
|
-
* current billing cycle, the field is an empty string.
|
|
679
|
-
*/
|
|
680
|
-
source?: string | null;
|
|
681
|
-
/** Information about the free trial applied, if relevant. */
|
|
682
|
-
freeTrialInfo?: FreeTrialInfo$1;
|
|
683
|
-
}
|
|
684
|
-
declare enum PaymentCycle$3 {
|
|
685
|
-
NO_CYCLE = "NO_CYCLE",
|
|
686
|
-
MONTHLY = "MONTHLY",
|
|
687
|
-
YEARLY = "YEARLY",
|
|
688
|
-
ONE_TIME = "ONE_TIME",
|
|
689
|
-
TWO_YEARS = "TWO_YEARS",
|
|
690
|
-
THREE_YEARS = "THREE_YEARS",
|
|
691
|
-
FOUR_YEARS = "FOUR_YEARS",
|
|
692
|
-
FIVE_YEARS = "FIVE_YEARS"
|
|
693
|
-
}
|
|
694
|
-
interface FreeTrialInfo$1 {
|
|
695
|
-
/**
|
|
696
|
-
* Current free trial status.
|
|
697
|
-
* @readonly
|
|
698
|
-
*/
|
|
699
|
-
status?: FreeTrialStatus$1;
|
|
700
|
-
/**
|
|
701
|
-
* When the free trial has ended. Populated only once the free trial is over.
|
|
702
|
-
* @readonly
|
|
703
|
-
*/
|
|
704
|
-
endDate?: Date | null;
|
|
705
|
-
}
|
|
706
|
-
declare enum FreeTrialStatus$1 {
|
|
707
|
-
/** Unknown trial status. */
|
|
708
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
709
|
-
/** The free trial is currently in progress. */
|
|
710
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
711
|
-
/** The free trial has ended. */
|
|
712
|
-
ENDED = "ENDED",
|
|
713
|
-
/** No free trial was applied, as none was available. */
|
|
714
|
-
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
715
|
-
}
|
|
716
|
-
interface AvailablePlan$1 {
|
|
717
|
-
/** Package name of the available plan. */
|
|
718
|
-
packageName?: string;
|
|
719
|
-
/** Source of the available plan. Can be a bundle or 3rd-party app. */
|
|
720
|
-
source?: string;
|
|
721
|
-
}
|
|
722
|
-
interface GetAppInstanceRequest$1 {
|
|
723
|
-
}
|
|
724
|
-
interface GetAppInstanceResponse$1 {
|
|
725
|
-
/** Retrieved app instance. */
|
|
726
|
-
instance?: AppInstance$1;
|
|
727
|
-
/** Information about the corresponding Wix site. */
|
|
728
|
-
site?: SiteInfo$1;
|
|
729
|
-
}
|
|
730
|
-
interface SiteInfo$1 {
|
|
731
|
-
/** Display name of the site. */
|
|
732
|
-
siteDisplayName?: string | null;
|
|
733
|
-
/**
|
|
734
|
-
* 2-letter language code of the site's locale in
|
|
735
|
-
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
736
|
-
*/
|
|
737
|
-
locale?: string;
|
|
738
|
-
/**
|
|
739
|
-
* 3-letter currency code for the site's billing in
|
|
740
|
-
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
741
|
-
*/
|
|
742
|
-
paymentCurrency?: string;
|
|
743
|
-
/** Information about the site's supported languages. */
|
|
744
|
-
multilingual?: Multilingual$1;
|
|
745
|
-
/** URL of the site. Available only in case the site has been published. */
|
|
746
|
-
url?: string | null;
|
|
747
|
-
/** Description of the site. */
|
|
748
|
-
description?: string | null;
|
|
749
|
-
/** Wix apps that are installed on the site. */
|
|
750
|
-
installedWixApps?: string[];
|
|
751
|
-
/**
|
|
752
|
-
* > **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.
|
|
753
|
-
* @deprecated
|
|
754
|
-
*/
|
|
755
|
-
ownerEmail?: string | null;
|
|
756
|
-
/**
|
|
757
|
-
* Information about the site owner. Available only when calling
|
|
758
|
-
* _Get App Instance_ with the __Read Site Owner Email__ permission scope.
|
|
759
|
-
*/
|
|
760
|
-
ownerInfo?: OwnerInfo$1;
|
|
761
|
-
/** Site ID. */
|
|
762
|
-
siteId?: string;
|
|
763
|
-
}
|
|
764
|
-
interface Multilingual$1 {
|
|
765
|
-
/** Whether the site supports more than a single language. */
|
|
766
|
-
isMultiLingual?: boolean;
|
|
767
|
-
/** List of supported languages. Returned only when `{"isMultiLingual": true}`. */
|
|
768
|
-
supportedLanguages?: SupportedLanguage$1[];
|
|
769
|
-
}
|
|
770
|
-
interface SupportedLanguage$1 {
|
|
771
|
-
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
772
|
-
languageCode?: string;
|
|
773
|
-
/** Locale. */
|
|
774
|
-
locale?: Locale$1;
|
|
775
|
-
/** Whether the supported language is the primary language for the site. */
|
|
776
|
-
isPrimary?: boolean;
|
|
777
|
-
/** Language icon. */
|
|
778
|
-
countryCode?: string;
|
|
779
|
-
/** How the language will be resolved. For internal use. */
|
|
780
|
-
resolutionMethod?: ResolutionMethod$1;
|
|
781
|
-
}
|
|
782
|
-
interface Locale$1 {
|
|
783
|
-
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
784
|
-
languageCode?: string;
|
|
785
|
-
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
786
|
-
country?: string;
|
|
787
|
-
}
|
|
788
|
-
declare enum ResolutionMethod$1 {
|
|
789
|
-
QUERY_PARAM = "QUERY_PARAM",
|
|
790
|
-
SUBDOMAIN = "SUBDOMAIN",
|
|
791
|
-
SUBDIRECTORY = "SUBDIRECTORY"
|
|
792
|
-
}
|
|
793
|
-
interface OwnerInfo$1 {
|
|
794
|
-
/** Site owner's email address. Identical to the site owner's login email. */
|
|
795
|
-
email?: string;
|
|
796
|
-
/**
|
|
797
|
-
* Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,
|
|
798
|
-
* `NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.
|
|
799
|
-
*
|
|
800
|
-
* Whether the site owner has verified their email and whether they have chosen
|
|
801
|
-
* to receive email notifications from Wix.
|
|
802
|
-
*/
|
|
803
|
-
emailStatus?: string;
|
|
804
|
-
}
|
|
805
|
-
interface FreeTrialInfoNonNullableFields$1 {
|
|
806
|
-
status: FreeTrialStatus$1;
|
|
807
|
-
}
|
|
808
|
-
interface BillingInfoNonNullableFields$1 {
|
|
809
|
-
packageName: string;
|
|
810
|
-
billingCycle: PaymentCycle$3;
|
|
811
|
-
timeStamp: string;
|
|
812
|
-
freeTrialInfo?: FreeTrialInfoNonNullableFields$1;
|
|
813
|
-
}
|
|
814
|
-
interface AvailablePlanNonNullableFields$1 {
|
|
815
|
-
packageName: string;
|
|
816
|
-
source: string;
|
|
817
|
-
}
|
|
818
|
-
interface AppInstanceNonNullableFields$1 {
|
|
819
|
-
instanceId: string;
|
|
820
|
-
appName: string;
|
|
821
|
-
isFree: boolean;
|
|
822
|
-
billing?: BillingInfoNonNullableFields$1;
|
|
823
|
-
permissions: string[];
|
|
824
|
-
availablePlans: AvailablePlanNonNullableFields$1[];
|
|
825
|
-
isOriginSiteTemplate: boolean;
|
|
826
|
-
copiedFromTemplate: boolean;
|
|
827
|
-
freeTrialAvailable: boolean;
|
|
828
|
-
}
|
|
829
|
-
interface LocaleNonNullableFields$1 {
|
|
830
|
-
languageCode: string;
|
|
831
|
-
country: string;
|
|
832
|
-
}
|
|
833
|
-
interface SupportedLanguageNonNullableFields$1 {
|
|
834
|
-
languageCode: string;
|
|
835
|
-
locale?: LocaleNonNullableFields$1;
|
|
836
|
-
isPrimary: boolean;
|
|
837
|
-
countryCode: string;
|
|
838
|
-
resolutionMethod: ResolutionMethod$1;
|
|
839
|
-
}
|
|
840
|
-
interface MultilingualNonNullableFields$1 {
|
|
841
|
-
isMultiLingual: boolean;
|
|
842
|
-
supportedLanguages: SupportedLanguageNonNullableFields$1[];
|
|
843
|
-
}
|
|
844
|
-
interface OwnerInfoNonNullableFields$1 {
|
|
845
|
-
email: string;
|
|
846
|
-
emailStatus: string;
|
|
847
|
-
}
|
|
848
|
-
interface SiteInfoNonNullableFields$1 {
|
|
849
|
-
locale: string;
|
|
850
|
-
paymentCurrency: string;
|
|
851
|
-
multilingual?: MultilingualNonNullableFields$1;
|
|
852
|
-
installedWixApps: string[];
|
|
853
|
-
ownerInfo?: OwnerInfoNonNullableFields$1;
|
|
854
|
-
siteId: string;
|
|
855
|
-
}
|
|
856
|
-
interface GetAppInstanceResponseNonNullableFields$1 {
|
|
857
|
-
instance?: AppInstanceNonNullableFields$1;
|
|
858
|
-
site?: SiteInfoNonNullableFields$1;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* An app instance is a specific occurrence of your app on a particular Wix site.
|
|
863
|
-
* When a site owner installs your app, a unique instance is generated for that
|
|
864
|
-
* specific site. Use the `instanceId` to keep track of the individual data
|
|
865
|
-
* associated with each app instance.
|
|
866
|
-
*/
|
|
867
|
-
interface AppInstance {
|
|
868
|
-
/**
|
|
869
|
-
* ID of the app instance. You can use it to keep track of the individual
|
|
870
|
-
* data that's associated with the specific occurence of your app that's
|
|
871
|
-
* installed on a Wix site.
|
|
872
|
-
*/
|
|
873
|
-
instanceId?: string;
|
|
874
|
-
/**
|
|
875
|
-
* App name, as set by you in the Customs Apps page during the app creation
|
|
876
|
-
* process.
|
|
877
|
-
*/
|
|
878
|
-
appName?: string;
|
|
879
|
-
/** Version of your app that's installed on the Wix site, as set by you during the app creation process. */
|
|
880
|
-
appVersion?: string | null;
|
|
881
|
-
/**
|
|
882
|
-
* Whether the site owners have installed a free or paid version of your app
|
|
883
|
-
* on their site.
|
|
884
|
-
*/
|
|
885
|
-
isFree?: boolean;
|
|
886
|
-
/**
|
|
887
|
-
* Billing information for the app instance. Available only in case
|
|
888
|
-
* `{"isFree": false}`.
|
|
889
|
-
*/
|
|
890
|
-
billing?: BillingInfo;
|
|
891
|
-
/**
|
|
892
|
-
* List of [permissions](https://dev.wix.com/docs/build-apps/developer-tools/developers-center/example-app-walkthrough/build-an-app#4-add-permissions)
|
|
893
|
-
* that the site owners have granted your app. You set the list of permissions that
|
|
894
|
-
* your app requires from the site owners in your app's Permissions page during the
|
|
895
|
-
* app creation process.
|
|
896
|
-
*/
|
|
897
|
-
permissions?: string[];
|
|
898
|
-
/** Plans available to this app instance. */
|
|
899
|
-
availablePlans?: AvailablePlan[];
|
|
900
|
-
/**
|
|
901
|
-
* ID of the Wix site from which the instance of your app has been cloned.
|
|
902
|
-
* Available only in case `{"copiedFromTemplate": true}`.
|
|
903
|
-
* All visual settings of the Wix site and app data are duplicated during the
|
|
904
|
-
* cloning process. Wix also notifies you in case there is any additional
|
|
905
|
-
* external functionality for the original site.
|
|
906
|
-
*/
|
|
907
|
-
originInstanceId?: string | null;
|
|
908
|
-
/**
|
|
909
|
-
* __Deprecated__. This parameter will be removed on March 30, 2023. Use
|
|
910
|
-
* `copiedFromTemplate` instead.
|
|
911
|
-
* @deprecated
|
|
912
|
-
*/
|
|
913
|
-
isOriginSiteTemplate?: boolean;
|
|
914
|
-
/** Whether the app instance was created when another Wix site was cloned. */
|
|
915
|
-
copiedFromTemplate?: boolean;
|
|
916
|
-
/** Whether the app instance includes a free trial that hasn't started yet. */
|
|
917
|
-
freeTrialAvailable?: boolean;
|
|
918
|
-
}
|
|
919
|
-
interface BillingInfo {
|
|
920
|
-
/** Name of the package that the site owner has paid for. */
|
|
921
|
-
packageName?: string;
|
|
922
|
-
/**
|
|
923
|
-
* Interval of the billing cycle. `"ONE_TIME"` means that site owners have
|
|
924
|
-
* purchased unlimited access to the app with a single, upfront payment.
|
|
925
|
-
*/
|
|
926
|
-
billingCycle?: PaymentCycle$2;
|
|
927
|
-
/**
|
|
928
|
-
* Date and time the site owners have purchased the app's paid plan in
|
|
929
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
930
|
-
*/
|
|
931
|
-
timeStamp?: string;
|
|
932
|
-
/**
|
|
933
|
-
* Date and time the app's current billing cycle ends in
|
|
934
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format. Available only for yearly and
|
|
935
|
-
* multi-yearly plans.
|
|
936
|
-
*/
|
|
937
|
-
expirationDate?: string | null;
|
|
938
|
-
/**
|
|
939
|
-
* Whether the app's subscription automatically renews at the end of the
|
|
940
|
-
* current billing cycle.
|
|
941
|
-
*/
|
|
942
|
-
autoRenewing?: boolean | null;
|
|
943
|
-
/** ID of the invoice for the current billing cycle. */
|
|
944
|
-
invoiceId?: string | null;
|
|
945
|
-
/**
|
|
946
|
-
* Information about any discounts applied to the app instance's current billing cycle.
|
|
947
|
-
* If the site owners applied a developer coupon or Wix Voucher
|
|
948
|
-
* when installing the paid version of your app, this field holds the coupon's
|
|
949
|
-
* name or `“Wix discount coupon”`. Site owners may receive a Wix Voucher when
|
|
950
|
-
* upgrading their Wix subscription. If there is no discount for the
|
|
951
|
-
* current billing cycle, the field is an empty string.
|
|
952
|
-
*/
|
|
953
|
-
source?: string | null;
|
|
954
|
-
/** Information about the free trial applied, if relevant. */
|
|
955
|
-
freeTrialInfo?: FreeTrialInfo;
|
|
956
|
-
}
|
|
957
|
-
declare enum PaymentCycle$2 {
|
|
958
|
-
NO_CYCLE = "NO_CYCLE",
|
|
959
|
-
MONTHLY = "MONTHLY",
|
|
960
|
-
YEARLY = "YEARLY",
|
|
961
|
-
ONE_TIME = "ONE_TIME",
|
|
962
|
-
TWO_YEARS = "TWO_YEARS",
|
|
963
|
-
THREE_YEARS = "THREE_YEARS",
|
|
964
|
-
FOUR_YEARS = "FOUR_YEARS",
|
|
965
|
-
FIVE_YEARS = "FIVE_YEARS"
|
|
966
|
-
}
|
|
967
|
-
interface FreeTrialInfo {
|
|
968
|
-
/**
|
|
969
|
-
* Current free trial status.
|
|
970
|
-
* @readonly
|
|
971
|
-
*/
|
|
972
|
-
status?: FreeTrialStatus;
|
|
973
|
-
/**
|
|
974
|
-
* When the free trial has ended. Populated only once the free trial is over.
|
|
975
|
-
* @readonly
|
|
976
|
-
*/
|
|
977
|
-
endDate?: Date | null;
|
|
978
|
-
}
|
|
979
|
-
declare enum FreeTrialStatus {
|
|
980
|
-
/** Unknown trial status. */
|
|
981
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
982
|
-
/** The free trial is currently in progress. */
|
|
983
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
984
|
-
/** The free trial has ended. */
|
|
985
|
-
ENDED = "ENDED",
|
|
986
|
-
/** No free trial was applied, as none was available. */
|
|
987
|
-
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
988
|
-
}
|
|
989
|
-
interface AvailablePlan {
|
|
990
|
-
/** Package name of the available plan. */
|
|
991
|
-
packageName?: string;
|
|
992
|
-
/** Source of the available plan. Can be a bundle or 3rd-party app. */
|
|
993
|
-
source?: string;
|
|
994
|
-
}
|
|
995
|
-
interface GetAppInstanceRequest {
|
|
996
|
-
}
|
|
997
|
-
interface GetAppInstanceResponse {
|
|
998
|
-
/** Retrieved app instance. */
|
|
999
|
-
instance?: AppInstance;
|
|
1000
|
-
/** Information about the corresponding Wix site. */
|
|
1001
|
-
site?: SiteInfo;
|
|
1002
|
-
}
|
|
1003
|
-
interface SiteInfo {
|
|
1004
|
-
/** Display name of the site. */
|
|
1005
|
-
siteDisplayName?: string | null;
|
|
1006
|
-
/**
|
|
1007
|
-
* 2-letter language code of the site's locale in
|
|
1008
|
-
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
1009
|
-
*/
|
|
1010
|
-
locale?: string;
|
|
1011
|
-
/**
|
|
1012
|
-
* 3-letter currency code for the site's billing in
|
|
1013
|
-
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1014
|
-
*/
|
|
1015
|
-
paymentCurrency?: string;
|
|
1016
|
-
/** Information about the site's supported languages. */
|
|
1017
|
-
multilingual?: Multilingual;
|
|
1018
|
-
/** URL of the site. Available only in case the site has been published. */
|
|
1019
|
-
url?: string | null;
|
|
1020
|
-
/** Description of the site. */
|
|
1021
|
-
description?: string | null;
|
|
1022
|
-
/** Wix apps that are installed on the site. */
|
|
1023
|
-
installedWixApps?: string[];
|
|
1024
|
-
/**
|
|
1025
|
-
* > **Deprecation Notice:** This parameter will be removed on June 30, 2022. Use `ownerInfo` instead.
|
|
1026
|
-
* @deprecated
|
|
1027
|
-
*/
|
|
1028
|
-
ownerEmail?: string | null;
|
|
1029
|
-
/**
|
|
1030
|
-
* Information about the site owner. Available only when calling
|
|
1031
|
-
* _Get App Instance_ with the __Read Site Owner Email__ permission scope.
|
|
1032
|
-
*/
|
|
1033
|
-
ownerInfo?: OwnerInfo;
|
|
1034
|
-
/** Site ID. */
|
|
1035
|
-
siteId?: string;
|
|
1036
|
-
}
|
|
1037
|
-
interface Multilingual {
|
|
1038
|
-
/** Whether the site supports more than a single language. */
|
|
1039
|
-
isMultiLingual?: boolean;
|
|
1040
|
-
/** List of supported languages. Returned only when `{"isMultiLingual": true}`. */
|
|
1041
|
-
supportedLanguages?: SupportedLanguage[];
|
|
1042
|
-
}
|
|
1043
|
-
interface SupportedLanguage {
|
|
1044
|
-
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
1045
|
-
languageCode?: string;
|
|
1046
|
-
/** Locale. */
|
|
1047
|
-
locale?: Locale;
|
|
1048
|
-
/** Whether the supported language is the primary language for the site. */
|
|
1049
|
-
isPrimary?: boolean;
|
|
1050
|
-
/** Language icon. */
|
|
1051
|
-
countryCode?: string;
|
|
1052
|
-
/** How the language will be resolved. For internal use. */
|
|
1053
|
-
resolutionMethod?: ResolutionMethod;
|
|
1054
|
-
}
|
|
1055
|
-
interface Locale {
|
|
1056
|
-
/** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
|
|
1057
|
-
languageCode?: string;
|
|
1058
|
-
/** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
|
|
1059
|
-
country?: string;
|
|
1060
|
-
}
|
|
1061
|
-
declare enum ResolutionMethod {
|
|
1062
|
-
QUERY_PARAM = "QUERY_PARAM",
|
|
1063
|
-
SUBDOMAIN = "SUBDOMAIN",
|
|
1064
|
-
SUBDIRECTORY = "SUBDIRECTORY"
|
|
1065
|
-
}
|
|
1066
|
-
interface OwnerInfo {
|
|
1067
|
-
/** Site owner's email address. Identical to the site owner's login email. */
|
|
1068
|
-
email?: string;
|
|
1069
|
-
/**
|
|
1070
|
-
* Supported values: `VERIFIED_OPT_IN`, `VERIFIED_OPT_OUT`,
|
|
1071
|
-
* `NOT_VERIFIED_OPT_IN`, `NOT_VERIFIED_OPT_OUT`.
|
|
1072
|
-
*
|
|
1073
|
-
* Whether the site owner has verified their email and whether they have chosen
|
|
1074
|
-
* to receive email notifications from Wix.
|
|
1075
|
-
*/
|
|
1076
|
-
emailStatus?: string;
|
|
1077
|
-
}
|
|
1078
|
-
interface FreeTrialInfoNonNullableFields {
|
|
1079
|
-
status: FreeTrialStatus;
|
|
1080
|
-
}
|
|
1081
|
-
interface BillingInfoNonNullableFields {
|
|
1082
|
-
packageName: string;
|
|
1083
|
-
billingCycle: PaymentCycle$2;
|
|
1084
|
-
timeStamp: string;
|
|
1085
|
-
freeTrialInfo?: FreeTrialInfoNonNullableFields;
|
|
1086
|
-
}
|
|
1087
|
-
interface AvailablePlanNonNullableFields {
|
|
1088
|
-
packageName: string;
|
|
1089
|
-
source: string;
|
|
1090
|
-
}
|
|
1091
|
-
interface AppInstanceNonNullableFields {
|
|
1092
|
-
instanceId: string;
|
|
1093
|
-
appName: string;
|
|
1094
|
-
isFree: boolean;
|
|
1095
|
-
billing?: BillingInfoNonNullableFields;
|
|
1096
|
-
permissions: string[];
|
|
1097
|
-
availablePlans: AvailablePlanNonNullableFields[];
|
|
1098
|
-
isOriginSiteTemplate: boolean;
|
|
1099
|
-
copiedFromTemplate: boolean;
|
|
1100
|
-
freeTrialAvailable: boolean;
|
|
1101
|
-
}
|
|
1102
|
-
interface LocaleNonNullableFields {
|
|
1103
|
-
languageCode: string;
|
|
1104
|
-
country: string;
|
|
1105
|
-
}
|
|
1106
|
-
interface SupportedLanguageNonNullableFields {
|
|
1107
|
-
languageCode: string;
|
|
1108
|
-
locale?: LocaleNonNullableFields;
|
|
1109
|
-
isPrimary: boolean;
|
|
1110
|
-
countryCode: string;
|
|
1111
|
-
resolutionMethod: ResolutionMethod;
|
|
1112
|
-
}
|
|
1113
|
-
interface MultilingualNonNullableFields {
|
|
1114
|
-
isMultiLingual: boolean;
|
|
1115
|
-
supportedLanguages: SupportedLanguageNonNullableFields[];
|
|
1116
|
-
}
|
|
1117
|
-
interface OwnerInfoNonNullableFields {
|
|
1118
|
-
email: string;
|
|
1119
|
-
emailStatus: string;
|
|
1120
|
-
}
|
|
1121
|
-
interface SiteInfoNonNullableFields {
|
|
1122
|
-
locale: string;
|
|
1123
|
-
paymentCurrency: string;
|
|
1124
|
-
multilingual?: MultilingualNonNullableFields;
|
|
1125
|
-
installedWixApps: string[];
|
|
1126
|
-
ownerInfo?: OwnerInfoNonNullableFields;
|
|
1127
|
-
siteId: string;
|
|
1128
|
-
}
|
|
1129
|
-
interface GetAppInstanceResponseNonNullableFields {
|
|
1130
|
-
instance?: AppInstanceNonNullableFields;
|
|
1131
|
-
site?: SiteInfoNonNullableFields;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1135
|
-
getUrl: (context: any) => string;
|
|
1136
|
-
httpMethod: K;
|
|
1137
|
-
path: string;
|
|
1138
|
-
pathParams: M;
|
|
1139
|
-
__requestType: T;
|
|
1140
|
-
__originalRequestType: S;
|
|
1141
|
-
__responseType: Q;
|
|
1142
|
-
__originalResponseType: R;
|
|
1143
|
-
};
|
|
1144
|
-
declare function getAppInstance(): __PublicMethodMetaInfo$3<'GET', {}, GetAppInstanceRequest, GetAppInstanceRequest$1, GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields, GetAppInstanceResponse$1 & GetAppInstanceResponseNonNullableFields$1>;
|
|
1145
|
-
|
|
1146
|
-
declare const meta$3_getAppInstance: typeof getAppInstance;
|
|
1147
|
-
declare namespace meta$3 {
|
|
1148
|
-
export { type __PublicMethodMetaInfo$3 as __PublicMethodMetaInfo, meta$3_getAppInstance as getAppInstance };
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
interface SendBIEventResponse$1 {
|
|
1152
|
-
}
|
|
1153
|
-
interface SendBIEventRequest$1 {
|
|
1154
|
-
/** Name of the event that's triggered in your app. */
|
|
1155
|
-
eventName?: EventName$1;
|
|
1156
|
-
/**
|
|
1157
|
-
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
1158
|
-
*
|
|
1159
|
-
* Min: 2 characters
|
|
1160
|
-
*/
|
|
1161
|
-
customEventName?: string | null;
|
|
1162
|
-
/**
|
|
1163
|
-
* Supported values include: `"cycle_name"`, `"currency"`, `"sum"`, `"reason"`, `"app_plan_id"`.
|
|
1164
|
-
* You may also submit data with keys that aren't listed here.
|
|
1165
|
-
*
|
|
1166
|
-
* Additional data about your app's event.
|
|
1167
|
-
*
|
|
1168
|
-
* + `"cycle_name"`: Supported values: `"monthly"`, `"yearly"`, `"2 years"`, `"one time"`.
|
|
1169
|
-
* + `"currency"`: 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1170
|
-
* + `"sum"`: Amount of money. Required for `{"eventName": "CHARGE"}` and `{"eventName": "FUNDS_RETURNED"}`.
|
|
1171
|
-
* + `"reason"`: Information about why the event was triggered in your app.
|
|
1172
|
-
* + `"app_plan_id"`: ID of the your app's plan as displayed in your app's dashboard. Note that it's the same value as `vendorProductId` in the [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
1173
|
-
*/
|
|
1174
|
-
eventData?: Record<string, string>;
|
|
1175
|
-
}
|
|
1176
|
-
declare enum EventName$1 {
|
|
1177
|
-
/** Unknown event name. */
|
|
1178
|
-
UNKNOWN = "UNKNOWN",
|
|
1179
|
-
/** A site owner or contributor loads your app's dashboard. */
|
|
1180
|
-
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1181
|
-
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1182
|
-
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1183
|
-
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1184
|
-
APP_UPGRADED = "APP_UPGRADED",
|
|
1185
|
-
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1186
|
-
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1187
|
-
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1188
|
-
CUSTOM = "CUSTOM",
|
|
1189
|
-
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1190
|
-
CHARGE = "CHARGE",
|
|
1191
|
-
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1192
|
-
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1193
|
-
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1194
|
-
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1195
|
-
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1196
|
-
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1197
|
-
/** The site owner completes your app's required business setup. */
|
|
1198
|
-
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
interface SendBIEventResponse {
|
|
1202
|
-
}
|
|
1203
|
-
interface SendBIEventRequest {
|
|
1204
|
-
/** Name of the event that's triggered in your app. */
|
|
1205
|
-
eventName?: EventName;
|
|
1206
|
-
/**
|
|
1207
|
-
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
1208
|
-
*
|
|
1209
|
-
* Min: 2 characters
|
|
1210
|
-
*/
|
|
1211
|
-
customEventName?: string | null;
|
|
1212
|
-
/**
|
|
1213
|
-
* Supported values include: `"cycle_name"`, `"currency"`, `"sum"`, `"reason"`, `"app_plan_id"`.
|
|
1214
|
-
* You may also submit data with keys that aren't listed here.
|
|
1215
|
-
*
|
|
1216
|
-
* Additional data about your app's event.
|
|
1217
|
-
*
|
|
1218
|
-
* + `"cycle_name"`: Supported values: `"monthly"`, `"yearly"`, `"2 years"`, `"one time"`.
|
|
1219
|
-
* + `"currency"`: 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1220
|
-
* + `"sum"`: Amount of money. Required for `{"eventName": "CHARGE"}` and `{"eventName": "FUNDS_RETURNED"}`.
|
|
1221
|
-
* + `"reason"`: Information about why the event was triggered in your app.
|
|
1222
|
-
* + `"app_plan_id"`: ID of the your app's plan as displayed in your app's dashboard. Note that it's the same value as `vendorProductId` in the [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/paid-plan-purchased).
|
|
1223
|
-
*/
|
|
1224
|
-
eventData?: Record<string, string>;
|
|
1225
|
-
}
|
|
1226
|
-
declare enum EventName {
|
|
1227
|
-
/** Unknown event name. */
|
|
1228
|
-
UNKNOWN = "UNKNOWN",
|
|
1229
|
-
/** A site owner or contributor loads your app's dashboard. */
|
|
1230
|
-
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1231
|
-
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1232
|
-
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1233
|
-
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1234
|
-
APP_UPGRADED = "APP_UPGRADED",
|
|
1235
|
-
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1236
|
-
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1237
|
-
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1238
|
-
CUSTOM = "CUSTOM",
|
|
1239
|
-
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1240
|
-
CHARGE = "CHARGE",
|
|
1241
|
-
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1242
|
-
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1243
|
-
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1244
|
-
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1245
|
-
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1246
|
-
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1247
|
-
/** The site owner completes your app's required business setup. */
|
|
1248
|
-
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1252
|
-
getUrl: (context: any) => string;
|
|
1253
|
-
httpMethod: K;
|
|
1254
|
-
path: string;
|
|
1255
|
-
pathParams: M;
|
|
1256
|
-
__requestType: T;
|
|
1257
|
-
__originalRequestType: S;
|
|
1258
|
-
__responseType: Q;
|
|
1259
|
-
__originalResponseType: R;
|
|
1260
|
-
};
|
|
1261
|
-
declare function sendBiEvent(): __PublicMethodMetaInfo$2<'POST', {}, SendBIEventRequest, SendBIEventRequest$1, SendBIEventResponse, SendBIEventResponse$1>;
|
|
1262
|
-
|
|
1263
|
-
declare const meta$2_sendBiEvent: typeof sendBiEvent;
|
|
1264
|
-
declare namespace meta$2 {
|
|
1265
|
-
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_sendBiEvent as sendBiEvent };
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
interface PurchasedItem$1 {
|
|
1269
|
-
/** ID of your app's paid plan. */
|
|
1270
|
-
productId?: string;
|
|
1271
|
-
/** Price of your app's paid plan. For example, `9.95`. */
|
|
1272
|
-
price?: string;
|
|
1273
|
-
/**
|
|
1274
|
-
* 3-letter currency code in
|
|
1275
|
-
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1276
|
-
*/
|
|
1277
|
-
currency?: string;
|
|
1278
|
-
/** Information about the billing cycle for your app's paid plan. */
|
|
1279
|
-
billingCycle?: PaymentCycle$1;
|
|
1280
|
-
/**
|
|
1281
|
-
* Date and time the site onwers have purchased your app's paid plan in
|
|
1282
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
1283
|
-
*/
|
|
1284
|
-
dateCreated?: Date | null;
|
|
1285
|
-
}
|
|
1286
|
-
declare enum PaymentCycle$1 {
|
|
1287
|
-
NO_CYCLE = "NO_CYCLE",
|
|
1288
|
-
MONTHLY = "MONTHLY",
|
|
1289
|
-
YEARLY = "YEARLY",
|
|
1290
|
-
ONE_TIME = "ONE_TIME",
|
|
1291
|
-
TWO_YEARS = "TWO_YEARS",
|
|
1292
|
-
THREE_YEARS = "THREE_YEARS",
|
|
1293
|
-
FOUR_YEARS = "FOUR_YEARS",
|
|
1294
|
-
FIVE_YEARS = "FIVE_YEARS"
|
|
1295
|
-
}
|
|
1296
|
-
interface GetUrlRequest$1 {
|
|
1297
|
-
/**
|
|
1298
|
-
* ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
1299
|
-
* for a list of your app's supported product IDs.
|
|
1300
|
-
*/
|
|
1301
|
-
productId: string;
|
|
1302
|
-
/**
|
|
1303
|
-
* URL for the Wix checkout page. Redirect site owners to this URL after
|
|
1304
|
-
* they've successfully purchased a paid plan for your app.
|
|
1305
|
-
*/
|
|
1306
|
-
successUrl?: string | null;
|
|
1307
|
-
/**
|
|
1308
|
-
* Whether the checkout is for testing purposes only. Testing is mainly
|
|
1309
|
-
* relevant for in-app purchase flows. When `true`, Wix charges the site
|
|
1310
|
-
* owners an amount of `0.00`.
|
|
1311
|
-
*/
|
|
1312
|
-
testCheckout?: boolean;
|
|
1313
|
-
/** Information about the paid plan's billing cycle. */
|
|
1314
|
-
billingCycle?: PaymentCycle$1;
|
|
1315
|
-
/**
|
|
1316
|
-
* 2-letter country code in
|
|
1317
|
-
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
1318
|
-
* format.
|
|
1319
|
-
*
|
|
1320
|
-
* Default: `"US"`
|
|
1321
|
-
*/
|
|
1322
|
-
countryCode?: string | null;
|
|
1323
|
-
/**
|
|
1324
|
-
* 2-letter language code in
|
|
1325
|
-
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
1326
|
-
*
|
|
1327
|
-
* Default: `"EN"`
|
|
1328
|
-
*/
|
|
1329
|
-
languageCode?: string | null;
|
|
1330
|
-
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
1331
|
-
couponCode?: string | null;
|
|
1332
|
-
}
|
|
1333
|
-
interface GetUrlResponse$1 {
|
|
1334
|
-
/** URL for the Wix checkout page. */
|
|
1335
|
-
checkoutUrl?: string;
|
|
1336
|
-
/**
|
|
1337
|
-
* Token for the Wix checkout page. The token holds all data about the order
|
|
1338
|
-
* you're creating a checkout for. It is [signed](),
|
|
1339
|
-
* so you can verify that it comes from Wix.
|
|
1340
|
-
*/
|
|
1341
|
-
token?: string | null;
|
|
1342
|
-
}
|
|
1343
|
-
interface GetPurchaseHistoryRequest$1 {
|
|
1344
|
-
}
|
|
1345
|
-
interface GetPurchaseHistoryResponse$1 {
|
|
1346
|
-
/** Retrieved purchases the site owners have completed for you app. */
|
|
1347
|
-
purchases?: PurchasedItem$1[];
|
|
1348
|
-
}
|
|
1349
|
-
interface GetUrlResponseNonNullableFields$1 {
|
|
1350
|
-
checkoutUrl: string;
|
|
1351
|
-
}
|
|
1352
|
-
interface PurchasedItemNonNullableFields$1 {
|
|
1353
|
-
productId: string;
|
|
1354
|
-
price: string;
|
|
1355
|
-
currency: string;
|
|
1356
|
-
billingCycle: PaymentCycle$1;
|
|
1357
|
-
}
|
|
1358
|
-
interface GetPurchaseHistoryResponseNonNullableFields$1 {
|
|
1359
|
-
purchases: PurchasedItemNonNullableFields$1[];
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
interface PurchasedItem {
|
|
1363
|
-
/** ID of your app's paid plan. */
|
|
1364
|
-
productId?: string;
|
|
1365
|
-
/** Price of your app's paid plan. For example, `9.95`. */
|
|
1366
|
-
price?: string;
|
|
1367
|
-
/**
|
|
1368
|
-
* 3-letter currency code in
|
|
1369
|
-
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1370
|
-
*/
|
|
1371
|
-
currency?: string;
|
|
1372
|
-
/** Information about the billing cycle for your app's paid plan. */
|
|
1373
|
-
billingCycle?: PaymentCycle;
|
|
1374
|
-
/**
|
|
1375
|
-
* Date and time the site onwers have purchased your app's paid plan in
|
|
1376
|
-
* `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
1377
|
-
*/
|
|
1378
|
-
dateCreated?: Date | null;
|
|
1379
|
-
}
|
|
1380
|
-
declare enum PaymentCycle {
|
|
1381
|
-
NO_CYCLE = "NO_CYCLE",
|
|
1382
|
-
MONTHLY = "MONTHLY",
|
|
1383
|
-
YEARLY = "YEARLY",
|
|
1384
|
-
ONE_TIME = "ONE_TIME",
|
|
1385
|
-
TWO_YEARS = "TWO_YEARS",
|
|
1386
|
-
THREE_YEARS = "THREE_YEARS",
|
|
1387
|
-
FOUR_YEARS = "FOUR_YEARS",
|
|
1388
|
-
FIVE_YEARS = "FIVE_YEARS"
|
|
1389
|
-
}
|
|
1390
|
-
interface GetUrlRequest {
|
|
1391
|
-
/**
|
|
1392
|
-
* ID of your app's paid plan to retrieve the Wix checkout URL for. Check your app's dashboard
|
|
1393
|
-
* for a list of your app's supported product IDs.
|
|
1394
|
-
*/
|
|
1395
|
-
productId: string;
|
|
1396
|
-
/**
|
|
1397
|
-
* URL for the Wix checkout page. Redirect site owners to this URL after
|
|
1398
|
-
* they've successfully purchased a paid plan for your app.
|
|
1399
|
-
*/
|
|
1400
|
-
successUrl?: string | null;
|
|
1401
|
-
/**
|
|
1402
|
-
* Whether the checkout is for testing purposes only. Testing is mainly
|
|
1403
|
-
* relevant for in-app purchase flows. When `true`, Wix charges the site
|
|
1404
|
-
* owners an amount of `0.00`.
|
|
1405
|
-
*/
|
|
1406
|
-
testCheckout?: boolean;
|
|
1407
|
-
/** Information about the paid plan's billing cycle. */
|
|
1408
|
-
billingCycle?: PaymentCycle;
|
|
1409
|
-
/**
|
|
1410
|
-
* 2-letter country code in
|
|
1411
|
-
* [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
|
1412
|
-
* format.
|
|
1413
|
-
*
|
|
1414
|
-
* Default: `"US"`
|
|
1415
|
-
*/
|
|
1416
|
-
countryCode?: string | null;
|
|
1417
|
-
/**
|
|
1418
|
-
* 2-letter language code in
|
|
1419
|
-
* [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
1420
|
-
*
|
|
1421
|
-
* Default: `"EN"`
|
|
1422
|
-
*/
|
|
1423
|
-
languageCode?: string | null;
|
|
1424
|
-
/** Coupon code for the paid plan. Available only in case there is a discount. */
|
|
1425
|
-
couponCode?: string | null;
|
|
1426
|
-
}
|
|
1427
|
-
interface GetUrlResponse {
|
|
1428
|
-
/** URL for the Wix checkout page. */
|
|
1429
|
-
checkoutUrl?: string;
|
|
1430
|
-
/**
|
|
1431
|
-
* Token for the Wix checkout page. The token holds all data about the order
|
|
1432
|
-
* you're creating a checkout for. It is [signed](),
|
|
1433
|
-
* so you can verify that it comes from Wix.
|
|
1434
|
-
*/
|
|
1435
|
-
token?: string | null;
|
|
1436
|
-
}
|
|
1437
|
-
interface GetPurchaseHistoryRequest {
|
|
1438
|
-
}
|
|
1439
|
-
interface GetPurchaseHistoryResponse {
|
|
1440
|
-
/** Retrieved purchases the site owners have completed for you app. */
|
|
1441
|
-
purchases?: PurchasedItem[];
|
|
1442
|
-
}
|
|
1443
|
-
interface GetUrlResponseNonNullableFields {
|
|
1444
|
-
checkoutUrl: string;
|
|
1445
|
-
}
|
|
1446
|
-
interface PurchasedItemNonNullableFields {
|
|
1447
|
-
productId: string;
|
|
1448
|
-
price: string;
|
|
1449
|
-
currency: string;
|
|
1450
|
-
billingCycle: PaymentCycle;
|
|
1451
|
-
}
|
|
1452
|
-
interface GetPurchaseHistoryResponseNonNullableFields {
|
|
1453
|
-
purchases: PurchasedItemNonNullableFields[];
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1457
|
-
getUrl: (context: any) => string;
|
|
1458
|
-
httpMethod: K;
|
|
1459
|
-
path: string;
|
|
1460
|
-
pathParams: M;
|
|
1461
|
-
__requestType: T;
|
|
1462
|
-
__originalRequestType: S;
|
|
1463
|
-
__responseType: Q;
|
|
1464
|
-
__originalResponseType: R;
|
|
1465
|
-
};
|
|
1466
|
-
declare function getUrl(): __PublicMethodMetaInfo$1<'POST', {}, GetUrlRequest, GetUrlRequest$1, GetUrlResponse & GetUrlResponseNonNullableFields, GetUrlResponse$1 & GetUrlResponseNonNullableFields$1>;
|
|
1467
|
-
declare function getPurchaseHistory(): __PublicMethodMetaInfo$1<'GET', {}, GetPurchaseHistoryRequest, GetPurchaseHistoryRequest$1, GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields, GetPurchaseHistoryResponse$1 & GetPurchaseHistoryResponseNonNullableFields$1>;
|
|
1468
|
-
|
|
1469
|
-
declare const meta$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1470
|
-
declare const meta$1_getUrl: typeof getUrl;
|
|
1471
|
-
declare namespace meta$1 {
|
|
1472
|
-
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_getPurchaseHistory as getPurchaseHistory, meta$1_getUrl as getUrl };
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/** Embedded script data */
|
|
1476
|
-
interface ScriptProperties$1 {
|
|
1477
|
-
/** Script parameters */
|
|
1478
|
-
parameters?: Record<string, string>;
|
|
1479
|
-
/** Whether script is disabled or not, defaults to false (not disabled) */
|
|
1480
|
-
disabled?: boolean;
|
|
1481
|
-
}
|
|
1482
|
-
interface EmbedScriptRequest$1 {
|
|
1483
|
-
/** Details of the script to embed. */
|
|
1484
|
-
properties: ScriptProperties$1;
|
|
1485
|
-
/** ID of the corresponding embedded script component. */
|
|
1486
|
-
componentId?: string | null;
|
|
1487
|
-
}
|
|
1488
|
-
interface EmbedScriptResponse$1 {
|
|
1489
|
-
/** Details of the embedded script. */
|
|
1490
|
-
properties?: ScriptProperties$1;
|
|
1491
|
-
}
|
|
1492
|
-
interface GetEmbeddedScriptRequest$1 {
|
|
1493
|
-
/** Component ID of the embedded script to retrieve. */
|
|
1494
|
-
componentId?: string | null;
|
|
1495
|
-
}
|
|
1496
|
-
interface GetEmbeddedScriptResponse$1 {
|
|
1497
|
-
/** Details of the retrieved embedded script. */
|
|
1498
|
-
properties?: ScriptProperties$1;
|
|
1499
|
-
}
|
|
1500
|
-
interface ScriptPropertiesNonNullableFields$1 {
|
|
1501
|
-
disabled: boolean;
|
|
1502
|
-
}
|
|
1503
|
-
interface EmbedScriptResponseNonNullableFields$1 {
|
|
1504
|
-
properties?: ScriptPropertiesNonNullableFields$1;
|
|
1505
|
-
}
|
|
1506
|
-
interface GetEmbeddedScriptResponseNonNullableFields$1 {
|
|
1507
|
-
properties?: ScriptPropertiesNonNullableFields$1;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
/** Embedded script data */
|
|
1511
|
-
interface ScriptProperties {
|
|
1512
|
-
/** Script parameters */
|
|
1513
|
-
parameters?: Record<string, string>;
|
|
1514
|
-
/** Whether script is disabled or not, defaults to false (not disabled) */
|
|
1515
|
-
disabled?: boolean;
|
|
1516
|
-
}
|
|
1517
|
-
interface EmbedScriptRequest {
|
|
1518
|
-
/** Details of the script to embed. */
|
|
1519
|
-
properties: ScriptProperties;
|
|
1520
|
-
/** ID of the corresponding embedded script component. */
|
|
1521
|
-
componentId?: string | null;
|
|
1522
|
-
}
|
|
1523
|
-
interface EmbedScriptResponse {
|
|
1524
|
-
/** Details of the embedded script. */
|
|
1525
|
-
properties?: ScriptProperties;
|
|
1526
|
-
}
|
|
1527
|
-
interface GetEmbeddedScriptRequest {
|
|
1528
|
-
/** Component ID of the embedded script to retrieve. */
|
|
1529
|
-
componentId?: string | null;
|
|
1530
|
-
}
|
|
1531
|
-
interface GetEmbeddedScriptResponse {
|
|
1532
|
-
/** Details of the retrieved embedded script. */
|
|
1533
|
-
properties?: ScriptProperties;
|
|
1534
|
-
}
|
|
1535
|
-
interface ScriptPropertiesNonNullableFields {
|
|
1536
|
-
disabled: boolean;
|
|
1537
|
-
}
|
|
1538
|
-
interface EmbedScriptResponseNonNullableFields {
|
|
1539
|
-
properties?: ScriptPropertiesNonNullableFields;
|
|
1540
|
-
}
|
|
1541
|
-
interface GetEmbeddedScriptResponseNonNullableFields {
|
|
1542
|
-
properties?: ScriptPropertiesNonNullableFields;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1546
|
-
getUrl: (context: any) => string;
|
|
1547
|
-
httpMethod: K;
|
|
1548
|
-
path: string;
|
|
1549
|
-
pathParams: M;
|
|
1550
|
-
__requestType: T;
|
|
1551
|
-
__originalRequestType: S;
|
|
1552
|
-
__responseType: Q;
|
|
1553
|
-
__originalResponseType: R;
|
|
1554
|
-
};
|
|
1555
|
-
declare function embedScript(): __PublicMethodMetaInfo<'POST', {}, EmbedScriptRequest, EmbedScriptRequest$1, EmbedScriptResponse & EmbedScriptResponseNonNullableFields, EmbedScriptResponse$1 & EmbedScriptResponseNonNullableFields$1>;
|
|
1556
|
-
declare function getEmbeddedScript(): __PublicMethodMetaInfo<'GET', {}, GetEmbeddedScriptRequest, GetEmbeddedScriptRequest$1, GetEmbeddedScriptResponse & GetEmbeddedScriptResponseNonNullableFields, GetEmbeddedScriptResponse$1 & GetEmbeddedScriptResponseNonNullableFields$1>;
|
|
1557
|
-
|
|
1558
|
-
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
1559
|
-
declare const meta_embedScript: typeof embedScript;
|
|
1560
|
-
declare const meta_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1561
|
-
declare namespace meta {
|
|
1562
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_embedScript as embedScript, meta_getEmbeddedScript as getEmbeddedScript };
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
export { meta$3 as appInstances, meta$4 as appPlans, meta$2 as biEvents, meta$1 as billing, meta as embeddedScripts };
|