@rivascva/dt-idl 1.1.24 → 1.1.26

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/dist/index.d.ts CHANGED
@@ -681,7 +681,8 @@ interface paths {
681
681
  put?: never;
682
682
  /** @description Add a new order */
683
683
  post: operations["addOrder"];
684
- delete?: never;
684
+ /** @description Delete an existing order */
685
+ delete: operations["deleteOrder"];
685
686
  options?: never;
686
687
  head?: never;
687
688
  patch?: never;
@@ -822,13 +823,20 @@ interface components {
822
823
  message: string;
823
824
  };
824
825
  /** @enum {string} */
825
- ErrorCode: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES";
826
+ ErrorCode: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES" | "UNDELETABLE";
826
827
  /** @enum {string} */
827
828
  PortfolioType: "PERSONAL" | "COMPETITIVE";
828
829
  /** @enum {string} */
829
830
  OrderType: "BUY_MARKET" | "BUY_LIMIT" | "BUY_STOP" | "SELL_MARKET" | "SELL_LIMIT" | "SELL_STOP";
830
831
  };
831
832
  responses: {
833
+ /** @description No content */
834
+ NoContent: {
835
+ headers: {
836
+ [name: string]: unknown;
837
+ };
838
+ content?: never;
839
+ };
832
840
  /** @description The resource was not found */
833
841
  NotFound: {
834
842
  headers: {
@@ -1021,6 +1029,29 @@ interface operations {
1021
1029
  500: components["responses"]["InternalServerError"];
1022
1030
  };
1023
1031
  };
1032
+ deleteOrder: {
1033
+ parameters: {
1034
+ query?: never;
1035
+ header?: never;
1036
+ path?: never;
1037
+ cookie?: never;
1038
+ };
1039
+ /** @description The request body to delete an existing order */
1040
+ requestBody: {
1041
+ content: {
1042
+ "application/json": {
1043
+ /** @example 123456 */
1044
+ id: string;
1045
+ };
1046
+ };
1047
+ };
1048
+ responses: {
1049
+ 204: components["responses"]["NoContent"];
1050
+ 400: components["responses"]["BadRequest"];
1051
+ 404: components["responses"]["NotFound"];
1052
+ 500: components["responses"]["InternalServerError"];
1053
+ };
1054
+ };
1024
1055
  }
1025
1056
 
1026
1057
  declare const createMarketServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths$1, `${string}/${string}`>;
@@ -1033,7 +1064,7 @@ declare const isMarketServiceError: (error: unknown) => error is {
1033
1064
  };
1034
1065
  declare const isTradeServiceError: (error: unknown) => error is {
1035
1066
  status: number;
1036
- code: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES";
1067
+ code: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES" | "UNDELETABLE";
1037
1068
  message: string;
1038
1069
  };
1039
1070
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -166,6 +166,32 @@ paths:
166
166
  $ref: '#/components/responses/NotFound'
167
167
  500:
168
168
  $ref: '#/components/responses/InternalServerError'
169
+ delete:
170
+ description: Delete an existing order
171
+ operationId: deleteOrder
172
+ tags:
173
+ - Orders
174
+ requestBody:
175
+ description: The request body to delete an existing order
176
+ required: true
177
+ content:
178
+ application/json:
179
+ schema:
180
+ properties:
181
+ id:
182
+ type: string
183
+ example: 123456
184
+ required:
185
+ - id
186
+ responses:
187
+ 204:
188
+ $ref: '#/components/responses/NoContent'
189
+ 400:
190
+ $ref: '#/components/responses/BadRequest'
191
+ 404:
192
+ $ref: '#/components/responses/NotFound'
193
+ 500:
194
+ $ref: '#/components/responses/InternalServerError'
169
195
 
170
196
  components:
171
197
  schemas:
@@ -364,6 +390,7 @@ components:
364
390
  - ERROR
365
391
  - NOT_ENOUGH_CASH
366
392
  - NOT_ENOUGH_SHARES
393
+ - UNDELETABLE
367
394
 
368
395
  PortfolioType:
369
396
  type: string
@@ -382,6 +409,9 @@ components:
382
409
  - SELL_STOP
383
410
 
384
411
  responses:
412
+ NoContent:
413
+ description: No content
414
+
385
415
  NotFound:
386
416
  description: The resource was not found
387
417
  content:
@@ -68,7 +68,8 @@ export interface paths {
68
68
  put?: never;
69
69
  /** @description Add a new order */
70
70
  post: operations["addOrder"];
71
- delete?: never;
71
+ /** @description Delete an existing order */
72
+ delete: operations["deleteOrder"];
72
73
  options?: never;
73
74
  head?: never;
74
75
  patch?: never;
@@ -210,13 +211,20 @@ export interface components {
210
211
  message: string;
211
212
  };
212
213
  /** @enum {string} */
213
- ErrorCode: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES";
214
+ ErrorCode: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES" | "UNDELETABLE";
214
215
  /** @enum {string} */
215
216
  PortfolioType: "PERSONAL" | "COMPETITIVE";
216
217
  /** @enum {string} */
217
218
  OrderType: "BUY_MARKET" | "BUY_LIMIT" | "BUY_STOP" | "SELL_MARKET" | "SELL_LIMIT" | "SELL_STOP";
218
219
  };
219
220
  responses: {
221
+ /** @description No content */
222
+ NoContent: {
223
+ headers: {
224
+ [name: string]: unknown;
225
+ };
226
+ content?: never;
227
+ };
220
228
  /** @description The resource was not found */
221
229
  NotFound: {
222
230
  headers: {
@@ -410,4 +418,27 @@ export interface operations {
410
418
  500: components["responses"]["InternalServerError"];
411
419
  };
412
420
  };
421
+ deleteOrder: {
422
+ parameters: {
423
+ query?: never;
424
+ header?: never;
425
+ path?: never;
426
+ cookie?: never;
427
+ };
428
+ /** @description The request body to delete an existing order */
429
+ requestBody: {
430
+ content: {
431
+ "application/json": {
432
+ /** @example 123456 */
433
+ id: string;
434
+ };
435
+ };
436
+ };
437
+ responses: {
438
+ 204: components["responses"]["NoContent"];
439
+ 400: components["responses"]["BadRequest"];
440
+ 404: components["responses"]["NotFound"];
441
+ 500: components["responses"]["InternalServerError"];
442
+ };
443
+ };
413
444
  }