@wix/auto_sdk_app-management_app-plans 1.0.4 → 1.0.5

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-DosQn6bZ.d.mts} +28 -26
  2. package/build/{internal/cjs/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-DosQn6bZ.d.ts} +28 -26
  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/internal/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.mts} +33 -26
  10. package/build/{es/src/appmarket-v1-app-plans-app-plans.types.d.ts → internal/appmarket-v1-app-plans-app-plans.universal-CqqhLjDI.d.ts} +33 -26
  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 +289 -0
  18. package/build/internal/meta.d.ts +289 -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 +289 -0
  24. package/build/meta.d.ts +289 -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 -377
  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 -377
  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 -382
  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 -382
  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",
@@ -18,14 +18,14 @@ export declare enum SaleType {
18
18
  BLACK_FRIDAY = "BLACK_FRIDAY",
19
19
  DEVELOPER_SALE = "DEVELOPER_SALE"
20
20
  }
21
- export declare enum DiscountType {
21
+ declare enum DiscountType {
22
22
  DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
23
23
  /** Discount is a fixed amount in USD. */
24
24
  FIXED_AMOUNT = "FIXED_AMOUNT",
25
25
  /** Discount is a percentage of the total price. */
26
26
  PERCENTAGE = "PERCENTAGE"
27
27
  }
28
- export declare enum SourceType {
28
+ declare enum SourceType {
29
29
  /** Default value, can be used when no specific source is associated. */
30
30
  SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
31
31
  /** Discount is due to Wix/Developer Sale */
@@ -33,14 +33,14 @@ export declare enum SourceType {
33
33
  /** Discount is due to App Benefit */
34
34
  APP_BENEFIT = "APP_BENEFIT"
35
35
  }
36
- export interface SaleSource {
36
+ interface SaleSource {
37
37
  /** @format GUID */
38
38
  saleId?: string | null;
39
39
  saleType?: SaleType;
40
40
  startDate?: Date | null;
41
41
  endDate?: Date | null;
42
42
  }
43
- export interface Cycle {
43
+ interface Cycle {
44
44
  /**
45
45
  * Type of the billing cycle.
46
46
  *
@@ -52,7 +52,7 @@ export interface Cycle {
52
52
  /** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
53
53
  cycleDuration?: Duration;
54
54
  }
55
- export declare enum DurationUnit {
55
+ declare enum DurationUnit {
56
56
  /** unknown interval unit */
57
57
  UNKNOWN_UNIT = "UNKNOWN_UNIT",
58
58
  /** month */
@@ -60,18 +60,18 @@ export declare enum DurationUnit {
60
60
  /** year */
61
61
  YEAR = "YEAR"
62
62
  }
63
- export declare enum CycleType {
63
+ declare enum CycleType {
64
64
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
65
65
  ONE_TIME = "ONE_TIME",
66
66
  RECURRING = "RECURRING"
67
67
  }
68
- export interface Duration {
68
+ interface Duration {
69
69
  /** Unit of the billing cycle. */
70
70
  unit?: DurationUnit;
71
71
  /** Count of units that make up the billing cycle. */
72
72
  count?: number;
73
73
  }
74
- export interface UsageBasedDetails {
74
+ interface UsageBasedDetails {
75
75
  /**
76
76
  * Smallest possible amount that your app charges customers in usage-based
77
77
  * pricing. For example, the price of a single SMS message if your
@@ -103,7 +103,7 @@ export interface UsageBasedDetails {
103
103
  */
104
104
  customChargeDescription?: string | null;
105
105
  }
106
- export interface Discount extends DiscountSourceDataOneOf {
106
+ interface Discount extends DiscountSourceDataOneOf {
107
107
  type?: DiscountType;
108
108
  /**
109
109
  * Discount amount
@@ -134,16 +134,16 @@ export interface Discount extends DiscountSourceDataOneOf {
134
134
  totalPrice?: string;
135
135
  }
136
136
  /** @oneof */
137
- export interface DiscountSourceDataOneOf {
137
+ interface DiscountSourceDataOneOf {
138
138
  }
139
- export declare enum BillingSource {
139
+ declare enum BillingSource {
140
140
  UNKNOWN = "UNKNOWN",
141
141
  /** plan billing and charges is managed by Wix */
142
142
  WIX = "WIX",
143
143
  /** plan billing and charges is managed by the app */
144
144
  EXTERNAL = "EXTERNAL"
145
145
  }
146
- export interface Price {
146
+ interface Price {
147
147
  /**
148
148
  * Price without taxes. For yearly plans, Wix calculates and returns the
149
149
  * average price per month. You can get the full price by multiplying the
@@ -182,13 +182,13 @@ export interface Price {
182
182
  */
183
183
  customPaymentTitle?: string | null;
184
184
  }
185
- export interface Plan {
185
+ interface Plan {
186
186
  /**
187
187
  * ID of the app plan.
188
188
  * @format GUID
189
189
  * @readonly
190
190
  */
191
- id?: string;
191
+ _id?: string;
192
192
  /**
193
193
  * ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
194
194
  * Identical to `vendorProductId` in the
@@ -218,7 +218,7 @@ export interface Plan {
218
218
  */
219
219
  prices?: Price[];
220
220
  }
221
- export interface ListAppPlansByAppIdRequest {
221
+ interface ListAppPlansByAppIdRequest {
222
222
  /**
223
223
  * List of app IDs to retrieve plans for.
224
224
  *
@@ -229,7 +229,7 @@ export interface ListAppPlansByAppIdRequest {
229
229
  */
230
230
  appIds: string[];
231
231
  }
232
- export interface ListAppPlansByAppIdResponse {
232
+ interface ListAppPlansByAppIdResponse {
233
233
  /**
234
234
  * Tax settings. Wix calculates the tax settings based on the country code that
235
235
  * you pass in the call's header. If you don't pass a country code in the header,
@@ -266,7 +266,7 @@ export interface ListAppPlansByAppIdResponse {
266
266
  */
267
267
  appPlans?: AppPlans[];
268
268
  }
269
- export interface TaxSettings {
269
+ interface TaxSettings {
270
270
  /**
271
271
  * Whether you must display the total price including taxes in the given
272
272
  * country.
@@ -287,12 +287,12 @@ export interface TaxSettings {
287
287
  */
288
288
  taxType?: TaxType;
289
289
  }
290
- export declare enum TaxType {
290
+ declare enum TaxType {
291
291
  NOT_APPLICABLE = "NOT_APPLICABLE",
292
292
  VAT = "VAT",
293
293
  GST = "GST"
294
294
  }
295
- export interface GetAvailableAppPlansRequest {
295
+ interface GetAvailableAppPlansRequest {
296
296
  /**
297
297
  * AppId to get the available app plans for.
298
298
  * @format GUID
@@ -305,7 +305,7 @@ export interface GetAvailableAppPlansRequest {
305
305
  * An `AppPlanInfo` object describes which app plan you want to retrieve data for.
306
306
  * Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
307
307
  */
308
- export interface AppPlanInfo {
308
+ interface AppPlanInfo {
309
309
  /**
310
310
  * The app plan's vendorId to retrieve the response for.
311
311
  *
@@ -316,7 +316,7 @@ export interface AppPlanInfo {
316
316
  /** The app plan cycle to retrieve the response for. */
317
317
  billingCycle?: Cycle;
318
318
  }
319
- export interface GetAvailableAppPlansResponse {
319
+ interface GetAvailableAppPlansResponse {
320
320
  /** The available upgrades for the given app plan. */
321
321
  availableUpgrades?: AppPlans;
322
322
  /** The available downgrades for the given app plan. */
@@ -324,7 +324,7 @@ export interface GetAvailableAppPlansResponse {
324
324
  /** The current app plan. */
325
325
  currentPlan?: Plan;
326
326
  }
327
- export interface GetPricingPageUrlRequest {
327
+ interface GetPricingPageUrlRequest {
328
328
  /**
329
329
  * AppId to get the pricing page url for.
330
330
  * @format GUID
@@ -333,10 +333,12 @@ export interface GetPricingPageUrlRequest {
333
333
  /** The specific app plan to retrieve the pricing page url for. */
334
334
  appPlanInfo?: AppPlanInfo;
335
335
  }
336
- export interface GetPricingPageUrlResponse {
336
+ interface GetPricingPageUrlResponse {
337
337
  /**
338
338
  * the pricing page url, if there is a app plan that is upgradable.
339
339
  * @format WEB_URL
340
340
  */
341
341
  packagePickerUrl?: string | null;
342
342
  }
343
+
344
+ 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",
@@ -18,14 +18,14 @@ export declare enum SaleType {
18
18
  BLACK_FRIDAY = "BLACK_FRIDAY",
19
19
  DEVELOPER_SALE = "DEVELOPER_SALE"
20
20
  }
21
- export declare enum DiscountType {
21
+ declare enum DiscountType {
22
22
  DISCOUNT_TYPE_UNSPECIFIED = "DISCOUNT_TYPE_UNSPECIFIED",
23
23
  /** Discount is a fixed amount in USD. */
24
24
  FIXED_AMOUNT = "FIXED_AMOUNT",
25
25
  /** Discount is a percentage of the total price. */
26
26
  PERCENTAGE = "PERCENTAGE"
27
27
  }
28
- export declare enum SourceType {
28
+ declare enum SourceType {
29
29
  /** Default value, can be used when no specific source is associated. */
30
30
  SOURCE_TYPE_UNSPECIFIED = "SOURCE_TYPE_UNSPECIFIED",
31
31
  /** Discount is due to Wix/Developer Sale */
@@ -33,14 +33,14 @@ export declare enum SourceType {
33
33
  /** Discount is due to App Benefit */
34
34
  APP_BENEFIT = "APP_BENEFIT"
35
35
  }
36
- export interface SaleSource {
36
+ interface SaleSource {
37
37
  /** @format GUID */
38
38
  saleId?: string | null;
39
39
  saleType?: SaleType;
40
40
  startDate?: Date | null;
41
41
  endDate?: Date | null;
42
42
  }
43
- export interface Cycle {
43
+ interface Cycle {
44
44
  /**
45
45
  * Type of the billing cycle.
46
46
  *
@@ -52,7 +52,7 @@ export interface Cycle {
52
52
  /** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
53
53
  cycleDuration?: Duration;
54
54
  }
55
- export declare enum DurationUnit {
55
+ declare enum DurationUnit {
56
56
  /** unknown interval unit */
57
57
  UNKNOWN_UNIT = "UNKNOWN_UNIT",
58
58
  /** month */
@@ -60,18 +60,18 @@ export declare enum DurationUnit {
60
60
  /** year */
61
61
  YEAR = "YEAR"
62
62
  }
63
- export declare enum CycleType {
63
+ declare enum CycleType {
64
64
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
65
65
  ONE_TIME = "ONE_TIME",
66
66
  RECURRING = "RECURRING"
67
67
  }
68
- export interface Duration {
68
+ interface Duration {
69
69
  /** Unit of the billing cycle. */
70
70
  unit?: DurationUnit;
71
71
  /** Count of units that make up the billing cycle. */
72
72
  count?: number;
73
73
  }
74
- export interface UsageBasedDetails {
74
+ interface UsageBasedDetails {
75
75
  /**
76
76
  * Smallest possible amount that your app charges customers in usage-based
77
77
  * pricing. For example, the price of a single SMS message if your
@@ -103,7 +103,7 @@ export interface UsageBasedDetails {
103
103
  */
104
104
  customChargeDescription?: string | null;
105
105
  }
106
- export interface Discount extends DiscountSourceDataOneOf {
106
+ interface Discount extends DiscountSourceDataOneOf {
107
107
  type?: DiscountType;
108
108
  /**
109
109
  * Discount amount
@@ -134,16 +134,16 @@ export interface Discount extends DiscountSourceDataOneOf {
134
134
  totalPrice?: string;
135
135
  }
136
136
  /** @oneof */
137
- export interface DiscountSourceDataOneOf {
137
+ interface DiscountSourceDataOneOf {
138
138
  }
139
- export declare enum BillingSource {
139
+ declare enum BillingSource {
140
140
  UNKNOWN = "UNKNOWN",
141
141
  /** plan billing and charges is managed by Wix */
142
142
  WIX = "WIX",
143
143
  /** plan billing and charges is managed by the app */
144
144
  EXTERNAL = "EXTERNAL"
145
145
  }
146
- export interface Price {
146
+ interface Price {
147
147
  /**
148
148
  * Price without taxes. For yearly plans, Wix calculates and returns the
149
149
  * average price per month. You can get the full price by multiplying the
@@ -182,13 +182,13 @@ export interface Price {
182
182
  */
183
183
  customPaymentTitle?: string | null;
184
184
  }
185
- export interface Plan {
185
+ interface Plan {
186
186
  /**
187
187
  * ID of the app plan.
188
188
  * @format GUID
189
189
  * @readonly
190
190
  */
191
- id?: string;
191
+ _id?: string;
192
192
  /**
193
193
  * ID of your app's pricing plan, as displayed in the [app dashboard](https://dev.wix.com/apps/my-apps?viewId=active-apps-view).
194
194
  * Identical to `vendorProductId` in the
@@ -218,7 +218,7 @@ export interface Plan {
218
218
  */
219
219
  prices?: Price[];
220
220
  }
221
- export interface ListAppPlansByAppIdRequest {
221
+ interface ListAppPlansByAppIdRequest {
222
222
  /**
223
223
  * List of app IDs to retrieve plans for.
224
224
  *
@@ -229,7 +229,7 @@ export interface ListAppPlansByAppIdRequest {
229
229
  */
230
230
  appIds: string[];
231
231
  }
232
- export interface ListAppPlansByAppIdResponse {
232
+ interface ListAppPlansByAppIdResponse {
233
233
  /**
234
234
  * Tax settings. Wix calculates the tax settings based on the country code that
235
235
  * you pass in the call's header. If you don't pass a country code in the header,
@@ -266,7 +266,7 @@ export interface ListAppPlansByAppIdResponse {
266
266
  */
267
267
  appPlans?: AppPlans[];
268
268
  }
269
- export interface TaxSettings {
269
+ interface TaxSettings {
270
270
  /**
271
271
  * Whether you must display the total price including taxes in the given
272
272
  * country.
@@ -287,12 +287,12 @@ export interface TaxSettings {
287
287
  */
288
288
  taxType?: TaxType;
289
289
  }
290
- export declare enum TaxType {
290
+ declare enum TaxType {
291
291
  NOT_APPLICABLE = "NOT_APPLICABLE",
292
292
  VAT = "VAT",
293
293
  GST = "GST"
294
294
  }
295
- export interface GetAvailableAppPlansRequest {
295
+ interface GetAvailableAppPlansRequest {
296
296
  /**
297
297
  * AppId to get the available app plans for.
298
298
  * @format GUID
@@ -305,7 +305,7 @@ export interface GetAvailableAppPlansRequest {
305
305
  * An `AppPlanInfo` object describes which app plan you want to retrieve data for.
306
306
  * Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
307
307
  */
308
- export interface AppPlanInfo {
308
+ interface AppPlanInfo {
309
309
  /**
310
310
  * The app plan's vendorId to retrieve the response for.
311
311
  *
@@ -316,7 +316,7 @@ export interface AppPlanInfo {
316
316
  /** The app plan cycle to retrieve the response for. */
317
317
  billingCycle?: Cycle;
318
318
  }
319
- export interface GetAvailableAppPlansResponse {
319
+ interface GetAvailableAppPlansResponse {
320
320
  /** The available upgrades for the given app plan. */
321
321
  availableUpgrades?: AppPlans;
322
322
  /** The available downgrades for the given app plan. */
@@ -324,7 +324,7 @@ export interface GetAvailableAppPlansResponse {
324
324
  /** The current app plan. */
325
325
  currentPlan?: Plan;
326
326
  }
327
- export interface GetPricingPageUrlRequest {
327
+ interface GetPricingPageUrlRequest {
328
328
  /**
329
329
  * AppId to get the pricing page url for.
330
330
  * @format GUID
@@ -333,10 +333,12 @@ export interface GetPricingPageUrlRequest {
333
333
  /** The specific app plan to retrieve the pricing page url for. */
334
334
  appPlanInfo?: AppPlanInfo;
335
335
  }
336
- export interface GetPricingPageUrlResponse {
336
+ interface GetPricingPageUrlResponse {
337
337
  /**
338
338
  * the pricing page url, if there is a app plan that is upgradable.
339
339
  * @format WEB_URL
340
340
  */
341
341
  packagePickerUrl?: string | null;
342
342
  }
343
+
344
+ 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-DosQn6bZ.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-DosQn6bZ.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-DosQn6bZ.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-DosQn6bZ.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 };