test-entity-library-asm 2.4.7 → 2.4.9

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.
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MasterNotification = void 0;
13
13
  var typeorm_1 = require("typeorm");
14
- var dateTransformer_1 = require("../transformers/dateTransformer");
15
14
  var __1 = require("..");
15
+ var dateTransformer_1 = require("../transformers/dateTransformer");
16
16
  var jsonTransformer_1 = require("../transformers/jsonTransformer");
17
17
  var MasterNotification = /** @class */ (function () {
18
18
  function MasterNotification() {
@@ -33,14 +33,14 @@ var MasterNotification = /** @class */ (function () {
33
33
  ], MasterNotification.prototype, "master", void 0);
34
34
  __decorate([
35
35
  (0, typeorm_1.Column)({
36
- length: 50,
36
+ length: 200,
37
37
  comment: 'Nombre de la notificación.',
38
38
  }),
39
39
  __metadata("design:type", String)
40
40
  ], MasterNotification.prototype, "name", void 0);
41
41
  __decorate([
42
42
  (0, typeorm_1.Column)({
43
- length: 200,
43
+ length: 400,
44
44
  nullable: true,
45
45
  comment: 'Descripción de la notificación.',
46
46
  }),
@@ -33,14 +33,14 @@ var PartnerNotification = /** @class */ (function () {
33
33
  ], PartnerNotification.prototype, "partner", void 0);
34
34
  __decorate([
35
35
  (0, typeorm_1.Column)({
36
- length: 50,
36
+ length: 200,
37
37
  comment: 'Nombre de la notificación.',
38
38
  }),
39
39
  __metadata("design:type", String)
40
40
  ], PartnerNotification.prototype, "name", void 0);
41
41
  __decorate([
42
42
  (0, typeorm_1.Column)({
43
- length: 200,
43
+ length: 400,
44
44
  nullable: true,
45
45
  comment: 'Descripción de la notificación.',
46
46
  }),
@@ -8,7 +8,6 @@ var DateTransformer = /** @class */ (function () {
8
8
  }
9
9
  DateTransformer.prototype.to = function (value) {
10
10
  var result = moment(value).format('YYYY-MM-DD HH:mm:ss');
11
- console.log('To Value:', value, 'Transformed to:', result);
12
11
  return result;
13
12
  };
14
13
  DateTransformer.prototype.from = function (value) {
@@ -16,7 +15,6 @@ var DateTransformer = /** @class */ (function () {
16
15
  .utc(value)
17
16
  .tz((0, __1.getTimeZone)())
18
17
  .format('YYYY-MM-DD HH:mm:ss');
19
- console.log('From Value:', value, 'Transformed from:', result);
20
18
  return result;
21
19
  };
22
20
  return DateTransformer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,9 +5,8 @@ import {
5
5
  ManyToOne,
6
6
  PrimaryGeneratedColumn,
7
7
  } from 'typeorm'
8
- import { Partner } from './Partner'
9
- import { DateTransformer } from '../transformers/dateTransformer'
10
8
  import { Master } from '..'
9
+ import { DateTransformer } from '../transformers/dateTransformer'
11
10
  import { jsonTransformer } from '../transformers/jsonTransformer'
12
11
 
13
12
  @Entity('master_notification', {
@@ -28,13 +27,13 @@ export class MasterNotification {
28
27
  master: Master
29
28
 
30
29
  @Column({
31
- length: 50,
30
+ length: 200,
32
31
  comment: 'Nombre de la notificación.',
33
32
  })
34
33
  name: string
35
34
 
36
35
  @Column({
37
- length: 200,
36
+ length: 400,
38
37
  nullable: true,
39
38
  comment: 'Descripción de la notificación.',
40
39
  })
@@ -26,13 +26,13 @@ export class PartnerNotification {
26
26
  partner: Partner
27
27
 
28
28
  @Column({
29
- length: 50,
29
+ length: 200,
30
30
  comment: 'Nombre de la notificación.',
31
31
  })
32
32
  name: string
33
33
 
34
34
  @Column({
35
- length: 200,
35
+ length: 400,
36
36
  nullable: true,
37
37
  comment: 'Descripción de la notificación.',
38
38
  })
@@ -5,7 +5,6 @@ import { getTimeZone } from '..'
5
5
  export class DateTransformer implements ValueTransformer {
6
6
  to(value: Date | string): string {
7
7
  const result = moment(value).format('YYYY-MM-DD HH:mm:ss')
8
- console.log('To Value:', value, 'Transformed to:', result)
9
8
  return result
10
9
  }
11
10
 
@@ -14,7 +13,6 @@ export class DateTransformer implements ValueTransformer {
14
13
  .utc(value)
15
14
  .tz(getTimeZone())
16
15
  .format('YYYY-MM-DD HH:mm:ss')
17
- console.log('From Value:', value, 'Transformed from:', result)
18
16
  return result
19
17
  }
20
18
  }