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
package/dist/entities/User.js
CHANGED
|
@@ -13,15 +13,16 @@ exports.User = void 0;
|
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
14
|
var City_1 = require("./City");
|
|
15
15
|
var CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
16
|
+
var Local_1 = require("./Local");
|
|
16
17
|
var LocalQualification_1 = require("./LocalQualification");
|
|
18
|
+
var Product_1 = require("./Product");
|
|
17
19
|
var Request_1 = require("./Request");
|
|
18
20
|
var RequestProduct_1 = require("./RequestProduct");
|
|
19
21
|
var RequestProductGroupComplement_1 = require("./RequestProductGroupComplement");
|
|
20
|
-
var UserAddress_1 = require("./UserAddress");
|
|
21
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
22
22
|
var Square_1 = require("./Square");
|
|
23
|
-
var
|
|
24
|
-
var
|
|
23
|
+
var UserAddress_1 = require("./UserAddress");
|
|
24
|
+
var __1 = require("..");
|
|
25
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
25
26
|
var User = /** @class */ (function () {
|
|
26
27
|
function User() {
|
|
27
28
|
}
|
|
@@ -88,14 +89,22 @@ var User = /** @class */ (function () {
|
|
|
88
89
|
nullable: true,
|
|
89
90
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
90
91
|
}),
|
|
91
|
-
__metadata("design:type",
|
|
92
|
+
__metadata("design:type", Object)
|
|
92
93
|
], User.prototype, "profile", void 0);
|
|
93
94
|
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({
|
|
95
|
+
(0, typeorm_1.Column)({
|
|
96
|
+
type: "datetime",
|
|
97
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
98
|
+
comment: "Fecha de creación del registro.",
|
|
99
|
+
}),
|
|
95
100
|
__metadata("design:type", Date)
|
|
96
101
|
], User.prototype, "created", void 0);
|
|
97
102
|
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({
|
|
103
|
+
(0, typeorm_1.Column)({
|
|
104
|
+
type: "datetime",
|
|
105
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
106
|
+
comment: "Fecha de actualización del registro.",
|
|
107
|
+
}),
|
|
99
108
|
__metadata("design:type", Date)
|
|
100
109
|
], User.prototype, "updated", void 0);
|
|
101
110
|
__decorate([
|
|
@@ -152,20 +161,13 @@ var User = /** @class */ (function () {
|
|
|
152
161
|
__metadata("design:type", Array)
|
|
153
162
|
], User.prototype, "addresses", void 0);
|
|
154
163
|
__decorate([
|
|
155
|
-
(0, typeorm_1.
|
|
156
|
-
(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
referencedColumnName: "id",
|
|
161
|
-
},
|
|
162
|
-
inverseJoinColumn: {
|
|
163
|
-
name: "payment_method",
|
|
164
|
-
referencedColumnName: "id",
|
|
165
|
-
},
|
|
166
|
-
}),
|
|
164
|
+
(0, typeorm_1.OneToMany)(function () { return __1.UserPaymentMethod; }, function (userPaymentMethods) { return userPaymentMethods.user; }),
|
|
165
|
+
__metadata("design:type", Array)
|
|
166
|
+
], User.prototype, "payment_methods", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.OneToMany)(function () { return __1.RequestLocalPayment; }, function (requestLocalPayment) { return requestLocalPayment.user; }),
|
|
167
169
|
__metadata("design:type", Array)
|
|
168
|
-
], User.prototype, "
|
|
170
|
+
], User.prototype, "payments_made", void 0);
|
|
169
171
|
__decorate([
|
|
170
172
|
(0, typeorm_1.ManyToMany)(function () { return Square_1.Square; }, function (square) { return square.users_favorite_square; }),
|
|
171
173
|
(0, typeorm_1.JoinTable)({
|
|
@@ -67,7 +67,7 @@ var UserAddress = /** @class */ (function () {
|
|
|
67
67
|
nullable: true,
|
|
68
68
|
comment: "Detalles de la dirección, si es una casa, un conjunto, el apartamento.",
|
|
69
69
|
}),
|
|
70
|
-
__metadata("design:type",
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
71
|
], UserAddress.prototype, "details", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, typeorm_1.Column)({
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
import { RequestLocalPayment } from "..";
|
|
3
|
+
export declare class UserPaymentMethod {
|
|
4
|
+
id: number;
|
|
5
|
+
user: User;
|
|
6
|
+
card_token: string;
|
|
7
|
+
card_network: string;
|
|
8
|
+
card_type: string;
|
|
9
|
+
last_four_digits: string;
|
|
10
|
+
expiration_month: string;
|
|
11
|
+
expiration_year: string;
|
|
12
|
+
status: number;
|
|
13
|
+
deleted: number;
|
|
14
|
+
created: Date;
|
|
15
|
+
updated: Date | null;
|
|
16
|
+
cards: RequestLocalPayment[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserPaymentMethod = void 0;
|
|
13
|
+
var typeorm_1 = require("typeorm");
|
|
14
|
+
var User_1 = require("./User");
|
|
15
|
+
var __1 = require("..");
|
|
16
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
17
|
+
var UserPaymentMethod = /** @class */ (function () {
|
|
18
|
+
function UserPaymentMethod() {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
22
|
+
comment: "ID único de cada registro.",
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], UserPaymentMethod.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(function () { return User_1.User; }, function (user) { return user.payment_methods; }, {
|
|
28
|
+
onDelete: "NO ACTION",
|
|
29
|
+
onUpdate: "NO ACTION",
|
|
30
|
+
}),
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: "user" }),
|
|
32
|
+
__metadata("design:type", User_1.User)
|
|
33
|
+
], UserPaymentMethod.prototype, "user", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({
|
|
36
|
+
length: 255,
|
|
37
|
+
comment: "Token devuelto por la pasarela de pagos que estemos usando.",
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UserPaymentMethod.prototype, "card_token", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
length: 50,
|
|
44
|
+
comment: "Ej. Visa, MasterCard, Amex...",
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UserPaymentMethod.prototype, "card_network", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({
|
|
50
|
+
length: 50,
|
|
51
|
+
comment: "Ej. Crédito, Débito, Prepago...",
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UserPaymentMethod.prototype, "card_type", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
length: 4,
|
|
58
|
+
comment: "Últimos 4 dígitos de la tarjeta/método de pago.",
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], UserPaymentMethod.prototype, "last_four_digits", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
length: 2,
|
|
65
|
+
comment: "Mes de expiración de la tarjeta/método de pago.",
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UserPaymentMethod.prototype, "expiration_month", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
length: 2,
|
|
72
|
+
comment: "Año de expiración de la tarjeta/método de pago.",
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], UserPaymentMethod.prototype, "expiration_year", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({
|
|
78
|
+
default: 1,
|
|
79
|
+
comment: "Me indica sí la tarjeta/método de pago está o no activa.\r\n1: Activa.\r\n0: Inactiva.",
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], UserPaymentMethod.prototype, "status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({
|
|
85
|
+
default: 0,
|
|
86
|
+
comment: "Me indica sí la tarjeta/método de pago está o no eliminada.\r\n0: No eliminado.\r\n1: Eliminado.",
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], UserPaymentMethod.prototype, "deleted", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({
|
|
92
|
+
type: "datetime",
|
|
93
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
94
|
+
comment: "Fecha de creación del registro.",
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", Date)
|
|
97
|
+
], UserPaymentMethod.prototype, "created", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({
|
|
100
|
+
type: "datetime",
|
|
101
|
+
nullable: true,
|
|
102
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
103
|
+
comment: "Fecha de actualización del registro.",
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], UserPaymentMethod.prototype, "updated", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.OneToMany)(function () { return __1.RequestLocalPayment; }, function (requestLocalPayment) { return requestLocalPayment.card; }),
|
|
109
|
+
__metadata("design:type", Array)
|
|
110
|
+
], UserPaymentMethod.prototype, "cards", void 0);
|
|
111
|
+
UserPaymentMethod = __decorate([
|
|
112
|
+
(0, typeorm_1.Entity)("user_payment_method", {
|
|
113
|
+
comment: "Tabla creada para almacenar la información de las tarjetas.",
|
|
114
|
+
})
|
|
115
|
+
], UserPaymentMethod);
|
|
116
|
+
return UserPaymentMethod;
|
|
117
|
+
}());
|
|
118
|
+
exports.UserPaymentMethod = UserPaymentMethod;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Master } from
|
|
2
|
-
import { Partner } from
|
|
1
|
+
import { Master } from "..";
|
|
2
|
+
import { Partner } from "./Partner";
|
|
3
3
|
export declare class VerifyLocal {
|
|
4
4
|
id: number;
|
|
5
5
|
partner: Partner;
|
|
@@ -10,9 +10,9 @@ export declare class VerifyLocal {
|
|
|
10
10
|
opening_hours: any;
|
|
11
11
|
terminal_users: any;
|
|
12
12
|
terminals: any;
|
|
13
|
-
details: any;
|
|
13
|
+
details: any | null;
|
|
14
14
|
created: Date;
|
|
15
|
-
verification_date: Date;
|
|
15
|
+
verification_date: Date | null;
|
|
16
16
|
update_partner: Date;
|
|
17
17
|
status: number;
|
|
18
18
|
visible: number;
|
|
@@ -20,126 +20,126 @@ var VerifyLocal = /** @class */ (function () {
|
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, typeorm_1.PrimaryGeneratedColumn)({
|
|
23
|
-
comment:
|
|
23
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
24
24
|
}),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], VerifyLocal.prototype, "id", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, typeorm_1.ManyToOne)(function () { return Partner_1.Partner; }, function (partner) { return partner.verifyLocals; }, {
|
|
29
|
-
onDelete:
|
|
30
|
-
onUpdate:
|
|
29
|
+
onDelete: "CASCADE",
|
|
30
|
+
onUpdate: "NO ACTION",
|
|
31
31
|
}),
|
|
32
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
32
|
+
(0, typeorm_1.JoinColumn)({ name: "partner" }),
|
|
33
33
|
__metadata("design:type", Partner_1.Partner)
|
|
34
34
|
], VerifyLocal.prototype, "partner", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typeorm_1.ManyToOne)(function () { return __1.Master; }, function (master) { return master.verifyLocals; }, {
|
|
37
|
-
onDelete:
|
|
38
|
-
onUpdate:
|
|
37
|
+
onDelete: "RESTRICT",
|
|
38
|
+
onUpdate: "NO ACTION",
|
|
39
39
|
}),
|
|
40
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: "assigned_master" }),
|
|
41
41
|
__metadata("design:type", __1.Master)
|
|
42
42
|
], VerifyLocal.prototype, "assigned_master", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({
|
|
45
|
-
type:
|
|
45
|
+
type: "longtext",
|
|
46
46
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
47
|
-
comment:
|
|
47
|
+
comment: "Campos que el usuario (partner) agrega al nuevo local.",
|
|
48
48
|
}),
|
|
49
49
|
__metadata("design:type", Object)
|
|
50
50
|
], VerifyLocal.prototype, "local_information", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, typeorm_1.Column)({
|
|
53
|
-
type:
|
|
53
|
+
type: "longtext",
|
|
54
54
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
55
|
-
comment:
|
|
55
|
+
comment: "Estructura de paso información básica.",
|
|
56
56
|
}),
|
|
57
57
|
__metadata("design:type", Object)
|
|
58
58
|
], VerifyLocal.prototype, "basic_information", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
(0, typeorm_1.Column)({
|
|
61
|
-
type:
|
|
61
|
+
type: "longtext",
|
|
62
62
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
63
|
-
comment:
|
|
63
|
+
comment: "Estructura de paso configuración.",
|
|
64
64
|
}),
|
|
65
65
|
__metadata("design:type", Object)
|
|
66
66
|
], VerifyLocal.prototype, "settings", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
(0, typeorm_1.Column)({
|
|
69
|
-
type:
|
|
69
|
+
type: "longtext",
|
|
70
70
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
71
|
-
comment:
|
|
71
|
+
comment: "Estructura de paso horarios de atención.",
|
|
72
72
|
}),
|
|
73
73
|
__metadata("design:type", Object)
|
|
74
74
|
], VerifyLocal.prototype, "opening_hours", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, typeorm_1.Column)({
|
|
77
|
-
type:
|
|
77
|
+
type: "longtext",
|
|
78
78
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
79
|
-
comment:
|
|
79
|
+
comment: "Estructura de paso terminales y usuarios.",
|
|
80
80
|
}),
|
|
81
81
|
__metadata("design:type", Object)
|
|
82
82
|
], VerifyLocal.prototype, "terminal_users", void 0);
|
|
83
83
|
__decorate([
|
|
84
84
|
(0, typeorm_1.Column)({
|
|
85
|
-
type:
|
|
85
|
+
type: "longtext",
|
|
86
86
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
87
|
-
comment:
|
|
87
|
+
comment: "Estructura de paso terminales y usuarios.",
|
|
88
88
|
}),
|
|
89
89
|
__metadata("design:type", Object)
|
|
90
90
|
], VerifyLocal.prototype, "terminals", void 0);
|
|
91
91
|
__decorate([
|
|
92
92
|
(0, typeorm_1.Column)({
|
|
93
|
-
type:
|
|
93
|
+
type: "text",
|
|
94
94
|
nullable: true,
|
|
95
95
|
transformer: jsonTransformer_1.jsonTransformer,
|
|
96
|
-
comment:
|
|
96
|
+
comment: "Información adicional del local para su verificación.",
|
|
97
97
|
}),
|
|
98
98
|
__metadata("design:type", Object)
|
|
99
99
|
], VerifyLocal.prototype, "details", void 0);
|
|
100
100
|
__decorate([
|
|
101
101
|
(0, typeorm_1.Column)({
|
|
102
|
-
type:
|
|
102
|
+
type: "datetime",
|
|
103
103
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
104
|
-
comment:
|
|
104
|
+
comment: "Fecha de creación del registro.",
|
|
105
105
|
}),
|
|
106
106
|
__metadata("design:type", Date)
|
|
107
107
|
], VerifyLocal.prototype, "created", void 0);
|
|
108
108
|
__decorate([
|
|
109
109
|
(0, typeorm_1.Column)({
|
|
110
|
-
type:
|
|
110
|
+
type: "datetime",
|
|
111
111
|
nullable: true,
|
|
112
112
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
113
|
-
comment:
|
|
113
|
+
comment: "Fecha de verificación del registro.",
|
|
114
114
|
}),
|
|
115
|
-
__metadata("design:type",
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
116
|
], VerifyLocal.prototype, "verification_date", void 0);
|
|
117
117
|
__decorate([
|
|
118
118
|
(0, typeorm_1.Column)({
|
|
119
|
-
type:
|
|
119
|
+
type: "datetime",
|
|
120
120
|
transformer: new dateTransformer_1.DateTransformer(),
|
|
121
|
-
comment:
|
|
121
|
+
comment: "Fecha de actualización de los nuevos cambios del registro.",
|
|
122
122
|
}),
|
|
123
123
|
__metadata("design:type", Date)
|
|
124
124
|
], VerifyLocal.prototype, "update_partner", void 0);
|
|
125
125
|
__decorate([
|
|
126
126
|
(0, typeorm_1.Column)({
|
|
127
127
|
default: 1,
|
|
128
|
-
comment:
|
|
128
|
+
comment: "Este campo hace referencia al estado que tiene la verificación del local, es decir:\r\n1. Pendiente de verificación (Pending verification): Este estado hace referencia a que el usuario ya creó el local y lo mandó a verificación, entonces, le queda al master validar y aprobar o rechazar.\r\n\r\n2. Rechazado (Rejected): Hace referencia a que el master verificó y por alguna razón rechazó la información de la creación del local.\r\n\r\n3. Aprobado (approved): Hace referencia a que la información y se procede a la realización del pago (Si hay un plan, no debería hacer el pago, eso es automático).",
|
|
129
129
|
}),
|
|
130
130
|
__metadata("design:type", Number)
|
|
131
131
|
], VerifyLocal.prototype, "status", void 0);
|
|
132
132
|
__decorate([
|
|
133
133
|
(0, typeorm_1.Column)({
|
|
134
134
|
default: 1,
|
|
135
|
-
comment:
|
|
135
|
+
comment: "Visible al usuario: 1 El registro es visto por el administrador en los locales verificados.0 El registro no es visto para el administrador y pasa a la papelera de reciclaje",
|
|
136
136
|
}),
|
|
137
137
|
__metadata("design:type", Number)
|
|
138
138
|
], VerifyLocal.prototype, "visible", void 0);
|
|
139
139
|
VerifyLocal = __decorate([
|
|
140
140
|
(0, typeorm_1.Entity)({
|
|
141
|
-
name:
|
|
142
|
-
comment:
|
|
141
|
+
name: "verify_local",
|
|
142
|
+
comment: "Tabla creada para almacenar la información del local que el administrador (partner) ingrese para su aprobación.",
|
|
143
143
|
})
|
|
144
144
|
], VerifyLocal);
|
|
145
145
|
return VerifyLocal;
|
|
@@ -6,13 +6,13 @@ export declare class ProductGroupComplement {
|
|
|
6
6
|
group_id: ProductGroup;
|
|
7
7
|
name: string;
|
|
8
8
|
image: ToppingImage;
|
|
9
|
-
price: string;
|
|
10
|
-
maximum_limit: number;
|
|
9
|
+
price: string | null;
|
|
10
|
+
maximum_limit: number | null;
|
|
11
11
|
position: number;
|
|
12
|
-
current_values: any;
|
|
12
|
+
current_values: any | null;
|
|
13
13
|
status: number;
|
|
14
|
-
inactive_until: any;
|
|
14
|
+
inactive_until: any | null;
|
|
15
15
|
status_review: number;
|
|
16
|
-
review_comment: string;
|
|
16
|
+
review_comment: string | null;
|
|
17
17
|
request_product_group_complements: RequestProductGroupComplement[];
|
|
18
18
|
}
|
|
@@ -46,14 +46,14 @@ var ProductGroupComplement = /** @class */ (function () {
|
|
|
46
46
|
], ProductGroupComplement.prototype, "image", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, typeorm_1.Column)({ length: 20, nullable: true, comment: "Precio del complemento." }),
|
|
49
|
-
__metadata("design:type",
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
50
|
], ProductGroupComplement.prototype, "price", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, typeorm_1.Column)({
|
|
53
53
|
nullable: true,
|
|
54
54
|
comment: "Límite máximo para poder agregar el complement (topping) al producto.",
|
|
55
55
|
}),
|
|
56
|
-
__metadata("design:type",
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
57
|
], ProductGroupComplement.prototype, "maximum_limit", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, typeorm_1.Column)({ comment: "El orden en que aparece los grupos en el producto." }),
|
|
@@ -97,7 +97,7 @@ var ProductGroupComplement = /** @class */ (function () {
|
|
|
97
97
|
length: 600,
|
|
98
98
|
comment: "Comentarios u observaciones de la revisión.",
|
|
99
99
|
}),
|
|
100
|
-
__metadata("design:type",
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
101
|
], ProductGroupComplement.prototype, "review_comment", void 0);
|
|
102
102
|
__decorate([
|
|
103
103
|
(0, typeorm_1.OneToMany)(function () { return RequestProductGroupComplement_1.RequestProductGroupComplement; }, function (requestProduct) { return requestProduct.product_group_complement; }),
|
|
@@ -51,6 +51,8 @@ export { ToppingImage } from "./entities/ToppingImage";
|
|
|
51
51
|
export { PartnerSession } from "./entities/PartnerSession";
|
|
52
52
|
export { RequestLocal } from "./entities/RequestLocal";
|
|
53
53
|
export { RequestLocalHistory } from "./entities/RequestLocalHistory";
|
|
54
|
+
export { UserPaymentMethod } from "./entities/UserPaymentMethod";
|
|
55
|
+
export { RequestLocalPayment } from "./entities/RequestLocalPayment";
|
|
54
56
|
export { LocalsCompany } from "./views/LocalsCompany";
|
|
55
57
|
export { VerifyLocals } from "./views/VerifyLocals";
|
|
56
58
|
export { MasterNotifications } from "./views/MasterNotifications";
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ToppingImage = exports.ProductDate = exports.ProductSchedule = exports.CategoryDate = exports.Bank = exports.ServicePlan = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.Square = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
|
|
18
|
-
exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = exports.LocalsCompany = exports.RequestLocalHistory = exports.RequestLocal = exports.PartnerSession = void 0;
|
|
18
|
+
exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = exports.LocalsCompany = exports.RequestLocalPayment = exports.UserPaymentMethod = exports.RequestLocalHistory = exports.RequestLocal = exports.PartnerSession = void 0;
|
|
19
19
|
var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
|
|
20
20
|
Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
|
|
21
21
|
var Category_1 = require("./entities/Category");
|
|
@@ -122,6 +122,10 @@ var RequestLocal_1 = require("./entities/RequestLocal");
|
|
|
122
122
|
Object.defineProperty(exports, "RequestLocal", { enumerable: true, get: function () { return RequestLocal_1.RequestLocal; } });
|
|
123
123
|
var RequestLocalHistory_1 = require("./entities/RequestLocalHistory");
|
|
124
124
|
Object.defineProperty(exports, "RequestLocalHistory", { enumerable: true, get: function () { return RequestLocalHistory_1.RequestLocalHistory; } });
|
|
125
|
+
var UserPaymentMethod_1 = require("./entities/UserPaymentMethod");
|
|
126
|
+
Object.defineProperty(exports, "UserPaymentMethod", { enumerable: true, get: function () { return UserPaymentMethod_1.UserPaymentMethod; } });
|
|
127
|
+
var RequestLocalPayment_1 = require("./entities/RequestLocalPayment");
|
|
128
|
+
Object.defineProperty(exports, "RequestLocalPayment", { enumerable: true, get: function () { return RequestLocalPayment_1.RequestLocalPayment; } });
|
|
125
129
|
var LocalsCompany_1 = require("./views/LocalsCompany");
|
|
126
130
|
Object.defineProperty(exports, "LocalsCompany", { enumerable: true, get: function () { return LocalsCompany_1.LocalsCompany; } });
|
|
127
131
|
var VerifyLocals_1 = require("./views/VerifyLocals");
|
package/package.json
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
|
2
|
+
import { BusinessTypeProduct } from "./BusinessTypeProduct";
|
|
3
|
+
import { jsonTransformer } from "../transformers/jsonTransformer";
|
|
4
4
|
|
|
5
5
|
@Entity({
|
|
6
|
-
name:
|
|
6
|
+
name: "business_type",
|
|
7
7
|
comment:
|
|
8
|
-
|
|
8
|
+
"Almacenar los tipos de negocio qué se van a poder agregar en asumano.",
|
|
9
9
|
})
|
|
10
10
|
export class BusinessType {
|
|
11
11
|
@PrimaryGeneratedColumn({
|
|
12
|
-
comment:
|
|
12
|
+
comment: "Número de identificación (ID) único de cada registro.",
|
|
13
13
|
})
|
|
14
|
-
id: number
|
|
14
|
+
id: number;
|
|
15
15
|
|
|
16
|
-
@Column({ length: 50, comment:
|
|
17
|
-
name: string
|
|
16
|
+
@Column({ length: 50, comment: "Nombre del tipo de negocio." })
|
|
17
|
+
name: string;
|
|
18
18
|
|
|
19
19
|
@Column({
|
|
20
|
-
type:
|
|
20
|
+
type: "text",
|
|
21
21
|
nullable: true,
|
|
22
|
-
|
|
22
|
+
transformer: jsonTransformer,
|
|
23
|
+
comment: "Descripción del tipo de negocio.",
|
|
23
24
|
})
|
|
24
|
-
description: string
|
|
25
|
+
description: string | null;
|
|
25
26
|
|
|
26
27
|
@Column({
|
|
27
28
|
default: 1,
|
|
28
29
|
comment:
|
|
29
|
-
|
|
30
|
+
"Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|
|
30
31
|
})
|
|
31
|
-
status: number
|
|
32
|
+
status: number;
|
|
32
33
|
|
|
33
34
|
@OneToMany(
|
|
34
35
|
() => BusinessTypeProduct,
|
|
35
36
|
(businessTypeProduct) => businessTypeProduct.business_type
|
|
36
37
|
)
|
|
37
|
-
business_types_product: BusinessTypeProduct[]
|
|
38
|
+
business_types_product: BusinessTypeProduct[];
|
|
38
39
|
}
|
|
@@ -30,9 +30,10 @@ export class BusinessTypeProduct {
|
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
@JoinColumn({ name: "business_type" })
|
|
33
|
-
business_type: BusinessType;
|
|
33
|
+
business_type: BusinessType | null;
|
|
34
34
|
|
|
35
35
|
@Column({
|
|
36
|
+
type: "string",
|
|
36
37
|
length: 40,
|
|
37
38
|
comment:
|
|
38
39
|
"ID de la variable que se encuentra en los archivos `locales` para el multilenguaje.",
|
|
@@ -40,13 +41,15 @@ export class BusinessTypeProduct {
|
|
|
40
41
|
name: string;
|
|
41
42
|
|
|
42
43
|
@Column({
|
|
44
|
+
type: "string",
|
|
43
45
|
length: 500,
|
|
44
46
|
nullable: true,
|
|
45
47
|
comment: "Imagen para el tipo de comida.",
|
|
46
48
|
})
|
|
47
|
-
photo: string;
|
|
49
|
+
photo: string | null;
|
|
48
50
|
|
|
49
51
|
@Column({
|
|
52
|
+
type: "number",
|
|
50
53
|
default: 1,
|
|
51
54
|
comment:
|
|
52
55
|
"Estado del registro, es decir:\r\n1. Activo: Es visible en la plataforma.\r\n0. Inactivo: No será visible en la plataforma.",
|