@experts_hub/shared 1.0.326 → 1.0.329
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/calendly-meeting.entity.d.ts +35 -0
- package/dist/entities/freelancer-f2f-interview.entity.d.ts +20 -0
- package/dist/entities/freelancer-profile.entity.d.ts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -45
- package/dist/index.mjs +11 -2
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { FreelancerF2FInterview } from './freelancer-f2f-interview.entity';
|
|
3
|
+
export declare enum CalendlyMeetingStatus {
|
|
4
|
+
PENDING = "PENDING",
|
|
5
|
+
CONFIRMED = "CONFIRMED",
|
|
6
|
+
CANCELED = "CANCELED",
|
|
7
|
+
COMPLETED = "COMPLETED"
|
|
8
|
+
}
|
|
9
|
+
export declare class CalendlyMeeting extends BaseEntity {
|
|
10
|
+
freelancerF2FInterview: FreelancerF2FInterview;
|
|
11
|
+
userId: number;
|
|
12
|
+
calendlyEventId: string;
|
|
13
|
+
scheduledEventId: string;
|
|
14
|
+
eventName: string;
|
|
15
|
+
eventLocation: string;
|
|
16
|
+
inviteeEmail: string;
|
|
17
|
+
inviteeName: string;
|
|
18
|
+
startTime: Date;
|
|
19
|
+
endTime: Date;
|
|
20
|
+
timezone: string;
|
|
21
|
+
status: CalendlyMeetingStatus;
|
|
22
|
+
active: boolean;
|
|
23
|
+
cancelledAt: Date;
|
|
24
|
+
cancelReason: string;
|
|
25
|
+
notes: string;
|
|
26
|
+
isRescheduled: boolean;
|
|
27
|
+
rescheduleUrl: string;
|
|
28
|
+
rescheduledFromId: string;
|
|
29
|
+
questionsAndAnswers: Array<{
|
|
30
|
+
question: string;
|
|
31
|
+
answer: string;
|
|
32
|
+
}>;
|
|
33
|
+
rawWebhookData: any;
|
|
34
|
+
isFromWebhook: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
import { CalendlyMeeting, CalendlyMeetingStatus } from './calendly-meeting.entity';
|
|
3
|
+
export declare class FreelancerF2FInterview extends BaseEntity {
|
|
4
|
+
calendlyMeeting: CalendlyMeeting;
|
|
5
|
+
calendlyMeetingId: number;
|
|
6
|
+
clientId: number;
|
|
7
|
+
freelancerId: number;
|
|
8
|
+
meetingZoomLink: string;
|
|
9
|
+
meetingId: string;
|
|
10
|
+
meetingPasscode: string;
|
|
11
|
+
rescheduleUrl: string;
|
|
12
|
+
isRescheduled: boolean;
|
|
13
|
+
status: CalendlyMeetingStatus;
|
|
14
|
+
cancelledAt: Date;
|
|
15
|
+
cancelReason: string;
|
|
16
|
+
rescheduledAt: Date;
|
|
17
|
+
isCompleted: boolean;
|
|
18
|
+
meetingStartTime: Date;
|
|
19
|
+
meetingEndTime: Date;
|
|
20
|
+
}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -934,7 +934,7 @@ __decorateClass([
|
|
|
934
934
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
935
935
|
|
|
936
936
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
937
|
-
var
|
|
937
|
+
var import_class_transformer = require("class-transformer");
|
|
938
938
|
var import_class_validator27 = require("class-validator");
|
|
939
939
|
var UpdateSubAdminDto = class {
|
|
940
940
|
};
|
|
@@ -958,7 +958,7 @@ __decorateClass([
|
|
|
958
958
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
959
959
|
__decorateClass([
|
|
960
960
|
(0, import_class_validator27.IsOptional)(),
|
|
961
|
-
(0,
|
|
961
|
+
(0, import_class_transformer.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
962
962
|
(0, import_class_validator27.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
963
963
|
(0, import_class_validator27.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
964
964
|
(0, import_class_validator27.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -1092,7 +1092,7 @@ var JOB_PATTERN = {
|
|
|
1092
1092
|
|
|
1093
1093
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1094
1094
|
var import_class_validator31 = require("class-validator");
|
|
1095
|
-
var
|
|
1095
|
+
var import_class_transformer2 = require("class-transformer");
|
|
1096
1096
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1097
1097
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
1098
1098
|
JobLocation2["REMOTE"] = "REMOTE";
|
|
@@ -1112,7 +1112,7 @@ var JobBasicInformationDto = class {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
__decorateClass([
|
|
1114
1114
|
(0, import_class_validator31.IsOptional)(),
|
|
1115
|
-
(0,
|
|
1115
|
+
(0, import_class_transformer2.Type)(() => Boolean)
|
|
1116
1116
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1117
1117
|
__decorateClass([
|
|
1118
1118
|
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter job role" }),
|
|
@@ -1127,13 +1127,13 @@ __decorateClass([
|
|
|
1127
1127
|
(0, import_class_validator31.IsArray)({ message: "Skills must be an array" }),
|
|
1128
1128
|
(0, import_class_validator31.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1129
1129
|
(0, import_class_validator31.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1130
|
-
(0,
|
|
1130
|
+
(0, import_class_transformer2.Type)(() => String)
|
|
1131
1131
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1132
1132
|
__decorateClass([
|
|
1133
1133
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1134
1134
|
(0, import_class_validator31.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1135
1135
|
(0, import_class_validator31.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1136
|
-
(0,
|
|
1136
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1137
1137
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1138
1138
|
__decorateClass([
|
|
1139
1139
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1146,17 +1146,17 @@ __decorateClass([
|
|
|
1146
1146
|
__decorateClass([
|
|
1147
1147
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1148
1148
|
(0, import_class_validator31.IsNumber)({}, { message: "Country id must be a number" }),
|
|
1149
|
-
(0,
|
|
1149
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1150
1150
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1151
1151
|
__decorateClass([
|
|
1152
1152
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1153
1153
|
(0, import_class_validator31.IsNumber)({}, { message: "State id must be a number" }),
|
|
1154
|
-
(0,
|
|
1154
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1155
1155
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1156
1156
|
__decorateClass([
|
|
1157
1157
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1158
1158
|
(0, import_class_validator31.IsNumber)({}, { message: "City id must be a number" }),
|
|
1159
|
-
(0,
|
|
1159
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1160
1160
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1161
1161
|
__decorateClass([
|
|
1162
1162
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1174,13 +1174,13 @@ __decorateClass([
|
|
|
1174
1174
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1175
1175
|
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1176
1176
|
(0, import_class_validator31.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1177
|
-
(0,
|
|
1177
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1178
1178
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1179
1179
|
__decorateClass([
|
|
1180
1180
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1181
1181
|
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1182
1182
|
(0, import_class_validator31.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1183
|
-
(0,
|
|
1183
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1184
1184
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1185
1185
|
__decorateClass([
|
|
1186
1186
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -2063,6 +2063,9 @@ __decorateClass([
|
|
|
2063
2063
|
__decorateClass([
|
|
2064
2064
|
(0, import_typeorm8.Column)({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
2065
2065
|
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
2066
|
+
__decorateClass([
|
|
2067
|
+
(0, import_typeorm8.Column)({ name: "is_followed_on_linkedin", type: "boolean", default: false })
|
|
2068
|
+
], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
|
|
2066
2069
|
FreelancerProfile = __decorateClass([
|
|
2067
2070
|
(0, import_typeorm8.Entity)("freelancer_profiles")
|
|
2068
2071
|
], FreelancerProfile);
|
|
@@ -3613,6 +3616,12 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3613
3616
|
return Provider2;
|
|
3614
3617
|
})(Provider || {});
|
|
3615
3618
|
var User = class extends BaseEntity {
|
|
3619
|
+
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3620
|
+
// calendlyMeetings: CalendlyMeeting[];
|
|
3621
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3622
|
+
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3623
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3624
|
+
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3616
3625
|
};
|
|
3617
3626
|
__decorateClass([
|
|
3618
3627
|
(0, import_typeorm42.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
@@ -3943,7 +3952,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3943
3952
|
|
|
3944
3953
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3945
3954
|
var import_class_validator44 = require("class-validator");
|
|
3946
|
-
var
|
|
3955
|
+
var import_class_transformer3 = require("class-transformer");
|
|
3947
3956
|
var ExperienceDto = class {
|
|
3948
3957
|
};
|
|
3949
3958
|
__decorateClass([
|
|
@@ -3971,7 +3980,7 @@ var FreelancerExperienceDto = class {
|
|
|
3971
3980
|
__decorateClass([
|
|
3972
3981
|
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
3973
3982
|
(0, import_class_validator44.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3974
|
-
(0,
|
|
3983
|
+
(0, import_class_transformer3.Type)(() => ExperienceDto)
|
|
3975
3984
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3976
3985
|
|
|
3977
3986
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -4034,7 +4043,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4034
4043
|
|
|
4035
4044
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4036
4045
|
var import_class_validator48 = require("class-validator");
|
|
4037
|
-
var
|
|
4046
|
+
var import_class_transformer4 = require("class-transformer");
|
|
4038
4047
|
var EducationDto = class {
|
|
4039
4048
|
};
|
|
4040
4049
|
__decorateClass([
|
|
@@ -4058,7 +4067,7 @@ __decorateClass([
|
|
|
4058
4067
|
(0, import_class_validator48.IsArray)(),
|
|
4059
4068
|
(0, import_class_validator48.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
4060
4069
|
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
4061
|
-
(0,
|
|
4070
|
+
(0, import_class_transformer4.Type)(() => EducationDto)
|
|
4062
4071
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
4063
4072
|
|
|
4064
4073
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -4069,7 +4078,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4069
4078
|
|
|
4070
4079
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4071
4080
|
var import_class_validator49 = require("class-validator");
|
|
4072
|
-
var
|
|
4081
|
+
var import_class_transformer5 = require("class-transformer");
|
|
4073
4082
|
var ProjectDto = class {
|
|
4074
4083
|
};
|
|
4075
4084
|
__decorateClass([
|
|
@@ -4124,12 +4133,12 @@ __decorateClass([
|
|
|
4124
4133
|
(0, import_class_validator49.IsArray)(),
|
|
4125
4134
|
(0, import_class_validator49.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
4126
4135
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
4127
|
-
(0,
|
|
4136
|
+
(0, import_class_transformer5.Type)(() => ProjectDto)
|
|
4128
4137
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
4129
4138
|
__decorateClass([
|
|
4130
4139
|
(0, import_class_validator49.IsArray)(),
|
|
4131
4140
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
4132
|
-
(0,
|
|
4141
|
+
(0, import_class_transformer5.Type)(() => CaseStudyDto)
|
|
4133
4142
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
4134
4143
|
|
|
4135
4144
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -4145,7 +4154,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4145
4154
|
|
|
4146
4155
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4147
4156
|
var import_class_validator50 = require("class-validator");
|
|
4148
|
-
var
|
|
4157
|
+
var import_class_transformer6 = require("class-transformer");
|
|
4149
4158
|
var FreelancerSkillDto = class {
|
|
4150
4159
|
constructor() {
|
|
4151
4160
|
this.coreSkills = [];
|
|
@@ -4156,19 +4165,19 @@ var FreelancerSkillDto = class {
|
|
|
4156
4165
|
__decorateClass([
|
|
4157
4166
|
(0, import_class_validator50.IsOptional)(),
|
|
4158
4167
|
(0, import_class_validator50.IsArray)(),
|
|
4159
|
-
(0,
|
|
4168
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4160
4169
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4161
4170
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4162
4171
|
__decorateClass([
|
|
4163
4172
|
(0, import_class_validator50.IsOptional)(),
|
|
4164
4173
|
(0, import_class_validator50.IsArray)(),
|
|
4165
|
-
(0,
|
|
4174
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4166
4175
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4167
4176
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4168
4177
|
__decorateClass([
|
|
4169
4178
|
(0, import_class_validator50.IsOptional)(),
|
|
4170
4179
|
(0, import_class_validator50.IsArray)(),
|
|
4171
|
-
(0,
|
|
4180
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4172
4181
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4173
4182
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
4174
4183
|
|
|
@@ -4186,7 +4195,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
4186
4195
|
|
|
4187
4196
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
4188
4197
|
var import_class_validator51 = require("class-validator");
|
|
4189
|
-
var
|
|
4198
|
+
var import_class_transformer7 = require("class-transformer");
|
|
4190
4199
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4191
4200
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4192
4201
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4228,7 +4237,7 @@ __decorateClass([
|
|
|
4228
4237
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4229
4238
|
__decorateClass([
|
|
4230
4239
|
(0, import_class_validator51.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4231
|
-
(0,
|
|
4240
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4232
4241
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4233
4242
|
__decorateClass([
|
|
4234
4243
|
(0, import_class_validator51.IsEnum)(NatureOfWorkEnum, {
|
|
@@ -4240,7 +4249,7 @@ __decorateClass([
|
|
|
4240
4249
|
__decorateClass([
|
|
4241
4250
|
(0, import_class_validator51.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4242
4251
|
(0, import_class_validator51.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4243
|
-
(0,
|
|
4252
|
+
(0, import_class_transformer7.Type)(() => Number)
|
|
4244
4253
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4245
4254
|
__decorateClass([
|
|
4246
4255
|
(0, import_class_validator51.IsEnum)(ModeOfWorkEnum, {
|
|
@@ -4251,7 +4260,7 @@ __decorateClass([
|
|
|
4251
4260
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4252
4261
|
__decorateClass([
|
|
4253
4262
|
(0, import_class_validator51.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4254
|
-
(0,
|
|
4263
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4255
4264
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4256
4265
|
__decorateClass([
|
|
4257
4266
|
(0, import_class_validator51.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -4280,7 +4289,7 @@ __decorateClass([
|
|
|
4280
4289
|
|
|
4281
4290
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4282
4291
|
var import_class_validator52 = require("class-validator");
|
|
4283
|
-
var
|
|
4292
|
+
var import_class_transformer8 = require("class-transformer");
|
|
4284
4293
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4285
4294
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4286
4295
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4314,7 +4323,7 @@ __decorateClass([
|
|
|
4314
4323
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4315
4324
|
__decorateClass([
|
|
4316
4325
|
(0, import_class_validator52.IsOptional)(),
|
|
4317
|
-
(0,
|
|
4326
|
+
(0, import_class_transformer8.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4318
4327
|
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4319
4328
|
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4320
4329
|
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4324,7 +4333,7 @@ __decorateClass([
|
|
|
4324
4333
|
__decorateClass([
|
|
4325
4334
|
(0, import_class_validator52.IsOptional)(),
|
|
4326
4335
|
(0, import_class_validator52.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4327
|
-
(0,
|
|
4336
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4328
4337
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4329
4338
|
__decorateClass([
|
|
4330
4339
|
(0, import_class_validator52.IsOptional)(),
|
|
@@ -4338,7 +4347,7 @@ __decorateClass([
|
|
|
4338
4347
|
(0, import_class_validator52.IsOptional)(),
|
|
4339
4348
|
(0, import_class_validator52.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4340
4349
|
(0, import_class_validator52.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4341
|
-
(0,
|
|
4350
|
+
(0, import_class_transformer8.Type)(() => Number)
|
|
4342
4351
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4343
4352
|
__decorateClass([
|
|
4344
4353
|
(0, import_class_validator52.IsOptional)(),
|
|
@@ -4351,7 +4360,7 @@ __decorateClass([
|
|
|
4351
4360
|
__decorateClass([
|
|
4352
4361
|
(0, import_class_validator52.IsOptional)(),
|
|
4353
4362
|
(0, import_class_validator52.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4354
|
-
(0,
|
|
4363
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4355
4364
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4356
4365
|
__decorateClass([
|
|
4357
4366
|
(0, import_class_validator52.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -4470,7 +4479,7 @@ __decorateClass([
|
|
|
4470
4479
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4471
4480
|
|
|
4472
4481
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4473
|
-
var
|
|
4482
|
+
var import_class_transformer9 = require("class-transformer");
|
|
4474
4483
|
var import_class_validator55 = require("class-validator");
|
|
4475
4484
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4476
4485
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4500,7 +4509,7 @@ __decorateClass([
|
|
|
4500
4509
|
], UpdateClientDto.prototype, "email", 2);
|
|
4501
4510
|
__decorateClass([
|
|
4502
4511
|
(0, import_class_validator55.IsOptional)(),
|
|
4503
|
-
(0,
|
|
4512
|
+
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4504
4513
|
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4505
4514
|
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4506
4515
|
(0, import_class_validator55.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4634,7 +4643,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4634
4643
|
};
|
|
4635
4644
|
|
|
4636
4645
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4637
|
-
var
|
|
4646
|
+
var import_class_transformer10 = require("class-transformer");
|
|
4638
4647
|
var import_class_validator59 = require("class-validator");
|
|
4639
4648
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4640
4649
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -4661,7 +4670,7 @@ __decorateClass([
|
|
|
4661
4670
|
__decorateClass([
|
|
4662
4671
|
(0, import_class_validator59.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4663
4672
|
(0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4664
|
-
(0,
|
|
4673
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4665
4674
|
(0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4666
4675
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4667
4676
|
__decorateClass([
|
|
@@ -4691,11 +4700,11 @@ __decorateClass([
|
|
|
4691
4700
|
(0, import_class_validator59.IsNotEmpty)({ message: "Currency is required." })
|
|
4692
4701
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4693
4702
|
__decorateClass([
|
|
4694
|
-
(0,
|
|
4703
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4695
4704
|
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4696
4705
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4697
4706
|
__decorateClass([
|
|
4698
|
-
(0,
|
|
4707
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4699
4708
|
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4700
4709
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4701
4710
|
__decorateClass([
|
|
@@ -4722,7 +4731,7 @@ __decorateClass([
|
|
|
4722
4731
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4723
4732
|
|
|
4724
4733
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4725
|
-
var
|
|
4734
|
+
var import_class_transformer11 = require("class-transformer");
|
|
4726
4735
|
var import_class_validator60 = require("class-validator");
|
|
4727
4736
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4728
4737
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -4749,7 +4758,7 @@ __decorateClass([
|
|
|
4749
4758
|
__decorateClass([
|
|
4750
4759
|
(0, import_class_validator60.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4751
4760
|
(0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4752
|
-
(0,
|
|
4761
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4753
4762
|
(0, import_class_validator60.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4754
4763
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4755
4764
|
__decorateClass([
|
|
@@ -4779,11 +4788,11 @@ __decorateClass([
|
|
|
4779
4788
|
(0, import_class_validator60.IsNotEmpty)({ message: "Currency is required." })
|
|
4780
4789
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4781
4790
|
__decorateClass([
|
|
4782
|
-
(0,
|
|
4791
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4783
4792
|
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4784
4793
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4785
4794
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4795
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4787
4796
|
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4788
4797
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4789
4798
|
__decorateClass([
|
|
@@ -4915,7 +4924,7 @@ var INTERVIEW_INVITE_PATTERN = {
|
|
|
4915
4924
|
|
|
4916
4925
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
4917
4926
|
var import_class_validator65 = require("class-validator");
|
|
4918
|
-
var
|
|
4927
|
+
var import_class_transformer12 = require("class-transformer");
|
|
4919
4928
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
4920
4929
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
4921
4930
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -4954,14 +4963,14 @@ __decorateClass([
|
|
|
4954
4963
|
(0, import_class_validator65.IsArray)({ message: "Existing candidates should be an array." }),
|
|
4955
4964
|
(0, import_class_validator65.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
4956
4965
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4957
|
-
(0,
|
|
4966
|
+
(0, import_class_transformer12.Type)(() => ExistingCandidateDto)
|
|
4958
4967
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
4959
4968
|
__decorateClass([
|
|
4960
4969
|
(0, import_class_validator65.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
4961
4970
|
(0, import_class_validator65.IsArray)({ message: "New candidates should be an array." }),
|
|
4962
4971
|
(0, import_class_validator65.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
4963
4972
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4964
|
-
(0,
|
|
4973
|
+
(0, import_class_transformer12.Type)(() => NewCandidateDto)
|
|
4965
4974
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
4966
4975
|
var InterviewInviteDto = class {
|
|
4967
4976
|
};
|
|
@@ -4970,7 +4979,7 @@ __decorateClass([
|
|
|
4970
4979
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
4971
4980
|
__decorateClass([
|
|
4972
4981
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4973
|
-
(0,
|
|
4982
|
+
(0, import_class_transformer12.Type)(() => CandidatesDto)
|
|
4974
4983
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
4975
4984
|
|
|
4976
4985
|
// src/adapters/tcp/user.tcp.adapter.ts
|
package/dist/index.mjs
CHANGED
|
@@ -755,7 +755,7 @@ __decorateClass([
|
|
|
755
755
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
756
756
|
|
|
757
757
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
758
|
-
import { Transform } from "class-transformer
|
|
758
|
+
import { Transform } from "class-transformer";
|
|
759
759
|
import { IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional5, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
760
760
|
var UpdateSubAdminDto = class {
|
|
761
761
|
};
|
|
@@ -1994,6 +1994,9 @@ __decorateClass([
|
|
|
1994
1994
|
__decorateClass([
|
|
1995
1995
|
Column8({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
1996
1996
|
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
1997
|
+
__decorateClass([
|
|
1998
|
+
Column8({ name: "is_followed_on_linkedin", type: "boolean", default: false })
|
|
1999
|
+
], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
|
|
1997
2000
|
FreelancerProfile = __decorateClass([
|
|
1998
2001
|
Entity7("freelancer_profiles")
|
|
1999
2002
|
], FreelancerProfile);
|
|
@@ -3668,6 +3671,12 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3668
3671
|
return Provider2;
|
|
3669
3672
|
})(Provider || {});
|
|
3670
3673
|
var User = class extends BaseEntity {
|
|
3674
|
+
// @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3675
|
+
// calendlyMeetings: CalendlyMeeting[];
|
|
3676
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3677
|
+
// clientF2FInterviews: FreelancerF2FInterview[];
|
|
3678
|
+
// @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3679
|
+
// freelancerF2FInterviews: FreelancerF2FInterview[];
|
|
3671
3680
|
};
|
|
3672
3681
|
__decorateClass([
|
|
3673
3682
|
Column42({ name: "unique_id", type: "varchar", unique: true })
|
|
@@ -4570,7 +4579,7 @@ __decorateClass([
|
|
|
4570
4579
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4571
4580
|
|
|
4572
4581
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4573
|
-
import { Transform as Transform3 } from "class-transformer
|
|
4582
|
+
import { Transform as Transform3 } from "class-transformer";
|
|
4574
4583
|
import {
|
|
4575
4584
|
IsNotEmpty as IsNotEmpty46,
|
|
4576
4585
|
IsEmail as IsEmail13,
|