test-entity-library-asm 1.6.4 → 1.6.6
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/Partner.js
CHANGED
|
@@ -19,7 +19,7 @@ var PartnerRole_1 = require("./PartnerRole");
|
|
|
19
19
|
var Terminal_1 = require("./Terminal");
|
|
20
20
|
var TerminalSession_1 = require("./TerminalSession");
|
|
21
21
|
var jsonTransformer = {
|
|
22
|
-
to: function (value) { return
|
|
22
|
+
to: function (value) { return value; },
|
|
23
23
|
from: function (value) { return JSON.parse(value); },
|
|
24
24
|
};
|
|
25
25
|
var Partner = /** @class */ (function () {
|
|
@@ -98,11 +98,12 @@ var Partner = /** @class */ (function () {
|
|
|
98
98
|
], Partner.prototype, "password", void 0);
|
|
99
99
|
__decorate([
|
|
100
100
|
(0, typeorm_1.Column)({
|
|
101
|
+
type: 'json',
|
|
101
102
|
nullable: true,
|
|
102
103
|
transformer: jsonTransformer,
|
|
103
104
|
comment: 'Campo de tipo JSON donde se guarda información necesaria para el registro.',
|
|
104
105
|
}),
|
|
105
|
-
__metadata("design:type",
|
|
106
|
+
__metadata("design:type", String)
|
|
106
107
|
], Partner.prototype, "profile", void 0);
|
|
107
108
|
__decorate([
|
|
108
109
|
(0, typeorm_1.Column)({
|
package/package.json
CHANGED
package/src/entities/Partner.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { Terminal } from './Terminal'
|
|
|
17
17
|
import { TerminalSession } from './TerminalSession'
|
|
18
18
|
|
|
19
19
|
const jsonTransformer = {
|
|
20
|
-
to: (value: any) =>
|
|
20
|
+
to: (value: any) => value,
|
|
21
21
|
from: (value: string) => JSON.parse(value),
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -87,12 +87,13 @@ export class Partner {
|
|
|
87
87
|
password: string
|
|
88
88
|
|
|
89
89
|
@Column({
|
|
90
|
+
type: 'json',
|
|
90
91
|
nullable: true,
|
|
91
92
|
transformer: jsonTransformer,
|
|
92
93
|
comment:
|
|
93
94
|
'Campo de tipo JSON donde se guarda información necesaria para el registro.',
|
|
94
95
|
})
|
|
95
|
-
profile:
|
|
96
|
+
profile: string
|
|
96
97
|
|
|
97
98
|
@Column({
|
|
98
99
|
default: 0,
|