@wix/auto_sdk_benefit-programs_pools 1.0.76 → 1.0.78
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 +1 -1
- package/build/cjs/index.js +14 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -13
- package/build/cjs/index.typings.js +13 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -1
- package/build/cjs/meta.js +8 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +18 -18
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +13 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -13
- package/build/es/index.typings.mjs +12 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -1
- package/build/es/meta.mjs +7 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +18 -18
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +14 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +164 -13
- package/build/internal/cjs/index.typings.js +13 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +258 -1
- package/build/internal/cjs/meta.js +8 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +18 -18
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +13 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +164 -13
- package/build/internal/es/index.typings.mjs +12 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +258 -1
- package/build/internal/es/meta.mjs +7 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +18 -18
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -102,6 +102,37 @@ interface Pool {
|
|
|
102
102
|
* @readonly
|
|
103
103
|
*/
|
|
104
104
|
renewalCount?: number | null;
|
|
105
|
+
/**
|
|
106
|
+
* Previous status of the benefit pool.
|
|
107
|
+
* @internal
|
|
108
|
+
* @readonly
|
|
109
|
+
*/
|
|
110
|
+
previousStatus?: PoolStatusWithLiterals;
|
|
111
|
+
/**
|
|
112
|
+
* Origin of the benefit pool.
|
|
113
|
+
* @internal
|
|
114
|
+
* @readonly
|
|
115
|
+
* @immutable
|
|
116
|
+
*/
|
|
117
|
+
origin?: PoolOriginWithLiterals;
|
|
118
|
+
/**
|
|
119
|
+
* Action to be performed on pool renewal
|
|
120
|
+
* @internal
|
|
121
|
+
* @readonly
|
|
122
|
+
*/
|
|
123
|
+
renewalAction?: PoolRenewalAction;
|
|
124
|
+
/**
|
|
125
|
+
* Pool description.
|
|
126
|
+
* @internal
|
|
127
|
+
* @maxLength 450
|
|
128
|
+
*/
|
|
129
|
+
description?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
132
|
+
* @internal
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
changesCounter?: string | null;
|
|
105
136
|
}
|
|
106
137
|
declare enum PoolStatus {
|
|
107
138
|
/** Pool is active. */
|
|
@@ -135,6 +166,12 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
|
135
166
|
* @format GUID
|
|
136
167
|
*/
|
|
137
168
|
wixUserId?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Identity type.
|
|
171
|
+
* @internal
|
|
172
|
+
* @readonly
|
|
173
|
+
*/
|
|
174
|
+
identityType?: IdentityTypeWithLiterals;
|
|
138
175
|
}
|
|
139
176
|
/** @oneof */
|
|
140
177
|
interface CommonIdentificationDataIdOneOf {
|
|
@@ -178,6 +215,19 @@ interface Details {
|
|
|
178
215
|
* If this object is empty, you can't set a price for the benefit.
|
|
179
216
|
*/
|
|
180
217
|
creditConfiguration?: CreditConfiguration;
|
|
218
|
+
/**
|
|
219
|
+
* Defines when benefits can be redeemed.
|
|
220
|
+
*
|
|
221
|
+
* Benefit redemption can be limited by:
|
|
222
|
+
* - **Fixed intervals**: Benefits can be redeemed during specific times of the day or week.
|
|
223
|
+
* - **Rate limited**: Up to a maximum amount of benefits can be redeemed in a specified time period.
|
|
224
|
+
*
|
|
225
|
+
* Expressions can be combined using the *not*, *and*, and *or* operators.
|
|
226
|
+
*
|
|
227
|
+
* Each benefit can override this policy.
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
policyExpression?: PolicyExpression;
|
|
181
231
|
/** Additional information relating to this object. */
|
|
182
232
|
additionalData?: Record<string, any> | null;
|
|
183
233
|
}
|
|
@@ -201,6 +251,11 @@ interface Benefit {
|
|
|
201
251
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
202
252
|
*/
|
|
203
253
|
price?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Overrides the default policy expression in `benefit.details`.
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
policyExpression?: PolicyExpression;
|
|
204
259
|
/** Additional information for this benefit. */
|
|
205
260
|
additionalData?: Record<string, any> | null;
|
|
206
261
|
/**
|
|
@@ -719,6 +774,11 @@ interface GetPoolResponse {
|
|
|
719
774
|
interface UpdatePoolRequest {
|
|
720
775
|
/** Pool to update. */
|
|
721
776
|
pool: Pool;
|
|
777
|
+
/**
|
|
778
|
+
* Explicit list of fields to update.
|
|
779
|
+
* @internal
|
|
780
|
+
*/
|
|
781
|
+
fieldMask?: string[];
|
|
722
782
|
}
|
|
723
783
|
interface UpdatePoolResponse {
|
|
724
784
|
/** Updated pool. */
|
|
@@ -736,6 +796,11 @@ interface DeletePoolResponse {
|
|
|
736
796
|
interface QueryPoolsRequest {
|
|
737
797
|
/** Filter, sort, and paging to apply to the query. */
|
|
738
798
|
query?: CursorQuery;
|
|
799
|
+
/**
|
|
800
|
+
* If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
|
|
801
|
+
* @internal
|
|
802
|
+
*/
|
|
803
|
+
consistent?: boolean | null;
|
|
739
804
|
}
|
|
740
805
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
741
806
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
@@ -769,6 +834,20 @@ interface Sorting {
|
|
|
769
834
|
* Default: `ASC`
|
|
770
835
|
*/
|
|
771
836
|
order?: SortOrderWithLiterals;
|
|
837
|
+
/**
|
|
838
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
839
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
840
|
+
*
|
|
841
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
842
|
+
*
|
|
843
|
+
* Example:
|
|
844
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
845
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
846
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
847
|
+
* @internal
|
|
848
|
+
* @maxSize 10
|
|
849
|
+
*/
|
|
850
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
772
851
|
}
|
|
773
852
|
declare enum SortOrder {
|
|
774
853
|
/** Ascending sort order. */
|
|
@@ -1233,7 +1312,25 @@ interface CheckBenefitEligibilityRequest {
|
|
|
1233
1312
|
* @maxLength 20
|
|
1234
1313
|
*/
|
|
1235
1314
|
namespace: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* Intent of the eligibility check.
|
|
1317
|
+
*
|
|
1318
|
+
* If not provided, `REDEMPTION` is used by default.
|
|
1319
|
+
* @internal
|
|
1320
|
+
*/
|
|
1321
|
+
intent?: IntentWithLiterals;
|
|
1322
|
+
}
|
|
1323
|
+
declare enum Intent {
|
|
1324
|
+
/** Check whether the benefit can be redeemed. */
|
|
1325
|
+
REDEMPTION = "REDEMPTION",
|
|
1326
|
+
/**
|
|
1327
|
+
* Check whether an already redeemed benefit can be reallocated to the target date.
|
|
1328
|
+
* The redeemed credits are kept, so the balance check is skipped.
|
|
1329
|
+
*/
|
|
1330
|
+
REALLOCATION = "REALLOCATION"
|
|
1236
1331
|
}
|
|
1332
|
+
/** @enumType */
|
|
1333
|
+
type IntentWithLiterals = Intent | 'REDEMPTION' | 'REALLOCATION';
|
|
1237
1334
|
interface CheckBenefitEligibilityResponse {
|
|
1238
1335
|
/** Result of the eligibility check. */
|
|
1239
1336
|
result?: EligibilityCheckResult;
|
|
@@ -1250,6 +1347,11 @@ declare enum BenefitResultType {
|
|
|
1250
1347
|
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1251
1348
|
/** Balance is lower than the cost of redeeming the items. */
|
|
1252
1349
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1350
|
+
/**
|
|
1351
|
+
* Policy is false.
|
|
1352
|
+
* @internal
|
|
1353
|
+
*/
|
|
1354
|
+
POLICY_EXPRESSION_EVALUATED_TO_FALSE = "POLICY_EXPRESSION_EVALUATED_TO_FALSE",
|
|
1253
1355
|
/** Pool isn't active. */
|
|
1254
1356
|
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1255
1357
|
/** Invalid benefit details provided. */
|
|
@@ -2063,6 +2165,37 @@ interface UpdatePool {
|
|
|
2063
2165
|
* @readonly
|
|
2064
2166
|
*/
|
|
2065
2167
|
renewalCount?: number | null;
|
|
2168
|
+
/**
|
|
2169
|
+
* Previous status of the benefit pool.
|
|
2170
|
+
* @internal
|
|
2171
|
+
* @readonly
|
|
2172
|
+
*/
|
|
2173
|
+
previousStatus?: PoolStatusWithLiterals;
|
|
2174
|
+
/**
|
|
2175
|
+
* Origin of the benefit pool.
|
|
2176
|
+
* @internal
|
|
2177
|
+
* @readonly
|
|
2178
|
+
* @immutable
|
|
2179
|
+
*/
|
|
2180
|
+
origin?: PoolOriginWithLiterals;
|
|
2181
|
+
/**
|
|
2182
|
+
* Action to be performed on pool renewal
|
|
2183
|
+
* @internal
|
|
2184
|
+
* @readonly
|
|
2185
|
+
*/
|
|
2186
|
+
renewalAction?: PoolRenewalAction;
|
|
2187
|
+
/**
|
|
2188
|
+
* Pool description.
|
|
2189
|
+
* @internal
|
|
2190
|
+
* @maxLength 450
|
|
2191
|
+
*/
|
|
2192
|
+
description?: string | null;
|
|
2193
|
+
/**
|
|
2194
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
2195
|
+
* @internal
|
|
2196
|
+
* @readonly
|
|
2197
|
+
*/
|
|
2198
|
+
changesCounter?: string | null;
|
|
2066
2199
|
}
|
|
2067
2200
|
/**
|
|
2068
2201
|
* Creates a query to retrieve a list of pools.
|
|
@@ -2083,6 +2216,11 @@ interface UpdatePool {
|
|
|
2083
2216
|
*/
|
|
2084
2217
|
declare function queryPools(options?: QueryPoolsOptions): PoolsQueryBuilder;
|
|
2085
2218
|
interface QueryPoolsOptions {
|
|
2219
|
+
/**
|
|
2220
|
+
* If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
|
|
2221
|
+
* @internal
|
|
2222
|
+
*/
|
|
2223
|
+
consistent?: boolean | null | undefined;
|
|
2086
2224
|
}
|
|
2087
2225
|
interface QueryCursorResult {
|
|
2088
2226
|
cursors: Cursors;
|
|
@@ -2101,11 +2239,11 @@ interface PoolsQueryBuilder {
|
|
|
2101
2239
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2102
2240
|
* @param value - Value to compare against.
|
|
2103
2241
|
*/
|
|
2104
|
-
eq: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
2242
|
+
eq: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
|
|
2105
2243
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2106
2244
|
* @param value - Value to compare against.
|
|
2107
2245
|
*/
|
|
2108
|
-
ne: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
2246
|
+
ne: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
|
|
2109
2247
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2110
2248
|
* @param value - Value to compare against.
|
|
2111
2249
|
*/
|
|
@@ -2126,11 +2264,7 @@ interface PoolsQueryBuilder {
|
|
|
2126
2264
|
* @param string - String to compare against. Case-insensitive.
|
|
2127
2265
|
*/
|
|
2128
2266
|
startsWith: (propertyName: '_id' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: string) => PoolsQueryBuilder;
|
|
2129
|
-
|
|
2130
|
-
* @param values - List of values to compare against.
|
|
2131
|
-
*/
|
|
2132
|
-
hasSome: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any[]) => PoolsQueryBuilder;
|
|
2133
|
-
in: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
|
|
2267
|
+
in: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: any) => PoolsQueryBuilder;
|
|
2134
2268
|
exists: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: boolean) => PoolsQueryBuilder;
|
|
2135
2269
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
2136
2270
|
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id'>) => PoolsQueryBuilder;
|
|
@@ -2216,14 +2350,24 @@ type PoolQuery = {
|
|
|
2216
2350
|
Default: `ASC`
|
|
2217
2351
|
*/
|
|
2218
2352
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2353
|
+
/**
|
|
2354
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
2355
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
2356
|
+
|
|
2357
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
2358
|
+
|
|
2359
|
+
Example:
|
|
2360
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
2361
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
2362
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
2363
|
+
@internal: undefined,
|
|
2364
|
+
@maxSize: 10
|
|
2365
|
+
*/
|
|
2366
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
2219
2367
|
}[];
|
|
2220
2368
|
};
|
|
2221
2369
|
declare const utils: {
|
|
2222
|
-
query:
|
|
2223
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pool, PoolQuerySpec, PoolQuery>;
|
|
2224
|
-
Filter: _wix_sdk_types.FilterFactory<Pool, PoolQuerySpec>;
|
|
2225
|
-
Sort: _wix_sdk_types.SortFactory<PoolQuerySpec>;
|
|
2226
|
-
};
|
|
2370
|
+
query: _wix_sdk_types.QueryHelpers<Pool, PoolQuerySpec, PoolQuery>;
|
|
2227
2371
|
};
|
|
2228
2372
|
/**
|
|
2229
2373
|
* Redeems a specified benefit.
|
|
@@ -2328,6 +2472,13 @@ interface CheckBenefitEligibilityOptions {
|
|
|
2328
2472
|
* @maxLength 20
|
|
2329
2473
|
*/
|
|
2330
2474
|
namespace: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* Intent of the eligibility check.
|
|
2477
|
+
*
|
|
2478
|
+
* If not provided, `REDEMPTION` is used by default.
|
|
2479
|
+
* @internal
|
|
2480
|
+
*/
|
|
2481
|
+
intent?: IntentWithLiterals;
|
|
2331
2482
|
}
|
|
2332
2483
|
/**
|
|
2333
2484
|
* Checks if benefits can currently be redeemed.
|
|
@@ -2503,4 +2654,4 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2503
2654
|
poolSelector?: PoolSelector;
|
|
2504
2655
|
}
|
|
2505
2656
|
|
|
2506
|
-
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 ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityByFilterApplicationErrors, type CheckBenefitEligibilityByFilterOptions, type CheckBenefitEligibilityByFilterRequest, type CheckBenefitEligibilityByFilterResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, 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 FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type HealPoolRequest, type HealPoolResponse, type HealPoolTenantRequest, type HealPoolTenantResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, 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, type PoolSelector, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, type PoolStatusWithLiterals, 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, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool, utils };
|
|
2657
|
+
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 ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityByFilterApplicationErrors, type CheckBenefitEligibilityByFilterOptions, type CheckBenefitEligibilityByFilterRequest, type CheckBenefitEligibilityByFilterResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, 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 FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type HealPoolRequest, type HealPoolResponse, type HealPoolTenantRequest, type HealPoolTenantResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, Intent, type IntentWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, 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, type PoolSelector, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, type PoolStatusWithLiterals, 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, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool, utils };
|
|
@@ -557,9 +557,15 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
557
557
|
SortOrder2["DESC"] = "DESC";
|
|
558
558
|
return SortOrder2;
|
|
559
559
|
})(SortOrder || {});
|
|
560
|
+
var Intent = /* @__PURE__ */ ((Intent2) => {
|
|
561
|
+
Intent2["REDEMPTION"] = "REDEMPTION";
|
|
562
|
+
Intent2["REALLOCATION"] = "REALLOCATION";
|
|
563
|
+
return Intent2;
|
|
564
|
+
})(Intent || {});
|
|
560
565
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
561
566
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
562
567
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
568
|
+
BenefitResultType2["POLICY_EXPRESSION_EVALUATED_TO_FALSE"] = "POLICY_EXPRESSION_EVALUATED_TO_FALSE";
|
|
563
569
|
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
564
570
|
BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
565
571
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
@@ -704,9 +710,7 @@ async function typedQueryPools(query, options) {
|
|
|
704
710
|
}
|
|
705
711
|
}
|
|
706
712
|
var utils = {
|
|
707
|
-
query:
|
|
708
|
-
...createQueryUtils()
|
|
709
|
-
}
|
|
713
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
710
714
|
};
|
|
711
715
|
async function redeemBenefit2(poolId, options) {
|
|
712
716
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -761,7 +765,8 @@ async function checkBenefitEligibility2(poolId, options) {
|
|
|
761
765
|
targetDate: options?.targetDate,
|
|
762
766
|
additionalData: options?.additionalData,
|
|
763
767
|
beneficiary: options?.beneficiary,
|
|
764
|
-
namespace: options?.namespace
|
|
768
|
+
namespace: options?.namespace,
|
|
769
|
+
intent: options?.intent
|
|
765
770
|
});
|
|
766
771
|
const reqOpts = checkBenefitEligibility(payload);
|
|
767
772
|
sideEffects?.onSiteCall?.();
|
|
@@ -782,7 +787,8 @@ async function checkBenefitEligibility2(poolId, options) {
|
|
|
782
787
|
targetDate: "$[1].targetDate",
|
|
783
788
|
additionalData: "$[1].additionalData",
|
|
784
789
|
beneficiary: "$[1].beneficiary",
|
|
785
|
-
namespace: "$[1].namespace"
|
|
790
|
+
namespace: "$[1].namespace",
|
|
791
|
+
intent: "$[1].intent"
|
|
786
792
|
},
|
|
787
793
|
singleArgumentUnchanged: false
|
|
788
794
|
},
|
|
@@ -933,6 +939,7 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
933
939
|
export {
|
|
934
940
|
BenefitResultType,
|
|
935
941
|
IdentityType,
|
|
942
|
+
Intent,
|
|
936
943
|
PolicyExpressionType,
|
|
937
944
|
PoolOrigin,
|
|
938
945
|
PoolRenewalActionType,
|