@hed-hog/contact 0.0.68 → 0.0.102
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/person/address/dto/create.dto.d.ts.map +1 -1
- package/dist/person/address/dto/create.dto.js +9 -8
- package/dist/person/address/dto/create.dto.js.map +1 -1
- package/dist/person/contact/dto/create.dto.d.ts.map +1 -1
- package/dist/person/contact/dto/create.dto.js +4 -3
- package/dist/person/contact/dto/create.dto.js.map +1 -1
- package/dist/person/document/dto/create.dto.d.ts.map +1 -1
- package/dist/person/document/dto/create.dto.js +3 -2
- package/dist/person/document/dto/create.dto.js.map +1 -1
- package/dist/person/person-company/dto/create.dto.d.ts.map +1 -1
- package/dist/person/person-company/dto/create.dto.js +5 -4
- package/dist/person/person-company/dto/create.dto.js.map +1 -1
- package/dist/person/person-individual/dto/create.dto.d.ts.map +1 -1
- package/dist/person/person-individual/dto/create.dto.js +3 -2
- package/dist/person/person-individual/dto/create.dto.js.map +1 -1
- package/dist/person/person-metadata/dto/create.dto.d.ts.map +1 -1
- package/dist/person/person-metadata/dto/create.dto.js +2 -1
- package/dist/person/person-metadata/dto/create.dto.js.map +1 -1
- package/dist/person/person-relation/dto/create.dto.d.ts.map +1 -1
- package/dist/person/person-relation/dto/create.dto.js +3 -2
- package/dist/person/person-relation/dto/create.dto.js.map +1 -1
- package/hedhog/data/route.yaml +26 -0
- package/package.json +4 -4
- package/src/person/address/dto/create.dto.ts +9 -8
- package/src/person/contact/dto/create.dto.ts +4 -3
- package/src/person/document/dto/create.dto.ts +3 -2
- package/src/person/person-company/dto/create.dto.ts +5 -4
- package/src/person/person-individual/dto/create.dto.ts +3 -2
- package/src/person/person-metadata/dto/create.dto.ts +2 -1
- package/src/person/person-relation/dto/create.dto.ts +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/address/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/address/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,eAAe,EAAE,MAAM,CAAC;IAGxB,YAAY,EAAE,MAAM,CAAC;IAGrB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAId,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -10,42 +10,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateDTO.prototype, "address_type_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], CreateDTO.prototype, "country_code", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], CreateDTO.prototype, "state", void 0);
|
|
29
30
|
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
31
32
|
__metadata("design:type", String)
|
|
32
33
|
], CreateDTO.prototype, "city", void 0);
|
|
33
34
|
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
35
36
|
__metadata("design:type", String)
|
|
36
37
|
], CreateDTO.prototype, "postal_code", void 0);
|
|
37
38
|
__decorate([
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
39
40
|
__metadata("design:type", String)
|
|
40
41
|
], CreateDTO.prototype, "line1", void 0);
|
|
41
42
|
__decorate([
|
|
42
43
|
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], CreateDTO.prototype, "line2", void 0);
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, class_validator_1.IsOptional)(),
|
|
48
|
-
(0, class_validator_1.IsBoolean)(),
|
|
49
|
+
(0, class_validator_1.IsBoolean)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.booleanRequired', args.value) }),
|
|
49
50
|
__metadata("design:type", Boolean)
|
|
50
51
|
], CreateDTO.prototype, "is_primary", void 0);
|
|
51
52
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/address/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,SAAS;CA0BrB;AA1BD,8BA0BC;AAxBC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/address/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA4E;AAE5E,MAAa,SAAS;CA0BrB;AA1BD,8BA0BC;AAxBC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;kDACpE;AAGxB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CACnE;AAGrB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wCAC1E;AAGd;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAGb;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;8CACpE;AAGpB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wCAC1E;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wCACzE;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,4BAA4B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;6CACrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/contact/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/contact/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,eAAe,EAAE,MAAM,CAAC;IAIxB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -10,21 +10,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateDTO.prototype, "contact_type_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsOptional)(),
|
|
23
|
-
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
(0, class_validator_1.IsBoolean)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.booleanRequired', args.value) }),
|
|
24
25
|
__metadata("design:type", Boolean)
|
|
25
26
|
], CreateDTO.prototype, "is_primary", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], CreateDTO.prototype, "value", void 0);
|
|
30
31
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/contact/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,SAAS;CAUrB;AAVD,8BAUC;AARC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/contact/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA4E;AAE5E,MAAa,SAAS;CAUrB;AAVD,8BAUC;AARC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;kDACpE;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,4BAA4B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;6CACrE;AAGrB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wCAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/document/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/document/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -10,16 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateDTO.prototype, "document_type_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], CreateDTO.prototype, "value", void 0);
|
|
25
26
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/document/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/document/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAqD;AAErD,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;mDACnE;AAGzB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wCAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IAIpB,eAAe,EAAE,IAAI,CAAC;IAItB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -10,20 +10,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
class CreateDTO {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateDTO = CreateDTO;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
(0, class_validator_1.IsDate)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
21
|
+
(0, class_validator_1.IsDate)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.dateInvalid', args.value) }),
|
|
21
22
|
(0, class_transformer_1.Type)(() => Date),
|
|
22
23
|
__metadata("design:type", Date)
|
|
23
24
|
], CreateDTO.prototype, "foundation_date", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
27
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], CreateDTO.prototype, "legal_nature", void 0);
|
|
29
30
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-company/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACxF,IAAA,wBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,wBAAwB,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAClF,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;kDAAC;AAItB;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACxF,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CACnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-individual/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-individual/dto/create.dto.ts"],"names":[],"mappings":"AAIA,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,qBAAa,SAAS;IAIpB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = exports.Gender = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
var Gender;
|
|
@@ -23,13 +24,13 @@ class CreateDTO {
|
|
|
23
24
|
exports.CreateDTO = CreateDTO;
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.IsDate)(),
|
|
27
|
+
(0, class_validator_1.IsDate)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.dateInvalid', args.value) }),
|
|
27
28
|
(0, class_transformer_1.Type)(() => Date),
|
|
28
29
|
__metadata("design:type", Date)
|
|
29
30
|
], CreateDTO.prototype, "birth_date", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsEnum)(Gender),
|
|
33
|
+
(0, class_validator_1.IsEnum)(Gender, { message: (args) => (0, api_locale_1.getLocaleText)('validation.genderInvalid', args.value) }),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
35
|
], CreateDTO.prototype, "gender", void 0);
|
|
35
36
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-individual/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA6D;AAE7D,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,yBAAe,CAAA;AACjB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAED,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-individual/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAAyC;AACzC,qDAA6D;AAE7D,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,yBAAe,CAAA;AACjB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAED,MAAa,SAAS;CASrB;AATD,8BASC;AALC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,wBAAwB,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAClF,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;6CAAC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;yCAC7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-metadata/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-metadata/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,GAAG,EAAE,MAAM,CAAC;IAEZ,KAAK,EAAE,GAAG,CAAC;CACZ"}
|
|
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
21
|
], CreateDTO.prototype, "key", void 0);
|
|
21
22
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-metadata/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,SAAS;CAKrB;AALD,8BAKC;AAHC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-metadata/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA2C;AAE3C,MAAa,SAAS;CAKrB;AALD,8BAKC;AAHC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;sCAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-relation/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/person/person-relation/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -10,16 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateDTO.prototype, "related_person_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
23
24
|
__metadata("design:type", Number)
|
|
24
25
|
], CreateDTO.prototype, "relation_type_id", void 0);
|
|
25
26
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-relation/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/person/person-relation/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA2C;AAE3C,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;oDAClE;AAG1B;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;mDACnE"}
|
package/hedhog/data/route.yaml
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
role:
|
|
5
5
|
- where:
|
|
6
6
|
slug: admin
|
|
7
|
+
- where:
|
|
8
|
+
slug: admin-access
|
|
7
9
|
- url: /person/:personId/person-metadata
|
|
8
10
|
method: POST
|
|
9
11
|
relations: *a1
|
|
@@ -22,12 +24,16 @@
|
|
|
22
24
|
role:
|
|
23
25
|
- where:
|
|
24
26
|
slug: admin
|
|
27
|
+
- where:
|
|
28
|
+
slug: admin-access
|
|
25
29
|
- url: /person/stats
|
|
26
30
|
method: GET
|
|
27
31
|
relations:
|
|
28
32
|
role:
|
|
29
33
|
- where:
|
|
30
34
|
slug: admin
|
|
35
|
+
- where:
|
|
36
|
+
slug: admin-access
|
|
31
37
|
- url: /person
|
|
32
38
|
method: POST
|
|
33
39
|
relations: *a3
|
|
@@ -46,6 +52,8 @@
|
|
|
46
52
|
role:
|
|
47
53
|
- where:
|
|
48
54
|
slug: admin
|
|
55
|
+
- where:
|
|
56
|
+
slug: admin-access
|
|
49
57
|
- url: /person-document-type
|
|
50
58
|
method: POST
|
|
51
59
|
relations: *a4
|
|
@@ -64,6 +72,8 @@
|
|
|
64
72
|
role:
|
|
65
73
|
- where:
|
|
66
74
|
slug: admin
|
|
75
|
+
- where:
|
|
76
|
+
slug: admin-access
|
|
67
77
|
- url: /person/:personId/person-document
|
|
68
78
|
method: POST
|
|
69
79
|
relations: *a5
|
|
@@ -82,6 +92,8 @@
|
|
|
82
92
|
role:
|
|
83
93
|
- where:
|
|
84
94
|
slug: admin
|
|
95
|
+
- where:
|
|
96
|
+
slug: admin-access
|
|
85
97
|
- url: /person/:personId/person-contact
|
|
86
98
|
method: POST
|
|
87
99
|
relations: *a6
|
|
@@ -100,6 +112,8 @@
|
|
|
100
112
|
role:
|
|
101
113
|
- where:
|
|
102
114
|
slug: admin
|
|
115
|
+
- where:
|
|
116
|
+
slug: admin-access
|
|
103
117
|
- url: /person/:personId/person-address
|
|
104
118
|
method: POST
|
|
105
119
|
relations: *a7
|
|
@@ -118,6 +132,8 @@
|
|
|
118
132
|
role:
|
|
119
133
|
- where:
|
|
120
134
|
slug: admin
|
|
135
|
+
- where:
|
|
136
|
+
slug: admin-access
|
|
121
137
|
- url: /person-contact-type
|
|
122
138
|
method: POST
|
|
123
139
|
relations: *a8
|
|
@@ -136,6 +152,8 @@
|
|
|
136
152
|
role:
|
|
137
153
|
- where:
|
|
138
154
|
slug: admin
|
|
155
|
+
- where:
|
|
156
|
+
slug: admin-access
|
|
139
157
|
- url: /person-address-type
|
|
140
158
|
method: POST
|
|
141
159
|
relations: *a9
|
|
@@ -154,6 +172,8 @@
|
|
|
154
172
|
role:
|
|
155
173
|
- where:
|
|
156
174
|
slug: admin
|
|
175
|
+
- where:
|
|
176
|
+
slug: admin-access
|
|
157
177
|
- url: /person-relation-type
|
|
158
178
|
method: POST
|
|
159
179
|
relations: *a11
|
|
@@ -172,6 +192,8 @@
|
|
|
172
192
|
role:
|
|
173
193
|
- where:
|
|
174
194
|
slug: admin
|
|
195
|
+
- where:
|
|
196
|
+
slug: admin-access
|
|
175
197
|
- url: /person/:personId/person-relation
|
|
176
198
|
method: POST
|
|
177
199
|
relations: *a12
|
|
@@ -190,6 +212,8 @@
|
|
|
190
212
|
role:
|
|
191
213
|
- where:
|
|
192
214
|
slug: admin
|
|
215
|
+
- where:
|
|
216
|
+
slug: admin-access
|
|
193
217
|
- url: /person/:personId/person-individual
|
|
194
218
|
method: POST
|
|
195
219
|
relations: *a13
|
|
@@ -202,6 +226,8 @@
|
|
|
202
226
|
role:
|
|
203
227
|
- where:
|
|
204
228
|
slug: admin
|
|
229
|
+
- where:
|
|
230
|
+
slug: admin-access
|
|
205
231
|
- url: /person/:personId/person-company
|
|
206
232
|
method: POST
|
|
207
233
|
relations: *a14
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
12
|
"@hed-hog/api-prisma": "0.0.4",
|
|
13
13
|
"@hed-hog/api-mail": "0.0.7",
|
|
14
|
-
"@hed-hog/core": "0.0.
|
|
15
|
-
"@hed-hog/api-pagination": "0.0.4",
|
|
14
|
+
"@hed-hog/core": "0.0.102",
|
|
16
15
|
"@hed-hog/api-locale": "0.0.10",
|
|
17
|
-
"@hed-hog/api": "0.0.3"
|
|
16
|
+
"@hed-hog/api": "0.0.3",
|
|
17
|
+
"@hed-hog/api-pagination": "0.0.4"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
3
|
|
|
3
4
|
export class CreateDTO {
|
|
4
|
-
@IsNumber()
|
|
5
|
+
@IsNumber({}, { message: (args) => getLocaleText('validation.numberRequired', args.value) })
|
|
5
6
|
address_type_id: number;
|
|
6
7
|
|
|
7
|
-
@IsString()
|
|
8
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
8
9
|
country_code: string;
|
|
9
10
|
|
|
10
|
-
@IsString()
|
|
11
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
11
12
|
state: string;
|
|
12
13
|
|
|
13
|
-
@IsString()
|
|
14
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
14
15
|
city: string;
|
|
15
16
|
|
|
16
|
-
@IsString()
|
|
17
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
17
18
|
postal_code: string;
|
|
18
19
|
|
|
19
|
-
@IsString()
|
|
20
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
20
21
|
line1: string;
|
|
21
22
|
|
|
22
23
|
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
24
25
|
line2?: string;
|
|
25
26
|
|
|
26
27
|
@IsOptional()
|
|
27
|
-
@IsBoolean()
|
|
28
|
+
@IsBoolean({ message: (args) => getLocaleText('validation.booleanRequired', args.value) })
|
|
28
29
|
is_primary?: boolean;
|
|
29
30
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
3
|
|
|
3
4
|
export class CreateDTO {
|
|
4
|
-
@IsNumber()
|
|
5
|
+
@IsNumber({}, { message: (args) => getLocaleText('validation.numberRequired', args.value) })
|
|
5
6
|
contact_type_id: number;
|
|
6
7
|
|
|
7
8
|
@IsOptional()
|
|
8
|
-
@IsBoolean()
|
|
9
|
+
@IsBoolean({ message: (args) => getLocaleText('validation.booleanRequired', args.value) })
|
|
9
10
|
is_primary?: boolean;
|
|
10
11
|
|
|
11
|
-
@IsString()
|
|
12
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
12
13
|
value: string;
|
|
13
14
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { IsNumber, IsString } from 'class-validator';
|
|
2
3
|
|
|
3
4
|
export class CreateDTO {
|
|
4
|
-
@IsNumber()
|
|
5
|
+
@IsNumber({}, { message: (args) => getLocaleText('validation.numberRequired', args.value) })
|
|
5
6
|
document_type_id: number;
|
|
6
7
|
|
|
7
|
-
@IsString()
|
|
8
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
8
9
|
value: string;
|
|
9
10
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { Type } from 'class-transformer';
|
|
2
3
|
import { IsDate, IsNotEmpty, IsString } from 'class-validator';
|
|
3
4
|
|
|
4
5
|
export class CreateDTO {
|
|
5
|
-
@IsNotEmpty()
|
|
6
|
-
@IsDate()
|
|
6
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.fieldRequired', args.value) })
|
|
7
|
+
@IsDate({ message: (args) => getLocaleText('validation.dateInvalid', args.value) })
|
|
7
8
|
@Type(() => Date)
|
|
8
9
|
foundation_date: Date;
|
|
9
10
|
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
@IsString()
|
|
11
|
+
@IsNotEmpty({ message: (args) => getLocaleText('validation.fieldRequired', args.value) })
|
|
12
|
+
@IsString({ message: (args) => getLocaleText('validation.stringRequired', args.value) })
|
|
12
13
|
legal_nature: string;
|
|
13
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { Type } from 'class-transformer';
|
|
2
3
|
import { IsDate, IsEnum, IsOptional } from 'class-validator';
|
|
3
4
|
|
|
@@ -9,11 +10,11 @@ export enum Gender {
|
|
|
9
10
|
|
|
10
11
|
export class CreateDTO {
|
|
11
12
|
@IsOptional()
|
|
12
|
-
@IsDate()
|
|
13
|
+
@IsDate({ message: (args) => getLocaleText('validation.dateInvalid', args.value) })
|
|
13
14
|
@Type(() => Date)
|
|
14
15
|
birth_date?: Date;
|
|
15
16
|
|
|
16
17
|
@IsOptional()
|
|
17
|
-
@IsEnum(Gender)
|
|
18
|
+
@IsEnum(Gender, { message: (args) => getLocaleText('validation.genderInvalid', args.value) })
|
|
18
19
|
gender?: Gender;
|
|
19
20
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { getLocaleText } from '@hed-hog/api-locale';
|
|
1
2
|
import { IsNumber } from 'class-validator';
|
|
2
3
|
|
|
3
4
|
export class CreateDTO {
|
|
4
|
-
@IsNumber()
|
|
5
|
+
@IsNumber({}, { message: (args) => getLocaleText('validation.numberRequired', args.value) })
|
|
5
6
|
related_person_id: number;
|
|
6
7
|
|
|
7
|
-
@IsNumber()
|
|
8
|
+
@IsNumber({}, { message: (args) => getLocaleText('validation.numberRequired', args.value) })
|
|
8
9
|
relation_type_id: number;
|
|
9
10
|
}
|