@rivascva/dt-idl 1.1.170 → 1.1.171
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 +17 -9
- package/package.json +1 -1
- package/services/dt-market-service.yaml +24 -7
- package/ts/services/dt-market-service.ts +15 -7
- package/ts/types/types.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ import { ClientOptions } from 'openapi-fetch';
|
|
|
6
6
|
* Do not make direct changes to the file.
|
|
7
7
|
*/
|
|
8
8
|
interface paths$3 {
|
|
9
|
-
"/
|
|
9
|
+
"/markets/metadata": {
|
|
10
10
|
parameters: {
|
|
11
11
|
query?: never;
|
|
12
12
|
header?: never;
|
|
13
13
|
path?: never;
|
|
14
14
|
cookie?: never;
|
|
15
15
|
};
|
|
16
|
-
/** @description Gets metadata about the
|
|
17
|
-
get: operations$3["
|
|
16
|
+
/** @description Gets metadata about the markets */
|
|
17
|
+
get: operations$3["getMarketsMetadata"];
|
|
18
18
|
put?: never;
|
|
19
19
|
post?: never;
|
|
20
20
|
delete?: never;
|
|
@@ -347,8 +347,8 @@ interface components$3 {
|
|
|
347
347
|
displayName: string;
|
|
348
348
|
components: components$3["schemas"]["SimpleQuote"][];
|
|
349
349
|
};
|
|
350
|
-
/** @description Metadata about the
|
|
351
|
-
|
|
350
|
+
/** @description Metadata about the markets */
|
|
351
|
+
MarketsMetadata: {
|
|
352
352
|
/**
|
|
353
353
|
* Format: int64
|
|
354
354
|
* @example 15
|
|
@@ -359,6 +359,14 @@ interface components$3 {
|
|
|
359
359
|
* @example 30
|
|
360
360
|
*/
|
|
361
361
|
stockHistoryRefreshIntervalSeconds: number;
|
|
362
|
+
marketHours: {
|
|
363
|
+
/** @example America/New_York */
|
|
364
|
+
timezone: string;
|
|
365
|
+
/** @example 9:30 */
|
|
366
|
+
openTime: string;
|
|
367
|
+
/** @example 16:00 */
|
|
368
|
+
closeTime: string;
|
|
369
|
+
};
|
|
362
370
|
};
|
|
363
371
|
/** @description A generic error */
|
|
364
372
|
Error: {
|
|
@@ -407,7 +415,7 @@ interface components$3 {
|
|
|
407
415
|
pathItems: never;
|
|
408
416
|
}
|
|
409
417
|
interface operations$3 {
|
|
410
|
-
|
|
418
|
+
getMarketsMetadata: {
|
|
411
419
|
parameters: {
|
|
412
420
|
query?: never;
|
|
413
421
|
header?: never;
|
|
@@ -422,7 +430,7 @@ interface operations$3 {
|
|
|
422
430
|
[name: string]: unknown;
|
|
423
431
|
};
|
|
424
432
|
content: {
|
|
425
|
-
"application/json": components$3["schemas"]["
|
|
433
|
+
"application/json": components$3["schemas"]["MarketsMetadata"];
|
|
426
434
|
};
|
|
427
435
|
};
|
|
428
436
|
500: components$3["responses"]["InternalServerError"];
|
|
@@ -1997,7 +2005,7 @@ type GetIndexesQueryParams = operations$3['getIndexes']['parameters']['query'];
|
|
|
1997
2005
|
type GetStocksBySymbolsQueryParams = operations$3['getStocksBySymbols']['parameters']['query'];
|
|
1998
2006
|
type GetSearchStocksQueryParams = operations$3['getSearchStocks']['parameters']['query'];
|
|
1999
2007
|
type GetStockHistoryQueryParams = operations$3['getStockHistory']['parameters']['query'];
|
|
2000
|
-
type
|
|
2008
|
+
type MarketsMetadata = MarketServiceSchemas['MarketsMetadata'];
|
|
2001
2009
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
2002
2010
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
2003
2011
|
type UpdatePortfolioPayload = TradeServiceSchemas['UpdatePortfolioPayload'];
|
|
@@ -2026,4 +2034,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
|
|
|
2026
2034
|
type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
|
|
2027
2035
|
type AssetServiceError = AssetServiceSchemas['Error'];
|
|
2028
2036
|
|
|
2029
|
-
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetOrdersByPortfolioParams, type GetPortfolioHistoryParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, type
|
|
2037
|
+
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetOrdersByPortfolioParams, type GetPortfolioHistoryParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, type MarketServiceError, type MarketsMetadata, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioHistoryTimeframe, type PortfolioHistoryValue, type PortfolioType, type RefreshAccessTokenPayload, type SendPushNotificationPayload, type SignupWithFirebasePayload, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdatePortfolioPayload, type UpdateUserDevicePayload, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
|
package/package.json
CHANGED
|
@@ -9,19 +9,19 @@ servers:
|
|
|
9
9
|
- url: http://localhost:8082/v1
|
|
10
10
|
|
|
11
11
|
paths:
|
|
12
|
-
/
|
|
12
|
+
/markets/metadata:
|
|
13
13
|
get:
|
|
14
|
-
description: Gets metadata about the
|
|
15
|
-
operationId:
|
|
14
|
+
description: Gets metadata about the markets
|
|
15
|
+
operationId: getMarketsMetadata
|
|
16
16
|
tags:
|
|
17
|
-
-
|
|
17
|
+
- Markets
|
|
18
18
|
responses:
|
|
19
19
|
200:
|
|
20
20
|
description: Success
|
|
21
21
|
content:
|
|
22
22
|
application/json:
|
|
23
23
|
schema:
|
|
24
|
-
$ref: '#/components/schemas/
|
|
24
|
+
$ref: '#/components/schemas/MarketsMetadata'
|
|
25
25
|
500:
|
|
26
26
|
$ref: '#/components/responses/InternalServerError'
|
|
27
27
|
|
|
@@ -543,8 +543,8 @@ components:
|
|
|
543
543
|
- displayName
|
|
544
544
|
- components
|
|
545
545
|
|
|
546
|
-
|
|
547
|
-
description: Metadata about the
|
|
546
|
+
MarketsMetadata:
|
|
547
|
+
description: Metadata about the markets
|
|
548
548
|
properties:
|
|
549
549
|
stockQuoteRefreshIntervalSeconds:
|
|
550
550
|
type: integer
|
|
@@ -554,9 +554,26 @@ components:
|
|
|
554
554
|
type: integer
|
|
555
555
|
format: int64
|
|
556
556
|
example: 30
|
|
557
|
+
marketHours:
|
|
558
|
+
type: object
|
|
559
|
+
properties:
|
|
560
|
+
timezone:
|
|
561
|
+
type: string
|
|
562
|
+
example: America/New_York
|
|
563
|
+
openTime:
|
|
564
|
+
type: string
|
|
565
|
+
example: 9:30
|
|
566
|
+
closeTime:
|
|
567
|
+
type: string
|
|
568
|
+
example: 16:00
|
|
569
|
+
required:
|
|
570
|
+
- timezone
|
|
571
|
+
- openTime
|
|
572
|
+
- closeTime
|
|
557
573
|
required:
|
|
558
574
|
- stockQuoteRefreshIntervalSeconds
|
|
559
575
|
- stockHistoryRefreshIntervalSeconds
|
|
576
|
+
- marketHours
|
|
560
577
|
|
|
561
578
|
Error:
|
|
562
579
|
description: A generic error
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
"/
|
|
7
|
+
"/markets/metadata": {
|
|
8
8
|
parameters: {
|
|
9
9
|
query?: never;
|
|
10
10
|
header?: never;
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/** @description Gets metadata about the
|
|
15
|
-
get: operations["
|
|
14
|
+
/** @description Gets metadata about the markets */
|
|
15
|
+
get: operations["getMarketsMetadata"];
|
|
16
16
|
put?: never;
|
|
17
17
|
post?: never;
|
|
18
18
|
delete?: never;
|
|
@@ -346,8 +346,8 @@ export interface components {
|
|
|
346
346
|
displayName: string;
|
|
347
347
|
components: components["schemas"]["SimpleQuote"][];
|
|
348
348
|
};
|
|
349
|
-
/** @description Metadata about the
|
|
350
|
-
|
|
349
|
+
/** @description Metadata about the markets */
|
|
350
|
+
MarketsMetadata: {
|
|
351
351
|
/**
|
|
352
352
|
* Format: int64
|
|
353
353
|
* @example 15
|
|
@@ -358,6 +358,14 @@ export interface components {
|
|
|
358
358
|
* @example 30
|
|
359
359
|
*/
|
|
360
360
|
stockHistoryRefreshIntervalSeconds: number;
|
|
361
|
+
marketHours: {
|
|
362
|
+
/** @example America/New_York */
|
|
363
|
+
timezone: string;
|
|
364
|
+
/** @example 9:30 */
|
|
365
|
+
openTime: string;
|
|
366
|
+
/** @example 16:00 */
|
|
367
|
+
closeTime: string;
|
|
368
|
+
};
|
|
361
369
|
};
|
|
362
370
|
/** @description A generic error */
|
|
363
371
|
Error: {
|
|
@@ -407,7 +415,7 @@ export interface components {
|
|
|
407
415
|
}
|
|
408
416
|
export type $defs = Record<string, never>;
|
|
409
417
|
export interface operations {
|
|
410
|
-
|
|
418
|
+
getMarketsMetadata: {
|
|
411
419
|
parameters: {
|
|
412
420
|
query?: never;
|
|
413
421
|
header?: never;
|
|
@@ -422,7 +430,7 @@ export interface operations {
|
|
|
422
430
|
[name: string]: unknown;
|
|
423
431
|
};
|
|
424
432
|
content: {
|
|
425
|
-
"application/json": components["schemas"]["
|
|
433
|
+
"application/json": components["schemas"]["MarketsMetadata"];
|
|
426
434
|
};
|
|
427
435
|
};
|
|
428
436
|
500: components["responses"]["InternalServerError"];
|
package/ts/types/types.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type GetIndexesQueryParams = MarketServiceOperations['getIndexes']['param
|
|
|
29
29
|
export type GetStocksBySymbolsQueryParams = MarketServiceOperations['getStocksBySymbols']['parameters']['query'];
|
|
30
30
|
export type GetSearchStocksQueryParams = MarketServiceOperations['getSearchStocks']['parameters']['query'];
|
|
31
31
|
export type GetStockHistoryQueryParams = MarketServiceOperations['getStockHistory']['parameters']['query'];
|
|
32
|
-
export type
|
|
32
|
+
export type MarketsMetadata = MarketServiceSchemas['MarketsMetadata'];
|
|
33
33
|
|
|
34
34
|
// Trade Service Types
|
|
35
35
|
export type Portfolio = TradeServiceSchemas['Portfolio'];
|