@wix/auto_sdk_benefit-programs_pools 1.0.53 → 1.0.55
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 +4 -4
- package/build/cjs/index.js +8 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -114
- package/build/cjs/index.typings.js +8 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +23 -111
- package/build/cjs/meta.js +0 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +6 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -114
- package/build/es/index.typings.mjs +6 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +23 -111
- package/build/es/meta.mjs +0 -12
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -5
- package/build/internal/cjs/index.js +8 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +33 -115
- package/build/internal/cjs/index.typings.js +8 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +23 -111
- package/build/internal/cjs/meta.js +0 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -5
- package/build/internal/es/index.mjs +6 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +33 -115
- package/build/internal/es/index.typings.mjs +6 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +23 -111
- package/build/internal/es/meta.mjs +0 -12
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
1
2
|
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
interface Pool {
|
|
@@ -962,6 +963,11 @@ interface BenefitInfo {
|
|
|
962
963
|
* @maxLength 256
|
|
963
964
|
*/
|
|
964
965
|
description?: string | null;
|
|
966
|
+
/**
|
|
967
|
+
* Benefit key.
|
|
968
|
+
* @maxLength 64
|
|
969
|
+
*/
|
|
970
|
+
benefitKey?: string;
|
|
965
971
|
}
|
|
966
972
|
interface PolicyExpressionEvaluatedToFalse {
|
|
967
973
|
/**
|
|
@@ -1223,79 +1229,29 @@ interface CheckBenefitEligibilityResponse {
|
|
|
1223
1229
|
/** Result of the eligibility check. */
|
|
1224
1230
|
result?: EligibilityCheckResult;
|
|
1225
1231
|
}
|
|
1226
|
-
interface EligibilityCheckResult
|
|
1227
|
-
/**
|
|
1228
|
-
* Returned when item is eligible to be redeemed.
|
|
1229
|
-
* @deprecated Returned when item is eligible to be redeemed.
|
|
1230
|
-
* @targetRemovalDate 2026-05-31
|
|
1231
|
-
*/
|
|
1232
|
-
eligibleOptions?: Eligible;
|
|
1233
|
-
/**
|
|
1234
|
-
* Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1235
|
-
* @deprecated Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1236
|
-
* @targetRemovalDate 2026-05-31
|
|
1237
|
-
*/
|
|
1238
|
-
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1239
|
-
/**
|
|
1240
|
-
* Returned when the pool isn't active.
|
|
1241
|
-
* @deprecated Returned when the pool isn't active.
|
|
1242
|
-
* @targetRemovalDate 2026-05-31
|
|
1243
|
-
*/
|
|
1244
|
-
poolNotActiveOptions?: PoolNotActive;
|
|
1245
|
-
/**
|
|
1246
|
-
* Returned when invalid benefit details are provided.
|
|
1247
|
-
* @deprecated Returned when invalid benefit details are provided.
|
|
1248
|
-
* @targetRemovalDate 2026-05-31
|
|
1249
|
-
*/
|
|
1250
|
-
benefitNotFoundOptions?: BenefitNotFound;
|
|
1251
|
-
/**
|
|
1252
|
-
* Returned when invalid pool details are provided.
|
|
1253
|
-
* @deprecated Returned when invalid pool details are provided.
|
|
1254
|
-
* @targetRemovalDate 2026-05-31
|
|
1255
|
-
*/
|
|
1256
|
-
poolNotFoundOptions?: PoolNotFound;
|
|
1232
|
+
interface EligibilityCheckResult {
|
|
1257
1233
|
/**
|
|
1258
1234
|
* Eligibility status.
|
|
1259
|
-
* @
|
|
1260
|
-
* @targetRemovalDate 2026-05-31
|
|
1235
|
+
* @maxSize 10
|
|
1261
1236
|
*/
|
|
1262
|
-
type?: EligibilityCheckResultTypeWithLiterals;
|
|
1263
|
-
/** @maxSize 10 */
|
|
1264
1237
|
benefitResults?: BenefitResult[];
|
|
1265
1238
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1280
|
-
/**
|
|
1281
|
-
* Returned when the pool isn't active.
|
|
1282
|
-
* @deprecated Returned when the pool isn't active.
|
|
1283
|
-
* @targetRemovalDate 2026-05-31
|
|
1284
|
-
*/
|
|
1285
|
-
poolNotActiveOptions?: PoolNotActive;
|
|
1286
|
-
/**
|
|
1287
|
-
* Returned when invalid benefit details are provided.
|
|
1288
|
-
* @deprecated Returned when invalid benefit details are provided.
|
|
1289
|
-
* @targetRemovalDate 2026-05-31
|
|
1290
|
-
*/
|
|
1291
|
-
benefitNotFoundOptions?: BenefitNotFound;
|
|
1292
|
-
/**
|
|
1293
|
-
* Returned when invalid pool details are provided.
|
|
1294
|
-
* @deprecated Returned when invalid pool details are provided.
|
|
1295
|
-
* @targetRemovalDate 2026-05-31
|
|
1296
|
-
*/
|
|
1297
|
-
poolNotFoundOptions?: PoolNotFound;
|
|
1239
|
+
declare enum BenefitResultType {
|
|
1240
|
+
/** Unknown eligibility. */
|
|
1241
|
+
UNKNOWN = "UNKNOWN",
|
|
1242
|
+
/** Item is eligible to be redeemed. */
|
|
1243
|
+
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1244
|
+
/** Balance is lower than the cost of redeeming the items. */
|
|
1245
|
+
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1246
|
+
/** Pool isn't active. */
|
|
1247
|
+
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1248
|
+
/** Invalid benefit details provided. */
|
|
1249
|
+
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1250
|
+
/** Invalid pool details provided. */
|
|
1251
|
+
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1298
1252
|
}
|
|
1253
|
+
/** @enumType */
|
|
1254
|
+
type BenefitResultTypeWithLiterals = BenefitResultType | 'UNKNOWN' | 'ELIGIBLE_BENEFIT' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1299
1255
|
interface EligibleBenefit {
|
|
1300
1256
|
/**
|
|
1301
1257
|
* Pool ID.
|
|
@@ -1336,45 +1292,6 @@ interface EligibleBenefit {
|
|
|
1336
1292
|
*/
|
|
1337
1293
|
programInfo?: PoolProgramInfo;
|
|
1338
1294
|
}
|
|
1339
|
-
declare enum BenefitResultType {
|
|
1340
|
-
/** Unknown eligibility. */
|
|
1341
|
-
UNKNOWN = "UNKNOWN",
|
|
1342
|
-
/** Item is eligible to be redeemed. */
|
|
1343
|
-
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1344
|
-
/** Balance is lower than the cost of redeeming the items. */
|
|
1345
|
-
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1346
|
-
/** Pool isn't active. */
|
|
1347
|
-
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1348
|
-
/** Invalid benefit details provided. */
|
|
1349
|
-
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1350
|
-
/** Invalid pool details provided. */
|
|
1351
|
-
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1352
|
-
}
|
|
1353
|
-
/** @enumType */
|
|
1354
|
-
type BenefitResultTypeWithLiterals = BenefitResultType | 'UNKNOWN' | 'ELIGIBLE_BENEFIT' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1355
|
-
declare enum EligibilityCheckResultType {
|
|
1356
|
-
/** Unknown eligibility. */
|
|
1357
|
-
UNKNOWN = "UNKNOWN",
|
|
1358
|
-
/** Item is eligible to be redeemed. */
|
|
1359
|
-
ELIGIBLE = "ELIGIBLE",
|
|
1360
|
-
/** Balance is lower than the cost of redeeming the items. */
|
|
1361
|
-
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1362
|
-
/** Pool isn't active. */
|
|
1363
|
-
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1364
|
-
/** Invalid benefit details provided. */
|
|
1365
|
-
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1366
|
-
/** Invalid pool details provided. */
|
|
1367
|
-
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1368
|
-
}
|
|
1369
|
-
/** @enumType */
|
|
1370
|
-
type EligibilityCheckResultTypeWithLiterals = EligibilityCheckResultType | 'UNKNOWN' | 'ELIGIBLE' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1371
|
-
interface Eligible {
|
|
1372
|
-
/**
|
|
1373
|
-
* Benefits that are eligible to be redeemed.
|
|
1374
|
-
* @maxSize 100
|
|
1375
|
-
*/
|
|
1376
|
-
eligibleBenefits?: EligibleBenefit[];
|
|
1377
|
-
}
|
|
1378
1295
|
interface BenefitResult extends BenefitResultResultOneOf {
|
|
1379
1296
|
/** Returned when item is eligible to be redeemed. */
|
|
1380
1297
|
eligibleBenefitOptions?: EligibleBenefit;
|
|
@@ -1594,13 +1511,9 @@ interface BulkUpdatePoolsResponse {
|
|
|
1594
1511
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1595
1512
|
}
|
|
1596
1513
|
interface BulkPoolResult {
|
|
1597
|
-
/** Pool metadata. */
|
|
1598
|
-
poolMetadata?: ItemMetadata;
|
|
1599
1514
|
/** Item metadata. */
|
|
1600
1515
|
itemMetadata?: ItemMetadata;
|
|
1601
1516
|
/** Pool data. */
|
|
1602
|
-
pool?: Pool;
|
|
1603
|
-
/** Pool data. */
|
|
1604
1517
|
item?: Pool;
|
|
1605
1518
|
}
|
|
1606
1519
|
interface ItemMetadata {
|
|
@@ -2305,6 +2218,11 @@ type PoolQuery = {
|
|
|
2305
2218
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2306
2219
|
}[];
|
|
2307
2220
|
};
|
|
2221
|
+
declare const utils: {
|
|
2222
|
+
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pool, PoolQuerySpec, PoolQuery>;
|
|
2223
|
+
Filter: _wix_sdk_types.FilterFactory<Pool, PoolQuerySpec>;
|
|
2224
|
+
Sort: _wix_sdk_types.SortFactory<PoolQuerySpec>;
|
|
2225
|
+
};
|
|
2308
2226
|
/**
|
|
2309
2227
|
* Redeems a specified benefit.
|
|
2310
2228
|
*
|
|
@@ -2376,7 +2294,7 @@ interface RedeemBenefitOptions {
|
|
|
2376
2294
|
* @applicableIdentity APP
|
|
2377
2295
|
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility
|
|
2378
2296
|
*/
|
|
2379
|
-
declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.
|
|
2297
|
+
declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.benefitResults` | `result.benefitResults.${number}.eligibleBenefitOptions.poolId` | `result.benefitResults.${number}.eligibleBenefitOptions.benefitKey` | `result.benefitResults.${number}.eligibleBenefitOptions.itemReference.externalId` | `result.benefitResults.${number}.eligibleBenefitOptions.itemReference.category` | `result.benefitResults.${number}.eligibleBenefitOptions.itemReference.providerAppId` | `result.benefitResults.${number}.notEnoughBalanceOptions.poolId` | `result.benefitResults.${number}.notEnoughBalanceOptions.availableBalance` | `result.benefitResults.${number}.notEnoughBalanceOptions.requestedBalance` | `result.benefitResults.${number}.policyExpressionEvaluatedToFalseOptions.poolId` | `result.benefitResults.${number}.poolNotActiveOptions.poolId` | `result.benefitResults.${number}.poolNotActiveOptions.poolStatus` | `result.benefitResults.${number}.benefitNotFoundOptions.poolId` | `result.benefitResults.${number}.poolNotFoundOptions.poolId` | `result.benefitResults.${number}.type`, 7>>;
|
|
2380
2298
|
interface CheckBenefitEligibilityOptions {
|
|
2381
2299
|
/**
|
|
2382
2300
|
* Key of the benefit to check.
|
|
@@ -2425,7 +2343,7 @@ interface CheckBenefitEligibilityOptions {
|
|
|
2425
2343
|
* @applicableIdentity APP
|
|
2426
2344
|
* @fqn wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility
|
|
2427
2345
|
*/
|
|
2428
|
-
declare function bulkCheckBenefitEligibility(options?: NonNullablePaths<BulkCheckBenefitEligibilityOptions, `benefitSelectors.${number}.itemReference` | `benefitSelectors.${number}.itemReference.externalId` | `benefitSelectors.${number}.itemReference.providerAppId` | `benefitSelectors.${number}.poolId` | `namespace`, 5>): Promise<NonNullablePaths<BulkCheckBenefitEligibilityResponse, `results` | `results.${number}.benefitSelector.poolId` | `results.${number}.benefitSelector.itemReference.externalId` | `results.${number}.benefitSelector.itemReference.category` | `results.${number}.benefitSelector.itemReference.providerAppId` | `results.${number}.benefitSelector.count
|
|
2346
|
+
declare function bulkCheckBenefitEligibility(options?: NonNullablePaths<BulkCheckBenefitEligibilityOptions, `benefitSelectors.${number}.itemReference` | `benefitSelectors.${number}.itemReference.externalId` | `benefitSelectors.${number}.itemReference.providerAppId` | `benefitSelectors.${number}.poolId` | `namespace`, 5>): Promise<NonNullablePaths<BulkCheckBenefitEligibilityResponse, `results` | `results.${number}.benefitSelector.poolId` | `results.${number}.benefitSelector.itemReference.externalId` | `results.${number}.benefitSelector.itemReference.category` | `results.${number}.benefitSelector.itemReference.providerAppId` | `results.${number}.benefitSelector.count`, 6>>;
|
|
2429
2347
|
interface BulkCheckBenefitEligibilityOptions {
|
|
2430
2348
|
/**
|
|
2431
2349
|
* List of benefits to check.
|
|
@@ -2493,7 +2411,7 @@ interface GetEligibleBenefitsOptions {
|
|
|
2493
2411
|
* @applicableIdentity APP
|
|
2494
2412
|
* @fqn wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools
|
|
2495
2413
|
*/
|
|
2496
|
-
declare function bulkUpdatePools(options?: NonNullablePaths<BulkUpdatePoolsOptions, `pools.${number}.pool` | `pools.${number}.pool._id` | `pools.${number}.pool.revision`, 5>): Promise<NonNullablePaths<BulkUpdatePoolsResponse, `results` | `results.${number}.
|
|
2414
|
+
declare function bulkUpdatePools(options?: NonNullablePaths<BulkUpdatePoolsOptions, `pools.${number}.pool` | `pools.${number}.pool._id` | `pools.${number}.pool.revision`, 5>): Promise<NonNullablePaths<BulkUpdatePoolsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.status` | `results.${number}.item.beneficiary.anonymousVisitorId` | `results.${number}.item.beneficiary.memberId` | `results.${number}.item.beneficiary.wixUserId` | `results.${number}.item.displayName` | `results.${number}.item.programDefinition._id` | `results.${number}.item.program._id` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
2497
2415
|
interface BulkUpdatePoolsOptions {
|
|
2498
2416
|
/**
|
|
2499
2417
|
* Pools to update.
|
|
@@ -2525,7 +2443,7 @@ interface BulkUpdatePoolsOptions {
|
|
|
2525
2443
|
* @applicableIdentity APP
|
|
2526
2444
|
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckEligibilityByFilter
|
|
2527
2445
|
*/
|
|
2528
|
-
declare function checkEligibilityByFilter(options?: NonNullablePaths<CheckEligibilityByFilterOptions, `count` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckEligibilityByFilterResponse, `result
|
|
2446
|
+
declare function checkEligibilityByFilter(options?: NonNullablePaths<CheckEligibilityByFilterOptions, `count` | `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckEligibilityByFilterResponse, `result`, 2>>;
|
|
2529
2447
|
interface CheckEligibilityByFilterOptions {
|
|
2530
2448
|
/** Defines filtering and sorting criteria used to select pools when checking eligibility. */
|
|
2531
2449
|
poolFilter?: PoolFilter;
|
|
@@ -2556,4 +2474,4 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2556
2474
|
additionalData?: Record<string, any> | null;
|
|
2557
2475
|
}
|
|
2558
2476
|
|
|
2559
|
-
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 CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, 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
|
|
2477
|
+
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 CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, 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 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, 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, checkEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool, utils };
|
|
@@ -456,8 +456,6 @@ function bulkUpdatePools(payload) {
|
|
|
456
456
|
{
|
|
457
457
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
458
458
|
paths: [
|
|
459
|
-
{ path: "results.pool.createdDate" },
|
|
460
|
-
{ path: "results.pool.updatedDate" },
|
|
461
459
|
{ path: "results.item.createdDate" },
|
|
462
460
|
{ path: "results.item.updatedDate" }
|
|
463
461
|
]
|
|
@@ -498,6 +496,7 @@ function checkEligibilityByFilter(payload) {
|
|
|
498
496
|
|
|
499
497
|
// src/benefit-programs-v1-pool-pools.universal.ts
|
|
500
498
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
499
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
501
500
|
var PoolStatus = /* @__PURE__ */ ((PoolStatus2) => {
|
|
502
501
|
PoolStatus2["UNDEFINED"] = "UNDEFINED";
|
|
503
502
|
PoolStatus2["ACTIVE"] = "ACTIVE";
|
|
@@ -574,15 +573,6 @@ var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
|
574
573
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
575
574
|
return BenefitResultType2;
|
|
576
575
|
})(BenefitResultType || {});
|
|
577
|
-
var EligibilityCheckResultType = /* @__PURE__ */ ((EligibilityCheckResultType2) => {
|
|
578
|
-
EligibilityCheckResultType2["UNKNOWN"] = "UNKNOWN";
|
|
579
|
-
EligibilityCheckResultType2["ELIGIBLE"] = "ELIGIBLE";
|
|
580
|
-
EligibilityCheckResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
581
|
-
EligibilityCheckResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
582
|
-
EligibilityCheckResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
583
|
-
EligibilityCheckResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
584
|
-
return EligibilityCheckResultType2;
|
|
585
|
-
})(EligibilityCheckResultType || {});
|
|
586
576
|
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
587
577
|
ListPoolsRequestType2["UNKNOWN_FILTER"] = "UNKNOWN_FILTER";
|
|
588
578
|
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
@@ -728,6 +718,9 @@ async function typedQueryPools(query, options) {
|
|
|
728
718
|
throw transformedError;
|
|
729
719
|
}
|
|
730
720
|
}
|
|
721
|
+
var utils = {
|
|
722
|
+
...createQueryUtils()
|
|
723
|
+
};
|
|
731
724
|
async function redeemBenefit2(poolId, options) {
|
|
732
725
|
const { httpClient, sideEffects } = arguments[2];
|
|
733
726
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -950,7 +943,6 @@ async function checkEligibilityByFilter2(options) {
|
|
|
950
943
|
}
|
|
951
944
|
export {
|
|
952
945
|
BenefitResultType,
|
|
953
|
-
EligibilityCheckResultType,
|
|
954
946
|
IdentityType,
|
|
955
947
|
ListPoolsRequestType,
|
|
956
948
|
PolicyExpressionType,
|
|
@@ -973,6 +965,7 @@ export {
|
|
|
973
965
|
queryPools2 as queryPools,
|
|
974
966
|
redeemBenefit2 as redeemBenefit,
|
|
975
967
|
typedQueryPools,
|
|
976
|
-
updatePool2 as updatePool
|
|
968
|
+
updatePool2 as updatePool,
|
|
969
|
+
utils
|
|
977
970
|
};
|
|
978
971
|
//# sourceMappingURL=index.typings.mjs.map
|