@wix/auto_sdk_benefit-programs_pools 1.0.86 → 1.0.88
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 +2 -2
- package/build/cjs/index.js +36 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +50 -2
- package/build/cjs/index.typings.js +36 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +48 -0
- package/build/cjs/meta.js +36 -24
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +36 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +50 -2
- package/build/es/index.typings.mjs +36 -24
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +48 -0
- package/build/es/meta.mjs +36 -24
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +21 -80
- package/build/internal/cjs/meta.d.ts +19 -78
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +21 -80
- package/build/internal/es/meta.d.mts +19 -78
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -957,6 +957,14 @@ interface NotEnoughBalance {
|
|
|
957
957
|
* @decimalValue options { maxScale:4 }
|
|
958
958
|
*/
|
|
959
959
|
requestedBalance?: string;
|
|
960
|
+
/** Pool information. */
|
|
961
|
+
poolInfo?: PoolInfo;
|
|
962
|
+
/** Program definition information. */
|
|
963
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
964
|
+
/** Program information. */
|
|
965
|
+
programInfo?: PoolProgramInfo;
|
|
966
|
+
/** Benefit information. */
|
|
967
|
+
benefitInfo?: BenefitInfo;
|
|
960
968
|
}
|
|
961
969
|
interface PoolInfo {
|
|
962
970
|
/** Current pool balance */
|
|
@@ -981,6 +989,11 @@ interface PoolInfo {
|
|
|
981
989
|
* @format GUID
|
|
982
990
|
*/
|
|
983
991
|
poolDefinitionId?: string;
|
|
992
|
+
/**
|
|
993
|
+
* Credit unit type.
|
|
994
|
+
* @maxLength 16
|
|
995
|
+
*/
|
|
996
|
+
creditUnitType?: string | null;
|
|
984
997
|
}
|
|
985
998
|
interface BalanceAmount {
|
|
986
999
|
/**
|
|
@@ -1012,6 +1025,11 @@ interface BenefitInfo {
|
|
|
1012
1025
|
* @maxLength 64
|
|
1013
1026
|
*/
|
|
1014
1027
|
benefitKey?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Price of the benefit in credits.
|
|
1030
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
1031
|
+
*/
|
|
1032
|
+
price?: string | null;
|
|
1015
1033
|
}
|
|
1016
1034
|
interface PolicyExpressionEvaluatedToFalse {
|
|
1017
1035
|
/**
|
|
@@ -1026,6 +1044,14 @@ interface PolicyExpressionEvaluatedToFalse {
|
|
|
1026
1044
|
* @maxSize 10
|
|
1027
1045
|
*/
|
|
1028
1046
|
failureDetails?: FailureDetails[];
|
|
1047
|
+
/** Pool information. */
|
|
1048
|
+
poolInfo?: PoolInfo;
|
|
1049
|
+
/** Program definition information. */
|
|
1050
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1051
|
+
/** Program information. */
|
|
1052
|
+
programInfo?: PoolProgramInfo;
|
|
1053
|
+
/** Benefit information. */
|
|
1054
|
+
benefitInfo?: BenefitInfo;
|
|
1029
1055
|
}
|
|
1030
1056
|
interface FailureDetails {
|
|
1031
1057
|
/**
|
|
@@ -1060,6 +1086,14 @@ interface PoolNotActive {
|
|
|
1060
1086
|
poolId?: string;
|
|
1061
1087
|
/** Pool status. */
|
|
1062
1088
|
poolStatus?: PoolStatusWithLiterals;
|
|
1089
|
+
/** Pool information. */
|
|
1090
|
+
poolInfo?: PoolInfo;
|
|
1091
|
+
/** Program definition information. */
|
|
1092
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1093
|
+
/** Program information. */
|
|
1094
|
+
programInfo?: PoolProgramInfo;
|
|
1095
|
+
/** Benefit information. */
|
|
1096
|
+
benefitInfo?: BenefitInfo;
|
|
1063
1097
|
}
|
|
1064
1098
|
interface PoolNotFound {
|
|
1065
1099
|
/**
|
|
@@ -1091,6 +1125,12 @@ interface BenefitNotFound {
|
|
|
1091
1125
|
* @maxLength 64
|
|
1092
1126
|
*/
|
|
1093
1127
|
benefitKey?: string | null;
|
|
1128
|
+
/** Pool information. */
|
|
1129
|
+
poolInfo?: PoolInfo;
|
|
1130
|
+
/** Program definition information. */
|
|
1131
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1132
|
+
/** Program information. */
|
|
1133
|
+
programInfo?: PoolProgramInfo;
|
|
1094
1134
|
}
|
|
1095
1135
|
interface ReallocateBenefitRequest {
|
|
1096
1136
|
/**
|
|
@@ -1356,6 +1396,14 @@ interface EligibleBenefit {
|
|
|
1356
1396
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
1357
1397
|
*/
|
|
1358
1398
|
price?: string | null;
|
|
1399
|
+
/** Pool information. */
|
|
1400
|
+
poolInfo?: PoolInfo;
|
|
1401
|
+
/** Benefit information. */
|
|
1402
|
+
benefitInfo?: BenefitInfo;
|
|
1403
|
+
/** Program definition information. */
|
|
1404
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1405
|
+
/** Program information. */
|
|
1406
|
+
programInfo?: PoolProgramInfo;
|
|
1359
1407
|
}
|
|
1360
1408
|
interface BenefitResult extends BenefitResultResultOneOf {
|
|
1361
1409
|
/** Returned when item is eligible to be redeemed. */
|
package/build/es/meta.mjs
CHANGED
|
@@ -5,6 +5,27 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
5
5
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
6
6
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
7
7
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
8
|
+
var TRANSFORM_PATHS_0 = [
|
|
9
|
+
{ path: "pool.createdDate" },
|
|
10
|
+
{ path: "pool.updatedDate" }
|
|
11
|
+
];
|
|
12
|
+
var TRANSFORM_PATHS_1 = [{ path: "fieldMask" }];
|
|
13
|
+
var TRANSFORM_PATHS_2 = [
|
|
14
|
+
{ path: "pools.createdDate" },
|
|
15
|
+
{ path: "pools.updatedDate" }
|
|
16
|
+
];
|
|
17
|
+
var TRANSFORM_PATHS_3 = [{ path: "targetDate" }];
|
|
18
|
+
var TRANSFORM_PATHS_4 = [{ path: "benefitSelectors.targetDate" }];
|
|
19
|
+
var TRANSFORM_PATHS_5 = [{ path: "results.benefitSelector.targetDate" }];
|
|
20
|
+
var TRANSFORM_PATHS_6 = [{ path: "pools.fieldMask" }];
|
|
21
|
+
var TRANSFORM_PATHS_7 = [
|
|
22
|
+
{ path: "pools.pool.createdDate" },
|
|
23
|
+
{ path: "pools.pool.updatedDate" }
|
|
24
|
+
];
|
|
25
|
+
var TRANSFORM_PATHS_8 = [
|
|
26
|
+
{ path: "results.item.createdDate" },
|
|
27
|
+
{ path: "results.item.updatedDate" }
|
|
28
|
+
];
|
|
8
29
|
function resolveWixBenefitProgramsV1PoolPoolServiceUrl(opts) {
|
|
9
30
|
const domainToMappings = {
|
|
10
31
|
"api._api_base_domain_": [
|
|
@@ -226,7 +247,7 @@ function getPool(payload) {
|
|
|
226
247
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
227
248
|
{
|
|
228
249
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
229
|
-
paths:
|
|
250
|
+
paths: TRANSFORM_PATHS_0
|
|
230
251
|
}
|
|
231
252
|
])
|
|
232
253
|
};
|
|
@@ -239,11 +260,11 @@ function updatePool(payload) {
|
|
|
239
260
|
const serializedData = transformPaths(payload, [
|
|
240
261
|
{
|
|
241
262
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
242
|
-
paths:
|
|
263
|
+
paths: TRANSFORM_PATHS_1
|
|
243
264
|
},
|
|
244
265
|
{
|
|
245
266
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
246
|
-
paths:
|
|
267
|
+
paths: TRANSFORM_PATHS_0
|
|
247
268
|
}
|
|
248
269
|
]);
|
|
249
270
|
const metadata = {
|
|
@@ -263,7 +284,7 @@ function updatePool(payload) {
|
|
|
263
284
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
264
285
|
{
|
|
265
286
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
266
|
-
paths:
|
|
287
|
+
paths: TRANSFORM_PATHS_0
|
|
267
288
|
}
|
|
268
289
|
])
|
|
269
290
|
};
|
|
@@ -290,10 +311,7 @@ function queryPools(payload) {
|
|
|
290
311
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
291
312
|
{
|
|
292
313
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
293
|
-
paths:
|
|
294
|
-
{ path: "pools.createdDate" },
|
|
295
|
-
{ path: "pools.updatedDate" }
|
|
296
|
-
]
|
|
314
|
+
paths: TRANSFORM_PATHS_2
|
|
297
315
|
}
|
|
298
316
|
])
|
|
299
317
|
};
|
|
@@ -306,7 +324,7 @@ function redeemBenefit(payload) {
|
|
|
306
324
|
const serializedData = transformPaths(payload, [
|
|
307
325
|
{
|
|
308
326
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
309
|
-
paths:
|
|
327
|
+
paths: TRANSFORM_PATHS_3
|
|
310
328
|
}
|
|
311
329
|
]);
|
|
312
330
|
const metadata = {
|
|
@@ -333,7 +351,7 @@ function reallocateBenefit(payload) {
|
|
|
333
351
|
const serializedData = transformPaths(payload, [
|
|
334
352
|
{
|
|
335
353
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
336
|
-
paths:
|
|
354
|
+
paths: TRANSFORM_PATHS_3
|
|
337
355
|
}
|
|
338
356
|
]);
|
|
339
357
|
const metadata = {
|
|
@@ -381,7 +399,7 @@ function checkBenefitEligibility(payload) {
|
|
|
381
399
|
const serializedData = transformPaths(payload, [
|
|
382
400
|
{
|
|
383
401
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
384
|
-
paths:
|
|
402
|
+
paths: TRANSFORM_PATHS_3
|
|
385
403
|
}
|
|
386
404
|
]);
|
|
387
405
|
const metadata = {
|
|
@@ -408,7 +426,7 @@ function bulkCheckBenefitEligibility(payload) {
|
|
|
408
426
|
const serializedData = transformPaths(payload, [
|
|
409
427
|
{
|
|
410
428
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
411
|
-
paths:
|
|
429
|
+
paths: TRANSFORM_PATHS_4
|
|
412
430
|
}
|
|
413
431
|
]);
|
|
414
432
|
const metadata = {
|
|
@@ -428,7 +446,7 @@ function bulkCheckBenefitEligibility(payload) {
|
|
|
428
446
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
429
447
|
{
|
|
430
448
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
431
|
-
paths:
|
|
449
|
+
paths: TRANSFORM_PATHS_5
|
|
432
450
|
}
|
|
433
451
|
])
|
|
434
452
|
};
|
|
@@ -441,7 +459,7 @@ function getEligibleBenefits(payload) {
|
|
|
441
459
|
const serializedData = transformPaths(payload, [
|
|
442
460
|
{
|
|
443
461
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
444
|
-
paths:
|
|
462
|
+
paths: TRANSFORM_PATHS_3
|
|
445
463
|
}
|
|
446
464
|
]);
|
|
447
465
|
const metadata = {
|
|
@@ -468,14 +486,11 @@ function bulkUpdatePools(payload) {
|
|
|
468
486
|
const serializedData = transformPaths(payload, [
|
|
469
487
|
{
|
|
470
488
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
471
|
-
paths:
|
|
489
|
+
paths: TRANSFORM_PATHS_6
|
|
472
490
|
},
|
|
473
491
|
{
|
|
474
492
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
475
|
-
paths:
|
|
476
|
-
{ path: "pools.pool.createdDate" },
|
|
477
|
-
{ path: "pools.pool.updatedDate" }
|
|
478
|
-
]
|
|
493
|
+
paths: TRANSFORM_PATHS_7
|
|
479
494
|
}
|
|
480
495
|
]);
|
|
481
496
|
const metadata = {
|
|
@@ -495,10 +510,7 @@ function bulkUpdatePools(payload) {
|
|
|
495
510
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
496
511
|
{
|
|
497
512
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
498
|
-
paths:
|
|
499
|
-
{ path: "results.item.createdDate" },
|
|
500
|
-
{ path: "results.item.updatedDate" }
|
|
501
|
-
]
|
|
513
|
+
paths: TRANSFORM_PATHS_8
|
|
502
514
|
}
|
|
503
515
|
])
|
|
504
516
|
};
|
|
@@ -511,7 +523,7 @@ function checkBenefitEligibilityByFilter(payload) {
|
|
|
511
523
|
const serializedData = transformPaths(payload, [
|
|
512
524
|
{
|
|
513
525
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
514
|
-
paths:
|
|
526
|
+
paths: TRANSFORM_PATHS_3
|
|
515
527
|
}
|
|
516
528
|
]);
|
|
517
529
|
const metadata = {
|