@seal-protocol/backendjs 0.0.1 → 0.0.2

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * seal/backend/server/query.proto
2
+ * seal/query.proto
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: version not set
@@ -13,19 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface BackendserverConfig
20
- */
21
- export interface BackendserverConfig {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof BackendserverConfig
26
- */
27
- 'dummy'?: string;
28
- }
29
16
  /**
30
17
  *
31
18
  * @export
@@ -68,228 +55,333 @@ export interface RpcStatus {
68
55
  /**
69
56
  *
70
57
  * @export
71
- * @interface ServerCreateOrderIntentRequest
58
+ * @interface SealConfig
59
+ */
60
+ export interface SealConfig {
61
+ /**
62
+ *
63
+ * @type {SealLoggerConfig}
64
+ * @memberof SealConfig
65
+ */
66
+ 'logger'?: SealLoggerConfig;
67
+ /**
68
+ *
69
+ * @type {SealDatabaseConfig}
70
+ * @memberof SealConfig
71
+ */
72
+ 'database'?: SealDatabaseConfig;
73
+ }
74
+ /**
75
+ *
76
+ * @export
77
+ * @interface SealCreateOrderIntentRequest
72
78
  */
73
- export interface ServerCreateOrderIntentRequest {
79
+ export interface SealCreateOrderIntentRequest {
74
80
  /**
75
81
  *
76
82
  * @type {string}
77
- * @memberof ServerCreateOrderIntentRequest
83
+ * @memberof SealCreateOrderIntentRequest
78
84
  */
79
85
  'owner'?: string;
80
86
  /**
81
87
  *
82
88
  * @type {string}
83
- * @memberof ServerCreateOrderIntentRequest
89
+ * @memberof SealCreateOrderIntentRequest
84
90
  */
85
91
  'tokenIn'?: string;
86
92
  /**
87
93
  *
88
94
  * @type {string}
89
- * @memberof ServerCreateOrderIntentRequest
95
+ * @memberof SealCreateOrderIntentRequest
90
96
  */
91
97
  'amountIn'?: string;
92
98
  /**
93
99
  *
94
100
  * @type {string}
95
- * @memberof ServerCreateOrderIntentRequest
101
+ * @memberof SealCreateOrderIntentRequest
96
102
  */
97
103
  'tokenOut'?: string;
98
104
  /**
99
105
  *
100
106
  * @type {string}
101
- * @memberof ServerCreateOrderIntentRequest
107
+ * @memberof SealCreateOrderIntentRequest
102
108
  */
103
109
  'amountOut'?: string;
104
110
  /**
105
111
  *
106
112
  * @type {boolean}
107
- * @memberof ServerCreateOrderIntentRequest
113
+ * @memberof SealCreateOrderIntentRequest
108
114
  */
109
115
  'allowReservation'?: boolean;
110
116
  /**
111
117
  *
112
118
  * @type {string}
113
- * @memberof ServerCreateOrderIntentRequest
119
+ * @memberof SealCreateOrderIntentRequest
114
120
  */
115
121
  'reservationDepositToken'?: string;
116
122
  /**
117
123
  *
118
124
  * @type {string}
119
- * @memberof ServerCreateOrderIntentRequest
125
+ * @memberof SealCreateOrderIntentRequest
120
126
  */
121
127
  'reservationDepositAmount'?: string;
122
128
  /**
123
129
  *
124
130
  * @type {string}
125
- * @memberof ServerCreateOrderIntentRequest
131
+ * @memberof SealCreateOrderIntentRequest
126
132
  */
127
133
  'reservationPeriod'?: string;
128
134
  /**
129
135
  *
130
136
  * @type {boolean}
131
- * @memberof ServerCreateOrderIntentRequest
137
+ * @memberof SealCreateOrderIntentRequest
132
138
  */
133
139
  'partiallyFillable'?: boolean;
134
140
  /**
135
141
  *
136
142
  * @type {string}
137
- * @memberof ServerCreateOrderIntentRequest
143
+ * @memberof SealCreateOrderIntentRequest
138
144
  */
139
145
  'expiry'?: string;
140
146
  /**
141
147
  *
142
148
  * @type {string}
143
- * @memberof ServerCreateOrderIntentRequest
149
+ * @memberof SealCreateOrderIntentRequest
144
150
  */
145
151
  'nonce'?: string;
146
152
  /**
147
153
  *
148
154
  * @type {string}
149
- * @memberof ServerCreateOrderIntentRequest
155
+ * @memberof SealCreateOrderIntentRequest
150
156
  */
151
157
  'deadline'?: string;
152
158
  }
153
159
  /**
154
160
  *
155
161
  * @export
156
- * @interface ServerQueryConfigResponse
162
+ * @interface SealDatabaseConfig
163
+ */
164
+ export interface SealDatabaseConfig {
165
+ /**
166
+ *
167
+ * @type {number}
168
+ * @memberof SealDatabaseConfig
169
+ */
170
+ 'poolMinConns'?: number;
171
+ /**
172
+ *
173
+ * @type {number}
174
+ * @memberof SealDatabaseConfig
175
+ */
176
+ 'poolMaxConns'?: number;
177
+ /**
178
+ *
179
+ * @type {boolean}
180
+ * @memberof SealDatabaseConfig
181
+ */
182
+ 'queryLoggerEnabled'?: boolean;
183
+ /**
184
+ *
185
+ * @type {boolean}
186
+ * @memberof SealDatabaseConfig
187
+ */
188
+ 'migrationDisabled'?: boolean;
189
+ }
190
+ /**
191
+ *
192
+ * @export
193
+ * @interface SealLoggerConfig
194
+ */
195
+ export interface SealLoggerConfig {
196
+ /**
197
+ *
198
+ * @type {string}
199
+ * @memberof SealLoggerConfig
200
+ */
201
+ 'level'?: string;
202
+ /**
203
+ *
204
+ * @type {string}
205
+ * @memberof SealLoggerConfig
206
+ */
207
+ 'file'?: string;
208
+ /**
209
+ *
210
+ * @type {number}
211
+ * @memberof SealLoggerConfig
212
+ */
213
+ 'maxSize'?: number;
214
+ /**
215
+ *
216
+ * @type {number}
217
+ * @memberof SealLoggerConfig
218
+ */
219
+ 'maxBackups'?: number;
220
+ /**
221
+ *
222
+ * @type {number}
223
+ * @memberof SealLoggerConfig
224
+ */
225
+ 'maxAgeDays'?: number;
226
+ /**
227
+ *
228
+ * @type {boolean}
229
+ * @memberof SealLoggerConfig
230
+ */
231
+ 'compress'?: boolean;
232
+ /**
233
+ *
234
+ * @type {boolean}
235
+ * @memberof SealLoggerConfig
236
+ */
237
+ 'syslog'?: boolean;
238
+ /**
239
+ *
240
+ * @type {boolean}
241
+ * @memberof SealLoggerConfig
242
+ */
243
+ 'reportCaller'?: boolean;
244
+ }
245
+ /**
246
+ *
247
+ * @export
248
+ * @interface SealQueryConfigResponse
157
249
  */
158
- export interface ServerQueryConfigResponse {
250
+ export interface SealQueryConfigResponse {
159
251
  /**
160
252
  *
161
- * @type {BackendserverConfig}
162
- * @memberof ServerQueryConfigResponse
253
+ * @type {SealConfig}
254
+ * @memberof SealQueryConfigResponse
163
255
  */
164
- 'config'?: BackendserverConfig;
256
+ 'config'?: SealConfig;
165
257
  /**
166
258
  *
167
259
  * @type {string}
168
- * @memberof ServerQueryConfigResponse
260
+ * @memberof SealQueryConfigResponse
169
261
  */
170
262
  'gitRevision'?: string;
171
263
  /**
172
264
  *
173
265
  * @type {string}
174
- * @memberof ServerQueryConfigResponse
266
+ * @memberof SealQueryConfigResponse
175
267
  */
176
268
  'uptime'?: string;
177
269
  }
178
270
  /**
179
271
  *
180
272
  * @export
181
- * @interface ServerQueryHealthCheckResponse
273
+ * @interface SealQueryHealthCheckResponse
182
274
  */
183
- export interface ServerQueryHealthCheckResponse {
275
+ export interface SealQueryHealthCheckResponse {
184
276
  /**
185
277
  *
186
278
  * @type {string}
187
- * @memberof ServerQueryHealthCheckResponse
279
+ * @memberof SealQueryHealthCheckResponse
188
280
  */
189
281
  'uptime'?: string;
190
282
  }
191
283
  /**
192
- * QueryApi - axios parameter creator
284
+ * SealClient - axios parameter creator
193
285
  * @export
194
286
  */
195
- export declare const QueryApiAxiosParamCreator: (configuration?: Configuration) => {
287
+ export declare const SealClientAxiosParamCreator: (configuration?: Configuration) => {
196
288
  /**
197
289
  *
198
290
  * @param {*} [options] Override http request option.
199
291
  * @throws {RequiredError}
200
292
  */
201
- queryConfig: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
293
+ config: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
202
294
  /**
203
295
  *
204
- * @param {ServerCreateOrderIntentRequest} body
296
+ * @param {SealCreateOrderIntentRequest} body
205
297
  * @param {*} [options] Override http request option.
206
298
  * @throws {RequiredError}
207
299
  */
208
- queryCreateOrderIntent: (body: ServerCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
300
+ createOrderIntent: (body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
209
301
  /**
210
302
  *
211
303
  * @param {*} [options] Override http request option.
212
304
  * @throws {RequiredError}
213
305
  */
214
- queryHealthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
306
+ healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
215
307
  };
216
308
  /**
217
- * QueryApi - functional programming interface
309
+ * SealClient - functional programming interface
218
310
  * @export
219
311
  */
220
- export declare const QueryApiFp: (configuration?: Configuration) => {
312
+ export declare const SealClientFp: (configuration?: Configuration) => {
221
313
  /**
222
314
  *
223
315
  * @param {*} [options] Override http request option.
224
316
  * @throws {RequiredError}
225
317
  */
226
- queryConfig(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerQueryConfigResponse>>;
318
+ config(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealQueryConfigResponse>>;
227
319
  /**
228
320
  *
229
- * @param {ServerCreateOrderIntentRequest} body
321
+ * @param {SealCreateOrderIntentRequest} body
230
322
  * @param {*} [options] Override http request option.
231
323
  * @throws {RequiredError}
232
324
  */
233
- queryCreateOrderIntent(body: ServerCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
325
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
234
326
  /**
235
327
  *
236
328
  * @param {*} [options] Override http request option.
237
329
  * @throws {RequiredError}
238
330
  */
239
- queryHealthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerQueryHealthCheckResponse>>;
331
+ healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SealQueryHealthCheckResponse>>;
240
332
  };
241
333
  /**
242
- * QueryApi - factory interface
334
+ * SealClient - factory interface
243
335
  * @export
244
336
  */
245
- export declare const QueryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
337
+ export declare const SealClientFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
246
338
  /**
247
339
  *
248
340
  * @param {*} [options] Override http request option.
249
341
  * @throws {RequiredError}
250
342
  */
251
- queryConfig(options?: RawAxiosRequestConfig): AxiosPromise<ServerQueryConfigResponse>;
343
+ config(options?: RawAxiosRequestConfig): AxiosPromise<SealQueryConfigResponse>;
252
344
  /**
253
345
  *
254
- * @param {ServerCreateOrderIntentRequest} body
346
+ * @param {SealCreateOrderIntentRequest} body
255
347
  * @param {*} [options] Override http request option.
256
348
  * @throws {RequiredError}
257
349
  */
258
- queryCreateOrderIntent(body: ServerCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
350
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
259
351
  /**
260
352
  *
261
353
  * @param {*} [options] Override http request option.
262
354
  * @throws {RequiredError}
263
355
  */
264
- queryHealthCheck(options?: RawAxiosRequestConfig): AxiosPromise<ServerQueryHealthCheckResponse>;
356
+ healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<SealQueryHealthCheckResponse>;
265
357
  };
266
358
  /**
267
- * QueryApi - object-oriented interface
359
+ * SealClient - object-oriented interface
268
360
  * @export
269
- * @class QueryApi
361
+ * @class SealClient
270
362
  * @extends {BaseAPI}
271
363
  */
272
- export declare class QueryApi extends BaseAPI {
364
+ export declare class SealClient extends BaseAPI {
273
365
  /**
274
366
  *
275
367
  * @param {*} [options] Override http request option.
276
368
  * @throws {RequiredError}
277
- * @memberof QueryApi
369
+ * @memberof SealClient
278
370
  */
279
- queryConfig(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ServerQueryConfigResponse, any>>;
371
+ config(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealQueryConfigResponse, any>>;
280
372
  /**
281
373
  *
282
- * @param {ServerCreateOrderIntentRequest} body
374
+ * @param {SealCreateOrderIntentRequest} body
283
375
  * @param {*} [options] Override http request option.
284
376
  * @throws {RequiredError}
285
- * @memberof QueryApi
377
+ * @memberof SealClient
286
378
  */
287
- queryCreateOrderIntent(body: ServerCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
379
+ createOrderIntent(body: SealCreateOrderIntentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
288
380
  /**
289
381
  *
290
382
  * @param {*} [options] Override http request option.
291
383
  * @throws {RequiredError}
292
- * @memberof QueryApi
384
+ * @memberof SealClient
293
385
  */
294
- queryHealthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ServerQueryHealthCheckResponse, any>>;
386
+ healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SealQueryHealthCheckResponse, any>>;
295
387
  }
package/lib/api.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * seal/backend/server/query.proto
5
+ * seal/query.proto
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: version not set
@@ -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.QueryApi = exports.QueryApiFactory = exports.QueryApiFp = exports.QueryApiAxiosParamCreator = void 0;
19
+ 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
@@ -24,17 +24,17 @@ const common_1 = require("./common");
24
24
  // @ts-ignore
25
25
  const base_1 = require("./base");
26
26
  /**
27
- * QueryApi - axios parameter creator
27
+ * SealClient - axios parameter creator
28
28
  * @export
29
29
  */
30
- const QueryApiAxiosParamCreator = function (configuration) {
30
+ const SealClientAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
33
  *
34
34
  * @param {*} [options] Override http request option.
35
35
  * @throws {RequiredError}
36
36
  */
37
- queryConfig: async (options = {}) => {
37
+ config: async (options = {}) => {
38
38
  const localVarPath = `/seal/config`;
39
39
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
40
40
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -55,13 +55,13 @@ const QueryApiAxiosParamCreator = function (configuration) {
55
55
  },
56
56
  /**
57
57
  *
58
- * @param {ServerCreateOrderIntentRequest} body
58
+ * @param {SealCreateOrderIntentRequest} body
59
59
  * @param {*} [options] Override http request option.
60
60
  * @throws {RequiredError}
61
61
  */
62
- queryCreateOrderIntent: async (body, options = {}) => {
62
+ createOrderIntent: async (body, options = {}) => {
63
63
  // verify required parameter 'body' is not null or undefined
64
- (0, common_1.assertParamExists)('queryCreateOrderIntent', 'body', body);
64
+ (0, common_1.assertParamExists)('createOrderIntent', 'body', body);
65
65
  const localVarPath = `/seal/order/create_order_intent`;
66
66
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
67
67
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -87,7 +87,7 @@ const QueryApiAxiosParamCreator = function (configuration) {
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
- queryHealthCheck: async (options = {}) => {
90
+ healthCheck: async (options = {}) => {
91
91
  const localVarPath = `/seal/health`;
92
92
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
93
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -108,35 +108,35 @@ const QueryApiAxiosParamCreator = function (configuration) {
108
108
  },
109
109
  };
110
110
  };
111
- exports.QueryApiAxiosParamCreator = QueryApiAxiosParamCreator;
111
+ exports.SealClientAxiosParamCreator = SealClientAxiosParamCreator;
112
112
  /**
113
- * QueryApi - functional programming interface
113
+ * SealClient - functional programming interface
114
114
  * @export
115
115
  */
116
- const QueryApiFp = function (configuration) {
117
- const localVarAxiosParamCreator = (0, exports.QueryApiAxiosParamCreator)(configuration);
116
+ const SealClientFp = function (configuration) {
117
+ const localVarAxiosParamCreator = (0, exports.SealClientAxiosParamCreator)(configuration);
118
118
  return {
119
119
  /**
120
120
  *
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}
123
123
  */
124
- async queryConfig(options) {
125
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryConfig(options);
124
+ async config(options) {
125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.config(options);
126
126
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
127
- const localVarOperationServerBasePath = base_1.operationServerMap['QueryApi.queryConfig']?.[localVarOperationServerIndex]?.url;
127
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.config']?.[localVarOperationServerIndex]?.url;
128
128
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
129
129
  },
130
130
  /**
131
131
  *
132
- * @param {ServerCreateOrderIntentRequest} body
132
+ * @param {SealCreateOrderIntentRequest} body
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
135
135
  */
136
- async queryCreateOrderIntent(body, options) {
137
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryCreateOrderIntent(body, options);
136
+ async createOrderIntent(body, options) {
137
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrderIntent(body, options);
138
138
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
139
- const localVarOperationServerBasePath = base_1.operationServerMap['QueryApi.queryCreateOrderIntent']?.[localVarOperationServerIndex]?.url;
139
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.createOrderIntent']?.[localVarOperationServerIndex]?.url;
140
140
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
141
141
  },
142
142
  /**
@@ -144,84 +144,84 @@ const QueryApiFp = function (configuration) {
144
144
  * @param {*} [options] Override http request option.
145
145
  * @throws {RequiredError}
146
146
  */
147
- async queryHealthCheck(options) {
148
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryHealthCheck(options);
147
+ async healthCheck(options) {
148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
149
149
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
150
- const localVarOperationServerBasePath = base_1.operationServerMap['QueryApi.queryHealthCheck']?.[localVarOperationServerIndex]?.url;
150
+ const localVarOperationServerBasePath = base_1.operationServerMap['SealClient.healthCheck']?.[localVarOperationServerIndex]?.url;
151
151
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
152
152
  },
153
153
  };
154
154
  };
155
- exports.QueryApiFp = QueryApiFp;
155
+ exports.SealClientFp = SealClientFp;
156
156
  /**
157
- * QueryApi - factory interface
157
+ * SealClient - factory interface
158
158
  * @export
159
159
  */
160
- const QueryApiFactory = function (configuration, basePath, axios) {
161
- const localVarFp = (0, exports.QueryApiFp)(configuration);
160
+ const SealClientFactory = function (configuration, basePath, axios) {
161
+ const localVarFp = (0, exports.SealClientFp)(configuration);
162
162
  return {
163
163
  /**
164
164
  *
165
165
  * @param {*} [options] Override http request option.
166
166
  * @throws {RequiredError}
167
167
  */
168
- queryConfig(options) {
169
- return localVarFp.queryConfig(options).then((request) => request(axios, basePath));
168
+ config(options) {
169
+ return localVarFp.config(options).then((request) => request(axios, basePath));
170
170
  },
171
171
  /**
172
172
  *
173
- * @param {ServerCreateOrderIntentRequest} body
173
+ * @param {SealCreateOrderIntentRequest} body
174
174
  * @param {*} [options] Override http request option.
175
175
  * @throws {RequiredError}
176
176
  */
177
- queryCreateOrderIntent(body, options) {
178
- return localVarFp.queryCreateOrderIntent(body, options).then((request) => request(axios, basePath));
177
+ createOrderIntent(body, options) {
178
+ return localVarFp.createOrderIntent(body, options).then((request) => request(axios, basePath));
179
179
  },
180
180
  /**
181
181
  *
182
182
  * @param {*} [options] Override http request option.
183
183
  * @throws {RequiredError}
184
184
  */
185
- queryHealthCheck(options) {
186
- return localVarFp.queryHealthCheck(options).then((request) => request(axios, basePath));
185
+ healthCheck(options) {
186
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
187
187
  },
188
188
  };
189
189
  };
190
- exports.QueryApiFactory = QueryApiFactory;
190
+ exports.SealClientFactory = SealClientFactory;
191
191
  /**
192
- * QueryApi - object-oriented interface
192
+ * SealClient - object-oriented interface
193
193
  * @export
194
- * @class QueryApi
194
+ * @class SealClient
195
195
  * @extends {BaseAPI}
196
196
  */
197
- class QueryApi extends base_1.BaseAPI {
197
+ class SealClient extends base_1.BaseAPI {
198
198
  /**
199
199
  *
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
- * @memberof QueryApi
202
+ * @memberof SealClient
203
203
  */
204
- queryConfig(options) {
205
- return (0, exports.QueryApiFp)(this.configuration).queryConfig(options).then((request) => request(this.axios, this.basePath));
204
+ config(options) {
205
+ return (0, exports.SealClientFp)(this.configuration).config(options).then((request) => request(this.axios, this.basePath));
206
206
  }
207
207
  /**
208
208
  *
209
- * @param {ServerCreateOrderIntentRequest} body
209
+ * @param {SealCreateOrderIntentRequest} body
210
210
  * @param {*} [options] Override http request option.
211
211
  * @throws {RequiredError}
212
- * @memberof QueryApi
212
+ * @memberof SealClient
213
213
  */
214
- queryCreateOrderIntent(body, options) {
215
- return (0, exports.QueryApiFp)(this.configuration).queryCreateOrderIntent(body, options).then((request) => request(this.axios, this.basePath));
214
+ createOrderIntent(body, options) {
215
+ return (0, exports.SealClientFp)(this.configuration).createOrderIntent(body, options).then((request) => request(this.axios, this.basePath));
216
216
  }
217
217
  /**
218
218
  *
219
219
  * @param {*} [options] Override http request option.
220
220
  * @throws {RequiredError}
221
- * @memberof QueryApi
221
+ * @memberof SealClient
222
222
  */
223
- queryHealthCheck(options) {
224
- return (0, exports.QueryApiFp)(this.configuration).queryHealthCheck(options).then((request) => request(this.axios, this.basePath));
223
+ healthCheck(options) {
224
+ return (0, exports.SealClientFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
225
225
  }
226
226
  }
227
- exports.QueryApi = QueryApi;
227
+ exports.SealClient = SealClient;
package/lib/base.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * seal/backend/server/query.proto
2
+ * seal/query.proto
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: version not set
package/lib/base.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * seal/backend/server/query.proto
5
+ * seal/query.proto
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: version not set
package/lib/common.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * seal/backend/server/query.proto
2
+ * seal/query.proto
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: version not set
package/lib/common.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * seal/backend/server/query.proto
5
+ * seal/query.proto
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: version not set
@@ -1,5 +1,5 @@
1
1
  /**
2
- * seal/backend/server/query.proto
2
+ * seal/query.proto
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: version not set
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * seal/backend/server/query.proto
5
+ * seal/query.proto
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: version not set
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * seal/backend/server/query.proto
2
+ * seal/query.proto
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: version not set
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * seal/backend/server/query.proto
5
+ * seal/query.proto
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
8
  * The version of the OpenAPI document: version not set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seal-protocol/backendjs",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
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",