@sigmatech/pergamo 0.1.119 → 0.1.120
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/organization-member/organization-member.entity.d.ts +11 -11
- package/dist/entities/organization-member/organization-member.entity.d.ts.map +1 -1
- package/dist/entities/organization-member/organization-member.entity.js +14 -10
- package/dist/entities/organization-member/organization-member.entity.js.map +1 -1
- package/package.json +8 -9
|
@@ -2,28 +2,28 @@ import { GlobalBase } from '../base/_global-base';
|
|
|
2
2
|
import { IllicitOrganization } from '../illicit-organization/illicit-organization.entity';
|
|
3
3
|
import { MemberRole, MemberStatus } from './organization-member.enums';
|
|
4
4
|
/**
|
|
5
|
-
* OrganizationMember — Links a
|
|
5
|
+
* OrganizationMember — Links a Person (identified in the onfalo system) to an
|
|
6
6
|
* illicit organization, recording their role, status, and any available
|
|
7
|
-
* intelligence notes.
|
|
8
|
-
*
|
|
7
|
+
* intelligence notes.
|
|
8
|
+
*
|
|
9
|
+
* personId is required — members must be formally identified persons in the
|
|
10
|
+
* system. fullName and cedula are stored as a snapshot for display purposes
|
|
11
|
+
* without requiring a re-fetch of the Person entity.
|
|
9
12
|
*/
|
|
10
13
|
export declare class OrganizationMember extends GlobalBase {
|
|
11
14
|
organization: IllicitOrganization;
|
|
12
15
|
organizationId: string;
|
|
13
|
-
/**
|
|
16
|
+
/** UUID of the Person entity in onfalo (required — member must be a known person). */
|
|
17
|
+
personId: string;
|
|
18
|
+
/** Snapshot of the person's full name at the time of registration. */
|
|
14
19
|
fullName: string;
|
|
15
|
-
/**
|
|
16
|
-
|
|
20
|
+
/** Snapshot of the person's cédula (e.g. "V-12345678"). */
|
|
21
|
+
cedula?: string;
|
|
17
22
|
/** Role within the organization. */
|
|
18
23
|
role: MemberRole;
|
|
19
24
|
/** Current operational status of this member. */
|
|
20
25
|
memberStatus: MemberStatus;
|
|
21
26
|
/** Free-text intelligence notes about this member. */
|
|
22
27
|
notes?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Optional reference to a Person entity when the member has been
|
|
25
|
-
* formally identified in the system.
|
|
26
|
-
*/
|
|
27
|
-
personId?: string;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=organization-member.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-member.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/organization-member/organization-member.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"organization-member.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/organization-member/organization-member.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;;;;GAQG;AACH,qBAKa,kBAAmB,SAAQ,UAAU;IAGhD,YAAY,EAAG,mBAAmB,CAAC;IAGnC,cAAc,EAAG,MAAM,CAAC;IAExB,sFAAsF;IAEtF,QAAQ,EAAG,MAAM,CAAC;IAElB,sEAAsE;IAEtE,QAAQ,EAAG,MAAM,CAAC;IAElB,2DAA2D;IAE3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,oCAAoC;IAEpC,IAAI,EAAG,UAAU,CAAC;IAElB,iDAAiD;IAEjD,YAAY,EAAG,YAAY,CAAC;IAE5B,sDAAsD;IAEtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -15,10 +15,13 @@ const _global_base_1 = require("../base/_global-base");
|
|
|
15
15
|
const illicit_organization_entity_1 = require("../illicit-organization/illicit-organization.entity");
|
|
16
16
|
const organization_member_enums_1 = require("./organization-member.enums");
|
|
17
17
|
/**
|
|
18
|
-
* OrganizationMember — Links a
|
|
18
|
+
* OrganizationMember — Links a Person (identified in the onfalo system) to an
|
|
19
19
|
* illicit organization, recording their role, status, and any available
|
|
20
|
-
* intelligence notes.
|
|
21
|
-
*
|
|
20
|
+
* intelligence notes.
|
|
21
|
+
*
|
|
22
|
+
* personId is required — members must be formally identified persons in the
|
|
23
|
+
* system. fullName and cedula are stored as a snapshot for display purposes
|
|
24
|
+
* without requiring a re-fetch of the Person entity.
|
|
22
25
|
*/
|
|
23
26
|
let OrganizationMember = class OrganizationMember extends _global_base_1.GlobalBase {
|
|
24
27
|
};
|
|
@@ -33,13 +36,17 @@ __decorate([
|
|
|
33
36
|
__metadata("design:type", String)
|
|
34
37
|
], OrganizationMember.prototype, "organizationId", void 0);
|
|
35
38
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: '
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'uuid', name: 'person_id' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], OrganizationMember.prototype, "personId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'full_name' }),
|
|
37
44
|
__metadata("design:type", String)
|
|
38
45
|
], OrganizationMember.prototype, "fullName", void 0);
|
|
39
46
|
__decorate([
|
|
40
47
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
41
48
|
__metadata("design:type", String)
|
|
42
|
-
], OrganizationMember.prototype, "
|
|
49
|
+
], OrganizationMember.prototype, "cedula", void 0);
|
|
43
50
|
__decorate([
|
|
44
51
|
(0, typeorm_1.Column)({ type: 'enum', enum: organization_member_enums_1.MemberRole, default: organization_member_enums_1.MemberRole.UNKNOWN }),
|
|
45
52
|
__metadata("design:type", String)
|
|
@@ -52,14 +59,11 @@ __decorate([
|
|
|
52
59
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
53
60
|
__metadata("design:type", String)
|
|
54
61
|
], OrganizationMember.prototype, "notes", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'uuid', nullable: true, name: 'person_id' }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], OrganizationMember.prototype, "personId", void 0);
|
|
59
62
|
exports.OrganizationMember = OrganizationMember = __decorate([
|
|
60
63
|
(0, typeorm_1.Entity)({ name: 'organization_member' }),
|
|
61
64
|
(0, typeorm_1.Index)('idx_org_member_org', ['organizationId']),
|
|
62
65
|
(0, typeorm_1.Index)('idx_org_member_role', ['role']),
|
|
63
|
-
(0, typeorm_1.Index)('idx_org_member_status', ['memberStatus'])
|
|
66
|
+
(0, typeorm_1.Index)('idx_org_member_status', ['memberStatus']),
|
|
67
|
+
(0, typeorm_1.Index)('idx_org_member_person', ['personId'])
|
|
64
68
|
], OrganizationMember);
|
|
65
69
|
//# sourceMappingURL=organization-member.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-member.entity.js","sourceRoot":"","sources":["../../../src/entities/organization-member/organization-member.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,uDAAkD;AAClD,qGAA0F;AAC1F,2EAAuE;AAEvE
|
|
1
|
+
{"version":3,"file":"organization-member.entity.js","sourceRoot":"","sources":["../../../src/entities/organization-member/organization-member.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,uDAAkD;AAClD,qGAA0F;AAC1F,2EAAuE;AAEvE;;;;;;;;GAQG;AAMI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,yBAAU;CA+BjD,CAAA;AA/BY,gDAAkB;AAG7B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAmB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC7D,IAAA,oBAAU,EAAC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,CAAC,UAAU,CAAC,CAAC;GAChC,kBAAkB,CA+B9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.120",
|
|
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",
|
|
@@ -8,13 +8,6 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"contracts"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
13
|
-
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
14
|
-
"prepublishOnly": "pnpm build",
|
|
15
|
-
"publish:local": "pnpm build && npm pack",
|
|
16
|
-
"bump": "git add . && git commit -m 'bump version' && npm version patch && pnpm build && npm publish --access public && git push"
|
|
17
|
-
},
|
|
18
11
|
"keywords": [
|
|
19
12
|
"typeorm",
|
|
20
13
|
"entities",
|
|
@@ -40,5 +33,11 @@
|
|
|
40
33
|
"reflect-metadata": "^0.2.2",
|
|
41
34
|
"typeorm": "^0.3.27",
|
|
42
35
|
"typescript": "^5.9.3"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
39
|
+
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
40
|
+
"publish:local": "pnpm build && npm pack",
|
|
41
|
+
"bump": "git add . && git commit -m 'bump version' && npm version patch && pnpm build && npm publish --access public && git push"
|
|
43
42
|
}
|
|
44
|
-
}
|
|
43
|
+
}
|