@wix/auto_sdk_pricing-plans_plans 1.0.58 → 1.0.60

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 (126) hide show
  1. package/build/{cjs/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.mts} +49 -21
  2. package/build/{internal/cjs/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.ts} +49 -21
  3. package/build/index.js +965 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +921 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/{es/src/pricing-plans-v2-plan-plans.public.d.ts → index.d.mts} +49 -21
  8. package/build/{es/src/pricing-plans-v2-plan-plans.public.d.ts → internal/index.d.ts} +49 -21
  9. package/build/internal/index.js +965 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +921 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/{es/src/pricing-plans-v2-plan-plans.types.d.ts → internal/meta.d.mts} +79 -305
  14. package/build/internal/{cjs/src/pricing-plans-v2-plan-plans.types.d.ts → meta.d.ts} +79 -305
  15. package/build/internal/meta.js +635 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +598 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/pricing-plans-v2-plan-plans.universal.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +88 -429
  20. package/build/internal/{es/src/pricing-plans-v2-plan-plans.universal.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +88 -429
  21. package/build/{internal/es/src/pricing-plans-v2-plan-plans.types.d.ts → meta.d.mts} +79 -305
  22. package/build/{cjs/src/pricing-plans-v2-plan-plans.types.d.ts → meta.d.ts} +79 -305
  23. package/build/meta.js +635 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +598 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/pricing-plans-v2-plan-plans.universal.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +88 -429
  28. package/build/{es/src/pricing-plans-v2-plan-plans.universal.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +88 -429
  29. package/package.json +12 -11
  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/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  40. package/build/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
  41. package/build/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  42. package/build/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  43. package/build/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
  44. package/build/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  45. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  46. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
  47. package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  48. package/build/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
  49. package/build/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  50. package/build/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
  51. package/build/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  52. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -608
  53. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  65. package/build/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
  66. package/build/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  67. package/build/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  68. package/build/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
  69. package/build/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  70. package/build/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  71. package/build/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
  72. package/build/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  73. package/build/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
  74. package/build/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  75. package/build/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
  76. package/build/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  77. package/build/es/src/pricing-plans-v2-plan-plans.universal.js +0 -571
  78. package/build/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  89. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
  90. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  91. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  92. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
  93. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  94. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  95. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
  96. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  97. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
  98. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  99. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
  100. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  101. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -608
  102. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  103. package/build/internal/es/index.d.ts +0 -1
  104. package/build/internal/es/index.js +0 -2
  105. package/build/internal/es/index.js.map +0 -1
  106. package/build/internal/es/index.typings.d.ts +0 -1
  107. package/build/internal/es/index.typings.js +0 -2
  108. package/build/internal/es/index.typings.js.map +0 -1
  109. package/build/internal/es/meta.d.ts +0 -1
  110. package/build/internal/es/meta.js +0 -2
  111. package/build/internal/es/meta.js.map +0 -1
  112. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  113. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
  114. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  115. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  116. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
  117. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  118. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  119. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
  120. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  121. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
  122. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  123. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
  124. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  125. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +0 -571
  126. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
@@ -1,5 +1,7 @@
1
+ import { s as ListPublicPlansRequest$1, a as ListPublicPlansResponse$1, Q as QueryPublicPlansRequest$1, y as QueryPublicPlansResponse$1, z as GetPlanRequest$1, B as GetPlanResponse$1, E as ListPlansRequest$1, d as ListPlansResponse$1, H as GetPlanStatsRequest$1, G as GetPlanStatsResponse$1, I as CreatePlanRequest$1, J as CreatePlanResponse$1, K as UpdatePlanRequest$1, N as UpdatePlanResponse$1, T as SetPlanVisibilityRequest$1, S as SetPlanVisibilityResponse$1, V as MakePlanPrimaryRequest$1, M as MakePlanPrimaryResponse$1, X as ClearPrimaryRequest$1, Y as ClearPrimaryResponse$1, Z as ArchivePlanRequest$1, A as ArchivePlanResponse$1 } from './pricing-plans-v2-plan-plans.universal-DwvmTikd.mjs';
2
+
1
3
  /** Information about the pricing plan. */
2
- export interface Plan {
4
+ interface Plan {
3
5
  /**
4
6
  * Plan ID.
5
7
  * @format GUID
@@ -83,7 +85,7 @@ export interface Plan {
83
85
  formId?: string | null;
84
86
  }
85
87
  /** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
86
- export interface StringList {
88
+ interface StringList {
87
89
  /**
88
90
  * @minLength 1
89
91
  * @maxLength 1400
@@ -92,7 +94,7 @@ export interface StringList {
92
94
  values?: string[];
93
95
  }
94
96
  /** Plan pricing information. Includes the price of the plan and payment details. */
95
- export interface Pricing extends PricingPricingModelOneOf {
97
+ interface Pricing extends PricingPricingModelOneOf {
96
98
  /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
97
99
  subscription?: Recurrence;
98
100
  /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
@@ -108,7 +110,7 @@ export interface Pricing extends PricingPricingModelOneOf {
108
110
  freeTrialDays?: number | null;
109
111
  }
110
112
  /** @oneof */
111
- export interface PricingPricingModelOneOf {
113
+ interface PricingPricingModelOneOf {
112
114
  /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
113
115
  subscription?: Recurrence;
114
116
  /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
@@ -117,7 +119,7 @@ export interface PricingPricingModelOneOf {
117
119
  singlePaymentUnlimited?: boolean | null;
118
120
  }
119
121
  /** An object specifying how often and for how long payments recur (may be forever). */
120
- export interface Recurrence {
122
+ interface Recurrence {
121
123
  /**
122
124
  * Number of payment cycles the subscription is valid for.
123
125
  * `0` for unlimited plans or for plans that are valid until canceled.
@@ -132,7 +134,7 @@ export interface Recurrence {
132
134
  cycleCount?: number | null;
133
135
  }
134
136
  /** A duration expressed in number of time units. */
135
- export interface Duration {
137
+ interface Duration {
136
138
  /**
137
139
  * Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.
138
140
  * @min 1
@@ -141,7 +143,7 @@ export interface Duration {
141
143
  /** Unit of time for the cycle duration. */
142
144
  unit?: PeriodUnitWithLiterals;
143
145
  }
144
- export declare enum PeriodUnit {
146
+ declare enum PeriodUnit {
145
147
  /** Not defined. */
146
148
  UNDEFINED = "UNDEFINED",
147
149
  /** Time unit is a day. */
@@ -154,8 +156,8 @@ export declare enum PeriodUnit {
154
156
  YEAR = "YEAR"
155
157
  }
156
158
  /** @enumType */
157
- export type PeriodUnitWithLiterals = PeriodUnit | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
158
- export interface Money {
159
+ type PeriodUnitWithLiterals = PeriodUnit | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
160
+ interface Money {
159
161
  /**
160
162
  * Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.
161
163
  * @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }
@@ -167,33 +169,7 @@ export interface Money {
167
169
  */
168
170
  currency?: string;
169
171
  }
170
- export interface FeeConfig {
171
- /** Fee configuration. */
172
- fee?: Fee;
173
- /** The time this fee will be charged. */
174
- appliedAt?: AppliedAtWithLiterals;
175
- }
176
- export interface Fee {
177
- /**
178
- * Fee name
179
- * @minLength 1
180
- * @maxLength 40
181
- */
182
- name?: string;
183
- /**
184
- * Amount of fee to be charged
185
- * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
186
- */
187
- amount?: string;
188
- }
189
- export declare enum AppliedAt {
190
- UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
191
- /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
192
- FIRST_PAYMENT = "FIRST_PAYMENT"
193
- }
194
- /** @enumType */
195
- export type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_CHARGE_EVENT' | 'FIRST_PAYMENT';
196
- export interface ListPublicPlansRequest {
172
+ interface ListPublicPlansRequest {
197
173
  /**
198
174
  * Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).
199
175
  * @min 1
@@ -209,14 +185,14 @@ export interface ListPublicPlansRequest {
209
185
  */
210
186
  planIds?: string[];
211
187
  }
212
- export interface ListPublicPlansResponse {
188
+ interface ListPublicPlansResponse {
213
189
  /** List of public pricing plans. */
214
190
  plans?: PublicPlan[];
215
191
  /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
216
192
  pagingMetadata?: PagingMetadataV2;
217
193
  }
218
194
  /** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
219
- export interface PublicPlan {
195
+ interface PublicPlan {
220
196
  /**
221
197
  * Plan ID.
222
198
  * @format GUID
@@ -264,7 +240,7 @@ export interface PublicPlan {
264
240
  */
265
241
  formId?: string | null;
266
242
  }
267
- export interface PagingMetadataV2 {
243
+ interface PagingMetadataV2 {
268
244
  /** Number of items returned in the response. */
269
245
  count?: number | null;
270
246
  /** Offset that was requested. */
@@ -276,7 +252,7 @@ export interface PagingMetadataV2 {
276
252
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
277
253
  cursors?: Cursors;
278
254
  }
279
- export interface Cursors {
255
+ interface Cursors {
280
256
  /**
281
257
  * Cursor string pointing to the next page in the list of results.
282
258
  * @maxLength 16000
@@ -288,11 +264,11 @@ export interface Cursors {
288
264
  */
289
265
  prev?: string | null;
290
266
  }
291
- export interface QueryPublicPlansRequest {
267
+ interface QueryPublicPlansRequest {
292
268
  /** Query options. */
293
269
  query?: QueryV2;
294
270
  }
295
- export interface QueryV2 {
271
+ interface QueryV2 {
296
272
  /** A filter object. See supported fields and operators ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/query-public-plans) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans)). */
297
273
  filter?: Record<string, any> | null;
298
274
  /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]. */
@@ -300,7 +276,7 @@ export interface QueryV2 {
300
276
  /** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */
301
277
  paging?: Paging;
302
278
  }
303
- export interface Sorting {
279
+ interface Sorting {
304
280
  /**
305
281
  * Name of the field to sort by.
306
282
  * @maxLength 512
@@ -309,36 +285,36 @@ export interface Sorting {
309
285
  /** Sort order. */
310
286
  order?: SortOrderWithLiterals;
311
287
  }
312
- export declare enum SortOrder {
288
+ declare enum SortOrder {
313
289
  ASC = "ASC",
314
290
  DESC = "DESC"
315
291
  }
316
292
  /** @enumType */
317
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
318
- export interface Paging {
293
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
294
+ interface Paging {
319
295
  /** Number of items to load. */
320
296
  limit?: number | null;
321
297
  /** Number of items to skip in the current sort order. */
322
298
  offset?: number | null;
323
299
  }
324
- export interface QueryPublicPlansResponse {
300
+ interface QueryPublicPlansResponse {
325
301
  /** List of public pricing plans that match the specified query. */
326
302
  plans?: PublicPlan[];
327
303
  /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
328
304
  pagingMetadata?: PagingMetadataV2;
329
305
  }
330
- export interface GetPlanRequest {
306
+ interface GetPlanRequest {
331
307
  /**
332
308
  * Plan ID.
333
309
  * @format GUID
334
310
  */
335
311
  id: string;
336
312
  }
337
- export interface GetPlanResponse {
313
+ interface GetPlanResponse {
338
314
  /** Pricing plan. */
339
315
  plan?: Plan;
340
316
  }
341
- export interface ListPlansRequest {
317
+ interface ListPlansRequest {
342
318
  /** Archived filter. Defaults to `ACTIVE` (not archived) only. */
343
319
  archived?: ArchivedFilterWithLiterals;
344
320
  /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
@@ -358,7 +334,7 @@ export interface ListPlansRequest {
358
334
  */
359
335
  planIds?: string[];
360
336
  }
361
- export declare enum ArchivedFilter {
337
+ declare enum ArchivedFilter {
362
338
  /** Returns all plans that are active. */
363
339
  ACTIVE = "ACTIVE",
364
340
  /** Returns all plans that are archived. */
@@ -367,8 +343,8 @@ export declare enum ArchivedFilter {
367
343
  ARCHIVED_AND_ACTIVE = "ARCHIVED_AND_ACTIVE"
368
344
  }
369
345
  /** @enumType */
370
- export type ArchivedFilterWithLiterals = ArchivedFilter | 'ACTIVE' | 'ARCHIVED' | 'ARCHIVED_AND_ACTIVE';
371
- export declare enum PublicFilter {
346
+ type ArchivedFilterWithLiterals = ArchivedFilter | 'ACTIVE' | 'ARCHIVED' | 'ARCHIVED_AND_ACTIVE';
347
+ declare enum PublicFilter {
372
348
  /** Returns all public and hidden plans. */
373
349
  PUBLIC_AND_HIDDEN = "PUBLIC_AND_HIDDEN",
374
350
  /** Returns only public plans. */
@@ -377,40 +353,36 @@ export declare enum PublicFilter {
377
353
  HIDDEN = "HIDDEN"
378
354
  }
379
355
  /** @enumType */
380
- export type PublicFilterWithLiterals = PublicFilter | 'PUBLIC_AND_HIDDEN' | 'PUBLIC' | 'HIDDEN';
381
- export interface ListPlansResponse {
356
+ type PublicFilterWithLiterals = PublicFilter | 'PUBLIC_AND_HIDDEN' | 'PUBLIC' | 'HIDDEN';
357
+ interface ListPlansResponse {
382
358
  /** List of all public and hidden pricing plans. */
383
359
  plans?: Plan[];
384
360
  /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
385
361
  pagingMetadata?: PagingMetadataV2;
386
362
  }
387
- export interface GetPlanStatsRequest {
363
+ interface GetPlanStatsRequest {
388
364
  }
389
- export interface GetPlanStatsResponse {
365
+ interface GetPlanStatsResponse {
390
366
  /** Total number of plans created, including active plans (both public and hidden) and archived plans. */
391
367
  totalPlans?: number;
392
368
  }
393
- export interface CreatePlanRequest {
369
+ interface CreatePlanRequest {
394
370
  /** Plan details. */
395
371
  plan: Plan;
396
372
  }
397
- export interface CreatePlanResponse {
373
+ interface CreatePlanResponse {
398
374
  /** Created plan. */
399
375
  plan?: Plan;
400
376
  }
401
- export interface UpdatePlanRequest {
377
+ interface UpdatePlanRequest {
402
378
  /** ID of the plan to update. */
403
379
  plan: Plan;
404
380
  }
405
- export interface UpdatePlanResponse {
381
+ interface UpdatePlanResponse {
406
382
  /** Updated plan. */
407
383
  plan?: Plan;
408
384
  }
409
- export interface BuyerCanCancelUpdated {
410
- /** Pricing plan. */
411
- plan?: Plan;
412
- }
413
- export interface SetPlanVisibilityRequest {
385
+ interface SetPlanVisibilityRequest {
414
386
  /**
415
387
  * The ID of the plan to either display or hide on a site page.
416
388
  * @format GUID
@@ -419,265 +391,67 @@ export interface SetPlanVisibilityRequest {
419
391
  /** Whether a plan is visible to members and site visitors. Updates the `public` field. */
420
392
  visible: boolean;
421
393
  }
422
- export interface SetPlanVisibilityResponse {
394
+ interface SetPlanVisibilityResponse {
423
395
  /** Pricing plan. */
424
396
  plan?: Plan;
425
397
  }
426
- export interface MakePlanPrimaryRequest {
398
+ interface MakePlanPrimaryRequest {
427
399
  /**
428
400
  * Pricing plan ID.
429
401
  * @format GUID
430
402
  */
431
403
  id: string;
432
404
  }
433
- export interface MakePlanPrimaryResponse {
405
+ interface MakePlanPrimaryResponse {
434
406
  /** Pricing plan. */
435
407
  plan?: Plan;
436
408
  }
437
- export interface ClearPrimaryRequest {
409
+ interface ClearPrimaryRequest {
438
410
  }
439
- export interface ClearPrimaryResponse {
411
+ interface ClearPrimaryResponse {
440
412
  }
441
- export interface ArchivePlanRequest {
413
+ interface ArchivePlanRequest {
442
414
  /**
443
415
  * ID of the active plan to archive.
444
416
  * @format GUID
445
417
  */
446
418
  id: string;
447
419
  }
448
- export interface ArchivePlanResponse {
420
+ interface ArchivePlanResponse {
449
421
  /** Archived plan. */
450
422
  plan?: Plan;
451
423
  }
452
- export interface PlanArchived {
453
- /** Pricing plan. */
454
- plan?: Plan;
455
- }
456
- export interface BulkArchivePlanRequest {
457
- /**
458
- * List of Plan IDs to archive.
459
- * @format GUID
460
- * @minSize 1
461
- * @maxSize 100
462
- */
463
- ids?: string[];
464
- /** Set to `true` to return the `Plan` entity in the response. */
465
- returnFullEntity?: boolean;
466
- }
467
- export interface BulkArchivePlanResponse {
468
- /** Plans to be archived. */
469
- results?: BulkPlanResult[];
470
- /** Bulk action metadata. */
471
- bulkActionMetadata?: BulkActionMetadata;
472
- }
473
- export interface BulkPlanResult {
474
- /** Item metadata. */
475
- itemMetadata?: ItemMetadata;
476
- /** Pricing plan. */
477
- plan?: Plan;
478
- }
479
- export interface ItemMetadata {
480
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
481
- id?: string | null;
482
- /** Index of the item within the request array. Allows for correlation between request and response items. */
483
- originalIndex?: number;
484
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
485
- success?: boolean;
486
- /** Details about the error in case of failure. */
487
- error?: ApplicationError;
488
- }
489
- export interface ApplicationError {
490
- /** Error code. */
491
- code?: string;
492
- /** Description of the error. */
493
- description?: string;
494
- /** Data related to the error. */
495
- data?: Record<string, any> | null;
496
- }
497
- export interface BulkActionMetadata {
498
- /** Number of items that were successfully processed. */
499
- totalSuccesses?: number;
500
- /** Number of items that couldn't be processed. */
501
- totalFailures?: number;
502
- /** Number of failures without details because detailed failure threshold was exceeded. */
503
- undetailedFailures?: number;
504
- }
505
- export interface ArrangePlansRequest {
506
- /**
507
- * IDs of all non-archived plans in the order you want them arranged.
508
- * @format GUID
509
- * @minSize 1
510
- */
511
- ids?: string[];
512
- }
513
- export interface ArrangePlansResponse {
514
- }
515
- export interface CountPlansRequest {
516
- /** The filter. */
517
- filter?: Record<string, any> | null;
518
- /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
519
- visibility?: boolean | null;
520
- }
521
- export interface CountPlansResponse {
522
- /** Number of plans in the response. */
523
- count?: number;
524
- }
525
- export interface GetPlansPremiumStatusRequest {
526
- }
527
- export interface GetPlansPremiumStatusResponse {
528
- /** True if a site has non-free, non-template plans. */
529
- hasPaidPlans?: boolean;
530
- /** True if a site has plans that were created before Pricing Plans became a premium app. */
531
- hasOldPlans?: boolean;
532
- }
533
- export interface SearchPlansRequest {
534
- /** Query options. */
535
- query?: QueryV2;
536
- /**
537
- * Search phrase for the plan name.
538
- * @maxLength 50
539
- */
540
- searchPhrase?: string | null;
541
- }
542
- export interface SearchPlansResponse {
543
- /** List of pricing plans that match the specified filter and search phrase. */
544
- plans?: Plan[];
545
- /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
546
- pagingMetadata?: PagingMetadataV2;
547
- }
548
- export interface DomainEvent extends DomainEventBodyOneOf {
549
- createdEvent?: EntityCreatedEvent;
550
- updatedEvent?: EntityUpdatedEvent;
551
- deletedEvent?: EntityDeletedEvent;
552
- actionEvent?: ActionEvent;
553
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
554
- id?: string;
555
- /**
556
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
557
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
558
- */
559
- entityFqdn?: string;
560
- /**
561
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
562
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
563
- */
564
- slug?: string;
565
- /** ID of the entity associated with the event. */
566
- entityId?: string;
567
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
568
- eventTime?: Date | null;
569
- /**
570
- * Whether the event was triggered as a result of a privacy regulation application
571
- * (for example, GDPR).
572
- */
573
- triggeredByAnonymizeRequest?: boolean | null;
574
- /** If present, indicates the action that triggered the event. */
575
- originatedFrom?: string | null;
576
- /**
577
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
578
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
579
- */
580
- entityEventSequence?: string | null;
581
- }
582
- /** @oneof */
583
- export interface DomainEventBodyOneOf {
584
- createdEvent?: EntityCreatedEvent;
585
- updatedEvent?: EntityUpdatedEvent;
586
- deletedEvent?: EntityDeletedEvent;
587
- actionEvent?: ActionEvent;
588
- }
589
- export interface EntityCreatedEvent {
590
- entityAsJson?: string;
591
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
592
- restoreInfo?: RestoreInfo;
593
- }
594
- export interface RestoreInfo {
595
- deletedDate?: Date | null;
596
- }
597
- export interface EntityUpdatedEvent {
598
- /**
599
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
600
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
601
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
602
- */
603
- currentEntityAsJson?: string;
604
- }
605
- export interface EntityDeletedEvent {
606
- /** Entity that was deleted. */
607
- deletedEntityAsJson?: string | null;
608
- }
609
- export interface ActionEvent {
610
- bodyAsJson?: string;
611
- }
612
- export interface MessageEnvelope {
613
- /**
614
- * App instance ID.
615
- * @format GUID
616
- */
617
- instanceId?: string | null;
618
- /**
619
- * Event type.
620
- * @maxLength 150
621
- */
622
- eventType?: string;
623
- /** The identification type and identity data. */
624
- identity?: IdentificationData;
625
- /** Stringify payload. */
626
- data?: string;
627
- }
628
- export interface IdentificationData extends IdentificationDataIdOneOf {
629
- /**
630
- * ID of a site visitor that has not logged in to the site.
631
- * @format GUID
632
- */
633
- anonymousVisitorId?: string;
634
- /**
635
- * ID of a site visitor that has logged in to the site.
636
- * @format GUID
637
- */
638
- memberId?: string;
639
- /**
640
- * ID of a Wix user (site owner, contributor, etc.).
641
- * @format GUID
642
- */
643
- wixUserId?: string;
644
- /**
645
- * ID of an app.
646
- * @format GUID
647
- */
648
- appId?: string;
649
- /** @readonly */
650
- identityType?: WebhookIdentityTypeWithLiterals;
651
- }
652
- /** @oneof */
653
- export interface IdentificationDataIdOneOf {
654
- /**
655
- * ID of a site visitor that has not logged in to the site.
656
- * @format GUID
657
- */
658
- anonymousVisitorId?: string;
659
- /**
660
- * ID of a site visitor that has logged in to the site.
661
- * @format GUID
662
- */
663
- memberId?: string;
664
- /**
665
- * ID of a Wix user (site owner, contributor, etc.).
666
- * @format GUID
667
- */
668
- wixUserId?: string;
669
- /**
670
- * ID of an app.
671
- * @format GUID
672
- */
673
- appId?: string;
674
- }
675
- export declare enum WebhookIdentityType {
676
- UNKNOWN = "UNKNOWN",
677
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
678
- MEMBER = "MEMBER",
679
- WIX_USER = "WIX_USER",
680
- APP = "APP"
681
- }
682
- /** @enumType */
683
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
424
+
425
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
426
+ getUrl: (context: any) => string;
427
+ httpMethod: K;
428
+ path: string;
429
+ pathParams: M;
430
+ __requestType: T;
431
+ __originalRequestType: S;
432
+ __responseType: Q;
433
+ __originalResponseType: R;
434
+ };
435
+ declare function listPublicPlans(): __PublicMethodMetaInfo<'GET', {}, ListPublicPlansRequest$1, ListPublicPlansRequest, ListPublicPlansResponse$1, ListPublicPlansResponse>;
436
+ declare function queryPublicPlans(): __PublicMethodMetaInfo<'POST', {}, QueryPublicPlansRequest$1, QueryPublicPlansRequest, QueryPublicPlansResponse$1, QueryPublicPlansResponse>;
437
+ declare function getPlan(): __PublicMethodMetaInfo<'GET', {
438
+ id: string;
439
+ }, GetPlanRequest$1, GetPlanRequest, GetPlanResponse$1, GetPlanResponse>;
440
+ declare function listPlans(): __PublicMethodMetaInfo<'GET', {}, ListPlansRequest$1, ListPlansRequest, ListPlansResponse$1, ListPlansResponse>;
441
+ declare function getPlanStats(): __PublicMethodMetaInfo<'GET', {}, GetPlanStatsRequest$1, GetPlanStatsRequest, GetPlanStatsResponse$1, GetPlanStatsResponse>;
442
+ declare function createPlan(): __PublicMethodMetaInfo<'POST', {}, CreatePlanRequest$1, CreatePlanRequest, CreatePlanResponse$1, CreatePlanResponse>;
443
+ declare function updatePlan(): __PublicMethodMetaInfo<'PATCH', {
444
+ planId: string;
445
+ }, UpdatePlanRequest$1, UpdatePlanRequest, UpdatePlanResponse$1, UpdatePlanResponse>;
446
+ declare function setPlanVisibility(): __PublicMethodMetaInfo<'PUT', {
447
+ id: string;
448
+ }, SetPlanVisibilityRequest$1, SetPlanVisibilityRequest, SetPlanVisibilityResponse$1, SetPlanVisibilityResponse>;
449
+ declare function makePlanPrimary(): __PublicMethodMetaInfo<'POST', {
450
+ id: string;
451
+ }, MakePlanPrimaryRequest$1, MakePlanPrimaryRequest, MakePlanPrimaryResponse$1, MakePlanPrimaryResponse>;
452
+ declare function clearPrimary(): __PublicMethodMetaInfo<'POST', {}, ClearPrimaryRequest$1, ClearPrimaryRequest, ClearPrimaryResponse$1, ClearPrimaryResponse>;
453
+ declare function archivePlan(): __PublicMethodMetaInfo<'POST', {
454
+ id: string;
455
+ }, ArchivePlanRequest$1, ArchivePlanRequest, ArchivePlanResponse$1, ArchivePlanResponse>;
456
+
457
+ export { type __PublicMethodMetaInfo, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, queryPublicPlans, setPlanVisibility, updatePlan };