@experts_hub/shared 1.0.45 → 1.0.46
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/freelancer-profile.entity.d.ts +9 -0
- package/dist/entities/user.entity.d.ts +7 -4
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +67 -28
- package/dist/index.mjs +73 -28
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { RefreshToken } from
|
|
3
|
-
import { ResumeParserLog } from
|
|
4
|
-
import { Otp } from
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { RefreshToken } from "./refresh-token.entity";
|
|
3
|
+
import { ResumeParserLog } from "./resume-parser-log.entity";
|
|
4
|
+
import { Otp } from "./otp.entity";
|
|
5
|
+
import { FreelancerProfile } from "./freelancer-profile.entity";
|
|
5
6
|
export declare enum AccountType {
|
|
6
7
|
ADMIN = "ADMIN",
|
|
7
8
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -23,6 +24,7 @@ export declare class User extends BaseEntity {
|
|
|
23
24
|
gender: string;
|
|
24
25
|
profilePictureUrl: string;
|
|
25
26
|
email: string;
|
|
27
|
+
mobileCode: string;
|
|
26
28
|
mobile: string;
|
|
27
29
|
password: string;
|
|
28
30
|
accountType: AccountType;
|
|
@@ -34,4 +36,5 @@ export declare class User extends BaseEntity {
|
|
|
34
36
|
refreshTokens: RefreshToken[];
|
|
35
37
|
otps: Otp[];
|
|
36
38
|
resumeParserLogs: ResumeParserLog[];
|
|
39
|
+
freelancerProfile: FreelancerProfile;
|
|
37
40
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -236,6 +236,14 @@ declare class Otp {
|
|
|
236
236
|
user: User;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
declare class FreelancerProfile extends BaseEntity {
|
|
240
|
+
userId: number;
|
|
241
|
+
user: User;
|
|
242
|
+
resumeUrl: string;
|
|
243
|
+
resumeData: string;
|
|
244
|
+
isDeveloper: boolean;
|
|
245
|
+
}
|
|
246
|
+
|
|
239
247
|
declare enum AccountType {
|
|
240
248
|
ADMIN = "ADMIN",
|
|
241
249
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -257,6 +265,7 @@ declare class User extends BaseEntity {
|
|
|
257
265
|
gender: string;
|
|
258
266
|
profilePictureUrl: string;
|
|
259
267
|
email: string;
|
|
268
|
+
mobileCode: string;
|
|
260
269
|
mobile: string;
|
|
261
270
|
password: string;
|
|
262
271
|
accountType: AccountType;
|
|
@@ -268,6 +277,7 @@ declare class User extends BaseEntity {
|
|
|
268
277
|
refreshTokens: RefreshToken[];
|
|
269
278
|
otps: Otp[];
|
|
270
279
|
resumeParserLogs: ResumeParserLog[];
|
|
280
|
+
freelancerProfile: FreelancerProfile;
|
|
271
281
|
}
|
|
272
282
|
|
|
273
283
|
declare enum QuestionFor {
|
package/dist/index.d.ts
CHANGED
|
@@ -236,6 +236,14 @@ declare class Otp {
|
|
|
236
236
|
user: User;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
declare class FreelancerProfile extends BaseEntity {
|
|
240
|
+
userId: number;
|
|
241
|
+
user: User;
|
|
242
|
+
resumeUrl: string;
|
|
243
|
+
resumeData: string;
|
|
244
|
+
isDeveloper: boolean;
|
|
245
|
+
}
|
|
246
|
+
|
|
239
247
|
declare enum AccountType {
|
|
240
248
|
ADMIN = "ADMIN",
|
|
241
249
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -257,6 +265,7 @@ declare class User extends BaseEntity {
|
|
|
257
265
|
gender: string;
|
|
258
266
|
profilePictureUrl: string;
|
|
259
267
|
email: string;
|
|
268
|
+
mobileCode: string;
|
|
260
269
|
mobile: string;
|
|
261
270
|
password: string;
|
|
262
271
|
accountType: AccountType;
|
|
@@ -268,6 +277,7 @@ declare class User extends BaseEntity {
|
|
|
268
277
|
refreshTokens: RefreshToken[];
|
|
269
278
|
otps: Otp[];
|
|
270
279
|
resumeParserLogs: ResumeParserLog[];
|
|
280
|
+
freelancerProfile: FreelancerProfile;
|
|
271
281
|
}
|
|
272
282
|
|
|
273
283
|
declare enum QuestionFor {
|
package/dist/index.js
CHANGED
|
@@ -402,7 +402,7 @@ __decorateClass([
|
|
|
402
402
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
403
403
|
|
|
404
404
|
// src/entities/user.entity.ts
|
|
405
|
-
var
|
|
405
|
+
var import_typeorm6 = require("typeorm");
|
|
406
406
|
|
|
407
407
|
// src/entities/refresh-token.entity.ts
|
|
408
408
|
var import_typeorm2 = require("typeorm");
|
|
@@ -523,6 +523,32 @@ Otp = __decorateClass([
|
|
|
523
523
|
(0, import_typeorm4.Index)(["userId", "otp", "otpPurpose", "isUsed"])
|
|
524
524
|
], Otp);
|
|
525
525
|
|
|
526
|
+
// src/entities/freelancer-profile.entity.ts
|
|
527
|
+
var import_typeorm5 = require("typeorm");
|
|
528
|
+
var FreelancerProfile = class extends BaseEntity {
|
|
529
|
+
};
|
|
530
|
+
// individual index to find profile by user
|
|
531
|
+
__decorateClass([
|
|
532
|
+
(0, import_typeorm5.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
533
|
+
(0, import_typeorm5.Index)()
|
|
534
|
+
], FreelancerProfile.prototype, "userId", 2);
|
|
535
|
+
__decorateClass([
|
|
536
|
+
(0, import_typeorm5.ManyToOne)(() => User, (user) => user.otps),
|
|
537
|
+
(0, import_typeorm5.JoinColumn)({ name: "user_id" })
|
|
538
|
+
], FreelancerProfile.prototype, "user", 2);
|
|
539
|
+
__decorateClass([
|
|
540
|
+
(0, import_typeorm5.Column)({ name: "resume_url", type: "text", nullable: true })
|
|
541
|
+
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
542
|
+
__decorateClass([
|
|
543
|
+
(0, import_typeorm5.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
544
|
+
], FreelancerProfile.prototype, "resumeData", 2);
|
|
545
|
+
__decorateClass([
|
|
546
|
+
(0, import_typeorm5.Column)({ name: "is_developer", type: "boolean", default: false })
|
|
547
|
+
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
548
|
+
FreelancerProfile = __decorateClass([
|
|
549
|
+
(0, import_typeorm5.Entity)("freelancer_profiles")
|
|
550
|
+
], FreelancerProfile);
|
|
551
|
+
|
|
526
552
|
// src/entities/user.entity.ts
|
|
527
553
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
528
554
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -541,37 +567,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
541
567
|
var User = class extends BaseEntity {
|
|
542
568
|
};
|
|
543
569
|
__decorateClass([
|
|
544
|
-
(0,
|
|
570
|
+
(0, import_typeorm6.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
545
571
|
], User.prototype, "uniqueId", 2);
|
|
546
572
|
__decorateClass([
|
|
547
|
-
(0,
|
|
573
|
+
(0, import_typeorm6.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
548
574
|
], User.prototype, "username", 2);
|
|
549
575
|
__decorateClass([
|
|
550
|
-
(0,
|
|
576
|
+
(0, import_typeorm6.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
551
577
|
], User.prototype, "firstName", 2);
|
|
552
578
|
__decorateClass([
|
|
553
|
-
(0,
|
|
579
|
+
(0, import_typeorm6.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
554
580
|
], User.prototype, "lastName", 2);
|
|
555
581
|
__decorateClass([
|
|
556
|
-
(0,
|
|
582
|
+
(0, import_typeorm6.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
557
583
|
], User.prototype, "dateOfBirth", 2);
|
|
558
584
|
__decorateClass([
|
|
559
|
-
(0,
|
|
585
|
+
(0, import_typeorm6.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
560
586
|
], User.prototype, "gender", 2);
|
|
561
587
|
__decorateClass([
|
|
562
|
-
(0,
|
|
588
|
+
(0, import_typeorm6.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
563
589
|
], User.prototype, "profilePictureUrl", 2);
|
|
564
590
|
__decorateClass([
|
|
565
|
-
(0,
|
|
591
|
+
(0, import_typeorm6.Column)({ name: "email", type: "varchar", unique: true })
|
|
566
592
|
], User.prototype, "email", 2);
|
|
567
593
|
__decorateClass([
|
|
568
|
-
(0,
|
|
594
|
+
(0, import_typeorm6.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
595
|
+
], User.prototype, "mobileCode", 2);
|
|
596
|
+
__decorateClass([
|
|
597
|
+
(0, import_typeorm6.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
569
598
|
], User.prototype, "mobile", 2);
|
|
570
599
|
__decorateClass([
|
|
571
|
-
(0,
|
|
600
|
+
(0, import_typeorm6.Column)({ name: "password", type: "varchar" })
|
|
572
601
|
], User.prototype, "password", 2);
|
|
573
602
|
__decorateClass([
|
|
574
|
-
(0,
|
|
603
|
+
(0, import_typeorm6.Column)({
|
|
575
604
|
name: "account_type",
|
|
576
605
|
type: "enum",
|
|
577
606
|
enum: AccountType,
|
|
@@ -579,7 +608,7 @@ __decorateClass([
|
|
|
579
608
|
})
|
|
580
609
|
], User.prototype, "accountType", 2);
|
|
581
610
|
__decorateClass([
|
|
582
|
-
(0,
|
|
611
|
+
(0, import_typeorm6.Column)({
|
|
583
612
|
name: "account_status",
|
|
584
613
|
type: "enum",
|
|
585
614
|
enum: AccountStatus,
|
|
@@ -587,32 +616,42 @@ __decorateClass([
|
|
|
587
616
|
})
|
|
588
617
|
], User.prototype, "accountStatus", 2);
|
|
589
618
|
__decorateClass([
|
|
590
|
-
(0,
|
|
619
|
+
(0, import_typeorm6.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
591
620
|
], User.prototype, "isEmailVerified", 2);
|
|
592
621
|
__decorateClass([
|
|
593
|
-
(0,
|
|
622
|
+
(0, import_typeorm6.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
594
623
|
], User.prototype, "isMobileVerified", 2);
|
|
595
624
|
__decorateClass([
|
|
596
|
-
(0,
|
|
625
|
+
(0, import_typeorm6.Column)({
|
|
626
|
+
name: "last_login_at",
|
|
627
|
+
type: "timestamp with time zone",
|
|
628
|
+
nullable: true
|
|
629
|
+
})
|
|
597
630
|
], User.prototype, "lastLoginAt", 2);
|
|
598
631
|
__decorateClass([
|
|
599
|
-
(0,
|
|
632
|
+
(0, import_typeorm6.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
600
633
|
], User.prototype, "lastLoginIp", 2);
|
|
601
634
|
__decorateClass([
|
|
602
|
-
(0,
|
|
635
|
+
(0, import_typeorm6.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
603
636
|
], User.prototype, "refreshTokens", 2);
|
|
604
637
|
__decorateClass([
|
|
605
|
-
(0,
|
|
638
|
+
(0, import_typeorm6.OneToMany)(() => Otp, (otp) => otp.user)
|
|
606
639
|
], User.prototype, "otps", 2);
|
|
607
640
|
__decorateClass([
|
|
608
|
-
(0,
|
|
641
|
+
(0, import_typeorm6.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
609
642
|
], User.prototype, "resumeParserLogs", 2);
|
|
643
|
+
__decorateClass([
|
|
644
|
+
(0, import_typeorm6.OneToOne)(
|
|
645
|
+
() => FreelancerProfile,
|
|
646
|
+
(freelancerProfile) => freelancerProfile.user
|
|
647
|
+
)
|
|
648
|
+
], User.prototype, "freelancerProfile", 2);
|
|
610
649
|
User = __decorateClass([
|
|
611
|
-
(0,
|
|
650
|
+
(0, import_typeorm6.Entity)("users")
|
|
612
651
|
], User);
|
|
613
652
|
|
|
614
653
|
// src/entities/question.entity.ts
|
|
615
|
-
var
|
|
654
|
+
var import_typeorm7 = require("typeorm");
|
|
616
655
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
617
656
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
618
657
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -621,13 +660,13 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
621
660
|
var Question = class extends BaseEntity {
|
|
622
661
|
};
|
|
623
662
|
__decorateClass([
|
|
624
|
-
(0,
|
|
663
|
+
(0, import_typeorm7.Column)({ name: "question_id", type: "integer" })
|
|
625
664
|
], Question.prototype, "questionId", 2);
|
|
626
665
|
__decorateClass([
|
|
627
|
-
(0,
|
|
666
|
+
(0, import_typeorm7.Column)({ name: "question", type: "varchar", unique: true })
|
|
628
667
|
], Question.prototype, "question", 2);
|
|
629
668
|
__decorateClass([
|
|
630
|
-
(0,
|
|
669
|
+
(0, import_typeorm7.Column)({
|
|
631
670
|
name: "question_for",
|
|
632
671
|
type: "enum",
|
|
633
672
|
enum: QuestionFor,
|
|
@@ -635,13 +674,13 @@ __decorateClass([
|
|
|
635
674
|
})
|
|
636
675
|
], Question.prototype, "questionFor", 2);
|
|
637
676
|
__decorateClass([
|
|
638
|
-
(0,
|
|
677
|
+
(0, import_typeorm7.Column)({ name: "options", type: "varchar", array: true })
|
|
639
678
|
], Question.prototype, "options", 2);
|
|
640
679
|
__decorateClass([
|
|
641
|
-
(0,
|
|
680
|
+
(0, import_typeorm7.Column)({ name: "is_active", type: "boolean", default: false })
|
|
642
681
|
], Question.prototype, "isActive", 2);
|
|
643
682
|
Question = __decorateClass([
|
|
644
|
-
(0,
|
|
683
|
+
(0, import_typeorm7.Entity)("questions")
|
|
645
684
|
], Question);
|
|
646
685
|
// Annotate the CommonJS export names for ESM import in node:
|
|
647
686
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -374,7 +374,7 @@ __decorateClass([
|
|
|
374
374
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
375
375
|
|
|
376
376
|
// src/entities/user.entity.ts
|
|
377
|
-
import { Entity as
|
|
377
|
+
import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2, OneToOne } from "typeorm";
|
|
378
378
|
|
|
379
379
|
// src/entities/refresh-token.entity.ts
|
|
380
380
|
import {
|
|
@@ -518,6 +518,38 @@ Otp = __decorateClass([
|
|
|
518
518
|
Index(["userId", "otp", "otpPurpose", "isUsed"])
|
|
519
519
|
], Otp);
|
|
520
520
|
|
|
521
|
+
// src/entities/freelancer-profile.entity.ts
|
|
522
|
+
import {
|
|
523
|
+
Entity as Entity4,
|
|
524
|
+
Column as Column5,
|
|
525
|
+
Index as Index2,
|
|
526
|
+
ManyToOne as ManyToOne4,
|
|
527
|
+
JoinColumn as JoinColumn4
|
|
528
|
+
} from "typeorm";
|
|
529
|
+
var FreelancerProfile = class extends BaseEntity {
|
|
530
|
+
};
|
|
531
|
+
// individual index to find profile by user
|
|
532
|
+
__decorateClass([
|
|
533
|
+
Column5({ name: "user_id", type: "integer", nullable: true }),
|
|
534
|
+
Index2()
|
|
535
|
+
], FreelancerProfile.prototype, "userId", 2);
|
|
536
|
+
__decorateClass([
|
|
537
|
+
ManyToOne4(() => User, (user) => user.otps),
|
|
538
|
+
JoinColumn4({ name: "user_id" })
|
|
539
|
+
], FreelancerProfile.prototype, "user", 2);
|
|
540
|
+
__decorateClass([
|
|
541
|
+
Column5({ name: "resume_url", type: "text", nullable: true })
|
|
542
|
+
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
543
|
+
__decorateClass([
|
|
544
|
+
Column5({ name: "resume_data", type: "jsonb", nullable: true })
|
|
545
|
+
], FreelancerProfile.prototype, "resumeData", 2);
|
|
546
|
+
__decorateClass([
|
|
547
|
+
Column5({ name: "is_developer", type: "boolean", default: false })
|
|
548
|
+
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
549
|
+
FreelancerProfile = __decorateClass([
|
|
550
|
+
Entity4("freelancer_profiles")
|
|
551
|
+
], FreelancerProfile);
|
|
552
|
+
|
|
521
553
|
// src/entities/user.entity.ts
|
|
522
554
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
523
555
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -536,37 +568,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
536
568
|
var User = class extends BaseEntity {
|
|
537
569
|
};
|
|
538
570
|
__decorateClass([
|
|
539
|
-
|
|
571
|
+
Column6({ name: "unique_id", type: "varchar", unique: true })
|
|
540
572
|
], User.prototype, "uniqueId", 2);
|
|
541
573
|
__decorateClass([
|
|
542
|
-
|
|
574
|
+
Column6({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
543
575
|
], User.prototype, "username", 2);
|
|
544
576
|
__decorateClass([
|
|
545
|
-
|
|
577
|
+
Column6({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
546
578
|
], User.prototype, "firstName", 2);
|
|
547
579
|
__decorateClass([
|
|
548
|
-
|
|
580
|
+
Column6({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
549
581
|
], User.prototype, "lastName", 2);
|
|
550
582
|
__decorateClass([
|
|
551
|
-
|
|
583
|
+
Column6({ name: "date_of_birth", type: "date", nullable: true })
|
|
552
584
|
], User.prototype, "dateOfBirth", 2);
|
|
553
585
|
__decorateClass([
|
|
554
|
-
|
|
586
|
+
Column6({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
555
587
|
], User.prototype, "gender", 2);
|
|
556
588
|
__decorateClass([
|
|
557
|
-
|
|
589
|
+
Column6({ name: "profile_picture_url", type: "text", nullable: true })
|
|
558
590
|
], User.prototype, "profilePictureUrl", 2);
|
|
559
591
|
__decorateClass([
|
|
560
|
-
|
|
592
|
+
Column6({ name: "email", type: "varchar", unique: true })
|
|
561
593
|
], User.prototype, "email", 2);
|
|
562
594
|
__decorateClass([
|
|
563
|
-
|
|
595
|
+
Column6({ name: "mobile_code", type: "varchar", nullable: true })
|
|
596
|
+
], User.prototype, "mobileCode", 2);
|
|
597
|
+
__decorateClass([
|
|
598
|
+
Column6({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
564
599
|
], User.prototype, "mobile", 2);
|
|
565
600
|
__decorateClass([
|
|
566
|
-
|
|
601
|
+
Column6({ name: "password", type: "varchar" })
|
|
567
602
|
], User.prototype, "password", 2);
|
|
568
603
|
__decorateClass([
|
|
569
|
-
|
|
604
|
+
Column6({
|
|
570
605
|
name: "account_type",
|
|
571
606
|
type: "enum",
|
|
572
607
|
enum: AccountType,
|
|
@@ -574,7 +609,7 @@ __decorateClass([
|
|
|
574
609
|
})
|
|
575
610
|
], User.prototype, "accountType", 2);
|
|
576
611
|
__decorateClass([
|
|
577
|
-
|
|
612
|
+
Column6({
|
|
578
613
|
name: "account_status",
|
|
579
614
|
type: "enum",
|
|
580
615
|
enum: AccountStatus,
|
|
@@ -582,32 +617,42 @@ __decorateClass([
|
|
|
582
617
|
})
|
|
583
618
|
], User.prototype, "accountStatus", 2);
|
|
584
619
|
__decorateClass([
|
|
585
|
-
|
|
620
|
+
Column6({ name: "is_email_verified", type: "boolean", default: false })
|
|
586
621
|
], User.prototype, "isEmailVerified", 2);
|
|
587
622
|
__decorateClass([
|
|
588
|
-
|
|
623
|
+
Column6({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
589
624
|
], User.prototype, "isMobileVerified", 2);
|
|
590
625
|
__decorateClass([
|
|
591
|
-
|
|
626
|
+
Column6({
|
|
627
|
+
name: "last_login_at",
|
|
628
|
+
type: "timestamp with time zone",
|
|
629
|
+
nullable: true
|
|
630
|
+
})
|
|
592
631
|
], User.prototype, "lastLoginAt", 2);
|
|
593
632
|
__decorateClass([
|
|
594
|
-
|
|
633
|
+
Column6({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
595
634
|
], User.prototype, "lastLoginIp", 2);
|
|
596
635
|
__decorateClass([
|
|
597
|
-
|
|
636
|
+
OneToMany2(() => RefreshToken, (token) => token.user)
|
|
598
637
|
], User.prototype, "refreshTokens", 2);
|
|
599
638
|
__decorateClass([
|
|
600
|
-
|
|
639
|
+
OneToMany2(() => Otp, (otp) => otp.user)
|
|
601
640
|
], User.prototype, "otps", 2);
|
|
602
641
|
__decorateClass([
|
|
603
|
-
|
|
642
|
+
OneToMany2(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
604
643
|
], User.prototype, "resumeParserLogs", 2);
|
|
644
|
+
__decorateClass([
|
|
645
|
+
OneToOne(
|
|
646
|
+
() => FreelancerProfile,
|
|
647
|
+
(freelancerProfile) => freelancerProfile.user
|
|
648
|
+
)
|
|
649
|
+
], User.prototype, "freelancerProfile", 2);
|
|
605
650
|
User = __decorateClass([
|
|
606
|
-
|
|
651
|
+
Entity5("users")
|
|
607
652
|
], User);
|
|
608
653
|
|
|
609
654
|
// src/entities/question.entity.ts
|
|
610
|
-
import { Entity as
|
|
655
|
+
import { Entity as Entity6, Column as Column7 } from "typeorm";
|
|
611
656
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
612
657
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
613
658
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -616,13 +661,13 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
616
661
|
var Question = class extends BaseEntity {
|
|
617
662
|
};
|
|
618
663
|
__decorateClass([
|
|
619
|
-
|
|
664
|
+
Column7({ name: "question_id", type: "integer" })
|
|
620
665
|
], Question.prototype, "questionId", 2);
|
|
621
666
|
__decorateClass([
|
|
622
|
-
|
|
667
|
+
Column7({ name: "question", type: "varchar", unique: true })
|
|
623
668
|
], Question.prototype, "question", 2);
|
|
624
669
|
__decorateClass([
|
|
625
|
-
|
|
670
|
+
Column7({
|
|
626
671
|
name: "question_for",
|
|
627
672
|
type: "enum",
|
|
628
673
|
enum: QuestionFor,
|
|
@@ -630,13 +675,13 @@ __decorateClass([
|
|
|
630
675
|
})
|
|
631
676
|
], Question.prototype, "questionFor", 2);
|
|
632
677
|
__decorateClass([
|
|
633
|
-
|
|
678
|
+
Column7({ name: "options", type: "varchar", array: true })
|
|
634
679
|
], Question.prototype, "options", 2);
|
|
635
680
|
__decorateClass([
|
|
636
|
-
|
|
681
|
+
Column7({ name: "is_active", type: "boolean", default: false })
|
|
637
682
|
], Question.prototype, "isActive", 2);
|
|
638
683
|
Question = __decorateClass([
|
|
639
|
-
|
|
684
|
+
Entity6("questions")
|
|
640
685
|
], Question);
|
|
641
686
|
export {
|
|
642
687
|
AUTHENTICATION_PATTERN,
|