@wix/auto_sdk_benefit-programs_pools 1.0.75 → 1.0.77
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 +3 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -81
- package/build/cjs/index.typings.js +2 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -69
- package/build/cjs/meta.js +1 -6
- 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 +3 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -81
- package/build/es/index.typings.mjs +2 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -69
- package/build/es/meta.mjs +1 -5
- 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 +3 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +139 -81
- package/build/internal/cjs/index.typings.js +2 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +240 -69
- package/build/internal/cjs/meta.js +1 -6
- 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 +3 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +139 -81
- package/build/internal/es/index.typings.mjs +2 -8
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +240 -69
- package/build/internal/es/meta.mjs +1 -5
- 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. */
|
|
@@ -1250,6 +1329,11 @@ declare enum BenefitResultType {
|
|
|
1250
1329
|
ELIGIBLE_BENEFIT = "ELIGIBLE_BENEFIT",
|
|
1251
1330
|
/** Balance is lower than the cost of redeeming the items. */
|
|
1252
1331
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1332
|
+
/**
|
|
1333
|
+
* Policy is false.
|
|
1334
|
+
* @internal
|
|
1335
|
+
*/
|
|
1336
|
+
POLICY_EXPRESSION_EVALUATED_TO_FALSE = "POLICY_EXPRESSION_EVALUATED_TO_FALSE",
|
|
1253
1337
|
/** Pool isn't active. */
|
|
1254
1338
|
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1255
1339
|
/** Invalid benefit details provided. */
|
|
@@ -1418,74 +1502,6 @@ interface GetEligibleBenefitsResponse {
|
|
|
1418
1502
|
/** Retrieved benefits that can be redeemed. */
|
|
1419
1503
|
eligibleBenefits?: EligibleBenefit[];
|
|
1420
1504
|
}
|
|
1421
|
-
interface ListPoolsRequest {
|
|
1422
|
-
/** The filter */
|
|
1423
|
-
filter?: Filter;
|
|
1424
|
-
/** Cursor paging */
|
|
1425
|
-
cursorPaging?: CursorPaging;
|
|
1426
|
-
}
|
|
1427
|
-
declare enum ListPoolsRequestType {
|
|
1428
|
-
BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
|
|
1429
|
-
}
|
|
1430
|
-
/** @enumType */
|
|
1431
|
-
type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | 'BY_ITEM_REFERENCE';
|
|
1432
|
-
interface ByItemReference {
|
|
1433
|
-
/**
|
|
1434
|
-
* A list of filters
|
|
1435
|
-
* @maxSize 100
|
|
1436
|
-
*/
|
|
1437
|
-
filters?: ByItemReferenceFilter[];
|
|
1438
|
-
/** Beneficiary of the pool */
|
|
1439
|
-
beneficiary?: CommonIdentificationData;
|
|
1440
|
-
/**
|
|
1441
|
-
* Returns pools that are in the following statuses
|
|
1442
|
-
* @maxSize 10
|
|
1443
|
-
*/
|
|
1444
|
-
poolStatuses?: PoolStatusWithLiterals[];
|
|
1445
|
-
}
|
|
1446
|
-
interface ByItemReferenceFilter {
|
|
1447
|
-
/** Reference of the item */
|
|
1448
|
-
itemReference?: ItemReference;
|
|
1449
|
-
}
|
|
1450
|
-
interface Filter extends FilterFilterOneOf {
|
|
1451
|
-
/** A list of filters by reference */
|
|
1452
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1453
|
-
/** Type of the filter */
|
|
1454
|
-
type?: ListPoolsRequestTypeWithLiterals;
|
|
1455
|
-
/**
|
|
1456
|
-
* Module that is the source of the benefit pool creation.
|
|
1457
|
-
*
|
|
1458
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1459
|
-
*
|
|
1460
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1461
|
-
* @minLength 1
|
|
1462
|
-
* @maxLength 20
|
|
1463
|
-
*/
|
|
1464
|
-
namespace?: string;
|
|
1465
|
-
}
|
|
1466
|
-
/** @oneof */
|
|
1467
|
-
interface FilterFilterOneOf {
|
|
1468
|
-
/** A list of filters by reference */
|
|
1469
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1470
|
-
}
|
|
1471
|
-
interface ListPoolsResponse {
|
|
1472
|
-
/**
|
|
1473
|
-
* The retrieved pools
|
|
1474
|
-
* @maxSize 100
|
|
1475
|
-
*/
|
|
1476
|
-
pools?: PoolWithItems[];
|
|
1477
|
-
/** Paging information */
|
|
1478
|
-
metadata?: CursorPagingMetadata;
|
|
1479
|
-
}
|
|
1480
|
-
interface PoolWithItems {
|
|
1481
|
-
/** The pool */
|
|
1482
|
-
pool?: Pool;
|
|
1483
|
-
/**
|
|
1484
|
-
* The items in the pool
|
|
1485
|
-
* @maxSize 100
|
|
1486
|
-
*/
|
|
1487
|
-
itemReference?: ItemReference[];
|
|
1488
|
-
}
|
|
1489
1505
|
interface BulkUpdatePoolsRequest {
|
|
1490
1506
|
/**
|
|
1491
1507
|
* Pools to update.
|
|
@@ -2131,6 +2147,37 @@ interface UpdatePool {
|
|
|
2131
2147
|
* @readonly
|
|
2132
2148
|
*/
|
|
2133
2149
|
renewalCount?: number | null;
|
|
2150
|
+
/**
|
|
2151
|
+
* Previous status of the benefit pool.
|
|
2152
|
+
* @internal
|
|
2153
|
+
* @readonly
|
|
2154
|
+
*/
|
|
2155
|
+
previousStatus?: PoolStatusWithLiterals;
|
|
2156
|
+
/**
|
|
2157
|
+
* Origin of the benefit pool.
|
|
2158
|
+
* @internal
|
|
2159
|
+
* @readonly
|
|
2160
|
+
* @immutable
|
|
2161
|
+
*/
|
|
2162
|
+
origin?: PoolOriginWithLiterals;
|
|
2163
|
+
/**
|
|
2164
|
+
* Action to be performed on pool renewal
|
|
2165
|
+
* @internal
|
|
2166
|
+
* @readonly
|
|
2167
|
+
*/
|
|
2168
|
+
renewalAction?: PoolRenewalAction;
|
|
2169
|
+
/**
|
|
2170
|
+
* Pool description.
|
|
2171
|
+
* @internal
|
|
2172
|
+
* @maxLength 450
|
|
2173
|
+
*/
|
|
2174
|
+
description?: string | null;
|
|
2175
|
+
/**
|
|
2176
|
+
* Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
|
|
2177
|
+
* @internal
|
|
2178
|
+
* @readonly
|
|
2179
|
+
*/
|
|
2180
|
+
changesCounter?: string | null;
|
|
2134
2181
|
}
|
|
2135
2182
|
/**
|
|
2136
2183
|
* Creates a query to retrieve a list of pools.
|
|
@@ -2151,6 +2198,11 @@ interface UpdatePool {
|
|
|
2151
2198
|
*/
|
|
2152
2199
|
declare function queryPools(options?: QueryPoolsOptions): PoolsQueryBuilder;
|
|
2153
2200
|
interface QueryPoolsOptions {
|
|
2201
|
+
/**
|
|
2202
|
+
* If true, the response will reflect a consistent snapshot of the data as of the time the request was received.
|
|
2203
|
+
* @internal
|
|
2204
|
+
*/
|
|
2205
|
+
consistent?: boolean | null | undefined;
|
|
2154
2206
|
}
|
|
2155
2207
|
interface QueryCursorResult {
|
|
2156
2208
|
cursors: Cursors;
|
|
@@ -2169,11 +2221,11 @@ interface PoolsQueryBuilder {
|
|
|
2169
2221
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2170
2222
|
* @param value - Value to compare against.
|
|
2171
2223
|
*/
|
|
2172
|
-
eq: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
2224
|
+
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;
|
|
2173
2225
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2174
2226
|
* @param value - Value to compare against.
|
|
2175
2227
|
*/
|
|
2176
|
-
ne: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
2228
|
+
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;
|
|
2177
2229
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2178
2230
|
* @param value - Value to compare against.
|
|
2179
2231
|
*/
|
|
@@ -2194,11 +2246,7 @@ interface PoolsQueryBuilder {
|
|
|
2194
2246
|
* @param string - String to compare against. Case-insensitive.
|
|
2195
2247
|
*/
|
|
2196
2248
|
startsWith: (propertyName: '_id' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: string) => PoolsQueryBuilder;
|
|
2197
|
-
|
|
2198
|
-
* @param values - List of values to compare against.
|
|
2199
|
-
*/
|
|
2200
|
-
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;
|
|
2201
|
-
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;
|
|
2249
|
+
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;
|
|
2202
2250
|
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;
|
|
2203
2251
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
2204
2252
|
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;
|
|
@@ -2284,14 +2332,24 @@ type PoolQuery = {
|
|
|
2284
2332
|
Default: `ASC`
|
|
2285
2333
|
*/
|
|
2286
2334
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2335
|
+
/**
|
|
2336
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
2337
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
2338
|
+
|
|
2339
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
2340
|
+
|
|
2341
|
+
Example:
|
|
2342
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
2343
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
2344
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
2345
|
+
@internal: undefined,
|
|
2346
|
+
@maxSize: 10
|
|
2347
|
+
*/
|
|
2348
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
2287
2349
|
}[];
|
|
2288
2350
|
};
|
|
2289
2351
|
declare const utils: {
|
|
2290
|
-
query:
|
|
2291
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pool, PoolQuerySpec, PoolQuery>;
|
|
2292
|
-
Filter: _wix_sdk_types.FilterFactory<Pool, PoolQuerySpec>;
|
|
2293
|
-
Sort: _wix_sdk_types.SortFactory<PoolQuerySpec>;
|
|
2294
|
-
};
|
|
2352
|
+
query: _wix_sdk_types.QueryHelpers<Pool, PoolQuerySpec, PoolQuery>;
|
|
2295
2353
|
};
|
|
2296
2354
|
/**
|
|
2297
2355
|
* Redeems a specified benefit.
|
|
@@ -2571,4 +2629,4 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2571
2629
|
poolSelector?: PoolSelector;
|
|
2572
2630
|
}
|
|
2573
2631
|
|
|
2574
|
-
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
|
|
2632
|
+
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 };
|
|
@@ -560,15 +560,12 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
560
560
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
561
561
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
562
562
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
563
|
+
BenefitResultType2["POLICY_EXPRESSION_EVALUATED_TO_FALSE"] = "POLICY_EXPRESSION_EVALUATED_TO_FALSE";
|
|
563
564
|
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
564
565
|
BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
565
566
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
566
567
|
return BenefitResultType2;
|
|
567
568
|
})(BenefitResultType || {});
|
|
568
|
-
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
569
|
-
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
570
|
-
return ListPoolsRequestType2;
|
|
571
|
-
})(ListPoolsRequestType || {});
|
|
572
569
|
var ProvisionPoolsForProgramResponseType = /* @__PURE__ */ ((ProvisionPoolsForProgramResponseType2) => {
|
|
573
570
|
ProvisionPoolsForProgramResponseType2["SYNC"] = "SYNC";
|
|
574
571
|
ProvisionPoolsForProgramResponseType2["ASYNC"] = "ASYNC";
|
|
@@ -708,9 +705,7 @@ async function typedQueryPools(query, options) {
|
|
|
708
705
|
}
|
|
709
706
|
}
|
|
710
707
|
var utils = {
|
|
711
|
-
query:
|
|
712
|
-
...createQueryUtils()
|
|
713
|
-
}
|
|
708
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
714
709
|
};
|
|
715
710
|
async function redeemBenefit2(poolId, options) {
|
|
716
711
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -937,7 +932,6 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
937
932
|
export {
|
|
938
933
|
BenefitResultType,
|
|
939
934
|
IdentityType,
|
|
940
|
-
ListPoolsRequestType,
|
|
941
935
|
PolicyExpressionType,
|
|
942
936
|
PoolOrigin,
|
|
943
937
|
PoolRenewalActionType,
|