@seal-protocol/backendjs 0.0.98 → 0.0.103
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 +172 -118
- package/lib/codegen/api/seal-client.js +161 -128
- package/lib/codegen/model/index.d.ts +4 -4
- package/lib/codegen/model/index.js +4 -4
- package/lib/codegen/model/seal-create-rfq-request-request.d.ts +54 -0
- package/lib/codegen/model/seal-create-rfq-request-request.js +15 -0
- package/lib/codegen/model/seal-create-rfq-request-response.d.ts +24 -0
- package/lib/codegen/model/seal-create-rfq-request-response.js +15 -0
- package/lib/codegen/model/seal-order-reservation.d.ts +6 -0
- package/lib/codegen/model/seal-rfq-quote.d.ts +19 -7
- package/lib/codegen/model/seal-rfq-request.d.ts +10 -4
- package/lib/codegen/model/seal-seal-contract-params.d.ts +12 -0
- package/lib/codegen/model/seal-submit-quote-response.d.ts +1 -1
- package/lib/codegen/model/seal-submit-rfq-quote-request.d.ts +84 -0
- package/lib/codegen/model/seal-submit-rfq-quote-request.js +15 -0
- package/lib/codegen/model/seal-submit-rfq-quote-response.d.ts +24 -0
- package/lib/codegen/model/seal-submit-rfq-quote-response.js +15 -0
- package/lib/codegen/model/seal-submit-rfq-request.d.ts +0 -6
- package/lib/codegen/model/types-rfq-quote-order-by-property.d.ts +0 -1
- package/lib/codegen/model/types-rfq-quote-order-by-property.js +0 -1
- package/lib/codegen/model/types-rfq-requests-order-by-property.d.ts +1 -2
- package/lib/codegen/model/types-rfq-requests-order-by-property.js +0 -1
- package/package.json +1 -1
|
@@ -192,6 +192,35 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
options: localVarRequestOptions,
|
|
193
193
|
};
|
|
194
194
|
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {SealCreateRfqRequestRequest} body
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
createRfqRequest: async (body, options = {}) => {
|
|
202
|
+
// verify required parameter 'body' is not null or undefined
|
|
203
|
+
(0, common_1.assertParamExists)('createRfqRequest', 'body', body);
|
|
204
|
+
const localVarPath = `/seal/rfq/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 {SealCreateTokenPermitApprovalRequest} body
|
|
@@ -719,18 +748,22 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
719
748
|
/**
|
|
720
749
|
*
|
|
721
750
|
* @param {string} chainId
|
|
722
|
-
* @param {string} [quoteHash]
|
|
723
|
-
* @param {string} [requestId]
|
|
724
|
-
* @param {string} [offerer]
|
|
725
751
|
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
726
752
|
* @param {boolean} [orderByDescending]
|
|
727
753
|
* @param {string} [paginationKey]
|
|
728
754
|
* @param {number} [paginationLimit]
|
|
729
755
|
* @param {boolean} [paginationCountTotal]
|
|
756
|
+
* @param {string} [quoteHash]
|
|
757
|
+
* @param {string} [requestId]
|
|
758
|
+
* @param {string} [offerer]
|
|
759
|
+
* @param {string} [id]
|
|
760
|
+
* @param {boolean} [onChain] TODO requires indexer
|
|
761
|
+
* @param {number} [settlementTimeAfter]
|
|
762
|
+
* @param {number} [deadlineAfter]
|
|
730
763
|
* @param {*} [options] Override http request option.
|
|
731
764
|
* @throws {RequiredError}
|
|
732
765
|
*/
|
|
733
|
-
getRfqQuotes: async (chainId, quoteHash, requestId, offerer,
|
|
766
|
+
getRfqQuotes: async (chainId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, quoteHash, requestId, offerer, id, onChain, settlementTimeAfter, deadlineAfter, options = {}) => {
|
|
734
767
|
// verify required parameter 'chainId' is not null or undefined
|
|
735
768
|
(0, common_1.assertParamExists)('getRfqQuotes', 'chainId', chainId);
|
|
736
769
|
const localVarPath = `/seal/rfq/quotes`;
|
|
@@ -743,6 +776,21 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
743
776
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
744
777
|
const localVarHeaderParameter = {};
|
|
745
778
|
const localVarQueryParameter = {};
|
|
779
|
+
if (orderByProperty !== undefined) {
|
|
780
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
781
|
+
}
|
|
782
|
+
if (orderByDescending !== undefined) {
|
|
783
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
784
|
+
}
|
|
785
|
+
if (paginationKey !== undefined) {
|
|
786
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
787
|
+
}
|
|
788
|
+
if (paginationLimit !== undefined) {
|
|
789
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
790
|
+
}
|
|
791
|
+
if (paginationCountTotal !== undefined) {
|
|
792
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
793
|
+
}
|
|
746
794
|
if (chainId !== undefined) {
|
|
747
795
|
localVarQueryParameter['chainId'] = chainId;
|
|
748
796
|
}
|
|
@@ -755,20 +803,17 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
755
803
|
if (offerer !== undefined) {
|
|
756
804
|
localVarQueryParameter['offerer'] = offerer;
|
|
757
805
|
}
|
|
758
|
-
if (
|
|
759
|
-
localVarQueryParameter['
|
|
806
|
+
if (id !== undefined) {
|
|
807
|
+
localVarQueryParameter['id'] = id;
|
|
760
808
|
}
|
|
761
|
-
if (
|
|
762
|
-
localVarQueryParameter['
|
|
809
|
+
if (onChain !== undefined) {
|
|
810
|
+
localVarQueryParameter['onChain'] = onChain;
|
|
763
811
|
}
|
|
764
|
-
if (
|
|
765
|
-
localVarQueryParameter['
|
|
812
|
+
if (settlementTimeAfter !== undefined) {
|
|
813
|
+
localVarQueryParameter['settlementTimeAfter'] = settlementTimeAfter;
|
|
766
814
|
}
|
|
767
|
-
if (
|
|
768
|
-
localVarQueryParameter['
|
|
769
|
-
}
|
|
770
|
-
if (paginationCountTotal !== undefined) {
|
|
771
|
-
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
815
|
+
if (deadlineAfter !== undefined) {
|
|
816
|
+
localVarQueryParameter['deadlineAfter'] = deadlineAfter;
|
|
772
817
|
}
|
|
773
818
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
774
819
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -780,6 +825,11 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
780
825
|
},
|
|
781
826
|
/**
|
|
782
827
|
*
|
|
828
|
+
* @param {string} [paginationKey]
|
|
829
|
+
* @param {number} [paginationLimit]
|
|
830
|
+
* @param {boolean} [paginationCountTotal]
|
|
831
|
+
* @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
|
|
832
|
+
* @param {boolean} [orderByDescending]
|
|
783
833
|
* @param {string} [id]
|
|
784
834
|
* @param {string} [chainId]
|
|
785
835
|
* @param {string} [requester]
|
|
@@ -787,16 +837,14 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
787
837
|
* @param {string} [tokenOut]
|
|
788
838
|
* @param {number} [creationTimeAfter]
|
|
789
839
|
* @param {number} [requestDeadlineAfter]
|
|
790
|
-
* @param {
|
|
791
|
-
* @param {
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {string} [
|
|
794
|
-
* @param {number} [paginationLimit]
|
|
795
|
-
* @param {boolean} [paginationCountTotal]
|
|
840
|
+
* @param {string} [depositToken]
|
|
841
|
+
* @param {string} [minDepositLessThan]
|
|
842
|
+
* @param {string} [minDepositPerStableLessThan] TODO requires price
|
|
843
|
+
* @param {string} [excludedOfferer] TODO requires join
|
|
796
844
|
* @param {*} [options] Override http request option.
|
|
797
845
|
* @throws {RequiredError}
|
|
798
846
|
*/
|
|
799
|
-
getRfqRequests: async (id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
847
|
+
getRfqRequests: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, depositToken, minDepositLessThan, minDepositPerStableLessThan, excludedOfferer, options = {}) => {
|
|
800
848
|
const localVarPath = `/seal/rfq/requests`;
|
|
801
849
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
802
850
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -807,6 +855,21 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
807
855
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
808
856
|
const localVarHeaderParameter = {};
|
|
809
857
|
const localVarQueryParameter = {};
|
|
858
|
+
if (paginationKey !== undefined) {
|
|
859
|
+
localVarQueryParameter['pagination.key'] = paginationKey;
|
|
860
|
+
}
|
|
861
|
+
if (paginationLimit !== undefined) {
|
|
862
|
+
localVarQueryParameter['pagination.limit'] = paginationLimit;
|
|
863
|
+
}
|
|
864
|
+
if (paginationCountTotal !== undefined) {
|
|
865
|
+
localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
|
|
866
|
+
}
|
|
867
|
+
if (orderByProperty !== undefined) {
|
|
868
|
+
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
869
|
+
}
|
|
870
|
+
if (orderByDescending !== undefined) {
|
|
871
|
+
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
872
|
+
}
|
|
810
873
|
if (id !== undefined) {
|
|
811
874
|
localVarQueryParameter['id'] = id;
|
|
812
875
|
}
|
|
@@ -828,23 +891,17 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
828
891
|
if (requestDeadlineAfter !== undefined) {
|
|
829
892
|
localVarQueryParameter['requestDeadlineAfter'] = requestDeadlineAfter;
|
|
830
893
|
}
|
|
831
|
-
if (
|
|
832
|
-
localVarQueryParameter['
|
|
833
|
-
}
|
|
834
|
-
if (orderByProperty !== undefined) {
|
|
835
|
-
localVarQueryParameter['orderBy.property'] = orderByProperty;
|
|
836
|
-
}
|
|
837
|
-
if (orderByDescending !== undefined) {
|
|
838
|
-
localVarQueryParameter['orderBy.descending'] = orderByDescending;
|
|
894
|
+
if (depositToken !== undefined) {
|
|
895
|
+
localVarQueryParameter['depositToken'] = depositToken;
|
|
839
896
|
}
|
|
840
|
-
if (
|
|
841
|
-
localVarQueryParameter['
|
|
897
|
+
if (minDepositLessThan !== undefined) {
|
|
898
|
+
localVarQueryParameter['minDepositLessThan'] = minDepositLessThan;
|
|
842
899
|
}
|
|
843
|
-
if (
|
|
844
|
-
localVarQueryParameter['
|
|
900
|
+
if (minDepositPerStableLessThan !== undefined) {
|
|
901
|
+
localVarQueryParameter['minDepositPerStableLessThan'] = minDepositPerStableLessThan;
|
|
845
902
|
}
|
|
846
|
-
if (
|
|
847
|
-
localVarQueryParameter['
|
|
903
|
+
if (excludedOfferer !== undefined) {
|
|
904
|
+
localVarQueryParameter['excludedOfferer'] = excludedOfferer;
|
|
848
905
|
}
|
|
849
906
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
850
907
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1054,13 +1111,13 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
1054
1111
|
},
|
|
1055
1112
|
/**
|
|
1056
1113
|
*
|
|
1057
|
-
* @param {
|
|
1114
|
+
* @param {SealSubmitRfqQuoteRequest} body
|
|
1058
1115
|
* @param {*} [options] Override http request option.
|
|
1059
1116
|
* @throws {RequiredError}
|
|
1060
1117
|
*/
|
|
1061
|
-
|
|
1118
|
+
submitRfqQuote: async (body, options = {}) => {
|
|
1062
1119
|
// verify required parameter 'body' is not null or undefined
|
|
1063
|
-
(0, common_1.assertParamExists)('
|
|
1120
|
+
(0, common_1.assertParamExists)('submitRfqQuote', 'body', body);
|
|
1064
1121
|
const localVarPath = `/seal/quote/submit`;
|
|
1065
1122
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1066
1123
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1081,35 +1138,6 @@ const SealClientAxiosParamCreator = function (configuration) {
|
|
|
1081
1138
|
options: localVarRequestOptions,
|
|
1082
1139
|
};
|
|
1083
1140
|
},
|
|
1084
|
-
/**
|
|
1085
|
-
*
|
|
1086
|
-
* @param {SealSubmitRfqRequest} body
|
|
1087
|
-
* @param {*} [options] Override http request option.
|
|
1088
|
-
* @throws {RequiredError}
|
|
1089
|
-
*/
|
|
1090
|
-
submitRfq: async (body, options = {}) => {
|
|
1091
|
-
// verify required parameter 'body' is not null or undefined
|
|
1092
|
-
(0, common_1.assertParamExists)('submitRfq', 'body', body);
|
|
1093
|
-
const localVarPath = `/seal/rfq/submit`;
|
|
1094
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1095
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1096
|
-
let baseOptions;
|
|
1097
|
-
if (configuration) {
|
|
1098
|
-
baseOptions = configuration.baseOptions;
|
|
1099
|
-
}
|
|
1100
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1101
|
-
const localVarHeaderParameter = {};
|
|
1102
|
-
const localVarQueryParameter = {};
|
|
1103
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1104
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1105
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1106
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1107
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1108
|
-
return {
|
|
1109
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1110
|
-
options: localVarRequestOptions,
|
|
1111
|
-
};
|
|
1112
|
-
},
|
|
1113
1141
|
/**
|
|
1114
1142
|
*
|
|
1115
1143
|
* @param {*} [options] Override http request option.
|
|
@@ -1207,6 +1235,18 @@ const SealClientFp = function (configuration) {
|
|
|
1207
1235
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
1208
1236
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1209
1237
|
},
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @param {SealCreateRfqRequestRequest} body
|
|
1241
|
+
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @throws {RequiredError}
|
|
1243
|
+
*/
|
|
1244
|
+
async createRfqRequest(body, options) {
|
|
1245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRfqRequest(body, options);
|
|
1246
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1247
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createRfqRequest']?.[localVarOperationServerIndex]?.url;
|
|
1248
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1249
|
+
},
|
|
1210
1250
|
/**
|
|
1211
1251
|
*
|
|
1212
1252
|
* @param {SealCreateTokenPermitApprovalRequest} body
|
|
@@ -1388,25 +1428,34 @@ const SealClientFp = function (configuration) {
|
|
|
1388
1428
|
/**
|
|
1389
1429
|
*
|
|
1390
1430
|
* @param {string} chainId
|
|
1391
|
-
* @param {string} [quoteHash]
|
|
1392
|
-
* @param {string} [requestId]
|
|
1393
|
-
* @param {string} [offerer]
|
|
1394
1431
|
* @param {GetRfqQuotesOrderByPropertyEnum} [orderByProperty]
|
|
1395
1432
|
* @param {boolean} [orderByDescending]
|
|
1396
1433
|
* @param {string} [paginationKey]
|
|
1397
1434
|
* @param {number} [paginationLimit]
|
|
1398
1435
|
* @param {boolean} [paginationCountTotal]
|
|
1436
|
+
* @param {string} [quoteHash]
|
|
1437
|
+
* @param {string} [requestId]
|
|
1438
|
+
* @param {string} [offerer]
|
|
1439
|
+
* @param {string} [id]
|
|
1440
|
+
* @param {boolean} [onChain] TODO requires indexer
|
|
1441
|
+
* @param {number} [settlementTimeAfter]
|
|
1442
|
+
* @param {number} [deadlineAfter]
|
|
1399
1443
|
* @param {*} [options] Override http request option.
|
|
1400
1444
|
* @throws {RequiredError}
|
|
1401
1445
|
*/
|
|
1402
|
-
async getRfqQuotes(chainId, quoteHash, requestId, offerer,
|
|
1403
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqQuotes(chainId, quoteHash, requestId, offerer,
|
|
1446
|
+
async getRfqQuotes(chainId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, quoteHash, requestId, offerer, id, onChain, settlementTimeAfter, deadlineAfter, options) {
|
|
1447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqQuotes(chainId, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, quoteHash, requestId, offerer, id, onChain, settlementTimeAfter, deadlineAfter, options);
|
|
1404
1448
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1405
1449
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqQuotes']?.[localVarOperationServerIndex]?.url;
|
|
1406
1450
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1407
1451
|
},
|
|
1408
1452
|
/**
|
|
1409
1453
|
*
|
|
1454
|
+
* @param {string} [paginationKey]
|
|
1455
|
+
* @param {number} [paginationLimit]
|
|
1456
|
+
* @param {boolean} [paginationCountTotal]
|
|
1457
|
+
* @param {GetRfqRequestsOrderByPropertyEnum} [orderByProperty]
|
|
1458
|
+
* @param {boolean} [orderByDescending]
|
|
1410
1459
|
* @param {string} [id]
|
|
1411
1460
|
* @param {string} [chainId]
|
|
1412
1461
|
* @param {string} [requester]
|
|
@@ -1414,17 +1463,15 @@ const SealClientFp = function (configuration) {
|
|
|
1414
1463
|
* @param {string} [tokenOut]
|
|
1415
1464
|
* @param {number} [creationTimeAfter]
|
|
1416
1465
|
* @param {number} [requestDeadlineAfter]
|
|
1417
|
-
* @param {
|
|
1418
|
-
* @param {
|
|
1419
|
-
* @param {
|
|
1420
|
-
* @param {string} [
|
|
1421
|
-
* @param {number} [paginationLimit]
|
|
1422
|
-
* @param {boolean} [paginationCountTotal]
|
|
1466
|
+
* @param {string} [depositToken]
|
|
1467
|
+
* @param {string} [minDepositLessThan]
|
|
1468
|
+
* @param {string} [minDepositPerStableLessThan] TODO requires price
|
|
1469
|
+
* @param {string} [excludedOfferer] TODO requires join
|
|
1423
1470
|
* @param {*} [options] Override http request option.
|
|
1424
1471
|
* @throws {RequiredError}
|
|
1425
1472
|
*/
|
|
1426
|
-
async getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
1427
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqRequests(id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter,
|
|
1473
|
+
async getRfqRequests(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, depositToken, minDepositLessThan, minDepositPerStableLessThan, excludedOfferer, options) {
|
|
1474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRfqRequests(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, id, chainId, requester, tokenIn, tokenOut, creationTimeAfter, requestDeadlineAfter, depositToken, minDepositLessThan, minDepositPerStableLessThan, excludedOfferer, options);
|
|
1428
1475
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1429
1476
|
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getRfqRequests']?.[localVarOperationServerIndex]?.url;
|
|
1430
1477
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1505,26 +1552,14 @@ const SealClientFp = function (configuration) {
|
|
|
1505
1552
|
},
|
|
1506
1553
|
/**
|
|
1507
1554
|
*
|
|
1508
|
-
* @param {
|
|
1555
|
+
* @param {SealSubmitRfqQuoteRequest} body
|
|
1509
1556
|
* @param {*} [options] Override http request option.
|
|
1510
1557
|
* @throws {RequiredError}
|
|
1511
1558
|
*/
|
|
1512
|
-
async
|
|
1513
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1559
|
+
async submitRfqQuote(body, options) {
|
|
1560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitRfqQuote(body, options);
|
|
1514
1561
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1515
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.
|
|
1516
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1517
|
-
},
|
|
1518
|
-
/**
|
|
1519
|
-
*
|
|
1520
|
-
* @param {SealSubmitRfqRequest} body
|
|
1521
|
-
* @param {*} [options] Override http request option.
|
|
1522
|
-
* @throws {RequiredError}
|
|
1523
|
-
*/
|
|
1524
|
-
async submitRfq(body, options) {
|
|
1525
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitRfq(body, options);
|
|
1526
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1527
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.submitRfq']?.[localVarOperationServerIndex]?.url;
|
|
1562
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.submitRfqQuote']?.[localVarOperationServerIndex]?.url;
|
|
1528
1563
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1529
1564
|
},
|
|
1530
1565
|
/**
|
|
@@ -1592,6 +1627,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1592
1627
|
createOrder(requestParameters, options) {
|
|
1593
1628
|
return localVarFp.createOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1594
1629
|
},
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @param {SealClientCreateRfqRequestRequest} requestParameters Request parameters.
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
*/
|
|
1636
|
+
createRfqRequest(requestParameters, options) {
|
|
1637
|
+
return localVarFp.createRfqRequest(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1638
|
+
},
|
|
1595
1639
|
/**
|
|
1596
1640
|
*
|
|
1597
1641
|
* @param {SealClientCreateTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
@@ -1689,7 +1733,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1689
1733
|
* @throws {RequiredError}
|
|
1690
1734
|
*/
|
|
1691
1735
|
getRfqQuotes(requestParameters, options) {
|
|
1692
|
-
return localVarFp.getRfqQuotes(requestParameters.chainId, requestParameters.
|
|
1736
|
+
return localVarFp.getRfqQuotes(requestParameters.chainId, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.quoteHash, requestParameters.requestId, requestParameters.offerer, requestParameters.id, requestParameters.onChain, requestParameters.settlementTimeAfter, requestParameters.deadlineAfter, options).then((request) => request(axios, basePath));
|
|
1693
1737
|
},
|
|
1694
1738
|
/**
|
|
1695
1739
|
*
|
|
@@ -1698,7 +1742,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1698
1742
|
* @throws {RequiredError}
|
|
1699
1743
|
*/
|
|
1700
1744
|
getRfqRequests(requestParameters = {}, options) {
|
|
1701
|
-
return localVarFp.getRfqRequests(requestParameters.
|
|
1745
|
+
return localVarFp.getRfqRequests(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.depositToken, requestParameters.minDepositLessThan, requestParameters.minDepositPerStableLessThan, requestParameters.excludedOfferer, options).then((request) => request(axios, basePath));
|
|
1702
1746
|
},
|
|
1703
1747
|
/**
|
|
1704
1748
|
*
|
|
@@ -1746,21 +1790,12 @@ const SealClientFactory = function (configuration, basePath, axios) {
|
|
|
1746
1790
|
},
|
|
1747
1791
|
/**
|
|
1748
1792
|
*
|
|
1749
|
-
* @param {
|
|
1750
|
-
* @param {*} [options] Override http request option.
|
|
1751
|
-
* @throws {RequiredError}
|
|
1752
|
-
*/
|
|
1753
|
-
submitQuote(requestParameters, options) {
|
|
1754
|
-
return localVarFp.submitQuote(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1755
|
-
},
|
|
1756
|
-
/**
|
|
1757
|
-
*
|
|
1758
|
-
* @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
|
|
1793
|
+
* @param {SealClientSubmitRfqQuoteRequest} requestParameters Request parameters.
|
|
1759
1794
|
* @param {*} [options] Override http request option.
|
|
1760
1795
|
* @throws {RequiredError}
|
|
1761
1796
|
*/
|
|
1762
|
-
|
|
1763
|
-
return localVarFp.
|
|
1797
|
+
submitRfqQuote(requestParameters, options) {
|
|
1798
|
+
return localVarFp.submitRfqQuote(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1764
1799
|
},
|
|
1765
1800
|
/**
|
|
1766
1801
|
*
|
|
@@ -1829,6 +1864,16 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1829
1864
|
createOrder(requestParameters, options) {
|
|
1830
1865
|
return (0, exports.SealClientFp)(this.configuration).createOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1831
1866
|
}
|
|
1867
|
+
/**
|
|
1868
|
+
*
|
|
1869
|
+
* @param {SealClientCreateRfqRequestRequest} requestParameters Request parameters.
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
* @memberof SealClient
|
|
1873
|
+
*/
|
|
1874
|
+
createRfqRequest(requestParameters, options) {
|
|
1875
|
+
return (0, exports.SealClientFp)(this.configuration).createRfqRequest(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1876
|
+
}
|
|
1832
1877
|
/**
|
|
1833
1878
|
*
|
|
1834
1879
|
* @param {SealClientCreateTokenPermitApprovalRequest} requestParameters Request parameters.
|
|
@@ -1937,7 +1982,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1937
1982
|
* @memberof SealClient
|
|
1938
1983
|
*/
|
|
1939
1984
|
getRfqQuotes(requestParameters, options) {
|
|
1940
|
-
return (0, exports.SealClientFp)(this.configuration).getRfqQuotes(requestParameters.chainId, requestParameters.
|
|
1985
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqQuotes(requestParameters.chainId, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.quoteHash, requestParameters.requestId, requestParameters.offerer, requestParameters.id, requestParameters.onChain, requestParameters.settlementTimeAfter, requestParameters.deadlineAfter, options).then((request) => request(this.axios, this.basePath));
|
|
1941
1986
|
}
|
|
1942
1987
|
/**
|
|
1943
1988
|
*
|
|
@@ -1947,7 +1992,7 @@ class SealClient extends base_1.BaseAPI {
|
|
|
1947
1992
|
* @memberof SealClient
|
|
1948
1993
|
*/
|
|
1949
1994
|
getRfqRequests(requestParameters = {}, options) {
|
|
1950
|
-
return (0, exports.SealClientFp)(this.configuration).getRfqRequests(requestParameters.
|
|
1995
|
+
return (0, exports.SealClientFp)(this.configuration).getRfqRequests(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.id, requestParameters.chainId, requestParameters.requester, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.creationTimeAfter, requestParameters.requestDeadlineAfter, requestParameters.depositToken, requestParameters.minDepositLessThan, requestParameters.minDepositPerStableLessThan, requestParameters.excludedOfferer, options).then((request) => request(this.axios, this.basePath));
|
|
1951
1996
|
}
|
|
1952
1997
|
/**
|
|
1953
1998
|
*
|
|
@@ -2000,23 +2045,13 @@ class SealClient extends base_1.BaseAPI {
|
|
|
2000
2045
|
}
|
|
2001
2046
|
/**
|
|
2002
2047
|
*
|
|
2003
|
-
* @param {
|
|
2004
|
-
* @param {*} [options] Override http request option.
|
|
2005
|
-
* @throws {RequiredError}
|
|
2006
|
-
* @memberof SealClient
|
|
2007
|
-
*/
|
|
2008
|
-
submitQuote(requestParameters, options) {
|
|
2009
|
-
return (0, exports.SealClientFp)(this.configuration).submitQuote(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2010
|
-
}
|
|
2011
|
-
/**
|
|
2012
|
-
*
|
|
2013
|
-
* @param {SealClientSubmitRfqRequest} requestParameters Request parameters.
|
|
2048
|
+
* @param {SealClientSubmitRfqQuoteRequest} requestParameters Request parameters.
|
|
2014
2049
|
* @param {*} [options] Override http request option.
|
|
2015
2050
|
* @throws {RequiredError}
|
|
2016
2051
|
* @memberof SealClient
|
|
2017
2052
|
*/
|
|
2018
|
-
|
|
2019
|
-
return (0, exports.SealClientFp)(this.configuration).
|
|
2053
|
+
submitRfqQuote(requestParameters, options) {
|
|
2054
|
+
return (0, exports.SealClientFp)(this.configuration).submitRfqQuote(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2020
2055
|
}
|
|
2021
2056
|
/**
|
|
2022
2057
|
*
|
|
@@ -2117,7 +2152,6 @@ var GetRfqQuotesOrderByPropertyEnum;
|
|
|
2117
2152
|
(function (GetRfqQuotesOrderByPropertyEnum) {
|
|
2118
2153
|
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyUnspecified"] = "RfqQuoteOrderByProperty_UNSPECIFIED";
|
|
2119
2154
|
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyId"] = "RfqQuoteOrderByProperty_ID";
|
|
2120
|
-
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertySubmissionTime"] = "RfqQuoteOrderByProperty_SUBMISSION_TIME";
|
|
2121
2155
|
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertySettlementTime"] = "RfqQuoteOrderByProperty_SETTLEMENT_TIME";
|
|
2122
2156
|
GetRfqQuotesOrderByPropertyEnum["RfqQuoteOrderByPropertyDeadline"] = "RfqQuoteOrderByProperty_DEADLINE";
|
|
2123
2157
|
})(GetRfqQuotesOrderByPropertyEnum || (exports.GetRfqQuotesOrderByPropertyEnum = GetRfqQuotesOrderByPropertyEnum = {}));
|
|
@@ -2131,7 +2165,6 @@ var GetRfqRequestsOrderByPropertyEnum;
|
|
|
2131
2165
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyId"] = "RfqRequestsOrderByProperty_ID";
|
|
2132
2166
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyCreationTime"] = "RfqRequestsOrderByProperty_CREATION_TIME";
|
|
2133
2167
|
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyRequestDeadline"] = "RfqRequestsOrderByProperty_REQUEST_DEADLINE";
|
|
2134
|
-
GetRfqRequestsOrderByPropertyEnum["RfqRequestsOrderByPropertyBuyInDeadline"] = "RfqRequestsOrderByProperty_BUY_IN_DEADLINE";
|
|
2135
2168
|
})(GetRfqRequestsOrderByPropertyEnum || (exports.GetRfqRequestsOrderByPropertyEnum = GetRfqRequestsOrderByPropertyEnum = {}));
|
|
2136
2169
|
/**
|
|
2137
2170
|
* @export
|
|
@@ -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-request-request';
|
|
19
|
+
export * from './seal-create-rfq-request-response';
|
|
18
20
|
export * from './seal-create-token-permit-approval-request';
|
|
19
21
|
export * from './seal-database-config';
|
|
20
22
|
export * from './seal-delete-token-permit-approval-request';
|
|
@@ -60,10 +62,8 @@ export * from './seal-rfq-quote';
|
|
|
60
62
|
export * from './seal-rfq-request';
|
|
61
63
|
export * from './seal-seal-contract-config';
|
|
62
64
|
export * from './seal-seal-contract-params';
|
|
63
|
-
export * from './seal-submit-quote-request';
|
|
64
|
-
export * from './seal-submit-quote-response';
|
|
65
|
-
export * from './seal-submit-rfq-request';
|
|
66
|
-
export * from './seal-submit-rfq-response';
|
|
65
|
+
export * from './seal-submit-rfq-quote-request';
|
|
66
|
+
export * from './seal-submit-rfq-quote-response';
|
|
67
67
|
export * from './seal-token';
|
|
68
68
|
export * from './seal-token-permit-approval';
|
|
69
69
|
export * from './seal-tokens-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-request-request"), exports);
|
|
35
|
+
__exportStar(require("./seal-create-rfq-request-response"), exports);
|
|
34
36
|
__exportStar(require("./seal-create-token-permit-approval-request"), exports);
|
|
35
37
|
__exportStar(require("./seal-database-config"), exports);
|
|
36
38
|
__exportStar(require("./seal-delete-token-permit-approval-request"), exports);
|
|
@@ -76,10 +78,8 @@ __exportStar(require("./seal-rfq-quote"), exports);
|
|
|
76
78
|
__exportStar(require("./seal-rfq-request"), exports);
|
|
77
79
|
__exportStar(require("./seal-seal-contract-config"), exports);
|
|
78
80
|
__exportStar(require("./seal-seal-contract-params"), exports);
|
|
79
|
-
__exportStar(require("./seal-submit-quote-request"), exports);
|
|
80
|
-
__exportStar(require("./seal-submit-quote-response"), exports);
|
|
81
|
-
__exportStar(require("./seal-submit-rfq-request"), exports);
|
|
82
|
-
__exportStar(require("./seal-submit-rfq-response"), exports);
|
|
81
|
+
__exportStar(require("./seal-submit-rfq-quote-request"), exports);
|
|
82
|
+
__exportStar(require("./seal-submit-rfq-quote-response"), exports);
|
|
83
83
|
__exportStar(require("./seal-token"), exports);
|
|
84
84
|
__exportStar(require("./seal-token-permit-approval"), exports);
|
|
85
85
|
__exportStar(require("./seal-tokens-order-by"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SealCreateRfqRequestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SealCreateRfqRequestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealCreateRfqRequestRequest
|
|
22
|
+
*/
|
|
23
|
+
'chainId': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SealCreateRfqRequestRequest
|
|
28
|
+
*/
|
|
29
|
+
'requester': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SealCreateRfqRequestRequest
|
|
34
|
+
*/
|
|
35
|
+
'tokenIn': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SealCreateRfqRequestRequest
|
|
40
|
+
*/
|
|
41
|
+
'amountIn': string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SealCreateRfqRequestRequest
|
|
46
|
+
*/
|
|
47
|
+
'tokenOut': string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SealCreateRfqRequestRequest
|
|
52
|
+
*/
|
|
53
|
+
'requestDeadline': number;
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* seal/seal.proto
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: version not set
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* seal/seal.proto
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SealCreateRfqRequestResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SealCreateRfqRequestResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SealCreateRfqRequestResponse
|
|
22
|
+
*/
|
|
23
|
+
'id'?: string;
|
|
24
|
+
}
|