@experts_hub/shared 1.0.62 → 1.0.63
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 +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +89 -58
- package/dist/index.mjs +99 -62
- package/dist/modules/onboarding/dto/index.d.ts +2 -1
- package/package.json +1 -1
- /package/dist/modules/onboarding/dto/{client-create-accout.dto.d.ts → client-create-account.dto.d.ts} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -62,12 +62,6 @@ declare class FreelancerProfileQuestionDto {
|
|
|
62
62
|
answer: any;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
declare class ClientProfileQuestionDto {
|
|
66
|
-
uuid: string;
|
|
67
|
-
question_slug: string;
|
|
68
|
-
answer: any;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
65
|
declare class FreelancerWorkShowcaseDto {
|
|
72
66
|
uuid: string;
|
|
73
67
|
linkedinProfileLink: string;
|
|
@@ -77,6 +71,20 @@ declare class FreelancerWorkShowcaseDto {
|
|
|
77
71
|
portfolioLink?: string | null;
|
|
78
72
|
}
|
|
79
73
|
|
|
74
|
+
declare class ClientProfileQuestionDto {
|
|
75
|
+
uuid: string;
|
|
76
|
+
question_slug: string;
|
|
77
|
+
answer: any;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class ClientCreateAccountDto {
|
|
81
|
+
fullName: string;
|
|
82
|
+
email: string;
|
|
83
|
+
companyName: string;
|
|
84
|
+
password: string;
|
|
85
|
+
confirmPassword: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
80
88
|
declare const RESUME_PARSER_PATTERN: {
|
|
81
89
|
handleResumeParsing: string;
|
|
82
90
|
};
|
|
@@ -391,4 +399,4 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
391
399
|
foundUsOn: FromUsOn;
|
|
392
400
|
}
|
|
393
401
|
|
|
394
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
402
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,12 +62,6 @@ declare class FreelancerProfileQuestionDto {
|
|
|
62
62
|
answer: any;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
declare class ClientProfileQuestionDto {
|
|
66
|
-
uuid: string;
|
|
67
|
-
question_slug: string;
|
|
68
|
-
answer: any;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
65
|
declare class FreelancerWorkShowcaseDto {
|
|
72
66
|
uuid: string;
|
|
73
67
|
linkedinProfileLink: string;
|
|
@@ -77,6 +71,20 @@ declare class FreelancerWorkShowcaseDto {
|
|
|
77
71
|
portfolioLink?: string | null;
|
|
78
72
|
}
|
|
79
73
|
|
|
74
|
+
declare class ClientProfileQuestionDto {
|
|
75
|
+
uuid: string;
|
|
76
|
+
question_slug: string;
|
|
77
|
+
answer: any;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class ClientCreateAccountDto {
|
|
81
|
+
fullName: string;
|
|
82
|
+
email: string;
|
|
83
|
+
companyName: string;
|
|
84
|
+
password: string;
|
|
85
|
+
confirmPassword: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
80
88
|
declare const RESUME_PARSER_PATTERN: {
|
|
81
89
|
handleResumeParsing: string;
|
|
82
90
|
};
|
|
@@ -391,4 +399,4 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
391
399
|
foundUsOn: FromUsOn;
|
|
392
400
|
}
|
|
393
401
|
|
|
394
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
402
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
33
|
BaseEntity: () => BaseEntity,
|
|
34
|
+
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
34
35
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
35
36
|
CompanyProfile: () => CompanyProfile,
|
|
36
37
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
@@ -229,18 +230,48 @@ __decorateClass([
|
|
|
229
230
|
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter answer." })
|
|
230
231
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
231
232
|
|
|
232
|
-
// src/modules/onboarding/dto/
|
|
233
|
+
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
233
234
|
var import_class_validator9 = require("class-validator");
|
|
234
|
-
var
|
|
235
|
+
var FreelancerWorkShowcaseDto = class {
|
|
235
236
|
};
|
|
236
237
|
__decorateClass([
|
|
237
238
|
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
238
239
|
(0, import_class_validator9.IsUUID)()
|
|
239
|
-
],
|
|
240
|
+
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
240
241
|
__decorateClass([
|
|
241
|
-
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter
|
|
242
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
242
243
|
(0, import_class_validator9.IsString)(),
|
|
243
|
-
(0, import_class_validator9.
|
|
244
|
+
(0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
245
|
+
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
246
|
+
__decorateClass([
|
|
247
|
+
(0, import_class_validator9.IsOptional)(),
|
|
248
|
+
(0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
249
|
+
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
250
|
+
__decorateClass([
|
|
251
|
+
(0, import_class_validator9.IsOptional)(),
|
|
252
|
+
(0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
253
|
+
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
(0, import_class_validator9.IsOptional)(),
|
|
256
|
+
(0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
257
|
+
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
258
|
+
__decorateClass([
|
|
259
|
+
(0, import_class_validator9.IsOptional)(),
|
|
260
|
+
(0, import_class_validator9.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
261
|
+
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
262
|
+
|
|
263
|
+
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
264
|
+
var import_class_validator10 = require("class-validator");
|
|
265
|
+
var ClientProfileQuestionDto = class {
|
|
266
|
+
};
|
|
267
|
+
__decorateClass([
|
|
268
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
269
|
+
(0, import_class_validator10.IsUUID)()
|
|
270
|
+
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
273
|
+
(0, import_class_validator10.IsString)(),
|
|
274
|
+
(0, import_class_validator10.IsIn)([
|
|
244
275
|
"skills",
|
|
245
276
|
"requiredFreelancer",
|
|
246
277
|
"kindOfHiring",
|
|
@@ -249,38 +280,37 @@ __decorateClass([
|
|
|
249
280
|
])
|
|
250
281
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
251
282
|
__decorateClass([
|
|
252
|
-
(0,
|
|
283
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter answer." })
|
|
253
284
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
254
285
|
|
|
255
|
-
// src/modules/onboarding/dto/
|
|
256
|
-
var
|
|
257
|
-
var
|
|
286
|
+
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
287
|
+
var import_class_validator11 = require("class-validator");
|
|
288
|
+
var ClientCreateAccountDto = class {
|
|
258
289
|
};
|
|
259
290
|
__decorateClass([
|
|
260
|
-
(0,
|
|
261
|
-
(0,
|
|
262
|
-
],
|
|
291
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter full name." }),
|
|
292
|
+
(0, import_class_validator11.IsString)({ message: "Please enter valid full name." })
|
|
293
|
+
], ClientCreateAccountDto.prototype, "fullName", 2);
|
|
263
294
|
__decorateClass([
|
|
264
|
-
(0,
|
|
265
|
-
(0,
|
|
266
|
-
|
|
267
|
-
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
268
|
-
__decorateClass([
|
|
269
|
-
(0, import_class_validator10.IsOptional)(),
|
|
270
|
-
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
271
|
-
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
295
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter email." }),
|
|
296
|
+
(0, import_class_validator11.IsEmail)()
|
|
297
|
+
], ClientCreateAccountDto.prototype, "email", 2);
|
|
272
298
|
__decorateClass([
|
|
273
|
-
(0,
|
|
274
|
-
(0,
|
|
275
|
-
],
|
|
299
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter company name." }),
|
|
300
|
+
(0, import_class_validator11.IsString)({ message: "Please enter valid company name." })
|
|
301
|
+
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
276
302
|
__decorateClass([
|
|
277
|
-
(0,
|
|
278
|
-
(0,
|
|
279
|
-
|
|
303
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter password." }),
|
|
304
|
+
(0, import_class_validator11.MinLength)(6),
|
|
305
|
+
(0, import_class_validator11.MaxLength)(32),
|
|
306
|
+
(0, import_class_validator11.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
307
|
+
message: "Password must include letters, numbers and symbols."
|
|
308
|
+
})
|
|
309
|
+
], ClientCreateAccountDto.prototype, "password", 2);
|
|
280
310
|
__decorateClass([
|
|
281
|
-
(0,
|
|
282
|
-
(
|
|
283
|
-
],
|
|
311
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
312
|
+
Match("password", { message: "Passwords do not match" })
|
|
313
|
+
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
284
314
|
|
|
285
315
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
286
316
|
var RESUME_PARSER_PATTERN = {
|
|
@@ -300,75 +330,75 @@ var SUBADMIN_PATTERN = {
|
|
|
300
330
|
};
|
|
301
331
|
|
|
302
332
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
303
|
-
var
|
|
333
|
+
var import_class_validator12 = require("class-validator");
|
|
304
334
|
var CreateSubAdminDto = class {
|
|
305
335
|
};
|
|
306
336
|
__decorateClass([
|
|
307
|
-
(0,
|
|
337
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter unique id." })
|
|
308
338
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
309
339
|
__decorateClass([
|
|
310
|
-
(0,
|
|
340
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter username." })
|
|
311
341
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
312
342
|
__decorateClass([
|
|
313
|
-
(0,
|
|
343
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter first name." })
|
|
314
344
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
315
345
|
__decorateClass([
|
|
316
|
-
(0,
|
|
346
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter last name." })
|
|
317
347
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
318
348
|
__decorateClass([
|
|
319
|
-
(0,
|
|
349
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." })
|
|
320
350
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
321
351
|
__decorateClass([
|
|
322
|
-
(0,
|
|
352
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
323
353
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
324
354
|
__decorateClass([
|
|
325
|
-
(0,
|
|
355
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter the password." })
|
|
326
356
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
327
357
|
__decorateClass([
|
|
328
|
-
(0,
|
|
358
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter account type." })
|
|
329
359
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
330
360
|
__decorateClass([
|
|
331
|
-
(0,
|
|
361
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter account status." })
|
|
332
362
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
333
363
|
|
|
334
364
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
335
|
-
var
|
|
365
|
+
var import_class_validator13 = require("class-validator");
|
|
336
366
|
var UpdateSubAdminAccountStatusDto = class {
|
|
337
367
|
};
|
|
338
368
|
__decorateClass([
|
|
339
|
-
(0,
|
|
369
|
+
(0, import_class_validator13.IsString)()
|
|
340
370
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
341
371
|
|
|
342
372
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
343
|
-
var
|
|
373
|
+
var import_class_validator14 = require("class-validator");
|
|
344
374
|
var UpdateSubAdminDto = class {
|
|
345
375
|
};
|
|
346
376
|
__decorateClass([
|
|
347
|
-
(0,
|
|
377
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
|
|
348
378
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
349
379
|
__decorateClass([
|
|
350
|
-
(0,
|
|
380
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
|
|
351
381
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
352
382
|
__decorateClass([
|
|
353
|
-
(0,
|
|
383
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
|
|
354
384
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
355
385
|
__decorateClass([
|
|
356
|
-
(0,
|
|
386
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
|
|
357
387
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
358
388
|
__decorateClass([
|
|
359
|
-
(0,
|
|
389
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
|
|
360
390
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
361
391
|
__decorateClass([
|
|
362
|
-
(0,
|
|
392
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
363
393
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
364
394
|
__decorateClass([
|
|
365
|
-
(0,
|
|
395
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
|
|
366
396
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
367
397
|
__decorateClass([
|
|
368
|
-
(0,
|
|
398
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
|
|
369
399
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
370
400
|
__decorateClass([
|
|
371
|
-
(0,
|
|
401
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
|
|
372
402
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
373
403
|
|
|
374
404
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -377,24 +407,24 @@ var QUESTION_PATTERN = {
|
|
|
377
407
|
};
|
|
378
408
|
|
|
379
409
|
// src/modules/question/dto/create-question.dto.ts
|
|
380
|
-
var
|
|
410
|
+
var import_class_validator15 = require("class-validator");
|
|
381
411
|
var CreateQuestionDto = class {
|
|
382
412
|
};
|
|
383
413
|
__decorateClass([
|
|
384
|
-
(0,
|
|
414
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter unique id." })
|
|
385
415
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
386
416
|
__decorateClass([
|
|
387
|
-
(0,
|
|
417
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter question." })
|
|
388
418
|
], CreateQuestionDto.prototype, "question", 2);
|
|
389
419
|
__decorateClass([
|
|
390
|
-
(0,
|
|
420
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
391
421
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
392
422
|
__decorateClass([
|
|
393
|
-
(0,
|
|
423
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter options." })
|
|
394
424
|
], CreateQuestionDto.prototype, "options", 2);
|
|
395
425
|
__decorateClass([
|
|
396
|
-
(0,
|
|
397
|
-
(0,
|
|
426
|
+
(0, import_class_validator15.IsOptional)(),
|
|
427
|
+
(0, import_class_validator15.IsBoolean)({ message: "Whether the question status active" })
|
|
398
428
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
399
429
|
|
|
400
430
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -1001,6 +1031,7 @@ CompanyProfile = __decorateClass([
|
|
|
1001
1031
|
AccountStatus,
|
|
1002
1032
|
AccountType,
|
|
1003
1033
|
BaseEntity,
|
|
1034
|
+
ClientCreateAccountDto,
|
|
1004
1035
|
ClientProfileQuestionDto,
|
|
1005
1036
|
CompanyProfile,
|
|
1006
1037
|
CreateQuestionDto,
|
package/dist/index.mjs
CHANGED
|
@@ -189,51 +189,23 @@ __decorateClass([
|
|
|
189
189
|
IsNotEmpty7({ message: "Please enter answer." })
|
|
190
190
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
191
191
|
|
|
192
|
-
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
193
|
-
import {
|
|
194
|
-
IsUUID as IsUUID4,
|
|
195
|
-
IsString as IsString3,
|
|
196
|
-
IsNotEmpty as IsNotEmpty8,
|
|
197
|
-
IsIn as IsIn2
|
|
198
|
-
} from "class-validator";
|
|
199
|
-
var ClientProfileQuestionDto = class {
|
|
200
|
-
};
|
|
201
|
-
__decorateClass([
|
|
202
|
-
IsNotEmpty8({ message: "Please enter uuid." }),
|
|
203
|
-
IsUUID4()
|
|
204
|
-
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
205
|
-
__decorateClass([
|
|
206
|
-
IsNotEmpty8({ message: "Please enter question slug." }),
|
|
207
|
-
IsString3(),
|
|
208
|
-
IsIn2([
|
|
209
|
-
"skills",
|
|
210
|
-
"requiredFreelancer",
|
|
211
|
-
"kindOfHiring",
|
|
212
|
-
"modeOfHire",
|
|
213
|
-
"foundUsOn"
|
|
214
|
-
])
|
|
215
|
-
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
216
|
-
__decorateClass([
|
|
217
|
-
IsNotEmpty8({ message: "Please enter answer." })
|
|
218
|
-
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
219
|
-
|
|
220
192
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
221
193
|
import {
|
|
222
|
-
IsNotEmpty as
|
|
194
|
+
IsNotEmpty as IsNotEmpty8,
|
|
223
195
|
IsOptional,
|
|
224
196
|
IsUrl,
|
|
225
|
-
IsString as
|
|
226
|
-
IsUUID as
|
|
197
|
+
IsString as IsString3,
|
|
198
|
+
IsUUID as IsUUID4
|
|
227
199
|
} from "class-validator";
|
|
228
200
|
var FreelancerWorkShowcaseDto = class {
|
|
229
201
|
};
|
|
230
202
|
__decorateClass([
|
|
231
|
-
|
|
232
|
-
|
|
203
|
+
IsNotEmpty8({ message: "Please enter uuid." }),
|
|
204
|
+
IsUUID4()
|
|
233
205
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
234
206
|
__decorateClass([
|
|
235
|
-
|
|
236
|
-
|
|
207
|
+
IsNotEmpty8({ message: "Please enter likedin profile url." }),
|
|
208
|
+
IsString3(),
|
|
237
209
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
238
210
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
239
211
|
__decorateClass([
|
|
@@ -253,6 +225,70 @@ __decorateClass([
|
|
|
253
225
|
IsUrl({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
254
226
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
255
227
|
|
|
228
|
+
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
229
|
+
import {
|
|
230
|
+
IsUUID as IsUUID5,
|
|
231
|
+
IsString as IsString4,
|
|
232
|
+
IsNotEmpty as IsNotEmpty9,
|
|
233
|
+
IsIn as IsIn2
|
|
234
|
+
} from "class-validator";
|
|
235
|
+
var ClientProfileQuestionDto = class {
|
|
236
|
+
};
|
|
237
|
+
__decorateClass([
|
|
238
|
+
IsNotEmpty9({ message: "Please enter uuid." }),
|
|
239
|
+
IsUUID5()
|
|
240
|
+
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
241
|
+
__decorateClass([
|
|
242
|
+
IsNotEmpty9({ message: "Please enter question slug." }),
|
|
243
|
+
IsString4(),
|
|
244
|
+
IsIn2([
|
|
245
|
+
"skills",
|
|
246
|
+
"requiredFreelancer",
|
|
247
|
+
"kindOfHiring",
|
|
248
|
+
"modeOfHire",
|
|
249
|
+
"foundUsOn"
|
|
250
|
+
])
|
|
251
|
+
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
IsNotEmpty9({ message: "Please enter answer." })
|
|
254
|
+
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
255
|
+
|
|
256
|
+
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
257
|
+
import {
|
|
258
|
+
IsNotEmpty as IsNotEmpty10,
|
|
259
|
+
IsEmail as IsEmail2,
|
|
260
|
+
Matches as Matches2,
|
|
261
|
+
MinLength as MinLength2,
|
|
262
|
+
MaxLength as MaxLength2,
|
|
263
|
+
IsString as IsString5
|
|
264
|
+
} from "class-validator";
|
|
265
|
+
var ClientCreateAccountDto = class {
|
|
266
|
+
};
|
|
267
|
+
__decorateClass([
|
|
268
|
+
IsNotEmpty10({ message: "Please enter full name." }),
|
|
269
|
+
IsString5({ message: "Please enter valid full name." })
|
|
270
|
+
], ClientCreateAccountDto.prototype, "fullName", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
IsNotEmpty10({ message: "Please enter email." }),
|
|
273
|
+
IsEmail2()
|
|
274
|
+
], ClientCreateAccountDto.prototype, "email", 2);
|
|
275
|
+
__decorateClass([
|
|
276
|
+
IsNotEmpty10({ message: "Please enter company name." }),
|
|
277
|
+
IsString5({ message: "Please enter valid company name." })
|
|
278
|
+
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
279
|
+
__decorateClass([
|
|
280
|
+
IsNotEmpty10({ message: "Please enter password." }),
|
|
281
|
+
MinLength2(6),
|
|
282
|
+
MaxLength2(32),
|
|
283
|
+
Matches2(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
284
|
+
message: "Password must include letters, numbers and symbols."
|
|
285
|
+
})
|
|
286
|
+
], ClientCreateAccountDto.prototype, "password", 2);
|
|
287
|
+
__decorateClass([
|
|
288
|
+
IsNotEmpty10({ message: "Please enter confirm password." }),
|
|
289
|
+
Match("password", { message: "Passwords do not match" })
|
|
290
|
+
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
291
|
+
|
|
256
292
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
257
293
|
var RESUME_PARSER_PATTERN = {
|
|
258
294
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -272,76 +308,76 @@ var SUBADMIN_PATTERN = {
|
|
|
272
308
|
|
|
273
309
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
274
310
|
import {
|
|
275
|
-
IsNotEmpty as
|
|
311
|
+
IsNotEmpty as IsNotEmpty11
|
|
276
312
|
} from "class-validator";
|
|
277
313
|
var CreateSubAdminDto = class {
|
|
278
314
|
};
|
|
279
315
|
__decorateClass([
|
|
280
|
-
|
|
316
|
+
IsNotEmpty11({ message: "Please enter unique id." })
|
|
281
317
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
282
318
|
__decorateClass([
|
|
283
|
-
|
|
319
|
+
IsNotEmpty11({ message: "Please enter username." })
|
|
284
320
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
285
321
|
__decorateClass([
|
|
286
|
-
|
|
322
|
+
IsNotEmpty11({ message: "Please enter first name." })
|
|
287
323
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
288
324
|
__decorateClass([
|
|
289
|
-
|
|
325
|
+
IsNotEmpty11({ message: "Please enter last name." })
|
|
290
326
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
291
327
|
__decorateClass([
|
|
292
|
-
|
|
328
|
+
IsNotEmpty11({ message: "Please enter email." })
|
|
293
329
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
294
330
|
__decorateClass([
|
|
295
|
-
|
|
331
|
+
IsNotEmpty11({ message: "Please enter mobile number." })
|
|
296
332
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
297
333
|
__decorateClass([
|
|
298
|
-
|
|
334
|
+
IsNotEmpty11({ message: "Please enter the password." })
|
|
299
335
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
300
336
|
__decorateClass([
|
|
301
|
-
|
|
337
|
+
IsNotEmpty11({ message: "Please enter account type." })
|
|
302
338
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
303
339
|
__decorateClass([
|
|
304
|
-
|
|
340
|
+
IsNotEmpty11({ message: "Please enter account status." })
|
|
305
341
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
306
342
|
|
|
307
343
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
308
|
-
import { IsString as
|
|
344
|
+
import { IsString as IsString6 } from "class-validator";
|
|
309
345
|
var UpdateSubAdminAccountStatusDto = class {
|
|
310
346
|
};
|
|
311
347
|
__decorateClass([
|
|
312
|
-
|
|
348
|
+
IsString6()
|
|
313
349
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
314
350
|
|
|
315
351
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
316
|
-
import { IsNotEmpty as
|
|
352
|
+
import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
317
353
|
var UpdateSubAdminDto = class {
|
|
318
354
|
};
|
|
319
355
|
__decorateClass([
|
|
320
|
-
|
|
356
|
+
IsNotEmpty12({ message: "Please enter unique id." })
|
|
321
357
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
322
358
|
__decorateClass([
|
|
323
|
-
|
|
359
|
+
IsNotEmpty12({ message: "Please enter username." })
|
|
324
360
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
325
361
|
__decorateClass([
|
|
326
|
-
|
|
362
|
+
IsNotEmpty12({ message: "Please enter first name." })
|
|
327
363
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
328
364
|
__decorateClass([
|
|
329
|
-
|
|
365
|
+
IsNotEmpty12({ message: "Please enter last name." })
|
|
330
366
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
331
367
|
__decorateClass([
|
|
332
|
-
|
|
368
|
+
IsNotEmpty12({ message: "Please enter email." })
|
|
333
369
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
334
370
|
__decorateClass([
|
|
335
|
-
|
|
371
|
+
IsNotEmpty12({ message: "Please enter mobile number." })
|
|
336
372
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
337
373
|
__decorateClass([
|
|
338
|
-
|
|
374
|
+
IsNotEmpty12({ message: "Please enter the password." })
|
|
339
375
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
340
376
|
__decorateClass([
|
|
341
|
-
|
|
377
|
+
IsNotEmpty12({ message: "Please enter account type." })
|
|
342
378
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
343
379
|
__decorateClass([
|
|
344
|
-
|
|
380
|
+
IsNotEmpty12({ message: "Please enter account status." })
|
|
345
381
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
346
382
|
|
|
347
383
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -351,23 +387,23 @@ var QUESTION_PATTERN = {
|
|
|
351
387
|
|
|
352
388
|
// src/modules/question/dto/create-question.dto.ts
|
|
353
389
|
import {
|
|
354
|
-
IsNotEmpty as
|
|
390
|
+
IsNotEmpty as IsNotEmpty13,
|
|
355
391
|
IsOptional as IsOptional4,
|
|
356
392
|
IsBoolean as IsBoolean4
|
|
357
393
|
} from "class-validator";
|
|
358
394
|
var CreateQuestionDto = class {
|
|
359
395
|
};
|
|
360
396
|
__decorateClass([
|
|
361
|
-
|
|
397
|
+
IsNotEmpty13({ message: "Please enter unique id." })
|
|
362
398
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
363
399
|
__decorateClass([
|
|
364
|
-
|
|
400
|
+
IsNotEmpty13({ message: "Please enter question." })
|
|
365
401
|
], CreateQuestionDto.prototype, "question", 2);
|
|
366
402
|
__decorateClass([
|
|
367
|
-
|
|
403
|
+
IsNotEmpty13({ message: "Please enter for whom the question is." })
|
|
368
404
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
369
405
|
__decorateClass([
|
|
370
|
-
|
|
406
|
+
IsNotEmpty13({ message: "Please enter options." })
|
|
371
407
|
], CreateQuestionDto.prototype, "options", 2);
|
|
372
408
|
__decorateClass([
|
|
373
409
|
IsOptional4(),
|
|
@@ -1019,6 +1055,7 @@ export {
|
|
|
1019
1055
|
AccountStatus,
|
|
1020
1056
|
AccountType,
|
|
1021
1057
|
BaseEntity,
|
|
1058
|
+
ClientCreateAccountDto,
|
|
1022
1059
|
ClientProfileQuestionDto,
|
|
1023
1060
|
CompanyProfile,
|
|
1024
1061
|
CreateQuestionDto,
|
|
@@ -2,5 +2,6 @@ export * from './freelancer-create-account.dto';
|
|
|
2
2
|
export * from './freelancer-upload-resume.dto';
|
|
3
3
|
export * from './freelancer-development-preference.dto';
|
|
4
4
|
export * from './freelancer-profile-question.dto';
|
|
5
|
-
export * from './client-profile-question.dto';
|
|
6
5
|
export * from './freelancer-work-showcase.dto';
|
|
6
|
+
export * from './client-profile-question.dto';
|
|
7
|
+
export * from './client-create-account.dto';
|
package/package.json
CHANGED
|
File without changes
|