@seal-protocol/backendjs 0.0.52 → 0.0.53
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/lib/api/seal-client.d.ts
CHANGED
|
@@ -140,8 +140,8 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
140
140
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
141
141
|
* @param {string} [tokenOut]
|
|
142
142
|
* @param {string} [owner]
|
|
143
|
-
* @param {string} [
|
|
144
|
-
* @param {string} [
|
|
143
|
+
* @param {string} [fromPrice] decimal
|
|
144
|
+
* @param {string} [toPrice] decimal
|
|
145
145
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
146
146
|
* @param {boolean} [orderByDescending]
|
|
147
147
|
* @param {string} [paginationKey]
|
|
@@ -161,7 +161,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string,
|
|
164
|
+
getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
165
165
|
/**
|
|
166
166
|
*
|
|
167
167
|
* @param {string} [tokenInCoingeckoId]
|
|
@@ -363,8 +363,8 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
363
363
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
364
364
|
* @param {string} [tokenOut]
|
|
365
365
|
* @param {string} [owner]
|
|
366
|
-
* @param {string} [
|
|
367
|
-
* @param {string} [
|
|
366
|
+
* @param {string} [fromPrice] decimal
|
|
367
|
+
* @param {string} [toPrice] decimal
|
|
368
368
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
369
369
|
* @param {boolean} [orderByDescending]
|
|
370
370
|
* @param {string} [paginationKey]
|
|
@@ -384,7 +384,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string,
|
|
387
|
+
getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, depositToken?: string, minReservationPeriodSeconds?: number, minRemainingAmount?: string, minPriceMargin?: string, maxPriceMargin?: string, maxReservationDepositPerStable?: string, minRemainingAmountStableTerms?: string, onChainValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
|
|
388
388
|
/**
|
|
389
389
|
*
|
|
390
390
|
* @param {string} [tokenInCoingeckoId]
|
|
@@ -932,17 +932,17 @@ export interface SealClientGetOrdersRequest {
|
|
|
932
932
|
*/
|
|
933
933
|
readonly owner?: string;
|
|
934
934
|
/**
|
|
935
|
-
*
|
|
935
|
+
* decimal
|
|
936
936
|
* @type {string}
|
|
937
937
|
* @memberof SealClientGetOrders
|
|
938
938
|
*/
|
|
939
|
-
readonly
|
|
939
|
+
readonly fromPrice?: string;
|
|
940
940
|
/**
|
|
941
|
-
*
|
|
941
|
+
* decimal
|
|
942
942
|
* @type {string}
|
|
943
943
|
* @memberof SealClientGetOrders
|
|
944
944
|
*/
|
|
945
|
-
readonly
|
|
945
|
+
readonly toPrice?: string;
|
|
946
946
|
/**
|
|
947
947
|
*
|
|
948
948
|
* @type {'OrdersOrderByProperty_UNSPECIFIED' | 'OrdersOrderByProperty_OWNER' | 'OrdersOrderByProperty_TOKEN_IN' | 'OrdersOrderByProperty_TOKEN_OUT' | 'OrdersOrderByProperty_AMOUNT_IN' | 'OrdersOrderByProperty_PRICE' | 'OrdersOrderByProperty_DEADLINE' | 'OrdersOrderByProperty_CHAIN_ID' | 'OrdersOrderByProperty_DEPOSIT_TOKEN' | 'OrdersOrderByProperty_MIN_RESERVATION_DEPOSIT_AMOUNT' | 'OrdersOrderByProperty_REMAINING_AMOUNT' | 'OrdersOrderByProperty_RESERVED_AMOUNT' | 'OrdersOrderByProperty_FILLED_AMOUNT'}
|
package/lib/api/seal-client.js
CHANGED
|
@@ -437,8 +437,8 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
437
437
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
438
438
|
* @param {string} [tokenOut]
|
|
439
439
|
* @param {string} [owner]
|
|
440
|
-
* @param {string} [
|
|
441
|
-
* @param {string} [
|
|
440
|
+
* @param {string} [fromPrice] decimal
|
|
441
|
+
* @param {string} [toPrice] decimal
|
|
442
442
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
443
443
|
* @param {boolean} [orderByDescending]
|
|
444
444
|
* @param {string} [paginationKey]
|
|
@@ -458,7 +458,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
458
458
|
* @param {*} [options] Override http request option.
|
|
459
459
|
* @throws {RequiredError}
|
|
460
460
|
*/
|
|
461
|
-
getOrders: async (chainId, tokenIn, tokenOut, owner,
|
|
461
|
+
getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options = {}) => {
|
|
462
462
|
const localVarPath = `/seal/orders`;
|
|
463
463
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
464
464
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -481,11 +481,11 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
481
481
|
if (owner !== undefined) {
|
|
482
482
|
localVarQueryParameter['owner'] = owner;
|
|
483
483
|
}
|
|
484
|
-
if (
|
|
485
|
-
localVarQueryParameter['
|
|
484
|
+
if (fromPrice !== undefined) {
|
|
485
|
+
localVarQueryParameter['fromPrice'] = fromPrice;
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
488
|
-
localVarQueryParameter['
|
|
487
|
+
if (toPrice !== undefined) {
|
|
488
|
+
localVarQueryParameter['toPrice'] = toPrice;
|
|
489
489
|
}
|
|
490
490
|
if (orderByProperty !== undefined) {
|
|
491
491
|
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
@@ -1081,8 +1081,8 @@ const SealClientFp = function (configuration) {
|
|
|
1081
1081
|
* @param {string} [tokenIn] Token In The token to exchange from.
|
|
1082
1082
|
* @param {string} [tokenOut]
|
|
1083
1083
|
* @param {string} [owner]
|
|
1084
|
-
* @param {string} [
|
|
1085
|
-
* @param {string} [
|
|
1084
|
+
* @param {string} [fromPrice] decimal
|
|
1085
|
+
* @param {string} [toPrice] decimal
|
|
1086
1086
|
* @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
|
|
1087
1087
|
* @param {boolean} [orderByDescending]
|
|
1088
1088
|
* @param {string} [paginationKey]
|
|
@@ -1102,8 +1102,8 @@ const SealClientFp = function (configuration) {
|
|
|
1102
1102
|
* @param {*} [options] Override http request option.
|
|
1103
1103
|
* @throws {RequiredError}
|
|
1104
1104
|
*/
|
|
1105
|
-
async getOrders(chainId, tokenIn, tokenOut, owner,
|
|
1106
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner,
|
|
1105
|
+
async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options) {
|
|
1106
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, onChainValue, options);
|
|
1107
1107
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1108
1108
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
1109
1109
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1352,7 +1352,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1352
1352
|
* @throws {RequiredError}
|
|
1353
1353
|
*/
|
|
1354
1354
|
getOrders(requestParameters = {}, options) {
|
|
1355
|
-
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.
|
|
1355
|
+
return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, options).then((request) => request(axios, basePath));
|
|
1356
1356
|
},
|
|
1357
1357
|
/**
|
|
1358
1358
|
*
|
|
@@ -1550,7 +1550,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1550
1550
|
* @memberof SealClient
|
|
1551
1551
|
*/
|
|
1552
1552
|
getOrders(requestParameters = {}, options) {
|
|
1553
|
-
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.
|
|
1553
|
+
return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, requestParameters.depositToken, requestParameters.minReservationPeriodSeconds, requestParameters.minRemainingAmount, requestParameters.minPriceMargin, requestParameters.maxPriceMargin, requestParameters.maxReservationDepositPerStable, requestParameters.minRemainingAmountStableTerms, requestParameters.onChainValue, options).then((request) => request(this.axios, this.basePath));
|
|
1554
1554
|
}
|
|
1555
1555
|
/**
|
|
1556
1556
|
*
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SealOrder } from './seal-order';
|
|
13
12
|
import type { SealOrderActivity } from './seal-order-activity';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -23,12 +22,6 @@ export interface SealGetReservationSettlementActivitiesResponse {
|
|
|
23
22
|
* @memberof SealGetReservationSettlementActivitiesResponse
|
|
24
23
|
*/
|
|
25
24
|
'activities': Array<SealOrderActivity>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {SealOrder}
|
|
29
|
-
* @memberof SealGetReservationSettlementActivitiesResponse
|
|
30
|
-
*/
|
|
31
|
-
'order': SealOrder;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {string}
|
|
@@ -53,12 +53,6 @@ export interface SealOrder {
|
|
|
53
53
|
* @memberof SealOrder
|
|
54
54
|
*/
|
|
55
55
|
'price'?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof SealOrder
|
|
60
|
-
*/
|
|
61
|
-
'priceDecimal'?: string;
|
|
62
56
|
/**
|
|
63
57
|
*
|
|
64
58
|
* @type {string}
|
|
@@ -89,12 +83,6 @@ export interface SealOrder {
|
|
|
89
83
|
* @memberof SealOrder
|
|
90
84
|
*/
|
|
91
85
|
'minFillRatio'?: string;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof SealOrder
|
|
96
|
-
*/
|
|
97
|
-
'minFillRatioDecimal'?: string;
|
|
98
86
|
/**
|
|
99
87
|
*
|
|
100
88
|
* @type {boolean}
|
package/package.json
CHANGED