@rivascva/dt-idl 1.1.186 → 1.1.188

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
@@ -733,6 +733,23 @@ interface paths$2 {
733
733
  patch?: never;
734
734
  trace?: never;
735
735
  };
736
+ "/portfolios/{portfolioId}/reset": {
737
+ parameters: {
738
+ query?: never;
739
+ header?: never;
740
+ path?: never;
741
+ cookie?: never;
742
+ };
743
+ get?: never;
744
+ put?: never;
745
+ /** @description Resets an existing portfolio */
746
+ post: operations$2["resetPortfolio"];
747
+ delete?: never;
748
+ options?: never;
749
+ head?: never;
750
+ patch?: never;
751
+ trace?: never;
752
+ };
736
753
  "/portfolios/{portfolioId}/history": {
737
754
  parameters: {
738
755
  query?: never;
@@ -761,7 +778,8 @@ interface paths$2 {
761
778
  get: operations$2["getPortfoliosByUser"];
762
779
  put?: never;
763
780
  post?: never;
764
- delete?: never;
781
+ /** @description Deletes all portfolios for the given user */
782
+ delete: operations$2["deletePortfoliosByUser"];
765
783
  options?: never;
766
784
  head?: never;
767
785
  patch?: never;
@@ -1080,6 +1098,32 @@ interface operations$2 {
1080
1098
  500: components$2["responses"]["InternalServerError"];
1081
1099
  };
1082
1100
  };
1101
+ resetPortfolio: {
1102
+ parameters: {
1103
+ query?: never;
1104
+ header?: never;
1105
+ path: {
1106
+ /** @description The portfolio id */
1107
+ portfolioId: string;
1108
+ };
1109
+ cookie?: never;
1110
+ };
1111
+ requestBody?: never;
1112
+ responses: {
1113
+ /** @description Success */
1114
+ 200: {
1115
+ headers: {
1116
+ [name: string]: unknown;
1117
+ };
1118
+ content: {
1119
+ "application/json": components$2["schemas"]["Portfolio"];
1120
+ };
1121
+ };
1122
+ 400: components$2["responses"]["BadRequest"];
1123
+ 404: components$2["responses"]["NotFound"];
1124
+ 500: components$2["responses"]["InternalServerError"];
1125
+ };
1126
+ };
1083
1127
  getPortfolioHistory: {
1084
1128
  parameters: {
1085
1129
  query: {
@@ -1137,6 +1181,24 @@ interface operations$2 {
1137
1181
  500: components$2["responses"]["InternalServerError"];
1138
1182
  };
1139
1183
  };
1184
+ deletePortfoliosByUser: {
1185
+ parameters: {
1186
+ query?: never;
1187
+ header?: never;
1188
+ path: {
1189
+ /** @description The user id */
1190
+ userId: string;
1191
+ };
1192
+ cookie?: never;
1193
+ };
1194
+ requestBody?: never;
1195
+ responses: {
1196
+ 204: components$2["responses"]["NoContent"];
1197
+ 400: components$2["responses"]["BadRequest"];
1198
+ 404: components$2["responses"]["NotFound"];
1199
+ 500: components$2["responses"]["InternalServerError"];
1200
+ };
1201
+ };
1140
1202
  addOrder: {
1141
1203
  parameters: {
1142
1204
  query?: never;
@@ -1318,7 +1380,8 @@ interface paths$1 {
1318
1380
  /** @description Updates an existing user */
1319
1381
  put: operations$1["updateUser"];
1320
1382
  post?: never;
1321
- delete?: never;
1383
+ /** @description Deletes an existing user */
1384
+ delete: operations$1["deleteUser"];
1322
1385
  options?: never;
1323
1386
  head?: never;
1324
1387
  patch?: never;
@@ -1341,6 +1404,23 @@ interface paths$1 {
1341
1404
  patch?: never;
1342
1405
  trace?: never;
1343
1406
  };
1407
+ "/users/{userId}/feedback": {
1408
+ parameters: {
1409
+ query?: never;
1410
+ header?: never;
1411
+ path?: never;
1412
+ cookie?: never;
1413
+ };
1414
+ get?: never;
1415
+ put?: never;
1416
+ /** @description Submit user feedback */
1417
+ post: operations$1["submitUserFeedback"];
1418
+ delete?: never;
1419
+ options?: never;
1420
+ head?: never;
1421
+ patch?: never;
1422
+ trace?: never;
1423
+ };
1344
1424
  "/users/fcm-token/{fcmToken}": {
1345
1425
  parameters: {
1346
1426
  query?: never;
@@ -1440,6 +1520,11 @@ interface components$1 {
1440
1520
  /** @example 123abc */
1441
1521
  fcmToken?: string;
1442
1522
  };
1523
+ /** @description Payload to submit user feedback */
1524
+ SubmitUserFeedbackPayload: {
1525
+ /** @example I love this app! */
1526
+ text: string;
1527
+ };
1443
1528
  /** @description Payload to send a push notification */
1444
1529
  SendPushNotificationPayload: {
1445
1530
  /** @example 123456 */
@@ -1745,6 +1830,24 @@ interface operations$1 {
1745
1830
  500: components$1["responses"]["InternalServerError"];
1746
1831
  };
1747
1832
  };
1833
+ deleteUser: {
1834
+ parameters: {
1835
+ query?: never;
1836
+ header?: never;
1837
+ path: {
1838
+ /** @description The user id */
1839
+ userId: string;
1840
+ };
1841
+ cookie?: never;
1842
+ };
1843
+ requestBody?: never;
1844
+ responses: {
1845
+ 204: components$1["responses"]["NoContent"];
1846
+ 400: components$1["responses"]["BadRequest"];
1847
+ 404: components$1["responses"]["NotFound"];
1848
+ 500: components$1["responses"]["InternalServerError"];
1849
+ };
1850
+ };
1748
1851
  updateUserDevice: {
1749
1852
  parameters: {
1750
1853
  query?: never;
@@ -1775,6 +1878,29 @@ interface operations$1 {
1775
1878
  500: components$1["responses"]["InternalServerError"];
1776
1879
  };
1777
1880
  };
1881
+ submitUserFeedback: {
1882
+ parameters: {
1883
+ query?: never;
1884
+ header?: never;
1885
+ path: {
1886
+ /** @description The user id */
1887
+ userId: string;
1888
+ };
1889
+ cookie?: never;
1890
+ };
1891
+ /** @description The request body to submit user feedback */
1892
+ requestBody: {
1893
+ content: {
1894
+ "application/json": components$1["schemas"]["SubmitUserFeedbackPayload"];
1895
+ };
1896
+ };
1897
+ responses: {
1898
+ 204: components$1["responses"]["NoContent"];
1899
+ 400: components$1["responses"]["BadRequest"];
1900
+ 404: components$1["responses"]["NotFound"];
1901
+ 500: components$1["responses"]["InternalServerError"];
1902
+ };
1903
+ };
1778
1904
  deleteFCMTokenFromAllUsers: {
1779
1905
  parameters: {
1780
1906
  query?: never;
@@ -2030,6 +2156,7 @@ type AddUserPayload = UserServiceSchemas['AddUserPayload'];
2030
2156
  type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
2031
2157
  type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
2032
2158
  type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
2159
+ type SubmitUserFeedbackPayload = UserServiceSchemas['SubmitUserFeedbackPayload'];
2033
2160
  type UserServiceError = UserServiceSchemas['Error'];
2034
2161
  type ImageType = AssetServiceSchemas['ImageType'];
2035
2162
  type UploadImagePayload = AssetServiceSchemas['UploadImagePayload'];
@@ -2037,4 +2164,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
2037
2164
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
2038
2165
  type AssetServiceError = AssetServiceSchemas['Error'];
2039
2166
 
2040
- 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 MarketHours, 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 };
2167
+ 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 MarketHours, 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 SubmitUserFeedbackPayload, 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.186",
3
+ "version": "1.1.188",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -71,6 +71,34 @@ paths:
71
71
  500:
72
72
  $ref: '#/components/responses/InternalServerError'
73
73
 
74
+ /portfolios/{portfolioId}/reset:
75
+ post:
76
+ description: Resets an existing portfolio
77
+ operationId: resetPortfolio
78
+ tags:
79
+ - Portfolios
80
+ parameters:
81
+ - in: path
82
+ name: portfolioId
83
+ description: The portfolio id
84
+ required: true
85
+ schema:
86
+ type: string
87
+ example: 123456
88
+ responses:
89
+ 200:
90
+ description: Success
91
+ content:
92
+ application/json:
93
+ schema:
94
+ $ref: '#/components/schemas/Portfolio'
95
+ 400:
96
+ $ref: '#/components/responses/BadRequest'
97
+ 404:
98
+ $ref: '#/components/responses/NotFound'
99
+ 500:
100
+ $ref: '#/components/responses/InternalServerError'
101
+
74
102
  /portfolios/{portfolioId}/history:
75
103
  get:
76
104
  description: Gets the portfolio history values
@@ -147,6 +175,28 @@ paths:
147
175
  $ref: '#/components/responses/NotFound'
148
176
  500:
149
177
  $ref: '#/components/responses/InternalServerError'
178
+ delete:
179
+ description: Deletes all portfolios for the given user
180
+ operationId: deletePortfoliosByUser
181
+ tags:
182
+ - Portfolios
183
+ parameters:
184
+ - in: path
185
+ name: userId
186
+ description: The user id
187
+ required: true
188
+ schema:
189
+ type: string
190
+ example: 123456
191
+ responses:
192
+ 204:
193
+ $ref: '#/components/responses/NoContent'
194
+ 400:
195
+ $ref: '#/components/responses/BadRequest'
196
+ 404:
197
+ $ref: '#/components/responses/NotFound'
198
+ 500:
199
+ $ref: '#/components/responses/InternalServerError'
150
200
 
151
201
  /orders:
152
202
  post:
@@ -200,7 +200,29 @@ paths:
200
200
  $ref: '#/components/responses/NotFound'
201
201
  500:
202
202
  $ref: '#/components/responses/InternalServerError'
203
-
203
+ delete:
204
+ description: Deletes an existing user
205
+ operationId: deleteUser
206
+ tags:
207
+ - Users
208
+ parameters:
209
+ - in: path
210
+ name: userId
211
+ description: The user id
212
+ required: true
213
+ schema:
214
+ type: string
215
+ example: 123456
216
+ responses:
217
+ 204:
218
+ $ref: '#/components/responses/NoContent'
219
+ 400:
220
+ $ref: '#/components/responses/BadRequest'
221
+ 404:
222
+ $ref: '#/components/responses/NotFound'
223
+ 500:
224
+ $ref: '#/components/responses/InternalServerError'
225
+
204
226
  /users/{userId}/device:
205
227
  put:
206
228
  description: Update the user device information
@@ -233,7 +255,38 @@ paths:
233
255
  $ref: '#/components/responses/BadRequest'
234
256
  500:
235
257
  $ref: '#/components/responses/InternalServerError'
236
-
258
+
259
+ /users/{userId}/feedback:
260
+ post:
261
+ description: Submit user feedback
262
+ operationId: submitUserFeedback
263
+ tags:
264
+ - Users
265
+ parameters:
266
+ - in: path
267
+ name: userId
268
+ description: The user id
269
+ required: true
270
+ schema:
271
+ type: string
272
+ example: 123456
273
+ requestBody:
274
+ description: The request body to submit user feedback
275
+ required: true
276
+ content:
277
+ application/json:
278
+ schema:
279
+ $ref: '#/components/schemas/SubmitUserFeedbackPayload'
280
+ responses:
281
+ 204:
282
+ $ref: '#/components/responses/NoContent'
283
+ 400:
284
+ $ref: '#/components/responses/BadRequest'
285
+ 404:
286
+ $ref: '#/components/responses/NotFound'
287
+ 500:
288
+ $ref: '#/components/responses/InternalServerError'
289
+
237
290
  /users/fcm-token/{fcmToken}:
238
291
  delete:
239
292
  description: Delete the FCM token from all users that have it
@@ -257,7 +310,7 @@ paths:
257
310
  $ref: '#/components/responses/NotFound'
258
311
  500:
259
312
  $ref: '#/components/responses/InternalServerError'
260
-
313
+
261
314
  /notifications/push/send:
262
315
  post:
263
316
  description: Send a push notification
@@ -390,6 +443,15 @@ components:
390
443
  type: string
391
444
  example: 123abc
392
445
 
446
+ SubmitUserFeedbackPayload:
447
+ description: Payload to submit user feedback
448
+ properties:
449
+ text:
450
+ type: string
451
+ example: I love this app!
452
+ required:
453
+ - text
454
+
393
455
  SendPushNotificationPayload:
394
456
  description: Payload to send a push notification
395
457
  properties:
@@ -406,7 +468,7 @@ components:
406
468
  - userId
407
469
  - title
408
470
  - body
409
-
471
+
410
472
  Platform:
411
473
  type: string
412
474
  enum:
@@ -38,6 +38,23 @@ export interface paths {
38
38
  patch?: never;
39
39
  trace?: never;
40
40
  };
41
+ "/portfolios/{portfolioId}/reset": {
42
+ parameters: {
43
+ query?: never;
44
+ header?: never;
45
+ path?: never;
46
+ cookie?: never;
47
+ };
48
+ get?: never;
49
+ put?: never;
50
+ /** @description Resets an existing portfolio */
51
+ post: operations["resetPortfolio"];
52
+ delete?: never;
53
+ options?: never;
54
+ head?: never;
55
+ patch?: never;
56
+ trace?: never;
57
+ };
41
58
  "/portfolios/{portfolioId}/history": {
42
59
  parameters: {
43
60
  query?: never;
@@ -66,7 +83,8 @@ export interface paths {
66
83
  get: operations["getPortfoliosByUser"];
67
84
  put?: never;
68
85
  post?: never;
69
- delete?: never;
86
+ /** @description Deletes all portfolios for the given user */
87
+ delete: operations["deletePortfoliosByUser"];
70
88
  options?: never;
71
89
  head?: never;
72
90
  patch?: never;
@@ -387,6 +405,32 @@ export interface operations {
387
405
  500: components["responses"]["InternalServerError"];
388
406
  };
389
407
  };
408
+ resetPortfolio: {
409
+ parameters: {
410
+ query?: never;
411
+ header?: never;
412
+ path: {
413
+ /** @description The portfolio id */
414
+ portfolioId: string;
415
+ };
416
+ cookie?: never;
417
+ };
418
+ requestBody?: never;
419
+ responses: {
420
+ /** @description Success */
421
+ 200: {
422
+ headers: {
423
+ [name: string]: unknown;
424
+ };
425
+ content: {
426
+ "application/json": components["schemas"]["Portfolio"];
427
+ };
428
+ };
429
+ 400: components["responses"]["BadRequest"];
430
+ 404: components["responses"]["NotFound"];
431
+ 500: components["responses"]["InternalServerError"];
432
+ };
433
+ };
390
434
  getPortfolioHistory: {
391
435
  parameters: {
392
436
  query: {
@@ -444,6 +488,24 @@ export interface operations {
444
488
  500: components["responses"]["InternalServerError"];
445
489
  };
446
490
  };
491
+ deletePortfoliosByUser: {
492
+ parameters: {
493
+ query?: never;
494
+ header?: never;
495
+ path: {
496
+ /** @description The user id */
497
+ userId: string;
498
+ };
499
+ cookie?: never;
500
+ };
501
+ requestBody?: never;
502
+ responses: {
503
+ 204: components["responses"]["NoContent"];
504
+ 400: components["responses"]["BadRequest"];
505
+ 404: components["responses"]["NotFound"];
506
+ 500: components["responses"]["InternalServerError"];
507
+ };
508
+ };
447
509
  addOrder: {
448
510
  parameters: {
449
511
  query?: never;
@@ -102,7 +102,8 @@ export interface paths {
102
102
  /** @description Updates an existing user */
103
103
  put: operations["updateUser"];
104
104
  post?: never;
105
- delete?: never;
105
+ /** @description Deletes an existing user */
106
+ delete: operations["deleteUser"];
106
107
  options?: never;
107
108
  head?: never;
108
109
  patch?: never;
@@ -125,6 +126,23 @@ export interface paths {
125
126
  patch?: never;
126
127
  trace?: never;
127
128
  };
129
+ "/users/{userId}/feedback": {
130
+ parameters: {
131
+ query?: never;
132
+ header?: never;
133
+ path?: never;
134
+ cookie?: never;
135
+ };
136
+ get?: never;
137
+ put?: never;
138
+ /** @description Submit user feedback */
139
+ post: operations["submitUserFeedback"];
140
+ delete?: never;
141
+ options?: never;
142
+ head?: never;
143
+ patch?: never;
144
+ trace?: never;
145
+ };
128
146
  "/users/fcm-token/{fcmToken}": {
129
147
  parameters: {
130
148
  query?: never;
@@ -225,6 +243,11 @@ export interface components {
225
243
  /** @example 123abc */
226
244
  fcmToken?: string;
227
245
  };
246
+ /** @description Payload to submit user feedback */
247
+ SubmitUserFeedbackPayload: {
248
+ /** @example I love this app! */
249
+ text: string;
250
+ };
228
251
  /** @description Payload to send a push notification */
229
252
  SendPushNotificationPayload: {
230
253
  /** @example 123456 */
@@ -531,6 +554,24 @@ export interface operations {
531
554
  500: components["responses"]["InternalServerError"];
532
555
  };
533
556
  };
557
+ deleteUser: {
558
+ parameters: {
559
+ query?: never;
560
+ header?: never;
561
+ path: {
562
+ /** @description The user id */
563
+ userId: string;
564
+ };
565
+ cookie?: never;
566
+ };
567
+ requestBody?: never;
568
+ responses: {
569
+ 204: components["responses"]["NoContent"];
570
+ 400: components["responses"]["BadRequest"];
571
+ 404: components["responses"]["NotFound"];
572
+ 500: components["responses"]["InternalServerError"];
573
+ };
574
+ };
534
575
  updateUserDevice: {
535
576
  parameters: {
536
577
  query?: never;
@@ -561,6 +602,29 @@ export interface operations {
561
602
  500: components["responses"]["InternalServerError"];
562
603
  };
563
604
  };
605
+ submitUserFeedback: {
606
+ parameters: {
607
+ query?: never;
608
+ header?: never;
609
+ path: {
610
+ /** @description The user id */
611
+ userId: string;
612
+ };
613
+ cookie?: never;
614
+ };
615
+ /** @description The request body to submit user feedback */
616
+ requestBody: {
617
+ content: {
618
+ "application/json": components["schemas"]["SubmitUserFeedbackPayload"];
619
+ };
620
+ };
621
+ responses: {
622
+ 204: components["responses"]["NoContent"];
623
+ 400: components["responses"]["BadRequest"];
624
+ 404: components["responses"]["NotFound"];
625
+ 500: components["responses"]["InternalServerError"];
626
+ };
627
+ };
564
628
  deleteFCMTokenFromAllUsers: {
565
629
  parameters: {
566
630
  query?: never;
package/ts/types/types.ts CHANGED
@@ -56,6 +56,7 @@ export type AddUserPayload = UserServiceSchemas['AddUserPayload'];
56
56
  export type UpdateUserDevicePayload = UserServiceSchemas['UpdateUserDevicePayload'];
57
57
  export type UpdateUserPayload = UserServiceSchemas['UpdateUserPayload'];
58
58
  export type SendPushNotificationPayload = UserServiceSchemas['SendPushNotificationPayload'];
59
+ export type SubmitUserFeedbackPayload = UserServiceSchemas['SubmitUserFeedbackPayload'];
59
60
  export type UserServiceError = UserServiceSchemas['Error'];
60
61
 
61
62
  // Asset Service Types