@asumano/worklip-typeorm-db 1.1.30 → 1.1.31
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/Reminder.d.ts +7 -3
- package/dist/entities/Reminder.js +33 -3
- package/dist/entities/ServiceOrder.d.ts +2 -0
- package/dist/entities/ServiceOrder.js +5 -0
- package/dist/filters/ClientsForTheTable.js +1 -1
- package/dist/filters/ServicesOrderForTheTable.js +18 -1
- package/dist/filters/VehiclesForTheTable.js +1 -1
- package/dist/views/Reminders.d.ts +71 -0
- package/dist/views/Reminders.js +292 -0
- package/dist/views/ServicesOrder.d.ts +1 -0
- package/dist/views/ServicesOrder.js +4 -0
- package/package.json +1 -1
|
@@ -2,14 +2,18 @@ import { Associate } from "./Associate";
|
|
|
2
2
|
import { Client } from "./Client";
|
|
3
3
|
import { Vehicle } from "./Vehicle";
|
|
4
4
|
import { Workshop } from "./Workshop";
|
|
5
|
+
import { ServiceOrder } from "./ServiceOrder";
|
|
5
6
|
export declare class Reminder {
|
|
6
7
|
id: number;
|
|
7
8
|
workshop: Workshop;
|
|
8
|
-
vehicle: Vehicle;
|
|
9
|
+
vehicle: Vehicle | null;
|
|
9
10
|
client: Client;
|
|
10
|
-
associate: Associate;
|
|
11
|
+
associate: Associate | null;
|
|
12
|
+
service_order: ServiceOrder | null;
|
|
11
13
|
title: string;
|
|
12
|
-
|
|
14
|
+
content: string;
|
|
15
|
+
details: any | null;
|
|
13
16
|
reminder_date: string;
|
|
17
|
+
send_via: number;
|
|
14
18
|
status: number;
|
|
15
19
|
}
|
|
@@ -15,6 +15,7 @@ const Associate_1 = require("./Associate");
|
|
|
15
15
|
const Client_1 = require("./Client");
|
|
16
16
|
const Vehicle_1 = require("./Vehicle");
|
|
17
17
|
const Workshop_1 = require("./Workshop");
|
|
18
|
+
const ServiceOrder_1 = require("./ServiceOrder");
|
|
18
19
|
let Reminder = class Reminder {
|
|
19
20
|
};
|
|
20
21
|
exports.Reminder = Reminder;
|
|
@@ -37,9 +38,10 @@ __decorate([
|
|
|
37
38
|
(0, typeorm_1.ManyToOne)(() => Vehicle_1.Vehicle, (vehicle) => vehicle.reminders, {
|
|
38
39
|
onDelete: "RESTRICT",
|
|
39
40
|
onUpdate: "NO ACTION",
|
|
41
|
+
nullable: true,
|
|
40
42
|
}),
|
|
41
43
|
(0, typeorm_1.JoinColumn)({ name: "vehicle" }),
|
|
42
|
-
__metadata("design:type",
|
|
44
|
+
__metadata("design:type", Object)
|
|
43
45
|
], Reminder.prototype, "vehicle", void 0);
|
|
44
46
|
__decorate([
|
|
45
47
|
(0, typeorm_1.ManyToOne)(() => Client_1.Client, (client) => client.reminders, {
|
|
@@ -53,10 +55,20 @@ __decorate([
|
|
|
53
55
|
(0, typeorm_1.ManyToOne)(() => Associate_1.Associate, (associate) => associate.reminders, {
|
|
54
56
|
onDelete: "RESTRICT",
|
|
55
57
|
onUpdate: "NO ACTION",
|
|
58
|
+
nullable: true,
|
|
56
59
|
}),
|
|
57
60
|
(0, typeorm_1.JoinColumn)({ name: "associate" }),
|
|
58
|
-
__metadata("design:type",
|
|
61
|
+
__metadata("design:type", Object)
|
|
59
62
|
], Reminder.prototype, "associate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.ManyToOne)(() => ServiceOrder_1.ServiceOrder, (serviceOrder) => serviceOrder.reminders, {
|
|
65
|
+
onDelete: "RESTRICT",
|
|
66
|
+
onUpdate: "NO ACTION",
|
|
67
|
+
nullable: true,
|
|
68
|
+
}),
|
|
69
|
+
(0, typeorm_1.JoinColumn)({ name: "service_order" }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], Reminder.prototype, "service_order", void 0);
|
|
60
72
|
__decorate([
|
|
61
73
|
(0, typeorm_1.Column)({
|
|
62
74
|
type: "varchar",
|
|
@@ -69,9 +81,18 @@ __decorate([
|
|
|
69
81
|
(0, typeorm_1.Column)({
|
|
70
82
|
type: "varchar",
|
|
71
83
|
length: 255,
|
|
72
|
-
comment: "
|
|
84
|
+
comment: "Contenido del recordatorio.",
|
|
73
85
|
}),
|
|
74
86
|
__metadata("design:type", String)
|
|
87
|
+
], Reminder.prototype, "content", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
type: "json",
|
|
91
|
+
nullable: true,
|
|
92
|
+
default: null,
|
|
93
|
+
comment: "Campo de tipo json para almacenar datos que se necesitan.",
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", Object)
|
|
75
96
|
], Reminder.prototype, "details", void 0);
|
|
76
97
|
__decorate([
|
|
77
98
|
(0, typeorm_1.Column)({
|
|
@@ -80,6 +101,15 @@ __decorate([
|
|
|
80
101
|
}),
|
|
81
102
|
__metadata("design:type", String)
|
|
82
103
|
], Reminder.prototype, "reminder_date", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({
|
|
106
|
+
default: 1,
|
|
107
|
+
type: "int",
|
|
108
|
+
width: 1,
|
|
109
|
+
comment: "Enviar vía:\r\n1: Correo electrónico.\r\n2: Teléfono.\r\n3. Ambos.",
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], Reminder.prototype, "send_via", void 0);
|
|
83
113
|
__decorate([
|
|
84
114
|
(0, typeorm_1.Column)({
|
|
85
115
|
default: 0,
|
|
@@ -4,6 +4,7 @@ import { Vehicle } from "./Vehicle";
|
|
|
4
4
|
import { Workshop } from "./Workshop";
|
|
5
5
|
import { ServiceOrderHistory } from "./ServiceOrderHistory";
|
|
6
6
|
import { MediaFile } from "./MediaFile";
|
|
7
|
+
import { Reminder } from "./Reminder";
|
|
7
8
|
export declare class ServiceOrder {
|
|
8
9
|
id: number;
|
|
9
10
|
code: string;
|
|
@@ -19,4 +20,5 @@ export declare class ServiceOrder {
|
|
|
19
20
|
status: number;
|
|
20
21
|
service_order_history: ServiceOrderHistory[];
|
|
21
22
|
media_files: MediaFile[];
|
|
23
|
+
reminders: Reminder[];
|
|
22
24
|
}
|
|
@@ -17,6 +17,7 @@ const Vehicle_1 = require("./Vehicle");
|
|
|
17
17
|
const Workshop_1 = require("./Workshop");
|
|
18
18
|
const ServiceOrderHistory_1 = require("./ServiceOrderHistory");
|
|
19
19
|
const MediaFile_1 = require("./MediaFile");
|
|
20
|
+
const Reminder_1 = require("./Reminder");
|
|
20
21
|
let ServiceOrder = class ServiceOrder {
|
|
21
22
|
};
|
|
22
23
|
exports.ServiceOrder = ServiceOrder;
|
|
@@ -130,6 +131,10 @@ __decorate([
|
|
|
130
131
|
(0, typeorm_1.OneToMany)(() => MediaFile_1.MediaFile, (mediaFile) => mediaFile.service_order),
|
|
131
132
|
__metadata("design:type", Array)
|
|
132
133
|
], ServiceOrder.prototype, "media_files", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.OneToMany)(() => Reminder_1.Reminder, (reminder) => reminder.service_order),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], ServiceOrder.prototype, "reminders", void 0);
|
|
133
138
|
exports.ServiceOrder = ServiceOrder = __decorate([
|
|
134
139
|
(0, typeorm_1.Entity)({
|
|
135
140
|
comment: "Órdenes de servicio del concesionario/taller.",
|
|
@@ -10,7 +10,7 @@ async function getClientsForTheTable(repository, { company, status, lazyEvent })
|
|
|
10
10
|
// DOC: Filtro global
|
|
11
11
|
if (lazyEvent.filters["global"] && lazyEvent.filters["global"].value) {
|
|
12
12
|
const globalValue = `%${lazyEvent.filters["global"].value.toLowerCase()}%`;
|
|
13
|
-
queryBuilder.andWhere("(document LIKE :globalValue OR LOWER(name) LIKE :globalValue OR LOWER(surname) LIKE :globalValue OR LOWER(full_name) LIKE :globalValue OR LOWER(email) LIKE :globalValue OR phone LIKE :globalValue OR LOWER(city_name) LIKE :globalValue)", { globalValue });
|
|
13
|
+
queryBuilder.andWhere("(document LIKE :globalValue OR LOWER(name) LIKE :globalValue OR LOWER(surname) LIKE :globalValue OR LOWER(full_name) LIKE :globalValue OR LOWER(email) LIKE :globalValue OR phone LIKE :globalValue OR LOWER(city_name) LIKE :globalValue OR total_service_orders LIKE :globalValue)", { globalValue });
|
|
14
14
|
}
|
|
15
15
|
// DOC: Filtro por estado FILTRO POR DEFECTO.
|
|
16
16
|
if (status !== null && status >= 0) {
|
|
@@ -10,7 +10,7 @@ async function getServicesOrderForTheTable(repository, { company, workshop, stat
|
|
|
10
10
|
// DOC: Filtro global
|
|
11
11
|
if (lazyEvent.filters["global"] && lazyEvent.filters["global"].value) {
|
|
12
12
|
const globalValue = `%${lazyEvent.filters["global"].value.toLowerCase()}%`;
|
|
13
|
-
queryBuilder.andWhere("(LOWER(code) LIKE :globalValue OR LOWER(title) LIKE :globalValue OR client_document LIKE :globalValue OR LOWER(client_name) LIKE :globalValue OR LOWER(client_surname) LIKE :globalValue OR LOWER(client_full_name) LIKE :globalValue OR LOWER(workshop_name) LIKE :globalValue OR LOWER(vehicle_plate) LIKE :globalValue OR LOWER(template_code) LIKE :globalValue OR LOWER(template_name) LIKE :globalValue)", { globalValue });
|
|
13
|
+
queryBuilder.andWhere("(LOWER(code) LIKE :globalValue OR LOWER(title) LIKE :globalValue OR client_document LIKE :globalValue OR LOWER(client_name) LIKE :globalValue OR LOWER(client_surname) LIKE :globalValue OR LOWER(client_full_name) LIKE :globalValue OR LOWER(workshop_name) LIKE :globalValue OR LOWER(vehicle_plate) LIKE :globalValue OR LOWER(template_code) LIKE :globalValue OR LOWER(template_name) LIKE :globalValue OR history_count LIKE :globalValue OR reminder_count LIKE :globalValue)", { globalValue });
|
|
14
14
|
}
|
|
15
15
|
// DOC: Filtro por estado FILTRO POR DEFECTO.
|
|
16
16
|
if (status !== null && status >= 0) {
|
|
@@ -94,6 +94,23 @@ async function getServicesOrderForTheTable(repository, { company, workshop, stat
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
if (key === "reminder_count") {
|
|
98
|
+
if (Array.isArray(value) && value.length === 2) {
|
|
99
|
+
const [from, to] = value;
|
|
100
|
+
if (from !== null && to === null) {
|
|
101
|
+
queryBuilder.andWhere(`${accessKey} >= :from`, { from });
|
|
102
|
+
}
|
|
103
|
+
else if (from === null && to !== null) {
|
|
104
|
+
queryBuilder.andWhere(`${accessKey} <= :to`, { to });
|
|
105
|
+
}
|
|
106
|
+
else if (from !== null && to !== null) {
|
|
107
|
+
queryBuilder.andWhere(`${accessKey} BETWEEN :from AND :to`, {
|
|
108
|
+
from,
|
|
109
|
+
to,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
97
114
|
break;
|
|
98
115
|
case "contains": // DOC: Si el modo de coincidencia es "contains".
|
|
99
116
|
queryBuilder.andWhere(`LOWER(${accessKey}) LIKE :${key}`, {
|
|
@@ -10,7 +10,7 @@ async function getVehiclesForTheTable(repository, { company, status, lazyEvent }
|
|
|
10
10
|
// DOC: Filtro global
|
|
11
11
|
if (lazyEvent.filters["global"] && lazyEvent.filters["global"].value) {
|
|
12
12
|
const globalValue = `%${lazyEvent.filters["global"].value.toLowerCase()}%`;
|
|
13
|
-
queryBuilder.andWhere("(LOWER(plate) LIKE :globalValue OR mileage LIKE :globalValue OR model LIKE :globalValue OR LOWER(version) LIKE :globalValue OR LOWER(vehicle_type_name) LIKE :globalValue OR LOWER(brand_name) LIKE :globalValue)", { globalValue });
|
|
13
|
+
queryBuilder.andWhere("(LOWER(plate) LIKE :globalValue OR mileage LIKE :globalValue OR model LIKE :globalValue OR LOWER(version) LIKE :globalValue OR LOWER(vehicle_type_name) LIKE :globalValue OR LOWER(brand_name) LIKE :globalValue OR total_service_orders LIKE :globalValue)", { globalValue });
|
|
14
14
|
}
|
|
15
15
|
// DOC: Filtro por estado FILTRO POR DEFECTO.
|
|
16
16
|
if (status !== null && status >= 0) {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare class Reminders {
|
|
2
|
+
id: number;
|
|
3
|
+
workshop: number;
|
|
4
|
+
vehicle: number;
|
|
5
|
+
client: number;
|
|
6
|
+
associate: number | null;
|
|
7
|
+
service_order: number | null;
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
details: any | null;
|
|
11
|
+
reminder_date: string;
|
|
12
|
+
send_via: string;
|
|
13
|
+
status: number;
|
|
14
|
+
workshop_id: number;
|
|
15
|
+
workshop_company: number;
|
|
16
|
+
workshop_name: string;
|
|
17
|
+
workshop_code: string;
|
|
18
|
+
workshop_details: any | null;
|
|
19
|
+
workshop_address: string;
|
|
20
|
+
workshop_latitude: number;
|
|
21
|
+
workshop_longitude: number;
|
|
22
|
+
workshop_created: Date;
|
|
23
|
+
workshop_updated: Date | null;
|
|
24
|
+
workshop_status: number;
|
|
25
|
+
vehicle_id: number;
|
|
26
|
+
vehicle_plate: string;
|
|
27
|
+
vehicle_brand: number;
|
|
28
|
+
vehicle_mileage: number;
|
|
29
|
+
vehicle_model: number;
|
|
30
|
+
vehicle_version: string;
|
|
31
|
+
vehicle_details: any | null;
|
|
32
|
+
vehicle_status: number;
|
|
33
|
+
client_id: number;
|
|
34
|
+
client_document: string | null;
|
|
35
|
+
client_name: string;
|
|
36
|
+
client_surname: string;
|
|
37
|
+
client_full_name: string | null;
|
|
38
|
+
client_email: string;
|
|
39
|
+
client_phone: string;
|
|
40
|
+
client_city: number;
|
|
41
|
+
client_details: any | null;
|
|
42
|
+
client_status: number;
|
|
43
|
+
associate_id: number | null;
|
|
44
|
+
associate_code: string | null;
|
|
45
|
+
associate_company: number | null;
|
|
46
|
+
associate_document: string | null;
|
|
47
|
+
associate_name: string | null;
|
|
48
|
+
associate_surname: string | null;
|
|
49
|
+
associate_full_name: string | null;
|
|
50
|
+
associate_email: string | null;
|
|
51
|
+
associate_phone: string | null;
|
|
52
|
+
associate_address: string | null;
|
|
53
|
+
associate_details: any | null;
|
|
54
|
+
associate_created: Date | null;
|
|
55
|
+
associate_updated: Date | null;
|
|
56
|
+
associate_owner: number | null;
|
|
57
|
+
associate_status: number | null;
|
|
58
|
+
associate_visible: number | null;
|
|
59
|
+
service_order_id: number | null;
|
|
60
|
+
service_order_code: string | null;
|
|
61
|
+
service_order_title: string | null;
|
|
62
|
+
service_order_workshop: number | null;
|
|
63
|
+
service_order_vehicle: number | null;
|
|
64
|
+
service_order_client: number | null;
|
|
65
|
+
service_order_template: number | null;
|
|
66
|
+
service_order_data: any | null;
|
|
67
|
+
service_order_comments: string | null;
|
|
68
|
+
service_order_created: Date | null;
|
|
69
|
+
service_order_updated: Date | null;
|
|
70
|
+
service_order_status: number | null;
|
|
71
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Reminders = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
class Reminders {
|
|
15
|
+
}
|
|
16
|
+
exports.Reminders = Reminders;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.ViewColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Reminders.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ViewColumn)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Reminders.prototype, "workshop", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ViewColumn)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], Reminders.prototype, "vehicle", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ViewColumn)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Reminders.prototype, "client", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ViewColumn)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], Reminders.prototype, "associate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ViewColumn)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], Reminders.prototype, "service_order", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ViewColumn)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Reminders.prototype, "title", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Reminders.prototype, "content", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Reminders.prototype, "details", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ViewColumn)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Reminders.prototype, "reminder_date", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Reminders.prototype, "send_via", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Reminders.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.ViewColumn)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Reminders.prototype, "workshop_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ViewColumn)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Reminders.prototype, "workshop_company", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ViewColumn)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Reminders.prototype, "workshop_name", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ViewColumn)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Reminders.prototype, "workshop_code", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.ViewColumn)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], Reminders.prototype, "workshop_details", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.ViewColumn)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Reminders.prototype, "workshop_address", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.ViewColumn)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], Reminders.prototype, "workshop_latitude", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ViewColumn)(),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], Reminders.prototype, "workshop_longitude", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.ViewColumn)(),
|
|
99
|
+
__metadata("design:type", Date)
|
|
100
|
+
], Reminders.prototype, "workshop_created", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.ViewColumn)(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], Reminders.prototype, "workshop_updated", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.ViewColumn)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], Reminders.prototype, "workshop_status", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.ViewColumn)(),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], Reminders.prototype, "vehicle_id", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.ViewColumn)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], Reminders.prototype, "vehicle_plate", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.ViewColumn)(),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], Reminders.prototype, "vehicle_brand", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.ViewColumn)(),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], Reminders.prototype, "vehicle_mileage", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.ViewColumn)(),
|
|
127
|
+
__metadata("design:type", Number)
|
|
128
|
+
], Reminders.prototype, "vehicle_model", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.ViewColumn)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], Reminders.prototype, "vehicle_version", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.ViewColumn)(),
|
|
135
|
+
__metadata("design:type", Object)
|
|
136
|
+
], Reminders.prototype, "vehicle_details", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.ViewColumn)(),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], Reminders.prototype, "vehicle_status", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.ViewColumn)(),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], Reminders.prototype, "client_id", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.ViewColumn)(),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], Reminders.prototype, "client_document", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.ViewColumn)(),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], Reminders.prototype, "client_name", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.ViewColumn)(),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], Reminders.prototype, "client_surname", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.ViewColumn)(),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], Reminders.prototype, "client_full_name", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.ViewColumn)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], Reminders.prototype, "client_email", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.ViewColumn)(),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], Reminders.prototype, "client_phone", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.ViewColumn)(),
|
|
171
|
+
__metadata("design:type", Number)
|
|
172
|
+
], Reminders.prototype, "client_city", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.ViewColumn)(),
|
|
175
|
+
__metadata("design:type", Object)
|
|
176
|
+
], Reminders.prototype, "client_details", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.ViewColumn)(),
|
|
179
|
+
__metadata("design:type", Number)
|
|
180
|
+
], Reminders.prototype, "client_status", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.ViewColumn)(),
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
|
+
], Reminders.prototype, "associate_id", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.ViewColumn)(),
|
|
187
|
+
__metadata("design:type", Object)
|
|
188
|
+
], Reminders.prototype, "associate_code", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.ViewColumn)(),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], Reminders.prototype, "associate_company", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.ViewColumn)(),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], Reminders.prototype, "associate_document", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.ViewColumn)(),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], Reminders.prototype, "associate_name", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.ViewColumn)(),
|
|
203
|
+
__metadata("design:type", Object)
|
|
204
|
+
], Reminders.prototype, "associate_surname", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, typeorm_1.ViewColumn)(),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], Reminders.prototype, "associate_full_name", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.ViewColumn)(),
|
|
211
|
+
__metadata("design:type", Object)
|
|
212
|
+
], Reminders.prototype, "associate_email", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, typeorm_1.ViewColumn)(),
|
|
215
|
+
__metadata("design:type", Object)
|
|
216
|
+
], Reminders.prototype, "associate_phone", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.ViewColumn)(),
|
|
219
|
+
__metadata("design:type", Object)
|
|
220
|
+
], Reminders.prototype, "associate_address", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.ViewColumn)(),
|
|
223
|
+
__metadata("design:type", Object)
|
|
224
|
+
], Reminders.prototype, "associate_details", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, typeorm_1.ViewColumn)(),
|
|
227
|
+
__metadata("design:type", Object)
|
|
228
|
+
], Reminders.prototype, "associate_created", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, typeorm_1.ViewColumn)(),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], Reminders.prototype, "associate_updated", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.ViewColumn)(),
|
|
235
|
+
__metadata("design:type", Object)
|
|
236
|
+
], Reminders.prototype, "associate_owner", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, typeorm_1.ViewColumn)(),
|
|
239
|
+
__metadata("design:type", Object)
|
|
240
|
+
], Reminders.prototype, "associate_status", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, typeorm_1.ViewColumn)(),
|
|
243
|
+
__metadata("design:type", Object)
|
|
244
|
+
], Reminders.prototype, "associate_visible", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, typeorm_1.ViewColumn)(),
|
|
247
|
+
__metadata("design:type", Object)
|
|
248
|
+
], Reminders.prototype, "service_order_id", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, typeorm_1.ViewColumn)(),
|
|
251
|
+
__metadata("design:type", Object)
|
|
252
|
+
], Reminders.prototype, "service_order_code", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, typeorm_1.ViewColumn)(),
|
|
255
|
+
__metadata("design:type", Object)
|
|
256
|
+
], Reminders.prototype, "service_order_title", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, typeorm_1.ViewColumn)(),
|
|
259
|
+
__metadata("design:type", Object)
|
|
260
|
+
], Reminders.prototype, "service_order_workshop", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
(0, typeorm_1.ViewColumn)(),
|
|
263
|
+
__metadata("design:type", Object)
|
|
264
|
+
], Reminders.prototype, "service_order_vehicle", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, typeorm_1.ViewColumn)(),
|
|
267
|
+
__metadata("design:type", Object)
|
|
268
|
+
], Reminders.prototype, "service_order_client", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, typeorm_1.ViewColumn)(),
|
|
271
|
+
__metadata("design:type", Object)
|
|
272
|
+
], Reminders.prototype, "service_order_template", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
(0, typeorm_1.ViewColumn)(),
|
|
275
|
+
__metadata("design:type", Object)
|
|
276
|
+
], Reminders.prototype, "service_order_data", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, typeorm_1.ViewColumn)(),
|
|
279
|
+
__metadata("design:type", Object)
|
|
280
|
+
], Reminders.prototype, "service_order_comments", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, typeorm_1.ViewColumn)(),
|
|
283
|
+
__metadata("design:type", Object)
|
|
284
|
+
], Reminders.prototype, "service_order_created", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, typeorm_1.ViewColumn)(),
|
|
287
|
+
__metadata("design:type", Object)
|
|
288
|
+
], Reminders.prototype, "service_order_updated", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, typeorm_1.ViewColumn)(),
|
|
291
|
+
__metadata("design:type", Object)
|
|
292
|
+
], Reminders.prototype, "service_order_status", void 0);
|
|
@@ -218,6 +218,10 @@ __decorate([
|
|
|
218
218
|
(0, typeorm_1.ViewColumn)(),
|
|
219
219
|
__metadata("design:type", Number)
|
|
220
220
|
], ServicesOrder.prototype, "history_count", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.ViewColumn)(),
|
|
223
|
+
__metadata("design:type", Number)
|
|
224
|
+
], ServicesOrder.prototype, "reminder_count", void 0);
|
|
221
225
|
exports.ServicesOrder = ServicesOrder = __decorate([
|
|
222
226
|
(0, typeorm_1.ViewEntity)({
|
|
223
227
|
name: "services_order",
|