@rivascva/dt-idl 1.1.31 → 1.1.35
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.cjs.js +4 -0
- package/dist/index.d.ts +450 -106
- package/dist/index.esm.js +3 -1
- package/package.json +1 -1
- package/redocly.yaml +4 -0
- package/services/dt-app-service.yaml +210 -0
- package/services/dt-trade-service.yaml +99 -42
- package/ts/clients/clients.ts +4 -0
- package/ts/clients/errors.ts +4 -1
- package/ts/services/dt-app-service.ts +238 -0
- package/ts/services/dt-trade-service.ts +115 -16
- package/ts/types/types.ts +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ClientOptions } from 'openapi-fetch';
|
|
|
5
5
|
* This file was auto-generated by openapi-typescript.
|
|
6
6
|
* Do not make direct changes to the file.
|
|
7
7
|
*/
|
|
8
|
-
interface paths$
|
|
8
|
+
interface paths$2 {
|
|
9
9
|
"/stocks/{symbol}": {
|
|
10
10
|
parameters: {
|
|
11
11
|
query?: never;
|
|
@@ -14,7 +14,7 @@ interface paths$1 {
|
|
|
14
14
|
cookie?: never;
|
|
15
15
|
};
|
|
16
16
|
/** @description Gets the full quote for the given stock symbol */
|
|
17
|
-
get: operations$
|
|
17
|
+
get: operations$2["getStock"];
|
|
18
18
|
put?: never;
|
|
19
19
|
post?: never;
|
|
20
20
|
delete?: never;
|
|
@@ -31,7 +31,7 @@ interface paths$1 {
|
|
|
31
31
|
cookie?: never;
|
|
32
32
|
};
|
|
33
33
|
/** @description Gets the price history chart for the given stock symbol */
|
|
34
|
-
get: operations$
|
|
34
|
+
get: operations$2["getStockHistory"];
|
|
35
35
|
put?: never;
|
|
36
36
|
post?: never;
|
|
37
37
|
delete?: never;
|
|
@@ -48,7 +48,7 @@ interface paths$1 {
|
|
|
48
48
|
cookie?: never;
|
|
49
49
|
};
|
|
50
50
|
/** @description Gets the simple quotes for the given stock symbols */
|
|
51
|
-
get: operations$
|
|
51
|
+
get: operations$2["getStocksBySymbols"];
|
|
52
52
|
put?: never;
|
|
53
53
|
post?: never;
|
|
54
54
|
delete?: never;
|
|
@@ -65,7 +65,7 @@ interface paths$1 {
|
|
|
65
65
|
cookie?: never;
|
|
66
66
|
};
|
|
67
67
|
/** @description Gets the simple quotes for the given stock exchange */
|
|
68
|
-
get: operations$
|
|
68
|
+
get: operations$2["getStocksByExchange"];
|
|
69
69
|
put?: never;
|
|
70
70
|
post?: never;
|
|
71
71
|
delete?: never;
|
|
@@ -82,7 +82,7 @@ interface paths$1 {
|
|
|
82
82
|
cookie?: never;
|
|
83
83
|
};
|
|
84
84
|
/** @description Gets the simple quotes for the market gainers */
|
|
85
|
-
get: operations$
|
|
85
|
+
get: operations$2["getMarketGainersStocks"];
|
|
86
86
|
put?: never;
|
|
87
87
|
post?: never;
|
|
88
88
|
delete?: never;
|
|
@@ -99,7 +99,7 @@ interface paths$1 {
|
|
|
99
99
|
cookie?: never;
|
|
100
100
|
};
|
|
101
101
|
/** @description Gets the simple quotes for the market losers */
|
|
102
|
-
get: operations$
|
|
102
|
+
get: operations$2["getMarketLosersStocks"];
|
|
103
103
|
put?: never;
|
|
104
104
|
post?: never;
|
|
105
105
|
delete?: never;
|
|
@@ -116,7 +116,7 @@ interface paths$1 {
|
|
|
116
116
|
cookie?: never;
|
|
117
117
|
};
|
|
118
118
|
/** @description Gets the simple quotes for the market active */
|
|
119
|
-
get: operations$
|
|
119
|
+
get: operations$2["getMarketActiveStocks"];
|
|
120
120
|
put?: never;
|
|
121
121
|
post?: never;
|
|
122
122
|
delete?: never;
|
|
@@ -133,7 +133,7 @@ interface paths$1 {
|
|
|
133
133
|
cookie?: never;
|
|
134
134
|
};
|
|
135
135
|
/** @description Gets the simple quotes that fuzzy match the search query */
|
|
136
|
-
get: operations$
|
|
136
|
+
get: operations$2["getSearchStocks"];
|
|
137
137
|
put?: never;
|
|
138
138
|
post?: never;
|
|
139
139
|
delete?: never;
|
|
@@ -150,7 +150,7 @@ interface paths$1 {
|
|
|
150
150
|
cookie?: never;
|
|
151
151
|
};
|
|
152
152
|
/** @description Gets the latest news articles */
|
|
153
|
-
get: operations$
|
|
153
|
+
get: operations$2["getNews"];
|
|
154
154
|
put?: never;
|
|
155
155
|
post?: never;
|
|
156
156
|
delete?: never;
|
|
@@ -167,7 +167,7 @@ interface paths$1 {
|
|
|
167
167
|
cookie?: never;
|
|
168
168
|
};
|
|
169
169
|
/** @description Gets the latest stock news articles for the given stock symbols */
|
|
170
|
-
get: operations$
|
|
170
|
+
get: operations$2["getNewsBySymbols"];
|
|
171
171
|
put?: never;
|
|
172
172
|
post?: never;
|
|
173
173
|
delete?: never;
|
|
@@ -177,7 +177,7 @@ interface paths$1 {
|
|
|
177
177
|
trace?: never;
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
interface components$
|
|
180
|
+
interface components$2 {
|
|
181
181
|
schemas: {
|
|
182
182
|
/** @description A simple stock quote */
|
|
183
183
|
SimpleQuote: {
|
|
@@ -202,7 +202,7 @@ interface components$1 {
|
|
|
202
202
|
percentChange: number;
|
|
203
203
|
};
|
|
204
204
|
/** @description A full stock quote */
|
|
205
|
-
FullQuote: components$
|
|
205
|
+
FullQuote: components$2["schemas"]["SimpleQuote"] & {
|
|
206
206
|
/**
|
|
207
207
|
* Format: double
|
|
208
208
|
* @example 180.75
|
|
@@ -315,7 +315,7 @@ interface components$1 {
|
|
|
315
315
|
thumbnail: string;
|
|
316
316
|
};
|
|
317
317
|
/** @description A stock news article */
|
|
318
|
-
StockNewsArticle: components$
|
|
318
|
+
StockNewsArticle: components$2["schemas"]["NewsArticle"] & {
|
|
319
319
|
/** @example AAPL */
|
|
320
320
|
symbol: string;
|
|
321
321
|
};
|
|
@@ -327,7 +327,7 @@ interface components$1 {
|
|
|
327
327
|
*/
|
|
328
328
|
status: number;
|
|
329
329
|
/** @example ERROR */
|
|
330
|
-
code: components$
|
|
330
|
+
code: components$2["schemas"]["ErrorCode"];
|
|
331
331
|
/** @example Error */
|
|
332
332
|
message: string;
|
|
333
333
|
};
|
|
@@ -343,7 +343,7 @@ interface components$1 {
|
|
|
343
343
|
[name: string]: unknown;
|
|
344
344
|
};
|
|
345
345
|
content: {
|
|
346
|
-
"application/json": components$
|
|
346
|
+
"application/json": components$2["schemas"]["Error"];
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
/** @description There was an internal server error */
|
|
@@ -352,7 +352,7 @@ interface components$1 {
|
|
|
352
352
|
[name: string]: unknown;
|
|
353
353
|
};
|
|
354
354
|
content: {
|
|
355
|
-
"application/json": components$
|
|
355
|
+
"application/json": components$2["schemas"]["Error"];
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
};
|
|
@@ -361,7 +361,7 @@ interface components$1 {
|
|
|
361
361
|
headers: never;
|
|
362
362
|
pathItems: never;
|
|
363
363
|
}
|
|
364
|
-
interface operations$
|
|
364
|
+
interface operations$2 {
|
|
365
365
|
getStock: {
|
|
366
366
|
parameters: {
|
|
367
367
|
query?: never;
|
|
@@ -380,18 +380,18 @@ interface operations$1 {
|
|
|
380
380
|
[name: string]: unknown;
|
|
381
381
|
};
|
|
382
382
|
content: {
|
|
383
|
-
"application/json": components$
|
|
383
|
+
"application/json": components$2["schemas"]["FullQuote"];
|
|
384
384
|
};
|
|
385
385
|
};
|
|
386
|
-
404: components$
|
|
387
|
-
500: components$
|
|
386
|
+
404: components$2["responses"]["NotFound"];
|
|
387
|
+
500: components$2["responses"]["InternalServerError"];
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
390
|
getStockHistory: {
|
|
391
391
|
parameters: {
|
|
392
392
|
query: {
|
|
393
393
|
/** @description The stock history timeframe */
|
|
394
|
-
timeframe: components$
|
|
394
|
+
timeframe: components$2["schemas"]["StockHistoryTimeframe"];
|
|
395
395
|
/** @description The stock history from date */
|
|
396
396
|
from: string;
|
|
397
397
|
/** @description The stock history to date */
|
|
@@ -412,11 +412,11 @@ interface operations$1 {
|
|
|
412
412
|
[name: string]: unknown;
|
|
413
413
|
};
|
|
414
414
|
content: {
|
|
415
|
-
"application/json": components$
|
|
415
|
+
"application/json": components$2["schemas"]["StockHistoryEntry"][];
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
|
-
404: components$
|
|
419
|
-
500: components$
|
|
418
|
+
404: components$2["responses"]["NotFound"];
|
|
419
|
+
500: components$2["responses"]["InternalServerError"];
|
|
420
420
|
};
|
|
421
421
|
};
|
|
422
422
|
getStocksBySymbols: {
|
|
@@ -437,11 +437,11 @@ interface operations$1 {
|
|
|
437
437
|
[name: string]: unknown;
|
|
438
438
|
};
|
|
439
439
|
content: {
|
|
440
|
-
"application/json": components$
|
|
440
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
441
441
|
};
|
|
442
442
|
};
|
|
443
|
-
404: components$
|
|
444
|
-
500: components$
|
|
443
|
+
404: components$2["responses"]["NotFound"];
|
|
444
|
+
500: components$2["responses"]["InternalServerError"];
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
447
|
getStocksByExchange: {
|
|
@@ -462,11 +462,11 @@ interface operations$1 {
|
|
|
462
462
|
[name: string]: unknown;
|
|
463
463
|
};
|
|
464
464
|
content: {
|
|
465
|
-
"application/json": components$
|
|
465
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
|
-
404: components$
|
|
469
|
-
500: components$
|
|
468
|
+
404: components$2["responses"]["NotFound"];
|
|
469
|
+
500: components$2["responses"]["InternalServerError"];
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
472
|
getMarketGainersStocks: {
|
|
@@ -484,10 +484,10 @@ interface operations$1 {
|
|
|
484
484
|
[name: string]: unknown;
|
|
485
485
|
};
|
|
486
486
|
content: {
|
|
487
|
-
"application/json": components$
|
|
487
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
-
500: components$
|
|
490
|
+
500: components$2["responses"]["InternalServerError"];
|
|
491
491
|
};
|
|
492
492
|
};
|
|
493
493
|
getMarketLosersStocks: {
|
|
@@ -505,10 +505,10 @@ interface operations$1 {
|
|
|
505
505
|
[name: string]: unknown;
|
|
506
506
|
};
|
|
507
507
|
content: {
|
|
508
|
-
"application/json": components$
|
|
508
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
509
509
|
};
|
|
510
510
|
};
|
|
511
|
-
500: components$
|
|
511
|
+
500: components$2["responses"]["InternalServerError"];
|
|
512
512
|
};
|
|
513
513
|
};
|
|
514
514
|
getMarketActiveStocks: {
|
|
@@ -526,10 +526,10 @@ interface operations$1 {
|
|
|
526
526
|
[name: string]: unknown;
|
|
527
527
|
};
|
|
528
528
|
content: {
|
|
529
|
-
"application/json": components$
|
|
529
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
|
-
500: components$
|
|
532
|
+
500: components$2["responses"]["InternalServerError"];
|
|
533
533
|
};
|
|
534
534
|
};
|
|
535
535
|
getSearchStocks: {
|
|
@@ -552,10 +552,10 @@ interface operations$1 {
|
|
|
552
552
|
[name: string]: unknown;
|
|
553
553
|
};
|
|
554
554
|
content: {
|
|
555
|
-
"application/json": components$
|
|
555
|
+
"application/json": components$2["schemas"]["SimpleQuote"][];
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
500: components$
|
|
558
|
+
500: components$2["responses"]["InternalServerError"];
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
561
|
getNews: {
|
|
@@ -576,10 +576,10 @@ interface operations$1 {
|
|
|
576
576
|
[name: string]: unknown;
|
|
577
577
|
};
|
|
578
578
|
content: {
|
|
579
|
-
"application/json": components$
|
|
579
|
+
"application/json": components$2["schemas"]["NewsArticle"][];
|
|
580
580
|
};
|
|
581
581
|
};
|
|
582
|
-
500: components$
|
|
582
|
+
500: components$2["responses"]["InternalServerError"];
|
|
583
583
|
};
|
|
584
584
|
};
|
|
585
585
|
getNewsBySymbols: {
|
|
@@ -603,11 +603,11 @@ interface operations$1 {
|
|
|
603
603
|
[name: string]: unknown;
|
|
604
604
|
};
|
|
605
605
|
content: {
|
|
606
|
-
"application/json": components$
|
|
606
|
+
"application/json": components$2["schemas"]["StockNewsArticle"][];
|
|
607
607
|
};
|
|
608
608
|
};
|
|
609
|
-
404: components$
|
|
610
|
-
500: components$
|
|
609
|
+
404: components$2["responses"]["NotFound"];
|
|
610
|
+
500: components$2["responses"]["InternalServerError"];
|
|
611
611
|
};
|
|
612
612
|
};
|
|
613
613
|
}
|
|
@@ -616,7 +616,7 @@ interface operations$1 {
|
|
|
616
616
|
* This file was auto-generated by openapi-typescript.
|
|
617
617
|
* Do not make direct changes to the file.
|
|
618
618
|
*/
|
|
619
|
-
interface paths {
|
|
619
|
+
interface paths$1 {
|
|
620
620
|
"/users": {
|
|
621
621
|
parameters: {
|
|
622
622
|
query?: never;
|
|
@@ -625,10 +625,10 @@ interface paths {
|
|
|
625
625
|
cookie?: never;
|
|
626
626
|
};
|
|
627
627
|
/** @description Gets all users */
|
|
628
|
-
get: operations["getUsers"];
|
|
628
|
+
get: operations$1["getUsers"];
|
|
629
629
|
put?: never;
|
|
630
630
|
/** @description Adds a new user */
|
|
631
|
-
post: operations["addUser"];
|
|
631
|
+
post: operations$1["addUser"];
|
|
632
632
|
delete?: never;
|
|
633
633
|
options?: never;
|
|
634
634
|
head?: never;
|
|
@@ -643,9 +643,9 @@ interface paths {
|
|
|
643
643
|
cookie?: never;
|
|
644
644
|
};
|
|
645
645
|
/** @description Gets a user */
|
|
646
|
-
get: operations["getUser"];
|
|
646
|
+
get: operations$1["getUser"];
|
|
647
647
|
/** @description Updates an existing user */
|
|
648
|
-
put: operations["updateUser"];
|
|
648
|
+
put: operations$1["updateUser"];
|
|
649
649
|
post?: never;
|
|
650
650
|
delete?: never;
|
|
651
651
|
options?: never;
|
|
@@ -661,7 +661,41 @@ interface paths {
|
|
|
661
661
|
cookie?: never;
|
|
662
662
|
};
|
|
663
663
|
/** @description Gets all portfolios of a user */
|
|
664
|
-
get: operations["getUserPortfolios"];
|
|
664
|
+
get: operations$1["getUserPortfolios"];
|
|
665
|
+
put?: never;
|
|
666
|
+
post?: never;
|
|
667
|
+
delete?: never;
|
|
668
|
+
options?: never;
|
|
669
|
+
head?: never;
|
|
670
|
+
patch?: never;
|
|
671
|
+
trace?: never;
|
|
672
|
+
};
|
|
673
|
+
"/portfolios": {
|
|
674
|
+
parameters: {
|
|
675
|
+
query?: never;
|
|
676
|
+
header?: never;
|
|
677
|
+
path?: never;
|
|
678
|
+
cookie?: never;
|
|
679
|
+
};
|
|
680
|
+
get?: never;
|
|
681
|
+
put?: never;
|
|
682
|
+
/** @description Adds a new portfolio */
|
|
683
|
+
post: operations$1["addPortfolio"];
|
|
684
|
+
delete?: never;
|
|
685
|
+
options?: never;
|
|
686
|
+
head?: never;
|
|
687
|
+
patch?: never;
|
|
688
|
+
trace?: never;
|
|
689
|
+
};
|
|
690
|
+
"/portfolios/by-user/{userId}": {
|
|
691
|
+
parameters: {
|
|
692
|
+
query?: never;
|
|
693
|
+
header?: never;
|
|
694
|
+
path?: never;
|
|
695
|
+
cookie?: never;
|
|
696
|
+
};
|
|
697
|
+
/** @description Gets the portfolios for the given user */
|
|
698
|
+
get: operations$1["getPortfoliosByUser"];
|
|
665
699
|
put?: never;
|
|
666
700
|
post?: never;
|
|
667
701
|
delete?: never;
|
|
@@ -680,16 +714,32 @@ interface paths {
|
|
|
680
714
|
get?: never;
|
|
681
715
|
put?: never;
|
|
682
716
|
/** @description Adds a new order */
|
|
683
|
-
post: operations["addOrder"];
|
|
717
|
+
post: operations$1["addOrder"];
|
|
718
|
+
delete?: never;
|
|
719
|
+
options?: never;
|
|
720
|
+
head?: never;
|
|
721
|
+
patch?: never;
|
|
722
|
+
trace?: never;
|
|
723
|
+
};
|
|
724
|
+
"/orders/{orderId}": {
|
|
725
|
+
parameters: {
|
|
726
|
+
query?: never;
|
|
727
|
+
header?: never;
|
|
728
|
+
path?: never;
|
|
729
|
+
cookie?: never;
|
|
730
|
+
};
|
|
731
|
+
get?: never;
|
|
732
|
+
put?: never;
|
|
733
|
+
post?: never;
|
|
684
734
|
/** @description Deletes an existing order */
|
|
685
|
-
delete: operations["deleteOrder"];
|
|
735
|
+
delete: operations$1["deleteOrder"];
|
|
686
736
|
options?: never;
|
|
687
737
|
head?: never;
|
|
688
738
|
patch?: never;
|
|
689
739
|
trace?: never;
|
|
690
740
|
};
|
|
691
741
|
}
|
|
692
|
-
interface components {
|
|
742
|
+
interface components$1 {
|
|
693
743
|
schemas: {
|
|
694
744
|
/** @description Payload to add a new user */
|
|
695
745
|
AddUserPayload: {
|
|
@@ -703,9 +753,9 @@ interface components {
|
|
|
703
753
|
imageUrl?: string;
|
|
704
754
|
};
|
|
705
755
|
/** @description Payload to update an existing user */
|
|
706
|
-
UpdateUserPayload: components["schemas"]["AddUserPayload"];
|
|
756
|
+
UpdateUserPayload: components$1["schemas"]["AddUserPayload"];
|
|
707
757
|
/** @description A user */
|
|
708
|
-
User: components["schemas"]["AddUserPayload"] & {
|
|
758
|
+
User: components$1["schemas"]["AddUserPayload"] & {
|
|
709
759
|
/** @example 123456 */
|
|
710
760
|
id: string;
|
|
711
761
|
/**
|
|
@@ -719,21 +769,24 @@ interface components {
|
|
|
719
769
|
*/
|
|
720
770
|
dateUpdated: number;
|
|
721
771
|
};
|
|
722
|
-
/** @description
|
|
723
|
-
|
|
724
|
-
/** @example 123456 */
|
|
725
|
-
id: string;
|
|
772
|
+
/** @description Payload to add a new portfolio */
|
|
773
|
+
AddPortfolioPayload: {
|
|
726
774
|
/** @example 123456 */
|
|
727
775
|
userId: string;
|
|
728
776
|
/** @example PERSONAL */
|
|
729
|
-
type: components["schemas"]["PortfolioType"];
|
|
777
|
+
type: components$1["schemas"]["PortfolioType"];
|
|
730
778
|
/**
|
|
731
779
|
* Format: double
|
|
732
780
|
* @example 10500.25
|
|
733
781
|
*/
|
|
734
782
|
cash: number;
|
|
735
|
-
|
|
736
|
-
|
|
783
|
+
};
|
|
784
|
+
/** @description A trading portfolio */
|
|
785
|
+
Portfolio: components$1["schemas"]["AddPortfolioPayload"] & {
|
|
786
|
+
/** @example 123456 */
|
|
787
|
+
id: string;
|
|
788
|
+
holdings: components$1["schemas"]["Holding"][];
|
|
789
|
+
orders: components$1["schemas"]["Order"][];
|
|
737
790
|
/**
|
|
738
791
|
* Format: int64
|
|
739
792
|
* @example 1713398544000
|
|
@@ -777,7 +830,7 @@ interface components {
|
|
|
777
830
|
/** @example 123456 */
|
|
778
831
|
portfolioId: string;
|
|
779
832
|
/** @example BUY */
|
|
780
|
-
type: components["schemas"]["OrderType"];
|
|
833
|
+
type: components$1["schemas"]["OrderType"];
|
|
781
834
|
/** @example AAPL */
|
|
782
835
|
symbol: string;
|
|
783
836
|
/**
|
|
@@ -791,13 +844,8 @@ interface components {
|
|
|
791
844
|
*/
|
|
792
845
|
shares: number;
|
|
793
846
|
};
|
|
794
|
-
/** @description Payload to delete an existing order */
|
|
795
|
-
DeleteOrderPayload: {
|
|
796
|
-
/** @example 123456 */
|
|
797
|
-
id: string;
|
|
798
|
-
};
|
|
799
847
|
/** @description An order */
|
|
800
|
-
Order: components["schemas"]["AddOrderPayload"] & {
|
|
848
|
+
Order: components$1["schemas"]["AddOrderPayload"] & {
|
|
801
849
|
/** @example 123456 */
|
|
802
850
|
id: string;
|
|
803
851
|
/**
|
|
@@ -829,7 +877,7 @@ interface components {
|
|
|
829
877
|
*/
|
|
830
878
|
status: number;
|
|
831
879
|
/** @example ERROR */
|
|
832
|
-
code: components["schemas"]["ErrorCode"];
|
|
880
|
+
code: components$1["schemas"]["ErrorCode"];
|
|
833
881
|
/** @example Error */
|
|
834
882
|
message: string;
|
|
835
883
|
};
|
|
@@ -854,7 +902,7 @@ interface components {
|
|
|
854
902
|
[name: string]: unknown;
|
|
855
903
|
};
|
|
856
904
|
content: {
|
|
857
|
-
"application/json": components["schemas"]["Error"];
|
|
905
|
+
"application/json": components$1["schemas"]["Error"];
|
|
858
906
|
};
|
|
859
907
|
};
|
|
860
908
|
/** @description Invalid request payload */
|
|
@@ -863,7 +911,7 @@ interface components {
|
|
|
863
911
|
[name: string]: unknown;
|
|
864
912
|
};
|
|
865
913
|
content: {
|
|
866
|
-
"application/json": components["schemas"]["Error"];
|
|
914
|
+
"application/json": components$1["schemas"]["Error"];
|
|
867
915
|
};
|
|
868
916
|
};
|
|
869
917
|
/** @description There was an internal server error */
|
|
@@ -872,7 +920,7 @@ interface components {
|
|
|
872
920
|
[name: string]: unknown;
|
|
873
921
|
};
|
|
874
922
|
content: {
|
|
875
|
-
"application/json": components["schemas"]["Error"];
|
|
923
|
+
"application/json": components$1["schemas"]["Error"];
|
|
876
924
|
};
|
|
877
925
|
};
|
|
878
926
|
};
|
|
@@ -881,7 +929,7 @@ interface components {
|
|
|
881
929
|
headers: never;
|
|
882
930
|
pathItems: never;
|
|
883
931
|
}
|
|
884
|
-
interface operations {
|
|
932
|
+
interface operations$1 {
|
|
885
933
|
getUsers: {
|
|
886
934
|
parameters: {
|
|
887
935
|
query?: never;
|
|
@@ -897,11 +945,11 @@ interface operations {
|
|
|
897
945
|
[name: string]: unknown;
|
|
898
946
|
};
|
|
899
947
|
content: {
|
|
900
|
-
"application/json": components["schemas"]["User"][];
|
|
948
|
+
"application/json": components$1["schemas"]["User"][];
|
|
901
949
|
};
|
|
902
950
|
};
|
|
903
|
-
404: components["responses"]["NotFound"];
|
|
904
|
-
500: components["responses"]["InternalServerError"];
|
|
951
|
+
404: components$1["responses"]["NotFound"];
|
|
952
|
+
500: components$1["responses"]["InternalServerError"];
|
|
905
953
|
};
|
|
906
954
|
};
|
|
907
955
|
addUser: {
|
|
@@ -914,7 +962,7 @@ interface operations {
|
|
|
914
962
|
/** @description The request body to add a user */
|
|
915
963
|
requestBody: {
|
|
916
964
|
content: {
|
|
917
|
-
"application/json": components["schemas"]["AddUserPayload"];
|
|
965
|
+
"application/json": components$1["schemas"]["AddUserPayload"];
|
|
918
966
|
};
|
|
919
967
|
};
|
|
920
968
|
responses: {
|
|
@@ -924,11 +972,11 @@ interface operations {
|
|
|
924
972
|
[name: string]: unknown;
|
|
925
973
|
};
|
|
926
974
|
content: {
|
|
927
|
-
"application/json": components["schemas"]["User"];
|
|
975
|
+
"application/json": components$1["schemas"]["User"];
|
|
928
976
|
};
|
|
929
977
|
};
|
|
930
|
-
400: components["responses"]["BadRequest"];
|
|
931
|
-
500: components["responses"]["InternalServerError"];
|
|
978
|
+
400: components$1["responses"]["BadRequest"];
|
|
979
|
+
500: components$1["responses"]["InternalServerError"];
|
|
932
980
|
};
|
|
933
981
|
};
|
|
934
982
|
getUser: {
|
|
@@ -949,11 +997,11 @@ interface operations {
|
|
|
949
997
|
[name: string]: unknown;
|
|
950
998
|
};
|
|
951
999
|
content: {
|
|
952
|
-
"application/json": components["schemas"]["User"];
|
|
1000
|
+
"application/json": components$1["schemas"]["User"];
|
|
953
1001
|
};
|
|
954
1002
|
};
|
|
955
|
-
404: components["responses"]["NotFound"];
|
|
956
|
-
500: components["responses"]["InternalServerError"];
|
|
1003
|
+
404: components$1["responses"]["NotFound"];
|
|
1004
|
+
500: components$1["responses"]["InternalServerError"];
|
|
957
1005
|
};
|
|
958
1006
|
};
|
|
959
1007
|
updateUser: {
|
|
@@ -969,7 +1017,7 @@ interface operations {
|
|
|
969
1017
|
/** @description The request body to updated a user */
|
|
970
1018
|
requestBody: {
|
|
971
1019
|
content: {
|
|
972
|
-
"application/json": components["schemas"]["UpdateUserPayload"];
|
|
1020
|
+
"application/json": components$1["schemas"]["UpdateUserPayload"];
|
|
973
1021
|
};
|
|
974
1022
|
};
|
|
975
1023
|
responses: {
|
|
@@ -979,12 +1027,12 @@ interface operations {
|
|
|
979
1027
|
[name: string]: unknown;
|
|
980
1028
|
};
|
|
981
1029
|
content: {
|
|
982
|
-
"application/json": components["schemas"]["User"];
|
|
1030
|
+
"application/json": components$1["schemas"]["User"];
|
|
983
1031
|
};
|
|
984
1032
|
};
|
|
985
|
-
400: components["responses"]["BadRequest"];
|
|
986
|
-
404: components["responses"]["NotFound"];
|
|
987
|
-
500: components["responses"]["InternalServerError"];
|
|
1033
|
+
400: components$1["responses"]["BadRequest"];
|
|
1034
|
+
404: components$1["responses"]["NotFound"];
|
|
1035
|
+
500: components$1["responses"]["InternalServerError"];
|
|
988
1036
|
};
|
|
989
1037
|
};
|
|
990
1038
|
getUserPortfolios: {
|
|
@@ -1005,11 +1053,64 @@ interface operations {
|
|
|
1005
1053
|
[name: string]: unknown;
|
|
1006
1054
|
};
|
|
1007
1055
|
content: {
|
|
1008
|
-
"application/json": components["schemas"]["Portfolio"][];
|
|
1056
|
+
"application/json": components$1["schemas"]["Portfolio"][];
|
|
1009
1057
|
};
|
|
1010
1058
|
};
|
|
1011
|
-
404: components["responses"]["NotFound"];
|
|
1012
|
-
500: components["responses"]["InternalServerError"];
|
|
1059
|
+
404: components$1["responses"]["NotFound"];
|
|
1060
|
+
500: components$1["responses"]["InternalServerError"];
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
addPortfolio: {
|
|
1064
|
+
parameters: {
|
|
1065
|
+
query?: never;
|
|
1066
|
+
header?: never;
|
|
1067
|
+
path?: never;
|
|
1068
|
+
cookie?: never;
|
|
1069
|
+
};
|
|
1070
|
+
/** @description The request body to add a portfolio */
|
|
1071
|
+
requestBody: {
|
|
1072
|
+
content: {
|
|
1073
|
+
"application/json": components$1["schemas"]["AddPortfolioPayload"];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
responses: {
|
|
1077
|
+
/** @description Added */
|
|
1078
|
+
201: {
|
|
1079
|
+
headers: {
|
|
1080
|
+
[name: string]: unknown;
|
|
1081
|
+
};
|
|
1082
|
+
content: {
|
|
1083
|
+
"application/json": components$1["schemas"]["Portfolio"];
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
400: components$1["responses"]["BadRequest"];
|
|
1087
|
+
404: components$1["responses"]["NotFound"];
|
|
1088
|
+
500: components$1["responses"]["InternalServerError"];
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
getPortfoliosByUser: {
|
|
1092
|
+
parameters: {
|
|
1093
|
+
query?: never;
|
|
1094
|
+
header?: never;
|
|
1095
|
+
path: {
|
|
1096
|
+
/** @description The user id */
|
|
1097
|
+
userId: string;
|
|
1098
|
+
};
|
|
1099
|
+
cookie?: never;
|
|
1100
|
+
};
|
|
1101
|
+
requestBody?: never;
|
|
1102
|
+
responses: {
|
|
1103
|
+
/** @description Success */
|
|
1104
|
+
200: {
|
|
1105
|
+
headers: {
|
|
1106
|
+
[name: string]: unknown;
|
|
1107
|
+
};
|
|
1108
|
+
content: {
|
|
1109
|
+
"application/json": components$1["schemas"]["Portfolio"][];
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
404: components$1["responses"]["NotFound"];
|
|
1113
|
+
500: components$1["responses"]["InternalServerError"];
|
|
1013
1114
|
};
|
|
1014
1115
|
};
|
|
1015
1116
|
addOrder: {
|
|
@@ -1022,7 +1123,7 @@ interface operations {
|
|
|
1022
1123
|
/** @description The request body to add an order */
|
|
1023
1124
|
requestBody: {
|
|
1024
1125
|
content: {
|
|
1025
|
-
"application/json": components["schemas"]["AddOrderPayload"];
|
|
1126
|
+
"application/json": components$1["schemas"]["AddOrderPayload"];
|
|
1026
1127
|
};
|
|
1027
1128
|
};
|
|
1028
1129
|
responses: {
|
|
@@ -1032,29 +1133,263 @@ interface operations {
|
|
|
1032
1133
|
[name: string]: unknown;
|
|
1033
1134
|
};
|
|
1034
1135
|
content: {
|
|
1035
|
-
"application/json": components["schemas"]["Order"];
|
|
1136
|
+
"application/json": components$1["schemas"]["Order"];
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
400: components$1["responses"]["BadRequest"];
|
|
1140
|
+
404: components$1["responses"]["NotFound"];
|
|
1141
|
+
500: components$1["responses"]["InternalServerError"];
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
deleteOrder: {
|
|
1145
|
+
parameters: {
|
|
1146
|
+
query?: never;
|
|
1147
|
+
header?: never;
|
|
1148
|
+
path: {
|
|
1149
|
+
/** @description The order id */
|
|
1150
|
+
orderId: string;
|
|
1151
|
+
};
|
|
1152
|
+
cookie?: never;
|
|
1153
|
+
};
|
|
1154
|
+
requestBody?: never;
|
|
1155
|
+
responses: {
|
|
1156
|
+
204: components$1["responses"]["NoContent"];
|
|
1157
|
+
400: components$1["responses"]["BadRequest"];
|
|
1158
|
+
404: components$1["responses"]["NotFound"];
|
|
1159
|
+
500: components$1["responses"]["InternalServerError"];
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* This file was auto-generated by openapi-typescript.
|
|
1166
|
+
* Do not make direct changes to the file.
|
|
1167
|
+
*/
|
|
1168
|
+
interface paths {
|
|
1169
|
+
"/users": {
|
|
1170
|
+
parameters: {
|
|
1171
|
+
query?: never;
|
|
1172
|
+
header?: never;
|
|
1173
|
+
path?: never;
|
|
1174
|
+
cookie?: never;
|
|
1175
|
+
};
|
|
1176
|
+
/** @description Gets all users */
|
|
1177
|
+
get: operations["getUsers"];
|
|
1178
|
+
put?: never;
|
|
1179
|
+
/** @description Adds a new user */
|
|
1180
|
+
post: operations["addUser"];
|
|
1181
|
+
delete?: never;
|
|
1182
|
+
options?: never;
|
|
1183
|
+
head?: never;
|
|
1184
|
+
patch?: never;
|
|
1185
|
+
trace?: never;
|
|
1186
|
+
};
|
|
1187
|
+
"/users/{userId}": {
|
|
1188
|
+
parameters: {
|
|
1189
|
+
query?: never;
|
|
1190
|
+
header?: never;
|
|
1191
|
+
path?: never;
|
|
1192
|
+
cookie?: never;
|
|
1193
|
+
};
|
|
1194
|
+
/** @description Gets a user */
|
|
1195
|
+
get: operations["getUser"];
|
|
1196
|
+
/** @description Updates an existing user */
|
|
1197
|
+
put: operations["updateUser"];
|
|
1198
|
+
post?: never;
|
|
1199
|
+
delete?: never;
|
|
1200
|
+
options?: never;
|
|
1201
|
+
head?: never;
|
|
1202
|
+
patch?: never;
|
|
1203
|
+
trace?: never;
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
interface components {
|
|
1207
|
+
schemas: {
|
|
1208
|
+
/** @description Payload to add a new user */
|
|
1209
|
+
AddUserPayload: {
|
|
1210
|
+
/** @example sam.smith@example.com */
|
|
1211
|
+
email: string;
|
|
1212
|
+
/** @example Sam Smith */
|
|
1213
|
+
name: string;
|
|
1214
|
+
/** @example USA */
|
|
1215
|
+
country: string;
|
|
1216
|
+
/** @example https://www.assets.com/image.png */
|
|
1217
|
+
imageUrl?: string;
|
|
1218
|
+
};
|
|
1219
|
+
/** @description Payload to update an existing user */
|
|
1220
|
+
UpdateUserPayload: components["schemas"]["AddUserPayload"];
|
|
1221
|
+
/** @description A user */
|
|
1222
|
+
User: components["schemas"]["AddUserPayload"] & {
|
|
1223
|
+
/** @example 123456 */
|
|
1224
|
+
id: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Format: int64
|
|
1227
|
+
* @example 1713398544000
|
|
1228
|
+
*/
|
|
1229
|
+
dateCreated: number;
|
|
1230
|
+
/**
|
|
1231
|
+
* Format: int64
|
|
1232
|
+
* @example 1713398544000
|
|
1233
|
+
*/
|
|
1234
|
+
dateUpdated: number;
|
|
1235
|
+
};
|
|
1236
|
+
/** @description A generic error */
|
|
1237
|
+
Error: {
|
|
1238
|
+
/**
|
|
1239
|
+
* Format: int64
|
|
1240
|
+
* @example 500
|
|
1241
|
+
*/
|
|
1242
|
+
status: number;
|
|
1243
|
+
/** @example ERROR */
|
|
1244
|
+
code: components["schemas"]["ErrorCode"];
|
|
1245
|
+
/** @example Error */
|
|
1246
|
+
message: string;
|
|
1247
|
+
};
|
|
1248
|
+
/** @enum {string} */
|
|
1249
|
+
ErrorCode: "ERROR";
|
|
1250
|
+
};
|
|
1251
|
+
responses: {
|
|
1252
|
+
/** @description No content */
|
|
1253
|
+
NoContent: {
|
|
1254
|
+
headers: {
|
|
1255
|
+
[name: string]: unknown;
|
|
1256
|
+
};
|
|
1257
|
+
content?: never;
|
|
1258
|
+
};
|
|
1259
|
+
/** @description The resource was not found */
|
|
1260
|
+
NotFound: {
|
|
1261
|
+
headers: {
|
|
1262
|
+
[name: string]: unknown;
|
|
1263
|
+
};
|
|
1264
|
+
content: {
|
|
1265
|
+
"application/json": components["schemas"]["Error"];
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
/** @description Invalid request payload */
|
|
1269
|
+
BadRequest: {
|
|
1270
|
+
headers: {
|
|
1271
|
+
[name: string]: unknown;
|
|
1272
|
+
};
|
|
1273
|
+
content: {
|
|
1274
|
+
"application/json": components["schemas"]["Error"];
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
/** @description There was an internal server error */
|
|
1278
|
+
InternalServerError: {
|
|
1279
|
+
headers: {
|
|
1280
|
+
[name: string]: unknown;
|
|
1281
|
+
};
|
|
1282
|
+
content: {
|
|
1283
|
+
"application/json": components["schemas"]["Error"];
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
parameters: never;
|
|
1288
|
+
requestBodies: never;
|
|
1289
|
+
headers: never;
|
|
1290
|
+
pathItems: never;
|
|
1291
|
+
}
|
|
1292
|
+
interface operations {
|
|
1293
|
+
getUsers: {
|
|
1294
|
+
parameters: {
|
|
1295
|
+
query?: never;
|
|
1296
|
+
header?: never;
|
|
1297
|
+
path?: never;
|
|
1298
|
+
cookie?: never;
|
|
1299
|
+
};
|
|
1300
|
+
requestBody?: never;
|
|
1301
|
+
responses: {
|
|
1302
|
+
/** @description Success */
|
|
1303
|
+
200: {
|
|
1304
|
+
headers: {
|
|
1305
|
+
[name: string]: unknown;
|
|
1306
|
+
};
|
|
1307
|
+
content: {
|
|
1308
|
+
"application/json": components["schemas"]["User"][];
|
|
1036
1309
|
};
|
|
1037
1310
|
};
|
|
1038
|
-
400: components["responses"]["BadRequest"];
|
|
1039
1311
|
404: components["responses"]["NotFound"];
|
|
1040
1312
|
500: components["responses"]["InternalServerError"];
|
|
1041
1313
|
};
|
|
1042
1314
|
};
|
|
1043
|
-
|
|
1315
|
+
addUser: {
|
|
1044
1316
|
parameters: {
|
|
1045
1317
|
query?: never;
|
|
1046
1318
|
header?: never;
|
|
1047
1319
|
path?: never;
|
|
1048
1320
|
cookie?: never;
|
|
1049
1321
|
};
|
|
1050
|
-
/** @description The request body to
|
|
1322
|
+
/** @description The request body to add a user */
|
|
1051
1323
|
requestBody: {
|
|
1052
1324
|
content: {
|
|
1053
|
-
"application/json": components["schemas"]["
|
|
1325
|
+
"application/json": components["schemas"]["AddUserPayload"];
|
|
1054
1326
|
};
|
|
1055
1327
|
};
|
|
1056
1328
|
responses: {
|
|
1057
|
-
|
|
1329
|
+
/** @description Added */
|
|
1330
|
+
201: {
|
|
1331
|
+
headers: {
|
|
1332
|
+
[name: string]: unknown;
|
|
1333
|
+
};
|
|
1334
|
+
content: {
|
|
1335
|
+
"application/json": components["schemas"]["User"];
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
400: components["responses"]["BadRequest"];
|
|
1339
|
+
500: components["responses"]["InternalServerError"];
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
getUser: {
|
|
1343
|
+
parameters: {
|
|
1344
|
+
query?: never;
|
|
1345
|
+
header?: never;
|
|
1346
|
+
path: {
|
|
1347
|
+
/** @description The user id */
|
|
1348
|
+
userId: string;
|
|
1349
|
+
};
|
|
1350
|
+
cookie?: never;
|
|
1351
|
+
};
|
|
1352
|
+
requestBody?: never;
|
|
1353
|
+
responses: {
|
|
1354
|
+
/** @description Success */
|
|
1355
|
+
200: {
|
|
1356
|
+
headers: {
|
|
1357
|
+
[name: string]: unknown;
|
|
1358
|
+
};
|
|
1359
|
+
content: {
|
|
1360
|
+
"application/json": components["schemas"]["User"];
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
404: components["responses"]["NotFound"];
|
|
1364
|
+
500: components["responses"]["InternalServerError"];
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
updateUser: {
|
|
1368
|
+
parameters: {
|
|
1369
|
+
query?: never;
|
|
1370
|
+
header?: never;
|
|
1371
|
+
path: {
|
|
1372
|
+
/** @description The user id */
|
|
1373
|
+
userId: string;
|
|
1374
|
+
};
|
|
1375
|
+
cookie?: never;
|
|
1376
|
+
};
|
|
1377
|
+
/** @description The request body to updated a user */
|
|
1378
|
+
requestBody: {
|
|
1379
|
+
content: {
|
|
1380
|
+
"application/json": components["schemas"]["UpdateUserPayload"];
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
responses: {
|
|
1384
|
+
/** @description Success */
|
|
1385
|
+
200: {
|
|
1386
|
+
headers: {
|
|
1387
|
+
[name: string]: unknown;
|
|
1388
|
+
};
|
|
1389
|
+
content: {
|
|
1390
|
+
"application/json": components["schemas"]["User"];
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1058
1393
|
400: components["responses"]["BadRequest"];
|
|
1059
1394
|
404: components["responses"]["NotFound"];
|
|
1060
1395
|
500: components["responses"]["InternalServerError"];
|
|
@@ -1062,8 +1397,9 @@ interface operations {
|
|
|
1062
1397
|
};
|
|
1063
1398
|
}
|
|
1064
1399
|
|
|
1065
|
-
declare const createMarketServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths$
|
|
1066
|
-
declare const createTradeServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths, `${string}/${string}`>;
|
|
1400
|
+
declare const createMarketServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths$2, `${string}/${string}`>;
|
|
1401
|
+
declare const createTradeServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths$1, `${string}/${string}`>;
|
|
1402
|
+
declare const createAppServiceClient: (options: ClientOptions) => openapi_fetch.Client<paths, `${string}/${string}`>;
|
|
1067
1403
|
|
|
1068
1404
|
declare const isMarketServiceError: (error: unknown) => error is {
|
|
1069
1405
|
status: number;
|
|
@@ -1075,9 +1411,15 @@ declare const isTradeServiceError: (error: unknown) => error is {
|
|
|
1075
1411
|
code: "ERROR" | "NOT_ENOUGH_CASH" | "NOT_ENOUGH_SHARES" | "UNDELETABLE";
|
|
1076
1412
|
message: string;
|
|
1077
1413
|
};
|
|
1414
|
+
declare const isAppServiceError: (error: unknown) => error is {
|
|
1415
|
+
status: number;
|
|
1416
|
+
code: "ERROR";
|
|
1417
|
+
message: string;
|
|
1418
|
+
};
|
|
1078
1419
|
|
|
1079
|
-
type MarketServiceSchemas = components$
|
|
1080
|
-
type TradeServiceSchemas = components['schemas'];
|
|
1420
|
+
type MarketServiceSchemas = components$2['schemas'];
|
|
1421
|
+
type TradeServiceSchemas = components$1['schemas'];
|
|
1422
|
+
type AppServiceSchemas = components['schemas'];
|
|
1081
1423
|
type SimpleQuote = MarketServiceSchemas['SimpleQuote'];
|
|
1082
1424
|
type FullQuote = MarketServiceSchemas['FullQuote'];
|
|
1083
1425
|
type NewsArticle = MarketServiceSchemas['NewsArticle'];
|
|
@@ -1085,14 +1427,16 @@ type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
|
|
|
1085
1427
|
type MarketServiceError = MarketServiceSchemas['Error'];
|
|
1086
1428
|
type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
|
|
1087
1429
|
type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
|
|
1088
|
-
type User = TradeServiceSchemas['User'];
|
|
1089
1430
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1090
1431
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1091
1432
|
type AddOrderPayload = TradeServiceSchemas['AddOrderPayload'];
|
|
1092
|
-
type DeleteOrderPayload = TradeServiceSchemas['DeleteOrderPayload'];
|
|
1093
1433
|
type Order = TradeServiceSchemas['Order'];
|
|
1094
1434
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1095
1435
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1096
1436
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1437
|
+
type User = AppServiceSchemas['User'];
|
|
1438
|
+
type AddUserPayload = AppServiceSchemas['AddUserPayload'];
|
|
1439
|
+
type UpdateUserPayload = AppServiceSchemas['UpdateUserPayload'];
|
|
1440
|
+
type AppServiceError = AppServiceSchemas['Error'];
|
|
1097
1441
|
|
|
1098
|
-
export { type AddOrderPayload, type
|
|
1442
|
+
export { type AddOrderPayload, type AddUserPayload, type AppServiceError, type FullQuote, type Holding, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type SimpleQuote, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdateUserPayload, type User, createAppServiceClient, createMarketServiceClient, createTradeServiceClient, isAppServiceError, isMarketServiceError, isTradeServiceError };
|