@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +84 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +170 -1
  5. package/build/cjs/index.typings.js +75 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +154 -2
  8. package/build/cjs/meta.js +54 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +82 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +170 -1
  14. package/build/es/index.typings.mjs +73 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +154 -2
  17. package/build/es/meta.mjs +52 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +20 -3
  20. package/build/internal/cjs/index.js +84 -2
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +203 -1
  23. package/build/internal/cjs/index.typings.js +75 -2
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +161 -2
  26. package/build/internal/cjs/meta.js +54 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +20 -3
  29. package/build/internal/es/index.mjs +82 -2
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +203 -1
  32. package/build/internal/es/index.typings.mjs +73 -2
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +161 -2
  35. package/build/internal/es/meta.mjs +52 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -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.mjs';
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.mjs';
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
@@ -1141,6 +1243,17 @@ interface CheckBenefitEligibilityRequest {
1141
1243
  */
1142
1244
  namespace: string;
1143
1245
  }
1246
+ declare enum Intent {
1247
+ /** Check whether the benefit can be redeemed. */
1248
+ REDEMPTION = "REDEMPTION",
1249
+ /**
1250
+ * Check whether an already redeemed benefit can be reallocated to the target date.
1251
+ * The redeemed credits are kept, so the balance check is skipped.
1252
+ */
1253
+ REALLOCATION = "REALLOCATION"
1254
+ }
1255
+ /** @enumType */
1256
+ type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';
1144
1257
  interface CheckBenefitEligibilityResponse {
1145
1258
  /** Result of the eligibility check. */
1146
1259
  result?: EligibilityCheckResult;
@@ -1806,6 +1919,44 @@ type RedeemBenefitApplicationErrors = {
1806
1919
  data?: BenefitNotFound;
1807
1920
  };
1808
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 */
1809
1960
  type GetEligibleBenefitsApplicationErrors = {
1810
1961
  code?: 'INVALID_ITEM_REFERENCE';
1811
1962
  description?: string;
@@ -1840,10 +1991,11 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
1840
1991
  }, UpdatePoolRequest$1, UpdatePoolRequest, UpdatePoolResponse$1, UpdatePoolResponse>;
1841
1992
  declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
1842
1993
  declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
1994
+ declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
1843
1995
  declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
1844
1996
  declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
1845
1997
  declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
1846
1998
  declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
1847
1999
  declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
1848
2000
 
1849
- 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, 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/es/meta.mjs CHANGED
@@ -328,6 +328,33 @@ function redeemBenefit(payload) {
328
328
  }
329
329
  return __redeemBenefit;
330
330
  }
331
+ function reallocateBenefit(payload) {
332
+ function __reallocateBenefit({ host }) {
333
+ const serializedData = transformPaths(payload, [
334
+ {
335
+ transformFn: transformSDKTimestampToRESTTimestamp,
336
+ paths: [{ path: "targetDate" }]
337
+ }
338
+ ]);
339
+ const metadata = {
340
+ entityFqdn: "wix.benefit_programs.v1.pool",
341
+ method: "POST",
342
+ methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
343
+ packageName: PACKAGE_NAME,
344
+ migrationOptions: {
345
+ optInTransformResponse: true
346
+ },
347
+ url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
348
+ protoPath: "/v1/benefits/reallocate",
349
+ data: serializedData,
350
+ host
351
+ }),
352
+ data: serializedData
353
+ };
354
+ return metadata;
355
+ }
356
+ return __reallocateBenefit;
357
+ }
331
358
  function checkBenefitEligibility(payload) {
332
359
  function __checkBenefitEligibility({ host }) {
333
360
  const serializedData = transformPaths(payload, [
@@ -547,6 +574,11 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
547
574
  SortOrder2["DESC"] = "DESC";
548
575
  return SortOrder2;
549
576
  })(SortOrder || {});
577
+ var Intent = /* @__PURE__ */ ((Intent2) => {
578
+ Intent2["REDEMPTION"] = "REDEMPTION";
579
+ Intent2["REALLOCATION"] = "REALLOCATION";
580
+ return Intent2;
581
+ })(Intent || {});
550
582
  var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
551
583
  BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
552
584
  BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
@@ -648,6 +680,24 @@ function redeemBenefit2() {
648
680
  __originalResponseType: null
649
681
  };
650
682
  }
683
+ function reallocateBenefit2() {
684
+ const payload = {};
685
+ const getRequestOptions = reallocateBenefit(payload);
686
+ const getUrl = (context) => {
687
+ const { url } = getRequestOptions(context);
688
+ return url;
689
+ };
690
+ return {
691
+ getUrl,
692
+ httpMethod: "POST",
693
+ path: "/v1/benefits/reallocate",
694
+ pathParams: {},
695
+ __requestType: null,
696
+ __originalRequestType: null,
697
+ __responseType: null,
698
+ __originalResponseType: null
699
+ };
700
+ }
651
701
  function checkBenefitEligibility2() {
652
702
  const payload = {};
653
703
  const getRequestOptions = checkBenefitEligibility(payload);
@@ -741,6 +791,7 @@ function checkBenefitEligibilityByFilter2() {
741
791
  export {
742
792
  BenefitResultType as BenefitResultTypeOriginal,
743
793
  IdentityType as IdentityTypeOriginal,
794
+ Intent as IntentOriginal,
744
795
  PolicyExpressionType as PolicyExpressionTypeOriginal,
745
796
  PoolOrigin as PoolOriginOriginal,
746
797
  PoolRenewalActionType as PoolRenewalActionTypeOriginal,
@@ -759,6 +810,7 @@ export {
759
810
  getEligibleBenefits2 as getEligibleBenefits,
760
811
  getPool2 as getPool,
761
812
  queryPools2 as queryPools,
813
+ reallocateBenefit2 as reallocateBenefit,
762
814
  redeemBenefit2 as redeemBenefit,
763
815
  updatePool2 as updatePool
764
816
  };