@wix/auto_sdk_benefit-programs_pools 1.0.45 → 1.0.47
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 +4 -4
- package/build/cjs/index.js +25 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -6
- package/build/cjs/index.typings.js +17 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -3
- package/build/cjs/meta.js +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +25 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -6
- package/build/es/index.typings.mjs +17 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -3
- package/build/es/meta.mjs +3 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +25 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +107 -6
- package/build/internal/cjs/index.typings.js +17 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -3
- package/build/internal/cjs/meta.js +3 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +25 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +107 -6
- package/build/internal/es/index.typings.mjs +17 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -3
- package/build/internal/es/meta.mjs +3 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -451,7 +451,7 @@ interface ProgramDefinitionInfo {
|
|
|
451
451
|
*/
|
|
452
452
|
externalId?: string | null;
|
|
453
453
|
/**
|
|
454
|
-
*
|
|
454
|
+
* Display name of the program definition.
|
|
455
455
|
* @readonly
|
|
456
456
|
* @maxLength 128
|
|
457
457
|
*/
|
|
@@ -477,7 +477,7 @@ interface PoolProgramInfo {
|
|
|
477
477
|
*/
|
|
478
478
|
externalId?: string | null;
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* Display name of the program.
|
|
481
481
|
* @readonly
|
|
482
482
|
* @maxLength 64
|
|
483
483
|
*/
|
|
@@ -891,6 +891,26 @@ interface NotEnoughBalance {
|
|
|
891
891
|
* @decimalValue options { maxScale:4 }
|
|
892
892
|
*/
|
|
893
893
|
requestedBalance?: string;
|
|
894
|
+
/**
|
|
895
|
+
* Pool information.
|
|
896
|
+
* @internal
|
|
897
|
+
*/
|
|
898
|
+
poolInfo?: PoolInfo;
|
|
899
|
+
/**
|
|
900
|
+
* Program definition information.
|
|
901
|
+
* @internal
|
|
902
|
+
*/
|
|
903
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
904
|
+
/**
|
|
905
|
+
* Program information.
|
|
906
|
+
* @internal
|
|
907
|
+
*/
|
|
908
|
+
programInfo?: PoolProgramInfo;
|
|
909
|
+
/**
|
|
910
|
+
* Benefit information.
|
|
911
|
+
* @internal
|
|
912
|
+
*/
|
|
913
|
+
benefitInfo?: BenefitInfo;
|
|
894
914
|
}
|
|
895
915
|
interface PoolInfo {
|
|
896
916
|
/** Current pool balance */
|
|
@@ -950,6 +970,26 @@ interface PolicyExpressionEvaluatedToFalse {
|
|
|
950
970
|
* @maxSize 10
|
|
951
971
|
*/
|
|
952
972
|
failureDetails?: FailureDetails[];
|
|
973
|
+
/**
|
|
974
|
+
* Pool information.
|
|
975
|
+
* @internal
|
|
976
|
+
*/
|
|
977
|
+
poolInfo?: PoolInfo;
|
|
978
|
+
/**
|
|
979
|
+
* Program definition information.
|
|
980
|
+
* @internal
|
|
981
|
+
*/
|
|
982
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
983
|
+
/**
|
|
984
|
+
* Program information.
|
|
985
|
+
* @internal
|
|
986
|
+
*/
|
|
987
|
+
programInfo?: PoolProgramInfo;
|
|
988
|
+
/**
|
|
989
|
+
* Benefit information.
|
|
990
|
+
* @internal
|
|
991
|
+
*/
|
|
992
|
+
benefitInfo?: BenefitInfo;
|
|
953
993
|
}
|
|
954
994
|
interface FailureDetails {
|
|
955
995
|
/**
|
|
@@ -984,6 +1024,26 @@ interface PoolNotActive {
|
|
|
984
1024
|
poolId?: string;
|
|
985
1025
|
/** Pool status. */
|
|
986
1026
|
poolStatus?: PoolStatusWithLiterals;
|
|
1027
|
+
/**
|
|
1028
|
+
* Pool information.
|
|
1029
|
+
* @internal
|
|
1030
|
+
*/
|
|
1031
|
+
poolInfo?: PoolInfo;
|
|
1032
|
+
/**
|
|
1033
|
+
* Program definition information.
|
|
1034
|
+
* @internal
|
|
1035
|
+
*/
|
|
1036
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1037
|
+
/**
|
|
1038
|
+
* Program information.
|
|
1039
|
+
* @internal
|
|
1040
|
+
*/
|
|
1041
|
+
programInfo?: PoolProgramInfo;
|
|
1042
|
+
/**
|
|
1043
|
+
* Benefit information.
|
|
1044
|
+
* @internal
|
|
1045
|
+
*/
|
|
1046
|
+
benefitInfo?: BenefitInfo;
|
|
987
1047
|
}
|
|
988
1048
|
interface PoolNotFound {
|
|
989
1049
|
/**
|
|
@@ -1012,9 +1072,24 @@ interface BenefitNotFound {
|
|
|
1012
1072
|
poolId?: string;
|
|
1013
1073
|
/**
|
|
1014
1074
|
* Specified benefit key.
|
|
1015
|
-
* @
|
|
1075
|
+
* @maxLength 64
|
|
1016
1076
|
*/
|
|
1017
1077
|
benefitKey?: string | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Pool information.
|
|
1080
|
+
* @internal
|
|
1081
|
+
*/
|
|
1082
|
+
poolInfo?: PoolInfo;
|
|
1083
|
+
/**
|
|
1084
|
+
* Program definition information.
|
|
1085
|
+
* @internal
|
|
1086
|
+
*/
|
|
1087
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1088
|
+
/**
|
|
1089
|
+
* Program information.
|
|
1090
|
+
* @internal
|
|
1091
|
+
*/
|
|
1092
|
+
programInfo?: PoolProgramInfo;
|
|
1018
1093
|
}
|
|
1019
1094
|
interface ReserveBenefitRequest {
|
|
1020
1095
|
/**
|
|
@@ -1188,6 +1263,26 @@ interface EligibleBenefit {
|
|
|
1188
1263
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
1189
1264
|
*/
|
|
1190
1265
|
price?: string | null;
|
|
1266
|
+
/**
|
|
1267
|
+
* Pool information.
|
|
1268
|
+
* @internal
|
|
1269
|
+
*/
|
|
1270
|
+
poolInfo?: PoolInfo;
|
|
1271
|
+
/**
|
|
1272
|
+
* Benefit information.
|
|
1273
|
+
* @internal
|
|
1274
|
+
*/
|
|
1275
|
+
benefitInfo?: BenefitInfo;
|
|
1276
|
+
/**
|
|
1277
|
+
* Program definition information.
|
|
1278
|
+
* @internal
|
|
1279
|
+
*/
|
|
1280
|
+
programDefinitionInfo?: ProgramDefinitionInfo;
|
|
1281
|
+
/**
|
|
1282
|
+
* Program information.
|
|
1283
|
+
* @internal
|
|
1284
|
+
*/
|
|
1285
|
+
programInfo?: PoolProgramInfo;
|
|
1191
1286
|
}
|
|
1192
1287
|
declare enum EligibilityCheckResultType {
|
|
1193
1288
|
/** Unknown eligibility. */
|
|
@@ -1402,8 +1497,12 @@ interface BulkUpdatePoolsResponse {
|
|
|
1402
1497
|
interface BulkPoolResult {
|
|
1403
1498
|
/** Pool metadata. */
|
|
1404
1499
|
poolMetadata?: ItemMetadata;
|
|
1500
|
+
/** Item metadata. */
|
|
1501
|
+
itemMetadata?: ItemMetadata;
|
|
1405
1502
|
/** Pool data. */
|
|
1406
1503
|
pool?: Pool;
|
|
1504
|
+
/** Pool data. */
|
|
1505
|
+
item?: Pool;
|
|
1407
1506
|
}
|
|
1408
1507
|
interface ItemMetadata {
|
|
1409
1508
|
/**
|
|
@@ -1951,7 +2050,9 @@ interface UpdatePool {
|
|
|
1951
2050
|
* @applicableIdentity APP
|
|
1952
2051
|
* @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
|
|
1953
2052
|
*/
|
|
1954
|
-
declare function queryPools(): PoolsQueryBuilder;
|
|
2053
|
+
declare function queryPools(options?: QueryPoolsOptions): PoolsQueryBuilder;
|
|
2054
|
+
interface QueryPoolsOptions {
|
|
2055
|
+
}
|
|
1955
2056
|
interface QueryCursorResult {
|
|
1956
2057
|
cursors: Cursors;
|
|
1957
2058
|
hasNext: () => boolean;
|
|
@@ -2015,7 +2116,7 @@ interface PoolsQueryBuilder {
|
|
|
2015
2116
|
* @fqn wix.benefit_programs.v1.pool.PoolService.QueryPools
|
|
2016
2117
|
* @requiredField query
|
|
2017
2118
|
*/
|
|
2018
|
-
declare function typedQueryPools(query: CursorQuery): Promise<NonNullablePaths<QueryPoolsResponse, `pools` | `pools.${number}.status` | `pools.${number}.beneficiary.anonymousVisitorId` | `pools.${number}.beneficiary.memberId` | `pools.${number}.beneficiary.wixUserId` | `pools.${number}.details.creditConfiguration.amount` | `pools.${number}.displayName` | `pools.${number}.programDefinition._id` | `pools.${number}.program._id`, 6>>;
|
|
2119
|
+
declare function typedQueryPools(query: CursorQuery, options?: QueryPoolsOptions): Promise<NonNullablePaths<QueryPoolsResponse, `pools` | `pools.${number}.status` | `pools.${number}.beneficiary.anonymousVisitorId` | `pools.${number}.beneficiary.memberId` | `pools.${number}.beneficiary.wixUserId` | `pools.${number}.details.creditConfiguration.amount` | `pools.${number}.displayName` | `pools.${number}.programDefinition._id` | `pools.${number}.program._id`, 6>>;
|
|
2019
2120
|
/**
|
|
2020
2121
|
* Redeems a specified benefit.
|
|
2021
2122
|
*
|
|
@@ -2267,4 +2368,4 @@ interface CheckEligibilityByFilterOptions {
|
|
|
2267
2368
|
additionalData?: Record<string, any> | null;
|
|
2268
2369
|
}
|
|
2269
2370
|
|
|
2270
|
-
export { type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolFilter, type PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, TimePeriod, type TimePeriodWithLiterals, Type, type TypeWithLiterals, type Update, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool };
|
|
2371
|
+
export { type ActionEvent, type ApplicationError, type AsyncResult, type BalanceAmount, type Benefit, type BenefitAlreadyRedeemed, type BenefitInfo, type BenefitNotFound, type BenefitRedeemed, type BenefitReservationCanceled, type BenefitReservationReleased, type BenefitReserved, type BenefitSelector, type BulkActionMetadata, type BulkCheckBenefitEligibilityOptions, type BulkCheckBenefitEligibilityRequest, type BulkCheckBenefitEligibilityResponse, type BulkEligibilityCheckResult, type BulkPoolResult, type BulkUpdatePoolsOptions, type BulkUpdatePoolsRequest, type BulkUpdatePoolsResponse, type ByItemReference, type ByItemReferenceFilter, type ByPoolDefinitionIdAndProgramDefinitionIdOptions, type ByProgramIdOptions, type CancelBenefitReservationRequest, type CancelBenefitReservationResponse, type CheckBenefitEligibilityOptions, type CheckBenefitEligibilityRequest, type CheckBenefitEligibilityResponse, type CheckEligibilityByFilterOptions, type CheckEligibilityByFilterRequest, type CheckEligibilityByFilterResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CountNumberOfPoolsInProvisioningStatusRequest, type CountNumberOfPoolsInProvisioningStatusResponse, type CreatePoolRequest, type CreatePoolResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolRequest, type DeletePoolResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EligibilityCheckResult, type EligibilityCheckResultResultOneOf, EligibilityCheckResultType, type EligibilityCheckResultTypeWithLiterals, type Eligible, type EligibleBenefit, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FailureDetails, type Filter, type FilterFilterOneOf, type FixedIntervalPolicy, type GetEligibleBenefitsApplicationErrors, type GetEligibleBenefitsOptions, type GetEligibleBenefitsRequest, type GetEligibleBenefitsResponse, type GetPoolRequest, type GetPoolResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidPoolDefinitionReference, type ItemMetadata, type ItemReference, type ListPoolsRequest, ListPoolsRequestType, type ListPoolsRequestTypeWithLiterals, type ListPoolsResponse, type MaskedPool, type MessageEnvelope, type NotEnoughBalance, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionEvaluatedToFalse, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type Pool, type PoolDefinitionAndProgramDefinition, type PoolDefinitionLookupId, type PoolDefinitionLookupIdIdOneOf, type PoolEnded, type PoolFilter, type PoolInfo, type PoolNotActive, type PoolNotFound, PoolOrigin, type PoolOriginWithLiterals, type PoolPaused, type PoolProgramInfo, type PoolProvisionJobFinished, type PoolProvisioned, type PoolRenewalAction, type PoolRenewalActionActionOneOf, PoolRenewalActionType, type PoolRenewalActionTypeWithLiterals, type PoolRenewed, type PoolResumed, PoolSelectorType, type PoolSelectorTypeWithLiterals, PoolStatus, type PoolStatusUpdateJobFinished, type PoolStatusUpdateJobFinishedContextOneOf, type PoolStatusUpdateParamsPoolInfo, type PoolStatusWithLiterals, type PoolWithItems, type PoolsQueryBuilder, type PoolsQueryResult, type ProgramDefinitionInfo, type ProgramInfo, type ProvisionPoolsForProgramRequest, type ProvisionPoolsForProgramResponse, type ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, type ProvisionPoolsForProgramResponseTypeWithLiterals, type QueryPoolsOptions, type QueryPoolsRequest, type QueryPoolsResponse, type RateLimitedPolicy, type RedeemBenefitApplicationErrors, type RedeemBenefitOptions, type RedeemBenefitRequest, type RedeemBenefitResponse, type RedemptionDetails, type ReleaseBenefitReservationRequest, type ReleaseBenefitReservationResponse, type RenewPoolsForProgramRequest, type RenewPoolsForProgramResponse, type ReserveBenefitRequest, type ReserveBenefitResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncResult, TimePeriod, type TimePeriodWithLiterals, Type, type TypeWithLiterals, type Update, type UpdatePool, type UpdatePoolRequest, type UpdatePoolResponse, type UpdatePoolStatusRequest, type UpdatePoolStatusRequestPoolSelectorOneOf, type UpdatePoolStatusResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkEligibilityByFilter, getEligibleBenefits, getPool, queryPools, redeemBenefit, typedQueryPools, updatePool };
|
|
@@ -503,7 +503,9 @@ function bulkUpdatePools(payload) {
|
|
|
503
503
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
504
504
|
paths: [
|
|
505
505
|
{ path: "results.pool.createdDate" },
|
|
506
|
-
{ path: "results.pool.updatedDate" }
|
|
506
|
+
{ path: "results.pool.updatedDate" },
|
|
507
|
+
{ path: "results.item.createdDate" },
|
|
508
|
+
{ path: "results.item.updatedDate" }
|
|
507
509
|
]
|
|
508
510
|
}
|
|
509
511
|
])
|
|
@@ -691,11 +693,14 @@ async function updatePool2(_id, pool) {
|
|
|
691
693
|
throw transformedError;
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
|
-
function queryPools2() {
|
|
695
|
-
const { httpClient, sideEffects } = arguments[
|
|
696
|
+
function queryPools2(options) {
|
|
697
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
696
698
|
return (0, import_query_builder.queryBuilder)({
|
|
697
699
|
func: async (payload) => {
|
|
698
|
-
const reqOpts = queryPools(
|
|
700
|
+
const reqOpts = queryPools({
|
|
701
|
+
...payload,
|
|
702
|
+
...options ?? {}
|
|
703
|
+
});
|
|
699
704
|
sideEffects?.onSiteCall?.();
|
|
700
705
|
try {
|
|
701
706
|
const result = await httpClient.request(reqOpts);
|
|
@@ -707,7 +712,7 @@ function queryPools2() {
|
|
|
707
712
|
}
|
|
708
713
|
},
|
|
709
714
|
requestTransformer: (query) => {
|
|
710
|
-
const args = [query,
|
|
715
|
+
const args = [query, options];
|
|
711
716
|
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
712
717
|
...args?.[1],
|
|
713
718
|
query: args?.[0]
|
|
@@ -734,9 +739,12 @@ function queryPools2() {
|
|
|
734
739
|
transformationPaths: {}
|
|
735
740
|
});
|
|
736
741
|
}
|
|
737
|
-
async function typedQueryPools(query) {
|
|
738
|
-
const { httpClient, sideEffects } = arguments[
|
|
739
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
742
|
+
async function typedQueryPools(query, options) {
|
|
743
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
744
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
745
|
+
query,
|
|
746
|
+
...options
|
|
747
|
+
});
|
|
740
748
|
const reqOpts = queryPools(payload);
|
|
741
749
|
sideEffects?.onSiteCall?.();
|
|
742
750
|
try {
|
|
@@ -751,7 +759,7 @@ async function typedQueryPools(query) {
|
|
|
751
759
|
explicitPathsToArguments: { query: "$[0]" },
|
|
752
760
|
singleArgumentUnchanged: false
|
|
753
761
|
},
|
|
754
|
-
["query"]
|
|
762
|
+
["query", "options"]
|
|
755
763
|
);
|
|
756
764
|
sideEffects?.onError?.(err);
|
|
757
765
|
throw transformedError;
|