@seal-protocol/backendjs 0.0.103 → 0.0.108
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/codegen/api/seal-client.d.ts +187 -54
- package/lib/codegen/api/seal-client.js +185 -65
- package/lib/codegen/model/index.d.ts +6 -2
- package/lib/codegen/model/index.js +6 -2
- package/lib/codegen/model/{seal-submit-quote-request.d.ts → seal-create-rfq-quote-request.d.ts} +13 -13
- package/lib/codegen/model/{seal-submit-rfq-quote-response.d.ts → seal-create-rfq-quote-response.d.ts} +3 -3
- package/lib/codegen/model/{seal-submit-rfq-response.d.ts → seal-get-rfq-commitment-response.d.ts} +11 -4
- package/lib/codegen/model/seal-rfq-commitment.d.ts +163 -0
- package/lib/codegen/model/seal-rfq-contract-params.d.ts +0 -6
- package/lib/codegen/model/seal-rfq-quote.d.ts +49 -8
- package/lib/codegen/model/types-rfq-commitment-order-by-property.d.ts +22 -0
- package/lib/codegen/model/types-rfq-commitment-order-by-property.js +28 -0
- package/lib/codegen/model/types-rfq-commitment-order-by.d.ts +31 -0
- package/package.json +1 -1
- package/lib/codegen/model/seal-submit-quote-response.d.ts +0 -24
- package/lib/codegen/model/seal-submit-rfq-quote-request.d.ts +0 -84
- package/lib/codegen/model/seal-submit-rfq-request.d.ts +0 -54
- package/lib/codegen/model/seal-submit-rfq-response.js +0 -15
- /package/lib/codegen/model/{seal-submit-quote-request.js → seal-create-rfq-quote-request.js} +0 -0
- /package/lib/codegen/model/{seal-submit-quote-response.js → seal-create-rfq-quote-response.js} +0 -0
- /package/lib/codegen/model/{seal-submit-rfq-quote-request.js → seal-get-rfq-commitment-response.js} +0 -0
- /package/lib/codegen/model/{seal-submit-rfq-quote-response.js → seal-rfq-commitment.js} +0 -0
- /package/lib/codegen/model/{seal-submit-rfq-request.js → types-rfq-commitment-order-by.js} +0 -0
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetTokensOrderByPropertyEnum = exports.GetTokenPermitApprovalsOrderByPropertyEnum = exports.GetRfqRequestsOrderByPropertyEnum = exports.GetRfqQuotesOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = exports.GetOrderActivitiesTypeEnum = exports.GetOrderActivitiesOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetTokensOrderByPropertyEnum = exports.GetTokenPermitApprovalsOrderByPropertyEnum = exports.GetRfqRequestsOrderByPropertyEnum = exports.GetRfqQuotesOrderByPropertyEnum = exports.GetRfqCommitmentsOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = exports.GetOrderActivitiesTypeEnum = exports.GetOrderActivitiesOrderByPropertyEnum = exports.GetChainsOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -192,6 +192,35 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
options: localVarRequestOptions,
|
|
193
193
|
};
|
|
194
194
|
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {SealCreateRfqQuoteRequest} body
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
createRfqQuote: async (body, options = {}) => {
|
|
202
|
+
// verify required parameter 'body' is not null or undefined
|
|
203
|
+
(0, common_1.assertParamExists)('createRfqQuote', 'body', body);
|
|
204
|
+
const localVarPath = `/seal/quote/create`;
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
if (configuration) {
|
|
209
|
+
baseOptions = configuration.baseOptions;
|
|
210
|
+
}
|
|
211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
213
|
+
const localVarQueryParameter = {};
|
|
214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
218
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
219
|
+
return {
|
|
220
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
},
|
|
195
224
|
/**
|
|
196
225
|
*
|
|
197
226
|
* @param {SealCreateRfqRequestRequest} body
|
|
@@ -709,6 +738,74 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
709
738
|
options: localVarRequestOptions,
|
|
710
739
|
};
|
|
711
740
|
},
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
|
|
744
|
+
* @param {boolean} [orderByDescending]
|
|
745
|
+
* @param {string} [paginationKey]
|
|
746
|
+
* @param {number} [paginationLimit]
|
|
747
|
+
* @param {boolean} [paginationCountTotal]
|
|
748
|
+
* @param {string} [chainId]
|
|
749
|
+
* @param {string} [maker]
|
|
750
|
+
* @param {string} [taker]
|
|
751
|
+
* @param {string} [tokenIn]
|
|
752
|
+
* @param {string} [tokenOut]
|
|
753
|
+
* @param {string} [commitmentId]
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
getRfqCommitments: async (orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, chainId, maker, taker, tokenIn, tokenOut, commitmentId, options = {}) => {
|
|
758
|
+
const localVarPath = `/seal/rfq/commitments`;
|
|
759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
761
|
+
let baseOptions;
|
|
762
|
+
if (configuration) {
|
|
763
|
+
baseOptions = configuration.baseOptions;
|
|
764
|
+
}
|
|
765
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
766
|
+
const localVarHeaderParameter = {};
|
|
767
|
+
const localVarQueryParameter = {};
|
|
768
|
+
if (orderByProperty !== undefined) {
|
|
769
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
770
|
+
}
|
|
771
|
+
if (orderByDescending !== undefined) {
|
|
772
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
773
|
+
}
|
|
774
|
+
if (paginationKey !== undefined) {
|
|
775
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
776
|
+
}
|
|
777
|
+
if (paginationLimit !== undefined) {
|
|
778
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
779
|
+
}
|
|
780
|
+
if (paginationCountTotal !== undefined) {
|
|
781
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
782
|
+
}
|
|
783
|
+
if (chainId !== undefined) {
|
|
784
|
+
localVarQueryParameter['chainId'] = chainId;
|
|
785
|
+
}
|
|
786
|
+
if (maker !== undefined) {
|
|
787
|
+
localVarQueryParameter['maker'] = maker;
|
|
788
|
+
}
|
|
789
|
+
if (taker !== undefined) {
|
|
790
|
+
localVarQueryParameter['taker'] = taker;
|
|
791
|
+
}
|
|
792
|
+
if (tokenIn !== undefined) {
|
|
793
|
+
localVarQueryParameter['tokenIn'] = tokenIn;
|
|
794
|
+
}
|
|
795
|
+
if (tokenOut !== undefined) {
|
|
796
|
+
localVarQueryParameter['tokenOut'] = tokenOut;
|
|
797
|
+
}
|
|
798
|
+
if (commitmentId !== undefined) {
|
|
799
|
+
localVarQueryParameter['commitmentId'] = commitmentId;
|
|
800
|
+
}
|
|
801
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
804
|
+
return {
|
|
805
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
};
|
|
808
|
+
},
|
|
712
809
|
/**
|
|
713
810
|
*
|
|
714
811
|
* @param {string} owner
|
|
@@ -757,7 +854,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
757
854
|
* @param {string} [requestId]
|
|
758
855
|
* @param {string} [offerer]
|
|
759
856
|
* @param {string} [id]
|
|
760
|
-
* @param {
|
|
857
|
+
* @param {string} [onChain]
|
|
761
858
|
* @param {number} [settlementTimeAfter]
|
|
762
859
|
* @param {number} [deadlineAfter]
|
|
763
860
|
* @param {*} [options] Override http request option.
|
|
@@ -839,7 +936,7 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
839
936
|
* @param {number} [requestDeadlineAfter]
|
|
840
937
|
* @param {string} [depositToken]
|
|
841
938
|
* @param {string} [minDepositLessThan]
|
|
842
|
-
* @param {string} [minDepositPerStableLessThan] TODO requires price
|
|
939
|
+
* @param {string} [minDepositPerStableLessThan] TODO requires price.
|
|
843
940
|
* @param {string} [excludedOfferer] TODO requires join
|
|
844
941
|
* @param {*} [options] Override http request option.
|
|
845
942
|
* @throws {RequiredError}
|
|
@@ -1109,35 +1206,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
1109
1206
|
options: localVarRequestOptions,
|
|
1110
1207
|
};
|
|
1111
1208
|
},
|
|
1112
|
-
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @param {SealSubmitRfqQuoteRequest} body
|
|
1115
|
-
* @param {*} [options] Override http request option.
|
|
1116
|
-
* @throws {RequiredError}
|
|
1117
|
-
*/
|
|
1118
|
-
submitRfqQuote: async (body, options = {}) => {
|
|
1119
|
-
// verify required parameter 'body' is not null or undefined
|
|
1120
|
-
(0, common_1.assertParamExists)('submitRfqQuote', 'body', body);
|
|
1121
|
-
const localVarPath = `/seal/quote/submit`;
|
|
1122
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1123
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1124
|
-
let baseOptions;
|
|
1125
|
-
if (configuration) {
|
|
1126
|
-
baseOptions = configuration.baseOptions;
|
|
1127
|
-
}
|
|
1128
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1129
|
-
const localVarHeaderParameter = {};
|
|
1130
|
-
const localVarQueryParameter = {};
|
|
1131
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1132
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1133
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1134
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1136
|
-
return {
|
|
1137
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1138
|
-
options: localVarRequestOptions,
|
|
1139
|
-
};
|
|
1140
|
-
},
|
|
1141
1209
|
/**
|
|
1142
1210
|
*
|
|
1143
1211
|
* @param {*} [options] Override http request option.
|
|
@@ -1235,6 +1303,18 @@ const SealClientFp = function (configuration) {
|
|
|
1235
1303
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
1236
1304
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1237
1305
|
},
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @param {SealCreateRfqQuoteRequest} body
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
async createRfqQuote(body, options) {
|
|
1313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRfqQuote(body, options);
|
|
1314
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1315
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createRfqQuote']?.[localVarOperationServerIndex]?.url;
|
|
1316
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1317
|
+
},
|
|
1238
1318
|
/**
|
|
1239
1319
|
*
|
|
1240
1320
|
* @param {SealCreateRfqRequestRequest} body
|
|
@@ -1412,6 +1492,28 @@ const SealClientFp = function (configuration) {
|
|
|
1412
1492
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
|
|
1413
1493
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1414
1494
|
},
|
|
1495
|
+
/**
|
|
1496
|
+
*
|
|
1497
|
+
* @param {GetRfqCommitmentsOrderByPropertyEnum} [orderByProperty]
|
|
1498
|
+
* @param {boolean} [orderByDescending]
|
|
1499
|
+
* @param {string} [paginationKey]
|
|
1500
|
+
* @param {number} [paginationLimit]
|
|
1501
|
+
* @param {boolean} [paginationCountTotal]
|
|
1502
|
+
* @param {string} [chainId]
|
|
1503
|
+
* @param {string} [maker]
|
|
1504
|
+
* @param {string} [taker]
|
|
1505
|
+
* @param {string} [tokenIn]
|
|
1506
|
+
* @param {string} [tokenOut]
|
|
1507
|
+
* @param {string} [commitmentId]
|
|
1508
|
+
* @param {*} [options] Override http request option.
|
|
1509
|
+
* @throws {RequiredError}
|
|
1510
|
+
*/
|
|
1511
|
+
async getRfqCommitments(orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, chainId, maker, taker, tokenIn, tokenOut, commitmentId, options) {
|
|
1512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqCommitments(orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, chainId, maker, taker, tokenIn, tokenOut, commitmentId, options);
|
|
1513
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1514
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqCommitments']?.[localVarOperationServerIndex]?.url;
|
|
1515
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1516
|
+
},
|
|
1415
1517
|
/**
|
|
1416
1518
|
*
|
|
1417
1519
|
* @param {string} owner
|
|
@@ -1437,7 +1539,7 @@ const SealClientFp = function (configuration) {
|
|
|
1437
1539
|
* @param {string} [requestId]
|
|
1438
1540
|
* @param {string} [offerer]
|
|
1439
1541
|
* @param {string} [id]
|
|
1440
|
-
* @param {
|
|
1542
|
+
* @param {string} [onChain]
|
|
1441
1543
|
* @param {number} [settlementTimeAfter]
|
|
1442
1544
|
* @param {number} [deadlineAfter]
|
|
1443
1545
|
* @param {*} [options] Override http request option.
|
|
@@ -1465,7 +1567,7 @@ const SealClientFp = function (configuration) {
|
|
|
1465
1567
|
* @param {number} [requestDeadlineAfter]
|
|
1466
1568
|
* @param {string} [depositToken]
|
|
1467
1569
|
* @param {string} [minDepositLessThan]
|
|
1468
|
-
* @param {string} [minDepositPerStableLessThan] TODO requires price
|
|
1570
|
+
* @param {string} [minDepositPerStableLessThan] TODO requires price.
|
|
1469
1571
|
* @param {string} [excludedOfferer] TODO requires join
|
|
1470
1572
|
* @param {*} [options] Override http request option.
|
|
1471
1573
|
* @throws {RequiredError}
|
|
@@ -1550,18 +1652,6 @@ const SealClientFp = function (configuration) {
|
|
|
1550
1652
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.issueGreenlight']?.[localVarOperationServerIndex]?.url;
|
|
1551
1653
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1552
1654
|
},
|
|
1553
|
-
/**
|
|
1554
|
-
*
|
|
1555
|
-
* @param {SealSubmitRfqQuoteRequest} body
|
|
1556
|
-
* @param {*} [options] Override http request option.
|
|
1557
|
-
* @throws {RequiredError}
|
|
1558
|
-
*/
|
|
1559
|
-
async submitRfqQuote(body, options) {
|
|
1560
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitRfqQuote(body, options);
|
|
1561
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1562
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.submitRfqQuote']?.[localVarOperationServerIndex]?.url;
|
|
1563
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1564
|
-
},
|
|
1565
1655
|
/**
|
|
1566
1656
|
*
|
|
1567
1657
|
* @param {*} [options] Override http request option.
|
|
@@ -1627,6 +1717,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1627
1717
|
createOrder(requestParameters, options) {
|
|
1628
1718
|
return localVarFp.createOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1629
1719
|
},
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* @param {SealClientCreateRfqQuoteRequest} requestParameters Request parameters.
|
|
1723
|
+
* @param {*} [options] Override http request option.
|
|
1724
|
+
* @throws {RequiredError}
|
|
1725
|
+
*/
|
|
1726
|
+
createRfqQuote(requestParameters, options) {
|
|
1727
|
+
return localVarFp.createRfqQuote(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1728
|
+
},
|
|
1630
1729
|
/**
|
|
1631
1730
|
*
|
|
1632
1731
|
* @param {SealClientCreateRfqRequestRequest} requestParameters Request parameters.
|
|
@@ -1717,6 +1816,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1717
1816
|
getPairs(requestParameters = {}, options) {
|
|
1718
1817
|
return localVarFp.getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(axios, basePath));
|
|
1719
1818
|
},
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
|
|
1822
|
+
* @param {*} [options] Override http request option.
|
|
1823
|
+
* @throws {RequiredError}
|
|
1824
|
+
*/
|
|
1825
|
+
getRfqCommitments(requestParameters = {}, options) {
|
|
1826
|
+
return localVarFp.getRfqCommitments(requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.chainId, requestParameters.maker, requestParameters.taker, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.commitmentId, options).then((request) => request(axios, basePath));
|
|
1827
|
+
},
|
|
1720
1828
|
/**
|
|
1721
1829
|
*
|
|
1722
1830
|
* @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
|
|
@@ -1788,15 +1896,6 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1788
1896
|
issueGreenlight(requestParameters = {}, options) {
|
|
1789
1897
|
return localVarFp.issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(axios, basePath));
|
|
1790
1898
|
},
|
|
1791
|
-
/**
|
|
1792
|
-
*
|
|
1793
|
-
* @param {SealClientSubmitRfqQuoteRequest} requestParameters Request parameters.
|
|
1794
|
-
* @param {*} [options] Override http request option.
|
|
1795
|
-
* @throws {RequiredError}
|
|
1796
|
-
*/
|
|
1797
|
-
submitRfqQuote(requestParameters, options) {
|
|
1798
|
-
return localVarFp.submitRfqQuote(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1799
|
-
},
|
|
1800
1899
|
/**
|
|
1801
1900
|
*
|
|
1802
1901
|
* @param {*} [options] Override http request option.
|
|
@@ -1864,6 +1963,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1864
1963
|
createOrder(requestParameters, options) {
|
|
1865
1964
|
return (0, exports.SealClientFp)(this.configuration).createOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1866
1965
|
}
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @param {SealClientCreateRfqQuoteRequest} requestParameters Request parameters.
|
|
1969
|
+
* @param {*} [options] Override http request option.
|
|
1970
|
+
* @throws {RequiredError}
|
|
1971
|
+
* @memberof SealClient
|
|
1972
|
+
*/
|
|
1973
|
+
createRfqQuote(requestParameters, options) {
|
|
1974
|
+
return (0, exports.SealClientFp)(this.configuration).createRfqQuote(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1975
|
+
}
|
|
1867
1976
|
/**
|
|
1868
1977
|
*
|
|
1869
1978
|
* @param {SealClientCreateRfqRequestRequest} requestParameters Request parameters.
|
|
@@ -1964,6 +2073,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1964
2073
|
getPairs(requestParameters = {}, options) {
|
|
1965
2074
|
return (0, exports.SealClientFp)(this.configuration).getPairs(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.reservableOnly, requestParameters.excludeEmpty, options).then((request) => request(this.axios, this.basePath));
|
|
1966
2075
|
}
|
|
2076
|
+
/**
|
|
2077
|
+
*
|
|
2078
|
+
* @param {SealClientGetRfqCommitmentsRequest} requestParameters Request parameters.
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
* @memberof SealClient
|
|
2082
|
+
*/
|
|
2083
|
+
getRfqCommitments(requestParameters = {}, options) {
|
|
2084
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqCommitments(requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.chainId, requestParameters.maker, requestParameters.taker, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.commitmentId, options).then((request) => request(this.axios, this.basePath));
|
|
2085
|
+
}
|
|
1967
2086
|
/**
|
|
1968
2087
|
*
|
|
1969
2088
|
* @param {SealClientGetRfqNonceRequest} requestParameters Request parameters.
|
|
@@ -2043,16 +2162,6 @@ class SealClient extends base_1.BaseAPI {
|
|
|
2043
2162
|
issueGreenlight(requestParameters = {}, options) {
|
|
2044
2163
|
return (0, exports.SealClientFp)(this.configuration).issueGreenlight(requestParameters.chainId, requestParameters.executor, requestParameters.request, requestParameters.requestHash, options).then((request) => request(this.axios, this.basePath));
|
|
2045
2164
|
}
|
|
2046
|
-
/**
|
|
2047
|
-
*
|
|
2048
|
-
* @param {SealClientSubmitRfqQuoteRequest} requestParameters Request parameters.
|
|
2049
|
-
* @param {*} [options] Override http request option.
|
|
2050
|
-
* @throws {RequiredError}
|
|
2051
|
-
* @memberof SealClient
|
|
2052
|
-
*/
|
|
2053
|
-
submitRfqQuote(requestParameters, options) {
|
|
2054
|
-
return (0, exports.SealClientFp)(this.configuration).submitRfqQuote(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2055
|
-
}
|
|
2056
2165
|
/**
|
|
2057
2166
|
*
|
|
2058
2167
|
* @param {*} [options] Override http request option.
|
|
@@ -2144,6 +2253,17 @@ var GetPairsOrderByPropertyEnum;
|
|
|
2144
2253
|
(function (GetPairsOrderByPropertyEnum) {
|
|
2145
2254
|
GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
|
|
2146
2255
|
})(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
|
|
2256
|
+
/**
|
|
2257
|
+
* @export
|
|
2258
|
+
* @enum {string}
|
|
2259
|
+
*/
|
|
2260
|
+
var GetRfqCommitmentsOrderByPropertyEnum;
|
|
2261
|
+
(function (GetRfqCommitmentsOrderByPropertyEnum) {
|
|
2262
|
+
GetRfqCommitmentsOrderByPropertyEnum["RfqCommitmentOrderByPropertyUnspecified"] = "RfqCommitmentOrderByProperty_UNSPECIFIED";
|
|
2263
|
+
GetRfqCommitmentsOrderByPropertyEnum["RfqCommitmentOrderByPropertyId"] = "RfqCommitmentOrderByProperty_ID";
|
|
2264
|
+
GetRfqCommitmentsOrderByPropertyEnum["RfqCommitmentOrderByPropertySettlementTime"] = "RfqCommitmentOrderByProperty_SETTLEMENT_TIME";
|
|
2265
|
+
GetRfqCommitmentsOrderByPropertyEnum["RfqCommitmentOrderByPropertyBuyInDeadline"] = "RfqCommitmentOrderByProperty_BUY_IN_DEADLINE";
|
|
2266
|
+
})(GetRfqCommitmentsOrderByPropertyEnum || (exports.GetRfqCommitmentsOrderByPropertyEnum = GetRfqCommitmentsOrderByPropertyEnum = {}));
|
|
2147
2267
|
/**
|
|
2148
2268
|
* @export
|
|
2149
2269
|
* @enum {string}
|
|
@@ -15,6 +15,8 @@ export * from './seal-create-execution-message-request';
|
|
|
15
15
|
export * from './seal-create-execution-message-response';
|
|
16
16
|
export * from './seal-create-order-request';
|
|
17
17
|
export * from './seal-create-order-response';
|
|
18
|
+
export * from './seal-create-rfq-quote-request';
|
|
19
|
+
export * from './seal-create-rfq-quote-response';
|
|
18
20
|
export * from './seal-create-rfq-request-request';
|
|
19
21
|
export * from './seal-create-rfq-request-response';
|
|
20
22
|
export * from './seal-create-token-permit-approval-request';
|
|
@@ -31,6 +33,7 @@ export * from './seal-get-order-reservations-response';
|
|
|
31
33
|
export * from './seal-get-orders-response';
|
|
32
34
|
export * from './seal-get-pair-price-response';
|
|
33
35
|
export * from './seal-get-pairs-response';
|
|
36
|
+
export * from './seal-get-rfq-commitment-response';
|
|
34
37
|
export * from './seal-get-rfq-nonce-response';
|
|
35
38
|
export * from './seal-get-rfq-quotes-response';
|
|
36
39
|
export * from './seal-get-rfq-requests-response';
|
|
@@ -56,14 +59,13 @@ export * from './seal-pairs-order-by';
|
|
|
56
59
|
export * from './seal-pairs-order-by-property';
|
|
57
60
|
export * from './seal-reservation-request';
|
|
58
61
|
export * from './seal-reservation-settlement-request';
|
|
62
|
+
export * from './seal-rfq-commitment';
|
|
59
63
|
export * from './seal-rfq-contract-config';
|
|
60
64
|
export * from './seal-rfq-contract-params';
|
|
61
65
|
export * from './seal-rfq-quote';
|
|
62
66
|
export * from './seal-rfq-request';
|
|
63
67
|
export * from './seal-seal-contract-config';
|
|
64
68
|
export * from './seal-seal-contract-params';
|
|
65
|
-
export * from './seal-submit-rfq-quote-request';
|
|
66
|
-
export * from './seal-submit-rfq-quote-response';
|
|
67
69
|
export * from './seal-token';
|
|
68
70
|
export * from './seal-token-permit-approval';
|
|
69
71
|
export * from './seal-tokens-order-by';
|
|
@@ -72,6 +74,8 @@ export * from './seal-transfer-permission';
|
|
|
72
74
|
export * from './types-bool';
|
|
73
75
|
export * from './types-order-activity-type';
|
|
74
76
|
export * from './types-pagination';
|
|
77
|
+
export * from './types-rfq-commitment-order-by';
|
|
78
|
+
export * from './types-rfq-commitment-order-by-property';
|
|
75
79
|
export * from './types-rfq-quote-order-by';
|
|
76
80
|
export * from './types-rfq-quote-order-by-property';
|
|
77
81
|
export * from './types-rfq-requests-order-by';
|
|
@@ -31,6 +31,8 @@ __exportStar(require("./seal-create-execution-message-request"), exports);
|
|
|
31
31
|
__exportStar(require("./seal-create-execution-message-response"), exports);
|
|
32
32
|
__exportStar(require("./seal-create-order-request"), exports);
|
|
33
33
|
__exportStar(require("./seal-create-order-response"), exports);
|
|
34
|
+
__exportStar(require("./seal-create-rfq-quote-request"), exports);
|
|
35
|
+
__exportStar(require("./seal-create-rfq-quote-response"), exports);
|
|
34
36
|
__exportStar(require("./seal-create-rfq-request-request"), exports);
|
|
35
37
|
__exportStar(require("./seal-create-rfq-request-response"), exports);
|
|
36
38
|
__exportStar(require("./seal-create-token-permit-approval-request"), exports);
|
|
@@ -47,6 +49,7 @@ __exportStar(require("./seal-get-order-reservations-response"), exports);
|
|
|
47
49
|
__exportStar(require("./seal-get-orders-response"), exports);
|
|
48
50
|
__exportStar(require("./seal-get-pair-price-response"), exports);
|
|
49
51
|
__exportStar(require("./seal-get-pairs-response"), exports);
|
|
52
|
+
__exportStar(require("./seal-get-rfq-commitment-response"), exports);
|
|
50
53
|
__exportStar(require("./seal-get-rfq-nonce-response"), exports);
|
|
51
54
|
__exportStar(require("./seal-get-rfq-quotes-response"), exports);
|
|
52
55
|
__exportStar(require("./seal-get-rfq-requests-response"), exports);
|
|
@@ -72,14 +75,13 @@ __exportStar(require("./seal-pairs-order-by"), exports);
|
|
|
72
75
|
__exportStar(require("./seal-pairs-order-by-property"), exports);
|
|
73
76
|
__exportStar(require("./seal-reservation-request"), exports);
|
|
74
77
|
__exportStar(require("./seal-reservation-settlement-request"), exports);
|
|
78
|
+
__exportStar(require("./seal-rfq-commitment"), exports);
|
|
75
79
|
__exportStar(require("./seal-rfq-contract-config"), exports);
|
|
76
80
|
__exportStar(require("./seal-rfq-contract-params"), exports);
|
|
77
81
|
__exportStar(require("./seal-rfq-quote"), exports);
|
|
78
82
|
__exportStar(require("./seal-rfq-request"), exports);
|
|
79
83
|
__exportStar(require("./seal-seal-contract-config"), exports);
|
|
80
84
|
__exportStar(require("./seal-seal-contract-params"), exports);
|
|
81
|
-
__exportStar(require("./seal-submit-rfq-quote-request"), exports);
|
|
82
|
-
__exportStar(require("./seal-submit-rfq-quote-response"), exports);
|
|
83
85
|
__exportStar(require("./seal-token"), exports);
|
|
84
86
|
__exportStar(require("./seal-token-permit-approval"), exports);
|
|
85
87
|
__exportStar(require("./seal-tokens-order-by"), exports);
|
|
@@ -88,6 +90,8 @@ __exportStar(require("./seal-transfer-permission"), exports);
|
|
|
88
90
|
__exportStar(require("./types-bool"), exports);
|
|
89
91
|
__exportStar(require("./types-order-activity-type"), exports);
|
|
90
92
|
__exportStar(require("./types-pagination"), exports);
|
|
93
|
+
__exportStar(require("./types-rfq-commitment-order-by"), exports);
|
|
94
|
+
__exportStar(require("./types-rfq-commitment-order-by-property"), exports);
|
|
91
95
|
__exportStar(require("./types-rfq-quote-order-by"), exports);
|
|
92
96
|
__exportStar(require("./types-rfq-quote-order-by-property"), exports);
|
|
93
97
|
__exportStar(require("./types-rfq-requests-order-by"), exports);
|
package/lib/codegen/model/{seal-submit-quote-request.d.ts → seal-create-rfq-quote-request.d.ts}
RENAMED
|
@@ -12,73 +12,73 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface SealCreateRfqQuoteRequest
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface SealCreateRfqQuoteRequest {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
22
22
|
*/
|
|
23
23
|
'requestId': string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
28
28
|
*/
|
|
29
29
|
'offerer': string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
34
34
|
*/
|
|
35
35
|
'amountIn': string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
40
40
|
*/
|
|
41
41
|
'amountOut': string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
46
46
|
*/
|
|
47
47
|
'depositToken': string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
52
52
|
*/
|
|
53
53
|
'depositAmount': string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
58
58
|
*/
|
|
59
59
|
'minFillRatio': string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
64
64
|
*/
|
|
65
65
|
'settlementTime': number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
70
70
|
*/
|
|
71
71
|
'nonce': string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {number}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
76
76
|
*/
|
|
77
77
|
'deadline': number;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
81
|
-
* @memberof
|
|
81
|
+
* @memberof SealCreateRfqQuoteRequest
|
|
82
82
|
*/
|
|
83
83
|
'signature': string;
|
|
84
84
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface SealCreateRfqQuoteResponse
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface SealCreateRfqQuoteResponse {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof SealCreateRfqQuoteResponse
|
|
22
22
|
*/
|
|
23
23
|
'id'?: string;
|
|
24
24
|
}
|
package/lib/codegen/model/{seal-submit-rfq-response.d.ts → seal-get-rfq-commitment-response.d.ts}
RENAMED
|
@@ -9,16 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SealRfqCommitment } from './seal-rfq-commitment';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
|
-
* @interface
|
|
16
|
+
* @interface SealGetRfqCommitmentResponse
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
18
|
+
export interface SealGetRfqCommitmentResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SealRfqCommitment>}
|
|
22
|
+
* @memberof SealGetRfqCommitmentResponse
|
|
23
|
+
*/
|
|
24
|
+
'commitments'?: Array<SealRfqCommitment>;
|
|
18
25
|
/**
|
|
19
26
|
*
|
|
20
27
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
28
|
+
* @memberof SealGetRfqCommitmentResponse
|
|
22
29
|
*/
|
|
23
|
-
'
|
|
30
|
+
'paginationNextKey'?: string;
|
|
24
31
|
}
|