@wix/auto_sdk_benefit-programs_pools 1.0.54 → 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 +27 -114
- package/build/cjs/index.typings.js +8 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -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 +27 -114
- package/build/es/index.typings.mjs +6 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -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 +28 -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 +18 -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 +28 -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 +18 -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 {
|
|
@@ -1147,79 +1148,29 @@ interface CheckBenefitEligibilityResponse {
|
|
|
1147
1148
|
/** Result of the eligibility check. */
|
|
1148
1149
|
result?: EligibilityCheckResult;
|
|
1149
1150
|
}
|
|
1150
|
-
interface EligibilityCheckResult
|
|
1151
|
-
/**
|
|
1152
|
-
* Returned when item is eligible to be redeemed.
|
|
1153
|
-
* @deprecated Returned when item is eligible to be redeemed.
|
|
1154
|
-
* @targetRemovalDate 2026-05-31
|
|
1155
|
-
*/
|
|
1156
|
-
eligibleOptions?: Eligible;
|
|
1157
|
-
/**
|
|
1158
|
-
* Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1159
|
-
* @deprecated Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1160
|
-
* @targetRemovalDate 2026-05-31
|
|
1161
|
-
*/
|
|
1162
|
-
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1163
|
-
/**
|
|
1164
|
-
* Returned when the pool isn't active.
|
|
1165
|
-
* @deprecated Returned when the pool isn't active.
|
|
1166
|
-
* @targetRemovalDate 2026-05-31
|
|
1167
|
-
*/
|
|
1168
|
-
poolNotActiveOptions?: PoolNotActive;
|
|
1169
|
-
/**
|
|
1170
|
-
* Returned when invalid benefit details are provided.
|
|
1171
|
-
* @deprecated Returned when invalid benefit details are provided.
|
|
1172
|
-
* @targetRemovalDate 2026-05-31
|
|
1173
|
-
*/
|
|
1174
|
-
benefitNotFoundOptions?: BenefitNotFound;
|
|
1175
|
-
/**
|
|
1176
|
-
* Returned when invalid pool details are provided.
|
|
1177
|
-
* @deprecated Returned when invalid pool details are provided.
|
|
1178
|
-
* @targetRemovalDate 2026-05-31
|
|
1179
|
-
*/
|
|
1180
|
-
poolNotFoundOptions?: PoolNotFound;
|
|
1151
|
+
interface EligibilityCheckResult {
|
|
1181
1152
|
/**
|
|
1182
1153
|
* Eligibility status.
|
|
1183
|
-
* @
|
|
1184
|
-
* @targetRemovalDate 2026-05-31
|
|
1154
|
+
* @maxSize 10
|
|
1185
1155
|
*/
|
|
1186
|
-
type?: EligibilityCheckResultTypeWithLiterals;
|
|
1187
|
-
/** @maxSize 10 */
|
|
1188
1156
|
benefitResults?: BenefitResult[];
|
|
1189
1157
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1204
|
-
/**
|
|
1205
|
-
* Returned when the pool isn't active.
|
|
1206
|
-
* @deprecated Returned when the pool isn't active.
|
|
1207
|
-
* @targetRemovalDate 2026-05-31
|
|
1208
|
-
*/
|
|
1209
|
-
poolNotActiveOptions?: PoolNotActive;
|
|
1210
|
-
/**
|
|
1211
|
-
* Returned when invalid benefit details are provided.
|
|
1212
|
-
* @deprecated Returned when invalid benefit details are provided.
|
|
1213
|
-
* @targetRemovalDate 2026-05-31
|
|
1214
|
-
*/
|
|
1215
|
-
benefitNotFoundOptions?: BenefitNotFound;
|
|
1216
|
-
/**
|
|
1217
|
-
* Returned when invalid pool details are provided.
|
|
1218
|
-
* @deprecated Returned when invalid pool details are provided.
|
|
1219
|
-
* @targetRemovalDate 2026-05-31
|
|
1220
|
-
*/
|
|
1221
|
-
poolNotFoundOptions?: PoolNotFound;
|
|
1158
|
+
declare enum BenefitResultType {
|
|
1159
|
+
/** Unknown eligibility. */
|
|
1160
|
+
UNKNOWN = "UNKNOWN",
|
|
1161
|
+
/** Item is eligible to be redeemed. */
|
|
1162
|
+
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1163
|
+
/** Balance is lower than the cost of redeeming the items. */
|
|
1164
|
+
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1165
|
+
/** Pool isn't active. */
|
|
1166
|
+
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1167
|
+
/** Invalid benefit details provided. */
|
|
1168
|
+
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1169
|
+
/** Invalid pool details provided. */
|
|
1170
|
+
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1222
1171
|
}
|
|
1172
|
+
/** @enumType */
|
|
1173
|
+
type BenefitResultTypeWithLiterals = BenefitResultType | 'UNKNOWN' | 'ELIGIBLE_BENEFIT' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1223
1174
|
interface EligibleBenefit {
|
|
1224
1175
|
/**
|
|
1225
1176
|
* Pool ID.
|
|
@@ -1240,45 +1191,6 @@ interface EligibleBenefit {
|
|
|
1240
1191
|
*/
|
|
1241
1192
|
price?: string | null;
|
|
1242
1193
|
}
|
|
1243
|
-
declare enum BenefitResultType {
|
|
1244
|
-
/** Unknown eligibility. */
|
|
1245
|
-
UNKNOWN = "UNKNOWN",
|
|
1246
|
-
/** Item is eligible to be redeemed. */
|
|
1247
|
-
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1248
|
-
/** Balance is lower than the cost of redeeming the items. */
|
|
1249
|
-
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1250
|
-
/** Pool isn't active. */
|
|
1251
|
-
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1252
|
-
/** Invalid benefit details provided. */
|
|
1253
|
-
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1254
|
-
/** Invalid pool details provided. */
|
|
1255
|
-
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1256
|
-
}
|
|
1257
|
-
/** @enumType */
|
|
1258
|
-
type BenefitResultTypeWithLiterals = BenefitResultType | 'UNKNOWN' | 'ELIGIBLE_BENEFIT' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1259
|
-
declare enum EligibilityCheckResultType {
|
|
1260
|
-
/** Unknown eligibility. */
|
|
1261
|
-
UNKNOWN = "UNKNOWN",
|
|
1262
|
-
/** Item is eligible to be redeemed. */
|
|
1263
|
-
ELIGIBLE = "ELIGIBLE",
|
|
1264
|
-
/** Balance is lower than the cost of redeeming the items. */
|
|
1265
|
-
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1266
|
-
/** Pool isn't active. */
|
|
1267
|
-
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1268
|
-
/** Invalid benefit details provided. */
|
|
1269
|
-
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1270
|
-
/** Invalid pool details provided. */
|
|
1271
|
-
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1272
|
-
}
|
|
1273
|
-
/** @enumType */
|
|
1274
|
-
type EligibilityCheckResultTypeWithLiterals = EligibilityCheckResultType | 'UNKNOWN' | 'ELIGIBLE' | 'NOT_ENOUGH_BALANCE' | 'POOL_NOT_ACTIVE' | 'BENEFIT_NOT_FOUND' | 'POOL_NOT_FOUND';
|
|
1275
|
-
interface Eligible {
|
|
1276
|
-
/**
|
|
1277
|
-
* Benefits that are eligible to be redeemed.
|
|
1278
|
-
* @maxSize 100
|
|
1279
|
-
*/
|
|
1280
|
-
eligibleBenefits?: EligibleBenefit[];
|
|
1281
|
-
}
|
|
1282
1194
|
interface BenefitResult extends BenefitResultResultOneOf {
|
|
1283
1195
|
/** Returned when item is eligible to be redeemed. */
|
|
1284
1196
|
eligibleBenefitOptions?: EligibleBenefit;
|
|
@@ -1498,13 +1410,9 @@ interface BulkUpdatePoolsResponse {
|
|
|
1498
1410
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1499
1411
|
}
|
|
1500
1412
|
interface BulkPoolResult {
|
|
1501
|
-
/** Pool metadata. */
|
|
1502
|
-
poolMetadata?: ItemMetadata;
|
|
1503
1413
|
/** Item metadata. */
|
|
1504
1414
|
itemMetadata?: ItemMetadata;
|
|
1505
1415
|
/** Pool data. */
|
|
1506
|
-
pool?: Pool;
|
|
1507
|
-
/** Pool data. */
|
|
1508
1416
|
item?: Pool;
|
|
1509
1417
|
}
|
|
1510
1418
|
interface ItemMetadata {
|
|
@@ -2209,6 +2117,11 @@ type PoolQuery = {
|
|
|
2209
2117
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2210
2118
|
}[];
|
|
2211
2119
|
};
|
|
2120
|
+
declare const utils: {
|
|
2121
|
+
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pool, PoolQuerySpec, PoolQuery>;
|
|
2122
|
+
Filter: _wix_sdk_types.FilterFactory<Pool, PoolQuerySpec>;
|
|
2123
|
+
Sort: _wix_sdk_types.SortFactory<PoolQuerySpec>;
|
|
2124
|
+
};
|
|
2212
2125
|
/**
|
|
2213
2126
|
* Redeems a specified benefit.
|
|
2214
2127
|
*
|
|
@@ -2280,7 +2193,7 @@ interface RedeemBenefitOptions {
|
|
|
2280
2193
|
* @applicableIdentity APP
|
|
2281
2194
|
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility
|
|
2282
2195
|
*/
|
|
2283
|
-
declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.
|
|
2196
|
+
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>>;
|
|
2284
2197
|
interface CheckBenefitEligibilityOptions {
|
|
2285
2198
|
/**
|
|
2286
2199
|
* Key of the benefit to check.
|
|
@@ -2329,7 +2242,7 @@ interface CheckBenefitEligibilityOptions {
|
|
|
2329
2242
|
* @applicableIdentity APP
|
|
2330
2243
|
* @fqn wix.benefit_programs.v1.pool.PoolService.BulkCheckBenefitEligibility
|
|
2331
2244
|
*/
|
|
2332
|
-
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
|
|
2245
|
+
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>>;
|
|
2333
2246
|
interface BulkCheckBenefitEligibilityOptions {
|
|
2334
2247
|
/**
|
|
2335
2248
|
* List of benefits to check.
|
|
@@ -2397,7 +2310,7 @@ interface GetEligibleBenefitsOptions {
|
|
|
2397
2310
|
* @applicableIdentity APP
|
|
2398
2311
|
* @fqn wix.benefit_programs.v1.pool.PoolService.BulkUpdatePools
|
|
2399
2312
|
*/
|
|
2400
|
-
declare function bulkUpdatePools(options?: NonNullablePaths<BulkUpdatePoolsOptions, `pools.${number}.pool` | `pools.${number}.pool._id` | `pools.${number}.pool.revision`, 5>): Promise<NonNullablePaths<BulkUpdatePoolsResponse, `results` | `results.${number}.
|
|
2313
|
+
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>>;
|
|
2401
2314
|
interface BulkUpdatePoolsOptions {
|
|
2402
2315
|
/**
|
|
2403
2316
|
* Pools to update.
|
|
@@ -2442,4 +2355,4 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2442
2355
|
additionalData?: Record<string, any> | null;
|
|
2443
2356
|
}
|
|
2444
2357
|
|
|
2445
|
-
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
|
|
2358
|
+
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, 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
|