@sigmatech/pergamo 0.1.50 → 0.1.53

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.
@@ -0,0 +1,30 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Person } from '../person/person.entity';
3
+ import { Event } from './event.entity';
4
+ import { Fingerprint } from './fingerprint.entity';
5
+ export declare enum AccreditationStatus {
6
+ PENDING = "PENDING",// Pendiente de captura de huella
7
+ ACTIVE = "ACTIVE",// Activa con huella capturada
8
+ REVOKED = "REVOKED",// Revocada
9
+ EXPIRED = "EXPIRED"
10
+ }
11
+ /**
12
+ * Accreditation Entity
13
+ *
14
+ * Represents a biometric accreditation for an event.
15
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
16
+ *
17
+ * @extends EntityBase - Tenant-specific entity with audit fields
18
+ */
19
+ export declare class Accreditation extends EntityBase {
20
+ person: Person;
21
+ event: Event;
22
+ status: AccreditationStatus;
23
+ statusReason?: string;
24
+ photoUrl?: string;
25
+ badgeNumber?: string;
26
+ validUntil?: Date;
27
+ notes?: string;
28
+ fingerprints?: Fingerprint[];
29
+ }
30
+ //# sourceMappingURL=accreditation.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accreditation.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/accreditation.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUnD,oBAAY,mBAAmB;IAC7B,OAAO,YAAY,CAAE,iCAAiC;IACtD,MAAM,WAAW,CAAE,8BAA8B;IACjD,OAAO,YAAY,CAAE,WAAW;IAChC,OAAO,YAAY;CACpB;AAED;;;;;;;GAOG;AACH,qBAKa,aAAc,SAAQ,UAAU;IAI3C,MAAM,EAAG,MAAM,CAAC;IAQhB,KAAK,EAAG,KAAK,CAAC;IAQd,MAAM,EAAG,mBAAmB,CAAC;IAG7B,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAOf,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B"}
@@ -0,0 +1,91 @@
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.Accreditation = exports.AccreditationStatus = void 0;
13
+ const _base_1 = require("../base/_base");
14
+ const person_entity_1 = require("../person/person.entity");
15
+ const event_entity_1 = require("./event.entity");
16
+ const fingerprint_entity_1 = require("./fingerprint.entity");
17
+ const typeorm_1 = require("typeorm");
18
+ var AccreditationStatus;
19
+ (function (AccreditationStatus) {
20
+ AccreditationStatus["PENDING"] = "PENDING";
21
+ AccreditationStatus["ACTIVE"] = "ACTIVE";
22
+ AccreditationStatus["REVOKED"] = "REVOKED";
23
+ AccreditationStatus["EXPIRED"] = "EXPIRED";
24
+ })(AccreditationStatus || (exports.AccreditationStatus = AccreditationStatus = {}));
25
+ /**
26
+ * Accreditation Entity
27
+ *
28
+ * Represents a biometric accreditation for an event.
29
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
30
+ *
31
+ * @extends EntityBase - Tenant-specific entity with audit fields
32
+ */
33
+ let Accreditation = class Accreditation extends _base_1.EntityBase {
34
+ };
35
+ exports.Accreditation = Accreditation;
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { nullable: false, eager: true }),
38
+ (0, typeorm_1.JoinColumn)({ name: 'person_id' }),
39
+ __metadata("design:type", person_entity_1.Person)
40
+ ], Accreditation.prototype, "person", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => event_entity_1.Event, (event) => event.accreditations, {
43
+ nullable: false,
44
+ eager: true,
45
+ }),
46
+ (0, typeorm_1.JoinColumn)({ name: 'event_id' }),
47
+ __metadata("design:type", event_entity_1.Event)
48
+ ], Accreditation.prototype, "event", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({
51
+ type: 'enum',
52
+ enum: AccreditationStatus,
53
+ default: AccreditationStatus.PENDING,
54
+ }),
55
+ __metadata("design:type", String)
56
+ ], Accreditation.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'status_reason', type: 'text', nullable: true }),
59
+ __metadata("design:type", String)
60
+ ], Accreditation.prototype, "statusReason", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'photo_url', length: 500, nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], Accreditation.prototype, "photoUrl", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ name: 'badge_number', length: 50, nullable: true, unique: true }),
67
+ __metadata("design:type", String)
68
+ ], Accreditation.prototype, "badgeNumber", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'valid_until', type: 'date', nullable: true }),
71
+ __metadata("design:type", Date)
72
+ ], Accreditation.prototype, "validUntil", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], Accreditation.prototype, "notes", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.OneToMany)(() => fingerprint_entity_1.Fingerprint, (fp) => fp.accreditation, {
79
+ cascade: true,
80
+ eager: true,
81
+ }),
82
+ __metadata("design:type", Array)
83
+ ], Accreditation.prototype, "fingerprints", void 0);
84
+ exports.Accreditation = Accreditation = __decorate([
85
+ (0, typeorm_1.Entity)('accreditation'),
86
+ (0, typeorm_1.Index)('accreditation_person_idx', ['person']),
87
+ (0, typeorm_1.Index)('accreditation_event_idx', ['event']),
88
+ (0, typeorm_1.Index)('accreditation_status_idx', ['status']),
89
+ (0, typeorm_1.Index)('accreditation_badge_number_idx', ['badgeNumber'], { unique: true })
90
+ ], Accreditation);
91
+ //# sourceMappingURL=accreditation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accreditation.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/accreditation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,2DAAiD;AACjD,iDAAuC;AACvC,6DAAmD;AACnD,qCAOiB;AAEjB,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED;;;;;;;GAOG;AAMI,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kBAAU;CA+C5C,CAAA;AA/CY,sCAAa;AAIxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,sBAAM;6CAAC;AAQhB;IALC,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IAAA,gBAAM,EAAC,eAAe,CAAC;IACvB,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC7C,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,OAAO,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC7C,IAAA,eAAK,EAAC,gCAAgC,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC9D,aAAa,CA+CzB"}
@@ -0,0 +1,68 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Accreditation } from './accreditation.entity';
3
+ /**
4
+ * Estados posibles de un evento
5
+ */
6
+ export declare enum EventStatus {
7
+ PLANNED = "PLANNED",
8
+ ACTIVE = "ACTIVE",
9
+ COMPLETED = "COMPLETED",
10
+ CANCELLED = "CANCELLED"
11
+ }
12
+ /**
13
+ * Event Entity
14
+ *
15
+ * Representa un evento para el cual se emiten acreditaciones.
16
+ * Un evento puede tener múltiples acreditaciones.
17
+ *
18
+ * @entity event
19
+ */
20
+ export declare class Event extends EntityBase {
21
+ /**
22
+ * Nombre del evento
23
+ * @example "Cumbre Presidencial 2024"
24
+ */
25
+ name: string;
26
+ /**
27
+ * Fecha del evento
28
+ */
29
+ date: Date;
30
+ /**
31
+ * Ubicación del evento
32
+ * @example "Palacio de Miraflores, Caracas"
33
+ */
34
+ location?: string;
35
+ /**
36
+ * Descripción del evento
37
+ */
38
+ description?: string;
39
+ /**
40
+ * Estado del evento
41
+ * - PLANNED: Planificado
42
+ * - ACTIVE: En curso
43
+ * - COMPLETED: Completado
44
+ * - CANCELLED: Cancelado
45
+ */
46
+ status: EventStatus;
47
+ /**
48
+ * Fecha de inicio del evento (hora específica)
49
+ */
50
+ startTime?: Date;
51
+ /**
52
+ * Fecha de fin del evento (hora específica)
53
+ */
54
+ endTime?: Date;
55
+ /**
56
+ * Capacidad máxima de acreditaciones
57
+ */
58
+ maxCapacity?: number;
59
+ /**
60
+ * Notas adicionales del evento
61
+ */
62
+ notes?: string;
63
+ /**
64
+ * Acreditaciones asociadas a este evento
65
+ */
66
+ accreditations?: Accreditation[];
67
+ }
68
+ //# sourceMappingURL=event.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/event.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;GAEG;AACH,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAGD;;;;;;;GAOG;AACH,qBAGa,KAAM,SAAQ,UAAU;IACnC;;;OAGG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,IAAI,EAAG,IAAI,CAAC;IAEZ;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IAMH,MAAM,EAAG,WAAW,CAAC;IAErB;;OAEG;IAEH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;OAEG;IAEH,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC"}
@@ -0,0 +1,86 @@
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.Event = exports.EventStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_1 = require("../base/_base");
15
+ const accreditation_entity_1 = require("./accreditation.entity");
16
+ /**
17
+ * Estados posibles de un evento
18
+ */
19
+ var EventStatus;
20
+ (function (EventStatus) {
21
+ EventStatus["PLANNED"] = "PLANNED";
22
+ EventStatus["ACTIVE"] = "ACTIVE";
23
+ EventStatus["COMPLETED"] = "COMPLETED";
24
+ EventStatus["CANCELLED"] = "CANCELLED";
25
+ })(EventStatus || (exports.EventStatus = EventStatus = {}));
26
+ /**
27
+ * Event Entity
28
+ *
29
+ * Representa un evento para el cual se emiten acreditaciones.
30
+ * Un evento puede tener múltiples acreditaciones.
31
+ *
32
+ * @entity event
33
+ */
34
+ let Event = class Event extends _base_1.EntityBase {
35
+ };
36
+ exports.Event = Event;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ length: 255 }),
39
+ __metadata("design:type", String)
40
+ ], Event.prototype, "name", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'date' }),
43
+ __metadata("design:type", Date)
44
+ ], Event.prototype, "date", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], Event.prototype, "location", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], Event.prototype, "description", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({
55
+ type: 'enum',
56
+ enum: EventStatus,
57
+ default: EventStatus.PLANNED,
58
+ }),
59
+ __metadata("design:type", String)
60
+ ], Event.prototype, "status", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'start_time', type: 'timestamp', nullable: true }),
63
+ __metadata("design:type", Date)
64
+ ], Event.prototype, "startTime", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ name: 'end_time', type: 'timestamp', nullable: true }),
67
+ __metadata("design:type", Date)
68
+ ], Event.prototype, "endTime", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'max_capacity', type: 'int', nullable: true }),
71
+ __metadata("design:type", Number)
72
+ ], Event.prototype, "maxCapacity", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], Event.prototype, "notes", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.OneToMany)(() => accreditation_entity_1.Accreditation, (accreditation) => accreditation.event),
79
+ __metadata("design:type", Array)
80
+ ], Event.prototype, "accreditations", void 0);
81
+ exports.Event = Event = __decorate([
82
+ (0, typeorm_1.Entity)('event'),
83
+ (0, typeorm_1.Index)('event_name_date_idx', ['name', 'date']),
84
+ (0, typeorm_1.Index)('event_date_idx', ['date'])
85
+ ], Event);
86
+ //# sourceMappingURL=event.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2D;AAC3D,yCAA2C;AAC3C,iEAAuD;AAEvD;;GAEG;AACH,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;AACzB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAGD;;;;;;;GAOG;AAII,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kBAAU;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AqB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC;GACrB,KAAK,CAsEjB"}
@@ -0,0 +1,56 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Accreditation } from './accreditation.entity';
3
+ export declare enum FingerPosition {
4
+ RIGHT_THUMB = "RIGHT_THUMB",
5
+ RIGHT_INDEX = "RIGHT_INDEX",
6
+ RIGHT_MIDDLE = "RIGHT_MIDDLE",
7
+ RIGHT_RING = "RIGHT_RING",
8
+ RIGHT_LITTLE = "RIGHT_LITTLE",
9
+ LEFT_THUMB = "LEFT_THUMB",
10
+ LEFT_INDEX = "LEFT_INDEX",
11
+ LEFT_MIDDLE = "LEFT_MIDDLE",
12
+ LEFT_RING = "LEFT_RING",
13
+ LEFT_LITTLE = "LEFT_LITTLE"
14
+ }
15
+ /**
16
+ * Quality Metrics Interface
17
+ *
18
+ * Stores quality metrics from the biometric capture device.
19
+ * Includes image quality indicators and template information.
20
+ */
21
+ export interface QualityMetrics {
22
+ mean_intensity: number;
23
+ std_deviation: number;
24
+ contrast: number;
25
+ sharpness: number;
26
+ information_content: number;
27
+ quality_score: number;
28
+ is_acceptable: boolean;
29
+ minutiae_count_ansi: number;
30
+ minutiae_count_iso: number;
31
+ }
32
+ /**
33
+ * Fingerprint Entity
34
+ *
35
+ * Stores biometric fingerprint data for an accreditation.
36
+ * Includes both ANSI-378-2004 and ISO-19794-2-2005 templates,
37
+ * optional RAW image for audit, and quality metrics.
38
+ *
39
+ * @extends EntityBase - Tenant-specific entity with audit fields
40
+ */
41
+ export declare class Fingerprint extends EntityBase {
42
+ accreditation: Accreditation;
43
+ fingerPosition: FingerPosition;
44
+ templateAnsi: Buffer;
45
+ templateIso: Buffer;
46
+ rawImage?: Buffer;
47
+ width: number;
48
+ height: number;
49
+ dpi: number;
50
+ qualityMetrics: QualityMetrics;
51
+ captureTimestamp: Date;
52
+ deviceSerial?: string;
53
+ deviceModel?: string;
54
+ deviceVendor?: string;
55
+ }
56
+ //# sourceMappingURL=fingerprint.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fingerprint.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/fingerprint.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AASvD,oBAAY,cAAc;IACxB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,qBAEa,WAAY,SAAQ,UAAU;IAOzC,aAAa,EAAG,aAAa,CAAC;IAS9B,cAAc,EAAG,cAAc,CAAC;IAIhC,YAAY,EAAG,MAAM,CAAC;IAGtB,WAAW,EAAG,MAAM,CAAC;IAIrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,EAAG,MAAM,CAAC;IAGhB,GAAG,EAAG,MAAM,CAAC;IAIb,cAAc,EAAG,cAAc,CAAC;IAIhC,gBAAgB,EAAG,IAAI,CAAC;IAIxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,106 @@
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.Fingerprint = exports.FingerPosition = void 0;
13
+ const _base_1 = require("../base/_base");
14
+ const accreditation_entity_1 = require("./accreditation.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ var FingerPosition;
17
+ (function (FingerPosition) {
18
+ FingerPosition["RIGHT_THUMB"] = "RIGHT_THUMB";
19
+ FingerPosition["RIGHT_INDEX"] = "RIGHT_INDEX";
20
+ FingerPosition["RIGHT_MIDDLE"] = "RIGHT_MIDDLE";
21
+ FingerPosition["RIGHT_RING"] = "RIGHT_RING";
22
+ FingerPosition["RIGHT_LITTLE"] = "RIGHT_LITTLE";
23
+ FingerPosition["LEFT_THUMB"] = "LEFT_THUMB";
24
+ FingerPosition["LEFT_INDEX"] = "LEFT_INDEX";
25
+ FingerPosition["LEFT_MIDDLE"] = "LEFT_MIDDLE";
26
+ FingerPosition["LEFT_RING"] = "LEFT_RING";
27
+ FingerPosition["LEFT_LITTLE"] = "LEFT_LITTLE";
28
+ })(FingerPosition || (exports.FingerPosition = FingerPosition = {}));
29
+ /**
30
+ * Fingerprint Entity
31
+ *
32
+ * Stores biometric fingerprint data for an accreditation.
33
+ * Includes both ANSI-378-2004 and ISO-19794-2-2005 templates,
34
+ * optional RAW image for audit, and quality metrics.
35
+ *
36
+ * @extends EntityBase - Tenant-specific entity with audit fields
37
+ */
38
+ let Fingerprint = class Fingerprint extends _base_1.EntityBase {
39
+ };
40
+ exports.Fingerprint = Fingerprint;
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => accreditation_entity_1.Accreditation, (acc) => acc.fingerprints, {
43
+ onDelete: 'CASCADE',
44
+ nullable: false,
45
+ }),
46
+ (0, typeorm_1.JoinColumn)({ name: 'accreditation_id' }),
47
+ __metadata("design:type", accreditation_entity_1.Accreditation)
48
+ ], Fingerprint.prototype, "accreditation", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({
51
+ name: 'finger_position',
52
+ type: 'enum',
53
+ enum: FingerPosition,
54
+ default: FingerPosition.RIGHT_INDEX,
55
+ }),
56
+ __metadata("design:type", String)
57
+ ], Fingerprint.prototype, "fingerPosition", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ name: 'template_ansi', type: 'bytea' }),
60
+ __metadata("design:type", Buffer)
61
+ ], Fingerprint.prototype, "templateAnsi", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ name: 'template_iso', type: 'bytea' }),
64
+ __metadata("design:type", Buffer)
65
+ ], Fingerprint.prototype, "templateIso", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ name: 'raw_image', type: 'bytea', nullable: true }),
68
+ __metadata("design:type", Buffer)
69
+ ], Fingerprint.prototype, "rawImage", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'int', default: 320 }),
72
+ __metadata("design:type", Number)
73
+ ], Fingerprint.prototype, "width", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'int', default: 480 }),
76
+ __metadata("design:type", Number)
77
+ ], Fingerprint.prototype, "height", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'int', default: 500 }),
80
+ __metadata("design:type", Number)
81
+ ], Fingerprint.prototype, "dpi", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ name: 'quality_metrics', type: 'jsonb' }),
84
+ __metadata("design:type", Object)
85
+ ], Fingerprint.prototype, "qualityMetrics", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ name: 'capture_timestamp', type: 'timestamp' }),
88
+ __metadata("design:type", Date)
89
+ ], Fingerprint.prototype, "captureTimestamp", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ name: 'device_serial', length: 100, nullable: true }),
92
+ __metadata("design:type", String)
93
+ ], Fingerprint.prototype, "deviceSerial", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ name: 'device_model', length: 100, nullable: true }),
96
+ __metadata("design:type", String)
97
+ ], Fingerprint.prototype, "deviceModel", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ name: 'device_vendor', length: 100, nullable: true }),
100
+ __metadata("design:type", String)
101
+ ], Fingerprint.prototype, "deviceVendor", void 0);
102
+ exports.Fingerprint = Fingerprint = __decorate([
103
+ (0, typeorm_1.Entity)('fingerprint'),
104
+ (0, typeorm_1.Index)('fingerprint_accreditation_idx', ['accreditation'])
105
+ ], Fingerprint);
106
+ //# sourceMappingURL=fingerprint.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fingerprint.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/fingerprint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,iEAAuD;AACvD,qCAMiB;AAEjB,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,6CAA2B,C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AK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;wCACzB;AAIb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mDACnB;AAIhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACtC,IAAI;qDAAC;AAIxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACzC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACzC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACzC;sBAvDX,WAAW;IAFvB,IAAA,gBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,eAAe,CAAC,CAAC;GAC7C,WAAW,CAwDvB"}
@@ -0,0 +1,4 @@
1
+ export * from './event.entity';
2
+ export * from './accreditation.entity';
3
+ export * from './fingerprint.entity';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./event.entity"), exports);
18
+ __exportStar(require("./accreditation.entity"), exports);
19
+ __exportStar(require("./fingerprint.entity"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/accreditation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,uDAAqC"}
@@ -24,6 +24,7 @@ export * from "./person/characterization-annex.entity";
24
24
  export * from "./person/characterization-family.entity";
25
25
  export * from "./person/characterization-linkage.entity";
26
26
  export * from "./vehicle";
27
+ export * from "./accreditation";
27
28
  export * from "./telefonia/telefonia.entity";
28
29
  export * from "./telefonia/historial-ubicacion.entity";
29
30
  export * from "./telefonia/bts.entity";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AAGjE,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,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BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC"}
@@ -44,6 +44,8 @@ __exportStar(require("./person/characterization-family.entity"), exports);
44
44
  __exportStar(require("./person/characterization-linkage.entity"), exports);
45
45
  // Vehicle module
46
46
  __exportStar(require("./vehicle"), exports);
47
+ // Accreditation module
48
+ __exportStar(require("./accreditation"), exports);
47
49
  // Telefonia module
48
50
  __exportStar(require("./telefonia/telefonia.entity"), exports);
49
51
  __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,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,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"}
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;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"0.1.50",
3
+ "version": "0.1.53",
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
+ },
10
17
  "keywords": [
11
18
  "typeorm",
12
19
  "entities",
@@ -32,11 +39,5 @@
32
39
  "reflect-metadata": "^0.2.2",
33
40
  "typeorm": "^0.3.27",
34
41
  "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"
41
42
  }
42
- }
43
+ }