@experts_hub/shared 1.0.214 → 1.0.216
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/index.d.ts +1 -0
- package/dist/entities/lead.entity.d.ts +13 -0
- package/dist/index.d.mts +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +85 -0
- package/dist/index.mjs +83 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/lead/dto/create-lead.dto.d.ts +12 -0
- package/dist/modules/lead/dto/index.d.ts +1 -0
- package/dist/modules/lead/index.d.ts +2 -0
- package/dist/modules/lead/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
export declare enum CategoryEmum {
|
|
3
|
+
BUSINESS = "BUSINESS",
|
|
4
|
+
FREELANCEER = "FREELANCEER"
|
|
5
|
+
}
|
|
6
|
+
export declare class Lead extends BaseEntity {
|
|
7
|
+
name: string;
|
|
8
|
+
mobileCode: string;
|
|
9
|
+
mobile: string;
|
|
10
|
+
email: string;
|
|
11
|
+
description: string;
|
|
12
|
+
category: CategoryEmum;
|
|
13
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1802,6 +1802,24 @@ declare class AdminUpdateJobInformationDto {
|
|
|
1802
1802
|
cityId: number;
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
|
+
declare const LEAD_PATTERN: {
|
|
1806
|
+
fetchLead: string;
|
|
1807
|
+
createLead: string;
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
declare enum CategoryEmumDto {
|
|
1811
|
+
BUSINESS = "BUSINESS",
|
|
1812
|
+
FREELANCEER = "FREELANCEER"
|
|
1813
|
+
}
|
|
1814
|
+
declare class CreateLeadDto {
|
|
1815
|
+
name: string;
|
|
1816
|
+
email: string;
|
|
1817
|
+
mobileCode: string;
|
|
1818
|
+
mobile: string;
|
|
1819
|
+
description?: string;
|
|
1820
|
+
category: CategoryEmumDto;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1805
1823
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
1806
1824
|
|
|
1807
1825
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1859,4 +1877,17 @@ declare class Cms extends BaseEntity {
|
|
|
1859
1877
|
isActive: boolean;
|
|
1860
1878
|
}
|
|
1861
1879
|
|
|
1862
|
-
|
|
1880
|
+
declare enum CategoryEmum {
|
|
1881
|
+
BUSINESS = "BUSINESS",
|
|
1882
|
+
FREELANCEER = "FREELANCEER"
|
|
1883
|
+
}
|
|
1884
|
+
declare class Lead extends BaseEntity {
|
|
1885
|
+
name: string;
|
|
1886
|
+
mobileCode: string;
|
|
1887
|
+
mobile: string;
|
|
1888
|
+
email: string;
|
|
1889
|
+
description: string;
|
|
1890
|
+
category: CategoryEmum;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
export { ADMIN_FREELANCER_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminUpdateJobInformationDto, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, Country, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_ADMIN_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -1802,6 +1802,24 @@ declare class AdminUpdateJobInformationDto {
|
|
|
1802
1802
|
cityId: number;
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
|
+
declare const LEAD_PATTERN: {
|
|
1806
|
+
fetchLead: string;
|
|
1807
|
+
createLead: string;
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
declare enum CategoryEmumDto {
|
|
1811
|
+
BUSINESS = "BUSINESS",
|
|
1812
|
+
FREELANCEER = "FREELANCEER"
|
|
1813
|
+
}
|
|
1814
|
+
declare class CreateLeadDto {
|
|
1815
|
+
name: string;
|
|
1816
|
+
email: string;
|
|
1817
|
+
mobileCode: string;
|
|
1818
|
+
mobile: string;
|
|
1819
|
+
description?: string;
|
|
1820
|
+
category: CategoryEmumDto;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1805
1823
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
1806
1824
|
|
|
1807
1825
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -1859,4 +1877,17 @@ declare class Cms extends BaseEntity {
|
|
|
1859
1877
|
isActive: boolean;
|
|
1860
1878
|
}
|
|
1861
1879
|
|
|
1862
|
-
|
|
1880
|
+
declare enum CategoryEmum {
|
|
1881
|
+
BUSINESS = "BUSINESS",
|
|
1882
|
+
FREELANCEER = "FREELANCEER"
|
|
1883
|
+
}
|
|
1884
|
+
declare class Lead extends BaseEntity {
|
|
1885
|
+
name: string;
|
|
1886
|
+
mobileCode: string;
|
|
1887
|
+
mobile: string;
|
|
1888
|
+
email: string;
|
|
1889
|
+
description: string;
|
|
1890
|
+
category: CategoryEmum;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
export { ADMIN_FREELANCER_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminUpdateJobInformationDto, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, Country, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_ADMIN_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,8 @@ __export(index_exports, {
|
|
|
54
54
|
COMPANY_ROLES_PATTERNS: () => COMPANY_ROLES_PATTERNS,
|
|
55
55
|
COUNTRY_PATTERN: () => COUNTRY_PATTERN,
|
|
56
56
|
CaseStudyDto: () => CaseStudyDto,
|
|
57
|
+
CategoryEmum: () => CategoryEmum,
|
|
58
|
+
CategoryEmumDto: () => CategoryEmumDto,
|
|
57
59
|
City: () => City,
|
|
58
60
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
59
61
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
@@ -72,6 +74,7 @@ __export(index_exports, {
|
|
|
72
74
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
73
75
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
74
76
|
CreateFreelancerDto: () => CreateFreelancerDto,
|
|
77
|
+
CreateLeadDto: () => CreateLeadDto,
|
|
75
78
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
76
79
|
CreateRatingDto: () => CreateRatingDto,
|
|
77
80
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
@@ -138,6 +141,8 @@ __export(index_exports, {
|
|
|
138
141
|
JobStatusEnum: () => JobStatusEnum,
|
|
139
142
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
140
143
|
KindOfHire: () => KindOfHire,
|
|
144
|
+
LEAD_PATTERN: () => LEAD_PATTERN,
|
|
145
|
+
Lead: () => Lead,
|
|
141
146
|
LoginDto: () => LoginDto,
|
|
142
147
|
LogoutDto: () => LogoutDto,
|
|
143
148
|
ModeOfHire: () => ModeOfHire,
|
|
@@ -4028,6 +4033,45 @@ __decorateClass([
|
|
|
4028
4033
|
(0, import_class_validator55.IsInt)({ message: "City ID must be a valid integer." })
|
|
4029
4034
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4030
4035
|
|
|
4036
|
+
// src/modules/lead/pattern/pattern.ts
|
|
4037
|
+
var LEAD_PATTERN = {
|
|
4038
|
+
fetchLead: "fetch.lead",
|
|
4039
|
+
createLead: "create.lead"
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
// src/modules/lead/dto/create-lead.dto.ts
|
|
4043
|
+
var import_class_validator56 = require("class-validator");
|
|
4044
|
+
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4045
|
+
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4046
|
+
CategoryEmumDto2["FREELANCEER"] = "FREELANCEER";
|
|
4047
|
+
return CategoryEmumDto2;
|
|
4048
|
+
})(CategoryEmumDto || {});
|
|
4049
|
+
var CreateLeadDto = class {
|
|
4050
|
+
};
|
|
4051
|
+
__decorateClass([
|
|
4052
|
+
(0, import_class_validator56.IsString)({ message: "Name must be a string" })
|
|
4053
|
+
], CreateLeadDto.prototype, "name", 2);
|
|
4054
|
+
__decorateClass([
|
|
4055
|
+
(0, import_class_validator56.IsEmail)({}, { message: "Invalid email address" })
|
|
4056
|
+
], CreateLeadDto.prototype, "email", 2);
|
|
4057
|
+
__decorateClass([
|
|
4058
|
+
(0, import_class_validator56.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4059
|
+
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4060
|
+
__decorateClass([
|
|
4061
|
+
(0, import_class_validator56.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4062
|
+
], CreateLeadDto.prototype, "mobile", 2);
|
|
4063
|
+
__decorateClass([
|
|
4064
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4065
|
+
(0, import_class_validator56.IsString)({ message: "Description must be a string" })
|
|
4066
|
+
], CreateLeadDto.prototype, "description", 2);
|
|
4067
|
+
__decorateClass([
|
|
4068
|
+
(0, import_class_validator56.IsEnum)(CategoryEmumDto, {
|
|
4069
|
+
message: `Type of category must be one of: ${Object.values(
|
|
4070
|
+
CategoryEmumDto
|
|
4071
|
+
).join(", ")}`
|
|
4072
|
+
})
|
|
4073
|
+
], CreateLeadDto.prototype, "category", 2);
|
|
4074
|
+
|
|
4031
4075
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4032
4076
|
var import_dotenv = require("dotenv");
|
|
4033
4077
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -4362,6 +4406,42 @@ __decorateClass([
|
|
|
4362
4406
|
Cms = __decorateClass([
|
|
4363
4407
|
(0, import_typeorm40.Entity)("cms")
|
|
4364
4408
|
], Cms);
|
|
4409
|
+
|
|
4410
|
+
// src/entities/lead.entity.ts
|
|
4411
|
+
var import_typeorm41 = require("typeorm");
|
|
4412
|
+
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4413
|
+
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
4414
|
+
CategoryEmum2["FREELANCEER"] = "FREELANCEER";
|
|
4415
|
+
return CategoryEmum2;
|
|
4416
|
+
})(CategoryEmum || {});
|
|
4417
|
+
var Lead = class extends BaseEntity {
|
|
4418
|
+
};
|
|
4419
|
+
__decorateClass([
|
|
4420
|
+
(0, import_typeorm41.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4421
|
+
], Lead.prototype, "name", 2);
|
|
4422
|
+
__decorateClass([
|
|
4423
|
+
(0, import_typeorm41.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4424
|
+
], Lead.prototype, "mobileCode", 2);
|
|
4425
|
+
__decorateClass([
|
|
4426
|
+
(0, import_typeorm41.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4427
|
+
], Lead.prototype, "mobile", 2);
|
|
4428
|
+
__decorateClass([
|
|
4429
|
+
(0, import_typeorm41.Column)({ name: "email", type: "varchar", nullable: true })
|
|
4430
|
+
], Lead.prototype, "email", 2);
|
|
4431
|
+
__decorateClass([
|
|
4432
|
+
(0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4433
|
+
], Lead.prototype, "description", 2);
|
|
4434
|
+
__decorateClass([
|
|
4435
|
+
(0, import_typeorm41.Column)({
|
|
4436
|
+
name: "category",
|
|
4437
|
+
type: "enum",
|
|
4438
|
+
enum: CategoryEmum,
|
|
4439
|
+
default: "BUSINESS" /* BUSINESS */
|
|
4440
|
+
})
|
|
4441
|
+
], Lead.prototype, "category", 2);
|
|
4442
|
+
Lead = __decorateClass([
|
|
4443
|
+
(0, import_typeorm41.Entity)("leads")
|
|
4444
|
+
], Lead);
|
|
4365
4445
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4366
4446
|
0 && (module.exports = {
|
|
4367
4447
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -4391,6 +4471,8 @@ Cms = __decorateClass([
|
|
|
4391
4471
|
COMPANY_ROLES_PATTERNS,
|
|
4392
4472
|
COUNTRY_PATTERN,
|
|
4393
4473
|
CaseStudyDto,
|
|
4474
|
+
CategoryEmum,
|
|
4475
|
+
CategoryEmumDto,
|
|
4394
4476
|
City,
|
|
4395
4477
|
ClientChangePasswordDto,
|
|
4396
4478
|
ClientCreateAccountDto,
|
|
@@ -4409,6 +4491,7 @@ Cms = __decorateClass([
|
|
|
4409
4491
|
CreateCompanyMemberDto,
|
|
4410
4492
|
CreateCompanyRoleDto,
|
|
4411
4493
|
CreateFreelancerDto,
|
|
4494
|
+
CreateLeadDto,
|
|
4412
4495
|
CreateQuestionDto,
|
|
4413
4496
|
CreateRatingDto,
|
|
4414
4497
|
CreateSubAdminDto,
|
|
@@ -4475,6 +4558,8 @@ Cms = __decorateClass([
|
|
|
4475
4558
|
JobStatusEnum,
|
|
4476
4559
|
JobTCPAdapter,
|
|
4477
4560
|
KindOfHire,
|
|
4561
|
+
LEAD_PATTERN,
|
|
4562
|
+
Lead,
|
|
4478
4563
|
LoginDto,
|
|
4479
4564
|
LogoutDto,
|
|
4480
4565
|
ModeOfHire,
|
package/dist/index.mjs
CHANGED
|
@@ -4180,6 +4180,45 @@ __decorateClass([
|
|
|
4180
4180
|
IsInt7({ message: "City ID must be a valid integer." })
|
|
4181
4181
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4182
4182
|
|
|
4183
|
+
// src/modules/lead/pattern/pattern.ts
|
|
4184
|
+
var LEAD_PATTERN = {
|
|
4185
|
+
fetchLead: "fetch.lead",
|
|
4186
|
+
createLead: "create.lead"
|
|
4187
|
+
};
|
|
4188
|
+
|
|
4189
|
+
// src/modules/lead/dto/create-lead.dto.ts
|
|
4190
|
+
import { IsString as IsString34, IsEmail as IsEmail15, IsOptional as IsOptional27, IsEnum as IsEnum20 } from "class-validator";
|
|
4191
|
+
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4192
|
+
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4193
|
+
CategoryEmumDto2["FREELANCEER"] = "FREELANCEER";
|
|
4194
|
+
return CategoryEmumDto2;
|
|
4195
|
+
})(CategoryEmumDto || {});
|
|
4196
|
+
var CreateLeadDto = class {
|
|
4197
|
+
};
|
|
4198
|
+
__decorateClass([
|
|
4199
|
+
IsString34({ message: "Name must be a string" })
|
|
4200
|
+
], CreateLeadDto.prototype, "name", 2);
|
|
4201
|
+
__decorateClass([
|
|
4202
|
+
IsEmail15({}, { message: "Invalid email address" })
|
|
4203
|
+
], CreateLeadDto.prototype, "email", 2);
|
|
4204
|
+
__decorateClass([
|
|
4205
|
+
IsString34({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4206
|
+
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4207
|
+
__decorateClass([
|
|
4208
|
+
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4209
|
+
], CreateLeadDto.prototype, "mobile", 2);
|
|
4210
|
+
__decorateClass([
|
|
4211
|
+
IsOptional27(),
|
|
4212
|
+
IsString34({ message: "Description must be a string" })
|
|
4213
|
+
], CreateLeadDto.prototype, "description", 2);
|
|
4214
|
+
__decorateClass([
|
|
4215
|
+
IsEnum20(CategoryEmumDto, {
|
|
4216
|
+
message: `Type of category must be one of: ${Object.values(
|
|
4217
|
+
CategoryEmumDto
|
|
4218
|
+
).join(", ")}`
|
|
4219
|
+
})
|
|
4220
|
+
], CreateLeadDto.prototype, "category", 2);
|
|
4221
|
+
|
|
4183
4222
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4184
4223
|
import { config } from "dotenv";
|
|
4185
4224
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -4514,6 +4553,45 @@ __decorateClass([
|
|
|
4514
4553
|
Cms = __decorateClass([
|
|
4515
4554
|
Entity39("cms")
|
|
4516
4555
|
], Cms);
|
|
4556
|
+
|
|
4557
|
+
// src/entities/lead.entity.ts
|
|
4558
|
+
import {
|
|
4559
|
+
Entity as Entity40,
|
|
4560
|
+
Column as Column41
|
|
4561
|
+
} from "typeorm";
|
|
4562
|
+
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4563
|
+
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
4564
|
+
CategoryEmum2["FREELANCEER"] = "FREELANCEER";
|
|
4565
|
+
return CategoryEmum2;
|
|
4566
|
+
})(CategoryEmum || {});
|
|
4567
|
+
var Lead = class extends BaseEntity {
|
|
4568
|
+
};
|
|
4569
|
+
__decorateClass([
|
|
4570
|
+
Column41({ name: "name", type: "varchar", nullable: true })
|
|
4571
|
+
], Lead.prototype, "name", 2);
|
|
4572
|
+
__decorateClass([
|
|
4573
|
+
Column41({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4574
|
+
], Lead.prototype, "mobileCode", 2);
|
|
4575
|
+
__decorateClass([
|
|
4576
|
+
Column41({ name: "mobile", type: "varchar", nullable: true })
|
|
4577
|
+
], Lead.prototype, "mobile", 2);
|
|
4578
|
+
__decorateClass([
|
|
4579
|
+
Column41({ name: "email", type: "varchar", nullable: true })
|
|
4580
|
+
], Lead.prototype, "email", 2);
|
|
4581
|
+
__decorateClass([
|
|
4582
|
+
Column41({ name: "description", type: "varchar", nullable: true })
|
|
4583
|
+
], Lead.prototype, "description", 2);
|
|
4584
|
+
__decorateClass([
|
|
4585
|
+
Column41({
|
|
4586
|
+
name: "category",
|
|
4587
|
+
type: "enum",
|
|
4588
|
+
enum: CategoryEmum,
|
|
4589
|
+
default: "BUSINESS" /* BUSINESS */
|
|
4590
|
+
})
|
|
4591
|
+
], Lead.prototype, "category", 2);
|
|
4592
|
+
Lead = __decorateClass([
|
|
4593
|
+
Entity40("leads")
|
|
4594
|
+
], Lead);
|
|
4517
4595
|
export {
|
|
4518
4596
|
ADMIN_FREELANCER_PATTERN,
|
|
4519
4597
|
ASSESSMENT_QUESTION_PATTERN,
|
|
@@ -4542,6 +4620,8 @@ export {
|
|
|
4542
4620
|
COMPANY_ROLES_PATTERNS,
|
|
4543
4621
|
COUNTRY_PATTERN,
|
|
4544
4622
|
CaseStudyDto,
|
|
4623
|
+
CategoryEmum,
|
|
4624
|
+
CategoryEmumDto,
|
|
4545
4625
|
City,
|
|
4546
4626
|
ClientChangePasswordDto,
|
|
4547
4627
|
ClientCreateAccountDto,
|
|
@@ -4560,6 +4640,7 @@ export {
|
|
|
4560
4640
|
CreateCompanyMemberDto,
|
|
4561
4641
|
CreateCompanyRoleDto,
|
|
4562
4642
|
CreateFreelancerDto,
|
|
4643
|
+
CreateLeadDto,
|
|
4563
4644
|
CreateQuestionDto,
|
|
4564
4645
|
CreateRatingDto,
|
|
4565
4646
|
CreateSubAdminDto,
|
|
@@ -4626,6 +4707,8 @@ export {
|
|
|
4626
4707
|
JobStatusEnum,
|
|
4627
4708
|
JobTCPAdapter,
|
|
4628
4709
|
KindOfHire,
|
|
4710
|
+
LEAD_PATTERN,
|
|
4711
|
+
Lead,
|
|
4629
4712
|
LoginDto,
|
|
4630
4713
|
LogoutDto,
|
|
4631
4714
|
ModeOfHire,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum CategoryEmumDto {
|
|
2
|
+
BUSINESS = "BUSINESS",
|
|
3
|
+
FREELANCEER = "FREELANCEER"
|
|
4
|
+
}
|
|
5
|
+
export declare class CreateLeadDto {
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
mobileCode: string;
|
|
9
|
+
mobile: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
category: CategoryEmumDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-lead.dto';
|