@rivascva/dt-idl 1.1.122 → 1.1.124
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 +19 -24
- package/package.json +1 -1
- package/services/dt-user-service.yaml +22 -30
- package/ts/services/dt-user-service.ts +17 -22
- package/ts/types/types.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1079,7 +1079,7 @@ interface operations$2 {
|
|
|
1079
1079
|
* Do not make direct changes to the file.
|
|
1080
1080
|
*/
|
|
1081
1081
|
interface paths$1 {
|
|
1082
|
-
"/auth/login": {
|
|
1082
|
+
"/auth/login/firebase": {
|
|
1083
1083
|
parameters: {
|
|
1084
1084
|
query?: never;
|
|
1085
1085
|
header?: never;
|
|
@@ -1088,15 +1088,15 @@ interface paths$1 {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
get?: never;
|
|
1090
1090
|
put?: never;
|
|
1091
|
-
/** @description Logs in a user */
|
|
1092
|
-
post: operations$1["
|
|
1091
|
+
/** @description Logs in a user with Firebase */
|
|
1092
|
+
post: operations$1["loginWithFirebase"];
|
|
1093
1093
|
delete?: never;
|
|
1094
1094
|
options?: never;
|
|
1095
1095
|
head?: never;
|
|
1096
1096
|
patch?: never;
|
|
1097
1097
|
trace?: never;
|
|
1098
1098
|
};
|
|
1099
|
-
"/auth/
|
|
1099
|
+
"/auth/signup/firebase": {
|
|
1100
1100
|
parameters: {
|
|
1101
1101
|
query?: never;
|
|
1102
1102
|
header?: never;
|
|
@@ -1105,8 +1105,8 @@ interface paths$1 {
|
|
|
1105
1105
|
};
|
|
1106
1106
|
get?: never;
|
|
1107
1107
|
put?: never;
|
|
1108
|
-
/** @description
|
|
1109
|
-
post: operations$1["
|
|
1108
|
+
/** @description Signs up a user with Firebase */
|
|
1109
|
+
post: operations$1["signupWithFirebase"];
|
|
1110
1110
|
delete?: never;
|
|
1111
1111
|
options?: never;
|
|
1112
1112
|
head?: never;
|
|
@@ -1186,18 +1186,15 @@ interface paths$1 {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
interface components$1 {
|
|
1188
1188
|
schemas: {
|
|
1189
|
-
/** @description Payload to log in a user */
|
|
1190
|
-
LoginPayload: {
|
|
1191
|
-
/** @example sam.smith@example.com */
|
|
1192
|
-
email: string;
|
|
1193
|
-
/** @example Password123! */
|
|
1194
|
-
password: string;
|
|
1195
|
-
};
|
|
1196
1189
|
/** @description Payload to log in a user with Firebase */
|
|
1197
1190
|
LoginWithFirebasePayload: {
|
|
1198
1191
|
/** @example ABCD.1234.abcd */
|
|
1199
1192
|
idToken: string;
|
|
1200
|
-
|
|
1193
|
+
};
|
|
1194
|
+
/** @description Payload to sign up a user with Firebase */
|
|
1195
|
+
SignupWithFirebasePayload: components$1["schemas"]["AddUserPayload"] & {
|
|
1196
|
+
/** @example ABCD.1234.abcd */
|
|
1197
|
+
idToken: string;
|
|
1201
1198
|
};
|
|
1202
1199
|
/** @description Payload to log out a user */
|
|
1203
1200
|
LogoutPayload: {
|
|
@@ -1226,8 +1223,6 @@ interface components$1 {
|
|
|
1226
1223
|
User: components$1["schemas"]["AddUserPayload"] & {
|
|
1227
1224
|
/** @example 123456 */
|
|
1228
1225
|
id: string;
|
|
1229
|
-
/** @example true */
|
|
1230
|
-
emailVerified: boolean;
|
|
1231
1226
|
/**
|
|
1232
1227
|
* Format: int64
|
|
1233
1228
|
* @example 1713398544000
|
|
@@ -1340,17 +1335,17 @@ interface components$1 {
|
|
|
1340
1335
|
pathItems: never;
|
|
1341
1336
|
}
|
|
1342
1337
|
interface operations$1 {
|
|
1343
|
-
|
|
1338
|
+
loginWithFirebase: {
|
|
1344
1339
|
parameters: {
|
|
1345
1340
|
query?: never;
|
|
1346
1341
|
header?: never;
|
|
1347
1342
|
path?: never;
|
|
1348
1343
|
cookie?: never;
|
|
1349
1344
|
};
|
|
1350
|
-
/** @description The request body to log in a user */
|
|
1345
|
+
/** @description The request body to log in a user with Firebase */
|
|
1351
1346
|
requestBody: {
|
|
1352
1347
|
content: {
|
|
1353
|
-
"application/json": components$1["schemas"]["
|
|
1348
|
+
"application/json": components$1["schemas"]["LoginWithFirebasePayload"];
|
|
1354
1349
|
};
|
|
1355
1350
|
};
|
|
1356
1351
|
responses: {
|
|
@@ -1359,17 +1354,17 @@ interface operations$1 {
|
|
|
1359
1354
|
500: components$1["responses"]["InternalServerError"];
|
|
1360
1355
|
};
|
|
1361
1356
|
};
|
|
1362
|
-
|
|
1357
|
+
signupWithFirebase: {
|
|
1363
1358
|
parameters: {
|
|
1364
1359
|
query?: never;
|
|
1365
1360
|
header?: never;
|
|
1366
1361
|
path?: never;
|
|
1367
1362
|
cookie?: never;
|
|
1368
1363
|
};
|
|
1369
|
-
/** @description The request body to
|
|
1364
|
+
/** @description The request body to sign up a user with Firebase */
|
|
1370
1365
|
requestBody: {
|
|
1371
1366
|
content: {
|
|
1372
|
-
"application/json": components$1["schemas"]["
|
|
1367
|
+
"application/json": components$1["schemas"]["SignupWithFirebasePayload"];
|
|
1373
1368
|
};
|
|
1374
1369
|
};
|
|
1375
1370
|
responses: {
|
|
@@ -1726,8 +1721,8 @@ type Order = TradeServiceSchemas['Order'];
|
|
|
1726
1721
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1727
1722
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1728
1723
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1729
|
-
type LoginPayload = UserServiceSchemas['LoginPayload'];
|
|
1730
1724
|
type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
|
|
1725
|
+
type SignupWithFirebasePayload = UserServiceSchemas['SignupWithFirebasePayload'];
|
|
1731
1726
|
type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload'];
|
|
1732
1727
|
type LogoutPayload = UserServiceSchemas['LogoutPayload'];
|
|
1733
1728
|
type User = UserServiceSchemas['User'];
|
|
@@ -1740,4 +1735,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
|
|
|
1740
1735
|
type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
|
|
1741
1736
|
type AssetServiceError = AssetServiceSchemas['Error'];
|
|
1742
1737
|
|
|
1743
|
-
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type
|
|
1738
|
+
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, 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 };
|
package/package.json
CHANGED
|
@@ -8,19 +8,19 @@ servers:
|
|
|
8
8
|
- url: http://localhost:8084/v1
|
|
9
9
|
|
|
10
10
|
paths:
|
|
11
|
-
/auth/login:
|
|
11
|
+
/auth/login/firebase:
|
|
12
12
|
post:
|
|
13
|
-
description: Logs in a user
|
|
14
|
-
operationId:
|
|
13
|
+
description: Logs in a user with Firebase
|
|
14
|
+
operationId: loginWithFirebase
|
|
15
15
|
tags:
|
|
16
16
|
- Auth
|
|
17
17
|
requestBody:
|
|
18
|
-
description: The request body to log in a user
|
|
18
|
+
description: The request body to log in a user with Firebase
|
|
19
19
|
required: true
|
|
20
20
|
content:
|
|
21
21
|
application/json:
|
|
22
22
|
schema:
|
|
23
|
-
$ref: '#/components/schemas/
|
|
23
|
+
$ref: '#/components/schemas/LoginWithFirebasePayload'
|
|
24
24
|
responses:
|
|
25
25
|
200:
|
|
26
26
|
$ref: '#/components/responses/LoginSuccess'
|
|
@@ -29,19 +29,19 @@ paths:
|
|
|
29
29
|
500:
|
|
30
30
|
$ref: '#/components/responses/InternalServerError'
|
|
31
31
|
|
|
32
|
-
/auth/
|
|
32
|
+
/auth/signup/firebase:
|
|
33
33
|
post:
|
|
34
|
-
description:
|
|
35
|
-
operationId:
|
|
34
|
+
description: Signs up a user with Firebase
|
|
35
|
+
operationId: signupWithFirebase
|
|
36
36
|
tags:
|
|
37
37
|
- Auth
|
|
38
38
|
requestBody:
|
|
39
|
-
description: The request body to
|
|
39
|
+
description: The request body to sign up a user with Firebase
|
|
40
40
|
required: true
|
|
41
41
|
content:
|
|
42
42
|
application/json:
|
|
43
43
|
schema:
|
|
44
|
-
$ref: '#/components/schemas/
|
|
44
|
+
$ref: '#/components/schemas/SignupWithFirebasePayload'
|
|
45
45
|
responses:
|
|
46
46
|
200:
|
|
47
47
|
$ref: '#/components/responses/LoginSuccess'
|
|
@@ -201,31 +201,27 @@ paths:
|
|
|
201
201
|
|
|
202
202
|
components:
|
|
203
203
|
schemas:
|
|
204
|
-
LoginPayload:
|
|
205
|
-
description: Payload to log in a user
|
|
206
|
-
properties:
|
|
207
|
-
email:
|
|
208
|
-
type: string
|
|
209
|
-
example: sam.smith@example.com
|
|
210
|
-
password:
|
|
211
|
-
type: string
|
|
212
|
-
example: Password123!
|
|
213
|
-
required:
|
|
214
|
-
- email
|
|
215
|
-
- password
|
|
216
|
-
|
|
217
204
|
LoginWithFirebasePayload:
|
|
218
205
|
description: Payload to log in a user with Firebase
|
|
219
206
|
properties:
|
|
220
207
|
idToken:
|
|
221
208
|
type: string
|
|
222
209
|
example: ABCD.1234.abcd
|
|
223
|
-
newUserDetails:
|
|
224
|
-
allOf:
|
|
225
|
-
- $ref: '#/components/schemas/AddUserPayload'
|
|
226
210
|
required:
|
|
227
211
|
- idToken
|
|
228
212
|
|
|
213
|
+
SignupWithFirebasePayload:
|
|
214
|
+
description: Payload to sign up a user with Firebase
|
|
215
|
+
allOf:
|
|
216
|
+
- $ref: '#/components/schemas/AddUserPayload'
|
|
217
|
+
- type: object
|
|
218
|
+
properties:
|
|
219
|
+
idToken:
|
|
220
|
+
type: string
|
|
221
|
+
example: ABCD.1234.abcd
|
|
222
|
+
required:
|
|
223
|
+
- idToken
|
|
224
|
+
|
|
229
225
|
LogoutPayload:
|
|
230
226
|
description: Payload to log out a user
|
|
231
227
|
properties:
|
|
@@ -278,9 +274,6 @@ components:
|
|
|
278
274
|
id:
|
|
279
275
|
type: string
|
|
280
276
|
example: 123456
|
|
281
|
-
emailVerified:
|
|
282
|
-
type: boolean
|
|
283
|
-
example: true
|
|
284
277
|
dateCreated:
|
|
285
278
|
type: integer
|
|
286
279
|
format: int64
|
|
@@ -291,7 +284,6 @@ components:
|
|
|
291
284
|
example: 1713398544000
|
|
292
285
|
required:
|
|
293
286
|
- id
|
|
294
|
-
- emailVerified
|
|
295
287
|
- dateCreated
|
|
296
288
|
- dateUpdated
|
|
297
289
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
"/auth/login": {
|
|
7
|
+
"/auth/login/firebase": {
|
|
8
8
|
parameters: {
|
|
9
9
|
query?: never;
|
|
10
10
|
header?: never;
|
|
@@ -13,15 +13,15 @@ export interface paths {
|
|
|
13
13
|
};
|
|
14
14
|
get?: never;
|
|
15
15
|
put?: never;
|
|
16
|
-
/** @description Logs in a user */
|
|
17
|
-
post: operations["
|
|
16
|
+
/** @description Logs in a user with Firebase */
|
|
17
|
+
post: operations["loginWithFirebase"];
|
|
18
18
|
delete?: never;
|
|
19
19
|
options?: never;
|
|
20
20
|
head?: never;
|
|
21
21
|
patch?: never;
|
|
22
22
|
trace?: never;
|
|
23
23
|
};
|
|
24
|
-
"/auth/
|
|
24
|
+
"/auth/signup/firebase": {
|
|
25
25
|
parameters: {
|
|
26
26
|
query?: never;
|
|
27
27
|
header?: never;
|
|
@@ -30,8 +30,8 @@ export interface paths {
|
|
|
30
30
|
};
|
|
31
31
|
get?: never;
|
|
32
32
|
put?: never;
|
|
33
|
-
/** @description
|
|
34
|
-
post: operations["
|
|
33
|
+
/** @description Signs up a user with Firebase */
|
|
34
|
+
post: operations["signupWithFirebase"];
|
|
35
35
|
delete?: never;
|
|
36
36
|
options?: never;
|
|
37
37
|
head?: never;
|
|
@@ -112,18 +112,15 @@ export interface paths {
|
|
|
112
112
|
export type webhooks = Record<string, never>;
|
|
113
113
|
export interface components {
|
|
114
114
|
schemas: {
|
|
115
|
-
/** @description Payload to log in a user */
|
|
116
|
-
LoginPayload: {
|
|
117
|
-
/** @example sam.smith@example.com */
|
|
118
|
-
email: string;
|
|
119
|
-
/** @example Password123! */
|
|
120
|
-
password: string;
|
|
121
|
-
};
|
|
122
115
|
/** @description Payload to log in a user with Firebase */
|
|
123
116
|
LoginWithFirebasePayload: {
|
|
124
117
|
/** @example ABCD.1234.abcd */
|
|
125
118
|
idToken: string;
|
|
126
|
-
|
|
119
|
+
};
|
|
120
|
+
/** @description Payload to sign up a user with Firebase */
|
|
121
|
+
SignupWithFirebasePayload: components["schemas"]["AddUserPayload"] & {
|
|
122
|
+
/** @example ABCD.1234.abcd */
|
|
123
|
+
idToken: string;
|
|
127
124
|
};
|
|
128
125
|
/** @description Payload to log out a user */
|
|
129
126
|
LogoutPayload: {
|
|
@@ -152,8 +149,6 @@ export interface components {
|
|
|
152
149
|
User: components["schemas"]["AddUserPayload"] & {
|
|
153
150
|
/** @example 123456 */
|
|
154
151
|
id: string;
|
|
155
|
-
/** @example true */
|
|
156
|
-
emailVerified: boolean;
|
|
157
152
|
/**
|
|
158
153
|
* Format: int64
|
|
159
154
|
* @example 1713398544000
|
|
@@ -267,17 +262,17 @@ export interface components {
|
|
|
267
262
|
}
|
|
268
263
|
export type $defs = Record<string, never>;
|
|
269
264
|
export interface operations {
|
|
270
|
-
|
|
265
|
+
loginWithFirebase: {
|
|
271
266
|
parameters: {
|
|
272
267
|
query?: never;
|
|
273
268
|
header?: never;
|
|
274
269
|
path?: never;
|
|
275
270
|
cookie?: never;
|
|
276
271
|
};
|
|
277
|
-
/** @description The request body to log in a user */
|
|
272
|
+
/** @description The request body to log in a user with Firebase */
|
|
278
273
|
requestBody: {
|
|
279
274
|
content: {
|
|
280
|
-
"application/json": components["schemas"]["
|
|
275
|
+
"application/json": components["schemas"]["LoginWithFirebasePayload"];
|
|
281
276
|
};
|
|
282
277
|
};
|
|
283
278
|
responses: {
|
|
@@ -286,17 +281,17 @@ export interface operations {
|
|
|
286
281
|
500: components["responses"]["InternalServerError"];
|
|
287
282
|
};
|
|
288
283
|
};
|
|
289
|
-
|
|
284
|
+
signupWithFirebase: {
|
|
290
285
|
parameters: {
|
|
291
286
|
query?: never;
|
|
292
287
|
header?: never;
|
|
293
288
|
path?: never;
|
|
294
289
|
cookie?: never;
|
|
295
290
|
};
|
|
296
|
-
/** @description The request body to
|
|
291
|
+
/** @description The request body to sign up a user with Firebase */
|
|
297
292
|
requestBody: {
|
|
298
293
|
content: {
|
|
299
|
-
"application/json": components["schemas"]["
|
|
294
|
+
"application/json": components["schemas"]["SignupWithFirebasePayload"];
|
|
300
295
|
};
|
|
301
296
|
};
|
|
302
297
|
responses: {
|
package/ts/types/types.ts
CHANGED
|
@@ -39,8 +39,8 @@ export type Holding = TradeServiceSchemas['Holding'];
|
|
|
39
39
|
export type TradeServiceError = TradeServiceSchemas['Error'];
|
|
40
40
|
|
|
41
41
|
// User Service Types
|
|
42
|
-
export type LoginPayload = UserServiceSchemas['LoginPayload'];
|
|
43
42
|
export type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
|
|
43
|
+
export type SignupWithFirebasePayload = UserServiceSchemas['SignupWithFirebasePayload'];
|
|
44
44
|
export type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload'];
|
|
45
45
|
export type LogoutPayload = UserServiceSchemas['LogoutPayload'];
|
|
46
46
|
export type User = UserServiceSchemas['User'];
|