@wix/auto_sdk_benefit-programs_pools 1.0.78 → 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 +73 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +159 -1
- package/build/cjs/index.typings.js +64 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +143 -2
- package/build/cjs/meta.js +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +72 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +159 -1
- package/build/es/index.typings.mjs +63 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +143 -2
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.js +73 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +178 -1
- package/build/internal/cjs/index.typings.js +64 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +143 -2
- package/build/internal/cjs/meta.js +47 -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 +72 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +178 -1
- package/build/internal/es/index.typings.mjs +63 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +143 -2
- package/build/internal/es/meta.mjs +46 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
1
|
+
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, ReallocateBenefitRequest as ReallocateBenefitRequest$1, ReallocateBenefitResponse as ReallocateBenefitResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Pool {
|
|
@@ -592,6 +592,42 @@ interface ItemReference {
|
|
|
592
592
|
*/
|
|
593
593
|
providerAppId?: string;
|
|
594
594
|
}
|
|
595
|
+
interface BenefitReallocated {
|
|
596
|
+
/** Pool which the reallocated benefit belongs to */
|
|
597
|
+
pool?: Pool;
|
|
598
|
+
/** Details of the reallocation */
|
|
599
|
+
reallocationDetails?: ReallocationDetails;
|
|
600
|
+
}
|
|
601
|
+
interface ReallocationDetails {
|
|
602
|
+
/**
|
|
603
|
+
* Id of the reallocation transaction. This is the new latest transaction in the chain
|
|
604
|
+
* @format GUID
|
|
605
|
+
*/
|
|
606
|
+
transactionId?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Id of the transaction superseded by the reallocation
|
|
609
|
+
* @format GUID
|
|
610
|
+
*/
|
|
611
|
+
previousTransactionId?: string;
|
|
612
|
+
/** Reference of the item that is being reallocated */
|
|
613
|
+
itemReference?: ItemReference;
|
|
614
|
+
/**
|
|
615
|
+
* Number of items that were redeemed
|
|
616
|
+
* @min 1
|
|
617
|
+
*/
|
|
618
|
+
itemCount?: number;
|
|
619
|
+
/** New date at which the item will be used */
|
|
620
|
+
targetDate?: Date | null;
|
|
621
|
+
/** Date at which the item would have been used before this reallocation */
|
|
622
|
+
previousTargetDate?: Date | null;
|
|
623
|
+
/**
|
|
624
|
+
* Idempotency key of the reallocation request
|
|
625
|
+
* @maxLength 200
|
|
626
|
+
*/
|
|
627
|
+
idempotencyKey?: string;
|
|
628
|
+
/** Beneficiary of the entitlement */
|
|
629
|
+
beneficiary?: CommonIdentificationData;
|
|
630
|
+
}
|
|
595
631
|
interface PoolPaused {
|
|
596
632
|
/** Pool which has been paused */
|
|
597
633
|
pool?: Pool;
|
|
@@ -1019,6 +1055,72 @@ interface BenefitNotFound {
|
|
|
1019
1055
|
*/
|
|
1020
1056
|
benefitKey?: string | null;
|
|
1021
1057
|
}
|
|
1058
|
+
interface ReallocateBenefitRequest {
|
|
1059
|
+
/**
|
|
1060
|
+
* ID of the latest transaction in the redemption's transaction chain.
|
|
1061
|
+
* For a redemption that has never been reallocated, this is the redemption transaction ID.
|
|
1062
|
+
* @format GUID
|
|
1063
|
+
*/
|
|
1064
|
+
transactionId: string;
|
|
1065
|
+
/** New date that the item will be provided to the beneficiary. */
|
|
1066
|
+
targetDate: Date | null;
|
|
1067
|
+
/**
|
|
1068
|
+
* Unique identifier, generated by the client.
|
|
1069
|
+
* Used to recognize repeated attempts to make the same request.
|
|
1070
|
+
* @maxLength 200
|
|
1071
|
+
*/
|
|
1072
|
+
idempotencyKey: string;
|
|
1073
|
+
/** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */
|
|
1074
|
+
beneficiary?: CommonIdentificationData;
|
|
1075
|
+
/**
|
|
1076
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
1077
|
+
* @minLength 1
|
|
1078
|
+
* @maxLength 20
|
|
1079
|
+
*/
|
|
1080
|
+
namespace: string;
|
|
1081
|
+
}
|
|
1082
|
+
interface ReallocateBenefitResponse {
|
|
1083
|
+
/**
|
|
1084
|
+
* ID of the reallocation transaction. This is the new latest transaction in the chain.
|
|
1085
|
+
* @format GUID
|
|
1086
|
+
*/
|
|
1087
|
+
transactionId?: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface TransactionNotFound {
|
|
1090
|
+
/**
|
|
1091
|
+
* ID of the transaction that wasn't found.
|
|
1092
|
+
* @format GUID
|
|
1093
|
+
*/
|
|
1094
|
+
transactionId?: string;
|
|
1095
|
+
}
|
|
1096
|
+
interface NotLatestTransaction {
|
|
1097
|
+
/**
|
|
1098
|
+
* ID of the latest transaction in the chain.
|
|
1099
|
+
* @format GUID
|
|
1100
|
+
*/
|
|
1101
|
+
latestTransactionId?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface RedemptionAlreadyCanceled {
|
|
1104
|
+
/**
|
|
1105
|
+
* ID of the transaction that canceled the redemption.
|
|
1106
|
+
* @format GUID
|
|
1107
|
+
*/
|
|
1108
|
+
cancellationTransactionId?: string;
|
|
1109
|
+
}
|
|
1110
|
+
interface ChainOperationInProgress {
|
|
1111
|
+
/**
|
|
1112
|
+
* ID of the pending transaction that hasn't settled yet.
|
|
1113
|
+
* @format GUID
|
|
1114
|
+
*/
|
|
1115
|
+
pendingTransactionId?: string;
|
|
1116
|
+
}
|
|
1117
|
+
interface AlreadyExecuted {
|
|
1118
|
+
/**
|
|
1119
|
+
* Idempotency key of the original request.
|
|
1120
|
+
* @maxLength 200
|
|
1121
|
+
*/
|
|
1122
|
+
idempotencyKey?: string;
|
|
1123
|
+
}
|
|
1022
1124
|
interface ReserveBenefitRequest {
|
|
1023
1125
|
/**
|
|
1024
1126
|
* Id of the pool that is being redeemed from
|
|
@@ -1817,6 +1919,44 @@ type RedeemBenefitApplicationErrors = {
|
|
|
1817
1919
|
data?: BenefitNotFound;
|
|
1818
1920
|
};
|
|
1819
1921
|
/** @docsIgnore */
|
|
1922
|
+
type ReallocateBenefitApplicationErrors = {
|
|
1923
|
+
code?: 'TRANSACTION_NOT_FOUND';
|
|
1924
|
+
description?: string;
|
|
1925
|
+
data?: TransactionNotFound;
|
|
1926
|
+
} | {
|
|
1927
|
+
code?: 'POOL_NOT_FOUND';
|
|
1928
|
+
description?: string;
|
|
1929
|
+
data?: PoolNotFound;
|
|
1930
|
+
} | {
|
|
1931
|
+
code?: 'NOT_LATEST_TRANSACTION';
|
|
1932
|
+
description?: string;
|
|
1933
|
+
data?: NotLatestTransaction;
|
|
1934
|
+
} | {
|
|
1935
|
+
code?: 'REDEMPTION_ALREADY_CANCELED';
|
|
1936
|
+
description?: string;
|
|
1937
|
+
data?: RedemptionAlreadyCanceled;
|
|
1938
|
+
} | {
|
|
1939
|
+
code?: 'TRANSACTION_NOT_REALLOCATABLE';
|
|
1940
|
+
description?: string;
|
|
1941
|
+
data?: Record<string, any>;
|
|
1942
|
+
} | {
|
|
1943
|
+
code?: 'POOL_NOT_ACTIVE';
|
|
1944
|
+
description?: string;
|
|
1945
|
+
data?: PoolNotActive;
|
|
1946
|
+
} | {
|
|
1947
|
+
code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
|
|
1948
|
+
description?: string;
|
|
1949
|
+
data?: PolicyExpressionEvaluatedToFalse;
|
|
1950
|
+
} | {
|
|
1951
|
+
code?: 'CHAIN_OPERATION_IN_PROGRESS';
|
|
1952
|
+
description?: string;
|
|
1953
|
+
data?: ChainOperationInProgress;
|
|
1954
|
+
} | {
|
|
1955
|
+
code?: 'ALREADY_EXECUTED';
|
|
1956
|
+
description?: string;
|
|
1957
|
+
data?: AlreadyExecuted;
|
|
1958
|
+
};
|
|
1959
|
+
/** @docsIgnore */
|
|
1820
1960
|
type GetEligibleBenefitsApplicationErrors = {
|
|
1821
1961
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
1822
1962
|
description?: string;
|
|
@@ -1851,10 +1991,11 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
|
|
|
1851
1991
|
}, UpdatePoolRequest$1, UpdatePoolRequest, UpdatePoolResponse$1, UpdatePoolResponse>;
|
|
1852
1992
|
declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
|
|
1853
1993
|
declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
|
|
1994
|
+
declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
|
|
1854
1995
|
declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
|
|
1855
1996
|
declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
|
|
1856
1997
|
declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
|
|
1857
1998
|
declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
|
|
1858
1999
|
declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
|
|
1859
2000
|
|
|
1860
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, Intent as IntentOriginal, type IntentWithLiterals as IntentWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|
|
2001
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AlreadyExecuted as AlreadyExecutedOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitReallocated as BenefitReallocatedOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type ChainOperationInProgress as ChainOperationInProgressOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, Intent as IntentOriginal, type IntentWithLiterals as IntentWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type NotLatestTransaction as NotLatestTransactionOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type ReallocateBenefitApplicationErrors as ReallocateBenefitApplicationErrorsOriginal, type ReallocateBenefitRequest as ReallocateBenefitRequestOriginal, type ReallocateBenefitResponse as ReallocateBenefitResponseOriginal, type ReallocationDetails as ReallocationDetailsOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionAlreadyCanceled as RedemptionAlreadyCanceledOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, type TransactionNotFound as TransactionNotFoundOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };
|
package/build/cjs/meta.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(meta_exports, {
|
|
|
41
41
|
getEligibleBenefits: () => getEligibleBenefits2,
|
|
42
42
|
getPool: () => getPool2,
|
|
43
43
|
queryPools: () => queryPools2,
|
|
44
|
+
reallocateBenefit: () => reallocateBenefit2,
|
|
44
45
|
redeemBenefit: () => redeemBenefit2,
|
|
45
46
|
updatePool: () => updatePool2
|
|
46
47
|
});
|
|
@@ -376,6 +377,33 @@ function redeemBenefit(payload) {
|
|
|
376
377
|
}
|
|
377
378
|
return __redeemBenefit;
|
|
378
379
|
}
|
|
380
|
+
function reallocateBenefit(payload) {
|
|
381
|
+
function __reallocateBenefit({ host }) {
|
|
382
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
383
|
+
{
|
|
384
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
385
|
+
paths: [{ path: "targetDate" }]
|
|
386
|
+
}
|
|
387
|
+
]);
|
|
388
|
+
const metadata = {
|
|
389
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
390
|
+
method: "POST",
|
|
391
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
|
|
392
|
+
packageName: PACKAGE_NAME,
|
|
393
|
+
migrationOptions: {
|
|
394
|
+
optInTransformResponse: true
|
|
395
|
+
},
|
|
396
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
397
|
+
protoPath: "/v1/benefits/reallocate",
|
|
398
|
+
data: serializedData,
|
|
399
|
+
host
|
|
400
|
+
}),
|
|
401
|
+
data: serializedData
|
|
402
|
+
};
|
|
403
|
+
return metadata;
|
|
404
|
+
}
|
|
405
|
+
return __reallocateBenefit;
|
|
406
|
+
}
|
|
379
407
|
function checkBenefitEligibility(payload) {
|
|
380
408
|
function __checkBenefitEligibility({ host }) {
|
|
381
409
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -701,6 +729,24 @@ function redeemBenefit2() {
|
|
|
701
729
|
__originalResponseType: null
|
|
702
730
|
};
|
|
703
731
|
}
|
|
732
|
+
function reallocateBenefit2() {
|
|
733
|
+
const payload = {};
|
|
734
|
+
const getRequestOptions = reallocateBenefit(payload);
|
|
735
|
+
const getUrl = (context) => {
|
|
736
|
+
const { url } = getRequestOptions(context);
|
|
737
|
+
return url;
|
|
738
|
+
};
|
|
739
|
+
return {
|
|
740
|
+
getUrl,
|
|
741
|
+
httpMethod: "POST",
|
|
742
|
+
path: "/v1/benefits/reallocate",
|
|
743
|
+
pathParams: {},
|
|
744
|
+
__requestType: null,
|
|
745
|
+
__originalRequestType: null,
|
|
746
|
+
__responseType: null,
|
|
747
|
+
__originalResponseType: null
|
|
748
|
+
};
|
|
749
|
+
}
|
|
704
750
|
function checkBenefitEligibility2() {
|
|
705
751
|
const payload = {};
|
|
706
752
|
const getRequestOptions = checkBenefitEligibility(payload);
|
|
@@ -814,6 +860,7 @@ function checkBenefitEligibilityByFilter2() {
|
|
|
814
860
|
getEligibleBenefits,
|
|
815
861
|
getPool,
|
|
816
862
|
queryPools,
|
|
863
|
+
reallocateBenefit,
|
|
817
864
|
redeemBenefit,
|
|
818
865
|
updatePool
|
|
819
866
|
});
|