@wix/auto_sdk_benefit-programs_pools 1.0.51 → 1.0.53
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 +2 -2
- package/build/cjs/index.js +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +108 -13
- package/build/cjs/index.typings.js +11 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +107 -12
- package/build/cjs/meta.js +11 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +10 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +108 -13
- package/build/es/index.typings.mjs +10 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +107 -12
- package/build/es/meta.mjs +10 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +11 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +108 -13
- package/build/internal/cjs/index.typings.js +11 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +107 -12
- package/build/internal/cjs/meta.js +11 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +10 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +108 -13
- package/build/internal/es/index.typings.mjs +10 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +107 -12
- package/build/internal/es/meta.mjs +10 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1224,30 +1224,76 @@ interface CheckBenefitEligibilityResponse {
|
|
|
1224
1224
|
result?: EligibilityCheckResult;
|
|
1225
1225
|
}
|
|
1226
1226
|
interface EligibilityCheckResult extends EligibilityCheckResultResultOneOf {
|
|
1227
|
-
/**
|
|
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
|
+
*/
|
|
1228
1232
|
eligibleOptions?: Eligible;
|
|
1229
|
-
/**
|
|
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
|
+
*/
|
|
1230
1238
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1231
|
-
/**
|
|
1239
|
+
/**
|
|
1240
|
+
* Returned when the pool isn't active.
|
|
1241
|
+
* @deprecated Returned when the pool isn't active.
|
|
1242
|
+
* @targetRemovalDate 2026-05-31
|
|
1243
|
+
*/
|
|
1232
1244
|
poolNotActiveOptions?: PoolNotActive;
|
|
1233
|
-
/**
|
|
1245
|
+
/**
|
|
1246
|
+
* Returned when invalid benefit details are provided.
|
|
1247
|
+
* @deprecated Returned when invalid benefit details are provided.
|
|
1248
|
+
* @targetRemovalDate 2026-05-31
|
|
1249
|
+
*/
|
|
1234
1250
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1235
|
-
/**
|
|
1251
|
+
/**
|
|
1252
|
+
* Returned when invalid pool details are provided.
|
|
1253
|
+
* @deprecated Returned when invalid pool details are provided.
|
|
1254
|
+
* @targetRemovalDate 2026-05-31
|
|
1255
|
+
*/
|
|
1236
1256
|
poolNotFoundOptions?: PoolNotFound;
|
|
1237
|
-
/**
|
|
1257
|
+
/**
|
|
1258
|
+
* Eligibility status.
|
|
1259
|
+
* @deprecated Eligibility status.
|
|
1260
|
+
* @targetRemovalDate 2026-05-31
|
|
1261
|
+
*/
|
|
1238
1262
|
type?: EligibilityCheckResultTypeWithLiterals;
|
|
1263
|
+
/** @maxSize 10 */
|
|
1264
|
+
benefitResults?: BenefitResult[];
|
|
1239
1265
|
}
|
|
1240
1266
|
/** @oneof */
|
|
1241
1267
|
interface EligibilityCheckResultResultOneOf {
|
|
1242
|
-
/**
|
|
1268
|
+
/**
|
|
1269
|
+
* Returned when item is eligible to be redeemed.
|
|
1270
|
+
* @deprecated Returned when item is eligible to be redeemed.
|
|
1271
|
+
* @targetRemovalDate 2026-05-31
|
|
1272
|
+
*/
|
|
1243
1273
|
eligibleOptions?: Eligible;
|
|
1244
|
-
/**
|
|
1274
|
+
/**
|
|
1275
|
+
* Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1276
|
+
* @deprecated Returned when the pool's associated balance is lower than the cost of redeeming the items.
|
|
1277
|
+
* @targetRemovalDate 2026-05-31
|
|
1278
|
+
*/
|
|
1245
1279
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1246
|
-
/**
|
|
1280
|
+
/**
|
|
1281
|
+
* Returned when the pool isn't active.
|
|
1282
|
+
* @deprecated Returned when the pool isn't active.
|
|
1283
|
+
* @targetRemovalDate 2026-05-31
|
|
1284
|
+
*/
|
|
1247
1285
|
poolNotActiveOptions?: PoolNotActive;
|
|
1248
|
-
/**
|
|
1286
|
+
/**
|
|
1287
|
+
* Returned when invalid benefit details are provided.
|
|
1288
|
+
* @deprecated Returned when invalid benefit details are provided.
|
|
1289
|
+
* @targetRemovalDate 2026-05-31
|
|
1290
|
+
*/
|
|
1249
1291
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1250
|
-
/**
|
|
1292
|
+
/**
|
|
1293
|
+
* Returned when invalid pool details are provided.
|
|
1294
|
+
* @deprecated Returned when invalid pool details are provided.
|
|
1295
|
+
* @targetRemovalDate 2026-05-31
|
|
1296
|
+
*/
|
|
1251
1297
|
poolNotFoundOptions?: PoolNotFound;
|
|
1252
1298
|
}
|
|
1253
1299
|
interface EligibleBenefit {
|
|
@@ -1290,6 +1336,22 @@ interface EligibleBenefit {
|
|
|
1290
1336
|
*/
|
|
1291
1337
|
programInfo?: PoolProgramInfo;
|
|
1292
1338
|
}
|
|
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';
|
|
1293
1355
|
declare enum EligibilityCheckResultType {
|
|
1294
1356
|
/** Unknown eligibility. */
|
|
1295
1357
|
UNKNOWN = "UNKNOWN",
|
|
@@ -1313,6 +1375,37 @@ interface Eligible {
|
|
|
1313
1375
|
*/
|
|
1314
1376
|
eligibleBenefits?: EligibleBenefit[];
|
|
1315
1377
|
}
|
|
1378
|
+
interface BenefitResult extends BenefitResultResultOneOf {
|
|
1379
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1380
|
+
eligibleBenefitOptions?: EligibleBenefit;
|
|
1381
|
+
/** Returned when the pool's associated balance is lower than the cost of redeeming the items. */
|
|
1382
|
+
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1383
|
+
/** Returned when the policy is false. */
|
|
1384
|
+
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1385
|
+
/** Returned when the pool isn't active. */
|
|
1386
|
+
poolNotActiveOptions?: PoolNotActive;
|
|
1387
|
+
/** Returned when invalid benefit details are provided. */
|
|
1388
|
+
benefitNotFoundOptions?: BenefitNotFound;
|
|
1389
|
+
/** Returned when invalid pool details are provided. */
|
|
1390
|
+
poolNotFoundOptions?: PoolNotFound;
|
|
1391
|
+
/** Eligibility status. */
|
|
1392
|
+
type?: BenefitResultTypeWithLiterals;
|
|
1393
|
+
}
|
|
1394
|
+
/** @oneof */
|
|
1395
|
+
interface BenefitResultResultOneOf {
|
|
1396
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1397
|
+
eligibleBenefitOptions?: EligibleBenefit;
|
|
1398
|
+
/** Returned when the pool's associated balance is lower than the cost of redeeming the items. */
|
|
1399
|
+
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1400
|
+
/** Returned when the policy is false. */
|
|
1401
|
+
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1402
|
+
/** Returned when the pool isn't active. */
|
|
1403
|
+
poolNotActiveOptions?: PoolNotActive;
|
|
1404
|
+
/** Returned when invalid benefit details are provided. */
|
|
1405
|
+
benefitNotFoundOptions?: BenefitNotFound;
|
|
1406
|
+
/** Returned when invalid pool details are provided. */
|
|
1407
|
+
poolNotFoundOptions?: PoolNotFound;
|
|
1408
|
+
}
|
|
1316
1409
|
interface BulkCheckBenefitEligibilityRequest {
|
|
1317
1410
|
/**
|
|
1318
1411
|
* List of benefits to check.
|
|
@@ -1818,6 +1911,8 @@ interface MessageEnvelope {
|
|
|
1818
1911
|
identity?: IdentificationData;
|
|
1819
1912
|
/** Stringify payload. */
|
|
1820
1913
|
data?: string;
|
|
1914
|
+
/** Details related to the account */
|
|
1915
|
+
accountInfo?: AccountInfo;
|
|
1821
1916
|
}
|
|
1822
1917
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1823
1918
|
/**
|
|
@@ -2281,7 +2376,7 @@ interface RedeemBenefitOptions {
|
|
|
2281
2376
|
* @applicableIdentity APP
|
|
2282
2377
|
* @fqn wix.benefit_programs.v1.pool.PoolService.CheckBenefitEligibility
|
|
2283
2378
|
*/
|
|
2284
|
-
declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.eligibleOptions.eligibleBenefits` | `result.eligibleOptions.eligibleBenefits.${number}.poolId` | `result.eligibleOptions.eligibleBenefits.${number}.benefitKey` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.externalId` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.category` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.providerAppId` | `result.notEnoughBalanceOptions.poolId` | `result.notEnoughBalanceOptions.availableBalance` | `result.notEnoughBalanceOptions.requestedBalance` | `result.poolNotActiveOptions.poolId` | `result.poolNotActiveOptions.poolStatus` | `result.benefitNotFoundOptions.poolId` | `result.poolNotFoundOptions.poolId` | `result.type`, 7>>;
|
|
2379
|
+
declare function checkBenefitEligibility(poolId: string, options?: NonNullablePaths<CheckBenefitEligibilityOptions, `itemReference` | `itemReference.externalId` | `itemReference.providerAppId` | `namespace`, 3>): Promise<NonNullablePaths<CheckBenefitEligibilityResponse, `result.eligibleOptions.eligibleBenefits` | `result.eligibleOptions.eligibleBenefits.${number}.poolId` | `result.eligibleOptions.eligibleBenefits.${number}.benefitKey` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.externalId` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.category` | `result.eligibleOptions.eligibleBenefits.${number}.itemReference.providerAppId` | `result.notEnoughBalanceOptions.poolId` | `result.notEnoughBalanceOptions.availableBalance` | `result.notEnoughBalanceOptions.requestedBalance` | `result.poolNotActiveOptions.poolId` | `result.poolNotActiveOptions.poolStatus` | `result.benefitNotFoundOptions.poolId` | `result.poolNotFoundOptions.poolId` | `result.type` | `result.benefitResults` | `result.benefitResults.${number}.policyExpressionEvaluatedToFalseOptions.poolId` | `result.benefitResults.${number}.type`, 7>>;
|
|
2285
2380
|
interface CheckBenefitEligibilityOptions {
|
|
2286
2381
|
/**
|
|
2287
2382
|
* Key of the benefit to check.
|
|
@@ -2461,4 +2556,4 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2461
2556
|
additionalData?: Record<string, any> | null;
|
|
2462
2557
|
}
|
|
2463
2558
|
|
|
2464
|
-
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 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 EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, 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 };
|
|
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 EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, 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 };
|
|
@@ -565,6 +565,15 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
565
565
|
SortOrder2["DESC"] = "DESC";
|
|
566
566
|
return SortOrder2;
|
|
567
567
|
})(SortOrder || {});
|
|
568
|
+
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
569
|
+
BenefitResultType2["UNKNOWN"] = "UNKNOWN";
|
|
570
|
+
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
571
|
+
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
572
|
+
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
573
|
+
BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
574
|
+
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
575
|
+
return BenefitResultType2;
|
|
576
|
+
})(BenefitResultType || {});
|
|
568
577
|
var EligibilityCheckResultType = /* @__PURE__ */ ((EligibilityCheckResultType2) => {
|
|
569
578
|
EligibilityCheckResultType2["UNKNOWN"] = "UNKNOWN";
|
|
570
579
|
EligibilityCheckResultType2["ELIGIBLE"] = "ELIGIBLE";
|
|
@@ -940,6 +949,7 @@ async function checkEligibilityByFilter2(options) {
|
|
|
940
949
|
}
|
|
941
950
|
}
|
|
942
951
|
export {
|
|
952
|
+
BenefitResultType,
|
|
943
953
|
EligibilityCheckResultType,
|
|
944
954
|
IdentityType,
|
|
945
955
|
ListPoolsRequestType,
|