@cv-tec/validations 0.0.11 → 0.1.1
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 +3 -0
- package/dist/custom-class-transform/map-transform.js +29 -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 +99 -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 +40 -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 +70 -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 +25 -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,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./cv-info-dto"), exports);
|
18
|
+
__exportStar(require("./experience-dto"), exports);
|
19
|
+
__exportStar(require("./language-dto"), exports);
|
20
|
+
__exportStar(require("./formation-dto"), exports);
|
21
|
+
__exportStar(require("./hobby-dto"), exports);
|
22
|
+
__exportStar(require("./reference-dto"), exports);
|
23
|
+
__exportStar(require("./skills-dto"), exports);
|
24
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/type-validation/dto/cv-info/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC;AAChC,iDAA8B;AAC9B,kDAA+B;AAC/B,8CAA2B;AAC3B,kDAA+B;AAC/B,+CAA4B"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
import { Language } from '../../../type-validation/common/language';
|
4
|
+
export type ILanguageDto = Omit<LanguageDto, keyof RootClassValidation>;
|
5
|
+
export declare class LanguageDto extends Language {
|
6
|
+
constructor(param?: ILanguageDto);
|
7
|
+
$id: string;
|
8
|
+
}
|
@@ -0,0 +1,28 @@
|
|
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.LanguageDto = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
const language_1 = require("../../../type-validation/common/language");
|
16
|
+
class LanguageDto extends language_1.Language {
|
17
|
+
constructor(param) {
|
18
|
+
super(param);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.LanguageDto = LanguageDto;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsLocale)(),
|
24
|
+
(0, class_validator_1.MinLength)(2),
|
25
|
+
(0, class_validator_1.MaxLength)(3),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], LanguageDto.prototype, "$id", void 0);
|
28
|
+
//# sourceMappingURL=language-dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"language-dto.js","sourceRoot":"","sources":["../../../../src/type-validation/dto/cv-info/language-dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AAEzB,qDAAgE;AAChE,gEAA4D;AAI5D,MAAa,WAAY,SAAQ,mBAAQ;IACvC,YAAY,KAAoB;QAC9B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAKF;AARD,kCAQC;AADC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;;wCACD"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { Mission } from '../../../type-validation/common/mission';
|
3
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
4
|
+
export type IMissionDto = Omit<MissionDto, keyof RootClassValidation>;
|
5
|
+
export declare class MissionDto extends Mission {
|
6
|
+
constructor(param: IMissionDto);
|
7
|
+
$id: string;
|
8
|
+
}
|
@@ -0,0 +1,26 @@
|
|
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.MissionDto = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const mission_1 = require("../../../type-validation/common/mission");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
class MissionDto extends mission_1.Mission {
|
17
|
+
constructor(param) {
|
18
|
+
super(param);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.MissionDto = MissionDto;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsUUID)('4'),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], MissionDto.prototype, "$id", void 0);
|
26
|
+
//# sourceMappingURL=mission-dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mission-dto.js","sourceRoot":"","sources":["../../../../src/type-validation/dto/cv-info/mission-dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,8DAA0D;AAE1D,qDAAwC;AAIxC,MAAa,UAAW,SAAQ,iBAAO;IACrC,YAAY,KAAkB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAIF;AAPD,gCAOC;AADC;IADC,IAAA,wBAAM,EAAC,GAAG,CAAC;;uCACA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { Reference } from '../../../type-validation/common/reference';
|
3
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
4
|
+
export type IReferenceDto = Omit<ReferenceDto, keyof RootClassValidation>;
|
5
|
+
export declare class ReferenceDto extends Reference {
|
6
|
+
constructor(param: IReferenceDto);
|
7
|
+
$id: string;
|
8
|
+
}
|
@@ -0,0 +1,26 @@
|
|
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.ReferenceDto = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const reference_1 = require("../../../type-validation/common/reference");
|
15
|
+
const class_validator_1 = require("class-validator");
|
16
|
+
class ReferenceDto extends reference_1.Reference {
|
17
|
+
constructor(param) {
|
18
|
+
super(param);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.ReferenceDto = ReferenceDto;
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsUUID)('4'),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], ReferenceDto.prototype, "$id", void 0);
|
26
|
+
//# sourceMappingURL=reference-dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reference-dto.js","sourceRoot":"","sources":["../../../../src/type-validation/dto/cv-info/reference-dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,kEAA8D;AAE9D,qDAAwC;AAIxC,MAAa,YAAa,SAAQ,qBAAS;IACzC,YAAY,KAAoB;QAC9B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAGF;AAND,oCAMC;AADC;IADC,IAAA,wBAAM,EAAC,GAAG,CAAC;;yCACA"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { Category } from '../../../type-validation/common/category';
|
3
|
+
import { Skill } from '../../../type-validation/common/skill';
|
4
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
5
|
+
export declare const CATEGORIES_KEY = "$categories";
|
6
|
+
export declare const CATEGORIZED_ITEMS_KEY = "$list";
|
7
|
+
export declare const MULTI_VALUE_KEY = "$array";
|
8
|
+
/**
|
9
|
+
*
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
export type ISkillDto = Omit<SkillDto, keyof RootClassValidation>;
|
13
|
+
export declare class SkillDto extends Skill {
|
14
|
+
constructor(params: ISkillDto);
|
15
|
+
$id: string;
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
*
|
19
|
+
*
|
20
|
+
*/
|
21
|
+
export type ICategoryDto = Omit<CategoryDto, keyof RootClassValidation>;
|
22
|
+
export declare class CategoryDto extends Category {
|
23
|
+
constructor(params: ICategoryDto);
|
24
|
+
$id: string;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
export type ISkillsContainerDto = Omit<SkillsContainerDto, keyof RootClassValidation>;
|
31
|
+
export declare class SkillsContainerDto extends RootClassValidation {
|
32
|
+
constructor(params: ISkillsContainerDto);
|
33
|
+
/***
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
[CATEGORIES_KEY]?: ICategoryDto[];
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
[CATEGORIZED_ITEMS_KEY]?: ISkillDto[];
|
41
|
+
}
|
@@ -0,0 +1,84 @@
|
|
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
|
+
var _a, _b;
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
exports.SkillsContainerDto = exports.CategoryDto = exports.SkillDto = exports.MULTI_VALUE_KEY = exports.CATEGORIZED_ITEMS_KEY = exports.CATEGORIES_KEY = void 0;
|
14
|
+
require("reflect-metadata");
|
15
|
+
const cross_validation_1 = require("../../../custom-class-validators/cross-validation");
|
16
|
+
const category_1 = require("../../../type-validation/common/category");
|
17
|
+
const skill_1 = require("../../../type-validation/common/skill");
|
18
|
+
const root_class_validation_1 = require("../../../type-validation/root-class-validation");
|
19
|
+
const class_transformer_1 = require("class-transformer");
|
20
|
+
exports.CATEGORIES_KEY = '$categories';
|
21
|
+
exports.CATEGORIZED_ITEMS_KEY = '$list';
|
22
|
+
exports.MULTI_VALUE_KEY = '$array';
|
23
|
+
const class_validator_1 = require("class-validator");
|
24
|
+
class SkillDto extends skill_1.Skill {
|
25
|
+
constructor(params) {
|
26
|
+
super(params);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
exports.SkillDto = SkillDto;
|
30
|
+
__decorate([
|
31
|
+
(0, class_validator_1.IsUUID)('4'),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], SkillDto.prototype, "$id", void 0);
|
34
|
+
class CategoryDto extends category_1.Category {
|
35
|
+
constructor(params) {
|
36
|
+
super(params);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
exports.CategoryDto = CategoryDto;
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.IsUUID)('4'),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], CategoryDto.prototype, "$id", void 0);
|
44
|
+
class SkillsContainerDto extends root_class_validation_1.RootClassValidation {
|
45
|
+
constructor(params) {
|
46
|
+
super(params);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
exports.SkillsContainerDto = SkillsContainerDto;
|
50
|
+
_a = exports.CATEGORIES_KEY, _b = exports.CATEGORIZED_ITEMS_KEY;
|
51
|
+
__decorate([
|
52
|
+
(0, class_validator_1.IsArray)(),
|
53
|
+
(0, class_validator_1.ArrayMaxSize)(20),
|
54
|
+
(0, class_validator_1.ArrayUnique)((o) => o.$id),
|
55
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
56
|
+
(0, class_transformer_1.Type)(() => CategoryDto),
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
58
|
+
__metadata("design:type", Array)
|
59
|
+
], SkillsContainerDto.prototype, _a, void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, class_validator_1.IsArray)(),
|
62
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
63
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
64
|
+
(0, class_transformer_1.Type)(() => SkillDto),
|
65
|
+
(0, cross_validation_1.CrossValidation)((o) => {
|
66
|
+
const skills = o;
|
67
|
+
const categoriesItem = skills[exports.CATEGORIZED_ITEMS_KEY];
|
68
|
+
const categories = skills[exports.CATEGORIES_KEY];
|
69
|
+
if (!categoriesItem)
|
70
|
+
return true;
|
71
|
+
if (!categories)
|
72
|
+
return true;
|
73
|
+
for (const item of categoriesItem) {
|
74
|
+
if (!item.$refCategoryId)
|
75
|
+
continue;
|
76
|
+
if (!categories.some((category) => category.$id === item.$refCategoryId))
|
77
|
+
return false;
|
78
|
+
}
|
79
|
+
return true;
|
80
|
+
}),
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
82
|
+
__metadata("design:type", Array)
|
83
|
+
], SkillsContainerDto.prototype, _b, void 0);
|
84
|
+
//# sourceMappingURL=skills-dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"skills-dto.js","sourceRoot":"","sources":["../../../../src/type-validation/dto/cv-info/skills-dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4BAAyB;AACzB,iFAA4E;AAC5E,gEAA4D;AAC5D,0DAAsD;AACtD,mFAA6E;AAC7E,yDAAwC;AAC3B,QAAA,cAAc,GAAG,aAAa,CAAA;AAC9B,QAAA,qBAAqB,GAAG,OAAO,CAAA;AAC/B,QAAA,eAAe,GAAG,QAAQ,CAAA;AACvC,qDAOwB;AAMxB,MAAa,QAAS,SAAQ,aAAK;IACjC,YAAY,MAAiB;QAC3B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAIF;AAPD,4BAOC;AADC;IADC,IAAA,wBAAM,EAAC,GAAG,CAAC;;qCACA;AAOd,MAAa,WAAY,SAAQ,mBAAQ;IACvC,YAAY,MAAoB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAIF;AAPD,kCAOC;AADC;IADC,IAAA,wBAAM,EAAC,GAAG,CAAC;;wCACA;AAOd,MAAa,kBAAmB,SAAQ,2CAAmB;IACzD,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAiCF;AApCD,gDAoCC;KAvBE,sBAAc,OAsBd,6BAAqB;AAtBtB;IANC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,6BAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACzB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,IAAA,4BAAU,GAAE;;4CACqB;AAsBlC;IAlBC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,GAAG,CAAC;IACjB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;IACpB,IAAA,kCAAe,EAAC,CAAC,CAAC,EAAE,EAAE;QACrB,MAAM,MAAM,GAAwB,CAAC,CAAA;QACrC,MAAM,cAAc,GAAG,MAAM,CAAC,6BAAqB,CAAC,CAAA;QACpD,MAAM,UAAU,GAAG,MAAM,CAAC,sBAAc,CAAC,CAAA;QACzC,IAAI,CAAC,cAAc;YAAE,OAAO,IAAI,CAAA;QAChC,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAA;QAC5B,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,cAAc;gBAAE,SAAQ;YAClC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,KAAK,IAAI,CAAC,cAAc,CAAC;gBACtE,OAAO,KAAK,CAAA;QAChB,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC,CAAC;IACD,IAAA,4BAAU,GAAE;;4CACwB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./auth"), exports);
|
18
|
+
__exportStar(require("./cv-info"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type-validation/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import 'reflect-metadata';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
import { IFormationEntity } from './formation';
|
4
|
+
import { IReferenceEntity } from './reference';
|
5
|
+
import { IProfile } from '../../../type-validation/common';
|
6
|
+
import { IHobbyEntity } from './hobby';
|
7
|
+
import { ILanguigeEntity } from './language';
|
8
|
+
import { IExperienceEntity } from './experience';
|
9
|
+
import { ISkillsContainerEntity } from './skills';
|
10
|
+
export type ICvInfoEntity = Omit<CvInfoEntity, keyof RootClassValidation>;
|
11
|
+
export declare class CvInfoEntity extends RootClassValidation {
|
12
|
+
constructor(params?: ICvInfoEntity);
|
13
|
+
$ownerId: string;
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
profile: IProfile;
|
18
|
+
formations: Record<string, IFormationEntity>;
|
19
|
+
references?: Record<string, IReferenceEntity>;
|
20
|
+
hobbies?: Record<string, IHobbyEntity>;
|
21
|
+
languages?: Record<string, ILanguigeEntity>;
|
22
|
+
experiences?: Record<string, IExperienceEntity>;
|
23
|
+
skills?: ISkillsContainerEntity;
|
24
|
+
}
|
@@ -0,0 +1,99 @@
|
|
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.CvInfoEntity = void 0;
|
13
|
+
require("reflect-metadata");
|
14
|
+
const is_record_key_uuid_1 = require("../../../custom-class-validators/is-record-key-uuid");
|
15
|
+
const root_class_validation_1 = require("../../../type-validation/root-class-validation");
|
16
|
+
const class_transformer_1 = require("class-transformer");
|
17
|
+
const class_validator_1 = require("class-validator");
|
18
|
+
const formation_1 = require("./formation");
|
19
|
+
const reference_1 = require("./reference");
|
20
|
+
const common_1 = require("../../../type-validation/common");
|
21
|
+
const map_transform_1 = require("../../../custom-class-transform/map-transform");
|
22
|
+
const hobby_1 = require("./hobby");
|
23
|
+
const language_1 = require("./language");
|
24
|
+
const is_record_key_locale_1 = require("../../../custom-class-validators/is-record-key-locale");
|
25
|
+
const experience_1 = require("./experience");
|
26
|
+
const skills_1 = require("./skills");
|
27
|
+
class CvInfoEntity extends root_class_validation_1.RootClassValidation {
|
28
|
+
constructor(params) {
|
29
|
+
super(params);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
exports.CvInfoEntity = CvInfoEntity;
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], CvInfoEntity.prototype, "$ownerId", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_validator_1.IsObject)(),
|
39
|
+
(0, class_transformer_1.Type)(() => common_1.Profile),
|
40
|
+
(0, class_validator_1.ValidateNested)(),
|
41
|
+
__metadata("design:type", Object)
|
42
|
+
], CvInfoEntity.prototype, "profile", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, map_transform_1.MapTransform)(),
|
45
|
+
(0, map_transform_1.TransformToMap)(formation_1.FormationEntity),
|
46
|
+
(0, class_validator_1.ValidateNested)({
|
47
|
+
each: true,
|
48
|
+
}),
|
49
|
+
(0, is_record_key_uuid_1.IsRecordKeyUuid)(),
|
50
|
+
__metadata("design:type", Object)
|
51
|
+
], CvInfoEntity.prototype, "formations", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, map_transform_1.MapTransform)(),
|
54
|
+
(0, map_transform_1.TransformToMap)(reference_1.ReferenceEntity),
|
55
|
+
(0, class_validator_1.ValidateNested)({
|
56
|
+
each: true,
|
57
|
+
}),
|
58
|
+
(0, is_record_key_uuid_1.IsRecordKeyUuid)(),
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
60
|
+
__metadata("design:type", Object)
|
61
|
+
], CvInfoEntity.prototype, "references", void 0);
|
62
|
+
__decorate([
|
63
|
+
(0, map_transform_1.MapTransform)(),
|
64
|
+
(0, map_transform_1.TransformToMap)(hobby_1.HobbyEntity),
|
65
|
+
(0, class_validator_1.ValidateNested)({
|
66
|
+
each: true,
|
67
|
+
}),
|
68
|
+
(0, is_record_key_uuid_1.IsRecordKeyUuid)(),
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
70
|
+
__metadata("design:type", Object)
|
71
|
+
], CvInfoEntity.prototype, "hobbies", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, map_transform_1.MapTransform)(),
|
74
|
+
(0, map_transform_1.TransformToMap)(language_1.LanguigeEntity),
|
75
|
+
(0, class_validator_1.ValidateNested)({
|
76
|
+
each: true,
|
77
|
+
}),
|
78
|
+
(0, is_record_key_locale_1.IsRecordKeyLocale)(),
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
80
|
+
__metadata("design:type", Object)
|
81
|
+
], CvInfoEntity.prototype, "languages", void 0);
|
82
|
+
__decorate([
|
83
|
+
(0, map_transform_1.MapTransform)(),
|
84
|
+
(0, map_transform_1.TransformToMap)(experience_1.ExperienceEntity),
|
85
|
+
(0, class_validator_1.ValidateNested)({
|
86
|
+
each: true,
|
87
|
+
}),
|
88
|
+
(0, is_record_key_uuid_1.IsRecordKeyUuid)(),
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
90
|
+
__metadata("design:type", Object)
|
91
|
+
], CvInfoEntity.prototype, "experiences", void 0);
|
92
|
+
__decorate([
|
93
|
+
(0, class_validator_1.IsObject)(),
|
94
|
+
(0, class_transformer_1.Type)(() => skills_1.SkillsContainerEntity),
|
95
|
+
(0, class_validator_1.ValidateNested)(),
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
97
|
+
__metadata("design:type", Object)
|
98
|
+
], CvInfoEntity.prototype, "skills", void 0);
|
99
|
+
//# sourceMappingURL=cv-info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cv-info.js","sourceRoot":"","sources":["../../../../src/type-validation/entities/cv-info/cv-info.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAAyB;AACzB,qFAA8E;AAC9E,mFAA6E;AAC7E,yDAAwC;AACxC,qDAA8E;AAC9E,2CAA+D;AAC/D,2CAA+D;AAC/D,qDAA4D;AAC5D,0EAAqF;AACrF,mCAAmD;AACnD,yCAA4D;AAC5D,yFAAkF;AAClF,6CAAkE;AAClE,qCAAwE;AAIxE,MAAa,YAAa,SAAQ,2CAAmB;IACnD,YAAY,MAAsB;QAChC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CA6DF;AAhED,oCAgEC;AA1DC;IADC,IAAA,wBAAM,GAAE;;8CACQ;AAOjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAO,CAAC;IACnB,IAAA,gCAAc,GAAE;;6CACC;AAQlB;IANC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,2BAAe,CAAC;IAC/B,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,oCAAe,GAAE;;gDAC2B;AAS7C;IAPC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,2BAAe,CAAC;IAC/B,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,oCAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;;gDACgC;AAS7C;IAPC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,mBAAW,CAAC;IAC3B,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,oCAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;;6CACyB;AAStC;IAPC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,yBAAc,CAAC;IAC9B,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,wCAAiB,GAAE;IACnB,IAAA,4BAAU,GAAE;;+CAC8B;AAS3C;IAPC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,6BAAgB,CAAC;IAChC,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,oCAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;;iDACkC;AAM/C;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAqB,CAAC;IACjC,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;4CACkB"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Experience } from '../../../type-validation/common/experience';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
import { IMissionEntity } from './mission';
|
4
|
+
export type IExperienceEntity = Omit<ExperienceEntity, keyof RootClassValidation>;
|
5
|
+
export declare class ExperienceEntity extends Experience {
|
6
|
+
constructor(params: IExperienceEntity);
|
7
|
+
$index: number;
|
8
|
+
missions?: Record<string, IMissionEntity>;
|
9
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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.ExperienceEntity = void 0;
|
13
|
+
const experience_1 = require("../../../type-validation/common/experience");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
const mission_1 = require("./mission");
|
16
|
+
const map_transform_1 = require("../../../custom-class-transform/map-transform");
|
17
|
+
const is_record_key_uuid_1 = require("../../../custom-class-validators/is-record-key-uuid");
|
18
|
+
class ExperienceEntity extends experience_1.Experience {
|
19
|
+
constructor(params) {
|
20
|
+
super(params);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.ExperienceEntity = ExperienceEntity;
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsInt)(),
|
26
|
+
(0, class_validator_1.Max)(15),
|
27
|
+
(0, class_validator_1.Min)(0),
|
28
|
+
__metadata("design:type", Number)
|
29
|
+
], ExperienceEntity.prototype, "$index", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, map_transform_1.MapTransform)(),
|
32
|
+
(0, map_transform_1.TransformToMap)(mission_1.MissionEntity),
|
33
|
+
(0, class_validator_1.ValidateNested)({
|
34
|
+
each: true,
|
35
|
+
}),
|
36
|
+
(0, is_record_key_uuid_1.IsRecordKeyUuid)(),
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
38
|
+
__metadata("design:type", Object)
|
39
|
+
], ExperienceEntity.prototype, "missions", void 0);
|
40
|
+
//# sourceMappingURL=experience.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"experience.js","sourceRoot":"","sources":["../../../../src/type-validation/entities/cv-info/experience.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAgE;AAEhE,qDAA6E;AAC7E,uCAAyD;AACzD,0EAAqF;AACrF,qFAA8E;AAG9E,MAAa,gBAAiB,SAAQ,uBAAU;IAC9C,YAAY,MAAyB;QACnC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;CAeF;AAlBD,4CAkBC;AAVC;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACQ;AASf;IAPC,IAAA,4BAAY,GAAE;IACd,IAAA,8BAAc,EAAC,uBAAa,CAAC;IAC7B,IAAA,gCAAc,EAAC;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,oCAAe,GAAE;IACjB,IAAA,4BAAU,GAAE;;kDAC4B"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Formation } from '../../../type-validation/common/formation';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
export type IFormationEntity = Omit<FormationEntity, keyof RootClassValidation>;
|
4
|
+
export declare class FormationEntity extends Formation {
|
5
|
+
constructor(param?: IFormationEntity);
|
6
|
+
$index: number;
|
7
|
+
}
|
@@ -0,0 +1,27 @@
|
|
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.FormationEntity = void 0;
|
13
|
+
const formation_1 = require("../../../type-validation/common/formation");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class FormationEntity extends formation_1.Formation {
|
16
|
+
constructor(param) {
|
17
|
+
super(param);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
exports.FormationEntity = FormationEntity;
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsInt)(),
|
23
|
+
(0, class_validator_1.Max)(15),
|
24
|
+
(0, class_validator_1.Min)(0),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], FormationEntity.prototype, "$index", void 0);
|
27
|
+
//# sourceMappingURL=formation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"formation.js","sourceRoot":"","sources":["../../../../src/type-validation/entities/cv-info/formation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA8D;AAE9D,qDAAiD;AAIjD,MAAa,eAAgB,SAAQ,qBAAS;IAC5C,YAAY,KAAwB;QAClC,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAKF;AARD,0CAQC;AADC;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;+CACQ"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Hobby } from '../../../type-validation/common/hobby';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
export type IHobbyEntity = Omit<HobbyEntity, keyof RootClassValidation>;
|
4
|
+
export declare class HobbyEntity extends Hobby {
|
5
|
+
constructor(param: IHobbyEntity);
|
6
|
+
$index: number;
|
7
|
+
}
|
@@ -0,0 +1,27 @@
|
|
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.HobbyEntity = void 0;
|
13
|
+
const hobby_1 = require("../../../type-validation/common/hobby");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class HobbyEntity extends hobby_1.Hobby {
|
16
|
+
constructor(param) {
|
17
|
+
super(param);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
exports.HobbyEntity = HobbyEntity;
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsInt)(),
|
23
|
+
(0, class_validator_1.Max)(15),
|
24
|
+
(0, class_validator_1.Min)(0),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], HobbyEntity.prototype, "$index", void 0);
|
27
|
+
//# sourceMappingURL=hobby.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hobby.js","sourceRoot":"","sources":["../../../../src/type-validation/entities/cv-info/hobby.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAsD;AAEtD,qDAAiD;AAIjD,MAAa,WAAY,SAAQ,aAAK;IACpC,YAAY,KAAmB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAA;IACd,CAAC;CAKF;AARD,kCAQC;AADC;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;2CACQ"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { CvInfoEntity, ICvInfoEntity } from './cv-info';
|
2
|
+
export { ExperienceEntity, IExperienceEntity } from './experience';
|
3
|
+
export { FormationEntity, IFormationEntity } from './formation';
|
4
|
+
export { HobbyEntity, IHobbyEntity } from './hobby';
|
5
|
+
export { ILanguigeEntity, LanguigeEntity } from './language';
|
6
|
+
export { CategoryEntity, ICategoryEntity, ISkillEntity, SkillEntity, ISkillsContainerEntity, SkillsContainerEntity, } from './skills';
|
7
|
+
export { IMissionEntity, MissionEntity } from './mission';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MissionEntity = exports.SkillsContainerEntity = exports.SkillEntity = exports.CategoryEntity = exports.LanguigeEntity = exports.HobbyEntity = exports.FormationEntity = exports.ExperienceEntity = exports.CvInfoEntity = void 0;
|
4
|
+
var cv_info_1 = require("./cv-info");
|
5
|
+
Object.defineProperty(exports, "CvInfoEntity", { enumerable: true, get: function () { return cv_info_1.CvInfoEntity; } });
|
6
|
+
var experience_1 = require("./experience");
|
7
|
+
Object.defineProperty(exports, "ExperienceEntity", { enumerable: true, get: function () { return experience_1.ExperienceEntity; } });
|
8
|
+
var formation_1 = require("./formation");
|
9
|
+
Object.defineProperty(exports, "FormationEntity", { enumerable: true, get: function () { return formation_1.FormationEntity; } });
|
10
|
+
var hobby_1 = require("./hobby");
|
11
|
+
Object.defineProperty(exports, "HobbyEntity", { enumerable: true, get: function () { return hobby_1.HobbyEntity; } });
|
12
|
+
var language_1 = require("./language");
|
13
|
+
Object.defineProperty(exports, "LanguigeEntity", { enumerable: true, get: function () { return language_1.LanguigeEntity; } });
|
14
|
+
var skills_1 = require("./skills");
|
15
|
+
Object.defineProperty(exports, "CategoryEntity", { enumerable: true, get: function () { return skills_1.CategoryEntity; } });
|
16
|
+
Object.defineProperty(exports, "SkillEntity", { enumerable: true, get: function () { return skills_1.SkillEntity; } });
|
17
|
+
Object.defineProperty(exports, "SkillsContainerEntity", { enumerable: true, get: function () { return skills_1.SkillsContainerEntity; } });
|
18
|
+
var mission_1 = require("./mission");
|
19
|
+
Object.defineProperty(exports, "MissionEntity", { enumerable: true, get: function () { return mission_1.MissionEntity; } });
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/type-validation/entities/cv-info/index.ts"],"names":[],"mappings":";;;AAAA,qCAAuD;AAA9C,uGAAA,YAAY,OAAA;AACrB,2CAAkE;AAAzD,8GAAA,gBAAgB,OAAA;AACzB,yCAA+D;AAAtD,4GAAA,eAAe,OAAA;AACxB,iCAAmD;AAA1C,oGAAA,WAAW,OAAA;AACpB,uCAA4D;AAAlC,0GAAA,cAAc,OAAA;AACxC,mCAOiB;AANf,wGAAA,cAAc,OAAA;AAGd,qGAAA,WAAW,OAAA;AAEX,+GAAA,qBAAqB,OAAA;AAEvB,qCAAyD;AAAhC,wGAAA,aAAa,OAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Language } from '../../../type-validation/common/language';
|
2
|
+
import { RootClassValidation } from '../../../type-validation/root-class-validation';
|
3
|
+
export type ILanguigeEntity = Omit<LanguigeEntity, keyof RootClassValidation>;
|
4
|
+
export declare class LanguigeEntity extends Language {
|
5
|
+
constructor(param: ILanguigeEntity);
|
6
|
+
$index: number;
|
7
|
+
}
|