tering-serieuze-types 2.0.1 → 2.0.3
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.js +4 -1
- package/package.json +1 -1
- package/src/session.ts +1 -1
- package/src/user.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ __decorateClass([
|
|
|
145
145
|
], ApiToken.prototype, "id", 2);
|
|
146
146
|
__decorateClass([
|
|
147
147
|
(0, import_swagger3.ApiProperty)({
|
|
148
|
-
type: User,
|
|
148
|
+
type: () => [User],
|
|
149
149
|
description: "User object"
|
|
150
150
|
})
|
|
151
151
|
], ApiToken.prototype, "user", 2);
|
|
@@ -203,6 +203,9 @@ var User = class {
|
|
|
203
203
|
__decorateClass([
|
|
204
204
|
(0, import_swagger4.ApiProperty)({ type: Number })
|
|
205
205
|
], User.prototype, "id", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
(0, import_swagger4.ApiProperty)({ type: Number, nullable: true, default: null })
|
|
208
|
+
], User.prototype, "_id", 2);
|
|
206
209
|
__decorateClass([
|
|
207
210
|
(0, import_class_validator.IsEmail)(),
|
|
208
211
|
(0, import_swagger4.ApiProperty)({ type: String })
|
package/package.json
CHANGED
package/src/session.ts
CHANGED
package/src/user.ts
CHANGED
|
@@ -9,6 +9,10 @@ export class User {
|
|
|
9
9
|
@ApiProperty({ type: Number })
|
|
10
10
|
id: number;
|
|
11
11
|
|
|
12
|
+
// Necessary for legacy mongodb passkeys
|
|
13
|
+
@ApiProperty({ type: Number, nullable: true, default: null })
|
|
14
|
+
_id: string;
|
|
15
|
+
|
|
12
16
|
@IsEmail()
|
|
13
17
|
@ApiProperty({ type: String })
|
|
14
18
|
email: string;
|