@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
|
@@ -934,6 +934,12 @@ interface PoolInfo {
|
|
|
934
934
|
* @format GUID
|
|
935
935
|
*/
|
|
936
936
|
poolDefinitionId?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Credit unit type.
|
|
939
|
+
* @internal
|
|
940
|
+
* @maxLength 16
|
|
941
|
+
*/
|
|
942
|
+
creditUnitType?: string | null;
|
|
937
943
|
}
|
|
938
944
|
interface BalanceAmount {
|
|
939
945
|
/**
|
|
@@ -965,6 +971,12 @@ interface BenefitInfo {
|
|
|
965
971
|
* @maxLength 64
|
|
966
972
|
*/
|
|
967
973
|
benefitKey?: string;
|
|
974
|
+
/**
|
|
975
|
+
* Price of the benefit in credits.
|
|
976
|
+
* @internal
|
|
977
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
978
|
+
*/
|
|
979
|
+
price?: string | null;
|
|
968
980
|
}
|
|
969
981
|
interface PolicyExpressionEvaluatedToFalse {
|
|
970
982
|
/**
|
|
@@ -1692,8 +1704,24 @@ interface CountNumberOfPoolsInProvisioningStatusResponse {
|
|
|
1692
1704
|
/** Number of pools in provisioning status */
|
|
1693
1705
|
count?: number;
|
|
1694
1706
|
}
|
|
1695
|
-
interface
|
|
1696
|
-
/**
|
|
1707
|
+
interface CheckBenefitEligibilityByFilterRequest {
|
|
1708
|
+
/**
|
|
1709
|
+
* Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1710
|
+
*
|
|
1711
|
+
* 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).
|
|
1712
|
+
*
|
|
1713
|
+
* 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.
|
|
1714
|
+
*
|
|
1715
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1716
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1717
|
+
*
|
|
1718
|
+
* 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).
|
|
1719
|
+
*
|
|
1720
|
+
* 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.
|
|
1721
|
+
*
|
|
1722
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1723
|
+
* @targetRemovalDate 2026-08-01
|
|
1724
|
+
*/
|
|
1697
1725
|
poolFilter?: PoolFilter;
|
|
1698
1726
|
/**
|
|
1699
1727
|
* 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.
|
|
@@ -1704,7 +1732,7 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1704
1732
|
/** Information about the item to check. */
|
|
1705
1733
|
itemReference: ItemReference;
|
|
1706
1734
|
/**
|
|
1707
|
-
*
|
|
1735
|
+
* Number of items to check.
|
|
1708
1736
|
*
|
|
1709
1737
|
* Ensures the balance is high enough to redeem this many items.
|
|
1710
1738
|
* @min 1
|
|
@@ -1716,10 +1744,18 @@ interface CheckEligibilityByFilterRequest {
|
|
|
1716
1744
|
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1717
1745
|
*/
|
|
1718
1746
|
targetDate?: Date | null;
|
|
1719
|
-
/** Pool beneficiary. */
|
|
1747
|
+
/** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */
|
|
1720
1748
|
beneficiary?: CommonIdentificationData;
|
|
1721
1749
|
/** Additional information. */
|
|
1722
1750
|
additionalData?: Record<string, any> | null;
|
|
1751
|
+
/**
|
|
1752
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
1753
|
+
*
|
|
1754
|
+
* 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.
|
|
1755
|
+
*
|
|
1756
|
+
* Can't be combined with `pool_filter`.
|
|
1757
|
+
*/
|
|
1758
|
+
poolSelector?: PoolSelector;
|
|
1723
1759
|
}
|
|
1724
1760
|
interface PoolFilter {
|
|
1725
1761
|
/**
|
|
@@ -1734,48 +1770,18 @@ interface PoolFilter {
|
|
|
1734
1770
|
*/
|
|
1735
1771
|
sort?: Sorting[];
|
|
1736
1772
|
}
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
}
|
|
1745
|
-
interface CheckBenefitEligibilityByFilterRequest {
|
|
1746
|
-
/**
|
|
1747
|
-
* Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1748
|
-
*
|
|
1749
|
-
* 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).
|
|
1750
|
-
*
|
|
1751
|
-
* 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.
|
|
1752
|
-
*/
|
|
1753
|
-
poolFilter?: PoolFilter;
|
|
1754
|
-
/**
|
|
1755
|
-
* 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.
|
|
1756
|
-
* @minLength 1
|
|
1757
|
-
* @maxLength 20
|
|
1758
|
-
*/
|
|
1759
|
-
namespace: string;
|
|
1760
|
-
/** Information about the item to check. */
|
|
1761
|
-
itemReference: ItemReference;
|
|
1762
|
-
/**
|
|
1763
|
-
* Number of items to check.
|
|
1764
|
-
*
|
|
1765
|
-
* Ensures the balance is high enough to redeem this many items.
|
|
1766
|
-
* @min 1
|
|
1767
|
-
*/
|
|
1768
|
-
count: number;
|
|
1773
|
+
/**
|
|
1774
|
+
* Predefined pool-selection attributes used to select the pools to check eligibility in.
|
|
1775
|
+
*
|
|
1776
|
+
* All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives.
|
|
1777
|
+
* An empty selector selects all pools in the namespace that match the provided `beneficiary`.
|
|
1778
|
+
*/
|
|
1779
|
+
interface PoolSelector {
|
|
1769
1780
|
/**
|
|
1770
|
-
*
|
|
1771
|
-
*
|
|
1772
|
-
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1781
|
+
* Only pools in these statuses are checked. When empty, pools in all statuses are checked.
|
|
1782
|
+
* @maxSize 10
|
|
1773
1783
|
*/
|
|
1774
|
-
|
|
1775
|
-
/** Pool beneficiary. When provided, only the beneficiary's pools that also match `pool_filter` are checked. */
|
|
1776
|
-
beneficiary?: CommonIdentificationData;
|
|
1777
|
-
/** Additional information. */
|
|
1778
|
-
additionalData?: Record<string, any> | null;
|
|
1784
|
+
poolStatuses?: PoolStatusWithLiterals[];
|
|
1779
1785
|
}
|
|
1780
1786
|
interface CheckBenefitEligibilityByFilterResponse {
|
|
1781
1787
|
/**
|
|
@@ -1989,6 +1995,10 @@ type CheckBenefitEligibilityByFilterApplicationErrors = {
|
|
|
1989
1995
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
1990
1996
|
description?: string;
|
|
1991
1997
|
data?: Record<string, any>;
|
|
1998
|
+
} | {
|
|
1999
|
+
code?: 'POOL_FILTER_AND_POOL_SELECTOR_PROVIDED';
|
|
2000
|
+
description?: string;
|
|
2001
|
+
data?: Record<string, any>;
|
|
1992
2002
|
};
|
|
1993
2003
|
/**
|
|
1994
2004
|
* Retrieves a pool.
|
|
@@ -2486,58 +2496,6 @@ interface BulkUpdatePoolsOptions {
|
|
|
2486
2496
|
*/
|
|
2487
2497
|
returnEntity?: boolean;
|
|
2488
2498
|
}
|
|
2489
|
-
/**
|
|
2490
|
-
* Deprecated. Use Check Benefit Eligibility By Filter instead.
|
|
2491
|
-
*
|
|
2492
|
-
* Determines eligibility for each benefit based on the filter.
|
|
2493
|
-
*
|
|
2494
|
-
* To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
|
|
2495
|
-
*
|
|
2496
|
-
* 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.
|
|
2497
|
-
* @internal
|
|
2498
|
-
* @documentationMaturity preview
|
|
2499
|
-
* @requiredField options.count
|
|
2500
|
-
* @requiredField options.itemReference
|
|
2501
|
-
* @requiredField options.itemReference.externalId
|
|
2502
|
-
* @requiredField options.itemReference.providerAppId
|
|
2503
|
-
* @requiredField options.namespace
|
|
2504
|
-
* @permissionId BENEFIT_PROGRAMS.POOL_REDEEM
|
|
2505
|
-
* @applicableIdentity APP
|
|
2506
|
-
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter
|
|
2507
|
-
* @deprecated
|
|
2508
|
-
* @replacedBy wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibilityByFilter
|
|
2509
|
-
* @targetRemovalDate 2026-12-31
|
|
2510
|
-
*/
|
|
2511
|
-
declare function checkEligibilityByFilter(options?: NonNullablePaths<CheckEligibilityByFilterOptions, `count` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckEligibilityByFilterResponse, `result`, 2>>;
|
|
2512
|
-
interface CheckEligibilityByFilterOptions {
|
|
2513
|
-
/** Defines filtering and sorting criteria used to select pools when checking eligibility. */
|
|
2514
|
-
poolFilter?: PoolFilter;
|
|
2515
|
-
/**
|
|
2516
|
-
* 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.
|
|
2517
|
-
* @minLength 1
|
|
2518
|
-
* @maxLength 20
|
|
2519
|
-
*/
|
|
2520
|
-
namespace: string;
|
|
2521
|
-
/** Information about the item to check. */
|
|
2522
|
-
itemReference: ItemReference;
|
|
2523
|
-
/**
|
|
2524
|
-
* Amount of items to check.
|
|
2525
|
-
*
|
|
2526
|
-
* Ensures the balance is high enough to redeem this many items.
|
|
2527
|
-
* @min 1
|
|
2528
|
-
*/
|
|
2529
|
-
count: number;
|
|
2530
|
-
/**
|
|
2531
|
-
* Date that the item will be provided to the beneficiary.
|
|
2532
|
-
*
|
|
2533
|
-
* This parameter should be used to manage the potential logistics of providing the item.
|
|
2534
|
-
*/
|
|
2535
|
-
targetDate?: Date | null;
|
|
2536
|
-
/** Pool beneficiary. */
|
|
2537
|
-
beneficiary?: CommonIdentificationData;
|
|
2538
|
-
/** Additional information. */
|
|
2539
|
-
additionalData?: Record<string, any> | null;
|
|
2540
|
-
}
|
|
2541
2499
|
/**
|
|
2542
2500
|
* Checks benefit eligibility across the pools that match the filter.
|
|
2543
2501
|
*
|
|
@@ -2547,7 +2505,6 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2547
2505
|
*
|
|
2548
2506
|
* 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.
|
|
2549
2507
|
* @public
|
|
2550
|
-
* @documentationMaturity preview
|
|
2551
2508
|
* @requiredField options.count
|
|
2552
2509
|
* @requiredField options.itemReference
|
|
2553
2510
|
* @requiredField options.itemReference.externalId
|
|
@@ -2567,6 +2524,16 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2567
2524
|
* 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).
|
|
2568
2525
|
*
|
|
2569
2526
|
* 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.
|
|
2527
|
+
*
|
|
2528
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2529
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
2530
|
+
*
|
|
2531
|
+
* 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).
|
|
2532
|
+
*
|
|
2533
|
+
* 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.
|
|
2534
|
+
*
|
|
2535
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2536
|
+
* @targetRemovalDate 2026-08-01
|
|
2570
2537
|
*/
|
|
2571
2538
|
poolFilter?: PoolFilter;
|
|
2572
2539
|
/**
|
|
@@ -2594,6 +2561,14 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2594
2561
|
beneficiary?: CommonIdentificationData;
|
|
2595
2562
|
/** Additional information. */
|
|
2596
2563
|
additionalData?: Record<string, any> | null;
|
|
2564
|
+
/**
|
|
2565
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
2566
|
+
*
|
|
2567
|
+
* 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.
|
|
2568
|
+
*
|
|
2569
|
+
* Can't be combined with `pool_filter`.
|
|
2570
|
+
*/
|
|
2571
|
+
poolSelector?: PoolSelector;
|
|
2597
2572
|
}
|
|
2598
2573
|
|
|
2599
|
-
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
|
|
2574
|
+
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 };
|
|
@@ -38,7 +38,6 @@ __export(index_typings_exports, {
|
|
|
38
38
|
bulkUpdatePools: () => bulkUpdatePools2,
|
|
39
39
|
checkBenefitEligibility: () => checkBenefitEligibility2,
|
|
40
40
|
checkBenefitEligibilityByFilter: () => checkBenefitEligibilityByFilter2,
|
|
41
|
-
checkEligibilityByFilter: () => checkEligibilityByFilter2,
|
|
42
41
|
getEligibleBenefits: () => getEligibleBenefits2,
|
|
43
42
|
getPool: () => getPool2,
|
|
44
43
|
queryPools: () => queryPools2,
|
|
@@ -514,33 +513,6 @@ function bulkUpdatePools(payload) {
|
|
|
514
513
|
}
|
|
515
514
|
return __bulkUpdatePools;
|
|
516
515
|
}
|
|
517
|
-
function checkEligibilityByFilter(payload) {
|
|
518
|
-
function __checkEligibilityByFilter({ host }) {
|
|
519
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
520
|
-
{
|
|
521
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
522
|
-
paths: [{ path: "targetDate" }]
|
|
523
|
-
}
|
|
524
|
-
]);
|
|
525
|
-
const metadata = {
|
|
526
|
-
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
527
|
-
method: "POST",
|
|
528
|
-
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter",
|
|
529
|
-
packageName: PACKAGE_NAME,
|
|
530
|
-
migrationOptions: {
|
|
531
|
-
optInTransformResponse: true
|
|
532
|
-
},
|
|
533
|
-
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
534
|
-
protoPath: "/v1/pools/check-eligibility-by-filter",
|
|
535
|
-
data: serializedData,
|
|
536
|
-
host
|
|
537
|
-
}),
|
|
538
|
-
data: serializedData
|
|
539
|
-
};
|
|
540
|
-
return metadata;
|
|
541
|
-
}
|
|
542
|
-
return __checkEligibilityByFilter;
|
|
543
|
-
}
|
|
544
516
|
function checkBenefitEligibilityByFilter(payload) {
|
|
545
517
|
function __checkBenefitEligibilityByFilter({ host }) {
|
|
546
518
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -968,45 +940,6 @@ async function bulkUpdatePools2(options) {
|
|
|
968
940
|
throw transformedError;
|
|
969
941
|
}
|
|
970
942
|
}
|
|
971
|
-
async function checkEligibilityByFilter2(options) {
|
|
972
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
973
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
974
|
-
poolFilter: options?.poolFilter,
|
|
975
|
-
namespace: options?.namespace,
|
|
976
|
-
itemReference: options?.itemReference,
|
|
977
|
-
count: options?.count,
|
|
978
|
-
targetDate: options?.targetDate,
|
|
979
|
-
beneficiary: options?.beneficiary,
|
|
980
|
-
additionalData: options?.additionalData
|
|
981
|
-
});
|
|
982
|
-
const reqOpts = checkEligibilityByFilter(payload);
|
|
983
|
-
sideEffects?.onSiteCall?.();
|
|
984
|
-
try {
|
|
985
|
-
const result = await httpClient.request(reqOpts);
|
|
986
|
-
sideEffects?.onSuccess?.(result);
|
|
987
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
988
|
-
} catch (err) {
|
|
989
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
990
|
-
err,
|
|
991
|
-
{
|
|
992
|
-
spreadPathsToArguments: {},
|
|
993
|
-
explicitPathsToArguments: {
|
|
994
|
-
poolFilter: "$[0].poolFilter",
|
|
995
|
-
namespace: "$[0].namespace",
|
|
996
|
-
itemReference: "$[0].itemReference",
|
|
997
|
-
count: "$[0].count",
|
|
998
|
-
targetDate: "$[0].targetDate",
|
|
999
|
-
beneficiary: "$[0].beneficiary",
|
|
1000
|
-
additionalData: "$[0].additionalData"
|
|
1001
|
-
},
|
|
1002
|
-
singleArgumentUnchanged: false
|
|
1003
|
-
},
|
|
1004
|
-
["options"]
|
|
1005
|
-
);
|
|
1006
|
-
sideEffects?.onError?.(err);
|
|
1007
|
-
throw transformedError;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
943
|
async function checkBenefitEligibilityByFilter2(options) {
|
|
1011
944
|
const { httpClient, sideEffects } = arguments[1];
|
|
1012
945
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1016,7 +949,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
1016
949
|
count: options?.count,
|
|
1017
950
|
targetDate: options?.targetDate,
|
|
1018
951
|
beneficiary: options?.beneficiary,
|
|
1019
|
-
additionalData: options?.additionalData
|
|
952
|
+
additionalData: options?.additionalData,
|
|
953
|
+
poolSelector: options?.poolSelector
|
|
1020
954
|
});
|
|
1021
955
|
const reqOpts = checkBenefitEligibilityByFilter(payload);
|
|
1022
956
|
sideEffects?.onSiteCall?.();
|
|
@@ -1036,7 +970,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
1036
970
|
count: "$[0].count",
|
|
1037
971
|
targetDate: "$[0].targetDate",
|
|
1038
972
|
beneficiary: "$[0].beneficiary",
|
|
1039
|
-
additionalData: "$[0].additionalData"
|
|
973
|
+
additionalData: "$[0].additionalData",
|
|
974
|
+
poolSelector: "$[0].poolSelector"
|
|
1040
975
|
},
|
|
1041
976
|
singleArgumentUnchanged: false
|
|
1042
977
|
},
|
|
@@ -1066,7 +1001,6 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
1066
1001
|
bulkUpdatePools,
|
|
1067
1002
|
checkBenefitEligibility,
|
|
1068
1003
|
checkBenefitEligibilityByFilter,
|
|
1069
|
-
checkEligibilityByFilter,
|
|
1070
1004
|
getEligibleBenefits,
|
|
1071
1005
|
getPool,
|
|
1072
1006
|
queryPools,
|