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