@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 };
|
|
@@ -21,7 +21,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
BenefitResultType: () => BenefitResultType,
|
|
24
|
-
EligibilityCheckResultType: () => EligibilityCheckResultType,
|
|
25
24
|
IdentityType: () => IdentityType,
|
|
26
25
|
ListPoolsRequestType: () => ListPoolsRequestType,
|
|
27
26
|
PolicyExpressionType: () => PolicyExpressionType,
|
|
@@ -44,7 +43,8 @@ __export(index_typings_exports, {
|
|
|
44
43
|
queryPools: () => queryPools2,
|
|
45
44
|
redeemBenefit: () => redeemBenefit2,
|
|
46
45
|
typedQueryPools: () => typedQueryPools,
|
|
47
|
-
updatePool: () => updatePool2
|
|
46
|
+
updatePool: () => updatePool2,
|
|
47
|
+
utils: () => utils
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(index_typings_exports);
|
|
50
50
|
|
|
@@ -503,8 +503,6 @@ function bulkUpdatePools(payload) {
|
|
|
503
503
|
{
|
|
504
504
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
505
505
|
paths: [
|
|
506
|
-
{ path: "results.pool.createdDate" },
|
|
507
|
-
{ path: "results.pool.updatedDate" },
|
|
508
506
|
{ path: "results.item.createdDate" },
|
|
509
507
|
{ path: "results.item.updatedDate" }
|
|
510
508
|
]
|
|
@@ -545,6 +543,7 @@ function checkEligibilityByFilter(payload) {
|
|
|
545
543
|
|
|
546
544
|
// src/benefit-programs-v1-pool-pools.universal.ts
|
|
547
545
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
546
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
548
547
|
var PoolStatus = /* @__PURE__ */ ((PoolStatus2) => {
|
|
549
548
|
PoolStatus2["UNDEFINED"] = "UNDEFINED";
|
|
550
549
|
PoolStatus2["ACTIVE"] = "ACTIVE";
|
|
@@ -621,15 +620,6 @@ var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
|
621
620
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
622
621
|
return BenefitResultType2;
|
|
623
622
|
})(BenefitResultType || {});
|
|
624
|
-
var EligibilityCheckResultType = /* @__PURE__ */ ((EligibilityCheckResultType2) => {
|
|
625
|
-
EligibilityCheckResultType2["UNKNOWN"] = "UNKNOWN";
|
|
626
|
-
EligibilityCheckResultType2["ELIGIBLE"] = "ELIGIBLE";
|
|
627
|
-
EligibilityCheckResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
628
|
-
EligibilityCheckResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
629
|
-
EligibilityCheckResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
630
|
-
EligibilityCheckResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
631
|
-
return EligibilityCheckResultType2;
|
|
632
|
-
})(EligibilityCheckResultType || {});
|
|
633
623
|
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
634
624
|
ListPoolsRequestType2["UNKNOWN_FILTER"] = "UNKNOWN_FILTER";
|
|
635
625
|
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
@@ -775,6 +765,9 @@ async function typedQueryPools(query, options) {
|
|
|
775
765
|
throw transformedError;
|
|
776
766
|
}
|
|
777
767
|
}
|
|
768
|
+
var utils = {
|
|
769
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
770
|
+
};
|
|
778
771
|
async function redeemBenefit2(poolId, options) {
|
|
779
772
|
const { httpClient, sideEffects } = arguments[2];
|
|
780
773
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -998,7 +991,6 @@ async function checkEligibilityByFilter2(options) {
|
|
|
998
991
|
// Annotate the CommonJS export names for ESM import in node:
|
|
999
992
|
0 && (module.exports = {
|
|
1000
993
|
BenefitResultType,
|
|
1001
|
-
EligibilityCheckResultType,
|
|
1002
994
|
IdentityType,
|
|
1003
995
|
ListPoolsRequestType,
|
|
1004
996
|
PolicyExpressionType,
|
|
@@ -1021,6 +1013,7 @@ async function checkEligibilityByFilter2(options) {
|
|
|
1021
1013
|
queryPools,
|
|
1022
1014
|
redeemBenefit,
|
|
1023
1015
|
typedQueryPools,
|
|
1024
|
-
updatePool
|
|
1016
|
+
updatePool,
|
|
1017
|
+
utils
|
|
1025
1018
|
});
|
|
1026
1019
|
//# sourceMappingURL=index.typings.js.map
|