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