@seal-protocol/backendjs 0.0.76 → 0.0.77

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.
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { SealCalculateRequiredPermitResponse } from '../model';
16
16
  import type { SealCancelOrderRequest } from '../model';
17
+ import type { SealCreateExecutionMessageRequest } from '../model';
17
18
  import type { SealCreateExecutionMessageResponse } from '../model';
18
19
  import type { SealCreateOrderRequest } from '../model';
19
20
  import type { SealCreateOrderResponse } from '../model';
@@ -64,12 +65,11 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
64
65
  config: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
66
  /**
66
67
  *
67
- * @param {string} chainId uint256
68
- * @param {string} executor
68
+ * @param {SealCreateExecutionMessageRequest} body
69
69
  * @param {*} [options] Override http request option.
70
70
  * @throws {RequiredError}
71
71
  */
72
- createExecutionMessage: (chainId: string, executor: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
72
+ createExecutionMessage: (body: SealCreateExecutionMessageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
73
73
  /**
74
74
  *
75
75
  * @param {SealCreateOrderRequest} body
@@ -283,12 +283,11 @@ export declare const SealClientFp: (configuration?: Configuration) => {
283
283
  config(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetConfigResponse>>;
284
284
  /**
285
285
  *
286
- * @param {string} chainId uint256
287
- * @param {string} executor
286
+ * @param {SealCreateExecutionMessageRequest} body
288
287
  * @param {*} [options] Override http request option.
289
288
  * @throws {RequiredError}
290
289
  */
291
- createExecutionMessage(chainId: string, executor: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCreateExecutionMessageResponse>>;
290
+ createExecutionMessage(body: SealCreateExecutionMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealCreateExecutionMessageResponse>>;
292
291
  /**
293
292
  *
294
293
  * @param {SealCreateOrderRequest} body
@@ -670,18 +669,12 @@ export interface SealClientCancelOrderRequest {
670
669
  * @interface SealClientCreateExecutionMessageRequest
671
670
  */
672
671
  export interface SealClientCreateExecutionMessageRequest {
673
- /**
674
- * uint256
675
- * @type {string}
676
- * @memberof SealClientCreateExecutionMessage
677
- */
678
- readonly chainId: string;
679
672
  /**
680
673
  *
681
- * @type {string}
674
+ * @type {SealCreateExecutionMessageRequest}
682
675
  * @memberof SealClientCreateExecutionMessage
683
676
  */
684
- readonly executor: string;
677
+ readonly body: SealCreateExecutionMessageRequest;
685
678
  }
686
679
  /**
687
680
  * Request parameters for createOrder operation in SealClient.
@@ -136,16 +136,13 @@ const SealClientAxiosParamCreator = function (configuration) {
136
136
  },
137
137
  /**
138
138
  *
139
- * @param {string} chainId uint256
140
- * @param {string} executor
139
+ * @param {SealCreateExecutionMessageRequest} body
141
140
  * @param {*} [options] Override http request option.
142
141
  * @throws {RequiredError}
143
142
  */
144
- createExecutionMessage: async (chainId, executor, options = {}) => {
145
- // verify required parameter 'chainId' is not null or undefined
146
- (0, common_1.assertParamExists)('createExecutionMessage', 'chainId', chainId);
147
- // verify required parameter 'executor' is not null or undefined
148
- (0, common_1.assertParamExists)('createExecutionMessage', 'executor', executor);
143
+ createExecutionMessage: async (body, options = {}) => {
144
+ // verify required parameter 'body' is not null or undefined
145
+ (0, common_1.assertParamExists)('createExecutionMessage', 'body', body);
149
146
  const localVarPath = `/seal/create_execution_message`;
150
147
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
148
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -153,18 +150,14 @@ const SealClientAxiosParamCreator = function (configuration) {
153
150
  if (configuration) {
154
151
  baseOptions = configuration.baseOptions;
155
152
  }
156
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
153
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
157
154
  const localVarHeaderParameter = {};
158
155
  const localVarQueryParameter = {};
159
- if (chainId !== undefined) {
160
- localVarQueryParameter['chainId'] = chainId;
161
- }
162
- if (executor !== undefined) {
163
- localVarQueryParameter['executor'] = executor;
164
- }
156
+ localVarHeaderParameter['Content-Type'] = 'application/json';
165
157
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
166
158
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
159
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
160
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
168
161
  return {
169
162
  url: (0, common_1.toPathString)(localVarUrlObj),
170
163
  options: localVarRequestOptions,
@@ -956,13 +949,12 @@ const SealClientFp = function (configuration) {
956
949
  },
957
950
  /**
958
951
  *
959
- * @param {string} chainId uint256
960
- * @param {string} executor
952
+ * @param {SealCreateExecutionMessageRequest} body
961
953
  * @param {*} [options] Override http request option.
962
954
  * @throws {RequiredError}
963
955
  */
964
- async createExecutionMessage(chainId, executor, options) {
965
- const localVarAxiosArgs = await localVarAxiosParamCreator.createExecutionMessage(chainId, executor, options);
956
+ async createExecutionMessage(body, options) {
957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createExecutionMessage(body, options);
966
958
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
967
959
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createExecutionMessage']?.[localVarOperationServerIndex]?.url;
968
960
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1271,7 +1263,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
1271
1263
  * @throws {RequiredError}
1272
1264
  */
1273
1265
  createExecutionMessage(requestParameters, options) {
1274
- return localVarFp.createExecutionMessage(requestParameters.chainId, requestParameters.executor, options).then((request) => request(axios, basePath));
1266
+ return localVarFp.createExecutionMessage(requestParameters.body, options).then((request) => request(axios, basePath));
1275
1267
  },
1276
1268
  /**
1277
1269
  *
@@ -1462,7 +1454,7 @@ class SealClient extends base_1.BaseAPI {
1462
1454
  * @memberof SealClient
1463
1455
  */
1464
1456
  createExecutionMessage(requestParameters, options) {
1465
- return (0, exports.SealClientFp)(this.configuration).createExecutionMessage(requestParameters.chainId, requestParameters.executor, options).then((request) => request(this.axios, this.basePath));
1457
+ return (0, exports.SealClientFp)(this.configuration).createExecutionMessage(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1466
1458
  }
1467
1459
  /**
1468
1460
  *
@@ -11,6 +11,7 @@ export * from './seal-chains-order-by';
11
11
  export * from './seal-chains-order-by-property';
12
12
  export * from './seal-config';
13
13
  export * from './seal-contract-config';
14
+ export * from './seal-create-execution-message-request';
14
15
  export * from './seal-create-execution-message-response';
15
16
  export * from './seal-create-order-request';
16
17
  export * from './seal-create-order-response';
@@ -27,6 +27,7 @@ __exportStar(require("./seal-chains-order-by"), exports);
27
27
  __exportStar(require("./seal-chains-order-by-property"), exports);
28
28
  __exportStar(require("./seal-config"), exports);
29
29
  __exportStar(require("./seal-contract-config"), exports);
30
+ __exportStar(require("./seal-create-execution-message-request"), exports);
30
31
  __exportStar(require("./seal-create-execution-message-response"), exports);
31
32
  __exportStar(require("./seal-create-order-request"), exports);
32
33
  __exportStar(require("./seal-create-order-response"), exports);
@@ -0,0 +1,51 @@
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 { SealOrderSettlementRequest } from './seal-order-settlement-request';
13
+ import type { SealReservationRequest } from './seal-reservation-request';
14
+ import type { SealReservationSettlementRequest } from './seal-reservation-settlement-request';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SealCreateExecutionMessageRequest
19
+ */
20
+ export interface SealCreateExecutionMessageRequest {
21
+ /**
22
+ * List of settlement requests
23
+ * @type {Array<SealOrderSettlementRequest>}
24
+ * @memberof SealCreateExecutionMessageRequest
25
+ */
26
+ 'settlements'?: Array<SealOrderSettlementRequest>;
27
+ /**
28
+ *
29
+ * @type {Array<SealReservationSettlementRequest>}
30
+ * @memberof SealCreateExecutionMessageRequest
31
+ */
32
+ 'reservationSettlements'?: Array<SealReservationSettlementRequest>;
33
+ /**
34
+ *
35
+ * @type {Array<SealReservationRequest>}
36
+ * @memberof SealCreateExecutionMessageRequest
37
+ */
38
+ 'reservations'?: Array<SealReservationRequest>;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof SealCreateExecutionMessageRequest
43
+ */
44
+ 'chainId': string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof SealCreateExecutionMessageRequest
49
+ */
50
+ 'executor': string;
51
+ }
@@ -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.76",
3
+ "version": "0.0.77",
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",