@rivascva/dt-idl 1.1.52 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "printWidth": 100,
2
+ "printWidth": 120,
3
3
  "singleQuote": true,
4
4
  "tabWidth": 2
5
5
  }
package/dist/index.d.ts CHANGED
@@ -335,6 +335,10 @@ interface components$3 {
335
335
  ErrorCode: "ERROR";
336
336
  /** @enum {string} */
337
337
  StockHistoryTimeframe: "MIN5" | "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
338
+ /** @enum {string} */
339
+ SortOrder: "ASC" | "DESC";
340
+ /** @enum {string} */
341
+ SortField: "SYMBOL" | "NAME" | "PRICE" | "PRICE_CHANGE" | "PERCENT_CHANGE";
338
342
  };
339
343
  responses: {
340
344
  /** @description The resource was not found */
@@ -421,7 +425,12 @@ interface operations$3 {
421
425
  };
422
426
  getStocksBySymbols: {
423
427
  parameters: {
424
- query?: never;
428
+ query?: {
429
+ /** @description The sort order of the stock quotes */
430
+ sortOrder?: components$3["schemas"]["SortOrder"];
431
+ /** @description The sort field of the stock quotes */
432
+ sortField?: components$3["schemas"]["SortField"];
433
+ };
425
434
  header?: never;
426
435
  path: {
427
436
  /** @description The stock symbols */
@@ -446,7 +455,12 @@ interface operations$3 {
446
455
  };
447
456
  getStocksByExchange: {
448
457
  parameters: {
449
- query?: never;
458
+ query?: {
459
+ /** @description The sort order of the stock quotes */
460
+ sortOrder?: components$3["schemas"]["SortOrder"];
461
+ /** @description The sort field of the stock quotes */
462
+ sortField?: components$3["schemas"]["SortField"];
463
+ };
450
464
  header?: never;
451
465
  path: {
452
466
  /** @description The stock exchange */
@@ -1421,6 +1435,11 @@ type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
1421
1435
  type MarketServiceError = MarketServiceSchemas['Error'];
1422
1436
  type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
1423
1437
  type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
1438
+ type SortOrder = MarketServiceSchemas['SortOrder'];
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'];
1424
1443
  type Portfolio = TradeServiceSchemas['Portfolio'];
1425
1444
  type PortfolioType = TradeServiceSchemas['PortfolioType'];
1426
1445
  type AddOrderPayload = TradeServiceSchemas['AddOrderPayload'];
@@ -1438,4 +1457,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
1438
1457
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
1439
1458
  type AssetServiceError = AssetServiceSchemas['Error'];
1440
1459
 
1441
- 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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.52",
3
+ "version": "1.1.54",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -99,6 +99,22 @@ paths:
99
99
  schema:
100
100
  type: string
101
101
  example: AAPL,MSFT,AMZN
102
+ - in: query
103
+ name: sortOrder
104
+ description: The sort order of the stock quotes
105
+ required: false
106
+ schema:
107
+ $ref: '#/components/schemas/SortOrder'
108
+ example: ASC
109
+ default: ASC
110
+ - in: query
111
+ name: sortField
112
+ description: The sort field of the stock quotes
113
+ required: false
114
+ schema:
115
+ $ref: '#/components/schemas/SortField'
116
+ example: SYMBOL
117
+ default: SYMBOL
102
118
  responses:
103
119
  200:
104
120
  description: Success
@@ -127,6 +143,22 @@ paths:
127
143
  schema:
128
144
  type: string
129
145
  example: NYSE
146
+ - in: query
147
+ name: sortOrder
148
+ description: The sort order of the stock quotes
149
+ required: false
150
+ schema:
151
+ $ref: '#/components/schemas/SortOrder'
152
+ example: ASC
153
+ default: ASC
154
+ - in: query
155
+ name: sortField
156
+ description: The sort field of the stock quotes
157
+ required: false
158
+ schema:
159
+ $ref: '#/components/schemas/SortField'
160
+ example: SYMBOL
161
+ default: SYMBOL
130
162
  responses:
131
163
  200:
132
164
  description: Success
@@ -515,6 +547,21 @@ components:
515
547
  - HOUR4
516
548
  - DAY1
517
549
 
550
+ SortOrder:
551
+ type: string
552
+ enum:
553
+ - ASC
554
+ - DESC
555
+
556
+ SortField:
557
+ type: string
558
+ enum:
559
+ - SYMBOL
560
+ - NAME
561
+ - PRICE
562
+ - PRICE_CHANGE
563
+ - PERCENT_CHANGE
564
+
518
565
  responses:
519
566
  NotFound:
520
567
  description: The resource was not found
@@ -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);
@@ -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';
@@ -334,6 +334,10 @@ export interface components {
334
334
  ErrorCode: "ERROR";
335
335
  /** @enum {string} */
336
336
  StockHistoryTimeframe: "MIN5" | "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
337
+ /** @enum {string} */
338
+ SortOrder: "ASC" | "DESC";
339
+ /** @enum {string} */
340
+ SortField: "SYMBOL" | "NAME" | "PRICE" | "PRICE_CHANGE" | "PERCENT_CHANGE";
337
341
  };
338
342
  responses: {
339
343
  /** @description The resource was not found */
@@ -421,7 +425,12 @@ export interface operations {
421
425
  };
422
426
  getStocksBySymbols: {
423
427
  parameters: {
424
- query?: never;
428
+ query?: {
429
+ /** @description The sort order of the stock quotes */
430
+ sortOrder?: components["schemas"]["SortOrder"];
431
+ /** @description The sort field of the stock quotes */
432
+ sortField?: components["schemas"]["SortField"];
433
+ };
425
434
  header?: never;
426
435
  path: {
427
436
  /** @description The stock symbols */
@@ -446,7 +455,12 @@ export interface operations {
446
455
  };
447
456
  getStocksByExchange: {
448
457
  parameters: {
449
- query?: never;
458
+ query?: {
459
+ /** @description The sort order of the stock quotes */
460
+ sortOrder?: components["schemas"]["SortOrder"];
461
+ /** @description The sort field of the stock quotes */
462
+ sortField?: components["schemas"]["SortField"];
463
+ };
450
464
  header?: never;
451
465
  path: {
452
466
  /** @description The stock exchange */
package/ts/types/types.ts CHANGED
@@ -1,4 +1,7 @@
1
- import { components as MarketServiceComponents } from '@ts/services/dt-market-service';
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';
@@ -16,6 +19,11 @@ export type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
16
19
  export type MarketServiceError = MarketServiceSchemas['Error'];
17
20
  export type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
18
21
  export type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
22
+ export type SortOrder = MarketServiceSchemas['SortOrder'];
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'];
19
27
 
20
28
  // Trade Service Types
21
29
  export type Portfolio = TradeServiceSchemas['Portfolio'];