@sigmatech/pergamo 0.1.51 → 0.1.54

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,6 @@
1
1
  import { EntityBase } from '../base/_base';
2
2
  import { Person } from '../person/person.entity';
3
+ import { Event } from './event.entity';
3
4
  import { Fingerprint } from './fingerprint.entity';
4
5
  export declare enum AccreditationStatus {
5
6
  PENDING = "PENDING",// Pendiente de captura de huella
@@ -7,20 +8,26 @@ export declare enum AccreditationStatus {
7
8
  REVOKED = "REVOKED",// Revocada
8
9
  EXPIRED = "EXPIRED"
9
10
  }
11
+ /**
12
+ * Origen/fuente de la acreditación
13
+ */
14
+ export declare enum AccreditationSource {
15
+ PREDEFINED_LIST = "PREDEFINED_LIST",// Desde lista VIP/predefinida
16
+ IN_SITU_LIST = "IN_SITU_LIST",// Desde lista in-situ
17
+ EXTRAORDINARY = "EXTRAORDINARY",// Caso extraordinario (aprobación manual)
18
+ OPEN_EVENT = "OPEN_EVENT"
19
+ }
10
20
  /**
11
21
  * Accreditation Entity
12
22
  *
13
23
  * Represents a biometric accreditation for an event.
14
- * Each accreditation is linked to a person and can have multiple fingerprints.
24
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
15
25
  *
16
26
  * @extends EntityBase - Tenant-specific entity with audit fields
17
27
  */
18
28
  export declare class Accreditation extends EntityBase {
19
29
  person: Person;
20
- eventName: string;
21
- eventDate: Date;
22
- eventLocation?: string;
23
- eventDescription?: string;
30
+ event: Event;
24
31
  status: AccreditationStatus;
25
32
  statusReason?: string;
26
33
  photoUrl?: string;
@@ -28,5 +35,38 @@ export declare class Accreditation extends EntityBase {
28
35
  validUntil?: Date;
29
36
  notes?: string;
30
37
  fingerprints?: Fingerprint[];
38
+ /**
39
+ * Origen de la acreditación
40
+ * Indica cómo se originó esta acreditación
41
+ */
42
+ source?: AccreditationSource;
43
+ /**
44
+ * ID de la entrada en la lista de asistentes (si aplica)
45
+ */
46
+ attendeeListId?: string;
47
+ /**
48
+ * Indica si requirió aprobación manual (caso extraordinario)
49
+ */
50
+ requiredApproval: boolean;
51
+ /**
52
+ * Fue aprobado por coordinador (solo para casos extraordinarios)
53
+ */
54
+ coordinatorApproved: boolean;
55
+ /**
56
+ * ID del usuario que dio la aprobación
57
+ */
58
+ approvedById?: string;
59
+ /**
60
+ * Nombre del aprobador (para auditoría rápida)
61
+ */
62
+ approvedByName?: string;
63
+ /**
64
+ * Fecha/hora de la aprobación
65
+ */
66
+ approvedAt?: Date;
67
+ /**
68
+ * Motivo/justificación de la aprobación extraordinaria
69
+ */
70
+ approvalReason?: string;
31
71
  }
32
72
  //# sourceMappingURL=accreditation.entity.d.ts.map
@@ -1 +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,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;IAIhB,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAQ1B,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,EAA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3B;;OAEG;IAEH,mBAAmB,EAAG,OAAO,CAAC;IAE9B;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IAEH,UAAU,CAAC,EAAE,IAAI,CAAC;IAElB;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -9,9 +9,10 @@ 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.Accreditation = exports.AccreditationStatus = void 0;
12
+ exports.Accreditation = exports.AccreditationSource = exports.AccreditationStatus = void 0;
13
13
  const _base_1 = require("../base/_base");
14
14
  const person_entity_1 = require("../person/person.entity");
15
+ const event_entity_1 = require("./event.entity");
15
16
  const fingerprint_entity_1 = require("./fingerprint.entity");
16
17
  const typeorm_1 = require("typeorm");
17
18
  var AccreditationStatus;
@@ -21,11 +22,21 @@ var AccreditationStatus;
21
22
  AccreditationStatus["REVOKED"] = "REVOKED";
22
23
  AccreditationStatus["EXPIRED"] = "EXPIRED";
23
24
  })(AccreditationStatus || (exports.AccreditationStatus = AccreditationStatus = {}));
25
+ /**
26
+ * Origen/fuente de la acreditación
27
+ */
28
+ var AccreditationSource;
29
+ (function (AccreditationSource) {
30
+ AccreditationSource["PREDEFINED_LIST"] = "PREDEFINED_LIST";
31
+ AccreditationSource["IN_SITU_LIST"] = "IN_SITU_LIST";
32
+ AccreditationSource["EXTRAORDINARY"] = "EXTRAORDINARY";
33
+ AccreditationSource["OPEN_EVENT"] = "OPEN_EVENT";
34
+ })(AccreditationSource || (exports.AccreditationSource = AccreditationSource = {}));
24
35
  /**
25
36
  * Accreditation Entity
26
37
  *
27
38
  * Represents a biometric accreditation for an event.
28
- * Each accreditation is linked to a person and can have multiple fingerprints.
39
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
29
40
  *
30
41
  * @extends EntityBase - Tenant-specific entity with audit fields
31
42
  */
@@ -38,21 +49,13 @@ __decorate([
38
49
  __metadata("design:type", person_entity_1.Person)
39
50
  ], Accreditation.prototype, "person", void 0);
40
51
  __decorate([
41
- (0, typeorm_1.Column)({ name: 'event_name', length: 255 }),
42
- __metadata("design:type", String)
43
- ], Accreditation.prototype, "eventName", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ name: 'event_date', type: 'date' }),
46
- __metadata("design:type", Date)
47
- ], Accreditation.prototype, "eventDate", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ name: 'event_location', length: 255, nullable: true }),
50
- __metadata("design:type", String)
51
- ], Accreditation.prototype, "eventLocation", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ name: 'event_description', type: 'text', nullable: true }),
54
- __metadata("design:type", String)
55
- ], Accreditation.prototype, "eventDescription", void 0);
52
+ (0, typeorm_1.ManyToOne)(() => event_entity_1.Event, (event) => event.accreditations, {
53
+ nullable: false,
54
+ eager: true,
55
+ }),
56
+ (0, typeorm_1.JoinColumn)({ name: 'event_id' }),
57
+ __metadata("design:type", event_entity_1.Event)
58
+ ], Accreditation.prototype, "event", void 0);
56
59
  __decorate([
57
60
  (0, typeorm_1.Column)({
58
61
  type: 'enum',
@@ -88,10 +91,47 @@ __decorate([
88
91
  }),
89
92
  __metadata("design:type", Array)
90
93
  ], Accreditation.prototype, "fingerprints", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({
96
+ type: 'enum',
97
+ enum: AccreditationSource,
98
+ nullable: true,
99
+ name: 'source',
100
+ }),
101
+ __metadata("design:type", String)
102
+ ], Accreditation.prototype, "source", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ name: 'attendee_list_id', type: 'uuid', nullable: true }),
105
+ __metadata("design:type", String)
106
+ ], Accreditation.prototype, "attendeeListId", void 0);
107
+ __decorate([
108
+ (0, typeorm_1.Column)({ name: 'required_approval', type: 'boolean', default: false }),
109
+ __metadata("design:type", Boolean)
110
+ ], Accreditation.prototype, "requiredApproval", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({ name: 'coordinator_approved', type: 'boolean', default: false }),
113
+ __metadata("design:type", Boolean)
114
+ ], Accreditation.prototype, "coordinatorApproved", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ name: 'approved_by_id', type: 'uuid', nullable: true }),
117
+ __metadata("design:type", String)
118
+ ], Accreditation.prototype, "approvedById", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ name: 'approved_by_name', length: 255, nullable: true }),
121
+ __metadata("design:type", String)
122
+ ], Accreditation.prototype, "approvedByName", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ name: 'approved_at', type: 'timestamp', nullable: true }),
125
+ __metadata("design:type", Date)
126
+ ], Accreditation.prototype, "approvedAt", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.Column)({ name: 'approval_reason', type: 'text', nullable: true }),
129
+ __metadata("design:type", String)
130
+ ], Accreditation.prototype, "approvalReason", void 0);
91
131
  exports.Accreditation = Accreditation = __decorate([
92
132
  (0, typeorm_1.Entity)('accreditation'),
93
133
  (0, typeorm_1.Index)('accreditation_person_idx', ['person']),
94
- (0, typeorm_1.Index)('accreditation_event_idx', ['eventName', 'eventDate']),
134
+ (0, typeorm_1.Index)('accreditation_event_idx', ['event']),
95
135
  (0, typeorm_1.Index)('accreditation_status_idx', ['status']),
96
136
  (0, typeorm_1.Index)('accreditation_badge_number_idx', ['badgeNumber'], { unique: true })
97
137
  ], Accreditation);
@@ -1 +1 @@
1
- {"version":3,"file":"accreditation.entity.js","sourceRoot":"","sources":["../../../src/entities/accreditation/accreditation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,2DAAiD;AACjD,6DAAmD;AACnD,qCAOiB;AAEjB,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IAC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AI,EAAE,CAAC;;mDAC3C;AAMtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1C;AAMxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;iDAAC;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1C;wBAxGb,aAAa;IALzB,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,CAyGzB"}
@@ -0,0 +1,78 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Event } from './event.entity';
3
+ import { Person } from '../person/person.entity';
4
+ /**
5
+ * Tipo de lista de asistentes
6
+ */
7
+ export declare enum AttendeeListType {
8
+ PREDEFINED = "PREDEFINED",// Lista VIP/Pre-aprobada cargada con anticipación
9
+ IN_SITU = "IN_SITU"
10
+ }
11
+ /**
12
+ * Estado de un registro en la lista
13
+ */
14
+ export declare enum AttendeeStatus {
15
+ PENDING = "PENDING",// En lista, aún no acreditado
16
+ ACCREDITED = "ACCREDITED",// Ya acreditado exitosamente
17
+ DENIED = "DENIED",// Denegado (por motivos específicos)
18
+ NO_SHOW = "NO_SHOW"
19
+ }
20
+ /**
21
+ * EventAttendeeList Entity
22
+ *
23
+ * Representa una entrada en una lista de asistentes pre-cargada para un evento.
24
+ * Permite gestionar listas VIP/predefinidas y listas in-situ.
25
+ *
26
+ * @extends EntityBase - Entidad con soporte multi-tenant y campos de auditoría
27
+ */
28
+ export declare class EventAttendeeList extends EntityBase {
29
+ /**
30
+ * Relación con Evento
31
+ */
32
+ event: Event;
33
+ /**
34
+ * Relación con Persona
35
+ */
36
+ person: Person;
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
41
+ */
42
+ listType: AttendeeListType;
43
+ /**
44
+ * Estado del asistente en la lista
45
+ * - PENDING: En lista, aún no acreditado
46
+ * - ACCREDITED: Ya acreditado exitosamente
47
+ * - DENIED: Denegado
48
+ * - NO_SHOW: No se presentó
49
+ */
50
+ status: AttendeeStatus;
51
+ /**
52
+ * Prioridad/VIP level
53
+ * 0 = normal, mayor = más importante
54
+ */
55
+ priority: number;
56
+ /**
57
+ * Categoría o grupo dentro de la lista
58
+ * @example "Delegación Presidencial", "Prensa", "Seguridad"
59
+ */
60
+ category?: string;
61
+ /**
62
+ * Notas específicas para esta persona en este evento
63
+ */
64
+ notes?: string;
65
+ /**
66
+ * Nombre del archivo/lote de importación (para trazabilidad)
67
+ */
68
+ importBatch?: string;
69
+ /**
70
+ * Fecha de importación
71
+ */
72
+ importedAt?: Date;
73
+ /**
74
+ * Referencia a la acreditación creada (cuando status = ACCREDITED)
75
+ */
76
+ accreditationId?: string;
77
+ }
78
+ //# sourceMappingURL=event-attendee-list.entity.d.ts.map
@@ -0,0 +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"}
@@ -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.EventAttendeeList = exports.AttendeeStatus = exports.AttendeeListType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_1 = require("../base/_base");
15
+ const event_entity_1 = require("./event.entity");
16
+ const person_entity_1 = require("../person/person.entity");
17
+ /**
18
+ * Tipo de lista de asistentes
19
+ */
20
+ var AttendeeListType;
21
+ (function (AttendeeListType) {
22
+ AttendeeListType["PREDEFINED"] = "PREDEFINED";
23
+ AttendeeListType["IN_SITU"] = "IN_SITU";
24
+ })(AttendeeListType || (exports.AttendeeListType = AttendeeListType = {}));
25
+ /**
26
+ * Estado de un registro en la lista
27
+ */
28
+ var AttendeeStatus;
29
+ (function (AttendeeStatus) {
30
+ AttendeeStatus["PENDING"] = "PENDING";
31
+ AttendeeStatus["ACCREDITED"] = "ACCREDITED";
32
+ AttendeeStatus["DENIED"] = "DENIED";
33
+ AttendeeStatus["NO_SHOW"] = "NO_SHOW";
34
+ })(AttendeeStatus || (exports.AttendeeStatus = AttendeeStatus = {}));
35
+ /**
36
+ * EventAttendeeList Entity
37
+ *
38
+ * Representa una entrada en una lista de asistentes pre-cargada para un evento.
39
+ * Permite gestionar listas VIP/predefinidas y listas in-situ.
40
+ *
41
+ * @extends EntityBase - Entidad con soporte multi-tenant y campos de auditoría
42
+ */
43
+ let EventAttendeeList = class EventAttendeeList extends _base_1.EntityBase {
44
+ };
45
+ exports.EventAttendeeList = EventAttendeeList;
46
+ __decorate([
47
+ (0, typeorm_1.ManyToOne)(() => event_entity_1.Event, (event) => event.attendeeLists, {
48
+ nullable: false,
49
+ onDelete: 'CASCADE',
50
+ }),
51
+ (0, typeorm_1.JoinColumn)({ name: 'event_id' }),
52
+ __metadata("design:type", event_entity_1.Event)
53
+ ], EventAttendeeList.prototype, "event", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { nullable: false, eager: true }),
56
+ (0, typeorm_1.JoinColumn)({ name: 'person_id' }),
57
+ __metadata("design:type", person_entity_1.Person)
58
+ ], EventAttendeeList.prototype, "person", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({
61
+ type: 'enum',
62
+ enum: AttendeeListType,
63
+ default: AttendeeListType.PREDEFINED,
64
+ name: 'list_type',
65
+ }),
66
+ __metadata("design:type", String)
67
+ ], EventAttendeeList.prototype, "listType", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({
70
+ type: 'enum',
71
+ enum: AttendeeStatus,
72
+ default: AttendeeStatus.PENDING,
73
+ }),
74
+ __metadata("design:type", String)
75
+ ], EventAttendeeList.prototype, "status", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ type: 'int', default: 0 }),
78
+ __metadata("design:type", Number)
79
+ ], EventAttendeeList.prototype, "priority", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ length: 100, nullable: true }),
82
+ __metadata("design:type", String)
83
+ ], EventAttendeeList.prototype, "category", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
86
+ __metadata("design:type", String)
87
+ ], EventAttendeeList.prototype, "notes", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)({ name: 'import_batch', length: 255, nullable: true }),
90
+ __metadata("design:type", String)
91
+ ], EventAttendeeList.prototype, "importBatch", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)({ name: 'imported_at', type: 'timestamp', nullable: true }),
94
+ __metadata("design:type", Date)
95
+ ], EventAttendeeList.prototype, "importedAt", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ name: 'accreditation_id', type: 'uuid', nullable: true }),
98
+ __metadata("design:type", String)
99
+ ], EventAttendeeList.prototype, "accreditationId", void 0);
100
+ exports.EventAttendeeList = EventAttendeeList = __decorate([
101
+ (0, typeorm_1.Entity)('event_attendee_list'),
102
+ (0, typeorm_1.Index)('eal_event_person_idx', ['event', 'person'], { unique: true }),
103
+ (0, typeorm_1.Index)('eal_event_type_idx', ['event', 'listType']),
104
+ (0, typeorm_1.Index)('eal_event_status_idx', ['event', 'status'])
105
+ ], EventAttendeeList);
106
+ //# sourceMappingURL=event-attendee-list.entity.js.map
@@ -0,0 +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,gBAAgB,QAG3B;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;IACzB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;;;;;;GAOG;AAKI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,kBAAU;CAkFhD,CAAA;AAlFY,8CAAiB;AAS5B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE;QACtD,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACzB,oBAAK;gDAAC;AAOd;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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AAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;GACtC,iBAAiB,CAkF7B"}
@@ -0,0 +1,86 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Accreditation } from './accreditation.entity';
3
+ import { EventAttendeeList } from './event-attendee-list.entity';
4
+ /**
5
+ * Estados posibles de un evento
6
+ */
7
+ export declare enum EventStatus {
8
+ PLANNED = "PLANNED",
9
+ ACTIVE = "ACTIVE",
10
+ COMPLETED = "COMPLETED",
11
+ CANCELLED = "CANCELLED"
12
+ }
13
+ /**
14
+ * Tipo de evento según control de acceso
15
+ */
16
+ export declare enum EventType {
17
+ OPEN = "OPEN",// Evento abierto - cualquier persona puede acreditarse
18
+ RESTRICTED = "RESTRICTED"
19
+ }
20
+ /**
21
+ * Event Entity
22
+ *
23
+ * Representa un evento para el cual se emiten acreditaciones.
24
+ * Un evento puede tener múltiples acreditaciones.
25
+ *
26
+ * @entity event
27
+ */
28
+ export declare class Event extends EntityBase {
29
+ /**
30
+ * Nombre del evento
31
+ * @example "Cumbre Presidencial 2024"
32
+ */
33
+ name: string;
34
+ /**
35
+ * Fecha del evento
36
+ */
37
+ date: Date;
38
+ /**
39
+ * Ubicación del evento
40
+ * @example "Palacio de Miraflores, Caracas"
41
+ */
42
+ location?: string;
43
+ /**
44
+ * Descripción del evento
45
+ */
46
+ description?: string;
47
+ /**
48
+ * Estado del evento
49
+ * - PLANNED: Planificado
50
+ * - ACTIVE: En curso
51
+ * - COMPLETED: Completado
52
+ * - CANCELLED: Cancelado
53
+ */
54
+ status: EventStatus;
55
+ /**
56
+ * Tipo de evento según control de acceso
57
+ * - OPEN: Cualquier persona puede acreditarse sin estar en lista
58
+ * - RESTRICTED: Solo personas en lista o con aprobación del coordinador
59
+ */
60
+ eventType: EventType;
61
+ /**
62
+ * Fecha de inicio del evento (hora específica)
63
+ */
64
+ startTime?: Date;
65
+ /**
66
+ * Fecha de fin del evento (hora específica)
67
+ */
68
+ endTime?: Date;
69
+ /**
70
+ * Capacidad máxima de acreditaciones
71
+ */
72
+ maxCapacity?: number;
73
+ /**
74
+ * Notas adicionales del evento
75
+ */
76
+ notes?: string;
77
+ /**
78
+ * Acreditaciones asociadas a este evento
79
+ */
80
+ accreditations?: Accreditation[];
81
+ /**
82
+ * Listas de asistentes pre-cargadas para este evento
83
+ */
84
+ attendeeLists?: EventAttendeeList[];
85
+ }
86
+ //# 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;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;GAEG;AACH,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,IAAI,SAAS,CAAE,uDAAuD;IACtE,UAAU,eAAe;CAC1B;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;;;;OAIG;IAOH,SAAS,EAAG,SAAS,CAAC;IAEtB;;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;IAEjC;;OAEG;IAEH,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACrC"}
@@ -0,0 +1,108 @@
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.EventType = 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
+ const event_attendee_list_entity_1 = require("./event-attendee-list.entity");
17
+ /**
18
+ * Estados posibles de un evento
19
+ */
20
+ var EventStatus;
21
+ (function (EventStatus) {
22
+ EventStatus["PLANNED"] = "PLANNED";
23
+ EventStatus["ACTIVE"] = "ACTIVE";
24
+ EventStatus["COMPLETED"] = "COMPLETED";
25
+ EventStatus["CANCELLED"] = "CANCELLED";
26
+ })(EventStatus || (exports.EventStatus = EventStatus = {}));
27
+ /**
28
+ * Tipo de evento según control de acceso
29
+ */
30
+ var EventType;
31
+ (function (EventType) {
32
+ EventType["OPEN"] = "OPEN";
33
+ EventType["RESTRICTED"] = "RESTRICTED";
34
+ })(EventType || (exports.EventType = EventType = {}));
35
+ /**
36
+ * Event Entity
37
+ *
38
+ * Representa un evento para el cual se emiten acreditaciones.
39
+ * Un evento puede tener múltiples acreditaciones.
40
+ *
41
+ * @entity event
42
+ */
43
+ let Event = class Event extends _base_1.EntityBase {
44
+ };
45
+ exports.Event = Event;
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ length: 255 }),
48
+ __metadata("design:type", String)
49
+ ], Event.prototype, "name", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'date' }),
52
+ __metadata("design:type", Date)
53
+ ], Event.prototype, "date", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
56
+ __metadata("design:type", String)
57
+ ], Event.prototype, "location", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
60
+ __metadata("design:type", String)
61
+ ], Event.prototype, "description", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({
64
+ type: 'enum',
65
+ enum: EventStatus,
66
+ default: EventStatus.PLANNED,
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], Event.prototype, "status", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({
72
+ type: 'enum',
73
+ enum: EventType,
74
+ default: EventType.RESTRICTED,
75
+ name: 'event_type',
76
+ }),
77
+ __metadata("design:type", String)
78
+ ], Event.prototype, "eventType", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ name: 'start_time', type: 'timestamp', nullable: true }),
81
+ __metadata("design:type", Date)
82
+ ], Event.prototype, "startTime", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ name: 'end_time', type: 'timestamp', nullable: true }),
85
+ __metadata("design:type", Date)
86
+ ], Event.prototype, "endTime", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ name: 'max_capacity', type: 'int', nullable: true }),
89
+ __metadata("design:type", Number)
90
+ ], Event.prototype, "maxCapacity", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
93
+ __metadata("design:type", String)
94
+ ], Event.prototype, "notes", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.OneToMany)(() => accreditation_entity_1.Accreditation, (accreditation) => accreditation.event),
97
+ __metadata("design:type", Array)
98
+ ], Event.prototype, "accreditations", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.OneToMany)(() => event_attendee_list_entity_1.EventAttendeeList, (list) => list.event),
101
+ __metadata("design:type", Array)
102
+ ], Event.prototype, "attendeeLists", void 0);
103
+ exports.Event = Event = __decorate([
104
+ (0, typeorm_1.Entity)('event'),
105
+ (0, typeorm_1.Index)('event_name_date_idx', ['name', 'date']),
106
+ (0, typeorm_1.Index)('event_date_idx', ['date'])
107
+ ], Event);
108
+ //# 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;AACvD,6EAAiE;AAEjE;;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;AAED;;GAEG;AACH,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,sCAAyB,CAAA;AAC3B,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAGD;;;;;;;GAOG;AAII,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kBAAU;CAyFpC,CAAA;AAzFY,sBAAK;AAMhB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCACV;AAMd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8BAClB,IAAI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C,KAAK,CAAC;;4CACrB;gBAxFzB,KAAK;IAHjB,IAAA,gBAAM,EAAC,OAAO,CAAC;IACf,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC;GACrB,KAAK,CAyFjB"}
@@ -1,3 +1,5 @@
1
+ export * from './event.entity';
1
2
  export * from './accreditation.entity';
2
3
  export * from './fingerprint.entity';
4
+ export * from './event-attendee-list.entity';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/accreditation/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
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;AACrC,cAAc,8BAA8B,CAAC"}
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./event.entity"), exports);
17
18
  __exportStar(require("./accreditation.entity"), exports);
18
19
  __exportStar(require("./fingerprint.entity"), exports);
20
+ __exportStar(require("./event-attendee-list.entity"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/accreditation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/accreditation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,uDAAqC;AACrC,+DAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigmatech/pergamo",
3
- "version": "0.1.51",
3
+ "version": "0.1.54",
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",