@wix/auto_sdk_benefit-programs_pools 1.0.77 → 1.0.79
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 +84 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +170 -1
- package/build/cjs/index.typings.js +75 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +154 -2
- package/build/cjs/meta.js +54 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +82 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +170 -1
- package/build/es/index.typings.mjs +73 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +154 -2
- package/build/es/meta.mjs +52 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.js +84 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +203 -1
- package/build/internal/cjs/index.typings.js +75 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +161 -2
- package/build/internal/cjs/meta.js +54 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -3
- package/build/internal/es/index.mjs +82 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +203 -1
- package/build/internal/es/index.typings.mjs +73 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +161 -2
- package/build/internal/es/meta.mjs +52 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
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, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityByFilterApplicationErrors, PoolQuery, QueryPoolsOptions, typedQueryPools, PoolsQueryBuilder } from './index.typings.mjs';
|
|
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, 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, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, HealPoolRequest, HealPoolResponse, HealPoolTenantRequest, HealPoolTenantResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, 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, 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.mjs';
|
|
2
|
+
import { Pool, UpdatePool, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitResponse, ReallocateBenefitApplicationErrors, 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, ReallocateBenefitRequest, 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';
|
|
4
4
|
|
|
5
5
|
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
6
|
interface GetPoolSignature {
|
|
@@ -38,6 +38,21 @@ interface RedeemBenefitSignature {
|
|
|
38
38
|
__applicationErrorsType?: RedeemBenefitApplicationErrors;
|
|
39
39
|
}>;
|
|
40
40
|
}
|
|
41
|
+
/** @internal */
|
|
42
|
+
declare function reallocateBenefit$1(httpClient: HttpClient): ReallocateBenefitSignature;
|
|
43
|
+
interface ReallocateBenefitSignature {
|
|
44
|
+
/**
|
|
45
|
+
* Reallocates a redeemed benefit to a new target date.
|
|
46
|
+
*
|
|
47
|
+
* The reallocation is recorded as a new zero-amount transaction that supersedes the specified transaction in the redemption's transaction chain.
|
|
48
|
+
* The specified transaction must be the latest transaction in the chain. The item, count and benefit key are carried over from the original redemption; only the target date changes.
|
|
49
|
+
* @param - ID of the latest transaction in the redemption's transaction chain.
|
|
50
|
+
* For a redemption that has never been reallocated, this is the redemption transaction ID.
|
|
51
|
+
*/
|
|
52
|
+
(transactionId: string, options?: NonNullablePaths<ReallocateBenefitOptions, `idempotencyKey` | `namespace` | `targetDate`, 2>): Promise<NonNullablePaths<ReallocateBenefitResponse, `transactionId`, 2> & {
|
|
53
|
+
__applicationErrorsType?: ReallocateBenefitApplicationErrors;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
41
56
|
declare function checkBenefitEligibility$1(httpClient: HttpClient): CheckBenefitEligibilitySignature;
|
|
42
57
|
interface CheckBenefitEligibilitySignature {
|
|
43
58
|
/**
|
|
@@ -102,6 +117,8 @@ declare function customQueryPools(httpClient: HttpClient): {
|
|
|
102
117
|
declare const getPool: MaybeContext<BuildRESTFunction<typeof getPool$1> & typeof getPool$1>;
|
|
103
118
|
declare const updatePool: MaybeContext<BuildRESTFunction<typeof updatePool$1> & typeof updatePool$1>;
|
|
104
119
|
declare const redeemBenefit: MaybeContext<BuildRESTFunction<typeof redeemBenefit$1> & typeof redeemBenefit$1>;
|
|
120
|
+
/** @internal */
|
|
121
|
+
declare const reallocateBenefit: MaybeContext<BuildRESTFunction<typeof reallocateBenefit$1> & typeof reallocateBenefit$1>;
|
|
105
122
|
declare const checkBenefitEligibility: MaybeContext<BuildRESTFunction<typeof checkBenefitEligibility$1> & typeof checkBenefitEligibility$1>;
|
|
106
123
|
declare const bulkCheckBenefitEligibility: MaybeContext<BuildRESTFunction<typeof bulkCheckBenefitEligibility$1> & typeof bulkCheckBenefitEligibility$1>;
|
|
107
124
|
declare const getEligibleBenefits: MaybeContext<BuildRESTFunction<typeof getEligibleBenefits$1> & typeof getEligibleBenefits$1>;
|
|
@@ -109,4 +126,4 @@ declare const bulkUpdatePools: MaybeContext<BuildRESTFunction<typeof bulkUpdateP
|
|
|
109
126
|
declare const checkBenefitEligibilityByFilter: MaybeContext<BuildRESTFunction<typeof checkBenefitEligibilityByFilter$1> & typeof checkBenefitEligibilityByFilter$1>;
|
|
110
127
|
declare const queryPools: MaybeContext<BuildRESTFunction<typeof customQueryPools> & typeof customQueryPools>;
|
|
111
128
|
|
|
112
|
-
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityByFilterApplicationErrors, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, GetEligibleBenefitsApplicationErrors, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolQuery, PoolsQueryBuilder, QueryPoolsOptions, RedeemBenefitApplicationErrors, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|
|
129
|
+
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityByFilterApplicationErrors, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, GetEligibleBenefitsApplicationErrors, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolQuery, PoolsQueryBuilder, QueryPoolsOptions, ReallocateBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitResponse, RedeemBenefitApplicationErrors, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };
|
|
@@ -336,6 +336,33 @@ function redeemBenefit(payload) {
|
|
|
336
336
|
}
|
|
337
337
|
return __redeemBenefit;
|
|
338
338
|
}
|
|
339
|
+
function reallocateBenefit(payload) {
|
|
340
|
+
function __reallocateBenefit({ host }) {
|
|
341
|
+
const serializedData = transformPaths(payload, [
|
|
342
|
+
{
|
|
343
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
344
|
+
paths: [{ path: "targetDate" }]
|
|
345
|
+
}
|
|
346
|
+
]);
|
|
347
|
+
const metadata = {
|
|
348
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
349
|
+
method: "POST",
|
|
350
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
|
|
351
|
+
packageName: PACKAGE_NAME,
|
|
352
|
+
migrationOptions: {
|
|
353
|
+
optInTransformResponse: true
|
|
354
|
+
},
|
|
355
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
356
|
+
protoPath: "/v1/benefits/reallocate",
|
|
357
|
+
data: serializedData,
|
|
358
|
+
host
|
|
359
|
+
}),
|
|
360
|
+
data: serializedData
|
|
361
|
+
};
|
|
362
|
+
return metadata;
|
|
363
|
+
}
|
|
364
|
+
return __reallocateBenefit;
|
|
365
|
+
}
|
|
339
366
|
function checkBenefitEligibility(payload) {
|
|
340
367
|
function __checkBenefitEligibility({ host }) {
|
|
341
368
|
const serializedData = transformPaths(payload, [
|
|
@@ -557,6 +584,11 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
557
584
|
SortOrder2["DESC"] = "DESC";
|
|
558
585
|
return SortOrder2;
|
|
559
586
|
})(SortOrder || {});
|
|
587
|
+
var Intent = /* @__PURE__ */ ((Intent2) => {
|
|
588
|
+
Intent2["REDEMPTION"] = "REDEMPTION";
|
|
589
|
+
Intent2["REALLOCATION"] = "REALLOCATION";
|
|
590
|
+
return Intent2;
|
|
591
|
+
})(Intent || {});
|
|
560
592
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
561
593
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
562
594
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
@@ -750,6 +782,41 @@ async function redeemBenefit2(poolId, options) {
|
|
|
750
782
|
throw transformedError;
|
|
751
783
|
}
|
|
752
784
|
}
|
|
785
|
+
async function reallocateBenefit2(transactionId, options) {
|
|
786
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
787
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
788
|
+
transactionId,
|
|
789
|
+
targetDate: options?.targetDate,
|
|
790
|
+
idempotencyKey: options?.idempotencyKey,
|
|
791
|
+
beneficiary: options?.beneficiary,
|
|
792
|
+
namespace: options?.namespace
|
|
793
|
+
});
|
|
794
|
+
const reqOpts = reallocateBenefit(payload);
|
|
795
|
+
sideEffects?.onSiteCall?.();
|
|
796
|
+
try {
|
|
797
|
+
const result = await httpClient.request(reqOpts);
|
|
798
|
+
sideEffects?.onSuccess?.(result);
|
|
799
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
800
|
+
} catch (err) {
|
|
801
|
+
const transformedError = sdkTransformError(
|
|
802
|
+
err,
|
|
803
|
+
{
|
|
804
|
+
spreadPathsToArguments: {},
|
|
805
|
+
explicitPathsToArguments: {
|
|
806
|
+
transactionId: "$[0]",
|
|
807
|
+
targetDate: "$[1].targetDate",
|
|
808
|
+
idempotencyKey: "$[1].idempotencyKey",
|
|
809
|
+
beneficiary: "$[1].beneficiary",
|
|
810
|
+
namespace: "$[1].namespace"
|
|
811
|
+
},
|
|
812
|
+
singleArgumentUnchanged: false
|
|
813
|
+
},
|
|
814
|
+
["transactionId", "options"]
|
|
815
|
+
);
|
|
816
|
+
sideEffects?.onError?.(err);
|
|
817
|
+
throw transformedError;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
753
820
|
async function checkBenefitEligibility2(poolId, options) {
|
|
754
821
|
const { httpClient, sideEffects } = arguments[2];
|
|
755
822
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -760,7 +827,8 @@ async function checkBenefitEligibility2(poolId, options) {
|
|
|
760
827
|
targetDate: options?.targetDate,
|
|
761
828
|
additionalData: options?.additionalData,
|
|
762
829
|
beneficiary: options?.beneficiary,
|
|
763
|
-
namespace: options?.namespace
|
|
830
|
+
namespace: options?.namespace,
|
|
831
|
+
intent: options?.intent
|
|
764
832
|
});
|
|
765
833
|
const reqOpts = checkBenefitEligibility(payload);
|
|
766
834
|
sideEffects?.onSiteCall?.();
|
|
@@ -781,7 +849,8 @@ async function checkBenefitEligibility2(poolId, options) {
|
|
|
781
849
|
targetDate: "$[1].targetDate",
|
|
782
850
|
additionalData: "$[1].additionalData",
|
|
783
851
|
beneficiary: "$[1].beneficiary",
|
|
784
|
-
namespace: "$[1].namespace"
|
|
852
|
+
namespace: "$[1].namespace",
|
|
853
|
+
intent: "$[1].intent"
|
|
785
854
|
},
|
|
786
855
|
singleArgumentUnchanged: false
|
|
787
856
|
},
|
|
@@ -969,6 +1038,14 @@ function redeemBenefit3(httpClient) {
|
|
|
969
1038
|
{ httpClient }
|
|
970
1039
|
);
|
|
971
1040
|
}
|
|
1041
|
+
function reallocateBenefit3(httpClient) {
|
|
1042
|
+
return (transactionId, options) => reallocateBenefit2(
|
|
1043
|
+
transactionId,
|
|
1044
|
+
options,
|
|
1045
|
+
// @ts-ignore
|
|
1046
|
+
{ httpClient }
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
972
1049
|
function checkBenefitEligibility3(httpClient) {
|
|
973
1050
|
return (poolId, options) => checkBenefitEligibility2(
|
|
974
1051
|
poolId,
|
|
@@ -1024,6 +1101,7 @@ function customQueryPools(httpClient) {
|
|
|
1024
1101
|
var getPool4 = /* @__PURE__ */ createRESTModule(getPool3);
|
|
1025
1102
|
var updatePool4 = /* @__PURE__ */ createRESTModule(updatePool3);
|
|
1026
1103
|
var redeemBenefit4 = /* @__PURE__ */ createRESTModule(redeemBenefit3);
|
|
1104
|
+
var reallocateBenefit4 = /* @__PURE__ */ createRESTModule(reallocateBenefit3);
|
|
1027
1105
|
var checkBenefitEligibility4 = /* @__PURE__ */ createRESTModule(checkBenefitEligibility3);
|
|
1028
1106
|
var bulkCheckBenefitEligibility4 = /* @__PURE__ */ createRESTModule(bulkCheckBenefitEligibility3);
|
|
1029
1107
|
var getEligibleBenefits4 = /* @__PURE__ */ createRESTModule(getEligibleBenefits3);
|
|
@@ -1033,6 +1111,7 @@ var queryPools4 = /* @__PURE__ */ createRESTModule(customQueryPools);
|
|
|
1033
1111
|
export {
|
|
1034
1112
|
BenefitResultType,
|
|
1035
1113
|
IdentityType,
|
|
1114
|
+
Intent,
|
|
1036
1115
|
PolicyExpressionType,
|
|
1037
1116
|
PoolOrigin,
|
|
1038
1117
|
PoolRenewalActionType,
|
|
@@ -1051,6 +1130,7 @@ export {
|
|
|
1051
1130
|
getEligibleBenefits4 as getEligibleBenefits,
|
|
1052
1131
|
getPool4 as getPool,
|
|
1053
1132
|
queryPools4 as queryPools,
|
|
1133
|
+
reallocateBenefit4 as reallocateBenefit,
|
|
1054
1134
|
redeemBenefit4 as redeemBenefit,
|
|
1055
1135
|
updatePool4 as updatePool,
|
|
1056
1136
|
utils
|