@sigmatech/pergamo 0.1.54 → 0.1.56

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.
@@ -35,11 +35,17 @@ export declare class EventAttendeeList extends EntityBase {
35
35
  */
36
36
  person: Person;
37
37
  /**
38
- * Tipo de lista
39
- * - PREDEFINED: Lista VIP/Pre-aprobada cargada con anticipación
40
- * - IN_SITU: Lista cargada el mismo día o en sitio
38
+ * Tipo de lista (categoría temporal)
39
+ * - PREDEFINED: Lista cargada con anticipación (antes del evento)
40
+ * - IN_SITU: Lista cargada el mismo día o durante el evento
41
41
  */
42
42
  listType: AttendeeListType;
43
+ /**
44
+ * Nombre de la lista
45
+ * Permite tener N listas por evento, cada una con su nombre identificador.
46
+ * @example "Músicos", "Delegación Presidencial", "Prensa Acreditada", "Abuelos"
47
+ */
48
+ listName: string;
43
49
  /**
44
50
  * Estado del asistente en la lista
45
51
  * - PENDING: En lista, aún no acreditado
@@ -1 +1 @@
1
- {"version":3,"file":"event-attendee-list.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/event-attendee-list.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,UAAU,eAAe,CAAE,kDAAkD;IAC7E,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,OAAO,YAAY,CAAE,8BAA8B;IACnD,UAAU,eAAe,CAAE,6BAA6B;IACxD,MAAM,WAAW,CAAE,qCAAqC;IACxD,OAAO,YAAY;CACpB;AAED;;;;;;;GAOG;AACH,qBAIa,iBAAkB,SAAQ,UAAU;IAC/C;;OAEG;IAMH,KAAK,EAAG,KAAK,CAAC;IAEd;;OAEG;IAGH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;OAIG;IAOH,QAAQ,EAAG,gBAAgB,CAAC;IAE5B;;;;;;OAMG;IAMH,MAAM,EAAG,cAAc,CAAC;IAExB;;;OAGG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,UAAU,CAAC,EAAE,IAAI,CAAC;IAElB;;OAEG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"event-attendee-list.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/event-attendee-list.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,UAAU,eAAe,CAAE,kDAAkD;IAC7E,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,OAAO,YAAY,CAAE,8BAA8B;IACnD,UAAU,eAAe,CAAE,6BAA6B;IACxD,MAAM,WAAW,CAAE,qCAAqC;IACxD,OAAO,YAAY;CACpB;AAED;;;;;;;GAOG;AACH,qBAKa,iBAAkB,SAAQ,UAAU;IAC/C;;OAEG;IAMH,KAAK,EAAG,KAAK,CAAC;IAEd;;OAEG;IAGH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;OAIG;IAOH,QAAQ,EAAG,gBAAgB,CAAC;IAE5B;;;;OAIG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;;;;OAMG;IAMH,MAAM,EAAG,cAAc,CAAC;IAExB;;;OAGG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,UAAU,CAAC,EAAE,IAAI,CAAC;IAElB;;OAEG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -65,6 +65,10 @@ __decorate([
65
65
  }),
66
66
  __metadata("design:type", String)
67
67
  ], EventAttendeeList.prototype, "listType", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ name: 'list_name', length: 100 }),
70
+ __metadata("design:type", String)
71
+ ], EventAttendeeList.prototype, "listName", void 0);
68
72
  __decorate([
69
73
  (0, typeorm_1.Column)({
70
74
  type: 'enum',
@@ -101,6 +105,7 @@ exports.EventAttendeeList = EventAttendeeList = __decorate([
101
105
  (0, typeorm_1.Entity)('event_attendee_list'),
102
106
  (0, typeorm_1.Index)('eal_event_person_idx', ['event', 'person'], { unique: true }),
103
107
  (0, typeorm_1.Index)('eal_event_type_idx', ['event', 'listType']),
104
- (0, typeorm_1.Index)('eal_event_status_idx', ['event', 'status'])
108
+ (0, typeorm_1.Index)('eal_event_status_idx', ['event', 'status']),
109
+ (0, typeorm_1.Index)('eal_event_listname_idx', ['event', 'listName'])
105
110
  ], EventAttendeeList);
106
111
  //# sourceMappingURL=event-attendee-list.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-attendee-list.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/event-attendee-list.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,iDAAuC;AACvC,2DAAiD;AAEjD;;GAEG;AACH,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,gCAAhB,gB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I,EAAE,CAAC;;mDACtB;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACzC;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;qDAAC;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC1C;4BAjFd,iBAAiB;IAJ7B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;IAC7B,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;GACtC,iBAAiB,CAkF7B"}
1
+ {"version":3,"file":"event-attendee-list.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/event-attendee-list.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,iDAAuC;AACvC,2DAAiD;AAEjD;;GAEG;AACH,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAA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,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACtB;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACzC;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;qDAAC;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC1C;4BAzFd,iBAAiB;IAL7B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;IAC7B,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;GAC1C,iBAAiB,CA0F7B"}
@@ -25,6 +25,8 @@ export * from "./person/characterization-family.entity";
25
25
  export * from "./person/characterization-linkage.entity";
26
26
  export * from "./vehicle";
27
27
  export * from "./accreditation";
28
+ export * from "./recim/recim-entry.entity";
29
+ export * from "./recim/recim-fingerprint.entity";
28
30
  export * from "./telefonia/telefonia.entity";
29
31
  export * from "./telefonia/historial-ubicacion.entity";
30
32
  export * from "./telefonia/bts.entity";
@@ -1 +1 @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uC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAG9D,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAG1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,eAAe,CAAC;AAG9B,cAAc,QAAQ,CAAC;AAGvB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,mDAAmD,CAAC;AAClE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AAGvC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC"}
@@ -46,6 +46,9 @@ __exportStar(require("./person/characterization-linkage.entity"), exports);
46
46
  __exportStar(require("./vehicle"), exports);
47
47
  // Accreditation module
48
48
  __exportStar(require("./accreditation"), exports);
49
+ // RECIM module (Registro Especial de Criminalística)
50
+ __exportStar(require("./recim/recim-entry.entity"), exports);
51
+ __exportStar(require("./recim/recim-fingerprint.entity"), exports);
49
52
  // Telefonia module
50
53
  __exportStar(require("./telefonia/telefonia.entity"), exports);
51
54
  __exportStar(require("./telefonia/historial-ubicacion.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6B;AAC7B,sDAAoC;AAEpC,sBAAsB;AACtB,8EAA4D;AAC5D,mFAAiE;AAEjE,gBAAgB;AAChB,yDAAuC;AACvC,wEAAsD;AACtD,mEAAiD;AACjD,qEAA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Aa;AACb,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAElD,kBAAkB;AAClB,6CAA2B;AAE3B,eAAe;AACf,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6B;AAC7B,sDAAoC;AAEpC,sBAAsB;AACtB,8EAA4D;AAC5D,mFAAiE;AAEjE,gBAAgB;AAChB,yDAAuC;AACvC,wEAAsD;AACtD,mEAAiD;AACjD,qEAAmD;AACnD,6DAA2C;AAC3C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,sEAAoD;AACpD,0EAAwD;AACxD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AAEzD,iBAAiB;AACjB,4CAA0B;AAE1B,uBAAuB;AACvB,kDAAgC;AAEhC,qDAAqD;AACrD,6DAA2C;AAC3C,mEAAiD;AAEjD,mBAAmB;AACnB,+DAA6C;AAC7C,yEAAuD;AACvD,yDAAuC;AACvC,sEAAoD;AACpD,uEAAqD;AACrD,oEAAkD;AAClD,oEAAkD;AAClD,2EAAyD;AAEzD,kBAAkB;AAClB,6DAA2C;AAC3C,yEAAuD;AAEvD,cAAc;AACd,qDAAmC;AACnC,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAE1C,eAAe;AACf,uDAAqC;AAErC,cAAc;AACd,yDAAuC;AACvC,yDAAuC;AAEvC,cAAc;AACd,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,oEAAkD;AAClD,4DAA0C;AAE1C,sBAAsB;AACtB,8EAA4D;AAC5D,gFAA8D;AAC9D,8DAA4C;AAE5C,uBAAuB;AACvB,yDAAuC;AACvC,6DAA2C;AAE3C,kBAAkB;AAClB,sEAAoD;AAEpD,sBAAsB;AACtB,iEAA+C;AAC/C,wEAAsD;AACtD,oEAAkD;AAElD,qBAAqB;AACrB,0EAAwD;AAExD,uBAAuB;AACvB,6EAA2D;AAC3D,gFAA8D;AAE9D,mBAAmB;AACnB,qEAAmD;AACnD,4EAA0D;AAE1D,sBAAsB;AACtB,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AAEvD,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,yCAAuB;AAEvB,aAAa;AACb,sDAAoC;AAEpC,YAAY;AACZ,qDAAmC;AAEnC,yBAAyB;AACzB,oFAAkE;AAClE,gEAA8C;AAC9C,yDAAuC;AAEvC,aAAa;AACb,6DAA2C;AAE3C,aAAa;AACb,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAElD,kBAAkB;AAClB,6CAA2B;AAE3B,eAAe;AACf,0CAAwB"}
@@ -0,0 +1,81 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Person } from '../person/person.entity';
3
+ import { RecimFingerprint } from './recim-fingerprint.entity';
4
+ /**
5
+ * RECIM Status Enum
6
+ *
7
+ * Defines the lifecycle status of a RECIM entry:
8
+ * - ACTIVE: Entry is active and current
9
+ * - INACTIVE: Entry has been deactivated
10
+ * - ARCHIVED: Entry has been archived for historical purposes
11
+ */
12
+ export declare enum RecimStatus {
13
+ ACTIVE = "ACTIVE",
14
+ INACTIVE = "INACTIVE",
15
+ ARCHIVED = "ARCHIVED"
16
+ }
17
+ /**
18
+ * RECIM Entry Entity
19
+ *
20
+ * Represents a permanent biometric registry entry for a person.
21
+ * Unlike accreditations, RECIM entries are not event-based and have no expiration.
22
+ *
23
+ * Key Features:
24
+ * - Permanent registry (no event dependency)
25
+ * - No approval workflow required
26
+ * - Status lifecycle management (ACTIVE/INACTIVE/ARCHIVED)
27
+ * - Tenant-specific with full audit trail
28
+ *
29
+ * @extends EntityBase - Tenant-specific entity with audit fields
30
+ */
31
+ export declare class RecimEntry extends EntityBase {
32
+ /**
33
+ * Person relation (GlobalBase)
34
+ *
35
+ * References the person in this RECIM entry.
36
+ * Eagerly loaded for easy access to person details.
37
+ */
38
+ person: Person;
39
+ /**
40
+ * Observaciones (Observations/Notes)
41
+ *
42
+ * Optional text field for any relevant observations or notes
43
+ * about this RECIM entry.
44
+ */
45
+ observaciones?: string;
46
+ /**
47
+ * Registration Timestamp
48
+ *
49
+ * When this entry was registered in the RECIM system.
50
+ * Automatically set on creation if not provided.
51
+ */
52
+ registeredAt?: Date;
53
+ /**
54
+ * Photo URL
55
+ *
56
+ * Optional URL to a photo of the person for visual identification.
57
+ */
58
+ photoUrl?: string;
59
+ /**
60
+ * Status
61
+ *
62
+ * Current status of this RECIM entry.
63
+ * Default: ACTIVE
64
+ */
65
+ status: RecimStatus;
66
+ /**
67
+ * Status Reason
68
+ *
69
+ * Optional reason for status change (e.g., why it was inactivated).
70
+ */
71
+ statusReason?: string;
72
+ /**
73
+ * Fingerprints Relation
74
+ *
75
+ * One-to-many relation with RecimFingerprint entities.
76
+ * CASCADE delete: when entry is deleted, fingerprints are also deleted.
77
+ * Eagerly loaded to include fingerprint data in queries.
78
+ */
79
+ fingerprints?: RecimFingerprint[];
80
+ }
81
+ //# sourceMappingURL=recim-entry.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recim-entry.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/recim/recim-entry.entity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;;;GAOG;AACH,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAGa,UAAW,SAAQ,UAAU;IACxC;;;;;OAKG;IAGH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;;OAKG;IAEH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IAMH,MAAM,EAAG,WAAW,CAAC;IAErB;;;;OAIG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IAKH,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACnC"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RecimEntry = exports.RecimStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_1 = require("../base/_base");
15
+ const person_entity_1 = require("../person/person.entity");
16
+ const recim_fingerprint_entity_1 = require("./recim-fingerprint.entity");
17
+ /**
18
+ * RECIM Status Enum
19
+ *
20
+ * Defines the lifecycle status of a RECIM entry:
21
+ * - ACTIVE: Entry is active and current
22
+ * - INACTIVE: Entry has been deactivated
23
+ * - ARCHIVED: Entry has been archived for historical purposes
24
+ */
25
+ var RecimStatus;
26
+ (function (RecimStatus) {
27
+ RecimStatus["ACTIVE"] = "ACTIVE";
28
+ RecimStatus["INACTIVE"] = "INACTIVE";
29
+ RecimStatus["ARCHIVED"] = "ARCHIVED";
30
+ })(RecimStatus || (exports.RecimStatus = RecimStatus = {}));
31
+ /**
32
+ * RECIM Entry Entity
33
+ *
34
+ * Represents a permanent biometric registry entry for a person.
35
+ * Unlike accreditations, RECIM entries are not event-based and have no expiration.
36
+ *
37
+ * Key Features:
38
+ * - Permanent registry (no event dependency)
39
+ * - No approval workflow required
40
+ * - Status lifecycle management (ACTIVE/INACTIVE/ARCHIVED)
41
+ * - Tenant-specific with full audit trail
42
+ *
43
+ * @extends EntityBase - Tenant-specific entity with audit fields
44
+ */
45
+ let RecimEntry = class RecimEntry extends _base_1.EntityBase {
46
+ };
47
+ exports.RecimEntry = RecimEntry;
48
+ __decorate([
49
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { eager: true, nullable: false }),
50
+ (0, typeorm_1.JoinColumn)({ name: 'person_id' }),
51
+ __metadata("design:type", person_entity_1.Person)
52
+ ], RecimEntry.prototype, "person", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], RecimEntry.prototype, "observaciones", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'registered_at', type: 'timestamp', nullable: true }),
59
+ __metadata("design:type", Date)
60
+ ], RecimEntry.prototype, "registeredAt", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'photo_url', type: 'varchar', length: 500, nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], RecimEntry.prototype, "photoUrl", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({
67
+ type: 'enum',
68
+ enum: RecimStatus,
69
+ default: RecimStatus.ACTIVE,
70
+ }),
71
+ __metadata("design:type", String)
72
+ ], RecimEntry.prototype, "status", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ name: 'status_reason', type: 'text', nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], RecimEntry.prototype, "statusReason", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.OneToMany)(() => recim_fingerprint_entity_1.RecimFingerprint, (fingerprint) => fingerprint.recimEntry, {
79
+ cascade: true,
80
+ eager: true,
81
+ }),
82
+ __metadata("design:type", Array)
83
+ ], RecimEntry.prototype, "fingerprints", void 0);
84
+ exports.RecimEntry = RecimEntry = __decorate([
85
+ (0, typeorm_1.Entity)('recim_entry'),
86
+ (0, typeorm_1.Index)('recim_entry_person_idx', ['person']),
87
+ (0, typeorm_1.Index)('recim_entry_status_idx', ['status'])
88
+ ], RecimEntry);
89
+ //# sourceMappingURL=recim-entry.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recim-entry.entity.js","sourceRoot":"","sources":["../../../src/entities/recim/recim-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yCAA2C;AAC3C,2DAAiD;AACjD,yEAA8D;AAE9D;;;;;;;GAOG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED;;;;;;;;;;;;;GAaG;AAII,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kBAAU;CAsEzC,CAAA;AAtEY,gCAAU;AASrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,sBAAM;0CAAC;AAShB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAClB;AASvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;gDAAC;AAQpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC1D;AAalB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,WAAW,CAAC,MAAM;KAC5B,CAAC;;0CACmB;AAQrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1C;AAatB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE;QAC1E,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,IAAI;KACZ,CAAC;;gDACgC;qBArEvB,UAAU;IAHtB,IAAA,gBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,QAAQ,CAAC,CAAC;GAC/B,UAAU,CAsEtB"}
@@ -0,0 +1,113 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { RecimEntry } from './recim-entry.entity';
3
+ import { FingerPosition, QualityMetrics } from '../accreditation/fingerprint.entity';
4
+ /**
5
+ * RECIM Fingerprint Entity
6
+ *
7
+ * Stores biometric fingerprint data for a RECIM entry.
8
+ * Includes both ANSI-378-2004 and ISO-19794-2-2005 templates,
9
+ * optional RAW image for audit, and quality metrics.
10
+ *
11
+ * Key Features:
12
+ * - ANSI-378-2004 template standard (~200-800 bytes)
13
+ * - ISO-19794-2-2005 template standard (~200-800 bytes)
14
+ * - Optional RAW image for audit purposes (~150KB)
15
+ * - Quality metrics validation (JSONB)
16
+ * - Device metadata tracking
17
+ * - CASCADE delete with RecimEntry
18
+ *
19
+ * @extends EntityBase - Tenant-specific entity with audit fields
20
+ */
21
+ export declare class RecimFingerprint extends EntityBase {
22
+ /**
23
+ * RECIM Entry Relation
24
+ *
25
+ * References the parent RECIM entry.
26
+ * CASCADE delete: when entry is deleted, fingerprints are also deleted.
27
+ */
28
+ recimEntry: RecimEntry;
29
+ /**
30
+ * Finger Position
31
+ *
32
+ * Indicates which finger was captured.
33
+ * Default: RIGHT_INDEX
34
+ */
35
+ fingerPosition: FingerPosition;
36
+ /**
37
+ * ANSI-378-2004 Template
38
+ *
39
+ * Biometric template in ANSI-378-2004 format.
40
+ * Stored as binary data (bytea) for efficiency.
41
+ * Typical size: 200-800 bytes
42
+ */
43
+ templateAnsi: Buffer;
44
+ /**
45
+ * ISO-19794-2-2005 Template
46
+ *
47
+ * Biometric template in ISO-19794-2-2005 format.
48
+ * Stored as binary data (bytea) for efficiency.
49
+ * Typical size: 200-800 bytes
50
+ */
51
+ templateIso: Buffer;
52
+ /**
53
+ * RAW Image
54
+ *
55
+ * Optional RAW 8-bit grayscale fingerprint image.
56
+ * Stored for audit purposes only.
57
+ * Typical size: ~150KB
58
+ */
59
+ rawImage?: Buffer;
60
+ /**
61
+ * Image Width
62
+ *
63
+ * Width of the captured fingerprint image in pixels.
64
+ * Default: 320
65
+ */
66
+ width: number;
67
+ /**
68
+ * Image Height
69
+ *
70
+ * Height of the captured fingerprint image in pixels.
71
+ * Default: 480
72
+ */
73
+ height: number;
74
+ /**
75
+ * Image DPI
76
+ *
77
+ * Dots per inch (resolution) of the captured image.
78
+ * Default: 500
79
+ */
80
+ dpi: number;
81
+ /**
82
+ * Quality Metrics
83
+ *
84
+ * Comprehensive quality metrics from the capture device.
85
+ * Stored as JSONB for flexibility and queryability.
86
+ */
87
+ qualityMetrics: QualityMetrics;
88
+ /**
89
+ * Capture Timestamp
90
+ *
91
+ * When this fingerprint was captured.
92
+ */
93
+ captureTimestamp: Date;
94
+ /**
95
+ * Device Serial Number
96
+ *
97
+ * Serial number of the capture device.
98
+ */
99
+ deviceSerial?: string;
100
+ /**
101
+ * Device Model
102
+ *
103
+ * Model name of the capture device.
104
+ */
105
+ deviceModel?: string;
106
+ /**
107
+ * Device Vendor
108
+ *
109
+ * Vendor/manufacturer of the capture device.
110
+ */
111
+ deviceVendor?: string;
112
+ }
113
+ //# sourceMappingURL=recim-fingerprint.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recim-fingerprint.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/recim/recim-fingerprint.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;;;;;;;;;;;;;GAgBG;AACH,qBAEa,gBAAiB,SAAQ,UAAU;IAC9C;;;;;OAKG;IAMH,UAAU,EAAG,UAAU,CAAC;IAExB;;;;;OAKG;IAOH,cAAc,EAAG,cAAc,CAAC;IAEhC;;;;;;OAMG;IAEH,YAAY,EAAG,MAAM,CAAC;IAEtB;;;;;;OAMG;IAEH,WAAW,EAAG,MAAM,CAAC;IAErB;;;;;;OAMG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IAEH,KAAK,EAAG,MAAM,CAAC;IAEf;;;;;OAKG;IAEH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;;;OAKG;IAEH,GAAG,EAAG,MAAM,CAAC;IAEb;;;;;OAKG;IAEH,cAAc,EAAG,cAAc,CAAC;IAEhC;;;;OAIG;IAEH,gBAAgB,EAAG,IAAI,CAAC;IAExB;;;;OAIG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RecimFingerprint = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_1 = require("../base/_base");
15
+ const recim_entry_entity_1 = require("./recim-entry.entity");
16
+ const fingerprint_entity_1 = require("../accreditation/fingerprint.entity");
17
+ /**
18
+ * RECIM Fingerprint Entity
19
+ *
20
+ * Stores biometric fingerprint data for a RECIM entry.
21
+ * Includes both ANSI-378-2004 and ISO-19794-2-2005 templates,
22
+ * optional RAW image for audit, and quality metrics.
23
+ *
24
+ * Key Features:
25
+ * - ANSI-378-2004 template standard (~200-800 bytes)
26
+ * - ISO-19794-2-2005 template standard (~200-800 bytes)
27
+ * - Optional RAW image for audit purposes (~150KB)
28
+ * - Quality metrics validation (JSONB)
29
+ * - Device metadata tracking
30
+ * - CASCADE delete with RecimEntry
31
+ *
32
+ * @extends EntityBase - Tenant-specific entity with audit fields
33
+ */
34
+ let RecimFingerprint = class RecimFingerprint extends _base_1.EntityBase {
35
+ };
36
+ exports.RecimFingerprint = RecimFingerprint;
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => recim_entry_entity_1.RecimEntry, (entry) => entry.fingerprints, {
39
+ nullable: false,
40
+ onDelete: 'CASCADE',
41
+ }),
42
+ (0, typeorm_1.JoinColumn)({ name: 'recim_entry_id' }),
43
+ __metadata("design:type", recim_entry_entity_1.RecimEntry)
44
+ ], RecimFingerprint.prototype, "recimEntry", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({
47
+ name: 'finger_position',
48
+ type: 'enum',
49
+ enum: fingerprint_entity_1.FingerPosition,
50
+ default: fingerprint_entity_1.FingerPosition.RIGHT_INDEX,
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], RecimFingerprint.prototype, "fingerPosition", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ name: 'template_ansi', type: 'bytea' }),
56
+ __metadata("design:type", Buffer)
57
+ ], RecimFingerprint.prototype, "templateAnsi", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ name: 'template_iso', type: 'bytea' }),
60
+ __metadata("design:type", Buffer)
61
+ ], RecimFingerprint.prototype, "templateIso", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ name: 'raw_image', type: 'bytea', nullable: true }),
64
+ __metadata("design:type", Buffer)
65
+ ], RecimFingerprint.prototype, "rawImage", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'int', default: 320 }),
68
+ __metadata("design:type", Number)
69
+ ], RecimFingerprint.prototype, "width", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'int', default: 480 }),
72
+ __metadata("design:type", Number)
73
+ ], RecimFingerprint.prototype, "height", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'int', default: 500 }),
76
+ __metadata("design:type", Number)
77
+ ], RecimFingerprint.prototype, "dpi", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ name: 'quality_metrics', type: 'jsonb' }),
80
+ __metadata("design:type", Object)
81
+ ], RecimFingerprint.prototype, "qualityMetrics", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ name: 'capture_timestamp', type: 'timestamp' }),
84
+ __metadata("design:type", Date)
85
+ ], RecimFingerprint.prototype, "captureTimestamp", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ name: 'device_serial', length: 100, nullable: true }),
88
+ __metadata("design:type", String)
89
+ ], RecimFingerprint.prototype, "deviceSerial", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ name: 'device_model', length: 100, nullable: true }),
92
+ __metadata("design:type", String)
93
+ ], RecimFingerprint.prototype, "deviceModel", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ name: 'device_vendor', length: 100, nullable: true }),
96
+ __metadata("design:type", String)
97
+ ], RecimFingerprint.prototype, "deviceVendor", void 0);
98
+ exports.RecimFingerprint = RecimFingerprint = __decorate([
99
+ (0, typeorm_1.Entity)('recim_fingerprint'),
100
+ (0, typeorm_1.Index)('recim_fingerprint_entry_idx', ['recimEntry'])
101
+ ], RecimFingerprint);
102
+ //# sourceMappingURL=recim-fingerprint.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recim-fingerprint.entity.js","sourceRoot":"","sources":["../../../src/entities/recim/recim-fingerprint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,6DAAkD;AAClD,4EAAqF;AAErF;;;;;;;;;;;;;;;;GAgBG;AAGI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,kBAAU;CA6H/C,CAAA;AA7HY,4CAAgB;AAY3B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE;QAC1D,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC1B,+BAAU;oDAAC;AAcxB;IANC,IAAA,gBAAM,EAA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AI,EAAE,CAAC;;qDACzC;AAQrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACzC;2BA5HX,gBAAgB;IAF5B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;IAC3B,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,YAAY,CAAC,CAAC;GACxC,gBAAgB,CA6H5B"}
package/package.json CHANGED
@@ -1,19 +1,12 @@
1
1
  {
2
2
  "name": "@sigmatech/pergamo",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
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",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
- "scripts": {
11
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
12
- "build:watch": "tsc -p tsconfig.build.json --watch",
13
- "prepublishOnly": "pnpm build",
14
- "publish:local": "pnpm build && npm pack",
15
- "publish:npm": "npm version patch && pnpm build && npm publish --access public"
16
- },
17
10
  "keywords": [
18
11
  "typeorm",
19
12
  "entities",
@@ -39,5 +32,11 @@
39
32
  "reflect-metadata": "^0.2.2",
40
33
  "typeorm": "^0.3.27",
41
34
  "typescript": "^5.9.3"
35
+ },
36
+ "scripts": {
37
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
38
+ "build:watch": "tsc -p tsconfig.build.json --watch",
39
+ "publish:local": "pnpm build && npm pack",
40
+ "publish:npm": "npm version patch && pnpm build && npm publish --access public"
42
41
  }
43
- }
42
+ }