@wix/auto_sdk_benefit-programs_pools 1.0.78 → 1.0.80

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 +134 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +246 -1
  5. package/build/cjs/index.typings.js +116 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +223 -2
  8. package/build/cjs/meta.js +88 -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 +132 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +246 -1
  14. package/build/es/index.typings.mjs +114 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +223 -2
  17. package/build/es/meta.mjs +86 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +37 -3
  20. package/build/internal/cjs/index.js +134 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +283 -1
  23. package/build/internal/cjs/index.typings.js +116 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +223 -2
  26. package/build/internal/cjs/meta.js +88 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +37 -3
  29. package/build/internal/es/index.mjs +132 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +283 -1
  32. package/build/internal/es/index.typings.mjs +114 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +223 -2
  35. package/build/internal/es/meta.mjs +86 -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.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, CancelRedemptionRequest as CancelRedemptionRequest$1, CancelRedemptionResponse as CancelRedemptionResponse$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,74 @@ 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
+ }
631
+ interface RedemptionCanceled {
632
+ /** Pool which the canceled redemption belongs to */
633
+ pool?: Pool;
634
+ /** Details of the cancellation */
635
+ cancellationDetails?: CancellationDetails;
636
+ }
637
+ interface CancellationDetails {
638
+ /**
639
+ * Id of the cancellation transaction. This is the terminal transaction of the chain
640
+ * @format GUID
641
+ */
642
+ transactionId?: string;
643
+ /**
644
+ * Id of the transaction superseded by the cancellation
645
+ * @format GUID
646
+ */
647
+ previousTransactionId?: string;
648
+ /** Reference of the item whose redemption was canceled */
649
+ itemReference?: ItemReference;
650
+ /**
651
+ * Number of items that were redeemed
652
+ * @min 1
653
+ */
654
+ itemCount?: number;
655
+ /**
656
+ * Idempotency key of the cancellation request
657
+ * @maxLength 200
658
+ */
659
+ idempotencyKey?: string;
660
+ /** Beneficiary of the entitlement */
661
+ beneficiary?: CommonIdentificationData;
662
+ }
595
663
  interface PoolPaused {
596
664
  /** Pool which has been paused */
597
665
  pool?: Pool;
@@ -1019,6 +1087,93 @@ interface BenefitNotFound {
1019
1087
  */
1020
1088
  benefitKey?: string | null;
1021
1089
  }
1090
+ interface ReallocateBenefitRequest {
1091
+ /**
1092
+ * ID of the latest transaction in the redemption's transaction chain.
1093
+ * For a redemption that has never been reallocated, this is the redemption transaction ID.
1094
+ * @format GUID
1095
+ */
1096
+ transactionId: string;
1097
+ /** New date that the item will be provided to the beneficiary. */
1098
+ targetDate: Date | null;
1099
+ /**
1100
+ * Unique identifier, generated by the client.
1101
+ * Used to recognize repeated attempts to make the same request.
1102
+ * @maxLength 200
1103
+ */
1104
+ idempotencyKey: string;
1105
+ /** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */
1106
+ beneficiary?: CommonIdentificationData;
1107
+ /**
1108
+ * 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.
1109
+ * @minLength 1
1110
+ * @maxLength 20
1111
+ */
1112
+ namespace: string;
1113
+ }
1114
+ interface ReallocateBenefitResponse {
1115
+ /**
1116
+ * ID of the reallocation transaction. This is the new latest transaction in the chain.
1117
+ * @format GUID
1118
+ */
1119
+ transactionId?: string;
1120
+ }
1121
+ interface TransactionNotFound {
1122
+ /**
1123
+ * ID of the transaction that wasn't found.
1124
+ * @format GUID
1125
+ */
1126
+ transactionId?: string;
1127
+ }
1128
+ interface NotLatestTransaction {
1129
+ /**
1130
+ * ID of the latest transaction in the chain.
1131
+ * @format GUID
1132
+ */
1133
+ latestTransactionId?: string;
1134
+ }
1135
+ interface RedemptionAlreadyCanceled {
1136
+ /**
1137
+ * ID of the transaction that canceled the redemption.
1138
+ * @format GUID
1139
+ */
1140
+ cancellationTransactionId?: string;
1141
+ }
1142
+ interface ChainOperationInProgress {
1143
+ /**
1144
+ * ID of the pending transaction that hasn't settled yet.
1145
+ * @format GUID
1146
+ */
1147
+ pendingTransactionId?: string;
1148
+ }
1149
+ interface AlreadyExecuted {
1150
+ /**
1151
+ * Idempotency key of the original request.
1152
+ * @maxLength 200
1153
+ */
1154
+ idempotencyKey?: string;
1155
+ }
1156
+ interface CancelRedemptionRequest {
1157
+ /**
1158
+ * ID of the latest transaction in the redemption's transaction chain.
1159
+ * For a redemption that has never been reallocated, this is the redemption transaction ID.
1160
+ * @format GUID
1161
+ */
1162
+ transactionId: string;
1163
+ /**
1164
+ * Unique identifier, generated by the client.
1165
+ * Used to recognize repeated attempts to make the same request.
1166
+ * @maxLength 200
1167
+ */
1168
+ idempotencyKey: string;
1169
+ }
1170
+ interface CancelRedemptionResponse {
1171
+ /**
1172
+ * ID of the cancellation transaction. This is the terminal transaction of the chain.
1173
+ * @format GUID
1174
+ */
1175
+ transactionId?: string;
1176
+ }
1022
1177
  interface ReserveBenefitRequest {
1023
1178
  /**
1024
1179
  * Id of the pool that is being redeemed from
@@ -1817,6 +1972,70 @@ type RedeemBenefitApplicationErrors = {
1817
1972
  data?: BenefitNotFound;
1818
1973
  };
1819
1974
  /** @docsIgnore */
1975
+ type ReallocateBenefitApplicationErrors = {
1976
+ code?: 'TRANSACTION_NOT_FOUND';
1977
+ description?: string;
1978
+ data?: TransactionNotFound;
1979
+ } | {
1980
+ code?: 'POOL_NOT_FOUND';
1981
+ description?: string;
1982
+ data?: PoolNotFound;
1983
+ } | {
1984
+ code?: 'NOT_LATEST_TRANSACTION';
1985
+ description?: string;
1986
+ data?: NotLatestTransaction;
1987
+ } | {
1988
+ code?: 'REDEMPTION_ALREADY_CANCELED';
1989
+ description?: string;
1990
+ data?: RedemptionAlreadyCanceled;
1991
+ } | {
1992
+ code?: 'TRANSACTION_NOT_REALLOCATABLE';
1993
+ description?: string;
1994
+ data?: Record<string, any>;
1995
+ } | {
1996
+ code?: 'POOL_NOT_ACTIVE';
1997
+ description?: string;
1998
+ data?: PoolNotActive;
1999
+ } | {
2000
+ code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
2001
+ description?: string;
2002
+ data?: PolicyExpressionEvaluatedToFalse;
2003
+ } | {
2004
+ code?: 'CHAIN_OPERATION_IN_PROGRESS';
2005
+ description?: string;
2006
+ data?: ChainOperationInProgress;
2007
+ } | {
2008
+ code?: 'ALREADY_EXECUTED';
2009
+ description?: string;
2010
+ data?: AlreadyExecuted;
2011
+ };
2012
+ /** @docsIgnore */
2013
+ type CancelRedemptionApplicationErrors = {
2014
+ code?: 'TRANSACTION_NOT_FOUND';
2015
+ description?: string;
2016
+ data?: TransactionNotFound;
2017
+ } | {
2018
+ code?: 'NOT_LATEST_TRANSACTION';
2019
+ description?: string;
2020
+ data?: NotLatestTransaction;
2021
+ } | {
2022
+ code?: 'REDEMPTION_ALREADY_CANCELED';
2023
+ description?: string;
2024
+ data?: RedemptionAlreadyCanceled;
2025
+ } | {
2026
+ code?: 'TRANSACTION_NOT_CANCELABLE';
2027
+ description?: string;
2028
+ data?: Record<string, any>;
2029
+ } | {
2030
+ code?: 'CHAIN_OPERATION_IN_PROGRESS';
2031
+ description?: string;
2032
+ data?: ChainOperationInProgress;
2033
+ } | {
2034
+ code?: 'ALREADY_EXECUTED';
2035
+ description?: string;
2036
+ data?: AlreadyExecuted;
2037
+ };
2038
+ /** @docsIgnore */
1820
2039
  type GetEligibleBenefitsApplicationErrors = {
1821
2040
  code?: 'INVALID_ITEM_REFERENCE';
1822
2041
  description?: string;
@@ -1851,10 +2070,12 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
1851
2070
  }, UpdatePoolRequest$1, UpdatePoolRequest, UpdatePoolResponse$1, UpdatePoolResponse>;
1852
2071
  declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
1853
2072
  declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
2073
+ declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
2074
+ declare function cancelRedemption(): __PublicMethodMetaInfo<'POST', {}, CancelRedemptionRequest$1, CancelRedemptionRequest, CancelRedemptionResponse$1, CancelRedemptionResponse>;
1854
2075
  declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
1855
2076
  declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
1856
2077
  declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
1857
2078
  declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
1858
2079
  declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
1859
2080
 
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 };
2081
+ 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 CancelRedemptionApplicationErrors as CancelRedemptionApplicationErrorsOriginal, type CancelRedemptionRequest as CancelRedemptionRequestOriginal, type CancelRedemptionResponse as CancelRedemptionResponseOriginal, type CancellationDetails as CancellationDetailsOriginal, 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 RedemptionCanceled as RedemptionCanceledOriginal, 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, cancelRedemption, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };
package/build/cjs/meta.js CHANGED
@@ -36,11 +36,13 @@ __export(meta_exports, {
36
36
  WeekDayOriginal: () => WeekDay,
37
37
  bulkCheckBenefitEligibility: () => bulkCheckBenefitEligibility2,
38
38
  bulkUpdatePools: () => bulkUpdatePools2,
39
+ cancelRedemption: () => cancelRedemption2,
39
40
  checkBenefitEligibility: () => checkBenefitEligibility2,
40
41
  checkBenefitEligibilityByFilter: () => checkBenefitEligibilityByFilter2,
41
42
  getEligibleBenefits: () => getEligibleBenefits2,
42
43
  getPool: () => getPool2,
43
44
  queryPools: () => queryPools2,
45
+ reallocateBenefit: () => reallocateBenefit2,
44
46
  redeemBenefit: () => redeemBenefit2,
45
47
  updatePool: () => updatePool2
46
48
  });
@@ -376,6 +378,54 @@ function redeemBenefit(payload) {
376
378
  }
377
379
  return __redeemBenefit;
378
380
  }
381
+ function reallocateBenefit(payload) {
382
+ function __reallocateBenefit({ host }) {
383
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
384
+ {
385
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
386
+ paths: [{ path: "targetDate" }]
387
+ }
388
+ ]);
389
+ const metadata = {
390
+ entityFqdn: "wix.benefit_programs.v1.pool",
391
+ method: "POST",
392
+ methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
393
+ packageName: PACKAGE_NAME,
394
+ migrationOptions: {
395
+ optInTransformResponse: true
396
+ },
397
+ url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
398
+ protoPath: "/v1/benefits/reallocate",
399
+ data: serializedData,
400
+ host
401
+ }),
402
+ data: serializedData
403
+ };
404
+ return metadata;
405
+ }
406
+ return __reallocateBenefit;
407
+ }
408
+ function cancelRedemption(payload) {
409
+ function __cancelRedemption({ host }) {
410
+ const metadata = {
411
+ entityFqdn: "wix.benefit_programs.v1.pool",
412
+ method: "POST",
413
+ methodFqn: "wix.benefit_programs.v1.pool.PoolService.CancelRedemption",
414
+ packageName: PACKAGE_NAME,
415
+ migrationOptions: {
416
+ optInTransformResponse: true
417
+ },
418
+ url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
419
+ protoPath: "/v1/benefits/cancel-redemption",
420
+ data: payload,
421
+ host
422
+ }),
423
+ data: payload
424
+ };
425
+ return metadata;
426
+ }
427
+ return __cancelRedemption;
428
+ }
379
429
  function checkBenefitEligibility(payload) {
380
430
  function __checkBenefitEligibility({ host }) {
381
431
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -701,6 +751,42 @@ function redeemBenefit2() {
701
751
  __originalResponseType: null
702
752
  };
703
753
  }
754
+ function reallocateBenefit2() {
755
+ const payload = {};
756
+ const getRequestOptions = reallocateBenefit(payload);
757
+ const getUrl = (context) => {
758
+ const { url } = getRequestOptions(context);
759
+ return url;
760
+ };
761
+ return {
762
+ getUrl,
763
+ httpMethod: "POST",
764
+ path: "/v1/benefits/reallocate",
765
+ pathParams: {},
766
+ __requestType: null,
767
+ __originalRequestType: null,
768
+ __responseType: null,
769
+ __originalResponseType: null
770
+ };
771
+ }
772
+ function cancelRedemption2() {
773
+ const payload = {};
774
+ const getRequestOptions = cancelRedemption(payload);
775
+ const getUrl = (context) => {
776
+ const { url } = getRequestOptions(context);
777
+ return url;
778
+ };
779
+ return {
780
+ getUrl,
781
+ httpMethod: "POST",
782
+ path: "/v1/benefits/cancel-redemption",
783
+ pathParams: {},
784
+ __requestType: null,
785
+ __originalRequestType: null,
786
+ __responseType: null,
787
+ __originalResponseType: null
788
+ };
789
+ }
704
790
  function checkBenefitEligibility2() {
705
791
  const payload = {};
706
792
  const getRequestOptions = checkBenefitEligibility(payload);
@@ -809,11 +895,13 @@ function checkBenefitEligibilityByFilter2() {
809
895
  WeekDayOriginal,
810
896
  bulkCheckBenefitEligibility,
811
897
  bulkUpdatePools,
898
+ cancelRedemption,
812
899
  checkBenefitEligibility,
813
900
  checkBenefitEligibilityByFilter,
814
901
  getEligibleBenefits,
815
902
  getPool,
816
903
  queryPools,
904
+ reallocateBenefit,
817
905
  redeemBenefit,
818
906
  updatePool
819
907
  });