@wix/auto_sdk_app-management_app-plans 1.0.13 → 1.0.15
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/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.d.mts} +34 -34
- package/build/{internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.d.ts} +34 -34
- package/build/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
- package/build/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
- package/build/index.js +253 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +222 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → internal/appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.d.mts} +40 -33
- package/build/internal/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-BX_XsPPf.d.ts} +40 -33
- package/build/internal/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
- package/build/internal/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
- package/build/internal/index.js +253 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +222 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +299 -0
- package/build/internal/meta.d.ts +299 -0
- package/build/internal/meta.js +173 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +146 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +299 -0
- package/build/meta.d.ts +299 -0
- package/build/meta.js +173 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +146 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
- package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
- package/build/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
- package/build/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
- package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
- package/build/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
- package/build/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
- package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
- package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
- package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface AppPlans {
|
|
2
2
|
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
-
|
|
3
|
+
_id?: string;
|
|
4
4
|
/**
|
|
5
5
|
* List of the app's pricing plans.
|
|
6
6
|
*
|
|
@@ -10,7 +10,7 @@ export interface AppPlans {
|
|
|
10
10
|
*/
|
|
11
11
|
plans?: Plan[];
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare enum SaleType {
|
|
14
14
|
/** Default value, can be used when no specific sale is associated. */
|
|
15
15
|
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
16
16
|
CYBER_MONDAY = "CYBER_MONDAY",
|
|
@@ -19,8 +19,8 @@ export declare enum SaleType {
|
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
21
|
/** @enumType */
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
|
|
23
|
+
declare enum DiscountType {
|
|
24
24
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
25
25
|
/** Discount is a fixed amount in USD. */
|
|
26
26
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
@@ -28,8 +28,8 @@ export declare enum DiscountType {
|
|
|
28
28
|
PERCENTAGE = "PERCENTAGE"
|
|
29
29
|
}
|
|
30
30
|
/** @enumType */
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
32
|
+
declare enum SourceType {
|
|
33
33
|
/** Default value, can be used when no specific source is associated. */
|
|
34
34
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
35
35
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -37,16 +37,14 @@ export declare enum SourceType {
|
|
|
37
37
|
/** Discount is due to App Benefit */
|
|
38
38
|
APP_BENEFIT = "APP_BENEFIT"
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
export type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
|
|
42
|
-
export interface SaleSource {
|
|
40
|
+
interface SaleSource {
|
|
43
41
|
/** @format GUID */
|
|
44
42
|
saleId?: string | null;
|
|
45
43
|
saleType?: SaleTypeWithLiterals;
|
|
46
44
|
startDate?: Date | null;
|
|
47
45
|
endDate?: Date | null;
|
|
48
46
|
}
|
|
49
|
-
|
|
47
|
+
interface Cycle {
|
|
50
48
|
/**
|
|
51
49
|
* Type of the billing cycle.
|
|
52
50
|
*
|
|
@@ -58,7 +56,7 @@ export interface Cycle {
|
|
|
58
56
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
59
57
|
cycleDuration?: Duration;
|
|
60
58
|
}
|
|
61
|
-
|
|
59
|
+
declare enum DurationUnit {
|
|
62
60
|
/** unknown interval unit */
|
|
63
61
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
64
62
|
/** month */
|
|
@@ -67,21 +65,21 @@ export declare enum DurationUnit {
|
|
|
67
65
|
YEAR = "YEAR"
|
|
68
66
|
}
|
|
69
67
|
/** @enumType */
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
69
|
+
declare enum CycleType {
|
|
72
70
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
73
71
|
ONE_TIME = "ONE_TIME",
|
|
74
72
|
RECURRING = "RECURRING"
|
|
75
73
|
}
|
|
76
74
|
/** @enumType */
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
76
|
+
interface Duration {
|
|
79
77
|
/** Unit of the billing cycle. */
|
|
80
78
|
unit?: DurationUnitWithLiterals;
|
|
81
79
|
/** Count of units that make up the billing cycle. */
|
|
82
80
|
count?: number;
|
|
83
81
|
}
|
|
84
|
-
|
|
82
|
+
interface UsageBasedDetails {
|
|
85
83
|
/**
|
|
86
84
|
* Smallest possible amount that your app charges customers in usage-based
|
|
87
85
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -113,7 +111,7 @@ export interface UsageBasedDetails {
|
|
|
113
111
|
*/
|
|
114
112
|
customChargeDescription?: string | null;
|
|
115
113
|
}
|
|
116
|
-
|
|
114
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
117
115
|
type?: DiscountTypeWithLiterals;
|
|
118
116
|
/**
|
|
119
117
|
* Discount amount
|
|
@@ -144,9 +142,9 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
144
142
|
totalPrice?: string;
|
|
145
143
|
}
|
|
146
144
|
/** @oneof */
|
|
147
|
-
|
|
145
|
+
interface DiscountSourceDataOneOf {
|
|
148
146
|
}
|
|
149
|
-
|
|
147
|
+
declare enum BillingSource {
|
|
150
148
|
UNKNOWN = "UNKNOWN",
|
|
151
149
|
/** plan billing and charges is managed by Wix */
|
|
152
150
|
WIX = "WIX",
|
|
@@ -154,8 +152,8 @@ export declare enum BillingSource {
|
|
|
154
152
|
EXTERNAL = "EXTERNAL"
|
|
155
153
|
}
|
|
156
154
|
/** @enumType */
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
156
|
+
interface Price {
|
|
159
157
|
/**
|
|
160
158
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
161
159
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -194,13 +192,13 @@ export interface Price {
|
|
|
194
192
|
*/
|
|
195
193
|
customPaymentTitle?: string | null;
|
|
196
194
|
}
|
|
197
|
-
|
|
195
|
+
interface Plan {
|
|
198
196
|
/**
|
|
199
197
|
* ID of the app plan.
|
|
200
198
|
* @format GUID
|
|
201
199
|
* @readonly
|
|
202
200
|
*/
|
|
203
|
-
|
|
201
|
+
_id?: string;
|
|
204
202
|
/**
|
|
205
203
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
206
204
|
* Identical to `vendorProductId` in the
|
|
@@ -230,7 +228,7 @@ export interface Plan {
|
|
|
230
228
|
*/
|
|
231
229
|
prices?: Price[];
|
|
232
230
|
}
|
|
233
|
-
|
|
231
|
+
interface ListAppPlansByAppIdRequest {
|
|
234
232
|
/**
|
|
235
233
|
* List of app IDs to retrieve plans for.
|
|
236
234
|
*
|
|
@@ -241,7 +239,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
241
239
|
*/
|
|
242
240
|
appIds: string[];
|
|
243
241
|
}
|
|
244
|
-
|
|
242
|
+
interface ListAppPlansByAppIdResponse {
|
|
245
243
|
/**
|
|
246
244
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
247
245
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -278,7 +276,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
278
276
|
*/
|
|
279
277
|
appPlans?: AppPlans[];
|
|
280
278
|
}
|
|
281
|
-
|
|
279
|
+
interface TaxSettings {
|
|
282
280
|
/**
|
|
283
281
|
* Whether you must display the total price including taxes in the given
|
|
284
282
|
* country.
|
|
@@ -299,14 +297,14 @@ export interface TaxSettings {
|
|
|
299
297
|
*/
|
|
300
298
|
taxType?: TaxTypeWithLiterals;
|
|
301
299
|
}
|
|
302
|
-
|
|
300
|
+
declare enum TaxType {
|
|
303
301
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
304
302
|
VAT = "VAT",
|
|
305
303
|
GST = "GST"
|
|
306
304
|
}
|
|
307
305
|
/** @enumType */
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
307
|
+
interface GetAvailableAppPlansRequest {
|
|
310
308
|
/**
|
|
311
309
|
* AppId to get the available app plans for.
|
|
312
310
|
* @format GUID
|
|
@@ -319,7 +317,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
319
317
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
320
318
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
321
319
|
*/
|
|
322
|
-
|
|
320
|
+
interface AppPlanInfo {
|
|
323
321
|
/**
|
|
324
322
|
* The app plan's vendorId to retrieve the response for.
|
|
325
323
|
*
|
|
@@ -330,7 +328,7 @@ export interface AppPlanInfo {
|
|
|
330
328
|
/** The app plan cycle to retrieve the response for. */
|
|
331
329
|
billingCycle?: Cycle;
|
|
332
330
|
}
|
|
333
|
-
|
|
331
|
+
interface GetAvailableAppPlansResponse {
|
|
334
332
|
/** The available upgrades for the given app plan. */
|
|
335
333
|
availableUpgrades?: AppPlans;
|
|
336
334
|
/** The available downgrades for the given app plan. */
|
|
@@ -338,7 +336,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
338
336
|
/** The current app plan. */
|
|
339
337
|
currentPlan?: Plan;
|
|
340
338
|
}
|
|
341
|
-
|
|
339
|
+
interface GetPricingPageUrlRequest {
|
|
342
340
|
/**
|
|
343
341
|
* AppId to get the pricing page url for.
|
|
344
342
|
* @format GUID
|
|
@@ -347,10 +345,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
347
345
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
348
346
|
appPlanInfo?: AppPlanInfo;
|
|
349
347
|
}
|
|
350
|
-
|
|
348
|
+
interface GetPricingPageUrlResponse {
|
|
351
349
|
/**
|
|
352
350
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
353
351
|
* @format WEB_URL
|
|
354
352
|
*/
|
|
355
353
|
packagePickerUrl?: string | null;
|
|
356
354
|
}
|
|
355
|
+
|
|
356
|
+
export { type AppPlans as A, BillingSource as B, CycleType as C, DiscountType as D, type GetAvailableAppPlansRequest as G, type ListAppPlansByAppIdResponse as L, type Price as P, SaleType as S, TaxType as T, type UsageBasedDetails as U, SourceType as a, DurationUnit as b, type SaleSource as c, type Cycle as d, type Duration as e, type Discount as f, type DiscountSourceDataOneOf as g, type Plan as h, type ListAppPlansByAppIdRequest as i, type TaxSettings as j, type AppPlanInfo as k, type GetAvailableAppPlansResponse as l, type GetPricingPageUrlRequest as m, type GetPricingPageUrlResponse as n };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface AppPlans {
|
|
2
2
|
/** App ID, as defined in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view). */
|
|
3
|
-
|
|
3
|
+
_id?: string;
|
|
4
4
|
/**
|
|
5
5
|
* List of the app's pricing plans.
|
|
6
6
|
*
|
|
@@ -10,7 +10,7 @@ export interface AppPlans {
|
|
|
10
10
|
*/
|
|
11
11
|
plans?: Plan[];
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare enum SaleType {
|
|
14
14
|
/** Default value, can be used when no specific sale is associated. */
|
|
15
15
|
SALE_TYPE_UNSPECIFIED = "SALE_TYPE_UNSPECIFIED",
|
|
16
16
|
CYBER_MONDAY = "CYBER_MONDAY",
|
|
@@ -19,8 +19,8 @@ export declare enum SaleType {
|
|
|
19
19
|
DEVELOPER_SALE = "DEVELOPER_SALE"
|
|
20
20
|
}
|
|
21
21
|
/** @enumType */
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
|
|
23
|
+
declare enum DiscountType {
|
|
24
24
|
DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
|
|
25
25
|
/** Discount is a fixed amount in USD. */
|
|
26
26
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
@@ -28,8 +28,8 @@ export declare enum DiscountType {
|
|
|
28
28
|
PERCENTAGE = "PERCENTAGE"
|
|
29
29
|
}
|
|
30
30
|
/** @enumType */
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
|
|
32
|
+
declare enum SourceType {
|
|
33
33
|
/** Default value, can be used when no specific source is associated. */
|
|
34
34
|
SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
|
|
35
35
|
/** Discount is due to Wix/Developer Sale */
|
|
@@ -37,16 +37,14 @@ export declare enum SourceType {
|
|
|
37
37
|
/** Discount is due to App Benefit */
|
|
38
38
|
APP_BENEFIT = "APP_BENEFIT"
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
export type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
|
|
42
|
-
export interface SaleSource {
|
|
40
|
+
interface SaleSource {
|
|
43
41
|
/** @format GUID */
|
|
44
42
|
saleId?: string | null;
|
|
45
43
|
saleType?: SaleTypeWithLiterals;
|
|
46
44
|
startDate?: Date | null;
|
|
47
45
|
endDate?: Date | null;
|
|
48
46
|
}
|
|
49
|
-
|
|
47
|
+
interface Cycle {
|
|
50
48
|
/**
|
|
51
49
|
* Type of the billing cycle.
|
|
52
50
|
*
|
|
@@ -58,7 +56,7 @@ export interface Cycle {
|
|
|
58
56
|
/** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
|
|
59
57
|
cycleDuration?: Duration;
|
|
60
58
|
}
|
|
61
|
-
|
|
59
|
+
declare enum DurationUnit {
|
|
62
60
|
/** unknown interval unit */
|
|
63
61
|
UNKNOWN_UNIT = "UNKNOWN_UNIT",
|
|
64
62
|
/** month */
|
|
@@ -67,21 +65,21 @@ export declare enum DurationUnit {
|
|
|
67
65
|
YEAR = "YEAR"
|
|
68
66
|
}
|
|
69
67
|
/** @enumType */
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
|
|
69
|
+
declare enum CycleType {
|
|
72
70
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
73
71
|
ONE_TIME = "ONE_TIME",
|
|
74
72
|
RECURRING = "RECURRING"
|
|
75
73
|
}
|
|
76
74
|
/** @enumType */
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
|
|
76
|
+
interface Duration {
|
|
79
77
|
/** Unit of the billing cycle. */
|
|
80
78
|
unit?: DurationUnitWithLiterals;
|
|
81
79
|
/** Count of units that make up the billing cycle. */
|
|
82
80
|
count?: number;
|
|
83
81
|
}
|
|
84
|
-
|
|
82
|
+
interface UsageBasedDetails {
|
|
85
83
|
/**
|
|
86
84
|
* Smallest possible amount that your app charges customers in usage-based
|
|
87
85
|
* pricing. For example, the price of a single SMS message if your
|
|
@@ -113,7 +111,7 @@ export interface UsageBasedDetails {
|
|
|
113
111
|
*/
|
|
114
112
|
customChargeDescription?: string | null;
|
|
115
113
|
}
|
|
116
|
-
|
|
114
|
+
interface Discount extends DiscountSourceDataOneOf {
|
|
117
115
|
type?: DiscountTypeWithLiterals;
|
|
118
116
|
/**
|
|
119
117
|
* Discount amount
|
|
@@ -144,9 +142,9 @@ export interface Discount extends DiscountSourceDataOneOf {
|
|
|
144
142
|
totalPrice?: string;
|
|
145
143
|
}
|
|
146
144
|
/** @oneof */
|
|
147
|
-
|
|
145
|
+
interface DiscountSourceDataOneOf {
|
|
148
146
|
}
|
|
149
|
-
|
|
147
|
+
declare enum BillingSource {
|
|
150
148
|
UNKNOWN = "UNKNOWN",
|
|
151
149
|
/** plan billing and charges is managed by Wix */
|
|
152
150
|
WIX = "WIX",
|
|
@@ -154,8 +152,8 @@ export declare enum BillingSource {
|
|
|
154
152
|
EXTERNAL = "EXTERNAL"
|
|
155
153
|
}
|
|
156
154
|
/** @enumType */
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
|
|
156
|
+
interface Price {
|
|
159
157
|
/**
|
|
160
158
|
* Price without taxes. For yearly plans, Wix calculates and returns the
|
|
161
159
|
* average price per month. You can get the full price by multiplying the
|
|
@@ -194,13 +192,13 @@ export interface Price {
|
|
|
194
192
|
*/
|
|
195
193
|
customPaymentTitle?: string | null;
|
|
196
194
|
}
|
|
197
|
-
|
|
195
|
+
interface Plan {
|
|
198
196
|
/**
|
|
199
197
|
* ID of the app plan.
|
|
200
198
|
* @format GUID
|
|
201
199
|
* @readonly
|
|
202
200
|
*/
|
|
203
|
-
|
|
201
|
+
_id?: string;
|
|
204
202
|
/**
|
|
205
203
|
* ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
|
|
206
204
|
* Identical to `vendorProductId` in the
|
|
@@ -230,7 +228,7 @@ export interface Plan {
|
|
|
230
228
|
*/
|
|
231
229
|
prices?: Price[];
|
|
232
230
|
}
|
|
233
|
-
|
|
231
|
+
interface ListAppPlansByAppIdRequest {
|
|
234
232
|
/**
|
|
235
233
|
* List of app IDs to retrieve plans for.
|
|
236
234
|
*
|
|
@@ -241,7 +239,7 @@ export interface ListAppPlansByAppIdRequest {
|
|
|
241
239
|
*/
|
|
242
240
|
appIds: string[];
|
|
243
241
|
}
|
|
244
|
-
|
|
242
|
+
interface ListAppPlansByAppIdResponse {
|
|
245
243
|
/**
|
|
246
244
|
* Tax settings. Wix calculates the tax settings based on the country code that
|
|
247
245
|
* you pass in the call's header. If you don't pass a country code in the header,
|
|
@@ -278,7 +276,7 @@ export interface ListAppPlansByAppIdResponse {
|
|
|
278
276
|
*/
|
|
279
277
|
appPlans?: AppPlans[];
|
|
280
278
|
}
|
|
281
|
-
|
|
279
|
+
interface TaxSettings {
|
|
282
280
|
/**
|
|
283
281
|
* Whether you must display the total price including taxes in the given
|
|
284
282
|
* country.
|
|
@@ -299,14 +297,14 @@ export interface TaxSettings {
|
|
|
299
297
|
*/
|
|
300
298
|
taxType?: TaxTypeWithLiterals;
|
|
301
299
|
}
|
|
302
|
-
|
|
300
|
+
declare enum TaxType {
|
|
303
301
|
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
304
302
|
VAT = "VAT",
|
|
305
303
|
GST = "GST"
|
|
306
304
|
}
|
|
307
305
|
/** @enumType */
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
|
|
307
|
+
interface GetAvailableAppPlansRequest {
|
|
310
308
|
/**
|
|
311
309
|
* AppId to get the available app plans for.
|
|
312
310
|
* @format GUID
|
|
@@ -319,7 +317,7 @@ export interface GetAvailableAppPlansRequest {
|
|
|
319
317
|
* An `AppPlanInfo` object describes which app plan you want to retrieve data for.
|
|
320
318
|
* Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
|
|
321
319
|
*/
|
|
322
|
-
|
|
320
|
+
interface AppPlanInfo {
|
|
323
321
|
/**
|
|
324
322
|
* The app plan's vendorId to retrieve the response for.
|
|
325
323
|
*
|
|
@@ -330,7 +328,7 @@ export interface AppPlanInfo {
|
|
|
330
328
|
/** The app plan cycle to retrieve the response for. */
|
|
331
329
|
billingCycle?: Cycle;
|
|
332
330
|
}
|
|
333
|
-
|
|
331
|
+
interface GetAvailableAppPlansResponse {
|
|
334
332
|
/** The available upgrades for the given app plan. */
|
|
335
333
|
availableUpgrades?: AppPlans;
|
|
336
334
|
/** The available downgrades for the given app plan. */
|
|
@@ -338,7 +336,7 @@ export interface GetAvailableAppPlansResponse {
|
|
|
338
336
|
/** The current app plan. */
|
|
339
337
|
currentPlan?: Plan;
|
|
340
338
|
}
|
|
341
|
-
|
|
339
|
+
interface GetPricingPageUrlRequest {
|
|
342
340
|
/**
|
|
343
341
|
* AppId to get the pricing page url for.
|
|
344
342
|
* @format GUID
|
|
@@ -347,10 +345,12 @@ export interface GetPricingPageUrlRequest {
|
|
|
347
345
|
/** The specific app plan to retrieve the pricing page url for. */
|
|
348
346
|
appPlanInfo?: AppPlanInfo;
|
|
349
347
|
}
|
|
350
|
-
|
|
348
|
+
interface GetPricingPageUrlResponse {
|
|
351
349
|
/**
|
|
352
350
|
* the pricing page url, if there is a app plan that is upgradable.
|
|
353
351
|
* @format WEB_URL
|
|
354
352
|
*/
|
|
355
353
|
packagePickerUrl?: string | null;
|
|
356
354
|
}
|
|
355
|
+
|
|
356
|
+
export { type AppPlans as A, BillingSource as B, CycleType as C, DiscountType as D, type GetAvailableAppPlansRequest as G, type ListAppPlansByAppIdResponse as L, type Price as P, SaleType as S, TaxType as T, type UsageBasedDetails as U, SourceType as a, DurationUnit as b, type SaleSource as c, type Cycle as d, type Duration as e, type Discount as f, type DiscountSourceDataOneOf as g, type Plan as h, type ListAppPlansByAppIdRequest as i, type TaxSettings as j, type AppPlanInfo as k, type GetAvailableAppPlansResponse as l, type GetPricingPageUrlRequest as m, type GetPricingPageUrlResponse as n };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal.
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function listAppPlansByAppId(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.mjs';
|
|
3
|
+
export { k as AppPlanInfo, A as AppPlans, B as BillingSource, d as Cycle, C as CycleType, f as Discount, g as DiscountSourceDataOneOf, D as DiscountType, e as Duration, b as DurationUnit, G as GetAvailableAppPlansRequest, l as GetAvailableAppPlansResponse, m as GetPricingPageUrlRequest, n as GetPricingPageUrlResponse, i as ListAppPlansByAppIdRequest, h as Plan, P as Price, c as SaleSource, S as SaleType, a as SourceType, j as TaxSettings, T as TaxType, U as UsageBasedDetails } from './appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.mjs';
|
|
4
|
+
|
|
5
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
7
6
|
interface ListAppPlansByAppIdSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves plans for the given apps.
|
|
@@ -32,4 +31,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
32
31
|
*/
|
|
33
32
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse>;
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1>;
|
|
36
|
+
|
|
37
|
+
export { ListAppPlansByAppIdResponse, listAppPlansByAppId };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function listAppPlansByAppId(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListAppPlansByAppIdResponse } from './appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.js';
|
|
3
|
+
export { k as AppPlanInfo, A as AppPlans, B as BillingSource, d as Cycle, C as CycleType, f as Discount, g as DiscountSourceDataOneOf, D as DiscountType, e as Duration, b as DurationUnit, G as GetAvailableAppPlansRequest, l as GetAvailableAppPlansResponse, m as GetPricingPageUrlRequest, n as GetPricingPageUrlResponse, i as ListAppPlansByAppIdRequest, h as Plan, P as Price, c as SaleSource, S as SaleType, a as SourceType, j as TaxSettings, T as TaxType, U as UsageBasedDetails } from './appmarket-v1-app-plans-app-plans.universal-DIYQWTDw.js';
|
|
4
|
+
|
|
5
|
+
declare function listAppPlansByAppId$1(httpClient: HttpClient): ListAppPlansByAppIdSignature;
|
|
7
6
|
interface ListAppPlansByAppIdSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves plans for the given apps.
|
|
@@ -32,4 +31,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
32
31
|
*/
|
|
33
32
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse>;
|
|
34
33
|
}
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1>;
|
|
36
|
+
|
|
37
|
+
export { ListAppPlansByAppIdResponse, listAppPlansByAppId };
|