@wix/auto_sdk_benefit-programs_pools 1.0.39 → 1.0.41
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 +76 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +77 -2
- package/build/cjs/index.typings.js +68 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +50 -3
- package/build/cjs/meta.js +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +75 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +77 -2
- package/build/es/index.typings.mjs +67 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +50 -3
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -3
- package/build/internal/cjs/index.js +76 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +96 -2
- package/build/internal/cjs/index.typings.js +68 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +50 -3
- package/build/internal/cjs/meta.js +47 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +17 -3
- package/build/internal/es/index.mjs +75 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +96 -2
- package/build/internal/es/index.typings.mjs +67 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +50 -3
- package/build/internal/es/meta.mjs +46 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -466,6 +466,33 @@ 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
|
+
}
|
|
469
496
|
|
|
470
497
|
// src/benefit-programs-v1-pool-pools.universal.ts
|
|
471
498
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -864,6 +891,45 @@ async function bulkUpdatePools2(options) {
|
|
|
864
891
|
throw transformedError;
|
|
865
892
|
}
|
|
866
893
|
}
|
|
894
|
+
async function checkEligibilityByFilter2(options) {
|
|
895
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
896
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
897
|
+
poolFilter: options?.poolFilter,
|
|
898
|
+
namespace: options?.namespace,
|
|
899
|
+
itemReference: options?.itemReference,
|
|
900
|
+
count: options?.count,
|
|
901
|
+
targetDate: options?.targetDate,
|
|
902
|
+
beneficiary: options?.beneficiary,
|
|
903
|
+
additionalData: options?.additionalData
|
|
904
|
+
});
|
|
905
|
+
const reqOpts = checkEligibilityByFilter(payload);
|
|
906
|
+
sideEffects?.onSiteCall?.();
|
|
907
|
+
try {
|
|
908
|
+
const result = await httpClient.request(reqOpts);
|
|
909
|
+
sideEffects?.onSuccess?.(result);
|
|
910
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
911
|
+
} catch (err) {
|
|
912
|
+
const transformedError = sdkTransformError(
|
|
913
|
+
err,
|
|
914
|
+
{
|
|
915
|
+
spreadPathsToArguments: {},
|
|
916
|
+
explicitPathsToArguments: {
|
|
917
|
+
poolFilter: "$[0].poolFilter",
|
|
918
|
+
namespace: "$[0].namespace",
|
|
919
|
+
itemReference: "$[0].itemReference",
|
|
920
|
+
count: "$[0].count",
|
|
921
|
+
targetDate: "$[0].targetDate",
|
|
922
|
+
beneficiary: "$[0].beneficiary",
|
|
923
|
+
additionalData: "$[0].additionalData"
|
|
924
|
+
},
|
|
925
|
+
singleArgumentUnchanged: false
|
|
926
|
+
},
|
|
927
|
+
["options"]
|
|
928
|
+
);
|
|
929
|
+
sideEffects?.onError?.(err);
|
|
930
|
+
throw transformedError;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
867
933
|
|
|
868
934
|
// src/benefit-programs-v1-pool-pools.public.ts
|
|
869
935
|
function getPool3(httpClient) {
|
|
@@ -932,6 +998,13 @@ function bulkUpdatePools3(httpClient) {
|
|
|
932
998
|
{ httpClient }
|
|
933
999
|
);
|
|
934
1000
|
}
|
|
1001
|
+
function checkEligibilityByFilter3(httpClient) {
|
|
1002
|
+
return (options) => checkEligibilityByFilter2(
|
|
1003
|
+
options,
|
|
1004
|
+
// @ts-ignore
|
|
1005
|
+
{ httpClient }
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
935
1008
|
|
|
936
1009
|
// src/benefit-programs-v1-pool-pools.context.ts
|
|
937
1010
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -954,6 +1027,7 @@ var checkBenefitEligibility4 = /* @__PURE__ */ createRESTModule(checkBenefitElig
|
|
|
954
1027
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ createRESTModule(bulkCheckBenefitEligibility3);
|
|
955
1028
|
var getEligibleBenefits4 = /* @__PURE__ */ createRESTModule(getEligibleBenefits3);
|
|
956
1029
|
var bulkUpdatePools4 = /* @__PURE__ */ createRESTModule(bulkUpdatePools3);
|
|
1030
|
+
var checkEligibilityByFilter4 = /* @__PURE__ */ createRESTModule(checkEligibilityByFilter3);
|
|
957
1031
|
var queryPools4 = /* @__PURE__ */ createRESTModule(customQueryPools);
|
|
958
1032
|
export {
|
|
959
1033
|
EligibilityCheckResultType,
|
|
@@ -973,6 +1047,7 @@ export {
|
|
|
973
1047
|
bulkCheckBenefitEligibility4 as bulkCheckBenefitEligibility,
|
|
974
1048
|
bulkUpdatePools4 as bulkUpdatePools,
|
|
975
1049
|
checkBenefitEligibility4 as checkBenefitEligibility,
|
|
1050
|
+
checkEligibilityByFilter4 as checkEligibilityByFilter,
|
|
976
1051
|
getEligibleBenefits4 as getEligibleBenefits,
|
|
977
1052
|
getPool4 as getPool,
|
|
978
1053
|
queryPools4 as queryPools,
|