@wix/auto_sdk_benefit-programs_pools 1.0.73 → 1.0.74
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 +1 -1
- package/build/cjs/index.js +0 -76
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -78
- package/build/cjs/index.typings.js +0 -68
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -50
- package/build/cjs/meta.js +0 -47
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +0 -75
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -78
- package/build/es/index.typings.mjs +0 -67
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -50
- package/build/es/meta.mjs +0 -46
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -20
- package/build/internal/cjs/index.js +0 -76
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -101
- package/build/internal/cjs/index.typings.js +0 -68
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -50
- package/build/internal/cjs/meta.js +0 -47
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -20
- package/build/internal/es/index.mjs +0 -75
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -101
- package/build/internal/es/index.typings.mjs +0 -67
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -50
- package/build/internal/es/meta.mjs +0 -46
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -466,33 +466,6 @@ function bulkUpdatePools(payload) {
|
|
|
466
466
|
}
|
|
467
467
|
return __bulkUpdatePools;
|
|
468
468
|
}
|
|
469
|
-
function checkEligibilityByFilter(payload) {
|
|
470
|
-
function __checkEligibilityByFilter({ host }) {
|
|
471
|
-
const serializedData = transformPaths(payload, [
|
|
472
|
-
{
|
|
473
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
474
|
-
paths: [{ path: "targetDate" }]
|
|
475
|
-
}
|
|
476
|
-
]);
|
|
477
|
-
const metadata = {
|
|
478
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
479
|
-
method: "POST",
|
|
480
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter",
|
|
481
|
-
packageName: PACKAGE_NAME,
|
|
482
|
-
migrationOptions: {
|
|
483
|
-
optInTransformResponse: true
|
|
484
|
-
},
|
|
485
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
486
|
-
protoPath: "/v1/pools/check-eligibility-by-filter",
|
|
487
|
-
data: serializedData,
|
|
488
|
-
host
|
|
489
|
-
}),
|
|
490
|
-
data: serializedData
|
|
491
|
-
};
|
|
492
|
-
return metadata;
|
|
493
|
-
}
|
|
494
|
-
return __checkEligibilityByFilter;
|
|
495
|
-
}
|
|
496
469
|
function checkBenefitEligibilityByFilter(payload) {
|
|
497
470
|
function __checkBenefitEligibilityByFilter({ host }) {
|
|
498
471
|
const serializedData = transformPaths(payload, [
|
|
@@ -920,45 +893,6 @@ async function bulkUpdatePools2(options) {
|
|
|
920
893
|
throw transformedError;
|
|
921
894
|
}
|
|
922
895
|
}
|
|
923
|
-
async function checkEligibilityByFilter2(options) {
|
|
924
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
925
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
926
|
-
poolFilter: options?.poolFilter,
|
|
927
|
-
namespace: options?.namespace,
|
|
928
|
-
itemReference: options?.itemReference,
|
|
929
|
-
count: options?.count,
|
|
930
|
-
targetDate: options?.targetDate,
|
|
931
|
-
beneficiary: options?.beneficiary,
|
|
932
|
-
additionalData: options?.additionalData
|
|
933
|
-
});
|
|
934
|
-
const reqOpts = checkEligibilityByFilter(payload);
|
|
935
|
-
sideEffects?.onSiteCall?.();
|
|
936
|
-
try {
|
|
937
|
-
const result = await httpClient.request(reqOpts);
|
|
938
|
-
sideEffects?.onSuccess?.(result);
|
|
939
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
940
|
-
} catch (err) {
|
|
941
|
-
const transformedError = sdkTransformError(
|
|
942
|
-
err,
|
|
943
|
-
{
|
|
944
|
-
spreadPathsToArguments: {},
|
|
945
|
-
explicitPathsToArguments: {
|
|
946
|
-
poolFilter: "$[0].poolFilter",
|
|
947
|
-
namespace: "$[0].namespace",
|
|
948
|
-
itemReference: "$[0].itemReference",
|
|
949
|
-
count: "$[0].count",
|
|
950
|
-
targetDate: "$[0].targetDate",
|
|
951
|
-
beneficiary: "$[0].beneficiary",
|
|
952
|
-
additionalData: "$[0].additionalData"
|
|
953
|
-
},
|
|
954
|
-
singleArgumentUnchanged: false
|
|
955
|
-
},
|
|
956
|
-
["options"]
|
|
957
|
-
);
|
|
958
|
-
sideEffects?.onError?.(err);
|
|
959
|
-
throw transformedError;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
896
|
async function checkBenefitEligibilityByFilter2(options) {
|
|
963
897
|
const { httpClient, sideEffects } = arguments[1];
|
|
964
898
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1068,13 +1002,6 @@ function bulkUpdatePools3(httpClient) {
|
|
|
1068
1002
|
{ httpClient }
|
|
1069
1003
|
);
|
|
1070
1004
|
}
|
|
1071
|
-
function checkEligibilityByFilter3(httpClient) {
|
|
1072
|
-
return (options) => checkEligibilityByFilter2(
|
|
1073
|
-
options,
|
|
1074
|
-
// @ts-ignore
|
|
1075
|
-
{ httpClient }
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
1005
|
function checkBenefitEligibilityByFilter3(httpClient) {
|
|
1079
1006
|
return (options) => checkBenefitEligibilityByFilter2(
|
|
1080
1007
|
options,
|
|
@@ -1104,7 +1031,6 @@ var checkBenefitEligibility4 = /* @__PURE__ */ createRESTModule(checkBenefitElig
|
|
|
1104
1031
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ createRESTModule(bulkCheckBenefitEligibility3);
|
|
1105
1032
|
var getEligibleBenefits4 = /* @__PURE__ */ createRESTModule(getEligibleBenefits3);
|
|
1106
1033
|
var bulkUpdatePools4 = /* @__PURE__ */ createRESTModule(bulkUpdatePools3);
|
|
1107
|
-
var checkEligibilityByFilter4 = /* @__PURE__ */ createRESTModule(checkEligibilityByFilter3);
|
|
1108
1034
|
var checkBenefitEligibilityByFilter4 = /* @__PURE__ */ createRESTModule(checkBenefitEligibilityByFilter3);
|
|
1109
1035
|
var queryPools4 = /* @__PURE__ */ createRESTModule(customQueryPools);
|
|
1110
1036
|
export {
|
|
@@ -1126,7 +1052,6 @@ export {
|
|
|
1126
1052
|
bulkUpdatePools4 as bulkUpdatePools,
|
|
1127
1053
|
checkBenefitEligibility4 as checkBenefitEligibility,
|
|
1128
1054
|
checkBenefitEligibilityByFilter4 as checkBenefitEligibilityByFilter,
|
|
1129
|
-
checkEligibilityByFilter4 as checkEligibilityByFilter,
|
|
1130
1055
|
getEligibleBenefits4 as getEligibleBenefits,
|
|
1131
1056
|
getPool4 as getPool,
|
|
1132
1057
|
queryPools4 as queryPools,
|