@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.
Files changed (130) hide show
  1. 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
  2. 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
  3. package/build/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
  4. package/build/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
  5. package/build/index.js +253 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +222 -0
  8. package/build/index.mjs.map +1 -0
  9. 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
  10. 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
  11. package/build/internal/{cjs/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.mts} +9 -7
  12. package/build/internal/{es/src/appmarket-v1-app-plans-app-plans.public.d.ts → index.d.ts} +9 -7
  13. package/build/internal/index.js +253 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +222 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +299 -0
  18. package/build/internal/meta.d.ts +299 -0
  19. package/build/internal/meta.js +173 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +146 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +299 -0
  24. package/build/meta.d.ts +299 -0
  25. package/build/meta.js +173 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +146 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
  40. package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
  41. package/build/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
  42. package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
  43. package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
  44. package/build/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
  45. package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
  46. package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
  47. package/build/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
  48. package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
  49. package/build/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
  50. package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
  51. package/build/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
  52. package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
  53. package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
  54. package/build/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
  66. package/build/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
  67. package/build/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
  68. package/build/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
  69. package/build/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
  70. package/build/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
  71. package/build/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
  72. package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
  73. package/build/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
  74. package/build/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
  75. package/build/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
  76. package/build/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
  77. package/build/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
  78. package/build/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -391
  79. package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
  80. package/build/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
  91. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js +0 -15
  92. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
  93. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
  94. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js +0 -147
  95. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
  96. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
  97. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js +0 -47
  98. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
  99. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js +0 -20
  100. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
  101. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js +0 -59
  102. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
  103. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
  104. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js +0 -136
  105. package/build/internal/cjs/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.d.ts +0 -5
  116. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js +0 -5
  117. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.context.js.map +0 -1
  118. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.d.ts +0 -23
  119. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js +0 -143
  120. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.http.js.map +0 -1
  121. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.d.ts +0 -15
  122. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js +0 -20
  123. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.meta.js.map +0 -1
  124. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js +0 -9
  125. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.public.js.map +0 -1
  126. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js +0 -56
  127. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.types.js.map +0 -1
  128. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.d.ts +0 -396
  129. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js +0 -109
  130. package/build/internal/es/src/appmarket-v1-app-plans-app-plans.universal.js.map +0 -1
@@ -1,6 +1,6 @@
1
- export interface AppPlans {
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
- id?: string;
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
- export declare enum SaleType {
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
- export type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
23
- export declare enum DiscountType {
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
- export type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
32
- export declare enum SourceType {
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
- /** @enumType */
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
- export interface Cycle {
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
- export declare enum DurationUnit {
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
- export type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
- export declare enum CycleType {
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
- export type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
- export interface Duration {
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
- export interface UsageBasedDetails {
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
- export interface Discount extends DiscountSourceDataOneOf {
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
- export interface DiscountSourceDataOneOf {
145
+ interface DiscountSourceDataOneOf {
148
146
  }
149
- export declare enum BillingSource {
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
- export type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
158
- export interface Price {
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
- export interface Plan {
195
+ interface Plan {
198
196
  /**
199
197
  * ID of the app plan.
200
198
  * @format GUID
201
199
  * @readonly
202
200
  */
203
- id?: string;
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
- export interface ListAppPlansByAppIdRequest {
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
- export interface ListAppPlansByAppIdResponse {
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
- export interface TaxSettings {
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
- export declare enum TaxType {
300
+ declare enum TaxType {
303
301
  NOT_APPLICABLE = "NOT_APPLICABLE",
304
302
  VAT = "VAT",
305
303
  GST = "GST"
306
304
  }
307
305
  /** @enumType */
308
- export type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
309
- export interface GetAvailableAppPlansRequest {
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
- export interface AppPlanInfo {
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
- export interface GetAvailableAppPlansResponse {
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
- export interface GetPricingPageUrlRequest {
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
- export interface GetPricingPageUrlResponse {
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
- export interface AppPlans {
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
- id?: string;
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
- export declare enum SaleType {
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
- export type SaleTypeWithLiterals = SaleType | 'SALE_TYPE_UNSPECIFIED' | 'CYBER_MONDAY' | 'NOVEMBER_SALE' | 'BLACK_FRIDAY' | 'DEVELOPER_SALE';
23
- export declare enum DiscountType {
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
- export type DiscountTypeWithLiterals = DiscountType | 'DISCOUNT_TYPE_UNSPECIFIED' | 'FIXED_AMOUNT' | 'PERCENTAGE';
32
- export declare enum SourceType {
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
- /** @enumType */
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
- export interface Cycle {
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
- export declare enum DurationUnit {
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
- export type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
- export declare enum CycleType {
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
- export type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
- export interface Duration {
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
- export interface UsageBasedDetails {
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
- export interface Discount extends DiscountSourceDataOneOf {
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
- export interface DiscountSourceDataOneOf {
145
+ interface DiscountSourceDataOneOf {
148
146
  }
149
- export declare enum BillingSource {
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
- export type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
158
- export interface Price {
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
- export interface Plan {
195
+ interface Plan {
198
196
  /**
199
197
  * ID of the app plan.
200
198
  * @format GUID
201
199
  * @readonly
202
200
  */
203
- id?: string;
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
- export interface ListAppPlansByAppIdRequest {
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
- export interface ListAppPlansByAppIdResponse {
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
- export interface TaxSettings {
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
- export declare enum TaxType {
300
+ declare enum TaxType {
303
301
  NOT_APPLICABLE = "NOT_APPLICABLE",
304
302
  VAT = "VAT",
305
303
  GST = "GST"
306
304
  }
307
305
  /** @enumType */
308
- export type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
309
- export interface GetAvailableAppPlansRequest {
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
- export interface AppPlanInfo {
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
- export interface GetAvailableAppPlansResponse {
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
- export interface GetPricingPageUrlRequest {
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
- export interface GetPricingPageUrlResponse {
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.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
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
- export { AppPlanInfo, AppPlans, BillingSource, Cycle, CycleType, Discount, DiscountSourceDataOneOf, DiscountType, Duration, DurationUnit, GetAvailableAppPlansRequest, GetAvailableAppPlansResponse, GetPricingPageUrlRequest, GetPricingPageUrlResponse, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse, Plan, Price, SaleSource, SaleType, SourceType, TaxSettings, TaxType, UsageBasedDetails, } from './appmarket-v1-app-plans-app-plans.universal.js';
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 declare const __metadata: {
4
- PACKAGE_NAME: string;
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
- export { AppPlanInfo, AppPlans, BillingSource, Cycle, CycleType, Discount, DiscountSourceDataOneOf, DiscountType, Duration, DurationUnit, GetAvailableAppPlansRequest, GetAvailableAppPlansResponse, GetPricingPageUrlRequest, GetPricingPageUrlResponse, ListAppPlansByAppIdRequest, ListAppPlansByAppIdResponse, Plan, Price, SaleSource, SaleType, SourceType, TaxSettings, TaxType, UsageBasedDetails, } from './appmarket-v1-app-plans-app-plans.universal.js';
34
+
35
+ declare const listAppPlansByAppId: MaybeContext<BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1>;
36
+
37
+ export { ListAppPlansByAppIdResponse, listAppPlansByAppId };