@experts_hub/shared 1.0.170 → 1.0.171
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 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2860,6 +2860,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
2860
2860
|
};
|
|
2861
2861
|
|
|
2862
2862
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
2863
|
+
var import_types = require("class-transformer/types");
|
|
2863
2864
|
var import_class_validator43 = require("class-validator");
|
|
2864
2865
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
2865
2866
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2878,7 +2879,8 @@ __decorateClass([
|
|
|
2878
2879
|
(0, import_class_validator43.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
2879
2880
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
2880
2881
|
__decorateClass([
|
|
2881
|
-
(0,
|
|
2882
|
+
(0, import_types.Transform)(({ value }) => value === "true" || value === true),
|
|
2883
|
+
(0, import_class_validator43.IsBoolean)({ message: "Please accept the declaration" })
|
|
2882
2884
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
2883
2885
|
|
|
2884
2886
|
// src/adapters/tcp/user.tcp.adapter.ts
|
package/dist/index.mjs
CHANGED
|
@@ -2931,6 +2931,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
2931
2931
|
};
|
|
2932
2932
|
|
|
2933
2933
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
2934
|
+
import { Transform } from "class-transformer/types";
|
|
2934
2935
|
import { IsOptional as IsOptional18, IsEnum as IsEnum13, IsBoolean as IsBoolean12, IsString as IsString26 } from "class-validator";
|
|
2935
2936
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
2936
2937
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2949,7 +2950,8 @@ __decorateClass([
|
|
|
2949
2950
|
IsEnum13(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
2950
2951
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
2951
2952
|
__decorateClass([
|
|
2952
|
-
|
|
2953
|
+
Transform(({ value }) => value === "true" || value === true),
|
|
2954
|
+
IsBoolean12({ message: "Please accept the declaration" })
|
|
2953
2955
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
2954
2956
|
|
|
2955
2957
|
// src/adapters/tcp/user.tcp.adapter.ts
|