@experts_hub/shared 1.0.200 → 1.0.201
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/assessment-answer.entity.d.ts +19 -0
- package/dist/entities/{assessment-question-option.d.ts → assessment-question-option.entity.d.ts} +2 -0
- package/dist/entities/assessment-question.entity.d.ts +3 -1
- package/dist/entities/index.d.ts +2 -1
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +44 -25
- package/dist/index.d.ts +44 -25
- package/dist/index.js +269 -197
- package/dist/index.mjs +281 -204
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
AccountType: () => AccountType,
|
|
34
34
|
AnswerTypeEnum: () => AnswerTypeEnum,
|
|
35
35
|
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
36
|
+
AssessmentAnswer: () => AssessmentAnswer,
|
|
36
37
|
AssessmentStatusEnum: () => AssessmentStatusEnum,
|
|
37
38
|
AssessmetQuestion: () => AssessmetQuestion,
|
|
38
39
|
AssessmetQuestionOption: () => AssessmetQuestionOption,
|
|
@@ -163,6 +164,7 @@ __export(index_exports, {
|
|
|
163
164
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
164
165
|
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
165
166
|
ScopeEnum: () => ScopeEnum,
|
|
167
|
+
SelectedAnswerTypeEnum: () => SelectedAnswerTypeEnum,
|
|
166
168
|
SendGuestOtpDto: () => SendGuestOtpDto,
|
|
167
169
|
SendGuestOtpPurposeEnum: () => SendGuestOtpPurposeEnum,
|
|
168
170
|
SenseloafLog: () => SenseloafLog,
|
|
@@ -1151,10 +1153,10 @@ var RATING_PATTERN = {
|
|
|
1151
1153
|
var import_class_validator35 = require("class-validator");
|
|
1152
1154
|
|
|
1153
1155
|
// src/entities/rating.entity.ts
|
|
1154
|
-
var
|
|
1156
|
+
var import_typeorm32 = require("typeorm");
|
|
1155
1157
|
|
|
1156
1158
|
// src/entities/user.entity.ts
|
|
1157
|
-
var
|
|
1159
|
+
var import_typeorm31 = require("typeorm");
|
|
1158
1160
|
|
|
1159
1161
|
// src/entities/base.entity.ts
|
|
1160
1162
|
var import_typeorm = require("typeorm");
|
|
@@ -2451,6 +2453,139 @@ CompanyMemberRole = __decorateClass([
|
|
|
2451
2453
|
(0, import_typeorm27.Entity)("company_member_roles")
|
|
2452
2454
|
], CompanyMemberRole);
|
|
2453
2455
|
|
|
2456
|
+
// src/entities/assessment-answer.entity.ts
|
|
2457
|
+
var import_typeorm30 = require("typeorm");
|
|
2458
|
+
|
|
2459
|
+
// src/entities/assessment-question.entity.ts
|
|
2460
|
+
var import_typeorm29 = require("typeorm");
|
|
2461
|
+
|
|
2462
|
+
// src/entities/assessment-question-option.entity.ts
|
|
2463
|
+
var import_typeorm28 = require("typeorm");
|
|
2464
|
+
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
2465
|
+
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
2466
|
+
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
2467
|
+
AnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
|
|
2468
|
+
return AnswerTypeEnum2;
|
|
2469
|
+
})(AnswerTypeEnum || {});
|
|
2470
|
+
var AssessmetQuestionOption = class extends BaseEntity {
|
|
2471
|
+
};
|
|
2472
|
+
__decorateClass([
|
|
2473
|
+
(0, import_typeorm28.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
2474
|
+
(0, import_typeorm28.Index)()
|
|
2475
|
+
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
2476
|
+
__decorateClass([
|
|
2477
|
+
(0, import_typeorm28.ManyToOne)(
|
|
2478
|
+
() => AssessmetQuestion,
|
|
2479
|
+
(assessmentQuestion) => assessmentQuestion.options
|
|
2480
|
+
),
|
|
2481
|
+
(0, import_typeorm28.JoinColumn)({ name: "question_id" })
|
|
2482
|
+
], AssessmetQuestionOption.prototype, "question", 2);
|
|
2483
|
+
__decorateClass([
|
|
2484
|
+
(0, import_typeorm28.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2485
|
+
], AssessmetQuestionOption.prototype, "text", 2);
|
|
2486
|
+
__decorateClass([
|
|
2487
|
+
(0, import_typeorm28.Column)({
|
|
2488
|
+
name: "answer_type",
|
|
2489
|
+
type: "enum",
|
|
2490
|
+
enum: AnswerTypeEnum,
|
|
2491
|
+
default: "ELIMINATE" /* ELIMINATE */
|
|
2492
|
+
})
|
|
2493
|
+
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
2494
|
+
__decorateClass([
|
|
2495
|
+
(0, import_typeorm28.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2496
|
+
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
2497
|
+
__decorateClass([
|
|
2498
|
+
(0, import_typeorm28.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
2499
|
+
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
2500
|
+
AssessmetQuestionOption = __decorateClass([
|
|
2501
|
+
(0, import_typeorm28.Entity)("assessment_question_options")
|
|
2502
|
+
], AssessmetQuestionOption);
|
|
2503
|
+
|
|
2504
|
+
// src/entities/assessment-question.entity.ts
|
|
2505
|
+
var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
2506
|
+
QuestionForEnum2["ASSESSMENT"] = "ASSESSMENT";
|
|
2507
|
+
QuestionForEnum2["INTERVIEW"] = "INTERVIEW";
|
|
2508
|
+
return QuestionForEnum2;
|
|
2509
|
+
})(QuestionForEnum || {});
|
|
2510
|
+
var AssessmetQuestion = class extends BaseEntity {
|
|
2511
|
+
};
|
|
2512
|
+
__decorateClass([
|
|
2513
|
+
(0, import_typeorm29.Column)({ name: "text", type: "varchar", nullable: true })
|
|
2514
|
+
], AssessmetQuestion.prototype, "text", 2);
|
|
2515
|
+
__decorateClass([
|
|
2516
|
+
(0, import_typeorm29.Column)({
|
|
2517
|
+
name: "question_for",
|
|
2518
|
+
type: "enum",
|
|
2519
|
+
enum: QuestionForEnum,
|
|
2520
|
+
nullable: true
|
|
2521
|
+
})
|
|
2522
|
+
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
2523
|
+
__decorateClass([
|
|
2524
|
+
(0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2525
|
+
], AssessmetQuestion.prototype, "isActive", 2);
|
|
2526
|
+
__decorateClass([
|
|
2527
|
+
(0, import_typeorm29.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
2528
|
+
], AssessmetQuestion.prototype, "options", 2);
|
|
2529
|
+
__decorateClass([
|
|
2530
|
+
(0, import_typeorm29.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
2531
|
+
], AssessmetQuestion.prototype, "answers", 2);
|
|
2532
|
+
AssessmetQuestion = __decorateClass([
|
|
2533
|
+
(0, import_typeorm29.Entity)("assessment_questions")
|
|
2534
|
+
], AssessmetQuestion);
|
|
2535
|
+
|
|
2536
|
+
// src/entities/assessment-answer.entity.ts
|
|
2537
|
+
var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
2538
|
+
SelectedAnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
2539
|
+
SelectedAnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
2540
|
+
SelectedAnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
|
|
2541
|
+
return SelectedAnswerTypeEnum2;
|
|
2542
|
+
})(SelectedAnswerTypeEnum || {});
|
|
2543
|
+
var AssessmentAnswer = class extends BaseEntity {
|
|
2544
|
+
};
|
|
2545
|
+
__decorateClass([
|
|
2546
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer" }),
|
|
2547
|
+
(0, import_typeorm30.Index)()
|
|
2548
|
+
], AssessmentAnswer.prototype, "userId", 2);
|
|
2549
|
+
__decorateClass([
|
|
2550
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
2551
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
2552
|
+
], AssessmentAnswer.prototype, "user", 2);
|
|
2553
|
+
__decorateClass([
|
|
2554
|
+
(0, import_typeorm30.Column)({ name: "question_id", type: "integer" }),
|
|
2555
|
+
(0, import_typeorm30.Index)()
|
|
2556
|
+
], AssessmentAnswer.prototype, "questionId", 2);
|
|
2557
|
+
__decorateClass([
|
|
2558
|
+
(0, import_typeorm30.ManyToOne)(
|
|
2559
|
+
() => AssessmetQuestion,
|
|
2560
|
+
(assessmentQuestion) => assessmentQuestion.answers
|
|
2561
|
+
),
|
|
2562
|
+
(0, import_typeorm30.JoinColumn)({ name: "question_id" })
|
|
2563
|
+
], AssessmentAnswer.prototype, "question", 2);
|
|
2564
|
+
__decorateClass([
|
|
2565
|
+
(0, import_typeorm30.Column)({ name: "selected_option_id", type: "integer" }),
|
|
2566
|
+
(0, import_typeorm30.Index)()
|
|
2567
|
+
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
(0, import_typeorm30.ManyToOne)(
|
|
2570
|
+
() => AssessmetQuestionOption,
|
|
2571
|
+
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
2572
|
+
),
|
|
2573
|
+
(0, import_typeorm30.JoinColumn)({ name: "selected_option_id" })
|
|
2574
|
+
], AssessmentAnswer.prototype, "option", 2);
|
|
2575
|
+
__decorateClass([
|
|
2576
|
+
(0, import_typeorm30.Column)({
|
|
2577
|
+
name: "selected_answer_type",
|
|
2578
|
+
type: "enum",
|
|
2579
|
+
enum: SelectedAnswerTypeEnum
|
|
2580
|
+
})
|
|
2581
|
+
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
2582
|
+
__decorateClass([
|
|
2583
|
+
(0, import_typeorm30.Column)({ name: "score", type: "integer" })
|
|
2584
|
+
], AssessmentAnswer.prototype, "score", 2);
|
|
2585
|
+
AssessmentAnswer = __decorateClass([
|
|
2586
|
+
(0, import_typeorm30.Entity)("assessment_answers")
|
|
2587
|
+
], AssessmentAnswer);
|
|
2588
|
+
|
|
2454
2589
|
// src/entities/user.entity.ts
|
|
2455
2590
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2456
2591
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2476,51 +2611,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2476
2611
|
var User = class extends BaseEntity {
|
|
2477
2612
|
};
|
|
2478
2613
|
__decorateClass([
|
|
2479
|
-
(0,
|
|
2614
|
+
(0, import_typeorm31.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2480
2615
|
], User.prototype, "uniqueId", 2);
|
|
2481
2616
|
__decorateClass([
|
|
2482
|
-
(0,
|
|
2483
|
-
(0,
|
|
2617
|
+
(0, import_typeorm31.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2618
|
+
(0, import_typeorm31.Index)()
|
|
2484
2619
|
], User.prototype, "parentId", 2);
|
|
2485
2620
|
__decorateClass([
|
|
2486
|
-
(0,
|
|
2487
|
-
(0,
|
|
2621
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2622
|
+
(0, import_typeorm31.JoinColumn)({ name: "parent_id" })
|
|
2488
2623
|
], User.prototype, "parent", 2);
|
|
2489
2624
|
__decorateClass([
|
|
2490
|
-
(0,
|
|
2625
|
+
(0, import_typeorm31.OneToMany)(() => User, (user) => user.parent)
|
|
2491
2626
|
], User.prototype, "children", 2);
|
|
2492
2627
|
__decorateClass([
|
|
2493
|
-
(0,
|
|
2628
|
+
(0, import_typeorm31.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2494
2629
|
], User.prototype, "username", 2);
|
|
2495
2630
|
__decorateClass([
|
|
2496
|
-
(0,
|
|
2631
|
+
(0, import_typeorm31.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2497
2632
|
], User.prototype, "firstName", 2);
|
|
2498
2633
|
__decorateClass([
|
|
2499
|
-
(0,
|
|
2634
|
+
(0, import_typeorm31.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2500
2635
|
], User.prototype, "lastName", 2);
|
|
2501
2636
|
__decorateClass([
|
|
2502
|
-
(0,
|
|
2637
|
+
(0, import_typeorm31.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2503
2638
|
], User.prototype, "dateOfBirth", 2);
|
|
2504
2639
|
__decorateClass([
|
|
2505
|
-
(0,
|
|
2640
|
+
(0, import_typeorm31.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2506
2641
|
], User.prototype, "gender", 2);
|
|
2507
2642
|
__decorateClass([
|
|
2508
|
-
(0,
|
|
2643
|
+
(0, import_typeorm31.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2509
2644
|
], User.prototype, "profilePictureUrl", 2);
|
|
2510
2645
|
__decorateClass([
|
|
2511
|
-
(0,
|
|
2646
|
+
(0, import_typeorm31.Column)({ name: "email", type: "varchar", unique: true })
|
|
2512
2647
|
], User.prototype, "email", 2);
|
|
2513
2648
|
__decorateClass([
|
|
2514
|
-
(0,
|
|
2649
|
+
(0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2515
2650
|
], User.prototype, "mobileCode", 2);
|
|
2516
2651
|
__decorateClass([
|
|
2517
|
-
(0,
|
|
2652
|
+
(0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
2518
2653
|
], User.prototype, "mobile", 2);
|
|
2519
2654
|
__decorateClass([
|
|
2520
|
-
(0,
|
|
2655
|
+
(0, import_typeorm31.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2521
2656
|
], User.prototype, "password", 2);
|
|
2522
2657
|
__decorateClass([
|
|
2523
|
-
(0,
|
|
2658
|
+
(0, import_typeorm31.Column)({
|
|
2524
2659
|
name: "account_type",
|
|
2525
2660
|
type: "enum",
|
|
2526
2661
|
enum: AccountType,
|
|
@@ -2528,7 +2663,7 @@ __decorateClass([
|
|
|
2528
2663
|
})
|
|
2529
2664
|
], User.prototype, "accountType", 2);
|
|
2530
2665
|
__decorateClass([
|
|
2531
|
-
(0,
|
|
2666
|
+
(0, import_typeorm31.Column)({
|
|
2532
2667
|
name: "account_status",
|
|
2533
2668
|
type: "enum",
|
|
2534
2669
|
enum: AccountStatus,
|
|
@@ -2536,36 +2671,36 @@ __decorateClass([
|
|
|
2536
2671
|
})
|
|
2537
2672
|
], User.prototype, "accountStatus", 2);
|
|
2538
2673
|
__decorateClass([
|
|
2539
|
-
(0,
|
|
2674
|
+
(0, import_typeorm31.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2540
2675
|
], User.prototype, "isEmailVerified", 2);
|
|
2541
2676
|
__decorateClass([
|
|
2542
|
-
(0,
|
|
2677
|
+
(0, import_typeorm31.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2543
2678
|
], User.prototype, "isMobileVerified", 2);
|
|
2544
2679
|
__decorateClass([
|
|
2545
|
-
(0,
|
|
2680
|
+
(0, import_typeorm31.Column)({
|
|
2546
2681
|
name: "last_login_at",
|
|
2547
2682
|
type: "timestamp with time zone",
|
|
2548
2683
|
nullable: true
|
|
2549
2684
|
})
|
|
2550
2685
|
], User.prototype, "lastLoginAt", 2);
|
|
2551
2686
|
__decorateClass([
|
|
2552
|
-
(0,
|
|
2687
|
+
(0, import_typeorm31.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2553
2688
|
], User.prototype, "lastLoginIp", 2);
|
|
2554
2689
|
__decorateClass([
|
|
2555
|
-
(0,
|
|
2690
|
+
(0, import_typeorm31.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2556
2691
|
], User.prototype, "resetToken", 2);
|
|
2557
2692
|
__decorateClass([
|
|
2558
|
-
(0,
|
|
2693
|
+
(0, import_typeorm31.Column)({
|
|
2559
2694
|
name: "reset_token_expire_at",
|
|
2560
2695
|
type: "timestamp with time zone",
|
|
2561
2696
|
nullable: true
|
|
2562
2697
|
})
|
|
2563
2698
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2564
2699
|
__decorateClass([
|
|
2565
|
-
(0,
|
|
2700
|
+
(0, import_typeorm31.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2566
2701
|
], User.prototype, "refreshTokens", 2);
|
|
2567
2702
|
__decorateClass([
|
|
2568
|
-
(0,
|
|
2703
|
+
(0, import_typeorm31.Column)({
|
|
2569
2704
|
name: "provider",
|
|
2570
2705
|
type: "enum",
|
|
2571
2706
|
enum: Provider,
|
|
@@ -2574,111 +2709,117 @@ __decorateClass([
|
|
|
2574
2709
|
})
|
|
2575
2710
|
], User.prototype, "provider", 2);
|
|
2576
2711
|
__decorateClass([
|
|
2577
|
-
(0,
|
|
2712
|
+
(0, import_typeorm31.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2578
2713
|
], User.prototype, "providerToken", 2);
|
|
2579
2714
|
__decorateClass([
|
|
2580
|
-
(0,
|
|
2715
|
+
(0, import_typeorm31.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2581
2716
|
], User.prototype, "linkedInId", 2);
|
|
2582
2717
|
__decorateClass([
|
|
2583
|
-
(0,
|
|
2718
|
+
(0, import_typeorm31.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2584
2719
|
], User.prototype, "googleId", 2);
|
|
2585
2720
|
__decorateClass([
|
|
2586
|
-
(0,
|
|
2721
|
+
(0, import_typeorm31.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2587
2722
|
], User.prototype, "gitLabsId", 2);
|
|
2588
2723
|
__decorateClass([
|
|
2589
|
-
(0,
|
|
2724
|
+
(0, import_typeorm31.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2590
2725
|
], User.prototype, "otps", 2);
|
|
2591
2726
|
__decorateClass([
|
|
2592
|
-
(0,
|
|
2727
|
+
(0, import_typeorm31.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2593
2728
|
], User.prototype, "senseloafLogs", 2);
|
|
2594
2729
|
__decorateClass([
|
|
2595
|
-
(0,
|
|
2730
|
+
(0, import_typeorm31.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
2596
2731
|
], User.prototype, "freelancerProfile", 2);
|
|
2597
2732
|
__decorateClass([
|
|
2598
|
-
(0,
|
|
2733
|
+
(0, import_typeorm31.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
2599
2734
|
cascade: true
|
|
2600
2735
|
})
|
|
2601
2736
|
], User.prototype, "companyProfile", 2);
|
|
2602
2737
|
__decorateClass([
|
|
2603
|
-
(0,
|
|
2738
|
+
(0, import_typeorm31.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
2604
2739
|
], User.prototype, "companyMemberRoles", 2);
|
|
2605
2740
|
__decorateClass([
|
|
2606
|
-
(0,
|
|
2741
|
+
(0, import_typeorm31.OneToMany)(
|
|
2607
2742
|
() => FreelancerAssessment,
|
|
2608
2743
|
(freelancerAssessment) => freelancerAssessment.user
|
|
2609
2744
|
)
|
|
2610
2745
|
], User.prototype, "assessments", 2);
|
|
2611
2746
|
__decorateClass([
|
|
2612
|
-
(0,
|
|
2747
|
+
(0, import_typeorm31.OneToMany)(
|
|
2748
|
+
() => AssessmentAnswer,
|
|
2749
|
+
(assessmentAnswer) => assessmentAnswer.user
|
|
2750
|
+
)
|
|
2751
|
+
], User.prototype, "assessmentAnswers", 2);
|
|
2752
|
+
__decorateClass([
|
|
2753
|
+
(0, import_typeorm31.OneToMany)(() => Job, (job) => job.user)
|
|
2613
2754
|
], User.prototype, "jobs", 2);
|
|
2614
2755
|
__decorateClass([
|
|
2615
|
-
(0,
|
|
2756
|
+
(0, import_typeorm31.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2616
2757
|
], User.prototype, "interviews", 2);
|
|
2617
2758
|
__decorateClass([
|
|
2618
|
-
(0,
|
|
2759
|
+
(0, import_typeorm31.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2619
2760
|
], User.prototype, "bankDetail", 2);
|
|
2620
2761
|
__decorateClass([
|
|
2621
|
-
(0,
|
|
2762
|
+
(0, import_typeorm31.OneToMany)(
|
|
2622
2763
|
() => SystemPreference,
|
|
2623
2764
|
(systemPreference) => systemPreference.user
|
|
2624
2765
|
)
|
|
2625
2766
|
], User.prototype, "systemPreference", 2);
|
|
2626
2767
|
__decorateClass([
|
|
2627
|
-
(0,
|
|
2768
|
+
(0, import_typeorm31.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2628
2769
|
], User.prototype, "givenRatings", 2);
|
|
2629
2770
|
__decorateClass([
|
|
2630
|
-
(0,
|
|
2771
|
+
(0, import_typeorm31.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2631
2772
|
], User.prototype, "receivedRatings", 2);
|
|
2632
2773
|
__decorateClass([
|
|
2633
|
-
(0,
|
|
2774
|
+
(0, import_typeorm31.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2634
2775
|
], User.prototype, "jobApplications", 2);
|
|
2635
2776
|
__decorateClass([
|
|
2636
|
-
(0,
|
|
2777
|
+
(0, import_typeorm31.OneToOne)(
|
|
2637
2778
|
() => FreelancerExperience,
|
|
2638
2779
|
(freelancerExperience) => freelancerExperience.user
|
|
2639
2780
|
)
|
|
2640
2781
|
], User.prototype, "freelancerExperience", 2);
|
|
2641
2782
|
__decorateClass([
|
|
2642
|
-
(0,
|
|
2783
|
+
(0, import_typeorm31.OneToOne)(
|
|
2643
2784
|
() => FreelancerEducation,
|
|
2644
2785
|
(freelancerEducation) => freelancerEducation.user
|
|
2645
2786
|
)
|
|
2646
2787
|
], User.prototype, "freelancerEducation", 2);
|
|
2647
2788
|
__decorateClass([
|
|
2648
|
-
(0,
|
|
2789
|
+
(0, import_typeorm31.OneToOne)(
|
|
2649
2790
|
() => FreelancerProject,
|
|
2650
2791
|
(freelancerProject) => freelancerProject.user
|
|
2651
2792
|
)
|
|
2652
2793
|
], User.prototype, "freelancerProject", 2);
|
|
2653
2794
|
__decorateClass([
|
|
2654
|
-
(0,
|
|
2795
|
+
(0, import_typeorm31.OneToOne)(
|
|
2655
2796
|
() => FreelancerCaseStudy,
|
|
2656
2797
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
2657
2798
|
)
|
|
2658
2799
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2659
2800
|
__decorateClass([
|
|
2660
|
-
(0,
|
|
2801
|
+
(0, import_typeorm31.OneToOne)(
|
|
2661
2802
|
() => FreelancerCoreSkill,
|
|
2662
2803
|
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
2663
2804
|
)
|
|
2664
2805
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2665
2806
|
__decorateClass([
|
|
2666
|
-
(0,
|
|
2807
|
+
(0, import_typeorm31.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2667
2808
|
], User.prototype, "freelancerTool", 2);
|
|
2668
2809
|
__decorateClass([
|
|
2669
|
-
(0,
|
|
2810
|
+
(0, import_typeorm31.OneToOne)(
|
|
2670
2811
|
() => FreelancerFramework,
|
|
2671
2812
|
(freelancerFramework) => freelancerFramework.user
|
|
2672
2813
|
)
|
|
2673
2814
|
], User.prototype, "freelancerFramework", 2);
|
|
2674
2815
|
__decorateClass([
|
|
2675
|
-
(0,
|
|
2816
|
+
(0, import_typeorm31.OneToOne)(
|
|
2676
2817
|
() => FreelancerDeclaration,
|
|
2677
2818
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
2678
2819
|
)
|
|
2679
2820
|
], User.prototype, "freelancerDeclaration", 2);
|
|
2680
2821
|
User = __decorateClass([
|
|
2681
|
-
(0,
|
|
2822
|
+
(0, import_typeorm31.Entity)("users")
|
|
2682
2823
|
], User);
|
|
2683
2824
|
|
|
2684
2825
|
// src/entities/rating.entity.ts
|
|
@@ -2690,36 +2831,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2690
2831
|
var Rating = class extends BaseEntity {
|
|
2691
2832
|
};
|
|
2692
2833
|
__decorateClass([
|
|
2693
|
-
(0,
|
|
2694
|
-
(0,
|
|
2834
|
+
(0, import_typeorm32.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2835
|
+
(0, import_typeorm32.Index)()
|
|
2695
2836
|
], Rating.prototype, "reviewer_id", 2);
|
|
2696
2837
|
__decorateClass([
|
|
2697
|
-
(0,
|
|
2698
|
-
(0,
|
|
2838
|
+
(0, import_typeorm32.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2839
|
+
(0, import_typeorm32.JoinColumn)({ name: "reviewer_id" })
|
|
2699
2840
|
], Rating.prototype, "reviewer", 2);
|
|
2700
2841
|
__decorateClass([
|
|
2701
|
-
(0,
|
|
2702
|
-
(0,
|
|
2842
|
+
(0, import_typeorm32.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2843
|
+
(0, import_typeorm32.Index)()
|
|
2703
2844
|
], Rating.prototype, "reviewee_id", 2);
|
|
2704
2845
|
__decorateClass([
|
|
2705
|
-
(0,
|
|
2706
|
-
(0,
|
|
2846
|
+
(0, import_typeorm32.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2847
|
+
(0, import_typeorm32.JoinColumn)({ name: "reviewee_id" })
|
|
2707
2848
|
], Rating.prototype, "reviewee", 2);
|
|
2708
2849
|
__decorateClass([
|
|
2709
|
-
(0,
|
|
2850
|
+
(0, import_typeorm32.Column)({
|
|
2710
2851
|
type: "enum",
|
|
2711
2852
|
enum: RatingTypeEnum,
|
|
2712
2853
|
nullable: true
|
|
2713
2854
|
})
|
|
2714
2855
|
], Rating.prototype, "ratingType", 2);
|
|
2715
2856
|
__decorateClass([
|
|
2716
|
-
(0,
|
|
2857
|
+
(0, import_typeorm32.Column)({ type: "integer", nullable: true })
|
|
2717
2858
|
], Rating.prototype, "rating", 2);
|
|
2718
2859
|
__decorateClass([
|
|
2719
|
-
(0,
|
|
2860
|
+
(0, import_typeorm32.Column)({ type: "text", nullable: true })
|
|
2720
2861
|
], Rating.prototype, "review", 2);
|
|
2721
2862
|
Rating = __decorateClass([
|
|
2722
|
-
(0,
|
|
2863
|
+
(0, import_typeorm32.Entity)("ratings")
|
|
2723
2864
|
], Rating);
|
|
2724
2865
|
|
|
2725
2866
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3507,7 +3648,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3507
3648
|
};
|
|
3508
3649
|
|
|
3509
3650
|
// src/entities/question.entity.ts
|
|
3510
|
-
var
|
|
3651
|
+
var import_typeorm33 = require("typeorm");
|
|
3511
3652
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3512
3653
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3513
3654
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3516,16 +3657,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3516
3657
|
var Question = class extends BaseEntity {
|
|
3517
3658
|
};
|
|
3518
3659
|
__decorateClass([
|
|
3519
|
-
(0,
|
|
3660
|
+
(0, import_typeorm33.Column)({ name: "question", type: "varchar" })
|
|
3520
3661
|
], Question.prototype, "question", 2);
|
|
3521
3662
|
__decorateClass([
|
|
3522
|
-
(0,
|
|
3663
|
+
(0, import_typeorm33.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
3523
3664
|
], Question.prototype, "hint", 2);
|
|
3524
3665
|
__decorateClass([
|
|
3525
|
-
(0,
|
|
3666
|
+
(0, import_typeorm33.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3526
3667
|
], Question.prototype, "slug", 2);
|
|
3527
3668
|
__decorateClass([
|
|
3528
|
-
(0,
|
|
3669
|
+
(0, import_typeorm33.Column)({
|
|
3529
3670
|
name: "question_for",
|
|
3530
3671
|
type: "enum",
|
|
3531
3672
|
enum: QuestionFor,
|
|
@@ -3533,110 +3674,110 @@ __decorateClass([
|
|
|
3533
3674
|
})
|
|
3534
3675
|
], Question.prototype, "questionFor", 2);
|
|
3535
3676
|
__decorateClass([
|
|
3536
|
-
(0,
|
|
3677
|
+
(0, import_typeorm33.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3537
3678
|
], Question.prototype, "type", 2);
|
|
3538
3679
|
__decorateClass([
|
|
3539
|
-
(0,
|
|
3680
|
+
(0, import_typeorm33.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3540
3681
|
], Question.prototype, "options", 2);
|
|
3541
3682
|
__decorateClass([
|
|
3542
|
-
(0,
|
|
3683
|
+
(0, import_typeorm33.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3543
3684
|
], Question.prototype, "isActive", 2);
|
|
3544
3685
|
Question = __decorateClass([
|
|
3545
|
-
(0,
|
|
3686
|
+
(0, import_typeorm33.Entity)("questions")
|
|
3546
3687
|
], Question);
|
|
3547
3688
|
|
|
3548
3689
|
// src/entities/job-role.entity.ts
|
|
3549
|
-
var
|
|
3690
|
+
var import_typeorm34 = require("typeorm");
|
|
3550
3691
|
var JobRoles = class extends BaseEntity {
|
|
3551
3692
|
};
|
|
3552
3693
|
__decorateClass([
|
|
3553
|
-
(0,
|
|
3694
|
+
(0, import_typeorm34.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3554
3695
|
], JobRoles.prototype, "slug", 2);
|
|
3555
3696
|
__decorateClass([
|
|
3556
|
-
(0,
|
|
3697
|
+
(0, import_typeorm34.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3557
3698
|
], JobRoles.prototype, "name", 2);
|
|
3558
3699
|
__decorateClass([
|
|
3559
|
-
(0,
|
|
3700
|
+
(0, import_typeorm34.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3560
3701
|
], JobRoles.prototype, "isActive", 2);
|
|
3561
3702
|
JobRoles = __decorateClass([
|
|
3562
|
-
(0,
|
|
3703
|
+
(0, import_typeorm34.Entity)("job_roles")
|
|
3563
3704
|
], JobRoles);
|
|
3564
3705
|
|
|
3565
3706
|
// src/entities/plan.entity.ts
|
|
3566
|
-
var
|
|
3707
|
+
var import_typeorm36 = require("typeorm");
|
|
3567
3708
|
|
|
3568
3709
|
// src/entities/feature.entity.ts
|
|
3569
|
-
var
|
|
3710
|
+
var import_typeorm35 = require("typeorm");
|
|
3570
3711
|
var Feature = class extends BaseEntity {
|
|
3571
3712
|
};
|
|
3572
3713
|
__decorateClass([
|
|
3573
|
-
(0,
|
|
3714
|
+
(0, import_typeorm35.Column)({ name: "name", type: "varchar", unique: true })
|
|
3574
3715
|
], Feature.prototype, "name", 2);
|
|
3575
3716
|
__decorateClass([
|
|
3576
|
-
(0,
|
|
3717
|
+
(0, import_typeorm35.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3577
3718
|
], Feature.prototype, "plans", 2);
|
|
3578
3719
|
Feature = __decorateClass([
|
|
3579
|
-
(0,
|
|
3720
|
+
(0, import_typeorm35.Entity)("features")
|
|
3580
3721
|
], Feature);
|
|
3581
3722
|
|
|
3582
3723
|
// src/entities/plan.entity.ts
|
|
3583
3724
|
var Plan = class extends BaseEntity {
|
|
3584
3725
|
};
|
|
3585
3726
|
__decorateClass([
|
|
3586
|
-
(0,
|
|
3727
|
+
(0, import_typeorm36.Column)({ name: "name", type: "varchar", unique: true })
|
|
3587
3728
|
], Plan.prototype, "name", 2);
|
|
3588
3729
|
__decorateClass([
|
|
3589
|
-
(0,
|
|
3730
|
+
(0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3590
3731
|
], Plan.prototype, "description", 2);
|
|
3591
3732
|
__decorateClass([
|
|
3592
|
-
(0,
|
|
3733
|
+
(0, import_typeorm36.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3593
3734
|
], Plan.prototype, "price", 2);
|
|
3594
3735
|
__decorateClass([
|
|
3595
|
-
(0,
|
|
3736
|
+
(0, import_typeorm36.Column)({ name: "billing_period", type: "varchar" })
|
|
3596
3737
|
], Plan.prototype, "billingPeriod", 2);
|
|
3597
3738
|
__decorateClass([
|
|
3598
|
-
(0,
|
|
3739
|
+
(0, import_typeorm36.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3599
3740
|
], Plan.prototype, "isCurrent", 2);
|
|
3600
3741
|
__decorateClass([
|
|
3601
|
-
(0,
|
|
3602
|
-
(0,
|
|
3742
|
+
(0, import_typeorm36.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3743
|
+
(0, import_typeorm36.JoinTable)()
|
|
3603
3744
|
], Plan.prototype, "features", 2);
|
|
3604
3745
|
Plan = __decorateClass([
|
|
3605
|
-
(0,
|
|
3746
|
+
(0, import_typeorm36.Entity)("plans")
|
|
3606
3747
|
], Plan);
|
|
3607
3748
|
|
|
3608
3749
|
// src/entities/cms.entity.ts
|
|
3609
|
-
var
|
|
3750
|
+
var import_typeorm37 = require("typeorm");
|
|
3610
3751
|
var Cms = class extends BaseEntity {
|
|
3611
3752
|
};
|
|
3612
3753
|
__decorateClass([
|
|
3613
|
-
(0,
|
|
3754
|
+
(0, import_typeorm37.Column)({ name: "title", type: "varchar", nullable: true })
|
|
3614
3755
|
], Cms.prototype, "title", 2);
|
|
3615
3756
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3757
|
+
(0, import_typeorm37.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3617
3758
|
], Cms.prototype, "slug", 2);
|
|
3618
3759
|
__decorateClass([
|
|
3619
|
-
(0,
|
|
3760
|
+
(0, import_typeorm37.Column)({ name: "content", type: "varchar", nullable: true })
|
|
3620
3761
|
], Cms.prototype, "content", 2);
|
|
3621
3762
|
__decorateClass([
|
|
3622
|
-
(0,
|
|
3763
|
+
(0, import_typeorm37.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3623
3764
|
], Cms.prototype, "isActive", 2);
|
|
3624
3765
|
Cms = __decorateClass([
|
|
3625
|
-
(0,
|
|
3766
|
+
(0, import_typeorm37.Entity)("cms")
|
|
3626
3767
|
], Cms);
|
|
3627
3768
|
|
|
3628
3769
|
// src/entities/country.entity.ts
|
|
3629
|
-
var
|
|
3770
|
+
var import_typeorm40 = require("typeorm");
|
|
3630
3771
|
|
|
3631
3772
|
// src/entities/state.entity.ts
|
|
3632
|
-
var
|
|
3773
|
+
var import_typeorm39 = require("typeorm");
|
|
3633
3774
|
|
|
3634
3775
|
// src/entities/city.entity.ts
|
|
3635
|
-
var
|
|
3776
|
+
var import_typeorm38 = require("typeorm");
|
|
3636
3777
|
var City = class extends BaseEntity {
|
|
3637
3778
|
};
|
|
3638
3779
|
__decorateClass([
|
|
3639
|
-
(0,
|
|
3780
|
+
(0, import_typeorm38.Column)({
|
|
3640
3781
|
name: "country_id",
|
|
3641
3782
|
type: "int",
|
|
3642
3783
|
nullable: true,
|
|
@@ -3644,11 +3785,11 @@ __decorateClass([
|
|
|
3644
3785
|
})
|
|
3645
3786
|
], City.prototype, "countryId", 2);
|
|
3646
3787
|
__decorateClass([
|
|
3647
|
-
(0,
|
|
3648
|
-
(0,
|
|
3788
|
+
(0, import_typeorm38.ManyToOne)(() => Country),
|
|
3789
|
+
(0, import_typeorm38.JoinColumn)({ name: "country_id" })
|
|
3649
3790
|
], City.prototype, "country", 2);
|
|
3650
3791
|
__decorateClass([
|
|
3651
|
-
(0,
|
|
3792
|
+
(0, import_typeorm38.Column)({
|
|
3652
3793
|
name: "state_id",
|
|
3653
3794
|
type: "int",
|
|
3654
3795
|
nullable: false,
|
|
@@ -3656,11 +3797,11 @@ __decorateClass([
|
|
|
3656
3797
|
})
|
|
3657
3798
|
], City.prototype, "stateId", 2);
|
|
3658
3799
|
__decorateClass([
|
|
3659
|
-
(0,
|
|
3660
|
-
(0,
|
|
3800
|
+
(0, import_typeorm38.ManyToOne)(() => State, (state) => state.cities),
|
|
3801
|
+
(0, import_typeorm38.JoinColumn)({ name: "state_id" })
|
|
3661
3802
|
], City.prototype, "state", 2);
|
|
3662
3803
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3804
|
+
(0, import_typeorm38.Column)({
|
|
3664
3805
|
name: "city_code",
|
|
3665
3806
|
type: "varchar",
|
|
3666
3807
|
length: 100,
|
|
@@ -3670,7 +3811,7 @@ __decorateClass([
|
|
|
3670
3811
|
})
|
|
3671
3812
|
], City.prototype, "cityCode", 2);
|
|
3672
3813
|
__decorateClass([
|
|
3673
|
-
(0,
|
|
3814
|
+
(0, import_typeorm38.Column)({
|
|
3674
3815
|
name: "city_name",
|
|
3675
3816
|
type: "varchar",
|
|
3676
3817
|
length: 100,
|
|
@@ -3679,7 +3820,7 @@ __decorateClass([
|
|
|
3679
3820
|
})
|
|
3680
3821
|
], City.prototype, "cityName", 2);
|
|
3681
3822
|
__decorateClass([
|
|
3682
|
-
(0,
|
|
3823
|
+
(0, import_typeorm38.Column)({
|
|
3683
3824
|
name: "is_active",
|
|
3684
3825
|
type: "boolean",
|
|
3685
3826
|
default: true,
|
|
@@ -3687,14 +3828,14 @@ __decorateClass([
|
|
|
3687
3828
|
})
|
|
3688
3829
|
], City.prototype, "isActive", 2);
|
|
3689
3830
|
City = __decorateClass([
|
|
3690
|
-
(0,
|
|
3831
|
+
(0, import_typeorm38.Entity)("cities")
|
|
3691
3832
|
], City);
|
|
3692
3833
|
|
|
3693
3834
|
// src/entities/state.entity.ts
|
|
3694
3835
|
var State = class extends BaseEntity {
|
|
3695
3836
|
};
|
|
3696
3837
|
__decorateClass([
|
|
3697
|
-
(0,
|
|
3838
|
+
(0, import_typeorm39.Column)({
|
|
3698
3839
|
name: "country_id",
|
|
3699
3840
|
type: "int",
|
|
3700
3841
|
nullable: false,
|
|
@@ -3702,14 +3843,14 @@ __decorateClass([
|
|
|
3702
3843
|
})
|
|
3703
3844
|
], State.prototype, "countryId", 2);
|
|
3704
3845
|
__decorateClass([
|
|
3705
|
-
(0,
|
|
3706
|
-
(0,
|
|
3846
|
+
(0, import_typeorm39.ManyToOne)(() => Country, (country) => country.states),
|
|
3847
|
+
(0, import_typeorm39.JoinColumn)({ name: "country_id" })
|
|
3707
3848
|
], State.prototype, "country", 2);
|
|
3708
3849
|
__decorateClass([
|
|
3709
|
-
(0,
|
|
3850
|
+
(0, import_typeorm39.OneToMany)(() => City, (city) => city.state)
|
|
3710
3851
|
], State.prototype, "cities", 2);
|
|
3711
3852
|
__decorateClass([
|
|
3712
|
-
(0,
|
|
3853
|
+
(0, import_typeorm39.Column)({
|
|
3713
3854
|
name: "state_name",
|
|
3714
3855
|
type: "varchar",
|
|
3715
3856
|
length: 100,
|
|
@@ -3718,7 +3859,7 @@ __decorateClass([
|
|
|
3718
3859
|
})
|
|
3719
3860
|
], State.prototype, "stateName", 2);
|
|
3720
3861
|
__decorateClass([
|
|
3721
|
-
(0,
|
|
3862
|
+
(0, import_typeorm39.Column)({
|
|
3722
3863
|
name: "is_active",
|
|
3723
3864
|
type: "boolean",
|
|
3724
3865
|
default: true,
|
|
@@ -3726,17 +3867,17 @@ __decorateClass([
|
|
|
3726
3867
|
})
|
|
3727
3868
|
], State.prototype, "isActive", 2);
|
|
3728
3869
|
State = __decorateClass([
|
|
3729
|
-
(0,
|
|
3870
|
+
(0, import_typeorm39.Entity)("states")
|
|
3730
3871
|
], State);
|
|
3731
3872
|
|
|
3732
3873
|
// src/entities/country.entity.ts
|
|
3733
3874
|
var Country = class extends BaseEntity {
|
|
3734
3875
|
};
|
|
3735
3876
|
__decorateClass([
|
|
3736
|
-
(0,
|
|
3877
|
+
(0, import_typeorm40.OneToMany)(() => State, (state) => state.country)
|
|
3737
3878
|
], Country.prototype, "states", 2);
|
|
3738
3879
|
__decorateClass([
|
|
3739
|
-
(0,
|
|
3880
|
+
(0, import_typeorm40.Column)({
|
|
3740
3881
|
name: "country_name",
|
|
3741
3882
|
type: "varchar",
|
|
3742
3883
|
length: 100,
|
|
@@ -3746,7 +3887,7 @@ __decorateClass([
|
|
|
3746
3887
|
})
|
|
3747
3888
|
], Country.prototype, "countryName", 2);
|
|
3748
3889
|
__decorateClass([
|
|
3749
|
-
(0,
|
|
3890
|
+
(0, import_typeorm40.Column)({
|
|
3750
3891
|
name: "country_iso_code",
|
|
3751
3892
|
type: "varchar",
|
|
3752
3893
|
length: 2,
|
|
@@ -3757,7 +3898,7 @@ __decorateClass([
|
|
|
3757
3898
|
})
|
|
3758
3899
|
], Country.prototype, "countryIsoCode", 2);
|
|
3759
3900
|
__decorateClass([
|
|
3760
|
-
(0,
|
|
3901
|
+
(0, import_typeorm40.Column)({
|
|
3761
3902
|
name: "country_phone_code",
|
|
3762
3903
|
type: "varchar",
|
|
3763
3904
|
length: 10,
|
|
@@ -3766,7 +3907,7 @@ __decorateClass([
|
|
|
3766
3907
|
})
|
|
3767
3908
|
], Country.prototype, "countryPhoneCode", 2);
|
|
3768
3909
|
__decorateClass([
|
|
3769
|
-
(0,
|
|
3910
|
+
(0, import_typeorm40.Column)({
|
|
3770
3911
|
name: "currency",
|
|
3771
3912
|
type: "varchar",
|
|
3772
3913
|
length: 3,
|
|
@@ -3775,7 +3916,7 @@ __decorateClass([
|
|
|
3775
3916
|
})
|
|
3776
3917
|
], Country.prototype, "currency", 2);
|
|
3777
3918
|
__decorateClass([
|
|
3778
|
-
(0,
|
|
3919
|
+
(0, import_typeorm40.Column)({
|
|
3779
3920
|
name: "is_active",
|
|
3780
3921
|
type: "boolean",
|
|
3781
3922
|
default: true,
|
|
@@ -3783,79 +3924,8 @@ __decorateClass([
|
|
|
3783
3924
|
})
|
|
3784
3925
|
], Country.prototype, "isActive", 2);
|
|
3785
3926
|
Country = __decorateClass([
|
|
3786
|
-
(0,
|
|
3927
|
+
(0, import_typeorm40.Entity)("countries")
|
|
3787
3928
|
], Country);
|
|
3788
|
-
|
|
3789
|
-
// src/entities/assessment-question.entity.ts
|
|
3790
|
-
var import_typeorm39 = require("typeorm");
|
|
3791
|
-
|
|
3792
|
-
// src/entities/assessment-question-option.ts
|
|
3793
|
-
var import_typeorm38 = require("typeorm");
|
|
3794
|
-
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3795
|
-
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
3796
|
-
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
3797
|
-
AnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
|
|
3798
|
-
return AnswerTypeEnum2;
|
|
3799
|
-
})(AnswerTypeEnum || {});
|
|
3800
|
-
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3801
|
-
};
|
|
3802
|
-
__decorateClass([
|
|
3803
|
-
(0, import_typeorm38.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
3804
|
-
(0, import_typeorm38.Index)()
|
|
3805
|
-
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3806
|
-
__decorateClass([
|
|
3807
|
-
(0, import_typeorm38.ManyToOne)(
|
|
3808
|
-
() => AssessmetQuestion,
|
|
3809
|
-
(assessmentQuestion) => assessmentQuestion.options
|
|
3810
|
-
),
|
|
3811
|
-
(0, import_typeorm38.JoinColumn)({ name: "question_id" })
|
|
3812
|
-
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3813
|
-
__decorateClass([
|
|
3814
|
-
(0, import_typeorm38.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3815
|
-
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3816
|
-
__decorateClass([
|
|
3817
|
-
(0, import_typeorm38.Column)({
|
|
3818
|
-
name: "answer_type",
|
|
3819
|
-
type: "enum",
|
|
3820
|
-
enum: AnswerTypeEnum,
|
|
3821
|
-
default: "ELIMINATE" /* ELIMINATE */
|
|
3822
|
-
})
|
|
3823
|
-
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3824
|
-
__decorateClass([
|
|
3825
|
-
(0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3826
|
-
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3827
|
-
AssessmetQuestionOption = __decorateClass([
|
|
3828
|
-
(0, import_typeorm38.Entity)("assessment_question_options")
|
|
3829
|
-
], AssessmetQuestionOption);
|
|
3830
|
-
|
|
3831
|
-
// src/entities/assessment-question.entity.ts
|
|
3832
|
-
var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
3833
|
-
QuestionForEnum2["ASSESSMENT"] = "ASSESSMENT";
|
|
3834
|
-
QuestionForEnum2["INTERVIEW"] = "INTERVIEW";
|
|
3835
|
-
return QuestionForEnum2;
|
|
3836
|
-
})(QuestionForEnum || {});
|
|
3837
|
-
var AssessmetQuestion = class extends BaseEntity {
|
|
3838
|
-
};
|
|
3839
|
-
__decorateClass([
|
|
3840
|
-
(0, import_typeorm39.Column)({ name: "text", type: "varchar", nullable: true })
|
|
3841
|
-
], AssessmetQuestion.prototype, "text", 2);
|
|
3842
|
-
__decorateClass([
|
|
3843
|
-
(0, import_typeorm39.Column)({
|
|
3844
|
-
name: "question_for",
|
|
3845
|
-
type: "enum",
|
|
3846
|
-
enum: QuestionForEnum,
|
|
3847
|
-
nullable: true
|
|
3848
|
-
})
|
|
3849
|
-
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3850
|
-
__decorateClass([
|
|
3851
|
-
(0, import_typeorm39.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3852
|
-
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3853
|
-
__decorateClass([
|
|
3854
|
-
(0, import_typeorm39.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3855
|
-
], AssessmetQuestion.prototype, "options", 2);
|
|
3856
|
-
AssessmetQuestion = __decorateClass([
|
|
3857
|
-
(0, import_typeorm39.Entity)("assessment_questions")
|
|
3858
|
-
], AssessmetQuestion);
|
|
3859
3929
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3860
3930
|
0 && (module.exports = {
|
|
3861
3931
|
ASSESSMENT_QUESTION_PATTERN,
|
|
@@ -3864,6 +3934,7 @@ AssessmetQuestion = __decorateClass([
|
|
|
3864
3934
|
AccountType,
|
|
3865
3935
|
AnswerTypeEnum,
|
|
3866
3936
|
ApplicationStatusEnum,
|
|
3937
|
+
AssessmentAnswer,
|
|
3867
3938
|
AssessmentStatusEnum,
|
|
3868
3939
|
AssessmetQuestion,
|
|
3869
3940
|
AssessmetQuestionOption,
|
|
@@ -3994,6 +4065,7 @@ AssessmetQuestion = __decorateClass([
|
|
|
3994
4065
|
SUBADMIN_PATTERN,
|
|
3995
4066
|
SYSTEM_PREFERENCES_PATTERN,
|
|
3996
4067
|
ScopeEnum,
|
|
4068
|
+
SelectedAnswerTypeEnum,
|
|
3997
4069
|
SendGuestOtpDto,
|
|
3998
4070
|
SendGuestOtpPurposeEnum,
|
|
3999
4071
|
SenseloafLog,
|