@wix/auto_sdk_benefit-programs_pools 1.0.80 → 1.0.81
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.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -0
- package/build/internal/es/index.typings.d.mts +2 -0
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -1033
- package/build/cjs/schemas.js +0 -1991
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -1033
- package/build/es/schemas.mjs +0 -1937
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -1247
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1130
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -908
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -1033
- package/build/internal/cjs/schemas.js +0 -1991
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1198
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1080
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -857
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -1033
- package/build/internal/es/schemas.mjs +0 -1937
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -1,857 +0,0 @@
|
|
|
1
|
-
// src/benefit-programs-v1-pool-pools.http.ts
|
|
2
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
-
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
-
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
-
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
6
|
-
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
7
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
8
|
-
function resolveWixBenefitProgramsV1PoolPoolServiceUrl(opts) {
|
|
9
|
-
const domainToMappings = {
|
|
10
|
-
"api._api_base_domain_": [
|
|
11
|
-
{
|
|
12
|
-
srcPath: "/pools",
|
|
13
|
-
destPath: ""
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
_: [
|
|
17
|
-
{
|
|
18
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
19
|
-
destPath: ""
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
23
|
-
destPath: "/v1/bulk/benefits"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
27
|
-
destPath: "/v1/bulk/pools"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
31
|
-
destPath: "/v1/pools"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
35
|
-
destPath: "/v1/benefits"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"editor._base_domain_": [
|
|
39
|
-
{
|
|
40
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
41
|
-
destPath: ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
45
|
-
destPath: "/v1/bulk/benefits"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
49
|
-
destPath: "/v1/bulk/pools"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
53
|
-
destPath: "/v1/pools"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
57
|
-
destPath: "/v1/benefits"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"blocks._base_domain_": [
|
|
61
|
-
{
|
|
62
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
63
|
-
destPath: ""
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
67
|
-
destPath: "/v1/bulk/benefits"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
71
|
-
destPath: "/v1/bulk/pools"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
75
|
-
destPath: "/v1/pools"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
79
|
-
destPath: "/v1/benefits"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"create.editorx": [
|
|
83
|
-
{
|
|
84
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
85
|
-
destPath: ""
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
89
|
-
destPath: "/v1/bulk/benefits"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
93
|
-
destPath: "/v1/bulk/pools"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
97
|
-
destPath: "/v1/pools"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
101
|
-
destPath: "/v1/benefits"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"editor.wixapps.net": [
|
|
105
|
-
{
|
|
106
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
107
|
-
destPath: ""
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
111
|
-
destPath: "/v1/bulk/benefits"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
115
|
-
destPath: "/v1/bulk/pools"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
119
|
-
destPath: "/v1/pools"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
123
|
-
destPath: "/v1/benefits"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"manage._base_domain_": [
|
|
127
|
-
{
|
|
128
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
129
|
-
destPath: ""
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
133
|
-
destPath: "/v1/bulk/benefits"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
137
|
-
destPath: "/v1/bulk/pools"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
141
|
-
destPath: "/v1/pools"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
145
|
-
destPath: "/v1/benefits"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"www._base_domain_": [
|
|
149
|
-
{
|
|
150
|
-
srcPath: "/_api/benefit-programs-pools",
|
|
151
|
-
destPath: ""
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
155
|
-
destPath: "/v1/benefits"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
159
|
-
destPath: "/v1/pools"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
163
|
-
destPath: "/v1/bulk/benefits"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
167
|
-
destPath: "/v1/bulk/pools"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"*.dev.wix-code.com": [
|
|
171
|
-
{
|
|
172
|
-
srcPath: "/_api/benefit-programs/v1/bulk/benefits",
|
|
173
|
-
destPath: "/v1/bulk/benefits"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
srcPath: "/_api/benefit-programs/v1/bulk/pools",
|
|
177
|
-
destPath: "/v1/bulk/pools"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
srcPath: "/_api/benefit-programs/v1/pools",
|
|
181
|
-
destPath: "/v1/pools"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
srcPath: "/_api/benefit-programs/v1/benefits",
|
|
185
|
-
destPath: "/v1/benefits"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"www.wixapis.com": [
|
|
189
|
-
{
|
|
190
|
-
srcPath: "/benefit-programs/v1/bulk/benefits",
|
|
191
|
-
destPath: "/v1/bulk/benefits"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
srcPath: "/benefit-programs/v1/bulk/pools",
|
|
195
|
-
destPath: "/v1/bulk/pools"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
srcPath: "/benefit-programs/v1/pools",
|
|
199
|
-
destPath: "/v1/pools"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
srcPath: "/benefit-programs/v1/benefits",
|
|
203
|
-
destPath: "/v1/benefits"
|
|
204
|
-
}
|
|
205
|
-
]
|
|
206
|
-
};
|
|
207
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
208
|
-
}
|
|
209
|
-
var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pools";
|
|
210
|
-
function getPool(payload) {
|
|
211
|
-
function __getPool({ host }) {
|
|
212
|
-
const metadata = {
|
|
213
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
214
|
-
method: "GET",
|
|
215
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.GetPool",
|
|
216
|
-
packageName: PACKAGE_NAME,
|
|
217
|
-
migrationOptions: {
|
|
218
|
-
optInTransformResponse: true
|
|
219
|
-
},
|
|
220
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
221
|
-
protoPath: "/v1/pools/{poolId}",
|
|
222
|
-
data: payload,
|
|
223
|
-
host
|
|
224
|
-
}),
|
|
225
|
-
params: toURLSearchParams(payload),
|
|
226
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
227
|
-
{
|
|
228
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
229
|
-
paths: [{ path: "pool.createdDate" }, { path: "pool.updatedDate" }]
|
|
230
|
-
}
|
|
231
|
-
])
|
|
232
|
-
};
|
|
233
|
-
return metadata;
|
|
234
|
-
}
|
|
235
|
-
return __getPool;
|
|
236
|
-
}
|
|
237
|
-
function updatePool(payload) {
|
|
238
|
-
function __updatePool({ host }) {
|
|
239
|
-
const serializedData = transformPaths(payload, [
|
|
240
|
-
{
|
|
241
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
242
|
-
paths: [{ path: "fieldMask" }]
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
246
|
-
paths: [{ path: "pool.createdDate" }, { path: "pool.updatedDate" }]
|
|
247
|
-
}
|
|
248
|
-
]);
|
|
249
|
-
const metadata = {
|
|
250
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
251
|
-
method: "PATCH",
|
|
252
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.UpdatePool",
|
|
253
|
-
packageName: PACKAGE_NAME,
|
|
254
|
-
migrationOptions: {
|
|
255
|
-
optInTransformResponse: true
|
|
256
|
-
},
|
|
257
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
258
|
-
protoPath: "/v1/pools/{pool.id}",
|
|
259
|
-
data: serializedData,
|
|
260
|
-
host
|
|
261
|
-
}),
|
|
262
|
-
data: serializedData,
|
|
263
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
264
|
-
{
|
|
265
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
266
|
-
paths: [{ path: "pool.createdDate" }, { path: "pool.updatedDate" }]
|
|
267
|
-
}
|
|
268
|
-
])
|
|
269
|
-
};
|
|
270
|
-
return metadata;
|
|
271
|
-
}
|
|
272
|
-
return __updatePool;
|
|
273
|
-
}
|
|
274
|
-
function queryPools(payload) {
|
|
275
|
-
function __queryPools({ host }) {
|
|
276
|
-
const metadata = {
|
|
277
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
278
|
-
method: "POST",
|
|
279
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.QueryPools",
|
|
280
|
-
packageName: PACKAGE_NAME,
|
|
281
|
-
migrationOptions: {
|
|
282
|
-
optInTransformResponse: true
|
|
283
|
-
},
|
|
284
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
285
|
-
protoPath: "/v1/pools/query",
|
|
286
|
-
data: payload,
|
|
287
|
-
host
|
|
288
|
-
}),
|
|
289
|
-
data: payload,
|
|
290
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
291
|
-
{
|
|
292
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
293
|
-
paths: [
|
|
294
|
-
{ path: "pools.createdDate" },
|
|
295
|
-
{ path: "pools.updatedDate" }
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
])
|
|
299
|
-
};
|
|
300
|
-
return metadata;
|
|
301
|
-
}
|
|
302
|
-
return __queryPools;
|
|
303
|
-
}
|
|
304
|
-
function redeemBenefit(payload) {
|
|
305
|
-
function __redeemBenefit({ host }) {
|
|
306
|
-
const serializedData = transformPaths(payload, [
|
|
307
|
-
{
|
|
308
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
309
|
-
paths: [{ path: "targetDate" }]
|
|
310
|
-
}
|
|
311
|
-
]);
|
|
312
|
-
const metadata = {
|
|
313
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
314
|
-
method: "POST",
|
|
315
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.RedeemBenefit",
|
|
316
|
-
packageName: PACKAGE_NAME,
|
|
317
|
-
migrationOptions: {
|
|
318
|
-
optInTransformResponse: true
|
|
319
|
-
},
|
|
320
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
321
|
-
protoPath: "/v1/benefits/redeem",
|
|
322
|
-
data: serializedData,
|
|
323
|
-
host
|
|
324
|
-
}),
|
|
325
|
-
data: serializedData
|
|
326
|
-
};
|
|
327
|
-
return metadata;
|
|
328
|
-
}
|
|
329
|
-
return __redeemBenefit;
|
|
330
|
-
}
|
|
331
|
-
function reallocateBenefit(payload) {
|
|
332
|
-
function __reallocateBenefit({ host }) {
|
|
333
|
-
const serializedData = transformPaths(payload, [
|
|
334
|
-
{
|
|
335
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
336
|
-
paths: [{ path: "targetDate" }]
|
|
337
|
-
}
|
|
338
|
-
]);
|
|
339
|
-
const metadata = {
|
|
340
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
341
|
-
method: "POST",
|
|
342
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
|
|
343
|
-
packageName: PACKAGE_NAME,
|
|
344
|
-
migrationOptions: {
|
|
345
|
-
optInTransformResponse: true
|
|
346
|
-
},
|
|
347
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
348
|
-
protoPath: "/v1/benefits/reallocate",
|
|
349
|
-
data: serializedData,
|
|
350
|
-
host
|
|
351
|
-
}),
|
|
352
|
-
data: serializedData
|
|
353
|
-
};
|
|
354
|
-
return metadata;
|
|
355
|
-
}
|
|
356
|
-
return __reallocateBenefit;
|
|
357
|
-
}
|
|
358
|
-
function cancelRedemption(payload) {
|
|
359
|
-
function __cancelRedemption({ host }) {
|
|
360
|
-
const metadata = {
|
|
361
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
362
|
-
method: "POST",
|
|
363
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CancelRedemption",
|
|
364
|
-
packageName: PACKAGE_NAME,
|
|
365
|
-
migrationOptions: {
|
|
366
|
-
optInTransformResponse: true
|
|
367
|
-
},
|
|
368
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
369
|
-
protoPath: "/v1/benefits/cancel-redemption",
|
|
370
|
-
data: payload,
|
|
371
|
-
host
|
|
372
|
-
}),
|
|
373
|
-
data: payload
|
|
374
|
-
};
|
|
375
|
-
return metadata;
|
|
376
|
-
}
|
|
377
|
-
return __cancelRedemption;
|
|
378
|
-
}
|
|
379
|
-
function checkBenefitEligibility(payload) {
|
|
380
|
-
function __checkBenefitEligibility({ host }) {
|
|
381
|
-
const serializedData = transformPaths(payload, [
|
|
382
|
-
{
|
|
383
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
384
|
-
paths: [{ path: "targetDate" }]
|
|
385
|
-
}
|
|
386
|
-
]);
|
|
387
|
-
const metadata = {
|
|
388
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
389
|
-
method: "POST",
|
|
390
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility",
|
|
391
|
-
packageName: PACKAGE_NAME,
|
|
392
|
-
migrationOptions: {
|
|
393
|
-
optInTransformResponse: true
|
|
394
|
-
},
|
|
395
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
396
|
-
protoPath: "/v1/pools/check-eligibility",
|
|
397
|
-
data: serializedData,
|
|
398
|
-
host
|
|
399
|
-
}),
|
|
400
|
-
data: serializedData
|
|
401
|
-
};
|
|
402
|
-
return metadata;
|
|
403
|
-
}
|
|
404
|
-
return __checkBenefitEligibility;
|
|
405
|
-
}
|
|
406
|
-
function bulkCheckBenefitEligibility(payload) {
|
|
407
|
-
function __bulkCheckBenefitEligibility({ host }) {
|
|
408
|
-
const serializedData = transformPaths(payload, [
|
|
409
|
-
{
|
|
410
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
411
|
-
paths: [{ path: "benefitSelectors.targetDate" }]
|
|
412
|
-
}
|
|
413
|
-
]);
|
|
414
|
-
const metadata = {
|
|
415
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
416
|
-
method: "POST",
|
|
417
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility",
|
|
418
|
-
packageName: PACKAGE_NAME,
|
|
419
|
-
migrationOptions: {
|
|
420
|
-
optInTransformResponse: true
|
|
421
|
-
},
|
|
422
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
423
|
-
protoPath: "/v1/bulk/benefits/check-eligibility",
|
|
424
|
-
data: serializedData,
|
|
425
|
-
host
|
|
426
|
-
}),
|
|
427
|
-
data: serializedData,
|
|
428
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
429
|
-
{
|
|
430
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
431
|
-
paths: [{ path: "results.benefitSelector.targetDate" }]
|
|
432
|
-
}
|
|
433
|
-
])
|
|
434
|
-
};
|
|
435
|
-
return metadata;
|
|
436
|
-
}
|
|
437
|
-
return __bulkCheckBenefitEligibility;
|
|
438
|
-
}
|
|
439
|
-
function getEligibleBenefits(payload) {
|
|
440
|
-
function __getEligibleBenefits({ host }) {
|
|
441
|
-
const serializedData = transformPaths(payload, [
|
|
442
|
-
{
|
|
443
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
444
|
-
paths: [{ path: "targetDate" }]
|
|
445
|
-
}
|
|
446
|
-
]);
|
|
447
|
-
const metadata = {
|
|
448
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
449
|
-
method: "POST",
|
|
450
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.GetEligibleBenefits",
|
|
451
|
-
packageName: PACKAGE_NAME,
|
|
452
|
-
migrationOptions: {
|
|
453
|
-
optInTransformResponse: true
|
|
454
|
-
},
|
|
455
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
456
|
-
protoPath: "/v1/pools/eligible-pools",
|
|
457
|
-
data: serializedData,
|
|
458
|
-
host
|
|
459
|
-
}),
|
|
460
|
-
data: serializedData
|
|
461
|
-
};
|
|
462
|
-
return metadata;
|
|
463
|
-
}
|
|
464
|
-
return __getEligibleBenefits;
|
|
465
|
-
}
|
|
466
|
-
function bulkUpdatePools(payload) {
|
|
467
|
-
function __bulkUpdatePools({ host }) {
|
|
468
|
-
const serializedData = transformPaths(payload, [
|
|
469
|
-
{
|
|
470
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
471
|
-
paths: [{ path: "pools.fieldMask" }]
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
475
|
-
paths: [
|
|
476
|
-
{ path: "pools.pool.createdDate" },
|
|
477
|
-
{ path: "pools.pool.updatedDate" }
|
|
478
|
-
]
|
|
479
|
-
}
|
|
480
|
-
]);
|
|
481
|
-
const metadata = {
|
|
482
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
483
|
-
method: "POST",
|
|
484
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools",
|
|
485
|
-
packageName: PACKAGE_NAME,
|
|
486
|
-
migrationOptions: {
|
|
487
|
-
optInTransformResponse: true
|
|
488
|
-
},
|
|
489
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
490
|
-
protoPath: "/v1/bulk/pools",
|
|
491
|
-
data: serializedData,
|
|
492
|
-
host
|
|
493
|
-
}),
|
|
494
|
-
data: serializedData,
|
|
495
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
496
|
-
{
|
|
497
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
498
|
-
paths: [
|
|
499
|
-
{ path: "results.item.createdDate" },
|
|
500
|
-
{ path: "results.item.updatedDate" }
|
|
501
|
-
]
|
|
502
|
-
}
|
|
503
|
-
])
|
|
504
|
-
};
|
|
505
|
-
return metadata;
|
|
506
|
-
}
|
|
507
|
-
return __bulkUpdatePools;
|
|
508
|
-
}
|
|
509
|
-
function checkBenefitEligibilityByFilter(payload) {
|
|
510
|
-
function __checkBenefitEligibilityByFilter({ host }) {
|
|
511
|
-
const serializedData = transformPaths(payload, [
|
|
512
|
-
{
|
|
513
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
514
|
-
paths: [{ path: "targetDate" }]
|
|
515
|
-
}
|
|
516
|
-
]);
|
|
517
|
-
const metadata = {
|
|
518
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
519
|
-
method: "POST",
|
|
520
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibilityByFilter",
|
|
521
|
-
packageName: PACKAGE_NAME,
|
|
522
|
-
migrationOptions: {
|
|
523
|
-
optInTransformResponse: true
|
|
524
|
-
},
|
|
525
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
526
|
-
protoPath: "/v1/pools/check-benefit-eligibility-by-filter",
|
|
527
|
-
data: serializedData,
|
|
528
|
-
host
|
|
529
|
-
}),
|
|
530
|
-
data: serializedData
|
|
531
|
-
};
|
|
532
|
-
return metadata;
|
|
533
|
-
}
|
|
534
|
-
return __checkBenefitEligibilityByFilter;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
// src/benefit-programs-v1-pool-pools.types.ts
|
|
538
|
-
var PoolStatus = /* @__PURE__ */ ((PoolStatus2) => {
|
|
539
|
-
PoolStatus2["ACTIVE"] = "ACTIVE";
|
|
540
|
-
PoolStatus2["PAUSED"] = "PAUSED";
|
|
541
|
-
PoolStatus2["ENDED"] = "ENDED";
|
|
542
|
-
PoolStatus2["PROVISIONING"] = "PROVISIONING";
|
|
543
|
-
PoolStatus2["RENEWING"] = "RENEWING";
|
|
544
|
-
PoolStatus2["PENDING"] = "PENDING";
|
|
545
|
-
return PoolStatus2;
|
|
546
|
-
})(PoolStatus || {});
|
|
547
|
-
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
548
|
-
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
549
|
-
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
550
|
-
IdentityType2["MEMBER"] = "MEMBER";
|
|
551
|
-
IdentityType2["WIX_USER"] = "WIX_USER";
|
|
552
|
-
return IdentityType2;
|
|
553
|
-
})(IdentityType || {});
|
|
554
|
-
var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
|
|
555
|
-
PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
|
|
556
|
-
PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
|
|
557
|
-
PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
|
|
558
|
-
PolicyExpressionType2["POLICY"] = "POLICY";
|
|
559
|
-
return PolicyExpressionType2;
|
|
560
|
-
})(PolicyExpressionType || {});
|
|
561
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
|
562
|
-
Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
|
|
563
|
-
Type2["RATE_LIMITED"] = "RATE_LIMITED";
|
|
564
|
-
Type2["CUSTOM"] = "CUSTOM";
|
|
565
|
-
return Type2;
|
|
566
|
-
})(Type || {});
|
|
567
|
-
var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
|
|
568
|
-
WeekDay2["UNKNOWN"] = "UNKNOWN";
|
|
569
|
-
WeekDay2["MONDAY"] = "MONDAY";
|
|
570
|
-
WeekDay2["TUESDAY"] = "TUESDAY";
|
|
571
|
-
WeekDay2["WEDNESDAY"] = "WEDNESDAY";
|
|
572
|
-
WeekDay2["THURSDAY"] = "THURSDAY";
|
|
573
|
-
WeekDay2["FRIDAY"] = "FRIDAY";
|
|
574
|
-
WeekDay2["SATURDAY"] = "SATURDAY";
|
|
575
|
-
WeekDay2["SUNDAY"] = "SUNDAY";
|
|
576
|
-
return WeekDay2;
|
|
577
|
-
})(WeekDay || {});
|
|
578
|
-
var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
|
|
579
|
-
TimePeriod2["DAY"] = "DAY";
|
|
580
|
-
TimePeriod2["MONTH"] = "MONTH";
|
|
581
|
-
return TimePeriod2;
|
|
582
|
-
})(TimePeriod || {});
|
|
583
|
-
var PoolOrigin = /* @__PURE__ */ ((PoolOrigin2) => {
|
|
584
|
-
PoolOrigin2["PROVISION"] = "PROVISION";
|
|
585
|
-
PoolOrigin2["CASCADE"] = "CASCADE";
|
|
586
|
-
return PoolOrigin2;
|
|
587
|
-
})(PoolOrigin || {});
|
|
588
|
-
var PoolRenewalActionType = /* @__PURE__ */ ((PoolRenewalActionType2) => {
|
|
589
|
-
PoolRenewalActionType2["END"] = "END";
|
|
590
|
-
PoolRenewalActionType2["UPDATE"] = "UPDATE";
|
|
591
|
-
return PoolRenewalActionType2;
|
|
592
|
-
})(PoolRenewalActionType || {});
|
|
593
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
594
|
-
SortOrder2["ASC"] = "ASC";
|
|
595
|
-
SortOrder2["DESC"] = "DESC";
|
|
596
|
-
return SortOrder2;
|
|
597
|
-
})(SortOrder || {});
|
|
598
|
-
var Intent = /* @__PURE__ */ ((Intent2) => {
|
|
599
|
-
Intent2["REDEMPTION"] = "REDEMPTION";
|
|
600
|
-
Intent2["REALLOCATION"] = "REALLOCATION";
|
|
601
|
-
return Intent2;
|
|
602
|
-
})(Intent || {});
|
|
603
|
-
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
604
|
-
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
605
|
-
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
606
|
-
BenefitResultType2["POLICY_EXPRESSION_EVALUATED_TO_FALSE"] = "POLICY_EXPRESSION_EVALUATED_TO_FALSE";
|
|
607
|
-
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
608
|
-
BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
609
|
-
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
610
|
-
return BenefitResultType2;
|
|
611
|
-
})(BenefitResultType || {});
|
|
612
|
-
var ProvisionPoolsForProgramResponseType = /* @__PURE__ */ ((ProvisionPoolsForProgramResponseType2) => {
|
|
613
|
-
ProvisionPoolsForProgramResponseType2["SYNC"] = "SYNC";
|
|
614
|
-
ProvisionPoolsForProgramResponseType2["ASYNC"] = "ASYNC";
|
|
615
|
-
return ProvisionPoolsForProgramResponseType2;
|
|
616
|
-
})(ProvisionPoolsForProgramResponseType || {});
|
|
617
|
-
var PoolSelectorType = /* @__PURE__ */ ((PoolSelectorType2) => {
|
|
618
|
-
PoolSelectorType2["BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID"] = "BY_POOL_DEFINITION_ID_AND_PROGRAM_DEFINITION_ID";
|
|
619
|
-
PoolSelectorType2["BY_PROGRAM_ID"] = "BY_PROGRAM_ID";
|
|
620
|
-
return PoolSelectorType2;
|
|
621
|
-
})(PoolSelectorType || {});
|
|
622
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
623
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
624
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
625
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
626
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
627
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
628
|
-
return WebhookIdentityType2;
|
|
629
|
-
})(WebhookIdentityType || {});
|
|
630
|
-
|
|
631
|
-
// src/benefit-programs-v1-pool-pools.meta.ts
|
|
632
|
-
function getPool2() {
|
|
633
|
-
const payload = { poolId: ":poolId" };
|
|
634
|
-
const getRequestOptions = getPool(payload);
|
|
635
|
-
const getUrl = (context) => {
|
|
636
|
-
const { url } = getRequestOptions(context);
|
|
637
|
-
return url;
|
|
638
|
-
};
|
|
639
|
-
return {
|
|
640
|
-
getUrl,
|
|
641
|
-
httpMethod: "GET",
|
|
642
|
-
path: "/v1/pools/{poolId}",
|
|
643
|
-
pathParams: { poolId: "poolId" },
|
|
644
|
-
__requestType: null,
|
|
645
|
-
__originalRequestType: null,
|
|
646
|
-
__responseType: null,
|
|
647
|
-
__originalResponseType: null
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
function updatePool2() {
|
|
651
|
-
const payload = { pool: { id: ":poolId" } };
|
|
652
|
-
const getRequestOptions = updatePool(payload);
|
|
653
|
-
const getUrl = (context) => {
|
|
654
|
-
const { url } = getRequestOptions(context);
|
|
655
|
-
return url;
|
|
656
|
-
};
|
|
657
|
-
return {
|
|
658
|
-
getUrl,
|
|
659
|
-
httpMethod: "PATCH",
|
|
660
|
-
path: "/v1/pools/{pool.id}",
|
|
661
|
-
pathParams: { poolId: "poolId" },
|
|
662
|
-
__requestType: null,
|
|
663
|
-
__originalRequestType: null,
|
|
664
|
-
__responseType: null,
|
|
665
|
-
__originalResponseType: null
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
function queryPools2() {
|
|
669
|
-
const payload = {};
|
|
670
|
-
const getRequestOptions = queryPools(payload);
|
|
671
|
-
const getUrl = (context) => {
|
|
672
|
-
const { url } = getRequestOptions(context);
|
|
673
|
-
return url;
|
|
674
|
-
};
|
|
675
|
-
return {
|
|
676
|
-
getUrl,
|
|
677
|
-
httpMethod: "POST",
|
|
678
|
-
path: "/v1/pools/query",
|
|
679
|
-
pathParams: {},
|
|
680
|
-
__requestType: null,
|
|
681
|
-
__originalRequestType: null,
|
|
682
|
-
__responseType: null,
|
|
683
|
-
__originalResponseType: null
|
|
684
|
-
};
|
|
685
|
-
}
|
|
686
|
-
function redeemBenefit2() {
|
|
687
|
-
const payload = {};
|
|
688
|
-
const getRequestOptions = redeemBenefit(payload);
|
|
689
|
-
const getUrl = (context) => {
|
|
690
|
-
const { url } = getRequestOptions(context);
|
|
691
|
-
return url;
|
|
692
|
-
};
|
|
693
|
-
return {
|
|
694
|
-
getUrl,
|
|
695
|
-
httpMethod: "POST",
|
|
696
|
-
path: "/v1/benefits/redeem",
|
|
697
|
-
pathParams: {},
|
|
698
|
-
__requestType: null,
|
|
699
|
-
__originalRequestType: null,
|
|
700
|
-
__responseType: null,
|
|
701
|
-
__originalResponseType: null
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
function reallocateBenefit2() {
|
|
705
|
-
const payload = {};
|
|
706
|
-
const getRequestOptions = reallocateBenefit(payload);
|
|
707
|
-
const getUrl = (context) => {
|
|
708
|
-
const { url } = getRequestOptions(context);
|
|
709
|
-
return url;
|
|
710
|
-
};
|
|
711
|
-
return {
|
|
712
|
-
getUrl,
|
|
713
|
-
httpMethod: "POST",
|
|
714
|
-
path: "/v1/benefits/reallocate",
|
|
715
|
-
pathParams: {},
|
|
716
|
-
__requestType: null,
|
|
717
|
-
__originalRequestType: null,
|
|
718
|
-
__responseType: null,
|
|
719
|
-
__originalResponseType: null
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
function cancelRedemption2() {
|
|
723
|
-
const payload = {};
|
|
724
|
-
const getRequestOptions = cancelRedemption(payload);
|
|
725
|
-
const getUrl = (context) => {
|
|
726
|
-
const { url } = getRequestOptions(context);
|
|
727
|
-
return url;
|
|
728
|
-
};
|
|
729
|
-
return {
|
|
730
|
-
getUrl,
|
|
731
|
-
httpMethod: "POST",
|
|
732
|
-
path: "/v1/benefits/cancel-redemption",
|
|
733
|
-
pathParams: {},
|
|
734
|
-
__requestType: null,
|
|
735
|
-
__originalRequestType: null,
|
|
736
|
-
__responseType: null,
|
|
737
|
-
__originalResponseType: null
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
function checkBenefitEligibility2() {
|
|
741
|
-
const payload = {};
|
|
742
|
-
const getRequestOptions = checkBenefitEligibility(payload);
|
|
743
|
-
const getUrl = (context) => {
|
|
744
|
-
const { url } = getRequestOptions(context);
|
|
745
|
-
return url;
|
|
746
|
-
};
|
|
747
|
-
return {
|
|
748
|
-
getUrl,
|
|
749
|
-
httpMethod: "POST",
|
|
750
|
-
path: "/v1/pools/check-eligibility",
|
|
751
|
-
pathParams: {},
|
|
752
|
-
__requestType: null,
|
|
753
|
-
__originalRequestType: null,
|
|
754
|
-
__responseType: null,
|
|
755
|
-
__originalResponseType: null
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
function bulkCheckBenefitEligibility2() {
|
|
759
|
-
const payload = {};
|
|
760
|
-
const getRequestOptions = bulkCheckBenefitEligibility(payload);
|
|
761
|
-
const getUrl = (context) => {
|
|
762
|
-
const { url } = getRequestOptions(context);
|
|
763
|
-
return url;
|
|
764
|
-
};
|
|
765
|
-
return {
|
|
766
|
-
getUrl,
|
|
767
|
-
httpMethod: "POST",
|
|
768
|
-
path: "/v1/bulk/benefits/check-eligibility",
|
|
769
|
-
pathParams: {},
|
|
770
|
-
__requestType: null,
|
|
771
|
-
__originalRequestType: null,
|
|
772
|
-
__responseType: null,
|
|
773
|
-
__originalResponseType: null
|
|
774
|
-
};
|
|
775
|
-
}
|
|
776
|
-
function getEligibleBenefits2() {
|
|
777
|
-
const payload = {};
|
|
778
|
-
const getRequestOptions = getEligibleBenefits(payload);
|
|
779
|
-
const getUrl = (context) => {
|
|
780
|
-
const { url } = getRequestOptions(context);
|
|
781
|
-
return url;
|
|
782
|
-
};
|
|
783
|
-
return {
|
|
784
|
-
getUrl,
|
|
785
|
-
httpMethod: "POST",
|
|
786
|
-
path: "/v1/pools/eligible-pools",
|
|
787
|
-
pathParams: {},
|
|
788
|
-
__requestType: null,
|
|
789
|
-
__originalRequestType: null,
|
|
790
|
-
__responseType: null,
|
|
791
|
-
__originalResponseType: null
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
function bulkUpdatePools2() {
|
|
795
|
-
const payload = {};
|
|
796
|
-
const getRequestOptions = bulkUpdatePools(payload);
|
|
797
|
-
const getUrl = (context) => {
|
|
798
|
-
const { url } = getRequestOptions(context);
|
|
799
|
-
return url;
|
|
800
|
-
};
|
|
801
|
-
return {
|
|
802
|
-
getUrl,
|
|
803
|
-
httpMethod: "POST",
|
|
804
|
-
path: "/v1/bulk/pools",
|
|
805
|
-
pathParams: {},
|
|
806
|
-
__requestType: null,
|
|
807
|
-
__originalRequestType: null,
|
|
808
|
-
__responseType: null,
|
|
809
|
-
__originalResponseType: null
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
function checkBenefitEligibilityByFilter2() {
|
|
813
|
-
const payload = {};
|
|
814
|
-
const getRequestOptions = checkBenefitEligibilityByFilter(payload);
|
|
815
|
-
const getUrl = (context) => {
|
|
816
|
-
const { url } = getRequestOptions(context);
|
|
817
|
-
return url;
|
|
818
|
-
};
|
|
819
|
-
return {
|
|
820
|
-
getUrl,
|
|
821
|
-
httpMethod: "POST",
|
|
822
|
-
path: "/v1/pools/check-benefit-eligibility-by-filter",
|
|
823
|
-
pathParams: {},
|
|
824
|
-
__requestType: null,
|
|
825
|
-
__originalRequestType: null,
|
|
826
|
-
__responseType: null,
|
|
827
|
-
__originalResponseType: null
|
|
828
|
-
};
|
|
829
|
-
}
|
|
830
|
-
export {
|
|
831
|
-
BenefitResultType as BenefitResultTypeOriginal,
|
|
832
|
-
IdentityType as IdentityTypeOriginal,
|
|
833
|
-
Intent as IntentOriginal,
|
|
834
|
-
PolicyExpressionType as PolicyExpressionTypeOriginal,
|
|
835
|
-
PoolOrigin as PoolOriginOriginal,
|
|
836
|
-
PoolRenewalActionType as PoolRenewalActionTypeOriginal,
|
|
837
|
-
PoolSelectorType as PoolSelectorTypeOriginal,
|
|
838
|
-
PoolStatus as PoolStatusOriginal,
|
|
839
|
-
ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal,
|
|
840
|
-
SortOrder as SortOrderOriginal,
|
|
841
|
-
TimePeriod as TimePeriodOriginal,
|
|
842
|
-
Type as TypeOriginal,
|
|
843
|
-
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
844
|
-
WeekDay as WeekDayOriginal,
|
|
845
|
-
bulkCheckBenefitEligibility2 as bulkCheckBenefitEligibility,
|
|
846
|
-
bulkUpdatePools2 as bulkUpdatePools,
|
|
847
|
-
cancelRedemption2 as cancelRedemption,
|
|
848
|
-
checkBenefitEligibility2 as checkBenefitEligibility,
|
|
849
|
-
checkBenefitEligibilityByFilter2 as checkBenefitEligibilityByFilter,
|
|
850
|
-
getEligibleBenefits2 as getEligibleBenefits,
|
|
851
|
-
getPool2 as getPool,
|
|
852
|
-
queryPools2 as queryPools,
|
|
853
|
-
reallocateBenefit2 as reallocateBenefit,
|
|
854
|
-
redeemBenefit2 as redeemBenefit,
|
|
855
|
-
updatePool2 as updatePool
|
|
856
|
-
};
|
|
857
|
-
//# sourceMappingURL=meta.mjs.map
|