test-entity-library-asm 3.2.13 → 3.3.0
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/AuthenticationCredential.d.ts +1 -1
- package/dist/entities/AuthenticationCredential.js +16 -7
- package/dist/entities/Bank.js +5 -0
- package/dist/entities/BusinessType.js +9 -3
- package/dist/entities/BusinessTypeProduct.js +4 -1
- package/dist/entities/Category.d.ts +3 -3
- package/dist/entities/Category.js +24 -8
- package/dist/entities/CategoryDate.js +3 -2
- package/dist/entities/CategorySchedule.js +3 -2
- package/dist/entities/City.d.ts +8 -8
- package/dist/entities/City.js +13 -10
- package/dist/entities/CodeRedemptionHistoryCompany.d.ts +2 -2
- package/dist/entities/CodeRedemptionHistoryCompany.js +19 -9
- package/dist/entities/CodeRedemptionHistoryUser.d.ts +2 -2
- package/dist/entities/CodeRedemptionHistoryUser.js +21 -11
- package/dist/entities/Company.js +14 -2
- package/dist/entities/Configuration.js +5 -4
- package/dist/entities/Country.d.ts +1 -1
- package/dist/entities/Country.js +15 -5
- package/dist/entities/Day.js +3 -0
- package/dist/entities/DiscountCodeCompany.js +11 -1
- package/dist/entities/DiscountCodeUser.js +17 -2
- package/dist/entities/Local.d.ts +1 -1
- package/dist/entities/Local.js +10 -3
- package/dist/entities/LocalPlan.js +9 -0
- package/dist/entities/LocalQualification.js +4 -1
- package/dist/entities/Master.js +25 -4
- package/dist/entities/MasterNotification.js +7 -0
- package/dist/entities/MasterPermission.js +11 -1
- package/dist/entities/MasterRole.js +12 -1
- package/dist/entities/Partner.js +28 -4
- package/dist/entities/PartnerNotification.js +7 -0
- package/dist/entities/PartnerPermission.d.ts +1 -1
- package/dist/entities/PartnerPermission.js +15 -2
- package/dist/entities/PartnerPermissionSection.js +14 -1
- package/dist/entities/PartnerPlatform.js +14 -1
- package/dist/entities/PartnerRole.js +12 -1
- package/dist/entities/PartnerSession.js +8 -0
- package/dist/entities/PaymentMethod.d.ts +2 -2
- package/dist/entities/PaymentMethod.js +10 -1
- package/dist/entities/Plan.d.ts +1 -1
- package/dist/entities/Plan.js +16 -3
- package/dist/entities/PosSystem.d.ts +2 -2
- package/dist/entities/PosSystem.js +16 -4
- package/dist/entities/Product.d.ts +2 -2
- package/dist/entities/Product.js +30 -6
- package/dist/entities/ProductDate.js +3 -2
- package/dist/entities/ProductGroup.d.ts +3 -3
- package/dist/entities/ProductGroup.js +24 -14
- package/dist/entities/ProductIngredient.d.ts +2 -2
- package/dist/entities/ProductIngredient.js +16 -13
- package/dist/entities/ProductSchedule.js +3 -2
- package/dist/entities/ProductTopping.js +4 -0
- package/dist/entities/Region.d.ts +2 -2
- package/dist/entities/Region.js +12 -8
- package/dist/entities/Request.d.ts +1 -1
- package/dist/entities/Request.js +14 -2
- package/dist/entities/RequestLocal.js +13 -1
- package/dist/entities/RequestLocalHistory.js +8 -1
- package/dist/entities/RequestLocalPayment.js +10 -0
- package/dist/entities/RequestProduct.d.ts +3 -3
- package/dist/entities/RequestProduct.js +19 -15
- package/dist/entities/RequestProductGroupComplement.d.ts +3 -3
- package/dist/entities/RequestProductGroupComplement.js +14 -13
- package/dist/entities/Square.d.ts +2 -2
- package/dist/entities/Square.js +36 -5
- package/dist/entities/ToppingImage.js +6 -0
- package/dist/entities/TypeMeasureIngredient.d.ts +1 -1
- package/dist/entities/TypeMeasureIngredient.js +11 -6
- package/dist/entities/User.d.ts +2 -2
- package/dist/entities/User.js +22 -5
- package/dist/entities/UserAddress.js +14 -1
- package/dist/entities/UserPaymentMethod.d.ts +1 -1
- package/dist/entities/UserPaymentMethod.js +13 -1
- package/dist/entities/VerifyLocal.d.ts +2 -2
- package/dist/entities/VerifyLocal.js +11 -0
- package/dist/entities/productGroupComplement.js +23 -3
- package/package.json +1 -1
- package/src/entities/AuthenticationCredential.ts +24 -15
- package/src/entities/Bank.ts +8 -6
- package/src/entities/BusinessType.ts +9 -2
- package/src/entities/BusinessTypeProduct.ts +4 -1
- package/src/entities/Category.ts +24 -8
- package/src/entities/CategoryDate.ts +3 -2
- package/src/entities/CategorySchedule.ts +3 -2
- package/src/entities/City.ts +31 -28
- package/src/entities/CodeRedemptionHistoryCompany.ts +28 -18
- package/src/entities/CodeRedemptionHistoryUser.ts +31 -21
- package/src/entities/Company.ts +14 -2
- package/src/entities/Configuration.ts +8 -7
- package/src/entities/Country.ts +15 -5
- package/src/entities/Day.ts +4 -1
- package/src/entities/DiscountCodeCompany.ts +11 -1
- package/src/entities/DiscountCodeUser.ts +17 -2
- package/src/entities/Local.ts +12 -11
- package/src/entities/LocalPlan.ts +9 -0
- package/src/entities/LocalQualification.ts +4 -1
- package/src/entities/Master.ts +25 -4
- package/src/entities/MasterNotification.ts +7 -0
- package/src/entities/MasterPermission.ts +11 -1
- package/src/entities/MasterRole.ts +12 -1
- package/src/entities/Partner.ts +28 -4
- package/src/entities/PartnerNotification.ts +7 -0
- package/src/entities/PartnerPermission.ts +15 -2
- package/src/entities/PartnerPermissionSection.ts +14 -1
- package/src/entities/PartnerPlatform.ts +14 -1
- package/src/entities/PartnerRole.ts +12 -1
- package/src/entities/PartnerSession.ts +9 -1
- package/src/entities/PaymentMethod.ts +11 -2
- package/src/entities/Plan.ts +17 -4
- package/src/entities/PosSystem.ts +16 -4
- package/src/entities/Product.ts +31 -7
- package/src/entities/ProductDate.ts +3 -3
- package/src/entities/ProductGroup.ts +40 -30
- package/src/entities/ProductIngredient.ts +27 -24
- package/src/entities/ProductSchedule.ts +3 -2
- package/src/entities/ProductTopping.ts +4 -0
- package/src/entities/Region.ts +22 -19
- package/src/entities/Request.ts +14 -2
- package/src/entities/RequestLocal.ts +13 -1
- package/src/entities/RequestLocalHistory.ts +8 -1
- package/src/entities/RequestLocalPayment.ts +10 -0
- package/src/entities/RequestProduct.ts +30 -26
- package/src/entities/RequestProductGroupComplement.ts +23 -22
- package/src/entities/Square.ts +37 -6
- package/src/entities/ToppingImage.ts +6 -0
- package/src/entities/TypeMeasureIngredient.ts +18 -18
- package/src/entities/User.ts +23 -6
- package/src/entities/UserAddress.ts +14 -1
- package/src/entities/UserPaymentMethod.ts +13 -1
- package/src/entities/VerifyLocal.ts +13 -2
- package/src/entities/productGroupComplement.ts +23 -3
|
@@ -17,20 +17,21 @@ var Configuration = /** @class */ (function () {
|
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, typeorm_1.PrimaryColumn)({
|
|
19
19
|
length: 20,
|
|
20
|
-
|
|
20
|
+
type: "varchar",
|
|
21
|
+
comment: "Nombre del perfil que se está usando en la aplicación.",
|
|
21
22
|
}),
|
|
22
23
|
__metadata("design:type", String)
|
|
23
24
|
], Configuration.prototype, "profile", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, typeorm_1.Column)({
|
|
26
|
-
type:
|
|
27
|
-
comment:
|
|
27
|
+
type: "longtext",
|
|
28
|
+
comment: "Columna de tipo JSON para agregar la información y configuración respecto a la plataforma.",
|
|
28
29
|
}),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], Configuration.prototype, "settings", void 0);
|
|
31
32
|
Configuration = __decorate([
|
|
32
33
|
(0, typeorm_1.Entity)({
|
|
33
|
-
comment:
|
|
34
|
+
comment: "Esta tabla tiene como fin agregar toda la información de la empresa, logos, urls de documentación, nombres, urls de las páginas... \n\n Esto se se guarda como un string de tipo JSON para que sea fácil almacenarlo y generar nuevos campos si es necesario.",
|
|
34
35
|
})
|
|
35
36
|
], Configuration);
|
|
36
37
|
return Configuration;
|
package/dist/entities/Country.js
CHANGED
|
@@ -11,39 +11,46 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Country = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var Region_1 = require("./Region");
|
|
15
|
-
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
14
|
var __1 = require("..");
|
|
15
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
|
+
var Region_1 = require("./Region");
|
|
17
17
|
var Country = /** @class */ (function () {
|
|
18
18
|
function Country() {
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
+
type: "int",
|
|
22
23
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], Country.prototype, "id", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ length: 10, comment: "Código del país." }),
|
|
28
|
+
(0, typeorm_1.Column)({ length: 10, type: "varchar", comment: "Código del país." }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], Country.prototype, "code", void 0);
|
|
30
31
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del país." }),
|
|
32
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del país." }),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
34
|
], Country.prototype, "name", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, typeorm_1.Column)({
|
|
36
37
|
length: 10,
|
|
38
|
+
type: "varchar",
|
|
37
39
|
comment: "Usamos esta columna para saber la moneda del país y sugerírsela al usuario o al local.",
|
|
38
40
|
}),
|
|
39
41
|
__metadata("design:type", String)
|
|
40
42
|
], Country.prototype, "currency", void 0);
|
|
41
43
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
length: 10,
|
|
46
|
+
type: "varchar",
|
|
47
|
+
comment: "Prefijo para los números de teléfono.",
|
|
48
|
+
}),
|
|
43
49
|
__metadata("design:type", String)
|
|
44
50
|
], Country.prototype, "prefix", void 0);
|
|
45
51
|
__decorate([
|
|
46
52
|
(0, typeorm_1.Column)({
|
|
53
|
+
type: "varchar",
|
|
47
54
|
length: 15,
|
|
48
55
|
comment: "Estructura que tiene el teléfono en ese país.",
|
|
49
56
|
}),
|
|
@@ -69,6 +76,7 @@ var Country = /** @class */ (function () {
|
|
|
69
76
|
(0, typeorm_1.Column)({
|
|
70
77
|
type: "longtext",
|
|
71
78
|
nullable: true,
|
|
79
|
+
default: null,
|
|
72
80
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
73
81
|
comment: "Columna de tipo JSON para almacenar información adicional sobre el país.",
|
|
74
82
|
}),
|
|
@@ -77,6 +85,8 @@ var Country = /** @class */ (function () {
|
|
|
77
85
|
__decorate([
|
|
78
86
|
(0, typeorm_1.Column)({
|
|
79
87
|
default: 1,
|
|
88
|
+
type: "int",
|
|
89
|
+
width: 1,
|
|
80
90
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
81
91
|
}),
|
|
82
92
|
__metadata("design:type", Number)
|
package/dist/entities/Day.js
CHANGED
|
@@ -17,6 +17,7 @@ var Day = /** @class */ (function () {
|
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
+
type: "int",
|
|
20
21
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
21
22
|
}),
|
|
22
23
|
__metadata("design:type", Number)
|
|
@@ -24,6 +25,7 @@ var Day = /** @class */ (function () {
|
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, typeorm_1.Column)({
|
|
26
27
|
length: 50,
|
|
28
|
+
type: "varchar",
|
|
27
29
|
comment: 'Nombre del día.\r\n\r\nID/KEY de la variable que se encuentra en los archivos "locale" para el multilenguaje.',
|
|
28
30
|
}),
|
|
29
31
|
__metadata("design:type", String)
|
|
@@ -31,6 +33,7 @@ var Day = /** @class */ (function () {
|
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, typeorm_1.Column)({
|
|
33
35
|
default: 1,
|
|
36
|
+
type: "varchar",
|
|
34
37
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
35
38
|
}),
|
|
36
39
|
__metadata("design:type", Number)
|
|
@@ -21,6 +21,7 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
24
|
+
type: "int",
|
|
24
25
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
25
26
|
}),
|
|
26
27
|
__metadata("design:type", Number)
|
|
@@ -28,17 +29,19 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, typeorm_1.Column)({
|
|
30
31
|
length: 10,
|
|
32
|
+
type: "varchar",
|
|
31
33
|
comment: "Código de descuento para las empresas (company).",
|
|
32
34
|
}),
|
|
33
35
|
__metadata("design:type", String)
|
|
34
36
|
], DiscountCodeCompany.prototype, "code", void 0);
|
|
35
37
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ length: 10, comment: "Descuento que se aplica." }),
|
|
38
|
+
(0, typeorm_1.Column)({ length: 10, type: "varchar", comment: "Descuento que se aplica." }),
|
|
37
39
|
__metadata("design:type", String)
|
|
38
40
|
], DiscountCodeCompany.prototype, "discount", void 0);
|
|
39
41
|
__decorate([
|
|
40
42
|
(0, typeorm_1.Column)({
|
|
41
43
|
default: 1,
|
|
44
|
+
type: "int",
|
|
42
45
|
comment: "Campo para el tipo de descuento:\r\n1. Porcentaje.\r\n2. Valor en moneda.",
|
|
43
46
|
}),
|
|
44
47
|
__metadata("design:type", Number)
|
|
@@ -46,6 +49,7 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
46
49
|
__decorate([
|
|
47
50
|
(0, typeorm_1.Column)({
|
|
48
51
|
default: 1,
|
|
52
|
+
type: "int",
|
|
49
53
|
comment: "Con esto validamos si la empresa puede usar el código una vez o varias veces:\r\n1. Una sola vez.\r\n0. Más de una vez.\r\n\r\nCon esto validamos sí tenemos qué ir a buscar a la tabla code_redemption_history_company.",
|
|
50
54
|
}),
|
|
51
55
|
__metadata("design:type", Number)
|
|
@@ -53,6 +57,8 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
53
57
|
__decorate([
|
|
54
58
|
(0, typeorm_1.Column)({
|
|
55
59
|
nullable: true,
|
|
60
|
+
type: "int",
|
|
61
|
+
default: null,
|
|
56
62
|
comment: "Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.",
|
|
57
63
|
}),
|
|
58
64
|
__metadata("design:type", Object)
|
|
@@ -76,6 +82,7 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
76
82
|
(0, typeorm_1.Column)({
|
|
77
83
|
type: "date",
|
|
78
84
|
nullable: true,
|
|
85
|
+
default: null,
|
|
79
86
|
comment: "Fecha de expiración del registro.",
|
|
80
87
|
}),
|
|
81
88
|
__metadata("design:type", Object)
|
|
@@ -85,6 +92,7 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
85
92
|
type: "text",
|
|
86
93
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
87
94
|
nullable: true,
|
|
95
|
+
default: null,
|
|
88
96
|
comment: "Columna de tipos JSON para agregar en un arreglo los días que se pueden repetir el descuento.",
|
|
89
97
|
}),
|
|
90
98
|
__metadata("design:type", Object)
|
|
@@ -100,6 +108,8 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
100
108
|
__decorate([
|
|
101
109
|
(0, typeorm_1.Column)({
|
|
102
110
|
default: 1,
|
|
111
|
+
type: "int",
|
|
112
|
+
width: 1,
|
|
103
113
|
comment: "Estado del registro, es decir: \n 1. Activo: Es visible en la plataforma. \n 0. Inactivo: No será visible en la plataforma.",
|
|
104
114
|
}),
|
|
105
115
|
__metadata("design:type", Number)
|
|
@@ -22,6 +22,7 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
22
22
|
}
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
25
|
+
type: "int",
|
|
25
26
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
26
27
|
}),
|
|
27
28
|
__metadata("design:type", Number)
|
|
@@ -44,15 +45,21 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
44
45
|
__metadata("design:type", Object)
|
|
45
46
|
], DiscountCodeUser.prototype, "local", void 0);
|
|
46
47
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
length: 10,
|
|
50
|
+
type: "varchar",
|
|
51
|
+
comment: "Código del descuento para compartirlo.",
|
|
52
|
+
}),
|
|
48
53
|
__metadata("design:type", String)
|
|
49
54
|
], DiscountCodeUser.prototype, "code", void 0);
|
|
50
55
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ length: 10, comment: "Descuento que se aplica." }),
|
|
56
|
+
(0, typeorm_1.Column)({ length: 10, type: "varchar", comment: "Descuento que se aplica." }),
|
|
52
57
|
__metadata("design:type", String)
|
|
53
58
|
], DiscountCodeUser.prototype, "discount", void 0);
|
|
54
59
|
__decorate([
|
|
55
60
|
(0, typeorm_1.Column)({
|
|
61
|
+
type: "int",
|
|
62
|
+
width: 1,
|
|
56
63
|
comment: "Campo para el tipo de descuento: \r\n1. Porcentaje.\r\n2. Valor en moneda.",
|
|
57
64
|
}),
|
|
58
65
|
__metadata("design:type", Number)
|
|
@@ -60,6 +67,8 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
60
67
|
__decorate([
|
|
61
68
|
(0, typeorm_1.Column)({
|
|
62
69
|
default: 1,
|
|
70
|
+
type: "int",
|
|
71
|
+
width: 1,
|
|
63
72
|
comment: "Con esto validamos si la empresa puede usar el código una vez o varias veces:\r\n1. Una sola vez.\r\n0. Más de una vez.\r\n\r\nCon esto validamos sí tenemos que ir a buscar a la tabla code_redemption_history_user",
|
|
64
73
|
}),
|
|
65
74
|
__metadata("design:type", Number)
|
|
@@ -67,6 +76,8 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
67
76
|
__decorate([
|
|
68
77
|
(0, typeorm_1.Column)({
|
|
69
78
|
nullable: true,
|
|
79
|
+
default: null,
|
|
80
|
+
type: "int",
|
|
70
81
|
comment: "Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.",
|
|
71
82
|
}),
|
|
72
83
|
__metadata("design:type", Object)
|
|
@@ -90,6 +101,7 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
90
101
|
(0, typeorm_1.Column)({
|
|
91
102
|
type: "date",
|
|
92
103
|
nullable: true,
|
|
104
|
+
default: null,
|
|
93
105
|
comment: "Fecha de expiración del registro.",
|
|
94
106
|
}),
|
|
95
107
|
__metadata("design:type", Object)
|
|
@@ -99,6 +111,7 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
99
111
|
type: "text",
|
|
100
112
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
101
113
|
nullable: true,
|
|
114
|
+
default: null,
|
|
102
115
|
comment: "Columna de tipos JSON para agregar en un arreglo los días que se pueden repetir el descuento.",
|
|
103
116
|
}),
|
|
104
117
|
__metadata("design:type", Object)
|
|
@@ -122,6 +135,8 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
122
135
|
__decorate([
|
|
123
136
|
(0, typeorm_1.Column)({
|
|
124
137
|
default: 1,
|
|
138
|
+
type: "int",
|
|
139
|
+
width: 1,
|
|
125
140
|
comment: "Estado del registro, es decir: \n 1. Activo: Es visible en la plataforma. \n 0. Inactivo: No será visible en la plataforma.",
|
|
126
141
|
}),
|
|
127
142
|
__metadata("design:type", Number)
|
package/dist/entities/Local.d.ts
CHANGED
package/dist/entities/Local.js
CHANGED
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Local = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var __1 = require("..");
|
|
15
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
15
16
|
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
17
|
var BusinessTypeProduct_1 = require("./BusinessTypeProduct");
|
|
17
18
|
var Category_1 = require("./Category");
|
|
@@ -22,12 +23,12 @@ var Partner_1 = require("./Partner");
|
|
|
22
23
|
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
24
|
var Square_1 = require("./Square");
|
|
24
25
|
var User_1 = require("./User");
|
|
25
|
-
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
26
26
|
var Local = /** @class */ (function () {
|
|
27
27
|
function Local() {
|
|
28
28
|
}
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
31
|
+
type: "int",
|
|
31
32
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
32
33
|
}),
|
|
33
34
|
__metadata("design:type", Number)
|
|
@@ -41,7 +42,7 @@ var Local = /** @class */ (function () {
|
|
|
41
42
|
__metadata("design:type", Company_1.Company)
|
|
42
43
|
], Local.prototype, "company", void 0);
|
|
43
44
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ length: 100 }),
|
|
45
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100 }),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
47
|
], Local.prototype, "name", void 0);
|
|
47
48
|
__decorate([
|
|
@@ -53,7 +54,7 @@ var Local = /** @class */ (function () {
|
|
|
53
54
|
__metadata("design:type", City_1.City)
|
|
54
55
|
], Local.prototype, "city", void 0);
|
|
55
56
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ length: 120 }),
|
|
57
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120 }),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
59
|
], Local.prototype, "address", void 0);
|
|
59
60
|
__decorate([
|
|
@@ -68,6 +69,7 @@ var Local = /** @class */ (function () {
|
|
|
68
69
|
(0, typeorm_1.Column)({
|
|
69
70
|
type: "longtext",
|
|
70
71
|
nullable: true,
|
|
72
|
+
default: null,
|
|
71
73
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
72
74
|
comment: "Campo de tipo JSON por si es necesario agregar información adicional",
|
|
73
75
|
}),
|
|
@@ -109,6 +111,7 @@ var Local = /** @class */ (function () {
|
|
|
109
111
|
(0, typeorm_1.Column)({
|
|
110
112
|
type: "text",
|
|
111
113
|
nullable: true,
|
|
114
|
+
default: null,
|
|
112
115
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
113
116
|
comment: "Campo de tipo JSON por si es necesario agregar información adicional",
|
|
114
117
|
}),
|
|
@@ -117,6 +120,8 @@ var Local = /** @class */ (function () {
|
|
|
117
120
|
__decorate([
|
|
118
121
|
(0, typeorm_1.Column)({
|
|
119
122
|
default: 1,
|
|
123
|
+
type: "int",
|
|
124
|
+
width: 1,
|
|
120
125
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
121
126
|
}),
|
|
122
127
|
__metadata("design:type", Number)
|
|
@@ -124,6 +129,8 @@ var Local = /** @class */ (function () {
|
|
|
124
129
|
__decorate([
|
|
125
130
|
(0, typeorm_1.Column)({
|
|
126
131
|
default: 1,
|
|
132
|
+
type: "int",
|
|
133
|
+
width: 1,
|
|
127
134
|
comment: "Es el estado para verificar si se envía en la papelera o no.",
|
|
128
135
|
}),
|
|
129
136
|
__metadata("design:type", Number)
|
|
@@ -19,6 +19,7 @@ var LocalPlan = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
+
type: "int",
|
|
22
23
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
@@ -42,12 +43,17 @@ var LocalPlan = /** @class */ (function () {
|
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, typeorm_1.Column)({
|
|
44
45
|
default: 0,
|
|
46
|
+
type: "int",
|
|
47
|
+
width: 1,
|
|
45
48
|
comment: "Valor de tipo numérico para saber sí el local tiene el plan mensual o anual:\n\n 1. Mensual. \n\n2. Anual.",
|
|
46
49
|
}),
|
|
47
50
|
__metadata("design:type", Number)
|
|
48
51
|
], LocalPlan.prototype, "type", void 0);
|
|
49
52
|
__decorate([
|
|
50
53
|
(0, typeorm_1.Column)({
|
|
54
|
+
type: "decimal",
|
|
55
|
+
precision: 10,
|
|
56
|
+
scale: 2,
|
|
51
57
|
comment: "Precio por el plan del local.",
|
|
52
58
|
}),
|
|
53
59
|
__metadata("design:type", Number)
|
|
@@ -56,6 +62,7 @@ var LocalPlan = /** @class */ (function () {
|
|
|
56
62
|
(0, typeorm_1.Column)({
|
|
57
63
|
type: "mediumtext",
|
|
58
64
|
nullable: true,
|
|
65
|
+
default: null,
|
|
59
66
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
60
67
|
comment: "Por si necesitamos agregar más elementos a la tabla. \n\nEsto se comporta como un Objeto guardado en la columna.",
|
|
61
68
|
}),
|
|
@@ -80,6 +87,8 @@ var LocalPlan = /** @class */ (function () {
|
|
|
80
87
|
__decorate([
|
|
81
88
|
(0, typeorm_1.Column)({
|
|
82
89
|
default: 1,
|
|
90
|
+
type: "int",
|
|
91
|
+
width: 1,
|
|
83
92
|
comment: "¿El master tiene acceso a la plataforma?:\r\n1. Activo: El master tiene acceso.\r\n0. Inactivo: El master no tiene acceso a la plataforma.",
|
|
84
93
|
}),
|
|
85
94
|
__metadata("design:type", Number)
|
|
@@ -11,20 +11,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalQualification = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
14
15
|
var Local_1 = require("./Local");
|
|
15
16
|
var User_1 = require("./User");
|
|
16
|
-
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
17
17
|
var LocalQualification = /** @class */ (function () {
|
|
18
18
|
function LocalQualification() {
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryColumn)({
|
|
22
|
+
type: "int",
|
|
22
23
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], LocalQualification.prototype, "id", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.Column)({
|
|
29
|
+
type: "int",
|
|
30
|
+
width: 5,
|
|
28
31
|
comment: "Calificación que tiene el local.\r\n1. Mínimo: Mal servicio.\r\n5. Máximo: Excelente servicio\r\n\r\nLa calificación se evalúa haciéndole 3 o 4 preguntas al usuario:\r\n1. Qué tal fue el servicio a la hora de realizar el pedido.\r\n......",
|
|
29
32
|
}),
|
|
30
33
|
__metadata("design:type", Number)
|
package/dist/entities/Master.js
CHANGED
|
@@ -22,33 +22,42 @@ var Master = /** @class */ (function () {
|
|
|
22
22
|
}
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
25
|
+
type: "int",
|
|
25
26
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
26
27
|
}),
|
|
27
28
|
__metadata("design:type", Number)
|
|
28
29
|
], Master.prototype, "id", void 0);
|
|
29
30
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({
|
|
31
|
+
(0, typeorm_1.Column)({
|
|
32
|
+
length: 30,
|
|
33
|
+
type: "varchar",
|
|
34
|
+
unique: true,
|
|
35
|
+
comment: "Código único del master.",
|
|
36
|
+
}),
|
|
31
37
|
__metadata("design:type", String)
|
|
32
38
|
], Master.prototype, "code", void 0);
|
|
33
39
|
__decorate([
|
|
34
40
|
(0, typeorm_1.Column)({
|
|
41
|
+
type: "varchar",
|
|
35
42
|
length: 14,
|
|
36
43
|
nullable: true,
|
|
44
|
+
default: null,
|
|
37
45
|
unique: true,
|
|
38
46
|
comment: "Número de documento del master.",
|
|
39
47
|
}),
|
|
40
48
|
__metadata("design:type", Object)
|
|
41
49
|
], Master.prototype, "document", void 0);
|
|
42
50
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del master." }),
|
|
51
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del master." }),
|
|
44
52
|
__metadata("design:type", String)
|
|
45
53
|
], Master.prototype, "name", void 0);
|
|
46
54
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Apellidos del master." }),
|
|
55
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Apellidos del master." }),
|
|
48
56
|
__metadata("design:type", String)
|
|
49
57
|
], Master.prototype, "surname", void 0);
|
|
50
58
|
__decorate([
|
|
51
59
|
(0, typeorm_1.Column)({
|
|
60
|
+
type: "varchar",
|
|
52
61
|
length: 100,
|
|
53
62
|
unique: true,
|
|
54
63
|
comment: "Correo electrónico del master.",
|
|
@@ -57,6 +66,7 @@ var Master = /** @class */ (function () {
|
|
|
57
66
|
], Master.prototype, "email", void 0);
|
|
58
67
|
__decorate([
|
|
59
68
|
(0, typeorm_1.Column)({
|
|
69
|
+
type: "varchar",
|
|
60
70
|
length: 12,
|
|
61
71
|
unique: true,
|
|
62
72
|
comment: "Número de celular del master.",
|
|
@@ -72,11 +82,17 @@ var Master = /** @class */ (function () {
|
|
|
72
82
|
__metadata("design:type", City_1.City)
|
|
73
83
|
], Master.prototype, "city", void 0);
|
|
74
84
|
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({
|
|
85
|
+
(0, typeorm_1.Column)({
|
|
86
|
+
nullable: true,
|
|
87
|
+
type: "varchar",
|
|
88
|
+
length: 100,
|
|
89
|
+
comment: "Dirección del master.",
|
|
90
|
+
}),
|
|
76
91
|
__metadata("design:type", String)
|
|
77
92
|
], Master.prototype, "address", void 0);
|
|
78
93
|
__decorate([
|
|
79
94
|
(0, typeorm_1.Column)({
|
|
95
|
+
type: "varchar",
|
|
80
96
|
length: 255,
|
|
81
97
|
comment: "Contraseña almacenada tipo SHA256 del master.",
|
|
82
98
|
}),
|
|
@@ -86,6 +102,7 @@ var Master = /** @class */ (function () {
|
|
|
86
102
|
(0, typeorm_1.Column)({
|
|
87
103
|
type: "longtext",
|
|
88
104
|
nullable: true,
|
|
105
|
+
default: null,
|
|
89
106
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
90
107
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
91
108
|
}),
|
|
@@ -110,6 +127,8 @@ var Master = /** @class */ (function () {
|
|
|
110
127
|
__decorate([
|
|
111
128
|
(0, typeorm_1.Column)({
|
|
112
129
|
default: 1,
|
|
130
|
+
type: "int",
|
|
131
|
+
width: 1,
|
|
113
132
|
comment: "¿El master tiene acceso a la plataforma?:\r\n1. Activo: El master tiene acceso.\r\n0. Inactivo: El master no tiene acceso a la plataforma.",
|
|
114
133
|
}),
|
|
115
134
|
__metadata("design:type", Number)
|
|
@@ -117,6 +136,8 @@ var Master = /** @class */ (function () {
|
|
|
117
136
|
__decorate([
|
|
118
137
|
(0, typeorm_1.Column)({
|
|
119
138
|
default: 1,
|
|
139
|
+
type: "int",
|
|
140
|
+
width: 1,
|
|
120
141
|
comment: "Es el estado para verificar si se envía en la papelera o no.",
|
|
121
142
|
}),
|
|
122
143
|
__metadata("design:type", Number)
|
|
@@ -19,6 +19,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
+
type: "int",
|
|
22
23
|
comment: "ID único para cada notificación",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
@@ -43,6 +44,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
43
44
|
], MasterNotification.prototype, "partner", void 0);
|
|
44
45
|
__decorate([
|
|
45
46
|
(0, typeorm_1.Column)({
|
|
47
|
+
type: "varchar",
|
|
46
48
|
length: 200,
|
|
47
49
|
comment: "Nombre de la notificación.",
|
|
48
50
|
}),
|
|
@@ -50,8 +52,10 @@ var MasterNotification = /** @class */ (function () {
|
|
|
50
52
|
], MasterNotification.prototype, "name", void 0);
|
|
51
53
|
__decorate([
|
|
52
54
|
(0, typeorm_1.Column)({
|
|
55
|
+
type: "varchar",
|
|
53
56
|
length: 400,
|
|
54
57
|
nullable: true,
|
|
58
|
+
default: null,
|
|
55
59
|
comment: "Descripción de la notificación.",
|
|
56
60
|
}),
|
|
57
61
|
__metadata("design:type", Object)
|
|
@@ -60,6 +64,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
60
64
|
(0, typeorm_1.Column)({
|
|
61
65
|
type: "text",
|
|
62
66
|
nullable: true,
|
|
67
|
+
default: null,
|
|
63
68
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
64
69
|
comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
|
|
65
70
|
}),
|
|
@@ -68,6 +73,8 @@ var MasterNotification = /** @class */ (function () {
|
|
|
68
73
|
__decorate([
|
|
69
74
|
(0, typeorm_1.Column)({
|
|
70
75
|
default: 1,
|
|
76
|
+
type: "int",
|
|
77
|
+
length: 1,
|
|
71
78
|
comment: "Estado de la notificación: \r\n0. Inactiva. \r\n1. Activa.\r\n2. Reasignada.",
|
|
72
79
|
}),
|
|
73
80
|
__metadata("design:type", Number)
|
|
@@ -17,17 +17,24 @@ var MasterPermission = /** @class */ (function () {
|
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
+
type: "int",
|
|
20
21
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
21
22
|
}),
|
|
22
23
|
__metadata("design:type", Number)
|
|
23
24
|
], MasterPermission.prototype, "id", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({
|
|
26
|
+
(0, typeorm_1.Column)({
|
|
27
|
+
length: 10,
|
|
28
|
+
type: "varchar",
|
|
29
|
+
unique: true,
|
|
30
|
+
comment: "Código del permiso.",
|
|
31
|
+
}),
|
|
26
32
|
__metadata("design:type", String)
|
|
27
33
|
], MasterPermission.prototype, "code", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, typeorm_1.Column)({
|
|
30
36
|
length: 40,
|
|
37
|
+
type: "varchar",
|
|
31
38
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
32
39
|
}),
|
|
33
40
|
__metadata("design:type", String)
|
|
@@ -35,6 +42,7 @@ var MasterPermission = /** @class */ (function () {
|
|
|
35
42
|
__decorate([
|
|
36
43
|
(0, typeorm_1.Column)({
|
|
37
44
|
length: 40,
|
|
45
|
+
type: "varchar",
|
|
38
46
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
39
47
|
}),
|
|
40
48
|
__metadata("design:type", String)
|
|
@@ -42,6 +50,8 @@ var MasterPermission = /** @class */ (function () {
|
|
|
42
50
|
__decorate([
|
|
43
51
|
(0, typeorm_1.Column)({
|
|
44
52
|
default: 1,
|
|
53
|
+
type: "int",
|
|
54
|
+
width: 1,
|
|
45
55
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
46
56
|
}),
|
|
47
57
|
__metadata("design:type", Number)
|
|
@@ -18,17 +18,24 @@ var MasterRole = /** @class */ (function () {
|
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
21
22
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
23
|
}),
|
|
23
24
|
__metadata("design:type", Number)
|
|
24
25
|
], MasterRole.prototype, "id", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({
|
|
27
|
+
(0, typeorm_1.Column)({
|
|
28
|
+
length: 10,
|
|
29
|
+
type: "varchar",
|
|
30
|
+
unique: true,
|
|
31
|
+
comment: "Código único del rol.",
|
|
32
|
+
}),
|
|
27
33
|
__metadata("design:type", String)
|
|
28
34
|
], MasterRole.prototype, "code", void 0);
|
|
29
35
|
__decorate([
|
|
30
36
|
(0, typeorm_1.Column)({
|
|
31
37
|
length: 40,
|
|
38
|
+
type: "varchar",
|
|
32
39
|
comment: 'Id de la variable que se encuentra en los archivos "locale" para el multilenguaje.\r\n\r\nCabe recordar qué los usuarios (master) también pueden crear roles, estos deben ir normal, sin id para el lenguaje.',
|
|
33
40
|
}),
|
|
34
41
|
__metadata("design:type", String)
|
|
@@ -37,6 +44,8 @@ var MasterRole = /** @class */ (function () {
|
|
|
37
44
|
(0, typeorm_1.Column)({
|
|
38
45
|
length: 40,
|
|
39
46
|
nullable: true,
|
|
47
|
+
type: "varchar",
|
|
48
|
+
default: null,
|
|
40
49
|
comment: 'Id de la variable que se encuentra en los archivos "locale" para el multilenguaje.\r\n\r\nCabe recordar qué los usuarios (master) también pueden crear roles, estos deben ir normal, sin id para el lenguaje.',
|
|
41
50
|
}),
|
|
42
51
|
__metadata("design:type", Object)
|
|
@@ -44,6 +53,8 @@ var MasterRole = /** @class */ (function () {
|
|
|
44
53
|
__decorate([
|
|
45
54
|
(0, typeorm_1.Column)({
|
|
46
55
|
default: 1,
|
|
56
|
+
type: "int",
|
|
57
|
+
width: 1,
|
|
47
58
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
48
59
|
}),
|
|
49
60
|
__metadata("design:type", Number)
|