@experts_hub/shared 1.0.157 → 1.0.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/otp.entity.d.ts +1 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +348 -291
- package/dist/index.mjs +244 -191
- package/dist/modules/otp/dto/index.d.ts +2 -0
- package/dist/modules/otp/dto/send-guest-otp.dto.d.ts +8 -0
- package/dist/modules/otp/dto/verify-guest-otp.dto.d.ts +8 -0
- package/dist/modules/otp/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -147,6 +147,51 @@ var OTP_PATTERN = {
|
|
|
147
147
|
handleVerifyOtp: "handle.verify.otp"
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
151
|
+
import { IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty7, IsString } from "class-validator";
|
|
152
|
+
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
153
|
+
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
154
|
+
return SendGuestOtpPurposeEnum2;
|
|
155
|
+
})(SendGuestOtpPurposeEnum || {});
|
|
156
|
+
var SendGuestOtpDto = class {
|
|
157
|
+
};
|
|
158
|
+
__decorateClass([
|
|
159
|
+
IsNotEmpty7({ message: "Please enter full name." }),
|
|
160
|
+
IsString({ message: "Please enter valid full name." })
|
|
161
|
+
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
IsNotEmpty7({ message: "Please enter target." }),
|
|
164
|
+
IsString({ message: "Please enter valid target." })
|
|
165
|
+
], SendGuestOtpDto.prototype, "target", 2);
|
|
166
|
+
__decorateClass([
|
|
167
|
+
IsNotEmpty7({ message: "Please enter OTP purpose." }),
|
|
168
|
+
IsEnum5(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
169
|
+
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
170
|
+
|
|
171
|
+
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
172
|
+
import { IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty8, IsString as IsString2, Length } from "class-validator";
|
|
173
|
+
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
174
|
+
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
175
|
+
return VerifyGuestOtpPurposeEnum2;
|
|
176
|
+
})(VerifyGuestOtpPurposeEnum || {});
|
|
177
|
+
var VerifyGuestOtpDto = class {
|
|
178
|
+
};
|
|
179
|
+
__decorateClass([
|
|
180
|
+
IsNotEmpty8({ message: "Please enter target." }),
|
|
181
|
+
IsString2({ message: "Please enter valid target." })
|
|
182
|
+
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
IsNotEmpty8({ message: "Please enter otp." }),
|
|
185
|
+
IsString2({ message: "Please enter valid otp." }),
|
|
186
|
+
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
187
|
+
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
IsNotEmpty8({ message: "Please enter OTP purpose." }),
|
|
190
|
+
IsEnum6(VerifyGuestOtpPurposeEnum, {
|
|
191
|
+
message: "Purpose must be a valid OTP purpose"
|
|
192
|
+
})
|
|
193
|
+
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
194
|
+
|
|
150
195
|
// src/modules/onboarding/pattern/pattern.ts
|
|
151
196
|
var ONBOARDING_PATTERN = {
|
|
152
197
|
handleFreelancerAccountCreation: "handle.freelancer.account.creation",
|
|
@@ -161,12 +206,12 @@ var ONBOARDING_PATTERN = {
|
|
|
161
206
|
|
|
162
207
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
163
208
|
import {
|
|
164
|
-
IsNotEmpty as
|
|
209
|
+
IsNotEmpty as IsNotEmpty9,
|
|
165
210
|
IsEmail as IsEmail2,
|
|
166
211
|
Matches as Matches3,
|
|
167
212
|
MinLength as MinLength3,
|
|
168
213
|
MaxLength as MaxLength3,
|
|
169
|
-
IsString
|
|
214
|
+
IsString as IsString3
|
|
170
215
|
} from "class-validator";
|
|
171
216
|
|
|
172
217
|
// src/decorators/match.decorator.ts
|
|
@@ -219,25 +264,25 @@ IfscOrOtherFieldsConstraint = __decorateClass([
|
|
|
219
264
|
var FreelancerCreateAccountDto = class {
|
|
220
265
|
};
|
|
221
266
|
__decorateClass([
|
|
222
|
-
|
|
223
|
-
|
|
267
|
+
IsNotEmpty9({ message: "Please enter full name." }),
|
|
268
|
+
IsString3({ message: "Please enter valid full name." })
|
|
224
269
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
225
270
|
__decorateClass([
|
|
226
|
-
|
|
271
|
+
IsNotEmpty9({ message: "Please enter email." }),
|
|
227
272
|
IsEmail2()
|
|
228
273
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
229
274
|
__decorateClass([
|
|
230
|
-
|
|
275
|
+
IsNotEmpty9({ message: "Please enter mobile code." }),
|
|
231
276
|
Matches3(/^\d+$/, { message: "Mobile code must be numeric" })
|
|
232
277
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
233
278
|
__decorateClass([
|
|
234
|
-
|
|
279
|
+
IsNotEmpty9({ message: "Please enter mobile number." }),
|
|
235
280
|
Matches3(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
236
281
|
message: "Please enter a valid US mobile number"
|
|
237
282
|
})
|
|
238
283
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
239
284
|
__decorateClass([
|
|
240
|
-
|
|
285
|
+
IsNotEmpty9({ message: "Please enter password." }),
|
|
241
286
|
MinLength3(6),
|
|
242
287
|
MaxLength3(32),
|
|
243
288
|
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -245,48 +290,48 @@ __decorateClass([
|
|
|
245
290
|
})
|
|
246
291
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
247
292
|
__decorateClass([
|
|
248
|
-
|
|
293
|
+
IsNotEmpty9({ message: "Please enter confirm password." }),
|
|
249
294
|
Match("password", { message: "Passwords do not match" })
|
|
250
295
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
251
296
|
|
|
252
297
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
253
|
-
import { IsUUID, IsNotEmpty as
|
|
298
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty10 } from "class-validator";
|
|
254
299
|
var FreelancerUploadResumeDto = class {
|
|
255
300
|
};
|
|
256
301
|
__decorateClass([
|
|
257
|
-
|
|
302
|
+
IsNotEmpty10({ message: "Please enter uuid." }),
|
|
258
303
|
IsUUID()
|
|
259
304
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
260
305
|
|
|
261
306
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
262
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
307
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty11, IsBoolean } from "class-validator";
|
|
263
308
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
264
309
|
};
|
|
265
310
|
__decorateClass([
|
|
266
|
-
|
|
311
|
+
IsNotEmpty11({ message: "Please enter uuid." }),
|
|
267
312
|
IsUUID2()
|
|
268
313
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
269
314
|
__decorateClass([
|
|
270
|
-
|
|
315
|
+
IsNotEmpty11({ message: "Please select development flag." }),
|
|
271
316
|
IsBoolean()
|
|
272
317
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
273
318
|
|
|
274
319
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
275
320
|
import {
|
|
276
321
|
IsUUID as IsUUID3,
|
|
277
|
-
IsString as
|
|
278
|
-
IsNotEmpty as
|
|
322
|
+
IsString as IsString4,
|
|
323
|
+
IsNotEmpty as IsNotEmpty12,
|
|
279
324
|
IsIn
|
|
280
325
|
} from "class-validator";
|
|
281
326
|
var FreelancerProfileQuestionDto = class {
|
|
282
327
|
};
|
|
283
328
|
__decorateClass([
|
|
284
|
-
|
|
329
|
+
IsNotEmpty12({ message: "Please enter uuid." }),
|
|
285
330
|
IsUUID3()
|
|
286
331
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
287
332
|
__decorateClass([
|
|
288
|
-
|
|
289
|
-
|
|
333
|
+
IsNotEmpty12({ message: "Please enter question slug." }),
|
|
334
|
+
IsString4(),
|
|
290
335
|
IsIn([
|
|
291
336
|
"natureOfWork",
|
|
292
337
|
"expectedHourlyCompensation",
|
|
@@ -296,26 +341,26 @@ __decorateClass([
|
|
|
296
341
|
])
|
|
297
342
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
298
343
|
__decorateClass([
|
|
299
|
-
|
|
344
|
+
IsNotEmpty12({ message: "Please enter answer." })
|
|
300
345
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
301
346
|
|
|
302
347
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
303
348
|
import {
|
|
304
|
-
IsNotEmpty as
|
|
349
|
+
IsNotEmpty as IsNotEmpty13,
|
|
305
350
|
IsOptional,
|
|
306
351
|
IsUrl,
|
|
307
|
-
IsString as
|
|
352
|
+
IsString as IsString5,
|
|
308
353
|
IsUUID as IsUUID4
|
|
309
354
|
} from "class-validator";
|
|
310
355
|
var FreelancerWorkShowcaseDto = class {
|
|
311
356
|
};
|
|
312
357
|
__decorateClass([
|
|
313
|
-
|
|
358
|
+
IsNotEmpty13({ message: "Please enter uuid." }),
|
|
314
359
|
IsUUID4()
|
|
315
360
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
316
361
|
__decorateClass([
|
|
317
|
-
|
|
318
|
-
|
|
362
|
+
IsNotEmpty13({ message: "Please enter likedin profile url." }),
|
|
363
|
+
IsString5(),
|
|
319
364
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
320
365
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
321
366
|
__decorateClass([
|
|
@@ -338,19 +383,19 @@ __decorateClass([
|
|
|
338
383
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
339
384
|
import {
|
|
340
385
|
IsUUID as IsUUID5,
|
|
341
|
-
IsString as
|
|
342
|
-
IsNotEmpty as
|
|
386
|
+
IsString as IsString6,
|
|
387
|
+
IsNotEmpty as IsNotEmpty14,
|
|
343
388
|
IsIn as IsIn2
|
|
344
389
|
} from "class-validator";
|
|
345
390
|
var ClientProfileQuestionDto = class {
|
|
346
391
|
};
|
|
347
392
|
__decorateClass([
|
|
348
|
-
|
|
393
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
349
394
|
IsUUID5()
|
|
350
395
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
351
396
|
__decorateClass([
|
|
352
|
-
|
|
353
|
-
|
|
397
|
+
IsNotEmpty14({ message: "Please enter question slug." }),
|
|
398
|
+
IsString6(),
|
|
354
399
|
IsIn2([
|
|
355
400
|
"skills",
|
|
356
401
|
"requiredFreelancer",
|
|
@@ -360,38 +405,38 @@ __decorateClass([
|
|
|
360
405
|
])
|
|
361
406
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
362
407
|
__decorateClass([
|
|
363
|
-
|
|
408
|
+
IsNotEmpty14({ message: "Please enter answer." })
|
|
364
409
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
365
410
|
|
|
366
411
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
367
412
|
import {
|
|
368
|
-
IsNotEmpty as
|
|
413
|
+
IsNotEmpty as IsNotEmpty15,
|
|
369
414
|
IsEmail as IsEmail3,
|
|
370
415
|
Matches as Matches4,
|
|
371
416
|
MinLength as MinLength4,
|
|
372
417
|
MaxLength as MaxLength4,
|
|
373
|
-
IsString as
|
|
418
|
+
IsString as IsString7
|
|
374
419
|
} from "class-validator";
|
|
375
420
|
var ClientCreateAccountDto = class {
|
|
376
421
|
};
|
|
377
422
|
__decorateClass([
|
|
378
|
-
|
|
379
|
-
|
|
423
|
+
IsNotEmpty15({ message: "Please enter first name." }),
|
|
424
|
+
IsString7({ message: "Please enter valid first name." })
|
|
380
425
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
381
426
|
__decorateClass([
|
|
382
|
-
|
|
383
|
-
|
|
427
|
+
IsNotEmpty15({ message: "Please enter last name." }),
|
|
428
|
+
IsString7({ message: "Please enter valid last name." })
|
|
384
429
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
385
430
|
__decorateClass([
|
|
386
|
-
|
|
431
|
+
IsNotEmpty15({ message: "Please enter email." }),
|
|
387
432
|
IsEmail3()
|
|
388
433
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
389
434
|
__decorateClass([
|
|
390
|
-
|
|
391
|
-
|
|
435
|
+
IsNotEmpty15({ message: "Please enter company name." }),
|
|
436
|
+
IsString7({ message: "Please enter valid company name." })
|
|
392
437
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
393
438
|
__decorateClass([
|
|
394
|
-
|
|
439
|
+
IsNotEmpty15({ message: "Please enter password." }),
|
|
395
440
|
MinLength4(6),
|
|
396
441
|
MaxLength4(32),
|
|
397
442
|
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -399,7 +444,7 @@ __decorateClass([
|
|
|
399
444
|
})
|
|
400
445
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
401
446
|
__decorateClass([
|
|
402
|
-
|
|
447
|
+
IsNotEmpty15({ message: "Please enter confirm password." }),
|
|
403
448
|
Match("password", { message: "Passwords do not match" })
|
|
404
449
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
405
450
|
|
|
@@ -422,76 +467,76 @@ var SUBADMIN_PATTERN = {
|
|
|
422
467
|
|
|
423
468
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
424
469
|
import {
|
|
425
|
-
IsNotEmpty as
|
|
470
|
+
IsNotEmpty as IsNotEmpty16
|
|
426
471
|
} from "class-validator";
|
|
427
472
|
var CreateSubAdminDto = class {
|
|
428
473
|
};
|
|
429
474
|
__decorateClass([
|
|
430
|
-
|
|
475
|
+
IsNotEmpty16({ message: "Please enter unique id." })
|
|
431
476
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
432
477
|
__decorateClass([
|
|
433
|
-
|
|
478
|
+
IsNotEmpty16({ message: "Please enter username." })
|
|
434
479
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
435
480
|
__decorateClass([
|
|
436
|
-
|
|
481
|
+
IsNotEmpty16({ message: "Please enter first name." })
|
|
437
482
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
438
483
|
__decorateClass([
|
|
439
|
-
|
|
484
|
+
IsNotEmpty16({ message: "Please enter last name." })
|
|
440
485
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
441
486
|
__decorateClass([
|
|
442
|
-
|
|
487
|
+
IsNotEmpty16({ message: "Please enter email." })
|
|
443
488
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
444
489
|
__decorateClass([
|
|
445
|
-
|
|
490
|
+
IsNotEmpty16({ message: "Please enter mobile number." })
|
|
446
491
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
447
492
|
__decorateClass([
|
|
448
|
-
|
|
493
|
+
IsNotEmpty16({ message: "Please enter the password." })
|
|
449
494
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
450
495
|
__decorateClass([
|
|
451
|
-
|
|
496
|
+
IsNotEmpty16({ message: "Please enter account type." })
|
|
452
497
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
453
498
|
__decorateClass([
|
|
454
|
-
|
|
499
|
+
IsNotEmpty16({ message: "Please enter account status." })
|
|
455
500
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
456
501
|
|
|
457
502
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
458
|
-
import { IsString as
|
|
503
|
+
import { IsString as IsString8 } from "class-validator";
|
|
459
504
|
var UpdateSubAdminAccountStatusDto = class {
|
|
460
505
|
};
|
|
461
506
|
__decorateClass([
|
|
462
|
-
|
|
507
|
+
IsString8()
|
|
463
508
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
464
509
|
|
|
465
510
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
466
|
-
import { IsNotEmpty as
|
|
511
|
+
import { IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
467
512
|
var UpdateSubAdminDto = class {
|
|
468
513
|
};
|
|
469
514
|
__decorateClass([
|
|
470
|
-
|
|
515
|
+
IsNotEmpty17({ message: "Please enter unique id." })
|
|
471
516
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
472
517
|
__decorateClass([
|
|
473
|
-
|
|
518
|
+
IsNotEmpty17({ message: "Please enter username." })
|
|
474
519
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
475
520
|
__decorateClass([
|
|
476
|
-
|
|
521
|
+
IsNotEmpty17({ message: "Please enter first name." })
|
|
477
522
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
478
523
|
__decorateClass([
|
|
479
|
-
|
|
524
|
+
IsNotEmpty17({ message: "Please enter last name." })
|
|
480
525
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
481
526
|
__decorateClass([
|
|
482
|
-
|
|
527
|
+
IsNotEmpty17({ message: "Please enter email." })
|
|
483
528
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
484
529
|
__decorateClass([
|
|
485
|
-
|
|
530
|
+
IsNotEmpty17({ message: "Please enter mobile number." })
|
|
486
531
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
487
532
|
__decorateClass([
|
|
488
|
-
|
|
533
|
+
IsNotEmpty17({ message: "Please enter the password." })
|
|
489
534
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
490
535
|
__decorateClass([
|
|
491
|
-
|
|
536
|
+
IsNotEmpty17({ message: "Please enter account type." })
|
|
492
537
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
493
538
|
__decorateClass([
|
|
494
|
-
|
|
539
|
+
IsNotEmpty17({ message: "Please enter account status." })
|
|
495
540
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
496
541
|
|
|
497
542
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -504,64 +549,64 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
504
549
|
|
|
505
550
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
506
551
|
import {
|
|
507
|
-
IsString as
|
|
508
|
-
IsNotEmpty as
|
|
552
|
+
IsString as IsString10,
|
|
553
|
+
IsNotEmpty as IsNotEmpty18,
|
|
509
554
|
IsEmail as IsEmail5,
|
|
510
|
-
Length,
|
|
555
|
+
Length as Length2,
|
|
511
556
|
IsUrl as IsUrl2,
|
|
512
557
|
Matches as Matches5
|
|
513
558
|
} from "class-validator";
|
|
514
559
|
var UpdateCompanyProfileDto = class {
|
|
515
560
|
};
|
|
516
561
|
__decorateClass([
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
562
|
+
IsNotEmpty18({ message: "Please enter company name." }),
|
|
563
|
+
IsString10({ message: "Company name must be a string." }),
|
|
564
|
+
Length2(2, 255, {
|
|
520
565
|
message: "Company name must be between 2 and 255 characters"
|
|
521
566
|
})
|
|
522
567
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
523
568
|
__decorateClass([
|
|
524
|
-
|
|
569
|
+
IsNotEmpty18({ message: "Please enter company website url." }),
|
|
525
570
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
526
571
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
527
572
|
__decorateClass([
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
573
|
+
IsNotEmpty18({ message: "Please enter company address." }),
|
|
574
|
+
IsString10({ message: "Company address must be a string" }),
|
|
575
|
+
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
531
576
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
532
577
|
__decorateClass([
|
|
533
|
-
|
|
578
|
+
IsNotEmpty18({ message: "Please enter phone number." }),
|
|
534
579
|
Matches5(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
535
580
|
message: "Please enter a valid US phone number"
|
|
536
581
|
})
|
|
537
582
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
538
583
|
__decorateClass([
|
|
539
|
-
|
|
584
|
+
IsNotEmpty18({ message: "Please enter email." }),
|
|
540
585
|
IsEmail5()
|
|
541
586
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
542
587
|
__decorateClass([
|
|
543
|
-
|
|
544
|
-
|
|
588
|
+
IsNotEmpty18({ message: "Please enter something about company." }),
|
|
589
|
+
IsString10({ message: "About company must be a string." })
|
|
545
590
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
546
591
|
|
|
547
592
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
548
593
|
import {
|
|
549
|
-
IsString as
|
|
594
|
+
IsString as IsString11,
|
|
550
595
|
MinLength as MinLength6,
|
|
551
596
|
Matches as Matches6,
|
|
552
|
-
IsNotEmpty as
|
|
597
|
+
IsNotEmpty as IsNotEmpty19
|
|
553
598
|
} from "class-validator";
|
|
554
599
|
var ClientChangePasswordDto = class {
|
|
555
600
|
};
|
|
556
601
|
__decorateClass([
|
|
557
|
-
|
|
602
|
+
IsString11(),
|
|
558
603
|
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
559
604
|
Matches6(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
560
605
|
message: "Password must contain at least one uppercase letter and one number."
|
|
561
606
|
})
|
|
562
607
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
563
608
|
__decorateClass([
|
|
564
|
-
|
|
609
|
+
IsNotEmpty19({ message: "Please enter confirm password." }),
|
|
565
610
|
Match("newPassword", { message: "Passwords do not match" })
|
|
566
611
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
567
612
|
|
|
@@ -572,23 +617,23 @@ var QUESTION_PATTERN = {
|
|
|
572
617
|
|
|
573
618
|
// src/modules/question/dto/create-question.dto.ts
|
|
574
619
|
import {
|
|
575
|
-
IsNotEmpty as
|
|
620
|
+
IsNotEmpty as IsNotEmpty20,
|
|
576
621
|
IsOptional as IsOptional4,
|
|
577
622
|
IsBoolean as IsBoolean4
|
|
578
623
|
} from "class-validator";
|
|
579
624
|
var CreateQuestionDto = class {
|
|
580
625
|
};
|
|
581
626
|
__decorateClass([
|
|
582
|
-
|
|
627
|
+
IsNotEmpty20({ message: "Please enter unique id." })
|
|
583
628
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
584
629
|
__decorateClass([
|
|
585
|
-
|
|
630
|
+
IsNotEmpty20({ message: "Please enter question." })
|
|
586
631
|
], CreateQuestionDto.prototype, "question", 2);
|
|
587
632
|
__decorateClass([
|
|
588
|
-
|
|
633
|
+
IsNotEmpty20({ message: "Please enter for whom the question is." })
|
|
589
634
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
590
635
|
__decorateClass([
|
|
591
|
-
|
|
636
|
+
IsNotEmpty20({ message: "Please enter options." })
|
|
592
637
|
], CreateQuestionDto.prototype, "options", 2);
|
|
593
638
|
__decorateClass([
|
|
594
639
|
IsOptional4(),
|
|
@@ -618,13 +663,13 @@ var JOB_PATTERN = {
|
|
|
618
663
|
|
|
619
664
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
620
665
|
import {
|
|
621
|
-
IsString as
|
|
622
|
-
IsNotEmpty as
|
|
666
|
+
IsString as IsString12,
|
|
667
|
+
IsNotEmpty as IsNotEmpty21,
|
|
623
668
|
IsArray,
|
|
624
669
|
ArrayNotEmpty,
|
|
625
670
|
IsNumber,
|
|
626
671
|
IsOptional as IsOptional5,
|
|
627
|
-
IsEnum as
|
|
672
|
+
IsEnum as IsEnum7,
|
|
628
673
|
Min
|
|
629
674
|
} from "class-validator";
|
|
630
675
|
import { Type } from "class-transformer";
|
|
@@ -643,12 +688,12 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
643
688
|
var JobBasicInformationDto = class {
|
|
644
689
|
};
|
|
645
690
|
__decorateClass([
|
|
646
|
-
|
|
647
|
-
|
|
691
|
+
IsNotEmpty21({ message: "Please enter job role" }),
|
|
692
|
+
IsString12({ message: "Job role must be a string" })
|
|
648
693
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
649
694
|
__decorateClass([
|
|
650
695
|
IsOptional5(),
|
|
651
|
-
|
|
696
|
+
IsString12({ message: "Note must be a string" })
|
|
652
697
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
653
698
|
__decorateClass([
|
|
654
699
|
IsArray({ message: "Skills must be an array" }),
|
|
@@ -662,14 +707,14 @@ __decorateClass([
|
|
|
662
707
|
Type(() => Number)
|
|
663
708
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
664
709
|
__decorateClass([
|
|
665
|
-
|
|
710
|
+
IsEnum7(JobLocation, {
|
|
666
711
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
667
712
|
", "
|
|
668
713
|
)}`
|
|
669
714
|
})
|
|
670
715
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
671
716
|
__decorateClass([
|
|
672
|
-
|
|
717
|
+
IsEnum7(EmploymentType, {
|
|
673
718
|
message: `Type of employment must be one of: ${Object.values(
|
|
674
719
|
EmploymentType
|
|
675
720
|
).join(", ")}`
|
|
@@ -686,36 +731,36 @@ __decorateClass([
|
|
|
686
731
|
Type(() => Number)
|
|
687
732
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
688
733
|
__decorateClass([
|
|
689
|
-
|
|
734
|
+
IsString12({ message: "Onboarding TAT must be a string" }),
|
|
690
735
|
IsOptional5()
|
|
691
736
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
692
737
|
__decorateClass([
|
|
693
|
-
|
|
738
|
+
IsString12({ message: "Candidate communication skills must be a string" }),
|
|
694
739
|
IsOptional5()
|
|
695
740
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
696
741
|
|
|
697
742
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
698
|
-
import { IsOptional as IsOptional6, IsString as
|
|
743
|
+
import { IsOptional as IsOptional6, IsString as IsString13, MaxLength as MaxLength6 } from "class-validator";
|
|
699
744
|
var JobAdditionalCommentDto = class {
|
|
700
745
|
};
|
|
701
746
|
__decorateClass([
|
|
702
747
|
IsOptional6(),
|
|
703
|
-
|
|
748
|
+
IsString13({ message: "Additional comment must be a string" }),
|
|
704
749
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
705
750
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
706
751
|
|
|
707
752
|
// src/modules/job/dto/job-description.dto.ts
|
|
708
|
-
import { IsString as
|
|
753
|
+
import { IsString as IsString14, IsNotEmpty as IsNotEmpty22, MaxLength as MaxLength7 } from "class-validator";
|
|
709
754
|
var JobDescriptionDto = class {
|
|
710
755
|
};
|
|
711
756
|
__decorateClass([
|
|
712
|
-
|
|
713
|
-
|
|
757
|
+
IsNotEmpty22({ message: "Please enter job description" }),
|
|
758
|
+
IsString14({ message: "Description must be a string" }),
|
|
714
759
|
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
715
760
|
], JobDescriptionDto.prototype, "description", 2);
|
|
716
761
|
|
|
717
762
|
// src/modules/job/dto/job-status.dto.ts
|
|
718
|
-
import { IsEnum as
|
|
763
|
+
import { IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty23 } from "class-validator";
|
|
719
764
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
720
765
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
721
766
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -727,8 +772,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
727
772
|
var JobStatusDto = class {
|
|
728
773
|
};
|
|
729
774
|
__decorateClass([
|
|
730
|
-
|
|
731
|
-
|
|
775
|
+
IsNotEmpty23({ message: "Please provide a job status" }),
|
|
776
|
+
IsEnum8(JobStatus, {
|
|
732
777
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
733
778
|
})
|
|
734
779
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -753,8 +798,8 @@ var PROFILE_PATTERN = {
|
|
|
753
798
|
|
|
754
799
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
755
800
|
import {
|
|
756
|
-
IsString as
|
|
757
|
-
IsNotEmpty as
|
|
801
|
+
IsString as IsString15,
|
|
802
|
+
IsNotEmpty as IsNotEmpty24,
|
|
758
803
|
MaxLength as MaxLength8,
|
|
759
804
|
MinLength as MinLength7,
|
|
760
805
|
Matches as Matches7
|
|
@@ -762,12 +807,12 @@ import {
|
|
|
762
807
|
var FreelancerChangePasswordDto = class {
|
|
763
808
|
};
|
|
764
809
|
__decorateClass([
|
|
765
|
-
|
|
766
|
-
|
|
810
|
+
IsNotEmpty24({ message: "Please enter Old Password." }),
|
|
811
|
+
IsString15()
|
|
767
812
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
768
813
|
__decorateClass([
|
|
769
|
-
|
|
770
|
-
|
|
814
|
+
IsNotEmpty24({ message: "Please enter New Password." }),
|
|
815
|
+
IsString15(),
|
|
771
816
|
MinLength7(6),
|
|
772
817
|
MaxLength8(32),
|
|
773
818
|
Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -776,7 +821,7 @@ __decorateClass([
|
|
|
776
821
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
777
822
|
|
|
778
823
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
779
|
-
import { IsOptional as IsOptional7, IsString as
|
|
824
|
+
import { IsOptional as IsOptional7, IsString as IsString16, IsEmail as IsEmail6, IsNumber as IsNumber2, IsEnum as IsEnum9 } from "class-validator";
|
|
780
825
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
781
826
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
782
827
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -787,11 +832,11 @@ var UpdateFreelancerProfileDto = class {
|
|
|
787
832
|
};
|
|
788
833
|
__decorateClass([
|
|
789
834
|
IsOptional7(),
|
|
790
|
-
|
|
835
|
+
IsString16()
|
|
791
836
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
792
837
|
__decorateClass([
|
|
793
838
|
IsOptional7(),
|
|
794
|
-
|
|
839
|
+
IsString16()
|
|
795
840
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
796
841
|
__decorateClass([
|
|
797
842
|
IsOptional7(),
|
|
@@ -799,7 +844,7 @@ __decorateClass([
|
|
|
799
844
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
800
845
|
__decorateClass([
|
|
801
846
|
IsOptional7(),
|
|
802
|
-
|
|
847
|
+
IsString16()
|
|
803
848
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
804
849
|
__decorateClass([
|
|
805
850
|
IsOptional7(),
|
|
@@ -807,45 +852,45 @@ __decorateClass([
|
|
|
807
852
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
808
853
|
__decorateClass([
|
|
809
854
|
IsOptional7(),
|
|
810
|
-
|
|
855
|
+
IsString16()
|
|
811
856
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
812
857
|
__decorateClass([
|
|
813
858
|
IsOptional7(),
|
|
814
|
-
|
|
859
|
+
IsString16()
|
|
815
860
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
816
861
|
__decorateClass([
|
|
817
862
|
IsOptional7(),
|
|
818
|
-
|
|
863
|
+
IsEnum9(NatureOfWorkDto, {
|
|
819
864
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
820
865
|
})
|
|
821
866
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
822
867
|
__decorateClass([
|
|
823
868
|
IsOptional7(),
|
|
824
|
-
|
|
869
|
+
IsString16()
|
|
825
870
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
826
871
|
__decorateClass([
|
|
827
872
|
IsOptional7(),
|
|
828
|
-
|
|
873
|
+
IsString16()
|
|
829
874
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
830
875
|
__decorateClass([
|
|
831
876
|
IsOptional7(),
|
|
832
|
-
|
|
877
|
+
IsString16()
|
|
833
878
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
834
879
|
__decorateClass([
|
|
835
880
|
IsOptional7(),
|
|
836
|
-
|
|
881
|
+
IsString16()
|
|
837
882
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
838
883
|
__decorateClass([
|
|
839
884
|
IsOptional7(),
|
|
840
|
-
|
|
885
|
+
IsString16()
|
|
841
886
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
842
887
|
__decorateClass([
|
|
843
888
|
IsOptional7(),
|
|
844
|
-
|
|
889
|
+
IsString16()
|
|
845
890
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
846
891
|
__decorateClass([
|
|
847
892
|
IsOptional7(),
|
|
848
|
-
|
|
893
|
+
IsString16()
|
|
849
894
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
850
895
|
|
|
851
896
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -857,8 +902,8 @@ var BANK_PATTERN = {
|
|
|
857
902
|
|
|
858
903
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
859
904
|
import {
|
|
860
|
-
IsEnum as
|
|
861
|
-
IsNotEmpty as
|
|
905
|
+
IsEnum as IsEnum10,
|
|
906
|
+
IsNotEmpty as IsNotEmpty25,
|
|
862
907
|
IsOptional as IsOptional8,
|
|
863
908
|
ValidateIf
|
|
864
909
|
} from "class-validator";
|
|
@@ -870,47 +915,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
870
915
|
var FreelancerBankDetailsDto = class {
|
|
871
916
|
};
|
|
872
917
|
__decorateClass([
|
|
873
|
-
|
|
918
|
+
IsNotEmpty25({ message: "Please enter Account Holder Name." })
|
|
874
919
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
875
920
|
__decorateClass([
|
|
876
|
-
|
|
921
|
+
IsNotEmpty25({ message: "Please enter Mobile Number." })
|
|
877
922
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
878
923
|
__decorateClass([
|
|
879
|
-
|
|
924
|
+
IsNotEmpty25({ message: "Please enter Email." })
|
|
880
925
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
881
926
|
__decorateClass([
|
|
882
927
|
IsOptional8()
|
|
883
928
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
884
929
|
__decorateClass([
|
|
885
|
-
|
|
930
|
+
IsNotEmpty25({ message: "Please enter Account Number." })
|
|
886
931
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
887
932
|
__decorateClass([
|
|
888
|
-
|
|
933
|
+
IsNotEmpty25({ message: "Please enter Bank Name." })
|
|
889
934
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
890
935
|
__decorateClass([
|
|
891
|
-
|
|
936
|
+
IsNotEmpty25({ message: "Please enter Branch Name." })
|
|
892
937
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
893
938
|
__decorateClass([
|
|
894
939
|
ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
|
|
895
|
-
|
|
940
|
+
IsNotEmpty25({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
896
941
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
897
942
|
__decorateClass([
|
|
898
943
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
899
|
-
|
|
944
|
+
IsNotEmpty25({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
900
945
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
901
946
|
__decorateClass([
|
|
902
947
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
903
|
-
|
|
948
|
+
IsNotEmpty25({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
904
949
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
905
950
|
__decorateClass([
|
|
906
951
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
907
|
-
|
|
952
|
+
IsNotEmpty25({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
908
953
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
909
954
|
__decorateClass([
|
|
910
955
|
IsOptional8()
|
|
911
956
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
912
957
|
__decorateClass([
|
|
913
|
-
|
|
958
|
+
IsEnum10(BankAccountScope, {
|
|
914
959
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
915
960
|
BankAccountScope
|
|
916
961
|
).join(", ")}`
|
|
@@ -932,7 +977,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
932
977
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
933
978
|
import {
|
|
934
979
|
IsBoolean as IsBoolean5,
|
|
935
|
-
IsEnum as
|
|
980
|
+
IsEnum as IsEnum11
|
|
936
981
|
} from "class-validator";
|
|
937
982
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
938
983
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -945,7 +990,7 @@ __decorateClass([
|
|
|
945
990
|
IsBoolean5()
|
|
946
991
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
947
992
|
__decorateClass([
|
|
948
|
-
|
|
993
|
+
IsEnum11(SystemPreferenceKey, {
|
|
949
994
|
message: `key must be one of: ${Object.values(
|
|
950
995
|
SystemPreferenceKey
|
|
951
996
|
).join(", ")}`
|
|
@@ -966,11 +1011,11 @@ var RATING_PATTERN = {
|
|
|
966
1011
|
|
|
967
1012
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
968
1013
|
import {
|
|
969
|
-
IsEnum as
|
|
1014
|
+
IsEnum as IsEnum12,
|
|
970
1015
|
IsInt,
|
|
971
|
-
IsNotEmpty as
|
|
1016
|
+
IsNotEmpty as IsNotEmpty26,
|
|
972
1017
|
IsOptional as IsOptional9,
|
|
973
|
-
IsString as
|
|
1018
|
+
IsString as IsString17,
|
|
974
1019
|
Max,
|
|
975
1020
|
Min as Min2
|
|
976
1021
|
} from "class-validator";
|
|
@@ -1158,6 +1203,10 @@ __decorateClass([
|
|
|
1158
1203
|
Column4({ name: "is_used", type: "boolean", default: false }),
|
|
1159
1204
|
Index()
|
|
1160
1205
|
], Otp.prototype, "isUsed", 2);
|
|
1206
|
+
__decorateClass([
|
|
1207
|
+
Column4({ name: "is_verified", type: "boolean", default: false }),
|
|
1208
|
+
Index()
|
|
1209
|
+
], Otp.prototype, "isVerified", 2);
|
|
1161
1210
|
__decorateClass([
|
|
1162
1211
|
Column4({ name: "resend_count", type: "int", default: 0 })
|
|
1163
1212
|
], Otp.prototype, "resendCount", 2);
|
|
@@ -2359,10 +2408,10 @@ var CreateRatingDto = class {
|
|
|
2359
2408
|
};
|
|
2360
2409
|
__decorateClass([
|
|
2361
2410
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
2362
|
-
|
|
2411
|
+
IsNotEmpty26({ message: "Reviewee ID is required" })
|
|
2363
2412
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2364
2413
|
__decorateClass([
|
|
2365
|
-
|
|
2414
|
+
IsEnum12(RatingTypeEnum, {
|
|
2366
2415
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2367
2416
|
})
|
|
2368
2417
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -2373,7 +2422,7 @@ __decorateClass([
|
|
|
2373
2422
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2374
2423
|
__decorateClass([
|
|
2375
2424
|
IsOptional9(),
|
|
2376
|
-
|
|
2425
|
+
IsString17({ message: "Review must be a string" })
|
|
2377
2426
|
], CreateRatingDto.prototype, "review", 2);
|
|
2378
2427
|
|
|
2379
2428
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -2389,17 +2438,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2389
2438
|
};
|
|
2390
2439
|
|
|
2391
2440
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2392
|
-
import { IsBoolean as IsBoolean6, IsNotEmpty as
|
|
2441
|
+
import { IsBoolean as IsBoolean6, IsNotEmpty as IsNotEmpty27, IsOptional as IsOptional10 } from "class-validator";
|
|
2393
2442
|
var CreateCompanyRoleDto = class {
|
|
2394
2443
|
};
|
|
2395
2444
|
__decorateClass([
|
|
2396
|
-
|
|
2445
|
+
IsNotEmpty27({ message: "Please enter company role name." })
|
|
2397
2446
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2398
2447
|
__decorateClass([
|
|
2399
|
-
|
|
2448
|
+
IsNotEmpty27({ message: "Please enter company role slug" })
|
|
2400
2449
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2401
2450
|
__decorateClass([
|
|
2402
|
-
|
|
2451
|
+
IsNotEmpty27({ message: "Please enter description" })
|
|
2403
2452
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2404
2453
|
__decorateClass([
|
|
2405
2454
|
IsOptional10(),
|
|
@@ -2407,17 +2456,17 @@ __decorateClass([
|
|
|
2407
2456
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2408
2457
|
|
|
2409
2458
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2410
|
-
import { IsBoolean as IsBoolean7, IsNotEmpty as
|
|
2459
|
+
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty28, IsOptional as IsOptional11 } from "class-validator";
|
|
2411
2460
|
var UpdateCompanyRoleDto = class {
|
|
2412
2461
|
};
|
|
2413
2462
|
__decorateClass([
|
|
2414
|
-
|
|
2463
|
+
IsNotEmpty28({ message: "Please enter company name." })
|
|
2415
2464
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2416
2465
|
__decorateClass([
|
|
2417
|
-
|
|
2466
|
+
IsNotEmpty28({ message: "Please enter slug" })
|
|
2418
2467
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2419
2468
|
__decorateClass([
|
|
2420
|
-
|
|
2469
|
+
IsNotEmpty28({ message: "Please enter description" })
|
|
2421
2470
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2422
2471
|
__decorateClass([
|
|
2423
2472
|
IsOptional11(),
|
|
@@ -2440,9 +2489,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2440
2489
|
|
|
2441
2490
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
2442
2491
|
import {
|
|
2443
|
-
IsNotEmpty as
|
|
2492
|
+
IsNotEmpty as IsNotEmpty29,
|
|
2444
2493
|
IsOptional as IsOptional12,
|
|
2445
|
-
IsString as
|
|
2494
|
+
IsString as IsString20,
|
|
2446
2495
|
MaxLength as MaxLength10,
|
|
2447
2496
|
ValidateNested
|
|
2448
2497
|
} from "class-validator";
|
|
@@ -2453,20 +2502,20 @@ __decorateClass([
|
|
|
2453
2502
|
IsOptional12()
|
|
2454
2503
|
], ExperienceDto.prototype, "uuid", 2);
|
|
2455
2504
|
__decorateClass([
|
|
2456
|
-
|
|
2457
|
-
|
|
2505
|
+
IsNotEmpty29(),
|
|
2506
|
+
IsString20()
|
|
2458
2507
|
], ExperienceDto.prototype, "companyName", 2);
|
|
2459
2508
|
__decorateClass([
|
|
2460
|
-
|
|
2461
|
-
|
|
2509
|
+
IsNotEmpty29(),
|
|
2510
|
+
IsString20()
|
|
2462
2511
|
], ExperienceDto.prototype, "designation", 2);
|
|
2463
2512
|
__decorateClass([
|
|
2464
|
-
|
|
2465
|
-
|
|
2513
|
+
IsNotEmpty29(),
|
|
2514
|
+
IsString20()
|
|
2466
2515
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
2467
2516
|
__decorateClass([
|
|
2468
|
-
|
|
2469
|
-
|
|
2517
|
+
IsNotEmpty29(),
|
|
2518
|
+
IsString20(),
|
|
2470
2519
|
MaxLength10(500, { message: "Description must not exceed 500 characters" })
|
|
2471
2520
|
], ExperienceDto.prototype, "description", 2);
|
|
2472
2521
|
var FreelancerExperienceDto = class {
|
|
@@ -2489,27 +2538,27 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2489
2538
|
};
|
|
2490
2539
|
|
|
2491
2540
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2492
|
-
import { IsNotEmpty as
|
|
2541
|
+
import { IsNotEmpty as IsNotEmpty30 } from "class-validator";
|
|
2493
2542
|
var CreateCompanyMemberDto = class {
|
|
2494
2543
|
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2495
2544
|
// companyRoleId: number;
|
|
2496
2545
|
};
|
|
2497
2546
|
__decorateClass([
|
|
2498
|
-
|
|
2547
|
+
IsNotEmpty30({ message: "Please enter name." })
|
|
2499
2548
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2500
2549
|
__decorateClass([
|
|
2501
|
-
|
|
2550
|
+
IsNotEmpty30({ message: "Please enter email" })
|
|
2502
2551
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2503
2552
|
|
|
2504
2553
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2505
|
-
import { IsNotEmpty as
|
|
2554
|
+
import { IsNotEmpty as IsNotEmpty31 } from "class-validator";
|
|
2506
2555
|
var UpdateCompanyMemberDto = class {
|
|
2507
2556
|
};
|
|
2508
2557
|
__decorateClass([
|
|
2509
|
-
|
|
2558
|
+
IsNotEmpty31({ message: "Please enter name." })
|
|
2510
2559
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2511
2560
|
__decorateClass([
|
|
2512
|
-
|
|
2561
|
+
IsNotEmpty31({ message: "Please enter email" })
|
|
2513
2562
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2514
2563
|
|
|
2515
2564
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
@@ -2527,7 +2576,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2527
2576
|
};
|
|
2528
2577
|
|
|
2529
2578
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2530
|
-
import { IsArray as IsArray2, ValidateNested as ValidateNested2, IsString as
|
|
2579
|
+
import { IsArray as IsArray2, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional15 } from "class-validator";
|
|
2531
2580
|
import { Type as Type3 } from "class-transformer";
|
|
2532
2581
|
var EducationDto = class {
|
|
2533
2582
|
};
|
|
@@ -2535,16 +2584,16 @@ __decorateClass([
|
|
|
2535
2584
|
IsOptional15()
|
|
2536
2585
|
], EducationDto.prototype, "uuid", 2);
|
|
2537
2586
|
__decorateClass([
|
|
2538
|
-
|
|
2539
|
-
|
|
2587
|
+
IsString23(),
|
|
2588
|
+
IsNotEmpty32({ message: "Please Enter Degree " })
|
|
2540
2589
|
], EducationDto.prototype, "degree", 2);
|
|
2541
2590
|
__decorateClass([
|
|
2542
|
-
|
|
2543
|
-
|
|
2591
|
+
IsString23(),
|
|
2592
|
+
IsNotEmpty32({ message: "Please Enter University " })
|
|
2544
2593
|
], EducationDto.prototype, "university", 2);
|
|
2545
2594
|
__decorateClass([
|
|
2546
|
-
|
|
2547
|
-
|
|
2595
|
+
IsString23(),
|
|
2596
|
+
IsNotEmpty32({ message: "Please Enter Year of Graduation " })
|
|
2548
2597
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2549
2598
|
var FreelancerEducationDto = class {
|
|
2550
2599
|
};
|
|
@@ -2561,7 +2610,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2561
2610
|
};
|
|
2562
2611
|
|
|
2563
2612
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2564
|
-
import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as
|
|
2613
|
+
import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2565
2614
|
import { Type as Type4 } from "class-transformer";
|
|
2566
2615
|
var ProjectDto = class {
|
|
2567
2616
|
};
|
|
@@ -2569,28 +2618,28 @@ __decorateClass([
|
|
|
2569
2618
|
IsOptional16()
|
|
2570
2619
|
], ProjectDto.prototype, "uuid", 2);
|
|
2571
2620
|
__decorateClass([
|
|
2572
|
-
|
|
2573
|
-
|
|
2621
|
+
IsString24(),
|
|
2622
|
+
IsNotEmpty33({ message: "Please Enter Project Name " })
|
|
2574
2623
|
], ProjectDto.prototype, "projectName", 2);
|
|
2575
2624
|
__decorateClass([
|
|
2576
2625
|
IsDateString(),
|
|
2577
|
-
|
|
2626
|
+
IsNotEmpty33({ message: "Please Enter Start Date " })
|
|
2578
2627
|
], ProjectDto.prototype, "startDate", 2);
|
|
2579
2628
|
__decorateClass([
|
|
2580
2629
|
IsDateString(),
|
|
2581
|
-
|
|
2630
|
+
IsNotEmpty33({ message: "Please Enter End Date " })
|
|
2582
2631
|
], ProjectDto.prototype, "endDate", 2);
|
|
2583
2632
|
__decorateClass([
|
|
2584
2633
|
IsOptional16(),
|
|
2585
|
-
|
|
2634
|
+
IsString24()
|
|
2586
2635
|
], ProjectDto.prototype, "clientName", 2);
|
|
2587
2636
|
__decorateClass([
|
|
2588
2637
|
IsOptional16(),
|
|
2589
|
-
|
|
2638
|
+
IsString24()
|
|
2590
2639
|
], ProjectDto.prototype, "gitLink", 2);
|
|
2591
2640
|
__decorateClass([
|
|
2592
2641
|
IsOptional16(),
|
|
2593
|
-
|
|
2642
|
+
IsString24(),
|
|
2594
2643
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
2595
2644
|
], ProjectDto.prototype, "description", 2);
|
|
2596
2645
|
var CaseStudyDto = class {
|
|
@@ -2599,16 +2648,16 @@ __decorateClass([
|
|
|
2599
2648
|
IsOptional16()
|
|
2600
2649
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2601
2650
|
__decorateClass([
|
|
2602
|
-
|
|
2603
|
-
|
|
2651
|
+
IsString24(),
|
|
2652
|
+
IsNotEmpty33({ message: "Please Enter Project Name " })
|
|
2604
2653
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2605
2654
|
__decorateClass([
|
|
2606
|
-
|
|
2607
|
-
|
|
2655
|
+
IsString24(),
|
|
2656
|
+
IsNotEmpty33({ message: "Please Enter Case Study Link " })
|
|
2608
2657
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2609
2658
|
__decorateClass([
|
|
2610
2659
|
IsOptional16(),
|
|
2611
|
-
|
|
2660
|
+
IsString24(),
|
|
2612
2661
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
2613
2662
|
], CaseStudyDto.prototype, "description", 2);
|
|
2614
2663
|
var FreelancerProjectDto = class {
|
|
@@ -3068,6 +3117,8 @@ export {
|
|
|
3068
3117
|
SUBADMIN_PATTERN,
|
|
3069
3118
|
SYSTEM_PREFERENCES_PATTERN,
|
|
3070
3119
|
ScopeEnum,
|
|
3120
|
+
SendGuestOtpDto,
|
|
3121
|
+
SendGuestOtpPurposeEnum,
|
|
3071
3122
|
SenseloafLog,
|
|
3072
3123
|
SetPasswordDto,
|
|
3073
3124
|
Skill,
|
|
@@ -3086,5 +3137,7 @@ export {
|
|
|
3086
3137
|
UpdateSubAdminDto,
|
|
3087
3138
|
User,
|
|
3088
3139
|
UserRMQAdapter,
|
|
3089
|
-
UserTCPAdapter
|
|
3140
|
+
UserTCPAdapter,
|
|
3141
|
+
VerifyGuestOtpDto,
|
|
3142
|
+
VerifyGuestOtpPurposeEnum
|
|
3090
3143
|
};
|