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