@experts_hub/shared 1.0.487 → 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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -1
- package/dist/index.mjs +13 -3
- package/dist/modules/dispute/dto/create-dispute.dto.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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" }),
|
|
@@ -1241,8 +1242,8 @@ __decorateClass([
|
|
|
1241
1242
|
__decorateClass([
|
|
1242
1243
|
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1243
1244
|
(0, import_class_validator33.IsArray)({ message: "Good to have skills must be an array" }),
|
|
1244
|
-
(0, import_class_validator33.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1245
1245
|
(0, import_class_validator33.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1246
|
+
(0, import_class_validator33.IsOptional)(),
|
|
1246
1247
|
(0, import_class_transformer2.Type)(() => String)
|
|
1247
1248
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1248
1249
|
__decorateClass([
|
|
@@ -6992,6 +6993,14 @@ var import_class_validator77 = require("class-validator");
|
|
|
6992
6993
|
var import_class_transformer16 = require("class-transformer");
|
|
6993
6994
|
var CreateDisputeDto = class {
|
|
6994
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);
|
|
6995
7004
|
__decorateClass([
|
|
6996
7005
|
(0, import_class_validator77.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
6997
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" }),
|
|
@@ -1023,8 +1024,8 @@ __decorateClass([
|
|
|
1023
1024
|
__decorateClass([
|
|
1024
1025
|
ValidateIf3((o) => !o.isDraft),
|
|
1025
1026
|
IsArray({ message: "Good to have skills must be an array" }),
|
|
1026
|
-
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1027
1027
|
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
1028
|
+
IsOptional12(),
|
|
1028
1029
|
Type(() => String)
|
|
1029
1030
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
1030
1031
|
__decorateClass([
|
|
@@ -7136,11 +7137,20 @@ import {
|
|
|
7136
7137
|
IsIn as IsIn4,
|
|
7137
7138
|
IsOptional as IsOptional42,
|
|
7138
7139
|
MaxLength as MaxLength19,
|
|
7139
|
-
IsObject
|
|
7140
|
+
IsObject,
|
|
7141
|
+
IsNumber as IsNumber13
|
|
7140
7142
|
} from "class-validator";
|
|
7141
|
-
import { Transform as Transform4 } from "class-transformer";
|
|
7143
|
+
import { Transform as Transform4, Type as Type14 } from "class-transformer";
|
|
7142
7144
|
var CreateDisputeDto = class {
|
|
7143
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);
|
|
7144
7154
|
__decorateClass([
|
|
7145
7155
|
IsNotEmpty67({ message: "Please select dispute type." }),
|
|
7146
7156
|
IsString45(),
|