test-entity-library-asm 2.1.9 → 2.2.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.
@@ -1,15 +1,16 @@
1
- import { Partner } from './Partner';
2
1
  import { Master } from '..';
2
+ import { Partner } from './Partner';
3
3
  export declare class VerifyLocal {
4
4
  id: number;
5
5
  partner: Partner;
6
6
  assigned_master: Master;
7
- local_information: string;
8
- basic_information: string;
9
- settings: string;
10
- opening_hours: string;
11
- terminals: string;
12
- details: string;
7
+ local_information: Object;
8
+ basic_information: Object;
9
+ settings: Object[];
10
+ opening_hours: Object[];
11
+ terminal_users: Object[];
12
+ terminals: Object[];
13
+ details: Object;
13
14
  created: Date;
14
15
  verification_date: Date;
15
16
  update_partner: Date;
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.VerifyLocal = void 0;
13
13
  var typeorm_1 = require("typeorm");
14
- var Partner_1 = require("./Partner");
15
- var jsonTransformer_1 = require("../transformers/jsonTransformer");
16
14
  var __1 = require("..");
17
15
  var dateTransformer_1 = require("../transformers/dateTransformer");
16
+ var jsonTransformer_1 = require("../transformers/jsonTransformer");
17
+ var Partner_1 = require("./Partner");
18
18
  var VerifyLocal = /** @class */ (function () {
19
19
  function VerifyLocal() {
20
20
  }
@@ -46,7 +46,7 @@ var VerifyLocal = /** @class */ (function () {
46
46
  transformer: jsonTransformer_1.jsonTransformer,
47
47
  comment: 'Campos que el usuario (partner) agrega al nuevo local.',
48
48
  }),
49
- __metadata("design:type", String)
49
+ __metadata("design:type", Object)
50
50
  ], VerifyLocal.prototype, "local_information", void 0);
51
51
  __decorate([
52
52
  (0, typeorm_1.Column)({
@@ -54,7 +54,7 @@ var VerifyLocal = /** @class */ (function () {
54
54
  transformer: jsonTransformer_1.jsonTransformer,
55
55
  comment: 'Estructura de paso información básica.',
56
56
  }),
57
- __metadata("design:type", String)
57
+ __metadata("design:type", Object)
58
58
  ], VerifyLocal.prototype, "basic_information", void 0);
59
59
  __decorate([
60
60
  (0, typeorm_1.Column)({
@@ -62,7 +62,7 @@ var VerifyLocal = /** @class */ (function () {
62
62
  transformer: jsonTransformer_1.jsonTransformer,
63
63
  comment: 'Estructura de paso configuración.',
64
64
  }),
65
- __metadata("design:type", String)
65
+ __metadata("design:type", Array)
66
66
  ], VerifyLocal.prototype, "settings", void 0);
67
67
  __decorate([
68
68
  (0, typeorm_1.Column)({
@@ -70,7 +70,7 @@ var VerifyLocal = /** @class */ (function () {
70
70
  transformer: jsonTransformer_1.jsonTransformer,
71
71
  comment: 'Estructura de paso horarios de atención.',
72
72
  }),
73
- __metadata("design:type", String)
73
+ __metadata("design:type", Array)
74
74
  ], VerifyLocal.prototype, "opening_hours", void 0);
75
75
  __decorate([
76
76
  (0, typeorm_1.Column)({
@@ -78,7 +78,15 @@ var VerifyLocal = /** @class */ (function () {
78
78
  transformer: jsonTransformer_1.jsonTransformer,
79
79
  comment: 'Estructura de paso terminales y usuarios.',
80
80
  }),
81
- __metadata("design:type", String)
81
+ __metadata("design:type", Array)
82
+ ], VerifyLocal.prototype, "terminal_users", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({
85
+ type: 'longtext',
86
+ transformer: jsonTransformer_1.jsonTransformer,
87
+ comment: 'Estructura de paso terminales y usuarios.',
88
+ }),
89
+ __metadata("design:type", Array)
82
90
  ], VerifyLocal.prototype, "terminals", void 0);
83
91
  __decorate([
84
92
  (0, typeorm_1.Column)({
@@ -87,7 +95,7 @@ var VerifyLocal = /** @class */ (function () {
87
95
  transformer: jsonTransformer_1.jsonTransformer,
88
96
  comment: 'Información adicional del local para su verificación.',
89
97
  }),
90
- __metadata("design:type", String)
98
+ __metadata("design:type", Object)
91
99
  ], VerifyLocal.prototype, "details", void 0);
92
100
  __decorate([
93
101
  (0, typeorm_1.Column)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.1.9",
3
+ "version": "2.2.1",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,17 +2,13 @@ import {
2
2
  Column,
3
3
  Entity,
4
4
  JoinColumn,
5
- JoinTable,
6
- ManyToMany,
7
5
  ManyToOne,
8
- OneToMany,
9
6
  PrimaryGeneratedColumn,
10
7
  } from 'typeorm'
11
- import { Partner } from './Partner'
12
- import { TerminalSession } from './TerminalSession'
13
- import { jsonTransformer } from '../transformers/jsonTransformer'
14
8
  import { Master } from '..'
15
9
  import { DateTransformer } from '../transformers/dateTransformer'
10
+ import { jsonTransformer } from '../transformers/jsonTransformer'
11
+ import { Partner } from './Partner'
16
12
 
17
13
  @Entity({
18
14
  name: 'verify_local',
@@ -44,35 +40,42 @@ export class VerifyLocal {
44
40
  transformer: jsonTransformer,
45
41
  comment: 'Campos que el usuario (partner) agrega al nuevo local.',
46
42
  })
47
- local_information: string
43
+ local_information: Object
48
44
 
49
45
  @Column({
50
46
  type: 'longtext',
51
47
  transformer: jsonTransformer,
52
48
  comment: 'Estructura de paso información básica.',
53
49
  })
54
- basic_information: string
50
+ basic_information: Object
55
51
 
56
52
  @Column({
57
53
  type: 'longtext',
58
54
  transformer: jsonTransformer,
59
55
  comment: 'Estructura de paso configuración.',
60
56
  })
61
- settings: string
57
+ settings: Object[]
62
58
 
63
59
  @Column({
64
60
  type: 'longtext',
65
61
  transformer: jsonTransformer,
66
62
  comment: 'Estructura de paso horarios de atención.',
67
63
  })
68
- opening_hours: string
64
+ opening_hours: Object[]
65
+
66
+ @Column({
67
+ type: 'longtext',
68
+ transformer: jsonTransformer,
69
+ comment: 'Estructura de paso terminales y usuarios.',
70
+ })
71
+ terminal_users: Object[]
69
72
 
70
73
  @Column({
71
74
  type: 'longtext',
72
75
  transformer: jsonTransformer,
73
76
  comment: 'Estructura de paso terminales y usuarios.',
74
77
  })
75
- terminals: string
78
+ terminals: Object[]
76
79
 
77
80
  @Column({
78
81
  type: 'text',
@@ -80,7 +83,7 @@ export class VerifyLocal {
80
83
  transformer: jsonTransformer,
81
84
  comment: 'Información adicional del local para su verificación.',
82
85
  })
83
- details: string
86
+ details: Object
84
87
 
85
88
  @Column({
86
89
  type: 'datetime',