@rivascva/dt-idl 1.1.145 → 1.1.147

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
@@ -1310,6 +1310,40 @@ interface paths$1 {
1310
1310
  patch?: never;
1311
1311
  trace?: never;
1312
1312
  };
1313
+ "/users/{userId}/device": {
1314
+ parameters: {
1315
+ query?: never;
1316
+ header?: never;
1317
+ path?: never;
1318
+ cookie?: never;
1319
+ };
1320
+ get?: never;
1321
+ /** @description Update the user device information */
1322
+ put: operations$1["updateUserDevice"];
1323
+ post?: never;
1324
+ delete?: never;
1325
+ options?: never;
1326
+ head?: never;
1327
+ patch?: never;
1328
+ trace?: never;
1329
+ };
1330
+ "/notifications/push/send": {
1331
+ parameters: {
1332
+ query?: never;
1333
+ header?: never;
1334
+ path?: never;
1335
+ cookie?: never;
1336
+ };
1337
+ get?: never;
1338
+ put?: never;
1339
+ /** @description Send a push notification */
1340
+ post: operations$1["sendPushNotification"];
1341
+ delete?: never;
1342
+ options?: never;
1343
+ head?: never;
1344
+ patch?: never;
1345
+ trace?: never;
1346
+ };
1313
1347
  }
1314
1348
  interface components$1 {
1315
1349
  schemas: {
@@ -1350,6 +1384,12 @@ interface components$1 {
1350
1384
  User: components$1["schemas"]["AddUserPayload"] & {
1351
1385
  /** @example 123456 */
1352
1386
  id: string;
1387
+ /** @example IOS */
1388
+ platform?: components$1["schemas"]["Platform"];
1389
+ /** @example 1.3.0 */
1390
+ appVersion?: string;
1391
+ /** @example 123abc */
1392
+ fcmToken?: string;
1353
1393
  /**
1354
1394
  * Format: int64
1355
1395
  * @example 1713398544000
@@ -1361,6 +1401,25 @@ interface components$1 {
1361
1401
  */
1362
1402
  dateUpdated: number;
1363
1403
  };
1404
+ /** @description Payload to update new user device */
1405
+ UpdateUserDevicePayload: {
1406
+ platform?: components$1["schemas"]["Platform"];
1407
+ /** @example 1.3.0 */
1408
+ appVersion?: string;
1409
+ /** @example 123abc */
1410
+ fcmToken?: string;
1411
+ };
1412
+ /** @description Payload to send a push notification */
1413
+ SendPushNotificationPayload: {
1414
+ /** @example 123456 */
1415
+ userId: string;
1416
+ /** @example Sample Title */
1417
+ title: string;
1418
+ /** @example Sample Body */
1419
+ body: string;
1420
+ };
1421
+ /** @enum {string} */
1422
+ Platform: "IOS" | "ANDROID";
1364
1423
  /** @description A generic error */
1365
1424
  Error: {
1366
1425
  /**
@@ -1655,6 +1714,44 @@ interface operations$1 {
1655
1714
  500: components$1["responses"]["InternalServerError"];
1656
1715
  };
1657
1716
  };
1717
+ updateUserDevice: {
1718
+ parameters: {
1719
+ query?: never;
1720
+ header?: never;
1721
+ path?: never;
1722
+ cookie?: never;
1723
+ };
1724
+ /** @description The request body to update a user device */
1725
+ requestBody: {
1726
+ content: {
1727
+ "application/json": components$1["schemas"]["UpdateUserDevicePayload"];
1728
+ };
1729
+ };
1730
+ responses: {
1731
+ 204: components$1["responses"]["NoContent"];
1732
+ 400: components$1["responses"]["BadRequest"];
1733
+ 500: components$1["responses"]["InternalServerError"];
1734
+ };
1735
+ };
1736
+ sendPushNotification: {
1737
+ parameters: {
1738
+ query?: never;
1739
+ header?: never;
1740
+ path?: never;
1741
+ cookie?: never;
1742
+ };
1743
+ /** @description The request body to send a push notification */
1744
+ requestBody: {
1745
+ content: {
1746
+ "application/json": components$1["schemas"]["SendPushNotificationPayload"];
1747
+ };
1748
+ };
1749
+ responses: {
1750
+ 204: components$1["responses"]["NoContent"];
1751
+ 400: components$1["responses"]["BadRequest"];
1752
+ 500: components$1["responses"]["InternalServerError"];
1753
+ };
1754
+ };
1658
1755
  }
1659
1756
 
1660
1757
  /**
@@ -1859,13 +1956,18 @@ type OrderType = TradeServiceSchemas['OrderType'];
1859
1956
  type Holding = TradeServiceSchemas['Holding'];
1860
1957
  type TradeServiceError = TradeServiceSchemas['Error'];
1861
1958
  type GetOrdersByPortfolioParams = operations$2['getOrdersByPortfolio']['parameters']['query'];
1959
+ type PortfolioHistoryValue = TradeServiceSchemas['PortfolioHistoryValue'];
1960
+ type PortfolioHistoryTimeframe = TradeServiceSchemas['PortfolioHistoryTimeframe'];
1961
+ type GetPortfolioHistoryParams = operations$2['getPortfolioHistory']['parameters']['query'];
1862
1962
  type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
1863
1963
  type SignupWithFirebasePayload = UserServiceSchemas['SignupWithFirebasePayload'];
1864
1964
  type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload'];
1865
1965
  type LogoutPayload = UserServiceSchemas['LogoutPayload'];
1866
1966
  type User = UserServiceSchemas['User'];
1867
1967
  type AddUserPayload = UserServiceSchemas['AddUserPayload'];
1968
+ type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
1868
1969
  type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
1970
+ type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
1869
1971
  type UserServiceError = UserServiceSchemas['Error'];
1870
1972
  type ImageType = AssetServiceSchemas['ImageType'];
1871
1973
  type UploadImagePayload = AssetServiceSchemas['UploadImagePayload'];
@@ -1873,4 +1975,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
1873
1975
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
1874
1976
  type AssetServiceError = AssetServiceSchemas['Error'];
1875
1977
 
1876
- export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetOrdersByPortfolioParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type RefreshAccessTokenPayload, type SignupWithFirebasePayload, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdatePortfolioPayload, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
1978
+ export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetOrdersByPortfolioParams, type GetPortfolioHistoryParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.145",
3
+ "version": "1.1.147",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -200,6 +200,48 @@ paths:
200
200
  $ref: '#/components/responses/NotFound'
201
201
  500:
202
202
  $ref: '#/components/responses/InternalServerError'
203
+
204
+ /users/{userId}/device:
205
+ put:
206
+ description: Update the user device information
207
+ operationId: updateUserDevice
208
+ tags:
209
+ - Users
210
+ requestBody:
211
+ description: The request body to update a user device
212
+ required: true
213
+ content:
214
+ application/json:
215
+ schema:
216
+ $ref: '#/components/schemas/UpdateUserDevicePayload'
217
+ responses:
218
+ 204:
219
+ $ref: '#/components/responses/NoContent'
220
+ 400:
221
+ $ref: '#/components/responses/BadRequest'
222
+ 500:
223
+ $ref: '#/components/responses/InternalServerError'
224
+
225
+ /notifications/push/send:
226
+ post:
227
+ description: Send a push notification
228
+ operationId: sendPushNotification
229
+ tags:
230
+ - Notifications
231
+ requestBody:
232
+ description: The request body to send a push notification
233
+ required: true
234
+ content:
235
+ application/json:
236
+ schema:
237
+ $ref: '#/components/schemas/SendPushNotificationPayload'
238
+ responses:
239
+ 204:
240
+ $ref: '#/components/responses/NoContent'
241
+ 400:
242
+ $ref: '#/components/responses/BadRequest'
243
+ 500:
244
+ $ref: '#/components/responses/InternalServerError'
203
245
 
204
246
  components:
205
247
  schemas:
@@ -276,6 +318,15 @@ components:
276
318
  id:
277
319
  type: string
278
320
  example: 123456
321
+ platform:
322
+ $ref: '#/components/schemas/Platform'
323
+ example: IOS
324
+ appVersion:
325
+ type: string
326
+ example: 1.3.0
327
+ fcmToken:
328
+ type: string
329
+ example: 123abc
279
330
  dateCreated:
280
331
  type: integer
281
332
  format: int64
@@ -289,6 +340,41 @@ components:
289
340
  - dateCreated
290
341
  - dateUpdated
291
342
 
343
+ UpdateUserDevicePayload:
344
+ description: Payload to update new user device
345
+ properties:
346
+ platform:
347
+ $ref: '#/components/schemas/Platform'
348
+ appVersion:
349
+ type: string
350
+ example: 1.3.0
351
+ fcmToken:
352
+ type: string
353
+ example: 123abc
354
+
355
+ SendPushNotificationPayload:
356
+ description: Payload to send a push notification
357
+ properties:
358
+ userId:
359
+ type: string
360
+ example: 123456
361
+ title:
362
+ type: string
363
+ example: Sample Title
364
+ body:
365
+ type: string
366
+ example: Sample Body
367
+ required:
368
+ - userId
369
+ - title
370
+ - body
371
+
372
+ Platform:
373
+ type: string
374
+ enum:
375
+ - IOS
376
+ - ANDROID
377
+
292
378
  Error:
293
379
  description: A generic error
294
380
  properties:
@@ -108,6 +108,40 @@ export interface paths {
108
108
  patch?: never;
109
109
  trace?: never;
110
110
  };
111
+ "/users/{userId}/device": {
112
+ parameters: {
113
+ query?: never;
114
+ header?: never;
115
+ path?: never;
116
+ cookie?: never;
117
+ };
118
+ get?: never;
119
+ /** @description Update the user device information */
120
+ put: operations["updateUserDevice"];
121
+ post?: never;
122
+ delete?: never;
123
+ options?: never;
124
+ head?: never;
125
+ patch?: never;
126
+ trace?: never;
127
+ };
128
+ "/notifications/push/send": {
129
+ parameters: {
130
+ query?: never;
131
+ header?: never;
132
+ path?: never;
133
+ cookie?: never;
134
+ };
135
+ get?: never;
136
+ put?: never;
137
+ /** @description Send a push notification */
138
+ post: operations["sendPushNotification"];
139
+ delete?: never;
140
+ options?: never;
141
+ head?: never;
142
+ patch?: never;
143
+ trace?: never;
144
+ };
111
145
  }
112
146
  export type webhooks = Record<string, never>;
113
147
  export interface components {
@@ -149,6 +183,12 @@ export interface components {
149
183
  User: components["schemas"]["AddUserPayload"] & {
150
184
  /** @example 123456 */
151
185
  id: string;
186
+ /** @example IOS */
187
+ platform?: components["schemas"]["Platform"];
188
+ /** @example 1.3.0 */
189
+ appVersion?: string;
190
+ /** @example 123abc */
191
+ fcmToken?: string;
152
192
  /**
153
193
  * Format: int64
154
194
  * @example 1713398544000
@@ -160,6 +200,25 @@ export interface components {
160
200
  */
161
201
  dateUpdated: number;
162
202
  };
203
+ /** @description Payload to update new user device */
204
+ UpdateUserDevicePayload: {
205
+ platform?: components["schemas"]["Platform"];
206
+ /** @example 1.3.0 */
207
+ appVersion?: string;
208
+ /** @example 123abc */
209
+ fcmToken?: string;
210
+ };
211
+ /** @description Payload to send a push notification */
212
+ SendPushNotificationPayload: {
213
+ /** @example 123456 */
214
+ userId: string;
215
+ /** @example Sample Title */
216
+ title: string;
217
+ /** @example Sample Body */
218
+ body: string;
219
+ };
220
+ /** @enum {string} */
221
+ Platform: "IOS" | "ANDROID";
163
222
  /** @description A generic error */
164
223
  Error: {
165
224
  /**
@@ -455,4 +514,42 @@ export interface operations {
455
514
  500: components["responses"]["InternalServerError"];
456
515
  };
457
516
  };
517
+ updateUserDevice: {
518
+ parameters: {
519
+ query?: never;
520
+ header?: never;
521
+ path?: never;
522
+ cookie?: never;
523
+ };
524
+ /** @description The request body to update a user device */
525
+ requestBody: {
526
+ content: {
527
+ "application/json": components["schemas"]["UpdateUserDevicePayload"];
528
+ };
529
+ };
530
+ responses: {
531
+ 204: components["responses"]["NoContent"];
532
+ 400: components["responses"]["BadRequest"];
533
+ 500: components["responses"]["InternalServerError"];
534
+ };
535
+ };
536
+ sendPushNotification: {
537
+ parameters: {
538
+ query?: never;
539
+ header?: never;
540
+ path?: never;
541
+ cookie?: never;
542
+ };
543
+ /** @description The request body to send a push notification */
544
+ requestBody: {
545
+ content: {
546
+ "application/json": components["schemas"]["SendPushNotificationPayload"];
547
+ };
548
+ };
549
+ responses: {
550
+ 204: components["responses"]["NoContent"];
551
+ 400: components["responses"]["BadRequest"];
552
+ 500: components["responses"]["InternalServerError"];
553
+ };
554
+ };
458
555
  }
package/ts/types/types.ts CHANGED
@@ -41,6 +41,9 @@ export type OrderType = TradeServiceSchemas['OrderType'];
41
41
  export type Holding = TradeServiceSchemas['Holding'];
42
42
  export type TradeServiceError = TradeServiceSchemas['Error'];
43
43
  export type GetOrdersByPortfolioParams = TradeServiceOperations['getOrdersByPortfolio']['parameters']['query'];
44
+ export type PortfolioHistoryValue = TradeServiceSchemas['PortfolioHistoryValue'];
45
+ export type PortfolioHistoryTimeframe = TradeServiceSchemas['PortfolioHistoryTimeframe'];
46
+ export type GetPortfolioHistoryParams = TradeServiceOperations['getPortfolioHistory']['parameters']['query'];
44
47
 
45
48
  // User Service Types
46
49
  export type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
@@ -49,7 +52,9 @@ export type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPa
49
52
  export type LogoutPayload = UserServiceSchemas['LogoutPayload'];
50
53
  export type User = UserServiceSchemas['User'];
51
54
  export type AddUserPayload = UserServiceSchemas['AddUserPayload'];
55
+ export type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
52
56
  export type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
57
+ export type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
53
58
  export type UserServiceError = UserServiceSchemas['Error'];
54
59
 
55
60
  // Asset Service Types