@wix/auto_sdk_benefit-programs_pools 1.0.22 → 1.0.24
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/{internal/cjs/src/benefit-programs-v1-pool-pools.universal.d.ts → benefit-programs-v1-pool-pools.universal-cRyidFWD.d.mts} +169 -335
- package/build/{cjs/src/benefit-programs-v1-pool-pools.universal.d.ts → benefit-programs-v1-pool-pools.universal-cRyidFWD.d.ts} +169 -335
- package/build/index.d.mts +105 -0
- package/build/index.d.ts +105 -0
- package/build/index.js +952 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +908 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/benefit-programs-v1-pool-pools.universal.d.ts → benefit-programs-v1-pool-pools.universal-cRyidFWD.d.mts} +169 -335
- package/build/{es/src/benefit-programs-v1-pool-pools.universal.d.ts → internal/benefit-programs-v1-pool-pools.universal-cRyidFWD.d.ts} +169 -335
- package/build/internal/index.d.mts +105 -0
- package/build/internal/index.d.ts +105 -0
- package/build/internal/index.js +952 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +908 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +782 -0
- package/build/internal/meta.d.ts +782 -0
- package/build/internal/meta.js +627 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +593 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +782 -0
- package/build/meta.d.ts +782 -0
- package/build/meta.js +627 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +593 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.context.d.ts +0 -12
- package/build/cjs/src/benefit-programs-v1-pool-pools.context.js +0 -28
- package/build/cjs/src/benefit-programs-v1-pool-pools.context.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.d.ts +0 -56
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.js +0 -494
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.meta.d.ts +0 -24
- package/build/cjs/src/benefit-programs-v1-pool-pools.meta.js +0 -180
- package/build/cjs/src/benefit-programs-v1-pool-pools.meta.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +0 -96
- package/build/cjs/src/benefit-programs-v1-pool-pools.public.js +0 -68
- package/build/cjs/src/benefit-programs-v1-pool-pools.public.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +0 -1597
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.js +0 -140
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.js.map +0 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js +0 -589
- package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/benefit-programs-v1-pool-pools.context.d.ts +0 -12
- package/build/es/src/benefit-programs-v1-pool-pools.context.js +0 -12
- package/build/es/src/benefit-programs-v1-pool-pools.context.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-pools.http.d.ts +0 -56
- package/build/es/src/benefit-programs-v1-pool-pools.http.js +0 -483
- package/build/es/src/benefit-programs-v1-pool-pools.http.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-pools.meta.d.ts +0 -24
- package/build/es/src/benefit-programs-v1-pool-pools.meta.js +0 -146
- package/build/es/src/benefit-programs-v1-pool-pools.meta.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-pools.public.d.ts +0 -96
- package/build/es/src/benefit-programs-v1-pool-pools.public.js +0 -44
- package/build/es/src/benefit-programs-v1-pool-pools.public.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-pools.types.d.ts +0 -1597
- package/build/es/src/benefit-programs-v1-pool-pools.types.js +0 -137
- package/build/es/src/benefit-programs-v1-pool-pools.types.js.map +0 -1
- package/build/es/src/benefit-programs-v1-pool-pools.universal.js +0 -555
- package/build/es/src/benefit-programs-v1-pool-pools.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.context.d.ts +0 -12
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.context.js +0 -28
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.context.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.d.ts +0 -56
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.js +0 -494
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.meta.d.ts +0 -24
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.meta.js +0 -180
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.meta.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +0 -96
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.js +0 -68
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +0 -1597
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.js +0 -140
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.js.map +0 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js +0 -589
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.context.d.ts +0 -12
- package/build/internal/es/src/benefit-programs-v1-pool-pools.context.js +0 -12
- package/build/internal/es/src/benefit-programs-v1-pool-pools.context.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.d.ts +0 -56
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.js +0 -483
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.meta.d.ts +0 -24
- package/build/internal/es/src/benefit-programs-v1-pool-pools.meta.js +0 -146
- package/build/internal/es/src/benefit-programs-v1-pool-pools.meta.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.public.d.ts +0 -96
- package/build/internal/es/src/benefit-programs-v1-pool-pools.public.js +0 -44
- package/build/internal/es/src/benefit-programs-v1-pool-pools.public.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.d.ts +0 -1597
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.js +0 -137
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.js.map +0 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js +0 -555
- package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as Pool, U as UpdatePool, a as PoolsQueryBuilder, R as RedeemBenefitOptions, b as RedeemBenefitResponse, C as CheckBenefitEligibilityOptions, c as CheckBenefitEligibilityResponse, B as BulkCheckBenefitEligibilityOptions, d as BulkCheckBenefitEligibilityResponse, I as ItemReference, G as GetEligibleBenefitsOptions, e as GetEligibleBenefitsResponse, f as BulkUpdatePoolsOptions, g as BulkUpdatePoolsResponse } from './benefit-programs-v1-pool-pools.universal-cRyidFWD.mjs';
|
|
3
|
+
export { bj as ActionEvent, aW as ApplicationError, b2 as AsyncResult, r as Benefit, au as BenefitAlreadyRedeemed, av as BenefitNotFound, X as BenefitRedeemed, a1 as BenefitReservationCanceled, a2 as BenefitReservationReleased, a0 as BenefitReserved, aI as BenefitSelector, aX as BulkActionMetadata, aH as BulkCheckBenefitEligibilityRequest, aJ as BulkEligibilityCheckResult, aU as BulkPoolResult, aS as BulkUpdatePoolsRequest, aM as ByItemReference, aN as ByItemReferenceFilter, b8 as ByPoolDefinitionIdAndProgramDefinitionIdOptions, b9 as ByProgramIdOptions, ay as CancelBenefitReservationRequest, az as CancelBenefitReservationResponse, aC as CheckBenefitEligibilityRequest, p as CommonIdentificationData, q as CommonIdentificationDataIdOneOf, bb as CountNumberOfPoolsInProvisioningStatusRequest, bc as CountNumberOfPoolsInProvisioningStatusResponse, a8 as CreatePoolRequest, a9 as CreatePoolResponse, J as CreditConfiguration, ak as CursorPaging, am as CursorPagingMetadata, ah as CursorQuery, ai as CursorQueryPagingMethodOneOf, an as Cursors, H as CustomPolicy, ae as DeletePoolRequest, af as DeletePoolResponse, D as Details, bd as DomainEvent, be as DomainEventBodyOneOf, aD as EligibilityCheckResult, aE as EligibilityCheckResultResultOneOf, E as EligibilityCheckResultType, aG as Eligible, aF as EligibleBenefit, bf as EntityCreatedEvent, bi as EntityDeletedEvent, bh as EntityUpdatedEvent, M as ExtendedFields, ar as FailureDetails, aO as Filter, aP as FilterFilterOneOf, F as FixedIntervalPolicy, aK as GetEligibleBenefitsRequest, aa as GetPoolRequest, ab as GetPoolResponse, bl as IdentificationData, bm as IdentificationDataIdOneOf, i as IdentityType, b3 as InvalidPoolDefinitionReference, aV as ItemMetadata, aL as ListPoolsRequest, L as ListPoolsRequestType, aQ as ListPoolsResponse, aT as MaskedPool, bk as MessageEnvelope, ap as NotEnoughBalance, x as Policy, s as PolicyExpression, v as PolicyExpressionAnd, aq as PolicyExpressionEvaluatedToFalse, t as PolicyExpressionExpressionOneOf, u as PolicyExpressionNot, w as PolicyExpressionOr, j as PolicyExpressionType, y as PolicyPolicyOneOf, a6 as PoolDefinitionAndProgramDefinition, aZ as PoolDefinitionLookupId, a_ as PoolDefinitionLookupIdIdOneOf, $ as PoolEnded, as as PoolNotActive, at as PoolNotFound, l as PoolOrigin, Z as PoolPaused, O as PoolProgramInfo, a3 as PoolProvisionJobFinished, Q as PoolProvisioned, V as PoolRenewed, _ as PoolResumed, n as PoolSelectorType, h as PoolStatus, a4 as PoolStatusUpdateJobFinished, a5 as PoolStatusUpdateJobFinishedContextOneOf, aR as PoolWithItems, bn as PoolsQueryResult, N as ProgramDefinitionInfo, a7 as ProgramInfo, aY as ProvisionPoolsForProgramRequest, a$ as ProvisionPoolsForProgramResponse, b0 as ProvisionPoolsForProgramResponseResultOneOf, m as ProvisionPoolsForProgramResponseType, ag as QueryPoolsRequest, al as QueryPoolsResponse, z as RateLimitedPolicy, A as RateLimitedPolicyPeriodOneOf, k as RateLimitedPolicyType, ao as RedeemBenefitRequest, Y as RedemptionDetails, aA as ReleaseBenefitReservationRequest, aB as ReleaseBenefitReservationResponse, b4 as RenewPoolsForProgramRequest, b5 as RenewPoolsForProgramResponse, aw as ReserveBenefitRequest, ax as ReserveBenefitResponse, bg as RestoreInfo, K as RolloverConfiguration, S as SortOrder, aj as Sorting, b1 as SyncResult, T as Type, ac as UpdatePoolRequest, ad as UpdatePoolResponse, b6 as UpdatePoolStatusRequest, b7 as UpdatePoolStatusRequestPoolSelectorOneOf, ba as UpdatePoolStatusResponse, o as WebhookIdentityType, W as WeekDay } from './benefit-programs-v1-pool-pools.universal-cRyidFWD.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
|
+
interface GetPoolSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a pool.
|
|
9
|
+
* @param - ID of the pool to retrieve.
|
|
10
|
+
* @returns Retrieved pool.
|
|
11
|
+
*/
|
|
12
|
+
(poolId: string): Promise<Pool>;
|
|
13
|
+
}
|
|
14
|
+
declare function updatePool$1(httpClient: HttpClient): UpdatePoolSignature;
|
|
15
|
+
interface UpdatePoolSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Updates a pool.
|
|
18
|
+
*
|
|
19
|
+
* Each time the pool is updated,
|
|
20
|
+
* `revision` increments by 1.
|
|
21
|
+
* The current `revision` must be passed when updating the pool.
|
|
22
|
+
* This ensures you're working with the latest pool
|
|
23
|
+
* and prevents unintended overwrites.
|
|
24
|
+
* @param - Pool ID.
|
|
25
|
+
* @returns Updated pool.
|
|
26
|
+
*/
|
|
27
|
+
(_id: string, pool: UpdatePool): Promise<Pool>;
|
|
28
|
+
}
|
|
29
|
+
declare function queryPools$1(httpClient: HttpClient): QueryPoolsSignature;
|
|
30
|
+
interface QueryPoolsSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Creates a query to retrieve a list of pools.
|
|
33
|
+
*
|
|
34
|
+
* The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.
|
|
35
|
+
*
|
|
36
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
37
|
+
*
|
|
38
|
+
* You can refine the query by chaining `PoolsQueryBuilder` methods onto the query. `PoolsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pools returns.
|
|
39
|
+
*
|
|
40
|
+
* Query Pools has a default paging limit of 50, which you can override.
|
|
41
|
+
*
|
|
42
|
+
* For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
|
|
43
|
+
*/
|
|
44
|
+
(): PoolsQueryBuilder;
|
|
45
|
+
}
|
|
46
|
+
declare function redeemBenefit$1(httpClient: HttpClient): RedeemBenefitSignature;
|
|
47
|
+
interface RedeemBenefitSignature {
|
|
48
|
+
/**
|
|
49
|
+
* Redeems a specified benefit.
|
|
50
|
+
*
|
|
51
|
+
* Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item.
|
|
52
|
+
* @param - ID of the pool that contains the benefit to redeem.
|
|
53
|
+
*/
|
|
54
|
+
(poolId: string, options?: RedeemBenefitOptions | undefined): Promise<RedeemBenefitResponse>;
|
|
55
|
+
}
|
|
56
|
+
declare function checkBenefitEligibility$1(httpClient: HttpClient): CheckBenefitEligibilitySignature;
|
|
57
|
+
interface CheckBenefitEligibilitySignature {
|
|
58
|
+
/**
|
|
59
|
+
* Checks if a benefit can currently be redeemed.
|
|
60
|
+
*
|
|
61
|
+
* To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
|
|
62
|
+
* @param - ID of the pool that the benefit to check belongs to.
|
|
63
|
+
*/
|
|
64
|
+
(poolId: string, options?: CheckBenefitEligibilityOptions | undefined): Promise<CheckBenefitEligibilityResponse>;
|
|
65
|
+
}
|
|
66
|
+
declare function bulkCheckBenefitEligibility$1(httpClient: HttpClient): BulkCheckBenefitEligibilitySignature;
|
|
67
|
+
interface BulkCheckBenefitEligibilitySignature {
|
|
68
|
+
/**
|
|
69
|
+
* Checks if benefits can currently be redeemed.
|
|
70
|
+
*
|
|
71
|
+
* To be redeemed, a benefit's pool must be active and the associated balance must greater be than the cost of the benefit.
|
|
72
|
+
*
|
|
73
|
+
* Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
|
|
74
|
+
*/
|
|
75
|
+
(options?: BulkCheckBenefitEligibilityOptions | undefined): Promise<BulkCheckBenefitEligibilityResponse>;
|
|
76
|
+
}
|
|
77
|
+
declare function getEligibleBenefits$1(httpClient: HttpClient): GetEligibleBenefitsSignature;
|
|
78
|
+
interface GetEligibleBenefitsSignature {
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves benefits that can be redeemed for a specific benefit item.
|
|
81
|
+
*
|
|
82
|
+
* Each benefit item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains the same benefits.
|
|
83
|
+
* This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.
|
|
84
|
+
* @param - Item reference.
|
|
85
|
+
*/
|
|
86
|
+
(itemReference: ItemReference, options?: GetEligibleBenefitsOptions | undefined): Promise<GetEligibleBenefitsResponse>;
|
|
87
|
+
}
|
|
88
|
+
declare function bulkUpdatePools$1(httpClient: HttpClient): BulkUpdatePoolsSignature;
|
|
89
|
+
interface BulkUpdatePoolsSignature {
|
|
90
|
+
/**
|
|
91
|
+
* Updates pools.
|
|
92
|
+
*/
|
|
93
|
+
(options?: BulkUpdatePoolsOptions | undefined): Promise<BulkUpdatePoolsResponse>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare const getPool: MaybeContext<BuildRESTFunction<typeof getPool$1> & typeof getPool$1>;
|
|
97
|
+
declare const updatePool: MaybeContext<BuildRESTFunction<typeof updatePool$1> & typeof updatePool$1>;
|
|
98
|
+
declare const queryPools: MaybeContext<BuildRESTFunction<typeof queryPools$1> & typeof queryPools$1>;
|
|
99
|
+
declare const redeemBenefit: MaybeContext<BuildRESTFunction<typeof redeemBenefit$1> & typeof redeemBenefit$1>;
|
|
100
|
+
declare const checkBenefitEligibility: MaybeContext<BuildRESTFunction<typeof checkBenefitEligibility$1> & typeof checkBenefitEligibility$1>;
|
|
101
|
+
declare const bulkCheckBenefitEligibility: MaybeContext<BuildRESTFunction<typeof bulkCheckBenefitEligibility$1> & typeof bulkCheckBenefitEligibility$1>;
|
|
102
|
+
declare const getEligibleBenefits: MaybeContext<BuildRESTFunction<typeof getEligibleBenefits$1> & typeof getEligibleBenefits$1>;
|
|
103
|
+
declare const bulkUpdatePools: MaybeContext<BuildRESTFunction<typeof bulkUpdatePools$1> & typeof bulkUpdatePools$1>;
|
|
104
|
+
|
|
105
|
+
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolsQueryBuilder, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as Pool, U as UpdatePool, a as PoolsQueryBuilder, R as RedeemBenefitOptions, b as RedeemBenefitResponse, C as CheckBenefitEligibilityOptions, c as CheckBenefitEligibilityResponse, B as BulkCheckBenefitEligibilityOptions, d as BulkCheckBenefitEligibilityResponse, I as ItemReference, G as GetEligibleBenefitsOptions, e as GetEligibleBenefitsResponse, f as BulkUpdatePoolsOptions, g as BulkUpdatePoolsResponse } from './benefit-programs-v1-pool-pools.universal-cRyidFWD.js';
|
|
3
|
+
export { bj as ActionEvent, aW as ApplicationError, b2 as AsyncResult, r as Benefit, au as BenefitAlreadyRedeemed, av as BenefitNotFound, X as BenefitRedeemed, a1 as BenefitReservationCanceled, a2 as BenefitReservationReleased, a0 as BenefitReserved, aI as BenefitSelector, aX as BulkActionMetadata, aH as BulkCheckBenefitEligibilityRequest, aJ as BulkEligibilityCheckResult, aU as BulkPoolResult, aS as BulkUpdatePoolsRequest, aM as ByItemReference, aN as ByItemReferenceFilter, b8 as ByPoolDefinitionIdAndProgramDefinitionIdOptions, b9 as ByProgramIdOptions, ay as CancelBenefitReservationRequest, az as CancelBenefitReservationResponse, aC as CheckBenefitEligibilityRequest, p as CommonIdentificationData, q as CommonIdentificationDataIdOneOf, bb as CountNumberOfPoolsInProvisioningStatusRequest, bc as CountNumberOfPoolsInProvisioningStatusResponse, a8 as CreatePoolRequest, a9 as CreatePoolResponse, J as CreditConfiguration, ak as CursorPaging, am as CursorPagingMetadata, ah as CursorQuery, ai as CursorQueryPagingMethodOneOf, an as Cursors, H as CustomPolicy, ae as DeletePoolRequest, af as DeletePoolResponse, D as Details, bd as DomainEvent, be as DomainEventBodyOneOf, aD as EligibilityCheckResult, aE as EligibilityCheckResultResultOneOf, E as EligibilityCheckResultType, aG as Eligible, aF as EligibleBenefit, bf as EntityCreatedEvent, bi as EntityDeletedEvent, bh as EntityUpdatedEvent, M as ExtendedFields, ar as FailureDetails, aO as Filter, aP as FilterFilterOneOf, F as FixedIntervalPolicy, aK as GetEligibleBenefitsRequest, aa as GetPoolRequest, ab as GetPoolResponse, bl as IdentificationData, bm as IdentificationDataIdOneOf, i as IdentityType, b3 as InvalidPoolDefinitionReference, aV as ItemMetadata, aL as ListPoolsRequest, L as ListPoolsRequestType, aQ as ListPoolsResponse, aT as MaskedPool, bk as MessageEnvelope, ap as NotEnoughBalance, x as Policy, s as PolicyExpression, v as PolicyExpressionAnd, aq as PolicyExpressionEvaluatedToFalse, t as PolicyExpressionExpressionOneOf, u as PolicyExpressionNot, w as PolicyExpressionOr, j as PolicyExpressionType, y as PolicyPolicyOneOf, a6 as PoolDefinitionAndProgramDefinition, aZ as PoolDefinitionLookupId, a_ as PoolDefinitionLookupIdIdOneOf, $ as PoolEnded, as as PoolNotActive, at as PoolNotFound, l as PoolOrigin, Z as PoolPaused, O as PoolProgramInfo, a3 as PoolProvisionJobFinished, Q as PoolProvisioned, V as PoolRenewed, _ as PoolResumed, n as PoolSelectorType, h as PoolStatus, a4 as PoolStatusUpdateJobFinished, a5 as PoolStatusUpdateJobFinishedContextOneOf, aR as PoolWithItems, bn as PoolsQueryResult, N as ProgramDefinitionInfo, a7 as ProgramInfo, aY as ProvisionPoolsForProgramRequest, a$ as ProvisionPoolsForProgramResponse, b0 as ProvisionPoolsForProgramResponseResultOneOf, m as ProvisionPoolsForProgramResponseType, ag as QueryPoolsRequest, al as QueryPoolsResponse, z as RateLimitedPolicy, A as RateLimitedPolicyPeriodOneOf, k as RateLimitedPolicyType, ao as RedeemBenefitRequest, Y as RedemptionDetails, aA as ReleaseBenefitReservationRequest, aB as ReleaseBenefitReservationResponse, b4 as RenewPoolsForProgramRequest, b5 as RenewPoolsForProgramResponse, aw as ReserveBenefitRequest, ax as ReserveBenefitResponse, bg as RestoreInfo, K as RolloverConfiguration, S as SortOrder, aj as Sorting, b1 as SyncResult, T as Type, ac as UpdatePoolRequest, ad as UpdatePoolResponse, b6 as UpdatePoolStatusRequest, b7 as UpdatePoolStatusRequestPoolSelectorOneOf, ba as UpdatePoolStatusResponse, o as WebhookIdentityType, W as WeekDay } from './benefit-programs-v1-pool-pools.universal-cRyidFWD.js';
|
|
4
|
+
|
|
5
|
+
declare function getPool$1(httpClient: HttpClient): GetPoolSignature;
|
|
6
|
+
interface GetPoolSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a pool.
|
|
9
|
+
* @param - ID of the pool to retrieve.
|
|
10
|
+
* @returns Retrieved pool.
|
|
11
|
+
*/
|
|
12
|
+
(poolId: string): Promise<Pool>;
|
|
13
|
+
}
|
|
14
|
+
declare function updatePool$1(httpClient: HttpClient): UpdatePoolSignature;
|
|
15
|
+
interface UpdatePoolSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Updates a pool.
|
|
18
|
+
*
|
|
19
|
+
* Each time the pool is updated,
|
|
20
|
+
* `revision` increments by 1.
|
|
21
|
+
* The current `revision` must be passed when updating the pool.
|
|
22
|
+
* This ensures you're working with the latest pool
|
|
23
|
+
* and prevents unintended overwrites.
|
|
24
|
+
* @param - Pool ID.
|
|
25
|
+
* @returns Updated pool.
|
|
26
|
+
*/
|
|
27
|
+
(_id: string, pool: UpdatePool): Promise<Pool>;
|
|
28
|
+
}
|
|
29
|
+
declare function queryPools$1(httpClient: HttpClient): QueryPoolsSignature;
|
|
30
|
+
interface QueryPoolsSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Creates a query to retrieve a list of pools.
|
|
33
|
+
*
|
|
34
|
+
* The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.
|
|
35
|
+
*
|
|
36
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
37
|
+
*
|
|
38
|
+
* You can refine the query by chaining `PoolsQueryBuilder` methods onto the query. `PoolsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pools returns.
|
|
39
|
+
*
|
|
40
|
+
* Query Pools has a default paging limit of 50, which you can override.
|
|
41
|
+
*
|
|
42
|
+
* For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
|
|
43
|
+
*/
|
|
44
|
+
(): PoolsQueryBuilder;
|
|
45
|
+
}
|
|
46
|
+
declare function redeemBenefit$1(httpClient: HttpClient): RedeemBenefitSignature;
|
|
47
|
+
interface RedeemBenefitSignature {
|
|
48
|
+
/**
|
|
49
|
+
* Redeems a specified benefit.
|
|
50
|
+
*
|
|
51
|
+
* Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item.
|
|
52
|
+
* @param - ID of the pool that contains the benefit to redeem.
|
|
53
|
+
*/
|
|
54
|
+
(poolId: string, options?: RedeemBenefitOptions | undefined): Promise<RedeemBenefitResponse>;
|
|
55
|
+
}
|
|
56
|
+
declare function checkBenefitEligibility$1(httpClient: HttpClient): CheckBenefitEligibilitySignature;
|
|
57
|
+
interface CheckBenefitEligibilitySignature {
|
|
58
|
+
/**
|
|
59
|
+
* Checks if a benefit can currently be redeemed.
|
|
60
|
+
*
|
|
61
|
+
* To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.
|
|
62
|
+
* @param - ID of the pool that the benefit to check belongs to.
|
|
63
|
+
*/
|
|
64
|
+
(poolId: string, options?: CheckBenefitEligibilityOptions | undefined): Promise<CheckBenefitEligibilityResponse>;
|
|
65
|
+
}
|
|
66
|
+
declare function bulkCheckBenefitEligibility$1(httpClient: HttpClient): BulkCheckBenefitEligibilitySignature;
|
|
67
|
+
interface BulkCheckBenefitEligibilitySignature {
|
|
68
|
+
/**
|
|
69
|
+
* Checks if benefits can currently be redeemed.
|
|
70
|
+
*
|
|
71
|
+
* To be redeemed, a benefit's pool must be active and the associated balance must greater be than the cost of the benefit.
|
|
72
|
+
*
|
|
73
|
+
* Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
|
|
74
|
+
*/
|
|
75
|
+
(options?: BulkCheckBenefitEligibilityOptions | undefined): Promise<BulkCheckBenefitEligibilityResponse>;
|
|
76
|
+
}
|
|
77
|
+
declare function getEligibleBenefits$1(httpClient: HttpClient): GetEligibleBenefitsSignature;
|
|
78
|
+
interface GetEligibleBenefitsSignature {
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves benefits that can be redeemed for a specific benefit item.
|
|
81
|
+
*
|
|
82
|
+
* Each benefit item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains the same benefits.
|
|
83
|
+
* This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed.
|
|
84
|
+
* @param - Item reference.
|
|
85
|
+
*/
|
|
86
|
+
(itemReference: ItemReference, options?: GetEligibleBenefitsOptions | undefined): Promise<GetEligibleBenefitsResponse>;
|
|
87
|
+
}
|
|
88
|
+
declare function bulkUpdatePools$1(httpClient: HttpClient): BulkUpdatePoolsSignature;
|
|
89
|
+
interface BulkUpdatePoolsSignature {
|
|
90
|
+
/**
|
|
91
|
+
* Updates pools.
|
|
92
|
+
*/
|
|
93
|
+
(options?: BulkUpdatePoolsOptions | undefined): Promise<BulkUpdatePoolsResponse>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare const getPool: MaybeContext<BuildRESTFunction<typeof getPool$1> & typeof getPool$1>;
|
|
97
|
+
declare const updatePool: MaybeContext<BuildRESTFunction<typeof updatePool$1> & typeof updatePool$1>;
|
|
98
|
+
declare const queryPools: MaybeContext<BuildRESTFunction<typeof queryPools$1> & typeof queryPools$1>;
|
|
99
|
+
declare const redeemBenefit: MaybeContext<BuildRESTFunction<typeof redeemBenefit$1> & typeof redeemBenefit$1>;
|
|
100
|
+
declare const checkBenefitEligibility: MaybeContext<BuildRESTFunction<typeof checkBenefitEligibility$1> & typeof checkBenefitEligibility$1>;
|
|
101
|
+
declare const bulkCheckBenefitEligibility: MaybeContext<BuildRESTFunction<typeof bulkCheckBenefitEligibility$1> & typeof bulkCheckBenefitEligibility$1>;
|
|
102
|
+
declare const getEligibleBenefits: MaybeContext<BuildRESTFunction<typeof getEligibleBenefits$1> & typeof getEligibleBenefits$1>;
|
|
103
|
+
declare const bulkUpdatePools: MaybeContext<BuildRESTFunction<typeof bulkUpdatePools$1> & typeof bulkUpdatePools$1>;
|
|
104
|
+
|
|
105
|
+
export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolsQueryBuilder, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, getEligibleBenefits, getPool, queryPools, redeemBenefit, updatePool };
|