@asumano/worklip-typeorm-db 1.1.49 → 1.1.51

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.
@@ -15,5 +15,6 @@ export declare class MediaFile {
15
15
  compression_percentage: number | null;
16
16
  status: number;
17
17
  created: Date;
18
+ updated: Date | null;
18
19
  deleted: Date | null;
19
20
  }
@@ -115,7 +115,7 @@ __decorate([
115
115
  default: 1,
116
116
  type: "int",
117
117
  width: 1,
118
- comment: "1: Activo, 0: Eliminado.",
118
+ comment: "1: Activo, 0: Inactivo, 2: Eliminado.",
119
119
  }),
120
120
  __metadata("design:type", Number)
121
121
  ], MediaFile.prototype, "status", void 0);
@@ -127,6 +127,16 @@ __decorate([
127
127
  }),
128
128
  __metadata("design:type", Date)
129
129
  ], MediaFile.prototype, "created", void 0);
130
+ __decorate([
131
+ (0, typeorm_1.Column)({
132
+ type: "datetime",
133
+ nullable: true,
134
+ default: null,
135
+ comment: "Fecha de actualización del registro.",
136
+ onUpdate: "CURRENT_TIMESTAMP",
137
+ }),
138
+ __metadata("design:type", Object)
139
+ ], MediaFile.prototype, "updated", void 0);
130
140
  __decorate([
131
141
  (0, typeorm_1.Column)({
132
142
  type: "datetime",
@@ -22,6 +22,7 @@ export declare class Workshop {
22
22
  created: Date;
23
23
  updated: Date | null;
24
24
  status: number;
25
+ visible: number;
25
26
  associates: Associate[];
26
27
  templates: Template[];
27
28
  service_orders: ServiceOrder[];
@@ -135,19 +135,16 @@ __decorate([
135
135
  __metadata("design:type", Number)
136
136
  ], Workshop.prototype, "status", void 0);
137
137
  __decorate([
138
- (0, typeorm_1.ManyToMany)(() => Associate_1.Associate, (associate) => associate.workshops_associated)
139
- // @JoinTable({
140
- // name: "workshop_associate",
141
- // joinColumn: {
142
- // name: "workshop",
143
- // referencedColumnName: "id",
144
- // },
145
- // inverseJoinColumn: {
146
- // name: "associate",
147
- // referencedColumnName: "id",
148
- // },
149
- // })
150
- ,
138
+ (0, typeorm_1.Column)({
139
+ default: 1,
140
+ type: "int",
141
+ width: 1,
142
+ comment: "Es el estado para verificar si se envía en la papelera o no.",
143
+ }),
144
+ __metadata("design:type", Number)
145
+ ], Workshop.prototype, "visible", void 0);
146
+ __decorate([
147
+ (0, typeorm_1.ManyToMany)(() => Associate_1.Associate, (associate) => associate.workshops_associated),
151
148
  __metadata("design:type", Array)
152
149
  ], Workshop.prototype, "associates", void 0);
153
150
  __decorate([
@@ -12,6 +12,7 @@ export declare class Workshops {
12
12
  created: Date;
13
13
  updated: Date | null;
14
14
  status: number;
15
+ visible: number;
15
16
  company_id: number;
16
17
  company_code: string;
17
18
  company_name: string;
@@ -66,6 +66,10 @@ __decorate([
66
66
  (0, typeorm_1.ViewColumn)(),
67
67
  __metadata("design:type", Number)
68
68
  ], Workshops.prototype, "status", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ViewColumn)(),
71
+ __metadata("design:type", Number)
72
+ ], Workshops.prototype, "visible", void 0);
69
73
  __decorate([
70
74
  (0, typeorm_1.ViewColumn)(),
71
75
  __metadata("design:type", Number)
@@ -12,6 +12,7 @@ export declare class WorkshopsByAssociate {
12
12
  created: Date;
13
13
  updated: Date | null;
14
14
  status: number;
15
+ visible: number;
15
16
  company_id: number;
16
17
  company_code: string;
17
18
  company_name: string;
@@ -66,6 +66,10 @@ __decorate([
66
66
  (0, typeorm_1.ViewColumn)(),
67
67
  __metadata("design:type", Number)
68
68
  ], WorkshopsByAssociate.prototype, "status", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ViewColumn)(),
71
+ __metadata("design:type", Number)
72
+ ], WorkshopsByAssociate.prototype, "visible", void 0);
69
73
  __decorate([
70
74
  (0, typeorm_1.ViewColumn)(),
71
75
  __metadata("design:type", Number)
@@ -136,6 +140,6 @@ __decorate([
136
140
  ], WorkshopsByAssociate.prototype, "associates_count", void 0);
137
141
  exports.WorkshopsByAssociate = WorkshopsByAssociate = __decorate([
138
142
  (0, typeorm_1.ViewEntity)({
139
- name: "workshops_by_associate"
143
+ name: "workshops_by_associate",
140
144
  })
141
145
  ], WorkshopsByAssociate);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },