test-entity-library-asm 3.9.34 → 3.9.35
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/CodeRedemptionHistoryUser.d.ts +1 -1
- package/dist/entities/CodeRedemptionHistoryUser.js +3 -3
- package/dist/entities/Company.js +2 -3
- package/dist/entities/CountryHoliday.js +1 -1
- package/dist/entities/DiscountCodeUser.js +2 -3
- 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 +1 -1
- package/dist/entities/LocalReserveStatus.js +2 -3
- package/dist/entities/LocalTable.js +2 -3
- package/dist/entities/LocalTableZone.js +2 -3
- package/dist/entities/Master.js +3 -3
- package/dist/entities/Partner.js +2 -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/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/User.js +4 -4
- 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/package.json +1 -1
- package/src/entities/CodeRedemptionHistoryUser.ts +5 -5
- package/src/entities/Company.ts +2 -3
- package/src/entities/CountryHoliday.ts +1 -1
- package/src/entities/DiscountCodeUser.ts +3 -4
- 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 +2 -3
- package/src/entities/LocalTable.ts +5 -6
- package/src/entities/LocalTableZone.ts +2 -3
- package/src/entities/Master.ts +13 -8
- package/src/entities/Partner.ts +2 -2
- package/src/entities/Plan.ts +2 -2
- package/src/entities/PosSystem.ts +30 -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/User.ts +10 -10
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DiscountCodeUser } from "./DiscountCodeUser";
|
|
2
|
-
import { User } from "./User";
|
|
3
2
|
import { RequestLocal } from "./RequestLocal";
|
|
3
|
+
import { User } from "./User";
|
|
4
4
|
export declare class CodeRedemptionHistoryUser {
|
|
5
5
|
id: number;
|
|
6
6
|
discount_code_user: DiscountCodeUser;
|
|
@@ -12,9 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CodeRedemptionHistoryUser = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const DiscountCodeUser_1 = require("./DiscountCodeUser");
|
|
15
|
-
const User_1 = require("./User");
|
|
16
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
17
15
|
const RequestLocal_1 = require("./RequestLocal");
|
|
16
|
+
const User_1 = require("./User");
|
|
18
17
|
let CodeRedemptionHistoryUser = class CodeRedemptionHistoryUser {
|
|
19
18
|
};
|
|
20
19
|
exports.CodeRedemptionHistoryUser = CodeRedemptionHistoryUser;
|
|
@@ -42,7 +41,8 @@ __decorate([
|
|
|
42
41
|
__decorate([
|
|
43
42
|
(0, typeorm_1.Column)({
|
|
44
43
|
type: "datetime",
|
|
45
|
-
|
|
44
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
45
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
46
46
|
comment: "Fecha cuando se usó el descuento.",
|
|
47
47
|
}),
|
|
48
48
|
__metadata("design:type", Date)
|
package/dist/entities/Company.js
CHANGED
|
@@ -112,7 +112,7 @@ __decorate([
|
|
|
112
112
|
], Company.prototype, "settings", void 0);
|
|
113
113
|
__decorate([
|
|
114
114
|
(0, typeorm_1.Column)({
|
|
115
|
-
type: "
|
|
115
|
+
type: "datetime",
|
|
116
116
|
default: () => "CURRENT_TIMESTAMP",
|
|
117
117
|
comment: "Fecha creación de la empresa.",
|
|
118
118
|
}),
|
|
@@ -129,8 +129,7 @@ __decorate([
|
|
|
129
129
|
], Company.prototype, "expiration", void 0);
|
|
130
130
|
__decorate([
|
|
131
131
|
(0, typeorm_1.Column)({
|
|
132
|
-
type: "
|
|
133
|
-
default: () => "CURRENT_TIMESTAMP",
|
|
132
|
+
type: "datetime",
|
|
134
133
|
onUpdate: "CURRENT_TIMESTAMP",
|
|
135
134
|
comment: "Fecha de actualización de la empresa.",
|
|
136
135
|
}),
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.DiscountCodeUser = 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 CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
18
17
|
const Company_1 = require("./Company");
|
|
@@ -85,7 +84,7 @@ __decorate([
|
|
|
85
84
|
__decorate([
|
|
86
85
|
(0, typeorm_1.Column)({
|
|
87
86
|
type: "datetime",
|
|
88
|
-
|
|
87
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
89
88
|
comment: "Fecha de creación del registro.",
|
|
90
89
|
}),
|
|
91
90
|
__metadata("design:type", Date)
|
|
@@ -127,7 +126,7 @@ __decorate([
|
|
|
127
126
|
__decorate([
|
|
128
127
|
(0, typeorm_1.Column)({
|
|
129
128
|
type: "datetime",
|
|
130
|
-
|
|
129
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
131
130
|
comment: "Fecha de actualización.",
|
|
132
131
|
}),
|
|
133
132
|
__metadata("design:type", Date)
|
package/dist/entities/Local.js
CHANGED
|
@@ -75,12 +75,12 @@ __decorate([
|
|
|
75
75
|
__metadata("design:type", Object)
|
|
76
76
|
], Local.prototype, "details", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: "
|
|
78
|
+
(0, typeorm_1.Column)({ type: "datetime", default: () => "CURRENT_TIMESTAMP" }),
|
|
79
79
|
__metadata("design:type", Date)
|
|
80
80
|
], Local.prototype, "created", void 0);
|
|
81
81
|
__decorate([
|
|
82
82
|
(0, typeorm_1.Column)({
|
|
83
|
-
type: "
|
|
83
|
+
type: "datetime",
|
|
84
84
|
default: () => "CURRENT_TIMESTAMP",
|
|
85
85
|
onUpdate: "CURRENT_TIMESTAMP",
|
|
86
86
|
}),
|
|
@@ -69,7 +69,7 @@ __decorate([
|
|
|
69
69
|
], LocalPlan.prototype, "settings", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, typeorm_1.Column)({
|
|
72
|
-
type: "
|
|
72
|
+
type: "datetime",
|
|
73
73
|
default: () => "CURRENT_TIMESTAMP",
|
|
74
74
|
comment: "Fecha de inicio del registro.",
|
|
75
75
|
}),
|
|
@@ -77,7 +77,7 @@ __decorate([
|
|
|
77
77
|
], LocalPlan.prototype, "start_date", void 0);
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, typeorm_1.Column)({
|
|
80
|
-
type: "
|
|
80
|
+
type: "datetime",
|
|
81
81
|
comment: "Fecha de finalización del registro.",
|
|
82
82
|
}),
|
|
83
83
|
__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.LocalQualification = 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 User_1 = require("./User");
|
|
17
16
|
let LocalQualification = class LocalQualification {
|
|
@@ -52,10 +51,10 @@ __decorate([
|
|
|
52
51
|
__decorate([
|
|
53
52
|
(0, typeorm_1.Column)({
|
|
54
53
|
type: "datetime",
|
|
55
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
56
54
|
comment: "Fecha de creación del registro.",
|
|
55
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
57
56
|
}),
|
|
58
|
-
__metadata("design:type",
|
|
57
|
+
__metadata("design:type", Date)
|
|
59
58
|
], LocalQualification.prototype, "created", void 0);
|
|
60
59
|
exports.LocalQualification = LocalQualification = __decorate([
|
|
61
60
|
(0, typeorm_1.Entity)("local_qualification", {
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LocalReserve = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let LocalReserve = class LocalReserve {
|
|
17
16
|
};
|
|
18
17
|
exports.LocalReserve = LocalReserve;
|
|
@@ -132,7 +131,7 @@ __decorate([
|
|
|
132
131
|
(0, typeorm_1.Column)({
|
|
133
132
|
type: "datetime",
|
|
134
133
|
comment: "Fecha creación del registro.",
|
|
135
|
-
|
|
134
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
136
135
|
}),
|
|
137
136
|
__metadata("design:type", Date)
|
|
138
137
|
], LocalReserve.prototype, "created", void 0);
|
|
@@ -142,7 +141,7 @@ __decorate([
|
|
|
142
141
|
nullable: true,
|
|
143
142
|
default: null,
|
|
144
143
|
comment: "Fecha de actualización del registro.",
|
|
145
|
-
|
|
144
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
146
145
|
}),
|
|
147
146
|
__metadata("design:type", Object)
|
|
148
147
|
], LocalReserve.prototype, "updated", void 0);
|
|
@@ -12,9 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LocalReserveStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const Local_1 = require("./Local");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
|
-
const Partner_1 = require("./Partner");
|
|
17
15
|
const LocalReserve_1 = require("./LocalReserve");
|
|
16
|
+
const Partner_1 = require("./Partner");
|
|
18
17
|
let LocalReserveStatus = class LocalReserveStatus {
|
|
19
18
|
};
|
|
20
19
|
exports.LocalReserveStatus = LocalReserveStatus;
|
|
@@ -62,10 +61,10 @@ __decorate([
|
|
|
62
61
|
__decorate([
|
|
63
62
|
(0, typeorm_1.Column)({
|
|
64
63
|
type: "datetime",
|
|
65
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
66
64
|
nullable: true,
|
|
67
65
|
default: null,
|
|
68
66
|
comment: "Fecha de actualización del registro.",
|
|
67
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
69
68
|
}),
|
|
70
69
|
__metadata("design:type", Object)
|
|
71
70
|
], LocalReserveStatus.prototype, "updated", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LocalTable = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let LocalTable = class LocalTable {
|
|
17
16
|
};
|
|
18
17
|
exports.LocalTable = LocalTable;
|
|
@@ -107,7 +106,7 @@ __decorate([
|
|
|
107
106
|
(0, typeorm_1.Column)({
|
|
108
107
|
type: "datetime",
|
|
109
108
|
comment: "Fecha creación del registro.",
|
|
110
|
-
|
|
109
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
111
110
|
}),
|
|
112
111
|
__metadata("design:type", Date)
|
|
113
112
|
], LocalTable.prototype, "created", void 0);
|
|
@@ -117,7 +116,7 @@ __decorate([
|
|
|
117
116
|
nullable: true,
|
|
118
117
|
default: null,
|
|
119
118
|
comment: "Fecha de actualización del registro.",
|
|
120
|
-
|
|
119
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
121
120
|
}),
|
|
122
121
|
__metadata("design:type", Object)
|
|
123
122
|
], LocalTable.prototype, "updated", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LocalTableZone = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
15
|
let LocalTableZone = class LocalTableZone {
|
|
17
16
|
};
|
|
18
17
|
exports.LocalTableZone = LocalTableZone;
|
|
@@ -53,7 +52,7 @@ __decorate([
|
|
|
53
52
|
(0, typeorm_1.Column)({
|
|
54
53
|
type: "datetime",
|
|
55
54
|
comment: "Fecha de creación del registro.",
|
|
56
|
-
|
|
55
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
57
56
|
}),
|
|
58
57
|
__metadata("design:type", Date)
|
|
59
58
|
], LocalTableZone.prototype, "created", void 0);
|
|
@@ -63,7 +62,7 @@ __decorate([
|
|
|
63
62
|
nullable: true,
|
|
64
63
|
default: null,
|
|
65
64
|
comment: "Fecha de actualización del registro.",
|
|
66
|
-
|
|
65
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
67
66
|
}),
|
|
68
67
|
__metadata("design:type", Object)
|
|
69
68
|
], LocalTableZone.prototype, "updated", void 0);
|
package/dist/entities/Master.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Master = 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 DiscountCodeCompany_1 = require("./DiscountCodeCompany");
|
|
@@ -126,16 +125,17 @@ __decorate([
|
|
|
126
125
|
__decorate([
|
|
127
126
|
(0, typeorm_1.Column)({
|
|
128
127
|
type: "datetime",
|
|
129
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
130
128
|
comment: "Fecha de creación del registro.",
|
|
129
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
131
130
|
}),
|
|
132
131
|
__metadata("design:type", Date)
|
|
133
132
|
], Master.prototype, "created", void 0);
|
|
134
133
|
__decorate([
|
|
135
134
|
(0, typeorm_1.Column)({
|
|
136
135
|
type: "datetime",
|
|
137
|
-
transformer: new dateTransformer_1.DateTransformer(),
|
|
138
136
|
comment: "Fecha de actualización del registro.",
|
|
137
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
138
|
+
onUpdate: "CURRENT_TIMESTAMP",
|
|
139
139
|
}),
|
|
140
140
|
__metadata("design:type", Date)
|
|
141
141
|
], Master.prototype, "updated", void 0);
|
package/dist/entities/Partner.js
CHANGED
|
@@ -146,7 +146,7 @@ __decorate([
|
|
|
146
146
|
], Partner.prototype, "owner", void 0);
|
|
147
147
|
__decorate([
|
|
148
148
|
(0, typeorm_1.Column)({
|
|
149
|
-
type: "
|
|
149
|
+
type: "datetime",
|
|
150
150
|
comment: "Fecha de creación del registro.",
|
|
151
151
|
default: () => "CURRENT_TIMESTAMP",
|
|
152
152
|
}),
|
|
@@ -154,7 +154,7 @@ __decorate([
|
|
|
154
154
|
], Partner.prototype, "created", void 0);
|
|
155
155
|
__decorate([
|
|
156
156
|
(0, typeorm_1.Column)({
|
|
157
|
-
type: "
|
|
157
|
+
type: "datetime",
|
|
158
158
|
comment: "Fecha de actualización del registro.",
|
|
159
159
|
default: () => "CURRENT_TIMESTAMP",
|
|
160
160
|
onUpdate: "CURRENT_TIMESTAMP",
|
package/dist/entities/Plan.js
CHANGED
|
@@ -68,14 +68,14 @@ __decorate([
|
|
|
68
68
|
], Plan.prototype, "quantity_locals", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, typeorm_1.Column)({
|
|
71
|
-
type: "
|
|
71
|
+
type: "datetime",
|
|
72
72
|
default: () => "CURRENT_TIMESTAMP",
|
|
73
73
|
comment: "Fecha de creación del registro.",
|
|
74
74
|
}),
|
|
75
75
|
__metadata("design:type", Date)
|
|
76
76
|
], Plan.prototype, "created", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: "
|
|
78
|
+
(0, typeorm_1.Column)({ type: "datetime", comment: "Fecha de expiración del registro." }),
|
|
79
79
|
__metadata("design:type", Date)
|
|
80
80
|
], Plan.prototype, "expiration", void 0);
|
|
81
81
|
__decorate([
|
|
@@ -5,7 +5,10 @@ export declare class PosSystem {
|
|
|
5
5
|
description: string | null;
|
|
6
6
|
endpoint_products: any;
|
|
7
7
|
endpoint_order: any;
|
|
8
|
-
authentication_credentials: AuthenticationCredential;
|
|
8
|
+
authentication_credentials: AuthenticationCredential | null;
|
|
9
|
+
settings: any | null;
|
|
10
|
+
created: Date;
|
|
11
|
+
expiration: string | null;
|
|
9
12
|
status: number;
|
|
10
13
|
locals_pos_system: Local[];
|
|
11
14
|
}
|
|
@@ -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);
|
|
@@ -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)
|
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);
|
|
@@ -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([
|