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