test-entity-library-asm 3.9.56 → 3.9.57
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/Company.js +5 -11
- package/dist/entities/Country.d.ts +2 -2
- package/dist/entities/Country.js +7 -7
- package/dist/entities/DiscountCodeCompany.js +1 -4
- package/dist/entities/DiscountCodeUser.js +1 -3
- package/dist/entities/Local.js +6 -7
- package/dist/entities/LocalPlan.js +1 -3
- package/dist/entities/Master.js +1 -3
- package/dist/entities/MasterNotification.js +1 -3
- package/dist/entities/Partner.js +1 -3
- package/dist/entities/PartnerNotification.js +1 -3
- package/dist/entities/PaymentMethod.js +1 -3
- package/dist/entities/Plan.js +1 -3
- package/dist/entities/Square.js +1 -3
- package/dist/entities/User.js +1 -3
- package/dist/views/DiscountsCodeUser.js +2 -15
- package/dist/views/LocalReserves.js +2 -15
- package/dist/views/LocalsCompanyInformationForTheMap.js +10 -22
- package/dist/views/LocalsCompanyInformationForTheTable.d.ts +2 -2
- package/dist/views/LocalsCompanyInformationForTheTable.js +16 -28
- package/dist/views/MasterNotifications.js +5 -10
- package/dist/views/PartnerNotifications.js +3 -8
- package/dist/views/Partners.js +2 -15
- package/dist/views/ViewLocalsCompanies.js +1 -6
- package/package.json +1 -1
- package/src/entities/Company.ts +5 -11
- package/src/entities/Country.ts +9 -9
- package/src/entities/DiscountCodeCompany.ts +1 -4
- package/src/entities/DiscountCodeUser.ts +1 -3
- package/src/entities/Local.ts +7 -9
- package/src/entities/LocalPlan.ts +1 -3
- package/src/entities/Master.ts +2 -4
- package/src/entities/MasterNotification.ts +1 -3
- package/src/entities/Partner.ts +1 -3
- package/src/entities/PartnerNotification.ts +1 -3
- package/src/entities/PaymentMethod.ts +1 -3
- package/src/entities/Plan.ts +1 -3
- package/src/entities/Square.ts +1 -3
- package/src/entities/User.ts +1 -3
- package/src/views/DiscountsCodeUser.ts +2 -16
- package/src/views/LocalReserves.ts +2 -15
- package/src/views/LocalsCompanyInformationForTheMap.ts +10 -22
- package/src/views/LocalsCompanyInformationForTheTable.ts +17 -29
- package/src/views/MasterNotifications.ts +5 -11
- package/src/views/PartnerNotifications.ts +3 -9
- package/src/views/Partners.ts +2 -15
- package/src/views/ViewLocalsCompanies.ts +1 -7
package/dist/entities/Company.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Company = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const City_1 = require("./City");
|
|
17
16
|
const CodeRedemptionHistoryCompany_1 = require("./CodeRedemptionHistoryCompany");
|
|
18
17
|
const DiscountCodeUser_1 = require("./DiscountCodeUser");
|
|
@@ -62,50 +61,45 @@ __decorate([
|
|
|
62
61
|
], Company.prototype, "partner", void 0);
|
|
63
62
|
__decorate([
|
|
64
63
|
(0, typeorm_1.Column)({
|
|
65
|
-
type: "
|
|
64
|
+
type: "json",
|
|
66
65
|
nullable: true,
|
|
67
66
|
default: null,
|
|
68
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
69
67
|
comment: "Campo de tipo JSON donde se guarda información necesaria para la empresa.",
|
|
70
68
|
}),
|
|
71
69
|
__metadata("design:type", Object)
|
|
72
70
|
], Company.prototype, "profile", void 0);
|
|
73
71
|
__decorate([
|
|
74
72
|
(0, typeorm_1.Column)({
|
|
75
|
-
type: "
|
|
73
|
+
type: "json",
|
|
76
74
|
nullable: true,
|
|
77
75
|
default: null,
|
|
78
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
79
76
|
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.",
|
|
80
77
|
}),
|
|
81
78
|
__metadata("design:type", Object)
|
|
82
79
|
], Company.prototype, "contact_details", void 0);
|
|
83
80
|
__decorate([
|
|
84
81
|
(0, typeorm_1.Column)({
|
|
85
|
-
type: "
|
|
82
|
+
type: "json",
|
|
86
83
|
nullable: true,
|
|
87
84
|
default: null,
|
|
88
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
89
85
|
comment: "Información de tipo JSON donde se guarda la información legal de la empresa.",
|
|
90
86
|
}),
|
|
91
87
|
__metadata("design:type", Object)
|
|
92
88
|
], Company.prototype, "legal_information", void 0);
|
|
93
89
|
__decorate([
|
|
94
90
|
(0, typeorm_1.Column)({
|
|
95
|
-
type: "
|
|
91
|
+
type: "json",
|
|
96
92
|
nullable: true,
|
|
97
93
|
default: null,
|
|
98
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
99
94
|
comment: "Información de tipo JSON donde se guarda la información del representante legal del representante.",
|
|
100
95
|
}),
|
|
101
96
|
__metadata("design:type", Object)
|
|
102
97
|
], Company.prototype, "legal_agent", void 0);
|
|
103
98
|
__decorate([
|
|
104
99
|
(0, typeorm_1.Column)({
|
|
105
|
-
type: "
|
|
100
|
+
type: "json",
|
|
106
101
|
nullable: true,
|
|
107
102
|
default: null,
|
|
108
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
109
103
|
comment: "Configuración de la empresa.",
|
|
110
104
|
}),
|
|
111
105
|
__metadata("design:type", Object)
|
|
@@ -7,8 +7,8 @@ export declare class Country {
|
|
|
7
7
|
currency: string;
|
|
8
8
|
prefix: string;
|
|
9
9
|
structure_phone: string;
|
|
10
|
-
legal_information: any;
|
|
11
|
-
legal_agent: any;
|
|
10
|
+
legal_information: any | null;
|
|
11
|
+
legal_agent: any | null;
|
|
12
12
|
details: any | null;
|
|
13
13
|
status: number;
|
|
14
14
|
regions: Region[];
|
package/dist/entities/Country.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Country = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const Region_1 = require("./Region");
|
|
17
16
|
let Country = class Country {
|
|
18
17
|
};
|
|
@@ -58,26 +57,27 @@ __decorate([
|
|
|
58
57
|
], Country.prototype, "structure_phone", void 0);
|
|
59
58
|
__decorate([
|
|
60
59
|
(0, typeorm_1.Column)({
|
|
61
|
-
type: "
|
|
62
|
-
|
|
60
|
+
type: "json",
|
|
61
|
+
nullable: true,
|
|
62
|
+
default: null,
|
|
63
63
|
comment: "Esta columna de tipo JSON nos sirve para agregar toda la información que se necesita a nivel de información legal de la empresa que se registre, ya que para cada país cambia la información.",
|
|
64
64
|
}),
|
|
65
65
|
__metadata("design:type", Object)
|
|
66
66
|
], Country.prototype, "legal_information", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
(0, typeorm_1.Column)({
|
|
69
|
-
type: "
|
|
70
|
-
|
|
69
|
+
type: "json",
|
|
70
|
+
nullable: true,
|
|
71
|
+
default: null,
|
|
71
72
|
comment: "Columna de tipo JSON para almacenar la información que se necesita para la información del representante legal de la empresa.",
|
|
72
73
|
}),
|
|
73
74
|
__metadata("design:type", Object)
|
|
74
75
|
], Country.prototype, "legal_agent", void 0);
|
|
75
76
|
__decorate([
|
|
76
77
|
(0, typeorm_1.Column)({
|
|
77
|
-
type: "
|
|
78
|
+
type: "json",
|
|
78
79
|
nullable: true,
|
|
79
80
|
default: null,
|
|
80
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
81
81
|
comment: "Columna de tipo JSON para almacenar información adicional sobre el país.",
|
|
82
82
|
}),
|
|
83
83
|
__metadata("design:type", Object)
|
|
@@ -11,10 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DiscountCodeCompany = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
15
14
|
const CodeRedemptionHistoryCompany_1 = require("./CodeRedemptionHistoryCompany");
|
|
16
15
|
const Master_1 = require("./Master");
|
|
17
|
-
// import { ServiceDiscountsPlan } from "./ServiceDiscountsPlan";
|
|
18
16
|
let DiscountCodeCompany = class DiscountCodeCompany {
|
|
19
17
|
};
|
|
20
18
|
exports.DiscountCodeCompany = DiscountCodeCompany;
|
|
@@ -88,8 +86,7 @@ __decorate([
|
|
|
88
86
|
], DiscountCodeCompany.prototype, "expiration", void 0);
|
|
89
87
|
__decorate([
|
|
90
88
|
(0, typeorm_1.Column)({
|
|
91
|
-
type: "
|
|
92
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
89
|
+
type: "json",
|
|
93
90
|
nullable: true,
|
|
94
91
|
default: null,
|
|
95
92
|
comment: "Columna de tipos JSON para agregar en un arreglo los días que se pueden repetir el descuento.",
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.DiscountCodeUser = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
17
16
|
const Company_1 = require("./Company");
|
|
18
17
|
const Partner_1 = require("./Partner");
|
|
@@ -107,8 +106,7 @@ __decorate([
|
|
|
107
106
|
], DiscountCodeUser.prototype, "expiration", void 0);
|
|
108
107
|
__decorate([
|
|
109
108
|
(0, typeorm_1.Column)({
|
|
110
|
-
type: "
|
|
111
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
109
|
+
type: "json",
|
|
112
110
|
nullable: true,
|
|
113
111
|
default: null,
|
|
114
112
|
comment: "Columna de tipos JSON para agregar en un arreglo los días que se pueden repetir el descuento.",
|
package/dist/entities/Local.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Local = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const BusinessTypeProduct_1 = require("./BusinessTypeProduct");
|
|
17
16
|
const Category_1 = require("./Category");
|
|
18
17
|
const City_1 = require("./City");
|
|
@@ -75,10 +74,10 @@ __decorate([
|
|
|
75
74
|
], Local.prototype, "longitude", void 0);
|
|
76
75
|
__decorate([
|
|
77
76
|
(0, typeorm_1.Column)({
|
|
78
|
-
type: "
|
|
77
|
+
type: "json",
|
|
79
78
|
nullable: true,
|
|
80
79
|
default: null,
|
|
81
|
-
transformer:
|
|
80
|
+
// transformer: jsonTransformer,
|
|
82
81
|
comment: "Campo de tipo JSON por si es necesario agregar información adicional",
|
|
83
82
|
}),
|
|
84
83
|
__metadata("design:type", Object)
|
|
@@ -131,10 +130,10 @@ __decorate([
|
|
|
131
130
|
], Local.prototype, "pos_system", void 0);
|
|
132
131
|
__decorate([
|
|
133
132
|
(0, typeorm_1.Column)({
|
|
134
|
-
type: "
|
|
133
|
+
type: "json",
|
|
135
134
|
nullable: true,
|
|
136
135
|
default: null,
|
|
137
|
-
transformer:
|
|
136
|
+
// transformer: jsonTransformer,
|
|
138
137
|
comment: "Campo de tipo JSON por si es necesario agregar información adicional",
|
|
139
138
|
}),
|
|
140
139
|
__metadata("design:type", Object)
|
|
@@ -168,10 +167,10 @@ __decorate([
|
|
|
168
167
|
], Local.prototype, "operation_status", void 0);
|
|
169
168
|
__decorate([
|
|
170
169
|
(0, typeorm_1.Column)({
|
|
171
|
-
type: "
|
|
170
|
+
type: "json",
|
|
172
171
|
nullable: true,
|
|
173
172
|
default: null,
|
|
174
|
-
transformer:
|
|
173
|
+
// transformer: jsonTransformer,
|
|
175
174
|
}),
|
|
176
175
|
__metadata("design:type", Object)
|
|
177
176
|
], Local.prototype, "contact_details", void 0);
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LocalPlan = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
let LocalPlan = class LocalPlan {
|
|
17
16
|
};
|
|
18
17
|
exports.LocalPlan = LocalPlan;
|
|
@@ -59,10 +58,9 @@ __decorate([
|
|
|
59
58
|
], LocalPlan.prototype, "price", void 0);
|
|
60
59
|
__decorate([
|
|
61
60
|
(0, typeorm_1.Column)({
|
|
62
|
-
type: "
|
|
61
|
+
type: "json",
|
|
63
62
|
nullable: true,
|
|
64
63
|
default: null,
|
|
65
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
66
64
|
comment: "Por si necesitamos agregar más elementos a la tabla. \n\nEsto se comporta como un Objeto guardado en la columna.",
|
|
67
65
|
}),
|
|
68
66
|
__metadata("design:type", Object)
|
package/dist/entities/Master.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Master = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const City_1 = require("./City");
|
|
17
16
|
const DiscountCodeCompany_1 = require("./DiscountCodeCompany");
|
|
18
17
|
const MasterRole_1 = require("./MasterRole");
|
|
@@ -114,10 +113,9 @@ __decorate([
|
|
|
114
113
|
], Master.prototype, "google_id", void 0);
|
|
115
114
|
__decorate([
|
|
116
115
|
(0, typeorm_1.Column)({
|
|
117
|
-
type: "
|
|
116
|
+
type: "json",
|
|
118
117
|
nullable: true,
|
|
119
118
|
default: null,
|
|
120
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
121
119
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
122
120
|
}),
|
|
123
121
|
__metadata("design:type", Object)
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MasterNotification = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
let MasterNotification = class MasterNotification {
|
|
17
16
|
};
|
|
18
17
|
exports.MasterNotification = MasterNotification;
|
|
@@ -61,10 +60,9 @@ __decorate([
|
|
|
61
60
|
], MasterNotification.prototype, "description", void 0);
|
|
62
61
|
__decorate([
|
|
63
62
|
(0, typeorm_1.Column)({
|
|
64
|
-
type: "
|
|
63
|
+
type: "json",
|
|
65
64
|
nullable: true,
|
|
66
65
|
default: null,
|
|
67
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
68
66
|
comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
|
|
69
67
|
}),
|
|
70
68
|
__metadata("design:type", Object)
|
package/dist/entities/Partner.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Partner = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const City_1 = require("./City");
|
|
17
16
|
const Company_1 = require("./Company");
|
|
18
17
|
const DiscountCodeUser_1 = require("./DiscountCodeUser");
|
|
@@ -127,10 +126,9 @@ __decorate([
|
|
|
127
126
|
], Partner.prototype, "google_id", void 0);
|
|
128
127
|
__decorate([
|
|
129
128
|
(0, typeorm_1.Column)({
|
|
130
|
-
type: "
|
|
129
|
+
type: "json",
|
|
131
130
|
nullable: true,
|
|
132
131
|
default: null,
|
|
133
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
134
132
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
135
133
|
}),
|
|
136
134
|
__metadata("design:type", Object)
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PartnerNotification = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const Partner_1 = require("./Partner");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const Master_1 = require("./Master");
|
|
17
16
|
let PartnerNotification = class PartnerNotification {
|
|
18
17
|
};
|
|
@@ -62,10 +61,9 @@ __decorate([
|
|
|
62
61
|
], PartnerNotification.prototype, "description", void 0);
|
|
63
62
|
__decorate([
|
|
64
63
|
(0, typeorm_1.Column)({
|
|
65
|
-
type: "
|
|
64
|
+
type: "json",
|
|
66
65
|
nullable: true,
|
|
67
66
|
default: null,
|
|
68
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
69
67
|
comment: "Configuración adicional de la notificación, como enlaces, qué hace después de darle click...",
|
|
70
68
|
}),
|
|
71
69
|
__metadata("design:type", Object)
|
|
@@ -13,7 +13,6 @@ exports.PaymentMethod = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
15
|
const Local_1 = require("./Local");
|
|
16
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
17
16
|
let PaymentMethod = class PaymentMethod {
|
|
18
17
|
};
|
|
19
18
|
exports.PaymentMethod = PaymentMethod;
|
|
@@ -44,8 +43,7 @@ __decorate([
|
|
|
44
43
|
], PaymentMethod.prototype, "description", void 0);
|
|
45
44
|
__decorate([
|
|
46
45
|
(0, typeorm_1.Column)({
|
|
47
|
-
type: "
|
|
48
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
46
|
+
type: "json",
|
|
49
47
|
nullable: true,
|
|
50
48
|
default: null,
|
|
51
49
|
comment: "Campo de tipo JSON donde se pueden agregar columnas u otros elementos que sean necesarios.",
|
package/dist/entities/Plan.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Plan = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const Company_1 = require("./Company");
|
|
17
16
|
let Plan = class Plan {
|
|
18
17
|
};
|
|
@@ -51,8 +50,7 @@ __decorate([
|
|
|
51
50
|
], Plan.prototype, "name", void 0);
|
|
52
51
|
__decorate([
|
|
53
52
|
(0, typeorm_1.Column)({
|
|
54
|
-
type: "
|
|
55
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
53
|
+
type: "json",
|
|
56
54
|
nullable: true,
|
|
57
55
|
default: null,
|
|
58
56
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el plan",
|
package/dist/entities/Square.js
CHANGED
|
@@ -14,7 +14,6 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const City_1 = require("./City");
|
|
15
15
|
const Local_1 = require("./Local");
|
|
16
16
|
const User_1 = require("./User");
|
|
17
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
18
17
|
let Square = class Square {
|
|
19
18
|
};
|
|
20
19
|
exports.Square = Square;
|
|
@@ -73,10 +72,9 @@ __decorate([
|
|
|
73
72
|
], Square.prototype, "longitude", void 0);
|
|
74
73
|
__decorate([
|
|
75
74
|
(0, typeorm_1.Column)({
|
|
76
|
-
type: "
|
|
75
|
+
type: "json",
|
|
77
76
|
nullable: true,
|
|
78
77
|
default: null,
|
|
79
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
80
78
|
comment: "Campo de tipo JSON por si se llega a necesitar agregar otras columnas para las plazoletas de los centros comerciales.",
|
|
81
79
|
}),
|
|
82
80
|
__metadata("design:type", Object)
|
package/dist/entities/User.js
CHANGED
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.User = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const __1 = require("..");
|
|
15
|
-
const jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
16
15
|
const City_1 = require("./City");
|
|
17
16
|
const CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
18
17
|
const Local_1 = require("./Local");
|
|
@@ -95,10 +94,9 @@ __decorate([
|
|
|
95
94
|
], User.prototype, "password", void 0);
|
|
96
95
|
__decorate([
|
|
97
96
|
(0, typeorm_1.Column)({
|
|
98
|
-
type: "
|
|
97
|
+
type: "json",
|
|
99
98
|
nullable: true,
|
|
100
99
|
default: null,
|
|
101
|
-
transformer: jsonTransformer_1.jsonTransformer,
|
|
102
100
|
comment: "Campo de tipo JSON donde se guarda información necesaria para el registro.",
|
|
103
101
|
}),
|
|
104
102
|
__metadata("design:type", Object)
|
|
@@ -11,19 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DiscountsCodeUser = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
// JSON Transformer
|
|
15
|
-
const jsonTransformer = {
|
|
16
|
-
to: (value) => JSON.stringify(value),
|
|
17
|
-
from: (value) => {
|
|
18
|
-
try {
|
|
19
|
-
return JSON.parse(value);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
console.log(error, "Transformer error");
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
14
|
let DiscountsCodeUser = class DiscountsCodeUser {
|
|
28
15
|
};
|
|
29
16
|
exports.DiscountsCodeUser = DiscountsCodeUser;
|
|
@@ -72,7 +59,7 @@ __decorate([
|
|
|
72
59
|
__metadata("design:type", String)
|
|
73
60
|
], DiscountsCodeUser.prototype, "expiration", void 0);
|
|
74
61
|
__decorate([
|
|
75
|
-
(0, typeorm_1.ViewColumn)(
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
76
63
|
__metadata("design:type", Object)
|
|
77
64
|
], DiscountsCodeUser.prototype, "repeat_days", void 0);
|
|
78
65
|
__decorate([
|
|
@@ -120,7 +107,7 @@ __decorate([
|
|
|
120
107
|
__metadata("design:type", String)
|
|
121
108
|
], DiscountsCodeUser.prototype, "partner_surname", void 0);
|
|
122
109
|
__decorate([
|
|
123
|
-
(0, typeorm_1.ViewColumn)(
|
|
110
|
+
(0, typeorm_1.ViewColumn)(),
|
|
124
111
|
__metadata("design:type", Object)
|
|
125
112
|
], DiscountsCodeUser.prototype, "partner_profile", void 0);
|
|
126
113
|
__decorate([
|
|
@@ -11,19 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalReserves = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
// JSON Transformer
|
|
15
|
-
const jsonTransformer = {
|
|
16
|
-
to: (value) => JSON.stringify(value),
|
|
17
|
-
from: (value) => {
|
|
18
|
-
try {
|
|
19
|
-
return JSON.parse(value);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
console.log(error, "Transformer error");
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
14
|
let LocalReserves = class LocalReserves {
|
|
28
15
|
};
|
|
29
16
|
exports.LocalReserves = LocalReserves;
|
|
@@ -240,7 +227,7 @@ __decorate([
|
|
|
240
227
|
__metadata("design:type", Object)
|
|
241
228
|
], LocalReserves.prototype, "partner_email", void 0);
|
|
242
229
|
__decorate([
|
|
243
|
-
(0, typeorm_1.ViewColumn)(
|
|
230
|
+
(0, typeorm_1.ViewColumn)(),
|
|
244
231
|
__metadata("design:type", Object)
|
|
245
232
|
], LocalReserves.prototype, "partner_profile", void 0);
|
|
246
233
|
__decorate([
|
|
@@ -280,7 +267,7 @@ __decorate([
|
|
|
280
267
|
__metadata("design:type", Object)
|
|
281
268
|
], LocalReserves.prototype, "user_table_phone", void 0);
|
|
282
269
|
__decorate([
|
|
283
|
-
(0, typeorm_1.ViewColumn)(
|
|
270
|
+
(0, typeorm_1.ViewColumn)(),
|
|
284
271
|
__metadata("design:type", Object)
|
|
285
272
|
], LocalReserves.prototype, "user_table_profile", void 0);
|
|
286
273
|
__decorate([
|
|
@@ -11,18 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalsCompanyInformationForTheMap = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const jsonTransformer = {
|
|
15
|
-
to: (value) => JSON.stringify(value),
|
|
16
|
-
from: (value) => {
|
|
17
|
-
try {
|
|
18
|
-
return JSON.parse(value);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
console.log(error, "Transformer error");
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
14
|
let LocalsCompanyInformationForTheMap = class LocalsCompanyInformationForTheMap {
|
|
27
15
|
};
|
|
28
16
|
exports.LocalsCompanyInformationForTheMap = LocalsCompanyInformationForTheMap;
|
|
@@ -55,7 +43,7 @@ __decorate([
|
|
|
55
43
|
__metadata("design:type", Number)
|
|
56
44
|
], LocalsCompanyInformationForTheMap.prototype, "longitude", void 0);
|
|
57
45
|
__decorate([
|
|
58
|
-
(0, typeorm_1.ViewColumn)(
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
59
47
|
__metadata("design:type", Object)
|
|
60
48
|
], LocalsCompanyInformationForTheMap.prototype, "details", void 0);
|
|
61
49
|
__decorate([
|
|
@@ -79,7 +67,7 @@ __decorate([
|
|
|
79
67
|
__metadata("design:type", Number)
|
|
80
68
|
], LocalsCompanyInformationForTheMap.prototype, "pos_system", void 0);
|
|
81
69
|
__decorate([
|
|
82
|
-
(0, typeorm_1.ViewColumn)(
|
|
70
|
+
(0, typeorm_1.ViewColumn)(),
|
|
83
71
|
__metadata("design:type", Object)
|
|
84
72
|
], LocalsCompanyInformationForTheMap.prototype, "pos_system_settings", void 0);
|
|
85
73
|
__decorate([
|
|
@@ -91,7 +79,7 @@ __decorate([
|
|
|
91
79
|
__metadata("design:type", Number)
|
|
92
80
|
], LocalsCompanyInformationForTheMap.prototype, "visible", void 0);
|
|
93
81
|
__decorate([
|
|
94
|
-
(0, typeorm_1.ViewColumn)(
|
|
82
|
+
(0, typeorm_1.ViewColumn)(),
|
|
95
83
|
__metadata("design:type", Object)
|
|
96
84
|
], LocalsCompanyInformationForTheMap.prototype, "contact_details", void 0);
|
|
97
85
|
__decorate([
|
|
@@ -107,15 +95,15 @@ __decorate([
|
|
|
107
95
|
__metadata("design:type", Number)
|
|
108
96
|
], LocalsCompanyInformationForTheMap.prototype, "company_partner", void 0);
|
|
109
97
|
__decorate([
|
|
110
|
-
(0, typeorm_1.ViewColumn)(
|
|
98
|
+
(0, typeorm_1.ViewColumn)(),
|
|
111
99
|
__metadata("design:type", Object)
|
|
112
100
|
], LocalsCompanyInformationForTheMap.prototype, "company_profile", void 0);
|
|
113
101
|
__decorate([
|
|
114
|
-
(0, typeorm_1.ViewColumn)(
|
|
102
|
+
(0, typeorm_1.ViewColumn)(),
|
|
115
103
|
__metadata("design:type", Object)
|
|
116
104
|
], LocalsCompanyInformationForTheMap.prototype, "company_contact_details", void 0);
|
|
117
105
|
__decorate([
|
|
118
|
-
(0, typeorm_1.ViewColumn)(
|
|
106
|
+
(0, typeorm_1.ViewColumn)(),
|
|
119
107
|
__metadata("design:type", Object)
|
|
120
108
|
], LocalsCompanyInformationForTheMap.prototype, "company_settings", void 0);
|
|
121
109
|
__decorate([
|
|
@@ -167,7 +155,7 @@ __decorate([
|
|
|
167
155
|
__metadata("design:type", Number)
|
|
168
156
|
], LocalsCompanyInformationForTheMap.prototype, "square_longitude", void 0);
|
|
169
157
|
__decorate([
|
|
170
|
-
(0, typeorm_1.ViewColumn)(
|
|
158
|
+
(0, typeorm_1.ViewColumn)(),
|
|
171
159
|
__metadata("design:type", Object)
|
|
172
160
|
], LocalsCompanyInformationForTheMap.prototype, "square_details", void 0);
|
|
173
161
|
__decorate([
|
|
@@ -227,7 +215,7 @@ __decorate([
|
|
|
227
215
|
__metadata("design:type", String)
|
|
228
216
|
], LocalsCompanyInformationForTheMap.prototype, "country_structure_phone", void 0);
|
|
229
217
|
__decorate([
|
|
230
|
-
(0, typeorm_1.ViewColumn)(
|
|
218
|
+
(0, typeorm_1.ViewColumn)(),
|
|
231
219
|
__metadata("design:type", Object)
|
|
232
220
|
], LocalsCompanyInformationForTheMap.prototype, "country_legal_information", void 0);
|
|
233
221
|
__decorate([
|
|
@@ -235,7 +223,7 @@ __decorate([
|
|
|
235
223
|
__metadata("design:type", String)
|
|
236
224
|
], LocalsCompanyInformationForTheMap.prototype, "country_legal_agent", void 0);
|
|
237
225
|
__decorate([
|
|
238
|
-
(0, typeorm_1.ViewColumn)(
|
|
226
|
+
(0, typeorm_1.ViewColumn)(),
|
|
239
227
|
__metadata("design:type", Object)
|
|
240
228
|
], LocalsCompanyInformationForTheMap.prototype, "country_details", void 0);
|
|
241
229
|
__decorate([
|
|
@@ -271,7 +259,7 @@ __decorate([
|
|
|
271
259
|
__metadata("design:type", String)
|
|
272
260
|
], LocalsCompanyInformationForTheMap.prototype, "partner_address", void 0);
|
|
273
261
|
__decorate([
|
|
274
|
-
(0, typeorm_1.ViewColumn)(
|
|
262
|
+
(0, typeorm_1.ViewColumn)(),
|
|
275
263
|
__metadata("design:type", Object)
|
|
276
264
|
], LocalsCompanyInformationForTheMap.prototype, "partner_profile", void 0);
|
|
277
265
|
__decorate([
|
|
@@ -37,7 +37,7 @@ export declare class LocalsCompanyInformationForTheTable {
|
|
|
37
37
|
company_partner: number;
|
|
38
38
|
company_contact_details: any | null;
|
|
39
39
|
company_profile: any | null;
|
|
40
|
-
company_legal_agent:
|
|
40
|
+
company_legal_agent: any | null;
|
|
41
41
|
company_legal_information: any | null;
|
|
42
42
|
company_settings: any | null;
|
|
43
43
|
city_id: number;
|
|
@@ -53,7 +53,7 @@ export declare class LocalsCompanyInformationForTheTable {
|
|
|
53
53
|
country_name: string;
|
|
54
54
|
country_currency: string;
|
|
55
55
|
country_details: any | null;
|
|
56
|
-
country_legal_agent:
|
|
56
|
+
country_legal_agent: any | null;
|
|
57
57
|
country_legal_information: any | null;
|
|
58
58
|
country_prefix: string;
|
|
59
59
|
country_status: number;
|