@wix/auto_sdk_benefit-programs_pools 1.0.72 → 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 -77
- 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 -77
- 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 -100
- 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 -100
- 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/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, 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)({
|
|
@@ -1115,13 +1048,6 @@ function bulkUpdatePools3(httpClient) {
|
|
|
1115
1048
|
{ httpClient }
|
|
1116
1049
|
);
|
|
1117
1050
|
}
|
|
1118
|
-
function checkEligibilityByFilter3(httpClient) {
|
|
1119
|
-
return (options) => checkEligibilityByFilter2(
|
|
1120
|
-
options,
|
|
1121
|
-
// @ts-ignore
|
|
1122
|
-
{ httpClient }
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
1051
|
function checkBenefitEligibilityByFilter3(httpClient) {
|
|
1126
1052
|
return (options) => checkBenefitEligibilityByFilter2(
|
|
1127
1053
|
options,
|
|
@@ -1151,7 +1077,6 @@ var checkBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRE
|
|
|
1151
1077
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCheckBenefitEligibility3);
|
|
1152
1078
|
var getEligibleBenefits4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEligibleBenefits3);
|
|
1153
1079
|
var bulkUpdatePools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePools3);
|
|
1154
|
-
var checkEligibilityByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(checkEligibilityByFilter3);
|
|
1155
1080
|
var checkBenefitEligibilityByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(checkBenefitEligibilityByFilter3);
|
|
1156
1081
|
var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPools);
|
|
1157
1082
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1174,7 +1099,6 @@ var queryPools4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cus
|
|
|
1174
1099
|
bulkUpdatePools,
|
|
1175
1100
|
checkBenefitEligibility,
|
|
1176
1101
|
checkBenefitEligibilityByFilter,
|
|
1177
|
-
checkEligibilityByFilter,
|
|
1178
1102
|
getEligibleBenefits,
|
|
1179
1103
|
getPool,
|
|
1180
1104
|
queryPools,
|