@experts_hub/shared 1.0.108 → 1.0.110

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.js CHANGED
@@ -45,6 +45,7 @@ __export(index_exports, {
45
45
  CreateSubAdminDto: () => CreateSubAdminDto,
46
46
  EmploymentType: () => EmploymentType,
47
47
  Feature: () => Feature,
48
+ ForgotPasswordDto: () => ForgotPasswordDto,
48
49
  FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
49
50
  FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
50
51
  FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
@@ -92,6 +93,7 @@ __export(index_exports, {
92
93
  RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
93
94
  RefreshDto: () => RefreshDto,
94
95
  RefreshToken: () => RefreshToken,
96
+ ResetPasswordDto: () => ResetPasswordDto,
95
97
  ResumeParserLog: () => ResumeParserLog,
96
98
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
97
99
  SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
@@ -119,16 +121,18 @@ var AUTHENTICATION_PATTERN = {
119
121
  handleLogout: "handle.logout",
120
122
  handleLogoutAll: "handle.logout.all",
121
123
  fetchSessions: "fetch.sessions",
122
- revokeSession: "revoke.session"
124
+ revokeSession: "revoke.session",
125
+ handleForgotPassword: "handle.forgot.password",
126
+ handleResetPassword: "handle.reset.password"
123
127
  };
124
128
 
125
129
  // src/modules/authentication/dto/login.dto.ts
126
130
  var import_class_validator = require("class-validator");
127
- var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
128
- ScopeEnum2["ADMIN"] = "ADMIN";
129
- ScopeEnum2["CLIENT"] = "CLIENT";
130
- ScopeEnum2["FREELANCER"] = "FREELANCER";
131
- return ScopeEnum2;
131
+ var ScopeEnum = /* @__PURE__ */ ((ScopeEnum4) => {
132
+ ScopeEnum4["ADMIN"] = "ADMIN";
133
+ ScopeEnum4["CLIENT"] = "CLIENT";
134
+ ScopeEnum4["FREELANCER"] = "FREELANCER";
135
+ return ScopeEnum4;
132
136
  })(ScopeEnum || {});
133
137
  var LoginDto = class {
134
138
  };
@@ -160,6 +164,53 @@ __decorateClass([
160
164
  (0, import_class_validator3.IsNotEmpty)({ message: "Please provide refresh token." })
161
165
  ], LogoutDto.prototype, "refreshToken", 2);
162
166
 
167
+ // src/modules/authentication/dto/forgot-password.dto.ts
168
+ var import_class_validator4 = require("class-validator");
169
+ var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum4) => {
170
+ ScopeEnum4["ADMIN"] = "ADMIN";
171
+ ScopeEnum4["CLIENT"] = "CLIENT";
172
+ ScopeEnum4["FREELANCER"] = "FREELANCER";
173
+ return ScopeEnum4;
174
+ })(ScopeEnum2 || {});
175
+ var ForgotPasswordDto = class {
176
+ };
177
+ __decorateClass([
178
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter email." }),
179
+ (0, import_class_validator4.IsEmail)({}, { message: "Please enter a valid email." })
180
+ ], ForgotPasswordDto.prototype, "email", 2);
181
+ __decorateClass([
182
+ (0, import_class_validator4.IsEnum)(ScopeEnum2, {
183
+ message: `Scope must be one of: ${Object.values(ScopeEnum2).join(", ")}`
184
+ })
185
+ ], ForgotPasswordDto.prototype, "scope", 2);
186
+
187
+ // src/modules/authentication/dto/reset-password.dto.ts
188
+ var import_class_validator5 = require("class-validator");
189
+ var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum4) => {
190
+ ScopeEnum4["ADMIN"] = "ADMIN";
191
+ ScopeEnum4["CLIENT"] = "CLIENT";
192
+ ScopeEnum4["FREELANCER"] = "FREELANCER";
193
+ return ScopeEnum4;
194
+ })(ScopeEnum3 || {});
195
+ var ResetPasswordDto = class {
196
+ };
197
+ __decorateClass([
198
+ (0, import_class_validator5.IsNotEmpty)({ message: "Please enter token." })
199
+ ], ResetPasswordDto.prototype, "token", 2);
200
+ __decorateClass([
201
+ (0, import_class_validator5.IsNotEmpty)({ message: "Please enter password." }),
202
+ (0, import_class_validator5.MinLength)(6),
203
+ (0, import_class_validator5.MaxLength)(32),
204
+ (0, import_class_validator5.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
205
+ message: "Password must include letters, numbers and symbols."
206
+ })
207
+ ], ResetPasswordDto.prototype, "password", 2);
208
+ __decorateClass([
209
+ (0, import_class_validator5.IsEnum)(ScopeEnum3, {
210
+ message: `Scope must be one of: ${Object.values(ScopeEnum3).join(", ")}`
211
+ })
212
+ ], ResetPasswordDto.prototype, "scope", 2);
213
+
163
214
  // src/modules/otp/pattern/pattern.ts
164
215
  var OTP_PATTERN = {
165
216
  handleSendOtp: "handle.send.otp",
@@ -179,13 +230,13 @@ var ONBOARDING_PATTERN = {
179
230
  };
180
231
 
181
232
  // src/modules/onboarding/dto/freelancer-create-account.dto.ts
182
- var import_class_validator5 = require("class-validator");
233
+ var import_class_validator7 = require("class-validator");
183
234
 
184
235
  // src/decorators/match.decorator.ts
185
- var import_class_validator4 = require("class-validator");
236
+ var import_class_validator6 = require("class-validator");
186
237
  function Match(property, validationOptions) {
187
238
  return function(object, propertyName) {
188
- (0, import_class_validator4.registerDecorator)({
239
+ (0, import_class_validator6.registerDecorator)({
189
240
  name: "Match",
190
241
  target: object.constructor,
191
242
  propertyName,
@@ -221,77 +272,77 @@ var IfscOrOtherFieldsConstraint = class {
221
272
  }
222
273
  };
223
274
  IfscOrOtherFieldsConstraint = __decorateClass([
224
- (0, import_class_validator4.ValidatorConstraint)({ async: false })
275
+ (0, import_class_validator6.ValidatorConstraint)({ async: false })
225
276
  ], IfscOrOtherFieldsConstraint);
226
277
 
227
278
  // src/modules/onboarding/dto/freelancer-create-account.dto.ts
228
279
  var FreelancerCreateAccountDto = class {
229
280
  };
230
281
  __decorateClass([
231
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter full name." }),
232
- (0, import_class_validator5.IsString)({ message: "Please enter valid full name." })
282
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter full name." }),
283
+ (0, import_class_validator7.IsString)({ message: "Please enter valid full name." })
233
284
  ], FreelancerCreateAccountDto.prototype, "fullName", 2);
234
285
  __decorateClass([
235
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter email." }),
236
- (0, import_class_validator5.IsEmail)()
286
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter email." }),
287
+ (0, import_class_validator7.IsEmail)()
237
288
  ], FreelancerCreateAccountDto.prototype, "email", 2);
238
289
  __decorateClass([
239
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter mobile code." }),
240
- (0, import_class_validator5.Matches)(/^\d+$/, { message: "Mobile code must be numeric" })
290
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter mobile code." }),
291
+ (0, import_class_validator7.Matches)(/^\d+$/, { message: "Mobile code must be numeric" })
241
292
  ], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
242
293
  __decorateClass([
243
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter mobile number." }),
244
- (0, import_class_validator5.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
294
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter mobile number." }),
295
+ (0, import_class_validator7.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
245
296
  message: "Please enter a valid US mobile number"
246
297
  })
247
298
  ], FreelancerCreateAccountDto.prototype, "mobile", 2);
248
299
  __decorateClass([
249
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter password." }),
250
- (0, import_class_validator5.MinLength)(6),
251
- (0, import_class_validator5.MaxLength)(32),
252
- (0, import_class_validator5.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
300
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter password." }),
301
+ (0, import_class_validator7.MinLength)(6),
302
+ (0, import_class_validator7.MaxLength)(32),
303
+ (0, import_class_validator7.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
253
304
  message: "Password must include letters, numbers and symbols."
254
305
  })
255
306
  ], FreelancerCreateAccountDto.prototype, "password", 2);
256
307
  __decorateClass([
257
- (0, import_class_validator5.IsNotEmpty)({ message: "Please enter confirm password." }),
308
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter confirm password." }),
258
309
  Match("password", { message: "Passwords do not match" })
259
310
  ], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
260
311
 
261
312
  // src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
262
- var import_class_validator6 = require("class-validator");
313
+ var import_class_validator8 = require("class-validator");
263
314
  var FreelancerUploadResumeDto = class {
264
315
  };
265
316
  __decorateClass([
266
- (0, import_class_validator6.IsNotEmpty)({ message: "Please enter uuid." }),
267
- (0, import_class_validator6.IsUUID)()
317
+ (0, import_class_validator8.IsNotEmpty)({ message: "Please enter uuid." }),
318
+ (0, import_class_validator8.IsUUID)()
268
319
  ], FreelancerUploadResumeDto.prototype, "uuid", 2);
269
320
 
270
321
  // src/modules/onboarding/dto/freelancer-development-preference.dto.ts
271
- var import_class_validator7 = require("class-validator");
322
+ var import_class_validator9 = require("class-validator");
272
323
  var FreelancerDevelopmentPreferenceDto = class {
273
324
  };
274
325
  __decorateClass([
275
- (0, import_class_validator7.IsNotEmpty)({ message: "Please enter uuid." }),
276
- (0, import_class_validator7.IsUUID)()
326
+ (0, import_class_validator9.IsNotEmpty)({ message: "Please enter uuid." }),
327
+ (0, import_class_validator9.IsUUID)()
277
328
  ], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
278
329
  __decorateClass([
279
- (0, import_class_validator7.IsNotEmpty)({ message: "Please select development flag." }),
280
- (0, import_class_validator7.IsBoolean)()
330
+ (0, import_class_validator9.IsNotEmpty)({ message: "Please select development flag." }),
331
+ (0, import_class_validator9.IsBoolean)()
281
332
  ], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
282
333
 
283
334
  // src/modules/onboarding/dto/freelancer-profile-question.dto.ts
284
- var import_class_validator8 = require("class-validator");
335
+ var import_class_validator10 = require("class-validator");
285
336
  var FreelancerProfileQuestionDto = class {
286
337
  };
287
338
  __decorateClass([
288
- (0, import_class_validator8.IsNotEmpty)({ message: "Please enter uuid." }),
289
- (0, import_class_validator8.IsUUID)()
339
+ (0, import_class_validator10.IsNotEmpty)({ message: "Please enter uuid." }),
340
+ (0, import_class_validator10.IsUUID)()
290
341
  ], FreelancerProfileQuestionDto.prototype, "uuid", 2);
291
342
  __decorateClass([
292
- (0, import_class_validator8.IsNotEmpty)({ message: "Please enter question slug." }),
293
- (0, import_class_validator8.IsString)(),
294
- (0, import_class_validator8.IsIn)([
343
+ (0, import_class_validator10.IsNotEmpty)({ message: "Please enter question slug." }),
344
+ (0, import_class_validator10.IsString)(),
345
+ (0, import_class_validator10.IsIn)([
295
346
  "natureOfWork",
296
347
  "expectedHourlyCompensation",
297
348
  "modeOfWork",
@@ -300,51 +351,51 @@ __decorateClass([
300
351
  ])
301
352
  ], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
302
353
  __decorateClass([
303
- (0, import_class_validator8.IsNotEmpty)({ message: "Please enter answer." })
354
+ (0, import_class_validator10.IsNotEmpty)({ message: "Please enter answer." })
304
355
  ], FreelancerProfileQuestionDto.prototype, "answer", 2);
305
356
 
306
357
  // src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
307
- var import_class_validator9 = require("class-validator");
358
+ var import_class_validator11 = require("class-validator");
308
359
  var FreelancerWorkShowcaseDto = class {
309
360
  };
310
361
  __decorateClass([
311
- (0, import_class_validator9.IsNotEmpty)({ message: "Please enter uuid." }),
312
- (0, import_class_validator9.IsUUID)()
362
+ (0, import_class_validator11.IsNotEmpty)({ message: "Please enter uuid." }),
363
+ (0, import_class_validator11.IsUUID)()
313
364
  ], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
314
365
  __decorateClass([
315
- (0, import_class_validator9.IsNotEmpty)({ message: "Please enter likedin profile url." }),
316
- (0, import_class_validator9.IsString)(),
317
- (0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
366
+ (0, import_class_validator11.IsNotEmpty)({ message: "Please enter likedin profile url." }),
367
+ (0, import_class_validator11.IsString)(),
368
+ (0, import_class_validator11.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
318
369
  ], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
319
370
  __decorateClass([
320
- (0, import_class_validator9.IsOptional)(),
321
- (0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
371
+ (0, import_class_validator11.IsOptional)(),
372
+ (0, import_class_validator11.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
322
373
  ], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
323
374
  __decorateClass([
324
- (0, import_class_validator9.IsOptional)(),
325
- (0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
375
+ (0, import_class_validator11.IsOptional)(),
376
+ (0, import_class_validator11.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
326
377
  ], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
327
378
  __decorateClass([
328
- (0, import_class_validator9.IsOptional)(),
329
- (0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
379
+ (0, import_class_validator11.IsOptional)(),
380
+ (0, import_class_validator11.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
330
381
  ], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
331
382
  __decorateClass([
332
- (0, import_class_validator9.IsOptional)(),
333
- (0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
383
+ (0, import_class_validator11.IsOptional)(),
384
+ (0, import_class_validator11.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
334
385
  ], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
335
386
 
336
387
  // src/modules/onboarding/dto/client-profile-question.dto.ts
337
- var import_class_validator10 = require("class-validator");
388
+ var import_class_validator12 = require("class-validator");
338
389
  var ClientProfileQuestionDto = class {
339
390
  };
340
391
  __decorateClass([
341
- (0, import_class_validator10.IsNotEmpty)({ message: "Please enter uuid." }),
342
- (0, import_class_validator10.IsUUID)()
392
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
393
+ (0, import_class_validator12.IsUUID)()
343
394
  ], ClientProfileQuestionDto.prototype, "uuid", 2);
344
395
  __decorateClass([
345
- (0, import_class_validator10.IsNotEmpty)({ message: "Please enter question slug." }),
346
- (0, import_class_validator10.IsString)(),
347
- (0, import_class_validator10.IsIn)([
396
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter question slug." }),
397
+ (0, import_class_validator12.IsString)(),
398
+ (0, import_class_validator12.IsIn)([
348
399
  "skills",
349
400
  "requiredFreelancer",
350
401
  "kindOfHiring",
@@ -353,39 +404,39 @@ __decorateClass([
353
404
  ])
354
405
  ], ClientProfileQuestionDto.prototype, "question_slug", 2);
355
406
  __decorateClass([
356
- (0, import_class_validator10.IsNotEmpty)({ message: "Please enter answer." })
407
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter answer." })
357
408
  ], ClientProfileQuestionDto.prototype, "answer", 2);
358
409
 
359
410
  // src/modules/onboarding/dto/client-create-account.dto.ts
360
- var import_class_validator11 = require("class-validator");
411
+ var import_class_validator13 = require("class-validator");
361
412
  var ClientCreateAccountDto = class {
362
413
  };
363
414
  __decorateClass([
364
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter first name." }),
365
- (0, import_class_validator11.IsString)({ message: "Please enter valid first name." })
415
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter first name." }),
416
+ (0, import_class_validator13.IsString)({ message: "Please enter valid first name." })
366
417
  ], ClientCreateAccountDto.prototype, "firstName", 2);
367
418
  __decorateClass([
368
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter last name." }),
369
- (0, import_class_validator11.IsString)({ message: "Please enter valid last name." })
419
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter last name." }),
420
+ (0, import_class_validator13.IsString)({ message: "Please enter valid last name." })
370
421
  ], ClientCreateAccountDto.prototype, "lastName", 2);
371
422
  __decorateClass([
372
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter email." }),
373
- (0, import_class_validator11.IsEmail)()
423
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." }),
424
+ (0, import_class_validator13.IsEmail)()
374
425
  ], ClientCreateAccountDto.prototype, "email", 2);
375
426
  __decorateClass([
376
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter company name." }),
377
- (0, import_class_validator11.IsString)({ message: "Please enter valid company name." })
427
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter company name." }),
428
+ (0, import_class_validator13.IsString)({ message: "Please enter valid company name." })
378
429
  ], ClientCreateAccountDto.prototype, "companyName", 2);
379
430
  __decorateClass([
380
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter password." }),
381
- (0, import_class_validator11.MinLength)(6),
382
- (0, import_class_validator11.MaxLength)(32),
383
- (0, import_class_validator11.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
431
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter password." }),
432
+ (0, import_class_validator13.MinLength)(6),
433
+ (0, import_class_validator13.MaxLength)(32),
434
+ (0, import_class_validator13.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
384
435
  message: "Password must include letters, numbers and symbols."
385
436
  })
386
437
  ], ClientCreateAccountDto.prototype, "password", 2);
387
438
  __decorateClass([
388
- (0, import_class_validator11.IsNotEmpty)({ message: "Please enter confirm password." }),
439
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter confirm password." }),
389
440
  Match("password", { message: "Passwords do not match" })
390
441
  ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
391
442
 
@@ -407,75 +458,75 @@ var SUBADMIN_PATTERN = {
407
458
  };
408
459
 
409
460
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
410
- var import_class_validator12 = require("class-validator");
461
+ var import_class_validator14 = require("class-validator");
411
462
  var CreateSubAdminDto = class {
412
463
  };
413
464
  __decorateClass([
414
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter unique id." })
465
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
415
466
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
416
467
  __decorateClass([
417
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter username." })
468
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
418
469
  ], CreateSubAdminDto.prototype, "userName", 2);
419
470
  __decorateClass([
420
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter first name." })
471
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
421
472
  ], CreateSubAdminDto.prototype, "firstName", 2);
422
473
  __decorateClass([
423
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter last name." })
474
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
424
475
  ], CreateSubAdminDto.prototype, "lastName", 2);
425
476
  __decorateClass([
426
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." })
477
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
427
478
  ], CreateSubAdminDto.prototype, "email", 2);
428
479
  __decorateClass([
429
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." })
480
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
430
481
  ], CreateSubAdminDto.prototype, "mobile", 2);
431
482
  __decorateClass([
432
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter the password." })
483
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
433
484
  ], CreateSubAdminDto.prototype, "password", 2);
434
485
  __decorateClass([
435
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account type." })
486
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
436
487
  ], CreateSubAdminDto.prototype, "accountType", 2);
437
488
  __decorateClass([
438
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account status." })
489
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
439
490
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
440
491
 
441
492
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
442
- var import_class_validator13 = require("class-validator");
493
+ var import_class_validator15 = require("class-validator");
443
494
  var UpdateSubAdminAccountStatusDto = class {
444
495
  };
445
496
  __decorateClass([
446
- (0, import_class_validator13.IsString)()
497
+ (0, import_class_validator15.IsString)()
447
498
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
448
499
 
449
500
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
450
- var import_class_validator14 = require("class-validator");
501
+ var import_class_validator16 = require("class-validator");
451
502
  var UpdateSubAdminDto = class {
452
503
  };
453
504
  __decorateClass([
454
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
505
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter unique id." })
455
506
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
456
507
  __decorateClass([
457
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
508
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter username." })
458
509
  ], UpdateSubAdminDto.prototype, "userName", 2);
459
510
  __decorateClass([
460
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
511
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter first name." })
461
512
  ], UpdateSubAdminDto.prototype, "firstName", 2);
462
513
  __decorateClass([
463
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
514
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter last name." })
464
515
  ], UpdateSubAdminDto.prototype, "lastName", 2);
465
516
  __decorateClass([
466
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
517
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter email." })
467
518
  ], UpdateSubAdminDto.prototype, "email", 2);
468
519
  __decorateClass([
469
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
520
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter mobile number." })
470
521
  ], UpdateSubAdminDto.prototype, "mobile", 2);
471
522
  __decorateClass([
472
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
523
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter the password." })
473
524
  ], UpdateSubAdminDto.prototype, "password", 2);
474
525
  __decorateClass([
475
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
526
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter account type." })
476
527
  ], UpdateSubAdminDto.prototype, "accountType", 2);
477
528
  __decorateClass([
478
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
529
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter account status." })
479
530
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
480
531
 
481
532
  // src/modules/user/client-profile/pattern/pattern.ts
@@ -487,7 +538,7 @@ var CLIENT_PROFILE_PATTERN = {
487
538
  };
488
539
 
489
540
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
490
- var import_class_validator15 = require("class-validator");
541
+ var import_class_validator17 = require("class-validator");
491
542
 
492
543
  // src/entities/company-profile.entity.ts
493
544
  var import_typeorm12 = require("typeorm");
@@ -682,7 +733,7 @@ __decorateClass([
682
733
  (0, import_typeorm5.Index)()
683
734
  ], FreelancerProfile.prototype, "userId", 2);
684
735
  __decorateClass([
685
- (0, import_typeorm5.ManyToOne)(() => User, (user) => user.otps),
736
+ (0, import_typeorm5.ManyToOne)(() => User, (user) => user.freelancerProfile),
686
737
  (0, import_typeorm5.JoinColumn)({ name: "user_id" })
687
738
  ], FreelancerProfile.prototype, "user", 2);
688
739
  __decorateClass([
@@ -1253,73 +1304,73 @@ CompanyProfile = __decorateClass([
1253
1304
  var UpdateCompanyProfileDto = class {
1254
1305
  };
1255
1306
  __decorateClass([
1256
- (0, import_class_validator15.IsString)({ message: "Company name must be a string." })
1307
+ (0, import_class_validator17.IsString)({ message: "Company name must be a string." })
1257
1308
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
1258
1309
  __decorateClass([
1259
- (0, import_class_validator15.IsOptional)(),
1260
- (0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
1310
+ (0, import_class_validator17.IsOptional)(),
1311
+ (0, import_class_validator17.IsString)({ message: "Company bio must be a string." })
1261
1312
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
1262
1313
  __decorateClass([
1263
- (0, import_class_validator15.IsOptional)(),
1264
- (0, import_class_validator15.IsString)({ message: "Company website url must be a string." })
1314
+ (0, import_class_validator17.IsOptional)(),
1315
+ (0, import_class_validator17.IsString)({ message: "Company website url must be a string." })
1265
1316
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
1266
1317
  __decorateClass([
1267
- (0, import_class_validator15.IsOptional)(),
1268
- (0, import_class_validator15.IsString)({ message: "About company must be a string." })
1318
+ (0, import_class_validator17.IsOptional)(),
1319
+ (0, import_class_validator17.IsString)({ message: "About company must be a string." })
1269
1320
  ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
1270
1321
  __decorateClass([
1271
- (0, import_class_validator15.IsBoolean)({ message: "Service agreement must be boolean" })
1322
+ (0, import_class_validator17.IsBoolean)({ message: "Service agreement must be boolean" })
1272
1323
  ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
1273
1324
  __decorateClass([
1274
- (0, import_class_validator15.IsOptional)(),
1275
- (0, import_class_validator15.IsString)({ message: "Company address must be a string." })
1325
+ (0, import_class_validator17.IsOptional)(),
1326
+ (0, import_class_validator17.IsString)({ message: "Company address must be a string." })
1276
1327
  ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
1277
1328
  __decorateClass([
1278
- (0, import_class_validator15.IsOptional)(),
1279
- (0, import_class_validator15.IsString)({ message: "Phone number must be a string." })
1329
+ (0, import_class_validator17.IsOptional)(),
1330
+ (0, import_class_validator17.IsString)({ message: "Phone number must be a string." })
1280
1331
  ], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
1281
1332
  __decorateClass([
1282
- (0, import_class_validator15.IsOptional)(),
1283
- (0, import_class_validator15.IsArray)({ message: "Skills must be an array of strings." }),
1284
- (0, import_class_validator15.IsString)({ each: true, message: "Each skill must be a string." })
1333
+ (0, import_class_validator17.IsOptional)(),
1334
+ (0, import_class_validator17.IsArray)({ message: "Skills must be an array of strings." }),
1335
+ (0, import_class_validator17.IsString)({ each: true, message: "Each skill must be a string." })
1285
1336
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
1286
1337
  __decorateClass([
1287
- (0, import_class_validator15.IsOptional)(),
1288
- (0, import_class_validator15.IsString)({ message: "Required freelancer must be a string." })
1338
+ (0, import_class_validator17.IsOptional)(),
1339
+ (0, import_class_validator17.IsString)({ message: "Required freelancer must be a string." })
1289
1340
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
1290
1341
  __decorateClass([
1291
- (0, import_class_validator15.IsOptional)(),
1292
- (0, import_class_validator15.IsEnum)(KindOfHire, {
1342
+ (0, import_class_validator17.IsOptional)(),
1343
+ (0, import_class_validator17.IsEnum)(KindOfHire, {
1293
1344
  message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
1294
1345
  })
1295
1346
  ], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
1296
1347
  __decorateClass([
1297
- (0, import_class_validator15.IsOptional)(),
1298
- (0, import_class_validator15.IsEnum)(ModeOfHire, {
1348
+ (0, import_class_validator17.IsOptional)(),
1349
+ (0, import_class_validator17.IsEnum)(ModeOfHire, {
1299
1350
  message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
1300
1351
  })
1301
1352
  ], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
1302
1353
  __decorateClass([
1303
- (0, import_class_validator15.IsOptional)(),
1304
- (0, import_class_validator15.IsEnum)(FromUsOn, {
1354
+ (0, import_class_validator17.IsOptional)(),
1355
+ (0, import_class_validator17.IsEnum)(FromUsOn, {
1305
1356
  message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
1306
1357
  })
1307
1358
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1308
1359
 
1309
1360
  // src/modules/user/client-profile/dto/client-change-password.dto.ts
1310
- var import_class_validator16 = require("class-validator");
1361
+ var import_class_validator18 = require("class-validator");
1311
1362
  var ClientChangePasswordDto = class {
1312
1363
  };
1313
1364
  __decorateClass([
1314
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter Old Password." }),
1315
- (0, import_class_validator16.IsString)()
1365
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter Old Password." }),
1366
+ (0, import_class_validator18.IsString)()
1316
1367
  ], ClientChangePasswordDto.prototype, "oldPassword", 2);
1317
1368
  __decorateClass([
1318
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter New Password." }),
1319
- (0, import_class_validator16.IsString)(),
1320
- (0, import_class_validator16.MinLength)(6),
1321
- (0, import_class_validator16.MaxLength)(32),
1322
- (0, import_class_validator16.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1369
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter New Password." }),
1370
+ (0, import_class_validator18.IsString)(),
1371
+ (0, import_class_validator18.MinLength)(6),
1372
+ (0, import_class_validator18.MaxLength)(32),
1373
+ (0, import_class_validator18.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1323
1374
  message: "New Password must include letters, numbers and symbols."
1324
1375
  })
1325
1376
  ], ClientChangePasswordDto.prototype, "newPassword", 2);
@@ -1330,24 +1381,24 @@ var QUESTION_PATTERN = {
1330
1381
  };
1331
1382
 
1332
1383
  // src/modules/question/dto/create-question.dto.ts
1333
- var import_class_validator17 = require("class-validator");
1384
+ var import_class_validator19 = require("class-validator");
1334
1385
  var CreateQuestionDto = class {
1335
1386
  };
1336
1387
  __decorateClass([
1337
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1388
+ (0, import_class_validator19.IsNotEmpty)({ message: "Please enter unique id." })
1338
1389
  ], CreateQuestionDto.prototype, "questionId", 2);
1339
1390
  __decorateClass([
1340
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1391
+ (0, import_class_validator19.IsNotEmpty)({ message: "Please enter question." })
1341
1392
  ], CreateQuestionDto.prototype, "question", 2);
1342
1393
  __decorateClass([
1343
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1394
+ (0, import_class_validator19.IsNotEmpty)({ message: "Please enter for whom the question is." })
1344
1395
  ], CreateQuestionDto.prototype, "questionFor", 2);
1345
1396
  __decorateClass([
1346
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1397
+ (0, import_class_validator19.IsNotEmpty)({ message: "Please enter options." })
1347
1398
  ], CreateQuestionDto.prototype, "options", 2);
1348
1399
  __decorateClass([
1349
- (0, import_class_validator17.IsOptional)(),
1350
- (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1400
+ (0, import_class_validator19.IsOptional)(),
1401
+ (0, import_class_validator19.IsBoolean)({ message: "Whether the question status active" })
1351
1402
  ], CreateQuestionDto.prototype, "isActive", 2);
1352
1403
 
1353
1404
  // src/modules/job/pattern/pattern.ts
@@ -1370,7 +1421,7 @@ var JOB_PATTERN = {
1370
1421
  };
1371
1422
 
1372
1423
  // src/modules/job/dto/job-basic-information.dto.ts
1373
- var import_class_validator18 = require("class-validator");
1424
+ var import_class_validator20 = require("class-validator");
1374
1425
  var import_class_transformer = require("class-transformer");
1375
1426
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
1376
1427
  JobLocation2["ONSITE"] = "ONSITE";
@@ -1387,79 +1438,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
1387
1438
  var JobBasicInformationDto = class {
1388
1439
  };
1389
1440
  __decorateClass([
1390
- (0, import_class_validator18.IsNotEmpty)({ message: "Please enter job role" }),
1391
- (0, import_class_validator18.IsString)({ message: "Job role must be a string" })
1441
+ (0, import_class_validator20.IsNotEmpty)({ message: "Please enter job role" }),
1442
+ (0, import_class_validator20.IsString)({ message: "Job role must be a string" })
1392
1443
  ], JobBasicInformationDto.prototype, "jobRole", 2);
1393
1444
  __decorateClass([
1394
- (0, import_class_validator18.IsOptional)(),
1395
- (0, import_class_validator18.IsString)({ message: "Note must be a string" })
1445
+ (0, import_class_validator20.IsOptional)(),
1446
+ (0, import_class_validator20.IsString)({ message: "Note must be a string" })
1396
1447
  ], JobBasicInformationDto.prototype, "note", 2);
1397
1448
  __decorateClass([
1398
- (0, import_class_validator18.IsArray)({ message: "Skills must be an array" }),
1399
- (0, import_class_validator18.ArrayNotEmpty)({ message: "Please select at least one skill" }),
1400
- (0, import_class_validator18.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
1449
+ (0, import_class_validator20.IsArray)({ message: "Skills must be an array" }),
1450
+ (0, import_class_validator20.ArrayNotEmpty)({ message: "Please select at least one skill" }),
1451
+ (0, import_class_validator20.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
1401
1452
  (0, import_class_transformer.Type)(() => Number)
1402
1453
  ], JobBasicInformationDto.prototype, "skills", 2);
1403
1454
  __decorateClass([
1404
- (0, import_class_validator18.IsNumber)({}, { message: "Openings must be a number" }),
1405
- (0, import_class_validator18.Min)(1, { message: "There must be at least 1 opening" }),
1455
+ (0, import_class_validator20.IsNumber)({}, { message: "Openings must be a number" }),
1456
+ (0, import_class_validator20.Min)(1, { message: "There must be at least 1 opening" }),
1406
1457
  (0, import_class_transformer.Type)(() => Number)
1407
1458
  ], JobBasicInformationDto.prototype, "openings", 2);
1408
1459
  __decorateClass([
1409
- (0, import_class_validator18.IsEnum)(JobLocation, {
1460
+ (0, import_class_validator20.IsEnum)(JobLocation, {
1410
1461
  message: `Location must be one of: ${Object.values(JobLocation).join(
1411
1462
  ", "
1412
1463
  )}`
1413
1464
  })
1414
1465
  ], JobBasicInformationDto.prototype, "location", 2);
1415
1466
  __decorateClass([
1416
- (0, import_class_validator18.IsEnum)(EmploymentType, {
1467
+ (0, import_class_validator20.IsEnum)(EmploymentType, {
1417
1468
  message: `Type of employment must be one of: ${Object.values(
1418
1469
  EmploymentType
1419
1470
  ).join(", ")}`
1420
1471
  })
1421
1472
  ], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
1422
1473
  __decorateClass([
1423
- (0, import_class_validator18.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
1424
- (0, import_class_validator18.Min)(0, { message: "Expected salary (from) cannot be negative" }),
1474
+ (0, import_class_validator20.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
1475
+ (0, import_class_validator20.Min)(0, { message: "Expected salary (from) cannot be negative" }),
1425
1476
  (0, import_class_transformer.Type)(() => Number)
1426
1477
  ], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
1427
1478
  __decorateClass([
1428
- (0, import_class_validator18.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
1429
- (0, import_class_validator18.Min)(0, { message: "Expected salary (to) cannot be negative" }),
1479
+ (0, import_class_validator20.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
1480
+ (0, import_class_validator20.Min)(0, { message: "Expected salary (to) cannot be negative" }),
1430
1481
  (0, import_class_transformer.Type)(() => Number)
1431
1482
  ], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
1432
1483
  __decorateClass([
1433
- (0, import_class_validator18.IsString)({ message: "Onboarding TAT must be a string" }),
1434
- (0, import_class_validator18.IsOptional)()
1484
+ (0, import_class_validator20.IsString)({ message: "Onboarding TAT must be a string" }),
1485
+ (0, import_class_validator20.IsOptional)()
1435
1486
  ], JobBasicInformationDto.prototype, "onboardingTat", 2);
1436
1487
  __decorateClass([
1437
- (0, import_class_validator18.IsString)({ message: "Candidate communication skills must be a string" }),
1438
- (0, import_class_validator18.IsOptional)()
1488
+ (0, import_class_validator20.IsString)({ message: "Candidate communication skills must be a string" }),
1489
+ (0, import_class_validator20.IsOptional)()
1439
1490
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
1440
1491
 
1441
1492
  // src/modules/job/dto/job-additional-comment.dto.ts
1442
- var import_class_validator19 = require("class-validator");
1493
+ var import_class_validator21 = require("class-validator");
1443
1494
  var JobAdditionalCommentDto = class {
1444
1495
  };
1445
1496
  __decorateClass([
1446
- (0, import_class_validator19.IsOptional)(),
1447
- (0, import_class_validator19.IsString)({ message: "Additional comment must be a string" }),
1448
- (0, import_class_validator19.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
1497
+ (0, import_class_validator21.IsOptional)(),
1498
+ (0, import_class_validator21.IsString)({ message: "Additional comment must be a string" }),
1499
+ (0, import_class_validator21.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
1449
1500
  ], JobAdditionalCommentDto.prototype, "additionalComment", 2);
1450
1501
 
1451
1502
  // src/modules/job/dto/job-description.dto.ts
1452
- var import_class_validator20 = require("class-validator");
1503
+ var import_class_validator22 = require("class-validator");
1453
1504
  var JobDescriptionDto = class {
1454
1505
  };
1455
1506
  __decorateClass([
1456
- (0, import_class_validator20.IsNotEmpty)({ message: "Please enter job description" }),
1457
- (0, import_class_validator20.IsString)({ message: "Description must be a string" }),
1458
- (0, import_class_validator20.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
1507
+ (0, import_class_validator22.IsNotEmpty)({ message: "Please enter job description" }),
1508
+ (0, import_class_validator22.IsString)({ message: "Description must be a string" }),
1509
+ (0, import_class_validator22.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
1459
1510
  ], JobDescriptionDto.prototype, "description", 2);
1460
1511
 
1461
1512
  // src/modules/job/dto/job-status.dto.ts
1462
- var import_class_validator21 = require("class-validator");
1513
+ var import_class_validator23 = require("class-validator");
1463
1514
  var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
1464
1515
  JobStatus2["ACTIVE"] = "ACTIVE";
1465
1516
  JobStatus2["OPEN"] = "OPEN";
@@ -1471,18 +1522,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
1471
1522
  var JobStatusDto = class {
1472
1523
  };
1473
1524
  __decorateClass([
1474
- (0, import_class_validator21.IsNotEmpty)({ message: "Please provide a job status" }),
1475
- (0, import_class_validator21.IsEnum)(JobStatus, {
1525
+ (0, import_class_validator23.IsNotEmpty)({ message: "Please provide a job status" }),
1526
+ (0, import_class_validator23.IsEnum)(JobStatus, {
1476
1527
  message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
1477
1528
  })
1478
1529
  ], JobStatusDto.prototype, "status", 2);
1479
1530
 
1480
1531
  // src/modules/job/dto/job-id-param.dto.ts
1481
- var import_class_validator22 = require("class-validator");
1532
+ var import_class_validator24 = require("class-validator");
1482
1533
  var JobIdParamDto = class {
1483
1534
  };
1484
1535
  __decorateClass([
1485
- (0, import_class_validator22.IsUUID)("4", {
1536
+ (0, import_class_validator24.IsUUID)("4", {
1486
1537
  message: "Invalid job ID. It must be a valid UUID version 4."
1487
1538
  })
1488
1539
  ], JobIdParamDto.prototype, "id", 2);
@@ -1495,19 +1546,19 @@ var PROFILE_PATTERN = {
1495
1546
  };
1496
1547
 
1497
1548
  // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
1498
- var import_class_validator23 = require("class-validator");
1549
+ var import_class_validator25 = require("class-validator");
1499
1550
  var FreelancerChangePasswordDto = class {
1500
1551
  };
1501
1552
  __decorateClass([
1502
- (0, import_class_validator23.IsNotEmpty)({ message: "Please enter Old Password." }),
1503
- (0, import_class_validator23.IsString)()
1553
+ (0, import_class_validator25.IsNotEmpty)({ message: "Please enter Old Password." }),
1554
+ (0, import_class_validator25.IsString)()
1504
1555
  ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1505
1556
  __decorateClass([
1506
- (0, import_class_validator23.IsNotEmpty)({ message: "Please enter New Password." }),
1507
- (0, import_class_validator23.IsString)(),
1508
- (0, import_class_validator23.MinLength)(6),
1509
- (0, import_class_validator23.MaxLength)(32),
1510
- (0, import_class_validator23.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1557
+ (0, import_class_validator25.IsNotEmpty)({ message: "Please enter New Password." }),
1558
+ (0, import_class_validator25.IsString)(),
1559
+ (0, import_class_validator25.MinLength)(6),
1560
+ (0, import_class_validator25.MaxLength)(32),
1561
+ (0, import_class_validator25.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1511
1562
  message: "New Password must include letters, numbers and symbols."
1512
1563
  })
1513
1564
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
@@ -1520,7 +1571,7 @@ var BANK_PATTERN = {
1520
1571
  };
1521
1572
 
1522
1573
  // src/modules/bank/dto/freelancer-bank-details.dto.ts
1523
- var import_class_validator24 = require("class-validator");
1574
+ var import_class_validator26 = require("class-validator");
1524
1575
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1525
1576
  BankAccountScope2["DOMESTIC"] = "DOMESTIC";
1526
1577
  BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
@@ -1529,47 +1580,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1529
1580
  var FreelancerBankDetailsDto = class {
1530
1581
  };
1531
1582
  __decorateClass([
1532
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Holder Name." })
1583
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Account Holder Name." })
1533
1584
  ], FreelancerBankDetailsDto.prototype, "name", 2);
1534
1585
  __decorateClass([
1535
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Mobile Number." })
1586
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Mobile Number." })
1536
1587
  ], FreelancerBankDetailsDto.prototype, "mobile", 2);
1537
1588
  __decorateClass([
1538
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Email." })
1589
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Email." })
1539
1590
  ], FreelancerBankDetailsDto.prototype, "email", 2);
1540
1591
  __decorateClass([
1541
- (0, import_class_validator24.IsOptional)()
1592
+ (0, import_class_validator26.IsOptional)()
1542
1593
  ], FreelancerBankDetailsDto.prototype, "address", 2);
1543
1594
  __decorateClass([
1544
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Number." })
1595
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Account Number." })
1545
1596
  ], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
1546
1597
  __decorateClass([
1547
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Bank Name." })
1598
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Bank Name." })
1548
1599
  ], FreelancerBankDetailsDto.prototype, "bankName", 2);
1549
1600
  __decorateClass([
1550
- (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
1601
+ (0, import_class_validator26.IsNotEmpty)({ message: "Please enter Branch Name." })
1551
1602
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1552
1603
  __decorateClass([
1553
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
1554
- (0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
1604
+ (0, import_class_validator26.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
1605
+ (0, import_class_validator26.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
1555
1606
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1556
1607
  __decorateClass([
1557
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1558
- (0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1608
+ (0, import_class_validator26.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1609
+ (0, import_class_validator26.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1559
1610
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1560
1611
  __decorateClass([
1561
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1562
- (0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
1612
+ (0, import_class_validator26.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1613
+ (0, import_class_validator26.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
1563
1614
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1564
1615
  __decorateClass([
1565
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1566
- (0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
1616
+ (0, import_class_validator26.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1617
+ (0, import_class_validator26.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
1567
1618
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1568
1619
  __decorateClass([
1569
- (0, import_class_validator24.IsOptional)()
1620
+ (0, import_class_validator26.IsOptional)()
1570
1621
  ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1571
1622
  __decorateClass([
1572
- (0, import_class_validator24.IsEnum)(BankAccountScope, {
1623
+ (0, import_class_validator26.IsEnum)(BankAccountScope, {
1573
1624
  message: `Type of Account Scope must be one of: ${Object.values(
1574
1625
  BankAccountScope
1575
1626
  ).join(", ")}`
@@ -1589,7 +1640,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
1589
1640
  };
1590
1641
 
1591
1642
  // src/modules/system-preference/dto/system-preference.dto.ts
1592
- var import_class_validator25 = require("class-validator");
1643
+ var import_class_validator27 = require("class-validator");
1593
1644
  var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
1594
1645
  SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
1595
1646
  SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
@@ -1598,10 +1649,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
1598
1649
  var SystemPreferenceDto = class {
1599
1650
  };
1600
1651
  __decorateClass([
1601
- (0, import_class_validator25.IsBoolean)()
1652
+ (0, import_class_validator27.IsBoolean)()
1602
1653
  ], SystemPreferenceDto.prototype, "value", 2);
1603
1654
  __decorateClass([
1604
- (0, import_class_validator25.IsEnum)(SystemPreferenceKey, {
1655
+ (0, import_class_validator27.IsEnum)(SystemPreferenceKey, {
1605
1656
  message: `key must be one of: ${Object.values(
1606
1657
  SystemPreferenceKey
1607
1658
  ).join(", ")}`
@@ -1942,6 +1993,7 @@ Plan = __decorateClass([
1942
1993
  CreateSubAdminDto,
1943
1994
  EmploymentType,
1944
1995
  Feature,
1996
+ ForgotPasswordDto,
1945
1997
  FreelancerBankDetailsDto,
1946
1998
  FreelancerChangePasswordDto,
1947
1999
  FreelancerCreateAccountDto,
@@ -1989,6 +2041,7 @@ Plan = __decorateClass([
1989
2041
  RESUME_PARSER_PATTERN,
1990
2042
  RefreshDto,
1991
2043
  RefreshToken,
2044
+ ResetPasswordDto,
1992
2045
  ResumeParserLog,
1993
2046
  SUBADMIN_PATTERN,
1994
2047
  SYSTEM_PREFERENCES_PATTERN,