@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 */
@@ -38,15 +38,15 @@ export declare enum SourceType {
38
38
  APP_BENEFIT = "APP_BENEFIT"
39
39
  }
40
40
  /** @enumType */
41
- export type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
42
- export interface SaleSource {
41
+ type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
42
+ interface SaleSource {
43
43
  /** @format GUID */
44
44
  saleId?: string | null;
45
45
  saleType?: SaleTypeWithLiterals;
46
46
  startDate?: Date | null;
47
47
  endDate?: Date | null;
48
48
  }
49
- export interface Cycle {
49
+ interface Cycle {
50
50
  /**
51
51
  * Type of the billing cycle.
52
52
  *
@@ -58,7 +58,7 @@ export interface Cycle {
58
58
  /** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
59
59
  cycleDuration?: Duration;
60
60
  }
61
- export declare enum DurationUnit {
61
+ declare enum DurationUnit {
62
62
  /** unknown interval unit */
63
63
  UNKNOWN_UNIT = "UNKNOWN_UNIT",
64
64
  /** month */
@@ -67,21 +67,21 @@ export declare enum DurationUnit {
67
67
  YEAR = "YEAR"
68
68
  }
69
69
  /** @enumType */
70
- export type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
- export declare enum CycleType {
70
+ type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
+ declare enum CycleType {
72
72
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
73
73
  ONE_TIME = "ONE_TIME",
74
74
  RECURRING = "RECURRING"
75
75
  }
76
76
  /** @enumType */
77
- export type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
- export interface Duration {
77
+ type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
+ interface Duration {
79
79
  /** Unit of the billing cycle. */
80
80
  unit?: DurationUnitWithLiterals;
81
81
  /** Count of units that make up the billing cycle. */
82
82
  count?: number;
83
83
  }
84
- export interface UsageBasedDetails {
84
+ interface UsageBasedDetails {
85
85
  /**
86
86
  * Smallest possible amount that your app charges customers in usage-based
87
87
  * pricing. For example, the price of a single SMS message if your
@@ -113,7 +113,7 @@ export interface UsageBasedDetails {
113
113
  */
114
114
  customChargeDescription?: string | null;
115
115
  }
116
- export interface Discount extends DiscountSourceDataOneOf {
116
+ interface Discount extends DiscountSourceDataOneOf {
117
117
  type?: DiscountTypeWithLiterals;
118
118
  /**
119
119
  * Discount amount
@@ -142,11 +142,16 @@ export interface Discount extends DiscountSourceDataOneOf {
142
142
  * @maxLength 1024
143
143
  */
144
144
  totalPrice?: string;
145
+ /**
146
+ * Source of the discount.
147
+ * @internal
148
+ */
149
+ sourceType?: SourceTypeWithLiterals;
145
150
  }
146
151
  /** @oneof */
147
- export interface DiscountSourceDataOneOf {
152
+ interface DiscountSourceDataOneOf {
148
153
  }
149
- export declare enum BillingSource {
154
+ declare enum BillingSource {
150
155
  UNKNOWN = "UNKNOWN",
151
156
  /** plan billing and charges is managed by Wix */
152
157
  WIX = "WIX",
@@ -154,8 +159,8 @@ export declare enum BillingSource {
154
159
  EXTERNAL = "EXTERNAL"
155
160
  }
156
161
  /** @enumType */
157
- export type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
158
- export interface Price {
162
+ type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
163
+ interface Price {
159
164
  /**
160
165
  * Price without taxes. For yearly plans, Wix calculates and returns the
161
166
  * average price per month. You can get the full price by multiplying the
@@ -194,13 +199,13 @@ export interface Price {
194
199
  */
195
200
  customPaymentTitle?: string | null;
196
201
  }
197
- export interface Plan {
202
+ interface Plan {
198
203
  /**
199
204
  * ID of the app plan.
200
205
  * @format GUID
201
206
  * @readonly
202
207
  */
203
- id?: string;
208
+ _id?: string;
204
209
  /**
205
210
  * 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
211
  * Identical to `vendorProductId` in the
@@ -230,7 +235,7 @@ export interface Plan {
230
235
  */
231
236
  prices?: Price[];
232
237
  }
233
- export interface ListAppPlansByAppIdRequest {
238
+ interface ListAppPlansByAppIdRequest {
234
239
  /**
235
240
  * List of app IDs to retrieve plans for.
236
241
  *
@@ -241,7 +246,7 @@ export interface ListAppPlansByAppIdRequest {
241
246
  */
242
247
  appIds: string[];
243
248
  }
244
- export interface ListAppPlansByAppIdResponse {
249
+ interface ListAppPlansByAppIdResponse {
245
250
  /**
246
251
  * Tax settings. Wix calculates the tax settings based on the country code that
247
252
  * you pass in the call's header. If you don't pass a country code in the header,
@@ -278,7 +283,7 @@ export interface ListAppPlansByAppIdResponse {
278
283
  */
279
284
  appPlans?: AppPlans[];
280
285
  }
281
- export interface TaxSettings {
286
+ interface TaxSettings {
282
287
  /**
283
288
  * Whether you must display the total price including taxes in the given
284
289
  * country.
@@ -299,14 +304,14 @@ export interface TaxSettings {
299
304
  */
300
305
  taxType?: TaxTypeWithLiterals;
301
306
  }
302
- export declare enum TaxType {
307
+ declare enum TaxType {
303
308
  NOT_APPLICABLE = "NOT_APPLICABLE",
304
309
  VAT = "VAT",
305
310
  GST = "GST"
306
311
  }
307
312
  /** @enumType */
308
- export type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
309
- export interface GetAvailableAppPlansRequest {
313
+ type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
314
+ interface GetAvailableAppPlansRequest {
310
315
  /**
311
316
  * AppId to get the available app plans for.
312
317
  * @format GUID
@@ -319,7 +324,7 @@ export interface GetAvailableAppPlansRequest {
319
324
  * An `AppPlanInfo` object describes which app plan you want to retrieve data for.
320
325
  * Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
321
326
  */
322
- export interface AppPlanInfo {
327
+ interface AppPlanInfo {
323
328
  /**
324
329
  * The app plan's vendorId to retrieve the response for.
325
330
  *
@@ -330,7 +335,7 @@ export interface AppPlanInfo {
330
335
  /** The app plan cycle to retrieve the response for. */
331
336
  billingCycle?: Cycle;
332
337
  }
333
- export interface GetAvailableAppPlansResponse {
338
+ interface GetAvailableAppPlansResponse {
334
339
  /** The available upgrades for the given app plan. */
335
340
  availableUpgrades?: AppPlans;
336
341
  /** The available downgrades for the given app plan. */
@@ -338,7 +343,7 @@ export interface GetAvailableAppPlansResponse {
338
343
  /** The current app plan. */
339
344
  currentPlan?: Plan;
340
345
  }
341
- export interface GetPricingPageUrlRequest {
346
+ interface GetPricingPageUrlRequest {
342
347
  /**
343
348
  * AppId to get the pricing page url for.
344
349
  * @format GUID
@@ -347,10 +352,12 @@ export interface GetPricingPageUrlRequest {
347
352
  /** The specific app plan to retrieve the pricing page url for. */
348
353
  appPlanInfo?: AppPlanInfo;
349
354
  }
350
- export interface GetPricingPageUrlResponse {
355
+ interface GetPricingPageUrlResponse {
351
356
  /**
352
357
  * the pricing page url, if there is a app plan that is upgradable.
353
358
  * @format WEB_URL
354
359
  */
355
360
  packagePickerUrl?: string | null;
356
361
  }
362
+
363
+ 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 */
@@ -38,15 +38,15 @@ export declare enum SourceType {
38
38
  APP_BENEFIT = "APP_BENEFIT"
39
39
  }
40
40
  /** @enumType */
41
- export type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
42
- export interface SaleSource {
41
+ type SourceTypeWithLiterals = SourceType | 'SOURCE_TYPE_UNSPECIFIED' | 'SALE' | 'APP_BENEFIT';
42
+ interface SaleSource {
43
43
  /** @format GUID */
44
44
  saleId?: string | null;
45
45
  saleType?: SaleTypeWithLiterals;
46
46
  startDate?: Date | null;
47
47
  endDate?: Date | null;
48
48
  }
49
- export interface Cycle {
49
+ interface Cycle {
50
50
  /**
51
51
  * Type of the billing cycle.
52
52
  *
@@ -58,7 +58,7 @@ export interface Cycle {
58
58
  /** Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`. */
59
59
  cycleDuration?: Duration;
60
60
  }
61
- export declare enum DurationUnit {
61
+ declare enum DurationUnit {
62
62
  /** unknown interval unit */
63
63
  UNKNOWN_UNIT = "UNKNOWN_UNIT",
64
64
  /** month */
@@ -67,21 +67,21 @@ export declare enum DurationUnit {
67
67
  YEAR = "YEAR"
68
68
  }
69
69
  /** @enumType */
70
- export type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
- export declare enum CycleType {
70
+ type DurationUnitWithLiterals = DurationUnit | 'UNKNOWN_UNIT' | 'MONTH' | 'YEAR';
71
+ declare enum CycleType {
72
72
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
73
73
  ONE_TIME = "ONE_TIME",
74
74
  RECURRING = "RECURRING"
75
75
  }
76
76
  /** @enumType */
77
- export type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
- export interface Duration {
77
+ type CycleTypeWithLiterals = CycleType | 'UNKNOWN_TYPE' | 'ONE_TIME' | 'RECURRING';
78
+ interface Duration {
79
79
  /** Unit of the billing cycle. */
80
80
  unit?: DurationUnitWithLiterals;
81
81
  /** Count of units that make up the billing cycle. */
82
82
  count?: number;
83
83
  }
84
- export interface UsageBasedDetails {
84
+ interface UsageBasedDetails {
85
85
  /**
86
86
  * Smallest possible amount that your app charges customers in usage-based
87
87
  * pricing. For example, the price of a single SMS message if your
@@ -113,7 +113,7 @@ export interface UsageBasedDetails {
113
113
  */
114
114
  customChargeDescription?: string | null;
115
115
  }
116
- export interface Discount extends DiscountSourceDataOneOf {
116
+ interface Discount extends DiscountSourceDataOneOf {
117
117
  type?: DiscountTypeWithLiterals;
118
118
  /**
119
119
  * Discount amount
@@ -142,11 +142,16 @@ export interface Discount extends DiscountSourceDataOneOf {
142
142
  * @maxLength 1024
143
143
  */
144
144
  totalPrice?: string;
145
+ /**
146
+ * Source of the discount.
147
+ * @internal
148
+ */
149
+ sourceType?: SourceTypeWithLiterals;
145
150
  }
146
151
  /** @oneof */
147
- export interface DiscountSourceDataOneOf {
152
+ interface DiscountSourceDataOneOf {
148
153
  }
149
- export declare enum BillingSource {
154
+ declare enum BillingSource {
150
155
  UNKNOWN = "UNKNOWN",
151
156
  /** plan billing and charges is managed by Wix */
152
157
  WIX = "WIX",
@@ -154,8 +159,8 @@ export declare enum BillingSource {
154
159
  EXTERNAL = "EXTERNAL"
155
160
  }
156
161
  /** @enumType */
157
- export type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
158
- export interface Price {
162
+ type BillingSourceWithLiterals = BillingSource | 'UNKNOWN' | 'WIX' | 'EXTERNAL';
163
+ interface Price {
159
164
  /**
160
165
  * Price without taxes. For yearly plans, Wix calculates and returns the
161
166
  * average price per month. You can get the full price by multiplying the
@@ -194,13 +199,13 @@ export interface Price {
194
199
  */
195
200
  customPaymentTitle?: string | null;
196
201
  }
197
- export interface Plan {
202
+ interface Plan {
198
203
  /**
199
204
  * ID of the app plan.
200
205
  * @format GUID
201
206
  * @readonly
202
207
  */
203
- id?: string;
208
+ _id?: string;
204
209
  /**
205
210
  * 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
211
  * Identical to `vendorProductId` in the
@@ -230,7 +235,7 @@ export interface Plan {
230
235
  */
231
236
  prices?: Price[];
232
237
  }
233
- export interface ListAppPlansByAppIdRequest {
238
+ interface ListAppPlansByAppIdRequest {
234
239
  /**
235
240
  * List of app IDs to retrieve plans for.
236
241
  *
@@ -241,7 +246,7 @@ export interface ListAppPlansByAppIdRequest {
241
246
  */
242
247
  appIds: string[];
243
248
  }
244
- export interface ListAppPlansByAppIdResponse {
249
+ interface ListAppPlansByAppIdResponse {
245
250
  /**
246
251
  * Tax settings. Wix calculates the tax settings based on the country code that
247
252
  * you pass in the call's header. If you don't pass a country code in the header,
@@ -278,7 +283,7 @@ export interface ListAppPlansByAppIdResponse {
278
283
  */
279
284
  appPlans?: AppPlans[];
280
285
  }
281
- export interface TaxSettings {
286
+ interface TaxSettings {
282
287
  /**
283
288
  * Whether you must display the total price including taxes in the given
284
289
  * country.
@@ -299,14 +304,14 @@ export interface TaxSettings {
299
304
  */
300
305
  taxType?: TaxTypeWithLiterals;
301
306
  }
302
- export declare enum TaxType {
307
+ declare enum TaxType {
303
308
  NOT_APPLICABLE = "NOT_APPLICABLE",
304
309
  VAT = "VAT",
305
310
  GST = "GST"
306
311
  }
307
312
  /** @enumType */
308
- export type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
309
- export interface GetAvailableAppPlansRequest {
313
+ type TaxTypeWithLiterals = TaxType | 'NOT_APPLICABLE' | 'VAT' | 'GST';
314
+ interface GetAvailableAppPlansRequest {
310
315
  /**
311
316
  * AppId to get the available app plans for.
312
317
  * @format GUID
@@ -319,7 +324,7 @@ export interface GetAvailableAppPlansRequest {
319
324
  * An `AppPlanInfo` object describes which app plan you want to retrieve data for.
320
325
  * Every plan in an app is identified by a unique combination of `productId` and `billingCycle`.
321
326
  */
322
- export interface AppPlanInfo {
327
+ interface AppPlanInfo {
323
328
  /**
324
329
  * The app plan's vendorId to retrieve the response for.
325
330
  *
@@ -330,7 +335,7 @@ export interface AppPlanInfo {
330
335
  /** The app plan cycle to retrieve the response for. */
331
336
  billingCycle?: Cycle;
332
337
  }
333
- export interface GetAvailableAppPlansResponse {
338
+ interface GetAvailableAppPlansResponse {
334
339
  /** The available upgrades for the given app plan. */
335
340
  availableUpgrades?: AppPlans;
336
341
  /** The available downgrades for the given app plan. */
@@ -338,7 +343,7 @@ export interface GetAvailableAppPlansResponse {
338
343
  /** The current app plan. */
339
344
  currentPlan?: Plan;
340
345
  }
341
- export interface GetPricingPageUrlRequest {
346
+ interface GetPricingPageUrlRequest {
342
347
  /**
343
348
  * AppId to get the pricing page url for.
344
349
  * @format GUID
@@ -347,10 +352,12 @@ export interface GetPricingPageUrlRequest {
347
352
  /** The specific app plan to retrieve the pricing page url for. */
348
353
  appPlanInfo?: AppPlanInfo;
349
354
  }
350
- export interface GetPricingPageUrlResponse {
355
+ interface GetPricingPageUrlResponse {
351
356
  /**
352
357
  * the pricing page url, if there is a app plan that is upgradable.
353
358
  * @format WEB_URL
354
359
  */
355
360
  packagePickerUrl?: string | null;
356
361
  }
362
+
363
+ 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-BX_XsPPf.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-BX_XsPPf.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-BX_XsPPf.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-BX_XsPPf.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 };