@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.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, 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.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Pool {
@@ -653,6 +653,74 @@ interface ItemReference {
653
653
  */
654
654
  providerAppId?: string;
655
655
  }
656
+ interface BenefitReallocated {
657
+ /** Pool which the reallocated benefit belongs to */
658
+ pool?: Pool;
659
+ /** Details of the reallocation */
660
+ reallocationDetails?: ReallocationDetails;
661
+ }
662
+ interface ReallocationDetails {
663
+ /**
664
+ * Id of the reallocation transaction. This is the new latest transaction in the chain
665
+ * @format GUID
666
+ */
667
+ transactionId?: string;
668
+ /**
669
+ * Id of the transaction superseded by the reallocation
670
+ * @format GUID
671
+ */
672
+ previousTransactionId?: string;
673
+ /** Reference of the item that is being reallocated */
674
+ itemReference?: ItemReference;
675
+ /**
676
+ * Number of items that were redeemed
677
+ * @min 1
678
+ */
679
+ itemCount?: number;
680
+ /** New date at which the item will be used */
681
+ targetDate?: Date | null;
682
+ /** Date at which the item would have been used before this reallocation */
683
+ previousTargetDate?: Date | null;
684
+ /**
685
+ * Idempotency key of the reallocation request
686
+ * @maxLength 200
687
+ */
688
+ idempotencyKey?: string;
689
+ /** Beneficiary of the entitlement */
690
+ beneficiary?: CommonIdentificationData;
691
+ }
692
+ interface RedemptionCanceled {
693
+ /** Pool which the canceled redemption belongs to */
694
+ pool?: Pool;
695
+ /** Details of the cancellation */
696
+ cancellationDetails?: CancellationDetails;
697
+ }
698
+ interface CancellationDetails {
699
+ /**
700
+ * Id of the cancellation transaction. This is the terminal transaction of the chain
701
+ * @format GUID
702
+ */
703
+ transactionId?: string;
704
+ /**
705
+ * Id of the transaction superseded by the cancellation
706
+ * @format GUID
707
+ */
708
+ previousTransactionId?: string;
709
+ /** Reference of the item whose redemption was canceled */
710
+ itemReference?: ItemReference;
711
+ /**
712
+ * Number of items that were redeemed
713
+ * @min 1
714
+ */
715
+ itemCount?: number;
716
+ /**
717
+ * Idempotency key of the cancellation request
718
+ * @maxLength 200
719
+ */
720
+ idempotencyKey?: string;
721
+ /** Beneficiary of the entitlement */
722
+ beneficiary?: CommonIdentificationData;
723
+ }
656
724
  interface PoolPaused {
657
725
  /** Pool which has been paused */
658
726
  pool?: Pool;
@@ -1191,6 +1259,93 @@ interface BenefitNotFound {
1191
1259
  */
1192
1260
  programInfo?: PoolProgramInfo;
1193
1261
  }
1262
+ interface ReallocateBenefitRequest {
1263
+ /**
1264
+ * ID of the latest transaction in the redemption's transaction chain.
1265
+ * For a redemption that has never been reallocated, this is the redemption transaction ID.
1266
+ * @format GUID
1267
+ */
1268
+ transactionId: string;
1269
+ /** New date that the item will be provided to the beneficiary. */
1270
+ targetDate: Date | null;
1271
+ /**
1272
+ * Unique identifier, generated by the client.
1273
+ * Used to recognize repeated attempts to make the same request.
1274
+ * @maxLength 200
1275
+ */
1276
+ idempotencyKey: string;
1277
+ /** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */
1278
+ beneficiary?: CommonIdentificationData;
1279
+ /**
1280
+ * 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.
1281
+ * @minLength 1
1282
+ * @maxLength 20
1283
+ */
1284
+ namespace: string;
1285
+ }
1286
+ interface ReallocateBenefitResponse {
1287
+ /**
1288
+ * ID of the reallocation transaction. This is the new latest transaction in the chain.
1289
+ * @format GUID
1290
+ */
1291
+ transactionId?: string;
1292
+ }
1293
+ interface TransactionNotFound {
1294
+ /**
1295
+ * ID of the transaction that wasn't found.
1296
+ * @format GUID
1297
+ */
1298
+ transactionId?: string;
1299
+ }
1300
+ interface NotLatestTransaction {
1301
+ /**
1302
+ * ID of the latest transaction in the chain.
1303
+ * @format GUID
1304
+ */
1305
+ latestTransactionId?: string;
1306
+ }
1307
+ interface RedemptionAlreadyCanceled {
1308
+ /**
1309
+ * ID of the transaction that canceled the redemption.
1310
+ * @format GUID
1311
+ */
1312
+ cancellationTransactionId?: string;
1313
+ }
1314
+ interface ChainOperationInProgress {
1315
+ /**
1316
+ * ID of the pending transaction that hasn't settled yet.
1317
+ * @format GUID
1318
+ */
1319
+ pendingTransactionId?: string;
1320
+ }
1321
+ interface AlreadyExecuted {
1322
+ /**
1323
+ * Idempotency key of the original request.
1324
+ * @maxLength 200
1325
+ */
1326
+ idempotencyKey?: string;
1327
+ }
1328
+ interface CancelRedemptionRequest {
1329
+ /**
1330
+ * ID of the latest transaction in the redemption's transaction chain.
1331
+ * For a redemption that has never been reallocated, this is the redemption transaction ID.
1332
+ * @format GUID
1333
+ */
1334
+ transactionId: string;
1335
+ /**
1336
+ * Unique identifier, generated by the client.
1337
+ * Used to recognize repeated attempts to make the same request.
1338
+ * @maxLength 200
1339
+ */
1340
+ idempotencyKey: string;
1341
+ }
1342
+ interface CancelRedemptionResponse {
1343
+ /**
1344
+ * ID of the cancellation transaction. This is the terminal transaction of the chain.
1345
+ * @format GUID
1346
+ */
1347
+ transactionId?: string;
1348
+ }
1194
1349
  interface ReserveBenefitRequest {
1195
1350
  /**
1196
1351
  * Id of the pool that is being redeemed from
@@ -2063,6 +2218,70 @@ type RedeemBenefitApplicationErrors = {
2063
2218
  data?: BenefitNotFound;
2064
2219
  };
2065
2220
  /** @docsIgnore */
2221
+ type ReallocateBenefitApplicationErrors = {
2222
+ code?: 'TRANSACTION_NOT_FOUND';
2223
+ description?: string;
2224
+ data?: TransactionNotFound;
2225
+ } | {
2226
+ code?: 'POOL_NOT_FOUND';
2227
+ description?: string;
2228
+ data?: PoolNotFound;
2229
+ } | {
2230
+ code?: 'NOT_LATEST_TRANSACTION';
2231
+ description?: string;
2232
+ data?: NotLatestTransaction;
2233
+ } | {
2234
+ code?: 'REDEMPTION_ALREADY_CANCELED';
2235
+ description?: string;
2236
+ data?: RedemptionAlreadyCanceled;
2237
+ } | {
2238
+ code?: 'TRANSACTION_NOT_REALLOCATABLE';
2239
+ description?: string;
2240
+ data?: Record<string, any>;
2241
+ } | {
2242
+ code?: 'POOL_NOT_ACTIVE';
2243
+ description?: string;
2244
+ data?: PoolNotActive;
2245
+ } | {
2246
+ code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
2247
+ description?: string;
2248
+ data?: PolicyExpressionEvaluatedToFalse;
2249
+ } | {
2250
+ code?: 'CHAIN_OPERATION_IN_PROGRESS';
2251
+ description?: string;
2252
+ data?: ChainOperationInProgress;
2253
+ } | {
2254
+ code?: 'ALREADY_EXECUTED';
2255
+ description?: string;
2256
+ data?: AlreadyExecuted;
2257
+ };
2258
+ /** @docsIgnore */
2259
+ type CancelRedemptionApplicationErrors = {
2260
+ code?: 'TRANSACTION_NOT_FOUND';
2261
+ description?: string;
2262
+ data?: TransactionNotFound;
2263
+ } | {
2264
+ code?: 'NOT_LATEST_TRANSACTION';
2265
+ description?: string;
2266
+ data?: NotLatestTransaction;
2267
+ } | {
2268
+ code?: 'REDEMPTION_ALREADY_CANCELED';
2269
+ description?: string;
2270
+ data?: RedemptionAlreadyCanceled;
2271
+ } | {
2272
+ code?: 'TRANSACTION_NOT_CANCELABLE';
2273
+ description?: string;
2274
+ data?: Record<string, any>;
2275
+ } | {
2276
+ code?: 'CHAIN_OPERATION_IN_PROGRESS';
2277
+ description?: string;
2278
+ data?: ChainOperationInProgress;
2279
+ } | {
2280
+ code?: 'ALREADY_EXECUTED';
2281
+ description?: string;
2282
+ data?: AlreadyExecuted;
2283
+ };
2284
+ /** @docsIgnore */
2066
2285
  type GetEligibleBenefitsApplicationErrors = {
2067
2286
  code?: 'INVALID_ITEM_REFERENCE';
2068
2287
  description?: string;
@@ -2097,10 +2316,12 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
2097
2316
  }, UpdatePoolRequest$1, UpdatePoolRequest, UpdatePoolResponse$1, UpdatePoolResponse>;
2098
2317
  declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
2099
2318
  declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
2319
+ declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
2320
+ declare function cancelRedemption(): __PublicMethodMetaInfo<'POST', {}, CancelRedemptionRequest$1, CancelRedemptionRequest, CancelRedemptionResponse$1, CancelRedemptionResponse>;
2100
2321
  declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
2101
2322
  declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
2102
2323
  declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
2103
2324
  declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
2104
2325
  declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
2105
2326
 
2106
- 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 };
2327
+ 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 };
@@ -328,6 +328,54 @@ 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
+ }
358
+ function cancelRedemption(payload) {
359
+ function __cancelRedemption({ host }) {
360
+ const metadata = {
361
+ entityFqdn: "wix.benefit_programs.v1.pool",
362
+ method: "POST",
363
+ methodFqn: "wix.benefit_programs.v1.pool.PoolService.CancelRedemption",
364
+ packageName: PACKAGE_NAME,
365
+ migrationOptions: {
366
+ optInTransformResponse: true
367
+ },
368
+ url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
369
+ protoPath: "/v1/benefits/cancel-redemption",
370
+ data: payload,
371
+ host
372
+ }),
373
+ data: payload
374
+ };
375
+ return metadata;
376
+ }
377
+ return __cancelRedemption;
378
+ }
331
379
  function checkBenefitEligibility(payload) {
332
380
  function __checkBenefitEligibility({ host }) {
333
381
  const serializedData = transformPaths(payload, [
@@ -653,6 +701,42 @@ function redeemBenefit2() {
653
701
  __originalResponseType: null
654
702
  };
655
703
  }
704
+ function reallocateBenefit2() {
705
+ const payload = {};
706
+ const getRequestOptions = reallocateBenefit(payload);
707
+ const getUrl = (context) => {
708
+ const { url } = getRequestOptions(context);
709
+ return url;
710
+ };
711
+ return {
712
+ getUrl,
713
+ httpMethod: "POST",
714
+ path: "/v1/benefits/reallocate",
715
+ pathParams: {},
716
+ __requestType: null,
717
+ __originalRequestType: null,
718
+ __responseType: null,
719
+ __originalResponseType: null
720
+ };
721
+ }
722
+ function cancelRedemption2() {
723
+ const payload = {};
724
+ const getRequestOptions = cancelRedemption(payload);
725
+ const getUrl = (context) => {
726
+ const { url } = getRequestOptions(context);
727
+ return url;
728
+ };
729
+ return {
730
+ getUrl,
731
+ httpMethod: "POST",
732
+ path: "/v1/benefits/cancel-redemption",
733
+ pathParams: {},
734
+ __requestType: null,
735
+ __originalRequestType: null,
736
+ __responseType: null,
737
+ __originalResponseType: null
738
+ };
739
+ }
656
740
  function checkBenefitEligibility2() {
657
741
  const payload = {};
658
742
  const getRequestOptions = checkBenefitEligibility(payload);
@@ -760,11 +844,13 @@ export {
760
844
  WeekDay as WeekDayOriginal,
761
845
  bulkCheckBenefitEligibility2 as bulkCheckBenefitEligibility,
762
846
  bulkUpdatePools2 as bulkUpdatePools,
847
+ cancelRedemption2 as cancelRedemption,
763
848
  checkBenefitEligibility2 as checkBenefitEligibility,
764
849
  checkBenefitEligibilityByFilter2 as checkBenefitEligibilityByFilter,
765
850
  getEligibleBenefits2 as getEligibleBenefits,
766
851
  getPool2 as getPool,
767
852
  queryPools2 as queryPools,
853
+ reallocateBenefit2 as reallocateBenefit,
768
854
  redeemBenefit2 as redeemBenefit,
769
855
  updatePool2 as updatePool
770
856
  };