@seal-protocol/backendjs 0.0.25 → 0.0.28

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.
Files changed (32) hide show
  1. package/lib/api/seal-client.d.ts +368 -10
  2. package/lib/api/seal-client.js +348 -14
  3. package/lib/model/index.d.ts +13 -0
  4. package/lib/model/index.js +13 -0
  5. package/lib/model/seal-chain.d.ts +42 -0
  6. package/lib/model/seal-chain.js +15 -0
  7. package/lib/model/seal-chains-order-by-property.d.ts +19 -0
  8. package/lib/model/seal-chains-order-by-property.js +25 -0
  9. package/lib/model/seal-chains-order-by.d.ts +31 -0
  10. package/lib/model/seal-chains-order-by.js +15 -0
  11. package/lib/model/seal-get-chains-response.d.ts +31 -0
  12. package/lib/model/seal-get-chains-response.js +15 -0
  13. package/lib/model/seal-get-order-reservations-response.d.ts +31 -0
  14. package/lib/model/seal-get-order-reservations-response.js +15 -0
  15. package/lib/model/seal-get-tokens-response.d.ts +31 -0
  16. package/lib/model/seal-get-tokens-response.js +15 -0
  17. package/lib/model/seal-order-intent.d.ts +31 -0
  18. package/lib/model/seal-order-intent.js +15 -0
  19. package/lib/model/seal-order-reservation.d.ts +109 -0
  20. package/lib/model/seal-order-reservation.js +15 -0
  21. package/lib/model/seal-order-reservations-order-by-property.d.ts +27 -0
  22. package/lib/model/seal-order-reservations-order-by-property.js +33 -0
  23. package/lib/model/seal-order-reservations-order-by.d.ts +31 -0
  24. package/lib/model/seal-order-reservations-order-by.js +15 -0
  25. package/lib/model/seal-order.d.ts +9 -2
  26. package/lib/model/seal-token.d.ts +72 -0
  27. package/lib/model/seal-token.js +15 -0
  28. package/lib/model/seal-tokens-order-by-property.d.ts +19 -0
  29. package/lib/model/seal-tokens-order-by-property.js +25 -0
  30. package/lib/model/seal-tokens-order-by.d.ts +31 -0
  31. package/lib/model/seal-tokens-order-by.js +15 -0
  32. package/package.json +1 -1
@@ -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.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
19
+ exports.GetTokensOrderByPropertyEnum = exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = exports.GetOrderReservationsOrderByPropertyEnum = 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
@@ -111,6 +111,50 @@ const SealClientAxiosParamCreator = function (configuration) {
111
111
  options: localVarRequestOptions,
112
112
  };
113
113
  },
114
+ /**
115
+ *
116
+ * @param {string} [paginationKey]
117
+ * @param {number} [paginationLimit]
118
+ * @param {boolean} [paginationCountTotal]
119
+ * @param {GetChainsOrderByPropertyEnum} [orderByProperty]
120
+ * @param {boolean} [orderByDescending]
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getChains: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options = {}) => {
125
+ const localVarPath = `/seal/chains`;
126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
127
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
128
+ let baseOptions;
129
+ if (configuration) {
130
+ baseOptions = configuration.baseOptions;
131
+ }
132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
133
+ const localVarHeaderParameter = {};
134
+ const localVarQueryParameter = {};
135
+ if (paginationKey !== undefined) {
136
+ localVarQueryParameter['pagination.key'] = paginationKey;
137
+ }
138
+ if (paginationLimit !== undefined) {
139
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
140
+ }
141
+ if (paginationCountTotal !== undefined) {
142
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
143
+ }
144
+ if (orderByProperty !== undefined) {
145
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
146
+ }
147
+ if (orderByDescending !== undefined) {
148
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
149
+ }
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
153
+ return {
154
+ url: (0, common_1.toPathString)(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ };
157
+ },
114
158
  /**
115
159
  *
116
160
  * @param {string} chainId uint256
@@ -147,14 +191,78 @@ const SealClientAxiosParamCreator = function (configuration) {
147
191
  options: localVarRequestOptions,
148
192
  };
149
193
  },
194
+ /**
195
+ *
196
+ * @param {string} [chainId] uint256
197
+ * @param {boolean} [liveValue]
198
+ * @param {boolean} [expiredValue]
199
+ * @param {string} [reserver]
200
+ * @param {string} [orderIdHash]
201
+ * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
202
+ * @param {boolean} [orderByDescending]
203
+ * @param {string} [paginationKey]
204
+ * @param {number} [paginationLimit]
205
+ * @param {boolean} [paginationCountTotal]
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getOrderReservations: async (chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
210
+ const localVarPath = `/seal/order_reservations`;
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
218
+ const localVarHeaderParameter = {};
219
+ const localVarQueryParameter = {};
220
+ if (chainId !== undefined) {
221
+ localVarQueryParameter['chainId'] = chainId;
222
+ }
223
+ if (liveValue !== undefined) {
224
+ localVarQueryParameter['live.value'] = liveValue;
225
+ }
226
+ if (expiredValue !== undefined) {
227
+ localVarQueryParameter['expired.value'] = expiredValue;
228
+ }
229
+ if (reserver !== undefined) {
230
+ localVarQueryParameter['reserver'] = reserver;
231
+ }
232
+ if (orderIdHash !== undefined) {
233
+ localVarQueryParameter['orderIdHash'] = orderIdHash;
234
+ }
235
+ if (orderByProperty !== undefined) {
236
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
237
+ }
238
+ if (orderByDescending !== undefined) {
239
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
240
+ }
241
+ if (paginationKey !== undefined) {
242
+ localVarQueryParameter['pagination.key'] = paginationKey;
243
+ }
244
+ if (paginationLimit !== undefined) {
245
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
246
+ }
247
+ if (paginationCountTotal !== undefined) {
248
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
249
+ }
250
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
253
+ return {
254
+ url: (0, common_1.toPathString)(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ },
150
258
  /**
151
259
  *
152
260
  * @param {string} [chainId] uint256
153
261
  * @param {string} [tokenIn] Token In The token to exchange from.
154
262
  * @param {string} [tokenOut]
155
263
  * @param {string} [owner]
156
- * @param {string} [fromPrice] uint256
157
- * @param {string} [toPrice] uint256
264
+ * @param {string} [fromPriceDecimal]
265
+ * @param {string} [toPriceDecimal]
158
266
  * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
159
267
  * @param {boolean} [orderByDescending]
160
268
  * @param {string} [paginationKey]
@@ -163,10 +271,17 @@ const SealClientAxiosParamCreator = function (configuration) {
163
271
  * @param {boolean} [reservationAllowedValue]
164
272
  * @param {boolean} [liveValue]
165
273
  * @param {boolean} [cancelledValue]
274
+ * @param {string} [depositToken]
275
+ * @param {number} [minReservationPeriodSeconds]
276
+ * @param {string} [minRemainingAmount] uint256
277
+ * @param {string} [minPriceMargin] not supported yet
278
+ * @param {string} [maxPriceMargin] not supported yet
279
+ * @param {string} [maxReservationDepositPerStable] not supported yet
280
+ * @param {string} [minRemainingAmountStableTerms] not supported yet
166
281
  * @param {*} [options] Override http request option.
167
282
  * @throws {RequiredError}
168
283
  */
169
- getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options = {}) => {
284
+ getOrders: async (chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options = {}) => {
170
285
  const localVarPath = `/seal/orders`;
171
286
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
287
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -189,11 +304,11 @@ const SealClientAxiosParamCreator = function (configuration) {
189
304
  if (owner !== undefined) {
190
305
  localVarQueryParameter['owner'] = owner;
191
306
  }
192
- if (fromPrice !== undefined) {
193
- localVarQueryParameter['fromPrice'] = fromPrice;
307
+ if (fromPriceDecimal !== undefined) {
308
+ localVarQueryParameter['fromPriceDecimal'] = fromPriceDecimal;
194
309
  }
195
- if (toPrice !== undefined) {
196
- localVarQueryParameter['toPrice'] = toPrice;
310
+ if (toPriceDecimal !== undefined) {
311
+ localVarQueryParameter['toPriceDecimal'] = toPriceDecimal;
197
312
  }
198
313
  if (orderByProperty !== undefined) {
199
314
  localVarQueryParameter['orderBy.property'] = orderByProperty;
@@ -219,6 +334,27 @@ const SealClientAxiosParamCreator = function (configuration) {
219
334
  if (cancelledValue !== undefined) {
220
335
  localVarQueryParameter['cancelled.value'] = cancelledValue;
221
336
  }
337
+ if (depositToken !== undefined) {
338
+ localVarQueryParameter['depositToken'] = depositToken;
339
+ }
340
+ if (minReservationPeriodSeconds !== undefined) {
341
+ localVarQueryParameter['minReservationPeriodSeconds'] = minReservationPeriodSeconds;
342
+ }
343
+ if (minRemainingAmount !== undefined) {
344
+ localVarQueryParameter['minRemainingAmount'] = minRemainingAmount;
345
+ }
346
+ if (minPriceMargin !== undefined) {
347
+ localVarQueryParameter['minPriceMargin'] = minPriceMargin;
348
+ }
349
+ if (maxPriceMargin !== undefined) {
350
+ localVarQueryParameter['maxPriceMargin'] = maxPriceMargin;
351
+ }
352
+ if (maxReservationDepositPerStable !== undefined) {
353
+ localVarQueryParameter['maxReservationDepositPerStable'] = maxReservationDepositPerStable;
354
+ }
355
+ if (minRemainingAmountStableTerms !== undefined) {
356
+ localVarQueryParameter['minRemainingAmountStableTerms'] = minRemainingAmountStableTerms;
357
+ }
222
358
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
223
359
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
360
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -291,6 +427,54 @@ const SealClientAxiosParamCreator = function (configuration) {
291
427
  options: localVarRequestOptions,
292
428
  };
293
429
  },
430
+ /**
431
+ *
432
+ * @param {string} [paginationKey]
433
+ * @param {number} [paginationLimit]
434
+ * @param {boolean} [paginationCountTotal]
435
+ * @param {GetTokensOrderByPropertyEnum} [orderByProperty]
436
+ * @param {boolean} [orderByDescending]
437
+ * @param {string} [chainId]
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ getTokens: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options = {}) => {
442
+ const localVarPath = `/seal/tokens`;
443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
444
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
445
+ let baseOptions;
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ }
449
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
450
+ const localVarHeaderParameter = {};
451
+ const localVarQueryParameter = {};
452
+ if (paginationKey !== undefined) {
453
+ localVarQueryParameter['pagination.key'] = paginationKey;
454
+ }
455
+ if (paginationLimit !== undefined) {
456
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
457
+ }
458
+ if (paginationCountTotal !== undefined) {
459
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
460
+ }
461
+ if (orderByProperty !== undefined) {
462
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
463
+ }
464
+ if (orderByDescending !== undefined) {
465
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
466
+ }
467
+ if (chainId !== undefined) {
468
+ localVarQueryParameter['chainId'] = chainId;
469
+ }
470
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
472
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
473
+ return {
474
+ url: (0, common_1.toPathString)(localVarUrlObj),
475
+ options: localVarRequestOptions,
476
+ };
477
+ },
294
478
  /**
295
479
  *
296
480
  * @param {*} [options] Override http request option.
@@ -360,6 +544,22 @@ const SealClientFp = function (configuration) {
360
544
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrderIntent']?.[localVarOperationServerIndex]?.url;
361
545
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
546
  },
547
+ /**
548
+ *
549
+ * @param {string} [paginationKey]
550
+ * @param {number} [paginationLimit]
551
+ * @param {boolean} [paginationCountTotal]
552
+ * @param {GetChainsOrderByPropertyEnum} [orderByProperty]
553
+ * @param {boolean} [orderByDescending]
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ async getChains(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options) {
558
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChains(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, options);
559
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
560
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getChains']?.[localVarOperationServerIndex]?.url;
561
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
562
+ },
363
563
  /**
364
564
  *
365
565
  * @param {string} chainId uint256
@@ -373,14 +573,35 @@ const SealClientFp = function (configuration) {
373
573
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderNonce']?.[localVarOperationServerIndex]?.url;
374
574
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
575
  },
576
+ /**
577
+ *
578
+ * @param {string} [chainId] uint256
579
+ * @param {boolean} [liveValue]
580
+ * @param {boolean} [expiredValue]
581
+ * @param {string} [reserver]
582
+ * @param {string} [orderIdHash]
583
+ * @param {GetOrderReservationsOrderByPropertyEnum} [orderByProperty]
584
+ * @param {boolean} [orderByDescending]
585
+ * @param {string} [paginationKey]
586
+ * @param {number} [paginationLimit]
587
+ * @param {boolean} [paginationCountTotal]
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ async getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderReservations(chainId, liveValue, expiredValue, reserver, orderIdHash, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
594
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderReservations']?.[localVarOperationServerIndex]?.url;
595
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
596
+ },
376
597
  /**
377
598
  *
378
599
  * @param {string} [chainId] uint256
379
600
  * @param {string} [tokenIn] Token In The token to exchange from.
380
601
  * @param {string} [tokenOut]
381
602
  * @param {string} [owner]
382
- * @param {string} [fromPrice] uint256
383
- * @param {string} [toPrice] uint256
603
+ * @param {string} [fromPriceDecimal]
604
+ * @param {string} [toPriceDecimal]
384
605
  * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
385
606
  * @param {boolean} [orderByDescending]
386
607
  * @param {string} [paginationKey]
@@ -389,11 +610,18 @@ const SealClientFp = function (configuration) {
389
610
  * @param {boolean} [reservationAllowedValue]
390
611
  * @param {boolean} [liveValue]
391
612
  * @param {boolean} [cancelledValue]
613
+ * @param {string} [depositToken]
614
+ * @param {number} [minReservationPeriodSeconds]
615
+ * @param {string} [minRemainingAmount] uint256
616
+ * @param {string} [minPriceMargin] not supported yet
617
+ * @param {string} [maxPriceMargin] not supported yet
618
+ * @param {string} [maxReservationDepositPerStable] not supported yet
619
+ * @param {string} [minRemainingAmountStableTerms] not supported yet
392
620
  * @param {*} [options] Override http request option.
393
621
  * @throws {RequiredError}
394
622
  */
395
- async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options) {
396
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, options);
623
+ async getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options) {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPriceDecimal, toPriceDecimal, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, reservationAllowedValue, liveValue, cancelledValue, depositToken, minReservationPeriodSeconds, minRemainingAmount, minPriceMargin, maxPriceMargin, maxReservationDepositPerStable, minRemainingAmountStableTerms, options);
397
625
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
398
626
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
399
627
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -419,6 +647,23 @@ const SealClientFp = function (configuration) {
419
647
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
420
648
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
421
649
  },
650
+ /**
651
+ *
652
+ * @param {string} [paginationKey]
653
+ * @param {number} [paginationLimit]
654
+ * @param {boolean} [paginationCountTotal]
655
+ * @param {GetTokensOrderByPropertyEnum} [orderByProperty]
656
+ * @param {boolean} [orderByDescending]
657
+ * @param {string} [chainId]
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ async getTokens(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options) {
662
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTokens(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, options);
663
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
664
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getTokens']?.[localVarOperationServerIndex]?.url;
665
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
666
+ },
422
667
  /**
423
668
  *
424
669
  * @param {*} [options] Override http request option.
@@ -466,6 +711,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
466
711
  createOrderIntent(requestParameters, options) {
467
712
  return localVarFp.createOrderIntent(requestParameters.body, options).then((request) => request(axios, basePath));
468
713
  },
714
+ /**
715
+ *
716
+ * @param {SealClientGetChainsRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getChains(requestParameters = {}, options) {
721
+ return localVarFp.getChains(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, options).then((request) => request(axios, basePath));
722
+ },
469
723
  /**
470
724
  *
471
725
  * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
@@ -475,6 +729,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
475
729
  getOrderNonce(requestParameters, options) {
476
730
  return localVarFp.getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(axios, basePath));
477
731
  },
732
+ /**
733
+ *
734
+ * @param {SealClientGetOrderReservationsRequest} requestParameters Request parameters.
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ */
738
+ getOrderReservations(requestParameters = {}, options) {
739
+ return localVarFp.getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
740
+ },
478
741
  /**
479
742
  *
480
743
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -482,7 +745,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
482
745
  * @throws {RequiredError}
483
746
  */
484
747
  getOrders(requestParameters = {}, options) {
485
- 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, options).then((request) => request(axios, basePath));
748
+ return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPriceDecimal, requestParameters.toPriceDecimal, 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, options).then((request) => request(axios, basePath));
486
749
  },
487
750
  /**
488
751
  *
@@ -493,6 +756,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
493
756
  getPairs(requestParameters = {}, options) {
494
757
  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));
495
758
  },
759
+ /**
760
+ *
761
+ * @param {SealClientGetTokensRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ getTokens(requestParameters = {}, options) {
766
+ return localVarFp.getTokens(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, options).then((request) => request(axios, basePath));
767
+ },
496
768
  /**
497
769
  *
498
770
  * @param {*} [options] Override http request option.
@@ -540,6 +812,16 @@ class SealClient extends base_1.BaseAPI {
540
812
  createOrderIntent(requestParameters, options) {
541
813
  return (0, exports.SealClientFp)(this.configuration).createOrderIntent(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
542
814
  }
815
+ /**
816
+ *
817
+ * @param {SealClientGetChainsRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof SealClient
821
+ */
822
+ getChains(requestParameters = {}, options) {
823
+ return (0, exports.SealClientFp)(this.configuration).getChains(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, options).then((request) => request(this.axios, this.basePath));
824
+ }
543
825
  /**
544
826
  *
545
827
  * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
@@ -550,6 +832,16 @@ class SealClient extends base_1.BaseAPI {
550
832
  getOrderNonce(requestParameters, options) {
551
833
  return (0, exports.SealClientFp)(this.configuration).getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(this.axios, this.basePath));
552
834
  }
835
+ /**
836
+ *
837
+ * @param {SealClientGetOrderReservationsRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof SealClient
841
+ */
842
+ getOrderReservations(requestParameters = {}, options) {
843
+ return (0, exports.SealClientFp)(this.configuration).getOrderReservations(requestParameters.chainId, requestParameters.liveValue, requestParameters.expiredValue, requestParameters.reserver, requestParameters.orderIdHash, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
844
+ }
553
845
  /**
554
846
  *
555
847
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -558,7 +850,7 @@ class SealClient extends base_1.BaseAPI {
558
850
  * @memberof SealClient
559
851
  */
560
852
  getOrders(requestParameters = {}, options) {
561
- 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, options).then((request) => request(this.axios, this.basePath));
853
+ return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPriceDecimal, requestParameters.toPriceDecimal, 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, options).then((request) => request(this.axios, this.basePath));
562
854
  }
563
855
  /**
564
856
  *
@@ -570,6 +862,16 @@ class SealClient extends base_1.BaseAPI {
570
862
  getPairs(requestParameters = {}, options) {
571
863
  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));
572
864
  }
865
+ /**
866
+ *
867
+ * @param {SealClientGetTokensRequest} requestParameters Request parameters.
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ * @memberof SealClient
871
+ */
872
+ getTokens(requestParameters = {}, options) {
873
+ return (0, exports.SealClientFp)(this.configuration).getTokens(requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.chainId, options).then((request) => request(this.axios, this.basePath));
874
+ }
573
875
  /**
574
876
  *
575
877
  * @param {*} [options] Override http request option.
@@ -581,6 +883,30 @@ class SealClient extends base_1.BaseAPI {
581
883
  }
582
884
  }
583
885
  exports.SealClient = SealClient;
886
+ /**
887
+ * @export
888
+ * @enum {string}
889
+ */
890
+ var GetChainsOrderByPropertyEnum;
891
+ (function (GetChainsOrderByPropertyEnum) {
892
+ GetChainsOrderByPropertyEnum["ChainsOrderByPropertyUnspecified"] = "ChainsOrderByProperty_UNSPECIFIED";
893
+ })(GetChainsOrderByPropertyEnum || (exports.GetChainsOrderByPropertyEnum = GetChainsOrderByPropertyEnum = {}));
894
+ /**
895
+ * @export
896
+ * @enum {string}
897
+ */
898
+ var GetOrderReservationsOrderByPropertyEnum;
899
+ (function (GetOrderReservationsOrderByPropertyEnum) {
900
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyUnspecified"] = "OrderReservationsOrderByProperty_UNSPECIFIED";
901
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyOrderIdHash"] = "OrderReservationsOrderByProperty_ORDER_ID_HASH";
902
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyReservationId"] = "OrderReservationsOrderByProperty_RESERVATION_ID";
903
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyTotalAmount"] = "OrderReservationsOrderByProperty_TOTAL_AMOUNT";
904
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyRemainingAmount"] = "OrderReservationsOrderByProperty_REMAINING_AMOUNT";
905
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyTotalDepositAmount"] = "OrderReservationsOrderByProperty_TOTAL_DEPOSIT_AMOUNT";
906
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyRemainingDepositAmount"] = "OrderReservationsOrderByProperty_REMAINING_DEPOSIT_AMOUNT";
907
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyChainId"] = "OrderReservationsOrderByProperty_CHAIN_ID";
908
+ GetOrderReservationsOrderByPropertyEnum["OrderReservationsOrderByPropertyCreatedAtBlockNumber"] = "OrderReservationsOrderByProperty_CREATED_AT_BLOCK_NUMBER";
909
+ })(GetOrderReservationsOrderByPropertyEnum || (exports.GetOrderReservationsOrderByPropertyEnum = GetOrderReservationsOrderByPropertyEnum = {}));
584
910
  /**
585
911
  * @export
586
912
  * @enum {string}
@@ -609,3 +935,11 @@ var GetPairsOrderByPropertyEnum;
609
935
  (function (GetPairsOrderByPropertyEnum) {
610
936
  GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
611
937
  })(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
938
+ /**
939
+ * @export
940
+ * @enum {string}
941
+ */
942
+ var GetTokensOrderByPropertyEnum;
943
+ (function (GetTokensOrderByPropertyEnum) {
944
+ GetTokensOrderByPropertyEnum["TokensOrderByPropertyUnspecified"] = "TokensOrderByProperty_UNSPECIFIED";
945
+ })(GetTokensOrderByPropertyEnum || (exports.GetTokensOrderByPropertyEnum = GetTokensOrderByPropertyEnum = {}));
@@ -1,18 +1,28 @@
1
1
  export * from './protobuf-any';
2
2
  export * from './rpc-status';
3
3
  export * from './seal-cancel-order-request';
4
+ export * from './seal-chain';
5
+ export * from './seal-chains-order-by';
6
+ export * from './seal-chains-order-by-property';
4
7
  export * from './seal-config';
5
8
  export * from './seal-create-order-intent-request';
6
9
  export * from './seal-database-config';
7
10
  export * from './seal-eip712-domain-config';
11
+ export * from './seal-get-chains-response';
8
12
  export * from './seal-get-config-response';
9
13
  export * from './seal-get-health-check-response';
10
14
  export * from './seal-get-order-nonce-response';
15
+ export * from './seal-get-order-reservations-response';
11
16
  export * from './seal-get-orders-response';
12
17
  export * from './seal-get-pairs-response';
18
+ export * from './seal-get-tokens-response';
13
19
  export * from './seal-logger-config';
14
20
  export * from './seal-order';
15
21
  export * from './seal-order-config';
22
+ export * from './seal-order-intent';
23
+ export * from './seal-order-reservation';
24
+ export * from './seal-order-reservations-order-by';
25
+ export * from './seal-order-reservations-order-by-property';
16
26
  export * from './seal-orders-order-by';
17
27
  export * from './seal-orders-order-by-property';
18
28
  export * from './seal-pagination';
@@ -20,6 +30,9 @@ export * from './seal-pair';
20
30
  export * from './seal-pairs-order-by';
21
31
  export * from './seal-pairs-order-by-property';
22
32
  export * from './seal-signature-verification-config';
33
+ export * from './seal-token';
34
+ export * from './seal-tokens-order-by';
35
+ export * from './seal-tokens-order-by-property';
23
36
  export * from './seal-transfer-permission';
24
37
  export * from './types-bool';
25
38
  export * from './types-timestamp';
@@ -17,18 +17,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./protobuf-any"), exports);
18
18
  __exportStar(require("./rpc-status"), exports);
19
19
  __exportStar(require("./seal-cancel-order-request"), exports);
20
+ __exportStar(require("./seal-chain"), exports);
21
+ __exportStar(require("./seal-chains-order-by"), exports);
22
+ __exportStar(require("./seal-chains-order-by-property"), exports);
20
23
  __exportStar(require("./seal-config"), exports);
21
24
  __exportStar(require("./seal-create-order-intent-request"), exports);
22
25
  __exportStar(require("./seal-database-config"), exports);
23
26
  __exportStar(require("./seal-eip712-domain-config"), exports);
27
+ __exportStar(require("./seal-get-chains-response"), exports);
24
28
  __exportStar(require("./seal-get-config-response"), exports);
25
29
  __exportStar(require("./seal-get-health-check-response"), exports);
26
30
  __exportStar(require("./seal-get-order-nonce-response"), exports);
31
+ __exportStar(require("./seal-get-order-reservations-response"), exports);
27
32
  __exportStar(require("./seal-get-orders-response"), exports);
28
33
  __exportStar(require("./seal-get-pairs-response"), exports);
34
+ __exportStar(require("./seal-get-tokens-response"), exports);
29
35
  __exportStar(require("./seal-logger-config"), exports);
30
36
  __exportStar(require("./seal-order"), exports);
31
37
  __exportStar(require("./seal-order-config"), exports);
38
+ __exportStar(require("./seal-order-intent"), exports);
39
+ __exportStar(require("./seal-order-reservation"), exports);
40
+ __exportStar(require("./seal-order-reservations-order-by"), exports);
41
+ __exportStar(require("./seal-order-reservations-order-by-property"), exports);
32
42
  __exportStar(require("./seal-orders-order-by"), exports);
33
43
  __exportStar(require("./seal-orders-order-by-property"), exports);
34
44
  __exportStar(require("./seal-pagination"), exports);
@@ -36,6 +46,9 @@ __exportStar(require("./seal-pair"), exports);
36
46
  __exportStar(require("./seal-pairs-order-by"), exports);
37
47
  __exportStar(require("./seal-pairs-order-by-property"), exports);
38
48
  __exportStar(require("./seal-signature-verification-config"), exports);
49
+ __exportStar(require("./seal-token"), exports);
50
+ __exportStar(require("./seal-tokens-order-by"), exports);
51
+ __exportStar(require("./seal-tokens-order-by-property"), exports);
39
52
  __exportStar(require("./seal-transfer-permission"), exports);
40
53
  __exportStar(require("./types-bool"), exports);
41
54
  __exportStar(require("./types-timestamp"), exports);
@@ -0,0 +1,42 @@
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 SealChain
16
+ */
17
+ export interface SealChain {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealChain
22
+ */
23
+ 'chainId'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SealChain
28
+ */
29
+ 'name'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SealChain
34
+ */
35
+ 'coingeckoId'?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SealChain
40
+ */
41
+ 'logoUri'?: string;
42
+ }