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