@seal-protocol/backendjs 0.0.17 → 0.0.23

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.
@@ -12,16 +12,25 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { SealCancelOrderRequest } from '../model';
15
16
  import type { SealCreateOrderIntentRequest } from '../model';
16
17
  import type { SealGetConfigResponse } from '../model';
17
18
  import type { SealGetHealthCheckResponse } from '../model';
18
19
  import type { SealGetOrderNonceResponse } from '../model';
19
20
  import type { SealGetOrdersResponse } from '../model';
21
+ import type { SealGetPairsResponse } from '../model';
20
22
  /**
21
23
  * SealClient - axios parameter creator
22
24
  * @export
23
25
  */
24
26
  export declare const SealClientAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ *
29
+ * @param {SealCancelOrderRequest} body
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ cancelOrder: (body: SealCancelOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25
34
  /**
26
35
  *
27
36
  * @param {*} [options] Override http request option.
@@ -64,6 +73,22 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
64
73
  * @throws {RequiredError}
65
74
  */
66
75
  getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
76
+ /**
77
+ *
78
+ * @param {string} [paginationKey]
79
+ * @param {number} [paginationLimit]
80
+ * @param {boolean} [paginationCountTotal]
81
+ * @param {GetPairsOrderByPropertyEnum} [orderByProperty]
82
+ * @param {boolean} [orderByDescending]
83
+ * @param {string} [chainId] uint256
84
+ * @param {string} [tokenIn]
85
+ * @param {string} [tokenOut]
86
+ * @param {boolean} [reservableOnly]
87
+ * @param {boolean} [excludeEmpty]
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ getPairs: (paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
67
92
  /**
68
93
  *
69
94
  * @param {*} [options] Override http request option.
@@ -76,6 +101,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
76
101
  * @export
77
102
  */
78
103
  export declare const SealClientFp: (configuration?: Configuration) => {
104
+ /**
105
+ *
106
+ * @param {SealCancelOrderRequest} body
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ cancelOrder(body: SealCancelOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
79
111
  /**
80
112
  *
81
113
  * @param {*} [options] Override http request option.
@@ -118,6 +150,22 @@ export declare const SealClientFp: (configuration?: Configuration) => {
118
150
  * @throws {RequiredError}
119
151
  */
120
152
  getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, partiallyFillableValue?: boolean, reservationAllowedValue?: boolean, liveValue?: boolean, cancelledValue?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
153
+ /**
154
+ *
155
+ * @param {string} [paginationKey]
156
+ * @param {number} [paginationLimit]
157
+ * @param {boolean} [paginationCountTotal]
158
+ * @param {GetPairsOrderByPropertyEnum} [orderByProperty]
159
+ * @param {boolean} [orderByDescending]
160
+ * @param {string} [chainId] uint256
161
+ * @param {string} [tokenIn]
162
+ * @param {string} [tokenOut]
163
+ * @param {boolean} [reservableOnly]
164
+ * @param {boolean} [excludeEmpty]
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ getPairs(paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, orderByProperty?: GetPairsOrderByPropertyEnum, orderByDescending?: boolean, chainId?: string, tokenIn?: string, tokenOut?: string, reservableOnly?: boolean, excludeEmpty?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetPairsResponse>>;
121
169
  /**
122
170
  *
123
171
  * @param {*} [options] Override http request option.
@@ -130,6 +178,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
130
178
  * @export
131
179
  */
132
180
  export declare const SealClientFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
181
+ /**
182
+ *
183
+ * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ cancelOrder(requestParameters: SealClientCancelOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
133
188
  /**
134
189
  *
135
190
  * @param {*} [options] Override http request option.
@@ -157,6 +212,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
157
212
  * @throws {RequiredError}
158
213
  */
159
214
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrdersResponse>;
215
+ /**
216
+ *
217
+ * @param {SealClientGetPairsRequest} requestParameters Request parameters.
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetPairsResponse>;
160
222
  /**
161
223
  *
162
224
  * @param {*} [options] Override http request option.
@@ -164,6 +226,19 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
164
226
  */
165
227
  healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealGetHealthCheckResponse>;
166
228
  };
229
+ /**
230
+ * Request parameters for cancelOrder operation in SealClient.
231
+ * @export
232
+ * @interface SealClientCancelOrderRequest
233
+ */
234
+ export interface SealClientCancelOrderRequest {
235
+ /**
236
+ *
237
+ * @type {SealCancelOrderRequest}
238
+ * @memberof SealClientCancelOrder
239
+ */
240
+ readonly body: SealCancelOrderRequest;
241
+ }
167
242
  /**
168
243
  * Request parameters for createOrderIntent operation in SealClient.
169
244
  * @export
@@ -293,6 +368,73 @@ export interface SealClientGetOrdersRequest {
293
368
  */
294
369
  readonly cancelledValue?: boolean;
295
370
  }
371
+ /**
372
+ * Request parameters for getPairs operation in SealClient.
373
+ * @export
374
+ * @interface SealClientGetPairsRequest
375
+ */
376
+ export interface SealClientGetPairsRequest {
377
+ /**
378
+ *
379
+ * @type {string}
380
+ * @memberof SealClientGetPairs
381
+ */
382
+ readonly paginationKey?: string;
383
+ /**
384
+ *
385
+ * @type {number}
386
+ * @memberof SealClientGetPairs
387
+ */
388
+ readonly paginationLimit?: number;
389
+ /**
390
+ *
391
+ * @type {boolean}
392
+ * @memberof SealClientGetPairs
393
+ */
394
+ readonly paginationCountTotal?: boolean;
395
+ /**
396
+ *
397
+ * @type {'PairsOrderByProperty_UNSPECIFIED'}
398
+ * @memberof SealClientGetPairs
399
+ */
400
+ readonly orderByProperty?: GetPairsOrderByPropertyEnum;
401
+ /**
402
+ *
403
+ * @type {boolean}
404
+ * @memberof SealClientGetPairs
405
+ */
406
+ readonly orderByDescending?: boolean;
407
+ /**
408
+ * uint256
409
+ * @type {string}
410
+ * @memberof SealClientGetPairs
411
+ */
412
+ readonly chainId?: string;
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof SealClientGetPairs
417
+ */
418
+ readonly tokenIn?: string;
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof SealClientGetPairs
423
+ */
424
+ readonly tokenOut?: string;
425
+ /**
426
+ *
427
+ * @type {boolean}
428
+ * @memberof SealClientGetPairs
429
+ */
430
+ readonly reservableOnly?: boolean;
431
+ /**
432
+ *
433
+ * @type {boolean}
434
+ * @memberof SealClientGetPairs
435
+ */
436
+ readonly excludeEmpty?: boolean;
437
+ }
296
438
  /**
297
439
  * SealClient - object-oriented interface
298
440
  * @export
@@ -300,6 +442,14 @@ export interface SealClientGetOrdersRequest {
300
442
  * @extends {BaseAPI}
301
443
  */
302
444
  export declare class SealClient extends BaseAPI {
445
+ /**
446
+ *
447
+ * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof SealClient
451
+ */
452
+ cancelOrder(requestParameters: SealClientCancelOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
303
453
  /**
304
454
  *
305
455
  * @param {*} [options] Override http request option.
@@ -331,6 +481,14 @@ export declare class SealClient extends BaseAPI {
331
481
  * @memberof SealClient
332
482
  */
333
483
  getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrdersResponse, any>>;
484
+ /**
485
+ *
486
+ * @param {SealClientGetPairsRequest} requestParameters Request parameters.
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ * @memberof SealClient
490
+ */
491
+ getPairs(requestParameters?: SealClientGetPairsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetPairsResponse, any>>;
334
492
  /**
335
493
  *
336
494
  * @param {*} [options] Override http request option.
@@ -359,3 +517,10 @@ export declare enum GetOrdersOrderByPropertyEnum {
359
517
  ReservedAmount = "RESERVED_AMOUNT",
360
518
  FilledAmount = "FILLED_AMOUNT"
361
519
  }
520
+ /**
521
+ * @export
522
+ * @enum {string}
523
+ */
524
+ export declare enum GetPairsOrderByPropertyEnum {
525
+ PairsOrderByPropertyUnspecified = "PairsOrderByProperty_UNSPECIFIED"
526
+ }
@@ -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.GetOrdersOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
19
+ exports.GetPairsOrderByPropertyEnum = exports.GetOrdersOrderByPropertyEnum = 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
@@ -29,6 +29,35 @@ const base_1 = require("../base");
29
29
  */
30
30
  const SealClientAxiosParamCreator = function (configuration) {
31
31
  return {
32
+ /**
33
+ *
34
+ * @param {SealCancelOrderRequest} body
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ cancelOrder: async (body, options = {}) => {
39
+ // verify required parameter 'body' is not null or undefined
40
+ (0, common_1.assertParamExists)('cancelOrder', 'body', body);
41
+ const localVarPath = `/seal/order/cancel`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
49
+ const localVarHeaderParameter = {};
50
+ const localVarQueryParameter = {};
51
+ localVarHeaderParameter['Content-Type'] = 'application/json';
52
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
56
+ return {
57
+ url: (0, common_1.toPathString)(localVarUrlObj),
58
+ options: localVarRequestOptions,
59
+ };
60
+ },
32
61
  /**
33
62
  *
34
63
  * @param {*} [options] Override http request option.
@@ -202,6 +231,70 @@ const SealClientAxiosParamCreator = function (configuration) {
202
231
  options: localVarRequestOptions,
203
232
  };
204
233
  },
234
+ /**
235
+ *
236
+ * @param {string} [paginationKey]
237
+ * @param {number} [paginationLimit]
238
+ * @param {boolean} [paginationCountTotal]
239
+ * @param {GetPairsOrderByPropertyEnum} [orderByProperty]
240
+ * @param {boolean} [orderByDescending]
241
+ * @param {string} [chainId] uint256
242
+ * @param {string} [tokenIn]
243
+ * @param {string} [tokenOut]
244
+ * @param {boolean} [reservableOnly]
245
+ * @param {boolean} [excludeEmpty]
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getPairs: async (paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, tokenIn, tokenOut, reservableOnly, excludeEmpty, options = {}) => {
250
+ const localVarPath = `/seal/pairs`;
251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
252
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
253
+ let baseOptions;
254
+ if (configuration) {
255
+ baseOptions = configuration.baseOptions;
256
+ }
257
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
258
+ const localVarHeaderParameter = {};
259
+ const localVarQueryParameter = {};
260
+ if (paginationKey !== undefined) {
261
+ localVarQueryParameter['pagination.key'] = paginationKey;
262
+ }
263
+ if (paginationLimit !== undefined) {
264
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
265
+ }
266
+ if (paginationCountTotal !== undefined) {
267
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
268
+ }
269
+ if (orderByProperty !== undefined) {
270
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
271
+ }
272
+ if (orderByDescending !== undefined) {
273
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
274
+ }
275
+ if (chainId !== undefined) {
276
+ localVarQueryParameter['chainId'] = chainId;
277
+ }
278
+ if (tokenIn !== undefined) {
279
+ localVarQueryParameter['tokenIn'] = tokenIn;
280
+ }
281
+ if (tokenOut !== undefined) {
282
+ localVarQueryParameter['tokenOut'] = tokenOut;
283
+ }
284
+ if (reservableOnly !== undefined) {
285
+ localVarQueryParameter['reservableOnly'] = reservableOnly;
286
+ }
287
+ if (excludeEmpty !== undefined) {
288
+ localVarQueryParameter['excludeEmpty'] = excludeEmpty;
289
+ }
290
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
293
+ return {
294
+ url: (0, common_1.toPathString)(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ };
297
+ },
205
298
  /**
206
299
  *
207
300
  * @param {*} [options] Override http request option.
@@ -236,6 +329,18 @@ exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
236
329
  const SealClientFp = function (configuration) {
237
330
  const localVarAxiosParamCreator = (0, exports.SealClientAxiosParamCreator)(configuration);
238
331
  return {
332
+ /**
333
+ *
334
+ * @param {SealCancelOrderRequest} body
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ async cancelOrder(body, options) {
339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrder(body, options);
340
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
341
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.cancelOrder']?.[localVarOperationServerIndex]?.url;
342
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
343
+ },
239
344
  /**
240
345
  *
241
346
  * @param {*} [options] Override http request option.
@@ -298,6 +403,27 @@ const SealClientFp = function (configuration) {
298
403
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
299
404
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
300
405
  },
406
+ /**
407
+ *
408
+ * @param {string} [paginationKey]
409
+ * @param {number} [paginationLimit]
410
+ * @param {boolean} [paginationCountTotal]
411
+ * @param {GetPairsOrderByPropertyEnum} [orderByProperty]
412
+ * @param {boolean} [orderByDescending]
413
+ * @param {string} [chainId] uint256
414
+ * @param {string} [tokenIn]
415
+ * @param {string} [tokenOut]
416
+ * @param {boolean} [reservableOnly]
417
+ * @param {boolean} [excludeEmpty]
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ async getPairs(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, tokenIn, tokenOut, reservableOnly, excludeEmpty, options) {
422
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPairs(paginationKey, paginationLimit, paginationCountTotal, orderByProperty, orderByDescending, chainId, tokenIn, tokenOut, reservableOnly, excludeEmpty, options);
423
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
424
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getPairs']?.[localVarOperationServerIndex]?.url;
425
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
426
+ },
301
427
  /**
302
428
  *
303
429
  * @param {*} [options] Override http request option.
@@ -319,6 +445,15 @@ exports.SealClientFp = SealClientFp;
319
445
  const SealClientFactory = function (configuration, basePath, axios) {
320
446
  const localVarFp = (0, exports.SealClientFp)(configuration);
321
447
  return {
448
+ /**
449
+ *
450
+ * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ cancelOrder(requestParameters, options) {
455
+ return localVarFp.cancelOrder(requestParameters.body, options).then((request) => request(axios, basePath));
456
+ },
322
457
  /**
323
458
  *
324
459
  * @param {*} [options] Override http request option.
@@ -354,6 +489,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
354
489
  getOrders(requestParameters = {}, options) {
355
490
  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.partiallyFillableValue, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(axios, basePath));
356
491
  },
492
+ /**
493
+ *
494
+ * @param {SealClientGetPairsRequest} requestParameters Request parameters.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ getPairs(requestParameters = {}, options) {
499
+ 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));
500
+ },
357
501
  /**
358
502
  *
359
503
  * @param {*} [options] Override http request option.
@@ -372,6 +516,16 @@ exports.SealClientFactory = SealClientFactory;
372
516
  * @extends {BaseAPI}
373
517
  */
374
518
  class SealClient extends base_1.BaseAPI {
519
+ /**
520
+ *
521
+ * @param {SealClientCancelOrderRequest} requestParameters Request parameters.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ * @memberof SealClient
525
+ */
526
+ cancelOrder(requestParameters, options) {
527
+ return (0, exports.SealClientFp)(this.configuration).cancelOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
528
+ }
375
529
  /**
376
530
  *
377
531
  * @param {*} [options] Override http request option.
@@ -411,6 +565,16 @@ class SealClient extends base_1.BaseAPI {
411
565
  getOrders(requestParameters = {}, options) {
412
566
  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.partiallyFillableValue, requestParameters.reservationAllowedValue, requestParameters.liveValue, requestParameters.cancelledValue, options).then((request) => request(this.axios, this.basePath));
413
567
  }
568
+ /**
569
+ *
570
+ * @param {SealClientGetPairsRequest} requestParameters Request parameters.
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ * @memberof SealClient
574
+ */
575
+ getPairs(requestParameters = {}, options) {
576
+ 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));
577
+ }
414
578
  /**
415
579
  *
416
580
  * @param {*} [options] Override http request option.
@@ -443,3 +607,11 @@ var GetOrdersOrderByPropertyEnum;
443
607
  GetOrdersOrderByPropertyEnum["ReservedAmount"] = "RESERVED_AMOUNT";
444
608
  GetOrdersOrderByPropertyEnum["FilledAmount"] = "FILLED_AMOUNT";
445
609
  })(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));
610
+ /**
611
+ * @export
612
+ * @enum {string}
613
+ */
614
+ var GetPairsOrderByPropertyEnum;
615
+ (function (GetPairsOrderByPropertyEnum) {
616
+ GetPairsOrderByPropertyEnum["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
617
+ })(GetPairsOrderByPropertyEnum || (exports.GetPairsOrderByPropertyEnum = GetPairsOrderByPropertyEnum = {}));
@@ -1,5 +1,6 @@
1
1
  export * from './protobuf-any';
2
2
  export * from './rpc-status';
3
+ export * from './seal-cancel-order-request';
3
4
  export * from './seal-config';
4
5
  export * from './seal-create-order-intent-request';
5
6
  export * from './seal-database-config';
@@ -8,12 +9,16 @@ export * from './seal-get-config-response';
8
9
  export * from './seal-get-health-check-response';
9
10
  export * from './seal-get-order-nonce-response';
10
11
  export * from './seal-get-orders-response';
12
+ export * from './seal-get-pairs-response';
11
13
  export * from './seal-logger-config';
12
14
  export * from './seal-order';
13
15
  export * from './seal-order-config';
14
16
  export * from './seal-orders-order-by';
15
17
  export * from './seal-orders-order-by-property';
16
18
  export * from './seal-pagination';
19
+ export * from './seal-pair';
20
+ export * from './seal-pairs-order-by';
21
+ export * from './seal-pairs-order-by-property';
17
22
  export * from './seal-signature-verification-config';
18
23
  export * from './seal-transfer-permission';
19
24
  export * from './types-bool';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./protobuf-any"), exports);
18
18
  __exportStar(require("./rpc-status"), exports);
19
+ __exportStar(require("./seal-cancel-order-request"), exports);
19
20
  __exportStar(require("./seal-config"), exports);
20
21
  __exportStar(require("./seal-create-order-intent-request"), exports);
21
22
  __exportStar(require("./seal-database-config"), exports);
@@ -24,12 +25,16 @@ __exportStar(require("./seal-get-config-response"), exports);
24
25
  __exportStar(require("./seal-get-health-check-response"), exports);
25
26
  __exportStar(require("./seal-get-order-nonce-response"), exports);
26
27
  __exportStar(require("./seal-get-orders-response"), exports);
28
+ __exportStar(require("./seal-get-pairs-response"), exports);
27
29
  __exportStar(require("./seal-logger-config"), exports);
28
30
  __exportStar(require("./seal-order"), exports);
29
31
  __exportStar(require("./seal-order-config"), exports);
30
32
  __exportStar(require("./seal-orders-order-by"), exports);
31
33
  __exportStar(require("./seal-orders-order-by-property"), exports);
32
34
  __exportStar(require("./seal-pagination"), exports);
35
+ __exportStar(require("./seal-pair"), exports);
36
+ __exportStar(require("./seal-pairs-order-by"), exports);
37
+ __exportStar(require("./seal-pairs-order-by-property"), exports);
33
38
  __exportStar(require("./seal-signature-verification-config"), exports);
34
39
  __exportStar(require("./seal-transfer-permission"), exports);
35
40
  __exportStar(require("./types-bool"), exports);
@@ -0,0 +1,36 @@
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 SealCancelOrderRequest
16
+ */
17
+ export interface SealCancelOrderRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealCancelOrderRequest
22
+ */
23
+ 'orderId': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SealCancelOrderRequest
28
+ */
29
+ 'chainId': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SealCancelOrderRequest
34
+ */
35
+ 'signature': string;
36
+ }
@@ -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,31 @@
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
+ import type { SealPair } from './seal-pair';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SealGetPairsResponse
17
+ */
18
+ export interface SealGetPairsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SealPair>}
22
+ * @memberof SealGetPairsResponse
23
+ */
24
+ 'pairs'?: Array<SealPair>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SealGetPairsResponse
29
+ */
30
+ 'paginationNextKey'?: string;
31
+ }
@@ -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 });
@@ -160,4 +160,10 @@ export interface SealOrder {
160
160
  * @memberof SealOrder
161
161
  */
162
162
  'filledAmount'?: string;
163
+ /**
164
+ *
165
+ * @type {TypesTimestamp}
166
+ * @memberof SealOrder
167
+ */
168
+ 'offchainCancelledTime'?: TypesTimestamp;
163
169
  }
@@ -0,0 +1,84 @@
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 SealPair
16
+ */
17
+ export interface SealPair {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealPair
22
+ */
23
+ 'chainId'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SealPair
28
+ */
29
+ 'tokenIn'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SealPair
34
+ */
35
+ 'tokenOut'?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SealPair
40
+ */
41
+ 'totalRemainingAmount'?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SealPair
46
+ */
47
+ 'totalReservedAmount'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SealPair
52
+ */
53
+ 'totalCount'?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SealPair
58
+ */
59
+ 'reservableCount'?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof SealPair
64
+ */
65
+ 'reservableInTheMoneyVolume'?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof SealPair
70
+ */
71
+ 'minPrice'?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof SealPair
76
+ */
77
+ 'maxPrice'?: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof SealPair
82
+ */
83
+ 'avgPrice'?: string;
84
+ }
@@ -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,19 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum SealPairsOrderByProperty {
18
+ PairsOrderByPropertyUnspecified = "PairsOrderByProperty_UNSPECIFIED"
19
+ }
@@ -0,0 +1,25 @@
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 });
16
+ exports.SealPairsOrderByProperty = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var SealPairsOrderByProperty;
23
+ (function (SealPairsOrderByProperty) {
24
+ SealPairsOrderByProperty["PairsOrderByPropertyUnspecified"] = "PairsOrderByProperty_UNSPECIFIED";
25
+ })(SealPairsOrderByProperty || (exports.SealPairsOrderByProperty = SealPairsOrderByProperty = {}));
@@ -0,0 +1,31 @@
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
+ import type { SealPairsOrderByProperty } from './seal-pairs-order-by-property';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SealPairsOrderBy
17
+ */
18
+ export interface SealPairsOrderBy {
19
+ /**
20
+ *
21
+ * @type {SealPairsOrderByProperty}
22
+ * @memberof SealPairsOrderBy
23
+ */
24
+ 'property'?: SealPairsOrderByProperty;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof SealPairsOrderBy
29
+ */
30
+ 'descending'?: boolean;
31
+ }
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.17",
3
+ "version": "0.0.23",
4
4
  "description": "Javascript SDK for Seal Backend",
5
5
  "author": "amin <amin@refractedlabs.com>",
6
6
  "homepage": "https://github.com/seal-protocol/backend/tree/main/ts-client#readme",