@rivascva/dt-idl 1.1.7 → 1.1.9
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 +65 -35
- package/dist/index.d.ts +268 -50
- package/dist/index.esm.js +65 -35
- package/package.json +4 -4
- package/redocly.yaml +9 -0
- package/ts/services/dt-market-service.ts +468 -339
- package/ts/services/dt-trade-service.ts +374 -281
- package/ts/types/types.ts +15 -12
package/ts/types/types.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { components as MarketServiceComponents } from '@ts/services/dt-market-service';
|
|
2
2
|
import { components as TradeServiceComponents } from '@ts/services/dt-trade-service';
|
|
3
3
|
|
|
4
|
+
type MarketServiceSchemas = MarketServiceComponents['schemas'];
|
|
5
|
+
type TradeServiceSchemas = TradeServiceComponents['schemas'];
|
|
6
|
+
|
|
4
7
|
// Market Service Types
|
|
5
|
-
export type SimpleQuote =
|
|
6
|
-
export type FullQuote =
|
|
7
|
-
export type NewsArticle =
|
|
8
|
-
export type StockNewsArticle =
|
|
9
|
-
export type MarketServiceError =
|
|
8
|
+
export type SimpleQuote = MarketServiceSchemas['SimpleQuote'];
|
|
9
|
+
export type FullQuote = MarketServiceSchemas['FullQuote'];
|
|
10
|
+
export type NewsArticle = MarketServiceSchemas['NewsArticle'];
|
|
11
|
+
export type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
|
|
12
|
+
export type MarketServiceError = MarketServiceSchemas['Error'];
|
|
10
13
|
|
|
11
14
|
// Trade Service Types
|
|
12
|
-
export type User =
|
|
13
|
-
export type Portfolio =
|
|
14
|
-
export type PortfolioType =
|
|
15
|
-
export type OrderPayload =
|
|
16
|
-
export type Order =
|
|
17
|
-
export type OrderType =
|
|
18
|
-
export type TradeServiceError =
|
|
15
|
+
export type User = TradeServiceSchemas['User'];
|
|
16
|
+
export type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
17
|
+
export type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
18
|
+
export type OrderPayload = TradeServiceSchemas['OrderPayload'];
|
|
19
|
+
export type Order = TradeServiceSchemas['Order'];
|
|
20
|
+
export type OrderType = TradeServiceSchemas['OrderType'];
|
|
21
|
+
export type TradeServiceError = TradeServiceSchemas['Error'];
|