@cv-tec/validations 0.6.2 → 0.7.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.
@@ -2,5 +2,4 @@ export * from './auth';
2
2
  export * from './cv-info';
3
3
  export * from './reset-password';
4
4
  export * from './cv-profile';
5
- export * from './cv-theme';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/type-validation/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/type-validation/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
@@ -18,5 +18,4 @@ __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./cv-info"), exports);
19
19
  __exportStar(require("./reset-password"), exports);
20
20
  __exportStar(require("./cv-profile"), exports);
21
- __exportStar(require("./cv-theme"), exports);
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type-validation/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB;AACzB,mDAAgC;AAChC,+CAA4B;AAC5B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/type-validation/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,4CAAyB;AACzB,mDAAgC;AAChC,+CAA4B"}
@@ -1,14 +1,14 @@
1
1
  import { RootClassValidation } from '../../index';
2
2
  import { ICvTheme } from '../../theme';
3
- export type IThemeInputDto = Omit<ThemeInputDto, keyof RootClassValidation>;
4
- export declare class ThemeInputDto extends RootClassValidation {
5
- constructor(themeDto: IThemeInputDto);
6
- baseTheme: string;
3
+ export type ICvThemeInputDto = Omit<CvThemeInputDto, keyof RootClassValidation>;
4
+ export declare class CvThemeInputDto extends RootClassValidation {
5
+ constructor(themeDto: ICvThemeInputDto);
6
+ $baseTheme: string;
7
7
  themeOverride: ICvTheme;
8
8
  }
9
- export type IThemeEntity = Omit<ThemeEntity, keyof RootClassValidation>;
10
- export declare class ThemeEntity extends ThemeInputDto {
11
- constructor(themeEntity: IThemeEntity);
9
+ export type ICvThemeEntityDto = Omit<CvThemeEntityDto, keyof RootClassValidation>;
10
+ export declare class CvThemeEntityDto extends CvThemeInputDto {
11
+ constructor(themeDto: ICvThemeEntityDto);
12
12
  $ownerId: string;
13
13
  $id: string;
14
14
  $timestamp: number;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/type-validation/dto/theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGlC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,mBAAmB,CAAC,CAAA;AAC3E,qBAAa,aAAc,SAAQ,mBAAmB;gBACxC,QAAQ,EAAE,cAAc;IAMpC,SAAS,EAAG,MAAM,CAAA;IAGlB,aAAa,EAAG,QAAQ,CAAA;CACzB;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,mBAAmB,CAAC,CAAA;AAEvE,qBAAa,WAAY,SAAQ,aAAa;gBAChC,WAAW,EAAE,YAAY;IAKrC,QAAQ,EAAG,MAAM,CAAA;IAGjB,GAAG,EAAG,MAAM,CAAA;IAGZ,UAAU,EAAG,MAAM,CAAA;CACpB"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/type-validation/dto/theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGlC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,mBAAmB,CAAC,CAAA;AAC/E,qBAAa,eAAgB,SAAQ,mBAAmB;gBAC1C,QAAQ,EAAE,gBAAgB;IAKtC,UAAU,EAAG,MAAM,CAAA;IAGnB,aAAa,EAAG,QAAQ,CAAA;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,mBAAmB,CAAC,CAAA;AACjF,qBAAa,gBAAiB,SAAQ,eAAe;gBACvC,QAAQ,EAAE,iBAAiB;IAKvC,QAAQ,EAAG,MAAM,CAAA;IAGjB,GAAG,EAAG,MAAM,CAAA;IAGZ,UAAU,EAAG,MAAM,CAAA;CACpB"}
@@ -9,41 +9,41 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ThemeEntity = exports.ThemeInputDto = void 0;
12
+ exports.CvThemeEntityDto = exports.CvThemeInputDto = void 0;
13
13
  const validateThemeJsonShema_1 = require("../../custom-decorators/class-validators/validateThemeJsonShema");
14
14
  const index_1 = require("../../index");
15
15
  const class_validator_1 = require("class-validator");
16
- class ThemeInputDto extends index_1.RootClassValidation {
16
+ class CvThemeInputDto extends index_1.RootClassValidation {
17
17
  constructor(themeDto) {
18
18
  super(themeDto);
19
19
  }
20
20
  }
21
- exports.ThemeInputDto = ThemeInputDto;
21
+ exports.CvThemeInputDto = CvThemeInputDto;
22
22
  __decorate([
23
23
  (0, class_validator_1.IsString)(),
24
24
  (0, class_validator_1.Length)(5, 50, index_1.LENGTH_CONSTRAIN_MSG),
25
25
  __metadata("design:type", String)
26
- ], ThemeInputDto.prototype, "baseTheme", void 0);
26
+ ], CvThemeInputDto.prototype, "$baseTheme", void 0);
27
27
  __decorate([
28
28
  (0, validateThemeJsonShema_1.ValidateThemeSchema)(),
29
29
  __metadata("design:type", Object)
30
- ], ThemeInputDto.prototype, "themeOverride", void 0);
31
- class ThemeEntity extends ThemeInputDto {
32
- constructor(themeEntity) {
33
- super(themeEntity);
30
+ ], CvThemeInputDto.prototype, "themeOverride", void 0);
31
+ class CvThemeEntityDto extends CvThemeInputDto {
32
+ constructor(themeDto) {
33
+ super(themeDto);
34
34
  }
35
35
  }
36
- exports.ThemeEntity = ThemeEntity;
36
+ exports.CvThemeEntityDto = CvThemeEntityDto;
37
37
  __decorate([
38
38
  (0, class_validator_1.IsUUID)(),
39
39
  __metadata("design:type", String)
40
- ], ThemeEntity.prototype, "$ownerId", void 0);
40
+ ], CvThemeEntityDto.prototype, "$ownerId", void 0);
41
41
  __decorate([
42
42
  (0, class_validator_1.IsUUID)(),
43
43
  __metadata("design:type", String)
44
- ], ThemeEntity.prototype, "$id", void 0);
44
+ ], CvThemeEntityDto.prototype, "$id", void 0);
45
45
  __decorate([
46
46
  (0, class_validator_1.IsInt)(),
47
47
  __metadata("design:type", Number)
48
- ], ThemeEntity.prototype, "$timestamp", void 0);
48
+ ], CvThemeEntityDto.prototype, "$timestamp", void 0);
49
49
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/type-validation/dto/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wGAAiG;AACjG,mCAAmE;AAEnE,qDAAiE;AAGjE,MAAa,aAAc,SAAQ,2BAAmB;IACpD,YAAY,QAAwB;QAClC,KAAK,CAAC,QAAQ,CAAC,CAAA;IACjB,CAAC;CAQF;AAXD,sCAWC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,4BAAoB,CAAC;;gDAClB;AAGlB;IADC,IAAA,4CAAmB,GAAE;;oDACE;AAK1B,MAAa,WAAY,SAAQ,aAAa;IAC5C,YAAY,WAAyB;QACnC,KAAK,CAAC,WAAW,CAAC,CAAA;IACpB,CAAC;CAUF;AAbD,kCAaC;AAPC;IADC,IAAA,wBAAM,GAAE;;6CACQ;AAGjB;IADC,IAAA,wBAAM,GAAE;;wCACG;AAGZ;IADC,IAAA,uBAAK,GAAE;;+CACW"}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/type-validation/dto/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wGAAiG;AACjG,mCAAmE;AAEnE,qDAAiE;AAGjE,MAAa,eAAgB,SAAQ,2BAAmB;IACtD,YAAY,QAA0B;QACpC,KAAK,CAAC,QAAQ,CAAC,CAAA;IACjB,CAAC;CAOF;AAVD,0CAUC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,4BAAoB,CAAC;;mDACjB;AAGnB;IADC,IAAA,4CAAmB,GAAE;;sDACE;AAI1B,MAAa,gBAAiB,SAAQ,eAAe;IACnD,YAAY,QAA2B;QACrC,KAAK,CAAC,QAAQ,CAAC,CAAA;IACjB,CAAC;CAUF;AAbD,4CAaC;AAPC;IADC,IAAA,wBAAM,GAAE;;kDACQ;AAGjB;IADC,IAAA,wBAAM,GAAE;;6CACG;AAGZ;IADC,IAAA,uBAAK,GAAE;;oDACW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cv-tec/validations",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",