@rivascva/dt-idl 1.1.146 → 1.1.148

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,47 @@ 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: {
1722
+ /** @description The user id */
1723
+ userId: string;
1724
+ };
1725
+ cookie?: never;
1726
+ };
1727
+ /** @description The request body to update a user device */
1728
+ requestBody: {
1729
+ content: {
1730
+ "application/json": components$1["schemas"]["UpdateUserDevicePayload"];
1731
+ };
1732
+ };
1733
+ responses: {
1734
+ 204: components$1["responses"]["NoContent"];
1735
+ 400: components$1["responses"]["BadRequest"];
1736
+ 500: components$1["responses"]["InternalServerError"];
1737
+ };
1738
+ };
1739
+ sendPushNotification: {
1740
+ parameters: {
1741
+ query?: never;
1742
+ header?: never;
1743
+ path?: never;
1744
+ cookie?: never;
1745
+ };
1746
+ /** @description The request body to send a push notification */
1747
+ requestBody: {
1748
+ content: {
1749
+ "application/json": components$1["schemas"]["SendPushNotificationPayload"];
1750
+ };
1751
+ };
1752
+ responses: {
1753
+ 204: components$1["responses"]["NoContent"];
1754
+ 400: components$1["responses"]["BadRequest"];
1755
+ 500: components$1["responses"]["InternalServerError"];
1756
+ };
1757
+ };
1658
1758
  }
1659
1759
 
1660
1760
  /**
@@ -1868,7 +1968,9 @@ type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload']
1868
1968
  type LogoutPayload = UserServiceSchemas['LogoutPayload'];
1869
1969
  type User = UserServiceSchemas['User'];
1870
1970
  type AddUserPayload = UserServiceSchemas['AddUserPayload'];
1971
+ type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
1871
1972
  type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
1973
+ type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
1872
1974
  type UserServiceError = UserServiceSchemas['Error'];
1873
1975
  type ImageType = AssetServiceSchemas['ImageType'];
1874
1976
  type UploadImagePayload = AssetServiceSchemas['UploadImagePayload'];
@@ -1876,4 +1978,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
1876
1978
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
1877
1979
  type AssetServiceError = AssetServiceSchemas['Error'];
1878
1980
 
1879
- 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 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 };
1981
+ 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.146",
3
+ "version": "1.1.148",
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,56 @@ 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
+ parameters:
211
+ - in: path
212
+ name: userId
213
+ description: The user id
214
+ required: true
215
+ schema:
216
+ type: string
217
+ example: 123456
218
+ requestBody:
219
+ description: The request body to update a user device
220
+ required: true
221
+ content:
222
+ application/json:
223
+ schema:
224
+ $ref: '#/components/schemas/UpdateUserDevicePayload'
225
+ responses:
226
+ 204:
227
+ $ref: '#/components/responses/NoContent'
228
+ 400:
229
+ $ref: '#/components/responses/BadRequest'
230
+ 500:
231
+ $ref: '#/components/responses/InternalServerError'
232
+
233
+ /notifications/push/send:
234
+ post:
235
+ description: Send a push notification
236
+ operationId: sendPushNotification
237
+ tags:
238
+ - Notifications
239
+ requestBody:
240
+ description: The request body to send a push notification
241
+ required: true
242
+ content:
243
+ application/json:
244
+ schema:
245
+ $ref: '#/components/schemas/SendPushNotificationPayload'
246
+ responses:
247
+ 204:
248
+ $ref: '#/components/responses/NoContent'
249
+ 400:
250
+ $ref: '#/components/responses/BadRequest'
251
+ 500:
252
+ $ref: '#/components/responses/InternalServerError'
203
253
 
204
254
  components:
205
255
  schemas:
@@ -276,6 +326,15 @@ components:
276
326
  id:
277
327
  type: string
278
328
  example: 123456
329
+ platform:
330
+ $ref: '#/components/schemas/Platform'
331
+ example: IOS
332
+ appVersion:
333
+ type: string
334
+ example: 1.3.0
335
+ fcmToken:
336
+ type: string
337
+ example: 123abc
279
338
  dateCreated:
280
339
  type: integer
281
340
  format: int64
@@ -289,6 +348,41 @@ components:
289
348
  - dateCreated
290
349
  - dateUpdated
291
350
 
351
+ UpdateUserDevicePayload:
352
+ description: Payload to update new user device
353
+ properties:
354
+ platform:
355
+ $ref: '#/components/schemas/Platform'
356
+ appVersion:
357
+ type: string
358
+ example: 1.3.0
359
+ fcmToken:
360
+ type: string
361
+ example: 123abc
362
+
363
+ SendPushNotificationPayload:
364
+ description: Payload to send a push notification
365
+ properties:
366
+ userId:
367
+ type: string
368
+ example: 123456
369
+ title:
370
+ type: string
371
+ example: Sample Title
372
+ body:
373
+ type: string
374
+ example: Sample Body
375
+ required:
376
+ - userId
377
+ - title
378
+ - body
379
+
380
+ Platform:
381
+ type: string
382
+ enum:
383
+ - IOS
384
+ - ANDROID
385
+
292
386
  Error:
293
387
  description: A generic error
294
388
  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,45 @@ 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: {
522
+ /** @description The user id */
523
+ userId: string;
524
+ };
525
+ cookie?: never;
526
+ };
527
+ /** @description The request body to update a user device */
528
+ requestBody: {
529
+ content: {
530
+ "application/json": components["schemas"]["UpdateUserDevicePayload"];
531
+ };
532
+ };
533
+ responses: {
534
+ 204: components["responses"]["NoContent"];
535
+ 400: components["responses"]["BadRequest"];
536
+ 500: components["responses"]["InternalServerError"];
537
+ };
538
+ };
539
+ sendPushNotification: {
540
+ parameters: {
541
+ query?: never;
542
+ header?: never;
543
+ path?: never;
544
+ cookie?: never;
545
+ };
546
+ /** @description The request body to send a push notification */
547
+ requestBody: {
548
+ content: {
549
+ "application/json": components["schemas"]["SendPushNotificationPayload"];
550
+ };
551
+ };
552
+ responses: {
553
+ 204: components["responses"]["NoContent"];
554
+ 400: components["responses"]["BadRequest"];
555
+ 500: components["responses"]["InternalServerError"];
556
+ };
557
+ };
458
558
  }
package/ts/types/types.ts CHANGED
@@ -52,7 +52,9 @@ export type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPa
52
52
  export type LogoutPayload = UserServiceSchemas['LogoutPayload'];
53
53
  export type User = UserServiceSchemas['User'];
54
54
  export type AddUserPayload = UserServiceSchemas['AddUserPayload'];
55
+ export type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
55
56
  export type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
57
+ export type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
56
58
  export type UserServiceError = UserServiceSchemas['Error'];
57
59
 
58
60
  // Asset Service Types