@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
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { Pool, UpdatePool, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, ItemReference, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, GetEligibleBenefitsApplicationErrors, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, PoolsQueryBuilder, CursorQuery, typedQueryPools } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityRequest, CommonIdentificationData, CommonIdentificationDataIdOneOf, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibilityCheckResultResultOneOf, EligibilityCheckResultType, EligibilityCheckResultTypeWithLiterals, Eligible, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, Filter, FilterFilterOneOf, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, ListPoolsRequest, ListPoolsRequestType, ListPoolsRequestTypeWithLiterals, ListPoolsResponse, MaskedPool, MessageEnvelope, NotEnoughBalance, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionEvaluatedToFalse, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAndProgramDefinition, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, PoolEnded, PoolInfo, PoolNotActive, PoolNotFound, PoolOrigin, PoolOriginWithLiterals, PoolPaused, PoolProgramInfo, PoolProvisionJobFinished, PoolProvisioned, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusUpdateParamsPoolInfo, PoolStatusWithLiterals, PoolWithItems, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, RateLimitedPolicyTypeWithLiterals, RedeemBenefitRequest, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityRequest, CheckEligibilityByFilterOptions, CheckEligibilityByFilterRequest, CheckEligibilityByFilterResponse, CommonIdentificationData, CommonIdentificationDataIdOneOf, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibilityCheckResultResultOneOf, EligibilityCheckResultType, EligibilityCheckResultTypeWithLiterals, Eligible, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, Filter, FilterFilterOneOf, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, ListPoolsRequest, ListPoolsRequestType, ListPoolsRequestTypeWithLiterals, ListPoolsResponse, MaskedPool, MessageEnvelope, NotEnoughBalance, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionEvaluatedToFalse, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAndProgramDefinition, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, PoolEnded, PoolFilter, PoolInfo, PoolNotActive, PoolNotFound, PoolOrigin, PoolOriginWithLiterals, PoolPaused, PoolProgramInfo, PoolProvisionJobFinished, PoolProvisioned, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusUpdateParamsPoolInfo, PoolStatusWithLiterals, PoolWithItems, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, RateLimitedPolicyTypeWithLiterals, RedeemBenefitRequest, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
6
|
interface GetPoolSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
bulkCheckBenefitEligibility: () => bulkCheckBenefitEligibility4,
|
|
38
38
|
bulkUpdatePools: () => bulkUpdatePools4,
|
|
39
39
|
checkBenefitEligibility: () => checkBenefitEligibility4,
|
|
40
|
+
checkEligibilityByFilter: () => checkEligibilityByFilter4,
|
|
40
41
|
getEligibleBenefits: () => getEligibleBenefits4,
|
|
41
42
|
getPool: () => getPool4,
|
|
42
43
|
queryPools: () => queryPools4,
|
|
@@ -510,6 +511,33 @@ function bulkUpdatePools(payload) {
|
|
|
510
511
|
}
|
|
511
512
|
return __bulkUpdatePools;
|
|
512
513
|
}
|
|
514
|
+
function checkEligibilityByFilter(payload) {
|
|
515
|
+
function __checkEligibilityByFilter({ host }) {
|
|
516
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
517
|
+
{
|
|
518
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
519
|
+
paths: [{ path: "targetDate" }]
|
|
520
|
+
}
|
|
521
|
+
]);
|
|
522
|
+
const metadata = {
|
|
523
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
524
|
+
method: "POST",
|
|
525
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter",
|
|
526
|
+
packageName: PACKAGE_NAME,
|
|
527
|
+
migrationOptions: {
|
|
528
|
+
optInTransformResponse: true
|
|
529
|
+
},
|
|
530
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
531
|
+
protoPath: "/v1/pools/check-eligibility-by-filter",
|
|
532
|
+
data: serializedData,
|
|
533
|
+
host
|
|
534
|
+
}),
|
|
535
|
+
data: serializedData
|
|
536
|
+
};
|
|
537
|
+
return metadata;
|
|
538
|
+
}
|
|
539
|
+
return __checkEligibilityByFilter;
|
|
540
|
+
}
|
|
513
541
|
|
|
514
542
|
// src/benefit-programs-v1-pool-pools.universal.ts
|
|
515
543
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -908,6 +936,45 @@ async function bulkUpdatePools2(options) {
|
|
|
908
936
|
throw transformedError;
|
|
909
937
|
}
|
|
910
938
|
}
|
|
939
|
+
async function checkEligibilityByFilter2(options) {
|
|
940
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
941
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
942
|
+
poolFilter: options?.poolFilter,
|
|
943
|
+
namespace: options?.namespace,
|
|
944
|
+
itemReference: options?.itemReference,
|
|
945
|
+
count: options?.count,
|
|
946
|
+
targetDate: options?.targetDate,
|
|
947
|
+
beneficiary: options?.beneficiary,
|
|
948
|
+
additionalData: options?.additionalData
|
|
949
|
+
});
|
|
950
|
+
const reqOpts = checkEligibilityByFilter(payload);
|
|
951
|
+
sideEffects?.onSiteCall?.();
|
|
952
|
+
try {
|
|
953
|
+
const result = await httpClient.request(reqOpts);
|
|
954
|
+
sideEffects?.onSuccess?.(result);
|
|
955
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
956
|
+
} catch (err) {
|
|
957
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
958
|
+
err,
|
|
959
|
+
{
|
|
960
|
+
spreadPathsToArguments: {},
|
|
961
|
+
explicitPathsToArguments: {
|
|
962
|
+
poolFilter: "$[0].poolFilter",
|
|
963
|
+
namespace: "$[0].namespace",
|
|
964
|
+
itemReference: "$[0].itemReference",
|
|
965
|
+
count: "$[0].count",
|
|
966
|
+
targetDate: "$[0].targetDate",
|
|
967
|
+
beneficiary: "$[0].beneficiary",
|
|
968
|
+
additionalData: "$[0].additionalData"
|
|
969
|
+
},
|
|
970
|
+
singleArgumentUnchanged: false
|
|
971
|
+
},
|
|
972
|
+
["options"]
|
|
973
|
+
);
|
|
974
|
+
sideEffects?.onError?.(err);
|
|
975
|
+
throw transformedError;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
911
978
|
|
|
912
979
|
// src/benefit-programs-v1-pool-pools.public.ts
|
|
913
980
|
function getPool3(httpClient) {
|
|
@@ -976,6 +1043,13 @@ function bulkUpdatePools3(httpClient) {
|
|
|
976
1043
|
{ httpClient }
|
|
977
1044
|
);
|
|
978
1045
|
}
|
|
1046
|
+
function checkEligibilityByFilter3(httpClient) {
|
|
1047
|
+
return (options) => checkEligibilityByFilter2(
|
|
1048
|
+
options,
|
|
1049
|
+
// @ts-ignore
|
|
1050
|
+
{ httpClient }
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
979
1053
|
|
|
980
1054
|
// src/benefit-programs-v1-pool-pools.context.ts
|
|
981
1055
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -998,6 +1072,7 @@ var checkBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRE
|
|
|
998
1072
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCheckBenefitEligibility3);
|
|
999
1073
|
var getEligibleBenefits4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEligibleBenefits3);
|
|
1000
1074
|
var bulkUpdatePools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePools3);
|
|
1075
|
+
var checkEligibilityByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(checkEligibilityByFilter3);
|
|
1001
1076
|
var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPools);
|
|
1002
1077
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1003
1078
|
0 && (module.exports = {
|
|
@@ -1018,6 +1093,7 @@ var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cus
|
|
|
1018
1093
|
bulkCheckBenefitEligibility,
|
|
1019
1094
|
bulkUpdatePools,
|
|
1020
1095
|
checkBenefitEligibility,
|
|
1096
|
+
checkEligibilityByFilter,
|
|
1021
1097
|
getEligibleBenefits,
|
|
1022
1098
|
getPool,
|
|
1023
1099
|
queryPools,
|