@wix/auto_sdk_benefit-programs_pools 1.0.74 → 1.0.76
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 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +54 -69
- package/build/cjs/index.typings.js +4 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +36 -69
- package/build/cjs/meta.js +0 -6
- 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 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +54 -69
- package/build/es/index.typings.mjs +4 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +36 -69
- package/build/es/meta.mjs +0 -5
- 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 +1 -1
- package/build/internal/cjs/index.js +4 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +66 -69
- package/build/internal/cjs/index.typings.js +4 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +36 -69
- package/build/internal/cjs/meta.js +0 -6
- 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 +1 -1
- package/build/internal/es/index.mjs +4 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +66 -69
- package/build/internal/es/index.typings.mjs +4 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +36 -69
- package/build/internal/es/meta.mjs +0 -5
- 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
|
@@ -1305,74 +1305,6 @@ interface GetEligibleBenefitsResponse {
|
|
|
1305
1305
|
/** Retrieved benefits that can be redeemed. */
|
|
1306
1306
|
eligibleBenefits?: EligibleBenefit[];
|
|
1307
1307
|
}
|
|
1308
|
-
interface ListPoolsRequest {
|
|
1309
|
-
/** The filter */
|
|
1310
|
-
filter?: Filter;
|
|
1311
|
-
/** Cursor paging */
|
|
1312
|
-
cursorPaging?: CursorPaging;
|
|
1313
|
-
}
|
|
1314
|
-
declare enum ListPoolsRequestType {
|
|
1315
|
-
BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
|
|
1316
|
-
}
|
|
1317
|
-
/** @enumType */
|
|
1318
|
-
type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | 'BY_ITEM_REFERENCE';
|
|
1319
|
-
interface ByItemReference {
|
|
1320
|
-
/**
|
|
1321
|
-
* A list of filters
|
|
1322
|
-
* @maxSize 100
|
|
1323
|
-
*/
|
|
1324
|
-
filters?: ByItemReferenceFilter[];
|
|
1325
|
-
/** Beneficiary of the pool */
|
|
1326
|
-
beneficiary?: CommonIdentificationData;
|
|
1327
|
-
/**
|
|
1328
|
-
* Returns pools that are in the following statuses
|
|
1329
|
-
* @maxSize 10
|
|
1330
|
-
*/
|
|
1331
|
-
poolStatuses?: PoolStatusWithLiterals[];
|
|
1332
|
-
}
|
|
1333
|
-
interface ByItemReferenceFilter {
|
|
1334
|
-
/** Reference of the item */
|
|
1335
|
-
itemReference?: ItemReference;
|
|
1336
|
-
}
|
|
1337
|
-
interface Filter extends FilterFilterOneOf {
|
|
1338
|
-
/** A list of filters by reference */
|
|
1339
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1340
|
-
/** Type of the filter */
|
|
1341
|
-
type?: ListPoolsRequestTypeWithLiterals;
|
|
1342
|
-
/**
|
|
1343
|
-
* Module that is the source of the benefit pool creation.
|
|
1344
|
-
*
|
|
1345
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1346
|
-
*
|
|
1347
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1348
|
-
* @minLength 1
|
|
1349
|
-
* @maxLength 20
|
|
1350
|
-
*/
|
|
1351
|
-
namespace?: string;
|
|
1352
|
-
}
|
|
1353
|
-
/** @oneof */
|
|
1354
|
-
interface FilterFilterOneOf {
|
|
1355
|
-
/** A list of filters by reference */
|
|
1356
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1357
|
-
}
|
|
1358
|
-
interface ListPoolsResponse {
|
|
1359
|
-
/**
|
|
1360
|
-
* The retrieved pools
|
|
1361
|
-
* @maxSize 100
|
|
1362
|
-
*/
|
|
1363
|
-
pools?: PoolWithItems[];
|
|
1364
|
-
/** Paging information */
|
|
1365
|
-
metadata?: CursorPagingMetadata;
|
|
1366
|
-
}
|
|
1367
|
-
interface PoolWithItems {
|
|
1368
|
-
/** The pool */
|
|
1369
|
-
pool?: Pool;
|
|
1370
|
-
/**
|
|
1371
|
-
* The items in the pool
|
|
1372
|
-
* @maxSize 100
|
|
1373
|
-
*/
|
|
1374
|
-
itemReference?: ItemReference[];
|
|
1375
|
-
}
|
|
1376
1308
|
interface BulkUpdatePoolsRequest {
|
|
1377
1309
|
/**
|
|
1378
1310
|
* Pools to update.
|
|
@@ -1598,6 +1530,16 @@ interface CheckBenefitEligibilityByFilterRequest {
|
|
|
1598
1530
|
* 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
1531
|
*
|
|
1600
1532
|
* 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.
|
|
1533
|
+
*
|
|
1534
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1535
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
1536
|
+
*
|
|
1537
|
+
* 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).
|
|
1538
|
+
*
|
|
1539
|
+
* 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.
|
|
1540
|
+
*
|
|
1541
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
1542
|
+
* @targetRemovalDate 2026-08-01
|
|
1601
1543
|
*/
|
|
1602
1544
|
poolFilter?: PoolFilter;
|
|
1603
1545
|
/**
|
|
@@ -1625,6 +1567,14 @@ interface CheckBenefitEligibilityByFilterRequest {
|
|
|
1625
1567
|
beneficiary?: CommonIdentificationData;
|
|
1626
1568
|
/** Additional information. */
|
|
1627
1569
|
additionalData?: Record<string, any> | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
1572
|
+
*
|
|
1573
|
+
* 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.
|
|
1574
|
+
*
|
|
1575
|
+
* Can't be combined with `pool_filter`.
|
|
1576
|
+
*/
|
|
1577
|
+
poolSelector?: PoolSelector;
|
|
1628
1578
|
}
|
|
1629
1579
|
interface PoolFilter {
|
|
1630
1580
|
/**
|
|
@@ -1639,6 +1589,19 @@ interface PoolFilter {
|
|
|
1639
1589
|
*/
|
|
1640
1590
|
sort?: Sorting[];
|
|
1641
1591
|
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Predefined pool-selection attributes used to select the pools to check eligibility in.
|
|
1594
|
+
*
|
|
1595
|
+
* All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives.
|
|
1596
|
+
* An empty selector selects all pools in the namespace that match the provided `beneficiary`.
|
|
1597
|
+
*/
|
|
1598
|
+
interface PoolSelector {
|
|
1599
|
+
/**
|
|
1600
|
+
* Only pools in these statuses are checked. When empty, pools in all statuses are checked.
|
|
1601
|
+
* @maxSize 10
|
|
1602
|
+
*/
|
|
1603
|
+
poolStatuses?: PoolStatusWithLiterals[];
|
|
1604
|
+
}
|
|
1642
1605
|
interface CheckBenefitEligibilityByFilterResponse {
|
|
1643
1606
|
/**
|
|
1644
1607
|
* Results of the eligibility check for the benefits in the pools that matched the filter. A pool that contains multiple benefits for the requested item produces one result per benefit.
|
|
@@ -1851,6 +1814,10 @@ type CheckBenefitEligibilityByFilterApplicationErrors = {
|
|
|
1851
1814
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
1852
1815
|
description?: string;
|
|
1853
1816
|
data?: Record<string, any>;
|
|
1817
|
+
} | {
|
|
1818
|
+
code?: 'POOL_FILTER_AND_POOL_SELECTOR_PROVIDED';
|
|
1819
|
+
description?: string;
|
|
1820
|
+
data?: Record<string, any>;
|
|
1854
1821
|
};
|
|
1855
1822
|
/**
|
|
1856
1823
|
* Retrieves a pool.
|
|
@@ -2376,6 +2343,16 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2376
2343
|
* 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).
|
|
2377
2344
|
*
|
|
2378
2345
|
* 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.
|
|
2346
|
+
*
|
|
2347
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2348
|
+
* @deprecated Defines filtering and sorting criteria used to select pools when checking eligibility.
|
|
2349
|
+
*
|
|
2350
|
+
* 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).
|
|
2351
|
+
*
|
|
2352
|
+
* 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.
|
|
2353
|
+
*
|
|
2354
|
+
* Deprecated: use `pool_selector` instead. Can't be combined with `pool_selector`.
|
|
2355
|
+
* @targetRemovalDate 2026-08-01
|
|
2379
2356
|
*/
|
|
2380
2357
|
poolFilter?: PoolFilter;
|
|
2381
2358
|
/**
|
|
@@ -2403,6 +2380,14 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2403
2380
|
beneficiary?: CommonIdentificationData;
|
|
2404
2381
|
/** Additional information. */
|
|
2405
2382
|
additionalData?: Record<string, any> | null;
|
|
2383
|
+
/**
|
|
2384
|
+
* Predefined attributes used to select the pools to check eligibility in.
|
|
2385
|
+
*
|
|
2386
|
+
* 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.
|
|
2387
|
+
*
|
|
2388
|
+
* Can't be combined with `pool_filter`.
|
|
2389
|
+
*/
|
|
2390
|
+
poolSelector?: PoolSelector;
|
|
2406
2391
|
}
|
|
2407
2392
|
|
|
2408
|
-
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
|
|
2393
|
+
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 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 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 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 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 };
|
|
@@ -565,10 +565,6 @@ var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
|
565
565
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
566
566
|
return BenefitResultType2;
|
|
567
567
|
})(BenefitResultType || {});
|
|
568
|
-
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
569
|
-
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
570
|
-
return ListPoolsRequestType2;
|
|
571
|
-
})(ListPoolsRequestType || {});
|
|
572
568
|
var ProvisionPoolsForProgramResponseType = /* @__PURE__ */ ((ProvisionPoolsForProgramResponseType2) => {
|
|
573
569
|
ProvisionPoolsForProgramResponseType2["SYNC"] = "SYNC";
|
|
574
570
|
ProvisionPoolsForProgramResponseType2["ASYNC"] = "ASYNC";
|
|
@@ -902,7 +898,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
902
898
|
count: options?.count,
|
|
903
899
|
targetDate: options?.targetDate,
|
|
904
900
|
beneficiary: options?.beneficiary,
|
|
905
|
-
additionalData: options?.additionalData
|
|
901
|
+
additionalData: options?.additionalData,
|
|
902
|
+
poolSelector: options?.poolSelector
|
|
906
903
|
});
|
|
907
904
|
const reqOpts = checkBenefitEligibilityByFilter(payload);
|
|
908
905
|
sideEffects?.onSiteCall?.();
|
|
@@ -922,7 +919,8 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
922
919
|
count: "$[0].count",
|
|
923
920
|
targetDate: "$[0].targetDate",
|
|
924
921
|
beneficiary: "$[0].beneficiary",
|
|
925
|
-
additionalData: "$[0].additionalData"
|
|
922
|
+
additionalData: "$[0].additionalData",
|
|
923
|
+
poolSelector: "$[0].poolSelector"
|
|
926
924
|
},
|
|
927
925
|
singleArgumentUnchanged: false
|
|
928
926
|
},
|
|
@@ -935,7 +933,6 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
935
933
|
export {
|
|
936
934
|
BenefitResultType,
|
|
937
935
|
IdentityType,
|
|
938
|
-
ListPoolsRequestType,
|
|
939
936
|
PolicyExpressionType,
|
|
940
937
|
PoolOrigin,
|
|
941
938
|
PoolRenewalActionType,
|