@sigmatech/pergamo 0.1.112 → 0.1.114
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.
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
2
|
import { PersonPoliticalParty } from './person-political-party.entity';
|
|
3
|
+
export declare enum Ideologia {
|
|
4
|
+
EXTREMA_IZQUIERDA = "Extrema izquierda",
|
|
5
|
+
IZQUIERDA = "Izquierda",
|
|
6
|
+
CENTROIZQUIERDA = "Centroizquierda",
|
|
7
|
+
CENTRO = "Centro",
|
|
8
|
+
CENTRODERECHA = "Centroderecha",
|
|
9
|
+
DERECHA = "Derecha",
|
|
10
|
+
EXTREMA_DERECHA = "Extrema derecha"
|
|
11
|
+
}
|
|
12
|
+
export declare enum Posicion {
|
|
13
|
+
OFICIALISMO = "Oficialismo",
|
|
14
|
+
OPOSICION = "Oposici\u00F3n"
|
|
15
|
+
}
|
|
3
16
|
export declare class PoliticalParty extends BaseEntity {
|
|
4
17
|
id: string;
|
|
5
18
|
name: string;
|
|
@@ -10,6 +23,9 @@ export declare class PoliticalParty extends BaseEntity {
|
|
|
10
23
|
headquarters?: string;
|
|
11
24
|
abbreviation?: string;
|
|
12
25
|
isActive: boolean;
|
|
26
|
+
ideologia?: Ideologia;
|
|
27
|
+
posicion?: Posicion;
|
|
28
|
+
inhabilitado: boolean;
|
|
13
29
|
personPoliticalParties: PersonPoliticalParty[];
|
|
14
30
|
}
|
|
15
31
|
//# sourceMappingURL=political-party.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"political-party.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/political/political-party.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,UAAU,EAEX,MAAM,SAAS,CAAC;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"political-party.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/political/political-party.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,UAAU,EAEX,MAAM,SAAS,CAAC;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,oBAAY,SAAS;IACnB,iBAAiB,sBAAsB;IACvC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,eAAe,oBAAoB;CACpC;AAED,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,SAAS,mBAAc;CACxB;AAEC,qBACa,cAAe,SAAQ,UAAU;IAE5C,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,eAAe,CAAC,EAAE,IAAI,CAAC;IAIvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,QAAQ,EAAG,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,YAAY,EAAG,OAAO,CAAC;IAGvB,sBAAsB,EAAG,oBAAoB,EAAE,CAAC;CACjD"}
|
|
@@ -9,9 +9,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PoliticalParty = void 0;
|
|
12
|
+
exports.PoliticalParty = exports.Posicion = exports.Ideologia = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const person_political_party_entity_1 = require("./person-political-party.entity");
|
|
15
|
+
var Ideologia;
|
|
16
|
+
(function (Ideologia) {
|
|
17
|
+
Ideologia["EXTREMA_IZQUIERDA"] = "Extrema izquierda";
|
|
18
|
+
Ideologia["IZQUIERDA"] = "Izquierda";
|
|
19
|
+
Ideologia["CENTROIZQUIERDA"] = "Centroizquierda";
|
|
20
|
+
Ideologia["CENTRO"] = "Centro";
|
|
21
|
+
Ideologia["CENTRODERECHA"] = "Centroderecha";
|
|
22
|
+
Ideologia["DERECHA"] = "Derecha";
|
|
23
|
+
Ideologia["EXTREMA_DERECHA"] = "Extrema derecha";
|
|
24
|
+
})(Ideologia || (exports.Ideologia = Ideologia = {}));
|
|
25
|
+
var Posicion;
|
|
26
|
+
(function (Posicion) {
|
|
27
|
+
Posicion["OFICIALISMO"] = "Oficialismo";
|
|
28
|
+
Posicion["OPOSICION"] = "Oposici\u00F3n";
|
|
29
|
+
})(Posicion || (exports.Posicion = Posicion = {}));
|
|
15
30
|
let PoliticalParty = class PoliticalParty extends typeorm_1.BaseEntity {
|
|
16
31
|
};
|
|
17
32
|
exports.PoliticalParty = PoliticalParty;
|
|
@@ -48,9 +63,21 @@ __decorate([
|
|
|
48
63
|
__metadata("design:type", String)
|
|
49
64
|
], PoliticalParty.prototype, "abbreviation", void 0);
|
|
50
65
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: "boolean", default: true,
|
|
66
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, name: 'is_active' }),
|
|
52
67
|
__metadata("design:type", Boolean)
|
|
53
68
|
], PoliticalParty.prototype, "isActive", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "enum", enum: Ideologia, nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PoliticalParty.prototype, "ideologia", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "enum", enum: Posicion, nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], PoliticalParty.prototype, "posicion", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, name: 'inhabilitado' }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], PoliticalParty.prototype, "inhabilitado", void 0);
|
|
54
81
|
__decorate([
|
|
55
82
|
(0, typeorm_1.OneToMany)(() => person_political_party_entity_1.PersonPoliticalParty, (personPoliticalParty) => personPoliticalParty.politicalParty),
|
|
56
83
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"political-party.entity.js","sourceRoot":"","sources":["../../../src/entities/political/political-party.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMmB;AACnB,mFAAuE;
|
|
1
|
+
{"version":3,"file":"political-party.entity.js","sourceRoot":"","sources":["../../../src/entities/political/political-party.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMmB;AACnB,mFAAuE;AAEvE,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,oCAAuB,CAAA;IACvB,gDAAmC,CAAA;IACnC,8BAAiB,CAAA;IACjB,4CAA+B,CAAA;IAC/B,gCAAmB,CAAA;IACnB,gDAAmC,CAAA;AACrC,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,wCAAuB,CAAA;AACzB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAGQ,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAU;CA0C7C,CAAA;AA1CY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;0CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CAC3C;AAGd;IADC,IAAA,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G,EAAE,CAAC,oDAAoB,EAAE,CAAC,oBAAoB,EAAE,EAAE,CAAC,oBAAoB,CAAC,cAAc,CAAC;;8DACrD;yBAzCrC,cAAc;IAD1B,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,cAAc,CA0C1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.114",
|
|
4
4
|
"description": "Shared TypeORM entities and utilities for Dataven intelligence system - Named after the ancient library of Pergamon",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|