@experts_hub/shared 1.0.110 → 1.0.112
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/review.entity.d.ts +15 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +142 -79
- package/dist/index.mjs +135 -73
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from "./user.entity";
|
|
2
|
+
import { BaseEntity } from "./base.entity";
|
|
3
|
+
export declare enum RatingTypeEnum {
|
|
4
|
+
FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
|
|
5
|
+
CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
|
|
6
|
+
}
|
|
7
|
+
export declare class Rating extends BaseEntity {
|
|
8
|
+
reviewer_id: number;
|
|
9
|
+
reviewer: User;
|
|
10
|
+
reviewee_id: number;
|
|
11
|
+
reviewee: User;
|
|
12
|
+
ratingType: RatingTypeEnum;
|
|
13
|
+
rating: number;
|
|
14
|
+
review: string;
|
|
15
|
+
}
|
|
@@ -7,6 +7,7 @@ import { CompanyProfile } from "./company-profile.entity";
|
|
|
7
7
|
import { Job } from "./job-entity";
|
|
8
8
|
import { BankDetail } from "./bank-details.entity";
|
|
9
9
|
import { SystemPreference } from "./system-preference.entity";
|
|
10
|
+
import { Rating } from "./review.entity";
|
|
10
11
|
export declare enum AccountType {
|
|
11
12
|
ADMIN = "ADMIN",
|
|
12
13
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -57,4 +58,6 @@ export declare class User extends BaseEntity {
|
|
|
57
58
|
jobs: Job[];
|
|
58
59
|
bankDetail: BankDetail[];
|
|
59
60
|
systemPreference: SystemPreference[];
|
|
61
|
+
givenRatings: Rating[];
|
|
62
|
+
receivedRatings: Rating[];
|
|
60
63
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -418,6 +418,20 @@ declare class SystemPreference extends BaseEntity {
|
|
|
418
418
|
value: boolean;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
declare enum RatingTypeEnum {
|
|
422
|
+
FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
|
|
423
|
+
CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
|
|
424
|
+
}
|
|
425
|
+
declare class Rating extends BaseEntity {
|
|
426
|
+
reviewer_id: number;
|
|
427
|
+
reviewer: User;
|
|
428
|
+
reviewee_id: number;
|
|
429
|
+
reviewee: User;
|
|
430
|
+
ratingType: RatingTypeEnum;
|
|
431
|
+
rating: number;
|
|
432
|
+
review: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
421
435
|
declare enum AccountType {
|
|
422
436
|
ADMIN = "ADMIN",
|
|
423
437
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -468,6 +482,8 @@ declare class User extends BaseEntity {
|
|
|
468
482
|
jobs: Job[];
|
|
469
483
|
bankDetail: BankDetail[];
|
|
470
484
|
systemPreference: SystemPreference[];
|
|
485
|
+
givenRatings: Rating[];
|
|
486
|
+
receivedRatings: Rating[];
|
|
471
487
|
}
|
|
472
488
|
|
|
473
489
|
declare enum KindOfHire {
|
|
@@ -732,6 +748,11 @@ declare class SystemPreferenceDto {
|
|
|
732
748
|
key: SystemPreferenceKey;
|
|
733
749
|
}
|
|
734
750
|
|
|
751
|
+
declare const NOTIFICATION_PATTERN: {
|
|
752
|
+
handleAccountVerificationNotification: string;
|
|
753
|
+
handleResetLinkNotification: string;
|
|
754
|
+
};
|
|
755
|
+
|
|
735
756
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
736
757
|
|
|
737
758
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -782,4 +803,4 @@ declare class Plan extends BaseEntity {
|
|
|
782
803
|
features: Feature[];
|
|
783
804
|
}
|
|
784
805
|
|
|
785
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
806
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -418,6 +418,20 @@ declare class SystemPreference extends BaseEntity {
|
|
|
418
418
|
value: boolean;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
declare enum RatingTypeEnum {
|
|
422
|
+
FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
|
|
423
|
+
CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
|
|
424
|
+
}
|
|
425
|
+
declare class Rating extends BaseEntity {
|
|
426
|
+
reviewer_id: number;
|
|
427
|
+
reviewer: User;
|
|
428
|
+
reviewee_id: number;
|
|
429
|
+
reviewee: User;
|
|
430
|
+
ratingType: RatingTypeEnum;
|
|
431
|
+
rating: number;
|
|
432
|
+
review: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
421
435
|
declare enum AccountType {
|
|
422
436
|
ADMIN = "ADMIN",
|
|
423
437
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -468,6 +482,8 @@ declare class User extends BaseEntity {
|
|
|
468
482
|
jobs: Job[];
|
|
469
483
|
bankDetail: BankDetail[];
|
|
470
484
|
systemPreference: SystemPreference[];
|
|
485
|
+
givenRatings: Rating[];
|
|
486
|
+
receivedRatings: Rating[];
|
|
471
487
|
}
|
|
472
488
|
|
|
473
489
|
declare enum KindOfHire {
|
|
@@ -732,6 +748,11 @@ declare class SystemPreferenceDto {
|
|
|
732
748
|
key: SystemPreferenceKey;
|
|
733
749
|
}
|
|
734
750
|
|
|
751
|
+
declare const NOTIFICATION_PATTERN: {
|
|
752
|
+
handleAccountVerificationNotification: string;
|
|
753
|
+
handleResetLinkNotification: string;
|
|
754
|
+
};
|
|
755
|
+
|
|
735
756
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
736
757
|
|
|
737
758
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -782,4 +803,4 @@ declare class Plan extends BaseEntity {
|
|
|
782
803
|
features: Feature[];
|
|
783
804
|
}
|
|
784
805
|
|
|
785
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
806
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __export(index_exports, {
|
|
|
76
76
|
LogoutDto: () => LogoutDto,
|
|
77
77
|
ModeOfHire: () => ModeOfHire,
|
|
78
78
|
ModeOfWork: () => ModeOfWork,
|
|
79
|
+
NOTIFICATION_PATTERN: () => NOTIFICATION_PATTERN,
|
|
79
80
|
NatureOfWork: () => NatureOfWork,
|
|
80
81
|
NotificationRMQAdapter: () => NotificationRMQAdapter,
|
|
81
82
|
NotificationTCPAdapter: () => NotificationTCPAdapter,
|
|
@@ -541,7 +542,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
541
542
|
var import_class_validator17 = require("class-validator");
|
|
542
543
|
|
|
543
544
|
// src/entities/company-profile.entity.ts
|
|
544
|
-
var
|
|
545
|
+
var import_typeorm13 = require("typeorm");
|
|
545
546
|
|
|
546
547
|
// src/entities/base.entity.ts
|
|
547
548
|
var import_typeorm = require("typeorm");
|
|
@@ -581,7 +582,7 @@ __decorateClass([
|
|
|
581
582
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
582
583
|
|
|
583
584
|
// src/entities/user.entity.ts
|
|
584
|
-
var
|
|
585
|
+
var import_typeorm12 = require("typeorm");
|
|
585
586
|
|
|
586
587
|
// src/entities/refresh-token.entity.ts
|
|
587
588
|
var import_typeorm2 = require("typeorm");
|
|
@@ -1068,6 +1069,48 @@ SystemPreference = __decorateClass([
|
|
|
1068
1069
|
(0, import_typeorm10.Entity)("system_preferences")
|
|
1069
1070
|
], SystemPreference);
|
|
1070
1071
|
|
|
1072
|
+
// src/entities/review.entity.ts
|
|
1073
|
+
var import_typeorm11 = require("typeorm");
|
|
1074
|
+
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
1075
|
+
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
1076
|
+
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
1077
|
+
return RatingTypeEnum2;
|
|
1078
|
+
})(RatingTypeEnum || {});
|
|
1079
|
+
var Rating = class extends BaseEntity {
|
|
1080
|
+
};
|
|
1081
|
+
__decorateClass([
|
|
1082
|
+
(0, import_typeorm11.Column)({ name: "reviewer_id", type: "integer" }),
|
|
1083
|
+
(0, import_typeorm11.Index)()
|
|
1084
|
+
], Rating.prototype, "reviewer_id", 2);
|
|
1085
|
+
__decorateClass([
|
|
1086
|
+
(0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
1087
|
+
(0, import_typeorm11.JoinColumn)({ name: "reviewer_id" })
|
|
1088
|
+
], Rating.prototype, "reviewer", 2);
|
|
1089
|
+
__decorateClass([
|
|
1090
|
+
(0, import_typeorm11.Column)({ name: "reviewee_id", type: "integer" }),
|
|
1091
|
+
(0, import_typeorm11.Index)()
|
|
1092
|
+
], Rating.prototype, "reviewee_id", 2);
|
|
1093
|
+
__decorateClass([
|
|
1094
|
+
(0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
1095
|
+
(0, import_typeorm11.JoinColumn)({ name: "reviewee_id" })
|
|
1096
|
+
], Rating.prototype, "reviewee", 2);
|
|
1097
|
+
__decorateClass([
|
|
1098
|
+
(0, import_typeorm11.Column)({
|
|
1099
|
+
type: "enum",
|
|
1100
|
+
enum: RatingTypeEnum,
|
|
1101
|
+
nullable: true
|
|
1102
|
+
})
|
|
1103
|
+
], Rating.prototype, "ratingType", 2);
|
|
1104
|
+
__decorateClass([
|
|
1105
|
+
(0, import_typeorm11.Column)({ type: "integer", nullable: true })
|
|
1106
|
+
], Rating.prototype, "rating", 2);
|
|
1107
|
+
__decorateClass([
|
|
1108
|
+
(0, import_typeorm11.Column)({ type: "text", nullable: true })
|
|
1109
|
+
], Rating.prototype, "review", 2);
|
|
1110
|
+
Rating = __decorateClass([
|
|
1111
|
+
(0, import_typeorm11.Entity)("ratings")
|
|
1112
|
+
], Rating);
|
|
1113
|
+
|
|
1071
1114
|
// src/entities/user.entity.ts
|
|
1072
1115
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1073
1116
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1092,40 +1135,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1092
1135
|
var User = class extends BaseEntity {
|
|
1093
1136
|
};
|
|
1094
1137
|
__decorateClass([
|
|
1095
|
-
(0,
|
|
1138
|
+
(0, import_typeorm12.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1096
1139
|
], User.prototype, "uniqueId", 2);
|
|
1097
1140
|
__decorateClass([
|
|
1098
|
-
(0,
|
|
1141
|
+
(0, import_typeorm12.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1099
1142
|
], User.prototype, "username", 2);
|
|
1100
1143
|
__decorateClass([
|
|
1101
|
-
(0,
|
|
1144
|
+
(0, import_typeorm12.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1102
1145
|
], User.prototype, "firstName", 2);
|
|
1103
1146
|
__decorateClass([
|
|
1104
|
-
(0,
|
|
1147
|
+
(0, import_typeorm12.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1105
1148
|
], User.prototype, "lastName", 2);
|
|
1106
1149
|
__decorateClass([
|
|
1107
|
-
(0,
|
|
1150
|
+
(0, import_typeorm12.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1108
1151
|
], User.prototype, "dateOfBirth", 2);
|
|
1109
1152
|
__decorateClass([
|
|
1110
|
-
(0,
|
|
1153
|
+
(0, import_typeorm12.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1111
1154
|
], User.prototype, "gender", 2);
|
|
1112
1155
|
__decorateClass([
|
|
1113
|
-
(0,
|
|
1156
|
+
(0, import_typeorm12.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1114
1157
|
], User.prototype, "profilePictureUrl", 2);
|
|
1115
1158
|
__decorateClass([
|
|
1116
|
-
(0,
|
|
1159
|
+
(0, import_typeorm12.Column)({ name: "email", type: "varchar", unique: true })
|
|
1117
1160
|
], User.prototype, "email", 2);
|
|
1118
1161
|
__decorateClass([
|
|
1119
|
-
(0,
|
|
1162
|
+
(0, import_typeorm12.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1120
1163
|
], User.prototype, "mobileCode", 2);
|
|
1121
1164
|
__decorateClass([
|
|
1122
|
-
(0,
|
|
1165
|
+
(0, import_typeorm12.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1123
1166
|
], User.prototype, "mobile", 2);
|
|
1124
1167
|
__decorateClass([
|
|
1125
|
-
(0,
|
|
1168
|
+
(0, import_typeorm12.Column)({ name: "password", type: "varchar" })
|
|
1126
1169
|
], User.prototype, "password", 2);
|
|
1127
1170
|
__decorateClass([
|
|
1128
|
-
(0,
|
|
1171
|
+
(0, import_typeorm12.Column)({
|
|
1129
1172
|
name: "account_type",
|
|
1130
1173
|
type: "enum",
|
|
1131
1174
|
enum: AccountType,
|
|
@@ -1133,7 +1176,7 @@ __decorateClass([
|
|
|
1133
1176
|
})
|
|
1134
1177
|
], User.prototype, "accountType", 2);
|
|
1135
1178
|
__decorateClass([
|
|
1136
|
-
(0,
|
|
1179
|
+
(0, import_typeorm12.Column)({
|
|
1137
1180
|
name: "account_status",
|
|
1138
1181
|
type: "enum",
|
|
1139
1182
|
enum: AccountStatus,
|
|
@@ -1141,32 +1184,36 @@ __decorateClass([
|
|
|
1141
1184
|
})
|
|
1142
1185
|
], User.prototype, "accountStatus", 2);
|
|
1143
1186
|
__decorateClass([
|
|
1144
|
-
(0,
|
|
1187
|
+
(0, import_typeorm12.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1145
1188
|
], User.prototype, "isEmailVerified", 2);
|
|
1146
1189
|
__decorateClass([
|
|
1147
|
-
(0,
|
|
1190
|
+
(0, import_typeorm12.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1148
1191
|
], User.prototype, "isMobileVerified", 2);
|
|
1149
1192
|
__decorateClass([
|
|
1150
|
-
(0,
|
|
1193
|
+
(0, import_typeorm12.Column)({
|
|
1151
1194
|
name: "last_login_at",
|
|
1152
1195
|
type: "timestamp with time zone",
|
|
1153
1196
|
nullable: true
|
|
1154
1197
|
})
|
|
1155
1198
|
], User.prototype, "lastLoginAt", 2);
|
|
1156
1199
|
__decorateClass([
|
|
1157
|
-
(0,
|
|
1200
|
+
(0, import_typeorm12.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1158
1201
|
], User.prototype, "lastLoginIp", 2);
|
|
1159
1202
|
__decorateClass([
|
|
1160
|
-
(0,
|
|
1203
|
+
(0, import_typeorm12.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1161
1204
|
], User.prototype, "resetToken", 2);
|
|
1162
1205
|
__decorateClass([
|
|
1163
|
-
(0,
|
|
1206
|
+
(0, import_typeorm12.Column)({
|
|
1207
|
+
name: "reset_token_expire_at",
|
|
1208
|
+
type: "timestamp with time zone",
|
|
1209
|
+
nullable: true
|
|
1210
|
+
})
|
|
1164
1211
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1165
1212
|
__decorateClass([
|
|
1166
|
-
(0,
|
|
1213
|
+
(0, import_typeorm12.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1167
1214
|
], User.prototype, "refreshTokens", 2);
|
|
1168
1215
|
__decorateClass([
|
|
1169
|
-
(0,
|
|
1216
|
+
(0, import_typeorm12.Column)({
|
|
1170
1217
|
name: "provider",
|
|
1171
1218
|
type: "enum",
|
|
1172
1219
|
enum: Provider,
|
|
@@ -1175,43 +1222,52 @@ __decorateClass([
|
|
|
1175
1222
|
})
|
|
1176
1223
|
], User.prototype, "provider", 2);
|
|
1177
1224
|
__decorateClass([
|
|
1178
|
-
(0,
|
|
1225
|
+
(0, import_typeorm12.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1179
1226
|
], User.prototype, "providerToken", 2);
|
|
1180
1227
|
__decorateClass([
|
|
1181
|
-
(0,
|
|
1228
|
+
(0, import_typeorm12.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1182
1229
|
], User.prototype, "linkedInId", 2);
|
|
1183
1230
|
__decorateClass([
|
|
1184
|
-
(0,
|
|
1231
|
+
(0, import_typeorm12.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1185
1232
|
], User.prototype, "googleId", 2);
|
|
1186
1233
|
__decorateClass([
|
|
1187
|
-
(0,
|
|
1234
|
+
(0, import_typeorm12.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1188
1235
|
], User.prototype, "gitLabsId", 2);
|
|
1189
1236
|
__decorateClass([
|
|
1190
|
-
(0,
|
|
1237
|
+
(0, import_typeorm12.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1191
1238
|
], User.prototype, "otps", 2);
|
|
1192
1239
|
__decorateClass([
|
|
1193
|
-
(0,
|
|
1240
|
+
(0, import_typeorm12.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1194
1241
|
], User.prototype, "resumeParserLogs", 2);
|
|
1195
1242
|
__decorateClass([
|
|
1196
|
-
(0,
|
|
1243
|
+
(0, import_typeorm12.OneToOne)(
|
|
1197
1244
|
() => FreelancerProfile,
|
|
1198
1245
|
(freelancerProfile) => freelancerProfile.user
|
|
1199
1246
|
)
|
|
1200
1247
|
], User.prototype, "freelancerProfile", 2);
|
|
1201
1248
|
__decorateClass([
|
|
1202
|
-
(0,
|
|
1249
|
+
(0, import_typeorm12.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1203
1250
|
], User.prototype, "companyProfile", 2);
|
|
1204
1251
|
__decorateClass([
|
|
1205
|
-
(0,
|
|
1252
|
+
(0, import_typeorm12.OneToMany)(() => Job, (job) => job.user)
|
|
1206
1253
|
], User.prototype, "jobs", 2);
|
|
1207
1254
|
__decorateClass([
|
|
1208
|
-
(0,
|
|
1255
|
+
(0, import_typeorm12.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1209
1256
|
], User.prototype, "bankDetail", 2);
|
|
1210
1257
|
__decorateClass([
|
|
1211
|
-
(0,
|
|
1258
|
+
(0, import_typeorm12.OneToMany)(
|
|
1259
|
+
() => SystemPreference,
|
|
1260
|
+
(systemPreference) => systemPreference.user
|
|
1261
|
+
)
|
|
1212
1262
|
], User.prototype, "systemPreference", 2);
|
|
1263
|
+
__decorateClass([
|
|
1264
|
+
(0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
1265
|
+
], User.prototype, "givenRatings", 2);
|
|
1266
|
+
__decorateClass([
|
|
1267
|
+
(0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
1268
|
+
], User.prototype, "receivedRatings", 2);
|
|
1213
1269
|
User = __decorateClass([
|
|
1214
|
-
(0,
|
|
1270
|
+
(0, import_typeorm12.Entity)("users")
|
|
1215
1271
|
], User);
|
|
1216
1272
|
|
|
1217
1273
|
// src/entities/company-profile.entity.ts
|
|
@@ -1238,42 +1294,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1238
1294
|
};
|
|
1239
1295
|
// individual index to find company profile by user
|
|
1240
1296
|
__decorateClass([
|
|
1241
|
-
(0,
|
|
1242
|
-
(0,
|
|
1297
|
+
(0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1298
|
+
(0, import_typeorm13.Index)()
|
|
1243
1299
|
], CompanyProfile.prototype, "userId", 2);
|
|
1244
1300
|
__decorateClass([
|
|
1245
|
-
(0,
|
|
1246
|
-
(0,
|
|
1301
|
+
(0, import_typeorm13.ManyToOne)(() => User, (user) => user.otps),
|
|
1302
|
+
(0, import_typeorm13.JoinColumn)({ name: "user_id" })
|
|
1247
1303
|
], CompanyProfile.prototype, "user", 2);
|
|
1248
1304
|
__decorateClass([
|
|
1249
|
-
(0,
|
|
1305
|
+
(0, import_typeorm13.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1250
1306
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1251
1307
|
__decorateClass([
|
|
1252
|
-
(0,
|
|
1308
|
+
(0, import_typeorm13.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1253
1309
|
], CompanyProfile.prototype, "bio", 2);
|
|
1254
1310
|
__decorateClass([
|
|
1255
|
-
(0,
|
|
1311
|
+
(0, import_typeorm13.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1256
1312
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1257
1313
|
__decorateClass([
|
|
1258
|
-
(0,
|
|
1314
|
+
(0, import_typeorm13.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1259
1315
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1260
1316
|
__decorateClass([
|
|
1261
|
-
(0,
|
|
1317
|
+
(0, import_typeorm13.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1262
1318
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1263
1319
|
__decorateClass([
|
|
1264
|
-
(0,
|
|
1320
|
+
(0, import_typeorm13.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1265
1321
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1266
1322
|
__decorateClass([
|
|
1267
|
-
(0,
|
|
1323
|
+
(0, import_typeorm13.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1268
1324
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1269
1325
|
__decorateClass([
|
|
1270
|
-
(0,
|
|
1326
|
+
(0, import_typeorm13.Column)({ name: "skills", type: "text", nullable: true })
|
|
1271
1327
|
], CompanyProfile.prototype, "skills", 2);
|
|
1272
1328
|
__decorateClass([
|
|
1273
|
-
(0,
|
|
1329
|
+
(0, import_typeorm13.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1274
1330
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1275
1331
|
__decorateClass([
|
|
1276
|
-
(0,
|
|
1332
|
+
(0, import_typeorm13.Column)({
|
|
1277
1333
|
name: "kind_of_hiring",
|
|
1278
1334
|
type: "enum",
|
|
1279
1335
|
enum: KindOfHire,
|
|
@@ -1281,7 +1337,7 @@ __decorateClass([
|
|
|
1281
1337
|
})
|
|
1282
1338
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1283
1339
|
__decorateClass([
|
|
1284
|
-
(0,
|
|
1340
|
+
(0, import_typeorm13.Column)({
|
|
1285
1341
|
name: "mode_of_hire",
|
|
1286
1342
|
type: "enum",
|
|
1287
1343
|
enum: ModeOfHire,
|
|
@@ -1289,7 +1345,7 @@ __decorateClass([
|
|
|
1289
1345
|
})
|
|
1290
1346
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1291
1347
|
__decorateClass([
|
|
1292
|
-
(0,
|
|
1348
|
+
(0, import_typeorm13.Column)({
|
|
1293
1349
|
name: "found_us_on",
|
|
1294
1350
|
type: "enum",
|
|
1295
1351
|
enum: FromUsOn,
|
|
@@ -1297,7 +1353,7 @@ __decorateClass([
|
|
|
1297
1353
|
})
|
|
1298
1354
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1299
1355
|
CompanyProfile = __decorateClass([
|
|
1300
|
-
(0,
|
|
1356
|
+
(0, import_typeorm13.Entity)("company_profiles")
|
|
1301
1357
|
], CompanyProfile);
|
|
1302
1358
|
|
|
1303
1359
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1659,6 +1715,12 @@ __decorateClass([
|
|
|
1659
1715
|
})
|
|
1660
1716
|
], SystemPreferenceDto.prototype, "key", 2);
|
|
1661
1717
|
|
|
1718
|
+
// src/modules/notification/pattern/pattern.ts
|
|
1719
|
+
var NOTIFICATION_PATTERN = {
|
|
1720
|
+
handleAccountVerificationNotification: "handle.account.verification.notification",
|
|
1721
|
+
handleResetLinkNotification: "handle.reset.link.notification"
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1662
1724
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1663
1725
|
var import_dotenv = require("dotenv");
|
|
1664
1726
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1876,7 +1938,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
1876
1938
|
};
|
|
1877
1939
|
|
|
1878
1940
|
// src/entities/question.entity.ts
|
|
1879
|
-
var
|
|
1941
|
+
var import_typeorm14 = require("typeorm");
|
|
1880
1942
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1881
1943
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1882
1944
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1885,16 +1947,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1885
1947
|
var Question = class extends BaseEntity {
|
|
1886
1948
|
};
|
|
1887
1949
|
__decorateClass([
|
|
1888
|
-
(0,
|
|
1950
|
+
(0, import_typeorm14.Column)({ name: "question", type: "varchar" })
|
|
1889
1951
|
], Question.prototype, "question", 2);
|
|
1890
1952
|
__decorateClass([
|
|
1891
|
-
(0,
|
|
1953
|
+
(0, import_typeorm14.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1892
1954
|
], Question.prototype, "hint", 2);
|
|
1893
1955
|
__decorateClass([
|
|
1894
|
-
(0,
|
|
1956
|
+
(0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1895
1957
|
], Question.prototype, "slug", 2);
|
|
1896
1958
|
__decorateClass([
|
|
1897
|
-
(0,
|
|
1959
|
+
(0, import_typeorm14.Column)({
|
|
1898
1960
|
name: "question_for",
|
|
1899
1961
|
type: "enum",
|
|
1900
1962
|
enum: QuestionFor,
|
|
@@ -1902,76 +1964,76 @@ __decorateClass([
|
|
|
1902
1964
|
})
|
|
1903
1965
|
], Question.prototype, "questionFor", 2);
|
|
1904
1966
|
__decorateClass([
|
|
1905
|
-
(0,
|
|
1967
|
+
(0, import_typeorm14.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1906
1968
|
], Question.prototype, "type", 2);
|
|
1907
1969
|
__decorateClass([
|
|
1908
|
-
(0,
|
|
1970
|
+
(0, import_typeorm14.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1909
1971
|
], Question.prototype, "options", 2);
|
|
1910
1972
|
__decorateClass([
|
|
1911
|
-
(0,
|
|
1973
|
+
(0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1912
1974
|
], Question.prototype, "isActive", 2);
|
|
1913
1975
|
Question = __decorateClass([
|
|
1914
|
-
(0,
|
|
1976
|
+
(0, import_typeorm14.Entity)("questions")
|
|
1915
1977
|
], Question);
|
|
1916
1978
|
|
|
1917
1979
|
// src/entities/job-role.entity.ts
|
|
1918
|
-
var
|
|
1980
|
+
var import_typeorm15 = require("typeorm");
|
|
1919
1981
|
var JobRoles = class extends BaseEntity {
|
|
1920
1982
|
};
|
|
1921
1983
|
__decorateClass([
|
|
1922
|
-
(0,
|
|
1984
|
+
(0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1923
1985
|
], JobRoles.prototype, "slug", 2);
|
|
1924
1986
|
__decorateClass([
|
|
1925
|
-
(0,
|
|
1987
|
+
(0, import_typeorm15.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1926
1988
|
], JobRoles.prototype, "name", 2);
|
|
1927
1989
|
__decorateClass([
|
|
1928
|
-
(0,
|
|
1990
|
+
(0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1929
1991
|
], JobRoles.prototype, "isActive", 2);
|
|
1930
1992
|
JobRoles = __decorateClass([
|
|
1931
|
-
(0,
|
|
1993
|
+
(0, import_typeorm15.Entity)("job_roles")
|
|
1932
1994
|
], JobRoles);
|
|
1933
1995
|
|
|
1934
1996
|
// src/entities/plan.entity.ts
|
|
1935
|
-
var
|
|
1997
|
+
var import_typeorm17 = require("typeorm");
|
|
1936
1998
|
|
|
1937
1999
|
// src/entities/feature.entity.ts
|
|
1938
|
-
var
|
|
2000
|
+
var import_typeorm16 = require("typeorm");
|
|
1939
2001
|
var Feature = class extends BaseEntity {
|
|
1940
2002
|
};
|
|
1941
2003
|
__decorateClass([
|
|
1942
|
-
(0,
|
|
2004
|
+
(0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
|
|
1943
2005
|
], Feature.prototype, "name", 2);
|
|
1944
2006
|
__decorateClass([
|
|
1945
|
-
(0,
|
|
2007
|
+
(0, import_typeorm16.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
1946
2008
|
], Feature.prototype, "plans", 2);
|
|
1947
2009
|
Feature = __decorateClass([
|
|
1948
|
-
(0,
|
|
2010
|
+
(0, import_typeorm16.Entity)("features")
|
|
1949
2011
|
], Feature);
|
|
1950
2012
|
|
|
1951
2013
|
// src/entities/plan.entity.ts
|
|
1952
2014
|
var Plan = class extends BaseEntity {
|
|
1953
2015
|
};
|
|
1954
2016
|
__decorateClass([
|
|
1955
|
-
(0,
|
|
2017
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", unique: true })
|
|
1956
2018
|
], Plan.prototype, "name", 2);
|
|
1957
2019
|
__decorateClass([
|
|
1958
|
-
(0,
|
|
2020
|
+
(0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1959
2021
|
], Plan.prototype, "description", 2);
|
|
1960
2022
|
__decorateClass([
|
|
1961
|
-
(0,
|
|
2023
|
+
(0, import_typeorm17.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
1962
2024
|
], Plan.prototype, "price", 2);
|
|
1963
2025
|
__decorateClass([
|
|
1964
|
-
(0,
|
|
2026
|
+
(0, import_typeorm17.Column)({ name: "billing_period", type: "varchar" })
|
|
1965
2027
|
], Plan.prototype, "billingPeriod", 2);
|
|
1966
2028
|
__decorateClass([
|
|
1967
|
-
(0,
|
|
2029
|
+
(0, import_typeorm17.Column)({ name: "is_current", type: "boolean", default: false })
|
|
1968
2030
|
], Plan.prototype, "isCurrent", 2);
|
|
1969
2031
|
__decorateClass([
|
|
1970
|
-
(0,
|
|
1971
|
-
(0,
|
|
2032
|
+
(0, import_typeorm17.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2033
|
+
(0, import_typeorm17.JoinTable)()
|
|
1972
2034
|
], Plan.prototype, "features", 2);
|
|
1973
2035
|
Plan = __decorateClass([
|
|
1974
|
-
(0,
|
|
2036
|
+
(0, import_typeorm17.Entity)("plans")
|
|
1975
2037
|
], Plan);
|
|
1976
2038
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1977
2039
|
0 && (module.exports = {
|
|
@@ -2024,6 +2086,7 @@ Plan = __decorateClass([
|
|
|
2024
2086
|
LogoutDto,
|
|
2025
2087
|
ModeOfHire,
|
|
2026
2088
|
ModeOfWork,
|
|
2089
|
+
NOTIFICATION_PATTERN,
|
|
2027
2090
|
NatureOfWork,
|
|
2028
2091
|
NotificationRMQAdapter,
|
|
2029
2092
|
NotificationTCPAdapter,
|
package/dist/index.mjs
CHANGED
|
@@ -489,11 +489,11 @@ import {
|
|
|
489
489
|
|
|
490
490
|
// src/entities/company-profile.entity.ts
|
|
491
491
|
import {
|
|
492
|
-
Entity as
|
|
493
|
-
Column as
|
|
494
|
-
ManyToOne as
|
|
495
|
-
JoinColumn as
|
|
496
|
-
Index as
|
|
492
|
+
Entity as Entity12,
|
|
493
|
+
Column as Column13,
|
|
494
|
+
ManyToOne as ManyToOne10,
|
|
495
|
+
JoinColumn as JoinColumn10,
|
|
496
|
+
Index as Index8
|
|
497
497
|
} from "typeorm";
|
|
498
498
|
|
|
499
499
|
// src/entities/base.entity.ts
|
|
@@ -541,7 +541,7 @@ __decorateClass([
|
|
|
541
541
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
542
542
|
|
|
543
543
|
// src/entities/user.entity.ts
|
|
544
|
-
import { Entity as
|
|
544
|
+
import { Entity as Entity11, Column as Column12, OneToMany as OneToMany5, OneToOne } from "typeorm";
|
|
545
545
|
|
|
546
546
|
// src/entities/refresh-token.entity.ts
|
|
547
547
|
import {
|
|
@@ -1076,6 +1076,48 @@ SystemPreference = __decorateClass([
|
|
|
1076
1076
|
Entity9("system_preferences")
|
|
1077
1077
|
], SystemPreference);
|
|
1078
1078
|
|
|
1079
|
+
// src/entities/review.entity.ts
|
|
1080
|
+
import { Entity as Entity10, Column as Column11, ManyToOne as ManyToOne9, JoinColumn as JoinColumn9, Index as Index7 } from "typeorm";
|
|
1081
|
+
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
1082
|
+
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
1083
|
+
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
1084
|
+
return RatingTypeEnum2;
|
|
1085
|
+
})(RatingTypeEnum || {});
|
|
1086
|
+
var Rating = class extends BaseEntity {
|
|
1087
|
+
};
|
|
1088
|
+
__decorateClass([
|
|
1089
|
+
Column11({ name: "reviewer_id", type: "integer" }),
|
|
1090
|
+
Index7()
|
|
1091
|
+
], Rating.prototype, "reviewer_id", 2);
|
|
1092
|
+
__decorateClass([
|
|
1093
|
+
ManyToOne9(() => User, { onDelete: "CASCADE" }),
|
|
1094
|
+
JoinColumn9({ name: "reviewer_id" })
|
|
1095
|
+
], Rating.prototype, "reviewer", 2);
|
|
1096
|
+
__decorateClass([
|
|
1097
|
+
Column11({ name: "reviewee_id", type: "integer" }),
|
|
1098
|
+
Index7()
|
|
1099
|
+
], Rating.prototype, "reviewee_id", 2);
|
|
1100
|
+
__decorateClass([
|
|
1101
|
+
ManyToOne9(() => User, { onDelete: "CASCADE" }),
|
|
1102
|
+
JoinColumn9({ name: "reviewee_id" })
|
|
1103
|
+
], Rating.prototype, "reviewee", 2);
|
|
1104
|
+
__decorateClass([
|
|
1105
|
+
Column11({
|
|
1106
|
+
type: "enum",
|
|
1107
|
+
enum: RatingTypeEnum,
|
|
1108
|
+
nullable: true
|
|
1109
|
+
})
|
|
1110
|
+
], Rating.prototype, "ratingType", 2);
|
|
1111
|
+
__decorateClass([
|
|
1112
|
+
Column11({ type: "integer", nullable: true })
|
|
1113
|
+
], Rating.prototype, "rating", 2);
|
|
1114
|
+
__decorateClass([
|
|
1115
|
+
Column11({ type: "text", nullable: true })
|
|
1116
|
+
], Rating.prototype, "review", 2);
|
|
1117
|
+
Rating = __decorateClass([
|
|
1118
|
+
Entity10("ratings")
|
|
1119
|
+
], Rating);
|
|
1120
|
+
|
|
1079
1121
|
// src/entities/user.entity.ts
|
|
1080
1122
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1081
1123
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1100,40 +1142,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1100
1142
|
var User = class extends BaseEntity {
|
|
1101
1143
|
};
|
|
1102
1144
|
__decorateClass([
|
|
1103
|
-
|
|
1145
|
+
Column12({ name: "unique_id", type: "varchar", unique: true })
|
|
1104
1146
|
], User.prototype, "uniqueId", 2);
|
|
1105
1147
|
__decorateClass([
|
|
1106
|
-
|
|
1148
|
+
Column12({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1107
1149
|
], User.prototype, "username", 2);
|
|
1108
1150
|
__decorateClass([
|
|
1109
|
-
|
|
1151
|
+
Column12({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1110
1152
|
], User.prototype, "firstName", 2);
|
|
1111
1153
|
__decorateClass([
|
|
1112
|
-
|
|
1154
|
+
Column12({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1113
1155
|
], User.prototype, "lastName", 2);
|
|
1114
1156
|
__decorateClass([
|
|
1115
|
-
|
|
1157
|
+
Column12({ name: "date_of_birth", type: "date", nullable: true })
|
|
1116
1158
|
], User.prototype, "dateOfBirth", 2);
|
|
1117
1159
|
__decorateClass([
|
|
1118
|
-
|
|
1160
|
+
Column12({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1119
1161
|
], User.prototype, "gender", 2);
|
|
1120
1162
|
__decorateClass([
|
|
1121
|
-
|
|
1163
|
+
Column12({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1122
1164
|
], User.prototype, "profilePictureUrl", 2);
|
|
1123
1165
|
__decorateClass([
|
|
1124
|
-
|
|
1166
|
+
Column12({ name: "email", type: "varchar", unique: true })
|
|
1125
1167
|
], User.prototype, "email", 2);
|
|
1126
1168
|
__decorateClass([
|
|
1127
|
-
|
|
1169
|
+
Column12({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1128
1170
|
], User.prototype, "mobileCode", 2);
|
|
1129
1171
|
__decorateClass([
|
|
1130
|
-
|
|
1172
|
+
Column12({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1131
1173
|
], User.prototype, "mobile", 2);
|
|
1132
1174
|
__decorateClass([
|
|
1133
|
-
|
|
1175
|
+
Column12({ name: "password", type: "varchar" })
|
|
1134
1176
|
], User.prototype, "password", 2);
|
|
1135
1177
|
__decorateClass([
|
|
1136
|
-
|
|
1178
|
+
Column12({
|
|
1137
1179
|
name: "account_type",
|
|
1138
1180
|
type: "enum",
|
|
1139
1181
|
enum: AccountType,
|
|
@@ -1141,7 +1183,7 @@ __decorateClass([
|
|
|
1141
1183
|
})
|
|
1142
1184
|
], User.prototype, "accountType", 2);
|
|
1143
1185
|
__decorateClass([
|
|
1144
|
-
|
|
1186
|
+
Column12({
|
|
1145
1187
|
name: "account_status",
|
|
1146
1188
|
type: "enum",
|
|
1147
1189
|
enum: AccountStatus,
|
|
@@ -1149,32 +1191,36 @@ __decorateClass([
|
|
|
1149
1191
|
})
|
|
1150
1192
|
], User.prototype, "accountStatus", 2);
|
|
1151
1193
|
__decorateClass([
|
|
1152
|
-
|
|
1194
|
+
Column12({ name: "is_email_verified", type: "boolean", default: false })
|
|
1153
1195
|
], User.prototype, "isEmailVerified", 2);
|
|
1154
1196
|
__decorateClass([
|
|
1155
|
-
|
|
1197
|
+
Column12({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1156
1198
|
], User.prototype, "isMobileVerified", 2);
|
|
1157
1199
|
__decorateClass([
|
|
1158
|
-
|
|
1200
|
+
Column12({
|
|
1159
1201
|
name: "last_login_at",
|
|
1160
1202
|
type: "timestamp with time zone",
|
|
1161
1203
|
nullable: true
|
|
1162
1204
|
})
|
|
1163
1205
|
], User.prototype, "lastLoginAt", 2);
|
|
1164
1206
|
__decorateClass([
|
|
1165
|
-
|
|
1207
|
+
Column12({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1166
1208
|
], User.prototype, "lastLoginIp", 2);
|
|
1167
1209
|
__decorateClass([
|
|
1168
|
-
|
|
1210
|
+
Column12({ name: "reset_token", type: "varchar", nullable: true })
|
|
1169
1211
|
], User.prototype, "resetToken", 2);
|
|
1170
1212
|
__decorateClass([
|
|
1171
|
-
|
|
1213
|
+
Column12({
|
|
1214
|
+
name: "reset_token_expire_at",
|
|
1215
|
+
type: "timestamp with time zone",
|
|
1216
|
+
nullable: true
|
|
1217
|
+
})
|
|
1172
1218
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1173
1219
|
__decorateClass([
|
|
1174
1220
|
OneToMany5(() => RefreshToken, (token) => token.user)
|
|
1175
1221
|
], User.prototype, "refreshTokens", 2);
|
|
1176
1222
|
__decorateClass([
|
|
1177
|
-
|
|
1223
|
+
Column12({
|
|
1178
1224
|
name: "provider",
|
|
1179
1225
|
type: "enum",
|
|
1180
1226
|
enum: Provider,
|
|
@@ -1183,16 +1229,16 @@ __decorateClass([
|
|
|
1183
1229
|
})
|
|
1184
1230
|
], User.prototype, "provider", 2);
|
|
1185
1231
|
__decorateClass([
|
|
1186
|
-
|
|
1232
|
+
Column12({ name: "provider_token", type: "varchar", nullable: true })
|
|
1187
1233
|
], User.prototype, "providerToken", 2);
|
|
1188
1234
|
__decorateClass([
|
|
1189
|
-
|
|
1235
|
+
Column12({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1190
1236
|
], User.prototype, "linkedInId", 2);
|
|
1191
1237
|
__decorateClass([
|
|
1192
|
-
|
|
1238
|
+
Column12({ name: "google_id", type: "varchar", nullable: true })
|
|
1193
1239
|
], User.prototype, "googleId", 2);
|
|
1194
1240
|
__decorateClass([
|
|
1195
|
-
|
|
1241
|
+
Column12({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1196
1242
|
], User.prototype, "gitLabsId", 2);
|
|
1197
1243
|
__decorateClass([
|
|
1198
1244
|
OneToMany5(() => Otp, (otp) => otp.user)
|
|
@@ -1216,10 +1262,19 @@ __decorateClass([
|
|
|
1216
1262
|
OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1217
1263
|
], User.prototype, "bankDetail", 2);
|
|
1218
1264
|
__decorateClass([
|
|
1219
|
-
OneToMany5(
|
|
1265
|
+
OneToMany5(
|
|
1266
|
+
() => SystemPreference,
|
|
1267
|
+
(systemPreference) => systemPreference.user
|
|
1268
|
+
)
|
|
1220
1269
|
], User.prototype, "systemPreference", 2);
|
|
1270
|
+
__decorateClass([
|
|
1271
|
+
OneToMany5(() => Rating, (rating) => rating.reviewer)
|
|
1272
|
+
], User.prototype, "givenRatings", 2);
|
|
1273
|
+
__decorateClass([
|
|
1274
|
+
OneToMany5(() => Rating, (rating) => rating.reviewee)
|
|
1275
|
+
], User.prototype, "receivedRatings", 2);
|
|
1221
1276
|
User = __decorateClass([
|
|
1222
|
-
|
|
1277
|
+
Entity11("users")
|
|
1223
1278
|
], User);
|
|
1224
1279
|
|
|
1225
1280
|
// src/entities/company-profile.entity.ts
|
|
@@ -1246,42 +1301,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1246
1301
|
};
|
|
1247
1302
|
// individual index to find company profile by user
|
|
1248
1303
|
__decorateClass([
|
|
1249
|
-
|
|
1250
|
-
|
|
1304
|
+
Column13({ name: "user_id", type: "integer", nullable: true }),
|
|
1305
|
+
Index8()
|
|
1251
1306
|
], CompanyProfile.prototype, "userId", 2);
|
|
1252
1307
|
__decorateClass([
|
|
1253
|
-
|
|
1254
|
-
|
|
1308
|
+
ManyToOne10(() => User, (user) => user.otps),
|
|
1309
|
+
JoinColumn10({ name: "user_id" })
|
|
1255
1310
|
], CompanyProfile.prototype, "user", 2);
|
|
1256
1311
|
__decorateClass([
|
|
1257
|
-
|
|
1312
|
+
Column13({ name: "company_name", type: "varchar", nullable: true })
|
|
1258
1313
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1259
1314
|
__decorateClass([
|
|
1260
|
-
|
|
1315
|
+
Column13({ name: "bio", type: "varchar", nullable: true })
|
|
1261
1316
|
], CompanyProfile.prototype, "bio", 2);
|
|
1262
1317
|
__decorateClass([
|
|
1263
|
-
|
|
1318
|
+
Column13({ name: "website", type: "varchar", nullable: true })
|
|
1264
1319
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1265
1320
|
__decorateClass([
|
|
1266
|
-
|
|
1321
|
+
Column13({ name: "about_company", type: "varchar", nullable: true })
|
|
1267
1322
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1268
1323
|
__decorateClass([
|
|
1269
|
-
|
|
1324
|
+
Column13({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1270
1325
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1271
1326
|
__decorateClass([
|
|
1272
|
-
|
|
1327
|
+
Column13({ name: "company_address", type: "varchar", nullable: true })
|
|
1273
1328
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1274
1329
|
__decorateClass([
|
|
1275
|
-
|
|
1330
|
+
Column13({ name: "phone_number", type: "varchar", nullable: true })
|
|
1276
1331
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1277
1332
|
__decorateClass([
|
|
1278
|
-
|
|
1333
|
+
Column13({ name: "skills", type: "text", nullable: true })
|
|
1279
1334
|
], CompanyProfile.prototype, "skills", 2);
|
|
1280
1335
|
__decorateClass([
|
|
1281
|
-
|
|
1336
|
+
Column13({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1282
1337
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1283
1338
|
__decorateClass([
|
|
1284
|
-
|
|
1339
|
+
Column13({
|
|
1285
1340
|
name: "kind_of_hiring",
|
|
1286
1341
|
type: "enum",
|
|
1287
1342
|
enum: KindOfHire,
|
|
@@ -1289,7 +1344,7 @@ __decorateClass([
|
|
|
1289
1344
|
})
|
|
1290
1345
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1291
1346
|
__decorateClass([
|
|
1292
|
-
|
|
1347
|
+
Column13({
|
|
1293
1348
|
name: "mode_of_hire",
|
|
1294
1349
|
type: "enum",
|
|
1295
1350
|
enum: ModeOfHire,
|
|
@@ -1297,7 +1352,7 @@ __decorateClass([
|
|
|
1297
1352
|
})
|
|
1298
1353
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1299
1354
|
__decorateClass([
|
|
1300
|
-
|
|
1355
|
+
Column13({
|
|
1301
1356
|
name: "found_us_on",
|
|
1302
1357
|
type: "enum",
|
|
1303
1358
|
enum: FromUsOn,
|
|
@@ -1305,7 +1360,7 @@ __decorateClass([
|
|
|
1305
1360
|
})
|
|
1306
1361
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1307
1362
|
CompanyProfile = __decorateClass([
|
|
1308
|
-
|
|
1363
|
+
Entity12("company_profiles")
|
|
1309
1364
|
], CompanyProfile);
|
|
1310
1365
|
|
|
1311
1366
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1700,6 +1755,12 @@ __decorateClass([
|
|
|
1700
1755
|
})
|
|
1701
1756
|
], SystemPreferenceDto.prototype, "key", 2);
|
|
1702
1757
|
|
|
1758
|
+
// src/modules/notification/pattern/pattern.ts
|
|
1759
|
+
var NOTIFICATION_PATTERN = {
|
|
1760
|
+
handleAccountVerificationNotification: "handle.account.verification.notification",
|
|
1761
|
+
handleResetLinkNotification: "handle.reset.link.notification"
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1703
1764
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1704
1765
|
import { config } from "dotenv";
|
|
1705
1766
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -1917,7 +1978,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
1917
1978
|
};
|
|
1918
1979
|
|
|
1919
1980
|
// src/entities/question.entity.ts
|
|
1920
|
-
import { Entity as
|
|
1981
|
+
import { Entity as Entity13, Column as Column14 } from "typeorm";
|
|
1921
1982
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1922
1983
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1923
1984
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1926,16 +1987,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1926
1987
|
var Question = class extends BaseEntity {
|
|
1927
1988
|
};
|
|
1928
1989
|
__decorateClass([
|
|
1929
|
-
|
|
1990
|
+
Column14({ name: "question", type: "varchar" })
|
|
1930
1991
|
], Question.prototype, "question", 2);
|
|
1931
1992
|
__decorateClass([
|
|
1932
|
-
|
|
1993
|
+
Column14({ name: "hint", type: "varchar", nullable: true })
|
|
1933
1994
|
], Question.prototype, "hint", 2);
|
|
1934
1995
|
__decorateClass([
|
|
1935
|
-
|
|
1996
|
+
Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1936
1997
|
], Question.prototype, "slug", 2);
|
|
1937
1998
|
__decorateClass([
|
|
1938
|
-
|
|
1999
|
+
Column14({
|
|
1939
2000
|
name: "question_for",
|
|
1940
2001
|
type: "enum",
|
|
1941
2002
|
enum: QuestionFor,
|
|
@@ -1943,76 +2004,76 @@ __decorateClass([
|
|
|
1943
2004
|
})
|
|
1944
2005
|
], Question.prototype, "questionFor", 2);
|
|
1945
2006
|
__decorateClass([
|
|
1946
|
-
|
|
2007
|
+
Column14({ name: "type", type: "varchar", nullable: true })
|
|
1947
2008
|
], Question.prototype, "type", 2);
|
|
1948
2009
|
__decorateClass([
|
|
1949
|
-
|
|
2010
|
+
Column14({ name: "options", type: "jsonb", nullable: true })
|
|
1950
2011
|
], Question.prototype, "options", 2);
|
|
1951
2012
|
__decorateClass([
|
|
1952
|
-
|
|
2013
|
+
Column14({ name: "is_active", type: "boolean", default: false })
|
|
1953
2014
|
], Question.prototype, "isActive", 2);
|
|
1954
2015
|
Question = __decorateClass([
|
|
1955
|
-
|
|
2016
|
+
Entity13("questions")
|
|
1956
2017
|
], Question);
|
|
1957
2018
|
|
|
1958
2019
|
// src/entities/job-role.entity.ts
|
|
1959
|
-
import { Entity as
|
|
2020
|
+
import { Entity as Entity14, Column as Column15 } from "typeorm";
|
|
1960
2021
|
var JobRoles = class extends BaseEntity {
|
|
1961
2022
|
};
|
|
1962
2023
|
__decorateClass([
|
|
1963
|
-
|
|
2024
|
+
Column15({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1964
2025
|
], JobRoles.prototype, "slug", 2);
|
|
1965
2026
|
__decorateClass([
|
|
1966
|
-
|
|
2027
|
+
Column15({ name: "name", type: "varchar", nullable: true })
|
|
1967
2028
|
], JobRoles.prototype, "name", 2);
|
|
1968
2029
|
__decorateClass([
|
|
1969
|
-
|
|
2030
|
+
Column15({ name: "is_active", type: "boolean", default: true })
|
|
1970
2031
|
], JobRoles.prototype, "isActive", 2);
|
|
1971
2032
|
JobRoles = __decorateClass([
|
|
1972
|
-
|
|
2033
|
+
Entity14("job_roles")
|
|
1973
2034
|
], JobRoles);
|
|
1974
2035
|
|
|
1975
2036
|
// src/entities/plan.entity.ts
|
|
1976
|
-
import { Entity as
|
|
2037
|
+
import { Entity as Entity16, Column as Column17, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
1977
2038
|
|
|
1978
2039
|
// src/entities/feature.entity.ts
|
|
1979
|
-
import { Entity as
|
|
2040
|
+
import { Entity as Entity15, Column as Column16, ManyToMany } from "typeorm";
|
|
1980
2041
|
var Feature = class extends BaseEntity {
|
|
1981
2042
|
};
|
|
1982
2043
|
__decorateClass([
|
|
1983
|
-
|
|
2044
|
+
Column16({ name: "name", type: "varchar", unique: true })
|
|
1984
2045
|
], Feature.prototype, "name", 2);
|
|
1985
2046
|
__decorateClass([
|
|
1986
2047
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
1987
2048
|
], Feature.prototype, "plans", 2);
|
|
1988
2049
|
Feature = __decorateClass([
|
|
1989
|
-
|
|
2050
|
+
Entity15("features")
|
|
1990
2051
|
], Feature);
|
|
1991
2052
|
|
|
1992
2053
|
// src/entities/plan.entity.ts
|
|
1993
2054
|
var Plan = class extends BaseEntity {
|
|
1994
2055
|
};
|
|
1995
2056
|
__decorateClass([
|
|
1996
|
-
|
|
2057
|
+
Column17({ name: "name", type: "varchar", unique: true })
|
|
1997
2058
|
], Plan.prototype, "name", 2);
|
|
1998
2059
|
__decorateClass([
|
|
1999
|
-
|
|
2060
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2000
2061
|
], Plan.prototype, "description", 2);
|
|
2001
2062
|
__decorateClass([
|
|
2002
|
-
|
|
2063
|
+
Column17({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2003
2064
|
], Plan.prototype, "price", 2);
|
|
2004
2065
|
__decorateClass([
|
|
2005
|
-
|
|
2066
|
+
Column17({ name: "billing_period", type: "varchar" })
|
|
2006
2067
|
], Plan.prototype, "billingPeriod", 2);
|
|
2007
2068
|
__decorateClass([
|
|
2008
|
-
|
|
2069
|
+
Column17({ name: "is_current", type: "boolean", default: false })
|
|
2009
2070
|
], Plan.prototype, "isCurrent", 2);
|
|
2010
2071
|
__decorateClass([
|
|
2011
2072
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2012
2073
|
JoinTable()
|
|
2013
2074
|
], Plan.prototype, "features", 2);
|
|
2014
2075
|
Plan = __decorateClass([
|
|
2015
|
-
|
|
2076
|
+
Entity16("plans")
|
|
2016
2077
|
], Plan);
|
|
2017
2078
|
export {
|
|
2018
2079
|
AUTHENTICATION_PATTERN,
|
|
@@ -2064,6 +2125,7 @@ export {
|
|
|
2064
2125
|
LogoutDto,
|
|
2065
2126
|
ModeOfHire,
|
|
2066
2127
|
ModeOfWork,
|
|
2128
|
+
NOTIFICATION_PATTERN,
|
|
2067
2129
|
NatureOfWork,
|
|
2068
2130
|
NotificationRMQAdapter,
|
|
2069
2131
|
NotificationTCPAdapter,
|
package/dist/modules/index.d.ts
CHANGED