@rivascva/dt-idl 1.1.171 → 1.1.173

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
@@ -13,8 +13,8 @@ interface paths$3 {
13
13
  path?: never;
14
14
  cookie?: never;
15
15
  };
16
- /** @description Gets metadata about the markets */
17
- get: operations$3["getMarketsMetadata"];
16
+ /** @description Gets metadata about the market */
17
+ get: operations$3["getMarketMetadata"];
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 markets */
351
- MarketsMetadata: {
350
+ /** @description Metadata about the market */
351
+ MarketMetadata: {
352
352
  /**
353
353
  * Format: int64
354
354
  * @example 15
@@ -359,14 +359,16 @@ 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
+ marketHours: components$3["schemas"]["MarketHours"];
363
+ };
364
+ /** @description The market operating hours */
365
+ MarketHours: {
366
+ /** @example America/New_York */
367
+ timezone: string;
368
+ /** @example 9:30 */
369
+ openTime: string;
370
+ /** @example 16:00 */
371
+ closeTime: string;
370
372
  };
371
373
  /** @description A generic error */
372
374
  Error: {
@@ -415,7 +417,7 @@ interface components$3 {
415
417
  pathItems: never;
416
418
  }
417
419
  interface operations$3 {
418
- getMarketsMetadata: {
420
+ getMarketMetadata: {
419
421
  parameters: {
420
422
  query?: never;
421
423
  header?: never;
@@ -430,7 +432,7 @@ interface operations$3 {
430
432
  [name: string]: unknown;
431
433
  };
432
434
  content: {
433
- "application/json": components$3["schemas"]["MarketsMetadata"];
435
+ "application/json": components$3["schemas"]["MarketMetadata"];
434
436
  };
435
437
  };
436
438
  500: components$3["responses"]["InternalServerError"];
@@ -2005,7 +2007,7 @@ type GetIndexesQueryParams = operations$3['getIndexes']['parameters']['query'];
2005
2007
  type GetStocksBySymbolsQueryParams = operations$3['getStocksBySymbols']['parameters']['query'];
2006
2008
  type GetSearchStocksQueryParams = operations$3['getSearchStocks']['parameters']['query'];
2007
2009
  type GetStockHistoryQueryParams = operations$3['getStockHistory']['parameters']['query'];
2008
- type MarketsMetadata = MarketServiceSchemas['MarketsMetadata'];
2010
+ type MarketMetadata = MarketServiceSchemas['MarketMetadata'];
2009
2011
  type Portfolio = TradeServiceSchemas['Portfolio'];
2010
2012
  type PortfolioType = TradeServiceSchemas['PortfolioType'];
2011
2013
  type UpdatePortfolioPayload = TradeServiceSchemas['UpdatePortfolioPayload'];
@@ -2034,4 +2036,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
2034
2036
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
2035
2037
  type AssetServiceError = AssetServiceSchemas['Error'];
2036
2038
 
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 };
2039
+ 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 MarketMetadata, type MarketServiceError, 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 };
@@ -24,3 +24,14 @@ const (
24
24
  // ServiceToken represents a JWT access token for a service.
25
25
  ServiceToken TokenType = "service"
26
26
  )
27
+
28
+ const (
29
+ // MarketTimezone is the timezone of the market operating hours.
30
+ MarketTimezone = "America/New_York"
31
+ // MarketOpenTime is the opening time of the market in a 24-hour format.
32
+ // Based on the timezone specified in MarketTimezone.
33
+ MarketOpenTime = "9:30"
34
+ // MarketCloseTime is the closing time of the market in a 24-hour format.
35
+ // Based on the timezone specified in MarketTimezone.
36
+ MarketCloseTime = "16:00"
37
+ )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.171",
3
+ "version": "1.1.173",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -11,8 +11,8 @@ servers:
11
11
  paths:
12
12
  /markets/metadata:
13
13
  get:
14
- description: Gets metadata about the markets
15
- operationId: getMarketsMetadata
14
+ description: Gets metadata about the market
15
+ operationId: getMarketMetadata
16
16
  tags:
17
17
  - Markets
18
18
  responses:
@@ -21,7 +21,7 @@ paths:
21
21
  content:
22
22
  application/json:
23
23
  schema:
24
- $ref: '#/components/schemas/MarketsMetadata'
24
+ $ref: '#/components/schemas/MarketMetadata'
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
- MarketsMetadata:
547
- description: Metadata about the markets
546
+ MarketMetadata:
547
+ description: Metadata about the market
548
548
  properties:
549
549
  stockQuoteRefreshIntervalSeconds:
550
550
  type: integer
@@ -555,26 +555,29 @@ components:
555
555
  format: int64
556
556
  example: 30
557
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
558
+ $ref: '#/components/schemas/MarketHours'
573
559
  required:
574
560
  - stockQuoteRefreshIntervalSeconds
575
561
  - stockHistoryRefreshIntervalSeconds
576
562
  - marketHours
577
563
 
564
+ MarketHours:
565
+ description: The market operating hours
566
+ properties:
567
+ timezone:
568
+ type: string
569
+ example: America/New_York
570
+ openTime:
571
+ type: string
572
+ example: 9:30
573
+ closeTime:
574
+ type: string
575
+ example: 16:00
576
+ required:
577
+ - timezone
578
+ - openTime
579
+ - closeTime
580
+
578
581
  Error:
579
582
  description: A generic error
580
583
  properties:
@@ -11,8 +11,8 @@ export interface paths {
11
11
  path?: never;
12
12
  cookie?: never;
13
13
  };
14
- /** @description Gets metadata about the markets */
15
- get: operations["getMarketsMetadata"];
14
+ /** @description Gets metadata about the market */
15
+ get: operations["getMarketMetadata"];
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 markets */
350
- MarketsMetadata: {
349
+ /** @description Metadata about the market */
350
+ MarketMetadata: {
351
351
  /**
352
352
  * Format: int64
353
353
  * @example 15
@@ -358,14 +358,16 @@ 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
+ marketHours: components["schemas"]["MarketHours"];
362
+ };
363
+ /** @description The market operating hours */
364
+ MarketHours: {
365
+ /** @example America/New_York */
366
+ timezone: string;
367
+ /** @example 9:30 */
368
+ openTime: string;
369
+ /** @example 16:00 */
370
+ closeTime: string;
369
371
  };
370
372
  /** @description A generic error */
371
373
  Error: {
@@ -415,7 +417,7 @@ export interface components {
415
417
  }
416
418
  export type $defs = Record<string, never>;
417
419
  export interface operations {
418
- getMarketsMetadata: {
420
+ getMarketMetadata: {
419
421
  parameters: {
420
422
  query?: never;
421
423
  header?: never;
@@ -430,7 +432,7 @@ export interface operations {
430
432
  [name: string]: unknown;
431
433
  };
432
434
  content: {
433
- "application/json": components["schemas"]["MarketsMetadata"];
435
+ "application/json": components["schemas"]["MarketMetadata"];
434
436
  };
435
437
  };
436
438
  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 MarketsMetadata = MarketServiceSchemas['MarketsMetadata'];
32
+ export type MarketMetadata = MarketServiceSchemas['MarketMetadata'];
33
33
 
34
34
  // Trade Service Types
35
35
  export type Portfolio = TradeServiceSchemas['Portfolio'];