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