@experts_hub/shared 1.0.189 → 1.0.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.mjs +6 -2
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/client-admin/client-admin.interface.d.ts +64 -0
- package/dist/modules/user/client-admin/dto/create-client.dto.d.ts +24 -0
- package/dist/modules/user/client-admin/dto/index.d.ts +3 -0
- package/dist/modules/user/client-admin/dto/update-client-status.dto.d.ts +3 -0
- package/dist/modules/user/client-admin/dto/update-client.dto.d.ts +11 -0
- package/dist/modules/user/client-admin/index.d.ts +3 -0
- package/dist/modules/user/client-admin/pattern/pattern.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2827,6 +2827,7 @@ var FreelancerExperienceDto = class {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
__decorateClass([
|
|
2829
2829
|
(0, import_class_validator39.ValidateNested)({ each: true }),
|
|
2830
|
+
(0, import_class_validator39.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
2830
2831
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
2831
2832
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
2832
2833
|
|
|
@@ -2912,6 +2913,7 @@ var FreelancerEducationDto = class {
|
|
|
2912
2913
|
};
|
|
2913
2914
|
__decorateClass([
|
|
2914
2915
|
(0, import_class_validator43.IsArray)(),
|
|
2916
|
+
(0, import_class_validator43.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
2915
2917
|
(0, import_class_validator43.ValidateNested)({ each: true }),
|
|
2916
2918
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
2917
2919
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -2977,6 +2979,7 @@ var FreelancerProjectDto = class {
|
|
|
2977
2979
|
};
|
|
2978
2980
|
__decorateClass([
|
|
2979
2981
|
(0, import_class_validator44.IsArray)(),
|
|
2982
|
+
(0, import_class_validator44.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
2980
2983
|
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
2981
2984
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
2982
2985
|
], FreelancerProjectDto.prototype, "projects", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -2876,6 +2876,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2876
2876
|
|
|
2877
2877
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
2878
2878
|
import {
|
|
2879
|
+
ArrayMinSize,
|
|
2879
2880
|
IsNotEmpty as IsNotEmpty32,
|
|
2880
2881
|
IsOptional as IsOptional12,
|
|
2881
2882
|
IsString as IsString20,
|
|
@@ -2909,6 +2910,7 @@ var FreelancerExperienceDto = class {
|
|
|
2909
2910
|
};
|
|
2910
2911
|
__decorateClass([
|
|
2911
2912
|
ValidateNested({ each: true }),
|
|
2913
|
+
ArrayMinSize(1, { message: "At least one experience is required." }),
|
|
2912
2914
|
Type2(() => ExperienceDto)
|
|
2913
2915
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
2914
2916
|
|
|
@@ -2971,7 +2973,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2971
2973
|
};
|
|
2972
2974
|
|
|
2973
2975
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2974
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
2976
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
2975
2977
|
import { Type as Type3 } from "class-transformer";
|
|
2976
2978
|
var EducationDto = class {
|
|
2977
2979
|
};
|
|
@@ -2994,6 +2996,7 @@ var FreelancerEducationDto = class {
|
|
|
2994
2996
|
};
|
|
2995
2997
|
__decorateClass([
|
|
2996
2998
|
IsArray6(),
|
|
2999
|
+
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
2997
3000
|
ValidateNested2({ each: true }),
|
|
2998
3001
|
Type3(() => EducationDto)
|
|
2999
3002
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
@@ -3005,7 +3008,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3005
3008
|
};
|
|
3006
3009
|
|
|
3007
3010
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3008
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
3011
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3009
3012
|
import { Type as Type4 } from "class-transformer";
|
|
3010
3013
|
var ProjectDto = class {
|
|
3011
3014
|
};
|
|
@@ -3059,6 +3062,7 @@ var FreelancerProjectDto = class {
|
|
|
3059
3062
|
};
|
|
3060
3063
|
__decorateClass([
|
|
3061
3064
|
IsArray7(),
|
|
3065
|
+
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
3062
3066
|
ValidateNested3({ each: true }),
|
|
3063
3067
|
Type4(() => ProjectDto)
|
|
3064
3068
|
], FreelancerProjectDto.prototype, "projects", 2);
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface IFetchClientsResponse {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
status: boolean;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateClientPayload {
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
email: string;
|
|
11
|
+
password: string;
|
|
12
|
+
confirmPassword: string;
|
|
13
|
+
companyName: string;
|
|
14
|
+
skills: string[];
|
|
15
|
+
requiredFreelancer: string;
|
|
16
|
+
kindOfHiring: string;
|
|
17
|
+
modeOfHire: string;
|
|
18
|
+
foundUsOn: string;
|
|
19
|
+
OTHER?: string;
|
|
20
|
+
foundUsOnDetail?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ICreateClientResponse {
|
|
23
|
+
statusCode: number;
|
|
24
|
+
status: boolean;
|
|
25
|
+
message: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IUpdateClientPayload {
|
|
28
|
+
firstName?: string;
|
|
29
|
+
lastName?: string;
|
|
30
|
+
email?: string;
|
|
31
|
+
password?: string;
|
|
32
|
+
confirmPassword?: string;
|
|
33
|
+
companyName?: string;
|
|
34
|
+
skills?: string[];
|
|
35
|
+
requiredFreelancer?: string;
|
|
36
|
+
kindOfHiring?: string;
|
|
37
|
+
modeOfHire?: string;
|
|
38
|
+
foundUsOn?: string;
|
|
39
|
+
OTHER?: string;
|
|
40
|
+
foundUsOnDetail?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IUpdateClientResponse {
|
|
43
|
+
statusCode: number;
|
|
44
|
+
status: boolean;
|
|
45
|
+
message: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IUpdateClientAccountStatusPayload {
|
|
48
|
+
accountSatus: string;
|
|
49
|
+
}
|
|
50
|
+
export interface IUpdateClientAccountStatusResponse {
|
|
51
|
+
statusCode: number;
|
|
52
|
+
status: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IDeleteClientResponse {
|
|
56
|
+
statusCode: number;
|
|
57
|
+
status: boolean;
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IAttachPermissionsToClientResponse {
|
|
61
|
+
statusCode: number;
|
|
62
|
+
status: boolean;
|
|
63
|
+
message: string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum HiringMode {
|
|
2
|
+
REMOTE = "REMOTE",
|
|
3
|
+
ONSITE = "ONSITE",
|
|
4
|
+
BOTH = "BOTH"
|
|
5
|
+
}
|
|
6
|
+
export declare enum HiringType {
|
|
7
|
+
PARTTIME = "PARTTIME",
|
|
8
|
+
FULLTIME = "FULLTIME",
|
|
9
|
+
BOTH = "BOTH"
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateClientDto {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
email: string;
|
|
15
|
+
confirmPassword: string;
|
|
16
|
+
companyName: string;
|
|
17
|
+
skills: string[];
|
|
18
|
+
requiredFreelancer: string;
|
|
19
|
+
kindOfHiring: string;
|
|
20
|
+
modeOfHire: string;
|
|
21
|
+
foundUsOn: string;
|
|
22
|
+
OTHER?: string;
|
|
23
|
+
foundUsOnDetail?: string;
|
|
24
|
+
}
|