@wix/auto_sdk_benefit-programs_pools 1.0.79 → 1.0.81
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 +61 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +88 -1
- package/build/cjs/index.typings.js +52 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +82 -2
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +60 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +88 -1
- package/build/es/index.typings.mjs +51 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +82 -2
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.typings.d.ts +108 -1
- package/build/internal/cjs/meta.d.ts +82 -2
- package/build/internal/es/index.d.mts +20 -3
- package/build/internal/es/index.typings.d.mts +108 -1
- package/build/internal/es/meta.d.mts +82 -2
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -1033
- package/build/cjs/schemas.js +0 -1991
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -1033
- package/build/es/schemas.mjs +0 -1937
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -1186
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1078
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -867
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -1033
- package/build/internal/cjs/schemas.js +0 -1991
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1138
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1029
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -817
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -1033
- package/build/internal/es/schemas.mjs +0 -1937
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/es/index.d.mts
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.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, AlreadyExecuted, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitReallocated, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitResult, BenefitResultResultOneOf, BenefitResultType, BenefitResultTypeWithLiterals, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, ChainOperationInProgress, 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, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, HealPoolRequest, HealPoolResponse, HealPoolTenantRequest, HealPoolTenantResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, Intent, IntentWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, MaskedPool, MessageEnvelope, NotEnoughBalance, NotLatestTransaction, 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, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, ReallocateBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitRequest, ReallocateBenefitResponse, ReallocationDetails, RedeemBenefitRequest, RedemptionAlreadyCanceled, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, TimePeriod, TimePeriodWithLiterals, TransactionNotFound, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals, utils } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, AlreadyExecuted, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitReallocated, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitResult, BenefitResultResultOneOf, BenefitResultType, BenefitResultTypeWithLiterals, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CancelRedemptionApplicationErrors, CancelRedemptionOptions, CancelRedemptionRequest, CancelRedemptionResponse, CancellationDetails, ChainOperationInProgress, 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, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, HealPoolRequest, HealPoolResponse, HealPoolTenantRequest, HealPoolTenantResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, Intent, IntentWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, MaskedPool, MessageEnvelope, NotEnoughBalance, NotLatestTransaction, 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, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, ReallocateBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitRequest, ReallocateBenefitResponse, ReallocationDetails, RedeemBenefitRequest, RedemptionAlreadyCanceled, RedemptionCanceled, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, TimePeriod, TimePeriodWithLiterals, TransactionNotFound, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
6
|
interface GetPoolSignature {
|
package/build/es/index.mjs
CHANGED
|
@@ -363,6 +363,27 @@ function reallocateBenefit(payload) {
|
|
|
363
363
|
}
|
|
364
364
|
return __reallocateBenefit;
|
|
365
365
|
}
|
|
366
|
+
function cancelRedemption(payload) {
|
|
367
|
+
function __cancelRedemption({ host }) {
|
|
368
|
+
const metadata = {
|
|
369
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
370
|
+
method: "POST",
|
|
371
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CancelRedemption",
|
|
372
|
+
packageName: PACKAGE_NAME,
|
|
373
|
+
migrationOptions: {
|
|
374
|
+
optInTransformResponse: true
|
|
375
|
+
},
|
|
376
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
377
|
+
protoPath: "/v1/benefits/cancel-redemption",
|
|
378
|
+
data: payload,
|
|
379
|
+
host
|
|
380
|
+
}),
|
|
381
|
+
data: payload
|
|
382
|
+
};
|
|
383
|
+
return metadata;
|
|
384
|
+
}
|
|
385
|
+
return __cancelRedemption;
|
|
386
|
+
}
|
|
366
387
|
function checkBenefitEligibility(payload) {
|
|
367
388
|
function __checkBenefitEligibility({ host }) {
|
|
368
389
|
const serializedData = transformPaths(payload, [
|
|
@@ -817,6 +838,35 @@ async function reallocateBenefit2(transactionId, options) {
|
|
|
817
838
|
throw transformedError;
|
|
818
839
|
}
|
|
819
840
|
}
|
|
841
|
+
async function cancelRedemption2(transactionId, options) {
|
|
842
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
843
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
844
|
+
transactionId,
|
|
845
|
+
idempotencyKey: options?.idempotencyKey
|
|
846
|
+
});
|
|
847
|
+
const reqOpts = cancelRedemption(payload);
|
|
848
|
+
sideEffects?.onSiteCall?.();
|
|
849
|
+
try {
|
|
850
|
+
const result = await httpClient.request(reqOpts);
|
|
851
|
+
sideEffects?.onSuccess?.(result);
|
|
852
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
853
|
+
} catch (err) {
|
|
854
|
+
const transformedError = sdkTransformError(
|
|
855
|
+
err,
|
|
856
|
+
{
|
|
857
|
+
spreadPathsToArguments: {},
|
|
858
|
+
explicitPathsToArguments: {
|
|
859
|
+
transactionId: "$[0]",
|
|
860
|
+
idempotencyKey: "$[1].idempotencyKey"
|
|
861
|
+
},
|
|
862
|
+
singleArgumentUnchanged: false
|
|
863
|
+
},
|
|
864
|
+
["transactionId", "options"]
|
|
865
|
+
);
|
|
866
|
+
sideEffects?.onError?.(err);
|
|
867
|
+
throw transformedError;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
820
870
|
async function checkBenefitEligibility2(poolId, options) {
|
|
821
871
|
const { httpClient, sideEffects } = arguments[2];
|
|
822
872
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1046,6 +1096,14 @@ function reallocateBenefit3(httpClient) {
|
|
|
1046
1096
|
{ httpClient }
|
|
1047
1097
|
);
|
|
1048
1098
|
}
|
|
1099
|
+
function cancelRedemption3(httpClient) {
|
|
1100
|
+
return (transactionId, options) => cancelRedemption2(
|
|
1101
|
+
transactionId,
|
|
1102
|
+
options,
|
|
1103
|
+
// @ts-ignore
|
|
1104
|
+
{ httpClient }
|
|
1105
|
+
);
|
|
1106
|
+
}
|
|
1049
1107
|
function checkBenefitEligibility3(httpClient) {
|
|
1050
1108
|
return (poolId, options) => checkBenefitEligibility2(
|
|
1051
1109
|
poolId,
|
|
@@ -1102,6 +1160,7 @@ var getPool4 = /* @__PURE__ */ createRESTModule(getPool3);
|
|
|
1102
1160
|
var updatePool4 = /* @__PURE__ */ createRESTModule(updatePool3);
|
|
1103
1161
|
var redeemBenefit4 = /* @__PURE__ */ createRESTModule(redeemBenefit3);
|
|
1104
1162
|
var reallocateBenefit4 = /* @__PURE__ */ createRESTModule(reallocateBenefit3);
|
|
1163
|
+
var cancelRedemption4 = /* @__PURE__ */ createRESTModule(cancelRedemption3);
|
|
1105
1164
|
var checkBenefitEligibility4 = /* @__PURE__ */ createRESTModule(checkBenefitEligibility3);
|
|
1106
1165
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ createRESTModule(bulkCheckBenefitEligibility3);
|
|
1107
1166
|
var getEligibleBenefits4 = /* @__PURE__ */ createRESTModule(getEligibleBenefits3);
|
|
@@ -1125,6 +1184,7 @@ export {
|
|
|
1125
1184
|
WeekDay,
|
|
1126
1185
|
bulkCheckBenefitEligibility4 as bulkCheckBenefitEligibility,
|
|
1127
1186
|
bulkUpdatePools4 as bulkUpdatePools,
|
|
1187
|
+
cancelRedemption4 as cancelRedemption,
|
|
1128
1188
|
checkBenefitEligibility4 as checkBenefitEligibility,
|
|
1129
1189
|
checkBenefitEligibilityByFilter4 as checkBenefitEligibilityByFilter,
|
|
1130
1190
|
getEligibleBenefits4 as getEligibleBenefits,
|