@sigmatech/pergamo 0.1.51 → 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.
@@ -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
@@ -11,16 +12,13 @@ export declare enum AccreditationStatus {
11
12
  * Accreditation Entity
12
13
  *
13
14
  * Represents a biometric accreditation for an event.
14
- * Each accreditation is linked to a person and can have multiple fingerprints.
15
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
15
16
  *
16
17
  * @extends EntityBase - Tenant-specific entity with audit fields
17
18
  */
18
19
  export declare class Accreditation extends EntityBase {
19
20
  person: Person;
20
- eventName: string;
21
- eventDate: Date;
22
- eventLocation?: string;
23
- eventDescription?: string;
21
+ event: Event;
24
22
  status: AccreditationStatus;
25
23
  statusReason?: string;
26
24
  photoUrl?: string;
@@ -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,EAAE,IAAI,CAAC;IAIlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAOf,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B"}
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"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Accreditation = 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;
@@ -25,7 +26,7 @@ var AccreditationStatus;
25
26
  * Accreditation Entity
26
27
  *
27
28
  * Represents a biometric accreditation for an event.
28
- * Each accreditation is linked to a person and can have multiple fingerprints.
29
+ * Each accreditation is linked to a person and an event, and can have multiple fingerprints.
29
30
  *
30
31
  * @extends EntityBase - Tenant-specific entity with audit fields
31
32
  */
@@ -38,21 +39,13 @@ __decorate([
38
39
  __metadata("design:type", person_entity_1.Person)
39
40
  ], Accreditation.prototype, "person", void 0);
40
41
  __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);
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);
56
49
  __decorate([
57
50
  (0, typeorm_1.Column)({
58
51
  type: 'enum',
@@ -91,7 +84,7 @@ __decorate([
91
84
  exports.Accreditation = Accreditation = __decorate([
92
85
  (0, typeorm_1.Entity)('accreditation'),
93
86
  (0, typeorm_1.Index)('accreditation_person_idx', ['person']),
94
- (0, typeorm_1.Index)('accreditation_event_idx', ['eventName', 'eventDate']),
87
+ (0, typeorm_1.Index)('accreditation_event_idx', ['event']),
95
88
  (0, typeorm_1.Index)('accreditation_status_idx', ['status']),
96
89
  (0, typeorm_1.Index)('accreditation_badge_number_idx', ['badgeNumber'], { unique: true })
97
90
  ], 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;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;CAoD5C,CAAA;AApDY,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;AAIhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;gDACzB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8BACjC,IAAI;gDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAA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AA,eAAK,EAAC,yBAAyB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC5D,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,CAoDzB"}
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,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE;QACvD,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,IAAI;KACZ,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACzB,oBAAK;4CAAC;AAQd;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,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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;CAsEpC,CAAA;AAtEY,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;mCAAC;AAOZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACpB;AAcrB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,WAAW,CAAC,OAAO;KAC7B,CAAC;;qCACmB;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;wCAAC;AAMjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;sCAAC;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACzC;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC1B;AAMf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC;;6CACtC;gBArEtB,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,CAsEjB"}
@@ -1,3 +1,4 @@
1
+ export * from './event.entity';
1
2
  export * from './accreditation.entity';
2
3
  export * from './fingerprint.entity';
3
4
  //# 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"}
@@ -14,6 +14,7 @@ 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);
19
20
  //# 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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigmatech/pergamo",
3
- "version": "0.1.51",
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",