@seal-protocol/backendjs 0.0.17 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/seal-client.d.ts +43 -0
- package/lib/api/seal-client.js +60 -0
- package/lib/model/index.d.ts +1 -0
- package/lib/model/index.js +1 -0
- package/lib/model/seal-cancel-order-request.d.ts +36 -0
- package/lib/model/seal-cancel-order-request.js +15 -0
- package/lib/model/seal-order.d.ts +6 -0
- package/package.json +1 -1
package/lib/api/seal-client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
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';
|
|
@@ -22,6 +23,13 @@ import type { SealGetOrdersResponse } from '../model';
|
|
|
22
23
|
* @export
|
|
23
24
|
*/
|
|
24
25
|
export declare const SealClientAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param {SealCancelOrderRequest} body
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
cancelOrder: (body: SealCancelOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25
33
|
/**
|
|
26
34
|
*
|
|
27
35
|
* @param {*} [options] Override http request option.
|
|
@@ -76,6 +84,13 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
|
|
|
76
84
|
* @export
|
|
77
85
|
*/
|
|
78
86
|
export declare const SealClientFp: (configuration?: Configuration) => {
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @param {SealCancelOrderRequest} body
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
cancelOrder(body: SealCancelOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
79
94
|
/**
|
|
80
95
|
*
|
|
81
96
|
* @param {*} [options] Override http request option.
|
|
@@ -130,6 +145,13 @@ export declare const SealClientFp: (configuration?: Configuration) => {
|
|
|
130
145
|
* @export
|
|
131
146
|
*/
|
|
132
147
|
export declare const SealClientFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
cancelOrder(requestParameters: SealClientCancelOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
133
155
|
/**
|
|
134
156
|
*
|
|
135
157
|
* @param {*} [options] Override http request option.
|
|
@@ -164,6 +186,19 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
|
|
|
164
186
|
*/
|
|
165
187
|
healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealGetHealthCheckResponse>;
|
|
166
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* Request parameters for cancelOrder operation in SealClient.
|
|
191
|
+
* @export
|
|
192
|
+
* @interface SealClientCancelOrderRequest
|
|
193
|
+
*/
|
|
194
|
+
export interface SealClientCancelOrderRequest {
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {SealCancelOrderRequest}
|
|
198
|
+
* @memberof SealClientCancelOrder
|
|
199
|
+
*/
|
|
200
|
+
readonly body: SealCancelOrderRequest;
|
|
201
|
+
}
|
|
167
202
|
/**
|
|
168
203
|
* Request parameters for createOrderIntent operation in SealClient.
|
|
169
204
|
* @export
|
|
@@ -300,6 +335,14 @@ export interface SealClientGetOrdersRequest {
|
|
|
300
335
|
* @extends {BaseAPI}
|
|
301
336
|
*/
|
|
302
337
|
export declare class SealClient extends BaseAPI {
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
* @memberof SealClient
|
|
344
|
+
*/
|
|
345
|
+
cancelOrder(requestParameters: SealClientCancelOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
303
346
|
/**
|
|
304
347
|
*
|
|
305
348
|
* @param {*} [options] Override http request option.
|
package/lib/api/seal-client.js
CHANGED
|
@@ -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.
|
|
@@ -236,6 +265,18 @@ exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
|
|
|
236
265
|
const SealClientFp = function (configuration) {
|
|
237
266
|
const localVarAxiosParamCreator = (0, exports.SealClientAxiosParamCreator)(configuration);
|
|
238
267
|
return {
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @param {SealCancelOrderRequest} body
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
async cancelOrder(body, options) {
|
|
275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrder(body, options);
|
|
276
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
277
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.cancelOrder']?.[localVarOperationServerIndex]?.url;
|
|
278
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
279
|
+
},
|
|
239
280
|
/**
|
|
240
281
|
*
|
|
241
282
|
* @param {*} [options] Override http request option.
|
|
@@ -319,6 +360,15 @@ exports.SealClientFp = SealClientFp;
|
|
|
319
360
|
const SealClientFactory = function (configuration, basePath, axios) {
|
|
320
361
|
const localVarFp = (0, exports.SealClientFp)(configuration);
|
|
321
362
|
return {
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
cancelOrder(requestParameters, options) {
|
|
370
|
+
return localVarFp.cancelOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
371
|
+
},
|
|
322
372
|
/**
|
|
323
373
|
*
|
|
324
374
|
* @param {*} [options] Override http request option.
|
|
@@ -372,6 +422,16 @@ exports.SealClientFactory = SealClientFactory;
|
|
|
372
422
|
* @extends {BaseAPI}
|
|
373
423
|
*/
|
|
374
424
|
class SealClient extends base_1.BaseAPI {
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @param {SealClientCancelOrderRequest} requestParameters Request parameters.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof SealClient
|
|
431
|
+
*/
|
|
432
|
+
cancelOrder(requestParameters, options) {
|
|
433
|
+
return (0, exports.SealClientFp)(this.configuration).cancelOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
434
|
+
}
|
|
375
435
|
/**
|
|
376
436
|
*
|
|
377
437
|
* @param {*} [options] Override http request option.
|
package/lib/model/index.d.ts
CHANGED
package/lib/model/index.js
CHANGED
|
@@ -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);
|
|
@@ -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 });
|
package/package.json
CHANGED