@seal-protocol/backendjs 0.0.7 → 0.0.12

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