uaxi-shared-entities 1.0.63 → 1.0.65
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.
- package/dist/entities/vehicle-inspection.entity.d.ts +31 -8
- package/dist/entities/vehicle-inspection.entity.d.ts.map +1 -1
- package/dist/entities/vehicle-inspection.entity.js +91 -0
- package/dist/entities/vehicle-inspection.entity.js.map +1 -1
- package/package.json +1 -1
- package/src/entities/vehicle-inspection.entity.ts +98 -9
|
@@ -14,14 +14,19 @@ export interface VehicleInspectionAttributes {
|
|
|
14
14
|
isApproved: boolean;
|
|
15
15
|
approvedAt: Date | null;
|
|
16
16
|
approvedBy: string | null;
|
|
17
|
-
nombreConductor
|
|
18
|
-
version
|
|
19
|
-
poliza
|
|
20
|
-
numeroPoliza
|
|
21
|
-
tc
|
|
22
|
-
tipoLicencia
|
|
23
|
-
vigenciaLicencia
|
|
24
|
-
kilometros
|
|
17
|
+
nombreConductor: string | null;
|
|
18
|
+
version: string | null;
|
|
19
|
+
poliza: string | null;
|
|
20
|
+
numeroPoliza: string | null;
|
|
21
|
+
tc: string | null;
|
|
22
|
+
tipoLicencia: string | null;
|
|
23
|
+
vigenciaLicencia: string | null;
|
|
24
|
+
kilometros: number | null;
|
|
25
|
+
marca: string | null;
|
|
26
|
+
color: string | null;
|
|
27
|
+
modelo: string | null;
|
|
28
|
+
anio: number | null;
|
|
29
|
+
placa: string | null;
|
|
25
30
|
createdAt: Date;
|
|
26
31
|
updatedAt: Date;
|
|
27
32
|
deletedAt: Date;
|
|
@@ -43,6 +48,11 @@ export interface CreateVehicleInspectionData {
|
|
|
43
48
|
tipoLicencia?: string;
|
|
44
49
|
vigenciaLicencia?: string;
|
|
45
50
|
kilometros?: number;
|
|
51
|
+
marca?: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
modelo?: string;
|
|
54
|
+
anio?: number;
|
|
55
|
+
placa?: string;
|
|
46
56
|
}
|
|
47
57
|
export declare class VehicleInspection extends Model<VehicleInspectionAttributes, CreateVehicleInspectionData> {
|
|
48
58
|
id: string;
|
|
@@ -54,6 +64,19 @@ export declare class VehicleInspection extends Model<VehicleInspectionAttributes
|
|
|
54
64
|
isApproved: boolean;
|
|
55
65
|
approvedAt: Date | null;
|
|
56
66
|
approvedBy: string | null;
|
|
67
|
+
nombreConductor: string | null;
|
|
68
|
+
version: string | null;
|
|
69
|
+
poliza: string | null;
|
|
70
|
+
numeroPoliza: string | null;
|
|
71
|
+
tc: string | null;
|
|
72
|
+
tipoLicencia: string | null;
|
|
73
|
+
vigenciaLicencia: string | null;
|
|
74
|
+
kilometros: number | null;
|
|
75
|
+
marca: string | null;
|
|
76
|
+
color: string | null;
|
|
77
|
+
modelo: string | null;
|
|
78
|
+
anio: number | null;
|
|
79
|
+
placa: string | null;
|
|
57
80
|
createdAt: Date;
|
|
58
81
|
updatedAt: Date;
|
|
59
82
|
deletedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle-inspection.entity.d.ts","sourceRoot":"","sources":["../../src/entities/vehicle-inspection.entity.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,KAAK,EAGN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,GAAG,I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|
}),
|
|
89
89
|
__metadata("design:type", Object)
|
|
90
90
|
], VehicleInspection.prototype, "approvedBy", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, sequelize_typescript_1.Column)({
|
|
93
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
94
|
+
allowNull: true,
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], VehicleInspection.prototype, "nombreConductor", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, sequelize_typescript_1.Column)({
|
|
100
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
101
|
+
allowNull: true,
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], VehicleInspection.prototype, "version", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, sequelize_typescript_1.Column)({
|
|
107
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
108
|
+
allowNull: true,
|
|
109
|
+
}),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], VehicleInspection.prototype, "poliza", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, sequelize_typescript_1.Column)({
|
|
114
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
115
|
+
allowNull: true,
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], VehicleInspection.prototype, "numeroPoliza", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, sequelize_typescript_1.Column)({
|
|
121
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
122
|
+
allowNull: true,
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], VehicleInspection.prototype, "tc", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, sequelize_typescript_1.Column)({
|
|
128
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
129
|
+
allowNull: true,
|
|
130
|
+
}),
|
|
131
|
+
__metadata("design:type", Object)
|
|
132
|
+
], VehicleInspection.prototype, "tipoLicencia", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, sequelize_typescript_1.Column)({
|
|
135
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
136
|
+
allowNull: true,
|
|
137
|
+
}),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], VehicleInspection.prototype, "vigenciaLicencia", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, sequelize_typescript_1.Column)({
|
|
142
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
143
|
+
allowNull: true,
|
|
144
|
+
}),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], VehicleInspection.prototype, "kilometros", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, sequelize_typescript_1.Column)({
|
|
149
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
150
|
+
allowNull: true,
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], VehicleInspection.prototype, "marca", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, sequelize_typescript_1.Column)({
|
|
156
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
157
|
+
allowNull: true,
|
|
158
|
+
}),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], VehicleInspection.prototype, "color", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, sequelize_typescript_1.Column)({
|
|
163
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
164
|
+
allowNull: true,
|
|
165
|
+
}),
|
|
166
|
+
__metadata("design:type", Object)
|
|
167
|
+
], VehicleInspection.prototype, "modelo", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, sequelize_typescript_1.Column)({
|
|
170
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
171
|
+
allowNull: true,
|
|
172
|
+
}),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], VehicleInspection.prototype, "anio", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, sequelize_typescript_1.Column)({
|
|
177
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
178
|
+
allowNull: true,
|
|
179
|
+
}),
|
|
180
|
+
__metadata("design:type", Object)
|
|
181
|
+
], VehicleInspection.prototype, "placa", void 0);
|
|
91
182
|
__decorate([
|
|
92
183
|
sequelize_typescript_1.CreatedAt,
|
|
93
184
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle-inspection.entity.js","sourceRoot":"","sources":["../../src/entities/vehicle-inspection.entity.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,2BAA2B;AAC3B,gDAAgD;;;;;;;;;;;;AAEhD,+DAW8B;AAC9B,qDAA2C;AAC3C,6FAAiF;AACjF,6FAAiF;AACjF,+FAAmF;AACnF,yFAA6E;
|
|
1
|
+
{"version":3,"file":"vehicle-inspection.entity.js","sourceRoot":"","sources":["../../src/entities/vehicle-inspection.entity.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,2BAA2B;AAC3B,gDAAgD;;;;;;;;;;;;AAEhD,+DAW8B;AAC9B,qDAA2C;AAC3C,6FAAiF;AACjF,6FAAiF;AACjF,+FAAmF;AACnF,yFAA6E;AA+DtE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAGtC;CAiKA,CAAA;AApKY,8CAAiB;AASpB;IALP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,YAAY,EAAE,+BAAQ,CAAC,MAAM;QAC7B,UAAU,EAAE,IAAI;KACjB,CAAC;;6CACiB;AAOnB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,KAAK;KACjB,CAAC;;oDACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;Q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,CAAC,wBAAO,CAAC;8BAChB,wBAAO;kDAAC;AAGjB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,8DAAyB,EAAE,cAAc,CAAC;;wDACd;AAG3C;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,8DAAyB,EAAE,cAAc,CAAC;;wDACd;AAG3C;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,gEAA0B,EAAE,cAAc,CAAC;;yDACb;AAG7C;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,0DAAuB,EAAE,cAAc,CAAC;;iDACrB;4BAnKvB,iBAAiB;IAL7B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,qBAAqB;QAChC,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI,EAAE,eAAe;KAChC,CAAC;GACW,iBAAiB,CAoK7B"}
|
package/package.json
CHANGED
|
@@ -31,15 +31,20 @@ export interface VehicleInspectionAttributes {
|
|
|
31
31
|
isApproved: boolean; // Si la inspección fue aprobada
|
|
32
32
|
approvedAt: Date | null;
|
|
33
33
|
approvedBy: string | null; // ID del usuario que aprobó
|
|
34
|
-
// Campos
|
|
35
|
-
nombreConductor
|
|
36
|
-
version
|
|
37
|
-
poliza
|
|
38
|
-
numeroPoliza
|
|
39
|
-
tc
|
|
40
|
-
tipoLicencia
|
|
41
|
-
vigenciaLicencia
|
|
42
|
-
kilometros
|
|
34
|
+
// Campos adicionales que se almacenan en BD
|
|
35
|
+
nombreConductor: string | null; // Nombre del conductor
|
|
36
|
+
version: string | null; // Versión
|
|
37
|
+
poliza: string | null; // Póliza
|
|
38
|
+
numeroPoliza: string | null; // Número de póliza
|
|
39
|
+
tc: string | null; // TC
|
|
40
|
+
tipoLicencia: string | null; // Tipo de licencia
|
|
41
|
+
vigenciaLicencia: string | null; // Vigencia de licencia
|
|
42
|
+
kilometros: number | null; // Kilómetros del vehículo
|
|
43
|
+
marca: string | null; // Marca del vehículo
|
|
44
|
+
color: string | null; // Color del vehículo
|
|
45
|
+
modelo: string | null; // Modelo del vehículo
|
|
46
|
+
anio: number | null; // Año del vehículo
|
|
47
|
+
placa: string | null; // Placa del vehículo
|
|
43
48
|
createdAt: Date;
|
|
44
49
|
updatedAt: Date;
|
|
45
50
|
deletedAt: Date;
|
|
@@ -64,6 +69,11 @@ export interface CreateVehicleInspectionData {
|
|
|
64
69
|
tipoLicencia?: string;
|
|
65
70
|
vigenciaLicencia?: string;
|
|
66
71
|
kilometros?: number;
|
|
72
|
+
marca?: string;
|
|
73
|
+
color?: string;
|
|
74
|
+
modelo?: string;
|
|
75
|
+
anio?: number;
|
|
76
|
+
placa?: string;
|
|
67
77
|
}
|
|
68
78
|
|
|
69
79
|
@Table({
|
|
@@ -132,6 +142,85 @@ export class VehicleInspection extends Model<
|
|
|
132
142
|
})
|
|
133
143
|
approvedBy: string | null;
|
|
134
144
|
|
|
145
|
+
// Campos de display que ahora se almacenan en BD
|
|
146
|
+
@Column({
|
|
147
|
+
type: DataType.STRING,
|
|
148
|
+
allowNull: true,
|
|
149
|
+
})
|
|
150
|
+
nombreConductor: string | null;
|
|
151
|
+
|
|
152
|
+
@Column({
|
|
153
|
+
type: DataType.STRING,
|
|
154
|
+
allowNull: true,
|
|
155
|
+
})
|
|
156
|
+
version: string | null;
|
|
157
|
+
|
|
158
|
+
@Column({
|
|
159
|
+
type: DataType.STRING,
|
|
160
|
+
allowNull: true,
|
|
161
|
+
})
|
|
162
|
+
poliza: string | null;
|
|
163
|
+
|
|
164
|
+
@Column({
|
|
165
|
+
type: DataType.STRING,
|
|
166
|
+
allowNull: true,
|
|
167
|
+
})
|
|
168
|
+
numeroPoliza: string | null;
|
|
169
|
+
|
|
170
|
+
@Column({
|
|
171
|
+
type: DataType.STRING,
|
|
172
|
+
allowNull: true,
|
|
173
|
+
})
|
|
174
|
+
tc: string | null;
|
|
175
|
+
|
|
176
|
+
@Column({
|
|
177
|
+
type: DataType.STRING,
|
|
178
|
+
allowNull: true,
|
|
179
|
+
})
|
|
180
|
+
tipoLicencia: string | null;
|
|
181
|
+
|
|
182
|
+
@Column({
|
|
183
|
+
type: DataType.STRING,
|
|
184
|
+
allowNull: true,
|
|
185
|
+
})
|
|
186
|
+
vigenciaLicencia: string | null;
|
|
187
|
+
|
|
188
|
+
@Column({
|
|
189
|
+
type: DataType.INTEGER,
|
|
190
|
+
allowNull: true,
|
|
191
|
+
})
|
|
192
|
+
kilometros: number | null;
|
|
193
|
+
|
|
194
|
+
@Column({
|
|
195
|
+
type: DataType.STRING,
|
|
196
|
+
allowNull: true,
|
|
197
|
+
})
|
|
198
|
+
marca: string | null;
|
|
199
|
+
|
|
200
|
+
@Column({
|
|
201
|
+
type: DataType.STRING,
|
|
202
|
+
allowNull: true,
|
|
203
|
+
})
|
|
204
|
+
color: string | null;
|
|
205
|
+
|
|
206
|
+
@Column({
|
|
207
|
+
type: DataType.STRING,
|
|
208
|
+
allowNull: true,
|
|
209
|
+
})
|
|
210
|
+
modelo: string | null;
|
|
211
|
+
|
|
212
|
+
@Column({
|
|
213
|
+
type: DataType.INTEGER,
|
|
214
|
+
allowNull: true,
|
|
215
|
+
})
|
|
216
|
+
anio: number | null;
|
|
217
|
+
|
|
218
|
+
@Column({
|
|
219
|
+
type: DataType.STRING,
|
|
220
|
+
allowNull: true,
|
|
221
|
+
})
|
|
222
|
+
placa: string | null;
|
|
223
|
+
|
|
135
224
|
@CreatedAt
|
|
136
225
|
declare createdAt: Date;
|
|
137
226
|
|