@wix/auto_sdk_benefit-programs_pools 1.0.73 → 1.0.75
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 +4 -78
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +61 -75
- package/build/cjs/index.typings.js +4 -70
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -47
- package/build/cjs/meta.js +0 -47
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +10 -0
- package/build/cjs/schemas.js +16 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +4 -77
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +61 -75
- package/build/es/index.typings.mjs +4 -69
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -47
- package/build/es/meta.mjs +0 -46
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +10 -0
- package/build/es/schemas.mjs +16 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -20
- package/build/internal/cjs/index.js +4 -78
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +73 -98
- package/build/internal/cjs/index.typings.js +4 -70
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +44 -47
- package/build/internal/cjs/meta.js +0 -47
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +10 -0
- package/build/internal/cjs/schemas.js +16 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -20
- package/build/internal/es/index.mjs +4 -77
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +73 -98
- package/build/internal/es/index.typings.mjs +4 -69
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +44 -47
- package/build/internal/es/meta.mjs +0 -46
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +10 -0
- package/build/internal/es/schemas.mjs +16 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1591,8 +1591,24 @@ interface CountNumberOfPoolsInProvisioningStatusResponse {
|
|
|
1591
1591
|
/** Number of pools in provisioning status */
|
|
1592
1592
|
count?: number;
|
|
1593
1593
|
}
|
|
1594
|
-
interface
|
|
1595
|
-
/**
|
|
1594
|
+
interface CheckBenefitEligibilityByFilterRequest {
|
|
1595
|
+
/**
|
|
1596
|
+
* Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1597
|
+
*
|
|
1598
|
+
* The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).
|
|
1599
|
+
*
|
|
1600
|
+
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.
|
|
1601
|
+
*
|
|
1602
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1603
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1604
|
+
*
|
|
1605
|
+
* The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).
|
|
1606
|
+
*
|
|
1607
|
+
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.
|
|
1608
|
+
*
|
|
1609
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1610
|
+
* @targetRemovalDate 2026-08-01
|
|
1611
|
+
*/
|
|
1596
1612
|
poolFilter?: PoolFilter;
|
|
1597
1613
|
/**
|
|
1598
1614
|
* 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.
|
|
@@ -1603,7 +1619,7 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1603
1619
|
/** Information about the item to check. */
|
|
1604
1620
|
itemReference: ItemReference;
|
|
1605
1621
|
/**
|
|
1606
|
-
*
|
|
1622
|
+
* Number of items to check.
|
|
1607
1623
|
*
|
|
1608
1624
|
* Ensures the balance is high enough to redeem this many items.
|
|
1609
1625
|
* @min 1
|
|
@@ -1615,10 +1631,18 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1615
1631
|
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1616
1632
|
*/
|
|
1617
1633
|
targetDate?: Date | null;
|
|
1618
|
-
/** Pool beneficiary. */
|
|
1634
|
+
/** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */
|
|
1619
1635
|
beneficiary?: CommonIdentificationData;
|
|
1620
1636
|
/** Additional information. */
|
|
1621
1637
|
additionalData?: Record<string, any> | null;
|
|
1638
|
+
/**
|
|
1639
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
1640
|
+
*
|
|
1641
|
+
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the selector further narrows which pools are checked.
|
|
1642
|
+
*
|
|
1643
|
+
* Can't be combined with `pool_filter`.
|
|
1644
|
+
*/
|
|
1645
|
+
poolSelector?: PoolSelector;
|
|
1622
1646
|
}
|
|
1623
1647
|
interface PoolFilter {
|
|
1624
1648
|
/**
|
|
@@ -1633,48 +1657,18 @@ interface PoolFilter {
|
|
|
1633
1657
|
*/
|
|
1634
1658
|
sort?: Sorting[];
|
|
1635
1659
|
}
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
}
|
|
1644
|
-
interface CheckBenefitEligibilityByFilterRequest {
|
|
1645
|
-
/**
|
|
1646
|
-
* Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1647
|
-
*
|
|
1648
|
-
* The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).
|
|
1649
|
-
*
|
|
1650
|
-
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.
|
|
1651
|
-
*/
|
|
1652
|
-
poolFilter?: PoolFilter;
|
|
1653
|
-
/**
|
|
1654
|
-
* 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.
|
|
1655
|
-
* @minLength 1
|
|
1656
|
-
* @maxLength 20
|
|
1657
|
-
*/
|
|
1658
|
-
namespace: string;
|
|
1659
|
-
/** Information about the item to check. */
|
|
1660
|
-
itemReference: ItemReference;
|
|
1661
|
-
/**
|
|
1662
|
-
* Number of items to check.
|
|
1663
|
-
*
|
|
1664
|
-
* Ensures the balance is high enough to redeem this many items.
|
|
1665
|
-
* @min 1
|
|
1666
|
-
*/
|
|
1667
|
-
count: number;
|
|
1660
|
+
/**
|
|
1661
|
+
* Predefined pool-selection attributes used to select the pools to check eligibility in.
|
|
1662
|
+
*
|
|
1663
|
+
* All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives.
|
|
1664
|
+
* An empty selector selects all pools in the namespace that match the provided `beneficiary`.
|
|
1665
|
+
*/
|
|
1666
|
+
interface PoolSelector {
|
|
1668
1667
|
/**
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1671
|
-
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1668
|
+
* Only pools in these statuses are checked. When empty, pools in all statuses are checked.
|
|
1669
|
+
* @maxSize 10
|
|
1672
1670
|
*/
|
|
1673
|
-
|
|
1674
|
-
/** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */
|
|
1675
|
-
beneficiary?: CommonIdentificationData;
|
|
1676
|
-
/** Additional information. */
|
|
1677
|
-
additionalData?: Record<string, any> | null;
|
|
1671
|
+
poolStatuses?: PoolStatusWithLiterals[];
|
|
1678
1672
|
}
|
|
1679
1673
|
interface CheckBenefitEligibilityByFilterResponse {
|
|
1680
1674
|
/**
|
|
@@ -1888,6 +1882,10 @@ type CheckBenefitEligibilityByFilterApplicationErrors = {
|
|
|
1888
1882
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
1889
1883
|
description?: string;
|
|
1890
1884
|
data?: Record<string, any>;
|
|
1885
|
+
} | {
|
|
1886
|
+
code?: 'POOL_FILTER_AND_POOL_SELECTOR_PROVIDED';
|
|
1887
|
+
description?: string;
|
|
1888
|
+
data?: Record<string, any>;
|
|
1891
1889
|
};
|
|
1892
1890
|
/**
|
|
1893
1891
|
* Retrieves a pool.
|
|
@@ -2385,35 +2383,6 @@ interface BulkUpdatePoolsOptions {
|
|
|
2385
2383
|
*/
|
|
2386
2384
|
returnEntity?: boolean;
|
|
2387
2385
|
}
|
|
2388
|
-
interface CheckEligibilityByFilterOptions {
|
|
2389
|
-
/** Defines filtering and sorting criteria used to select pools when checking eligibility. */
|
|
2390
|
-
poolFilter?: PoolFilter;
|
|
2391
|
-
/**
|
|
2392
|
-
* 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.
|
|
2393
|
-
* @minLength 1
|
|
2394
|
-
* @maxLength 20
|
|
2395
|
-
*/
|
|
2396
|
-
namespace: string;
|
|
2397
|
-
/** Information about the item to check. */
|
|
2398
|
-
itemReference: ItemReference;
|
|
2399
|
-
/**
|
|
2400
|
-
* Amount of items to check.
|
|
2401
|
-
*
|
|
2402
|
-
* Ensures the balance is high enough to redeem this many items.
|
|
2403
|
-
* @min 1
|
|
2404
|
-
*/
|
|
2405
|
-
count: number;
|
|
2406
|
-
/**
|
|
2407
|
-
* Date that the item will be provided to the beneficiary.
|
|
2408
|
-
*
|
|
2409
|
-
* This parameter should be used to manage the potential logistics of providing the item.
|
|
2410
|
-
*/
|
|
2411
|
-
targetDate?: Date | null;
|
|
2412
|
-
/** Pool beneficiary. */
|
|
2413
|
-
beneficiary?: CommonIdentificationData;
|
|
2414
|
-
/** Additional information. */
|
|
2415
|
-
additionalData?: Record<string, any> | null;
|
|
2416
|
-
}
|
|
2417
2386
|
/**
|
|
2418
2387
|
* Checks benefit eligibility across the pools that match the filter.
|
|
2419
2388
|
*
|
|
@@ -2423,7 +2392,6 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2423
2392
|
*
|
|
2424
2393
|
* Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
|
|
2425
2394
|
* @public
|
|
2426
|
-
* @documentationMaturity preview
|
|
2427
2395
|
* @requiredField options.count
|
|
2428
2396
|
* @requiredField options.itemReference
|
|
2429
2397
|
* @requiredField options.itemReference.externalId
|
|
@@ -2443,6 +2411,16 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2443
2411
|
* The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).
|
|
2444
2412
|
*
|
|
2445
2413
|
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.
|
|
2414
|
+
*
|
|
2415
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2416
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
2417
|
+
*
|
|
2418
|
+
* The filter selects pools using the same fields supported by Query Pools. For field support, see [Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/pools/filtering-and-sorting).
|
|
2419
|
+
*
|
|
2420
|
+
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the filter further narrows which pools are checked.
|
|
2421
|
+
*
|
|
2422
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2423
|
+
* @targetRemovalDate 2026-08-01
|
|
2446
2424
|
*/
|
|
2447
2425
|
poolFilter?: PoolFilter;
|
|
2448
2426
|
/**
|
|
@@ -2470,6 +2448,14 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2470
2448
|
beneficiary?: CommonIdentificationData;
|
|
2471
2449
|
/** Additional information. */
|
|
2472
2450
|
additionalData?: Record<string, any> | null;
|
|
2451
|
+
/**
|
|
2452
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
2453
|
+
*
|
|
2454
|
+
* When omitted, eligibility is checked across all pools in the namespace that match the provided `beneficiary`. Combined with `beneficiary` and `namespace`, the selector further narrows which pools are checked.
|
|
2455
|
+
*
|
|
2456
|
+
* Can't be combined with `pool_filter`.
|
|
2457
|
+
*/
|
|
2458
|
+
poolSelector?: PoolSelector;
|
|
2473
2459
|
}
|
|
2474
2460
|
|
|
2475
|
-
export { type AccountInfo, type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitResult, type BenefitResultResultOneOf, BenefitResultType, type BenefitResultTypeWithLiterals, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityByFilterApplicationErrors, type CheckBenefitEligibilityByFilterOptions, type CheckBenefitEligibilityByFilterRequest, type CheckBenefitEligibilityByFilterResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type
|
|
2461
|
+
export { type AccountInfo, type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitResult, type BenefitResultResultOneOf, BenefitResultType, type BenefitResultTypeWithLiterals, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityByFilterApplicationErrors, type CheckBenefitEligibilityByFilterOptions, type CheckBenefitEligibilityByFilterRequest, type CheckBenefitEligibilityByFilterResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CommonQueryWithEntityContext, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type HealPoolRequest, type HealPoolResponse, type HealPoolTenantRequest, type HealPoolTenantResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolFilter, type PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolQuery, type PoolQuerySpec, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, type PoolSelector, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsOptions, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, TimePeriod, type TimePeriodWithLiterals, Type, type TypeWithLiterals, type Update, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool, utils };
|
|
@@ -466,33 +466,6 @@ function bulkUpdatePools(payload) {
|
|
|
466
466
|
}
|
|
467
467
|
return __bulkUpdatePools;
|
|
468
468
|
}
|
|
469
|
-
function checkEligibilityByFilter(payload) {
|
|
470
|
-
function __checkEligibilityByFilter({ host }) {
|
|
471
|
-
const serializedData = transformPaths(payload, [
|
|
472
|
-
{
|
|
473
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
474
|
-
paths: [{ path: "targetDate" }]
|
|
475
|
-
}
|
|
476
|
-
]);
|
|
477
|
-
const metadata = {
|
|
478
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
479
|
-
method: "POST",
|
|
480
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter",
|
|
481
|
-
packageName: PACKAGE_NAME,
|
|
482
|
-
migrationOptions: {
|
|
483
|
-
optInTransformResponse: true
|
|
484
|
-
},
|
|
485
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
486
|
-
protoPath: "/v1/pools/check-eligibility-by-filter",
|
|
487
|
-
data: serializedData,
|
|
488
|
-
host
|
|
489
|
-
}),
|
|
490
|
-
data: serializedData
|
|
491
|
-
};
|
|
492
|
-
return metadata;
|
|
493
|
-
}
|
|
494
|
-
return __checkEligibilityByFilter;
|
|
495
|
-
}
|
|
496
469
|
function checkBenefitEligibilityByFilter(payload) {
|
|
497
470
|
function __checkBenefitEligibilityByFilter({ host }) {
|
|
498
471
|
const serializedData = transformPaths(payload, [
|
|
@@ -920,45 +893,6 @@ async function bulkUpdatePools2(options) {
|
|
|
920
893
|
throw transformedError;
|
|
921
894
|
}
|
|
922
895
|
}
|
|
923
|
-
async function checkEligibilityByFilter2(options) {
|
|
924
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
925
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
926
|
-
poolFilter: options?.poolFilter,
|
|
927
|
-
namespace: options?.namespace,
|
|
928
|
-
itemReference: options?.itemReference,
|
|
929
|
-
count: options?.count,
|
|
930
|
-
targetDate: options?.targetDate,
|
|
931
|
-
beneficiary: options?.beneficiary,
|
|
932
|
-
additionalData: options?.additionalData
|
|
933
|
-
});
|
|
934
|
-
const reqOpts = checkEligibilityByFilter(payload);
|
|
935
|
-
sideEffects?.onSiteCall?.();
|
|
936
|
-
try {
|
|
937
|
-
const result = await httpClient.request(reqOpts);
|
|
938
|
-
sideEffects?.onSuccess?.(result);
|
|
939
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
940
|
-
} catch (err) {
|
|
941
|
-
const transformedError = sdkTransformError(
|
|
942
|
-
err,
|
|
943
|
-
{
|
|
944
|
-
spreadPathsToArguments: {},
|
|
945
|
-
explicitPathsToArguments: {
|
|
946
|
-
poolFilter: "$[0].poolFilter",
|
|
947
|
-
namespace: "$[0].namespace",
|
|
948
|
-
itemReference: "$[0].itemReference",
|
|
949
|
-
count: "$[0].count",
|
|
950
|
-
targetDate: "$[0].targetDate",
|
|
951
|
-
beneficiary: "$[0].beneficiary",
|
|
952
|
-
additionalData: "$[0].additionalData"
|
|
953
|
-
},
|
|
954
|
-
singleArgumentUnchanged: false
|
|
955
|
-
},
|
|
956
|
-
["options"]
|
|
957
|
-
);
|
|
958
|
-
sideEffects?.onError?.(err);
|
|
959
|
-
throw transformedError;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
896
|
async function checkBenefitEligibilityByFilter2(options) {
|
|
963
897
|
const { httpClient, sideEffects } = arguments[1];
|
|
964
898
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -968,7 +902,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
968
902
|
count: options?.count,
|
|
969
903
|
targetDate: options?.targetDate,
|
|
970
904
|
beneficiary: options?.beneficiary,
|
|
971
|
-
additionalData: options?.additionalData
|
|
905
|
+
additionalData: options?.additionalData,
|
|
906
|
+
poolSelector: options?.poolSelector
|
|
972
907
|
});
|
|
973
908
|
const reqOpts = checkBenefitEligibilityByFilter(payload);
|
|
974
909
|
sideEffects?.onSiteCall?.();
|
|
@@ -988,7 +923,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
988
923
|
count: "$[0].count",
|
|
989
924
|
targetDate: "$[0].targetDate",
|
|
990
925
|
beneficiary: "$[0].beneficiary",
|
|
991
|
-
additionalData: "$[0].additionalData"
|
|
926
|
+
additionalData: "$[0].additionalData",
|
|
927
|
+
poolSelector: "$[0].poolSelector"
|
|
992
928
|
},
|
|
993
929
|
singleArgumentUnchanged: false
|
|
994
930
|
},
|
|
@@ -1017,7 +953,6 @@ export {
|
|
|
1017
953
|
bulkUpdatePools2 as bulkUpdatePools,
|
|
1018
954
|
checkBenefitEligibility2 as checkBenefitEligibility,
|
|
1019
955
|
checkBenefitEligibilityByFilter2 as checkBenefitEligibilityByFilter,
|
|
1020
|
-
checkEligibilityByFilter2 as checkEligibilityByFilter,
|
|
1021
956
|
getEligibleBenefits2 as getEligibleBenefits,
|
|
1022
957
|
getPool2 as getPool,
|
|
1023
958
|
queryPools2 as queryPools,
|