@wix/auto_sdk_pricing-plans_plans 1.0.59 → 1.0.61

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 (129) 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/internal/meta.d.mts +457 -0
  14. package/build/internal/meta.d.ts +457 -0
  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/{es/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
  20. package/build/{cjs/src/pricing-plans-v2-plan-plans.types.d.ts → internal/pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
  21. package/build/meta.d.mts +457 -0
  22. package/build/meta.d.ts +457 -0
  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/{internal/cjs/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.mts} +332 -93
  28. package/build/{internal/es/src/pricing-plans-v2-plan-plans.types.d.ts → pricing-plans-v2-plan-plans.universal-DwvmTikd.d.ts} +332 -93
  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.d.ts +0 -1293
  53. package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
  54. package/build/cjs/src/pricing-plans-v2-plan-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/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.d.ts +0 -1293
  78. package/build/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
  79. package/build/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  90. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js +0 -45
  91. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  92. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  93. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js +0 -448
  94. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  95. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  96. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js +0 -237
  97. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  98. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js +0 -123
  99. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  100. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js +0 -54
  101. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  102. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  103. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +0 -630
  104. package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.d.ts +0 -36
  115. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js +0 -36
  116. package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js.map +0 -1
  117. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.d.ts +0 -62
  118. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js +0 -434
  119. package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js.map +0 -1
  120. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.d.ts +0 -33
  121. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js +0 -200
  122. package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js.map +0 -1
  123. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js +0 -103
  124. package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js.map +0 -1
  125. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js +0 -51
  126. package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +0 -1
  127. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.d.ts +0 -1293
  128. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +0 -593
  129. package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +0 -1
@@ -1,1293 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- /** Information about the pricing plan. */
3
- export interface Plan {
4
- /**
5
- * Plan ID.
6
- * @format GUID
7
- * @readonly
8
- */
9
- _id?: string;
10
- /**
11
- * Plan name.
12
- * @minLength 1
13
- * @maxLength 50
14
- */
15
- name?: string | null;
16
- /**
17
- * Plan description.
18
- * @maxLength 450
19
- */
20
- description?: string | null;
21
- /** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
22
- perks?: StringList;
23
- /** Plan price, payment schedule, and expiration. */
24
- pricing?: Pricing;
25
- /** Whether the plan is public (visible to site visitors and members). */
26
- public?: boolean | null;
27
- /**
28
- * Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.
29
- * @readonly
30
- */
31
- archived?: boolean;
32
- /**
33
- * Whether the plan is marked as primary.
34
- * @readonly
35
- */
36
- primary?: boolean;
37
- /**
38
- * Whether the plan has any orders (including pending and unpaid orders).
39
- * @readonly
40
- */
41
- hasOrders?: boolean;
42
- /**
43
- * Date plan was created.
44
- * @readonly
45
- */
46
- _createdDate?: Date | null;
47
- /**
48
- * Date plan was last updated.
49
- * @readonly
50
- */
51
- _updatedDate?: Date | null;
52
- /**
53
- * URL-friendly version of plan name. Unique across all plans in the same site.
54
- * @minLength 1
55
- * @readonly
56
- * @format URL_SLUG
57
- */
58
- slug?: string | null;
59
- /**
60
- * Number of times the same buyer can purchase the plan. Currently limited to support:
61
- * - Empty value or a value of `0`, meaning no limitation.
62
- * - Value of `1`, meaning limited to 1 purchase per buyer.
63
- * @max 1
64
- */
65
- maxPurchasesPerBuyer?: number | null;
66
- /** Whether the buyer can start the plan at a later date. Defaults to false. */
67
- allowFutureStartDate?: boolean | null;
68
- /**
69
- * Whether the buyer is allowed to cancel their plan. Defaults to false.
70
- * If false, calling Request Cancellation returns an error.
71
- */
72
- buyerCanCancel?: boolean | null;
73
- /**
74
- * Any terms and conditions that apply to the plan. This information is displayed during checkout.
75
- * @maxLength 3000
76
- */
77
- termsAndConditions?: string | null;
78
- /**
79
- * ID of the form associated with the plan at checkout.
80
- *
81
- * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
82
- * @format GUID
83
- */
84
- formId?: string | null;
85
- }
86
- /** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
87
- export interface StringList {
88
- /**
89
- * @minLength 1
90
- * @maxLength 1400
91
- * @maxSize 500
92
- */
93
- values?: string[];
94
- }
95
- /** Plan pricing information. Includes the price of the plan and payment details. */
96
- export interface Pricing extends PricingPricingModelOneOf {
97
- /** 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. */
98
- subscription?: Recurrence;
99
- /** 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. */
100
- singlePaymentForDuration?: Duration;
101
- /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
102
- singlePaymentUnlimited?: boolean | null;
103
- /** Amount for a single payment. For subscriptions, this is the amount to pay each payment cycle and it is required. For plans that are not recurring plans, it is the single payment amount for the whole subscription. */
104
- price?: Money;
105
- /**
106
- * Free trial period for the plan in days. Available only for recurring plans, meaning plans whose pricing model is `subscription`. Set to `0` to remove the free trial.
107
- * @max 999
108
- */
109
- freeTrialDays?: number | null;
110
- }
111
- /** @oneof */
112
- export interface PricingPricingModelOneOf {
113
- /** 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. */
114
- subscription?: Recurrence;
115
- /** 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. */
116
- singlePaymentForDuration?: Duration;
117
- /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
118
- singlePaymentUnlimited?: boolean | null;
119
- }
120
- /** An object specifying how often and for how long payments recur (may be forever). */
121
- export interface Recurrence {
122
- /**
123
- * Number of payment cycles the subscription is valid for.
124
- * `0` for unlimited plans or for plans that are valid until canceled.
125
- */
126
- cycleDuration?: Duration;
127
- /**
128
- * Length of a payment cycle. For example, 1 month to have monthly payments.
129
- * Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.
130
- * Currently, only a value of `1` is supported.
131
- * @max 2000
132
- */
133
- cycleCount?: number | null;
134
- }
135
- /** A duration expressed in number of time units. */
136
- export interface Duration {
137
- /**
138
- * Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.
139
- * @min 1
140
- */
141
- count?: number | null;
142
- /** Unit of time for the cycle duration. */
143
- unit?: PeriodUnitWithLiterals;
144
- }
145
- export declare enum PeriodUnit {
146
- /** Not defined. */
147
- UNDEFINED = "UNDEFINED",
148
- /** Time unit is a day. */
149
- DAY = "DAY",
150
- /** Time unit is a week. */
151
- WEEK = "WEEK",
152
- /** Time unit is a month. */
153
- MONTH = "MONTH",
154
- /** Time unit is a year. */
155
- YEAR = "YEAR"
156
- }
157
- /** @enumType */
158
- export type PeriodUnitWithLiterals = PeriodUnit | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
159
- export interface Money {
160
- /**
161
- * Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.
162
- * @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }
163
- */
164
- value?: string;
165
- /**
166
- * Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`.
167
- * @format CURRENCY
168
- */
169
- currency?: string;
170
- }
171
- export interface FeeConfig {
172
- /** Fee configuration. */
173
- fee?: Fee;
174
- /** The time this fee will be charged. */
175
- appliedAt?: AppliedAtWithLiterals;
176
- }
177
- export interface Fee {
178
- /**
179
- * Fee name
180
- * @minLength 1
181
- * @maxLength 40
182
- */
183
- name?: string;
184
- /**
185
- * Amount of fee to be charged
186
- * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
187
- */
188
- amount?: string;
189
- }
190
- export declare enum AppliedAt {
191
- UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
192
- /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
193
- FIRST_PAYMENT = "FIRST_PAYMENT"
194
- }
195
- /** @enumType */
196
- export type AppliedAtWithLiterals = AppliedAt | 'UNKNOWN_CHARGE_EVENT' | 'FIRST_PAYMENT';
197
- export interface ListPublicPlansRequest {
198
- /**
199
- * 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)).
200
- * @min 1
201
- * @max 100
202
- */
203
- limit?: number | null;
204
- /** Number of items to skip. Defaults to `0`. See paging ([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)). */
205
- offset?: number | null;
206
- /**
207
- * IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
208
- * @format GUID
209
- * @maxSize 100
210
- */
211
- planIds?: string[];
212
- }
213
- export interface ListPublicPlansResponse {
214
- /** List of public pricing plans. */
215
- plans?: PublicPlan[];
216
- /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
217
- pagingMetadata?: PagingMetadataV2;
218
- }
219
- /** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
220
- export interface PublicPlan {
221
- /**
222
- * Plan ID.
223
- * @format GUID
224
- */
225
- _id?: string;
226
- /**
227
- * Plan name.
228
- * @minLength 1
229
- * @maxLength 50
230
- */
231
- name?: string | null;
232
- /**
233
- * Plan description.
234
- * @maxLength 450
235
- */
236
- description?: string | null;
237
- /** What is included with this plan (for example, 1 weekly entrance to a specific class). */
238
- perks?: StringList;
239
- /** Plan price, payment schedule, and expiration. */
240
- pricing?: Pricing;
241
- /** Whether the plan is marked as primary. */
242
- primary?: boolean;
243
- /** Date plan was created. */
244
- _createdDate?: Date | null;
245
- /** Date plan was last updated. */
246
- _updatedDate?: Date | null;
247
- /**
248
- * URL-friendly version of plan name. Unique across all plans in the same site.
249
- * @minLength 1
250
- */
251
- slug?: string | null;
252
- /** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */
253
- maxPurchasesPerBuyer?: number | null;
254
- /** Whether the buyer can start the plan at a later date. Defaults to false. */
255
- allowFutureStartDate?: boolean | null;
256
- /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
257
- buyerCanCancel?: boolean | null;
258
- /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
259
- termsAndConditions?: string | null;
260
- /**
261
- * ID of the form associated with the plan at checkout.
262
- *
263
- * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
264
- * @format GUID
265
- */
266
- formId?: string | null;
267
- }
268
- export interface PagingMetadataV2 {
269
- /** Number of items returned in the response. */
270
- count?: number | null;
271
- /** Offset that was requested. */
272
- offset?: number | null;
273
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
274
- total?: number | null;
275
- /** Flag that indicates the server failed to calculate the `total` field. */
276
- tooManyToCount?: boolean | null;
277
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
278
- cursors?: Cursors;
279
- }
280
- export interface Cursors {
281
- /**
282
- * Cursor string pointing to the next page in the list of results.
283
- * @maxLength 16000
284
- */
285
- next?: string | null;
286
- /**
287
- * Cursor pointing to the previous page in the list of results.
288
- * @maxLength 16000
289
- */
290
- prev?: string | null;
291
- }
292
- export interface QueryPublicPlansRequest {
293
- /** Query options. */
294
- query?: QueryV2;
295
- }
296
- export interface QueryV2 {
297
- /** 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)). */
298
- filter?: Record<string, any> | null;
299
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]. */
300
- sort?: Sorting[];
301
- /** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */
302
- paging?: Paging;
303
- }
304
- export interface Sorting {
305
- /**
306
- * Name of the field to sort by.
307
- * @maxLength 512
308
- */
309
- fieldName?: string;
310
- /** Sort order. */
311
- order?: SortOrderWithLiterals;
312
- }
313
- export declare enum SortOrder {
314
- ASC = "ASC",
315
- DESC = "DESC"
316
- }
317
- /** @enumType */
318
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
319
- export interface Paging {
320
- /** Number of items to load. */
321
- limit?: number | null;
322
- /** Number of items to skip in the current sort order. */
323
- offset?: number | null;
324
- }
325
- export interface QueryPublicPlansResponse {
326
- /** List of public pricing plans that match the specified query. */
327
- plans?: PublicPlan[];
328
- /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
329
- pagingMetadata?: PagingMetadataV2;
330
- }
331
- export interface GetPlanRequest {
332
- /**
333
- * Plan ID.
334
- * @format GUID
335
- */
336
- _id: string;
337
- }
338
- export interface GetPlanResponse {
339
- /** Pricing plan. */
340
- plan?: Plan;
341
- }
342
- export interface ListPlansRequest {
343
- /** Archived filter. Defaults to `ACTIVE` (not archived) only. */
344
- archived?: ArchivedFilterWithLiterals;
345
- /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
346
- public?: PublicFilterWithLiterals;
347
- /**
348
- * Number of pricing plans to list. Defaults to `75`.
349
- * @min 1
350
- * @max 100
351
- */
352
- limit?: number | null;
353
- /** Number of pricing plans to skip. Defaults to `0`. */
354
- offset?: number | null;
355
- /**
356
- * IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.
357
- * @format GUID
358
- * @maxSize 100
359
- */
360
- planIds?: string[];
361
- }
362
- export declare enum ArchivedFilter {
363
- /** Returns all plans that are active. */
364
- ACTIVE = "ACTIVE",
365
- /** Returns all plans that are archived. */
366
- ARCHIVED = "ARCHIVED",
367
- /** Returns all plans that are active and archived. */
368
- ARCHIVED_AND_ACTIVE = "ARCHIVED_AND_ACTIVE"
369
- }
370
- /** @enumType */
371
- export type ArchivedFilterWithLiterals = ArchivedFilter | 'ACTIVE' | 'ARCHIVED' | 'ARCHIVED_AND_ACTIVE';
372
- export declare enum PublicFilter {
373
- /** Returns all public and hidden plans. */
374
- PUBLIC_AND_HIDDEN = "PUBLIC_AND_HIDDEN",
375
- /** Returns only public plans. */
376
- PUBLIC = "PUBLIC",
377
- /** Returns only hidden plans. */
378
- HIDDEN = "HIDDEN"
379
- }
380
- /** @enumType */
381
- export type PublicFilterWithLiterals = PublicFilter | 'PUBLIC_AND_HIDDEN' | 'PUBLIC' | 'HIDDEN';
382
- export interface ListPlansResponse {
383
- /** List of all public and hidden pricing plans. */
384
- plans?: Plan[];
385
- /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
386
- pagingMetadata?: PagingMetadataV2;
387
- }
388
- export interface GetPlanStatsRequest {
389
- }
390
- export interface GetPlanStatsResponse {
391
- /** Total number of plans created, including active plans (both public and hidden) and archived plans. */
392
- totalPlans?: number;
393
- }
394
- export interface CreatePlanRequest {
395
- /** Plan details. */
396
- plan: Plan;
397
- }
398
- export interface CreatePlanResponse {
399
- /** Created plan. */
400
- plan?: Plan;
401
- }
402
- export interface UpdatePlanRequest {
403
- /** ID of the plan to update. */
404
- plan: Plan;
405
- }
406
- export interface UpdatePlanResponse {
407
- /** Updated plan. */
408
- plan?: Plan;
409
- }
410
- export interface BuyerCanCancelUpdated {
411
- /** Pricing plan. */
412
- plan?: Plan;
413
- }
414
- export interface SetPlanVisibilityRequest {
415
- /**
416
- * The ID of the plan to either display or hide on a site page.
417
- * @format GUID
418
- */
419
- _id: string;
420
- /** Whether a plan is visible to members and site visitors. Updates the `public` field. */
421
- visible: boolean;
422
- }
423
- export interface SetPlanVisibilityResponse {
424
- /** Pricing plan. */
425
- plan?: Plan;
426
- }
427
- export interface MakePlanPrimaryRequest {
428
- /**
429
- * Pricing plan ID.
430
- * @format GUID
431
- */
432
- _id: string;
433
- }
434
- export interface MakePlanPrimaryResponse {
435
- /** Pricing plan. */
436
- plan?: Plan;
437
- }
438
- export interface ClearPrimaryRequest {
439
- }
440
- export interface ClearPrimaryResponse {
441
- }
442
- export interface ArchivePlanRequest {
443
- /**
444
- * ID of the active plan to archive.
445
- * @format GUID
446
- */
447
- _id: string;
448
- }
449
- export interface ArchivePlanResponse {
450
- /** Archived plan. */
451
- plan?: Plan;
452
- }
453
- export interface PlanArchived {
454
- /** Pricing plan. */
455
- plan?: Plan;
456
- }
457
- export interface BulkArchivePlanRequest {
458
- /**
459
- * List of Plan IDs to archive.
460
- * @format GUID
461
- * @minSize 1
462
- * @maxSize 100
463
- */
464
- ids?: string[];
465
- /** Set to `true` to return the `Plan` entity in the response. */
466
- returnFullEntity?: boolean;
467
- }
468
- export interface BulkArchivePlanResponse {
469
- /** Plans to be archived. */
470
- results?: BulkPlanResult[];
471
- /** Bulk action metadata. */
472
- bulkActionMetadata?: BulkActionMetadata;
473
- }
474
- export interface BulkPlanResult {
475
- /** Item metadata. */
476
- itemMetadata?: ItemMetadata;
477
- /** Pricing plan. */
478
- plan?: Plan;
479
- }
480
- export interface ItemMetadata {
481
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
482
- _id?: string | null;
483
- /** Index of the item within the request array. Allows for correlation between request and response items. */
484
- originalIndex?: number;
485
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
486
- success?: boolean;
487
- /** Details about the error in case of failure. */
488
- error?: ApplicationError;
489
- }
490
- export interface ApplicationError {
491
- /** Error code. */
492
- code?: string;
493
- /** Description of the error. */
494
- description?: string;
495
- /** Data related to the error. */
496
- data?: Record<string, any> | null;
497
- }
498
- export interface BulkActionMetadata {
499
- /** Number of items that were successfully processed. */
500
- totalSuccesses?: number;
501
- /** Number of items that couldn't be processed. */
502
- totalFailures?: number;
503
- /** Number of failures without details because detailed failure threshold was exceeded. */
504
- undetailedFailures?: number;
505
- }
506
- export interface ArrangePlansRequest {
507
- /**
508
- * IDs of all non-archived plans in the order you want them arranged.
509
- * @format GUID
510
- * @minSize 1
511
- */
512
- ids?: string[];
513
- }
514
- export interface ArrangePlansResponse {
515
- }
516
- export interface CountPlansRequest {
517
- /** The filter. */
518
- filter?: Record<string, any> | null;
519
- /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
520
- visibility?: boolean | null;
521
- }
522
- export interface CountPlansResponse {
523
- /** Number of plans in the response. */
524
- count?: number;
525
- }
526
- export interface GetPlansPremiumStatusRequest {
527
- }
528
- export interface GetPlansPremiumStatusResponse {
529
- /** True if a site has non-free, non-template plans. */
530
- hasPaidPlans?: boolean;
531
- /** True if a site has plans that were created before Pricing Plans became a premium app. */
532
- hasOldPlans?: boolean;
533
- }
534
- export interface SearchPlansRequest {
535
- /** Query options. */
536
- query?: QueryV2;
537
- /**
538
- * Search phrase for the plan name.
539
- * @maxLength 50
540
- */
541
- searchPhrase?: string | null;
542
- }
543
- export interface SearchPlansResponse {
544
- /** List of pricing plans that match the specified filter and search phrase. */
545
- plans?: Plan[];
546
- /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
547
- pagingMetadata?: PagingMetadataV2;
548
- }
549
- export interface DomainEvent extends DomainEventBodyOneOf {
550
- createdEvent?: EntityCreatedEvent;
551
- updatedEvent?: EntityUpdatedEvent;
552
- deletedEvent?: EntityDeletedEvent;
553
- actionEvent?: ActionEvent;
554
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
555
- _id?: string;
556
- /**
557
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
558
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
559
- */
560
- entityFqdn?: string;
561
- /**
562
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
563
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
564
- */
565
- slug?: string;
566
- /** ID of the entity associated with the event. */
567
- entityId?: string;
568
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
569
- eventTime?: Date | null;
570
- /**
571
- * Whether the event was triggered as a result of a privacy regulation application
572
- * (for example, GDPR).
573
- */
574
- triggeredByAnonymizeRequest?: boolean | null;
575
- /** If present, indicates the action that triggered the event. */
576
- originatedFrom?: string | null;
577
- /**
578
- * 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.
579
- * 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.
580
- */
581
- entityEventSequence?: string | null;
582
- }
583
- /** @oneof */
584
- export interface DomainEventBodyOneOf {
585
- createdEvent?: EntityCreatedEvent;
586
- updatedEvent?: EntityUpdatedEvent;
587
- deletedEvent?: EntityDeletedEvent;
588
- actionEvent?: ActionEvent;
589
- }
590
- export interface EntityCreatedEvent {
591
- entity?: string;
592
- }
593
- export interface RestoreInfo {
594
- deletedDate?: Date | null;
595
- }
596
- export interface EntityUpdatedEvent {
597
- /**
598
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
599
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
600
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
601
- */
602
- currentEntity?: string;
603
- }
604
- export interface EntityDeletedEvent {
605
- /** Entity that was deleted. */
606
- deletedEntity?: string | null;
607
- }
608
- export interface ActionEvent {
609
- body?: string;
610
- }
611
- export interface MessageEnvelope {
612
- /**
613
- * App instance ID.
614
- * @format GUID
615
- */
616
- instanceId?: string | null;
617
- /**
618
- * Event type.
619
- * @maxLength 150
620
- */
621
- eventType?: string;
622
- /** The identification type and identity data. */
623
- identity?: IdentificationData;
624
- /** Stringify payload. */
625
- data?: string;
626
- }
627
- export interface IdentificationData extends IdentificationDataIdOneOf {
628
- /**
629
- * ID of a site visitor that has not logged in to the site.
630
- * @format GUID
631
- */
632
- anonymousVisitorId?: string;
633
- /**
634
- * ID of a site visitor that has logged in to the site.
635
- * @format GUID
636
- */
637
- memberId?: string;
638
- /**
639
- * ID of a Wix user (site owner, contributor, etc.).
640
- * @format GUID
641
- */
642
- wixUserId?: string;
643
- /**
644
- * ID of an app.
645
- * @format GUID
646
- */
647
- appId?: string;
648
- /** @readonly */
649
- identityType?: WebhookIdentityTypeWithLiterals;
650
- }
651
- /** @oneof */
652
- export interface IdentificationDataIdOneOf {
653
- /**
654
- * ID of a site visitor that has not logged in to the site.
655
- * @format GUID
656
- */
657
- anonymousVisitorId?: string;
658
- /**
659
- * ID of a site visitor that has logged in to the site.
660
- * @format GUID
661
- */
662
- memberId?: string;
663
- /**
664
- * ID of a Wix user (site owner, contributor, etc.).
665
- * @format GUID
666
- */
667
- wixUserId?: string;
668
- /**
669
- * ID of an app.
670
- * @format GUID
671
- */
672
- appId?: string;
673
- }
674
- export declare enum WebhookIdentityType {
675
- UNKNOWN = "UNKNOWN",
676
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
677
- MEMBER = "MEMBER",
678
- WIX_USER = "WIX_USER",
679
- APP = "APP"
680
- }
681
- /** @enumType */
682
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
683
- export interface BaseEventMetadata {
684
- /**
685
- * App instance ID.
686
- * @format GUID
687
- */
688
- instanceId?: string | null;
689
- /**
690
- * Event type.
691
- * @maxLength 150
692
- */
693
- eventType?: string;
694
- /** The identification type and identity data. */
695
- identity?: IdentificationData;
696
- }
697
- export interface EventMetadata extends BaseEventMetadata {
698
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
699
- _id?: string;
700
- /**
701
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
702
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
703
- */
704
- entityFqdn?: string;
705
- /**
706
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
707
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
708
- */
709
- slug?: string;
710
- /** ID of the entity associated with the event. */
711
- entityId?: string;
712
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
713
- eventTime?: Date | null;
714
- /**
715
- * Whether the event was triggered as a result of a privacy regulation application
716
- * (for example, GDPR).
717
- */
718
- triggeredByAnonymizeRequest?: boolean | null;
719
- /** If present, indicates the action that triggered the event. */
720
- originatedFrom?: string | null;
721
- /**
722
- * 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.
723
- * 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.
724
- */
725
- entityEventSequence?: string | null;
726
- }
727
- export interface PlanBuyerCanCancelUpdatedEnvelope {
728
- data: BuyerCanCancelUpdated;
729
- metadata: EventMetadata;
730
- }
731
- /**
732
- * Triggered when a plan's `buyerCanCancel` field is updated.
733
- * @permissionScope Read Pricing Plans
734
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
735
- * @permissionScope Manage Stores
736
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
737
- * @permissionScope Manage plans and orders of Pricing Plans
738
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
739
- * @permissionScope Manage Events
740
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
741
- * @permissionScope Manage Challenges
742
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
743
- * @permissionScope Manage Blog
744
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
745
- * @permissionScope Manage Pricing Plans
746
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
747
- * @permissionId PRICING_PLANS.READ_PLANS
748
- * @webhook
749
- * @eventType wix.pricing_plans.plan_buyer_can_cancel_updated
750
- * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
751
- * @slug buyer_can_cancel_updated
752
- */
753
- export declare function onPlanBuyerCanCancelUpdated(handler: (event: PlanBuyerCanCancelUpdatedEnvelope) => void | Promise<void>): void;
754
- export interface PlanCreatedEnvelope {
755
- entity: Plan;
756
- metadata: EventMetadata;
757
- }
758
- /**
759
- * Triggered when a pricing plan is created.
760
- * @permissionScope Read Pricing Plans
761
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
762
- * @permissionScope Manage Stores
763
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
764
- * @permissionScope Manage plans and orders of Pricing Plans
765
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
766
- * @permissionScope Manage Events
767
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
768
- * @permissionScope Manage Challenges
769
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
770
- * @permissionScope Manage Blog
771
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
772
- * @permissionScope Manage Pricing Plans
773
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
774
- * @permissionId PRICING_PLANS.READ_PLANS
775
- * @webhook
776
- * @eventType wix.pricing_plans.plan_created
777
- * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
778
- * @slug created
779
- */
780
- export declare function onPlanCreated(handler: (event: PlanCreatedEnvelope) => void | Promise<void>): void;
781
- export interface PlanArchivedEnvelope {
782
- data: PlanArchived;
783
- metadata: EventMetadata;
784
- }
785
- /**
786
- * Triggered when a pricing plan is archived.
787
- * @permissionScope Read Pricing Plans
788
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
789
- * @permissionScope Manage Stores
790
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
791
- * @permissionScope Manage plans and orders of Pricing Plans
792
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
793
- * @permissionScope Manage Events
794
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
795
- * @permissionScope Manage Challenges
796
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
797
- * @permissionScope Manage Blog
798
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
799
- * @permissionScope Manage Pricing Plans
800
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
801
- * @permissionId PRICING_PLANS.READ_PLANS
802
- * @webhook
803
- * @eventType wix.pricing_plans.plan_plan_archived
804
- * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
805
- * @slug plan_archived
806
- */
807
- export declare function onPlanArchived(handler: (event: PlanArchivedEnvelope) => void | Promise<void>): void;
808
- export interface PlanUpdatedEnvelope {
809
- entity: Plan;
810
- metadata: EventMetadata;
811
- }
812
- /**
813
- * Triggered when a pricing plan is updated.
814
- * @permissionScope Read Pricing Plans
815
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
816
- * @permissionScope Manage Stores
817
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
818
- * @permissionScope Manage plans and orders of Pricing Plans
819
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
820
- * @permissionScope Manage Events
821
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
822
- * @permissionScope Manage Challenges
823
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
824
- * @permissionScope Manage Blog
825
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
826
- * @permissionScope Manage Pricing Plans
827
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
828
- * @permissionId PRICING_PLANS.READ_PLANS
829
- * @webhook
830
- * @eventType wix.pricing_plans.plan_updated
831
- * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
832
- * @slug updated
833
- */
834
- export declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | Promise<void>): void;
835
- type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
836
- /**
837
- * Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.
838
- * @public
839
- * @param options - Options for filtering and paging the list of public plans.
840
- * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
841
- * @permissionScope Read Pricing Plans
842
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
843
- * @permissionScope Manage Stores
844
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
845
- * @permissionScope Manage Orders
846
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
847
- * @permissionScope Manage Bookings Services and Settings
848
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
849
- * @permissionScope Read Orders
850
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
851
- * @permissionScope Manage plans and orders of Pricing Plans
852
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
853
- * @permissionScope Manage Events
854
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
855
- * @permissionScope Manage Challenges
856
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
857
- * @permissionScope Manage Portfolio
858
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
859
- * @permissionScope Manage Blog
860
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
861
- * @permissionScope Access Verticals by Automations
862
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
863
- * @permissionScope Manage Pricing Plans
864
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
865
- * @permissionScope Manage Restaurants - all permissions
866
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
867
- * @permissionScope Set Up Automations
868
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
869
- * @applicableIdentity APP
870
- * @applicableIdentity VISITOR
871
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
872
- */
873
- export declare function listPublicPlans(options?: ListPublicPlansOptions): Promise<NonNullablePaths<ListPublicPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.subscription.cycleDuration.unit` | `plans.${number}.pricing.price.value` | `plans.${number}.pricing.price.currency` | `plans.${number}.primary`>>;
874
- export interface ListPublicPlansOptions {
875
- /**
876
- * 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)).
877
- * @min 1
878
- * @max 100
879
- */
880
- limit?: number | null;
881
- /** Number of items to skip. Defaults to `0`. See paging ([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)). */
882
- offset?: number | null;
883
- /**
884
- * IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.
885
- * @format GUID
886
- * @maxSize 100
887
- */
888
- planIds?: string[];
889
- }
890
- /**
891
- * Creates a query to retrieve a list of public pricing plans.
892
- *
893
- *
894
- * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.
895
- *
896
- * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.
897
- *
898
- * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.
899
- *
900
- * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:
901
- * - [`skip`](#plansquerybuilder/skip): `0`
902
- * - [`limit`](#plansquerybuilder/limit): `50`
903
- *
904
- * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.
905
- *
906
- * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).
907
- * @public
908
- * @permissionScope Read Pricing Plans
909
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
910
- * @permissionScope Manage Stores
911
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
912
- * @permissionScope Manage Orders
913
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
914
- * @permissionScope Manage Bookings Services and Settings
915
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
916
- * @permissionScope Read Orders
917
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
918
- * @permissionScope Manage plans and orders of Pricing Plans
919
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
920
- * @permissionScope Manage Events
921
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
922
- * @permissionScope Manage Challenges
923
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
924
- * @permissionScope Manage Portfolio
925
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
926
- * @permissionScope Manage Blog
927
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
928
- * @permissionScope Access Verticals by Automations
929
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
930
- * @permissionScope Manage Pricing Plans
931
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
932
- * @permissionScope Manage Restaurants - all permissions
933
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
934
- * @permissionScope Set Up Automations
935
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
936
- * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
937
- * @applicableIdentity APP
938
- * @applicableIdentity VISITOR
939
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
940
- */
941
- export declare function queryPublicPlans(): PlansQueryBuilder;
942
- interface QueryOffsetResult {
943
- currentPage: number | undefined;
944
- totalPages: number | undefined;
945
- totalCount: number | undefined;
946
- hasNext: () => boolean;
947
- hasPrev: () => boolean;
948
- length: number;
949
- pageSize: number;
950
- }
951
- export interface PlansQueryResult extends QueryOffsetResult {
952
- items: PublicPlan[];
953
- query: PlansQueryBuilder;
954
- next: () => Promise<PlansQueryResult>;
955
- prev: () => Promise<PlansQueryResult>;
956
- }
957
- export interface PlansQueryBuilder {
958
- /** @param propertyName - Property whose value is compared with `value`.
959
- * @param value - Value to compare against.
960
- */
961
- eq: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
962
- /** @param propertyName - Property whose value is compared with `value`.
963
- * @param value - Value to compare against.
964
- */
965
- ne: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
966
- /** @param propertyName - Property whose value is compared with `value`.
967
- * @param value - Value to compare against.
968
- */
969
- ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
970
- /** @param propertyName - Property whose value is compared with `value`.
971
- * @param value - Value to compare against.
972
- */
973
- gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
974
- /** @param propertyName - Property whose value is compared with `value`.
975
- * @param value - Value to compare against.
976
- */
977
- le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
978
- /** @param propertyName - Property whose value is compared with `value`.
979
- * @param value - Value to compare against.
980
- */
981
- lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
982
- /** @param propertyName - Property whose value is compared with `string`.
983
- * @param string - String to compare against. Case-insensitive.
984
- */
985
- startsWith: (propertyName: '_id' | 'slug', value: string) => PlansQueryBuilder;
986
- /** @param propertyName - Property whose value is compared with `values`.
987
- * @param values - List of values to compare against.
988
- */
989
- hasSome: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any[]) => PlansQueryBuilder;
990
- in: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
991
- exists: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: boolean) => PlansQueryBuilder;
992
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
993
- ascending: (...propertyNames: Array<'_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug'>) => PlansQueryBuilder;
994
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
995
- descending: (...propertyNames: Array<'_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug'>) => PlansQueryBuilder;
996
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
997
- limit: (limit: number) => PlansQueryBuilder;
998
- /** @param skip - Number of items to skip in the query results before returning the results. */
999
- skip: (skip: number) => PlansQueryBuilder;
1000
- find: () => Promise<PlansQueryResult>;
1001
- }
1002
- /**
1003
- * Retrieves a pricing plan by ID.
1004
- * @param _id - Plan ID.
1005
- * @public
1006
- * @requiredField _id
1007
- * @permissionId PRICING_PLANS.READ_PLANS
1008
- * @permissionScope Read Pricing Plans
1009
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
1010
- * @permissionScope Manage Stores
1011
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1012
- * @permissionScope Manage plans and orders of Pricing Plans
1013
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1014
- * @permissionScope Manage Events
1015
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1016
- * @permissionScope Manage Challenges
1017
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1018
- * @permissionScope Manage Blog
1019
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1020
- * @permissionScope Manage Pricing Plans
1021
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1022
- * @applicableIdentity APP
1023
- * @returns Pricing plan.
1024
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
1025
- */
1026
- export declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths>>;
1027
- /**
1028
- * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
1029
- * @public
1030
- * @param options - Options for filtering and paging the list of plans.
1031
- * @permissionId PRICING_PLANS.READ_PLANS
1032
- * @permissionScope Read Pricing Plans
1033
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
1034
- * @permissionScope Manage Stores
1035
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1036
- * @permissionScope Manage plans and orders of Pricing Plans
1037
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1038
- * @permissionScope Manage Events
1039
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1040
- * @permissionScope Manage Challenges
1041
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1042
- * @permissionScope Manage Blog
1043
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1044
- * @permissionScope Manage Pricing Plans
1045
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1046
- * @applicableIdentity APP
1047
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
1048
- */
1049
- export declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1050
- [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
1051
- }[PlanNonNullablePaths]>>;
1052
- export interface ListPlansOptions {
1053
- /** Archived filter. Defaults to `ACTIVE` (not archived) only. */
1054
- archived?: ArchivedFilterWithLiterals;
1055
- /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
1056
- public?: PublicFilterWithLiterals;
1057
- /**
1058
- * Number of pricing plans to list. Defaults to `75`.
1059
- * @min 1
1060
- * @max 100
1061
- */
1062
- limit?: number | null;
1063
- /** Number of pricing plans to skip. Defaults to `0`. */
1064
- offset?: number | null;
1065
- /**
1066
- * IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.
1067
- * @format GUID
1068
- * @maxSize 100
1069
- */
1070
- planIds?: string[];
1071
- }
1072
- /**
1073
- * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
1074
- * @public
1075
- * @permissionId PRICING_PLANS.READ_PLANS
1076
- * @permissionScope Read Pricing Plans
1077
- * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-PLANS
1078
- * @permissionScope Manage Stores
1079
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1080
- * @permissionScope Manage plans and orders of Pricing Plans
1081
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1082
- * @permissionScope Manage Events
1083
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1084
- * @permissionScope Manage Challenges
1085
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1086
- * @permissionScope Manage Blog
1087
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
1088
- * @permissionScope Manage Pricing Plans
1089
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1090
- * @applicableIdentity APP
1091
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
1092
- */
1093
- export declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`>>;
1094
- /**
1095
- * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:
1096
- * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.
1097
- * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.
1098
- * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).
1099
- * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
1100
- * @public
1101
- * @requiredField plan
1102
- * @requiredField plan.name
1103
- * @requiredField plan.pricing
1104
- * @requiredField plan.pricing.pricingModel
1105
- * @requiredField plan.pricing.pricingModel.singlePaymentForDuration.count
1106
- * @requiredField plan.pricing.pricingModel.subscription.cycleCount
1107
- * @requiredField plan.pricing.pricingModel.subscription.cycleDuration
1108
- * @requiredField plan.pricing.pricingModel.subscription.cycleDuration.count
1109
- * @param plan - Information for the plan being created.
1110
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1111
- * @permissionScope Manage plans and orders of Pricing Plans
1112
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1113
- * @permissionScope Manage Pricing Plans
1114
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1115
- * @applicableIdentity APP
1116
- * @returns Created plan.
1117
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
1118
- */
1119
- export declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths>>;
1120
- /**
1121
- * Updates a pricing plan.
1122
- * Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
1123
- * @public
1124
- * @requiredField _id
1125
- * @requiredField plan
1126
- * @param _id - ID of the plan to update.
1127
- * @param options - Options for updating the plan.
1128
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1129
- * @permissionScope Manage plans and orders of Pricing Plans
1130
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1131
- * @permissionScope Manage Pricing Plans
1132
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1133
- * @applicableIdentity APP
1134
- * @returns Updated plan.
1135
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
1136
- */
1137
- export declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths>>;
1138
- export interface UpdatePlan {
1139
- /**
1140
- * Plan ID.
1141
- * @format GUID
1142
- * @readonly
1143
- */
1144
- _id?: string;
1145
- /**
1146
- * Plan name.
1147
- * @minLength 1
1148
- * @maxLength 50
1149
- */
1150
- name?: string | null;
1151
- /**
1152
- * Plan description.
1153
- * @maxLength 450
1154
- */
1155
- description?: string | null;
1156
- /** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
1157
- perks?: StringList;
1158
- /** Plan price, payment schedule, and expiration. */
1159
- pricing?: Pricing;
1160
- /** Whether the plan is public (visible to site visitors and members). */
1161
- public?: boolean | null;
1162
- /**
1163
- * Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.
1164
- * @readonly
1165
- */
1166
- archived?: boolean;
1167
- /**
1168
- * Whether the plan is marked as primary.
1169
- * @readonly
1170
- */
1171
- primary?: boolean;
1172
- /**
1173
- * Whether the plan has any orders (including pending and unpaid orders).
1174
- * @readonly
1175
- */
1176
- hasOrders?: boolean;
1177
- /**
1178
- * Date plan was created.
1179
- * @readonly
1180
- */
1181
- _createdDate?: Date | null;
1182
- /**
1183
- * Date plan was last updated.
1184
- * @readonly
1185
- */
1186
- _updatedDate?: Date | null;
1187
- /**
1188
- * URL-friendly version of plan name. Unique across all plans in the same site.
1189
- * @minLength 1
1190
- * @readonly
1191
- * @format URL_SLUG
1192
- */
1193
- slug?: string | null;
1194
- /**
1195
- * Number of times the same buyer can purchase the plan. Currently limited to support:
1196
- * - Empty value or a value of `0`, meaning no limitation.
1197
- * - Value of `1`, meaning limited to 1 purchase per buyer.
1198
- * @max 1
1199
- */
1200
- maxPurchasesPerBuyer?: number | null;
1201
- /** Whether the buyer can start the plan at a later date. Defaults to false. */
1202
- allowFutureStartDate?: boolean | null;
1203
- /**
1204
- * Whether the buyer is allowed to cancel their plan. Defaults to false.
1205
- * If false, calling Request Cancellation returns an error.
1206
- */
1207
- buyerCanCancel?: boolean | null;
1208
- /**
1209
- * Any terms and conditions that apply to the plan. This information is displayed during checkout.
1210
- * @maxLength 3000
1211
- */
1212
- termsAndConditions?: string | null;
1213
- /**
1214
- * ID of the form associated with the plan at checkout.
1215
- *
1216
- * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
1217
- * @format GUID
1218
- */
1219
- formId?: string | null;
1220
- }
1221
- /**
1222
- * Sets visibility for pricing plans. Visible plans are considered public plans.
1223
- * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
1224
- * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)
1225
- * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
1226
- * @param visible - Whether a plan is visible to members and site visitors. Updates the `public` field.
1227
- * @public
1228
- * @requiredField _id
1229
- * @requiredField visible
1230
- * @param _id - The ID of the plan to either display or hide on the site page.
1231
- * @param options - Plan visibility options.
1232
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1233
- * @permissionScope Manage plans and orders of Pricing Plans
1234
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1235
- * @permissionScope Manage Pricing Plans
1236
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1237
- * @applicableIdentity APP
1238
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
1239
- */
1240
- export declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1241
- [P in PlanNonNullablePaths]: `plan.${P}`;
1242
- }[PlanNonNullablePaths]>>;
1243
- /**
1244
- * Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.
1245
- * @public
1246
- * @requiredField _id
1247
- * @param _id - ID of the pricing plan to set as the primary plan.
1248
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1249
- * @permissionScope Manage plans and orders of Pricing Plans
1250
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1251
- * @permissionScope Manage Pricing Plans
1252
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1253
- * @applicableIdentity APP
1254
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
1255
- */
1256
- export declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1257
- [P in PlanNonNullablePaths]: `plan.${P}`;
1258
- }[PlanNonNullablePaths]>>;
1259
- /**
1260
- * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
1261
- * @public
1262
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1263
- * @permissionScope Manage plans and orders of Pricing Plans
1264
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1265
- * @permissionScope Manage Pricing Plans
1266
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1267
- * @applicableIdentity APP
1268
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
1269
- */
1270
- export declare function clearPrimary(): Promise<void>;
1271
- /**
1272
- * Archives a single plan.
1273
- * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
1274
- * This is because the plan's `public` property is automatically set to `false`.
1275
- * Archived plans can't be purchased or reactivated.
1276
- * Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms.
1277
- * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
1278
- * > **Note:** An attempt to archive an already-archived plan throws an error.
1279
- * @public
1280
- * @requiredField _id
1281
- * @param _id - ID of the active plan to archive.
1282
- * @permissionId PRICING_PLANS.MANAGE_PLANS
1283
- * @permissionScope Manage plans and orders of Pricing Plans
1284
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1285
- * @permissionScope Manage Pricing Plans
1286
- * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
1287
- * @applicableIdentity APP
1288
- * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
1289
- */
1290
- export declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1291
- [P in PlanNonNullablePaths]: `plan.${P}`;
1292
- }[PlanNonNullablePaths]>>;
1293
- export {};