@seal-protocol/backendjs 0.0.12 → 0.0.14

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.
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { SealCreateOrderIntentRequest } from '../model';
16
16
  import type { SealGetConfigResponse } from '../model';
17
17
  import type { SealGetHealthCheckResponse } from '../model';
18
+ import type { SealGetOrderNonceResponse } from '../model';
18
19
  import type { SealGetOrdersResponse } from '../model';
19
20
  /**
20
21
  * SealClient - axios parameter creator
@@ -34,6 +35,14 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
34
35
  * @throws {RequiredError}
35
36
  */
36
37
  createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ *
40
+ * @param {string} chainId uint256
41
+ * @param {string} owner
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getOrderNonce: (chainId: string, owner: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
37
46
  /**
38
47
  *
39
48
  * @param {string} [chainId] uint256
@@ -42,7 +51,8 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
42
51
  * @param {string} [owner]
43
52
  * @param {string} [fromPrice] uint256
44
53
  * @param {string} [toPrice] uint256
45
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
54
+ * @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
55
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
46
56
  * @param {boolean} [orderByDescending]
47
57
  * @param {string} [paginationKey]
48
58
  * @param {number} [paginationLimit]
@@ -50,7 +60,7 @@ export declare const SealClientAxiosParamCreator: (configuration?: Configuration
50
60
  * @param {*} [options] Override http request option.
51
61
  * @throws {RequiredError}
52
62
  */
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>;
63
+ getOrders: (chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, statuses?: Array<GetOrdersStatusesEnum>, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
64
  /**
55
65
  *
56
66
  * @param {*} [options] Override http request option.
@@ -76,6 +86,14 @@ export declare const SealClientFp: (configuration?: Configuration) => {
76
86
  * @throws {RequiredError}
77
87
  */
78
88
  createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
89
+ /**
90
+ *
91
+ * @param {string} chainId uint256
92
+ * @param {string} owner
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ getOrderNonce(chainId: string, owner: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrderNonceResponse>>;
79
97
  /**
80
98
  *
81
99
  * @param {string} [chainId] uint256
@@ -84,7 +102,8 @@ export declare const SealClientFp: (configuration?: Configuration) => {
84
102
  * @param {string} [owner]
85
103
  * @param {string} [fromPrice] uint256
86
104
  * @param {string} [toPrice] uint256
87
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
105
+ * @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
106
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
88
107
  * @param {boolean} [orderByDescending]
89
108
  * @param {string} [paginationKey]
90
109
  * @param {number} [paginationLimit]
@@ -92,7 +111,7 @@ export declare const SealClientFp: (configuration?: Configuration) => {
92
111
  * @param {*} [options] Override http request option.
93
112
  * @throws {RequiredError}
94
113
  */
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>>;
114
+ getOrders(chainId?: string, tokenIn?: string, tokenOut?: string, owner?: string, fromPrice?: string, toPrice?: string, statuses?: Array<GetOrdersStatusesEnum>, orderByProperty?: GetOrdersOrderByPropertyEnum, orderByDescending?: boolean, paginationKey?: string, paginationLimit?: number, paginationCountTotal?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealGetOrdersResponse>>;
96
115
  /**
97
116
  *
98
117
  * @param {*} [options] Override http request option.
@@ -118,6 +137,13 @@ export declare const SealClientFactory: (configuration?: Configuration, basePath
118
137
  * @throws {RequiredError}
119
138
  */
120
139
  createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
140
+ /**
141
+ *
142
+ * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getOrderNonce(requestParameters: SealClientGetOrderNonceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SealGetOrderNonceResponse>;
121
147
  /**
122
148
  *
123
149
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -145,6 +171,25 @@ export interface SealClientCreateOrderIntentRequest {
145
171
  */
146
172
  readonly body: SealCreateOrderIntentRequest;
147
173
  }
174
+ /**
175
+ * Request parameters for getOrderNonce operation in SealClient.
176
+ * @export
177
+ * @interface SealClientGetOrderNonceRequest
178
+ */
179
+ export interface SealClientGetOrderNonceRequest {
180
+ /**
181
+ * uint256
182
+ * @type {string}
183
+ * @memberof SealClientGetOrderNonce
184
+ */
185
+ readonly chainId: string;
186
+ /**
187
+ *
188
+ * @type {string}
189
+ * @memberof SealClientGetOrderNonce
190
+ */
191
+ readonly owner: string;
192
+ }
148
193
  /**
149
194
  * Request parameters for getOrders operation in SealClient.
150
195
  * @export
@@ -188,8 +233,14 @@ export interface SealClientGetOrdersRequest {
188
233
  */
189
234
  readonly toPrice?: string;
190
235
  /**
191
- * - INVALID: UNSPECIFIED
192
- * @type {'INVALID' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID'}
236
+ * orders that have either of the given statuses
237
+ * @type {Array<'ORDER_STATUS_UNSPECIFIED' | 'ORDER_STATUS_EXPIRED'>}
238
+ * @memberof SealClientGetOrders
239
+ */
240
+ readonly statuses?: Array<GetOrdersStatusesEnum>;
241
+ /**
242
+ *
243
+ * @type {'UNSPECIFIED' | 'OWNER' | 'TOKEN_IN' | 'TOKEN_OUT' | 'AMOUNT_IN' | 'PRICE' | 'PARTIALLY_FILLABLE' | 'DEADLINE' | 'CHAIN_ID'}
193
244
  * @memberof SealClientGetOrders
194
245
  */
195
246
  readonly orderByProperty?: GetOrdersOrderByPropertyEnum;
@@ -240,6 +291,14 @@ export declare class SealClient extends BaseAPI {
240
291
  * @memberof SealClient
241
292
  */
242
293
  createOrderIntent(requestParameters: SealClientCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
294
+ /**
295
+ *
296
+ * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ * @memberof SealClient
300
+ */
301
+ getOrderNonce(requestParameters: SealClientGetOrderNonceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetOrderNonceResponse, any>>;
243
302
  /**
244
303
  *
245
304
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -256,12 +315,20 @@ export declare class SealClient extends BaseAPI {
256
315
  */
257
316
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealGetHealthCheckResponse, any>>;
258
317
  }
318
+ /**
319
+ * @export
320
+ * @enum {string}
321
+ */
322
+ export declare enum GetOrdersStatusesEnum {
323
+ OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
324
+ OrderStatusExpired = "ORDER_STATUS_EXPIRED"
325
+ }
259
326
  /**
260
327
  * @export
261
328
  * @enum {string}
262
329
  */
263
330
  export declare enum GetOrdersOrderByPropertyEnum {
264
- Invalid = "INVALID",
331
+ Unspecified = "UNSPECIFIED",
265
332
  Owner = "OWNER",
266
333
  TokenIn = "TOKEN_IN",
267
334
  TokenOut = "TOKEN_OUT",
@@ -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.GetOrdersOrderByPropertyEnum = exports.GetOrdersStatusesEnum = 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
@@ -82,6 +82,42 @@ const SealClientAxiosParamCreator = function (configuration) {
82
82
  options: localVarRequestOptions,
83
83
  };
84
84
  },
85
+ /**
86
+ *
87
+ * @param {string} chainId uint256
88
+ * @param {string} owner
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ getOrderNonce: async (chainId, owner, options = {}) => {
93
+ // verify required parameter 'chainId' is not null or undefined
94
+ (0, common_1.assertParamExists)('getOrderNonce', 'chainId', chainId);
95
+ // verify required parameter 'owner' is not null or undefined
96
+ (0, common_1.assertParamExists)('getOrderNonce', 'owner', owner);
97
+ const localVarPath = `/seal/orders/nonce`;
98
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ }
104
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
105
+ const localVarHeaderParameter = {};
106
+ const localVarQueryParameter = {};
107
+ if (chainId !== undefined) {
108
+ localVarQueryParameter['chainId'] = chainId;
109
+ }
110
+ if (owner !== undefined) {
111
+ localVarQueryParameter['owner'] = owner;
112
+ }
113
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
115
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
116
+ return {
117
+ url: (0, common_1.toPathString)(localVarUrlObj),
118
+ options: localVarRequestOptions,
119
+ };
120
+ },
85
121
  /**
86
122
  *
87
123
  * @param {string} [chainId] uint256
@@ -90,7 +126,8 @@ const SealClientAxiosParamCreator = function (configuration) {
90
126
  * @param {string} [owner]
91
127
  * @param {string} [fromPrice] uint256
92
128
  * @param {string} [toPrice] uint256
93
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
129
+ * @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
130
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
94
131
  * @param {boolean} [orderByDescending]
95
132
  * @param {string} [paginationKey]
96
133
  * @param {number} [paginationLimit]
@@ -98,7 +135,7 @@ const SealClientAxiosParamCreator = function (configuration) {
98
135
  * @param {*} [options] Override http request option.
99
136
  * @throws {RequiredError}
100
137
  */
101
- getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
138
+ getOrders: async (chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options = {}) => {
102
139
  const localVarPath = `/seal/orders`;
103
140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
141
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -127,6 +164,9 @@ const SealClientAxiosParamCreator = function (configuration) {
127
164
  if (toPrice !== undefined) {
128
165
  localVarQueryParameter['toPrice'] = toPrice;
129
166
  }
167
+ if (statuses) {
168
+ localVarQueryParameter['statuses'] = statuses;
169
+ }
130
170
  if (orderByProperty !== undefined) {
131
171
  localVarQueryParameter['orderBy.property'] = orderByProperty;
132
172
  }
@@ -207,6 +247,19 @@ const SealClientFp = function (configuration) {
207
247
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrderIntent']?.[localVarOperationServerIndex]?.url;
208
248
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
209
249
  },
250
+ /**
251
+ *
252
+ * @param {string} chainId uint256
253
+ * @param {string} owner
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ async getOrderNonce(chainId, owner, options) {
258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderNonce(chainId, owner, options);
259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
260
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrderNonce']?.[localVarOperationServerIndex]?.url;
261
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
262
+ },
210
263
  /**
211
264
  *
212
265
  * @param {string} [chainId] uint256
@@ -215,7 +268,8 @@ const SealClientFp = function (configuration) {
215
268
  * @param {string} [owner]
216
269
  * @param {string} [fromPrice] uint256
217
270
  * @param {string} [toPrice] uint256
218
- * @param {GetOrdersOrderByPropertyEnum} [orderByProperty] - INVALID: UNSPECIFIED
271
+ * @param {Array<GetOrdersStatusesEnum>} [statuses] orders that have either of the given statuses
272
+ * @param {GetOrdersOrderByPropertyEnum} [orderByProperty]
219
273
  * @param {boolean} [orderByDescending]
220
274
  * @param {string} [paginationKey]
221
275
  * @param {number} [paginationLimit]
@@ -223,8 +277,8 @@ const SealClientFp = function (configuration) {
223
277
  * @param {*} [options] Override http request option.
224
278
  * @throws {RequiredError}
225
279
  */
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);
280
+ async getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options) {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(chainId, tokenIn, tokenOut, owner, fromPrice, toPrice, statuses, orderByProperty, orderByDescending, paginationKey, paginationLimit, paginationCountTotal, options);
228
282
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
229
283
  const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.getOrders']?.[localVarOperationServerIndex]?.url;
230
284
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -267,6 +321,15 @@ const SealClientFactory = function (configuration, basePath, axios) {
267
321
  createOrderIntent(requestParameters, options) {
268
322
  return localVarFp.createOrderIntent(requestParameters.body, options).then((request) => request(axios, basePath));
269
323
  },
324
+ /**
325
+ *
326
+ * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ getOrderNonce(requestParameters, options) {
331
+ return localVarFp.getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(axios, basePath));
332
+ },
270
333
  /**
271
334
  *
272
335
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -274,7 +337,7 @@ const SealClientFactory = function (configuration, basePath, axios) {
274
337
  * @throws {RequiredError}
275
338
  */
276
339
  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));
340
+ return localVarFp.getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.statuses, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(axios, basePath));
278
341
  },
279
342
  /**
280
343
  *
@@ -313,6 +376,16 @@ class SealClient extends base_1.BaseAPI {
313
376
  createOrderIntent(requestParameters, options) {
314
377
  return (0, exports.SealClientFp)(this.configuration).createOrderIntent(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
315
378
  }
379
+ /**
380
+ *
381
+ * @param {SealClientGetOrderNonceRequest} requestParameters Request parameters.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ * @memberof SealClient
385
+ */
386
+ getOrderNonce(requestParameters, options) {
387
+ return (0, exports.SealClientFp)(this.configuration).getOrderNonce(requestParameters.chainId, requestParameters.owner, options).then((request) => request(this.axios, this.basePath));
388
+ }
316
389
  /**
317
390
  *
318
391
  * @param {SealClientGetOrdersRequest} requestParameters Request parameters.
@@ -321,7 +394,7 @@ class SealClient extends base_1.BaseAPI {
321
394
  * @memberof SealClient
322
395
  */
323
396
  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));
397
+ return (0, exports.SealClientFp)(this.configuration).getOrders(requestParameters.chainId, requestParameters.tokenIn, requestParameters.tokenOut, requestParameters.owner, requestParameters.fromPrice, requestParameters.toPrice, requestParameters.statuses, requestParameters.orderByProperty, requestParameters.orderByDescending, requestParameters.paginationKey, requestParameters.paginationLimit, requestParameters.paginationCountTotal, options).then((request) => request(this.axios, this.basePath));
325
398
  }
326
399
  /**
327
400
  *
@@ -334,13 +407,22 @@ class SealClient extends base_1.BaseAPI {
334
407
  }
335
408
  }
336
409
  exports.SealClient = SealClient;
410
+ /**
411
+ * @export
412
+ * @enum {string}
413
+ */
414
+ var GetOrdersStatusesEnum;
415
+ (function (GetOrdersStatusesEnum) {
416
+ GetOrdersStatusesEnum["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
417
+ GetOrdersStatusesEnum["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
418
+ })(GetOrdersStatusesEnum || (exports.GetOrdersStatusesEnum = GetOrdersStatusesEnum = {}));
337
419
  /**
338
420
  * @export
339
421
  * @enum {string}
340
422
  */
341
423
  var GetOrdersOrderByPropertyEnum;
342
424
  (function (GetOrdersOrderByPropertyEnum) {
343
- GetOrdersOrderByPropertyEnum["Invalid"] = "INVALID";
425
+ GetOrdersOrderByPropertyEnum["Unspecified"] = "UNSPECIFIED";
344
426
  GetOrdersOrderByPropertyEnum["Owner"] = "OWNER";
345
427
  GetOrdersOrderByPropertyEnum["TokenIn"] = "TOKEN_IN";
346
428
  GetOrdersOrderByPropertyEnum["TokenOut"] = "TOKEN_OUT";
@@ -6,6 +6,7 @@ export * from './seal-database-config';
6
6
  export * from './seal-eip712-domain-config';
7
7
  export * from './seal-get-config-response';
8
8
  export * from './seal-get-health-check-response';
9
+ export * from './seal-get-order-nonce-response';
9
10
  export * from './seal-get-orders-response';
10
11
  export * from './seal-logger-config';
11
12
  export * from './seal-order';
@@ -14,4 +15,5 @@ export * from './seal-orders-order-by-property';
14
15
  export * from './seal-pagination';
15
16
  export * from './seal-signature-verification-config';
16
17
  export * from './seal-transfer-permission';
18
+ export * from './types-order-status';
17
19
  export * from './types-transfer-permission-type';
@@ -22,6 +22,7 @@ __exportStar(require("./seal-database-config"), exports);
22
22
  __exportStar(require("./seal-eip712-domain-config"), exports);
23
23
  __exportStar(require("./seal-get-config-response"), exports);
24
24
  __exportStar(require("./seal-get-health-check-response"), exports);
25
+ __exportStar(require("./seal-get-order-nonce-response"), exports);
25
26
  __exportStar(require("./seal-get-orders-response"), exports);
26
27
  __exportStar(require("./seal-logger-config"), exports);
27
28
  __exportStar(require("./seal-order"), exports);
@@ -30,4 +31,5 @@ __exportStar(require("./seal-orders-order-by-property"), exports);
30
31
  __exportStar(require("./seal-pagination"), exports);
31
32
  __exportStar(require("./seal-signature-verification-config"), exports);
32
33
  __exportStar(require("./seal-transfer-permission"), exports);
34
+ __exportStar(require("./types-order-status"), exports);
33
35
  __exportStar(require("./types-transfer-permission-type"), exports);
@@ -0,0 +1,24 @@
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 SealGetOrderNonceResponse
16
+ */
17
+ export interface SealGetOrderNonceResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SealGetOrderNonceResponse
22
+ */
23
+ 'nonce'?: string;
24
+ }
@@ -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 });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TypesOrderStatus } from './types-order-status';
12
13
  /**
13
14
  * TODO add other fields for status, and ...
14
15
  * @export
@@ -63,4 +64,10 @@ export interface SealOrder {
63
64
  * @memberof SealOrder
64
65
  */
65
66
  'deadline'?: number;
67
+ /**
68
+ *
69
+ * @type {TypesOrderStatus}
70
+ * @memberof SealOrder
71
+ */
72
+ 'status'?: TypesOrderStatus;
66
73
  }
@@ -15,7 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum SealOrdersOrderByProperty {
18
- Invalid = "INVALID",
18
+ Unspecified = "UNSPECIFIED",
19
19
  Owner = "OWNER",
20
20
  TokenIn = "TOKEN_IN",
21
21
  TokenOut = "TOKEN_OUT",
@@ -21,7 +21,7 @@ exports.SealOrdersOrderByProperty = void 0;
21
21
  */
22
22
  var SealOrdersOrderByProperty;
23
23
  (function (SealOrdersOrderByProperty) {
24
- SealOrdersOrderByProperty["Invalid"] = "INVALID";
24
+ SealOrdersOrderByProperty["Unspecified"] = "UNSPECIFIED";
25
25
  SealOrdersOrderByProperty["Owner"] = "OWNER";
26
26
  SealOrdersOrderByProperty["TokenIn"] = "TOKEN_IN";
27
27
  SealOrdersOrderByProperty["TokenOut"] = "TOKEN_OUT";
@@ -0,0 +1,20 @@
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 TypesOrderStatus {
18
+ OrderStatusUnspecified = "ORDER_STATUS_UNSPECIFIED",
19
+ OrderStatusExpired = "ORDER_STATUS_EXPIRED"
20
+ }
@@ -0,0 +1,26 @@
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.TypesOrderStatus = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var TypesOrderStatus;
23
+ (function (TypesOrderStatus) {
24
+ TypesOrderStatus["OrderStatusUnspecified"] = "ORDER_STATUS_UNSPECIFIED";
25
+ TypesOrderStatus["OrderStatusExpired"] = "ORDER_STATUS_EXPIRED";
26
+ })(TypesOrderStatus || (exports.TypesOrderStatus = TypesOrderStatus = {}));
@@ -15,7 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum TypesTransferPermissionType {
18
- Invalid = "INVALID",
18
+ Unspecified = "UNSPECIFIED",
19
19
  Normal = "NORMAL",
20
20
  Eip2612 = "EIP2612",
21
21
  Permit2 = "PERMIT2"
@@ -21,7 +21,7 @@ exports.TypesTransferPermissionType = void 0;
21
21
  */
22
22
  var TypesTransferPermissionType;
23
23
  (function (TypesTransferPermissionType) {
24
- TypesTransferPermissionType["Invalid"] = "INVALID";
24
+ TypesTransferPermissionType["Unspecified"] = "UNSPECIFIED";
25
25
  TypesTransferPermissionType["Normal"] = "NORMAL";
26
26
  TypesTransferPermissionType["Eip2612"] = "EIP2612";
27
27
  TypesTransferPermissionType["Permit2"] = "PERMIT2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
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",