@experts_hub/shared 1.0.38 → 1.0.39
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/entities/index.d.ts +1 -0
- package/dist/entities/otp.entity.d.ts +13 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +72 -20
- package/dist/index.mjs +77 -18
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { User } from "./user.entity";
|
|
2
|
+
export declare class Otp {
|
|
3
|
+
id: number;
|
|
4
|
+
userId: number;
|
|
5
|
+
otp: string;
|
|
6
|
+
otpPurpose: string;
|
|
7
|
+
target: string;
|
|
8
|
+
expiresAt: Date;
|
|
9
|
+
isUsed: boolean;
|
|
10
|
+
resendCount: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
user: User;
|
|
13
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from './base.entity';
|
|
2
2
|
import { RefreshToken } from './refresh-token.entity';
|
|
3
3
|
import { ResumeParserLog } from './resume-parser-log.entity';
|
|
4
|
+
import { Otp } from './otp.entity';
|
|
4
5
|
export declare enum AccountType {
|
|
5
6
|
ADMIN = "ADMIN",
|
|
6
7
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -31,5 +32,6 @@ export declare class User extends BaseEntity {
|
|
|
31
32
|
lastLoginAt: Date;
|
|
32
33
|
lastLoginIp: string;
|
|
33
34
|
refreshTokens: RefreshToken[];
|
|
35
|
+
otps: Otp[];
|
|
34
36
|
resumeParserLogs: ResumeParserLog[];
|
|
35
37
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -185,6 +185,19 @@ declare class ResumeParserLog {
|
|
|
185
185
|
user: User;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
declare class Otp {
|
|
189
|
+
id: number;
|
|
190
|
+
userId: number;
|
|
191
|
+
otp: string;
|
|
192
|
+
otpPurpose: string;
|
|
193
|
+
target: string;
|
|
194
|
+
expiresAt: Date;
|
|
195
|
+
isUsed: boolean;
|
|
196
|
+
resendCount: number;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
user: User;
|
|
199
|
+
}
|
|
200
|
+
|
|
188
201
|
declare enum AccountType {
|
|
189
202
|
ADMIN = "ADMIN",
|
|
190
203
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -215,7 +228,8 @@ declare class User extends BaseEntity {
|
|
|
215
228
|
lastLoginAt: Date;
|
|
216
229
|
lastLoginIp: string;
|
|
217
230
|
refreshTokens: RefreshToken[];
|
|
231
|
+
otps: Otp[];
|
|
218
232
|
resumeParserLogs: ResumeParserLog[];
|
|
219
233
|
}
|
|
220
234
|
|
|
221
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
235
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, Otp, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -185,6 +185,19 @@ declare class ResumeParserLog {
|
|
|
185
185
|
user: User;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
declare class Otp {
|
|
189
|
+
id: number;
|
|
190
|
+
userId: number;
|
|
191
|
+
otp: string;
|
|
192
|
+
otpPurpose: string;
|
|
193
|
+
target: string;
|
|
194
|
+
expiresAt: Date;
|
|
195
|
+
isUsed: boolean;
|
|
196
|
+
resendCount: number;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
user: User;
|
|
199
|
+
}
|
|
200
|
+
|
|
188
201
|
declare enum AccountType {
|
|
189
202
|
ADMIN = "ADMIN",
|
|
190
203
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -215,7 +228,8 @@ declare class User extends BaseEntity {
|
|
|
215
228
|
lastLoginAt: Date;
|
|
216
229
|
lastLoginIp: string;
|
|
217
230
|
refreshTokens: RefreshToken[];
|
|
231
|
+
otps: Otp[];
|
|
218
232
|
resumeParserLogs: ResumeParserLog[];
|
|
219
233
|
}
|
|
220
234
|
|
|
221
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
235
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, Otp, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
37
37
|
LoginDto: () => LoginDto,
|
|
38
38
|
LogoutDto: () => LogoutDto,
|
|
39
|
+
Otp: () => Otp,
|
|
39
40
|
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
40
41
|
RefreshDto: () => RefreshDto,
|
|
41
42
|
RefreshToken: () => RefreshToken,
|
|
@@ -358,7 +359,7 @@ __decorateClass([
|
|
|
358
359
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
359
360
|
|
|
360
361
|
// src/entities/user.entity.ts
|
|
361
|
-
var
|
|
362
|
+
var import_typeorm5 = require("typeorm");
|
|
362
363
|
|
|
363
364
|
// src/entities/refresh-token.entity.ts
|
|
364
365
|
var import_typeorm2 = require("typeorm");
|
|
@@ -432,6 +433,53 @@ ResumeParserLog = __decorateClass([
|
|
|
432
433
|
(0, import_typeorm3.Entity)("resume_parser_logs")
|
|
433
434
|
], ResumeParserLog);
|
|
434
435
|
|
|
436
|
+
// src/entities/otp.entity.ts
|
|
437
|
+
var import_typeorm4 = require("typeorm");
|
|
438
|
+
var Otp = class {
|
|
439
|
+
};
|
|
440
|
+
__decorateClass([
|
|
441
|
+
(0, import_typeorm4.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
442
|
+
], Otp.prototype, "id", 2);
|
|
443
|
+
// individual index to find OTPs by user
|
|
444
|
+
__decorateClass([
|
|
445
|
+
(0, import_typeorm4.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
446
|
+
(0, import_typeorm4.Index)()
|
|
447
|
+
], Otp.prototype, "userId", 2);
|
|
448
|
+
__decorateClass([
|
|
449
|
+
(0, import_typeorm4.Column)({ name: "otp", type: "varchar", length: 4 }),
|
|
450
|
+
(0, import_typeorm4.Index)()
|
|
451
|
+
], Otp.prototype, "otp", 2);
|
|
452
|
+
__decorateClass([
|
|
453
|
+
(0, import_typeorm4.Column)({ name: "otp_purpose", type: "varchar", length: 50 })
|
|
454
|
+
], Otp.prototype, "otpPurpose", 2);
|
|
455
|
+
__decorateClass([
|
|
456
|
+
(0, import_typeorm4.Column)({ name: "target", type: "varchar", nullable: true }),
|
|
457
|
+
(0, import_typeorm4.Index)()
|
|
458
|
+
], Otp.prototype, "target", 2);
|
|
459
|
+
// support expiration checks
|
|
460
|
+
__decorateClass([
|
|
461
|
+
(0, import_typeorm4.Column)({ name: "expire_at", type: "timestamp" }),
|
|
462
|
+
(0, import_typeorm4.Index)()
|
|
463
|
+
], Otp.prototype, "expiresAt", 2);
|
|
464
|
+
__decorateClass([
|
|
465
|
+
(0, import_typeorm4.Column)({ name: "is_used", type: "boolean", default: false }),
|
|
466
|
+
(0, import_typeorm4.Index)()
|
|
467
|
+
], Otp.prototype, "isUsed", 2);
|
|
468
|
+
__decorateClass([
|
|
469
|
+
(0, import_typeorm4.Column)({ name: "resend_count", type: "int", default: 0 })
|
|
470
|
+
], Otp.prototype, "resendCount", 2);
|
|
471
|
+
__decorateClass([
|
|
472
|
+
(0, import_typeorm4.CreateDateColumn)({ name: "created_at", type: "timestamp with time zone" })
|
|
473
|
+
], Otp.prototype, "createdAt", 2);
|
|
474
|
+
__decorateClass([
|
|
475
|
+
(0, import_typeorm4.ManyToOne)(() => User, (user) => user.otps),
|
|
476
|
+
(0, import_typeorm4.JoinColumn)({ name: "user_id" })
|
|
477
|
+
], Otp.prototype, "user", 2);
|
|
478
|
+
Otp = __decorateClass([
|
|
479
|
+
(0, import_typeorm4.Entity)("otps"),
|
|
480
|
+
(0, import_typeorm4.Index)(["userId", "otp", "otp_purpose", "is_used"])
|
|
481
|
+
], Otp);
|
|
482
|
+
|
|
435
483
|
// src/entities/user.entity.ts
|
|
436
484
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
437
485
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -450,37 +498,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
450
498
|
var User = class extends BaseEntity {
|
|
451
499
|
};
|
|
452
500
|
__decorateClass([
|
|
453
|
-
(0,
|
|
501
|
+
(0, import_typeorm5.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
454
502
|
], User.prototype, "uniqueId", 2);
|
|
455
503
|
__decorateClass([
|
|
456
|
-
(0,
|
|
504
|
+
(0, import_typeorm5.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
457
505
|
], User.prototype, "username", 2);
|
|
458
506
|
__decorateClass([
|
|
459
|
-
(0,
|
|
507
|
+
(0, import_typeorm5.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
460
508
|
], User.prototype, "firstName", 2);
|
|
461
509
|
__decorateClass([
|
|
462
|
-
(0,
|
|
510
|
+
(0, import_typeorm5.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
463
511
|
], User.prototype, "lastName", 2);
|
|
464
512
|
__decorateClass([
|
|
465
|
-
(0,
|
|
513
|
+
(0, import_typeorm5.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
466
514
|
], User.prototype, "dateOfBirth", 2);
|
|
467
515
|
__decorateClass([
|
|
468
|
-
(0,
|
|
516
|
+
(0, import_typeorm5.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
469
517
|
], User.prototype, "gender", 2);
|
|
470
518
|
__decorateClass([
|
|
471
|
-
(0,
|
|
519
|
+
(0, import_typeorm5.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
472
520
|
], User.prototype, "profilePictureUrl", 2);
|
|
473
521
|
__decorateClass([
|
|
474
|
-
(0,
|
|
522
|
+
(0, import_typeorm5.Column)({ name: "email", type: "varchar", unique: true })
|
|
475
523
|
], User.prototype, "email", 2);
|
|
476
524
|
__decorateClass([
|
|
477
|
-
(0,
|
|
525
|
+
(0, import_typeorm5.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
478
526
|
], User.prototype, "mobile", 2);
|
|
479
527
|
__decorateClass([
|
|
480
|
-
(0,
|
|
528
|
+
(0, import_typeorm5.Column)({ name: "password", type: "varchar" })
|
|
481
529
|
], User.prototype, "password", 2);
|
|
482
530
|
__decorateClass([
|
|
483
|
-
(0,
|
|
531
|
+
(0, import_typeorm5.Column)({
|
|
484
532
|
name: "account_type",
|
|
485
533
|
type: "enum",
|
|
486
534
|
enum: AccountType,
|
|
@@ -488,7 +536,7 @@ __decorateClass([
|
|
|
488
536
|
})
|
|
489
537
|
], User.prototype, "accountType", 2);
|
|
490
538
|
__decorateClass([
|
|
491
|
-
(0,
|
|
539
|
+
(0, import_typeorm5.Column)({
|
|
492
540
|
name: "account_status",
|
|
493
541
|
type: "enum",
|
|
494
542
|
enum: AccountStatus,
|
|
@@ -496,25 +544,28 @@ __decorateClass([
|
|
|
496
544
|
})
|
|
497
545
|
], User.prototype, "accountStatus", 2);
|
|
498
546
|
__decorateClass([
|
|
499
|
-
(0,
|
|
547
|
+
(0, import_typeorm5.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
500
548
|
], User.prototype, "isEmailVerified", 2);
|
|
501
549
|
__decorateClass([
|
|
502
|
-
(0,
|
|
550
|
+
(0, import_typeorm5.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
503
551
|
], User.prototype, "isMobileVerified", 2);
|
|
504
552
|
__decorateClass([
|
|
505
|
-
(0,
|
|
553
|
+
(0, import_typeorm5.Column)({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
506
554
|
], User.prototype, "lastLoginAt", 2);
|
|
507
555
|
__decorateClass([
|
|
508
|
-
(0,
|
|
556
|
+
(0, import_typeorm5.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
509
557
|
], User.prototype, "lastLoginIp", 2);
|
|
510
558
|
__decorateClass([
|
|
511
|
-
(0,
|
|
559
|
+
(0, import_typeorm5.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
512
560
|
], User.prototype, "refreshTokens", 2);
|
|
513
561
|
__decorateClass([
|
|
514
|
-
(0,
|
|
562
|
+
(0, import_typeorm5.OneToMany)(() => Otp, (otp) => otp.user)
|
|
563
|
+
], User.prototype, "otps", 2);
|
|
564
|
+
__decorateClass([
|
|
565
|
+
(0, import_typeorm5.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
515
566
|
], User.prototype, "resumeParserLogs", 2);
|
|
516
567
|
User = __decorateClass([
|
|
517
|
-
(0,
|
|
568
|
+
(0, import_typeorm5.Entity)("users")
|
|
518
569
|
], User);
|
|
519
570
|
// Annotate the CommonJS export names for ESM import in node:
|
|
520
571
|
0 && (module.exports = {
|
|
@@ -527,6 +578,7 @@ User = __decorateClass([
|
|
|
527
578
|
JobTCPAdapter,
|
|
528
579
|
LoginDto,
|
|
529
580
|
LogoutDto,
|
|
581
|
+
Otp,
|
|
530
582
|
RESUME_PARSER_PATTERN,
|
|
531
583
|
RefreshDto,
|
|
532
584
|
RefreshToken,
|
package/dist/index.mjs
CHANGED
|
@@ -333,7 +333,7 @@ __decorateClass([
|
|
|
333
333
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
334
334
|
|
|
335
335
|
// src/entities/user.entity.ts
|
|
336
|
-
import { Entity as
|
|
336
|
+
import { Entity as Entity4, Column as Column5, OneToMany } from "typeorm";
|
|
337
337
|
|
|
338
338
|
// src/entities/refresh-token.entity.ts
|
|
339
339
|
import {
|
|
@@ -422,6 +422,61 @@ ResumeParserLog = __decorateClass([
|
|
|
422
422
|
Entity2("resume_parser_logs")
|
|
423
423
|
], ResumeParserLog);
|
|
424
424
|
|
|
425
|
+
// src/entities/otp.entity.ts
|
|
426
|
+
import {
|
|
427
|
+
Entity as Entity3,
|
|
428
|
+
PrimaryGeneratedColumn as PrimaryGeneratedColumn4,
|
|
429
|
+
Column as Column4,
|
|
430
|
+
CreateDateColumn as CreateDateColumn4,
|
|
431
|
+
ManyToOne as ManyToOne3,
|
|
432
|
+
JoinColumn as JoinColumn3,
|
|
433
|
+
Index
|
|
434
|
+
} from "typeorm";
|
|
435
|
+
var Otp = class {
|
|
436
|
+
};
|
|
437
|
+
__decorateClass([
|
|
438
|
+
PrimaryGeneratedColumn4("increment", { type: "integer" })
|
|
439
|
+
], Otp.prototype, "id", 2);
|
|
440
|
+
// individual index to find OTPs by user
|
|
441
|
+
__decorateClass([
|
|
442
|
+
Column4({ name: "user_id", type: "integer", nullable: true }),
|
|
443
|
+
Index()
|
|
444
|
+
], Otp.prototype, "userId", 2);
|
|
445
|
+
__decorateClass([
|
|
446
|
+
Column4({ name: "otp", type: "varchar", length: 4 }),
|
|
447
|
+
Index()
|
|
448
|
+
], Otp.prototype, "otp", 2);
|
|
449
|
+
__decorateClass([
|
|
450
|
+
Column4({ name: "otp_purpose", type: "varchar", length: 50 })
|
|
451
|
+
], Otp.prototype, "otpPurpose", 2);
|
|
452
|
+
__decorateClass([
|
|
453
|
+
Column4({ name: "target", type: "varchar", nullable: true }),
|
|
454
|
+
Index()
|
|
455
|
+
], Otp.prototype, "target", 2);
|
|
456
|
+
// support expiration checks
|
|
457
|
+
__decorateClass([
|
|
458
|
+
Column4({ name: "expire_at", type: "timestamp" }),
|
|
459
|
+
Index()
|
|
460
|
+
], Otp.prototype, "expiresAt", 2);
|
|
461
|
+
__decorateClass([
|
|
462
|
+
Column4({ name: "is_used", type: "boolean", default: false }),
|
|
463
|
+
Index()
|
|
464
|
+
], Otp.prototype, "isUsed", 2);
|
|
465
|
+
__decorateClass([
|
|
466
|
+
Column4({ name: "resend_count", type: "int", default: 0 })
|
|
467
|
+
], Otp.prototype, "resendCount", 2);
|
|
468
|
+
__decorateClass([
|
|
469
|
+
CreateDateColumn4({ name: "created_at", type: "timestamp with time zone" })
|
|
470
|
+
], Otp.prototype, "createdAt", 2);
|
|
471
|
+
__decorateClass([
|
|
472
|
+
ManyToOne3(() => User, (user) => user.otps),
|
|
473
|
+
JoinColumn3({ name: "user_id" })
|
|
474
|
+
], Otp.prototype, "user", 2);
|
|
475
|
+
Otp = __decorateClass([
|
|
476
|
+
Entity3("otps"),
|
|
477
|
+
Index(["userId", "otp", "otp_purpose", "is_used"])
|
|
478
|
+
], Otp);
|
|
479
|
+
|
|
425
480
|
// src/entities/user.entity.ts
|
|
426
481
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
427
482
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -440,37 +495,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
440
495
|
var User = class extends BaseEntity {
|
|
441
496
|
};
|
|
442
497
|
__decorateClass([
|
|
443
|
-
|
|
498
|
+
Column5({ name: "unique_id", type: "varchar", unique: true })
|
|
444
499
|
], User.prototype, "uniqueId", 2);
|
|
445
500
|
__decorateClass([
|
|
446
|
-
|
|
501
|
+
Column5({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
447
502
|
], User.prototype, "username", 2);
|
|
448
503
|
__decorateClass([
|
|
449
|
-
|
|
504
|
+
Column5({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
450
505
|
], User.prototype, "firstName", 2);
|
|
451
506
|
__decorateClass([
|
|
452
|
-
|
|
507
|
+
Column5({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
453
508
|
], User.prototype, "lastName", 2);
|
|
454
509
|
__decorateClass([
|
|
455
|
-
|
|
510
|
+
Column5({ name: "date_of_birth", type: "date", nullable: true })
|
|
456
511
|
], User.prototype, "dateOfBirth", 2);
|
|
457
512
|
__decorateClass([
|
|
458
|
-
|
|
513
|
+
Column5({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
459
514
|
], User.prototype, "gender", 2);
|
|
460
515
|
__decorateClass([
|
|
461
|
-
|
|
516
|
+
Column5({ name: "profile_picture_url", type: "text", nullable: true })
|
|
462
517
|
], User.prototype, "profilePictureUrl", 2);
|
|
463
518
|
__decorateClass([
|
|
464
|
-
|
|
519
|
+
Column5({ name: "email", type: "varchar", unique: true })
|
|
465
520
|
], User.prototype, "email", 2);
|
|
466
521
|
__decorateClass([
|
|
467
|
-
|
|
522
|
+
Column5({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
468
523
|
], User.prototype, "mobile", 2);
|
|
469
524
|
__decorateClass([
|
|
470
|
-
|
|
525
|
+
Column5({ name: "password", type: "varchar" })
|
|
471
526
|
], User.prototype, "password", 2);
|
|
472
527
|
__decorateClass([
|
|
473
|
-
|
|
528
|
+
Column5({
|
|
474
529
|
name: "account_type",
|
|
475
530
|
type: "enum",
|
|
476
531
|
enum: AccountType,
|
|
@@ -478,7 +533,7 @@ __decorateClass([
|
|
|
478
533
|
})
|
|
479
534
|
], User.prototype, "accountType", 2);
|
|
480
535
|
__decorateClass([
|
|
481
|
-
|
|
536
|
+
Column5({
|
|
482
537
|
name: "account_status",
|
|
483
538
|
type: "enum",
|
|
484
539
|
enum: AccountStatus,
|
|
@@ -486,25 +541,28 @@ __decorateClass([
|
|
|
486
541
|
})
|
|
487
542
|
], User.prototype, "accountStatus", 2);
|
|
488
543
|
__decorateClass([
|
|
489
|
-
|
|
544
|
+
Column5({ name: "is_email_verified", type: "boolean", default: false })
|
|
490
545
|
], User.prototype, "isEmailVerified", 2);
|
|
491
546
|
__decorateClass([
|
|
492
|
-
|
|
547
|
+
Column5({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
493
548
|
], User.prototype, "isMobileVerified", 2);
|
|
494
549
|
__decorateClass([
|
|
495
|
-
|
|
550
|
+
Column5({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
496
551
|
], User.prototype, "lastLoginAt", 2);
|
|
497
552
|
__decorateClass([
|
|
498
|
-
|
|
553
|
+
Column5({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
499
554
|
], User.prototype, "lastLoginIp", 2);
|
|
500
555
|
__decorateClass([
|
|
501
556
|
OneToMany(() => RefreshToken, (token) => token.user)
|
|
502
557
|
], User.prototype, "refreshTokens", 2);
|
|
558
|
+
__decorateClass([
|
|
559
|
+
OneToMany(() => Otp, (otp) => otp.user)
|
|
560
|
+
], User.prototype, "otps", 2);
|
|
503
561
|
__decorateClass([
|
|
504
562
|
OneToMany(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
505
563
|
], User.prototype, "resumeParserLogs", 2);
|
|
506
564
|
User = __decorateClass([
|
|
507
|
-
|
|
565
|
+
Entity4("users")
|
|
508
566
|
], User);
|
|
509
567
|
export {
|
|
510
568
|
AUTHENTICATION_PATTERN,
|
|
@@ -516,6 +574,7 @@ export {
|
|
|
516
574
|
JobTCPAdapter,
|
|
517
575
|
LoginDto,
|
|
518
576
|
LogoutDto,
|
|
577
|
+
Otp,
|
|
519
578
|
RESUME_PARSER_PATTERN,
|
|
520
579
|
RefreshDto,
|
|
521
580
|
RefreshToken,
|