@wix/auto_sdk_pricing-plans_plans 1.0.113 → 1.0.115
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.
- package/build/cjs/index.js +10 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +10 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +10 -10
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +634 -612
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +10 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +10 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +10 -10
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +634 -612
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +3 -3
- package/build/internal/cjs/index.js +0 -1102
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -908
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -773
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -1460
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1057
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -866
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -730
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -1402
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -1,730 +0,0 @@
|
|
|
1
|
-
// src/pricing-plans-v2-plan-plans.http.ts
|
|
2
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
-
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
-
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
-
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
6
|
-
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
7
|
-
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
8
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
9
|
-
function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
10
|
-
const domainToMappings = {
|
|
11
|
-
"*.dev.wix-code.com": [
|
|
12
|
-
{
|
|
13
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
14
|
-
destPath: "/v2/plans"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
18
|
-
destPath: "/v2/plans"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"*.pub.wix-code.com": [
|
|
22
|
-
{
|
|
23
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
24
|
-
destPath: "/v2/plans"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"*.wixapps.net": [
|
|
28
|
-
{
|
|
29
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
30
|
-
destPath: "/v2/plans"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
_: [
|
|
34
|
-
{
|
|
35
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
36
|
-
destPath: "/v2/plans"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
40
|
-
destPath: "/v2/plans"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"editor-flow.wixapps.net": [
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
46
|
-
destPath: "/v2/plans"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"editor._base_domain_": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
52
|
-
destPath: "/v2/plans"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
56
|
-
destPath: "/v2/plans"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"blocks._base_domain_": [
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
62
|
-
destPath: "/v2/plans"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
66
|
-
destPath: "/v2/plans"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"create.editorx": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
72
|
-
destPath: "/v2/plans"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
76
|
-
destPath: "/v2/plans"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"editor.wixapps.net": [
|
|
80
|
-
{
|
|
81
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
82
|
-
destPath: "/v2/plans"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
86
|
-
destPath: "/v2/plans"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"forums._base_domain_": [
|
|
90
|
-
{
|
|
91
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
92
|
-
destPath: "/v2/plans"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"forums.wixapps.net": [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
98
|
-
destPath: "/v2/plans"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"manage._base_domain_": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
104
|
-
destPath: "/v2/plans"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
108
|
-
destPath: "/v2/plans"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"www._base_domain_": [
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
114
|
-
destPath: "/v2/plans"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"www.wixapis.com": [
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/pricing-plans/v2/plans",
|
|
120
|
-
destPath: "/v2/plans"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"apps._base_domain_": [
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
126
|
-
destPath: "/v2/plans"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
130
|
-
destPath: "/v2/plans"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"dev._base_domain_": [
|
|
134
|
-
{
|
|
135
|
-
srcPath: "/_api/paid-plans/v2/plans",
|
|
136
|
-
destPath: "/v2/plans"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
srcPath: "/_api/pricing-plans/v2/plans",
|
|
140
|
-
destPath: "/v2/plans"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"api._api_base_domain_": [
|
|
144
|
-
{
|
|
145
|
-
srcPath: "/plan-proxy",
|
|
146
|
-
destPath: ""
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
};
|
|
150
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
151
|
-
}
|
|
152
|
-
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_plans";
|
|
153
|
-
function listPublicPlans(payload) {
|
|
154
|
-
function __listPublicPlans({ host }) {
|
|
155
|
-
const metadata = {
|
|
156
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
157
|
-
method: "GET",
|
|
158
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans",
|
|
159
|
-
packageName: PACKAGE_NAME,
|
|
160
|
-
migrationOptions: {
|
|
161
|
-
optInTransformResponse: true
|
|
162
|
-
},
|
|
163
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
164
|
-
protoPath: "/v2/plans/public",
|
|
165
|
-
data: payload,
|
|
166
|
-
host
|
|
167
|
-
}),
|
|
168
|
-
params: toURLSearchParams(payload),
|
|
169
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
170
|
-
{
|
|
171
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
172
|
-
paths: [
|
|
173
|
-
{ path: "plans.createdDate" },
|
|
174
|
-
{ path: "plans.updatedDate" }
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
])
|
|
178
|
-
};
|
|
179
|
-
return metadata;
|
|
180
|
-
}
|
|
181
|
-
return __listPublicPlans;
|
|
182
|
-
}
|
|
183
|
-
function queryPublicPlans(payload) {
|
|
184
|
-
function __queryPublicPlans({ host }) {
|
|
185
|
-
const serializedData = transformPaths(payload, [
|
|
186
|
-
{
|
|
187
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
188
|
-
paths: [
|
|
189
|
-
{ path: "query.sort.origin.latitude" },
|
|
190
|
-
{ path: "query.sort.origin.longitude" }
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
]);
|
|
194
|
-
const metadata = {
|
|
195
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
196
|
-
method: "POST",
|
|
197
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans",
|
|
198
|
-
packageName: PACKAGE_NAME,
|
|
199
|
-
migrationOptions: {
|
|
200
|
-
optInTransformResponse: true
|
|
201
|
-
},
|
|
202
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
203
|
-
protoPath: "/v2/plans/public/query",
|
|
204
|
-
data: serializedData,
|
|
205
|
-
host
|
|
206
|
-
}),
|
|
207
|
-
data: serializedData,
|
|
208
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
209
|
-
{
|
|
210
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
211
|
-
paths: [
|
|
212
|
-
{ path: "plans.createdDate" },
|
|
213
|
-
{ path: "plans.updatedDate" }
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
])
|
|
217
|
-
};
|
|
218
|
-
return metadata;
|
|
219
|
-
}
|
|
220
|
-
return __queryPublicPlans;
|
|
221
|
-
}
|
|
222
|
-
function getPlan(payload) {
|
|
223
|
-
function __getPlan({ host }) {
|
|
224
|
-
const metadata = {
|
|
225
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
226
|
-
method: "GET",
|
|
227
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan",
|
|
228
|
-
packageName: PACKAGE_NAME,
|
|
229
|
-
migrationOptions: {
|
|
230
|
-
optInTransformResponse: true
|
|
231
|
-
},
|
|
232
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
233
|
-
protoPath: "/v2/plans/{id}",
|
|
234
|
-
data: payload,
|
|
235
|
-
host
|
|
236
|
-
}),
|
|
237
|
-
params: toURLSearchParams(payload),
|
|
238
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
239
|
-
{
|
|
240
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
241
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
242
|
-
}
|
|
243
|
-
])
|
|
244
|
-
};
|
|
245
|
-
return metadata;
|
|
246
|
-
}
|
|
247
|
-
return __getPlan;
|
|
248
|
-
}
|
|
249
|
-
function listPlans(payload) {
|
|
250
|
-
function __listPlans({ host }) {
|
|
251
|
-
const metadata = {
|
|
252
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
253
|
-
method: "GET",
|
|
254
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans",
|
|
255
|
-
packageName: PACKAGE_NAME,
|
|
256
|
-
migrationOptions: {
|
|
257
|
-
optInTransformResponse: true
|
|
258
|
-
},
|
|
259
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
260
|
-
protoPath: "/v2/plans",
|
|
261
|
-
data: payload,
|
|
262
|
-
host
|
|
263
|
-
}),
|
|
264
|
-
params: toURLSearchParams(payload),
|
|
265
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
266
|
-
{
|
|
267
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
268
|
-
paths: [
|
|
269
|
-
{ path: "plans.createdDate" },
|
|
270
|
-
{ path: "plans.updatedDate" }
|
|
271
|
-
]
|
|
272
|
-
}
|
|
273
|
-
])
|
|
274
|
-
};
|
|
275
|
-
return metadata;
|
|
276
|
-
}
|
|
277
|
-
return __listPlans;
|
|
278
|
-
}
|
|
279
|
-
function getPlanStats(payload) {
|
|
280
|
-
function __getPlanStats({ host }) {
|
|
281
|
-
const metadata = {
|
|
282
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
283
|
-
method: "GET",
|
|
284
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats",
|
|
285
|
-
packageName: PACKAGE_NAME,
|
|
286
|
-
migrationOptions: {
|
|
287
|
-
optInTransformResponse: true
|
|
288
|
-
},
|
|
289
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
290
|
-
protoPath: "/v2/plans/stats",
|
|
291
|
-
data: payload,
|
|
292
|
-
host
|
|
293
|
-
}),
|
|
294
|
-
params: toURLSearchParams(payload)
|
|
295
|
-
};
|
|
296
|
-
return metadata;
|
|
297
|
-
}
|
|
298
|
-
return __getPlanStats;
|
|
299
|
-
}
|
|
300
|
-
function createPlan(payload) {
|
|
301
|
-
function __createPlan({ host }) {
|
|
302
|
-
const serializedData = transformPaths(payload, [
|
|
303
|
-
{
|
|
304
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
305
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
306
|
-
}
|
|
307
|
-
]);
|
|
308
|
-
const metadata = {
|
|
309
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
310
|
-
method: "POST",
|
|
311
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan",
|
|
312
|
-
packageName: PACKAGE_NAME,
|
|
313
|
-
migrationOptions: {
|
|
314
|
-
optInTransformResponse: true
|
|
315
|
-
},
|
|
316
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
317
|
-
protoPath: "/v2/plans",
|
|
318
|
-
data: serializedData,
|
|
319
|
-
host
|
|
320
|
-
}),
|
|
321
|
-
data: serializedData,
|
|
322
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
323
|
-
{
|
|
324
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
325
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
326
|
-
}
|
|
327
|
-
])
|
|
328
|
-
};
|
|
329
|
-
return metadata;
|
|
330
|
-
}
|
|
331
|
-
return __createPlan;
|
|
332
|
-
}
|
|
333
|
-
function updatePlan(payload) {
|
|
334
|
-
function __updatePlan({ host }) {
|
|
335
|
-
const serializedData = transformPaths(payload, [
|
|
336
|
-
{
|
|
337
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
338
|
-
paths: [{ path: "fieldMask" }]
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
342
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
343
|
-
}
|
|
344
|
-
]);
|
|
345
|
-
const metadata = {
|
|
346
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
347
|
-
method: "PATCH",
|
|
348
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan",
|
|
349
|
-
packageName: PACKAGE_NAME,
|
|
350
|
-
migrationOptions: {
|
|
351
|
-
optInTransformResponse: true
|
|
352
|
-
},
|
|
353
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
354
|
-
protoPath: "/v2/plans/{plan.id}",
|
|
355
|
-
data: serializedData,
|
|
356
|
-
host
|
|
357
|
-
}),
|
|
358
|
-
data: serializedData,
|
|
359
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
360
|
-
{
|
|
361
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
362
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
363
|
-
}
|
|
364
|
-
])
|
|
365
|
-
};
|
|
366
|
-
return metadata;
|
|
367
|
-
}
|
|
368
|
-
return __updatePlan;
|
|
369
|
-
}
|
|
370
|
-
function setPlanVisibility(payload) {
|
|
371
|
-
function __setPlanVisibility({ host }) {
|
|
372
|
-
const metadata = {
|
|
373
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
374
|
-
method: "PUT",
|
|
375
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility",
|
|
376
|
-
packageName: PACKAGE_NAME,
|
|
377
|
-
migrationOptions: {
|
|
378
|
-
optInTransformResponse: true
|
|
379
|
-
},
|
|
380
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
381
|
-
protoPath: "/v2/plans/{id}/visibility",
|
|
382
|
-
data: payload,
|
|
383
|
-
host
|
|
384
|
-
}),
|
|
385
|
-
data: payload,
|
|
386
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
387
|
-
{
|
|
388
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
389
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
390
|
-
}
|
|
391
|
-
])
|
|
392
|
-
};
|
|
393
|
-
return metadata;
|
|
394
|
-
}
|
|
395
|
-
return __setPlanVisibility;
|
|
396
|
-
}
|
|
397
|
-
function makePlanPrimary(payload) {
|
|
398
|
-
function __makePlanPrimary({ host }) {
|
|
399
|
-
const metadata = {
|
|
400
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
401
|
-
method: "POST",
|
|
402
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary",
|
|
403
|
-
packageName: PACKAGE_NAME,
|
|
404
|
-
migrationOptions: {
|
|
405
|
-
optInTransformResponse: true
|
|
406
|
-
},
|
|
407
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
408
|
-
protoPath: "/v2/plans/{id}/make-primary",
|
|
409
|
-
data: payload,
|
|
410
|
-
host
|
|
411
|
-
}),
|
|
412
|
-
data: payload,
|
|
413
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
414
|
-
{
|
|
415
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
416
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
417
|
-
}
|
|
418
|
-
])
|
|
419
|
-
};
|
|
420
|
-
return metadata;
|
|
421
|
-
}
|
|
422
|
-
return __makePlanPrimary;
|
|
423
|
-
}
|
|
424
|
-
function clearPrimary(payload) {
|
|
425
|
-
function __clearPrimary({ host }) {
|
|
426
|
-
const metadata = {
|
|
427
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
428
|
-
method: "POST",
|
|
429
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary",
|
|
430
|
-
packageName: PACKAGE_NAME,
|
|
431
|
-
migrationOptions: {
|
|
432
|
-
optInTransformResponse: true
|
|
433
|
-
},
|
|
434
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
435
|
-
protoPath: "/v2/plans/clear-primary",
|
|
436
|
-
data: payload,
|
|
437
|
-
host
|
|
438
|
-
}),
|
|
439
|
-
data: payload
|
|
440
|
-
};
|
|
441
|
-
return metadata;
|
|
442
|
-
}
|
|
443
|
-
return __clearPrimary;
|
|
444
|
-
}
|
|
445
|
-
function archivePlan(payload) {
|
|
446
|
-
function __archivePlan({ host }) {
|
|
447
|
-
const metadata = {
|
|
448
|
-
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
449
|
-
method: "POST",
|
|
450
|
-
methodFqn: "com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan",
|
|
451
|
-
packageName: PACKAGE_NAME,
|
|
452
|
-
migrationOptions: {
|
|
453
|
-
optInTransformResponse: true
|
|
454
|
-
},
|
|
455
|
-
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
456
|
-
protoPath: "/v2/plans/{id}/archive",
|
|
457
|
-
data: payload,
|
|
458
|
-
host
|
|
459
|
-
}),
|
|
460
|
-
data: payload,
|
|
461
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
462
|
-
{
|
|
463
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
464
|
-
paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
|
|
465
|
-
}
|
|
466
|
-
])
|
|
467
|
-
};
|
|
468
|
-
return metadata;
|
|
469
|
-
}
|
|
470
|
-
return __archivePlan;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
// src/pricing-plans-v2-plan-plans.types.ts
|
|
474
|
-
var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
|
|
475
|
-
PeriodUnit2["UNDEFINED"] = "UNDEFINED";
|
|
476
|
-
PeriodUnit2["DAY"] = "DAY";
|
|
477
|
-
PeriodUnit2["WEEK"] = "WEEK";
|
|
478
|
-
PeriodUnit2["MONTH"] = "MONTH";
|
|
479
|
-
PeriodUnit2["YEAR"] = "YEAR";
|
|
480
|
-
return PeriodUnit2;
|
|
481
|
-
})(PeriodUnit || {});
|
|
482
|
-
var AppliedAt = /* @__PURE__ */ ((AppliedAt2) => {
|
|
483
|
-
AppliedAt2["FIRST_PAYMENT"] = "FIRST_PAYMENT";
|
|
484
|
-
return AppliedAt2;
|
|
485
|
-
})(AppliedAt || {});
|
|
486
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
487
|
-
SortOrder2["ASC"] = "ASC";
|
|
488
|
-
SortOrder2["DESC"] = "DESC";
|
|
489
|
-
return SortOrder2;
|
|
490
|
-
})(SortOrder || {});
|
|
491
|
-
var ArchivedFilter = /* @__PURE__ */ ((ArchivedFilter2) => {
|
|
492
|
-
ArchivedFilter2["ACTIVE"] = "ACTIVE";
|
|
493
|
-
ArchivedFilter2["ARCHIVED"] = "ARCHIVED";
|
|
494
|
-
ArchivedFilter2["ARCHIVED_AND_ACTIVE"] = "ARCHIVED_AND_ACTIVE";
|
|
495
|
-
return ArchivedFilter2;
|
|
496
|
-
})(ArchivedFilter || {});
|
|
497
|
-
var PublicFilter = /* @__PURE__ */ ((PublicFilter2) => {
|
|
498
|
-
PublicFilter2["PUBLIC_AND_HIDDEN"] = "PUBLIC_AND_HIDDEN";
|
|
499
|
-
PublicFilter2["PUBLIC"] = "PUBLIC";
|
|
500
|
-
PublicFilter2["HIDDEN"] = "HIDDEN";
|
|
501
|
-
return PublicFilter2;
|
|
502
|
-
})(PublicFilter || {});
|
|
503
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
504
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
505
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
506
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
507
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
508
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
509
|
-
return WebhookIdentityType2;
|
|
510
|
-
})(WebhookIdentityType || {});
|
|
511
|
-
|
|
512
|
-
// src/pricing-plans-v2-plan-plans.meta.ts
|
|
513
|
-
function listPublicPlans2() {
|
|
514
|
-
const payload = {};
|
|
515
|
-
const getRequestOptions = listPublicPlans(payload);
|
|
516
|
-
const getUrl = (context) => {
|
|
517
|
-
const { url } = getRequestOptions(context);
|
|
518
|
-
return url;
|
|
519
|
-
};
|
|
520
|
-
return {
|
|
521
|
-
getUrl,
|
|
522
|
-
httpMethod: "GET",
|
|
523
|
-
path: "/v2/plans/public",
|
|
524
|
-
pathParams: {},
|
|
525
|
-
__requestType: null,
|
|
526
|
-
__originalRequestType: null,
|
|
527
|
-
__responseType: null,
|
|
528
|
-
__originalResponseType: null
|
|
529
|
-
};
|
|
530
|
-
}
|
|
531
|
-
function queryPublicPlans2() {
|
|
532
|
-
const payload = {};
|
|
533
|
-
const getRequestOptions = queryPublicPlans(payload);
|
|
534
|
-
const getUrl = (context) => {
|
|
535
|
-
const { url } = getRequestOptions(context);
|
|
536
|
-
return url;
|
|
537
|
-
};
|
|
538
|
-
return {
|
|
539
|
-
getUrl,
|
|
540
|
-
httpMethod: "POST",
|
|
541
|
-
path: "/v2/plans/public/query",
|
|
542
|
-
pathParams: {},
|
|
543
|
-
__requestType: null,
|
|
544
|
-
__originalRequestType: null,
|
|
545
|
-
__responseType: null,
|
|
546
|
-
__originalResponseType: null
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
function getPlan2() {
|
|
550
|
-
const payload = { id: ":id" };
|
|
551
|
-
const getRequestOptions = getPlan(payload);
|
|
552
|
-
const getUrl = (context) => {
|
|
553
|
-
const { url } = getRequestOptions(context);
|
|
554
|
-
return url;
|
|
555
|
-
};
|
|
556
|
-
return {
|
|
557
|
-
getUrl,
|
|
558
|
-
httpMethod: "GET",
|
|
559
|
-
path: "/v2/plans/{id}",
|
|
560
|
-
pathParams: { id: "id" },
|
|
561
|
-
__requestType: null,
|
|
562
|
-
__originalRequestType: null,
|
|
563
|
-
__responseType: null,
|
|
564
|
-
__originalResponseType: null
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
function listPlans2() {
|
|
568
|
-
const payload = {};
|
|
569
|
-
const getRequestOptions = listPlans(payload);
|
|
570
|
-
const getUrl = (context) => {
|
|
571
|
-
const { url } = getRequestOptions(context);
|
|
572
|
-
return url;
|
|
573
|
-
};
|
|
574
|
-
return {
|
|
575
|
-
getUrl,
|
|
576
|
-
httpMethod: "GET",
|
|
577
|
-
path: "/v2/plans",
|
|
578
|
-
pathParams: {},
|
|
579
|
-
__requestType: null,
|
|
580
|
-
__originalRequestType: null,
|
|
581
|
-
__responseType: null,
|
|
582
|
-
__originalResponseType: null
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
function getPlanStats2() {
|
|
586
|
-
const payload = {};
|
|
587
|
-
const getRequestOptions = getPlanStats(payload);
|
|
588
|
-
const getUrl = (context) => {
|
|
589
|
-
const { url } = getRequestOptions(context);
|
|
590
|
-
return url;
|
|
591
|
-
};
|
|
592
|
-
return {
|
|
593
|
-
getUrl,
|
|
594
|
-
httpMethod: "GET",
|
|
595
|
-
path: "/v2/plans/stats",
|
|
596
|
-
pathParams: {},
|
|
597
|
-
__requestType: null,
|
|
598
|
-
__originalRequestType: null,
|
|
599
|
-
__responseType: null,
|
|
600
|
-
__originalResponseType: null
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
function createPlan2() {
|
|
604
|
-
const payload = {};
|
|
605
|
-
const getRequestOptions = createPlan(payload);
|
|
606
|
-
const getUrl = (context) => {
|
|
607
|
-
const { url } = getRequestOptions(context);
|
|
608
|
-
return url;
|
|
609
|
-
};
|
|
610
|
-
return {
|
|
611
|
-
getUrl,
|
|
612
|
-
httpMethod: "POST",
|
|
613
|
-
path: "/v2/plans",
|
|
614
|
-
pathParams: {},
|
|
615
|
-
__requestType: null,
|
|
616
|
-
__originalRequestType: null,
|
|
617
|
-
__responseType: null,
|
|
618
|
-
__originalResponseType: null
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
function updatePlan2() {
|
|
622
|
-
const payload = { plan: { id: ":planId" } };
|
|
623
|
-
const getRequestOptions = updatePlan(payload);
|
|
624
|
-
const getUrl = (context) => {
|
|
625
|
-
const { url } = getRequestOptions(context);
|
|
626
|
-
return url;
|
|
627
|
-
};
|
|
628
|
-
return {
|
|
629
|
-
getUrl,
|
|
630
|
-
httpMethod: "PATCH",
|
|
631
|
-
path: "/v2/plans/{plan.id}",
|
|
632
|
-
pathParams: { planId: "planId" },
|
|
633
|
-
__requestType: null,
|
|
634
|
-
__originalRequestType: null,
|
|
635
|
-
__responseType: null,
|
|
636
|
-
__originalResponseType: null
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
function setPlanVisibility2() {
|
|
640
|
-
const payload = { id: ":id" };
|
|
641
|
-
const getRequestOptions = setPlanVisibility(payload);
|
|
642
|
-
const getUrl = (context) => {
|
|
643
|
-
const { url } = getRequestOptions(context);
|
|
644
|
-
return url;
|
|
645
|
-
};
|
|
646
|
-
return {
|
|
647
|
-
getUrl,
|
|
648
|
-
httpMethod: "PUT",
|
|
649
|
-
path: "/v2/plans/{id}/visibility",
|
|
650
|
-
pathParams: { id: "id" },
|
|
651
|
-
__requestType: null,
|
|
652
|
-
__originalRequestType: null,
|
|
653
|
-
__responseType: null,
|
|
654
|
-
__originalResponseType: null
|
|
655
|
-
};
|
|
656
|
-
}
|
|
657
|
-
function makePlanPrimary2() {
|
|
658
|
-
const payload = { id: ":id" };
|
|
659
|
-
const getRequestOptions = makePlanPrimary(payload);
|
|
660
|
-
const getUrl = (context) => {
|
|
661
|
-
const { url } = getRequestOptions(context);
|
|
662
|
-
return url;
|
|
663
|
-
};
|
|
664
|
-
return {
|
|
665
|
-
getUrl,
|
|
666
|
-
httpMethod: "POST",
|
|
667
|
-
path: "/v2/plans/{id}/make-primary",
|
|
668
|
-
pathParams: { id: "id" },
|
|
669
|
-
__requestType: null,
|
|
670
|
-
__originalRequestType: null,
|
|
671
|
-
__responseType: null,
|
|
672
|
-
__originalResponseType: null
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
function clearPrimary2() {
|
|
676
|
-
const payload = {};
|
|
677
|
-
const getRequestOptions = clearPrimary(payload);
|
|
678
|
-
const getUrl = (context) => {
|
|
679
|
-
const { url } = getRequestOptions(context);
|
|
680
|
-
return url;
|
|
681
|
-
};
|
|
682
|
-
return {
|
|
683
|
-
getUrl,
|
|
684
|
-
httpMethod: "POST",
|
|
685
|
-
path: "/v2/plans/clear-primary",
|
|
686
|
-
pathParams: {},
|
|
687
|
-
__requestType: null,
|
|
688
|
-
__originalRequestType: null,
|
|
689
|
-
__responseType: null,
|
|
690
|
-
__originalResponseType: null
|
|
691
|
-
};
|
|
692
|
-
}
|
|
693
|
-
function archivePlan2() {
|
|
694
|
-
const payload = { id: ":id" };
|
|
695
|
-
const getRequestOptions = archivePlan(payload);
|
|
696
|
-
const getUrl = (context) => {
|
|
697
|
-
const { url } = getRequestOptions(context);
|
|
698
|
-
return url;
|
|
699
|
-
};
|
|
700
|
-
return {
|
|
701
|
-
getUrl,
|
|
702
|
-
httpMethod: "POST",
|
|
703
|
-
path: "/v2/plans/{id}/archive",
|
|
704
|
-
pathParams: { id: "id" },
|
|
705
|
-
__requestType: null,
|
|
706
|
-
__originalRequestType: null,
|
|
707
|
-
__responseType: null,
|
|
708
|
-
__originalResponseType: null
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
export {
|
|
712
|
-
AppliedAt as AppliedAtOriginal,
|
|
713
|
-
ArchivedFilter as ArchivedFilterOriginal,
|
|
714
|
-
PeriodUnit as PeriodUnitOriginal,
|
|
715
|
-
PublicFilter as PublicFilterOriginal,
|
|
716
|
-
SortOrder as SortOrderOriginal,
|
|
717
|
-
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
718
|
-
archivePlan2 as archivePlan,
|
|
719
|
-
clearPrimary2 as clearPrimary,
|
|
720
|
-
createPlan2 as createPlan,
|
|
721
|
-
getPlan2 as getPlan,
|
|
722
|
-
getPlanStats2 as getPlanStats,
|
|
723
|
-
listPlans2 as listPlans,
|
|
724
|
-
listPublicPlans2 as listPublicPlans,
|
|
725
|
-
makePlanPrimary2 as makePlanPrimary,
|
|
726
|
-
queryPublicPlans2 as queryPublicPlans,
|
|
727
|
-
setPlanVisibility2 as setPlanVisibility,
|
|
728
|
-
updatePlan2 as updatePlan
|
|
729
|
-
};
|
|
730
|
-
//# sourceMappingURL=meta.mjs.map
|