@experts_hub/shared 1.0.486 → 1.0.488
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +21 -3
- package/dist/index.mjs +24 -5
- package/dist/modules/dispute/dto/create-dispute.dto.d.ts +2 -0
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +1 -1
- package/dist/modules/user/freelancer-skill/dto/freelancer-skill.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -480,7 +480,7 @@ declare class JobBasicInformationDto {
|
|
|
480
480
|
projectName?: string;
|
|
481
481
|
note?: string;
|
|
482
482
|
skills: string[];
|
|
483
|
-
|
|
483
|
+
goodToHaveSkills: string[];
|
|
484
484
|
openings: number;
|
|
485
485
|
location: JobLocation;
|
|
486
486
|
countryId: number;
|
|
@@ -2145,6 +2145,7 @@ declare const FREELANCER_SKILL_PATTERN: {
|
|
|
2145
2145
|
|
|
2146
2146
|
declare class FreelancerSkillDto {
|
|
2147
2147
|
coreSkills: string[];
|
|
2148
|
+
secondarySkills: string[];
|
|
2148
2149
|
tools: string[];
|
|
2149
2150
|
frameworks: string[];
|
|
2150
2151
|
}
|
|
@@ -2757,6 +2758,8 @@ declare class UpdateInvoiceStatusDto {
|
|
|
2757
2758
|
}
|
|
2758
2759
|
|
|
2759
2760
|
declare class CreateDisputeDto {
|
|
2761
|
+
clientId: number;
|
|
2762
|
+
freelancerId: number;
|
|
2760
2763
|
disputeType: string;
|
|
2761
2764
|
description: any;
|
|
2762
2765
|
comment?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ declare class JobBasicInformationDto {
|
|
|
480
480
|
projectName?: string;
|
|
481
481
|
note?: string;
|
|
482
482
|
skills: string[];
|
|
483
|
-
|
|
483
|
+
goodToHaveSkills: string[];
|
|
484
484
|
openings: number;
|
|
485
485
|
location: JobLocation;
|
|
486
486
|
countryId: number;
|
|
@@ -2145,6 +2145,7 @@ declare const FREELANCER_SKILL_PATTERN: {
|
|
|
2145
2145
|
|
|
2146
2146
|
declare class FreelancerSkillDto {
|
|
2147
2147
|
coreSkills: string[];
|
|
2148
|
+
secondarySkills: string[];
|
|
2148
2149
|
tools: string[];
|
|
2149
2150
|
frameworks: string[];
|
|
2150
2151
|
}
|
|
@@ -2757,6 +2758,8 @@ declare class UpdateInvoiceStatusDto {
|
|
|
2757
2758
|
}
|
|
2758
2759
|
|
|
2759
2760
|
declare class CreateDisputeDto {
|
|
2761
|
+
clientId: number;
|
|
2762
|
+
freelancerId: number;
|
|
2760
2763
|
disputeType: string;
|
|
2761
2764
|
description: any;
|
|
2762
2765
|
comment?: string;
|
package/dist/index.js
CHANGED
|
@@ -1233,6 +1233,7 @@ __decorateClass([
|
|
|
1233
1233
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1234
1234
|
__decorateClass([
|
|
1235
1235
|
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1236
|
+
(0, import_class_validator33.IsOptional)(),
|
|
1236
1237
|
(0, import_class_validator33.IsArray)({ message: "Skills must be an array" }),
|
|
1237
1238
|
(0, import_class_validator33.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1238
1239
|
(0, import_class_validator33.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
@@ -1240,9 +1241,11 @@ __decorateClass([
|
|
|
1240
1241
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1241
1242
|
__decorateClass([
|
|
1242
1243
|
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1243
|
-
(0, import_class_validator33.
|
|
1244
|
-
(0,
|
|
1245
|
-
|
|
1244
|
+
(0, import_class_validator33.IsArray)({ message: "Good to have skills must be an array" }),
|
|
1245
|
+
(0, import_class_validator33.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1246
|
+
(0, import_class_validator33.IsOptional)(),
|
|
1247
|
+
(0, import_class_transformer2.Type)(() => String)
|
|
1248
|
+
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1246
1249
|
__decorateClass([
|
|
1247
1250
|
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1248
1251
|
(0, import_class_validator33.IsNumber)({}, { message: "Openings must be a number" }),
|
|
@@ -5852,6 +5855,7 @@ var import_class_transformer7 = require("class-transformer");
|
|
|
5852
5855
|
var FreelancerSkillDto = class {
|
|
5853
5856
|
constructor() {
|
|
5854
5857
|
this.coreSkills = [];
|
|
5858
|
+
this.secondarySkills = [];
|
|
5855
5859
|
this.tools = [];
|
|
5856
5860
|
this.frameworks = [];
|
|
5857
5861
|
}
|
|
@@ -5862,6 +5866,12 @@ __decorateClass([
|
|
|
5862
5866
|
(0, import_class_transformer7.Type)(() => String),
|
|
5863
5867
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5864
5868
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5869
|
+
__decorateClass([
|
|
5870
|
+
(0, import_class_validator52.IsOptional)(),
|
|
5871
|
+
(0, import_class_validator52.IsArray)(),
|
|
5872
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5873
|
+
(0, import_class_validator52.IsString)({ each: true })
|
|
5874
|
+
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
5865
5875
|
__decorateClass([
|
|
5866
5876
|
(0, import_class_validator52.IsOptional)(),
|
|
5867
5877
|
(0, import_class_validator52.IsArray)(),
|
|
@@ -6983,6 +6993,14 @@ var import_class_validator77 = require("class-validator");
|
|
|
6983
6993
|
var import_class_transformer16 = require("class-transformer");
|
|
6984
6994
|
var CreateDisputeDto = class {
|
|
6985
6995
|
};
|
|
6996
|
+
__decorateClass([
|
|
6997
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Client id must be a number" }),
|
|
6998
|
+
(0, import_class_transformer16.Type)(() => Number)
|
|
6999
|
+
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7000
|
+
__decorateClass([
|
|
7001
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
7002
|
+
(0, import_class_transformer16.Type)(() => Number)
|
|
7003
|
+
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
6986
7004
|
__decorateClass([
|
|
6987
7005
|
(0, import_class_validator77.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
6988
7006
|
(0, import_class_validator77.IsString)(),
|
package/dist/index.mjs
CHANGED
|
@@ -1015,6 +1015,7 @@ __decorateClass([
|
|
|
1015
1015
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1016
1016
|
__decorateClass([
|
|
1017
1017
|
ValidateIf3((o) => !o.isDraft),
|
|
1018
|
+
IsOptional12(),
|
|
1018
1019
|
IsArray({ message: "Skills must be an array" }),
|
|
1019
1020
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1020
1021
|
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
@@ -1022,9 +1023,11 @@ __decorateClass([
|
|
|
1022
1023
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1023
1024
|
__decorateClass([
|
|
1024
1025
|
ValidateIf3((o) => !o.isDraft),
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
IsArray({ message: "Good to have skills must be an array" }),
|
|
1027
|
+
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
1028
|
+
IsOptional12(),
|
|
1029
|
+
Type(() => String)
|
|
1030
|
+
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1028
1031
|
__decorateClass([
|
|
1029
1032
|
ValidateIf3((o) => !o.isDraft),
|
|
1030
1033
|
IsNumber({}, { message: "Openings must be a number" }),
|
|
@@ -5883,6 +5886,7 @@ import { Type as Type6 } from "class-transformer";
|
|
|
5883
5886
|
var FreelancerSkillDto = class {
|
|
5884
5887
|
constructor() {
|
|
5885
5888
|
this.coreSkills = [];
|
|
5889
|
+
this.secondarySkills = [];
|
|
5886
5890
|
this.tools = [];
|
|
5887
5891
|
this.frameworks = [];
|
|
5888
5892
|
}
|
|
@@ -5893,6 +5897,12 @@ __decorateClass([
|
|
|
5893
5897
|
Type6(() => String),
|
|
5894
5898
|
IsString26({ each: true })
|
|
5895
5899
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5900
|
+
__decorateClass([
|
|
5901
|
+
IsOptional25(),
|
|
5902
|
+
IsArray8(),
|
|
5903
|
+
Type6(() => String),
|
|
5904
|
+
IsString26({ each: true })
|
|
5905
|
+
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
5896
5906
|
__decorateClass([
|
|
5897
5907
|
IsOptional25(),
|
|
5898
5908
|
IsArray8(),
|
|
@@ -7127,11 +7137,20 @@ import {
|
|
|
7127
7137
|
IsIn as IsIn4,
|
|
7128
7138
|
IsOptional as IsOptional42,
|
|
7129
7139
|
MaxLength as MaxLength19,
|
|
7130
|
-
IsObject
|
|
7140
|
+
IsObject,
|
|
7141
|
+
IsNumber as IsNumber13
|
|
7131
7142
|
} from "class-validator";
|
|
7132
|
-
import { Transform as Transform4 } from "class-transformer";
|
|
7143
|
+
import { Transform as Transform4, Type as Type14 } from "class-transformer";
|
|
7133
7144
|
var CreateDisputeDto = class {
|
|
7134
7145
|
};
|
|
7146
|
+
__decorateClass([
|
|
7147
|
+
IsNumber13({}, { message: "Client id must be a number" }),
|
|
7148
|
+
Type14(() => Number)
|
|
7149
|
+
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7150
|
+
__decorateClass([
|
|
7151
|
+
IsNumber13({}, { message: "Freelancer id must be a number" }),
|
|
7152
|
+
Type14(() => Number)
|
|
7153
|
+
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7135
7154
|
__decorateClass([
|
|
7136
7155
|
IsNotEmpty67({ message: "Please select dispute type." }),
|
|
7137
7156
|
IsString45(),
|