tering-serieuze-types 2.0.2 → 2.0.4

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 CHANGED
@@ -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 })
@@ -220,7 +223,7 @@ __decorateClass([
220
223
  (0, import_swagger4.ApiProperty)({ type: [String], default: [] })
221
224
  ], User.prototype, "favoriteJingles", 2);
222
225
  __decorateClass([
223
- (0, import_swagger4.ApiProperty)({ type: Date, nullable: true }),
226
+ (0, import_swagger4.ApiProperty)({ type: Date, nullable: true, default: null }),
224
227
  (0, import_swagger4.ApiProperty)()
225
228
  ], User.prototype, "isRegistering", 2);
226
229
  __decorateClass([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {
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;
@@ -25,9 +29,9 @@ export class User {
25
29
  @ApiProperty({ type: [String], default: [] })
26
30
  favoriteJingles: string[];
27
31
 
28
- @ApiProperty({ type: Date, nullable: true })
32
+ @ApiProperty({ type: Date, nullable: true, default: null })
29
33
  @ApiProperty()
30
- isRegistering?: Date;
34
+ isRegistering: Date | null;
31
35
 
32
36
  @ApiProperty({ type: WindowState })
33
37
  windowState: WindowState;