@cv-tec/validations 0.0.10 → 0.1.0
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/custom-class-transform/map-transform.d.ts +2 -0
- package/dist/custom-class-transform/map-transform.js +12 -0
- package/dist/custom-class-transform/map-transform.js.map +1 -0
- package/dist/custom-class-validators/is-record-key-locale.d.ts +6 -0
- package/dist/custom-class-validators/is-record-key-locale.js +37 -0
- package/dist/custom-class-validators/is-record-key-locale.js.map +1 -0
- package/dist/custom-class-validators/is-record-key-uuid.d.ts +6 -0
- package/dist/custom-class-validators/is-record-key-uuid.js +37 -0
- package/dist/custom-class-validators/is-record-key-uuid.js.map +1 -0
- package/dist/entities/cv-info/cv-info.d.ts +7 -4
- package/dist/entities/cv-info/cv-info.js +24 -8
- package/dist/entities/cv-info/cv-info.js.map +1 -1
- package/dist/entities/cv-info/cv-info.mocks.js +5 -4
- package/dist/entities/cv-info/cv-info.mocks.js.map +1 -1
- package/dist/entities/cv-info/index.d.ts +8 -1
- package/dist/entities/cv-info/index.js +22 -1
- package/dist/entities/cv-info/index.js.map +1 -1
- package/dist/entities/cv-info/language.d.ts +1 -0
- package/dist/entities/cv-info/language.js +3 -0
- package/dist/entities/cv-info/language.js.map +1 -1
- package/dist/entities/cv-info/skills.d.ts +3 -1
- package/dist/entities/cv-info/skills.js +7 -5
- package/dist/entities/cv-info/skills.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +21 -13
- package/dist/index.js.map +1 -1
- package/dist/type-validation/common/address.d.ts +11 -0
- package/dist/type-validation/common/address.js +49 -0
- package/dist/type-validation/common/address.js.map +1 -0
- package/dist/type-validation/common/category.d.ts +6 -0
- package/dist/type-validation/common/category.js +26 -0
- package/dist/type-validation/common/category.js.map +1 -0
- package/dist/type-validation/common/coordinates.d.ts +16 -0
- package/dist/type-validation/common/coordinates.js +71 -0
- package/dist/type-validation/common/coordinates.js.map +1 -0
- package/dist/type-validation/common/experience.d.ts +14 -0
- package/dist/type-validation/common/experience.js +81 -0
- package/dist/type-validation/common/experience.js.map +1 -0
- package/dist/type-validation/common/formation.d.ts +13 -0
- package/dist/type-validation/common/formation.js +57 -0
- package/dist/type-validation/common/formation.js.map +1 -0
- package/dist/type-validation/common/hobby.d.ts +8 -0
- package/dist/type-validation/common/hobby.js +33 -0
- package/dist/type-validation/common/hobby.js.map +1 -0
- package/dist/type-validation/common/index.d.ts +4 -0
- package/dist/type-validation/common/index.js +12 -0
- package/dist/type-validation/common/index.js.map +1 -0
- package/dist/type-validation/common/interval-date.d.ts +8 -0
- package/dist/type-validation/common/interval-date.js +34 -0
- package/dist/type-validation/common/interval-date.js.map +1 -0
- package/dist/type-validation/common/language.d.ts +7 -0
- package/dist/type-validation/common/language.js +29 -0
- package/dist/type-validation/common/language.js.map +1 -0
- package/dist/type-validation/common/mission.d.ts +13 -0
- package/dist/type-validation/common/mission.js +73 -0
- package/dist/type-validation/common/mission.js.map +1 -0
- package/dist/type-validation/common/profile.d.ts +12 -0
- package/dist/type-validation/common/profile.js +52 -0
- package/dist/type-validation/common/profile.js.map +1 -0
- package/dist/type-validation/common/reference.d.ts +11 -0
- package/dist/type-validation/common/reference.js +48 -0
- package/dist/type-validation/common/reference.js.map +1 -0
- package/dist/type-validation/common/skill.d.ts +15 -0
- package/dist/type-validation/common/skill.js +39 -0
- package/dist/type-validation/common/skill.js.map +1 -0
- package/dist/type-validation/dto/auth.d.ts +18 -0
- package/dist/type-validation/dto/auth.js +72 -0
- package/dist/type-validation/dto/auth.js.map +1 -0
- package/dist/type-validation/dto/cv-info/cv-info-dto.d.ts +34 -0
- package/dist/type-validation/dto/cv-info/cv-info-dto.js +95 -0
- package/dist/type-validation/dto/cv-info/cv-info-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/cv-info.d.ts +34 -0
- package/dist/type-validation/dto/cv-info/cv-info.js +95 -0
- package/dist/type-validation/dto/cv-info/cv-info.js.map +1 -0
- package/dist/type-validation/dto/cv-info/experience-dto.d.ts +10 -0
- package/dist/type-validation/dto/cv-info/experience-dto.js +36 -0
- package/dist/type-validation/dto/cv-info/experience-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/formation-dto.d.ts +8 -0
- package/dist/type-validation/dto/cv-info/formation-dto.js +26 -0
- package/dist/type-validation/dto/cv-info/formation-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/hobby-dto.d.ts +8 -0
- package/dist/type-validation/dto/cv-info/hobby-dto.js +26 -0
- package/dist/type-validation/dto/cv-info/hobby-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/index.d.ts +7 -0
- package/dist/type-validation/dto/cv-info/index.js +24 -0
- package/dist/type-validation/dto/cv-info/index.js.map +1 -0
- package/dist/type-validation/dto/cv-info/language-dto.d.ts +8 -0
- package/dist/type-validation/dto/cv-info/language-dto.js +28 -0
- package/dist/type-validation/dto/cv-info/language-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/mission-dto.d.ts +8 -0
- package/dist/type-validation/dto/cv-info/mission-dto.js +26 -0
- package/dist/type-validation/dto/cv-info/mission-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/reference-dto.d.ts +8 -0
- package/dist/type-validation/dto/cv-info/reference-dto.js +26 -0
- package/dist/type-validation/dto/cv-info/reference-dto.js.map +1 -0
- package/dist/type-validation/dto/cv-info/skills-dto.d.ts +41 -0
- package/dist/type-validation/dto/cv-info/skills-dto.js +84 -0
- package/dist/type-validation/dto/cv-info/skills-dto.js.map +1 -0
- package/dist/type-validation/dto/index.d.ts +2 -0
- package/dist/type-validation/dto/index.js +19 -0
- package/dist/type-validation/dto/index.js.map +1 -0
- package/dist/type-validation/entities/cv-info/cv-info.d.ts +24 -0
- package/dist/type-validation/entities/cv-info/cv-info.js +94 -0
- package/dist/type-validation/entities/cv-info/cv-info.js.map +1 -0
- package/dist/type-validation/entities/cv-info/experience.d.ts +9 -0
- package/dist/type-validation/entities/cv-info/experience.js +39 -0
- package/dist/type-validation/entities/cv-info/experience.js.map +1 -0
- package/dist/type-validation/entities/cv-info/formation.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/formation.js +27 -0
- package/dist/type-validation/entities/cv-info/formation.js.map +1 -0
- package/dist/type-validation/entities/cv-info/hobby.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/hobby.js +27 -0
- package/dist/type-validation/entities/cv-info/hobby.js.map +1 -0
- package/dist/type-validation/entities/cv-info/index.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/index.js +20 -0
- package/dist/type-validation/entities/cv-info/index.js.map +1 -0
- package/dist/type-validation/entities/cv-info/language.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/language.js +27 -0
- package/dist/type-validation/entities/cv-info/language.js.map +1 -0
- package/dist/type-validation/entities/cv-info/mission.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/mission.js +27 -0
- package/dist/type-validation/entities/cv-info/mission.js.map +1 -0
- package/dist/type-validation/entities/cv-info/reference.d.ts +7 -0
- package/dist/type-validation/entities/cv-info/reference.js +27 -0
- package/dist/type-validation/entities/cv-info/reference.js.map +1 -0
- package/dist/type-validation/entities/cv-info/skills.d.ts +20 -0
- package/dist/type-validation/entities/cv-info/skills.js +68 -0
- package/dist/type-validation/entities/cv-info/skills.js.map +1 -0
- package/dist/type-validation/entities/cv-tec-user.d.ts +10 -0
- package/dist/type-validation/entities/cv-tec-user.js +46 -0
- package/dist/type-validation/entities/cv-tec-user.js.map +1 -0
- package/dist/type-validation/entities/index.d.ts +2 -0
- package/dist/type-validation/entities/index.js +19 -0
- package/dist/type-validation/entities/index.js.map +1 -0
- package/dist/type-validation/index.d.ts +3 -0
- package/dist/type-validation/index.js +20 -0
- package/dist/type-validation/index.js.map +1 -0
- package/dist/type-validation/mocks/index.d.ts +17 -0
- package/dist/type-validation/mocks/index.js +172 -0
- package/dist/type-validation/mocks/index.js.map +1 -0
- package/dist/type-validation/root-class-validation.d.ts +24 -0
- package/dist/type-validation/root-class-validation.js +61 -0
- package/dist/type-validation/root-class-validation.js.map +1 -0
- package/dist/utils/array-object.mapper.d.ts +23 -0
- package/dist/utils/array-object.mapper.js +124 -0
- package/dist/utils/array-object.mapper.js.map +1 -0
- package/dist/utils/array.mapper.d.ts +0 -0
- package/dist/utils/array.mapper.js +2 -0
- package/dist/utils/array.mapper.js.map +1 -0
- package/dist/utils/cv-info.mapper.d.ts +0 -0
- package/dist/utils/cv-info.mapper.js +2 -0
- package/dist/utils/cv-info.mapper.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
import { IAddress } from '../../type-validation/common/address';
|
4
|
+
export type ICoordinates = Omit<Coordinates, keyof RootClassValidation>;
|
5
|
+
export declare class Coordinates extends RootClassValidation {
|
6
|
+
address: IAddress;
|
7
|
+
phone?: string;
|
8
|
+
email: string;
|
9
|
+
linkedin?: string;
|
10
|
+
github?: string;
|
11
|
+
additional_1?: string;
|
12
|
+
additional_2?: string;
|
13
|
+
additional_3?: string;
|
14
|
+
additional_4?: string;
|
15
|
+
constructor(params: ICoordinates);
|
16
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Coordinates = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
16
|
+
const is_valid_email_domain_1 = require("../../custom-class-validators/is-valid-email-domain");
|
17
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
18
|
+
const address_1 = require("../../type-validation/common/address");
|
19
|
+
class Coordinates extends root_class_validation_1.RootClassValidation {
|
20
|
+
constructor(params) {
|
21
|
+
super(params);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
exports.Coordinates = Coordinates;
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.ValidateNested)(),
|
27
|
+
(0, class_validator_1.IsObject)(),
|
28
|
+
(0, class_transformer_1.Type)(() => address_1.Address),
|
29
|
+
__metadata("design:type", Object)
|
30
|
+
], Coordinates.prototype, "address", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
33
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], Coordinates.prototype, "phone", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, class_validator_1.IsEmail)({ allow_ip_domain: false }),
|
38
|
+
(0, is_valid_email_domain_1.IsValidEmailDomain)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], Coordinates.prototype, "email", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
43
|
+
(0, class_validator_1.IsUrl)({ protocols: ['https'] }),
|
44
|
+
__metadata("design:type", String)
|
45
|
+
], Coordinates.prototype, "linkedin", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
48
|
+
(0, class_validator_1.IsUrl)({ protocols: ['https'] }),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], Coordinates.prototype, "github", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], Coordinates.prototype, "additional_1", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
58
|
+
(0, class_validator_1.IsNotEmpty)(),
|
59
|
+
__metadata("design:type", String)
|
60
|
+
], Coordinates.prototype, "additional_2", void 0);
|
61
|
+
__decorate([
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
63
|
+
(0, class_validator_1.IsNotEmpty)(),
|
64
|
+
__metadata("design:type", String)
|
65
|
+
], Coordinates.prototype, "additional_3", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
68
|
+
(0, class_validator_1.IsNotEmpty)(),
|
69
|
+
__metadata("design:type", String)
|
70
|
+
], Coordinates.prototype, "additional_4", void 0);
|
71
|
+
//# sourceMappingURL=coordinates.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"coordinates.js","sourceRoot":"","sources":["../../../src/type-validation/common/coordinates.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,qDAQwB;AAExB,yDAAwC;AACxC,2FAAoF;AACpF,mFAA6E;AAC7E,8DAAoE;AAIpE,MAAa,WAAY,SAAQ,2CAAmB;IAsClD,YAAY,MAAoB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CACF;AAzCD,kCAyCC;AArCC;IAHC,IAAA,gCAAc,GAAE;IAChB,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;;4CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAa,GAAE;;0CACF;AAId;IAFC,IAAA,yBAAO,EAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;IACnC,IAAA,0CAAkB,GAAE;;0CACP;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;6CACf;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;2CACjB;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACQ"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
2
|
+
import { IIntervalDate } from '../../type-validation/common/interval-date';
|
3
|
+
export type IExperience = Omit<Experience, keyof RootClassValidation>;
|
4
|
+
export declare class Experience extends RootClassValidation {
|
5
|
+
constructor(params?: IExperience);
|
6
|
+
company: string;
|
7
|
+
location: string;
|
8
|
+
intervalDate: IIntervalDate;
|
9
|
+
context?: string;
|
10
|
+
position: string;
|
11
|
+
projectName?: string;
|
12
|
+
skillsUsed?: string[];
|
13
|
+
tasks?: string[];
|
14
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Experience = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
15
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
16
|
+
const interval_date_1 = require("../../type-validation/common/interval-date");
|
17
|
+
class Experience extends root_class_validation_1.RootClassValidation {
|
18
|
+
constructor(params) {
|
19
|
+
super(params);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.Experience = Experience;
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.MinLength)(5),
|
25
|
+
(0, class_validator_1.MaxLength)(25),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], Experience.prototype, "company", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.MinLength)(5),
|
30
|
+
(0, class_validator_1.MaxLength)(50),
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], Experience.prototype, "location", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsObject)(),
|
36
|
+
(0, class_transformer_1.Type)(() => interval_date_1.IntervalDate),
|
37
|
+
(0, class_validator_1.ValidateNested)(),
|
38
|
+
__metadata("design:type", Object)
|
39
|
+
], Experience.prototype, "intervalDate", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.MinLength)(20),
|
42
|
+
(0, class_validator_1.MaxLength)(200),
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
44
|
+
__metadata("design:type", String)
|
45
|
+
], Experience.prototype, "context", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, class_validator_1.MinLength)(5),
|
48
|
+
(0, class_validator_1.MaxLength)(50),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], Experience.prototype, "position", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, class_validator_1.MinLength)(1),
|
53
|
+
(0, class_validator_1.MaxLength)(50),
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
55
|
+
__metadata("design:type", String)
|
56
|
+
], Experience.prototype, "projectName", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, class_validator_1.IsArray)(),
|
59
|
+
(0, class_validator_1.ArrayMaxSize)(20),
|
60
|
+
(0, class_validator_1.MinLength)(1, {
|
61
|
+
each: true,
|
62
|
+
}),
|
63
|
+
(0, class_validator_1.MaxLength)(60, {
|
64
|
+
each: true,
|
65
|
+
}),
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
67
|
+
__metadata("design:type", Array)
|
68
|
+
], Experience.prototype, "skillsUsed", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_validator_1.IsArray)(),
|
71
|
+
(0, class_validator_1.ArrayMaxSize)(10),
|
72
|
+
(0, class_validator_1.MinLength)(10, {
|
73
|
+
each: true,
|
74
|
+
}),
|
75
|
+
(0, class_validator_1.MaxLength)(60, {
|
76
|
+
each: true,
|
77
|
+
}),
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
79
|
+
__metadata("design:type", Array)
|
80
|
+
], Experience.prototype, "tasks", void 0);
|
81
|
+
//# sourceMappingURL=experience.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"experience.js","sourceRoot":"","sources":["../../../src/type-validation/common/experience.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQwB;AACxB,yDAAwC;AACxC,mFAA6E;AAC7E,0EAAoF;AAIpF,MAAa,UAAW,SAAQ,2CAAmB;IACjD,YAAY,MAAoB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAmDF;AAtDD,gCAsDC;AA/CC;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;2CACE;AAKhB;IAHC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;4CACI;AAKjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;;gDACW;AAK5B;IAHC,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,4BAAU,GAAE;;2CACG;AAIhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACG;AAKjB;IAHC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;+CACO;AAWpB;IATC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,2BAAS,EAAC,CAAC,EAAE;QACZ,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,2BAAS,EAAC,EAAE,EAAE;QACb,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,4BAAU,GAAE;;8CACQ;AAWrB;IATC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,2BAAS,EAAC,EAAE,EAAE;QACb,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,2BAAS,EAAC,EAAE,EAAE;QACb,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,4BAAU,GAAE;;yCACG"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
import { IIntervalDate } from '../../type-validation/common/interval-date';
|
4
|
+
export type IFormation = Omit<Formation, keyof RootClassValidation>;
|
5
|
+
export declare class Formation extends RootClassValidation {
|
6
|
+
constructor(param?: IFormation);
|
7
|
+
intervalDate: IIntervalDate;
|
8
|
+
establishment: string;
|
9
|
+
domain: string;
|
10
|
+
certification: string;
|
11
|
+
location: string;
|
12
|
+
description?: string;
|
13
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Formation = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
16
|
+
const class_validator_1 = require("class-validator");
|
17
|
+
const interval_date_1 = require("../../type-validation/common/interval-date");
|
18
|
+
class Formation extends root_class_validation_1.RootClassValidation {
|
19
|
+
constructor(param) {
|
20
|
+
super(param);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.Formation = Formation;
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsObject)(),
|
26
|
+
(0, class_transformer_1.Type)(() => interval_date_1.IntervalDate),
|
27
|
+
(0, class_validator_1.ValidateNested)(),
|
28
|
+
__metadata("design:type", Object)
|
29
|
+
], Formation.prototype, "intervalDate", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, class_validator_1.MinLength)(2),
|
32
|
+
(0, class_validator_1.MaxLength)(25),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], Formation.prototype, "establishment", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, class_validator_1.MinLength)(5),
|
37
|
+
(0, class_validator_1.MaxLength)(50),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], Formation.prototype, "domain", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.MinLength)(5),
|
42
|
+
(0, class_validator_1.MaxLength)(50),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], Formation.prototype, "certification", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_validator_1.MinLength)(2),
|
47
|
+
(0, class_validator_1.MaxLength)(50),
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], Formation.prototype, "location", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, class_validator_1.MinLength)(10),
|
53
|
+
(0, class_validator_1.MaxLength)(200),
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
55
|
+
__metadata("design:type", String)
|
56
|
+
], Formation.prototype, "description", void 0);
|
57
|
+
//# sourceMappingURL=formation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"formation.js","sourceRoot":"","sources":["../../../src/type-validation/common/formation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,mFAA6E;AAC7E,yDAAwC;AACxC,qDAMwB;AAExB,0EAAoF;AAIpF,MAAa,SAAU,SAAQ,2CAAmB;IAChD,YAAY,KAAkB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CA4BF;AA/BD,8BA+BC;AAvBC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;;+CACW;AAI5B;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;gDACQ;AAItB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;yCACC;AAIf;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;gDACQ;AAKtB;IAHC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;2CACI;AAKjB;IAHC,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,4BAAU,GAAE;;8CACO"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
export type IHobby = Omit<Hobby, keyof RootClassValidation>;
|
4
|
+
export declare class Hobby extends RootClassValidation {
|
5
|
+
constructor(params: IHobby);
|
6
|
+
name: string;
|
7
|
+
desciption?: string;
|
8
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Hobby = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
class Hobby extends root_class_validation_1.RootClassValidation {
|
17
|
+
constructor(params) {
|
18
|
+
super(params);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.Hobby = Hobby;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.MinLength)(1),
|
24
|
+
(0, class_validator_1.MaxLength)(25),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], Hobby.prototype, "name", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
30
|
+
(0, class_validator_1.MaxLength)(200),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], Hobby.prototype, "desciption", void 0);
|
33
|
+
//# sourceMappingURL=hobby.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hobby.js","sourceRoot":"","sources":["../../../src/type-validation/common/hobby.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,mFAA6E;AAC7E,qDAA8E;AAI9E,MAAa,KAAM,SAAQ,2CAAmB;IAC5C,YAAY,MAAc;QACxB,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAUF;AAbD,sBAaC;AANC;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;mCACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;yCACI"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Coordinates = exports.Profile = exports.IntervalDate = exports.Address = void 0;
|
4
|
+
var address_1 = require("./address");
|
5
|
+
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_1.Address; } });
|
6
|
+
var interval_date_1 = require("./interval-date");
|
7
|
+
Object.defineProperty(exports, "IntervalDate", { enumerable: true, get: function () { return interval_date_1.IntervalDate; } });
|
8
|
+
var profile_1 = require("./profile");
|
9
|
+
Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return profile_1.Profile; } });
|
10
|
+
var coordinates_1 = require("./coordinates");
|
11
|
+
Object.defineProperty(exports, "Coordinates", { enumerable: true, get: function () { return coordinates_1.Coordinates; } });
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type-validation/common/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6C;AAApC,kGAAA,OAAO,OAAA;AAChB,iDAA6D;AAArC,6GAAA,YAAY,OAAA;AACpC,qCAA6C;AAA1B,kGAAA,OAAO,OAAA;AAC1B,6CAAyD;AAAhD,0GAAA,WAAW,OAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
export type IIntervalDate = Omit<IntervalDate, keyof RootClassValidation>;
|
4
|
+
export declare class IntervalDate extends RootClassValidation {
|
5
|
+
constructor(params: IIntervalDate);
|
6
|
+
start: string;
|
7
|
+
end?: string;
|
8
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.IntervalDate = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
16
|
+
const class_validator_1 = require("class-validator");
|
17
|
+
class IntervalDate extends root_class_validation_1.RootClassValidation {
|
18
|
+
constructor(params) {
|
19
|
+
super(params);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.IntervalDate = IntervalDate;
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.IsDate)(),
|
25
|
+
(0, class_transformer_1.Type)(() => Date),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], IntervalDate.prototype, "start", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.IsDate)(),
|
30
|
+
(0, class_transformer_1.Type)(() => Date),
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], IntervalDate.prototype, "end", void 0);
|
34
|
+
//# sourceMappingURL=interval-date.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interval-date.js","sourceRoot":"","sources":["../../../src/type-validation/common/interval-date.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,mFAA6E;AAC7E,yDAAwC;AACxC,qDAAoD;AAIpD,MAAa,YAAa,SAAQ,2CAAmB;IACnD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CASF;AAZD,oCAYC;AANC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;2CACH;AAKd;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,4BAAU,GAAE;;yCACD"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
export type ILanguage = Omit<Language, keyof RootClassValidation>;
|
4
|
+
export declare class Language extends RootClassValidation {
|
5
|
+
constructor(param?: ILanguage);
|
6
|
+
level?: number;
|
7
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Language = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
class Language extends root_class_validation_1.RootClassValidation {
|
17
|
+
constructor(param) {
|
18
|
+
super(param);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.Language = Language;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.Min)(1),
|
24
|
+
(0, class_validator_1.Max)(100),
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
27
|
+
__metadata("design:type", Number)
|
28
|
+
], Language.prototype, "level", void 0);
|
29
|
+
//# sourceMappingURL=language.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../../src/type-validation/common/language.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,mFAA6E;AAC7E,qDAAgE;AAIhE,MAAa,QAAS,SAAQ,2CAAmB;IAC/C,YAAY,KAAiB;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAOF;AAVD,4BAUC;AADC;IAJC,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
export type IMission = Omit<Mission, keyof RootClassValidation>;
|
4
|
+
export declare class Mission extends RootClassValidation {
|
5
|
+
constructor(param: IMission);
|
6
|
+
client: string;
|
7
|
+
context?: string;
|
8
|
+
location?: string;
|
9
|
+
position: string;
|
10
|
+
project: string;
|
11
|
+
tasks?: string[];
|
12
|
+
skillsUsed?: string[];
|
13
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Mission = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
class Mission extends root_class_validation_1.RootClassValidation {
|
17
|
+
constructor(param) {
|
18
|
+
super(param);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.Mission = Mission;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.MinLength)(1),
|
24
|
+
(0, class_validator_1.MaxLength)(25),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], Mission.prototype, "client", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.MinLength)(5),
|
29
|
+
(0, class_validator_1.MaxLength)(200),
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], Mission.prototype, "context", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.MinLength)(2),
|
35
|
+
(0, class_validator_1.MaxLength)(50),
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], Mission.prototype, "location", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, class_validator_1.MinLength)(2),
|
41
|
+
(0, class_validator_1.MaxLength)(50),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], Mission.prototype, "position", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, class_validator_1.MinLength)(5),
|
46
|
+
(0, class_validator_1.MaxLength)(50),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], Mission.prototype, "project", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, class_validator_1.IsArray)(),
|
51
|
+
(0, class_validator_1.ArrayMaxSize)(20),
|
52
|
+
(0, class_validator_1.MinLength)(1, {
|
53
|
+
each: true,
|
54
|
+
}),
|
55
|
+
(0, class_validator_1.MaxLength)(140, {
|
56
|
+
each: true,
|
57
|
+
}),
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
59
|
+
__metadata("design:type", Array)
|
60
|
+
], Mission.prototype, "tasks", void 0);
|
61
|
+
__decorate([
|
62
|
+
(0, class_validator_1.IsArray)(),
|
63
|
+
(0, class_validator_1.ArrayMaxSize)(20),
|
64
|
+
(0, class_validator_1.MinLength)(1, {
|
65
|
+
each: true,
|
66
|
+
}),
|
67
|
+
(0, class_validator_1.MaxLength)(60, {
|
68
|
+
each: true,
|
69
|
+
}),
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
71
|
+
__metadata("design:type", Array)
|
72
|
+
], Mission.prototype, "skillsUsed", void 0);
|
73
|
+
//# sourceMappingURL=mission.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mission.js","sourceRoot":"","sources":["../../../src/type-validation/common/mission.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,mFAA6E;AAC7E,qDAAyF;AAIzF,MAAa,OAAQ,SAAQ,2CAAmB;IAC9C,YAAY,KAAe;QACzB,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CA6CF;AAhDD,0BAgDC;AAzCC;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;uCACC;AAKf;IAHC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,4BAAU,GAAE;;wCACG;AAKhB;IAHC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;yCACI;AAIjB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;yCACG;AAIjB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;wCACE;AAWhB;IATC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,2BAAS,EAAC,CAAC,EAAE;QACZ,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,4BAAU,GAAE;;sCACG;AAWhB;IATC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,2BAAS,EAAC,CAAC,EAAE;QACZ,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,2BAAS,EAAC,EAAE,EAAE;QACb,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,4BAAU,GAAE;;2CACQ"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
import { ICoordinates } from '../../type-validation/common/coordinates';
|
4
|
+
export type IProfile = Omit<Profile, keyof RootClassValidation>;
|
5
|
+
export declare class Profile extends RootClassValidation {
|
6
|
+
constructor(params: IProfile);
|
7
|
+
firstname: string;
|
8
|
+
lastname: string;
|
9
|
+
profileName: string;
|
10
|
+
about?: string;
|
11
|
+
coordinates: ICoordinates;
|
12
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.Profile = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
const root_class_validation_1 = require("../../type-validation/root-class-validation");
|
17
|
+
const coordinates_1 = require("../../type-validation/common/coordinates");
|
18
|
+
class Profile extends root_class_validation_1.RootClassValidation {
|
19
|
+
constructor(params) {
|
20
|
+
super(params);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.Profile = Profile;
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.MinLength)(2),
|
26
|
+
(0, class_validator_1.MaxLength)(20),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], Profile.prototype, "firstname", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.MinLength)(2),
|
31
|
+
(0, class_validator_1.MaxLength)(20),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], Profile.prototype, "lastname", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
36
|
+
(0, class_validator_1.MinLength)(2),
|
37
|
+
(0, class_validator_1.MaxLength)(35),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], Profile.prototype, "profileName", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
42
|
+
(0, class_validator_1.MinLength)(20),
|
43
|
+
(0, class_validator_1.MaxLength)(200),
|
44
|
+
__metadata("design:type", String)
|
45
|
+
], Profile.prototype, "about", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, class_validator_1.IsObject)(),
|
48
|
+
(0, class_transformer_1.Type)(() => coordinates_1.Coordinates),
|
49
|
+
(0, class_validator_1.ValidateNested)(),
|
50
|
+
__metadata("design:type", Object)
|
51
|
+
], Profile.prototype, "coordinates", void 0);
|
52
|
+
//# sourceMappingURL=profile.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/type-validation/common/profile.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,yDAAwC;AACxC,qDAMwB;AAExB,mFAA6E;AAC7E,sEAAgF;AAIhF,MAAa,OAAQ,SAAQ,2CAAmB;IAC9C,YAAY,MAAgB;QAC1B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAwBF;AA3BD,0BA2BC;AApBC;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;0CACI;AAIlB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;yCACG;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,2BAAS,EAAC,GAAG,CAAC;;sCACD;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAW,CAAC;IACvB,IAAA,gCAAc,GAAE;;4CACS"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../type-validation/root-class-validation';
|
3
|
+
export type IReference = Omit<Reference, keyof RootClassValidation>;
|
4
|
+
export declare class Reference extends RootClassValidation {
|
5
|
+
constructor(param?: IReference);
|
6
|
+
name: string;
|
7
|
+
position: string;
|
8
|
+
phone?: string;
|
9
|
+
email: string;
|
10
|
+
linkedIn?: string;
|
11
|
+
}
|