@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
|
@@ -1305,74 +1305,6 @@ interface GetEligibleBenefitsResponse {
|
|
|
1305
1305
|
/** Retrieved benefits that can be redeemed. */
|
|
1306
1306
|
eligibleBenefits?: EligibleBenefit[];
|
|
1307
1307
|
}
|
|
1308
|
-
interface ListPoolsRequest {
|
|
1309
|
-
/** The filter */
|
|
1310
|
-
filter?: Filter;
|
|
1311
|
-
/** Cursor paging */
|
|
1312
|
-
cursorPaging?: CursorPaging;
|
|
1313
|
-
}
|
|
1314
|
-
declare enum ListPoolsRequestType {
|
|
1315
|
-
BY_ITEM_REFERENCE = "BY_ITEM_REFERENCE"
|
|
1316
|
-
}
|
|
1317
|
-
/** @enumType */
|
|
1318
|
-
type ListPoolsRequestTypeWithLiterals = ListPoolsRequestType | 'BY_ITEM_REFERENCE';
|
|
1319
|
-
interface ByItemReference {
|
|
1320
|
-
/**
|
|
1321
|
-
* A list of filters
|
|
1322
|
-
* @maxSize 100
|
|
1323
|
-
*/
|
|
1324
|
-
filters?: ByItemReferenceFilter[];
|
|
1325
|
-
/** Beneficiary of the pool */
|
|
1326
|
-
beneficiary?: CommonIdentificationData;
|
|
1327
|
-
/**
|
|
1328
|
-
* Returns pools that are in the following statuses
|
|
1329
|
-
* @maxSize 10
|
|
1330
|
-
*/
|
|
1331
|
-
poolStatuses?: PoolStatusWithLiterals[];
|
|
1332
|
-
}
|
|
1333
|
-
interface ByItemReferenceFilter {
|
|
1334
|
-
/** Reference of the item */
|
|
1335
|
-
itemReference?: ItemReference;
|
|
1336
|
-
}
|
|
1337
|
-
interface Filter extends FilterFilterOneOf {
|
|
1338
|
-
/** A list of filters by reference */
|
|
1339
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1340
|
-
/** Type of the filter */
|
|
1341
|
-
type?: ListPoolsRequestTypeWithLiterals;
|
|
1342
|
-
/**
|
|
1343
|
-
* Module that is the source of the benefit pool creation.
|
|
1344
|
-
*
|
|
1345
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1346
|
-
*
|
|
1347
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1348
|
-
* @minLength 1
|
|
1349
|
-
* @maxLength 20
|
|
1350
|
-
*/
|
|
1351
|
-
namespace?: string;
|
|
1352
|
-
}
|
|
1353
|
-
/** @oneof */
|
|
1354
|
-
interface FilterFilterOneOf {
|
|
1355
|
-
/** A list of filters by reference */
|
|
1356
|
-
byItemReferenceOptions?: ByItemReference;
|
|
1357
|
-
}
|
|
1358
|
-
interface ListPoolsResponse {
|
|
1359
|
-
/**
|
|
1360
|
-
* The retrieved pools
|
|
1361
|
-
* @maxSize 100
|
|
1362
|
-
*/
|
|
1363
|
-
pools?: PoolWithItems[];
|
|
1364
|
-
/** Paging information */
|
|
1365
|
-
metadata?: CursorPagingMetadata;
|
|
1366
|
-
}
|
|
1367
|
-
interface PoolWithItems {
|
|
1368
|
-
/** The pool */
|
|
1369
|
-
pool?: Pool;
|
|
1370
|
-
/**
|
|
1371
|
-
* The items in the pool
|
|
1372
|
-
* @maxSize 100
|
|
1373
|
-
*/
|
|
1374
|
-
itemReference?: ItemReference[];
|
|
1375
|
-
}
|
|
1376
1308
|
interface BulkUpdatePoolsRequest {
|
|
1377
1309
|
/**
|
|
1378
1310
|
* Pools to update.
|
|
@@ -2056,11 +1988,11 @@ interface PoolsQueryBuilder {
|
|
|
2056
1988
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2057
1989
|
* @param value - Value to compare against.
|
|
2058
1990
|
*/
|
|
2059
|
-
eq: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
1991
|
+
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;
|
|
2060
1992
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2061
1993
|
* @param value - Value to compare against.
|
|
2062
1994
|
*/
|
|
2063
|
-
ne: (propertyName: '_id' | '_createdDate' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'status' | 'beneficiary
|
|
1995
|
+
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;
|
|
2064
1996
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
2065
1997
|
* @param value - Value to compare against.
|
|
2066
1998
|
*/
|
|
@@ -2081,11 +2013,7 @@ interface PoolsQueryBuilder {
|
|
|
2081
2013
|
* @param string - String to compare against. Case-insensitive.
|
|
2082
2014
|
*/
|
|
2083
2015
|
startsWith: (propertyName: '_id' | 'poolDefinitionId' | 'programDefinitionId' | 'programId' | 'beneficiary.memberId' | 'beneficiary.wixUserId' | 'details.benefits.itemSetId' | 'details.benefits.providerAppId' | 'namespace' | 'programDefinition.id' | 'program.id', value: string) => PoolsQueryBuilder;
|
|
2084
|
-
|
|
2085
|
-
* @param values - List of values to compare against.
|
|
2086
|
-
*/
|
|
2087
|
-
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;
|
|
2088
|
-
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;
|
|
2016
|
+
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;
|
|
2089
2017
|
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;
|
|
2090
2018
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
2091
2019
|
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;
|
|
@@ -2174,11 +2102,7 @@ type PoolQuery = {
|
|
|
2174
2102
|
}[];
|
|
2175
2103
|
};
|
|
2176
2104
|
declare const utils: {
|
|
2177
|
-
query:
|
|
2178
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Pool, PoolQuerySpec, PoolQuery>;
|
|
2179
|
-
Filter: _wix_sdk_types.FilterFactory<Pool, PoolQuerySpec>;
|
|
2180
|
-
Sort: _wix_sdk_types.SortFactory<PoolQuerySpec>;
|
|
2181
|
-
};
|
|
2105
|
+
query: _wix_sdk_types.QueryHelpers<Pool, PoolQuerySpec, PoolQuery>;
|
|
2182
2106
|
};
|
|
2183
2107
|
/**
|
|
2184
2108
|
* Redeems a specified benefit.
|
|
@@ -2458,4 +2382,4 @@ interface CheckBenefitEligibilityByFilterOptions {
|
|
|
2458
2382
|
poolSelector?: PoolSelector;
|
|
2459
2383
|
}
|
|
2460
2384
|
|
|
2461
|
-
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
|
|
2385
|
+
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 };
|
|
@@ -22,7 +22,6 @@ var index_typings_exports = {};
|
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
BenefitResultType: () => BenefitResultType,
|
|
24
24
|
IdentityType: () => IdentityType,
|
|
25
|
-
ListPoolsRequestType: () => ListPoolsRequestType,
|
|
26
25
|
PolicyExpressionType: () => PolicyExpressionType,
|
|
27
26
|
PoolOrigin: () => PoolOrigin,
|
|
28
27
|
PoolRenewalActionType: () => PoolRenewalActionType,
|
|
@@ -607,15 +606,12 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
607
606
|
var BenefitResultType = /* @__PURE__ */ ((BenefitResultType2) => {
|
|
608
607
|
BenefitResultType2["ELIGIBLE_BENEFIT"] = "ELIGIBLE_BENEFIT";
|
|
609
608
|
BenefitResultType2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
|
|
609
|
+
BenefitResultType2["POLICY_EXPRESSION_EVALUATED_TO_FALSE"] = "POLICY_EXPRESSION_EVALUATED_TO_FALSE";
|
|
610
610
|
BenefitResultType2["POOL_NOT_ACTIVE"] = "POOL_NOT_ACTIVE";
|
|
611
611
|
BenefitResultType2["BENEFIT_NOT_FOUND"] = "BENEFIT_NOT_FOUND";
|
|
612
612
|
BenefitResultType2["POOL_NOT_FOUND"] = "POOL_NOT_FOUND";
|
|
613
613
|
return BenefitResultType2;
|
|
614
614
|
})(BenefitResultType || {});
|
|
615
|
-
var ListPoolsRequestType = /* @__PURE__ */ ((ListPoolsRequestType2) => {
|
|
616
|
-
ListPoolsRequestType2["BY_ITEM_REFERENCE"] = "BY_ITEM_REFERENCE";
|
|
617
|
-
return ListPoolsRequestType2;
|
|
618
|
-
})(ListPoolsRequestType || {});
|
|
619
615
|
var ProvisionPoolsForProgramResponseType = /* @__PURE__ */ ((ProvisionPoolsForProgramResponseType2) => {
|
|
620
616
|
ProvisionPoolsForProgramResponseType2["SYNC"] = "SYNC";
|
|
621
617
|
ProvisionPoolsForProgramResponseType2["ASYNC"] = "ASYNC";
|
|
@@ -755,9 +751,7 @@ async function typedQueryPools(query, options) {
|
|
|
755
751
|
}
|
|
756
752
|
}
|
|
757
753
|
var utils = {
|
|
758
|
-
query:
|
|
759
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
760
|
-
}
|
|
754
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
761
755
|
};
|
|
762
756
|
async function redeemBenefit2(poolId, options) {
|
|
763
757
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -985,7 +979,6 @@ async function checkBenefitEligibilityByFilter2(options) {
|
|
|
985
979
|
0 && (module.exports = {
|
|
986
980
|
BenefitResultType,
|
|
987
981
|
IdentityType,
|
|
988
|
-
ListPoolsRequestType,
|
|
989
982
|
PolicyExpressionType,
|
|
990
983
|
PoolOrigin,
|
|
991
984
|
PoolRenewalActionType,
|