test-entity-library-asm 3.2.14 → 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 +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 +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 +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 +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
|
@@ -18,6 +18,7 @@ var RequestLocalPayment = /** @class */ (function () {
|
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
21
22
|
comment: "ID único de cada registro.",
|
|
22
23
|
}),
|
|
23
24
|
__metadata("design:type", Number)
|
|
@@ -25,6 +26,7 @@ var RequestLocalPayment = /** @class */ (function () {
|
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, typeorm_1.Column)({
|
|
27
28
|
length: 40,
|
|
29
|
+
type: "varchar",
|
|
28
30
|
unique: true,
|
|
29
31
|
comment: "Código único de cada pago que se realiza.",
|
|
30
32
|
}),
|
|
@@ -75,16 +77,20 @@ var RequestLocalPayment = /** @class */ (function () {
|
|
|
75
77
|
], RequestLocalPayment.prototype, "remaining_amount", void 0);
|
|
76
78
|
__decorate([
|
|
77
79
|
(0, typeorm_1.Column)({
|
|
80
|
+
type: "varchar",
|
|
78
81
|
length: 4,
|
|
79
82
|
nullable: true,
|
|
83
|
+
default: null,
|
|
80
84
|
comment: "Si se paga con tarjeta, entonces se almacenan los últimos 4 dígitos de la tarjeta de crédito/débito con el que se paga.",
|
|
81
85
|
}),
|
|
82
86
|
__metadata("design:type", Object)
|
|
83
87
|
], RequestLocalPayment.prototype, "card_last_four_digits", void 0);
|
|
84
88
|
__decorate([
|
|
85
89
|
(0, typeorm_1.Column)({
|
|
90
|
+
type: "varchar",
|
|
86
91
|
length: 50,
|
|
87
92
|
nullable: true,
|
|
93
|
+
default: null,
|
|
88
94
|
comment: "Si se paga con tarjeta, entonces se guarda el tipo de tarjeta con la que se paga.",
|
|
89
95
|
}),
|
|
90
96
|
__metadata("design:type", Object)
|
|
@@ -100,14 +106,17 @@ var RequestLocalPayment = /** @class */ (function () {
|
|
|
100
106
|
], RequestLocalPayment.prototype, "card", void 0);
|
|
101
107
|
__decorate([
|
|
102
108
|
(0, typeorm_1.Column)({
|
|
109
|
+
type: "varchar",
|
|
103
110
|
length: 255,
|
|
104
111
|
nullable: true,
|
|
112
|
+
default: null,
|
|
105
113
|
comment: "Comentarios del pago, si aplica.",
|
|
106
114
|
}),
|
|
107
115
|
__metadata("design:type", Object)
|
|
108
116
|
], RequestLocalPayment.prototype, "comments", void 0);
|
|
109
117
|
__decorate([
|
|
110
118
|
(0, typeorm_1.Column)({
|
|
119
|
+
type: "int",
|
|
111
120
|
length: 1,
|
|
112
121
|
comment: "Estado del pago:\r\n1. Aprobado.\r\n2. Rechazado.\r\n3. Pendiente.",
|
|
113
122
|
default: 3,
|
|
@@ -126,6 +135,7 @@ var RequestLocalPayment = /** @class */ (function () {
|
|
|
126
135
|
(0, typeorm_1.Column)({
|
|
127
136
|
type: "datetime",
|
|
128
137
|
nullable: true,
|
|
138
|
+
default: null,
|
|
129
139
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
130
140
|
comment: "Fecha de actualización del registro.",
|
|
131
141
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Product } from
|
|
2
|
-
import { Request } from
|
|
3
|
-
import { User } from
|
|
1
|
+
import { Product } from "./Product";
|
|
2
|
+
import { Request } from "./Request";
|
|
3
|
+
import { User } from "./User";
|
|
4
4
|
export declare class RequestProduct {
|
|
5
5
|
id: number;
|
|
6
6
|
request: Request;
|
|
@@ -19,48 +19,52 @@ var RequestProduct = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
-
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], RequestProduct.prototype, "id", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.ManyToOne)(function () { return Request_1.Request; }, function (request) { return request.request_products; }, {
|
|
28
|
-
onDelete:
|
|
29
|
-
onUpdate:
|
|
29
|
+
onDelete: "CASCADE",
|
|
30
|
+
onUpdate: "NO ACTION",
|
|
30
31
|
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: "request" }),
|
|
32
33
|
__metadata("design:type", Request_1.Request)
|
|
33
34
|
], RequestProduct.prototype, "request", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, typeorm_1.ManyToOne)(function () { return Product_1.Product; }, function (product) { return product.request_products; }, {
|
|
36
|
-
onDelete:
|
|
37
|
-
onUpdate:
|
|
37
|
+
onDelete: "CASCADE",
|
|
38
|
+
onUpdate: "NO ACTION",
|
|
38
39
|
}),
|
|
39
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: "product" }),
|
|
40
41
|
__metadata("design:type", Product_1.Product)
|
|
41
42
|
], RequestProduct.prototype, "product", void 0);
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.request_products; }, {
|
|
44
|
-
onDelete:
|
|
45
|
-
onUpdate:
|
|
45
|
+
onDelete: "CASCADE",
|
|
46
|
+
onUpdate: "NO ACTION",
|
|
46
47
|
}),
|
|
47
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
48
49
|
__metadata("design:type", User_1.User)
|
|
49
50
|
], RequestProduct.prototype, "user", void 0);
|
|
50
51
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ comment:
|
|
52
|
+
(0, typeorm_1.Column)({ type: "int", comment: "Cantidad del producto (product)." }),
|
|
52
53
|
__metadata("design:type", Number)
|
|
53
54
|
], RequestProduct.prototype, "quantity", void 0);
|
|
54
55
|
__decorate([
|
|
55
56
|
(0, typeorm_1.Column)({
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
type: "varchar",
|
|
58
|
+
length: 500,
|
|
59
|
+
nullable: true,
|
|
60
|
+
default: null,
|
|
61
|
+
comment: "Comentarios del producto, si hay alguna sugerencia o solicitud.",
|
|
58
62
|
}),
|
|
59
63
|
__metadata("design:type", String)
|
|
60
64
|
], RequestProduct.prototype, "comments", void 0);
|
|
61
65
|
RequestProduct = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)(
|
|
63
|
-
comment:
|
|
66
|
+
(0, typeorm_1.Entity)("request_product", {
|
|
67
|
+
comment: "Productos que están en el pedido.",
|
|
64
68
|
})
|
|
65
69
|
], RequestProduct);
|
|
66
70
|
return RequestProduct;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Request } from
|
|
2
|
-
import { User } from
|
|
3
|
-
import { ProductGroupComplement } from
|
|
1
|
+
import { Request } from "./Request";
|
|
2
|
+
import { User } from "./User";
|
|
3
|
+
import { ProductGroupComplement } from "./productGroupComplement";
|
|
4
4
|
export declare class RequestProductGroupComplement {
|
|
5
5
|
id: number;
|
|
6
6
|
request: Request;
|
|
@@ -19,43 +19,44 @@ var RequestProductGroupComplement = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
-
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], RequestProductGroupComplement.prototype, "id", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.ManyToOne)(function () { return Request_1.Request; }, function (request) { return request.request_product_group_complements; }, {
|
|
28
|
-
onDelete:
|
|
29
|
-
onUpdate:
|
|
29
|
+
onDelete: "CASCADE",
|
|
30
|
+
onUpdate: "NO ACTION",
|
|
30
31
|
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: "request" }),
|
|
32
33
|
__metadata("design:type", Request_1.Request)
|
|
33
34
|
], RequestProductGroupComplement.prototype, "request", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, typeorm_1.ManyToOne)(function () { return productGroupComplement_1.ProductGroupComplement; }, function (productGroupComplement) {
|
|
36
37
|
return productGroupComplement.request_product_group_complements;
|
|
37
38
|
}, {
|
|
38
|
-
onDelete:
|
|
39
|
-
onUpdate:
|
|
39
|
+
onDelete: "CASCADE",
|
|
40
|
+
onUpdate: "NO ACTION",
|
|
40
41
|
}),
|
|
41
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
42
|
+
(0, typeorm_1.JoinColumn)({ name: "product_group_complement" }),
|
|
42
43
|
__metadata("design:type", productGroupComplement_1.ProductGroupComplement)
|
|
43
44
|
], RequestProductGroupComplement.prototype, "product_group_complement", void 0);
|
|
44
45
|
__decorate([
|
|
45
46
|
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.request_product_group_complements; }, {
|
|
46
|
-
onDelete:
|
|
47
|
-
onUpdate:
|
|
47
|
+
onDelete: "CASCADE",
|
|
48
|
+
onUpdate: "NO ACTION",
|
|
48
49
|
}),
|
|
49
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
50
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
50
51
|
__metadata("design:type", User_1.User)
|
|
51
52
|
], RequestProductGroupComplement.prototype, "user", void 0);
|
|
52
53
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ comment:
|
|
54
|
+
(0, typeorm_1.Column)({ type: "int", comment: "Cantidad de cada complemento." }),
|
|
54
55
|
__metadata("design:type", Number)
|
|
55
56
|
], RequestProductGroupComplement.prototype, "quantity", void 0);
|
|
56
57
|
RequestProductGroupComplement = __decorate([
|
|
57
|
-
(0, typeorm_1.Entity)(
|
|
58
|
-
comment:
|
|
58
|
+
(0, typeorm_1.Entity)("request_product_group_complement", {
|
|
59
|
+
comment: "Complementos (toppings) que el usuario va a poder agregar por cada producto.",
|
|
59
60
|
})
|
|
60
61
|
], RequestProductGroupComplement);
|
|
61
62
|
return RequestProductGroupComplement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { City } from "./City";
|
|
1
2
|
import { Local } from "./Local";
|
|
2
3
|
import { User } from "./User";
|
|
3
|
-
import { City } from "./City";
|
|
4
4
|
export declare class Square {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -8,7 +8,7 @@ export declare class Square {
|
|
|
8
8
|
address: string;
|
|
9
9
|
latitude: number;
|
|
10
10
|
longitude: number;
|
|
11
|
-
details:
|
|
11
|
+
details: any | null;
|
|
12
12
|
maximum_number_locals: number;
|
|
13
13
|
email: string | null;
|
|
14
14
|
phone: string | null;
|
package/dist/entities/Square.js
CHANGED
|
@@ -11,20 +11,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Square = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
+
var City_1 = require("./City");
|
|
14
15
|
var Local_1 = require("./Local");
|
|
15
16
|
var User_1 = require("./User");
|
|
16
|
-
var
|
|
17
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
18
|
var Square = /** @class */ (function () {
|
|
18
19
|
function Square() {
|
|
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)
|
|
25
27
|
], Square.prototype, "id", void 0);
|
|
26
28
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
length: 50,
|
|
31
|
+
type: "varchar",
|
|
32
|
+
comment: "Nombre del centro comercial/plazoleta.",
|
|
33
|
+
}),
|
|
28
34
|
__metadata("design:type", String)
|
|
29
35
|
], Square.prototype, "name", void 0);
|
|
30
36
|
__decorate([
|
|
@@ -36,27 +42,48 @@ var Square = /** @class */ (function () {
|
|
|
36
42
|
__metadata("design:type", City_1.City)
|
|
37
43
|
], Square.prototype, "city", void 0);
|
|
38
44
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({
|
|
45
|
+
(0, typeorm_1.Column)({
|
|
46
|
+
length: 100,
|
|
47
|
+
type: "varchar",
|
|
48
|
+
comment: "Dirección del centro comercial/plazoleta.",
|
|
49
|
+
}),
|
|
40
50
|
__metadata("design:type", String)
|
|
41
51
|
], Square.prototype, "address", void 0);
|
|
42
52
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: "decimal",
|
|
55
|
+
precision: 10,
|
|
56
|
+
scale: 8,
|
|
57
|
+
nullable: true,
|
|
58
|
+
default: null,
|
|
59
|
+
comment: "Latitud de la plazoleta.",
|
|
60
|
+
}),
|
|
44
61
|
__metadata("design:type", Number)
|
|
45
62
|
], Square.prototype, "latitude", void 0);
|
|
46
63
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({
|
|
64
|
+
(0, typeorm_1.Column)({
|
|
65
|
+
type: "decimal",
|
|
66
|
+
precision: 10,
|
|
67
|
+
scale: 8,
|
|
68
|
+
nullable: true,
|
|
69
|
+
default: null,
|
|
70
|
+
comment: "Longitud de la plazoleta.",
|
|
71
|
+
}),
|
|
48
72
|
__metadata("design:type", Number)
|
|
49
73
|
], Square.prototype, "longitude", void 0);
|
|
50
74
|
__decorate([
|
|
51
75
|
(0, typeorm_1.Column)({
|
|
52
76
|
type: "mediumtext",
|
|
53
77
|
nullable: true,
|
|
78
|
+
default: null,
|
|
79
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
54
80
|
comment: "Campo de tipo JSON por si se llega a necesitar agregar otras columnas para las plazoletas de los centros comerciales.",
|
|
55
81
|
}),
|
|
56
82
|
__metadata("design:type", Object)
|
|
57
83
|
], Square.prototype, "details", void 0);
|
|
58
84
|
__decorate([
|
|
59
85
|
(0, typeorm_1.Column)({
|
|
86
|
+
type: "int",
|
|
60
87
|
comment: "Cantidad máxima de locales para ese del centro comercial/plazoleta.",
|
|
61
88
|
}),
|
|
62
89
|
__metadata("design:type", Number)
|
|
@@ -65,6 +92,7 @@ var Square = /** @class */ (function () {
|
|
|
65
92
|
(0, typeorm_1.Column)({
|
|
66
93
|
length: 50,
|
|
67
94
|
nullable: true,
|
|
95
|
+
default: null,
|
|
68
96
|
comment: "Correo electrónico del centro comercial/plazoleta.",
|
|
69
97
|
}),
|
|
70
98
|
__metadata("design:type", Object)
|
|
@@ -73,12 +101,15 @@ var Square = /** @class */ (function () {
|
|
|
73
101
|
(0, typeorm_1.Column)({
|
|
74
102
|
length: 15,
|
|
75
103
|
nullable: true,
|
|
104
|
+
default: null,
|
|
76
105
|
comment: "Número de celular del centro comercial/plazoleta.",
|
|
77
106
|
}),
|
|
78
107
|
__metadata("design:type", Object)
|
|
79
108
|
], Square.prototype, "phone", void 0);
|
|
80
109
|
__decorate([
|
|
81
110
|
(0, typeorm_1.Column)({
|
|
111
|
+
type: "int",
|
|
112
|
+
width: 1,
|
|
82
113
|
default: 1,
|
|
83
114
|
comment: "Si la plazoleta está o no activa:\r\n1. Activa.\r\n0. Inactiva.",
|
|
84
115
|
}),
|
|
@@ -18,6 +18,7 @@ var ToppingImage = /** @class */ (function () {
|
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
+
type: "int",
|
|
21
22
|
comment: "ID único del registro.",
|
|
22
23
|
}),
|
|
23
24
|
__metadata("design:type", Number)
|
|
@@ -25,6 +26,7 @@ var ToppingImage = /** @class */ (function () {
|
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, typeorm_1.Column)({
|
|
27
28
|
length: 100,
|
|
29
|
+
type: "varchar",
|
|
28
30
|
comment: "Nombre del registro.",
|
|
29
31
|
}),
|
|
30
32
|
__metadata("design:type", String)
|
|
@@ -32,7 +34,9 @@ var ToppingImage = /** @class */ (function () {
|
|
|
32
34
|
__decorate([
|
|
33
35
|
(0, typeorm_1.Column)({
|
|
34
36
|
length: 500,
|
|
37
|
+
type: "varchar",
|
|
35
38
|
nullable: true,
|
|
39
|
+
default: null,
|
|
36
40
|
comment: "Nombres para los filtros de búsqueda de las imágenes.",
|
|
37
41
|
}),
|
|
38
42
|
__metadata("design:type", Object)
|
|
@@ -47,6 +51,8 @@ var ToppingImage = /** @class */ (function () {
|
|
|
47
51
|
], ToppingImage.prototype, "image", void 0);
|
|
48
52
|
__decorate([
|
|
49
53
|
(0, typeorm_1.Column)({
|
|
54
|
+
type: "int",
|
|
55
|
+
width: 1,
|
|
50
56
|
default: 1,
|
|
51
57
|
comment: "Estado de la imagen:\r\n1. Activo.\r\n0. Inactivo.",
|
|
52
58
|
}),
|
|
@@ -17,28 +17,33 @@ var TypeMeasureIngredient = /** @class */ (function () {
|
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
-
|
|
20
|
+
type: "int",
|
|
21
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
21
22
|
}),
|
|
22
23
|
__metadata("design:type", Number)
|
|
23
24
|
], TypeMeasureIngredient.prototype, "id", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, typeorm_1.Column)({
|
|
26
27
|
length: 50,
|
|
27
|
-
|
|
28
|
+
type: "varchar",
|
|
29
|
+
comment: "Nombre que va a tener la medida, este elemento tiene qué ir con el id/key de los lenguajes. Ver la carpeta locales en el proyecto frontend para ver el id que corresponde a la descripción.",
|
|
28
30
|
}),
|
|
29
31
|
__metadata("design:type", String)
|
|
30
32
|
], TypeMeasureIngredient.prototype, "name", void 0);
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, typeorm_1.Column)({
|
|
33
35
|
length: 50,
|
|
34
|
-
|
|
36
|
+
type: "varchar",
|
|
37
|
+
comment: "Descripción que va a tener la medida, este elemento tiene qué ir con el id/key de los lenguajes.\r\n\r\nVer la carpeta locales en el proyecto frontend para ver el id que corresponde a la descripción.",
|
|
35
38
|
}),
|
|
36
39
|
__metadata("design:type", String)
|
|
37
40
|
], TypeMeasureIngredient.prototype, "description", void 0);
|
|
38
41
|
__decorate([
|
|
39
42
|
(0, typeorm_1.Column)({
|
|
43
|
+
type: "int",
|
|
44
|
+
width: 1,
|
|
40
45
|
default: 1,
|
|
41
|
-
comment:
|
|
46
|
+
comment: "Estado que del item tipo de medida del ingrediente.\r\n1. Activo.\r\n0. Inactivo.",
|
|
42
47
|
}),
|
|
43
48
|
__metadata("design:type", Number)
|
|
44
49
|
], TypeMeasureIngredient.prototype, "status", void 0);
|
|
@@ -47,8 +52,8 @@ var TypeMeasureIngredient = /** @class */ (function () {
|
|
|
47
52
|
__metadata("design:type", Array)
|
|
48
53
|
], TypeMeasureIngredient.prototype, "type_measure_ingredients", void 0);
|
|
49
54
|
TypeMeasureIngredient = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)(
|
|
51
|
-
comment:
|
|
55
|
+
(0, typeorm_1.Entity)("type_measure_ingredient", {
|
|
56
|
+
comment: "Unidades de medida que el cliente va a poder agregar para medir en los ingredientes que va a tener cada producto.",
|
|
52
57
|
})
|
|
53
58
|
], TypeMeasureIngredient);
|
|
54
59
|
return TypeMeasureIngredient;
|
package/dist/entities/User.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RequestLocalPayment, UserPaymentMethod } from "..";
|
|
1
2
|
import { City } from "./City";
|
|
2
3
|
import { CodeRedemptionHistoryUser } from "./CodeRedemptionHistoryUser";
|
|
3
4
|
import { Local } from "./Local";
|
|
@@ -8,7 +9,6 @@ import { RequestProduct } from "./RequestProduct";
|
|
|
8
9
|
import { RequestProductGroupComplement } from "./RequestProductGroupComplement";
|
|
9
10
|
import { Square } from "./Square";
|
|
10
11
|
import { UserAddress } from "./UserAddress";
|
|
11
|
-
import { RequestLocalPayment, UserPaymentMethod } from "..";
|
|
12
12
|
export declare class User {
|
|
13
13
|
id: number;
|
|
14
14
|
code: string;
|
|
@@ -19,7 +19,7 @@ export declare class User {
|
|
|
19
19
|
phone: string;
|
|
20
20
|
city: City;
|
|
21
21
|
password: string;
|
|
22
|
-
profile:
|
|
22
|
+
profile: any | null;
|
|
23
23
|
created: Date;
|
|
24
24
|
updated: Date;
|
|
25
25
|
status: number;
|
package/dist/entities/User.js
CHANGED
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.User = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
+
var __1 = require("..");
|
|
15
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
14
16
|
var City_1 = require("./City");
|
|
15
17
|
var CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
16
18
|
var Local_1 = require("./Local");
|
|
@@ -21,41 +23,48 @@ var RequestProduct_1 = require("./RequestProduct");
|
|
|
21
23
|
var RequestProductGroupComplement_1 = require("./RequestProductGroupComplement");
|
|
22
24
|
var Square_1 = require("./Square");
|
|
23
25
|
var UserAddress_1 = require("./UserAddress");
|
|
24
|
-
var
|
|
25
|
-
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
26
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
26
27
|
var User = /** @class */ (function () {
|
|
27
28
|
function User() {
|
|
28
29
|
}
|
|
29
30
|
__decorate([
|
|
30
31
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
32
|
+
type: "int",
|
|
31
33
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
32
34
|
}),
|
|
33
35
|
__metadata("design:type", Number)
|
|
34
36
|
], User.prototype, "id", void 0);
|
|
35
37
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
length: 30,
|
|
40
|
+
type: "varchar",
|
|
41
|
+
unique: true,
|
|
42
|
+
comment: "Código único del usuario.",
|
|
43
|
+
}),
|
|
37
44
|
__metadata("design:type", String)
|
|
38
45
|
], User.prototype, "code", void 0);
|
|
39
46
|
__decorate([
|
|
40
47
|
(0, typeorm_1.Column)({
|
|
41
48
|
length: 14,
|
|
42
49
|
unique: true,
|
|
50
|
+
type: "varchar",
|
|
43
51
|
comment: "Número de documento del usuario.",
|
|
44
52
|
}),
|
|
45
53
|
__metadata("design:type", String)
|
|
46
54
|
], User.prototype, "document", void 0);
|
|
47
55
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del usuario." }),
|
|
56
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del usuario." }),
|
|
49
57
|
__metadata("design:type", String)
|
|
50
58
|
], User.prototype, "name", void 0);
|
|
51
59
|
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Apellidos del usuario." }),
|
|
60
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Apellidos del usuario." }),
|
|
53
61
|
__metadata("design:type", String)
|
|
54
62
|
], User.prototype, "surname", void 0);
|
|
55
63
|
__decorate([
|
|
56
64
|
(0, typeorm_1.Column)({
|
|
57
65
|
length: 60,
|
|
58
66
|
unique: true,
|
|
67
|
+
type: "varchar",
|
|
59
68
|
comment: "Correo electrónico del usuario.",
|
|
60
69
|
}),
|
|
61
70
|
__metadata("design:type", String)
|
|
@@ -64,6 +73,7 @@ var User = /** @class */ (function () {
|
|
|
64
73
|
(0, typeorm_1.Column)({
|
|
65
74
|
length: 12,
|
|
66
75
|
unique: true,
|
|
76
|
+
type: "varchar",
|
|
67
77
|
comment: "Número de celular del usuario.",
|
|
68
78
|
}),
|
|
69
79
|
__metadata("design:type", String)
|
|
@@ -79,6 +89,7 @@ var User = /** @class */ (function () {
|
|
|
79
89
|
__decorate([
|
|
80
90
|
(0, typeorm_1.Column)({
|
|
81
91
|
length: 255,
|
|
92
|
+
type: "varchar",
|
|
82
93
|
comment: "Contraseña almacenada tipo SHA256 del usuario.",
|
|
83
94
|
}),
|
|
84
95
|
__metadata("design:type", String)
|
|
@@ -87,6 +98,8 @@ var User = /** @class */ (function () {
|
|
|
87
98
|
(0, typeorm_1.Column)({
|
|
88
99
|
type: "longtext",
|
|
89
100
|
nullable: true,
|
|
101
|
+
default: null,
|
|
102
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
90
103
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
91
104
|
}),
|
|
92
105
|
__metadata("design:type", Object)
|
|
@@ -109,6 +122,8 @@ var User = /** @class */ (function () {
|
|
|
109
122
|
], User.prototype, "updated", void 0);
|
|
110
123
|
__decorate([
|
|
111
124
|
(0, typeorm_1.Column)({
|
|
125
|
+
type: "int",
|
|
126
|
+
width: 1,
|
|
112
127
|
default: 1,
|
|
113
128
|
comment: "¿El usuario tiene acceso a la plataforma?:\r\n1. Activo: El usuario tiene acceso.\r\n0. Inactivo: El usuario no tiene acceso a la plataforma.",
|
|
114
129
|
}),
|
|
@@ -116,6 +131,8 @@ var User = /** @class */ (function () {
|
|
|
116
131
|
], User.prototype, "status", void 0);
|
|
117
132
|
__decorate([
|
|
118
133
|
(0, typeorm_1.Column)({
|
|
134
|
+
type: "int",
|
|
135
|
+
width: 1,
|
|
119
136
|
default: 1,
|
|
120
137
|
comment: "Es el estado para verificar si se envia en la papelara o no.",
|
|
121
138
|
}),
|
|
@@ -19,6 +19,7 @@ var UserAddress = /** @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)
|
|
@@ -40,7 +41,7 @@ var UserAddress = /** @class */ (function () {
|
|
|
40
41
|
__metadata("design:type", City_1.City)
|
|
41
42
|
], UserAddress.prototype, "city", void 0);
|
|
42
43
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ length: 120, comment: "Dirección." }),
|
|
44
|
+
(0, typeorm_1.Column)({ length: 120, type: "varchar", comment: "Dirección." }),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], UserAddress.prototype, "address", void 0);
|
|
46
47
|
__decorate([
|
|
@@ -63,8 +64,10 @@ var UserAddress = /** @class */ (function () {
|
|
|
63
64
|
], UserAddress.prototype, "longitude", void 0);
|
|
64
65
|
__decorate([
|
|
65
66
|
(0, typeorm_1.Column)({
|
|
67
|
+
type: "varchar",
|
|
66
68
|
length: 400,
|
|
67
69
|
nullable: true,
|
|
70
|
+
default: null,
|
|
68
71
|
comment: "Detalles de la dirección, si es una casa, un conjunto, el apartamento.",
|
|
69
72
|
}),
|
|
70
73
|
__metadata("design:type", Object)
|
|
@@ -72,12 +75,15 @@ var UserAddress = /** @class */ (function () {
|
|
|
72
75
|
__decorate([
|
|
73
76
|
(0, typeorm_1.Column)({
|
|
74
77
|
length: 20,
|
|
78
|
+
type: "varchar",
|
|
75
79
|
comment: "Tipo de ubicación:\r\n1. Casa.\r\n2. Oficina.\r\n3. Pareja.\r\n4. Otro.\r\n\r\nEsto me agrega un campo de tipo texto con el tag.",
|
|
76
80
|
}),
|
|
77
81
|
__metadata("design:type", String)
|
|
78
82
|
], UserAddress.prototype, "tag", void 0);
|
|
79
83
|
__decorate([
|
|
80
84
|
(0, typeorm_1.Column)({
|
|
85
|
+
type: "int",
|
|
86
|
+
width: 1,
|
|
81
87
|
comment: "Campo que me dice si:\r\n1. Personal: Lo recibo yo.\r\n2. Portería: Lo recibe la portería.",
|
|
82
88
|
}),
|
|
83
89
|
__metadata("design:type", Number)
|
|
@@ -85,6 +91,9 @@ var UserAddress = /** @class */ (function () {
|
|
|
85
91
|
__decorate([
|
|
86
92
|
(0, typeorm_1.Column)({
|
|
87
93
|
length: 400,
|
|
94
|
+
type: "varchar",
|
|
95
|
+
nullable: true,
|
|
96
|
+
default: null,
|
|
88
97
|
comment: "Campo para agregar una descripción más detallada de cómo llegar, o donde es la ubicación.",
|
|
89
98
|
}),
|
|
90
99
|
__metadata("design:type", String)
|
|
@@ -93,6 +102,8 @@ var UserAddress = /** @class */ (function () {
|
|
|
93
102
|
(0, typeorm_1.Column)({
|
|
94
103
|
comment: "Columna para saber el el registro se eliminó o no:\r\n0. No eliminado.\r\n1. Eliminado.",
|
|
95
104
|
default: 0,
|
|
105
|
+
type: "int",
|
|
106
|
+
width: 1,
|
|
96
107
|
}),
|
|
97
108
|
__metadata("design:type", Number)
|
|
98
109
|
], UserAddress.prototype, "selected", void 0);
|
|
@@ -100,6 +111,8 @@ var UserAddress = /** @class */ (function () {
|
|
|
100
111
|
(0, typeorm_1.Column)({
|
|
101
112
|
comment: "CColumna para saber sí la dirección está seleccionada por defecto:\r\n1. Por defecto.\r\n0. No está por defecto.",
|
|
102
113
|
default: 0,
|
|
114
|
+
type: "int",
|
|
115
|
+
width: 1,
|
|
103
116
|
}),
|
|
104
117
|
__metadata("design:type", Number)
|
|
105
118
|
], UserAddress.prototype, "deleted", void 0);
|