@sigmatech/pergamo 0.1.70 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/ubicar/README.md +8 -0
- package/contracts/ubicar/v1/command.location.requested.schema.json +14 -0
- package/contracts/ubicar/v1/command.subscriber.requested.schema.json +14 -0
- package/contracts/ubicar/v1/event-envelope.schema.json +32 -0
- package/contracts/ubicar/v1/parse.location.completed.schema.json +17 -0
- package/contracts/ubicar/v1/request.final.schema.json +16 -0
- package/contracts/ubicar/v1/request.state.changed.schema.json +14 -0
- package/contracts/ubicar/v1/sms.dispatch.requested.schema.json +18 -0
- package/contracts/ubicar/v1/sms.received.raw.schema.json +14 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +18 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/ubicar.d.ts +4 -0
- package/dist/contracts/ubicar.d.ts.map +1 -0
- package/dist/contracts/ubicar.js +15 -0
- package/dist/contracts/ubicar.js.map +1 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +2 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/telefonia/bts.entity.d.ts +2 -0
- package/dist/entities/telefonia/bts.entity.d.ts.map +1 -1
- package/dist/entities/telefonia/bts.entity.js +18 -6
- package/dist/entities/telefonia/bts.entity.js.map +1 -1
- package/dist/entities/telefonia/location-response.entity.d.ts +4 -4
- package/dist/entities/telefonia/location-response.entity.d.ts.map +1 -1
- package/dist/entities/telefonia/location-response.entity.js +39 -34
- package/dist/entities/telefonia/location-response.entity.js.map +1 -1
- package/dist/entities/tenant/index.d.ts +2 -0
- package/dist/entities/tenant/index.d.ts.map +1 -0
- package/dist/entities/tenant/index.js +18 -0
- package/dist/entities/tenant/index.js.map +1 -0
- package/dist/entities/tenant/tenant.entity.d.ts +42 -0
- package/dist/entities/tenant/tenant.entity.d.ts.map +1 -0
- package/dist/entities/tenant/tenant.entity.js +58 -0
- package/dist/entities/tenant/tenant.entity.js.map +1 -0
- package/dist/enums/index.d.ts +4 -3
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/telefonia.enum.d.ts +6 -0
- package/dist/enums/telefonia.enum.d.ts.map +1 -0
- package/dist/enums/telefonia.enum.js +10 -0
- package/dist/enums/telefonia.enum.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# UBICAR Contracts (Canonical)
|
|
2
|
+
|
|
3
|
+
Ubicacion canonica de contratos JSON Schema para UBICAR v2.
|
|
4
|
+
|
|
5
|
+
Ruta vigente:
|
|
6
|
+
- `/Users/soyrocatech/Proyectos/SP3/repos/dataven-full-context-latest/pergamo/contracts/ubicar/v1`
|
|
7
|
+
|
|
8
|
+
Estos contratos reemplazan copias locales en microservicios UBICAR.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/command.location.requested.schema.json",
|
|
4
|
+
"title": "command.location.requested payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["phoneNumber", "userId", "priority"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"phoneNumber": { "type": "string", "pattern": "^\\+?58?4\\d{9}$" },
|
|
9
|
+
"userId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
|
|
11
|
+
"metadata": { "type": "object" }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/command.subscriber.requested.schema.json",
|
|
4
|
+
"title": "command.subscriber.requested payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["phoneNumber", "userId"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"phoneNumber": { "type": "string", "pattern": "^\\+?58?4\\d{9}$" },
|
|
9
|
+
"userId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
|
|
11
|
+
"metadata": { "type": "object" }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/event-envelope.schema.json",
|
|
4
|
+
"title": "Ubicar Event Envelope v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"eventId",
|
|
8
|
+
"eventType",
|
|
9
|
+
"eventVersion",
|
|
10
|
+
"occurredAt",
|
|
11
|
+
"correlationId",
|
|
12
|
+
"causationId",
|
|
13
|
+
"requestId",
|
|
14
|
+
"tenant",
|
|
15
|
+
"carrier",
|
|
16
|
+
"payload"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"eventId": { "type": "string", "minLength": 1 },
|
|
20
|
+
"eventType": { "type": "string", "minLength": 1 },
|
|
21
|
+
"eventVersion": { "type": "string", "const": "v1" },
|
|
22
|
+
"occurredAt": { "type": "string", "format": "date-time" },
|
|
23
|
+
"correlationId": { "type": "string", "minLength": 1 },
|
|
24
|
+
"causationId": { "type": "string", "minLength": 1 },
|
|
25
|
+
"requestId": { "type": "string", "minLength": 1 },
|
|
26
|
+
"tenant": { "type": "string", "minLength": 1 },
|
|
27
|
+
"carrier": { "type": "string", "enum": ["digitel", "movistar"] },
|
|
28
|
+
"deviceId": { "type": "string" },
|
|
29
|
+
"payload": { "type": "object" }
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/parse.location.completed.schema.json",
|
|
4
|
+
"title": "parse.location.completed payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["phoneNumber", "responseType", "rawMessage"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"phoneNumber": { "type": "string", "pattern": "^58?4\\d{9}$" },
|
|
9
|
+
"responseType": { "type": "string", "enum": ["complete", "partial", "not_found", "error"] },
|
|
10
|
+
"latitude": { "type": ["number", "string"] },
|
|
11
|
+
"longitude": { "type": ["number", "string"] },
|
|
12
|
+
"latitudeDMS": { "type": "string" },
|
|
13
|
+
"longitudeDMS": { "type": "string" },
|
|
14
|
+
"rawMessage": { "type": "string" }
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": true
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/request.final.schema.json",
|
|
4
|
+
"title": "request.completed/request.failed payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["finalStatus", "requestKind", "phoneNumber"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"finalStatus": { "type": "string", "enum": ["completed", "partial", "not_found", "failed", "error"] },
|
|
9
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
10
|
+
"errorCode": { "type": "string" },
|
|
11
|
+
"errorMessage": { "type": "string" },
|
|
12
|
+
"requestKind": { "type": "string", "enum": ["location", "subscriber"] },
|
|
13
|
+
"phoneNumber": { "type": "string", "pattern": "^4\\d{9}$" }
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": true
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/request.state.changed.schema.json",
|
|
4
|
+
"title": "request.state.changed payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["status", "phoneNumber", "requestKind"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"status": { "type": "string", "enum": ["dispatched", "sent", "waiting", "completed", "failed"] },
|
|
9
|
+
"sourceEvent": { "type": "string" },
|
|
10
|
+
"phoneNumber": { "type": "string", "pattern": "^4\\d{9}$" },
|
|
11
|
+
"requestKind": { "type": "string", "enum": ["location", "subscriber"] }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/sms.dispatch.requested.schema.json",
|
|
4
|
+
"title": "sms.dispatch.requested payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["destination", "text", "phoneNumber", "attempt", "maxAttempts", "sourceEvent", "requestKind"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"destination": { "type": "string", "minLength": 1 },
|
|
9
|
+
"text": { "type": "string", "minLength": 1 },
|
|
10
|
+
"phoneNumber": { "type": "string", "pattern": "^4\\d{9}$" },
|
|
11
|
+
"attempt": { "type": "integer", "minimum": 1 },
|
|
12
|
+
"maxAttempts": { "type": "integer", "minimum": 1 },
|
|
13
|
+
"timeoutMs": { "type": "integer", "minimum": 1 },
|
|
14
|
+
"sourceEvent": { "type": "string" },
|
|
15
|
+
"requestKind": { "type": "string", "enum": ["location", "subscriber"] }
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": true
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ubicar/contracts/v1/sms.received.raw.schema.json",
|
|
4
|
+
"title": "sms.received.raw payload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["senderNumber", "textDecoded"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"senderNumber": { "type": "string", "minLength": 1 },
|
|
9
|
+
"textDecoded": { "type": "string", "minLength": 1 },
|
|
10
|
+
"udh": { "type": "string" },
|
|
11
|
+
"providerMessageId": { "type": "string" }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./ubicar"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const UBICAR_CONTRACTS_BASE_PATH = "contracts/ubicar/v1";
|
|
2
|
+
export declare const UBICAR_CONTRACT_FILES: readonly ["event-envelope.schema.json", "command.location.requested.schema.json", "command.subscriber.requested.schema.json", "sms.dispatch.requested.schema.json", "sms.received.raw.schema.json", "parse.location.completed.schema.json", "request.state.changed.schema.json", "request.final.schema.json"];
|
|
3
|
+
export type UbicarContractFile = (typeof UBICAR_CONTRACT_FILES)[number];
|
|
4
|
+
//# sourceMappingURL=ubicar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ubicar.d.ts","sourceRoot":"","sources":["../../src/contracts/ubicar.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAEhE,eAAO,MAAM,qBAAqB,+SASxB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UBICAR_CONTRACT_FILES = exports.UBICAR_CONTRACTS_BASE_PATH = void 0;
|
|
4
|
+
exports.UBICAR_CONTRACTS_BASE_PATH = "contracts/ubicar/v1";
|
|
5
|
+
exports.UBICAR_CONTRACT_FILES = [
|
|
6
|
+
"event-envelope.schema.json",
|
|
7
|
+
"command.location.requested.schema.json",
|
|
8
|
+
"command.subscriber.requested.schema.json",
|
|
9
|
+
"sms.dispatch.requested.schema.json",
|
|
10
|
+
"sms.received.raw.schema.json",
|
|
11
|
+
"parse.location.completed.schema.json",
|
|
12
|
+
"request.state.changed.schema.json",
|
|
13
|
+
"request.final.schema.json",
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=ubicar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ubicar.js","sourceRoot":"","sources":["../../src/contracts/ubicar.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,qBAAqB,CAAC;AAEnD,QAAA,qBAAqB,GAAG;IACnC,4BAA4B;IAC5B,wCAAwC;IACxC,0CAA0C;IAC1C,oCAAoC;IACpC,8BAA8B;IAC9B,sCAAsC;IACtC,mCAAmC;IACnC,2BAA2B;CACnB,CAAC"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -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,CAAC;AACtC,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAG3C,cAAc,WAAW,CAAC;AAG1B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AAGj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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;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,OAAO,CAAC;AAGtB,cAAc,UAAU,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -135,4 +135,6 @@ __exportStar(require("./integrations"), exports);
|
|
|
135
135
|
__exportStar(require("./osint"), exports);
|
|
136
136
|
// CDR module
|
|
137
137
|
__exportStar(require("./cdr"), exports);
|
|
138
|
+
// Tenant module (Multi-tenant configuration)
|
|
139
|
+
__exportStar(require("./tenant"), exports);
|
|
138
140
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AACzD,4DAA0C;AAC1C,6DAA2C;AAE3C,iBAAiB;AACjB,4CAA0B;AAE1B,uBAAuB;AACvB,kDAAgC;AAEhC,wDAAwD;AACxD,6DAA2C;AAC3C,mEAAiD;AACjD,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;AACvD,gEAA8C;AAE9C,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;AAExB,+DAA+D;AAC/D,iDAA+B;AAE/B,eAAe;AACf,0CAAwB;AAExB,aAAa;AACb,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6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AAyD;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;AAExB,+DAA+D;AAC/D,iDAA+B;AAE/B,eAAe;AACf,0CAAwB;AAExB,aAAa;AACb,wCAAsB;AAEtB,6CAA6C;AAC7C,2CAAyB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from "typeorm";
|
|
2
2
|
import { Point } from "geojson";
|
|
3
3
|
import { HistorialUbicacion } from "./historial-ubicacion.entity";
|
|
4
|
+
import { EmpresaBTS } from "../../enums";
|
|
4
5
|
export declare class BTS extends BaseEntity {
|
|
5
6
|
id: string;
|
|
6
7
|
cellid: string;
|
|
@@ -12,6 +13,7 @@ export declare class BTS extends BaseEntity {
|
|
|
12
13
|
parroquia?: string;
|
|
13
14
|
nombre?: string;
|
|
14
15
|
tecnologia?: string;
|
|
16
|
+
empresa?: EmpresaBTS;
|
|
15
17
|
/**
|
|
16
18
|
* Relación con `HistorialUbicacion` para obtener el historial de teléfonos registrados en la BTS.
|
|
17
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bts.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/telefonia/bts.entity.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"bts.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/telefonia/bts.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAMX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,qBAEa,GAAI,SAAQ,UAAU;IAEjC,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAUjB,SAAS,CAAC,EAAE,KAAK,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,OAAO,CAAC,EAAE,UAAU,CAAC;IAErB;;OAEG;IAIH,kBAAkB,EAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CACpD"}
|
|
@@ -12,23 +12,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BTS = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const historial_ubicacion_entity_1 = require("./historial-ubicacion.entity");
|
|
15
|
+
const enums_1 = require("../../enums");
|
|
15
16
|
let BTS = class BTS extends typeorm_1.BaseEntity {
|
|
16
17
|
};
|
|
17
18
|
exports.BTS = BTS;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], BTS.prototype, "id", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type:
|
|
24
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 15, nullable: false }),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], BTS.prototype, "cellid", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type:
|
|
28
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
29
|
__metadata("design:type", Number)
|
|
29
30
|
], BTS.prototype, "azimuth", void 0);
|
|
30
31
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({
|
|
32
|
+
(0, typeorm_1.Column)({
|
|
33
|
+
type: "geometry",
|
|
34
|
+
spatialFeatureType: "Point",
|
|
35
|
+
srid: 4326,
|
|
36
|
+
nullable: true,
|
|
37
|
+
}),
|
|
32
38
|
(0, typeorm_1.Index)({ spatial: true }) // Índice espacial GIST para optimizar consultas geográficas
|
|
33
39
|
,
|
|
34
40
|
__metadata("design:type", Object)
|
|
@@ -58,11 +64,17 @@ __decorate([
|
|
|
58
64
|
__metadata("design:type", String)
|
|
59
65
|
], BTS.prototype, "tecnologia", void 0);
|
|
60
66
|
__decorate([
|
|
61
|
-
(0, typeorm_1.
|
|
67
|
+
(0, typeorm_1.Column)({ type: "enum", enum: enums_1.EmpresaBTS, nullable: false }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], BTS.prototype, "empresa", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.OneToMany)(() => historial_ubicacion_entity_1.HistorialUbicacion, (historial) => historial.bts, {
|
|
72
|
+
lazy: true,
|
|
73
|
+
}),
|
|
62
74
|
__metadata("design:type", Promise)
|
|
63
75
|
], BTS.prototype, "historialTelefonos", void 0);
|
|
64
76
|
exports.BTS = BTS = __decorate([
|
|
65
77
|
(0, typeorm_1.Entity)({ name: "bts" }),
|
|
66
|
-
(0, typeorm_1.Index)(
|
|
78
|
+
(0, typeorm_1.Index)("idx_cellid", ["cellid"], { unique: true }) // Índice único para cellid
|
|
67
79
|
], BTS);
|
|
68
80
|
//# sourceMappingURL=bts.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bts.entity.js","sourceRoot":"","sources":["../../../src/entities/telefonia/bts.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAEjB,6EAAkE;
|
|
1
|
+
{"version":3,"file":"bts.entity.js","sourceRoot":"","sources":["../../../src/entities/telefonia/bts.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAEjB,6EAAkE;AAClE,uCAAyC;AAIlC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,oBAAU;CAgDlC,CAAA;AAhDY,kBAAG;AAEd;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;+BACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mCACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACvB;AAUjB;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,UAAU;QAChB,kBAAkB,EAAE,OAAO;QAC3B,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,eAAK,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,4DAA4D;;;sCACpE;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACxC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACrC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACrC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACpC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oCACvC;AAQrB;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAkB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE;QACjE,IAAI,EAAE,IAAI;KACX,CAAC;;+CACiD;cA/CxC,GAAG;IAFf,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACvB,IAAA,eAAK,EAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,2BAA2B;GACjE,GAAG,CAgDf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { Point } from
|
|
3
|
-
import { LocationRequest } from
|
|
4
|
-
import { BTS } from
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Point } from "geojson";
|
|
3
|
+
import { LocationRequest } from "./location-request.entity";
|
|
4
|
+
import { BTS } from "./bts.entity";
|
|
5
5
|
/**
|
|
6
6
|
* Tipo de respuesta de ubicación
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-response.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/telefonia/location-response.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,UAAU,EAGX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa,CAAE,6BAA6B;IACpD,OAAO,YAAY,CAAE,oBAAoB;IACzC,SAAS,cAAc,CAAE,iCAAiC;IAC1D,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,qBAMa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAC;IAEZ;;OAEG;IAMH,OAAO,EAAG,eAAe,CAAC;IAE1B;;OAEG;IAEH,WAAW,EAAG,MAAM,CAAC;IAErB;;OAEG;IAMH,YAAY,EAAG,oBAAoB,CAAC;IAEpC;;;OAGG;IAOH,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;
|
|
1
|
+
{"version":3,"file":"location-response.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/telefonia/location-response.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,UAAU,EAGX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC;;GAEG;AACH,oBAA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;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B;;OAEG;IAEH,SAAS,EAAG,IAAI,CAAC;IAEjB;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAkB1D;;OAEG;IACH,UAAU,IAAI,OAAO;IAQrB;;OAEG;IACH,SAAS,IAAI,OAAO;CAMrB"}
|
|
@@ -62,24 +62,24 @@ let LocationResponse = class LocationResponse extends typeorm_1.BaseEntity {
|
|
|
62
62
|
};
|
|
63
63
|
exports.LocationResponse = LocationResponse;
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(
|
|
65
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], LocationResponse.prototype, "id", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.ManyToOne)(() => location_request_entity_1.LocationRequest, (request) => request.responses, {
|
|
70
70
|
nullable: false,
|
|
71
|
-
onDelete:
|
|
71
|
+
onDelete: "CASCADE",
|
|
72
72
|
}),
|
|
73
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
73
|
+
(0, typeorm_1.JoinColumn)({ name: "request_id" }),
|
|
74
74
|
__metadata("design:type", location_request_entity_1.LocationRequest)
|
|
75
75
|
], LocationResponse.prototype, "request", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type:
|
|
77
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 15, nullable: false }),
|
|
78
78
|
__metadata("design:type", String)
|
|
79
79
|
], LocationResponse.prototype, "phoneNumber", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, typeorm_1.Column)({
|
|
82
|
-
type:
|
|
82
|
+
type: "enum",
|
|
83
83
|
enum: LocationResponseType,
|
|
84
84
|
default: LocationResponseType.COMPLETE,
|
|
85
85
|
}),
|
|
@@ -87,100 +87,105 @@ __decorate([
|
|
|
87
87
|
], LocationResponse.prototype, "responseType", void 0);
|
|
88
88
|
__decorate([
|
|
89
89
|
(0, typeorm_1.Column)({
|
|
90
|
-
type:
|
|
91
|
-
spatialFeatureType:
|
|
90
|
+
type: "geometry",
|
|
91
|
+
spatialFeatureType: "Point",
|
|
92
92
|
srid: 4326,
|
|
93
93
|
nullable: true,
|
|
94
94
|
}),
|
|
95
95
|
__metadata("design:type", Object)
|
|
96
96
|
], LocationResponse.prototype, "coordinates", void 0);
|
|
97
97
|
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ type:
|
|
98
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 7, nullable: true }),
|
|
99
99
|
__metadata("design:type", Number)
|
|
100
100
|
], LocationResponse.prototype, "latitude", void 0);
|
|
101
101
|
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type:
|
|
102
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 7, nullable: true }),
|
|
103
103
|
__metadata("design:type", Number)
|
|
104
104
|
], LocationResponse.prototype, "longitude", void 0);
|
|
105
105
|
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type:
|
|
106
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
107
107
|
__metadata("design:type", String)
|
|
108
108
|
], LocationResponse.prototype, "address", void 0);
|
|
109
109
|
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type:
|
|
110
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
111
111
|
__metadata("design:type", String)
|
|
112
112
|
], LocationResponse.prototype, "orientation", void 0);
|
|
113
113
|
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ type:
|
|
114
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
115
115
|
__metadata("design:type", Number)
|
|
116
116
|
], LocationResponse.prototype, "degrees", void 0);
|
|
117
117
|
__decorate([
|
|
118
|
-
(0, typeorm_1.ManyToOne)(() => bts_entity_1.BTS, {
|
|
119
|
-
|
|
118
|
+
(0, typeorm_1.ManyToOne)(() => bts_entity_1.BTS, {
|
|
119
|
+
nullable: true,
|
|
120
|
+
eager: true,
|
|
121
|
+
onDelete: "SET NULL",
|
|
122
|
+
onUpdate: "CASCADE",
|
|
123
|
+
}),
|
|
124
|
+
(0, typeorm_1.JoinColumn)({ name: "bts_id" }),
|
|
120
125
|
__metadata("design:type", bts_entity_1.BTS)
|
|
121
126
|
], LocationResponse.prototype, "bts", void 0);
|
|
122
127
|
__decorate([
|
|
123
|
-
(0, typeorm_1.Column)({ type:
|
|
128
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
124
129
|
__metadata("design:type", String)
|
|
125
130
|
], LocationResponse.prototype, "cellId", void 0);
|
|
126
131
|
__decorate([
|
|
127
|
-
(0, typeorm_1.Column)({ type:
|
|
132
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
128
133
|
__metadata("design:type", String)
|
|
129
134
|
], LocationResponse.prototype, "cellName", void 0);
|
|
130
135
|
__decorate([
|
|
131
|
-
(0, typeorm_1.Column)({ type:
|
|
136
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
132
137
|
__metadata("design:type", Number)
|
|
133
138
|
], LocationResponse.prototype, "coverageRadius", void 0);
|
|
134
139
|
__decorate([
|
|
135
|
-
(0, typeorm_1.Column)({ type:
|
|
140
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
136
141
|
__metadata("design:type", Number)
|
|
137
142
|
], LocationResponse.prototype, "accuracy", void 0);
|
|
138
143
|
__decorate([
|
|
139
|
-
(0, typeorm_1.Column)({ type:
|
|
144
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
140
145
|
__metadata("design:type", String)
|
|
141
146
|
], LocationResponse.prototype, "networkType", void 0);
|
|
142
147
|
__decorate([
|
|
143
|
-
(0, typeorm_1.Column)({ type:
|
|
148
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, default: "Digitel" }),
|
|
144
149
|
__metadata("design:type", String)
|
|
145
150
|
], LocationResponse.prototype, "carrier", void 0);
|
|
146
151
|
__decorate([
|
|
147
|
-
(0, typeorm_1.Column)({ type:
|
|
152
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
148
153
|
__metadata("design:type", Date)
|
|
149
154
|
], LocationResponse.prototype, "reportedAt", void 0);
|
|
150
155
|
__decorate([
|
|
151
|
-
(0, typeorm_1.Column)({ type:
|
|
156
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: false }),
|
|
152
157
|
__metadata("design:type", Date)
|
|
153
158
|
], LocationResponse.prototype, "receivedAt", void 0);
|
|
154
159
|
__decorate([
|
|
155
|
-
(0, typeorm_1.Column)({ type:
|
|
160
|
+
(0, typeorm_1.Column)({ type: "int", default: 1 }),
|
|
156
161
|
__metadata("design:type", Number)
|
|
157
162
|
], LocationResponse.prototype, "messagePart", void 0);
|
|
158
163
|
__decorate([
|
|
159
|
-
(0, typeorm_1.Column)({ type:
|
|
164
|
+
(0, typeorm_1.Column)({ type: "int", default: 1 }),
|
|
160
165
|
__metadata("design:type", Number)
|
|
161
166
|
], LocationResponse.prototype, "totalParts", void 0);
|
|
162
167
|
__decorate([
|
|
163
|
-
(0, typeorm_1.Column)({ type:
|
|
168
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
164
169
|
__metadata("design:type", String)
|
|
165
170
|
], LocationResponse.prototype, "rawMessage", void 0);
|
|
166
171
|
__decorate([
|
|
167
|
-
(0, typeorm_1.Column)({ type:
|
|
172
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
168
173
|
__metadata("design:type", Object)
|
|
169
174
|
], LocationResponse.prototype, "rawMessages", void 0);
|
|
170
175
|
__decorate([
|
|
171
|
-
(0, typeorm_1.Column)({ type:
|
|
176
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
172
177
|
__metadata("design:type", Object)
|
|
173
178
|
], LocationResponse.prototype, "metadata", void 0);
|
|
174
179
|
__decorate([
|
|
175
|
-
(0, typeorm_1.CreateDateColumn)({ type:
|
|
180
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamp" }),
|
|
176
181
|
__metadata("design:type", Date)
|
|
177
182
|
], LocationResponse.prototype, "createdAt", void 0);
|
|
178
183
|
exports.LocationResponse = LocationResponse = __decorate([
|
|
179
|
-
(0, typeorm_1.Entity)({ name:
|
|
180
|
-
(0, typeorm_1.Index)(
|
|
181
|
-
(0, typeorm_1.Index)(
|
|
182
|
-
(0, typeorm_1.Index)(
|
|
183
|
-
(0, typeorm_1.Index)(
|
|
184
|
-
(0, typeorm_1.Index)(
|
|
184
|
+
(0, typeorm_1.Entity)({ name: "location_responses" }),
|
|
185
|
+
(0, typeorm_1.Index)("idx_location_response_request", ["request"]),
|
|
186
|
+
(0, typeorm_1.Index)("idx_location_response_phone", ["phoneNumber"]),
|
|
187
|
+
(0, typeorm_1.Index)("idx_location_response_bts", ["bts"]),
|
|
188
|
+
(0, typeorm_1.Index)("idx_location_response_received", ["receivedAt"]),
|
|
189
|
+
(0, typeorm_1.Index)("idx_location_response_geom", ["coordinates"], { spatial: true })
|
|
185
190
|
], LocationResponse);
|
|
186
191
|
//# sourceMappingURL=location-response.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-response.entity.js","sourceRoot":"","sources":["../../../src/entities/telefonia/location-response.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AAEjB,uEAA4D;AAC5D,6CAAmC;AAEnC;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,uCAAe,CAAA;AACjB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED;;GAEG;AAOI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;
|
|
1
|
+
{"version":3,"file":"location-response.entity.js","sourceRoot":"","sources":["../../../src/entities/telefonia/location-response.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AAEjB,uEAA4D;AAC5D,6CAAmC;AAEnC;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,uCAAe,CAAA;AACjB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED;;GAEG;AAOI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAwK9C;;;OAGG;IACH,iBAAiB,CAAC,GAAW,EAAE,GAAW;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAEnD,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,+BAA+B;QACjD,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;QAC3C,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;QACjC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;QACnD,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;QAEpD,MAAM,CAAC,GACL,IAAI,CAAC,GAAG,CAAC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EAAE,IAAI,EAAE,CAAC;;oDACrB;AAMpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACL;AAMrC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;AAM/B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;mDAAC;2BAtKN,gBAAgB;IAN5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;IACtC,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,SAAS,CAAC,CAAC;IACnD,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,aAAa,CAAC,CAAC;IACrD,IAAA,eAAK,EAAC,2BAA2B,EAAE,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,gCAAgC,EAAE,CAAC,YAAY,CAAC,CAAC;IACvD,IAAA,eAAK,EAAC,4BAA4B,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;GAC3D,gBAAgB,CAkN5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/tenant/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./tenant.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tenant/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
/**
|
|
3
|
+
* Keycloak authentication configuration
|
|
4
|
+
*/
|
|
5
|
+
export interface TenantKeycloakConfig {
|
|
6
|
+
authServerUrl: string;
|
|
7
|
+
realm: string;
|
|
8
|
+
clientId: string;
|
|
9
|
+
secret: string;
|
|
10
|
+
cookieKey: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Database isolation configuration (optional)
|
|
14
|
+
*/
|
|
15
|
+
export interface TenantDatabaseConfig {
|
|
16
|
+
schema?: string;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* UBICAR SMS gateway configuration (optional)
|
|
21
|
+
*/
|
|
22
|
+
export interface TenantUbicadorConfig {
|
|
23
|
+
baseUrl: string;
|
|
24
|
+
port: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Tenant - Multi-tenant configuration entity
|
|
28
|
+
*
|
|
29
|
+
* Single table storing all tenant configuration as JSON columns.
|
|
30
|
+
* Optimized for fast reads on every request.
|
|
31
|
+
*/
|
|
32
|
+
export declare class Tenant extends BaseEntity {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
keycloak: TenantKeycloakConfig;
|
|
37
|
+
database?: TenantDatabaseConfig;
|
|
38
|
+
ubicadorGateway?: TenantUbicadorConfig;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=tenant.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/tenant/tenant.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,UAAU,EACX,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,qBACa,MAAO,SAAQ,UAAU;IAEpC,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,QAAQ,EAAG,OAAO,CAAC;IAGnB,QAAQ,EAAG,oBAAoB,CAAC;IAGhC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAGhC,eAAe,CAAC,EAAE,oBAAoB,CAAC;IAGvC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.Tenant = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
/**
|
|
15
|
+
* Tenant - Multi-tenant configuration entity
|
|
16
|
+
*
|
|
17
|
+
* Single table storing all tenant configuration as JSON columns.
|
|
18
|
+
* Optimized for fast reads on every request.
|
|
19
|
+
*/
|
|
20
|
+
let Tenant = class Tenant extends typeorm_1.BaseEntity {
|
|
21
|
+
};
|
|
22
|
+
exports.Tenant = Tenant;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 50 }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Tenant.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Tenant.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], Tenant.prototype, "isActive", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], Tenant.prototype, "keycloak", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], Tenant.prototype, "database", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'ubicador_gateway', type: 'jsonb', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], Tenant.prototype, "ubicadorGateway", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], Tenant.prototype, "createdAt", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Tenant.prototype, "updatedAt", void 0);
|
|
55
|
+
exports.Tenant = Tenant = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)('tenants')
|
|
57
|
+
], Tenant);
|
|
58
|
+
//# sourceMappingURL=tenant.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.entity.js","sourceRoot":"","sources":["../../../src/entities/tenant/tenant.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AA6BjB;;;;;GAKG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,oBAAU;CAwBrC,CAAA;AAxBY,wBAAM;AAEjB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kCACnC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;oCAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCAC3C;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;wCACM;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACV;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7B;AAGvC;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;yCAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;yCAAC;iBAvBN,MAAM;IADlB,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,MAAM,CAwBlB"}
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./photo.enum";
|
|
2
|
+
export * from "./characterization.enum";
|
|
3
|
+
export * from "./person-data-source.enum";
|
|
4
|
+
export * from "./telefonia.enum";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
|
package/dist/enums/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./photo.enum"), exports);
|
|
18
18
|
__exportStar(require("./characterization.enum"), exports);
|
|
19
19
|
__exportStar(require("./person-data-source.enum"), exports);
|
|
20
|
+
__exportStar(require("./telefonia.enum"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0DAAwC;AACxC,4DAA0C;AAC1C,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telefonia.enum.d.ts","sourceRoot":"","sources":["../../src/enums/telefonia.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmpresaBTS = void 0;
|
|
4
|
+
var EmpresaBTS;
|
|
5
|
+
(function (EmpresaBTS) {
|
|
6
|
+
EmpresaBTS["DIGITEL"] = "DIGITEL";
|
|
7
|
+
EmpresaBTS["MOVISTAR"] = "MOVISTAR";
|
|
8
|
+
EmpresaBTS["MOVILNET"] = "MOVILNET";
|
|
9
|
+
})(EmpresaBTS || (exports.EmpresaBTS = EmpresaBTS = {}));
|
|
10
|
+
//# sourceMappingURL=telefonia.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telefonia.enum.js","sourceRoot":"","sources":["../../src/enums/telefonia.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;AACvB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -31,4 +31,6 @@ __exportStar(require("./entities"), exports);
|
|
|
31
31
|
__exportStar(require("./enums"), exports);
|
|
32
32
|
// Export types
|
|
33
33
|
__exportStar(require("./types"), exports);
|
|
34
|
+
// Export contracts metadata
|
|
35
|
+
__exportStar(require("./contracts"), exports);
|
|
34
36
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAEH,sBAAsB;AACtB,6CAA2B;AAE3B,eAAe;AACf,0CAAwB;AAExB,eAAe;AACf,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAEH,sBAAsB;AACtB,6CAA2B;AAE3B,eAAe;AACf,0CAAwB;AAExB,eAAe;AACf,0CAAwB;AAExB,4BAA4B;AAC5B,8CAA4B"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
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
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"contracts"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|