@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.mjs
CHANGED
|
@@ -118,8 +118,30 @@ __decorateClass([
|
|
|
118
118
|
})
|
|
119
119
|
], ResetPasswordDto.prototype, "scope", 2);
|
|
120
120
|
|
|
121
|
+
// src/modules/authentication/dto/set-password.dto.ts
|
|
122
|
+
import {
|
|
123
|
+
IsNotEmpty as IsNotEmpty6,
|
|
124
|
+
Matches as Matches2,
|
|
125
|
+
MaxLength as MaxLength2,
|
|
126
|
+
MinLength as MinLength2
|
|
127
|
+
} from "class-validator";
|
|
128
|
+
var SetPasswordDto = class {
|
|
129
|
+
};
|
|
130
|
+
__decorateClass([
|
|
131
|
+
IsNotEmpty6({ message: "Please enter token." })
|
|
132
|
+
], SetPasswordDto.prototype, "token", 2);
|
|
133
|
+
__decorateClass([
|
|
134
|
+
IsNotEmpty6({ message: "Please enter password." }),
|
|
135
|
+
MinLength2(6),
|
|
136
|
+
MaxLength2(32),
|
|
137
|
+
Matches2(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
138
|
+
message: "Password must include letters, numbers and symbols."
|
|
139
|
+
})
|
|
140
|
+
], SetPasswordDto.prototype, "password", 2);
|
|
141
|
+
|
|
121
142
|
// src/modules/otp/pattern/pattern.ts
|
|
122
143
|
var OTP_PATTERN = {
|
|
144
|
+
handleGuestSendOtp: "handle.guest.send.otp",
|
|
123
145
|
handleSendOtp: "handle.send.otp",
|
|
124
146
|
handleVerifyOtp: "handle.verify.otp"
|
|
125
147
|
};
|
|
@@ -138,11 +160,11 @@ var ONBOARDING_PATTERN = {
|
|
|
138
160
|
|
|
139
161
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
140
162
|
import {
|
|
141
|
-
IsNotEmpty as
|
|
163
|
+
IsNotEmpty as IsNotEmpty7,
|
|
142
164
|
IsEmail as IsEmail2,
|
|
143
|
-
Matches as
|
|
144
|
-
MinLength as
|
|
145
|
-
MaxLength as
|
|
165
|
+
Matches as Matches3,
|
|
166
|
+
MinLength as MinLength3,
|
|
167
|
+
MaxLength as MaxLength3,
|
|
146
168
|
IsString
|
|
147
169
|
} from "class-validator";
|
|
148
170
|
|
|
@@ -196,55 +218,55 @@ IfscOrOtherFieldsConstraint = __decorateClass([
|
|
|
196
218
|
var FreelancerCreateAccountDto = class {
|
|
197
219
|
};
|
|
198
220
|
__decorateClass([
|
|
199
|
-
|
|
221
|
+
IsNotEmpty7({ message: "Please enter full name." }),
|
|
200
222
|
IsString({ message: "Please enter valid full name." })
|
|
201
223
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
202
224
|
__decorateClass([
|
|
203
|
-
|
|
225
|
+
IsNotEmpty7({ message: "Please enter email." }),
|
|
204
226
|
IsEmail2()
|
|
205
227
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
206
228
|
__decorateClass([
|
|
207
|
-
|
|
208
|
-
|
|
229
|
+
IsNotEmpty7({ message: "Please enter mobile code." }),
|
|
230
|
+
Matches3(/^\d+$/, { message: "Mobile code must be numeric" })
|
|
209
231
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
210
232
|
__decorateClass([
|
|
211
|
-
|
|
212
|
-
|
|
233
|
+
IsNotEmpty7({ message: "Please enter mobile number." }),
|
|
234
|
+
Matches3(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
213
235
|
message: "Please enter a valid US mobile number"
|
|
214
236
|
})
|
|
215
237
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
216
238
|
__decorateClass([
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
239
|
+
IsNotEmpty7({ message: "Please enter password." }),
|
|
240
|
+
MinLength3(6),
|
|
241
|
+
MaxLength3(32),
|
|
242
|
+
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
221
243
|
message: "Password must include letters, numbers and symbols."
|
|
222
244
|
})
|
|
223
245
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
224
246
|
__decorateClass([
|
|
225
|
-
|
|
247
|
+
IsNotEmpty7({ message: "Please enter confirm password." }),
|
|
226
248
|
Match("password", { message: "Passwords do not match" })
|
|
227
249
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
228
250
|
|
|
229
251
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
230
|
-
import { IsUUID, IsNotEmpty as
|
|
252
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty8 } from "class-validator";
|
|
231
253
|
var FreelancerUploadResumeDto = class {
|
|
232
254
|
};
|
|
233
255
|
__decorateClass([
|
|
234
|
-
|
|
256
|
+
IsNotEmpty8({ message: "Please enter uuid." }),
|
|
235
257
|
IsUUID()
|
|
236
258
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
237
259
|
|
|
238
260
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
239
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
261
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty9, IsBoolean } from "class-validator";
|
|
240
262
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
241
263
|
};
|
|
242
264
|
__decorateClass([
|
|
243
|
-
|
|
265
|
+
IsNotEmpty9({ message: "Please enter uuid." }),
|
|
244
266
|
IsUUID2()
|
|
245
267
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
246
268
|
__decorateClass([
|
|
247
|
-
|
|
269
|
+
IsNotEmpty9({ message: "Please select development flag." }),
|
|
248
270
|
IsBoolean()
|
|
249
271
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
250
272
|
|
|
@@ -252,17 +274,17 @@ __decorateClass([
|
|
|
252
274
|
import {
|
|
253
275
|
IsUUID as IsUUID3,
|
|
254
276
|
IsString as IsString2,
|
|
255
|
-
IsNotEmpty as
|
|
277
|
+
IsNotEmpty as IsNotEmpty10,
|
|
256
278
|
IsIn
|
|
257
279
|
} from "class-validator";
|
|
258
280
|
var FreelancerProfileQuestionDto = class {
|
|
259
281
|
};
|
|
260
282
|
__decorateClass([
|
|
261
|
-
|
|
283
|
+
IsNotEmpty10({ message: "Please enter uuid." }),
|
|
262
284
|
IsUUID3()
|
|
263
285
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
264
286
|
__decorateClass([
|
|
265
|
-
|
|
287
|
+
IsNotEmpty10({ message: "Please enter question slug." }),
|
|
266
288
|
IsString2(),
|
|
267
289
|
IsIn([
|
|
268
290
|
"natureOfWork",
|
|
@@ -273,12 +295,12 @@ __decorateClass([
|
|
|
273
295
|
])
|
|
274
296
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
275
297
|
__decorateClass([
|
|
276
|
-
|
|
298
|
+
IsNotEmpty10({ message: "Please enter answer." })
|
|
277
299
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
278
300
|
|
|
279
301
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
280
302
|
import {
|
|
281
|
-
IsNotEmpty as
|
|
303
|
+
IsNotEmpty as IsNotEmpty11,
|
|
282
304
|
IsOptional,
|
|
283
305
|
IsUrl,
|
|
284
306
|
IsString as IsString3,
|
|
@@ -287,11 +309,11 @@ import {
|
|
|
287
309
|
var FreelancerWorkShowcaseDto = class {
|
|
288
310
|
};
|
|
289
311
|
__decorateClass([
|
|
290
|
-
|
|
312
|
+
IsNotEmpty11({ message: "Please enter uuid." }),
|
|
291
313
|
IsUUID4()
|
|
292
314
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
293
315
|
__decorateClass([
|
|
294
|
-
|
|
316
|
+
IsNotEmpty11({ message: "Please enter likedin profile url." }),
|
|
295
317
|
IsString3(),
|
|
296
318
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
297
319
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
@@ -316,17 +338,17 @@ __decorateClass([
|
|
|
316
338
|
import {
|
|
317
339
|
IsUUID as IsUUID5,
|
|
318
340
|
IsString as IsString4,
|
|
319
|
-
IsNotEmpty as
|
|
341
|
+
IsNotEmpty as IsNotEmpty12,
|
|
320
342
|
IsIn as IsIn2
|
|
321
343
|
} from "class-validator";
|
|
322
344
|
var ClientProfileQuestionDto = class {
|
|
323
345
|
};
|
|
324
346
|
__decorateClass([
|
|
325
|
-
|
|
347
|
+
IsNotEmpty12({ message: "Please enter uuid." }),
|
|
326
348
|
IsUUID5()
|
|
327
349
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
328
350
|
__decorateClass([
|
|
329
|
-
|
|
351
|
+
IsNotEmpty12({ message: "Please enter question slug." }),
|
|
330
352
|
IsString4(),
|
|
331
353
|
IsIn2([
|
|
332
354
|
"skills",
|
|
@@ -337,46 +359,46 @@ __decorateClass([
|
|
|
337
359
|
])
|
|
338
360
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
339
361
|
__decorateClass([
|
|
340
|
-
|
|
362
|
+
IsNotEmpty12({ message: "Please enter answer." })
|
|
341
363
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
342
364
|
|
|
343
365
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
344
366
|
import {
|
|
345
|
-
IsNotEmpty as
|
|
367
|
+
IsNotEmpty as IsNotEmpty13,
|
|
346
368
|
IsEmail as IsEmail3,
|
|
347
|
-
Matches as
|
|
348
|
-
MinLength as
|
|
349
|
-
MaxLength as
|
|
369
|
+
Matches as Matches4,
|
|
370
|
+
MinLength as MinLength4,
|
|
371
|
+
MaxLength as MaxLength4,
|
|
350
372
|
IsString as IsString5
|
|
351
373
|
} from "class-validator";
|
|
352
374
|
var ClientCreateAccountDto = class {
|
|
353
375
|
};
|
|
354
376
|
__decorateClass([
|
|
355
|
-
|
|
377
|
+
IsNotEmpty13({ message: "Please enter first name." }),
|
|
356
378
|
IsString5({ message: "Please enter valid first name." })
|
|
357
379
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
358
380
|
__decorateClass([
|
|
359
|
-
|
|
381
|
+
IsNotEmpty13({ message: "Please enter last name." }),
|
|
360
382
|
IsString5({ message: "Please enter valid last name." })
|
|
361
383
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
362
384
|
__decorateClass([
|
|
363
|
-
|
|
385
|
+
IsNotEmpty13({ message: "Please enter email." }),
|
|
364
386
|
IsEmail3()
|
|
365
387
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
366
388
|
__decorateClass([
|
|
367
|
-
|
|
389
|
+
IsNotEmpty13({ message: "Please enter company name." }),
|
|
368
390
|
IsString5({ message: "Please enter valid company name." })
|
|
369
391
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
370
392
|
__decorateClass([
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
393
|
+
IsNotEmpty13({ message: "Please enter password." }),
|
|
394
|
+
MinLength4(6),
|
|
395
|
+
MaxLength4(32),
|
|
396
|
+
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
375
397
|
message: "Password must include letters, numbers and symbols."
|
|
376
398
|
})
|
|
377
399
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
378
400
|
__decorateClass([
|
|
379
|
-
|
|
401
|
+
IsNotEmpty13({ message: "Please enter confirm password." }),
|
|
380
402
|
Match("password", { message: "Passwords do not match" })
|
|
381
403
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
382
404
|
|
|
@@ -399,36 +421,36 @@ var SUBADMIN_PATTERN = {
|
|
|
399
421
|
|
|
400
422
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
401
423
|
import {
|
|
402
|
-
IsNotEmpty as
|
|
424
|
+
IsNotEmpty as IsNotEmpty14
|
|
403
425
|
} from "class-validator";
|
|
404
426
|
var CreateSubAdminDto = class {
|
|
405
427
|
};
|
|
406
428
|
__decorateClass([
|
|
407
|
-
|
|
429
|
+
IsNotEmpty14({ message: "Please enter unique id." })
|
|
408
430
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
409
431
|
__decorateClass([
|
|
410
|
-
|
|
432
|
+
IsNotEmpty14({ message: "Please enter username." })
|
|
411
433
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
412
434
|
__decorateClass([
|
|
413
|
-
|
|
435
|
+
IsNotEmpty14({ message: "Please enter first name." })
|
|
414
436
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
415
437
|
__decorateClass([
|
|
416
|
-
|
|
438
|
+
IsNotEmpty14({ message: "Please enter last name." })
|
|
417
439
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
418
440
|
__decorateClass([
|
|
419
|
-
|
|
441
|
+
IsNotEmpty14({ message: "Please enter email." })
|
|
420
442
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
421
443
|
__decorateClass([
|
|
422
|
-
|
|
444
|
+
IsNotEmpty14({ message: "Please enter mobile number." })
|
|
423
445
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
424
446
|
__decorateClass([
|
|
425
|
-
|
|
447
|
+
IsNotEmpty14({ message: "Please enter the password." })
|
|
426
448
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
427
449
|
__decorateClass([
|
|
428
|
-
|
|
450
|
+
IsNotEmpty14({ message: "Please enter account type." })
|
|
429
451
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
430
452
|
__decorateClass([
|
|
431
|
-
|
|
453
|
+
IsNotEmpty14({ message: "Please enter account status." })
|
|
432
454
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
433
455
|
|
|
434
456
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
@@ -440,35 +462,35 @@ __decorateClass([
|
|
|
440
462
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
441
463
|
|
|
442
464
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
443
|
-
import { IsNotEmpty as
|
|
465
|
+
import { IsNotEmpty as IsNotEmpty15 } from "class-validator";
|
|
444
466
|
var UpdateSubAdminDto = class {
|
|
445
467
|
};
|
|
446
468
|
__decorateClass([
|
|
447
|
-
|
|
469
|
+
IsNotEmpty15({ message: "Please enter unique id." })
|
|
448
470
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
449
471
|
__decorateClass([
|
|
450
|
-
|
|
472
|
+
IsNotEmpty15({ message: "Please enter username." })
|
|
451
473
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
452
474
|
__decorateClass([
|
|
453
|
-
|
|
475
|
+
IsNotEmpty15({ message: "Please enter first name." })
|
|
454
476
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
455
477
|
__decorateClass([
|
|
456
|
-
|
|
478
|
+
IsNotEmpty15({ message: "Please enter last name." })
|
|
457
479
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
458
480
|
__decorateClass([
|
|
459
|
-
|
|
481
|
+
IsNotEmpty15({ message: "Please enter email." })
|
|
460
482
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
461
483
|
__decorateClass([
|
|
462
|
-
|
|
484
|
+
IsNotEmpty15({ message: "Please enter mobile number." })
|
|
463
485
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
464
486
|
__decorateClass([
|
|
465
|
-
|
|
487
|
+
IsNotEmpty15({ message: "Please enter the password." })
|
|
466
488
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
467
489
|
__decorateClass([
|
|
468
|
-
|
|
490
|
+
IsNotEmpty15({ message: "Please enter account type." })
|
|
469
491
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
470
492
|
__decorateClass([
|
|
471
|
-
|
|
493
|
+
IsNotEmpty15({ message: "Please enter account status." })
|
|
472
494
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
473
495
|
|
|
474
496
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -482,65 +504,65 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
482
504
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
483
505
|
import {
|
|
484
506
|
IsString as IsString8,
|
|
485
|
-
IsNotEmpty as
|
|
507
|
+
IsNotEmpty as IsNotEmpty16,
|
|
486
508
|
IsEmail as IsEmail5,
|
|
487
509
|
Length,
|
|
488
510
|
IsUrl as IsUrl2,
|
|
489
|
-
Matches as
|
|
511
|
+
Matches as Matches5
|
|
490
512
|
} from "class-validator";
|
|
491
513
|
var UpdateCompanyProfileDto = class {
|
|
492
514
|
};
|
|
493
515
|
__decorateClass([
|
|
494
|
-
|
|
516
|
+
IsNotEmpty16({ message: "Please enter company name." }),
|
|
495
517
|
IsString8({ message: "Company name must be a string." }),
|
|
496
518
|
Length(2, 255, {
|
|
497
519
|
message: "Company name must be between 2 and 255 characters"
|
|
498
520
|
})
|
|
499
521
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
500
522
|
__decorateClass([
|
|
501
|
-
|
|
523
|
+
IsNotEmpty16({ message: "Please enter company website url." }),
|
|
502
524
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
503
525
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
504
526
|
__decorateClass([
|
|
505
|
-
|
|
527
|
+
IsNotEmpty16({ message: "Please enter company address." }),
|
|
506
528
|
IsString8({ message: "Company address must be a string" }),
|
|
507
529
|
Length(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
508
530
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
509
531
|
__decorateClass([
|
|
510
|
-
|
|
511
|
-
|
|
532
|
+
IsNotEmpty16({ message: "Please enter phone number." }),
|
|
533
|
+
Matches5(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
512
534
|
message: "Please enter a valid US phone number"
|
|
513
535
|
})
|
|
514
536
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
515
537
|
__decorateClass([
|
|
516
|
-
|
|
538
|
+
IsNotEmpty16({ message: "Please enter email." }),
|
|
517
539
|
IsEmail5()
|
|
518
540
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
519
541
|
__decorateClass([
|
|
520
|
-
|
|
542
|
+
IsNotEmpty16({ message: "Please enter something about company." }),
|
|
521
543
|
IsString8({ message: "About company must be a string." })
|
|
522
544
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
523
545
|
|
|
524
546
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
525
547
|
import {
|
|
526
548
|
IsString as IsString9,
|
|
527
|
-
IsNotEmpty as
|
|
528
|
-
MaxLength as
|
|
529
|
-
MinLength as
|
|
530
|
-
Matches as
|
|
549
|
+
IsNotEmpty as IsNotEmpty17,
|
|
550
|
+
MaxLength as MaxLength6,
|
|
551
|
+
MinLength as MinLength6,
|
|
552
|
+
Matches as Matches6
|
|
531
553
|
} from "class-validator";
|
|
532
554
|
var ClientChangePasswordDto = class {
|
|
533
555
|
};
|
|
534
556
|
__decorateClass([
|
|
535
|
-
|
|
557
|
+
IsNotEmpty17({ message: "Please enter Old Password." }),
|
|
536
558
|
IsString9()
|
|
537
559
|
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
538
560
|
__decorateClass([
|
|
539
|
-
|
|
561
|
+
IsNotEmpty17({ message: "Please enter New Password." }),
|
|
540
562
|
IsString9(),
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
563
|
+
MinLength6(6),
|
|
564
|
+
MaxLength6(32),
|
|
565
|
+
Matches6(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
544
566
|
message: "New Password must include letters, numbers and symbols."
|
|
545
567
|
})
|
|
546
568
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -552,23 +574,23 @@ var QUESTION_PATTERN = {
|
|
|
552
574
|
|
|
553
575
|
// src/modules/question/dto/create-question.dto.ts
|
|
554
576
|
import {
|
|
555
|
-
IsNotEmpty as
|
|
577
|
+
IsNotEmpty as IsNotEmpty18,
|
|
556
578
|
IsOptional as IsOptional4,
|
|
557
579
|
IsBoolean as IsBoolean4
|
|
558
580
|
} from "class-validator";
|
|
559
581
|
var CreateQuestionDto = class {
|
|
560
582
|
};
|
|
561
583
|
__decorateClass([
|
|
562
|
-
|
|
584
|
+
IsNotEmpty18({ message: "Please enter unique id." })
|
|
563
585
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
564
586
|
__decorateClass([
|
|
565
|
-
|
|
587
|
+
IsNotEmpty18({ message: "Please enter question." })
|
|
566
588
|
], CreateQuestionDto.prototype, "question", 2);
|
|
567
589
|
__decorateClass([
|
|
568
|
-
|
|
590
|
+
IsNotEmpty18({ message: "Please enter for whom the question is." })
|
|
569
591
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
570
592
|
__decorateClass([
|
|
571
|
-
|
|
593
|
+
IsNotEmpty18({ message: "Please enter options." })
|
|
572
594
|
], CreateQuestionDto.prototype, "options", 2);
|
|
573
595
|
__decorateClass([
|
|
574
596
|
IsOptional4(),
|
|
@@ -599,12 +621,12 @@ var JOB_PATTERN = {
|
|
|
599
621
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
600
622
|
import {
|
|
601
623
|
IsString as IsString10,
|
|
602
|
-
IsNotEmpty as
|
|
624
|
+
IsNotEmpty as IsNotEmpty19,
|
|
603
625
|
IsArray,
|
|
604
626
|
ArrayNotEmpty,
|
|
605
627
|
IsNumber,
|
|
606
628
|
IsOptional as IsOptional5,
|
|
607
|
-
IsEnum as
|
|
629
|
+
IsEnum as IsEnum5,
|
|
608
630
|
Min
|
|
609
631
|
} from "class-validator";
|
|
610
632
|
import { Type } from "class-transformer";
|
|
@@ -623,7 +645,7 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
623
645
|
var JobBasicInformationDto = class {
|
|
624
646
|
};
|
|
625
647
|
__decorateClass([
|
|
626
|
-
|
|
648
|
+
IsNotEmpty19({ message: "Please enter job role" }),
|
|
627
649
|
IsString10({ message: "Job role must be a string" })
|
|
628
650
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
629
651
|
__decorateClass([
|
|
@@ -642,14 +664,14 @@ __decorateClass([
|
|
|
642
664
|
Type(() => Number)
|
|
643
665
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
644
666
|
__decorateClass([
|
|
645
|
-
|
|
667
|
+
IsEnum5(JobLocation, {
|
|
646
668
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
647
669
|
", "
|
|
648
670
|
)}`
|
|
649
671
|
})
|
|
650
672
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
651
673
|
__decorateClass([
|
|
652
|
-
|
|
674
|
+
IsEnum5(EmploymentType, {
|
|
653
675
|
message: `Type of employment must be one of: ${Object.values(
|
|
654
676
|
EmploymentType
|
|
655
677
|
).join(", ")}`
|
|
@@ -675,27 +697,27 @@ __decorateClass([
|
|
|
675
697
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
676
698
|
|
|
677
699
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
678
|
-
import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as
|
|
700
|
+
import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as MaxLength7 } from "class-validator";
|
|
679
701
|
var JobAdditionalCommentDto = class {
|
|
680
702
|
};
|
|
681
703
|
__decorateClass([
|
|
682
704
|
IsOptional6(),
|
|
683
705
|
IsString11({ message: "Additional comment must be a string" }),
|
|
684
|
-
|
|
706
|
+
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
685
707
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
686
708
|
|
|
687
709
|
// src/modules/job/dto/job-description.dto.ts
|
|
688
|
-
import { IsString as IsString12, IsNotEmpty as
|
|
710
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty20, MaxLength as MaxLength8 } from "class-validator";
|
|
689
711
|
var JobDescriptionDto = class {
|
|
690
712
|
};
|
|
691
713
|
__decorateClass([
|
|
692
|
-
|
|
714
|
+
IsNotEmpty20({ message: "Please enter job description" }),
|
|
693
715
|
IsString12({ message: "Description must be a string" }),
|
|
694
|
-
|
|
716
|
+
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
695
717
|
], JobDescriptionDto.prototype, "description", 2);
|
|
696
718
|
|
|
697
719
|
// src/modules/job/dto/job-status.dto.ts
|
|
698
|
-
import { IsEnum as
|
|
720
|
+
import { IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty21 } from "class-validator";
|
|
699
721
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
700
722
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
701
723
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -707,8 +729,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
707
729
|
var JobStatusDto = class {
|
|
708
730
|
};
|
|
709
731
|
__decorateClass([
|
|
710
|
-
|
|
711
|
-
|
|
732
|
+
IsNotEmpty21({ message: "Please provide a job status" }),
|
|
733
|
+
IsEnum6(JobStatus, {
|
|
712
734
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
713
735
|
})
|
|
714
736
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -734,29 +756,29 @@ var PROFILE_PATTERN = {
|
|
|
734
756
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
735
757
|
import {
|
|
736
758
|
IsString as IsString13,
|
|
737
|
-
IsNotEmpty as
|
|
738
|
-
MaxLength as
|
|
739
|
-
MinLength as
|
|
740
|
-
Matches as
|
|
759
|
+
IsNotEmpty as IsNotEmpty22,
|
|
760
|
+
MaxLength as MaxLength9,
|
|
761
|
+
MinLength as MinLength7,
|
|
762
|
+
Matches as Matches7
|
|
741
763
|
} from "class-validator";
|
|
742
764
|
var FreelancerChangePasswordDto = class {
|
|
743
765
|
};
|
|
744
766
|
__decorateClass([
|
|
745
|
-
|
|
767
|
+
IsNotEmpty22({ message: "Please enter Old Password." }),
|
|
746
768
|
IsString13()
|
|
747
769
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
748
770
|
__decorateClass([
|
|
749
|
-
|
|
771
|
+
IsNotEmpty22({ message: "Please enter New Password." }),
|
|
750
772
|
IsString13(),
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
773
|
+
MinLength7(6),
|
|
774
|
+
MaxLength9(32),
|
|
775
|
+
Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
754
776
|
message: "New Password must include letters, numbers and symbols."
|
|
755
777
|
})
|
|
756
778
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
757
779
|
|
|
758
780
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
759
|
-
import { IsOptional as IsOptional7, IsString as IsString14, IsEmail as IsEmail6, IsNumber as IsNumber2, IsEnum as
|
|
781
|
+
import { IsOptional as IsOptional7, IsString as IsString14, IsEmail as IsEmail6, IsNumber as IsNumber2, IsEnum as IsEnum7 } from "class-validator";
|
|
760
782
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
761
783
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
762
784
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -795,7 +817,7 @@ __decorateClass([
|
|
|
795
817
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
796
818
|
__decorateClass([
|
|
797
819
|
IsOptional7(),
|
|
798
|
-
|
|
820
|
+
IsEnum7(NatureOfWorkDto, {
|
|
799
821
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
800
822
|
})
|
|
801
823
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
@@ -837,8 +859,8 @@ var BANK_PATTERN = {
|
|
|
837
859
|
|
|
838
860
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
839
861
|
import {
|
|
840
|
-
IsEnum as
|
|
841
|
-
IsNotEmpty as
|
|
862
|
+
IsEnum as IsEnum8,
|
|
863
|
+
IsNotEmpty as IsNotEmpty23,
|
|
842
864
|
IsOptional as IsOptional8,
|
|
843
865
|
ValidateIf
|
|
844
866
|
} from "class-validator";
|
|
@@ -850,47 +872,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
850
872
|
var FreelancerBankDetailsDto = class {
|
|
851
873
|
};
|
|
852
874
|
__decorateClass([
|
|
853
|
-
|
|
875
|
+
IsNotEmpty23({ message: "Please enter Account Holder Name." })
|
|
854
876
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
855
877
|
__decorateClass([
|
|
856
|
-
|
|
878
|
+
IsNotEmpty23({ message: "Please enter Mobile Number." })
|
|
857
879
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
858
880
|
__decorateClass([
|
|
859
|
-
|
|
881
|
+
IsNotEmpty23({ message: "Please enter Email." })
|
|
860
882
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
861
883
|
__decorateClass([
|
|
862
884
|
IsOptional8()
|
|
863
885
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
864
886
|
__decorateClass([
|
|
865
|
-
|
|
887
|
+
IsNotEmpty23({ message: "Please enter Account Number." })
|
|
866
888
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
867
889
|
__decorateClass([
|
|
868
|
-
|
|
890
|
+
IsNotEmpty23({ message: "Please enter Bank Name." })
|
|
869
891
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
870
892
|
__decorateClass([
|
|
871
|
-
|
|
893
|
+
IsNotEmpty23({ message: "Please enter Branch Name." })
|
|
872
894
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
873
895
|
__decorateClass([
|
|
874
896
|
ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
|
|
875
|
-
|
|
897
|
+
IsNotEmpty23({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
876
898
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
877
899
|
__decorateClass([
|
|
878
900
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
879
|
-
|
|
901
|
+
IsNotEmpty23({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
880
902
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
881
903
|
__decorateClass([
|
|
882
904
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
883
|
-
|
|
905
|
+
IsNotEmpty23({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
884
906
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
885
907
|
__decorateClass([
|
|
886
908
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
887
|
-
|
|
909
|
+
IsNotEmpty23({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
888
910
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
889
911
|
__decorateClass([
|
|
890
912
|
IsOptional8()
|
|
891
913
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
892
914
|
__decorateClass([
|
|
893
|
-
|
|
915
|
+
IsEnum8(BankAccountScope, {
|
|
894
916
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
895
917
|
BankAccountScope
|
|
896
918
|
).join(", ")}`
|
|
@@ -912,7 +934,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
912
934
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
913
935
|
import {
|
|
914
936
|
IsBoolean as IsBoolean5,
|
|
915
|
-
IsEnum as
|
|
937
|
+
IsEnum as IsEnum9
|
|
916
938
|
} from "class-validator";
|
|
917
939
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
918
940
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -925,7 +947,7 @@ __decorateClass([
|
|
|
925
947
|
IsBoolean5()
|
|
926
948
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
927
949
|
__decorateClass([
|
|
928
|
-
|
|
950
|
+
IsEnum9(SystemPreferenceKey, {
|
|
929
951
|
message: `key must be one of: ${Object.values(
|
|
930
952
|
SystemPreferenceKey
|
|
931
953
|
).join(", ")}`
|
|
@@ -946,9 +968,9 @@ var RATING_PATTERN = {
|
|
|
946
968
|
|
|
947
969
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
948
970
|
import {
|
|
949
|
-
IsEnum as
|
|
971
|
+
IsEnum as IsEnum10,
|
|
950
972
|
IsInt,
|
|
951
|
-
IsNotEmpty as
|
|
973
|
+
IsNotEmpty as IsNotEmpty24,
|
|
952
974
|
IsOptional as IsOptional9,
|
|
953
975
|
IsString as IsString15,
|
|
954
976
|
Max,
|
|
@@ -2336,10 +2358,10 @@ var CreateRatingDto = class {
|
|
|
2336
2358
|
};
|
|
2337
2359
|
__decorateClass([
|
|
2338
2360
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
2339
|
-
|
|
2361
|
+
IsNotEmpty24({ message: "Reviewee ID is required" })
|
|
2340
2362
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2341
2363
|
__decorateClass([
|
|
2342
|
-
|
|
2364
|
+
IsEnum10(RatingTypeEnum, {
|
|
2343
2365
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2344
2366
|
})
|
|
2345
2367
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -2366,17 +2388,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2366
2388
|
};
|
|
2367
2389
|
|
|
2368
2390
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2369
|
-
import { IsBoolean as IsBoolean6, IsNotEmpty as
|
|
2391
|
+
import { IsBoolean as IsBoolean6, IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional10 } from "class-validator";
|
|
2370
2392
|
var CreateCompanyRoleDto = class {
|
|
2371
2393
|
};
|
|
2372
2394
|
__decorateClass([
|
|
2373
|
-
|
|
2395
|
+
IsNotEmpty25({ message: "Please enter company role name." })
|
|
2374
2396
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2375
2397
|
__decorateClass([
|
|
2376
|
-
|
|
2398
|
+
IsNotEmpty25({ message: "Please enter company role slug" })
|
|
2377
2399
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2378
2400
|
__decorateClass([
|
|
2379
|
-
|
|
2401
|
+
IsNotEmpty25({ message: "Please enter description" })
|
|
2380
2402
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2381
2403
|
__decorateClass([
|
|
2382
2404
|
IsOptional10(),
|
|
@@ -2384,17 +2406,17 @@ __decorateClass([
|
|
|
2384
2406
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2385
2407
|
|
|
2386
2408
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2387
|
-
import { IsBoolean as IsBoolean7, IsNotEmpty as
|
|
2409
|
+
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty26, IsOptional as IsOptional11 } from "class-validator";
|
|
2388
2410
|
var UpdateCompanyRoleDto = class {
|
|
2389
2411
|
};
|
|
2390
2412
|
__decorateClass([
|
|
2391
|
-
|
|
2413
|
+
IsNotEmpty26({ message: "Please enter company name." })
|
|
2392
2414
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2393
2415
|
__decorateClass([
|
|
2394
|
-
|
|
2416
|
+
IsNotEmpty26({ message: "Please enter slug" })
|
|
2395
2417
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2396
2418
|
__decorateClass([
|
|
2397
|
-
|
|
2419
|
+
IsNotEmpty26({ message: "Please enter description" })
|
|
2398
2420
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2399
2421
|
__decorateClass([
|
|
2400
2422
|
IsOptional11(),
|
|
@@ -2417,21 +2439,21 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2417
2439
|
};
|
|
2418
2440
|
|
|
2419
2441
|
// src/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.ts
|
|
2420
|
-
import { IsArray as IsArray2, ValidateNested, IsString as IsString18, IsNotEmpty as
|
|
2442
|
+
import { IsArray as IsArray2, ValidateNested, IsString as IsString18, IsNotEmpty as IsNotEmpty27 } from "class-validator";
|
|
2421
2443
|
import { Type as Type2 } from "class-transformer";
|
|
2422
2444
|
var CreateExperienceDto = class {
|
|
2423
2445
|
};
|
|
2424
2446
|
__decorateClass([
|
|
2425
2447
|
IsString18(),
|
|
2426
|
-
|
|
2448
|
+
IsNotEmpty27()
|
|
2427
2449
|
], CreateExperienceDto.prototype, "companyName", 2);
|
|
2428
2450
|
__decorateClass([
|
|
2429
2451
|
IsString18(),
|
|
2430
|
-
|
|
2452
|
+
IsNotEmpty27()
|
|
2431
2453
|
], CreateExperienceDto.prototype, "designation", 2);
|
|
2432
2454
|
__decorateClass([
|
|
2433
2455
|
IsString18(),
|
|
2434
|
-
|
|
2456
|
+
IsNotEmpty27()
|
|
2435
2457
|
], CreateExperienceDto.prototype, "jobDuration", 2);
|
|
2436
2458
|
__decorateClass([
|
|
2437
2459
|
IsString18()
|
|
@@ -2445,7 +2467,7 @@ __decorateClass([
|
|
|
2445
2467
|
], CreateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2446
2468
|
|
|
2447
2469
|
// src/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.ts
|
|
2448
|
-
import { IsArray as IsArray3, ValidateNested as ValidateNested2, IsString as IsString19, IsNotEmpty as
|
|
2470
|
+
import { IsArray as IsArray3, ValidateNested as ValidateNested2, IsString as IsString19, IsNotEmpty as IsNotEmpty28, IsOptional as IsOptional12 } from "class-validator";
|
|
2449
2471
|
import { Type as Type3 } from "class-transformer";
|
|
2450
2472
|
var UpdateExperienceDto = class {
|
|
2451
2473
|
};
|
|
@@ -2453,15 +2475,15 @@ __decorateClass([
|
|
|
2453
2475
|
IsOptional12()
|
|
2454
2476
|
], UpdateExperienceDto.prototype, "uuid", 2);
|
|
2455
2477
|
__decorateClass([
|
|
2456
|
-
|
|
2478
|
+
IsNotEmpty28(),
|
|
2457
2479
|
IsString19()
|
|
2458
2480
|
], UpdateExperienceDto.prototype, "companyName", 2);
|
|
2459
2481
|
__decorateClass([
|
|
2460
|
-
|
|
2482
|
+
IsNotEmpty28(),
|
|
2461
2483
|
IsString19()
|
|
2462
2484
|
], UpdateExperienceDto.prototype, "designation", 2);
|
|
2463
2485
|
__decorateClass([
|
|
2464
|
-
|
|
2486
|
+
IsNotEmpty28(),
|
|
2465
2487
|
IsString19()
|
|
2466
2488
|
], UpdateExperienceDto.prototype, "jobDuration", 2);
|
|
2467
2489
|
__decorateClass([
|
|
@@ -2488,25 +2510,27 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2488
2510
|
};
|
|
2489
2511
|
|
|
2490
2512
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2491
|
-
import { IsNotEmpty as
|
|
2513
|
+
import { IsNotEmpty as IsNotEmpty29 } from "class-validator";
|
|
2492
2514
|
var CreateCompanyMemberDto = class {
|
|
2515
|
+
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2516
|
+
// companyRoleId: number;
|
|
2493
2517
|
};
|
|
2494
2518
|
__decorateClass([
|
|
2495
|
-
|
|
2519
|
+
IsNotEmpty29({ message: "Please enter name." })
|
|
2496
2520
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2497
2521
|
__decorateClass([
|
|
2498
|
-
|
|
2522
|
+
IsNotEmpty29({ message: "Please enter email" })
|
|
2499
2523
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2500
2524
|
|
|
2501
2525
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2502
|
-
import { IsNotEmpty as
|
|
2526
|
+
import { IsNotEmpty as IsNotEmpty30 } from "class-validator";
|
|
2503
2527
|
var UpdateCompanyMemberDto = class {
|
|
2504
2528
|
};
|
|
2505
2529
|
__decorateClass([
|
|
2506
|
-
|
|
2530
|
+
IsNotEmpty30({ message: "Please enter name." })
|
|
2507
2531
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2508
2532
|
__decorateClass([
|
|
2509
|
-
|
|
2533
|
+
IsNotEmpty30({ message: "Please enter email" })
|
|
2510
2534
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2511
2535
|
|
|
2512
2536
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
@@ -2525,21 +2549,21 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2525
2549
|
};
|
|
2526
2550
|
|
|
2527
2551
|
// src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
|
|
2528
|
-
import { IsArray as IsArray4, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as
|
|
2552
|
+
import { IsArray as IsArray4, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty31 } from "class-validator";
|
|
2529
2553
|
import { Type as Type4 } from "class-transformer";
|
|
2530
2554
|
var CreateEducationDto = class {
|
|
2531
2555
|
};
|
|
2532
2556
|
__decorateClass([
|
|
2533
2557
|
IsString22(),
|
|
2534
|
-
|
|
2558
|
+
IsNotEmpty31()
|
|
2535
2559
|
], CreateEducationDto.prototype, "degree", 2);
|
|
2536
2560
|
__decorateClass([
|
|
2537
2561
|
IsString22(),
|
|
2538
|
-
|
|
2562
|
+
IsNotEmpty31()
|
|
2539
2563
|
], CreateEducationDto.prototype, "university", 2);
|
|
2540
2564
|
__decorateClass([
|
|
2541
2565
|
IsString22(),
|
|
2542
|
-
|
|
2566
|
+
IsNotEmpty31()
|
|
2543
2567
|
], CreateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2544
2568
|
var CreateFreelancerEducationDto = class {
|
|
2545
2569
|
};
|
|
@@ -2550,7 +2574,7 @@ __decorateClass([
|
|
|
2550
2574
|
], CreateFreelancerEducationDto.prototype, "education", 2);
|
|
2551
2575
|
|
|
2552
2576
|
// src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
|
|
2553
|
-
import { IsArray as IsArray5, ValidateNested as ValidateNested4, IsString as IsString23, IsNotEmpty as
|
|
2577
|
+
import { IsArray as IsArray5, ValidateNested as ValidateNested4, IsString as IsString23, IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional15 } from "class-validator";
|
|
2554
2578
|
import { Type as Type5 } from "class-transformer";
|
|
2555
2579
|
var UpdateEducationDto = class {
|
|
2556
2580
|
};
|
|
@@ -2559,15 +2583,15 @@ __decorateClass([
|
|
|
2559
2583
|
], UpdateEducationDto.prototype, "uuid", 2);
|
|
2560
2584
|
__decorateClass([
|
|
2561
2585
|
IsString23(),
|
|
2562
|
-
|
|
2586
|
+
IsNotEmpty32()
|
|
2563
2587
|
], UpdateEducationDto.prototype, "degree", 2);
|
|
2564
2588
|
__decorateClass([
|
|
2565
2589
|
IsString23(),
|
|
2566
|
-
|
|
2590
|
+
IsNotEmpty32()
|
|
2567
2591
|
], UpdateEducationDto.prototype, "university", 2);
|
|
2568
2592
|
__decorateClass([
|
|
2569
2593
|
IsString23(),
|
|
2570
|
-
|
|
2594
|
+
IsNotEmpty32()
|
|
2571
2595
|
], UpdateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2572
2596
|
var UpdateFreelancerEducationDto = class {
|
|
2573
2597
|
};
|
|
@@ -2584,7 +2608,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2584
2608
|
};
|
|
2585
2609
|
|
|
2586
2610
|
// src/modules/user/freelancer-project/dto/update-freelancer-project.dto.ts
|
|
2587
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested5, IsString as IsString24, IsNotEmpty as
|
|
2611
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested5, IsString as IsString24, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional16, IsDateString } from "class-validator";
|
|
2588
2612
|
import { Type as Type6 } from "class-transformer";
|
|
2589
2613
|
var CreateProjectDto = class {
|
|
2590
2614
|
};
|
|
@@ -2593,15 +2617,15 @@ __decorateClass([
|
|
|
2593
2617
|
], CreateProjectDto.prototype, "uuid", 2);
|
|
2594
2618
|
__decorateClass([
|
|
2595
2619
|
IsString24(),
|
|
2596
|
-
|
|
2620
|
+
IsNotEmpty33()
|
|
2597
2621
|
], CreateProjectDto.prototype, "projectName", 2);
|
|
2598
2622
|
__decorateClass([
|
|
2599
2623
|
IsDateString(),
|
|
2600
|
-
|
|
2624
|
+
IsNotEmpty33()
|
|
2601
2625
|
], CreateProjectDto.prototype, "startDate", 2);
|
|
2602
2626
|
__decorateClass([
|
|
2603
2627
|
IsDateString(),
|
|
2604
|
-
|
|
2628
|
+
IsNotEmpty33()
|
|
2605
2629
|
], CreateProjectDto.prototype, "endDate", 2);
|
|
2606
2630
|
__decorateClass([
|
|
2607
2631
|
IsOptional16(),
|
|
@@ -2622,11 +2646,11 @@ __decorateClass([
|
|
|
2622
2646
|
], CreateCaseStudyDto.prototype, "uuid", 2);
|
|
2623
2647
|
__decorateClass([
|
|
2624
2648
|
IsString24(),
|
|
2625
|
-
|
|
2649
|
+
IsNotEmpty33()
|
|
2626
2650
|
], CreateCaseStudyDto.prototype, "projectName", 2);
|
|
2627
2651
|
__decorateClass([
|
|
2628
2652
|
IsString24(),
|
|
2629
|
-
|
|
2653
|
+
IsNotEmpty33()
|
|
2630
2654
|
], CreateCaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2631
2655
|
__decorateClass([
|
|
2632
2656
|
IsOptional16(),
|
|
@@ -3062,6 +3086,7 @@ export {
|
|
|
3062
3086
|
SYSTEM_PREFERENCES_PATTERN,
|
|
3063
3087
|
ScopeEnum,
|
|
3064
3088
|
SenseloafLog,
|
|
3089
|
+
SetPasswordDto,
|
|
3065
3090
|
Skill,
|
|
3066
3091
|
Step,
|
|
3067
3092
|
SystemPreference,
|