@wix/auto_sdk_benefit-programs_pools 1.0.73 → 1.0.75
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 +4 -78
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +61 -75
- package/build/cjs/index.typings.js +4 -70
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -47
- package/build/cjs/meta.js +0 -47
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +10 -0
- package/build/cjs/schemas.js +16 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +4 -77
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +61 -75
- package/build/es/index.typings.mjs +4 -69
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -47
- package/build/es/meta.mjs +0 -46
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +10 -0
- package/build/es/schemas.mjs +16 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -20
- package/build/internal/cjs/index.js +4 -78
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +73 -98
- package/build/internal/cjs/index.typings.js +4 -70
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +44 -47
- package/build/internal/cjs/meta.js +0 -47
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +10 -0
- package/build/internal/cjs/schemas.js +16 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -20
- package/build/internal/es/index.mjs +4 -77
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +73 -98
- package/build/internal/es/index.typings.mjs +4 -69
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +44 -47
- package/build/internal/es/meta.mjs +0 -46
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +10 -0
- package/build/internal/es/schemas.mjs +16 -2
- package/build/internal/es/schemas.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, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityByFilterApplicationErrors, PoolQuery, QueryPoolsOptions, typedQueryPools, PoolsQueryBuilder } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitResult, BenefitResultResultOneOf, BenefitResultType, BenefitResultTypeWithLiterals, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityRequest,
|
|
3
|
+
export { AccountInfo, ActionEvent, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitResult, BenefitResultResultOneOf, BenefitResultType, BenefitResultTypeWithLiterals, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByItemReference, ByItemReferenceFilter, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityRequest, CommonIdentificationData, CommonIdentificationDataIdOneOf, CommonQueryWithEntityContext, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, Filter, FilterFilterOneOf, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, HealPoolRequest, HealPoolResponse, HealPoolTenantRequest, HealPoolTenantResponse, 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, PoolQuerySpec, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelector, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusUpdateParamsPoolInfo, PoolStatusWithLiterals, PoolWithItems, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, RedeemBenefitRequest, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, TimePeriod, TimePeriodWithLiterals, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals, utils } 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
|
@@ -38,7 +38,6 @@ __export(index_exports, {
|
|
|
38
38
|
bulkUpdatePools: () => bulkUpdatePools4,
|
|
39
39
|
checkBenefitEligibility: () => checkBenefitEligibility4,
|
|
40
40
|
checkBenefitEligibilityByFilter: () => checkBenefitEligibilityByFilter4,
|
|
41
|
-
checkEligibilityByFilter: () => checkEligibilityByFilter4,
|
|
42
41
|
getEligibleBenefits: () => getEligibleBenefits4,
|
|
43
42
|
getPool: () => getPool4,
|
|
44
43
|
queryPools: () => queryPools4,
|
|
@@ -513,33 +512,6 @@ function bulkUpdatePools(payload) {
|
|
|
513
512
|
}
|
|
514
513
|
return __bulkUpdatePools;
|
|
515
514
|
}
|
|
516
|
-
function checkEligibilityByFilter(payload) {
|
|
517
|
-
function __checkEligibilityByFilter({ host }) {
|
|
518
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
519
|
-
{
|
|
520
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
521
|
-
paths: [{ path: "targetDate" }]
|
|
522
|
-
}
|
|
523
|
-
]);
|
|
524
|
-
const metadata = {
|
|
525
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
526
|
-
method: "POST",
|
|
527
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter",
|
|
528
|
-
packageName: PACKAGE_NAME,
|
|
529
|
-
migrationOptions: {
|
|
530
|
-
optInTransformResponse: true
|
|
531
|
-
},
|
|
532
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
533
|
-
protoPath: "/v1/pools/check-eligibility-by-filter",
|
|
534
|
-
data: serializedData,
|
|
535
|
-
host
|
|
536
|
-
}),
|
|
537
|
-
data: serializedData
|
|
538
|
-
};
|
|
539
|
-
return metadata;
|
|
540
|
-
}
|
|
541
|
-
return __checkEligibilityByFilter;
|
|
542
|
-
}
|
|
543
515
|
function checkBenefitEligibilityByFilter(payload) {
|
|
544
516
|
function __checkBenefitEligibilityByFilter({ host }) {
|
|
545
517
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -967,45 +939,6 @@ async function bulkUpdatePools2(options) {
|
|
|
967
939
|
throw transformedError;
|
|
968
940
|
}
|
|
969
941
|
}
|
|
970
|
-
async function checkEligibilityByFilter2(options) {
|
|
971
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
972
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
973
|
-
poolFilter: options?.poolFilter,
|
|
974
|
-
namespace: options?.namespace,
|
|
975
|
-
itemReference: options?.itemReference,
|
|
976
|
-
count: options?.count,
|
|
977
|
-
targetDate: options?.targetDate,
|
|
978
|
-
beneficiary: options?.beneficiary,
|
|
979
|
-
additionalData: options?.additionalData
|
|
980
|
-
});
|
|
981
|
-
const reqOpts = checkEligibilityByFilter(payload);
|
|
982
|
-
sideEffects?.onSiteCall?.();
|
|
983
|
-
try {
|
|
984
|
-
const result = await httpClient.request(reqOpts);
|
|
985
|
-
sideEffects?.onSuccess?.(result);
|
|
986
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
987
|
-
} catch (err) {
|
|
988
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
989
|
-
err,
|
|
990
|
-
{
|
|
991
|
-
spreadPathsToArguments: {},
|
|
992
|
-
explicitPathsToArguments: {
|
|
993
|
-
poolFilter: "$[0].poolFilter",
|
|
994
|
-
namespace: "$[0].namespace",
|
|
995
|
-
itemReference: "$[0].itemReference",
|
|
996
|
-
count: "$[0].count",
|
|
997
|
-
targetDate: "$[0].targetDate",
|
|
998
|
-
beneficiary: "$[0].beneficiary",
|
|
999
|
-
additionalData: "$[0].additionalData"
|
|
1000
|
-
},
|
|
1001
|
-
singleArgumentUnchanged: false
|
|
1002
|
-
},
|
|
1003
|
-
["options"]
|
|
1004
|
-
);
|
|
1005
|
-
sideEffects?.onError?.(err);
|
|
1006
|
-
throw transformedError;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
942
|
async function checkBenefitEligibilityByFilter2(options) {
|
|
1010
943
|
const { httpClient, sideEffects } = arguments[1];
|
|
1011
944
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1015,7 +948,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
1015
948
|
count: options?.count,
|
|
1016
949
|
targetDate: options?.targetDate,
|
|
1017
950
|
beneficiary: options?.beneficiary,
|
|
1018
|
-
additionalData: options?.additionalData
|
|
951
|
+
additionalData: options?.additionalData,
|
|
952
|
+
poolSelector: options?.poolSelector
|
|
1019
953
|
});
|
|
1020
954
|
const reqOpts = checkBenefitEligibilityByFilter(payload);
|
|
1021
955
|
sideEffects?.onSiteCall?.();
|
|
@@ -1035,7 +969,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
1035
969
|
count: "$[0].count",
|
|
1036
970
|
targetDate: "$[0].targetDate",
|
|
1037
971
|
beneficiary: "$[0].beneficiary",
|
|
1038
|
-
additionalData: "$[0].additionalData"
|
|
972
|
+
additionalData: "$[0].additionalData",
|
|
973
|
+
poolSelector: "$[0].poolSelector"
|
|
1039
974
|
},
|
|
1040
975
|
singleArgumentUnchanged: false
|
|
1041
976
|
},
|
|
@@ -1115,13 +1050,6 @@ function bulkUpdatePools3(httpClient) {
|
|
|
1115
1050
|
{ httpClient }
|
|
1116
1051
|
);
|
|
1117
1052
|
}
|
|
1118
|
-
function checkEligibilityByFilter3(httpClient) {
|
|
1119
|
-
return (options) => checkEligibilityByFilter2(
|
|
1120
|
-
options,
|
|
1121
|
-
// @ts-ignore
|
|
1122
|
-
{ httpClient }
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
1053
|
function checkBenefitEligibilityByFilter3(httpClient) {
|
|
1126
1054
|
return (options) => checkBenefitEligibilityByFilter2(
|
|
1127
1055
|
options,
|
|
@@ -1151,7 +1079,6 @@ var checkBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRE
|
|
|
1151
1079
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCheckBenefitEligibility3);
|
|
1152
1080
|
var getEligibleBenefits4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEligibleBenefits3);
|
|
1153
1081
|
var bulkUpdatePools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePools3);
|
|
1154
|
-
var checkEligibilityByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(checkEligibilityByFilter3);
|
|
1155
1082
|
var checkBenefitEligibilityByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(checkBenefitEligibilityByFilter3);
|
|
1156
1083
|
var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPools);
|
|
1157
1084
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1174,7 +1101,6 @@ var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cus
|
|
|
1174
1101
|
bulkUpdatePools,
|
|
1175
1102
|
checkBenefitEligibility,
|
|
1176
1103
|
checkBenefitEligibilityByFilter,
|
|
1177
|
-
checkEligibilityByFilter,
|
|
1178
1104
|
getEligibleBenefits,
|
|
1179
1105
|
getPool,
|
|
1180
1106
|
queryPools,
|