@rivascva/dt-idl 1.1.53 → 1.1.54
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/.prettierrc.json +1 -1
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
- package/ts/clients/clients.ts +4 -8
- package/ts/clients/errors.ts +5 -14
- package/ts/types/types.ts +7 -1
package/.prettierrc.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1437,6 +1437,9 @@ type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
|
|
|
1437
1437
|
type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
|
|
1438
1438
|
type SortOrder = MarketServiceSchemas['SortOrder'];
|
|
1439
1439
|
type SortField = MarketServiceSchemas['SortField'];
|
|
1440
|
+
type GetStocksByExchangeQueryParams = operations$3['getStocksByExchange']['parameters']['query'];
|
|
1441
|
+
type GetStocksBySymbolsQueryParams = operations$3['getStocksBySymbols']['parameters']['query'];
|
|
1442
|
+
type GetSearchStocksQueryParams = operations$3['getSearchStocks']['parameters']['query'];
|
|
1440
1443
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1441
1444
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1442
1445
|
type AddOrderPayload = TradeServiceSchemas['AddOrderPayload'];
|
|
@@ -1454,4 +1457,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
|
|
|
1454
1457
|
type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
|
|
1455
1458
|
type AssetServiceError = AssetServiceSchemas['Error'];
|
|
1456
1459
|
|
|
1457
|
-
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type Holding, type ImageType, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
|
|
1460
|
+
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetSearchStocksQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
|
package/package.json
CHANGED
package/ts/clients/clients.ts
CHANGED
|
@@ -5,14 +5,10 @@ import { paths as TradeServicePaths } from '@ts/services/dt-trade-service';
|
|
|
5
5
|
import { paths as UserServicePaths } from '@ts/services/dt-user-service';
|
|
6
6
|
import { paths as AssetServicePaths } from '@ts/services/dt-asset-service';
|
|
7
7
|
|
|
8
|
-
export const createMarketServiceClient = (options: ClientOptions) =>
|
|
9
|
-
createClient<MarketServicePaths>(options);
|
|
8
|
+
export const createMarketServiceClient = (options: ClientOptions) => createClient<MarketServicePaths>(options);
|
|
10
9
|
|
|
11
|
-
export const createTradeServiceClient = (options: ClientOptions) =>
|
|
12
|
-
createClient<TradeServicePaths>(options);
|
|
10
|
+
export const createTradeServiceClient = (options: ClientOptions) => createClient<TradeServicePaths>(options);
|
|
13
11
|
|
|
14
|
-
export const createUserServiceClient = (options: ClientOptions) =>
|
|
15
|
-
createClient<UserServicePaths>(options);
|
|
12
|
+
export const createUserServiceClient = (options: ClientOptions) => createClient<UserServicePaths>(options);
|
|
16
13
|
|
|
17
|
-
export const createAssetServiceClient = (options: ClientOptions) =>
|
|
18
|
-
createClient<AssetServicePaths>(options);
|
|
14
|
+
export const createAssetServiceClient = (options: ClientOptions) => createClient<AssetServicePaths>(options);
|
package/ts/clients/errors.ts
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MarketServiceError,
|
|
3
|
-
TradeServiceError,
|
|
4
|
-
UserServiceError,
|
|
5
|
-
AssetServiceError,
|
|
6
|
-
} from '@ts/types';
|
|
1
|
+
import { MarketServiceError, TradeServiceError, UserServiceError, AssetServiceError } from '@ts/types';
|
|
7
2
|
|
|
8
|
-
export const isMarketServiceError = (error: unknown): error is MarketServiceError =>
|
|
9
|
-
typeof error === 'object';
|
|
3
|
+
export const isMarketServiceError = (error: unknown): error is MarketServiceError => typeof error === 'object';
|
|
10
4
|
|
|
11
|
-
export const isTradeServiceError = (error: unknown): error is TradeServiceError =>
|
|
12
|
-
typeof error === 'object';
|
|
5
|
+
export const isTradeServiceError = (error: unknown): error is TradeServiceError => typeof error === 'object';
|
|
13
6
|
|
|
14
|
-
export const isUserServiceError = (error: unknown): error is UserServiceError =>
|
|
15
|
-
typeof error === 'object';
|
|
7
|
+
export const isUserServiceError = (error: unknown): error is UserServiceError => typeof error === 'object';
|
|
16
8
|
|
|
17
|
-
export const isAssetServiceError = (error: unknown): error is AssetServiceError =>
|
|
18
|
-
typeof error === 'object';
|
|
9
|
+
export const isAssetServiceError = (error: unknown): error is AssetServiceError => typeof error === 'object';
|
package/ts/types/types.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
components as MarketServiceComponents,
|
|
3
|
+
operations as MarketServiceOperations,
|
|
4
|
+
} from '@ts/services/dt-market-service';
|
|
2
5
|
import { components as TradeServiceComponents } from '@ts/services/dt-trade-service';
|
|
3
6
|
import { components as UserServiceComponents } from '@ts/services/dt-user-service';
|
|
4
7
|
import { components as AssetServiceComponents } from '@ts/services/dt-asset-service';
|
|
@@ -18,6 +21,9 @@ export type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'
|
|
|
18
21
|
export type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
|
|
19
22
|
export type SortOrder = MarketServiceSchemas['SortOrder'];
|
|
20
23
|
export type SortField = MarketServiceSchemas['SortField'];
|
|
24
|
+
export type GetStocksByExchangeQueryParams = MarketServiceOperations['getStocksByExchange']['parameters']['query'];
|
|
25
|
+
export type GetStocksBySymbolsQueryParams = MarketServiceOperations['getStocksBySymbols']['parameters']['query'];
|
|
26
|
+
export type GetSearchStocksQueryParams = MarketServiceOperations['getSearchStocks']['parameters']['query'];
|
|
21
27
|
|
|
22
28
|
// Trade Service Types
|
|
23
29
|
export type Portfolio = TradeServiceSchemas['Portfolio'];
|