test-entity-library-asm 3.9.36 → 3.9.37

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.
@@ -17,6 +17,7 @@ export declare class Local {
17
17
  latitude: number;
18
18
  longitude: number;
19
19
  details: any | null;
20
+ changes: any | null;
20
21
  created: Date;
21
22
  updated: Date;
22
23
  updated_by: Partner;
@@ -25,6 +26,9 @@ export declare class Local {
25
26
  pos_system_settings: any | null;
26
27
  status: number;
27
28
  visible: number;
29
+ contact_details: any | null;
30
+ review_status: number;
31
+ operation_type: number;
28
32
  locals_partners: Partner[];
29
33
  requests_local: RequestLocal[];
30
34
  categories: Category[];
@@ -74,6 +74,16 @@ __decorate([
74
74
  }),
75
75
  __metadata("design:type", Object)
76
76
  ], Local.prototype, "details", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({
79
+ type: "longtext",
80
+ nullable: true,
81
+ default: null,
82
+ transformer: jsonTransformer_1.jsonTransformer,
83
+ comment: "Columna para almacenar los cambios que se le hacen al registro. \nSe almacena todo el formik, con esto simplemente cuando estemos editando se usa esta variable y no tenemos que construir la información.",
84
+ }),
85
+ __metadata("design:type", Object)
86
+ ], Local.prototype, "changes", void 0);
77
87
  __decorate([
78
88
  (0, typeorm_1.Column)({ type: "datetime", default: () => "CURRENT_TIMESTAMP" }),
79
89
  __metadata("design:type", Date)
@@ -138,6 +148,35 @@ __decorate([
138
148
  }),
139
149
  __metadata("design:type", Number)
140
150
  ], Local.prototype, "visible", void 0);
151
+ __decorate([
152
+ (0, typeorm_1.Column)({
153
+ type: "text",
154
+ nullable: true,
155
+ default: null,
156
+ transformer: jsonTransformer_1.jsonTransformer,
157
+ }),
158
+ __metadata("design:type", Object)
159
+ ], Local.prototype, "contact_details", void 0);
160
+ __decorate([
161
+ (0, typeorm_1.Column)({
162
+ type: "int",
163
+ nullable: true,
164
+ default: null,
165
+ width: 1,
166
+ comment: "Estado en el que se encuentra la revisión de los nuevos cambios.\n1: Pendiente de revisión:Estado para decirle al usuario que los cambios se encuentran en revisión.\n2: Aprobado: Los cambios se encuentran aprobados.\n3: Rechazado: Los cambios se rechazaron por algún problema en los datos.",
167
+ }),
168
+ __metadata("design:type", Number)
169
+ ], Local.prototype, "review_status", void 0);
170
+ __decorate([
171
+ (0, typeorm_1.Column)({
172
+ type: "int",
173
+ nullable: true,
174
+ default: null,
175
+ width: 1,
176
+ comment: "Columna para guardar el tipo de operación del registro.\n1: Creación: Cuando se crea por primera vez el registro.\n2: Edición: Cuando se está editando información del local.",
177
+ }),
178
+ __metadata("design:type", Number)
179
+ ], Local.prototype, "operation_type", void 0);
141
180
  __decorate([
142
181
  (0, typeorm_1.ManyToMany)(() => Partner_1.Partner, (partner) => partner.locals_partner),
143
182
  (0, typeorm_1.JoinTable)({
@@ -7,6 +7,7 @@ export declare class LocalsCompanyInformationForTheMap {
7
7
  latitude: number;
8
8
  longitude: number;
9
9
  details: any | null;
10
+ changes: any | null;
10
11
  created: Date;
11
12
  updated: Date;
12
13
  updated_by: number;
@@ -16,6 +17,8 @@ export declare class LocalsCompanyInformationForTheMap {
16
17
  status: number;
17
18
  visible: number;
18
19
  contact_details: any | null;
20
+ review_status: number;
21
+ operation_type: number;
19
22
  company_code: string;
20
23
  company_name: string;
21
24
  company_partner: number;
@@ -58,6 +58,10 @@ __decorate([
58
58
  (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
59
59
  __metadata("design:type", Object)
60
60
  ], LocalsCompanyInformationForTheMap.prototype, "details", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
63
+ __metadata("design:type", Object)
64
+ ], LocalsCompanyInformationForTheMap.prototype, "changes", void 0);
61
65
  __decorate([
62
66
  (0, typeorm_1.ViewColumn)(),
63
67
  __metadata("design:type", Date)
@@ -94,6 +98,14 @@ __decorate([
94
98
  (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
95
99
  __metadata("design:type", Object)
96
100
  ], LocalsCompanyInformationForTheMap.prototype, "contact_details", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.ViewColumn)(),
103
+ __metadata("design:type", Number)
104
+ ], LocalsCompanyInformationForTheMap.prototype, "review_status", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.ViewColumn)(),
107
+ __metadata("design:type", Number)
108
+ ], LocalsCompanyInformationForTheMap.prototype, "operation_type", void 0);
97
109
  __decorate([
98
110
  (0, typeorm_1.ViewColumn)(),
99
111
  __metadata("design:type", String)
@@ -7,6 +7,7 @@ export declare class LocalsCompanyInformationForTheTable {
7
7
  latitude: number;
8
8
  longitude: number;
9
9
  details: any | null;
10
+ changes: any | null;
10
11
  created: Date;
11
12
  updated: Date;
12
13
  updated_by: number;
@@ -16,6 +17,8 @@ export declare class LocalsCompanyInformationForTheTable {
16
17
  status: number;
17
18
  visible: number;
18
19
  contact_details: any | null;
20
+ review_status: number;
21
+ operation_type: number;
19
22
  type_local: string;
20
23
  address_local: string;
21
24
  company_id: number;
@@ -58,6 +58,10 @@ __decorate([
58
58
  (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
59
59
  __metadata("design:type", Object)
60
60
  ], LocalsCompanyInformationForTheTable.prototype, "details", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
63
+ __metadata("design:type", Object)
64
+ ], LocalsCompanyInformationForTheTable.prototype, "changes", void 0);
61
65
  __decorate([
62
66
  (0, typeorm_1.ViewColumn)(),
63
67
  __metadata("design:type", Date)
@@ -94,6 +98,14 @@ __decorate([
94
98
  (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
95
99
  __metadata("design:type", Object)
96
100
  ], LocalsCompanyInformationForTheTable.prototype, "contact_details", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.ViewColumn)(),
103
+ __metadata("design:type", Number)
104
+ ], LocalsCompanyInformationForTheTable.prototype, "review_status", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.ViewColumn)(),
107
+ __metadata("design:type", Number)
108
+ ], LocalsCompanyInformationForTheTable.prototype, "operation_type", void 0);
97
109
  __decorate([
98
110
  (0, typeorm_1.ViewColumn)(),
99
111
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.9.36",
3
+ "version": "3.9.37",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -77,6 +77,16 @@ export class Local {
77
77
  })
78
78
  details: any | null;
79
79
 
80
+ @Column({
81
+ type: "longtext",
82
+ nullable: true,
83
+ default: null,
84
+ transformer: jsonTransformer,
85
+ comment:
86
+ "Columna para almacenar los cambios que se le hacen al registro. \nSe almacena todo el formik, con esto simplemente cuando estemos editando se usa esta variable y no tenemos que construir la información.",
87
+ })
88
+ changes: any | null;
89
+
80
90
  @Column({ type: "datetime", default: () => "CURRENT_TIMESTAMP" })
81
91
  created: Date;
82
92
 
@@ -135,6 +145,35 @@ export class Local {
135
145
  })
136
146
  visible: number;
137
147
 
148
+ // !: ¿Esta columna debería venir?
149
+ @Column({
150
+ type: "text",
151
+ nullable: true,
152
+ default: null,
153
+ transformer: jsonTransformer,
154
+ })
155
+ contact_details: any | null;
156
+
157
+ @Column({
158
+ type: "int",
159
+ nullable: true,
160
+ default: null,
161
+ width: 1,
162
+ comment:
163
+ "Estado en el que se encuentra la revisión de los nuevos cambios.\n1: Pendiente de revisión:Estado para decirle al usuario que los cambios se encuentran en revisión.\n2: Aprobado: Los cambios se encuentran aprobados.\n3: Rechazado: Los cambios se rechazaron por algún problema en los datos.",
164
+ })
165
+ review_status: number;
166
+
167
+ @Column({
168
+ type: "int",
169
+ nullable: true,
170
+ default: null,
171
+ width: 1,
172
+ comment:
173
+ "Columna para guardar el tipo de operación del registro.\n1: Creación: Cuando se crea por primera vez el registro.\n2: Edición: Cuando se está editando información del local.",
174
+ })
175
+ operation_type: number;
176
+
138
177
  @ManyToMany(() => Partner, (partner) => partner.locals_partner)
139
178
  @JoinTable({
140
179
  name: "local_partner",
@@ -40,6 +40,9 @@ export class LocalsCompanyInformationForTheMap {
40
40
  @ViewColumn({ transformer: jsonTransformer })
41
41
  details: any | null;
42
42
 
43
+ @ViewColumn({ transformer: jsonTransformer })
44
+ changes: any | null;
45
+
43
46
  @ViewColumn()
44
47
  created: Date;
45
48
 
@@ -67,6 +70,12 @@ export class LocalsCompanyInformationForTheMap {
67
70
  @ViewColumn({ transformer: jsonTransformer })
68
71
  contact_details: any | null;
69
72
 
73
+ @ViewColumn()
74
+ review_status: number;
75
+
76
+ @ViewColumn()
77
+ operation_type: number;
78
+
70
79
  @ViewColumn()
71
80
  company_code: string;
72
81
 
@@ -40,6 +40,9 @@ export class LocalsCompanyInformationForTheTable {
40
40
  @ViewColumn({ transformer: jsonTransformer })
41
41
  details: any | null;
42
42
 
43
+ @ViewColumn({ transformer: jsonTransformer })
44
+ changes: any | null;
45
+
43
46
  @ViewColumn()
44
47
  created: Date;
45
48
 
@@ -67,6 +70,12 @@ export class LocalsCompanyInformationForTheTable {
67
70
  @ViewColumn({ transformer: jsonTransformer })
68
71
  contact_details: any | null;
69
72
 
73
+ @ViewColumn()
74
+ review_status: number;
75
+
76
+ @ViewColumn()
77
+ operation_type: number;
78
+
70
79
  @ViewColumn()
71
80
  type_local: string;
72
81