@experts_hub/shared 1.0.202 → 1.0.204

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 CHANGED
@@ -1377,6 +1377,10 @@ declare const FREELANCER_ADMIN_PATTERNS: {
1377
1377
  fetchAdminFreelancers: string;
1378
1378
  exportAdminFreelancers: string;
1379
1379
  fetchFreelancerCount: string;
1380
+ createAdminFreelancer: string;
1381
+ updateAdminFreelancer: string;
1382
+ fetchAdminFreelancerById: string;
1383
+ deleteAdminFreelancer: string;
1380
1384
  };
1381
1385
 
1382
1386
  declare const CLIENT_ADMIN_PATTERNS: {
@@ -1433,8 +1437,7 @@ declare class UpdateClientDto {
1433
1437
  firstName: string;
1434
1438
  lastName: string;
1435
1439
  email: string;
1436
- password: string;
1437
- confirmPassword: string;
1440
+ password?: string;
1438
1441
  companyName: string;
1439
1442
  skills: string[];
1440
1443
  requiredFreelancer: string;
@@ -1476,7 +1479,6 @@ interface IUpdateClientPayload {
1476
1479
  lastName?: string;
1477
1480
  email?: string;
1478
1481
  password?: string;
1479
- confirmPassword?: string;
1480
1482
  companyName?: string;
1481
1483
  skills?: string[];
1482
1484
  requiredFreelancer?: string;
package/dist/index.d.ts CHANGED
@@ -1377,6 +1377,10 @@ declare const FREELANCER_ADMIN_PATTERNS: {
1377
1377
  fetchAdminFreelancers: string;
1378
1378
  exportAdminFreelancers: string;
1379
1379
  fetchFreelancerCount: string;
1380
+ createAdminFreelancer: string;
1381
+ updateAdminFreelancer: string;
1382
+ fetchAdminFreelancerById: string;
1383
+ deleteAdminFreelancer: string;
1380
1384
  };
1381
1385
 
1382
1386
  declare const CLIENT_ADMIN_PATTERNS: {
@@ -1433,8 +1437,7 @@ declare class UpdateClientDto {
1433
1437
  firstName: string;
1434
1438
  lastName: string;
1435
1439
  email: string;
1436
- password: string;
1437
- confirmPassword: string;
1440
+ password?: string;
1438
1441
  companyName: string;
1439
1442
  skills: string[];
1440
1443
  requiredFreelancer: string;
@@ -1476,7 +1479,6 @@ interface IUpdateClientPayload {
1476
1479
  lastName?: string;
1477
1480
  email?: string;
1478
1481
  password?: string;
1479
- confirmPassword?: string;
1480
1482
  companyName?: string;
1481
1483
  skills?: string[];
1482
1484
  requiredFreelancer?: string;
package/dist/index.js CHANGED
@@ -2583,7 +2583,7 @@ __decorateClass([
2583
2583
  })
2584
2584
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
2585
2585
  __decorateClass([
2586
- (0, import_typeorm30.Column)({ name: "score", type: "integer" })
2586
+ (0, import_typeorm30.Column)({ name: "score", type: "float" })
2587
2587
  ], AssessmentAnswer.prototype, "score", 2);
2588
2588
  AssessmentAnswer = __decorateClass([
2589
2589
  (0, import_typeorm30.Entity)("assessment_answers")
@@ -3195,7 +3195,11 @@ __decorateClass([
3195
3195
  var FREELANCER_ADMIN_PATTERNS = {
3196
3196
  fetchAdminFreelancers: "fetch.admin.freelancers",
3197
3197
  exportAdminFreelancers: "export.admin.freelancers",
3198
- fetchFreelancerCount: "fetch.freelancer.count"
3198
+ fetchFreelancerCount: "fetch.freelancer.count",
3199
+ createAdminFreelancer: "create.admin.freelancer",
3200
+ updateAdminFreelancer: "update.admin.freelancer",
3201
+ fetchAdminFreelancerById: "fetch.admin.freelancer_by_id",
3202
+ deleteAdminFreelancer: "delete.admin.freelancer"
3199
3203
  };
3200
3204
 
3201
3205
  // src/modules/client-admin/pattern/pattern.ts
@@ -3320,13 +3324,13 @@ __decorateClass([
3320
3324
  (0, import_class_validator48.IsEmail)()
3321
3325
  ], UpdateClientDto.prototype, "email", 2);
3322
3326
  __decorateClass([
3323
- (0, import_class_validator48.IsNotEmpty)({ message: "Please enter the password." }),
3324
- (0, import_class_validator48.MinLength)(6)
3327
+ (0, import_class_validator48.IsOptional)(),
3328
+ (0, import_class_validator48.MinLength)(6, { message: "Password must be at least 6 characters." }),
3329
+ (0, import_class_validator48.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
3330
+ (0, import_class_validator48.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
3331
+ message: "Password must include letters, numbers and symbols."
3332
+ })
3325
3333
  ], UpdateClientDto.prototype, "password", 2);
3326
- __decorateClass([
3327
- (0, import_class_validator48.IsNotEmpty)({ message: "Please confirm your password." }),
3328
- (0, import_class_validator48.MinLength)(6)
3329
- ], UpdateClientDto.prototype, "confirmPassword", 2);
3330
3334
  __decorateClass([
3331
3335
  (0, import_class_validator48.IsNotEmpty)({ message: "Please enter company name." }),
3332
3336
  (0, import_class_validator48.IsString)()
package/dist/index.mjs CHANGED
@@ -2652,7 +2652,7 @@ __decorateClass([
2652
2652
  })
2653
2653
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
2654
2654
  __decorateClass([
2655
- Column30({ name: "score", type: "integer" })
2655
+ Column30({ name: "score", type: "float" })
2656
2656
  ], AssessmentAnswer.prototype, "score", 2);
2657
2657
  AssessmentAnswer = __decorateClass([
2658
2658
  Entity29("assessment_answers")
@@ -3271,7 +3271,11 @@ __decorateClass([
3271
3271
  var FREELANCER_ADMIN_PATTERNS = {
3272
3272
  fetchAdminFreelancers: "fetch.admin.freelancers",
3273
3273
  exportAdminFreelancers: "export.admin.freelancers",
3274
- fetchFreelancerCount: "fetch.freelancer.count"
3274
+ fetchFreelancerCount: "fetch.freelancer.count",
3275
+ createAdminFreelancer: "create.admin.freelancer",
3276
+ updateAdminFreelancer: "update.admin.freelancer",
3277
+ fetchAdminFreelancerById: "fetch.admin.freelancer_by_id",
3278
+ deleteAdminFreelancer: "delete.admin.freelancer"
3275
3279
  };
3276
3280
 
3277
3281
  // src/modules/client-admin/pattern/pattern.ts
@@ -3385,7 +3389,9 @@ import {
3385
3389
  IsString as IsString28,
3386
3390
  IsArray as IsArray10,
3387
3391
  MinLength as MinLength13,
3388
- IsEnum as IsEnum14
3392
+ MaxLength as MaxLength15,
3393
+ IsEnum as IsEnum14,
3394
+ Matches as Matches9
3389
3395
  } from "class-validator";
3390
3396
  var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
3391
3397
  UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
@@ -3414,13 +3420,13 @@ __decorateClass([
3414
3420
  IsEmail12()
3415
3421
  ], UpdateClientDto.prototype, "email", 2);
3416
3422
  __decorateClass([
3417
- IsNotEmpty40({ message: "Please enter the password." }),
3418
- MinLength13(6)
3423
+ IsOptional19(),
3424
+ MinLength13(6, { message: "Password must be at least 6 characters." }),
3425
+ MaxLength15(32, { message: "Password must not exceed 32 characters." }),
3426
+ Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
3427
+ message: "Password must include letters, numbers and symbols."
3428
+ })
3419
3429
  ], UpdateClientDto.prototype, "password", 2);
3420
- __decorateClass([
3421
- IsNotEmpty40({ message: "Please confirm your password." }),
3422
- MinLength13(6)
3423
- ], UpdateClientDto.prototype, "confirmPassword", 2);
3424
3430
  __decorateClass([
3425
3431
  IsNotEmpty40({ message: "Please enter company name." }),
3426
3432
  IsString28()
@@ -29,7 +29,6 @@ export interface IUpdateClientPayload {
29
29
  lastName?: string;
30
30
  email?: string;
31
31
  password?: string;
32
- confirmPassword?: string;
33
32
  companyName?: string;
34
33
  skills?: string[];
35
34
  requiredFreelancer?: string;
@@ -12,8 +12,7 @@ export declare class UpdateClientDto {
12
12
  firstName: string;
13
13
  lastName: string;
14
14
  email: string;
15
- password: string;
16
- confirmPassword: string;
15
+ password?: string;
17
16
  companyName: string;
18
17
  skills: string[];
19
18
  requiredFreelancer: string;
@@ -0,0 +1,29 @@
1
+ declare enum NatureOfWorkEnum {
2
+ FULLTIME = "FULLTIME",
3
+ PARTTIME = "PARTTIME",
4
+ BOTH = "BOTH"
5
+ }
6
+ declare enum ModeOfWorkEnum {
7
+ REMOTE = "REMOTE",
8
+ ONSITE = "ONSITE",
9
+ BOTH = "BOTH"
10
+ }
11
+ export declare class CreateFreelancerDto {
12
+ fullName: string;
13
+ email: string;
14
+ mobileCode: string;
15
+ mobile: string;
16
+ password: string;
17
+ developer: boolean;
18
+ natureOfWork: NatureOfWorkEnum;
19
+ expectedHourlyCompensation: number;
20
+ modeOfWork: ModeOfWorkEnum;
21
+ availabilityToJoin: string;
22
+ isImmediateJoiner: boolean;
23
+ linkedinProfileLink?: string;
24
+ kaggleProfileLink?: string;
25
+ githubProfileLink?: string;
26
+ stackOverflowProfileLink?: string;
27
+ portfolioLink?: string;
28
+ }
29
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './create-freelancer.dto';
2
+ export * from './update-freelancer.dto';
@@ -0,0 +1,29 @@
1
+ declare enum NatureOfWorkEnum {
2
+ FULLTIME = "FULLTIME",
3
+ PARTTIME = "PARTTIME",
4
+ BOTH = "BOTH"
5
+ }
6
+ declare enum ModeOfWorkEnum {
7
+ REMOTE = "REMOTE",
8
+ ONSITE = "ONSITE",
9
+ BOTH = "BOTH"
10
+ }
11
+ export declare class UpdateFreelancerDto {
12
+ fullName: string;
13
+ email: string;
14
+ mobileCode: string;
15
+ mobile: string;
16
+ password?: string;
17
+ developer: boolean;
18
+ natureOfWork: NatureOfWorkEnum;
19
+ expectedHourlyCompensation: number;
20
+ modeOfWork: ModeOfWorkEnum;
21
+ availabilityToJoin: string;
22
+ isImmediateJoiner: boolean;
23
+ linkedinProfileLink?: string;
24
+ kaggleProfileLink?: string;
25
+ githubProfileLink?: string;
26
+ stackOverflowProfileLink?: string;
27
+ portfolioLink?: string;
28
+ }
29
+ export {};
@@ -0,0 +1,67 @@
1
+ export interface IFetchFreelancersResponse {
2
+ statusCode: number;
3
+ status: boolean;
4
+ message: string;
5
+ data: any;
6
+ }
7
+ export interface ICreateFreelancerPayload {
8
+ firstName: string;
9
+ lastName: string;
10
+ email: string;
11
+ password: string;
12
+ confirmPassword: string;
13
+ skills: string[];
14
+ expectedHourlyCompensation: number;
15
+ modeOfWork: "REMOTE" | "ONSITE" | "HYBRID";
16
+ availabilityToJoin: string;
17
+ isImmediateJoiner: boolean;
18
+ linkedinProfileLink?: string;
19
+ githubProfileLink?: string;
20
+ kaggleProfileLink?: string;
21
+ stackOverflowProfileLink?: string;
22
+ portfolioLink?: string;
23
+ foundUsOn: string;
24
+ OTHER?: string;
25
+ foundUsOnDetail?: string;
26
+ isDeveloper?: boolean;
27
+ }
28
+ export interface ICreateFreelancerResponse {
29
+ statusCode: number;
30
+ status: boolean;
31
+ message: string;
32
+ }
33
+ export interface IUpdateFreelancerPayload {
34
+ firstName?: string;
35
+ lastName?: string;
36
+ email?: string;
37
+ password?: string;
38
+ skills?: string[];
39
+ expectedHourlyCompensation?: number;
40
+ modeOfWork?: string;
41
+ availabilityToJoin?: string;
42
+ isImmediateJoiner?: boolean;
43
+ linkedinProfileLink?: string;
44
+ githubProfileLink?: string;
45
+ kaggleProfileLink?: string;
46
+ stackOverflowProfileLink?: string;
47
+ portfolioLink?: string;
48
+ foundUsOn?: string;
49
+ OTHER?: string;
50
+ foundUsOnDetail?: string;
51
+ isDeveloper?: boolean;
52
+ }
53
+ export interface IUpdateFreelancerResponse {
54
+ statusCode: number;
55
+ status: boolean;
56
+ message: string;
57
+ }
58
+ export interface IDeleteFreelancerResponse {
59
+ statusCode: number;
60
+ status: boolean;
61
+ message: string;
62
+ }
63
+ export interface IAttachPermissionsToFreelancerResponse {
64
+ statusCode: number;
65
+ status: boolean;
66
+ message: string;
67
+ }
@@ -2,4 +2,8 @@ export declare const FREELANCER_ADMIN_PATTERNS: {
2
2
  fetchAdminFreelancers: string;
3
3
  exportAdminFreelancers: string;
4
4
  fetchFreelancerCount: string;
5
+ createAdminFreelancer: string;
6
+ updateAdminFreelancer: string;
7
+ fetchAdminFreelancerById: string;
8
+ deleteAdminFreelancer: string;
5
9
  };
@@ -23,5 +23,4 @@ export * from './freelancer-admin';
23
23
  export * from './client-admin';
24
24
  export * from './user/freelancer-declaration';
25
25
  export * from './cms';
26
- export * from './client-admin';
27
26
  export * from './geographic';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",