@rivascva/dt-idl 1.1.123 → 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 -22
- package/package.json +1 -1
- package/services/dt-user-service.yaml +22 -26
- package/ts/services/dt-user-service.ts +17 -20
- 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: {
|
|
@@ -1338,17 +1335,17 @@ interface components$1 {
|
|
|
1338
1335
|
pathItems: never;
|
|
1339
1336
|
}
|
|
1340
1337
|
interface operations$1 {
|
|
1341
|
-
|
|
1338
|
+
loginWithFirebase: {
|
|
1342
1339
|
parameters: {
|
|
1343
1340
|
query?: never;
|
|
1344
1341
|
header?: never;
|
|
1345
1342
|
path?: never;
|
|
1346
1343
|
cookie?: never;
|
|
1347
1344
|
};
|
|
1348
|
-
/** @description The request body to log in a user */
|
|
1345
|
+
/** @description The request body to log in a user with Firebase */
|
|
1349
1346
|
requestBody: {
|
|
1350
1347
|
content: {
|
|
1351
|
-
"application/json": components$1["schemas"]["
|
|
1348
|
+
"application/json": components$1["schemas"]["LoginWithFirebasePayload"];
|
|
1352
1349
|
};
|
|
1353
1350
|
};
|
|
1354
1351
|
responses: {
|
|
@@ -1357,17 +1354,17 @@ interface operations$1 {
|
|
|
1357
1354
|
500: components$1["responses"]["InternalServerError"];
|
|
1358
1355
|
};
|
|
1359
1356
|
};
|
|
1360
|
-
|
|
1357
|
+
signupWithFirebase: {
|
|
1361
1358
|
parameters: {
|
|
1362
1359
|
query?: never;
|
|
1363
1360
|
header?: never;
|
|
1364
1361
|
path?: never;
|
|
1365
1362
|
cookie?: never;
|
|
1366
1363
|
};
|
|
1367
|
-
/** @description The request body to
|
|
1364
|
+
/** @description The request body to sign up a user with Firebase */
|
|
1368
1365
|
requestBody: {
|
|
1369
1366
|
content: {
|
|
1370
|
-
"application/json": components$1["schemas"]["
|
|
1367
|
+
"application/json": components$1["schemas"]["SignupWithFirebasePayload"];
|
|
1371
1368
|
};
|
|
1372
1369
|
};
|
|
1373
1370
|
responses: {
|
|
@@ -1724,8 +1721,8 @@ type Order = TradeServiceSchemas['Order'];
|
|
|
1724
1721
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1725
1722
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1726
1723
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1727
|
-
type LoginPayload = UserServiceSchemas['LoginPayload'];
|
|
1728
1724
|
type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
|
|
1725
|
+
type SignupWithFirebasePayload = UserServiceSchemas['SignupWithFirebasePayload'];
|
|
1729
1726
|
type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload'];
|
|
1730
1727
|
type LogoutPayload = UserServiceSchemas['LogoutPayload'];
|
|
1731
1728
|
type User = UserServiceSchemas['User'];
|
|
@@ -1738,4 +1735,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
|
|
|
1738
1735
|
type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
|
|
1739
1736
|
type AssetServiceError = AssetServiceSchemas['Error'];
|
|
1740
1737
|
|
|
1741
|
-
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:
|
|
@@ -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: {
|
|
@@ -265,17 +262,17 @@ export interface components {
|
|
|
265
262
|
}
|
|
266
263
|
export type $defs = Record<string, never>;
|
|
267
264
|
export interface operations {
|
|
268
|
-
|
|
265
|
+
loginWithFirebase: {
|
|
269
266
|
parameters: {
|
|
270
267
|
query?: never;
|
|
271
268
|
header?: never;
|
|
272
269
|
path?: never;
|
|
273
270
|
cookie?: never;
|
|
274
271
|
};
|
|
275
|
-
/** @description The request body to log in a user */
|
|
272
|
+
/** @description The request body to log in a user with Firebase */
|
|
276
273
|
requestBody: {
|
|
277
274
|
content: {
|
|
278
|
-
"application/json": components["schemas"]["
|
|
275
|
+
"application/json": components["schemas"]["LoginWithFirebasePayload"];
|
|
279
276
|
};
|
|
280
277
|
};
|
|
281
278
|
responses: {
|
|
@@ -284,17 +281,17 @@ export interface operations {
|
|
|
284
281
|
500: components["responses"]["InternalServerError"];
|
|
285
282
|
};
|
|
286
283
|
};
|
|
287
|
-
|
|
284
|
+
signupWithFirebase: {
|
|
288
285
|
parameters: {
|
|
289
286
|
query?: never;
|
|
290
287
|
header?: never;
|
|
291
288
|
path?: never;
|
|
292
289
|
cookie?: never;
|
|
293
290
|
};
|
|
294
|
-
/** @description The request body to
|
|
291
|
+
/** @description The request body to sign up a user with Firebase */
|
|
295
292
|
requestBody: {
|
|
296
293
|
content: {
|
|
297
|
-
"application/json": components["schemas"]["
|
|
294
|
+
"application/json": components["schemas"]["SignupWithFirebasePayload"];
|
|
298
295
|
};
|
|
299
296
|
};
|
|
300
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'];
|