@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.d.mts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +250 -197
- package/dist/index.mjs +187 -130
- 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/notification/index.d.ts +1 -0
- package/dist/modules/notification/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17,16 +17,18 @@ var AUTHENTICATION_PATTERN = {
|
|
|
17
17
|
handleLogout: "handle.logout",
|
|
18
18
|
handleLogoutAll: "handle.logout.all",
|
|
19
19
|
fetchSessions: "fetch.sessions",
|
|
20
|
-
revokeSession: "revoke.session"
|
|
20
|
+
revokeSession: "revoke.session",
|
|
21
|
+
handleForgotPassword: "handle.forgot.password",
|
|
22
|
+
handleResetPassword: "handle.reset.password"
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
// src/modules/authentication/dto/login.dto.ts
|
|
24
26
|
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
25
|
-
var ScopeEnum = /* @__PURE__ */ ((
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return
|
|
27
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum4) => {
|
|
28
|
+
ScopeEnum4["ADMIN"] = "ADMIN";
|
|
29
|
+
ScopeEnum4["CLIENT"] = "CLIENT";
|
|
30
|
+
ScopeEnum4["FREELANCER"] = "FREELANCER";
|
|
31
|
+
return ScopeEnum4;
|
|
30
32
|
})(ScopeEnum || {});
|
|
31
33
|
var LoginDto = class {
|
|
32
34
|
};
|
|
@@ -62,6 +64,59 @@ __decorateClass([
|
|
|
62
64
|
IsNotEmpty3({ message: "Please provide refresh token." })
|
|
63
65
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
64
66
|
|
|
67
|
+
// src/modules/authentication/dto/forgot-password.dto.ts
|
|
68
|
+
import { IsEmail, IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty4 } from "class-validator";
|
|
69
|
+
var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum4) => {
|
|
70
|
+
ScopeEnum4["ADMIN"] = "ADMIN";
|
|
71
|
+
ScopeEnum4["CLIENT"] = "CLIENT";
|
|
72
|
+
ScopeEnum4["FREELANCER"] = "FREELANCER";
|
|
73
|
+
return ScopeEnum4;
|
|
74
|
+
})(ScopeEnum2 || {});
|
|
75
|
+
var ForgotPasswordDto = class {
|
|
76
|
+
};
|
|
77
|
+
__decorateClass([
|
|
78
|
+
IsNotEmpty4({ message: "Please enter email." }),
|
|
79
|
+
IsEmail({}, { message: "Please enter a valid email." })
|
|
80
|
+
], ForgotPasswordDto.prototype, "email", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
IsEnum2(ScopeEnum2, {
|
|
83
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum2).join(", ")}`
|
|
84
|
+
})
|
|
85
|
+
], ForgotPasswordDto.prototype, "scope", 2);
|
|
86
|
+
|
|
87
|
+
// src/modules/authentication/dto/reset-password.dto.ts
|
|
88
|
+
import {
|
|
89
|
+
IsEnum as IsEnum3,
|
|
90
|
+
IsNotEmpty as IsNotEmpty5,
|
|
91
|
+
Matches,
|
|
92
|
+
MaxLength,
|
|
93
|
+
MinLength
|
|
94
|
+
} from "class-validator";
|
|
95
|
+
var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum4) => {
|
|
96
|
+
ScopeEnum4["ADMIN"] = "ADMIN";
|
|
97
|
+
ScopeEnum4["CLIENT"] = "CLIENT";
|
|
98
|
+
ScopeEnum4["FREELANCER"] = "FREELANCER";
|
|
99
|
+
return ScopeEnum4;
|
|
100
|
+
})(ScopeEnum3 || {});
|
|
101
|
+
var ResetPasswordDto = class {
|
|
102
|
+
};
|
|
103
|
+
__decorateClass([
|
|
104
|
+
IsNotEmpty5({ message: "Please enter token." })
|
|
105
|
+
], ResetPasswordDto.prototype, "token", 2);
|
|
106
|
+
__decorateClass([
|
|
107
|
+
IsNotEmpty5({ message: "Please enter password." }),
|
|
108
|
+
MinLength(6),
|
|
109
|
+
MaxLength(32),
|
|
110
|
+
Matches(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
111
|
+
message: "Password must include letters, numbers and symbols."
|
|
112
|
+
})
|
|
113
|
+
], ResetPasswordDto.prototype, "password", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
IsEnum3(ScopeEnum3, {
|
|
116
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum3).join(", ")}`
|
|
117
|
+
})
|
|
118
|
+
], ResetPasswordDto.prototype, "scope", 2);
|
|
119
|
+
|
|
65
120
|
// src/modules/otp/pattern/pattern.ts
|
|
66
121
|
var OTP_PATTERN = {
|
|
67
122
|
handleSendOtp: "handle.send.otp",
|
|
@@ -82,11 +137,11 @@ var ONBOARDING_PATTERN = {
|
|
|
82
137
|
|
|
83
138
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
84
139
|
import {
|
|
85
|
-
IsNotEmpty as
|
|
86
|
-
IsEmail,
|
|
87
|
-
Matches,
|
|
88
|
-
MinLength,
|
|
89
|
-
MaxLength,
|
|
140
|
+
IsNotEmpty as IsNotEmpty6,
|
|
141
|
+
IsEmail as IsEmail2,
|
|
142
|
+
Matches as Matches2,
|
|
143
|
+
MinLength as MinLength2,
|
|
144
|
+
MaxLength as MaxLength2,
|
|
90
145
|
IsString
|
|
91
146
|
} from "class-validator";
|
|
92
147
|
|
|
@@ -140,55 +195,55 @@ IfscOrOtherFieldsConstraint = __decorateClass([
|
|
|
140
195
|
var FreelancerCreateAccountDto = class {
|
|
141
196
|
};
|
|
142
197
|
__decorateClass([
|
|
143
|
-
|
|
198
|
+
IsNotEmpty6({ message: "Please enter full name." }),
|
|
144
199
|
IsString({ message: "Please enter valid full name." })
|
|
145
200
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
146
201
|
__decorateClass([
|
|
147
|
-
|
|
148
|
-
|
|
202
|
+
IsNotEmpty6({ message: "Please enter email." }),
|
|
203
|
+
IsEmail2()
|
|
149
204
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
150
205
|
__decorateClass([
|
|
151
|
-
|
|
152
|
-
|
|
206
|
+
IsNotEmpty6({ message: "Please enter mobile code." }),
|
|
207
|
+
Matches2(/^\d+$/, { message: "Mobile code must be numeric" })
|
|
153
208
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
154
209
|
__decorateClass([
|
|
155
|
-
|
|
156
|
-
|
|
210
|
+
IsNotEmpty6({ message: "Please enter mobile number." }),
|
|
211
|
+
Matches2(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
157
212
|
message: "Please enter a valid US mobile number"
|
|
158
213
|
})
|
|
159
214
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
160
215
|
__decorateClass([
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
216
|
+
IsNotEmpty6({ message: "Please enter password." }),
|
|
217
|
+
MinLength2(6),
|
|
218
|
+
MaxLength2(32),
|
|
219
|
+
Matches2(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
165
220
|
message: "Password must include letters, numbers and symbols."
|
|
166
221
|
})
|
|
167
222
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
168
223
|
__decorateClass([
|
|
169
|
-
|
|
224
|
+
IsNotEmpty6({ message: "Please enter confirm password." }),
|
|
170
225
|
Match("password", { message: "Passwords do not match" })
|
|
171
226
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
172
227
|
|
|
173
228
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
174
|
-
import { IsUUID, IsNotEmpty as
|
|
229
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty7 } from "class-validator";
|
|
175
230
|
var FreelancerUploadResumeDto = class {
|
|
176
231
|
};
|
|
177
232
|
__decorateClass([
|
|
178
|
-
|
|
233
|
+
IsNotEmpty7({ message: "Please enter uuid." }),
|
|
179
234
|
IsUUID()
|
|
180
235
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
181
236
|
|
|
182
237
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
183
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
238
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty8, IsBoolean } from "class-validator";
|
|
184
239
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
185
240
|
};
|
|
186
241
|
__decorateClass([
|
|
187
|
-
|
|
242
|
+
IsNotEmpty8({ message: "Please enter uuid." }),
|
|
188
243
|
IsUUID2()
|
|
189
244
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
190
245
|
__decorateClass([
|
|
191
|
-
|
|
246
|
+
IsNotEmpty8({ message: "Please select development flag." }),
|
|
192
247
|
IsBoolean()
|
|
193
248
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
194
249
|
|
|
@@ -196,17 +251,17 @@ __decorateClass([
|
|
|
196
251
|
import {
|
|
197
252
|
IsUUID as IsUUID3,
|
|
198
253
|
IsString as IsString2,
|
|
199
|
-
IsNotEmpty as
|
|
254
|
+
IsNotEmpty as IsNotEmpty9,
|
|
200
255
|
IsIn
|
|
201
256
|
} from "class-validator";
|
|
202
257
|
var FreelancerProfileQuestionDto = class {
|
|
203
258
|
};
|
|
204
259
|
__decorateClass([
|
|
205
|
-
|
|
260
|
+
IsNotEmpty9({ message: "Please enter uuid." }),
|
|
206
261
|
IsUUID3()
|
|
207
262
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
208
263
|
__decorateClass([
|
|
209
|
-
|
|
264
|
+
IsNotEmpty9({ message: "Please enter question slug." }),
|
|
210
265
|
IsString2(),
|
|
211
266
|
IsIn([
|
|
212
267
|
"natureOfWork",
|
|
@@ -217,12 +272,12 @@ __decorateClass([
|
|
|
217
272
|
])
|
|
218
273
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
219
274
|
__decorateClass([
|
|
220
|
-
|
|
275
|
+
IsNotEmpty9({ message: "Please enter answer." })
|
|
221
276
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
222
277
|
|
|
223
278
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
224
279
|
import {
|
|
225
|
-
IsNotEmpty as
|
|
280
|
+
IsNotEmpty as IsNotEmpty10,
|
|
226
281
|
IsOptional,
|
|
227
282
|
IsUrl,
|
|
228
283
|
IsString as IsString3,
|
|
@@ -231,11 +286,11 @@ import {
|
|
|
231
286
|
var FreelancerWorkShowcaseDto = class {
|
|
232
287
|
};
|
|
233
288
|
__decorateClass([
|
|
234
|
-
|
|
289
|
+
IsNotEmpty10({ message: "Please enter uuid." }),
|
|
235
290
|
IsUUID4()
|
|
236
291
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
237
292
|
__decorateClass([
|
|
238
|
-
|
|
293
|
+
IsNotEmpty10({ message: "Please enter likedin profile url." }),
|
|
239
294
|
IsString3(),
|
|
240
295
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
241
296
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
@@ -260,17 +315,17 @@ __decorateClass([
|
|
|
260
315
|
import {
|
|
261
316
|
IsUUID as IsUUID5,
|
|
262
317
|
IsString as IsString4,
|
|
263
|
-
IsNotEmpty as
|
|
318
|
+
IsNotEmpty as IsNotEmpty11,
|
|
264
319
|
IsIn as IsIn2
|
|
265
320
|
} from "class-validator";
|
|
266
321
|
var ClientProfileQuestionDto = class {
|
|
267
322
|
};
|
|
268
323
|
__decorateClass([
|
|
269
|
-
|
|
324
|
+
IsNotEmpty11({ message: "Please enter uuid." }),
|
|
270
325
|
IsUUID5()
|
|
271
326
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
272
327
|
__decorateClass([
|
|
273
|
-
|
|
328
|
+
IsNotEmpty11({ message: "Please enter question slug." }),
|
|
274
329
|
IsString4(),
|
|
275
330
|
IsIn2([
|
|
276
331
|
"skills",
|
|
@@ -281,46 +336,46 @@ __decorateClass([
|
|
|
281
336
|
])
|
|
282
337
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
283
338
|
__decorateClass([
|
|
284
|
-
|
|
339
|
+
IsNotEmpty11({ message: "Please enter answer." })
|
|
285
340
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
286
341
|
|
|
287
342
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
288
343
|
import {
|
|
289
|
-
IsNotEmpty as
|
|
290
|
-
IsEmail as
|
|
291
|
-
Matches as
|
|
292
|
-
MinLength as
|
|
293
|
-
MaxLength as
|
|
344
|
+
IsNotEmpty as IsNotEmpty12,
|
|
345
|
+
IsEmail as IsEmail3,
|
|
346
|
+
Matches as Matches3,
|
|
347
|
+
MinLength as MinLength3,
|
|
348
|
+
MaxLength as MaxLength3,
|
|
294
349
|
IsString as IsString5
|
|
295
350
|
} from "class-validator";
|
|
296
351
|
var ClientCreateAccountDto = class {
|
|
297
352
|
};
|
|
298
353
|
__decorateClass([
|
|
299
|
-
|
|
354
|
+
IsNotEmpty12({ message: "Please enter first name." }),
|
|
300
355
|
IsString5({ message: "Please enter valid first name." })
|
|
301
356
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
302
357
|
__decorateClass([
|
|
303
|
-
|
|
358
|
+
IsNotEmpty12({ message: "Please enter last name." }),
|
|
304
359
|
IsString5({ message: "Please enter valid last name." })
|
|
305
360
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
306
361
|
__decorateClass([
|
|
307
|
-
|
|
308
|
-
|
|
362
|
+
IsNotEmpty12({ message: "Please enter email." }),
|
|
363
|
+
IsEmail3()
|
|
309
364
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
310
365
|
__decorateClass([
|
|
311
|
-
|
|
366
|
+
IsNotEmpty12({ message: "Please enter company name." }),
|
|
312
367
|
IsString5({ message: "Please enter valid company name." })
|
|
313
368
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
314
369
|
__decorateClass([
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
370
|
+
IsNotEmpty12({ message: "Please enter password." }),
|
|
371
|
+
MinLength3(6),
|
|
372
|
+
MaxLength3(32),
|
|
373
|
+
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
319
374
|
message: "Password must include letters, numbers and symbols."
|
|
320
375
|
})
|
|
321
376
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
322
377
|
__decorateClass([
|
|
323
|
-
|
|
378
|
+
IsNotEmpty12({ message: "Please enter confirm password." }),
|
|
324
379
|
Match("password", { message: "Passwords do not match" })
|
|
325
380
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
326
381
|
|
|
@@ -343,36 +398,36 @@ var SUBADMIN_PATTERN = {
|
|
|
343
398
|
|
|
344
399
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
345
400
|
import {
|
|
346
|
-
IsNotEmpty as
|
|
401
|
+
IsNotEmpty as IsNotEmpty13
|
|
347
402
|
} from "class-validator";
|
|
348
403
|
var CreateSubAdminDto = class {
|
|
349
404
|
};
|
|
350
405
|
__decorateClass([
|
|
351
|
-
|
|
406
|
+
IsNotEmpty13({ message: "Please enter unique id." })
|
|
352
407
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
353
408
|
__decorateClass([
|
|
354
|
-
|
|
409
|
+
IsNotEmpty13({ message: "Please enter username." })
|
|
355
410
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
356
411
|
__decorateClass([
|
|
357
|
-
|
|
412
|
+
IsNotEmpty13({ message: "Please enter first name." })
|
|
358
413
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
359
414
|
__decorateClass([
|
|
360
|
-
|
|
415
|
+
IsNotEmpty13({ message: "Please enter last name." })
|
|
361
416
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
362
417
|
__decorateClass([
|
|
363
|
-
|
|
418
|
+
IsNotEmpty13({ message: "Please enter email." })
|
|
364
419
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
365
420
|
__decorateClass([
|
|
366
|
-
|
|
421
|
+
IsNotEmpty13({ message: "Please enter mobile number." })
|
|
367
422
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
368
423
|
__decorateClass([
|
|
369
|
-
|
|
424
|
+
IsNotEmpty13({ message: "Please enter the password." })
|
|
370
425
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
371
426
|
__decorateClass([
|
|
372
|
-
|
|
427
|
+
IsNotEmpty13({ message: "Please enter account type." })
|
|
373
428
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
374
429
|
__decorateClass([
|
|
375
|
-
|
|
430
|
+
IsNotEmpty13({ message: "Please enter account status." })
|
|
376
431
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
377
432
|
|
|
378
433
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
@@ -384,35 +439,35 @@ __decorateClass([
|
|
|
384
439
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
385
440
|
|
|
386
441
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
387
|
-
import { IsNotEmpty as
|
|
442
|
+
import { IsNotEmpty as IsNotEmpty14 } from "class-validator";
|
|
388
443
|
var UpdateSubAdminDto = class {
|
|
389
444
|
};
|
|
390
445
|
__decorateClass([
|
|
391
|
-
|
|
446
|
+
IsNotEmpty14({ message: "Please enter unique id." })
|
|
392
447
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
393
448
|
__decorateClass([
|
|
394
|
-
|
|
449
|
+
IsNotEmpty14({ message: "Please enter username." })
|
|
395
450
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
396
451
|
__decorateClass([
|
|
397
|
-
|
|
452
|
+
IsNotEmpty14({ message: "Please enter first name." })
|
|
398
453
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
399
454
|
__decorateClass([
|
|
400
|
-
|
|
455
|
+
IsNotEmpty14({ message: "Please enter last name." })
|
|
401
456
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
402
457
|
__decorateClass([
|
|
403
|
-
|
|
458
|
+
IsNotEmpty14({ message: "Please enter email." })
|
|
404
459
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
405
460
|
__decorateClass([
|
|
406
|
-
|
|
461
|
+
IsNotEmpty14({ message: "Please enter mobile number." })
|
|
407
462
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
408
463
|
__decorateClass([
|
|
409
|
-
|
|
464
|
+
IsNotEmpty14({ message: "Please enter the password." })
|
|
410
465
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
411
466
|
__decorateClass([
|
|
412
|
-
|
|
467
|
+
IsNotEmpty14({ message: "Please enter account type." })
|
|
413
468
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
414
469
|
__decorateClass([
|
|
415
|
-
|
|
470
|
+
IsNotEmpty14({ message: "Please enter account status." })
|
|
416
471
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
417
472
|
|
|
418
473
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -425,7 +480,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
425
480
|
|
|
426
481
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
427
482
|
import {
|
|
428
|
-
IsEnum as
|
|
483
|
+
IsEnum as IsEnum4,
|
|
429
484
|
IsOptional as IsOptional4,
|
|
430
485
|
IsString as IsString8,
|
|
431
486
|
IsArray,
|
|
@@ -667,7 +722,7 @@ __decorateClass([
|
|
|
667
722
|
Index2()
|
|
668
723
|
], FreelancerProfile.prototype, "userId", 2);
|
|
669
724
|
__decorateClass([
|
|
670
|
-
ManyToOne4(() => User, (user) => user.
|
|
725
|
+
ManyToOne4(() => User, (user) => user.freelancerProfile),
|
|
671
726
|
JoinColumn4({ name: "user_id" })
|
|
672
727
|
], FreelancerProfile.prototype, "user", 2);
|
|
673
728
|
__decorateClass([
|
|
@@ -1293,19 +1348,19 @@ __decorateClass([
|
|
|
1293
1348
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
1294
1349
|
__decorateClass([
|
|
1295
1350
|
IsOptional4(),
|
|
1296
|
-
|
|
1351
|
+
IsEnum4(KindOfHire, {
|
|
1297
1352
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
1298
1353
|
})
|
|
1299
1354
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
1300
1355
|
__decorateClass([
|
|
1301
1356
|
IsOptional4(),
|
|
1302
|
-
|
|
1357
|
+
IsEnum4(ModeOfHire, {
|
|
1303
1358
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
1304
1359
|
})
|
|
1305
1360
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
1306
1361
|
__decorateClass([
|
|
1307
1362
|
IsOptional4(),
|
|
1308
|
-
|
|
1363
|
+
IsEnum4(FromUsOn, {
|
|
1309
1364
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
1310
1365
|
})
|
|
1311
1366
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
@@ -1313,23 +1368,23 @@ __decorateClass([
|
|
|
1313
1368
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
1314
1369
|
import {
|
|
1315
1370
|
IsString as IsString9,
|
|
1316
|
-
IsNotEmpty as
|
|
1317
|
-
MaxLength as
|
|
1318
|
-
MinLength as
|
|
1319
|
-
Matches as
|
|
1371
|
+
IsNotEmpty as IsNotEmpty15,
|
|
1372
|
+
MaxLength as MaxLength5,
|
|
1373
|
+
MinLength as MinLength5,
|
|
1374
|
+
Matches as Matches4
|
|
1320
1375
|
} from "class-validator";
|
|
1321
1376
|
var ClientChangePasswordDto = class {
|
|
1322
1377
|
};
|
|
1323
1378
|
__decorateClass([
|
|
1324
|
-
|
|
1379
|
+
IsNotEmpty15({ message: "Please enter Old Password." }),
|
|
1325
1380
|
IsString9()
|
|
1326
1381
|
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
1327
1382
|
__decorateClass([
|
|
1328
|
-
|
|
1383
|
+
IsNotEmpty15({ message: "Please enter New Password." }),
|
|
1329
1384
|
IsString9(),
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1385
|
+
MinLength5(6),
|
|
1386
|
+
MaxLength5(32),
|
|
1387
|
+
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1333
1388
|
message: "New Password must include letters, numbers and symbols."
|
|
1334
1389
|
})
|
|
1335
1390
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -1341,23 +1396,23 @@ var QUESTION_PATTERN = {
|
|
|
1341
1396
|
|
|
1342
1397
|
// src/modules/question/dto/create-question.dto.ts
|
|
1343
1398
|
import {
|
|
1344
|
-
IsNotEmpty as
|
|
1399
|
+
IsNotEmpty as IsNotEmpty16,
|
|
1345
1400
|
IsOptional as IsOptional5,
|
|
1346
1401
|
IsBoolean as IsBoolean5
|
|
1347
1402
|
} from "class-validator";
|
|
1348
1403
|
var CreateQuestionDto = class {
|
|
1349
1404
|
};
|
|
1350
1405
|
__decorateClass([
|
|
1351
|
-
|
|
1406
|
+
IsNotEmpty16({ message: "Please enter unique id." })
|
|
1352
1407
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1353
1408
|
__decorateClass([
|
|
1354
|
-
|
|
1409
|
+
IsNotEmpty16({ message: "Please enter question." })
|
|
1355
1410
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1356
1411
|
__decorateClass([
|
|
1357
|
-
|
|
1412
|
+
IsNotEmpty16({ message: "Please enter for whom the question is." })
|
|
1358
1413
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1359
1414
|
__decorateClass([
|
|
1360
|
-
|
|
1415
|
+
IsNotEmpty16({ message: "Please enter options." })
|
|
1361
1416
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1362
1417
|
__decorateClass([
|
|
1363
1418
|
IsOptional5(),
|
|
@@ -1386,12 +1441,12 @@ var JOB_PATTERN = {
|
|
|
1386
1441
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1387
1442
|
import {
|
|
1388
1443
|
IsString as IsString10,
|
|
1389
|
-
IsNotEmpty as
|
|
1444
|
+
IsNotEmpty as IsNotEmpty17,
|
|
1390
1445
|
IsArray as IsArray2,
|
|
1391
1446
|
ArrayNotEmpty,
|
|
1392
1447
|
IsNumber as IsNumber2,
|
|
1393
1448
|
IsOptional as IsOptional6,
|
|
1394
|
-
IsEnum as
|
|
1449
|
+
IsEnum as IsEnum5,
|
|
1395
1450
|
Min
|
|
1396
1451
|
} from "class-validator";
|
|
1397
1452
|
import { Type } from "class-transformer";
|
|
@@ -1410,7 +1465,7 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
1410
1465
|
var JobBasicInformationDto = class {
|
|
1411
1466
|
};
|
|
1412
1467
|
__decorateClass([
|
|
1413
|
-
|
|
1468
|
+
IsNotEmpty17({ message: "Please enter job role" }),
|
|
1414
1469
|
IsString10({ message: "Job role must be a string" })
|
|
1415
1470
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1416
1471
|
__decorateClass([
|
|
@@ -1429,14 +1484,14 @@ __decorateClass([
|
|
|
1429
1484
|
Type(() => Number)
|
|
1430
1485
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1431
1486
|
__decorateClass([
|
|
1432
|
-
|
|
1487
|
+
IsEnum5(JobLocation, {
|
|
1433
1488
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1434
1489
|
", "
|
|
1435
1490
|
)}`
|
|
1436
1491
|
})
|
|
1437
1492
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1438
1493
|
__decorateClass([
|
|
1439
|
-
|
|
1494
|
+
IsEnum5(EmploymentType, {
|
|
1440
1495
|
message: `Type of employment must be one of: ${Object.values(
|
|
1441
1496
|
EmploymentType
|
|
1442
1497
|
).join(", ")}`
|
|
@@ -1462,27 +1517,27 @@ __decorateClass([
|
|
|
1462
1517
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1463
1518
|
|
|
1464
1519
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1465
|
-
import { IsOptional as IsOptional7, IsString as IsString11, MaxLength as
|
|
1520
|
+
import { IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength6 } from "class-validator";
|
|
1466
1521
|
var JobAdditionalCommentDto = class {
|
|
1467
1522
|
};
|
|
1468
1523
|
__decorateClass([
|
|
1469
1524
|
IsOptional7(),
|
|
1470
1525
|
IsString11({ message: "Additional comment must be a string" }),
|
|
1471
|
-
|
|
1526
|
+
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1472
1527
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1473
1528
|
|
|
1474
1529
|
// src/modules/job/dto/job-description.dto.ts
|
|
1475
|
-
import { IsString as IsString12, IsNotEmpty as
|
|
1530
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty18, MaxLength as MaxLength7 } from "class-validator";
|
|
1476
1531
|
var JobDescriptionDto = class {
|
|
1477
1532
|
};
|
|
1478
1533
|
__decorateClass([
|
|
1479
|
-
|
|
1534
|
+
IsNotEmpty18({ message: "Please enter job description" }),
|
|
1480
1535
|
IsString12({ message: "Description must be a string" }),
|
|
1481
|
-
|
|
1536
|
+
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1482
1537
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1483
1538
|
|
|
1484
1539
|
// src/modules/job/dto/job-status.dto.ts
|
|
1485
|
-
import { IsEnum as
|
|
1540
|
+
import { IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty19 } from "class-validator";
|
|
1486
1541
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1487
1542
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1488
1543
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1494,8 +1549,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1494
1549
|
var JobStatusDto = class {
|
|
1495
1550
|
};
|
|
1496
1551
|
__decorateClass([
|
|
1497
|
-
|
|
1498
|
-
|
|
1552
|
+
IsNotEmpty19({ message: "Please provide a job status" }),
|
|
1553
|
+
IsEnum6(JobStatus, {
|
|
1499
1554
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1500
1555
|
})
|
|
1501
1556
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1520,23 +1575,23 @@ var PROFILE_PATTERN = {
|
|
|
1520
1575
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1521
1576
|
import {
|
|
1522
1577
|
IsString as IsString13,
|
|
1523
|
-
IsNotEmpty as
|
|
1524
|
-
MaxLength as
|
|
1525
|
-
MinLength as
|
|
1526
|
-
Matches as
|
|
1578
|
+
IsNotEmpty as IsNotEmpty20,
|
|
1579
|
+
MaxLength as MaxLength8,
|
|
1580
|
+
MinLength as MinLength6,
|
|
1581
|
+
Matches as Matches5
|
|
1527
1582
|
} from "class-validator";
|
|
1528
1583
|
var FreelancerChangePasswordDto = class {
|
|
1529
1584
|
};
|
|
1530
1585
|
__decorateClass([
|
|
1531
|
-
|
|
1586
|
+
IsNotEmpty20({ message: "Please enter Old Password." }),
|
|
1532
1587
|
IsString13()
|
|
1533
1588
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1534
1589
|
__decorateClass([
|
|
1535
|
-
|
|
1590
|
+
IsNotEmpty20({ message: "Please enter New Password." }),
|
|
1536
1591
|
IsString13(),
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1592
|
+
MinLength6(6),
|
|
1593
|
+
MaxLength8(32),
|
|
1594
|
+
Matches5(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1540
1595
|
message: "New Password must include letters, numbers and symbols."
|
|
1541
1596
|
})
|
|
1542
1597
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -1550,8 +1605,8 @@ var BANK_PATTERN = {
|
|
|
1550
1605
|
|
|
1551
1606
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1552
1607
|
import {
|
|
1553
|
-
IsEnum as
|
|
1554
|
-
IsNotEmpty as
|
|
1608
|
+
IsEnum as IsEnum7,
|
|
1609
|
+
IsNotEmpty as IsNotEmpty21,
|
|
1555
1610
|
IsOptional as IsOptional8,
|
|
1556
1611
|
ValidateIf
|
|
1557
1612
|
} from "class-validator";
|
|
@@ -1563,47 +1618,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1563
1618
|
var FreelancerBankDetailsDto = class {
|
|
1564
1619
|
};
|
|
1565
1620
|
__decorateClass([
|
|
1566
|
-
|
|
1621
|
+
IsNotEmpty21({ message: "Please enter Account Holder Name." })
|
|
1567
1622
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1568
1623
|
__decorateClass([
|
|
1569
|
-
|
|
1624
|
+
IsNotEmpty21({ message: "Please enter Mobile Number." })
|
|
1570
1625
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1571
1626
|
__decorateClass([
|
|
1572
|
-
|
|
1627
|
+
IsNotEmpty21({ message: "Please enter Email." })
|
|
1573
1628
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1574
1629
|
__decorateClass([
|
|
1575
1630
|
IsOptional8()
|
|
1576
1631
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1577
1632
|
__decorateClass([
|
|
1578
|
-
|
|
1633
|
+
IsNotEmpty21({ message: "Please enter Account Number." })
|
|
1579
1634
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1580
1635
|
__decorateClass([
|
|
1581
|
-
|
|
1636
|
+
IsNotEmpty21({ message: "Please enter Bank Name." })
|
|
1582
1637
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1583
1638
|
__decorateClass([
|
|
1584
|
-
|
|
1639
|
+
IsNotEmpty21({ message: "Please enter Branch Name." })
|
|
1585
1640
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1586
1641
|
__decorateClass([
|
|
1587
1642
|
ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
|
|
1588
|
-
|
|
1643
|
+
IsNotEmpty21({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1589
1644
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1590
1645
|
__decorateClass([
|
|
1591
1646
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1592
|
-
|
|
1647
|
+
IsNotEmpty21({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1593
1648
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1594
1649
|
__decorateClass([
|
|
1595
1650
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1596
|
-
|
|
1651
|
+
IsNotEmpty21({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1597
1652
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1598
1653
|
__decorateClass([
|
|
1599
1654
|
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1600
|
-
|
|
1655
|
+
IsNotEmpty21({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1601
1656
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1602
1657
|
__decorateClass([
|
|
1603
1658
|
IsOptional8()
|
|
1604
1659
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1605
1660
|
__decorateClass([
|
|
1606
|
-
|
|
1661
|
+
IsEnum7(BankAccountScope, {
|
|
1607
1662
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1608
1663
|
BankAccountScope
|
|
1609
1664
|
).join(", ")}`
|
|
@@ -1625,7 +1680,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1625
1680
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1626
1681
|
import {
|
|
1627
1682
|
IsBoolean as IsBoolean6,
|
|
1628
|
-
IsEnum as
|
|
1683
|
+
IsEnum as IsEnum8
|
|
1629
1684
|
} from "class-validator";
|
|
1630
1685
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1631
1686
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1638,7 +1693,7 @@ __decorateClass([
|
|
|
1638
1693
|
IsBoolean6()
|
|
1639
1694
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1640
1695
|
__decorateClass([
|
|
1641
|
-
|
|
1696
|
+
IsEnum8(SystemPreferenceKey, {
|
|
1642
1697
|
message: `key must be one of: ${Object.values(
|
|
1643
1698
|
SystemPreferenceKey
|
|
1644
1699
|
).join(", ")}`
|
|
@@ -1978,6 +2033,7 @@ export {
|
|
|
1978
2033
|
CreateSubAdminDto,
|
|
1979
2034
|
EmploymentType,
|
|
1980
2035
|
Feature,
|
|
2036
|
+
ForgotPasswordDto,
|
|
1981
2037
|
FreelancerBankDetailsDto,
|
|
1982
2038
|
FreelancerChangePasswordDto,
|
|
1983
2039
|
FreelancerCreateAccountDto,
|
|
@@ -2025,6 +2081,7 @@ export {
|
|
|
2025
2081
|
RESUME_PARSER_PATTERN,
|
|
2026
2082
|
RefreshDto,
|
|
2027
2083
|
RefreshToken,
|
|
2084
|
+
ResetPasswordDto,
|
|
2028
2085
|
ResumeParserLog,
|
|
2029
2086
|
SUBADMIN_PATTERN,
|
|
2030
2087
|
SYSTEM_PREFERENCES_PATTERN,
|