@wix/auto_sdk_benefit-programs_pools 1.0.45 → 1.0.46
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 +4 -4
- package/build/cjs/index.js +25 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -6
- package/build/cjs/index.typings.js +17 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -3
- package/build/cjs/meta.js +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +25 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -6
- package/build/es/index.typings.mjs +17 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -3
- package/build/es/meta.mjs +3 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +25 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +107 -6
- package/build/internal/cjs/index.typings.js +17 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -3
- package/build/internal/cjs/meta.js +3 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +25 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +107 -6
- package/build/internal/es/index.typings.mjs +17 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -3
- package/build/internal/es/meta.mjs +3 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Pool, UpdatePool, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, ItemReference, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, GetEligibleBenefitsApplicationErrors, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse,
|
|
2
|
+
import { Pool, UpdatePool, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, ItemReference, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, GetEligibleBenefitsApplicationErrors, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CursorQuery, QueryPoolsOptions, typedQueryPools, PoolsQueryBuilder } from './index.typings.js';
|
|
3
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, 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 } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
@@ -81,8 +81,8 @@ interface BulkUpdatePoolsSignature {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
declare function customQueryPools(httpClient: HttpClient): {
|
|
84
|
-
():
|
|
85
|
-
(
|
|
84
|
+
(query: CursorQuery, options?: QueryPoolsOptions): ReturnType<typeof typedQueryPools>;
|
|
85
|
+
(options?: QueryPoolsOptions): PoolsQueryBuilder;
|
|
86
86
|
};
|
|
87
87
|
declare const getPool: MaybeContext<BuildRESTFunction<typeof getPool$1> & typeof getPool$1>;
|
|
88
88
|
declare const updatePool: MaybeContext<BuildRESTFunction<typeof updatePool$1> & typeof updatePool$1>;
|
|
@@ -93,4 +93,4 @@ declare const getEligibleBenefits: MaybeContext<BuildRESTFunction<typeof getElig
|
|
|
93
93
|
declare const bulkUpdatePools: MaybeContext<BuildRESTFunction<typeof bulkUpdatePools$1> & typeof bulkUpdatePools$1>;
|
|
94
94
|
declare const queryPools: MaybeContext<BuildRESTFunction<typeof customQueryPools> & typeof customQueryPools>;
|
|
95
95
|
|
|
96
|
-
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, CursorQuery, GetEligibleBenefitsApplicationErrors, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolsQueryBuilder, RedeemBenefitApplicationErrors, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|
|
96
|
+
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, CursorQuery, GetEligibleBenefitsApplicationErrors, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolsQueryBuilder, QueryPoolsOptions, RedeemBenefitApplicationErrors, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|
package/build/cjs/index.js
CHANGED
|
@@ -502,7 +502,9 @@ function bulkUpdatePools(payload) {
|
|
|
502
502
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
503
503
|
paths: [
|
|
504
504
|
{ path: "results.pool.createdDate" },
|
|
505
|
-
{ path: "results.pool.updatedDate" }
|
|
505
|
+
{ path: "results.pool.updatedDate" },
|
|
506
|
+
{ path: "results.item.createdDate" },
|
|
507
|
+
{ path: "results.item.updatedDate" }
|
|
506
508
|
]
|
|
507
509
|
}
|
|
508
510
|
])
|
|
@@ -690,11 +692,14 @@ async function updatePool2(_id, pool) {
|
|
|
690
692
|
throw transformedError;
|
|
691
693
|
}
|
|
692
694
|
}
|
|
693
|
-
function queryPools2() {
|
|
694
|
-
const { httpClient, sideEffects } = arguments[
|
|
695
|
+
function queryPools2(options) {
|
|
696
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
695
697
|
return (0, import_query_builder.queryBuilder)({
|
|
696
698
|
func: async (payload) => {
|
|
697
|
-
const reqOpts = queryPools(
|
|
699
|
+
const reqOpts = queryPools({
|
|
700
|
+
...payload,
|
|
701
|
+
...options ?? {}
|
|
702
|
+
});
|
|
698
703
|
sideEffects?.onSiteCall?.();
|
|
699
704
|
try {
|
|
700
705
|
const result = await httpClient.request(reqOpts);
|
|
@@ -706,7 +711,7 @@ function queryPools2() {
|
|
|
706
711
|
}
|
|
707
712
|
},
|
|
708
713
|
requestTransformer: (query) => {
|
|
709
|
-
const args = [query,
|
|
714
|
+
const args = [query, options];
|
|
710
715
|
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
711
716
|
...args?.[1],
|
|
712
717
|
query: args?.[0]
|
|
@@ -733,9 +738,12 @@ function queryPools2() {
|
|
|
733
738
|
transformationPaths: {}
|
|
734
739
|
});
|
|
735
740
|
}
|
|
736
|
-
async function typedQueryPools(query) {
|
|
737
|
-
const { httpClient, sideEffects } = arguments[
|
|
738
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
741
|
+
async function typedQueryPools(query, options) {
|
|
742
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
743
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
744
|
+
query,
|
|
745
|
+
...options
|
|
746
|
+
});
|
|
739
747
|
const reqOpts = queryPools(payload);
|
|
740
748
|
sideEffects?.onSiteCall?.();
|
|
741
749
|
try {
|
|
@@ -750,7 +758,7 @@ async function typedQueryPools(query) {
|
|
|
750
758
|
explicitPathsToArguments: { query: "$[0]" },
|
|
751
759
|
singleArgumentUnchanged: false
|
|
752
760
|
},
|
|
753
|
-
["query"]
|
|
761
|
+
["query", "options"]
|
|
754
762
|
);
|
|
755
763
|
sideEffects?.onError?.(err);
|
|
756
764
|
throw transformedError;
|
|
@@ -994,14 +1002,16 @@ function updatePool3(httpClient) {
|
|
|
994
1002
|
);
|
|
995
1003
|
}
|
|
996
1004
|
function queryPools3(httpClient) {
|
|
997
|
-
return () => queryPools2(
|
|
1005
|
+
return (options) => queryPools2(
|
|
1006
|
+
options,
|
|
998
1007
|
// @ts-ignore
|
|
999
1008
|
{ httpClient }
|
|
1000
1009
|
);
|
|
1001
1010
|
}
|
|
1002
1011
|
function typedQueryPools2(httpClient) {
|
|
1003
|
-
return (query) => typedQueryPools(
|
|
1012
|
+
return (query, options) => typedQueryPools(
|
|
1004
1013
|
query,
|
|
1014
|
+
options,
|
|
1005
1015
|
// @ts-ignore
|
|
1006
1016
|
{ httpClient }
|
|
1007
1017
|
);
|
|
@@ -1057,11 +1067,11 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
1057
1067
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1058
1068
|
function customQueryPools(httpClient) {
|
|
1059
1069
|
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1060
|
-
builderQueryFunction: () => queryPools3(httpClient)(),
|
|
1061
|
-
typedQueryFunction: (query) => typedQueryPools2(httpClient)(query),
|
|
1062
|
-
hasOptionsParameter:
|
|
1070
|
+
builderQueryFunction: (options) => queryPools3(httpClient)(options),
|
|
1071
|
+
typedQueryFunction: (query, options) => typedQueryPools2(httpClient)(query, options),
|
|
1072
|
+
hasOptionsParameter: true
|
|
1063
1073
|
});
|
|
1064
|
-
function overloadedQuery(
|
|
1074
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
1065
1075
|
return router(...arguments);
|
|
1066
1076
|
}
|
|
1067
1077
|
return overloadedQuery;
|