@sigmatech/pergamo 0.1.133 → 0.1.138
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/political/political-party-leader-history.entity.d.ts +2 -2
- package/dist/entities/political/political-party-leader-history.entity.d.ts.map +1 -1
- package/dist/entities/political/political-party-leader-history.entity.js +6 -3
- package/dist/entities/political/political-party-leader-history.entity.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,9 +22,9 @@ export declare class PoliticalPartyLeaderHistory extends GlobalBase {
|
|
|
22
22
|
/** Cargo / role within the party (e.g. "Secretario General", "Presidente"). */
|
|
23
23
|
cargo: string;
|
|
24
24
|
/** Date the leader assumed the role. */
|
|
25
|
-
startDate:
|
|
25
|
+
startDate: Date;
|
|
26
26
|
/** Date the leader left the role. Null = currently active. */
|
|
27
|
-
endDate?:
|
|
27
|
+
endDate?: Date;
|
|
28
28
|
/** Why the tenure ended. */
|
|
29
29
|
endReason?: LeaderEndReason;
|
|
30
30
|
/** Quick flag: true for the single active leader record. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"political-party-leader-history.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/political/political-party-leader-history.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,oBAAY,eAAe;IACzB,QAAQ,aAAmB;IAC3B,QAAQ,aAAmB;IAC3B,aAAa,kBAAmB;IAChC,QAAQ,aAAmB;IAC3B,cAAc,mBAAmB;IACjC,IAAI,SAAmB;CACxB;AAED,
|
|
1
|
+
{"version":3,"file":"political-party-leader-history.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/political/political-party-leader-history.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,oBAAY,eAAe;IACzB,QAAQ,aAAmB;IAC3B,QAAQ,aAAmB;IAC3B,aAAa,kBAAmB;IAChC,QAAQ,aAAmB;IAC3B,cAAc,mBAAmB;IACjC,IAAI,SAAmB;CACxB;AAED,qBAKa,2BAA4B,SAAQ,UAAU;IAEzD,gBAAgB,EAAG,MAAM,CAAC;IAI1B,cAAc,EAAG,cAAc,CAAC;IAEhC,2EAA2E;IAE3E,cAAc,EAAG,MAAM,CAAC;IAExB,4DAA4D;IAE5D,UAAU,EAAG,MAAM,CAAC;IAEpB,uDAAuD;IAEvD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,kCAAkC;IAElC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,+EAA+E;IAE/E,KAAK,EAAG,MAAM,CAAC;IAEf,wCAAwC;IAExC,SAAS,EAAG,IAAI,CAAC;IAEjB,8DAA8D;IAE9D,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,4BAA4B;IAE5B,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B,4DAA4D;IAE5D,SAAS,EAAG,OAAO,CAAC;IAEpB,wDAAwD;IAExD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -56,11 +56,11 @@ __decorate([
|
|
|
56
56
|
], PoliticalPartyLeaderHistory.prototype, "cargo", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'date', name: 'start_date' }),
|
|
59
|
-
__metadata("design:type",
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
60
|
], PoliticalPartyLeaderHistory.prototype, "startDate", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.Column)({ type: 'date', name: 'end_date', nullable: true }),
|
|
63
|
-
__metadata("design:type",
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
64
|
], PoliticalPartyLeaderHistory.prototype, "endDate", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, typeorm_1.Column)({ type: 'enum', enum: LeaderEndReason, name: 'end_reason', nullable: true }),
|
|
@@ -71,12 +71,15 @@ __decorate([
|
|
|
71
71
|
__metadata("design:type", Boolean)
|
|
72
72
|
], PoliticalPartyLeaderHistory.prototype, "isCurrent", void 0);
|
|
73
73
|
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'text', name: 'notes', nullable: true }),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
76
|
], PoliticalPartyLeaderHistory.prototype, "notes", void 0);
|
|
77
77
|
exports.PoliticalPartyLeaderHistory = PoliticalPartyLeaderHistory = __decorate([
|
|
78
78
|
(0, typeorm_1.Entity)('political_party_leader_history'),
|
|
79
79
|
(0, typeorm_1.Index)('idx_pplh_party_current', ['politicalPartyId', 'isCurrent']),
|
|
80
80
|
(0, typeorm_1.Index)('idx_pplh_person', ['leaderPersonId'])
|
|
81
|
+
/** Partial unique index: at most one active leader per party at the DB level. */
|
|
82
|
+
,
|
|
83
|
+
(0, typeorm_1.Index)('uq_pplh_party_one_active', ['politicalPartyId'], { unique: true, where: '"is_current" = true' })
|
|
81
84
|
], PoliticalPartyLeaderHistory);
|
|
82
85
|
//# sourceMappingURL=political-party-leader-history.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"political-party-leader-history.entity.js","sourceRoot":"","sources":["../../../src/entities/political/political-party-leader-history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,uDAAkD;AAClD,qEAA0D;AAE1D,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,wCAA2B,CAAA;IAC3B,wCAA2B,CAAA;IAC3B,kDAAgC,CAAA;IAChC,wCAA2B,CAAA;IAC3B,oDAAiC,CAAA;IACjC,gCAAuB,CAAA;AACzB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;
|
|
1
|
+
{"version":3,"file":"political-party-leader-history.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6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.138",
|
|
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",
|