@experts_hub/shared 1.0.146 → 1.0.148
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/freelancer-casestudy.entity.d.ts +1 -1
- package/dist/index.d.mts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +349 -341
- package/dist/index.mjs +226 -212
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/set-password.dto.d.ts +4 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/dist/modules/company-member/company-member.interface.d.ts +1 -0
- package/dist/modules/otp/pattern/pattern.d.ts +1 -0
- package/dist/modules/user/freelancer-project/dto/index.d.ts +0 -1
- package/dist/modules/user/freelancer-project/dto/update-freelancer-project.dto.d.ts +13 -6
- package/dist/modules/user/freelancer-project/pattern/pattern.d.ts +1 -5
- package/package.json +1 -1
- package/dist/modules/user/freelancer-project/dto/update-freelancer-casestudy.dto.d.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -45,18 +45,20 @@ __export(index_exports, {
|
|
|
45
45
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
46
46
|
CompanyProfile: () => CompanyProfile,
|
|
47
47
|
CompanyRole: () => CompanyRole,
|
|
48
|
+
CreateCaseStudyDto: () => CreateCaseStudyDto,
|
|
48
49
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
49
50
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
50
51
|
CreateEducationDto: () => CreateEducationDto,
|
|
51
52
|
CreateExperienceDto: () => CreateExperienceDto,
|
|
52
53
|
CreateFreelancerEducationDto: () => CreateFreelancerEducationDto,
|
|
53
54
|
CreateFreelancerExperienceDto: () => CreateFreelancerExperienceDto,
|
|
55
|
+
CreateFreelancerProjectDto: () => CreateFreelancerProjectDto,
|
|
56
|
+
CreateProjectDto: () => CreateProjectDto,
|
|
54
57
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
55
58
|
CreateRatingDto: () => CreateRatingDto,
|
|
56
59
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
57
60
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
58
61
|
EmploymentType: () => EmploymentType,
|
|
59
|
-
FREELANCER_CASESTUDY_PATTERN: () => FREELANCER_CASESTUDY_PATTERN,
|
|
60
62
|
FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
|
|
61
63
|
FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
|
|
62
64
|
FREELANCER_PROJECT_PATTERN: () => FREELANCER_PROJECT_PATTERN,
|
|
@@ -127,6 +129,7 @@ __export(index_exports, {
|
|
|
127
129
|
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
128
130
|
ScopeEnum: () => ScopeEnum,
|
|
129
131
|
SenseloafLog: () => SenseloafLog,
|
|
132
|
+
SetPasswordDto: () => SetPasswordDto,
|
|
130
133
|
Skill: () => Skill,
|
|
131
134
|
Step: () => Step,
|
|
132
135
|
SystemPreference: () => SystemPreference,
|
|
@@ -135,18 +138,14 @@ __export(index_exports, {
|
|
|
135
138
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
136
139
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
137
140
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
138
|
-
UpdateCaseStudyDto: () => UpdateCaseStudyDto,
|
|
139
141
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
140
142
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
141
143
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
142
144
|
UpdateEducationDto: () => UpdateEducationDto,
|
|
143
145
|
UpdateExperienceDto: () => UpdateExperienceDto,
|
|
144
|
-
UpdateFreelancerCaseStudyDto: () => UpdateFreelancerCaseStudyDto,
|
|
145
146
|
UpdateFreelancerEducationDto: () => UpdateFreelancerEducationDto,
|
|
146
147
|
UpdateFreelancerExperienceDto: () => UpdateFreelancerExperienceDto,
|
|
147
148
|
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
148
|
-
UpdateFreelancerProjectDto: () => UpdateFreelancerProjectDto,
|
|
149
|
-
UpdateProjectDto: () => UpdateProjectDto,
|
|
150
149
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
151
150
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
152
151
|
User: () => User,
|
|
@@ -165,7 +164,8 @@ var AUTHENTICATION_PATTERN = {
|
|
|
165
164
|
fetchSessions: "fetch.sessions",
|
|
166
165
|
revokeSession: "revoke.session",
|
|
167
166
|
handleForgotPassword: "handle.forgot.password",
|
|
168
|
-
handleResetPassword: "handle.reset.password"
|
|
167
|
+
handleResetPassword: "handle.reset.password",
|
|
168
|
+
handleSetPassword: "handle.set.password"
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
// src/modules/authentication/dto/login.dto.ts
|
|
@@ -253,8 +253,25 @@ __decorateClass([
|
|
|
253
253
|
})
|
|
254
254
|
], ResetPasswordDto.prototype, "scope", 2);
|
|
255
255
|
|
|
256
|
+
// src/modules/authentication/dto/set-password.dto.ts
|
|
257
|
+
var import_class_validator6 = require("class-validator");
|
|
258
|
+
var SetPasswordDto = class {
|
|
259
|
+
};
|
|
260
|
+
__decorateClass([
|
|
261
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter token." })
|
|
262
|
+
], SetPasswordDto.prototype, "token", 2);
|
|
263
|
+
__decorateClass([
|
|
264
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter password." }),
|
|
265
|
+
(0, import_class_validator6.MinLength)(6),
|
|
266
|
+
(0, import_class_validator6.MaxLength)(32),
|
|
267
|
+
(0, import_class_validator6.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
268
|
+
message: "Password must include letters, numbers and symbols."
|
|
269
|
+
})
|
|
270
|
+
], SetPasswordDto.prototype, "password", 2);
|
|
271
|
+
|
|
256
272
|
// src/modules/otp/pattern/pattern.ts
|
|
257
273
|
var OTP_PATTERN = {
|
|
274
|
+
handleGuestSendOtp: "handle.guest.send.otp",
|
|
258
275
|
handleSendOtp: "handle.send.otp",
|
|
259
276
|
handleVerifyOtp: "handle.verify.otp"
|
|
260
277
|
};
|
|
@@ -272,13 +289,13 @@ var ONBOARDING_PATTERN = {
|
|
|
272
289
|
};
|
|
273
290
|
|
|
274
291
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
275
|
-
var
|
|
292
|
+
var import_class_validator8 = require("class-validator");
|
|
276
293
|
|
|
277
294
|
// src/decorators/match.decorator.ts
|
|
278
|
-
var
|
|
295
|
+
var import_class_validator7 = require("class-validator");
|
|
279
296
|
function Match(property, validationOptions) {
|
|
280
297
|
return function(object, propertyName) {
|
|
281
|
-
(0,
|
|
298
|
+
(0, import_class_validator7.registerDecorator)({
|
|
282
299
|
name: "Match",
|
|
283
300
|
target: object.constructor,
|
|
284
301
|
propertyName,
|
|
@@ -314,77 +331,77 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
314
331
|
}
|
|
315
332
|
};
|
|
316
333
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
317
|
-
(0,
|
|
334
|
+
(0, import_class_validator7.ValidatorConstraint)({ async: false })
|
|
318
335
|
], IfscOrOtherFieldsConstraint);
|
|
319
336
|
|
|
320
337
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
321
338
|
var FreelancerCreateAccountDto = class {
|
|
322
339
|
};
|
|
323
340
|
__decorateClass([
|
|
324
|
-
(0,
|
|
325
|
-
(0,
|
|
341
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter full name." }),
|
|
342
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid full name." })
|
|
326
343
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
327
344
|
__decorateClass([
|
|
328
|
-
(0,
|
|
329
|
-
(0,
|
|
345
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter email." }),
|
|
346
|
+
(0, import_class_validator8.IsEmail)()
|
|
330
347
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
331
348
|
__decorateClass([
|
|
332
|
-
(0,
|
|
333
|
-
(0,
|
|
349
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
350
|
+
(0, import_class_validator8.Matches)(/^\d+$/, { message: "Mobile code must be numeric" })
|
|
334
351
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
335
352
|
__decorateClass([
|
|
336
|
-
(0,
|
|
337
|
-
(0,
|
|
353
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
354
|
+
(0, import_class_validator8.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
338
355
|
message: "Please enter a valid US mobile number"
|
|
339
356
|
})
|
|
340
357
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
341
358
|
__decorateClass([
|
|
342
|
-
(0,
|
|
343
|
-
(0,
|
|
344
|
-
(0,
|
|
345
|
-
(0,
|
|
359
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter password." }),
|
|
360
|
+
(0, import_class_validator8.MinLength)(6),
|
|
361
|
+
(0, import_class_validator8.MaxLength)(32),
|
|
362
|
+
(0, import_class_validator8.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
346
363
|
message: "Password must include letters, numbers and symbols."
|
|
347
364
|
})
|
|
348
365
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
349
366
|
__decorateClass([
|
|
350
|
-
(0,
|
|
367
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
351
368
|
Match("password", { message: "Passwords do not match" })
|
|
352
369
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
353
370
|
|
|
354
371
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
355
|
-
var
|
|
372
|
+
var import_class_validator9 = require("class-validator");
|
|
356
373
|
var FreelancerUploadResumeDto = class {
|
|
357
374
|
};
|
|
358
375
|
__decorateClass([
|
|
359
|
-
(0,
|
|
360
|
-
(0,
|
|
376
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
377
|
+
(0, import_class_validator9.IsUUID)()
|
|
361
378
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
362
379
|
|
|
363
380
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
364
|
-
var
|
|
381
|
+
var import_class_validator10 = require("class-validator");
|
|
365
382
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
366
383
|
};
|
|
367
384
|
__decorateClass([
|
|
368
|
-
(0,
|
|
369
|
-
(0,
|
|
385
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
386
|
+
(0, import_class_validator10.IsUUID)()
|
|
370
387
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
371
388
|
__decorateClass([
|
|
372
|
-
(0,
|
|
373
|
-
(0,
|
|
389
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please select development flag." }),
|
|
390
|
+
(0, import_class_validator10.IsBoolean)()
|
|
374
391
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
375
392
|
|
|
376
393
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
377
|
-
var
|
|
394
|
+
var import_class_validator11 = require("class-validator");
|
|
378
395
|
var FreelancerProfileQuestionDto = class {
|
|
379
396
|
};
|
|
380
397
|
__decorateClass([
|
|
381
|
-
(0,
|
|
382
|
-
(0,
|
|
398
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
399
|
+
(0, import_class_validator11.IsUUID)()
|
|
383
400
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
384
401
|
__decorateClass([
|
|
385
|
-
(0,
|
|
386
|
-
(0,
|
|
387
|
-
(0,
|
|
402
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
403
|
+
(0, import_class_validator11.IsString)(),
|
|
404
|
+
(0, import_class_validator11.IsIn)([
|
|
388
405
|
"natureOfWork",
|
|
389
406
|
"expectedHourlyCompensation",
|
|
390
407
|
"modeOfWork",
|
|
@@ -393,51 +410,51 @@ __decorateClass([
|
|
|
393
410
|
])
|
|
394
411
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
395
412
|
__decorateClass([
|
|
396
|
-
(0,
|
|
413
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter answer." })
|
|
397
414
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
398
415
|
|
|
399
416
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
400
|
-
var
|
|
417
|
+
var import_class_validator12 = require("class-validator");
|
|
401
418
|
var FreelancerWorkShowcaseDto = class {
|
|
402
419
|
};
|
|
403
420
|
__decorateClass([
|
|
404
|
-
(0,
|
|
405
|
-
(0,
|
|
421
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
422
|
+
(0, import_class_validator12.IsUUID)()
|
|
406
423
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
407
424
|
__decorateClass([
|
|
408
|
-
(0,
|
|
409
|
-
(0,
|
|
410
|
-
(0,
|
|
425
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
426
|
+
(0, import_class_validator12.IsString)(),
|
|
427
|
+
(0, import_class_validator12.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
411
428
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
412
429
|
__decorateClass([
|
|
413
|
-
(0,
|
|
414
|
-
(0,
|
|
430
|
+
(0, import_class_validator12.IsOptional)(),
|
|
431
|
+
(0, import_class_validator12.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
415
432
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
416
433
|
__decorateClass([
|
|
417
|
-
(0,
|
|
418
|
-
(0,
|
|
434
|
+
(0, import_class_validator12.IsOptional)(),
|
|
435
|
+
(0, import_class_validator12.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
419
436
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
420
437
|
__decorateClass([
|
|
421
|
-
(0,
|
|
422
|
-
(0,
|
|
438
|
+
(0, import_class_validator12.IsOptional)(),
|
|
439
|
+
(0, import_class_validator12.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
423
440
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
424
441
|
__decorateClass([
|
|
425
|
-
(0,
|
|
426
|
-
(0,
|
|
442
|
+
(0, import_class_validator12.IsOptional)(),
|
|
443
|
+
(0, import_class_validator12.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
427
444
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
428
445
|
|
|
429
446
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
430
|
-
var
|
|
447
|
+
var import_class_validator13 = require("class-validator");
|
|
431
448
|
var ClientProfileQuestionDto = class {
|
|
432
449
|
};
|
|
433
450
|
__decorateClass([
|
|
434
|
-
(0,
|
|
435
|
-
(0,
|
|
451
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
452
|
+
(0, import_class_validator13.IsUUID)()
|
|
436
453
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
437
454
|
__decorateClass([
|
|
438
|
-
(0,
|
|
439
|
-
(0,
|
|
440
|
-
(0,
|
|
455
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
456
|
+
(0, import_class_validator13.IsString)(),
|
|
457
|
+
(0, import_class_validator13.IsIn)([
|
|
441
458
|
"skills",
|
|
442
459
|
"requiredFreelancer",
|
|
443
460
|
"kindOfHiring",
|
|
@@ -446,39 +463,39 @@ __decorateClass([
|
|
|
446
463
|
])
|
|
447
464
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
448
465
|
__decorateClass([
|
|
449
|
-
(0,
|
|
466
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter answer." })
|
|
450
467
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
451
468
|
|
|
452
469
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
453
|
-
var
|
|
470
|
+
var import_class_validator14 = require("class-validator");
|
|
454
471
|
var ClientCreateAccountDto = class {
|
|
455
472
|
};
|
|
456
473
|
__decorateClass([
|
|
457
|
-
(0,
|
|
458
|
-
(0,
|
|
474
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." }),
|
|
475
|
+
(0, import_class_validator14.IsString)({ message: "Please enter valid first name." })
|
|
459
476
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
460
477
|
__decorateClass([
|
|
461
|
-
(0,
|
|
462
|
-
(0,
|
|
478
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." }),
|
|
479
|
+
(0, import_class_validator14.IsString)({ message: "Please enter valid last name." })
|
|
463
480
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
464
481
|
__decorateClass([
|
|
465
|
-
(0,
|
|
466
|
-
(0,
|
|
482
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." }),
|
|
483
|
+
(0, import_class_validator14.IsEmail)()
|
|
467
484
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
468
485
|
__decorateClass([
|
|
469
|
-
(0,
|
|
470
|
-
(0,
|
|
486
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter company name." }),
|
|
487
|
+
(0, import_class_validator14.IsString)({ message: "Please enter valid company name." })
|
|
471
488
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
472
489
|
__decorateClass([
|
|
473
|
-
(0,
|
|
474
|
-
(0,
|
|
475
|
-
(0,
|
|
476
|
-
(0,
|
|
490
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter password." }),
|
|
491
|
+
(0, import_class_validator14.MinLength)(6),
|
|
492
|
+
(0, import_class_validator14.MaxLength)(32),
|
|
493
|
+
(0, import_class_validator14.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
477
494
|
message: "Password must include letters, numbers and symbols."
|
|
478
495
|
})
|
|
479
496
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
480
497
|
__decorateClass([
|
|
481
|
-
(0,
|
|
498
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
482
499
|
Match("password", { message: "Passwords do not match" })
|
|
483
500
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
484
501
|
|
|
@@ -500,75 +517,75 @@ var SUBADMIN_PATTERN = {
|
|
|
500
517
|
};
|
|
501
518
|
|
|
502
519
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
503
|
-
var
|
|
520
|
+
var import_class_validator15 = require("class-validator");
|
|
504
521
|
var CreateSubAdminDto = class {
|
|
505
522
|
};
|
|
506
523
|
__decorateClass([
|
|
507
|
-
(0,
|
|
524
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter unique id." })
|
|
508
525
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
509
526
|
__decorateClass([
|
|
510
|
-
(0,
|
|
527
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter username." })
|
|
511
528
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
512
529
|
__decorateClass([
|
|
513
|
-
(0,
|
|
530
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter first name." })
|
|
514
531
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
515
532
|
__decorateClass([
|
|
516
|
-
(0,
|
|
533
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter last name." })
|
|
517
534
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
518
535
|
__decorateClass([
|
|
519
|
-
(0,
|
|
536
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter email." })
|
|
520
537
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
521
538
|
__decorateClass([
|
|
522
|
-
(0,
|
|
539
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
523
540
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
524
541
|
__decorateClass([
|
|
525
|
-
(0,
|
|
542
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter the password." })
|
|
526
543
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
527
544
|
__decorateClass([
|
|
528
|
-
(0,
|
|
545
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter account type." })
|
|
529
546
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
530
547
|
__decorateClass([
|
|
531
|
-
(0,
|
|
548
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter account status." })
|
|
532
549
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
533
550
|
|
|
534
551
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
535
|
-
var
|
|
552
|
+
var import_class_validator16 = require("class-validator");
|
|
536
553
|
var UpdateSubAdminAccountStatusDto = class {
|
|
537
554
|
};
|
|
538
555
|
__decorateClass([
|
|
539
|
-
(0,
|
|
556
|
+
(0, import_class_validator16.IsString)()
|
|
540
557
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
541
558
|
|
|
542
559
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
543
|
-
var
|
|
560
|
+
var import_class_validator17 = require("class-validator");
|
|
544
561
|
var UpdateSubAdminDto = class {
|
|
545
562
|
};
|
|
546
563
|
__decorateClass([
|
|
547
|
-
(0,
|
|
564
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
|
|
548
565
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
549
566
|
__decorateClass([
|
|
550
|
-
(0,
|
|
567
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter username." })
|
|
551
568
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
552
569
|
__decorateClass([
|
|
553
|
-
(0,
|
|
570
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter first name." })
|
|
554
571
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
555
572
|
__decorateClass([
|
|
556
|
-
(0,
|
|
573
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter last name." })
|
|
557
574
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
558
575
|
__decorateClass([
|
|
559
|
-
(0,
|
|
576
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter email." })
|
|
560
577
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
561
578
|
__decorateClass([
|
|
562
|
-
(0,
|
|
579
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
563
580
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
564
581
|
__decorateClass([
|
|
565
|
-
(0,
|
|
582
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter the password." })
|
|
566
583
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
567
584
|
__decorateClass([
|
|
568
|
-
(0,
|
|
585
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter account type." })
|
|
569
586
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
570
587
|
__decorateClass([
|
|
571
|
-
(0,
|
|
588
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter account status." })
|
|
572
589
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
573
590
|
|
|
574
591
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -580,54 +597,54 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
580
597
|
};
|
|
581
598
|
|
|
582
599
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
583
|
-
var
|
|
600
|
+
var import_class_validator18 = require("class-validator");
|
|
584
601
|
var UpdateCompanyProfileDto = class {
|
|
585
602
|
};
|
|
586
603
|
__decorateClass([
|
|
587
|
-
(0,
|
|
588
|
-
(0,
|
|
589
|
-
(0,
|
|
604
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter company name." }),
|
|
605
|
+
(0, import_class_validator18.IsString)({ message: "Company name must be a string." }),
|
|
606
|
+
(0, import_class_validator18.Length)(2, 255, {
|
|
590
607
|
message: "Company name must be between 2 and 255 characters"
|
|
591
608
|
})
|
|
592
609
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
593
610
|
__decorateClass([
|
|
594
|
-
(0,
|
|
595
|
-
(0,
|
|
611
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
612
|
+
(0, import_class_validator18.IsUrl)({}, { message: "Invalid website URL format" })
|
|
596
613
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
597
614
|
__decorateClass([
|
|
598
|
-
(0,
|
|
599
|
-
(0,
|
|
600
|
-
(0,
|
|
615
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter company address." }),
|
|
616
|
+
(0, import_class_validator18.IsString)({ message: "Company address must be a string" }),
|
|
617
|
+
(0, import_class_validator18.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
601
618
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
602
619
|
__decorateClass([
|
|
603
|
-
(0,
|
|
604
|
-
(0,
|
|
620
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
621
|
+
(0, import_class_validator18.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
605
622
|
message: "Please enter a valid US phone number"
|
|
606
623
|
})
|
|
607
624
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
608
625
|
__decorateClass([
|
|
609
|
-
(0,
|
|
610
|
-
(0,
|
|
626
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter email." }),
|
|
627
|
+
(0, import_class_validator18.IsEmail)()
|
|
611
628
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
612
629
|
__decorateClass([
|
|
613
|
-
(0,
|
|
614
|
-
(0,
|
|
630
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
631
|
+
(0, import_class_validator18.IsString)({ message: "About company must be a string." })
|
|
615
632
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
616
633
|
|
|
617
634
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
618
|
-
var
|
|
635
|
+
var import_class_validator19 = require("class-validator");
|
|
619
636
|
var ClientChangePasswordDto = class {
|
|
620
637
|
};
|
|
621
638
|
__decorateClass([
|
|
622
|
-
(0,
|
|
623
|
-
(0,
|
|
639
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
640
|
+
(0, import_class_validator19.IsString)()
|
|
624
641
|
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
625
642
|
__decorateClass([
|
|
626
|
-
(0,
|
|
627
|
-
(0,
|
|
628
|
-
(0,
|
|
629
|
-
(0,
|
|
630
|
-
(0,
|
|
643
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
644
|
+
(0, import_class_validator19.IsString)(),
|
|
645
|
+
(0, import_class_validator19.MinLength)(6),
|
|
646
|
+
(0, import_class_validator19.MaxLength)(32),
|
|
647
|
+
(0, import_class_validator19.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
631
648
|
message: "New Password must include letters, numbers and symbols."
|
|
632
649
|
})
|
|
633
650
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -638,24 +655,24 @@ var QUESTION_PATTERN = {
|
|
|
638
655
|
};
|
|
639
656
|
|
|
640
657
|
// src/modules/question/dto/create-question.dto.ts
|
|
641
|
-
var
|
|
658
|
+
var import_class_validator20 = require("class-validator");
|
|
642
659
|
var CreateQuestionDto = class {
|
|
643
660
|
};
|
|
644
661
|
__decorateClass([
|
|
645
|
-
(0,
|
|
662
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter unique id." })
|
|
646
663
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
647
664
|
__decorateClass([
|
|
648
|
-
(0,
|
|
665
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter question." })
|
|
649
666
|
], CreateQuestionDto.prototype, "question", 2);
|
|
650
667
|
__decorateClass([
|
|
651
|
-
(0,
|
|
668
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
652
669
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
653
670
|
__decorateClass([
|
|
654
|
-
(0,
|
|
671
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter options." })
|
|
655
672
|
], CreateQuestionDto.prototype, "options", 2);
|
|
656
673
|
__decorateClass([
|
|
657
|
-
(0,
|
|
658
|
-
(0,
|
|
674
|
+
(0, import_class_validator20.IsOptional)(),
|
|
675
|
+
(0, import_class_validator20.IsBoolean)({ message: "Whether the question status active" })
|
|
659
676
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
660
677
|
|
|
661
678
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -680,7 +697,7 @@ var JOB_PATTERN = {
|
|
|
680
697
|
};
|
|
681
698
|
|
|
682
699
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
683
|
-
var
|
|
700
|
+
var import_class_validator21 = require("class-validator");
|
|
684
701
|
var import_class_transformer = require("class-transformer");
|
|
685
702
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
686
703
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -697,79 +714,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
697
714
|
var JobBasicInformationDto = class {
|
|
698
715
|
};
|
|
699
716
|
__decorateClass([
|
|
700
|
-
(0,
|
|
701
|
-
(0,
|
|
717
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter job role" }),
|
|
718
|
+
(0, import_class_validator21.IsString)({ message: "Job role must be a string" })
|
|
702
719
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
703
720
|
__decorateClass([
|
|
704
|
-
(0,
|
|
705
|
-
(0,
|
|
721
|
+
(0, import_class_validator21.IsOptional)(),
|
|
722
|
+
(0, import_class_validator21.IsString)({ message: "Note must be a string" })
|
|
706
723
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
707
724
|
__decorateClass([
|
|
708
|
-
(0,
|
|
709
|
-
(0,
|
|
710
|
-
(0,
|
|
725
|
+
(0, import_class_validator21.IsArray)({ message: "Skills must be an array" }),
|
|
726
|
+
(0, import_class_validator21.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
727
|
+
(0, import_class_validator21.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
711
728
|
(0, import_class_transformer.Type)(() => Number)
|
|
712
729
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
713
730
|
__decorateClass([
|
|
714
|
-
(0,
|
|
715
|
-
(0,
|
|
731
|
+
(0, import_class_validator21.IsNumber)({}, { message: "Openings must be a number" }),
|
|
732
|
+
(0, import_class_validator21.Min)(1, { message: "There must be at least 1 opening" }),
|
|
716
733
|
(0, import_class_transformer.Type)(() => Number)
|
|
717
734
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
718
735
|
__decorateClass([
|
|
719
|
-
(0,
|
|
736
|
+
(0, import_class_validator21.IsEnum)(JobLocation, {
|
|
720
737
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
721
738
|
", "
|
|
722
739
|
)}`
|
|
723
740
|
})
|
|
724
741
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
725
742
|
__decorateClass([
|
|
726
|
-
(0,
|
|
743
|
+
(0, import_class_validator21.IsEnum)(EmploymentType, {
|
|
727
744
|
message: `Type of employment must be one of: ${Object.values(
|
|
728
745
|
EmploymentType
|
|
729
746
|
).join(", ")}`
|
|
730
747
|
})
|
|
731
748
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
732
749
|
__decorateClass([
|
|
733
|
-
(0,
|
|
734
|
-
(0,
|
|
750
|
+
(0, import_class_validator21.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
751
|
+
(0, import_class_validator21.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
735
752
|
(0, import_class_transformer.Type)(() => Number)
|
|
736
753
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
737
754
|
__decorateClass([
|
|
738
|
-
(0,
|
|
739
|
-
(0,
|
|
755
|
+
(0, import_class_validator21.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
756
|
+
(0, import_class_validator21.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
740
757
|
(0, import_class_transformer.Type)(() => Number)
|
|
741
758
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
742
759
|
__decorateClass([
|
|
743
|
-
(0,
|
|
744
|
-
(0,
|
|
760
|
+
(0, import_class_validator21.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
761
|
+
(0, import_class_validator21.IsOptional)()
|
|
745
762
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
746
763
|
__decorateClass([
|
|
747
|
-
(0,
|
|
748
|
-
(0,
|
|
764
|
+
(0, import_class_validator21.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
765
|
+
(0, import_class_validator21.IsOptional)()
|
|
749
766
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
750
767
|
|
|
751
768
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
752
|
-
var
|
|
769
|
+
var import_class_validator22 = require("class-validator");
|
|
753
770
|
var JobAdditionalCommentDto = class {
|
|
754
771
|
};
|
|
755
772
|
__decorateClass([
|
|
756
|
-
(0,
|
|
757
|
-
(0,
|
|
758
|
-
(0,
|
|
773
|
+
(0, import_class_validator22.IsOptional)(),
|
|
774
|
+
(0, import_class_validator22.IsString)({ message: "Additional comment must be a string" }),
|
|
775
|
+
(0, import_class_validator22.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
759
776
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
760
777
|
|
|
761
778
|
// src/modules/job/dto/job-description.dto.ts
|
|
762
|
-
var
|
|
779
|
+
var import_class_validator23 = require("class-validator");
|
|
763
780
|
var JobDescriptionDto = class {
|
|
764
781
|
};
|
|
765
782
|
__decorateClass([
|
|
766
|
-
(0,
|
|
767
|
-
(0,
|
|
768
|
-
(0,
|
|
783
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter job description" }),
|
|
784
|
+
(0, import_class_validator23.IsString)({ message: "Description must be a string" }),
|
|
785
|
+
(0, import_class_validator23.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
769
786
|
], JobDescriptionDto.prototype, "description", 2);
|
|
770
787
|
|
|
771
788
|
// src/modules/job/dto/job-status.dto.ts
|
|
772
|
-
var
|
|
789
|
+
var import_class_validator24 = require("class-validator");
|
|
773
790
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
774
791
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
775
792
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -781,18 +798,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
781
798
|
var JobStatusDto = class {
|
|
782
799
|
};
|
|
783
800
|
__decorateClass([
|
|
784
|
-
(0,
|
|
785
|
-
(0,
|
|
801
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
802
|
+
(0, import_class_validator24.IsEnum)(JobStatus, {
|
|
786
803
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
787
804
|
})
|
|
788
805
|
], JobStatusDto.prototype, "status", 2);
|
|
789
806
|
|
|
790
807
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
791
|
-
var
|
|
808
|
+
var import_class_validator25 = require("class-validator");
|
|
792
809
|
var JobIdParamDto = class {
|
|
793
810
|
};
|
|
794
811
|
__decorateClass([
|
|
795
|
-
(0,
|
|
812
|
+
(0, import_class_validator25.IsUUID)("4", {
|
|
796
813
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
797
814
|
})
|
|
798
815
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -806,25 +823,25 @@ var PROFILE_PATTERN = {
|
|
|
806
823
|
};
|
|
807
824
|
|
|
808
825
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
809
|
-
var
|
|
826
|
+
var import_class_validator26 = require("class-validator");
|
|
810
827
|
var FreelancerChangePasswordDto = class {
|
|
811
828
|
};
|
|
812
829
|
__decorateClass([
|
|
813
|
-
(0,
|
|
814
|
-
(0,
|
|
830
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
831
|
+
(0, import_class_validator26.IsString)()
|
|
815
832
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
816
833
|
__decorateClass([
|
|
817
|
-
(0,
|
|
818
|
-
(0,
|
|
819
|
-
(0,
|
|
820
|
-
(0,
|
|
821
|
-
(0,
|
|
834
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
835
|
+
(0, import_class_validator26.IsString)(),
|
|
836
|
+
(0, import_class_validator26.MinLength)(6),
|
|
837
|
+
(0, import_class_validator26.MaxLength)(32),
|
|
838
|
+
(0, import_class_validator26.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
822
839
|
message: "New Password must include letters, numbers and symbols."
|
|
823
840
|
})
|
|
824
841
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
825
842
|
|
|
826
843
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
827
|
-
var
|
|
844
|
+
var import_class_validator27 = require("class-validator");
|
|
828
845
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
829
846
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
830
847
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -834,66 +851,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
834
851
|
var UpdateFreelancerProfileDto = class {
|
|
835
852
|
};
|
|
836
853
|
__decorateClass([
|
|
837
|
-
(0,
|
|
838
|
-
(0,
|
|
854
|
+
(0, import_class_validator27.IsOptional)(),
|
|
855
|
+
(0, import_class_validator27.IsString)()
|
|
839
856
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
840
857
|
__decorateClass([
|
|
841
|
-
(0,
|
|
842
|
-
(0,
|
|
858
|
+
(0, import_class_validator27.IsOptional)(),
|
|
859
|
+
(0, import_class_validator27.IsString)()
|
|
843
860
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
844
861
|
__decorateClass([
|
|
845
|
-
(0,
|
|
846
|
-
(0,
|
|
862
|
+
(0, import_class_validator27.IsOptional)(),
|
|
863
|
+
(0, import_class_validator27.IsEmail)()
|
|
847
864
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
848
865
|
__decorateClass([
|
|
849
|
-
(0,
|
|
850
|
-
(0,
|
|
866
|
+
(0, import_class_validator27.IsOptional)(),
|
|
867
|
+
(0, import_class_validator27.IsString)()
|
|
851
868
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
852
869
|
__decorateClass([
|
|
853
|
-
(0,
|
|
854
|
-
(0,
|
|
870
|
+
(0, import_class_validator27.IsOptional)(),
|
|
871
|
+
(0, import_class_validator27.IsNumber)()
|
|
855
872
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
856
873
|
__decorateClass([
|
|
857
|
-
(0,
|
|
858
|
-
(0,
|
|
874
|
+
(0, import_class_validator27.IsOptional)(),
|
|
875
|
+
(0, import_class_validator27.IsString)()
|
|
859
876
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
860
877
|
__decorateClass([
|
|
861
|
-
(0,
|
|
862
|
-
(0,
|
|
878
|
+
(0, import_class_validator27.IsOptional)(),
|
|
879
|
+
(0, import_class_validator27.IsString)()
|
|
863
880
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
864
881
|
__decorateClass([
|
|
865
|
-
(0,
|
|
866
|
-
(0,
|
|
882
|
+
(0, import_class_validator27.IsOptional)(),
|
|
883
|
+
(0, import_class_validator27.IsEnum)(NatureOfWorkDto, {
|
|
867
884
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
868
885
|
})
|
|
869
886
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
870
887
|
__decorateClass([
|
|
871
|
-
(0,
|
|
872
|
-
(0,
|
|
888
|
+
(0, import_class_validator27.IsOptional)(),
|
|
889
|
+
(0, import_class_validator27.IsString)()
|
|
873
890
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
874
891
|
__decorateClass([
|
|
875
|
-
(0,
|
|
876
|
-
(0,
|
|
892
|
+
(0, import_class_validator27.IsOptional)(),
|
|
893
|
+
(0, import_class_validator27.IsString)()
|
|
877
894
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
878
895
|
__decorateClass([
|
|
879
|
-
(0,
|
|
880
|
-
(0,
|
|
896
|
+
(0, import_class_validator27.IsOptional)(),
|
|
897
|
+
(0, import_class_validator27.IsString)()
|
|
881
898
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
882
899
|
__decorateClass([
|
|
883
|
-
(0,
|
|
884
|
-
(0,
|
|
900
|
+
(0, import_class_validator27.IsOptional)(),
|
|
901
|
+
(0, import_class_validator27.IsString)()
|
|
885
902
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
886
903
|
__decorateClass([
|
|
887
|
-
(0,
|
|
888
|
-
(0,
|
|
904
|
+
(0, import_class_validator27.IsOptional)(),
|
|
905
|
+
(0, import_class_validator27.IsString)()
|
|
889
906
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
890
907
|
__decorateClass([
|
|
891
|
-
(0,
|
|
892
|
-
(0,
|
|
908
|
+
(0, import_class_validator27.IsOptional)(),
|
|
909
|
+
(0, import_class_validator27.IsString)()
|
|
893
910
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
894
911
|
__decorateClass([
|
|
895
|
-
(0,
|
|
896
|
-
(0,
|
|
912
|
+
(0, import_class_validator27.IsOptional)(),
|
|
913
|
+
(0, import_class_validator27.IsString)()
|
|
897
914
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
898
915
|
|
|
899
916
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -904,7 +921,7 @@ var BANK_PATTERN = {
|
|
|
904
921
|
};
|
|
905
922
|
|
|
906
923
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
907
|
-
var
|
|
924
|
+
var import_class_validator28 = require("class-validator");
|
|
908
925
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
909
926
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
910
927
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -913,47 +930,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
913
930
|
var FreelancerBankDetailsDto = class {
|
|
914
931
|
};
|
|
915
932
|
__decorateClass([
|
|
916
|
-
(0,
|
|
933
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
917
934
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
918
935
|
__decorateClass([
|
|
919
|
-
(0,
|
|
936
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
920
937
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
921
938
|
__decorateClass([
|
|
922
|
-
(0,
|
|
939
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Email." })
|
|
923
940
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
924
941
|
__decorateClass([
|
|
925
|
-
(0,
|
|
942
|
+
(0, import_class_validator28.IsOptional)()
|
|
926
943
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
927
944
|
__decorateClass([
|
|
928
|
-
(0,
|
|
945
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
929
946
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
930
947
|
__decorateClass([
|
|
931
|
-
(0,
|
|
948
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
932
949
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
933
950
|
__decorateClass([
|
|
934
|
-
(0,
|
|
951
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
935
952
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
936
953
|
__decorateClass([
|
|
937
|
-
(0,
|
|
938
|
-
(0,
|
|
954
|
+
(0, import_class_validator28.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
955
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
939
956
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
940
957
|
__decorateClass([
|
|
941
|
-
(0,
|
|
942
|
-
(0,
|
|
958
|
+
(0, import_class_validator28.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
959
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
943
960
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
944
961
|
__decorateClass([
|
|
945
|
-
(0,
|
|
946
|
-
(0,
|
|
962
|
+
(0, import_class_validator28.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
963
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
947
964
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
948
965
|
__decorateClass([
|
|
949
|
-
(0,
|
|
950
|
-
(0,
|
|
966
|
+
(0, import_class_validator28.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
967
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
951
968
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
952
969
|
__decorateClass([
|
|
953
|
-
(0,
|
|
970
|
+
(0, import_class_validator28.IsOptional)()
|
|
954
971
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
955
972
|
__decorateClass([
|
|
956
|
-
(0,
|
|
973
|
+
(0, import_class_validator28.IsEnum)(BankAccountScope, {
|
|
957
974
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
958
975
|
BankAccountScope
|
|
959
976
|
).join(", ")}`
|
|
@@ -973,7 +990,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
973
990
|
};
|
|
974
991
|
|
|
975
992
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
976
|
-
var
|
|
993
|
+
var import_class_validator29 = require("class-validator");
|
|
977
994
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
978
995
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
979
996
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -982,10 +999,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
982
999
|
var SystemPreferenceDto = class {
|
|
983
1000
|
};
|
|
984
1001
|
__decorateClass([
|
|
985
|
-
(0,
|
|
1002
|
+
(0, import_class_validator29.IsBoolean)()
|
|
986
1003
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
987
1004
|
__decorateClass([
|
|
988
|
-
(0,
|
|
1005
|
+
(0, import_class_validator29.IsEnum)(SystemPreferenceKey, {
|
|
989
1006
|
message: `key must be one of: ${Object.values(
|
|
990
1007
|
SystemPreferenceKey
|
|
991
1008
|
).join(", ")}`
|
|
@@ -1005,7 +1022,7 @@ var RATING_PATTERN = {
|
|
|
1005
1022
|
};
|
|
1006
1023
|
|
|
1007
1024
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1008
|
-
var
|
|
1025
|
+
var import_class_validator30 = require("class-validator");
|
|
1009
1026
|
|
|
1010
1027
|
// src/entities/rating.entity.ts
|
|
1011
1028
|
var import_typeorm21 = require("typeorm");
|
|
@@ -2040,7 +2057,7 @@ __decorateClass([
|
|
|
2040
2057
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2041
2058
|
__decorateClass([
|
|
2042
2059
|
(0, import_typeorm19.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2043
|
-
], FreelancerCaseStudy.prototype, "
|
|
2060
|
+
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2044
2061
|
__decorateClass([
|
|
2045
2062
|
(0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2046
2063
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
@@ -2289,22 +2306,22 @@ Rating = __decorateClass([
|
|
|
2289
2306
|
var CreateRatingDto = class {
|
|
2290
2307
|
};
|
|
2291
2308
|
__decorateClass([
|
|
2292
|
-
(0,
|
|
2293
|
-
(0,
|
|
2309
|
+
(0, import_class_validator30.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
2310
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
2294
2311
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2295
2312
|
__decorateClass([
|
|
2296
|
-
(0,
|
|
2313
|
+
(0, import_class_validator30.IsEnum)(RatingTypeEnum, {
|
|
2297
2314
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2298
2315
|
})
|
|
2299
2316
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
2300
2317
|
__decorateClass([
|
|
2301
|
-
(0,
|
|
2302
|
-
(0,
|
|
2303
|
-
(0,
|
|
2318
|
+
(0, import_class_validator30.IsInt)({ message: "Rating must be an integer value" }),
|
|
2319
|
+
(0, import_class_validator30.Min)(1, { message: "Rating must be at least 1" }),
|
|
2320
|
+
(0, import_class_validator30.Max)(5, { message: "Rating must be at most 5" })
|
|
2304
2321
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2305
2322
|
__decorateClass([
|
|
2306
|
-
(0,
|
|
2307
|
-
(0,
|
|
2323
|
+
(0, import_class_validator30.IsOptional)(),
|
|
2324
|
+
(0, import_class_validator30.IsString)({ message: "Review must be a string" })
|
|
2308
2325
|
], CreateRatingDto.prototype, "review", 2);
|
|
2309
2326
|
|
|
2310
2327
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -2320,47 +2337,47 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2320
2337
|
};
|
|
2321
2338
|
|
|
2322
2339
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2323
|
-
var
|
|
2340
|
+
var import_class_validator31 = require("class-validator");
|
|
2324
2341
|
var CreateCompanyRoleDto = class {
|
|
2325
2342
|
};
|
|
2326
2343
|
__decorateClass([
|
|
2327
|
-
(0,
|
|
2344
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter company role name." })
|
|
2328
2345
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2329
2346
|
__decorateClass([
|
|
2330
|
-
(0,
|
|
2347
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
2331
2348
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2332
2349
|
__decorateClass([
|
|
2333
|
-
(0,
|
|
2350
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter description" })
|
|
2334
2351
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2335
2352
|
__decorateClass([
|
|
2336
|
-
(0,
|
|
2337
|
-
(0,
|
|
2353
|
+
(0, import_class_validator31.IsOptional)(),
|
|
2354
|
+
(0, import_class_validator31.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2338
2355
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2339
2356
|
|
|
2340
2357
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2341
|
-
var
|
|
2358
|
+
var import_class_validator32 = require("class-validator");
|
|
2342
2359
|
var UpdateCompanyRoleDto = class {
|
|
2343
2360
|
};
|
|
2344
2361
|
__decorateClass([
|
|
2345
|
-
(0,
|
|
2362
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter company name." })
|
|
2346
2363
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2347
2364
|
__decorateClass([
|
|
2348
|
-
(0,
|
|
2365
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter slug" })
|
|
2349
2366
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2350
2367
|
__decorateClass([
|
|
2351
|
-
(0,
|
|
2368
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter description" })
|
|
2352
2369
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2353
2370
|
__decorateClass([
|
|
2354
|
-
(0,
|
|
2355
|
-
(0,
|
|
2371
|
+
(0, import_class_validator32.IsOptional)(),
|
|
2372
|
+
(0, import_class_validator32.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2356
2373
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2357
2374
|
|
|
2358
2375
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2359
|
-
var
|
|
2376
|
+
var import_class_validator33 = require("class-validator");
|
|
2360
2377
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
2361
2378
|
};
|
|
2362
2379
|
__decorateClass([
|
|
2363
|
-
(0,
|
|
2380
|
+
(0, import_class_validator33.IsBoolean)()
|
|
2364
2381
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2365
2382
|
|
|
2366
2383
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -2371,61 +2388,61 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2371
2388
|
};
|
|
2372
2389
|
|
|
2373
2390
|
// src/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.ts
|
|
2374
|
-
var
|
|
2391
|
+
var import_class_validator34 = require("class-validator");
|
|
2375
2392
|
var import_class_transformer2 = require("class-transformer");
|
|
2376
2393
|
var CreateExperienceDto = class {
|
|
2377
2394
|
};
|
|
2378
2395
|
__decorateClass([
|
|
2379
|
-
(0,
|
|
2380
|
-
(0,
|
|
2396
|
+
(0, import_class_validator34.IsString)(),
|
|
2397
|
+
(0, import_class_validator34.IsNotEmpty)()
|
|
2381
2398
|
], CreateExperienceDto.prototype, "companyName", 2);
|
|
2382
2399
|
__decorateClass([
|
|
2383
|
-
(0,
|
|
2384
|
-
(0,
|
|
2400
|
+
(0, import_class_validator34.IsString)(),
|
|
2401
|
+
(0, import_class_validator34.IsNotEmpty)()
|
|
2385
2402
|
], CreateExperienceDto.prototype, "designation", 2);
|
|
2386
2403
|
__decorateClass([
|
|
2387
|
-
(0,
|
|
2388
|
-
(0,
|
|
2404
|
+
(0, import_class_validator34.IsString)(),
|
|
2405
|
+
(0, import_class_validator34.IsNotEmpty)()
|
|
2389
2406
|
], CreateExperienceDto.prototype, "jobDuration", 2);
|
|
2390
2407
|
__decorateClass([
|
|
2391
|
-
(0,
|
|
2408
|
+
(0, import_class_validator34.IsString)()
|
|
2392
2409
|
], CreateExperienceDto.prototype, "description", 2);
|
|
2393
2410
|
var CreateFreelancerExperienceDto = class {
|
|
2394
2411
|
};
|
|
2395
2412
|
__decorateClass([
|
|
2396
|
-
(0,
|
|
2397
|
-
(0,
|
|
2413
|
+
(0, import_class_validator34.IsArray)(),
|
|
2414
|
+
(0, import_class_validator34.ValidateNested)({ each: true }),
|
|
2398
2415
|
(0, import_class_transformer2.Type)(() => CreateExperienceDto)
|
|
2399
2416
|
], CreateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2400
2417
|
|
|
2401
2418
|
// src/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.ts
|
|
2402
|
-
var
|
|
2419
|
+
var import_class_validator35 = require("class-validator");
|
|
2403
2420
|
var import_class_transformer3 = require("class-transformer");
|
|
2404
2421
|
var UpdateExperienceDto = class {
|
|
2405
2422
|
};
|
|
2406
2423
|
__decorateClass([
|
|
2407
|
-
(0,
|
|
2424
|
+
(0, import_class_validator35.IsOptional)()
|
|
2408
2425
|
], UpdateExperienceDto.prototype, "uuid", 2);
|
|
2409
2426
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2411
|
-
(0,
|
|
2427
|
+
(0, import_class_validator35.IsNotEmpty)(),
|
|
2428
|
+
(0, import_class_validator35.IsString)()
|
|
2412
2429
|
], UpdateExperienceDto.prototype, "companyName", 2);
|
|
2413
2430
|
__decorateClass([
|
|
2414
|
-
(0,
|
|
2415
|
-
(0,
|
|
2431
|
+
(0, import_class_validator35.IsNotEmpty)(),
|
|
2432
|
+
(0, import_class_validator35.IsString)()
|
|
2416
2433
|
], UpdateExperienceDto.prototype, "designation", 2);
|
|
2417
2434
|
__decorateClass([
|
|
2418
|
-
(0,
|
|
2419
|
-
(0,
|
|
2435
|
+
(0, import_class_validator35.IsNotEmpty)(),
|
|
2436
|
+
(0, import_class_validator35.IsString)()
|
|
2420
2437
|
], UpdateExperienceDto.prototype, "jobDuration", 2);
|
|
2421
2438
|
__decorateClass([
|
|
2422
|
-
(0,
|
|
2439
|
+
(0, import_class_validator35.IsString)()
|
|
2423
2440
|
], UpdateExperienceDto.prototype, "description", 2);
|
|
2424
2441
|
var UpdateFreelancerExperienceDto = class {
|
|
2425
2442
|
};
|
|
2426
2443
|
__decorateClass([
|
|
2427
|
-
(0,
|
|
2428
|
-
(0,
|
|
2444
|
+
(0, import_class_validator35.IsArray)(),
|
|
2445
|
+
(0, import_class_validator35.ValidateNested)({ each: true }),
|
|
2429
2446
|
(0, import_class_transformer3.Type)(() => UpdateExperienceDto)
|
|
2430
2447
|
], UpdateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2431
2448
|
|
|
@@ -2442,33 +2459,35 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2442
2459
|
};
|
|
2443
2460
|
|
|
2444
2461
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2445
|
-
var
|
|
2462
|
+
var import_class_validator36 = require("class-validator");
|
|
2446
2463
|
var CreateCompanyMemberDto = class {
|
|
2464
|
+
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2465
|
+
// companyRoleId: number;
|
|
2447
2466
|
};
|
|
2448
2467
|
__decorateClass([
|
|
2449
|
-
(0,
|
|
2468
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter name." })
|
|
2450
2469
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2451
2470
|
__decorateClass([
|
|
2452
|
-
(0,
|
|
2471
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter email" })
|
|
2453
2472
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2454
2473
|
|
|
2455
2474
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2456
|
-
var
|
|
2475
|
+
var import_class_validator37 = require("class-validator");
|
|
2457
2476
|
var UpdateCompanyMemberDto = class {
|
|
2458
2477
|
};
|
|
2459
2478
|
__decorateClass([
|
|
2460
|
-
(0,
|
|
2479
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter name." })
|
|
2461
2480
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2462
2481
|
__decorateClass([
|
|
2463
|
-
(0,
|
|
2482
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter email" })
|
|
2464
2483
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2465
2484
|
|
|
2466
2485
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2467
|
-
var
|
|
2486
|
+
var import_class_validator38 = require("class-validator");
|
|
2468
2487
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
2469
2488
|
};
|
|
2470
2489
|
__decorateClass([
|
|
2471
|
-
(0,
|
|
2490
|
+
(0, import_class_validator38.IsBoolean)()
|
|
2472
2491
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2473
2492
|
|
|
2474
2493
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -2479,135 +2498,125 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2479
2498
|
};
|
|
2480
2499
|
|
|
2481
2500
|
// src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
|
|
2482
|
-
var
|
|
2501
|
+
var import_class_validator39 = require("class-validator");
|
|
2483
2502
|
var import_class_transformer4 = require("class-transformer");
|
|
2484
2503
|
var CreateEducationDto = class {
|
|
2485
2504
|
};
|
|
2486
2505
|
__decorateClass([
|
|
2487
|
-
(0,
|
|
2488
|
-
(0,
|
|
2506
|
+
(0, import_class_validator39.IsString)(),
|
|
2507
|
+
(0, import_class_validator39.IsNotEmpty)()
|
|
2489
2508
|
], CreateEducationDto.prototype, "degree", 2);
|
|
2490
2509
|
__decorateClass([
|
|
2491
|
-
(0,
|
|
2492
|
-
(0,
|
|
2510
|
+
(0, import_class_validator39.IsString)(),
|
|
2511
|
+
(0, import_class_validator39.IsNotEmpty)()
|
|
2493
2512
|
], CreateEducationDto.prototype, "university", 2);
|
|
2494
2513
|
__decorateClass([
|
|
2495
|
-
(0,
|
|
2496
|
-
(0,
|
|
2514
|
+
(0, import_class_validator39.IsString)(),
|
|
2515
|
+
(0, import_class_validator39.IsNotEmpty)()
|
|
2497
2516
|
], CreateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2498
2517
|
var CreateFreelancerEducationDto = class {
|
|
2499
2518
|
};
|
|
2500
2519
|
__decorateClass([
|
|
2501
|
-
(0,
|
|
2502
|
-
(0,
|
|
2520
|
+
(0, import_class_validator39.IsArray)(),
|
|
2521
|
+
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2503
2522
|
(0, import_class_transformer4.Type)(() => CreateEducationDto)
|
|
2504
2523
|
], CreateFreelancerEducationDto.prototype, "education", 2);
|
|
2505
2524
|
|
|
2506
2525
|
// src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
|
|
2507
|
-
var
|
|
2526
|
+
var import_class_validator40 = require("class-validator");
|
|
2508
2527
|
var import_class_transformer5 = require("class-transformer");
|
|
2509
2528
|
var UpdateEducationDto = class {
|
|
2510
2529
|
};
|
|
2511
2530
|
__decorateClass([
|
|
2512
|
-
(0,
|
|
2531
|
+
(0, import_class_validator40.IsOptional)()
|
|
2513
2532
|
], UpdateEducationDto.prototype, "uuid", 2);
|
|
2514
2533
|
__decorateClass([
|
|
2515
|
-
(0,
|
|
2516
|
-
(0,
|
|
2534
|
+
(0, import_class_validator40.IsString)(),
|
|
2535
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2517
2536
|
], UpdateEducationDto.prototype, "degree", 2);
|
|
2518
2537
|
__decorateClass([
|
|
2519
|
-
(0,
|
|
2520
|
-
(0,
|
|
2538
|
+
(0, import_class_validator40.IsString)(),
|
|
2539
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2521
2540
|
], UpdateEducationDto.prototype, "university", 2);
|
|
2522
2541
|
__decorateClass([
|
|
2523
|
-
(0,
|
|
2524
|
-
(0,
|
|
2542
|
+
(0, import_class_validator40.IsString)(),
|
|
2543
|
+
(0, import_class_validator40.IsNotEmpty)()
|
|
2525
2544
|
], UpdateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2526
2545
|
var UpdateFreelancerEducationDto = class {
|
|
2527
2546
|
};
|
|
2528
2547
|
__decorateClass([
|
|
2529
|
-
(0,
|
|
2530
|
-
(0,
|
|
2548
|
+
(0, import_class_validator40.IsArray)(),
|
|
2549
|
+
(0, import_class_validator40.ValidateNested)({ each: true }),
|
|
2531
2550
|
(0, import_class_transformer5.Type)(() => UpdateEducationDto)
|
|
2532
2551
|
], UpdateFreelancerEducationDto.prototype, "education", 2);
|
|
2533
2552
|
|
|
2534
2553
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
2535
2554
|
var FREELANCER_PROJECT_PATTERN = {
|
|
2536
2555
|
fetchFreelancerProject: "fetch.freelancer.project",
|
|
2537
|
-
|
|
2538
|
-
};
|
|
2539
|
-
var FREELANCER_CASESTUDY_PATTERN = {
|
|
2540
|
-
fetchFreelancerCaseStudy: "fetch.freelancer.casestudy",
|
|
2541
|
-
updateFreelancerCaseStudy: "update.freelancer.casestudy"
|
|
2556
|
+
createFreelancerProject: "create.freelancer.project"
|
|
2542
2557
|
};
|
|
2543
2558
|
|
|
2544
2559
|
// src/modules/user/freelancer-project/dto/update-freelancer-project.dto.ts
|
|
2545
|
-
var
|
|
2560
|
+
var import_class_validator41 = require("class-validator");
|
|
2546
2561
|
var import_class_transformer6 = require("class-transformer");
|
|
2547
|
-
var
|
|
2562
|
+
var CreateProjectDto = class {
|
|
2548
2563
|
};
|
|
2549
2564
|
__decorateClass([
|
|
2550
|
-
(0,
|
|
2551
|
-
],
|
|
2552
|
-
__decorateClass([
|
|
2553
|
-
(0, import_class_validator40.IsString)(),
|
|
2554
|
-
(0, import_class_validator40.IsNotEmpty)()
|
|
2555
|
-
], UpdateProjectDto.prototype, "projectName", 2);
|
|
2565
|
+
(0, import_class_validator41.IsOptional)()
|
|
2566
|
+
], CreateProjectDto.prototype, "uuid", 2);
|
|
2556
2567
|
__decorateClass([
|
|
2557
|
-
(0,
|
|
2558
|
-
(0,
|
|
2559
|
-
],
|
|
2568
|
+
(0, import_class_validator41.IsString)(),
|
|
2569
|
+
(0, import_class_validator41.IsNotEmpty)()
|
|
2570
|
+
], CreateProjectDto.prototype, "projectName", 2);
|
|
2560
2571
|
__decorateClass([
|
|
2561
|
-
(0,
|
|
2562
|
-
(0,
|
|
2563
|
-
],
|
|
2572
|
+
(0, import_class_validator41.IsDateString)(),
|
|
2573
|
+
(0, import_class_validator41.IsNotEmpty)()
|
|
2574
|
+
], CreateProjectDto.prototype, "startDate", 2);
|
|
2564
2575
|
__decorateClass([
|
|
2565
|
-
(0,
|
|
2566
|
-
(0,
|
|
2567
|
-
],
|
|
2576
|
+
(0, import_class_validator41.IsDateString)(),
|
|
2577
|
+
(0, import_class_validator41.IsNotEmpty)()
|
|
2578
|
+
], CreateProjectDto.prototype, "endDate", 2);
|
|
2568
2579
|
__decorateClass([
|
|
2569
|
-
(0,
|
|
2570
|
-
(0,
|
|
2571
|
-
],
|
|
2580
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2581
|
+
(0, import_class_validator41.IsString)()
|
|
2582
|
+
], CreateProjectDto.prototype, "clientName", 2);
|
|
2572
2583
|
__decorateClass([
|
|
2573
|
-
(0,
|
|
2574
|
-
(0,
|
|
2575
|
-
],
|
|
2576
|
-
var UpdateFreelancerProjectDto = class {
|
|
2577
|
-
};
|
|
2584
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2585
|
+
(0, import_class_validator41.IsString)()
|
|
2586
|
+
], CreateProjectDto.prototype, "gitLink", 2);
|
|
2578
2587
|
__decorateClass([
|
|
2579
|
-
(0,
|
|
2580
|
-
(0,
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
// src/modules/user/freelancer-project/dto/update-freelancer-casestudy.dto.ts
|
|
2585
|
-
var import_class_validator41 = require("class-validator");
|
|
2586
|
-
var import_class_transformer7 = require("class-transformer");
|
|
2587
|
-
var UpdateCaseStudyDto = class {
|
|
2588
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2589
|
+
(0, import_class_validator41.IsString)()
|
|
2590
|
+
], CreateProjectDto.prototype, "description", 2);
|
|
2591
|
+
var CreateCaseStudyDto = class {
|
|
2588
2592
|
};
|
|
2589
2593
|
__decorateClass([
|
|
2590
2594
|
(0, import_class_validator41.IsOptional)()
|
|
2591
|
-
],
|
|
2595
|
+
], CreateCaseStudyDto.prototype, "uuid", 2);
|
|
2592
2596
|
__decorateClass([
|
|
2593
2597
|
(0, import_class_validator41.IsString)(),
|
|
2594
2598
|
(0, import_class_validator41.IsNotEmpty)()
|
|
2595
|
-
],
|
|
2599
|
+
], CreateCaseStudyDto.prototype, "projectName", 2);
|
|
2596
2600
|
__decorateClass([
|
|
2597
2601
|
(0, import_class_validator41.IsString)(),
|
|
2598
2602
|
(0, import_class_validator41.IsNotEmpty)()
|
|
2599
|
-
],
|
|
2603
|
+
], CreateCaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2600
2604
|
__decorateClass([
|
|
2601
2605
|
(0, import_class_validator41.IsOptional)(),
|
|
2602
2606
|
(0, import_class_validator41.IsString)()
|
|
2603
|
-
],
|
|
2604
|
-
var
|
|
2607
|
+
], CreateCaseStudyDto.prototype, "description", 2);
|
|
2608
|
+
var CreateFreelancerProjectDto = class {
|
|
2605
2609
|
};
|
|
2606
2610
|
__decorateClass([
|
|
2607
2611
|
(0, import_class_validator41.IsArray)(),
|
|
2608
2612
|
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
2609
|
-
(0,
|
|
2610
|
-
],
|
|
2613
|
+
(0, import_class_transformer6.Type)(() => CreateProjectDto)
|
|
2614
|
+
], CreateFreelancerProjectDto.prototype, "project", 2);
|
|
2615
|
+
__decorateClass([
|
|
2616
|
+
(0, import_class_validator41.IsArray)(),
|
|
2617
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
2618
|
+
(0, import_class_transformer6.Type)(() => CreateCaseStudyDto)
|
|
2619
|
+
], CreateFreelancerProjectDto.prototype, "casestudy", 2);
|
|
2611
2620
|
|
|
2612
2621
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2613
2622
|
var import_dotenv = require("dotenv");
|
|
@@ -2943,18 +2952,20 @@ Plan = __decorateClass([
|
|
|
2943
2952
|
ClientProfileQuestionDto,
|
|
2944
2953
|
CompanyProfile,
|
|
2945
2954
|
CompanyRole,
|
|
2955
|
+
CreateCaseStudyDto,
|
|
2946
2956
|
CreateCompanyMemberDto,
|
|
2947
2957
|
CreateCompanyRoleDto,
|
|
2948
2958
|
CreateEducationDto,
|
|
2949
2959
|
CreateExperienceDto,
|
|
2950
2960
|
CreateFreelancerEducationDto,
|
|
2951
2961
|
CreateFreelancerExperienceDto,
|
|
2962
|
+
CreateFreelancerProjectDto,
|
|
2963
|
+
CreateProjectDto,
|
|
2952
2964
|
CreateQuestionDto,
|
|
2953
2965
|
CreateRatingDto,
|
|
2954
2966
|
CreateSubAdminDto,
|
|
2955
2967
|
DurationTypeEnum,
|
|
2956
2968
|
EmploymentType,
|
|
2957
|
-
FREELANCER_CASESTUDY_PATTERN,
|
|
2958
2969
|
FREELANCER_EDUCATION_PATTERN,
|
|
2959
2970
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2960
2971
|
FREELANCER_PROJECT_PATTERN,
|
|
@@ -3025,6 +3036,7 @@ Plan = __decorateClass([
|
|
|
3025
3036
|
SYSTEM_PREFERENCES_PATTERN,
|
|
3026
3037
|
ScopeEnum,
|
|
3027
3038
|
SenseloafLog,
|
|
3039
|
+
SetPasswordDto,
|
|
3028
3040
|
Skill,
|
|
3029
3041
|
Step,
|
|
3030
3042
|
SystemPreference,
|
|
@@ -3033,18 +3045,14 @@ Plan = __decorateClass([
|
|
|
3033
3045
|
ToggleCompanyMemberVisibilityDto,
|
|
3034
3046
|
ToggleCompanyRoleVisibilityDto,
|
|
3035
3047
|
TypeOfEmploymentEnum,
|
|
3036
|
-
UpdateCaseStudyDto,
|
|
3037
3048
|
UpdateCompanyMemberDto,
|
|
3038
3049
|
UpdateCompanyProfileDto,
|
|
3039
3050
|
UpdateCompanyRoleDto,
|
|
3040
3051
|
UpdateEducationDto,
|
|
3041
3052
|
UpdateExperienceDto,
|
|
3042
|
-
UpdateFreelancerCaseStudyDto,
|
|
3043
3053
|
UpdateFreelancerEducationDto,
|
|
3044
3054
|
UpdateFreelancerExperienceDto,
|
|
3045
3055
|
UpdateFreelancerProfileDto,
|
|
3046
|
-
UpdateFreelancerProjectDto,
|
|
3047
|
-
UpdateProjectDto,
|
|
3048
3056
|
UpdateSubAdminAccountStatusDto,
|
|
3049
3057
|
UpdateSubAdminDto,
|
|
3050
3058
|
User,
|