test-entity-library-asm 3.2.14 → 3.3.1
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 +2 -0
- 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 +38 -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 +2 -0
- 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 +39 -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
package/dist/entities/Partner.js
CHANGED
|
@@ -25,6 +25,7 @@ var Partner = /** @class */ (function () {
|
|
|
25
25
|
}
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
28
|
+
type: "int",
|
|
28
29
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
29
30
|
}),
|
|
30
31
|
__metadata("design:type", Number)
|
|
@@ -39,30 +40,38 @@ var Partner = /** @class */ (function () {
|
|
|
39
40
|
__metadata("design:type", Object)
|
|
40
41
|
], Partner.prototype, "company", void 0);
|
|
41
42
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
length: 30,
|
|
45
|
+
type: "varchar",
|
|
46
|
+
unique: true,
|
|
47
|
+
comment: "Código único del partner.",
|
|
48
|
+
}),
|
|
43
49
|
__metadata("design:type", String)
|
|
44
50
|
], Partner.prototype, "code", void 0);
|
|
45
51
|
__decorate([
|
|
46
52
|
(0, typeorm_1.Column)({
|
|
47
53
|
length: 14,
|
|
48
54
|
nullable: true,
|
|
55
|
+
type: "varchar",
|
|
56
|
+
default: null,
|
|
49
57
|
unique: true,
|
|
50
58
|
comment: "Número de documento del partner.",
|
|
51
59
|
}),
|
|
52
60
|
__metadata("design:type", Object)
|
|
53
61
|
], Partner.prototype, "document", void 0);
|
|
54
62
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del partner." }),
|
|
63
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del partner." }),
|
|
56
64
|
__metadata("design:type", String)
|
|
57
65
|
], Partner.prototype, "name", void 0);
|
|
58
66
|
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Apellidos del partner." }),
|
|
67
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Apellidos del partner." }),
|
|
60
68
|
__metadata("design:type", String)
|
|
61
69
|
], Partner.prototype, "surname", void 0);
|
|
62
70
|
__decorate([
|
|
63
71
|
(0, typeorm_1.Column)({
|
|
64
72
|
length: 100,
|
|
65
73
|
unique: true,
|
|
74
|
+
type: "varchar",
|
|
66
75
|
comment: "Correo electrónico del partner.",
|
|
67
76
|
}),
|
|
68
77
|
__metadata("design:type", String)
|
|
@@ -71,6 +80,7 @@ var Partner = /** @class */ (function () {
|
|
|
71
80
|
(0, typeorm_1.Column)({
|
|
72
81
|
length: 12,
|
|
73
82
|
unique: true,
|
|
83
|
+
type: "varchar",
|
|
74
84
|
comment: "Número de celular del partner.",
|
|
75
85
|
}),
|
|
76
86
|
__metadata("design:type", String)
|
|
@@ -84,12 +94,19 @@ var Partner = /** @class */ (function () {
|
|
|
84
94
|
__metadata("design:type", City_1.City)
|
|
85
95
|
], Partner.prototype, "city", void 0);
|
|
86
96
|
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)({
|
|
97
|
+
(0, typeorm_1.Column)({
|
|
98
|
+
nullable: true,
|
|
99
|
+
default: null,
|
|
100
|
+
type: "varchar",
|
|
101
|
+
length: 100,
|
|
102
|
+
comment: "Dirección del partner.",
|
|
103
|
+
}),
|
|
88
104
|
__metadata("design:type", Object)
|
|
89
105
|
], Partner.prototype, "address", void 0);
|
|
90
106
|
__decorate([
|
|
91
107
|
(0, typeorm_1.Column)({
|
|
92
108
|
length: 255,
|
|
109
|
+
type: "varchar",
|
|
93
110
|
comment: "Contraseña almacenada tipo SHA256 del partner.",
|
|
94
111
|
}),
|
|
95
112
|
__metadata("design:type", String)
|
|
@@ -98,6 +115,7 @@ var Partner = /** @class */ (function () {
|
|
|
98
115
|
(0, typeorm_1.Column)({
|
|
99
116
|
type: "longtext",
|
|
100
117
|
nullable: true,
|
|
118
|
+
default: null,
|
|
101
119
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
102
120
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
103
121
|
}),
|
|
@@ -106,6 +124,8 @@ var Partner = /** @class */ (function () {
|
|
|
106
124
|
__decorate([
|
|
107
125
|
(0, typeorm_1.Column)({
|
|
108
126
|
default: 0,
|
|
127
|
+
type: "int",
|
|
128
|
+
width: 1,
|
|
109
129
|
comment: "En este campo sabemos sí el usuario que está en la tabla es dueño de una empresa/company en la plataforma.",
|
|
110
130
|
}),
|
|
111
131
|
__metadata("design:type", Number)
|
|
@@ -129,6 +149,8 @@ var Partner = /** @class */ (function () {
|
|
|
129
149
|
__decorate([
|
|
130
150
|
(0, typeorm_1.Column)({
|
|
131
151
|
default: 1,
|
|
152
|
+
type: "int",
|
|
153
|
+
width: 1,
|
|
132
154
|
comment: "¿El partner tiene acceso a la plataforma?:\r\n1. Activo: El partner tiene acceso.\r\n0. Inactivo: El partner no tiene acceso a la plataforma.",
|
|
133
155
|
}),
|
|
134
156
|
__metadata("design:type", Number)
|
|
@@ -136,6 +158,8 @@ var Partner = /** @class */ (function () {
|
|
|
136
158
|
__decorate([
|
|
137
159
|
(0, typeorm_1.Column)({
|
|
138
160
|
default: 1,
|
|
161
|
+
type: "int",
|
|
162
|
+
width: 1,
|
|
139
163
|
comment: "Es el estado para verificar si se envía en la papelera o no.",
|
|
140
164
|
}),
|
|
141
165
|
__metadata("design:type", Number)
|
|
@@ -20,6 +20,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
23
|
+
type: "int",
|
|
23
24
|
comment: "ID único para cada notificación",
|
|
24
25
|
}),
|
|
25
26
|
__metadata("design:type", Number)
|
|
@@ -45,6 +46,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
45
46
|
__decorate([
|
|
46
47
|
(0, typeorm_1.Column)({
|
|
47
48
|
length: 200,
|
|
49
|
+
type: "varchar",
|
|
48
50
|
comment: "Nombre de la notificación.",
|
|
49
51
|
}),
|
|
50
52
|
__metadata("design:type", String)
|
|
@@ -52,7 +54,9 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
52
54
|
__decorate([
|
|
53
55
|
(0, typeorm_1.Column)({
|
|
54
56
|
length: 400,
|
|
57
|
+
type: "varchar",
|
|
55
58
|
nullable: true,
|
|
59
|
+
default: null,
|
|
56
60
|
comment: "Descripción de la notificación.",
|
|
57
61
|
}),
|
|
58
62
|
__metadata("design:type", Object)
|
|
@@ -61,6 +65,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
61
65
|
(0, typeorm_1.Column)({
|
|
62
66
|
type: "text",
|
|
63
67
|
nullable: true,
|
|
68
|
+
default: null,
|
|
64
69
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
65
70
|
comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
|
|
66
71
|
}),
|
|
@@ -69,6 +74,8 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
69
74
|
__decorate([
|
|
70
75
|
(0, typeorm_1.Column)({
|
|
71
76
|
default: 1,
|
|
77
|
+
type: "int",
|
|
78
|
+
length: 1,
|
|
72
79
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
73
80
|
}),
|
|
74
81
|
__metadata("design:type", Number)
|
|
@@ -11,19 +11,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PartnerPermission = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var PartnerRole_1 = require("./PartnerRole");
|
|
15
14
|
var __1 = require("..");
|
|
15
|
+
var PartnerRole_1 = require("./PartnerRole");
|
|
16
16
|
var PartnerPermission = /** @class */ (function () {
|
|
17
17
|
function PartnerPermission() {
|
|
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
|
], PartnerPermission.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 del permiso.",
|
|
32
|
+
}),
|
|
27
33
|
__metadata("design:type", String)
|
|
28
34
|
], PartnerPermission.prototype, "code", void 0);
|
|
29
35
|
__decorate([
|
|
@@ -39,6 +45,7 @@ var PartnerPermission = /** @class */ (function () {
|
|
|
39
45
|
__decorate([
|
|
40
46
|
(0, typeorm_1.Column)({
|
|
41
47
|
length: 40,
|
|
48
|
+
type: "varchar",
|
|
42
49
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
43
50
|
}),
|
|
44
51
|
__metadata("design:type", String)
|
|
@@ -46,22 +53,28 @@ var PartnerPermission = /** @class */ (function () {
|
|
|
46
53
|
__decorate([
|
|
47
54
|
(0, typeorm_1.Column)({
|
|
48
55
|
length: 40,
|
|
56
|
+
type: "varchar",
|
|
49
57
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
50
58
|
nullable: true,
|
|
59
|
+
default: null,
|
|
51
60
|
}),
|
|
52
61
|
__metadata("design:type", Object)
|
|
53
62
|
], PartnerPermission.prototype, "description", void 0);
|
|
54
63
|
__decorate([
|
|
55
64
|
(0, typeorm_1.Column)({
|
|
56
65
|
length: 20,
|
|
66
|
+
type: "varchar",
|
|
57
67
|
comment: "Icono de la sección para los permisos.",
|
|
58
68
|
nullable: true,
|
|
69
|
+
default: null,
|
|
59
70
|
}),
|
|
60
71
|
__metadata("design:type", Object)
|
|
61
72
|
], PartnerPermission.prototype, "icon", void 0);
|
|
62
73
|
__decorate([
|
|
63
74
|
(0, typeorm_1.Column)({
|
|
64
75
|
default: 1,
|
|
76
|
+
type: "int",
|
|
77
|
+
width: 1,
|
|
65
78
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
66
79
|
}),
|
|
67
80
|
__metadata("design:type", Number)
|
|
@@ -17,12 +17,18 @@ var PartnerPermissionSection = /** @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
|
], PartnerPermissionSection.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
|
], PartnerPermissionSection.prototype, "code", void 0);
|
|
28
34
|
__decorate([
|
|
@@ -36,6 +42,7 @@ var PartnerPermissionSection = /** @class */ (function () {
|
|
|
36
42
|
__decorate([
|
|
37
43
|
(0, typeorm_1.Column)({
|
|
38
44
|
length: 40,
|
|
45
|
+
type: "varchar",
|
|
39
46
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
40
47
|
}),
|
|
41
48
|
__metadata("design:type", String)
|
|
@@ -43,22 +50,28 @@ var PartnerPermissionSection = /** @class */ (function () {
|
|
|
43
50
|
__decorate([
|
|
44
51
|
(0, typeorm_1.Column)({
|
|
45
52
|
length: 40,
|
|
53
|
+
type: "varchar",
|
|
46
54
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
47
55
|
nullable: true,
|
|
56
|
+
default: null,
|
|
48
57
|
}),
|
|
49
58
|
__metadata("design:type", Object)
|
|
50
59
|
], PartnerPermissionSection.prototype, "description", void 0);
|
|
51
60
|
__decorate([
|
|
52
61
|
(0, typeorm_1.Column)({
|
|
53
62
|
length: 20,
|
|
63
|
+
type: "varchar",
|
|
54
64
|
comment: "Icono de la sección para los permisos.",
|
|
55
65
|
nullable: true,
|
|
66
|
+
default: null,
|
|
56
67
|
}),
|
|
57
68
|
__metadata("design:type", Object)
|
|
58
69
|
], PartnerPermissionSection.prototype, "icon", void 0);
|
|
59
70
|
__decorate([
|
|
60
71
|
(0, typeorm_1.Column)({
|
|
61
72
|
default: 1,
|
|
73
|
+
type: "int",
|
|
74
|
+
width: 1,
|
|
62
75
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
63
76
|
}),
|
|
64
77
|
__metadata("design:type", Number)
|
|
@@ -17,17 +17,24 @@ var PartnerPlatform = /** @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
|
], PartnerPlatform.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 de la sección.",
|
|
31
|
+
}),
|
|
26
32
|
__metadata("design:type", String)
|
|
27
33
|
], PartnerPlatform.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,22 +42,28 @@ var PartnerPlatform = /** @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
|
nullable: true,
|
|
48
|
+
default: null,
|
|
40
49
|
}),
|
|
41
50
|
__metadata("design:type", Object)
|
|
42
51
|
], PartnerPlatform.prototype, "description", void 0);
|
|
43
52
|
__decorate([
|
|
44
53
|
(0, typeorm_1.Column)({
|
|
45
54
|
length: 20,
|
|
55
|
+
type: "varchar",
|
|
46
56
|
comment: "Icono de la sección para los permisos.",
|
|
47
57
|
nullable: true,
|
|
58
|
+
default: null,
|
|
48
59
|
}),
|
|
49
60
|
__metadata("design:type", Object)
|
|
50
61
|
], PartnerPlatform.prototype, "icon", void 0);
|
|
51
62
|
__decorate([
|
|
52
63
|
(0, typeorm_1.Column)({
|
|
53
64
|
default: 1,
|
|
65
|
+
type: "int",
|
|
66
|
+
width: 1,
|
|
54
67
|
comment: "Estado en el que se encuentra el registro:\r\n1. Activo: El partner tiene acceso.\r\n0. Inactivo: El partner no tiene acceso a la plataforma.",
|
|
55
68
|
}),
|
|
56
69
|
__metadata("design:type", Number)
|
|
@@ -19,12 +19,18 @@ var PartnerRole = /** @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)
|
|
25
26
|
], PartnerRole.prototype, "id", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({
|
|
28
|
+
(0, typeorm_1.Column)({
|
|
29
|
+
length: 10,
|
|
30
|
+
type: "varchar",
|
|
31
|
+
unique: true,
|
|
32
|
+
comment: "Código único del rol.",
|
|
33
|
+
}),
|
|
28
34
|
__metadata("design:type", String)
|
|
29
35
|
], PartnerRole.prototype, "code", void 0);
|
|
30
36
|
__decorate([
|
|
@@ -39,6 +45,7 @@ var PartnerRole = /** @class */ (function () {
|
|
|
39
45
|
__decorate([
|
|
40
46
|
(0, typeorm_1.Column)({
|
|
41
47
|
length: 40,
|
|
48
|
+
type: "varchar",
|
|
42
49
|
comment: 'Id de la variable que se encuentra en los archivos "locale" para el multilenguaje.\r\n\r\nCabe recordar qué los usuarios también pueden crear roles, estos deben ir normal, sin id para el lenguaje.',
|
|
43
50
|
}),
|
|
44
51
|
__metadata("design:type", String)
|
|
@@ -47,6 +54,8 @@ var PartnerRole = /** @class */ (function () {
|
|
|
47
54
|
(0, typeorm_1.Column)({
|
|
48
55
|
length: 200,
|
|
49
56
|
nullable: true,
|
|
57
|
+
default: null,
|
|
58
|
+
type: "varchar",
|
|
50
59
|
comment: 'Id de la variable que se encuentra en los archivos "locale" para el multilenguaje.\r\n\r\nCabe recordar qué los usuarios también pueden crear roles, estos deben ir normal, sin id para el lenguaje.',
|
|
51
60
|
}),
|
|
52
61
|
__metadata("design:type", Object)
|
|
@@ -54,6 +63,8 @@ var PartnerRole = /** @class */ (function () {
|
|
|
54
63
|
__decorate([
|
|
55
64
|
(0, typeorm_1.Column)({
|
|
56
65
|
default: 1,
|
|
66
|
+
type: "int",
|
|
67
|
+
width: 1,
|
|
57
68
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
58
69
|
}),
|
|
59
70
|
__metadata("design:type", Number)
|
|
@@ -18,6 +18,7 @@ var PartnerSession = /** @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)
|
|
@@ -32,6 +33,8 @@ var PartnerSession = /** @class */ (function () {
|
|
|
32
33
|
], PartnerSession.prototype, "partner", void 0);
|
|
33
34
|
__decorate([
|
|
34
35
|
(0, typeorm_1.Column)({
|
|
36
|
+
type: "int",
|
|
37
|
+
default: 1,
|
|
35
38
|
comment: "Plataforma a la que está inciando sesión:\r\n1. Administrador.\r\n2. Portal - Terminal.",
|
|
36
39
|
}),
|
|
37
40
|
__metadata("design:type", Number)
|
|
@@ -39,6 +42,7 @@ var PartnerSession = /** @class */ (function () {
|
|
|
39
42
|
__decorate([
|
|
40
43
|
(0, typeorm_1.Column)({
|
|
41
44
|
length: 255,
|
|
45
|
+
type: "varchar",
|
|
42
46
|
comment: "Token generado para la sesión.",
|
|
43
47
|
}),
|
|
44
48
|
__metadata("design:type", String)
|
|
@@ -46,6 +50,7 @@ var PartnerSession = /** @class */ (function () {
|
|
|
46
50
|
__decorate([
|
|
47
51
|
(0, typeorm_1.Column)({
|
|
48
52
|
length: 255,
|
|
53
|
+
type: "varchar",
|
|
49
54
|
comment: "Dirección IP de donde está accediendo.",
|
|
50
55
|
}),
|
|
51
56
|
__metadata("design:type", String)
|
|
@@ -62,6 +67,7 @@ var PartnerSession = /** @class */ (function () {
|
|
|
62
67
|
(0, typeorm_1.Column)({
|
|
63
68
|
type: "datetime",
|
|
64
69
|
nullable: true,
|
|
70
|
+
default: null,
|
|
65
71
|
comment: "Fecha de finalización de la sesión.",
|
|
66
72
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
67
73
|
}),
|
|
@@ -70,6 +76,8 @@ var PartnerSession = /** @class */ (function () {
|
|
|
70
76
|
__decorate([
|
|
71
77
|
(0, typeorm_1.Column)({
|
|
72
78
|
default: 1,
|
|
79
|
+
type: "int",
|
|
80
|
+
width: 1,
|
|
73
81
|
comment: "Estado de la sesión:\r\n1. Activa.\r\n2. Expirada.\r\n3. Revocada.",
|
|
74
82
|
}),
|
|
75
83
|
__metadata("design:type", Number)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Local } from "./Local";
|
|
2
1
|
import { RequestLocalPayment } from "..";
|
|
2
|
+
import { Local } from "./Local";
|
|
3
3
|
export declare class PaymentMethod {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string | null;
|
|
7
|
-
settings:
|
|
7
|
+
settings: any | null;
|
|
8
8
|
created: Date;
|
|
9
9
|
status: number;
|
|
10
10
|
locals: Local[];
|
|
@@ -11,14 +11,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PaymentMethod = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var Local_1 = require("./Local");
|
|
15
14
|
var __1 = require("..");
|
|
16
15
|
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
|
+
var Local_1 = require("./Local");
|
|
17
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
18
|
var PaymentMethod = /** @class */ (function () {
|
|
18
19
|
function PaymentMethod() {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, typeorm_1.PrimaryColumn)({
|
|
23
|
+
type: "int",
|
|
22
24
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
25
|
}),
|
|
24
26
|
__metadata("design:type", Number)
|
|
@@ -26,6 +28,7 @@ var PaymentMethod = /** @class */ (function () {
|
|
|
26
28
|
__decorate([
|
|
27
29
|
(0, typeorm_1.Column)({
|
|
28
30
|
length: 50,
|
|
31
|
+
type: "varchar",
|
|
29
32
|
comment: "Nombre del estado, este campo debe tener el id/key de cada lenguaje. \r\n\r\nVer la carpeta locales del proyecto frontend para ver el id de cada tipo de elemento.",
|
|
30
33
|
}),
|
|
31
34
|
__metadata("design:type", String)
|
|
@@ -34,6 +37,8 @@ var PaymentMethod = /** @class */ (function () {
|
|
|
34
37
|
(0, typeorm_1.Column)({
|
|
35
38
|
length: 50,
|
|
36
39
|
nullable: true,
|
|
40
|
+
default: null,
|
|
41
|
+
type: "varchar",
|
|
37
42
|
comment: "Descripción del estado, este campo debe tener el id/key de cada lenguaje. \r\n\r\nVer la carpeta locales del proyecto frontend para ver el id de cada tipo de elemento.",
|
|
38
43
|
}),
|
|
39
44
|
__metadata("design:type", Object)
|
|
@@ -41,7 +46,9 @@ var PaymentMethod = /** @class */ (function () {
|
|
|
41
46
|
__decorate([
|
|
42
47
|
(0, typeorm_1.Column)({
|
|
43
48
|
type: "longtext",
|
|
49
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
44
50
|
nullable: true,
|
|
51
|
+
default: null,
|
|
45
52
|
comment: "Campo de tipo JSON donde se pueden agregar columnas u otros elementos que sean necesarios.",
|
|
46
53
|
}),
|
|
47
54
|
__metadata("design:type", Object)
|
|
@@ -57,6 +64,8 @@ var PaymentMethod = /** @class */ (function () {
|
|
|
57
64
|
__decorate([
|
|
58
65
|
(0, typeorm_1.Column)({
|
|
59
66
|
default: 1,
|
|
67
|
+
type: "int",
|
|
68
|
+
width: 1,
|
|
60
69
|
comment: "Valida si el estado es visible para mostrar al cliente (local/company): \r\n1. Activo. \r\n0. Inactivo.",
|
|
61
70
|
}),
|
|
62
71
|
__metadata("design:type", Number)
|
package/dist/entities/Plan.d.ts
CHANGED
package/dist/entities/Plan.js
CHANGED
|
@@ -12,20 +12,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Plan = 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 Company_1 = require("./Company");
|
|
17
|
-
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
18
18
|
var Plan = /** @class */ (function () {
|
|
19
19
|
function Plan() {
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
23
|
+
type: "int",
|
|
23
24
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
25
|
}),
|
|
25
26
|
__metadata("design:type", Number)
|
|
26
27
|
], Plan.prototype, "id", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
length: 20,
|
|
31
|
+
type: "varchar",
|
|
32
|
+
unique: true,
|
|
33
|
+
comment: "Código del plan.",
|
|
34
|
+
}),
|
|
29
35
|
__metadata("design:type", String)
|
|
30
36
|
], Plan.prototype, "code", void 0);
|
|
31
37
|
__decorate([
|
|
@@ -39,6 +45,7 @@ var Plan = /** @class */ (function () {
|
|
|
39
45
|
__decorate([
|
|
40
46
|
(0, typeorm_1.Column)({
|
|
41
47
|
length: 50,
|
|
48
|
+
type: "varchar",
|
|
42
49
|
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
43
50
|
}),
|
|
44
51
|
__metadata("design:type", String)
|
|
@@ -48,12 +55,16 @@ var Plan = /** @class */ (function () {
|
|
|
48
55
|
type: "mediumtext",
|
|
49
56
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
50
57
|
nullable: true,
|
|
58
|
+
default: null,
|
|
51
59
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el plan",
|
|
52
60
|
}),
|
|
53
61
|
__metadata("design:type", Object)
|
|
54
62
|
], Plan.prototype, "description", void 0);
|
|
55
63
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)(
|
|
64
|
+
(0, typeorm_1.Column)({
|
|
65
|
+
type: "int",
|
|
66
|
+
comment: "Cantidad de locales a los que está el plan.",
|
|
67
|
+
}),
|
|
57
68
|
__metadata("design:type", Number)
|
|
58
69
|
], Plan.prototype, "quantity_locals", void 0);
|
|
59
70
|
__decorate([
|
|
@@ -71,6 +82,8 @@ var Plan = /** @class */ (function () {
|
|
|
71
82
|
__decorate([
|
|
72
83
|
(0, typeorm_1.Column)({
|
|
73
84
|
default: 1,
|
|
85
|
+
type: "int",
|
|
86
|
+
width: 1,
|
|
74
87
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
75
88
|
}),
|
|
76
89
|
__metadata("design:type", Number)
|
|
@@ -3,8 +3,8 @@ export declare class PosSystem {
|
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string | null;
|
|
6
|
-
endpoint_products:
|
|
7
|
-
endpoint_order:
|
|
6
|
+
endpoint_products: any;
|
|
7
|
+
endpoint_order: any;
|
|
8
8
|
authentication_credentials: AuthenticationCredential;
|
|
9
9
|
status: number;
|
|
10
10
|
locals_pos_system: Local[];
|
|
@@ -12,36 +12,46 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PosSystem = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var __1 = require("..");
|
|
15
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
15
16
|
var PosSystem = /** @class */ (function () {
|
|
16
17
|
function PosSystem() {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
20
22
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
21
23
|
}),
|
|
22
24
|
__metadata("design:type", Number)
|
|
23
25
|
], PosSystem.prototype, "id", void 0);
|
|
24
26
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del registro." }),
|
|
27
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del registro." }),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
29
|
], PosSystem.prototype, "name", void 0);
|
|
28
30
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({
|
|
31
|
+
(0, typeorm_1.Column)({
|
|
32
|
+
length: 300,
|
|
33
|
+
type: "varchar",
|
|
34
|
+
nullable: true,
|
|
35
|
+
default: null,
|
|
36
|
+
comment: "Descripción del registro.",
|
|
37
|
+
}),
|
|
30
38
|
__metadata("design:type", Object)
|
|
31
39
|
], PosSystem.prototype, "description", void 0);
|
|
32
40
|
__decorate([
|
|
33
41
|
(0, typeorm_1.Column)({
|
|
34
42
|
type: "text",
|
|
43
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
35
44
|
comment: 'Esto será un JSON, donde va a tener información de lo que necesita para poder una petición hacia el sistema POS para traer los productos, es decir:\r\n\r\n1. type: Tipo de endpoint que tiene los productos (GET o POST)\r\n\r\n2. endpoint_name: Este es un string que será la url de la solicitud para traerse los productos que hay en el sistema POS.\r\n\r\n3. query_parameters: Este un objeto donde se van a guardar los clave valor de cada item qué necesitemos, es decir:\r\n{"productId": "product_id"...}\r\n{"ProductId: "product_id"...}\r\n{"productid": "product_id"...}\r\n\r\nEntonces, con este elemento se puede saber el parámetro que nosotros (asumano) usamos, y el parámetro que necesita el api (POS).\r\n',
|
|
36
45
|
}),
|
|
37
|
-
__metadata("design:type",
|
|
46
|
+
__metadata("design:type", Object)
|
|
38
47
|
], PosSystem.prototype, "endpoint_products", void 0);
|
|
39
48
|
__decorate([
|
|
40
49
|
(0, typeorm_1.Column)({
|
|
41
50
|
type: "text",
|
|
51
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
42
52
|
comment: 'Esto será un JSON, donde va a tener información de lo que necesita para poder una petición hacia el sistema POS para realizar un pedido, es decir:\r\n\r\n1. type: Tipo de endpoint que tiene los pedidos (GET o POST) (Acá todos los desarrolladores deberían usar POST, ya que es una creación, pero hay casos en que no los usan, toca validar).\r\n\r\n2. endpoint_name: Este es un string que será la url de la solicitud para crear un pedido en el sistema POS.\r\n\r\n3. query_parameters: Este un objeto donde se van a guardar los clave valor de cada item qué necesitemos, es decir:\r\n{"productId": "product_id"...}\r\n{"ProductId: "product_id"...}\r\n{"productid": "product_id"...}\r\n\r\nEntonces, con este elemento se puede saber el parámetro que nosotros (asumano) usamos, y el parámetro que necesita el api (POS) para poder crear el pedido.\r\n',
|
|
43
53
|
}),
|
|
44
|
-
__metadata("design:type",
|
|
54
|
+
__metadata("design:type", Object)
|
|
45
55
|
], PosSystem.prototype, "endpoint_order", void 0);
|
|
46
56
|
__decorate([
|
|
47
57
|
(0, typeorm_1.ManyToOne)(function () { return __1.AuthenticationCredential; }, function (authenticationCredential) {
|
|
@@ -56,6 +66,8 @@ var PosSystem = /** @class */ (function () {
|
|
|
56
66
|
__decorate([
|
|
57
67
|
(0, typeorm_1.Column)({
|
|
58
68
|
default: 1,
|
|
69
|
+
type: "int",
|
|
70
|
+
width: 1,
|
|
59
71
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
60
72
|
}),
|
|
61
73
|
__metadata("design:type", Number)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Partner, ProductDate, ProductSchedule } from "..";
|
|
1
2
|
import { Category } from "./Category";
|
|
2
3
|
import { ProductGroup } from "./ProductGroup";
|
|
3
4
|
import { ProductIngredient } from "./ProductIngredient";
|
|
4
5
|
import { RequestProduct } from "./RequestProduct";
|
|
5
6
|
import { User } from "./User";
|
|
6
|
-
import { Partner, ProductDate, ProductSchedule } from "..";
|
|
7
7
|
export declare class Product {
|
|
8
8
|
id: number;
|
|
9
9
|
category: Category;
|
|
@@ -14,7 +14,7 @@ export declare class Product {
|
|
|
14
14
|
combo: number;
|
|
15
15
|
position: number;
|
|
16
16
|
photo: any | null;
|
|
17
|
-
additional_information:
|
|
17
|
+
additional_information: any | null;
|
|
18
18
|
type_sales_hours: number | null;
|
|
19
19
|
created_by: Partner;
|
|
20
20
|
created: Date;
|