@wix/auto_sdk_benefit-programs_pools 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +84 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +170 -1
- package/build/cjs/index.typings.js +75 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +154 -2
- package/build/cjs/meta.js +54 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +82 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +170 -1
- package/build/es/index.typings.mjs +73 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +154 -2
- package/build/es/meta.mjs +52 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.js +84 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +203 -1
- package/build/internal/cjs/index.typings.js +75 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +161 -2
- package/build/internal/cjs/meta.js +54 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -3
- package/build/internal/es/index.mjs +82 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +203 -1
- package/build/internal/es/index.typings.mjs +73 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +161 -2
- package/build/internal/es/meta.mjs +52 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
1
|
+
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, ReallocateBenefitRequest as ReallocateBenefitRequest$1, ReallocateBenefitResponse as ReallocateBenefitResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Pool {
|
|
@@ -653,6 +653,42 @@ 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
|
+
}
|
|
656
692
|
interface PoolPaused {
|
|
657
693
|
/** Pool which has been paused */
|
|
658
694
|
pool?: Pool;
|
|
@@ -1191,6 +1227,72 @@ interface BenefitNotFound {
|
|
|
1191
1227
|
*/
|
|
1192
1228
|
programInfo?: PoolProgramInfo;
|
|
1193
1229
|
}
|
|
1230
|
+
interface ReallocateBenefitRequest {
|
|
1231
|
+
/**
|
|
1232
|
+
* ID of the latest transaction in the redemption's transaction chain.
|
|
1233
|
+
* For a redemption that has never been reallocated, this is the redemption transaction ID.
|
|
1234
|
+
* @format GUID
|
|
1235
|
+
*/
|
|
1236
|
+
transactionId: string;
|
|
1237
|
+
/** New date that the item will be provided to the beneficiary. */
|
|
1238
|
+
targetDate: Date | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* Unique identifier, generated by the client.
|
|
1241
|
+
* Used to recognize repeated attempts to make the same request.
|
|
1242
|
+
* @maxLength 200
|
|
1243
|
+
*/
|
|
1244
|
+
idempotencyKey: string;
|
|
1245
|
+
/** Beneficiary of the pool containing the benefit to reallocate. Must match the beneficiary of the original redemption. */
|
|
1246
|
+
beneficiary?: CommonIdentificationData;
|
|
1247
|
+
/**
|
|
1248
|
+
* 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.
|
|
1249
|
+
* @minLength 1
|
|
1250
|
+
* @maxLength 20
|
|
1251
|
+
*/
|
|
1252
|
+
namespace: string;
|
|
1253
|
+
}
|
|
1254
|
+
interface ReallocateBenefitResponse {
|
|
1255
|
+
/**
|
|
1256
|
+
* ID of the reallocation transaction. This is the new latest transaction in the chain.
|
|
1257
|
+
* @format GUID
|
|
1258
|
+
*/
|
|
1259
|
+
transactionId?: string;
|
|
1260
|
+
}
|
|
1261
|
+
interface TransactionNotFound {
|
|
1262
|
+
/**
|
|
1263
|
+
* ID of the transaction that wasn't found.
|
|
1264
|
+
* @format GUID
|
|
1265
|
+
*/
|
|
1266
|
+
transactionId?: string;
|
|
1267
|
+
}
|
|
1268
|
+
interface NotLatestTransaction {
|
|
1269
|
+
/**
|
|
1270
|
+
* ID of the latest transaction in the chain.
|
|
1271
|
+
* @format GUID
|
|
1272
|
+
*/
|
|
1273
|
+
latestTransactionId?: string;
|
|
1274
|
+
}
|
|
1275
|
+
interface RedemptionAlreadyCanceled {
|
|
1276
|
+
/**
|
|
1277
|
+
* ID of the transaction that canceled the redemption.
|
|
1278
|
+
* @format GUID
|
|
1279
|
+
*/
|
|
1280
|
+
cancellationTransactionId?: string;
|
|
1281
|
+
}
|
|
1282
|
+
interface ChainOperationInProgress {
|
|
1283
|
+
/**
|
|
1284
|
+
* ID of the pending transaction that hasn't settled yet.
|
|
1285
|
+
* @format GUID
|
|
1286
|
+
*/
|
|
1287
|
+
pendingTransactionId?: string;
|
|
1288
|
+
}
|
|
1289
|
+
interface AlreadyExecuted {
|
|
1290
|
+
/**
|
|
1291
|
+
* Idempotency key of the original request.
|
|
1292
|
+
* @maxLength 200
|
|
1293
|
+
*/
|
|
1294
|
+
idempotencyKey?: string;
|
|
1295
|
+
}
|
|
1194
1296
|
interface ReserveBenefitRequest {
|
|
1195
1297
|
/**
|
|
1196
1298
|
* Id of the pool that is being redeemed from
|
|
@@ -1312,7 +1414,25 @@ interface CheckBenefitEligibilityRequest {
|
|
|
1312
1414
|
* @maxLength 20
|
|
1313
1415
|
*/
|
|
1314
1416
|
namespace: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Intent of the eligibility check.
|
|
1419
|
+
*
|
|
1420
|
+
* If not provided, `REDEMPTION` is used by default.
|
|
1421
|
+
* @internal
|
|
1422
|
+
*/
|
|
1423
|
+
intent?: IntentWithLiterals;
|
|
1424
|
+
}
|
|
1425
|
+
declare enum Intent {
|
|
1426
|
+
/** Check whether the benefit can be redeemed. */
|
|
1427
|
+
REDEMPTION = "REDEMPTION",
|
|
1428
|
+
/**
|
|
1429
|
+
* Check whether an already redeemed benefit can be reallocated to the target date.
|
|
1430
|
+
* The redeemed credits are kept, so the balance check is skipped.
|
|
1431
|
+
*/
|
|
1432
|
+
REALLOCATION = "REALLOCATION"
|
|
1315
1433
|
}
|
|
1434
|
+
/** @enumType */
|
|
1435
|
+
type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';
|
|
1316
1436
|
interface CheckBenefitEligibilityResponse {
|
|
1317
1437
|
/** Result of the eligibility check. */
|
|
1318
1438
|
result?: EligibilityCheckResult;
|
|
@@ -2045,6 +2165,44 @@ type RedeemBenefitApplicationErrors = {
|
|
|
2045
2165
|
data?: BenefitNotFound;
|
|
2046
2166
|
};
|
|
2047
2167
|
/** @docsIgnore */
|
|
2168
|
+
type ReallocateBenefitApplicationErrors = {
|
|
2169
|
+
code?: 'TRANSACTION_NOT_FOUND';
|
|
2170
|
+
description?: string;
|
|
2171
|
+
data?: TransactionNotFound;
|
|
2172
|
+
} | {
|
|
2173
|
+
code?: 'POOL_NOT_FOUND';
|
|
2174
|
+
description?: string;
|
|
2175
|
+
data?: PoolNotFound;
|
|
2176
|
+
} | {
|
|
2177
|
+
code?: 'NOT_LATEST_TRANSACTION';
|
|
2178
|
+
description?: string;
|
|
2179
|
+
data?: NotLatestTransaction;
|
|
2180
|
+
} | {
|
|
2181
|
+
code?: 'REDEMPTION_ALREADY_CANCELED';
|
|
2182
|
+
description?: string;
|
|
2183
|
+
data?: RedemptionAlreadyCanceled;
|
|
2184
|
+
} | {
|
|
2185
|
+
code?: 'TRANSACTION_NOT_REALLOCATABLE';
|
|
2186
|
+
description?: string;
|
|
2187
|
+
data?: Record<string, any>;
|
|
2188
|
+
} | {
|
|
2189
|
+
code?: 'POOL_NOT_ACTIVE';
|
|
2190
|
+
description?: string;
|
|
2191
|
+
data?: PoolNotActive;
|
|
2192
|
+
} | {
|
|
2193
|
+
code?: 'POLICY_EXPRESSION_EVALUATED_TO_FALSE';
|
|
2194
|
+
description?: string;
|
|
2195
|
+
data?: PolicyExpressionEvaluatedToFalse;
|
|
2196
|
+
} | {
|
|
2197
|
+
code?: 'CHAIN_OPERATION_IN_PROGRESS';
|
|
2198
|
+
description?: string;
|
|
2199
|
+
data?: ChainOperationInProgress;
|
|
2200
|
+
} | {
|
|
2201
|
+
code?: 'ALREADY_EXECUTED';
|
|
2202
|
+
description?: string;
|
|
2203
|
+
data?: AlreadyExecuted;
|
|
2204
|
+
};
|
|
2205
|
+
/** @docsIgnore */
|
|
2048
2206
|
type GetEligibleBenefitsApplicationErrors = {
|
|
2049
2207
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
2050
2208
|
description?: string;
|
|
@@ -2079,10 +2237,11 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
|
|
|
2079
2237
|
}, UpdatePoolRequest$1, UpdatePoolRequest, UpdatePoolResponse$1, UpdatePoolResponse>;
|
|
2080
2238
|
declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
|
|
2081
2239
|
declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
|
|
2240
|
+
declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
|
|
2082
2241
|
declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
|
|
2083
2242
|
declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
|
|
2084
2243
|
declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
|
|
2085
2244
|
declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
|
|
2086
2245
|
declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
|
|
2087
2246
|
|
|
2088
|
-
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 };
|
|
2247
|
+
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 };
|
|
@@ -22,6 +22,7 @@ var meta_exports = {};
|
|
|
22
22
|
__export(meta_exports, {
|
|
23
23
|
BenefitResultTypeOriginal: () => BenefitResultType,
|
|
24
24
|
IdentityTypeOriginal: () => IdentityType,
|
|
25
|
+
IntentOriginal: () => Intent,
|
|
25
26
|
PolicyExpressionTypeOriginal: () => PolicyExpressionType,
|
|
26
27
|
PoolOriginOriginal: () => PoolOrigin,
|
|
27
28
|
PoolRenewalActionTypeOriginal: () => PoolRenewalActionType,
|
|
@@ -40,6 +41,7 @@ __export(meta_exports, {
|
|
|
40
41
|
getEligibleBenefits: () => getEligibleBenefits2,
|
|
41
42
|
getPool: () => getPool2,
|
|
42
43
|
queryPools: () => queryPools2,
|
|
44
|
+
reallocateBenefit: () => reallocateBenefit2,
|
|
43
45
|
redeemBenefit: () => redeemBenefit2,
|
|
44
46
|
updatePool: () => updatePool2
|
|
45
47
|
});
|
|
@@ -375,6 +377,33 @@ function redeemBenefit(payload) {
|
|
|
375
377
|
}
|
|
376
378
|
return __redeemBenefit;
|
|
377
379
|
}
|
|
380
|
+
function reallocateBenefit(payload) {
|
|
381
|
+
function __reallocateBenefit({ host }) {
|
|
382
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
383
|
+
{
|
|
384
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
385
|
+
paths: [{ path: "targetDate" }]
|
|
386
|
+
}
|
|
387
|
+
]);
|
|
388
|
+
const metadata = {
|
|
389
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
390
|
+
method: "POST",
|
|
391
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.ReallocateBenefit",
|
|
392
|
+
packageName: PACKAGE_NAME,
|
|
393
|
+
migrationOptions: {
|
|
394
|
+
optInTransformResponse: true
|
|
395
|
+
},
|
|
396
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
397
|
+
protoPath: "/v1/benefits/reallocate",
|
|
398
|
+
data: serializedData,
|
|
399
|
+
host
|
|
400
|
+
}),
|
|
401
|
+
data: serializedData
|
|
402
|
+
};
|
|
403
|
+
return metadata;
|
|
404
|
+
}
|
|
405
|
+
return __reallocateBenefit;
|
|
406
|
+
}
|
|
378
407
|
function checkBenefitEligibility(payload) {
|
|
379
408
|
function __checkBenefitEligibility({ host }) {
|
|
380
409
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -594,6 +623,11 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
594
623
|
SortOrder2["DESC"] = "DESC";
|
|
595
624
|
return SortOrder2;
|
|
596
625
|
})(SortOrder || {});
|
|
626
|
+
var Intent = /* @__PURE__ */ ((Intent2) => {
|
|
627
|
+
Intent2["REDEMPTION"] = "REDEMPTION";
|
|
628
|
+
Intent2["REALLOCATION"] = "REALLOCATION";
|
|
629
|
+
return Intent2;
|
|
630
|
+
})(Intent || {});
|
|
597
631
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
598
632
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
599
633
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
@@ -695,6 +729,24 @@ function redeemBenefit2() {
|
|
|
695
729
|
__originalResponseType: null
|
|
696
730
|
};
|
|
697
731
|
}
|
|
732
|
+
function reallocateBenefit2() {
|
|
733
|
+
const payload = {};
|
|
734
|
+
const getRequestOptions = reallocateBenefit(payload);
|
|
735
|
+
const getUrl = (context) => {
|
|
736
|
+
const { url } = getRequestOptions(context);
|
|
737
|
+
return url;
|
|
738
|
+
};
|
|
739
|
+
return {
|
|
740
|
+
getUrl,
|
|
741
|
+
httpMethod: "POST",
|
|
742
|
+
path: "/v1/benefits/reallocate",
|
|
743
|
+
pathParams: {},
|
|
744
|
+
__requestType: null,
|
|
745
|
+
__originalRequestType: null,
|
|
746
|
+
__responseType: null,
|
|
747
|
+
__originalResponseType: null
|
|
748
|
+
};
|
|
749
|
+
}
|
|
698
750
|
function checkBenefitEligibility2() {
|
|
699
751
|
const payload = {};
|
|
700
752
|
const getRequestOptions = checkBenefitEligibility(payload);
|
|
@@ -789,6 +841,7 @@ function checkBenefitEligibilityByFilter2() {
|
|
|
789
841
|
0 && (module.exports = {
|
|
790
842
|
BenefitResultTypeOriginal,
|
|
791
843
|
IdentityTypeOriginal,
|
|
844
|
+
IntentOriginal,
|
|
792
845
|
PolicyExpressionTypeOriginal,
|
|
793
846
|
PoolOriginOriginal,
|
|
794
847
|
PoolRenewalActionTypeOriginal,
|
|
@@ -807,6 +860,7 @@ function checkBenefitEligibilityByFilter2() {
|
|
|
807
860
|
getEligibleBenefits,
|
|
808
861
|
getPool,
|
|
809
862
|
queryPools,
|
|
863
|
+
reallocateBenefit,
|
|
810
864
|
redeemBenefit,
|
|
811
865
|
updatePool
|
|
812
866
|
});
|