test-entity-library-asm 3.2.10 → 3.2.12
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/BusinessType.d.ts +2 -2
- package/dist/entities/BusinessType.js +10 -8
- package/dist/entities/BusinessTypeProduct.d.ts +2 -2
- package/dist/entities/BusinessTypeProduct.js +5 -2
- package/dist/entities/Category.d.ts +6 -6
- package/dist/entities/Category.js +12 -6
- package/dist/entities/Company.d.ts +6 -6
- package/dist/entities/Company.js +3 -3
- package/dist/entities/Country.d.ts +1 -1
- package/dist/entities/DiscountCodeCompany.d.ts +8 -8
- package/dist/entities/DiscountCodeCompany.js +26 -24
- package/dist/entities/DiscountCodeUser.d.ts +9 -9
- package/dist/entities/DiscountCodeUser.js +35 -33
- package/dist/entities/Local.d.ts +2 -2
- package/dist/entities/Local.js +1 -1
- package/dist/entities/LocalPlan.d.ts +2 -2
- package/dist/entities/LocalPlan.js +18 -18
- package/dist/entities/LocalQualification.d.ts +3 -3
- package/dist/entities/LocalQualification.js +17 -12
- package/dist/entities/Master.d.ts +2 -2
- package/dist/entities/Master.js +1 -1
- package/dist/entities/MasterNotification.d.ts +4 -4
- package/dist/entities/MasterNotification.js +3 -3
- package/dist/entities/MasterRole.d.ts +1 -1
- package/dist/entities/MasterRole.js +1 -1
- package/dist/entities/Partner.d.ts +6 -5
- package/dist/entities/Partner.js +7 -3
- package/dist/entities/PartnerNotification.d.ts +4 -4
- package/dist/entities/PartnerNotification.js +3 -3
- package/dist/entities/PartnerPermission.d.ts +4 -4
- package/dist/entities/PartnerPermission.js +18 -18
- package/dist/entities/PartnerPermissionSection.d.ts +3 -3
- package/dist/entities/PartnerPermissionSection.js +13 -13
- package/dist/entities/PartnerPlatform.d.ts +3 -3
- package/dist/entities/PartnerPlatform.js +10 -10
- package/dist/entities/PartnerRole.d.ts +5 -5
- package/dist/entities/PartnerRole.js +22 -22
- package/dist/entities/PartnerSession.d.ts +1 -1
- package/dist/entities/PartnerSession.js +1 -4
- package/dist/entities/PaymentMethod.d.ts +4 -6
- package/dist/entities/PaymentMethod.js +11 -22
- package/dist/entities/Plan.d.ts +3 -3
- package/dist/entities/Plan.js +19 -14
- package/dist/entities/PosSystem.d.ts +2 -2
- package/dist/entities/PosSystem.js +12 -12
- package/dist/entities/Product.d.ts +5 -5
- package/dist/entities/Product.js +14 -5
- package/dist/entities/ProductTopping.d.ts +3 -3
- package/dist/entities/ProductTopping.js +9 -9
- package/dist/entities/Request.d.ts +2 -5
- package/dist/entities/Request.js +2 -18
- package/dist/entities/RequestLocal.d.ts +2 -1
- package/dist/entities/RequestLocal.js +4 -0
- package/dist/entities/RequestLocalHistory.d.ts +2 -2
- package/dist/entities/RequestLocalHistory.js +2 -2
- package/dist/entities/RequestLocalPayment.d.ts +19 -0
- package/dist/entities/RequestLocalPayment.js +159 -0
- package/dist/entities/ServicePlan.d.ts +4 -4
- package/dist/entities/ServicePlan.js +21 -23
- package/dist/entities/Square.d.ts +6 -6
- package/dist/entities/Square.js +18 -18
- package/dist/entities/ToppingImage.d.ts +1 -1
- package/dist/entities/ToppingImage.js +1 -1
- package/dist/entities/User.d.ts +7 -6
- package/dist/entities/User.js +22 -20
- package/dist/entities/UserAddress.d.ts +1 -1
- package/dist/entities/UserAddress.js +1 -1
- package/dist/entities/UserPaymentMethod.d.ts +17 -0
- package/dist/entities/UserPaymentMethod.js +118 -0
- package/dist/entities/VerifyLocal.d.ts +4 -4
- package/dist/entities/VerifyLocal.js +32 -32
- package/dist/entities/productGroupComplement.d.ts +5 -5
- package/dist/entities/productGroupComplement.js +3 -3
- package/dist/entities.views.routes.d.ts +2 -0
- package/dist/entities.views.routes.js +5 -1
- package/package.json +1 -1
- package/src/entities/BusinessType.ts +16 -15
- package/src/entities/BusinessTypeProduct.ts +5 -2
- package/src/entities/Category.ts +13 -7
- package/src/entities/Company.ts +8 -8
- package/src/entities/Country.ts +1 -1
- package/src/entities/DiscountCodeCompany.ts +43 -42
- package/src/entities/DiscountCodeUser.ts +52 -50
- package/src/entities/Local.ts +2 -15
- package/src/entities/LocalPlan.ts +31 -31
- package/src/entities/LocalQualification.ts +24 -25
- package/src/entities/Master.ts +2 -2
- package/src/entities/MasterNotification.ts +4 -4
- package/src/entities/MasterRole.ts +1 -1
- package/src/entities/Partner.ts +11 -4
- package/src/entities/PartnerNotification.ts +4 -4
- package/src/entities/PartnerPermission.ts +27 -27
- package/src/entities/PartnerPermissionSection.ts +21 -21
- package/src/entities/PartnerPlatform.ts +17 -17
- package/src/entities/PartnerRole.ts +30 -30
- package/src/entities/PartnerSession.ts +4 -11
- package/src/entities/PaymentMethod.ts +14 -21
- package/src/entities/Plan.ts +31 -26
- package/src/entities/PosSystem.ts +21 -21
- package/src/entities/Product.ts +16 -7
- package/src/entities/ProductTopping.ts +17 -17
- package/src/entities/Request.ts +3 -32
- package/src/entities/RequestLocal.ts +7 -1
- package/src/entities/RequestLocalHistory.ts +2 -2
- package/src/entities/RequestLocalPayment.ts +145 -0
- package/src/entities/ServicePlan.ts +40 -41
- package/src/entities/Square.ts +31 -31
- package/src/entities/ToppingImage.ts +1 -1
- package/src/entities/User.ts +26 -22
- package/src/entities/UserAddress.ts +1 -1
- package/src/entities/UserPaymentMethod.ts +99 -0
- package/src/entities/VerifyLocal.ts +51 -51
- package/src/entities/productGroupComplement.ts +5 -5
- package/src/entities.views.routes.ts +2 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Local, Plan } from
|
|
1
|
+
import { Local, Plan } from "..";
|
|
2
2
|
export declare class LocalPlan {
|
|
3
3
|
id: number;
|
|
4
4
|
plan: Plan;
|
|
5
5
|
local: Local;
|
|
6
6
|
type: number;
|
|
7
7
|
price: number;
|
|
8
|
-
settings: any;
|
|
8
|
+
settings: any | null;
|
|
9
9
|
start_date: Date;
|
|
10
10
|
end_date: Date;
|
|
11
11
|
status: number;
|
|
@@ -19,75 +19,75 @@ var LocalPlan = /** @class */ (function () {
|
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
-
comment:
|
|
22
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
23
23
|
}),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
25
|
], LocalPlan.prototype, "id", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.ManyToOne)(function () { return __1.Plan; }, function (plan) { return plan.local_plans; }, {
|
|
28
|
-
onDelete:
|
|
29
|
-
onUpdate:
|
|
28
|
+
onDelete: "CASCADE",
|
|
29
|
+
onUpdate: "NO ACTION",
|
|
30
30
|
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: "plan" }),
|
|
32
32
|
__metadata("design:type", __1.Plan)
|
|
33
33
|
], LocalPlan.prototype, "plan", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typeorm_1.ManyToOne)(function () { return __1.Local; }, function (local) { return local.locals_plan; }, {
|
|
36
|
-
onDelete:
|
|
37
|
-
onUpdate:
|
|
36
|
+
onDelete: "CASCADE",
|
|
37
|
+
onUpdate: "NO ACTION",
|
|
38
38
|
}),
|
|
39
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
40
40
|
__metadata("design:type", __1.Local)
|
|
41
41
|
], LocalPlan.prototype, "local", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, typeorm_1.Column)({
|
|
44
44
|
default: 0,
|
|
45
|
-
comment:
|
|
45
|
+
comment: "Valor de tipo numérico para saber sí el local tiene el plan mensual o anual:\n\n 1. Mensual. \n\n2. Anual.",
|
|
46
46
|
}),
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
48
|
], LocalPlan.prototype, "type", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({
|
|
51
|
-
comment:
|
|
51
|
+
comment: "Precio por el plan del local.",
|
|
52
52
|
}),
|
|
53
53
|
__metadata("design:type", Number)
|
|
54
54
|
], LocalPlan.prototype, "price", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
(0, typeorm_1.Column)({
|
|
57
|
-
type:
|
|
57
|
+
type: "mediumtext",
|
|
58
58
|
nullable: true,
|
|
59
59
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
60
|
-
comment:
|
|
60
|
+
comment: "Por si necesitamos agregar más elementos a la tabla. \n\nEsto se comporta como un Objeto guardado en la columna.",
|
|
61
61
|
}),
|
|
62
62
|
__metadata("design:type", Object)
|
|
63
63
|
], LocalPlan.prototype, "settings", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
(0, typeorm_1.Column)({
|
|
66
|
-
type:
|
|
66
|
+
type: "datetime",
|
|
67
67
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
68
|
-
comment:
|
|
68
|
+
comment: "Fecha de creación del registro.",
|
|
69
69
|
}),
|
|
70
70
|
__metadata("design:type", Date)
|
|
71
71
|
], LocalPlan.prototype, "start_date", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, typeorm_1.Column)({
|
|
74
|
-
type:
|
|
74
|
+
type: "datetime",
|
|
75
75
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
76
|
-
comment:
|
|
76
|
+
comment: "Fecha de creación del registro.",
|
|
77
77
|
}),
|
|
78
78
|
__metadata("design:type", Date)
|
|
79
79
|
], LocalPlan.prototype, "end_date", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, typeorm_1.Column)({
|
|
82
82
|
default: 1,
|
|
83
|
-
comment:
|
|
83
|
+
comment: "¿El master tiene acceso a la plataforma?:\r\n1. Activo: El master tiene acceso.\r\n0. Inactivo: El master no tiene acceso a la plataforma.",
|
|
84
84
|
}),
|
|
85
85
|
__metadata("design:type", Number)
|
|
86
86
|
], LocalPlan.prototype, "status", void 0);
|
|
87
87
|
LocalPlan = __decorate([
|
|
88
88
|
(0, typeorm_1.Entity)({
|
|
89
|
-
name:
|
|
90
|
-
comment:
|
|
89
|
+
name: "local_plan",
|
|
90
|
+
comment: "Tabla para el manejo de los planes de los locales.",
|
|
91
91
|
})
|
|
92
92
|
], LocalPlan);
|
|
93
93
|
return LocalPlan;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Local } from
|
|
2
|
-
import { User } from
|
|
1
|
+
import { Local } from "./Local";
|
|
2
|
+
import { User } from "./User";
|
|
3
3
|
export declare class LocalQualification {
|
|
4
4
|
id: number;
|
|
5
5
|
qualification: number;
|
|
6
6
|
local: Local;
|
|
7
|
-
user: User;
|
|
7
|
+
user: User | null;
|
|
8
8
|
created: string;
|
|
9
9
|
}
|
|
@@ -13,45 +13,50 @@ exports.LocalQualification = void 0;
|
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var Local_1 = require("./Local");
|
|
15
15
|
var User_1 = require("./User");
|
|
16
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
16
17
|
var LocalQualification = /** @class */ (function () {
|
|
17
18
|
function LocalQualification() {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, typeorm_1.PrimaryColumn)({
|
|
21
|
-
comment:
|
|
22
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
23
|
}),
|
|
23
24
|
__metadata("design:type", Number)
|
|
24
25
|
], LocalQualification.prototype, "id", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, typeorm_1.Column)({
|
|
27
|
-
comment:
|
|
28
|
+
comment: "Calificación que tiene el local.\r\n1. Mínimo: Mal servicio.\r\n5. Máximo: Excelente servicio\r\n\r\nLa calificación se evalúa haciéndole 3 o 4 preguntas al usuario:\r\n1. Qué tal fue el servicio a la hora de realizar el pedido.\r\n......",
|
|
28
29
|
}),
|
|
29
30
|
__metadata("design:type", Number)
|
|
30
31
|
], LocalQualification.prototype, "qualification", void 0);
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, typeorm_1.ManyToOne)(function () { return Local_1.Local; }, function (local) { return local.qualifications; }, {
|
|
33
|
-
onDelete:
|
|
34
|
-
onUpdate:
|
|
34
|
+
onDelete: "CASCADE",
|
|
35
|
+
onUpdate: "NO ACTION",
|
|
35
36
|
}),
|
|
36
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
37
38
|
__metadata("design:type", Local_1.Local)
|
|
38
39
|
], LocalQualification.prototype, "local", void 0);
|
|
39
40
|
__decorate([
|
|
40
41
|
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.qualifications; }, {
|
|
41
42
|
nullable: true,
|
|
42
|
-
onDelete:
|
|
43
|
-
onUpdate:
|
|
43
|
+
onDelete: "SET NULL",
|
|
44
|
+
onUpdate: "NO ACTION",
|
|
44
45
|
}),
|
|
45
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
46
|
-
__metadata("design:type",
|
|
46
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
47
48
|
], LocalQualification.prototype, "user", void 0);
|
|
48
49
|
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({
|
|
50
|
+
(0, typeorm_1.Column)({
|
|
51
|
+
type: "datetime",
|
|
52
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
53
|
+
comment: "Fecha de creación del registro.",
|
|
54
|
+
}),
|
|
50
55
|
__metadata("design:type", String)
|
|
51
56
|
], LocalQualification.prototype, "created", void 0);
|
|
52
57
|
LocalQualification = __decorate([
|
|
53
|
-
(0, typeorm_1.Entity)(
|
|
54
|
-
comment:
|
|
58
|
+
(0, typeorm_1.Entity)("local_qualification", {
|
|
59
|
+
comment: "Valoración que los usuarios le dan a los locales cada vez qué realicen una orden, no es obligatorio.\r\n\r\nTodos los locales cuando se crean y no tienen reseñas quedarán con puntaje de 5.",
|
|
55
60
|
})
|
|
56
61
|
], LocalQualification);
|
|
57
62
|
return LocalQualification;
|
|
@@ -5,7 +5,7 @@ import { MasterRole } from "./MasterRole";
|
|
|
5
5
|
export declare class Master {
|
|
6
6
|
id: number;
|
|
7
7
|
code: string;
|
|
8
|
-
document: string;
|
|
8
|
+
document: string | null;
|
|
9
9
|
name: string;
|
|
10
10
|
surname: string;
|
|
11
11
|
email: string;
|
|
@@ -13,7 +13,7 @@ export declare class Master {
|
|
|
13
13
|
city: City;
|
|
14
14
|
address: string;
|
|
15
15
|
password: string;
|
|
16
|
-
profile: any;
|
|
16
|
+
profile: any | null;
|
|
17
17
|
created: Date;
|
|
18
18
|
updated: Date;
|
|
19
19
|
status: number;
|
package/dist/entities/Master.js
CHANGED
|
@@ -37,7 +37,7 @@ var Master = /** @class */ (function () {
|
|
|
37
37
|
unique: true,
|
|
38
38
|
comment: "Número de documento del master.",
|
|
39
39
|
}),
|
|
40
|
-
__metadata("design:type",
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
41
|
], Master.prototype, "document", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del master." }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Master, Partner } from "..";
|
|
2
2
|
export declare class MasterNotification {
|
|
3
3
|
id: number;
|
|
4
|
-
master: Master;
|
|
5
|
-
partner: Partner;
|
|
4
|
+
master: Master | null;
|
|
5
|
+
partner: Partner | null;
|
|
6
6
|
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
settings: any;
|
|
7
|
+
description: string | null;
|
|
8
|
+
settings: any | null;
|
|
9
9
|
status: number;
|
|
10
10
|
created: Date;
|
|
11
11
|
master_to_notifications: Master[];
|
|
@@ -30,7 +30,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
30
30
|
nullable: true,
|
|
31
31
|
}),
|
|
32
32
|
(0, typeorm_1.JoinColumn)({ name: "master" }),
|
|
33
|
-
__metadata("design:type",
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
34
|
], MasterNotification.prototype, "master", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typeorm_1.ManyToOne)(function () { return __1.Partner; }, function (partner) { return partner.partner_notifications; }, {
|
|
@@ -39,7 +39,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
39
39
|
nullable: true,
|
|
40
40
|
}),
|
|
41
41
|
(0, typeorm_1.JoinColumn)({ name: "partner" }),
|
|
42
|
-
__metadata("design:type",
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
43
|
], MasterNotification.prototype, "partner", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)({
|
|
@@ -54,7 +54,7 @@ var MasterNotification = /** @class */ (function () {
|
|
|
54
54
|
nullable: true,
|
|
55
55
|
comment: "Descripción de la notificación.",
|
|
56
56
|
}),
|
|
57
|
-
__metadata("design:type",
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
58
|
], MasterNotification.prototype, "description", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
(0, typeorm_1.Column)({
|
|
@@ -39,7 +39,7 @@ var MasterRole = /** @class */ (function () {
|
|
|
39
39
|
nullable: true,
|
|
40
40
|
comment: 'Id de la variable que se encuentra en los archivos "locale" para el multilenguaje.\r\n\r\nCabe recordar qué los usuarios (master) también pueden crear roles, estos deben ir normal, sin id para el lenguaje.',
|
|
41
41
|
}),
|
|
42
|
-
__metadata("design:type",
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
43
|
], MasterRole.prototype, "description", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category, MasterNotification, PartnerSession, Product, RequestLocalHistory, VerifyLocal } from "..";
|
|
1
|
+
import { Category, MasterNotification, PartnerSession, Product, RequestLocalHistory, RequestLocalPayment, VerifyLocal } from "..";
|
|
2
2
|
import { City } from "./City";
|
|
3
3
|
import { Company } from "./Company";
|
|
4
4
|
import { DiscountCodeUser } from "./DiscountCodeUser";
|
|
@@ -7,17 +7,17 @@ import { PartnerNotification } from "./PartnerNotification";
|
|
|
7
7
|
import { PartnerRole } from "./PartnerRole";
|
|
8
8
|
export declare class Partner {
|
|
9
9
|
id: number;
|
|
10
|
-
company: Company;
|
|
10
|
+
company: Company | null;
|
|
11
11
|
code: string;
|
|
12
|
-
document: string;
|
|
12
|
+
document: string | null;
|
|
13
13
|
name: string;
|
|
14
14
|
surname: string;
|
|
15
15
|
email: string;
|
|
16
16
|
phone: string;
|
|
17
17
|
city: City;
|
|
18
|
-
address: string;
|
|
18
|
+
address: string | null;
|
|
19
19
|
password: string;
|
|
20
|
-
profile: any;
|
|
20
|
+
profile: any | null;
|
|
21
21
|
owner: number;
|
|
22
22
|
created: Date;
|
|
23
23
|
updated: Date;
|
|
@@ -38,4 +38,5 @@ export declare class Partner {
|
|
|
38
38
|
partners_category_created_by: Category[];
|
|
39
39
|
partners_session: PartnerSession[];
|
|
40
40
|
updated_by_history: RequestLocalHistory[];
|
|
41
|
+
requests_local_payment: RequestLocalPayment[];
|
|
41
42
|
}
|
package/dist/entities/Partner.js
CHANGED
|
@@ -36,7 +36,7 @@ var Partner = /** @class */ (function () {
|
|
|
36
36
|
nullable: true,
|
|
37
37
|
}),
|
|
38
38
|
(0, typeorm_1.JoinColumn)({ name: "company" }),
|
|
39
|
-
__metadata("design:type",
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
40
|
], Partner.prototype, "company", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, typeorm_1.Column)({ length: 30, unique: true, comment: "Código único del partner." }),
|
|
@@ -49,7 +49,7 @@ var Partner = /** @class */ (function () {
|
|
|
49
49
|
unique: true,
|
|
50
50
|
comment: "Número de documento del partner.",
|
|
51
51
|
}),
|
|
52
|
-
__metadata("design:type",
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
53
|
], Partner.prototype, "document", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({ length: 50, comment: "Nombre del partner." }),
|
|
@@ -85,7 +85,7 @@ var Partner = /** @class */ (function () {
|
|
|
85
85
|
], Partner.prototype, "city", void 0);
|
|
86
86
|
__decorate([
|
|
87
87
|
(0, typeorm_1.Column)({ nullable: true, length: 100, comment: "Dirección del partner." }),
|
|
88
|
-
__metadata("design:type",
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
89
|
], Partner.prototype, "address", void 0);
|
|
90
90
|
__decorate([
|
|
91
91
|
(0, typeorm_1.Column)({
|
|
@@ -233,6 +233,10 @@ var Partner = /** @class */ (function () {
|
|
|
233
233
|
(0, typeorm_1.OneToMany)(function () { return __1.RequestLocalHistory; }, function (requestLocalHistory) { return requestLocalHistory.updated_by; }),
|
|
234
234
|
__metadata("design:type", Array)
|
|
235
235
|
], Partner.prototype, "updated_by_history", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, typeorm_1.OneToMany)(function () { return __1.RequestLocalPayment; }, function (requestLocalPayment) { return requestLocalPayment.partner; }),
|
|
238
|
+
__metadata("design:type", Array)
|
|
239
|
+
], Partner.prototype, "requests_local_payment", void 0);
|
|
236
240
|
Partner = __decorate([
|
|
237
241
|
(0, typeorm_1.Entity)({
|
|
238
242
|
comment: "Tabla agregada para los usuarios qué quieran registrar su local o empresa de comida rápida en la plataforma.\r\n\r\nEste usuario es independiente a los usuarios de la tabla `user` ya que tiene diferentes plataformas.\r\n\r\nTambién van a estar los usuarios qué el administrador/dueño desee agregar como empleados/colaboradores.",
|
|
@@ -2,11 +2,11 @@ import { Partner } from "./Partner";
|
|
|
2
2
|
import { Master } from "./Master";
|
|
3
3
|
export declare class PartnerNotification {
|
|
4
4
|
id: number;
|
|
5
|
-
partner: Partner;
|
|
6
|
-
master: Master;
|
|
5
|
+
partner: Partner | null;
|
|
6
|
+
master: Master | null;
|
|
7
7
|
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
settings: any;
|
|
8
|
+
description: string | null;
|
|
9
|
+
settings: any | null;
|
|
10
10
|
status: number;
|
|
11
11
|
created: Date;
|
|
12
12
|
partner_to_notifications: Partner[];
|
|
@@ -31,7 +31,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
31
31
|
nullable: true,
|
|
32
32
|
}),
|
|
33
33
|
(0, typeorm_1.JoinColumn)({ name: "partner" }),
|
|
34
|
-
__metadata("design:type",
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
35
|
], PartnerNotification.prototype, "partner", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.ManyToOne)(function () { return Master_1.Master; }, function (master) { return master.masters_notification; }, {
|
|
@@ -40,7 +40,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
40
40
|
nullable: true,
|
|
41
41
|
}),
|
|
42
42
|
(0, typeorm_1.JoinColumn)({ name: "master" }),
|
|
43
|
-
__metadata("design:type",
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
44
|
], PartnerNotification.prototype, "master", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, typeorm_1.Column)({
|
|
@@ -55,7 +55,7 @@ var PartnerNotification = /** @class */ (function () {
|
|
|
55
55
|
nullable: true,
|
|
56
56
|
comment: "Descripción de la notificación.",
|
|
57
57
|
}),
|
|
58
|
-
__metadata("design:type",
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
59
|
], PartnerNotification.prototype, "description", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, typeorm_1.Column)({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PartnerRole } from
|
|
2
|
-
import { PartnerPermissionSection } from
|
|
1
|
+
import { PartnerRole } from "./PartnerRole";
|
|
2
|
+
import { PartnerPermissionSection } from "..";
|
|
3
3
|
export declare class PartnerPermission {
|
|
4
4
|
id: number;
|
|
5
5
|
code: string;
|
|
6
6
|
section: PartnerPermissionSection;
|
|
7
7
|
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
icon: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
icon: string | null;
|
|
10
10
|
status: number;
|
|
11
11
|
roles_permissions: PartnerRole[];
|
|
12
12
|
}
|
|
@@ -18,72 +18,72 @@ var PartnerPermission = /** @class */ (function () {
|
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
21
|
-
comment:
|
|
21
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
22
22
|
}),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
24
|
], PartnerPermission.prototype, "id", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ length: 10, unique: true, comment:
|
|
26
|
+
(0, typeorm_1.Column)({ length: 10, unique: true, comment: "Código del permiso." }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], PartnerPermission.prototype, "code", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, typeorm_1.ManyToOne)(function () { return __1.PartnerPermissionSection; }, function (partnerPermissionSection) {
|
|
31
31
|
return partnerPermissionSection.partner_permissions_sections;
|
|
32
32
|
}, {
|
|
33
|
-
onDelete:
|
|
34
|
-
onUpdate:
|
|
33
|
+
onDelete: "RESTRICT",
|
|
34
|
+
onUpdate: "NO ACTION",
|
|
35
35
|
}),
|
|
36
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: "section" }),
|
|
37
37
|
__metadata("design:type", __1.PartnerPermissionSection)
|
|
38
38
|
], PartnerPermission.prototype, "section", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Column)({
|
|
41
41
|
length: 40,
|
|
42
|
-
comment:
|
|
42
|
+
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
43
43
|
}),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], PartnerPermission.prototype, "name", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, typeorm_1.Column)({
|
|
48
48
|
length: 40,
|
|
49
|
-
comment:
|
|
49
|
+
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
50
50
|
nullable: true,
|
|
51
51
|
}),
|
|
52
|
-
__metadata("design:type",
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
53
|
], PartnerPermission.prototype, "description", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({
|
|
56
56
|
length: 20,
|
|
57
|
-
comment:
|
|
57
|
+
comment: "Icono de la sección para los permisos.",
|
|
58
58
|
nullable: true,
|
|
59
59
|
}),
|
|
60
|
-
__metadata("design:type",
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
61
|
], PartnerPermission.prototype, "icon", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.Column)({
|
|
64
64
|
default: 1,
|
|
65
|
-
comment:
|
|
65
|
+
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
66
66
|
}),
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], PartnerPermission.prototype, "status", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, typeorm_1.ManyToMany)(function () { return PartnerRole_1.PartnerRole; }, function (partnerRole) { return partnerRole.roles_permissions; }),
|
|
71
71
|
(0, typeorm_1.JoinTable)({
|
|
72
|
-
name:
|
|
72
|
+
name: "partner_role_permission",
|
|
73
73
|
joinColumn: {
|
|
74
|
-
name:
|
|
75
|
-
referencedColumnName:
|
|
74
|
+
name: "permission",
|
|
75
|
+
referencedColumnName: "id",
|
|
76
76
|
},
|
|
77
77
|
inverseJoinColumn: {
|
|
78
|
-
name:
|
|
79
|
-
referencedColumnName:
|
|
78
|
+
name: "role",
|
|
79
|
+
referencedColumnName: "id",
|
|
80
80
|
},
|
|
81
81
|
}),
|
|
82
82
|
__metadata("design:type", Array)
|
|
83
83
|
], PartnerPermission.prototype, "roles_permissions", void 0);
|
|
84
84
|
PartnerPermission = __decorate([
|
|
85
|
-
(0, typeorm_1.Entity)(
|
|
86
|
-
comment:
|
|
85
|
+
(0, typeorm_1.Entity)("partner_permission", {
|
|
86
|
+
comment: "Permisos que estarán disponibles en la plataforma para los usuarios (partners).",
|
|
87
87
|
})
|
|
88
88
|
], PartnerPermission);
|
|
89
89
|
return PartnerPermission;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PartnerPermission, PartnerPlatform } from
|
|
1
|
+
import { PartnerPermission, PartnerPlatform } from "..";
|
|
2
2
|
export declare class PartnerPermissionSection {
|
|
3
3
|
id: number;
|
|
4
4
|
code: string;
|
|
5
5
|
platform: PartnerPlatform;
|
|
6
6
|
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
icon: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
icon: string | null;
|
|
9
9
|
status: number;
|
|
10
10
|
partner_permissions_sections: PartnerPermission[];
|
|
11
11
|
}
|
|
@@ -17,49 +17,49 @@ var PartnerPermissionSection = /** @class */ (function () {
|
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
20
|
-
comment:
|
|
20
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
21
21
|
}),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], PartnerPermissionSection.prototype, "id", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ length: 10, unique: true, comment:
|
|
25
|
+
(0, typeorm_1.Column)({ length: 10, unique: true, comment: "Código del permiso." }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], PartnerPermissionSection.prototype, "code", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.ManyToOne)(function () { return __1.PartnerPlatform; }, function (partnerPlatform) { return partnerPlatform.partner_platform_sections; }, {
|
|
30
|
-
onDelete:
|
|
31
|
-
onUpdate:
|
|
30
|
+
onDelete: "RESTRICT",
|
|
31
|
+
onUpdate: "NO ACTION",
|
|
32
32
|
}),
|
|
33
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
33
|
+
(0, typeorm_1.JoinColumn)({ name: "platform" }),
|
|
34
34
|
__metadata("design:type", __1.PartnerPlatform)
|
|
35
35
|
], PartnerPermissionSection.prototype, "platform", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.Column)({
|
|
38
38
|
length: 40,
|
|
39
|
-
comment:
|
|
39
|
+
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
40
40
|
}),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], PartnerPermissionSection.prototype, "name", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({
|
|
45
45
|
length: 40,
|
|
46
|
-
comment:
|
|
46
|
+
comment: "Id de la variable que se encuentra en los archivos `locale` para el multilenguaje.",
|
|
47
47
|
nullable: true,
|
|
48
48
|
}),
|
|
49
|
-
__metadata("design:type",
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
50
|
], PartnerPermissionSection.prototype, "description", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, typeorm_1.Column)({
|
|
53
53
|
length: 20,
|
|
54
|
-
comment:
|
|
54
|
+
comment: "Icono de la sección para los permisos.",
|
|
55
55
|
nullable: true,
|
|
56
56
|
}),
|
|
57
|
-
__metadata("design:type",
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
58
|
], PartnerPermissionSection.prototype, "icon", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
(0, typeorm_1.Column)({
|
|
61
61
|
default: 1,
|
|
62
|
-
comment:
|
|
62
|
+
comment: "Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
63
63
|
}),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
65
|
], PartnerPermissionSection.prototype, "status", void 0);
|
|
@@ -68,8 +68,8 @@ var PartnerPermissionSection = /** @class */ (function () {
|
|
|
68
68
|
__metadata("design:type", Array)
|
|
69
69
|
], PartnerPermissionSection.prototype, "partner_permissions_sections", void 0);
|
|
70
70
|
PartnerPermissionSection = __decorate([
|
|
71
|
-
(0, typeorm_1.Entity)(
|
|
72
|
-
comment:
|
|
71
|
+
(0, typeorm_1.Entity)("partner_permission_section", {
|
|
72
|
+
comment: "Tabla creada para agregar las secciones para lo permisos del partner.",
|
|
73
73
|
})
|
|
74
74
|
], PartnerPermissionSection);
|
|
75
75
|
return PartnerPermissionSection;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PartnerPermissionSection } from
|
|
1
|
+
import { PartnerPermissionSection } from "..";
|
|
2
2
|
export declare class PartnerPlatform {
|
|
3
3
|
id: number;
|
|
4
4
|
code: string;
|
|
5
5
|
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
icon: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
icon: string | null;
|
|
8
8
|
status: number;
|
|
9
9
|
partner_platform_sections: PartnerPermissionSection[];
|
|
10
10
|
}
|