@experts_hub/shared 1.0.34 → 1.0.35
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/resume-parser-log.entity.d.ts +12 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +60 -19
- package/dist/index.mjs +65 -18
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from './base.entity';
|
|
2
2
|
import { RefreshToken } from './refresh-token.entity';
|
|
3
|
+
import { ResumeParserLog } from './resume-parser-log.entity';
|
|
3
4
|
export declare enum AccountType {
|
|
4
5
|
ADMIN = "ADMIN",
|
|
5
6
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -30,4 +31,5 @@ export declare class User extends BaseEntity {
|
|
|
30
31
|
lastLoginAt: Date;
|
|
31
32
|
lastLoginIp: string;
|
|
32
33
|
refreshTokens: RefreshToken[];
|
|
34
|
+
resumeParserLogs: ResumeParserLog[];
|
|
33
35
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -163,6 +163,18 @@ declare class RefreshToken {
|
|
|
163
163
|
user: User;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
declare class ResumeParserLog {
|
|
167
|
+
id: number;
|
|
168
|
+
userId: number;
|
|
169
|
+
endpoint: string;
|
|
170
|
+
success: boolean;
|
|
171
|
+
request: any;
|
|
172
|
+
response: any;
|
|
173
|
+
errorMessage: string;
|
|
174
|
+
createdAt: Date;
|
|
175
|
+
user: User;
|
|
176
|
+
}
|
|
177
|
+
|
|
166
178
|
declare enum AccountType {
|
|
167
179
|
ADMIN = "ADMIN",
|
|
168
180
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -193,6 +205,7 @@ declare class User extends BaseEntity {
|
|
|
193
205
|
lastLoginAt: Date;
|
|
194
206
|
lastLoginIp: string;
|
|
195
207
|
refreshTokens: RefreshToken[];
|
|
208
|
+
resumeParserLogs: ResumeParserLog[];
|
|
196
209
|
}
|
|
197
210
|
|
|
198
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
211
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,18 @@ declare class RefreshToken {
|
|
|
163
163
|
user: User;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
declare class ResumeParserLog {
|
|
167
|
+
id: number;
|
|
168
|
+
userId: number;
|
|
169
|
+
endpoint: string;
|
|
170
|
+
success: boolean;
|
|
171
|
+
request: any;
|
|
172
|
+
response: any;
|
|
173
|
+
errorMessage: string;
|
|
174
|
+
createdAt: Date;
|
|
175
|
+
user: User;
|
|
176
|
+
}
|
|
177
|
+
|
|
166
178
|
declare enum AccountType {
|
|
167
179
|
ADMIN = "ADMIN",
|
|
168
180
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -193,6 +205,7 @@ declare class User extends BaseEntity {
|
|
|
193
205
|
lastLoginAt: Date;
|
|
194
206
|
lastLoginIp: string;
|
|
195
207
|
refreshTokens: RefreshToken[];
|
|
208
|
+
resumeParserLogs: ResumeParserLog[];
|
|
196
209
|
}
|
|
197
210
|
|
|
198
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
211
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
40
40
|
RefreshDto: () => RefreshDto,
|
|
41
41
|
RefreshToken: () => RefreshToken,
|
|
42
|
+
ResumeParserLog: () => ResumeParserLog,
|
|
42
43
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
43
44
|
ToggleSubAdminVisibilityDto: () => ToggleSubAdminVisibilityDto,
|
|
44
45
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
@@ -351,7 +352,7 @@ __decorateClass([
|
|
|
351
352
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
352
353
|
|
|
353
354
|
// src/entities/user.entity.ts
|
|
354
|
-
var
|
|
355
|
+
var import_typeorm4 = require("typeorm");
|
|
355
356
|
|
|
356
357
|
// src/entities/refresh-token.entity.ts
|
|
357
358
|
var import_typeorm2 = require("typeorm");
|
|
@@ -389,6 +390,42 @@ RefreshToken = __decorateClass([
|
|
|
389
390
|
(0, import_typeorm2.Entity)("refresh_tokens")
|
|
390
391
|
], RefreshToken);
|
|
391
392
|
|
|
393
|
+
// src/entities/resume-parser-log.entity.ts
|
|
394
|
+
var import_typeorm3 = require("typeorm");
|
|
395
|
+
var ResumeParserLog = class {
|
|
396
|
+
};
|
|
397
|
+
__decorateClass([
|
|
398
|
+
(0, import_typeorm3.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
399
|
+
], ResumeParserLog.prototype, "id", 2);
|
|
400
|
+
__decorateClass([
|
|
401
|
+
(0, import_typeorm3.Column)({ name: "user_id", type: "integer", nullable: true })
|
|
402
|
+
], ResumeParserLog.prototype, "userId", 2);
|
|
403
|
+
__decorateClass([
|
|
404
|
+
(0, import_typeorm3.Column)({ name: "end_point", type: "string" })
|
|
405
|
+
], ResumeParserLog.prototype, "endpoint", 2);
|
|
406
|
+
__decorateClass([
|
|
407
|
+
(0, import_typeorm3.Column)({ name: "success", type: "boolean" })
|
|
408
|
+
], ResumeParserLog.prototype, "success", 2);
|
|
409
|
+
__decorateClass([
|
|
410
|
+
(0, import_typeorm3.Column)({ name: "request", type: "jsonb", nullable: true })
|
|
411
|
+
], ResumeParserLog.prototype, "request", 2);
|
|
412
|
+
__decorateClass([
|
|
413
|
+
(0, import_typeorm3.Column)({ name: "response", type: "jsonb", nullable: true })
|
|
414
|
+
], ResumeParserLog.prototype, "response", 2);
|
|
415
|
+
__decorateClass([
|
|
416
|
+
(0, import_typeorm3.Column)({ name: "error_message", type: "text", nullable: true })
|
|
417
|
+
], ResumeParserLog.prototype, "errorMessage", 2);
|
|
418
|
+
__decorateClass([
|
|
419
|
+
(0, import_typeorm3.CreateDateColumn)({ name: "created_at", type: "timestamp with time zone" })
|
|
420
|
+
], ResumeParserLog.prototype, "createdAt", 2);
|
|
421
|
+
__decorateClass([
|
|
422
|
+
(0, import_typeorm3.ManyToOne)(() => User, (user) => user.resumeParserLogs),
|
|
423
|
+
(0, import_typeorm3.JoinColumn)({ name: "user_id" })
|
|
424
|
+
], ResumeParserLog.prototype, "user", 2);
|
|
425
|
+
ResumeParserLog = __decorateClass([
|
|
426
|
+
(0, import_typeorm3.Entity)("resume_parser_logs")
|
|
427
|
+
], ResumeParserLog);
|
|
428
|
+
|
|
392
429
|
// src/entities/user.entity.ts
|
|
393
430
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
394
431
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -407,37 +444,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
407
444
|
var User = class extends BaseEntity {
|
|
408
445
|
};
|
|
409
446
|
__decorateClass([
|
|
410
|
-
(0,
|
|
447
|
+
(0, import_typeorm4.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
411
448
|
], User.prototype, "uniqueId", 2);
|
|
412
449
|
__decorateClass([
|
|
413
|
-
(0,
|
|
450
|
+
(0, import_typeorm4.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
414
451
|
], User.prototype, "username", 2);
|
|
415
452
|
__decorateClass([
|
|
416
|
-
(0,
|
|
453
|
+
(0, import_typeorm4.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
417
454
|
], User.prototype, "firstName", 2);
|
|
418
455
|
__decorateClass([
|
|
419
|
-
(0,
|
|
456
|
+
(0, import_typeorm4.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
420
457
|
], User.prototype, "lastName", 2);
|
|
421
458
|
__decorateClass([
|
|
422
|
-
(0,
|
|
459
|
+
(0, import_typeorm4.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
423
460
|
], User.prototype, "dateOfBirth", 2);
|
|
424
461
|
__decorateClass([
|
|
425
|
-
(0,
|
|
462
|
+
(0, import_typeorm4.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
426
463
|
], User.prototype, "gender", 2);
|
|
427
464
|
__decorateClass([
|
|
428
|
-
(0,
|
|
465
|
+
(0, import_typeorm4.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
429
466
|
], User.prototype, "profilePictureUrl", 2);
|
|
430
467
|
__decorateClass([
|
|
431
|
-
(0,
|
|
468
|
+
(0, import_typeorm4.Column)({ name: "email", type: "varchar", unique: true })
|
|
432
469
|
], User.prototype, "email", 2);
|
|
433
470
|
__decorateClass([
|
|
434
|
-
(0,
|
|
471
|
+
(0, import_typeorm4.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
435
472
|
], User.prototype, "mobile", 2);
|
|
436
473
|
__decorateClass([
|
|
437
|
-
(0,
|
|
474
|
+
(0, import_typeorm4.Column)({ name: "password", type: "varchar" })
|
|
438
475
|
], User.prototype, "password", 2);
|
|
439
476
|
__decorateClass([
|
|
440
|
-
(0,
|
|
477
|
+
(0, import_typeorm4.Column)({
|
|
441
478
|
name: "account_type",
|
|
442
479
|
type: "enum",
|
|
443
480
|
enum: AccountType,
|
|
@@ -445,7 +482,7 @@ __decorateClass([
|
|
|
445
482
|
})
|
|
446
483
|
], User.prototype, "accountType", 2);
|
|
447
484
|
__decorateClass([
|
|
448
|
-
(0,
|
|
485
|
+
(0, import_typeorm4.Column)({
|
|
449
486
|
name: "account_status",
|
|
450
487
|
type: "enum",
|
|
451
488
|
enum: AccountStatus,
|
|
@@ -453,22 +490,25 @@ __decorateClass([
|
|
|
453
490
|
})
|
|
454
491
|
], User.prototype, "accountStatus", 2);
|
|
455
492
|
__decorateClass([
|
|
456
|
-
(0,
|
|
493
|
+
(0, import_typeorm4.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
457
494
|
], User.prototype, "isEmailVerified", 2);
|
|
458
495
|
__decorateClass([
|
|
459
|
-
(0,
|
|
496
|
+
(0, import_typeorm4.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
460
497
|
], User.prototype, "isMobileVerified", 2);
|
|
461
498
|
__decorateClass([
|
|
462
|
-
(0,
|
|
499
|
+
(0, import_typeorm4.Column)({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
463
500
|
], User.prototype, "lastLoginAt", 2);
|
|
464
501
|
__decorateClass([
|
|
465
|
-
(0,
|
|
502
|
+
(0, import_typeorm4.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
466
503
|
], User.prototype, "lastLoginIp", 2);
|
|
467
504
|
__decorateClass([
|
|
468
|
-
(0,
|
|
505
|
+
(0, import_typeorm4.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
469
506
|
], User.prototype, "refreshTokens", 2);
|
|
507
|
+
__decorateClass([
|
|
508
|
+
(0, import_typeorm4.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
509
|
+
], User.prototype, "resumeParserLogs", 2);
|
|
470
510
|
User = __decorateClass([
|
|
471
|
-
(0,
|
|
511
|
+
(0, import_typeorm4.Entity)("users")
|
|
472
512
|
], User);
|
|
473
513
|
// Annotate the CommonJS export names for ESM import in node:
|
|
474
514
|
0 && (module.exports = {
|
|
@@ -484,6 +524,7 @@ User = __decorateClass([
|
|
|
484
524
|
RESUME_PARSER_PATTERN,
|
|
485
525
|
RefreshDto,
|
|
486
526
|
RefreshToken,
|
|
527
|
+
ResumeParserLog,
|
|
487
528
|
SUBADMIN_PATTERN,
|
|
488
529
|
ToggleSubAdminVisibilityDto,
|
|
489
530
|
UpdateSubAdminDto,
|
package/dist/index.mjs
CHANGED
|
@@ -327,7 +327,7 @@ __decorateClass([
|
|
|
327
327
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
328
328
|
|
|
329
329
|
// src/entities/user.entity.ts
|
|
330
|
-
import { Entity as
|
|
330
|
+
import { Entity as Entity3, Column as Column4, OneToMany } from "typeorm";
|
|
331
331
|
|
|
332
332
|
// src/entities/refresh-token.entity.ts
|
|
333
333
|
import {
|
|
@@ -373,6 +373,49 @@ RefreshToken = __decorateClass([
|
|
|
373
373
|
Entity("refresh_tokens")
|
|
374
374
|
], RefreshToken);
|
|
375
375
|
|
|
376
|
+
// src/entities/resume-parser-log.entity.ts
|
|
377
|
+
import {
|
|
378
|
+
Entity as Entity2,
|
|
379
|
+
PrimaryGeneratedColumn as PrimaryGeneratedColumn3,
|
|
380
|
+
Column as Column3,
|
|
381
|
+
CreateDateColumn as CreateDateColumn3,
|
|
382
|
+
ManyToOne as ManyToOne2,
|
|
383
|
+
JoinColumn as JoinColumn2
|
|
384
|
+
} from "typeorm";
|
|
385
|
+
var ResumeParserLog = class {
|
|
386
|
+
};
|
|
387
|
+
__decorateClass([
|
|
388
|
+
PrimaryGeneratedColumn3("increment", { type: "integer" })
|
|
389
|
+
], ResumeParserLog.prototype, "id", 2);
|
|
390
|
+
__decorateClass([
|
|
391
|
+
Column3({ name: "user_id", type: "integer", nullable: true })
|
|
392
|
+
], ResumeParserLog.prototype, "userId", 2);
|
|
393
|
+
__decorateClass([
|
|
394
|
+
Column3({ name: "end_point", type: "string" })
|
|
395
|
+
], ResumeParserLog.prototype, "endpoint", 2);
|
|
396
|
+
__decorateClass([
|
|
397
|
+
Column3({ name: "success", type: "boolean" })
|
|
398
|
+
], ResumeParserLog.prototype, "success", 2);
|
|
399
|
+
__decorateClass([
|
|
400
|
+
Column3({ name: "request", type: "jsonb", nullable: true })
|
|
401
|
+
], ResumeParserLog.prototype, "request", 2);
|
|
402
|
+
__decorateClass([
|
|
403
|
+
Column3({ name: "response", type: "jsonb", nullable: true })
|
|
404
|
+
], ResumeParserLog.prototype, "response", 2);
|
|
405
|
+
__decorateClass([
|
|
406
|
+
Column3({ name: "error_message", type: "text", nullable: true })
|
|
407
|
+
], ResumeParserLog.prototype, "errorMessage", 2);
|
|
408
|
+
__decorateClass([
|
|
409
|
+
CreateDateColumn3({ name: "created_at", type: "timestamp with time zone" })
|
|
410
|
+
], ResumeParserLog.prototype, "createdAt", 2);
|
|
411
|
+
__decorateClass([
|
|
412
|
+
ManyToOne2(() => User, (user) => user.resumeParserLogs),
|
|
413
|
+
JoinColumn2({ name: "user_id" })
|
|
414
|
+
], ResumeParserLog.prototype, "user", 2);
|
|
415
|
+
ResumeParserLog = __decorateClass([
|
|
416
|
+
Entity2("resume_parser_logs")
|
|
417
|
+
], ResumeParserLog);
|
|
418
|
+
|
|
376
419
|
// src/entities/user.entity.ts
|
|
377
420
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
378
421
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -391,37 +434,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
391
434
|
var User = class extends BaseEntity {
|
|
392
435
|
};
|
|
393
436
|
__decorateClass([
|
|
394
|
-
|
|
437
|
+
Column4({ name: "unique_id", type: "varchar", unique: true })
|
|
395
438
|
], User.prototype, "uniqueId", 2);
|
|
396
439
|
__decorateClass([
|
|
397
|
-
|
|
440
|
+
Column4({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
398
441
|
], User.prototype, "username", 2);
|
|
399
442
|
__decorateClass([
|
|
400
|
-
|
|
443
|
+
Column4({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
401
444
|
], User.prototype, "firstName", 2);
|
|
402
445
|
__decorateClass([
|
|
403
|
-
|
|
446
|
+
Column4({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
404
447
|
], User.prototype, "lastName", 2);
|
|
405
448
|
__decorateClass([
|
|
406
|
-
|
|
449
|
+
Column4({ name: "date_of_birth", type: "date", nullable: true })
|
|
407
450
|
], User.prototype, "dateOfBirth", 2);
|
|
408
451
|
__decorateClass([
|
|
409
|
-
|
|
452
|
+
Column4({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
410
453
|
], User.prototype, "gender", 2);
|
|
411
454
|
__decorateClass([
|
|
412
|
-
|
|
455
|
+
Column4({ name: "profile_picture_url", type: "text", nullable: true })
|
|
413
456
|
], User.prototype, "profilePictureUrl", 2);
|
|
414
457
|
__decorateClass([
|
|
415
|
-
|
|
458
|
+
Column4({ name: "email", type: "varchar", unique: true })
|
|
416
459
|
], User.prototype, "email", 2);
|
|
417
460
|
__decorateClass([
|
|
418
|
-
|
|
461
|
+
Column4({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
419
462
|
], User.prototype, "mobile", 2);
|
|
420
463
|
__decorateClass([
|
|
421
|
-
|
|
464
|
+
Column4({ name: "password", type: "varchar" })
|
|
422
465
|
], User.prototype, "password", 2);
|
|
423
466
|
__decorateClass([
|
|
424
|
-
|
|
467
|
+
Column4({
|
|
425
468
|
name: "account_type",
|
|
426
469
|
type: "enum",
|
|
427
470
|
enum: AccountType,
|
|
@@ -429,7 +472,7 @@ __decorateClass([
|
|
|
429
472
|
})
|
|
430
473
|
], User.prototype, "accountType", 2);
|
|
431
474
|
__decorateClass([
|
|
432
|
-
|
|
475
|
+
Column4({
|
|
433
476
|
name: "account_status",
|
|
434
477
|
type: "enum",
|
|
435
478
|
enum: AccountStatus,
|
|
@@ -437,22 +480,25 @@ __decorateClass([
|
|
|
437
480
|
})
|
|
438
481
|
], User.prototype, "accountStatus", 2);
|
|
439
482
|
__decorateClass([
|
|
440
|
-
|
|
483
|
+
Column4({ name: "is_email_verified", type: "boolean", default: false })
|
|
441
484
|
], User.prototype, "isEmailVerified", 2);
|
|
442
485
|
__decorateClass([
|
|
443
|
-
|
|
486
|
+
Column4({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
444
487
|
], User.prototype, "isMobileVerified", 2);
|
|
445
488
|
__decorateClass([
|
|
446
|
-
|
|
489
|
+
Column4({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
447
490
|
], User.prototype, "lastLoginAt", 2);
|
|
448
491
|
__decorateClass([
|
|
449
|
-
|
|
492
|
+
Column4({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
450
493
|
], User.prototype, "lastLoginIp", 2);
|
|
451
494
|
__decorateClass([
|
|
452
495
|
OneToMany(() => RefreshToken, (token) => token.user)
|
|
453
496
|
], User.prototype, "refreshTokens", 2);
|
|
497
|
+
__decorateClass([
|
|
498
|
+
OneToMany(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
499
|
+
], User.prototype, "resumeParserLogs", 2);
|
|
454
500
|
User = __decorateClass([
|
|
455
|
-
|
|
501
|
+
Entity3("users")
|
|
456
502
|
], User);
|
|
457
503
|
export {
|
|
458
504
|
AUTHENTICATION_PATTERN,
|
|
@@ -467,6 +513,7 @@ export {
|
|
|
467
513
|
RESUME_PARSER_PATTERN,
|
|
468
514
|
RefreshDto,
|
|
469
515
|
RefreshToken,
|
|
516
|
+
ResumeParserLog,
|
|
470
517
|
SUBADMIN_PATTERN,
|
|
471
518
|
ToggleSubAdminVisibilityDto,
|
|
472
519
|
UpdateSubAdminDto,
|