test-entity-library-asm 3.9.34 → 3.9.36
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/Category.js +2 -3
- package/dist/entities/CodeRedemptionHistoryCompany.js +2 -2
- package/dist/entities/CodeRedemptionHistoryUser.d.ts +1 -1
- package/dist/entities/CodeRedemptionHistoryUser.js +3 -3
- package/dist/entities/Company.js +2 -2
- package/dist/entities/CountryHoliday.js +1 -1
- package/dist/entities/DiscountCodeCompany.d.ts +1 -1
- package/dist/entities/DiscountCodeCompany.js +4 -4
- package/dist/entities/DiscountCodeUser.js +3 -3
- package/dist/entities/Gallery.js +1 -2
- package/dist/entities/Local.js +2 -2
- package/dist/entities/LocalPlan.js +2 -2
- package/dist/entities/LocalQualification.d.ts +1 -1
- package/dist/entities/LocalQualification.js +2 -3
- package/dist/entities/LocalReserve.js +2 -3
- package/dist/entities/LocalReserveStatus.d.ts +2 -2
- package/dist/entities/LocalReserveStatus.js +4 -4
- package/dist/entities/LocalTable.js +2 -3
- package/dist/entities/LocalTableReservePayment.js +2 -3
- package/dist/entities/LocalTableZone.js +2 -3
- package/dist/entities/Master.js +3 -3
- package/dist/entities/MasterNotification.js +1 -2
- package/dist/entities/MasterSession.js +3 -5
- package/dist/entities/Partner.js +2 -2
- package/dist/entities/PartnerNotification.js +1 -2
- package/dist/entities/PartnerSession.js +3 -5
- package/dist/entities/PaymentMethod.js +1 -2
- package/dist/entities/Plan.js +2 -2
- package/dist/entities/PosSystem.d.ts +4 -1
- package/dist/entities/PosSystem.js +30 -2
- package/dist/entities/Product.d.ts +2 -2
- package/dist/entities/Product.js +4 -5
- package/dist/entities/ReceiptConfig.js +2 -3
- package/dist/entities/Request.js +3 -4
- package/dist/entities/RequestInvoice.js +2 -3
- package/dist/entities/RequestLocal.d.ts +1 -1
- package/dist/entities/RequestLocal.js +3 -5
- package/dist/entities/RequestLocalHistory.js +2 -2
- package/dist/entities/RequestLocalPayment.js +2 -3
- package/dist/entities/RequestLocalTable.d.ts +1 -1
- package/dist/entities/RequestLocalTable.js +1 -1
- package/dist/entities/RequestPrint.js +1 -2
- package/dist/entities/ServicePlan.d.ts +1 -1
- package/dist/entities/ServicePlan.js +5 -4
- package/dist/entities/User.js +4 -4
- package/dist/entities/UserPaymentMethod.js +2 -3
- package/dist/views/DiscountsCodeUser.d.ts +2 -2
- package/dist/views/DiscountsCodeUser.js +6 -16
- package/dist/views/LocalReserves.d.ts +3 -3
- package/dist/views/LocalReserves.js +4 -14
- package/dist/views/LocalTableZonesFilter.d.ts +2 -2
- package/dist/views/LocalTableZonesFilter.js +3 -13
- package/dist/views/LocalsCompany.d.ts +10 -10
- package/dist/views/LocalsCompany.js +8 -18
- package/dist/views/LocalsCompanyInformationForTheTable.js +0 -8
- package/dist/views/MasterNotifications.js +1 -11
- package/dist/views/PartnerNotifications.js +1 -11
- package/dist/views/Partners.d.ts +2 -2
- package/dist/views/Partners.js +4 -14
- package/dist/views/ViewLocalsCompanies.d.ts +2 -2
- package/dist/views/ViewLocalsCompanies.js +4 -14
- package/package.json +1 -1
- package/src/entities/BusinessType.ts +0 -1
- package/src/entities/Category.ts +2 -3
- package/src/entities/CodeRedemptionHistoryCompany.ts +4 -4
- package/src/entities/CodeRedemptionHistoryUser.ts +5 -5
- package/src/entities/Company.ts +2 -2
- package/src/entities/CountryHoliday.ts +1 -2
- package/src/entities/DiscountCodeCompany.ts +6 -6
- package/src/entities/DiscountCodeUser.ts +4 -4
- package/src/entities/Gallery.ts +1 -2
- package/src/entities/Local.ts +2 -2
- package/src/entities/LocalPlan.ts +2 -2
- package/src/entities/LocalQualification.ts +2 -3
- package/src/entities/LocalReserve.ts +6 -7
- package/src/entities/LocalReserveStatus.ts +4 -4
- package/src/entities/LocalTable.ts +5 -6
- package/src/entities/LocalTableReservePayment.ts +6 -7
- package/src/entities/LocalTableZone.ts +2 -3
- package/src/entities/Master.ts +13 -8
- package/src/entities/MasterNotification.ts +1 -2
- package/src/entities/MasterSession.ts +3 -5
- package/src/entities/Partner.ts +2 -2
- package/src/entities/PartnerNotification.ts +1 -2
- package/src/entities/PartnerSession.ts +3 -5
- package/src/entities/PaymentMethod.ts +4 -5
- package/src/entities/Plan.ts +2 -2
- package/src/entities/PosSystem.ts +30 -4
- package/src/entities/Product.ts +14 -9
- package/src/entities/ReceiptConfig.ts +2 -3
- package/src/entities/Request.ts +3 -4
- package/src/entities/RequestInvoice.ts +3 -4
- package/src/entities/RequestLocal.ts +8 -10
- package/src/entities/RequestLocalHistory.ts +3 -3
- package/src/entities/RequestLocalPayment.ts +4 -5
- package/src/entities/RequestLocalTable.ts +1 -3
- package/src/entities/RequestPrint.ts +1 -2
- package/src/entities/ServicePlan.ts +6 -5
- package/src/entities/User.ts +10 -10
- package/src/entities/UserPaymentMethod.ts +4 -5
- package/src/views/DiscountsCodeUser.ts +34 -45
- package/src/views/LocalReserves.ts +6 -17
- package/src/views/LocalTableZonesFilter.ts +4 -15
- package/src/views/LocalsCompany.ts +44 -55
- package/src/views/LocalsCompanyInformationForTheTable.ts +0 -9
- package/src/views/MasterNotifications.ts +1 -12
- package/src/views/PartnerNotifications.ts +1 -12
- package/src/views/Partners.ts +4 -15
- package/src/views/ViewLocalsCompanies.ts +4 -15
|
@@ -57,16 +57,44 @@ __decorate([
|
|
|
57
57
|
(0, typeorm_1.ManyToOne)(() => __1.AuthenticationCredential, (authenticationCredential) => authenticationCredential.authenticationCredentials, {
|
|
58
58
|
onDelete: "RESTRICT",
|
|
59
59
|
onUpdate: "NO ACTION",
|
|
60
|
+
nullable: true,
|
|
60
61
|
}),
|
|
61
62
|
(0, typeorm_1.JoinColumn)({ name: "authentication_credentials" }),
|
|
62
|
-
__metadata("design:type",
|
|
63
|
+
__metadata("design:type", Object)
|
|
63
64
|
], PosSystem.prototype, "authentication_credentials", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({
|
|
67
|
+
type: "mediumtext",
|
|
68
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
69
|
+
nullable: true,
|
|
70
|
+
default: null,
|
|
71
|
+
comment: "Configuración adicional que va a tener el sistema POS, si es necesario, este se guarda como JSON.",
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], PosSystem.prototype, "settings", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({
|
|
77
|
+
type: "datetime",
|
|
78
|
+
comment: "Fecha de creación del sistema POS.",
|
|
79
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], PosSystem.prototype, "created", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({
|
|
85
|
+
type: "date",
|
|
86
|
+
nullable: true,
|
|
87
|
+
default: null,
|
|
88
|
+
comment: "Fecha de expiración si es necesaria, si no se necesita se agrega como null.",
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], PosSystem.prototype, "expiration", void 0);
|
|
64
92
|
__decorate([
|
|
65
93
|
(0, typeorm_1.Column)({
|
|
66
94
|
default: 1,
|
|
67
95
|
type: "int",
|
|
68
96
|
width: 1,
|
|
69
|
-
comment: "Estado del
|
|
97
|
+
comment: "Estado del sistema POS de negocio:\n0: Inactivo.\n1: Activo.",
|
|
70
98
|
}),
|
|
71
99
|
__metadata("design:type", Number)
|
|
72
100
|
], PosSystem.prototype, "status", void 0);
|
|
@@ -17,8 +17,8 @@ export declare class Product {
|
|
|
17
17
|
type_sales_hours: number | null;
|
|
18
18
|
created_by: Partner;
|
|
19
19
|
created: Date;
|
|
20
|
-
updated: Date;
|
|
21
|
-
updated_by: Partner;
|
|
20
|
+
updated: Date | null;
|
|
21
|
+
updated_by: Partner | null;
|
|
22
22
|
current_values: any | null;
|
|
23
23
|
status: number;
|
|
24
24
|
status_review: number;
|
package/dist/entities/Product.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Product = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
16
|
const Category_1 = require("./Category");
|
|
18
17
|
const ProductGroup_1 = require("./ProductGroup");
|
|
@@ -109,7 +108,7 @@ __decorate([
|
|
|
109
108
|
__decorate([
|
|
110
109
|
(0, typeorm_1.Column)({
|
|
111
110
|
type: "datetime",
|
|
112
|
-
|
|
111
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
113
112
|
comment: "Fecha de creación del registro.",
|
|
114
113
|
}),
|
|
115
114
|
__metadata("design:type", Date)
|
|
@@ -119,10 +118,10 @@ __decorate([
|
|
|
119
118
|
type: "datetime",
|
|
120
119
|
nullable: true,
|
|
121
120
|
default: null,
|
|
122
|
-
|
|
121
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
123
122
|
comment: "Fecha de actualización del registro.",
|
|
124
123
|
}),
|
|
125
|
-
__metadata("design:type",
|
|
124
|
+
__metadata("design:type", Object)
|
|
126
125
|
], Product.prototype, "updated", void 0);
|
|
127
126
|
__decorate([
|
|
128
127
|
(0, typeorm_1.ManyToOne)(() => __1.Partner, (partner) => partner.partners_update_by, {
|
|
@@ -131,7 +130,7 @@ __decorate([
|
|
|
131
130
|
nullable: true,
|
|
132
131
|
}),
|
|
133
132
|
(0, typeorm_1.JoinColumn)({ name: "updated_by" }),
|
|
134
|
-
__metadata("design:type",
|
|
133
|
+
__metadata("design:type", Object)
|
|
135
134
|
], Product.prototype, "updated_by", void 0);
|
|
136
135
|
__decorate([
|
|
137
136
|
(0, typeorm_1.Column)({
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ReceiptConfig = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
16
|
let ReceiptConfig = class ReceiptConfig {
|
|
18
17
|
};
|
|
@@ -158,7 +157,7 @@ __decorate([
|
|
|
158
157
|
(0, typeorm_1.Column)({
|
|
159
158
|
type: "datetime",
|
|
160
159
|
comment: "Fecha de creación del registro.",
|
|
161
|
-
|
|
160
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
162
161
|
}),
|
|
163
162
|
__metadata("design:type", Date)
|
|
164
163
|
], ReceiptConfig.prototype, "created", void 0);
|
|
@@ -168,7 +167,7 @@ __decorate([
|
|
|
168
167
|
nullable: true,
|
|
169
168
|
default: null,
|
|
170
169
|
comment: "Fecha de actualización del registro.",
|
|
171
|
-
|
|
170
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
172
171
|
}),
|
|
173
172
|
__metadata("design:type", Object)
|
|
174
173
|
], ReceiptConfig.prototype, "updated", void 0);
|
package/dist/entities/Request.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Request = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const User_1 = require("./User");
|
|
17
16
|
let Request = class Request {
|
|
18
17
|
};
|
|
@@ -120,7 +119,7 @@ __decorate([
|
|
|
120
119
|
__decorate([
|
|
121
120
|
(0, typeorm_1.Column)({
|
|
122
121
|
type: "datetime",
|
|
123
|
-
|
|
122
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
124
123
|
comment: "Fecha en la que el cliente final crea el pedido.",
|
|
125
124
|
}),
|
|
126
125
|
__metadata("design:type", Date)
|
|
@@ -128,7 +127,7 @@ __decorate([
|
|
|
128
127
|
__decorate([
|
|
129
128
|
(0, typeorm_1.Column)({
|
|
130
129
|
type: "datetime",
|
|
131
|
-
|
|
130
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
132
131
|
nullable: true,
|
|
133
132
|
default: null,
|
|
134
133
|
comment: "Fecha en la que el cliente final hace la última actualización del pedido.",
|
|
@@ -160,6 +159,6 @@ __decorate([
|
|
|
160
159
|
], Request.prototype, "request_prints", void 0);
|
|
161
160
|
exports.Request = Request = __decorate([
|
|
162
161
|
(0, typeorm_1.Entity)({
|
|
163
|
-
comment: "Tabla para agregar los pedidos realizados
|
|
162
|
+
comment: "Tabla para agregar los pedidos realizados a través de la plataforma.",
|
|
164
163
|
})
|
|
165
164
|
], Request);
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RequestInvoice = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
15
14
|
const Local_1 = require("./Local");
|
|
16
15
|
const Partner_1 = require("./Partner");
|
|
17
16
|
const RequestInvoiceCategory_1 = require("./RequestInvoiceCategory");
|
|
@@ -93,7 +92,7 @@ __decorate([
|
|
|
93
92
|
__decorate([
|
|
94
93
|
(0, typeorm_1.Column)({
|
|
95
94
|
type: "datetime",
|
|
96
|
-
|
|
95
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
97
96
|
comment: "Fecha de creación del registro.",
|
|
98
97
|
}),
|
|
99
98
|
__metadata("design:type", Date)
|
|
@@ -101,7 +100,7 @@ __decorate([
|
|
|
101
100
|
__decorate([
|
|
102
101
|
(0, typeorm_1.Column)({
|
|
103
102
|
type: "datetime",
|
|
104
|
-
|
|
103
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
105
104
|
nullable: true,
|
|
106
105
|
default: null,
|
|
107
106
|
comment: "Fecha de actualización del registro.",
|
|
@@ -7,7 +7,7 @@ export declare class RequestLocal {
|
|
|
7
7
|
remaining_amount: number;
|
|
8
8
|
status: number;
|
|
9
9
|
preparation_time: string | null;
|
|
10
|
-
updated: Date
|
|
10
|
+
updated: Date;
|
|
11
11
|
order_number: number;
|
|
12
12
|
order_number_day: number;
|
|
13
13
|
discount_redemption: CodeRedemptionHistoryUser | null;
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestLocal = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let RequestLocal = class RequestLocal {
|
|
17
16
|
};
|
|
18
17
|
exports.RequestLocal = RequestLocal;
|
|
@@ -81,12 +80,11 @@ __decorate([
|
|
|
81
80
|
__decorate([
|
|
82
81
|
(0, typeorm_1.Column)({
|
|
83
82
|
type: "datetime",
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
84
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
86
85
|
comment: "Columna donde almacenamos la fecha de actualización del registro, este campo nos sirve para saber cuánto tiempo llevamos desde qué se actualizó hasta la hora actual.",
|
|
87
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
88
86
|
}),
|
|
89
|
-
__metadata("design:type",
|
|
87
|
+
__metadata("design:type", Date)
|
|
90
88
|
], RequestLocal.prototype, "updated", void 0);
|
|
91
89
|
__decorate([
|
|
92
90
|
(0, typeorm_1.Column)({
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestLocalHistory = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let RequestLocalHistory = class RequestLocalHistory {
|
|
17
16
|
};
|
|
18
17
|
exports.RequestLocalHistory = RequestLocalHistory;
|
|
@@ -62,7 +61,8 @@ __decorate([
|
|
|
62
61
|
(0, typeorm_1.Column)({
|
|
63
62
|
type: "datetime",
|
|
64
63
|
comment: "Fecha en la que realizó el cambio.",
|
|
65
|
-
|
|
64
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
65
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
66
66
|
}),
|
|
67
67
|
__metadata("design:type", Date)
|
|
68
68
|
], RequestLocalHistory.prototype, "updated", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestLocalPayment = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let RequestLocalPayment = class RequestLocalPayment {
|
|
17
16
|
};
|
|
18
17
|
exports.RequestLocalPayment = RequestLocalPayment;
|
|
@@ -126,7 +125,7 @@ __decorate([
|
|
|
126
125
|
__decorate([
|
|
127
126
|
(0, typeorm_1.Column)({
|
|
128
127
|
type: "datetime",
|
|
129
|
-
|
|
128
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
130
129
|
comment: "Fecha de creación del registro.",
|
|
131
130
|
}),
|
|
132
131
|
__metadata("design:type", Date)
|
|
@@ -136,7 +135,7 @@ __decorate([
|
|
|
136
135
|
type: "datetime",
|
|
137
136
|
nullable: true,
|
|
138
137
|
default: null,
|
|
139
|
-
|
|
138
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
140
139
|
comment: "Fecha de actualización del registro.",
|
|
141
140
|
}),
|
|
142
141
|
__metadata("design:type", Object)
|
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RequestLocalTable = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const RequestLocal_1 = require("./RequestLocal");
|
|
15
14
|
const LocalTable_1 = require("./LocalTable");
|
|
15
|
+
const RequestLocal_1 = require("./RequestLocal");
|
|
16
16
|
let RequestLocalTable = class RequestLocalTable {
|
|
17
17
|
};
|
|
18
18
|
exports.RequestLocalTable = RequestLocalTable;
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestPrint = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const Request_1 = require("./Request");
|
|
17
16
|
let RequestPrint = class RequestPrint {
|
|
18
17
|
};
|
|
@@ -53,7 +52,7 @@ __decorate([
|
|
|
53
52
|
__decorate([
|
|
54
53
|
(0, typeorm_1.Column)({
|
|
55
54
|
type: "datetime",
|
|
56
|
-
|
|
55
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
57
56
|
comment: "Fecha creación de la impresión.",
|
|
58
57
|
}),
|
|
59
58
|
__metadata("design:type", Date)
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ServicePlan = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
15
14
|
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const Master_1 = require("./Master");
|
|
17
16
|
const ServiceDiscountsPlan_1 = require("./ServiceDiscountsPlan");
|
|
@@ -65,7 +64,7 @@ __decorate([
|
|
|
65
64
|
__decorate([
|
|
66
65
|
(0, typeorm_1.Column)({
|
|
67
66
|
type: "datetime",
|
|
68
|
-
|
|
67
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
69
68
|
comment: "Fecha de creación del registro.",
|
|
70
69
|
}),
|
|
71
70
|
__metadata("design:type", Date)
|
|
@@ -73,10 +72,12 @@ __decorate([
|
|
|
73
72
|
__decorate([
|
|
74
73
|
(0, typeorm_1.Column)({
|
|
75
74
|
type: "datetime",
|
|
76
|
-
|
|
75
|
+
nullable: true,
|
|
76
|
+
default: null,
|
|
77
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
77
78
|
comment: "Fecha de actualización del registro.",
|
|
78
79
|
}),
|
|
79
|
-
__metadata("design:type",
|
|
80
|
+
__metadata("design:type", Object)
|
|
80
81
|
], ServicePlan.prototype, "updated", void 0);
|
|
81
82
|
__decorate([
|
|
82
83
|
(0, typeorm_1.ManyToOne)(() => Master_1.Master, (master) => master.id, {
|
package/dist/entities/User.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.User = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
16
|
const City_1 = require("./City");
|
|
18
17
|
const CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
@@ -107,16 +106,17 @@ __decorate([
|
|
|
107
106
|
__decorate([
|
|
108
107
|
(0, typeorm_1.Column)({
|
|
109
108
|
type: "datetime",
|
|
110
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
111
109
|
comment: "Fecha de creación del registro.",
|
|
110
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
112
111
|
}),
|
|
113
112
|
__metadata("design:type", Date)
|
|
114
113
|
], User.prototype, "created", void 0);
|
|
115
114
|
__decorate([
|
|
116
115
|
(0, typeorm_1.Column)({
|
|
117
116
|
type: "datetime",
|
|
118
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
119
117
|
comment: "Fecha de actualización del registro.",
|
|
118
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
119
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
120
120
|
}),
|
|
121
121
|
__metadata("design:type", Date)
|
|
122
122
|
], User.prototype, "updated", void 0);
|
|
@@ -134,7 +134,7 @@ __decorate([
|
|
|
134
134
|
type: "int",
|
|
135
135
|
width: 1,
|
|
136
136
|
default: 1,
|
|
137
|
-
comment: "Es el estado para verificar si se
|
|
137
|
+
comment: "Es el estado para verificar si se envía en la papelera o no.",
|
|
138
138
|
}),
|
|
139
139
|
__metadata("design:type", Number)
|
|
140
140
|
], User.prototype, "visible", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UserPaymentMethod = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
const User_1 = require("./User");
|
|
17
16
|
let UserPaymentMethod = class UserPaymentMethod {
|
|
18
17
|
};
|
|
@@ -101,7 +100,7 @@ __decorate([
|
|
|
101
100
|
__decorate([
|
|
102
101
|
(0, typeorm_1.Column)({
|
|
103
102
|
type: "datetime",
|
|
104
|
-
|
|
103
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
105
104
|
comment: "Fecha de creación del registro.",
|
|
106
105
|
}),
|
|
107
106
|
__metadata("design:type", Date)
|
|
@@ -111,7 +110,7 @@ __decorate([
|
|
|
111
110
|
type: "datetime",
|
|
112
111
|
nullable: true,
|
|
113
112
|
default: null,
|
|
114
|
-
|
|
113
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
115
114
|
comment: "Fecha de actualización del registro.",
|
|
116
115
|
}),
|
|
117
116
|
__metadata("design:type", Object)
|
|
@@ -7,12 +7,12 @@ export declare class DiscountsCodeUser {
|
|
|
7
7
|
type: number;
|
|
8
8
|
single_use: number;
|
|
9
9
|
use_limit: number;
|
|
10
|
-
created:
|
|
10
|
+
created: Date;
|
|
11
11
|
start: string;
|
|
12
12
|
expiration: string;
|
|
13
13
|
repeat_days: any;
|
|
14
14
|
updated_by: number;
|
|
15
|
-
updated:
|
|
15
|
+
updated: Date;
|
|
16
16
|
status: number;
|
|
17
17
|
local_id: number;
|
|
18
18
|
local_name: string;
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DiscountsCodeUser = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const moment = require("moment-timezone");
|
|
15
|
-
const __1 = require("..");
|
|
16
14
|
// JSON Transformer
|
|
17
15
|
const jsonTransformer = {
|
|
18
16
|
to: (value) => JSON.stringify(value),
|
|
@@ -21,19 +19,11 @@ const jsonTransformer = {
|
|
|
21
19
|
return JSON.parse(value);
|
|
22
20
|
}
|
|
23
21
|
catch (error) {
|
|
24
|
-
console.log(error,
|
|
22
|
+
console.log(error, "Transformer error");
|
|
25
23
|
return null;
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
26
|
};
|
|
29
|
-
const DateTransformer = {
|
|
30
|
-
to(value) {
|
|
31
|
-
return moment.utc(value).format('YYYY-MM-DD HH:mm:ss');
|
|
32
|
-
},
|
|
33
|
-
from(value) {
|
|
34
|
-
return moment.utc(value).tz((0, __1.getTimeZone)()).format('YYYY-MM-DD HH:mm:ss');
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
27
|
let DiscountsCodeUser = class DiscountsCodeUser {
|
|
38
28
|
};
|
|
39
29
|
exports.DiscountsCodeUser = DiscountsCodeUser;
|
|
@@ -70,8 +60,8 @@ __decorate([
|
|
|
70
60
|
__metadata("design:type", Number)
|
|
71
61
|
], DiscountsCodeUser.prototype, "use_limit", void 0);
|
|
72
62
|
__decorate([
|
|
73
|
-
(0, typeorm_1.ViewColumn)(
|
|
74
|
-
__metadata("design:type",
|
|
63
|
+
(0, typeorm_1.ViewColumn)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
75
65
|
], DiscountsCodeUser.prototype, "created", void 0);
|
|
76
66
|
__decorate([
|
|
77
67
|
(0, typeorm_1.ViewColumn)(),
|
|
@@ -90,8 +80,8 @@ __decorate([
|
|
|
90
80
|
__metadata("design:type", Number)
|
|
91
81
|
], DiscountsCodeUser.prototype, "updated_by", void 0);
|
|
92
82
|
__decorate([
|
|
93
|
-
(0, typeorm_1.ViewColumn)(
|
|
94
|
-
__metadata("design:type",
|
|
83
|
+
(0, typeorm_1.ViewColumn)(),
|
|
84
|
+
__metadata("design:type", Date)
|
|
95
85
|
], DiscountsCodeUser.prototype, "updated", void 0);
|
|
96
86
|
__decorate([
|
|
97
87
|
(0, typeorm_1.ViewColumn)(),
|
|
@@ -143,6 +133,6 @@ __decorate([
|
|
|
143
133
|
], DiscountsCodeUser.prototype, "number_of_times_used", void 0);
|
|
144
134
|
exports.DiscountsCodeUser = DiscountsCodeUser = __decorate([
|
|
145
135
|
(0, typeorm_1.ViewEntity)({
|
|
146
|
-
name:
|
|
136
|
+
name: "discounts_code_user",
|
|
147
137
|
})
|
|
148
138
|
], DiscountsCodeUser);
|
|
@@ -13,15 +13,15 @@ export declare class LocalReserves {
|
|
|
13
13
|
details: string | null;
|
|
14
14
|
decoration: number | null;
|
|
15
15
|
persons: number;
|
|
16
|
-
created:
|
|
17
|
-
updated:
|
|
16
|
+
created: Date;
|
|
17
|
+
updated: Date | null;
|
|
18
18
|
partner: number | null;
|
|
19
19
|
status: number;
|
|
20
20
|
local_reserve_status_id: number;
|
|
21
21
|
local_reserve_status_local: number;
|
|
22
22
|
local_reserve_status_name: string;
|
|
23
23
|
local_reserve_status_description: string | null;
|
|
24
|
-
local_reserve_status_updated:
|
|
24
|
+
local_reserve_status_updated: Date | null;
|
|
25
25
|
local_reserve_status_updated_by: number | null;
|
|
26
26
|
local_reserve_status_color: string;
|
|
27
27
|
local_reserve_status_status: number;
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalReserves = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const moment = require("moment-timezone");
|
|
15
|
-
const __1 = require("..");
|
|
16
14
|
// JSON Transformer
|
|
17
15
|
const jsonTransformer = {
|
|
18
16
|
to: (value) => JSON.stringify(value),
|
|
@@ -26,14 +24,6 @@ const jsonTransformer = {
|
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
26
|
};
|
|
29
|
-
const DateTransformer = {
|
|
30
|
-
to(value) {
|
|
31
|
-
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
32
|
-
},
|
|
33
|
-
from(value) {
|
|
34
|
-
return moment.utc(value).tz((0, __1.getTimeZone)()).format("YYYY-MM-DD HH:mm:ss");
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
27
|
let LocalReserves = class LocalReserves {
|
|
38
28
|
};
|
|
39
29
|
exports.LocalReserves = LocalReserves;
|
|
@@ -94,11 +84,11 @@ __decorate([
|
|
|
94
84
|
__metadata("design:type", Number)
|
|
95
85
|
], LocalReserves.prototype, "persons", void 0);
|
|
96
86
|
__decorate([
|
|
97
|
-
(0, typeorm_1.ViewColumn)(
|
|
98
|
-
__metadata("design:type",
|
|
87
|
+
(0, typeorm_1.ViewColumn)(),
|
|
88
|
+
__metadata("design:type", Date)
|
|
99
89
|
], LocalReserves.prototype, "created", void 0);
|
|
100
90
|
__decorate([
|
|
101
|
-
(0, typeorm_1.ViewColumn)(
|
|
91
|
+
(0, typeorm_1.ViewColumn)(),
|
|
102
92
|
__metadata("design:type", Object)
|
|
103
93
|
], LocalReserves.prototype, "updated", void 0);
|
|
104
94
|
__decorate([
|
|
@@ -126,7 +116,7 @@ __decorate([
|
|
|
126
116
|
__metadata("design:type", Object)
|
|
127
117
|
], LocalReserves.prototype, "local_reserve_status_description", void 0);
|
|
128
118
|
__decorate([
|
|
129
|
-
(0, typeorm_1.ViewColumn)(
|
|
119
|
+
(0, typeorm_1.ViewColumn)(),
|
|
130
120
|
__metadata("design:type", Object)
|
|
131
121
|
], LocalReserves.prototype, "local_reserve_status_updated", void 0);
|
|
132
122
|
__decorate([
|
|
@@ -2,10 +2,10 @@ export declare class LocalTableZonesFilter {
|
|
|
2
2
|
id: number;
|
|
3
3
|
code: string;
|
|
4
4
|
local: number | null;
|
|
5
|
-
created:
|
|
5
|
+
created: Date;
|
|
6
6
|
name: string;
|
|
7
7
|
status: number;
|
|
8
|
-
updated:
|
|
8
|
+
updated: Date | null;
|
|
9
9
|
updated_by: number | null;
|
|
10
10
|
local_id: number;
|
|
11
11
|
local_name: string;
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalTableZonesFilter = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const moment = require("moment-timezone");
|
|
15
|
-
const __1 = require("..");
|
|
16
14
|
// JSON Transformer
|
|
17
15
|
const jsonTransformer = {
|
|
18
16
|
to: (value) => JSON.stringify(value),
|
|
@@ -26,14 +24,6 @@ const jsonTransformer = {
|
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
26
|
};
|
|
29
|
-
const DateTransformer = {
|
|
30
|
-
to(value) {
|
|
31
|
-
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
32
|
-
},
|
|
33
|
-
from(value) {
|
|
34
|
-
return moment.utc(value).tz((0, __1.getTimeZone)()).format("YYYY-MM-DD HH:mm:ss");
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
27
|
let LocalTableZonesFilter = class LocalTableZonesFilter {
|
|
38
28
|
};
|
|
39
29
|
exports.LocalTableZonesFilter = LocalTableZonesFilter;
|
|
@@ -50,8 +40,8 @@ __decorate([
|
|
|
50
40
|
__metadata("design:type", Object)
|
|
51
41
|
], LocalTableZonesFilter.prototype, "local", void 0);
|
|
52
42
|
__decorate([
|
|
53
|
-
(0, typeorm_1.ViewColumn)(
|
|
54
|
-
__metadata("design:type",
|
|
43
|
+
(0, typeorm_1.ViewColumn)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
55
45
|
], LocalTableZonesFilter.prototype, "created", void 0);
|
|
56
46
|
__decorate([
|
|
57
47
|
(0, typeorm_1.ViewColumn)(),
|
|
@@ -62,7 +52,7 @@ __decorate([
|
|
|
62
52
|
__metadata("design:type", Number)
|
|
63
53
|
], LocalTableZonesFilter.prototype, "status", void 0);
|
|
64
54
|
__decorate([
|
|
65
|
-
(0, typeorm_1.ViewColumn)(
|
|
55
|
+
(0, typeorm_1.ViewColumn)(),
|
|
66
56
|
__metadata("design:type", Object)
|
|
67
57
|
], LocalTableZonesFilter.prototype, "updated", void 0);
|
|
68
58
|
__decorate([
|
|
@@ -5,9 +5,9 @@ export declare class LocalsCompany {
|
|
|
5
5
|
address: string;
|
|
6
6
|
latitude: string;
|
|
7
7
|
longitude: string;
|
|
8
|
-
details:
|
|
9
|
-
created:
|
|
10
|
-
updated:
|
|
8
|
+
details: any | null;
|
|
9
|
+
created: Date;
|
|
10
|
+
updated: Date;
|
|
11
11
|
status: number;
|
|
12
12
|
city_id: number;
|
|
13
13
|
city_name: string;
|
|
@@ -19,7 +19,7 @@ export declare class LocalsCompany {
|
|
|
19
19
|
country_code: string;
|
|
20
20
|
country_name: string;
|
|
21
21
|
country_status: number;
|
|
22
|
-
country_details:
|
|
22
|
+
country_details: any | null;
|
|
23
23
|
average_rating: number;
|
|
24
24
|
rating_count: number;
|
|
25
25
|
square_id: number;
|
|
@@ -31,11 +31,11 @@ export declare class LocalsCompany {
|
|
|
31
31
|
pos_system_id: number;
|
|
32
32
|
pos_system_name: string;
|
|
33
33
|
pos_system_description: string;
|
|
34
|
-
pos_system_endpoint_products:
|
|
35
|
-
pos_system_endpoint_order:
|
|
36
|
-
pos_system_authentication_credentials: number;
|
|
37
|
-
pos_system_settings:
|
|
38
|
-
pos_system_created:
|
|
39
|
-
pos_system_expiration: string;
|
|
34
|
+
pos_system_endpoint_products: any;
|
|
35
|
+
pos_system_endpoint_order: any;
|
|
36
|
+
pos_system_authentication_credentials: number | null;
|
|
37
|
+
pos_system_settings: any | null;
|
|
38
|
+
pos_system_created: Date;
|
|
39
|
+
pos_system_expiration: string | null;
|
|
40
40
|
pos_system_status: number;
|
|
41
41
|
}
|