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
|
@@ -17,32 +17,41 @@ var AuthenticationCredential = /** @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
|
], AuthenticationCredential.prototype, "id", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, typeorm_1.Column)({
|
|
26
27
|
length: 30,
|
|
27
|
-
|
|
28
|
+
type: "varchar",
|
|
29
|
+
comment: "Tipo de autenticación que va a tener el sistema:\r\n1. auth_basic: username/email y password para autenticación básica y JWT.\r\n\r\n2. auth_token: client_id y client_secret junto con username y password para OAuth 2.0 Password Grant.\r\n\r\n3. auth_oauth: client_id, redirect_uri, response_type, scope, y state para OAuth 2.0 Authorization Code Grant.\r\n\r\n4. auth_api_key: api_key para autenticación basada en claves API.\r\n\r\nAcá toca tener en cuenta cada tipo para hacer la respectiva autenticación, para esto ver ejemplos y usos de cada uno.",
|
|
28
30
|
}),
|
|
29
31
|
__metadata("design:type", String)
|
|
30
32
|
], AuthenticationCredential.prototype, "type", void 0);
|
|
31
33
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({
|
|
34
|
+
(0, typeorm_1.Column)({
|
|
35
|
+
length: 30,
|
|
36
|
+
type: "varchar",
|
|
37
|
+
comment: "Nombre del tipo de autenticación.",
|
|
38
|
+
}),
|
|
33
39
|
__metadata("design:type", String)
|
|
34
40
|
], AuthenticationCredential.prototype, "name", void 0);
|
|
35
41
|
__decorate([
|
|
36
42
|
(0, typeorm_1.Column)({
|
|
37
43
|
length: 200,
|
|
38
|
-
|
|
44
|
+
type: "varchar",
|
|
45
|
+
comment: "Variables que se necesitan separadas por ,\r\nejemplo: username,password....\r\n\r\nEsto se tiene en cuenta para crear los elementos en el frontend y poder guardarlos en la tabla (pos_system -> settings).",
|
|
39
46
|
}),
|
|
40
47
|
__metadata("design:type", String)
|
|
41
48
|
], AuthenticationCredential.prototype, "variables", void 0);
|
|
42
49
|
__decorate([
|
|
43
50
|
(0, typeorm_1.Column)({
|
|
44
51
|
default: 1,
|
|
45
|
-
|
|
52
|
+
type: "int",
|
|
53
|
+
width: 1,
|
|
54
|
+
comment: "Estado del tipo de autenticación:\r\n0: Inactivo.\r\n1: Activo.",
|
|
46
55
|
}),
|
|
47
56
|
__metadata("design:type", Number)
|
|
48
57
|
], AuthenticationCredential.prototype, "status", void 0);
|
|
@@ -52,8 +61,8 @@ var AuthenticationCredential = /** @class */ (function () {
|
|
|
52
61
|
], AuthenticationCredential.prototype, "authenticationCredentials", void 0);
|
|
53
62
|
AuthenticationCredential = __decorate([
|
|
54
63
|
(0, typeorm_1.Entity)({
|
|
55
|
-
name:
|
|
56
|
-
comment:
|
|
64
|
+
name: "authentication_credential",
|
|
65
|
+
comment: "Tabla creada para almacenar los tipos de autenticación que van a tener los sistemas POS.",
|
|
57
66
|
})
|
|
58
67
|
], AuthenticationCredential);
|
|
59
68
|
return AuthenticationCredential;
|
package/dist/entities/Bank.js
CHANGED
|
@@ -17,6 +17,7 @@ var Bank = /** @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 Bank = /** @class */ (function () {
|
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, typeorm_1.Column)({
|
|
26
27
|
length: 20,
|
|
28
|
+
type: "varchar",
|
|
27
29
|
comment: "Código identificador de la entidad bancaria.\r\n\r\nEste código es único y no se puede repetir por país.",
|
|
28
30
|
}),
|
|
29
31
|
__metadata("design:type", String)
|
|
@@ -38,6 +40,7 @@ var Bank = /** @class */ (function () {
|
|
|
38
40
|
], Bank.prototype, "country", void 0);
|
|
39
41
|
__decorate([
|
|
40
42
|
(0, typeorm_1.Column)({
|
|
43
|
+
type: "varchar",
|
|
41
44
|
length: 50,
|
|
42
45
|
comment: "Nombre de la entidad bancaria.\r\n\r\nEste nombre es el que se mostrará en la plataforma.",
|
|
43
46
|
}),
|
|
@@ -46,6 +49,8 @@ var Bank = /** @class */ (function () {
|
|
|
46
49
|
__decorate([
|
|
47
50
|
(0, typeorm_1.Column)({
|
|
48
51
|
default: 1,
|
|
52
|
+
type: "int",
|
|
53
|
+
width: 1,
|
|
49
54
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
50
55
|
}),
|
|
51
56
|
__metadata("design:type", Number)
|
|
@@ -12,25 +12,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BusinessType = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var BusinessTypeProduct_1 = require("./BusinessTypeProduct");
|
|
15
|
-
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
var BusinessType = /** @class */ (function () {
|
|
17
16
|
function BusinessType() {
|
|
18
17
|
}
|
|
19
18
|
__decorate([
|
|
20
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
+
type: "int",
|
|
21
21
|
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
22
|
}),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
24
|
], BusinessType.prototype, "id", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({
|
|
26
|
+
(0, typeorm_1.Column)({
|
|
27
|
+
length: 50,
|
|
28
|
+
type: "varchar",
|
|
29
|
+
comment: "Nombre del tipo de negocio.",
|
|
30
|
+
}),
|
|
27
31
|
__metadata("design:type", String)
|
|
28
32
|
], BusinessType.prototype, "name", void 0);
|
|
29
33
|
__decorate([
|
|
30
34
|
(0, typeorm_1.Column)({
|
|
31
35
|
type: "text",
|
|
32
36
|
nullable: true,
|
|
33
|
-
|
|
37
|
+
default: null,
|
|
34
38
|
comment: "Descripción del tipo de negocio.",
|
|
35
39
|
}),
|
|
36
40
|
__metadata("design:type", Object)
|
|
@@ -38,6 +42,8 @@ var BusinessType = /** @class */ (function () {
|
|
|
38
42
|
__decorate([
|
|
39
43
|
(0, typeorm_1.Column)({
|
|
40
44
|
default: 1,
|
|
45
|
+
type: "int",
|
|
46
|
+
width: 1,
|
|
41
47
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
42
48
|
}),
|
|
43
49
|
__metadata("design:type", Number)
|
|
@@ -45,6 +45,7 @@ var BusinessTypeProduct = /** @class */ (function () {
|
|
|
45
45
|
type: "varchar",
|
|
46
46
|
length: 500,
|
|
47
47
|
nullable: true,
|
|
48
|
+
default: null,
|
|
48
49
|
comment: "Imagen para el tipo de comida.",
|
|
49
50
|
}),
|
|
50
51
|
__metadata("design:type", Object)
|
|
@@ -52,6 +53,7 @@ var BusinessTypeProduct = /** @class */ (function () {
|
|
|
52
53
|
__decorate([
|
|
53
54
|
(0, typeorm_1.Column)({
|
|
54
55
|
type: "int",
|
|
56
|
+
width: 1,
|
|
55
57
|
default: 1,
|
|
56
58
|
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
57
59
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CategoryDate, Partner, ScheduleCategory } from "..";
|
|
1
2
|
import { Local } from "./Local";
|
|
2
3
|
import { Product } from "./Product";
|
|
3
|
-
import { CategoryDate, Partner, ScheduleCategory } from "..";
|
|
4
4
|
export declare class Category {
|
|
5
5
|
id: number;
|
|
6
6
|
local: Local;
|
|
@@ -9,8 +9,8 @@ export declare class Category {
|
|
|
9
9
|
type_sales_hours: number | null;
|
|
10
10
|
show_or_hide_item: number | null;
|
|
11
11
|
created_by: Partner;
|
|
12
|
-
created: Date
|
|
13
|
-
updated: Date;
|
|
12
|
+
created: Date;
|
|
13
|
+
updated: Date | null;
|
|
14
14
|
updated_by: Partner | null;
|
|
15
15
|
current_values: any | null;
|
|
16
16
|
status: number;
|
|
@@ -11,16 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Category = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var Local_1 = require("./Local");
|
|
15
|
-
var Product_1 = require("./Product");
|
|
16
14
|
var __1 = require("..");
|
|
17
|
-
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
18
15
|
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
|
+
var Local_1 = require("./Local");
|
|
18
|
+
var Product_1 = require("./Product");
|
|
19
19
|
var Category = /** @class */ (function () {
|
|
20
20
|
function Category() {
|
|
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)
|
|
@@ -34,16 +35,21 @@ var Category = /** @class */ (function () {
|
|
|
34
35
|
__metadata("design:type", Local_1.Local)
|
|
35
36
|
], Category.prototype, "local", void 0);
|
|
36
37
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ length: 30, comment: "Nombre de la categoría." }),
|
|
38
|
+
(0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Nombre de la categoría." }),
|
|
38
39
|
__metadata("design:type", String)
|
|
39
40
|
], Category.prototype, "name", void 0);
|
|
40
41
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
type: "int",
|
|
44
|
+
comment: "¿En qué posición se va a mostrar esta categoría?",
|
|
45
|
+
}),
|
|
42
46
|
__metadata("design:type", Number)
|
|
43
47
|
], Category.prototype, "position", void 0);
|
|
44
48
|
__decorate([
|
|
45
49
|
(0, typeorm_1.Column)({
|
|
46
50
|
nullable: true,
|
|
51
|
+
type: "int",
|
|
52
|
+
width: 1,
|
|
47
53
|
comment: "Campo para saber el tipo de horario que se va a mostrar en la aplicación:\n 1. Días. \n2. Fecha específica.",
|
|
48
54
|
default: null,
|
|
49
55
|
}),
|
|
@@ -52,6 +58,8 @@ var Category = /** @class */ (function () {
|
|
|
52
58
|
__decorate([
|
|
53
59
|
(0, typeorm_1.Column)({
|
|
54
60
|
nullable: true,
|
|
61
|
+
type: "int",
|
|
62
|
+
width: 1,
|
|
55
63
|
comment: "Columna para saber el tipo de horario qué el usuario quiere para el elemento: \n1. Mostrar (Show). \n2. Ocultar (Hide)",
|
|
56
64
|
default: null,
|
|
57
65
|
}),
|
|
@@ -68,19 +76,20 @@ var Category = /** @class */ (function () {
|
|
|
68
76
|
__decorate([
|
|
69
77
|
(0, typeorm_1.Column)({
|
|
70
78
|
type: "datetime",
|
|
71
|
-
nullable: true,
|
|
72
79
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
73
80
|
comment: "Fecha de creación del registro.",
|
|
74
81
|
}),
|
|
75
|
-
__metadata("design:type",
|
|
82
|
+
__metadata("design:type", Date)
|
|
76
83
|
], Category.prototype, "created", void 0);
|
|
77
84
|
__decorate([
|
|
78
85
|
(0, typeorm_1.Column)({
|
|
79
86
|
type: "datetime",
|
|
87
|
+
nullable: true,
|
|
88
|
+
default: null,
|
|
80
89
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
81
90
|
comment: "Fecha de actualización del registro.",
|
|
82
91
|
}),
|
|
83
|
-
__metadata("design:type",
|
|
92
|
+
__metadata("design:type", Object)
|
|
84
93
|
], Category.prototype, "updated", void 0);
|
|
85
94
|
__decorate([
|
|
86
95
|
(0, typeorm_1.ManyToOne)(function () { return __1.Partner; }, function (partner) { return partner.partners_category_update_by; }, {
|
|
@@ -95,6 +104,7 @@ var Category = /** @class */ (function () {
|
|
|
95
104
|
(0, typeorm_1.Column)({
|
|
96
105
|
type: "mediumtext",
|
|
97
106
|
nullable: true,
|
|
107
|
+
default: null,
|
|
98
108
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
99
109
|
comment: "Valores qué se van a mostrar mientras se aprueban los nuevos cambios.",
|
|
100
110
|
}),
|
|
@@ -103,6 +113,8 @@ var Category = /** @class */ (function () {
|
|
|
103
113
|
__decorate([
|
|
104
114
|
(0, typeorm_1.Column)({
|
|
105
115
|
default: 1,
|
|
116
|
+
type: "int",
|
|
117
|
+
width: 1,
|
|
106
118
|
comment: "Estado en el que está el elemento: \n0. Inactivo. \n1. Activo. \n2. Eliminado.",
|
|
107
119
|
}),
|
|
108
120
|
__metadata("design:type", Number)
|
|
@@ -110,6 +122,8 @@ var Category = /** @class */ (function () {
|
|
|
110
122
|
__decorate([
|
|
111
123
|
(0, typeorm_1.Column)({
|
|
112
124
|
default: 1,
|
|
125
|
+
type: "int",
|
|
126
|
+
width: 1,
|
|
113
127
|
comment: "Estado en el que se encuentra la revisión de los cambios: \n1. En revisión. \n2. Rechazado.",
|
|
114
128
|
}),
|
|
115
129
|
__metadata("design:type", Number)
|
|
@@ -117,6 +131,8 @@ var Category = /** @class */ (function () {
|
|
|
117
131
|
__decorate([
|
|
118
132
|
(0, typeorm_1.Column)({
|
|
119
133
|
nullable: true,
|
|
134
|
+
default: null,
|
|
135
|
+
type: "varchar",
|
|
120
136
|
length: 600,
|
|
121
137
|
comment: "Comentario del revisor al rechazar una categoría (master).",
|
|
122
138
|
}),
|
|
@@ -17,6 +17,7 @@ var CategoryDate = /** @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)
|
|
@@ -37,11 +38,11 @@ var CategoryDate = /** @class */ (function () {
|
|
|
37
38
|
__metadata("design:type", Date)
|
|
38
39
|
], CategoryDate.prototype, "date", void 0);
|
|
39
40
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ comment: "Hora de inicio." }),
|
|
41
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
43
|
], CategoryDate.prototype, "start_time", void 0);
|
|
43
44
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ comment: "Hora de finalización." }),
|
|
45
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
47
|
], CategoryDate.prototype, "end_time", void 0);
|
|
47
48
|
CategoryDate = __decorate([
|
|
@@ -18,6 +18,7 @@ var ScheduleCategory = /** @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)
|
|
@@ -39,11 +40,11 @@ var ScheduleCategory = /** @class */ (function () {
|
|
|
39
40
|
__metadata("design:type", Day_1.Day)
|
|
40
41
|
], ScheduleCategory.prototype, "day", void 0);
|
|
41
42
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ comment: "Hora de inicio." }),
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de inicio." }),
|
|
43
44
|
__metadata("design:type", String)
|
|
44
45
|
], ScheduleCategory.prototype, "start_time", void 0);
|
|
45
46
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ comment: "Hora de finalización." }),
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5, comment: "Hora de finalización." }),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], ScheduleCategory.prototype, "end_time", void 0);
|
|
49
50
|
ScheduleCategory = __decorate([
|
package/dist/entities/City.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Partner } from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { Square } from "..";
|
|
2
|
+
import { Company } from "./Company";
|
|
3
|
+
import { Local } from "./Local";
|
|
4
|
+
import { Master } from "./Master";
|
|
5
|
+
import { Partner } from "./Partner";
|
|
6
|
+
import { Region } from "./Region";
|
|
7
|
+
import { User } from "./User";
|
|
8
|
+
import { UserAddress } from "./UserAddress";
|
|
9
9
|
export declare class City {
|
|
10
10
|
id: number;
|
|
11
11
|
region: Region;
|
package/dist/entities/City.js
CHANGED
|
@@ -11,39 +11,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.City = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
+
var __1 = require("..");
|
|
14
15
|
var Company_1 = require("./Company");
|
|
15
16
|
var Local_1 = require("./Local");
|
|
17
|
+
var Master_1 = require("./Master");
|
|
18
|
+
var Partner_1 = require("./Partner");
|
|
16
19
|
var Region_1 = require("./Region");
|
|
17
20
|
var User_1 = require("./User");
|
|
18
|
-
var Partner_1 = require("./Partner");
|
|
19
|
-
var Master_1 = require("./Master");
|
|
20
21
|
var UserAddress_1 = require("./UserAddress");
|
|
21
|
-
var __1 = require("..");
|
|
22
22
|
var City = /** @class */ (function () {
|
|
23
23
|
function City() {
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
27
|
-
|
|
27
|
+
type: "int",
|
|
28
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
28
29
|
}),
|
|
29
30
|
__metadata("design:type", Number)
|
|
30
31
|
], City.prototype, "id", void 0);
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, typeorm_1.ManyToOne)(function () { return Region_1.Region; }, function (region) { return region.cities; }, {
|
|
33
|
-
onDelete:
|
|
34
|
-
onUpdate:
|
|
34
|
+
onDelete: "RESTRICT",
|
|
35
|
+
onUpdate: "RESTRICT",
|
|
35
36
|
}),
|
|
36
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: "region" }),
|
|
37
38
|
__metadata("design:type", Region_1.Region)
|
|
38
39
|
], City.prototype, "region", void 0);
|
|
39
40
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ length: 50, comment:
|
|
41
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la ciudad." }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
43
|
], City.prototype, "name", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, typeorm_1.Column)({
|
|
45
46
|
default: 1,
|
|
46
|
-
|
|
47
|
+
type: "int",
|
|
48
|
+
width: 1,
|
|
49
|
+
comment: "Estado de la ciudad, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
47
50
|
}),
|
|
48
51
|
__metadata("design:type", Number)
|
|
49
52
|
], City.prototype, "status", void 0);
|
|
@@ -76,7 +79,7 @@ var City = /** @class */ (function () {
|
|
|
76
79
|
__metadata("design:type", Array)
|
|
77
80
|
], City.prototype, "squares", void 0);
|
|
78
81
|
City = __decorate([
|
|
79
|
-
(0, typeorm_1.Entity)({ comment:
|
|
82
|
+
(0, typeorm_1.Entity)({ comment: "Ciudades donde está visible la plataforma." })
|
|
80
83
|
], City);
|
|
81
84
|
return City;
|
|
82
85
|
}());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Company } from
|
|
2
|
-
import { DiscountCodeCompany } from
|
|
1
|
+
import { Company } from "./Company";
|
|
2
|
+
import { DiscountCodeCompany } from "./DiscountCodeCompany";
|
|
3
3
|
export declare class CodeRedemptionHistoryCompany {
|
|
4
4
|
id: number;
|
|
5
5
|
discount_code_company: DiscountCodeCompany;
|
|
@@ -13,36 +13,46 @@ exports.CodeRedemptionHistoryCompany = void 0;
|
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var Company_1 = require("./Company");
|
|
15
15
|
var DiscountCodeCompany_1 = require("./DiscountCodeCompany");
|
|
16
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
17
|
var CodeRedemptionHistoryCompany = /** @class */ (function () {
|
|
17
18
|
function CodeRedemptionHistoryCompany() {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
24
|
}),
|
|
23
25
|
__metadata("design:type", Number)
|
|
24
26
|
], CodeRedemptionHistoryCompany.prototype, "id", void 0);
|
|
25
27
|
__decorate([
|
|
26
|
-
(0, typeorm_1.ManyToOne)(function () { return DiscountCodeCompany_1.DiscountCodeCompany; }, function (company) { return company.code_redemptions_history_company; }, { onDelete:
|
|
27
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
28
|
+
(0, typeorm_1.ManyToOne)(function () { return DiscountCodeCompany_1.DiscountCodeCompany; }, function (company) { return company.code_redemptions_history_company; }, { onDelete: "CASCADE", onUpdate: "NO ACTION" }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: "discount_code_company" }),
|
|
28
30
|
__metadata("design:type", DiscountCodeCompany_1.DiscountCodeCompany)
|
|
29
31
|
], CodeRedemptionHistoryCompany.prototype, "discount_code_company", void 0);
|
|
30
32
|
__decorate([
|
|
31
|
-
(0, typeorm_1.ManyToOne)(function () { return Company_1.Company; }, function (company) { return company.code_redemption_history_company; }, { onDelete:
|
|
32
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
33
|
+
(0, typeorm_1.ManyToOne)(function () { return Company_1.Company; }, function (company) { return company.code_redemption_history_company; }, { onDelete: "CASCADE", onUpdate: "NO ACTION" }),
|
|
34
|
+
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
33
35
|
__metadata("design:type", Company_1.Company)
|
|
34
36
|
], CodeRedemptionHistoryCompany.prototype, "company", void 0);
|
|
35
37
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
type: "datetime",
|
|
40
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
41
|
+
comment: "Fecha cuando se usó el descuento.",
|
|
42
|
+
}),
|
|
37
43
|
__metadata("design:type", Date)
|
|
38
44
|
], CodeRedemptionHistoryCompany.prototype, "date_used", void 0);
|
|
39
45
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({
|
|
46
|
+
(0, typeorm_1.Column)({
|
|
47
|
+
length: 10,
|
|
48
|
+
type: "varchar",
|
|
49
|
+
comment: "El valor del descuento aplicado.",
|
|
50
|
+
}),
|
|
41
51
|
__metadata("design:type", String)
|
|
42
52
|
], CodeRedemptionHistoryCompany.prototype, "discount_applied", void 0);
|
|
43
53
|
CodeRedemptionHistoryCompany = __decorate([
|
|
44
|
-
(0, typeorm_1.Entity)(
|
|
45
|
-
comment:
|
|
54
|
+
(0, typeorm_1.Entity)("code_redemption_history_company", {
|
|
55
|
+
comment: "Historial de códigos redimidos por la empresa, si en algún momento cuando una empresa se registre en la plataforma, entonces se le puede dar un descuento o un plan personalizado.",
|
|
46
56
|
})
|
|
47
57
|
], CodeRedemptionHistoryCompany);
|
|
48
58
|
return CodeRedemptionHistoryCompany;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DiscountCodeUser } from "./DiscountCodeUser";
|
|
2
|
+
import { User } from "./User";
|
|
3
3
|
export declare class CodeRedemptionHistoryUser {
|
|
4
4
|
id: number;
|
|
5
5
|
discount_code_user: DiscountCodeUser;
|
|
@@ -11,41 +11,51 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CodeRedemptionHistoryUser = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var User_1 = require("./User");
|
|
15
14
|
var DiscountCodeUser_1 = require("./DiscountCodeUser");
|
|
15
|
+
var User_1 = require("./User");
|
|
16
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
17
|
var CodeRedemptionHistoryUser = /** @class */ (function () {
|
|
17
18
|
function CodeRedemptionHistoryUser() {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
|
|
22
|
+
type: "int",
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
24
|
}),
|
|
23
25
|
__metadata("design:type", Number)
|
|
24
26
|
], CodeRedemptionHistoryUser.prototype, "id", void 0);
|
|
25
27
|
__decorate([
|
|
26
|
-
(0, typeorm_1.ManyToOne)(function () { return DiscountCodeUser_1.DiscountCodeUser; }, function (discountCodeUser) { return discountCodeUser.code_redemptions_history_users; }, { onDelete:
|
|
27
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
28
|
+
(0, typeorm_1.ManyToOne)(function () { return DiscountCodeUser_1.DiscountCodeUser; }, function (discountCodeUser) { return discountCodeUser.code_redemptions_history_users; }, { onDelete: "CASCADE", onUpdate: "NO ACTION" }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: "discount_code_user" }),
|
|
28
30
|
__metadata("design:type", DiscountCodeUser_1.DiscountCodeUser)
|
|
29
31
|
], CodeRedemptionHistoryUser.prototype, "discount_code_user", void 0);
|
|
30
32
|
__decorate([
|
|
31
33
|
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.code_redemption_history_users; }, {
|
|
32
|
-
onDelete:
|
|
33
|
-
onUpdate:
|
|
34
|
+
onDelete: "CASCADE",
|
|
35
|
+
onUpdate: "NO ACTION",
|
|
34
36
|
}),
|
|
35
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
36
38
|
__metadata("design:type", User_1.User)
|
|
37
39
|
], CodeRedemptionHistoryUser.prototype, "user", void 0);
|
|
38
40
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: "datetime",
|
|
43
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
44
|
+
comment: "Fecha cuando se usó el descuento.",
|
|
45
|
+
}),
|
|
40
46
|
__metadata("design:type", Date)
|
|
41
47
|
], CodeRedemptionHistoryUser.prototype, "date_used", void 0);
|
|
42
48
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({
|
|
49
|
+
(0, typeorm_1.Column)({
|
|
50
|
+
length: 10,
|
|
51
|
+
type: "varchar",
|
|
52
|
+
comment: "El valor del descuento aplicado.",
|
|
53
|
+
}),
|
|
44
54
|
__metadata("design:type", String)
|
|
45
55
|
], CodeRedemptionHistoryUser.prototype, "discount_applied", void 0);
|
|
46
56
|
CodeRedemptionHistoryUser = __decorate([
|
|
47
|
-
(0, typeorm_1.Entity)(
|
|
48
|
-
comment:
|
|
57
|
+
(0, typeorm_1.Entity)("code_redemption_history_user", {
|
|
58
|
+
comment: "Historial de los códigos redimidos por los usuarios, es decir, si un local desea agregar un código de descuento para qué los usuarios puedan tener un descuento, entonces acá van a estar los que lo redimieron.",
|
|
49
59
|
})
|
|
50
60
|
], CodeRedemptionHistoryUser);
|
|
51
61
|
return CodeRedemptionHistoryUser;
|
package/dist/entities/Company.js
CHANGED
|
@@ -26,16 +26,22 @@ var Company = /** @class */ (function () {
|
|
|
26
26
|
}
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
29
|
+
type: "int",
|
|
29
30
|
comment: "Número de identificación (ID) único de cada empresa.",
|
|
30
31
|
}),
|
|
31
32
|
__metadata("design:type", Number)
|
|
32
33
|
], Company.prototype, "id", void 0);
|
|
33
34
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({
|
|
35
|
+
(0, typeorm_1.Column)({
|
|
36
|
+
length: 30,
|
|
37
|
+
type: "varchar",
|
|
38
|
+
unique: true,
|
|
39
|
+
comment: "Código único de la empresa.",
|
|
40
|
+
}),
|
|
35
41
|
__metadata("design:type", String)
|
|
36
42
|
], Company.prototype, "code", void 0);
|
|
37
43
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ length: 50, comment: "Nombre de la empresa." }),
|
|
44
|
+
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la empresa." }),
|
|
39
45
|
__metadata("design:type", String)
|
|
40
46
|
], Company.prototype, "name", void 0);
|
|
41
47
|
__decorate([
|
|
@@ -58,6 +64,7 @@ var Company = /** @class */ (function () {
|
|
|
58
64
|
(0, typeorm_1.Column)({
|
|
59
65
|
type: "longtext",
|
|
60
66
|
nullable: true,
|
|
67
|
+
default: null,
|
|
61
68
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
62
69
|
comment: "Campo de tipo JSON donde se guarda información necesaria para la empresa.",
|
|
63
70
|
}),
|
|
@@ -67,6 +74,7 @@ var Company = /** @class */ (function () {
|
|
|
67
74
|
(0, typeorm_1.Column)({
|
|
68
75
|
type: "text",
|
|
69
76
|
nullable: true,
|
|
77
|
+
default: null,
|
|
70
78
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
71
79
|
comment: "Campo de tipo JSON donde se guarda información para guardar el teléfono y el correo electrónico, también los nuevos valores qué tengan esos 2 campos.",
|
|
72
80
|
}),
|
|
@@ -76,6 +84,7 @@ var Company = /** @class */ (function () {
|
|
|
76
84
|
(0, typeorm_1.Column)({
|
|
77
85
|
type: "longtext",
|
|
78
86
|
nullable: true,
|
|
87
|
+
default: null,
|
|
79
88
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
80
89
|
comment: "Información de tipo JSON donde se guarda la información legal de la empresa.",
|
|
81
90
|
}),
|
|
@@ -85,6 +94,7 @@ var Company = /** @class */ (function () {
|
|
|
85
94
|
(0, typeorm_1.Column)({
|
|
86
95
|
type: "longtext",
|
|
87
96
|
nullable: true,
|
|
97
|
+
default: null,
|
|
88
98
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
89
99
|
comment: "Información de tipo JSON donde se guarda la información del representante legal del representante.",
|
|
90
100
|
}),
|
|
@@ -94,6 +104,7 @@ var Company = /** @class */ (function () {
|
|
|
94
104
|
(0, typeorm_1.Column)({
|
|
95
105
|
type: "longtext",
|
|
96
106
|
nullable: true,
|
|
107
|
+
default: null,
|
|
97
108
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
98
109
|
comment: "Configuración de la empresa.",
|
|
99
110
|
}),
|
|
@@ -111,6 +122,7 @@ var Company = /** @class */ (function () {
|
|
|
111
122
|
(0, typeorm_1.Column)({
|
|
112
123
|
type: "date",
|
|
113
124
|
nullable: true,
|
|
125
|
+
default: null,
|
|
114
126
|
comment: "Cuándo expira el plan de la empresa.",
|
|
115
127
|
}),
|
|
116
128
|
__metadata("design:type", Object)
|