@seal-protocol/backendjs 0.0.7 → 0.0.8

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 (39) hide show
  1. package/lib/api/seal-client.d.ts +264 -0
  2. package/lib/api/seal-client.js +346 -0
  3. package/lib/api.d.ts +1 -432
  4. package/lib/api.js +14 -222
  5. package/lib/index.d.ts +1 -0
  6. package/lib/index.js +1 -0
  7. package/lib/model/index.d.ts +15 -0
  8. package/lib/model/index.js +31 -0
  9. package/lib/model/protobuf-any.d.ts +25 -0
  10. package/lib/model/protobuf-any.js +15 -0
  11. package/lib/model/rpc-status.d.ts +37 -0
  12. package/lib/model/rpc-status.js +15 -0
  13. package/lib/model/seal-config.d.ts +32 -0
  14. package/lib/model/seal-config.js +15 -0
  15. package/lib/model/seal-create-order-intent-request.d.ts +79 -0
  16. package/lib/model/seal-create-order-intent-request.js +15 -0
  17. package/lib/model/seal-database-config.d.ts +42 -0
  18. package/lib/model/seal-database-config.js +15 -0
  19. package/lib/model/seal-get-config-response.d.ts +37 -0
  20. package/lib/model/seal-get-config-response.js +15 -0
  21. package/lib/model/seal-get-health-check-response.d.ts +24 -0
  22. package/lib/model/seal-get-health-check-response.js +15 -0
  23. package/lib/model/seal-get-orders-response.d.ts +31 -0
  24. package/lib/model/seal-get-orders-response.js +15 -0
  25. package/lib/model/seal-logger-config.d.ts +66 -0
  26. package/lib/model/seal-logger-config.js +15 -0
  27. package/lib/model/seal-order.d.ts +66 -0
  28. package/lib/model/seal-order.js +15 -0
  29. package/lib/model/seal-orders-order-by-property.d.ts +26 -0
  30. package/lib/model/seal-orders-order-by-property.js +32 -0
  31. package/lib/model/seal-orders-order-by.d.ts +31 -0
  32. package/lib/model/seal-orders-order-by.js +15 -0
  33. package/lib/model/seal-pagination.d.ts +36 -0
  34. package/lib/model/seal-pagination.js +15 -0
  35. package/lib/model/seal-transfer-permission.d.ts +61 -0
  36. package/lib/model/seal-transfer-permission.js +15 -0
  37. package/lib/model/types-transfer-permission-type.d.ts +22 -0
  38. package/lib/model/types-transfer-permission-type.js +28 -0
  39. package/package.json +1 -1
@@ -0,0 +1,264 @@
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 { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { SealCreateOrderIntentRequest } from '../model';
16
+ import type { SealGetConfigResponse } from '../model';
17
+ import type { SealGetHealthCheckResponse } from '../model';
18
+ import type { SealGetOrdersResponse } from '../model';
19
+ /**
20
+ * SealClient - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const SealClientAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ config: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ *
32
+ * @param {SealCreateOrderIntentRequest} body
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
37
+ /**
38
+ *
39
+ * @param {string} [tokenIn] Token In The token to exchange from.
40
+ * @param {string} [tokenOut]
41
+ * @param {string} [owner]
42
+ * @param {string} [fromPrice] uint256
43
+ * @param {string} [toPrice] uint256
44
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
45
+ * @param {boolean} [orderByDescending]
46
+ * @param {string} [paginationKey]
47
+ * @param {number} [paginationLimit]
48
+ * @param {boolean} [paginationCountTotal]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ getOrders: (tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ *
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
59
+ };
60
+ /**
61
+ * SealClient - functional programming interface
62
+ * @export
63
+ */
64
+ export declare const SealClientFp: (configuration?: Configuration) => {
65
+ /**
66
+ *
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ config(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetConfigResponse>>;
71
+ /**
72
+ *
73
+ * @param {SealCreateOrderIntentRequest} body
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
78
+ /**
79
+ *
80
+ * @param {string} [tokenIn] Token In The token to exchange from.
81
+ * @param {string} [tokenOut]
82
+ * @param {string} [owner]
83
+ * @param {string} [fromPrice] uint256
84
+ * @param {string} [toPrice] uint256
85
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
86
+ * @param {boolean} [orderByDescending]
87
+ * @param {string} [paginationKey]
88
+ * @param {number} [paginationLimit]
89
+ * @param {boolean} [paginationCountTotal]
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ getOrders(tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
94
+ /**
95
+ *
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetHealthCheckResponse>>;
100
+ };
101
+ /**
102
+ * SealClient - factory interface
103
+ * @export
104
+ */
105
+ export declare const SealClientFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
106
+ /**
107
+ *
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ config(options?: RawAxiosRequestConfig): AxiosPromise<SealGetConfigResponse>;
112
+ /**
113
+ *
114
+ * @param {SealClientCreateOrderIntentRequest} requestParameters Request parameters.
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
119
+ /**
120
+ *
121
+ * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrdersResponse>;
126
+ /**
127
+ *
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealGetHealthCheckResponse>;
132
+ };
133
+ /**
134
+ * Request parameters for createOrderIntent operation in SealClient.
135
+ * @export
136
+ * @interface SealClientCreateOrderIntentRequest
137
+ */
138
+ export interface SealClientCreateOrderIntentRequest {
139
+ /**
140
+ *
141
+ * @type {SealCreateOrderIntentRequest}
142
+ * @memberof SealClientCreateOrderIntent
143
+ */
144
+ readonly body: SealCreateOrderIntentRequest;
145
+ }
146
+ /**
147
+ * Request parameters for getOrders operation in SealClient.
148
+ * @export
149
+ * @interface SealClientGetOrdersRequest
150
+ */
151
+ export interface SealClientGetOrdersRequest {
152
+ /**
153
+ * Token In The token to exchange from.
154
+ * @type {string}
155
+ * @memberof SealClientGetOrders
156
+ */
157
+ readonly tokenIn?: string;
158
+ /**
159
+ *
160
+ * @type {string}
161
+ * @memberof SealClientGetOrders
162
+ */
163
+ readonly tokenOut?: string;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof SealClientGetOrders
168
+ */
169
+ readonly owner?: string;
170
+ /**
171
+ * uint256
172
+ * @type {string}
173
+ * @memberof SealClientGetOrders
174
+ */
175
+ readonly fromPrice?: string;
176
+ /**
177
+ * uint256
178
+ * @type {string}
179
+ * @memberof SealClientGetOrders
180
+ */
181
+ readonly toPrice?: string;
182
+ /**
183
+ *
184
+ * @type {'INVALID' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE'}
185
+ * @memberof SealClientGetOrders
186
+ */
187
+ readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
188
+ /**
189
+ *
190
+ * @type {boolean}
191
+ * @memberof SealClientGetOrders
192
+ */
193
+ readonly orderByDescending?: boolean;
194
+ /**
195
+ *
196
+ * @type {string}
197
+ * @memberof SealClientGetOrders
198
+ */
199
+ readonly paginationKey?: string;
200
+ /**
201
+ *
202
+ * @type {number}
203
+ * @memberof SealClientGetOrders
204
+ */
205
+ readonly paginationLimit?: number;
206
+ /**
207
+ *
208
+ * @type {boolean}
209
+ * @memberof SealClientGetOrders
210
+ */
211
+ readonly paginationCountTotal?: boolean;
212
+ }
213
+ /**
214
+ * SealClient - object-oriented interface
215
+ * @export
216
+ * @class SealClient
217
+ * @extends {BaseAPI}
218
+ */
219
+ export declare class SealClient extends BaseAPI {
220
+ /**
221
+ *
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ * @memberof SealClient
225
+ */
226
+ config(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetConfigResponse, any>>;
227
+ /**
228
+ *
229
+ * @param {SealClientCreateOrderIntentRequest} requestParameters Request parameters.
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ * @memberof SealClient
233
+ */
234
+ createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
235
+ /**
236
+ *
237
+ * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ * @memberof SealClient
241
+ */
242
+ getOrders(requestParameters?: SealClientGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrdersResponse, any>>;
243
+ /**
244
+ *
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ * @memberof SealClient
248
+ */
249
+ healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
250
+ }
251
+ /**
252
+ * @export
253
+ * @enum {string}
254
+ */
255
+ export declare enum GetOrdersOrderByPropertyEnum {
256
+ Invalid = "INVALID",
257
+ Owner = "OWNER",
258
+ TokenIn = "TOKEN_IN",
259
+ TokenOut = "TOKEN_OUT",
260
+ AmountIn = "AMOUNT_IN",
261
+ Price = "PRICE",
262
+ PartiallyFillable = "PARTIALLY_FILLABLE",
263
+ Deadline = "DEADLINE"
264
+ }
@@ -0,0 +1,346 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.GetOrdersOrderByPropertyEnum = exports.SealClient = exports.SealClientFactory = exports.SealClientFp = exports.SealClientAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("../common");
24
+ // @ts-ignore
25
+ const base_1 = require("../base");
26
+ /**
27
+ * SealClient - axios parameter creator
28
+ * @export
29
+ */
30
+ const SealClientAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ *
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ config: async (options = {}) => {
38
+ const localVarPath = `/seal/config`;
39
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
41
+ let baseOptions;
42
+ if (configuration) {
43
+ baseOptions = configuration.baseOptions;
44
+ }
45
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
46
+ const localVarHeaderParameter = {};
47
+ const localVarQueryParameter = {};
48
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
49
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
51
+ return {
52
+ url: (0, common_1.toPathString)(localVarUrlObj),
53
+ options: localVarRequestOptions,
54
+ };
55
+ },
56
+ /**
57
+ *
58
+ * @param {SealCreateOrderIntentRequest} body
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ createOrderIntent: async (body, options = {}) => {
63
+ // verify required parameter 'body' is not null or undefined
64
+ (0, common_1.assertParamExists)('createOrderIntent', 'body', body);
65
+ const localVarPath = `/seal/order/create_order_intent`;
66
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
67
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
68
+ let baseOptions;
69
+ if (configuration) {
70
+ baseOptions = configuration.baseOptions;
71
+ }
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
73
+ const localVarHeaderParameter = {};
74
+ const localVarQueryParameter = {};
75
+ localVarHeaderParameter['Content-Type'] = 'application/json';
76
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
79
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
80
+ return {
81
+ url: (0, common_1.toPathString)(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @param {string} [tokenIn] Token In The token to exchange from.
88
+ * @param {string} [tokenOut]
89
+ * @param {string} [owner]
90
+ * @param {string} [fromPrice] uint256
91
+ * @param {string} [toPrice] uint256
92
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
93
+ * @param {boolean} [orderByDescending]
94
+ * @param {string} [paginationKey]
95
+ * @param {number} [paginationLimit]
96
+ * @param {boolean} [paginationCountTotal]
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ getOrders: async (tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
101
+ const localVarPath = `/seal/orders`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ if (tokenIn !== undefined) {
112
+ localVarQueryParameter['tokenIn'] = tokenIn;
113
+ }
114
+ if (tokenOut !== undefined) {
115
+ localVarQueryParameter['tokenOut'] = tokenOut;
116
+ }
117
+ if (owner !== undefined) {
118
+ localVarQueryParameter['owner'] = owner;
119
+ }
120
+ if (fromPrice !== undefined) {
121
+ localVarQueryParameter['fromPrice'] = fromPrice;
122
+ }
123
+ if (toPrice !== undefined) {
124
+ localVarQueryParameter['toPrice'] = toPrice;
125
+ }
126
+ if (orderByProperty !== undefined) {
127
+ localVarQueryParameter['orderBy.property'] = orderByProperty;
128
+ }
129
+ if (orderByDescending !== undefined) {
130
+ localVarQueryParameter['orderBy.descending'] = orderByDescending;
131
+ }
132
+ if (paginationKey !== undefined) {
133
+ localVarQueryParameter['pagination.key'] = paginationKey;
134
+ }
135
+ if (paginationLimit !== undefined) {
136
+ localVarQueryParameter['pagination.limit'] = paginationLimit;
137
+ }
138
+ if (paginationCountTotal !== undefined) {
139
+ localVarQueryParameter['pagination.countTotal'] = paginationCountTotal;
140
+ }
141
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
144
+ return {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ };
148
+ },
149
+ /**
150
+ *
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ healthCheck: async (options = {}) => {
155
+ const localVarPath = `/seal/health`;
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ }
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
163
+ const localVarHeaderParameter = {};
164
+ const localVarQueryParameter = {};
165
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
168
+ return {
169
+ url: (0, common_1.toPathString)(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ },
173
+ };
174
+ };
175
+ exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
176
+ /**
177
+ * SealClient - functional programming interface
178
+ * @export
179
+ */
180
+ const SealClientFp = function (configuration) {
181
+ const localVarAxiosParamCreator = (0, exports.SealClientAxiosParamCreator)(configuration);
182
+ return {
183
+ /**
184
+ *
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ async config(options) {
189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.config(options);
190
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
191
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.config']?.[localVarOperationServerIndex]?.url;
192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
193
+ },
194
+ /**
195
+ *
196
+ * @param {SealCreateOrderIntentRequest} body
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ async createOrderIntent(body, options) {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrderIntent(body, options);
202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
203
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrderIntent']?.[localVarOperationServerIndex]?.url;
204
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
205
+ },
206
+ /**
207
+ *
208
+ * @param {string} [tokenIn] Token In The token to exchange from.
209
+ * @param {string} [tokenOut]
210
+ * @param {string} [owner]
211
+ * @param {string} [fromPrice] uint256
212
+ * @param {string} [toPrice] uint256
213
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
214
+ * @param {boolean} [orderByDescending]
215
+ * @param {string} [paginationKey]
216
+ * @param {number} [paginationLimit]
217
+ * @param {boolean} [paginationCountTotal]
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ async getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
222
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
223
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
224
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
225
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
226
+ },
227
+ /**
228
+ *
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ async healthCheck(options) {
233
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
234
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
235
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
236
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
237
+ },
238
+ };
239
+ };
240
+ exports.SealClientFp = SealClientFp;
241
+ /**
242
+ * SealClient - factory interface
243
+ * @export
244
+ */
245
+ const SealClientFactory = function (configuration, basePath, axios) {
246
+ const localVarFp = (0, exports.SealClientFp)(configuration);
247
+ return {
248
+ /**
249
+ *
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ config(options) {
254
+ return localVarFp.config(options).then((request) => request(axios, basePath));
255
+ },
256
+ /**
257
+ *
258
+ * @param {SealClientCreateOrderIntentRequest} requestParameters Request parameters.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ createOrderIntent(requestParameters, options) {
263
+ return localVarFp.createOrderIntent(requestParameters.body, options).then((request) => request(axios, basePath));
264
+ },
265
+ /**
266
+ *
267
+ * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getOrders(requestParameters = {}, options) {
272
+ return localVarFp.getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
273
+ },
274
+ /**
275
+ *
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ healthCheck(options) {
280
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
281
+ },
282
+ };
283
+ };
284
+ exports.SealClientFactory = SealClientFactory;
285
+ /**
286
+ * SealClient - object-oriented interface
287
+ * @export
288
+ * @class SealClient
289
+ * @extends {BaseAPI}
290
+ */
291
+ class SealClient extends base_1.BaseAPI {
292
+ /**
293
+ *
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ * @memberof SealClient
297
+ */
298
+ config(options) {
299
+ return (0, exports.SealClientFp)(this.configuration).config(options).then((request) => request(this.axios, this.basePath));
300
+ }
301
+ /**
302
+ *
303
+ * @param {SealClientCreateOrderIntentRequest} requestParameters Request parameters.
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ * @memberof SealClient
307
+ */
308
+ createOrderIntent(requestParameters, options) {
309
+ return (0, exports.SealClientFp)(this.configuration).createOrderIntent(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
310
+ }
311
+ /**
312
+ *
313
+ * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ * @memberof SealClient
317
+ */
318
+ getOrders(requestParameters = {}, options) {
319
+ return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
320
+ }
321
+ /**
322
+ *
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ * @memberof SealClient
326
+ */
327
+ healthCheck(options) {
328
+ return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
329
+ }
330
+ }
331
+ exports.SealClient = SealClient;
332
+ /**
333
+ * @export
334
+ * @enum {string}
335
+ */
336
+ var GetOrdersOrderByPropertyEnum;
337
+ (function (GetOrdersOrderByPropertyEnum) {
338
+ GetOrdersOrderByPropertyEnum["Invalid"] = "INVALID";
339
+ GetOrdersOrderByPropertyEnum["Owner"] = "OWNER";
340
+ GetOrdersOrderByPropertyEnum["TokenIn"] = "TOKEN_IN";
341
+ GetOrdersOrderByPropertyEnum["TokenOut"] = "TOKEN_OUT";
342
+ GetOrdersOrderByPropertyEnum["AmountIn"] = "AMOUNT_IN";
343
+ GetOrdersOrderByPropertyEnum["Price"] = "PRICE";
344
+ GetOrdersOrderByPropertyEnum["PartiallyFillable"] = "PARTIALLY_FILLABLE";
345
+ GetOrdersOrderByPropertyEnum["Deadline"] = "DEADLINE";
346
+ })(GetOrdersOrderByPropertyEnum || (exports.GetOrdersOrderByPropertyEnum = GetOrdersOrderByPropertyEnum = {}));