@spytecgps/nova-orm 1.2.4 → 1.2.6

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.
@@ -2,5 +2,5 @@ import { Alert } from '../../entities';
2
2
  import { NovaDataSource } from '../../novaDataSource';
3
3
  import { CreateAlertParams } from '../../types/alert';
4
4
  import { Logger } from '../../types/logger';
5
- export declare const createAlert: (novaDataSource: NovaDataSource, params: CreateAlertParams, logger: Logger, useBeta?: boolean) => Promise<Alert>;
6
- export declare const createAlerts: (novaDataSource: NovaDataSource, params: CreateAlertParams[], logger: Logger, useBeta?: boolean) => Promise<Alert[]>;
5
+ export declare const createAlert: (novaDataSource: NovaDataSource, params: CreateAlertParams, logger: Logger) => Promise<Alert>;
6
+ export declare const createAlerts: (novaDataSource: NovaDataSource, params: CreateAlertParams[], logger: Logger) => Promise<Alert[]>;
@@ -1,6 +1,6 @@
1
+ import { Alert } from '../../entities';
1
2
  import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
2
- import { createRepository } from './createRepository';
3
- export const createAlert = async (novaDataSource, params, logger, useBeta = false) => {
3
+ export const createAlert = async (novaDataSource, params, logger) => {
4
4
  if (!params?.clientId ||
5
5
  params.clientId === 0 ||
6
6
  !params?.alertTypeId ||
@@ -12,7 +12,7 @@ export const createAlert = async (novaDataSource, params, logger, useBeta = fals
12
12
  }
13
13
  try {
14
14
  await novaDataSource.connect();
15
- const alertRepository = createRepository(novaDataSource, useBeta);
15
+ const alertRepository = novaDataSource.getRepository(Alert);
16
16
  const now = new Date();
17
17
  const newAlert = {
18
18
  id: params.id,
@@ -44,10 +44,10 @@ export const createAlert = async (novaDataSource, params, logger, useBeta = fals
44
44
  await novaDataSource.disconnect();
45
45
  }
46
46
  };
47
- export const createAlerts = async (novaDataSource, params, logger, useBeta = false) => {
47
+ export const createAlerts = async (novaDataSource, params, logger) => {
48
48
  try {
49
49
  await novaDataSource.connect();
50
- const alertRepository = createRepository(novaDataSource, useBeta);
50
+ const alertRepository = novaDataSource.getRepository(Alert);
51
51
  const alerts = [];
52
52
  params.forEach(param => {
53
53
  if (!param?.clientId ||
@@ -1 +1 @@
1
- {"version":3,"file":"createAlert.js","sourceRoot":"","sources":["../../../src/repositories/alerts/createAlert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,cAA8B,EAC9B,MAAyB,EACzB,MAAc,EACd,OAAO,GAAG,KAAK,EACC,EAAE;IAClB,IACE,CAAC,MAAM,EAAE,QAAQ;QACjB,MAAM,CAAC,QAAQ,KAAK,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW;QACpB,MAAM,CAAC,WAAW,KAAK,CAAC;QACxB,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,IAAI;QACb,CAAC,MAAM,EAAE,QAAQ,EACjB;QACA,OAAO,IAAI,CAAA;KACZ;IAED,IAAI;QACF,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;QAE9B,MAAM,eAAe,GAAG,gBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;QAEjE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,MAAM,QAAQ,GAAG;YACf,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC;YAC/C,SAAS,EAAE,wBAAwB,CAAC,MAAM,CAAC,SAAS,CAAC;YACrD,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,GAAG,EAAE,MAAM,CAAC,G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AAK,CAAC,KAAK;gBAClB,MAAM,EAAE,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC;gBAC9C,SAAS,EAAE,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC;gBACpD,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,eAAe,EAAE,KAAK,CAAC,eAAe;gBACtC,YAAY,EAAE,wBAAwB,CAAC,KAAK,CAAC,YAAY,CAAC;gBAC1D,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;gBACxD,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,GAAG;gBACjC,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;aACzD,CAAA;YAED,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACvB,CAAC,CAAC,CAAA;QAEF,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;KAC1C;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,oCAAoC,CAAC,CAAA;QACzD,MAAM,KAAK,CAAA;KACZ;YAAS;QACR,MAAM,cAAc,CAAC,UAAU,EAAE,CAAA;KAClC;AACH,CAAC,CAAA"}
@@ -29,7 +29,7 @@ export class AlertRepository extends BaseRepository {
29
29
  async createAlert(params) {
30
30
  this.logger.trace(params, `AlertRepository::createAlert started with params`);
31
31
  const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
32
- const result = await createAlert(novaDataSource, params, this.logger, this.useBeta);
32
+ const result = await createAlert(novaDataSource, params, this.logger);
33
33
  this.logger.trace(result, 'AlertRepository::createAlert result');
34
34
  return result;
35
35
  }
@@ -58,7 +58,7 @@ export class AlertRepository extends BaseRepository {
58
58
  async createAlerts(params) {
59
59
  this.logger.trace(params, `AlertRepository::createAlerts started with params`);
60
60
  const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
61
- const result = await createAlerts(novaDataSource, params, this.logger, this.useBeta);
61
+ const result = await createAlerts(novaDataSource, params, this.logger);
62
62
  this.logger.trace(result, 'AlertRepository::createAlerts result');
63
63
  return result;
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/alerts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAOrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,WAAW,CAAC,MAAyB;QACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,kDAAkD,CAAC,CAAA;QAE7E,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QAEnF,IAAI,CAAC,MAAM,CAA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KAAK,CAAC,MAAM,EAAE,iDAAiD,CAAC,CAAA;QAE5E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,27 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { Relation } from 'typeorm';
4
- import { AlertType } from './alertType';
5
- export declare class AlertBeta {
6
- id: number;
7
- alertTypeId: number;
8
- alertType?: Relation<AlertType>;
9
- value: string | null;
10
- createdAt: Date | null;
11
- userId: Buffer | null;
12
- messageId: Buffer;
13
- boundaryId?: number;
14
- imei: string;
15
- sendTime: Date;
16
- lat: number | null;
17
- lon: number | null;
18
- address: string | null;
19
- clientId: number | null;
20
- isBuffer: boolean | null;
21
- isNotification: boolean | null;
22
- gpsUtcTime: Date | null;
23
- relevantAddress: string | null;
24
- gpsMessageId: Buffer | null;
25
- cellTowerRelevantAddress: string | null;
26
- userAlertConfigurationId: number | null;
27
- }
@@ -1,135 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index, JoinColumn, OneToOne, PrimaryGeneratedColumn, } from 'typeorm';
11
- import { AlertType } from './alertType';
12
- let AlertBeta = class AlertBeta {
13
- id;
14
- alertTypeId;
15
- alertType;
16
- value;
17
- createdAt;
18
- userId;
19
- messageId;
20
- boundaryId;
21
- imei;
22
- sendTime;
23
- lat;
24
- lon;
25
- address;
26
- clientId;
27
- isBuffer;
28
- isNotification;
29
- gpsUtcTime;
30
- relevantAddress;
31
- gpsMessageId;
32
- cellTowerRelevantAddress;
33
- userAlertConfigurationId;
34
- };
35
- __decorate([
36
- PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
37
- __metadata("design:type", Number)
38
- ], AlertBeta.prototype, "id", void 0);
39
- __decorate([
40
- Column('tinyint', { name: 'alertTypeId' }),
41
- __metadata("design:type", Number)
42
- ], AlertBeta.prototype, "alertTypeId", void 0);
43
- __decorate([
44
- OneToOne(() => AlertType, { createForeignKeyConstraints: false }),
45
- JoinColumn(),
46
- __metadata("design:type", Object)
47
- ], AlertBeta.prototype, "alertType", void 0);
48
- __decorate([
49
- Column('varchar', { name: 'value', nullable: true, length: 5000 }),
50
- __metadata("design:type", String)
51
- ], AlertBeta.prototype, "value", void 0);
52
- __decorate([
53
- Column('datetime', { name: 'createdAt', precision: 3 }),
54
- __metadata("design:type", Date)
55
- ], AlertBeta.prototype, "createdAt", void 0);
56
- __decorate([
57
- Column('binary', { name: 'userId', nullable: true, length: 16 }),
58
- __metadata("design:type", Buffer)
59
- ], AlertBeta.prototype, "userId", void 0);
60
- __decorate([
61
- Column('binary', { name: 'messageId', length: 16 }),
62
- __metadata("design:type", Buffer)
63
- ], AlertBeta.prototype, "messageId", void 0);
64
- __decorate([
65
- Column('int', { name: 'boundaryId', nullable: true }),
66
- __metadata("design:type", Number)
67
- ], AlertBeta.prototype, "boundaryId", void 0);
68
- __decorate([
69
- Column('varchar', { name: 'imei', length: 15 }),
70
- __metadata("design:type", String)
71
- ], AlertBeta.prototype, "imei", void 0);
72
- __decorate([
73
- Column('datetime', { name: 'sendTime', precision: 3 }),
74
- __metadata("design:type", Date)
75
- ], AlertBeta.prototype, "sendTime", void 0);
76
- __decorate([
77
- Column('decimal', { name: 'lat', nullable: true, precision: 8, scale: 6 }),
78
- __metadata("design:type", Number)
79
- ], AlertBeta.prototype, "lat", void 0);
80
- __decorate([
81
- Column('decimal', { name: 'lon', nullable: true, precision: 9, scale: 6 }),
82
- __metadata("design:type", Number)
83
- ], AlertBeta.prototype, "lon", void 0);
84
- __decorate([
85
- Column('varchar', { name: 'address', nullable: true, length: 255 }),
86
- __metadata("design:type", String)
87
- ], AlertBeta.prototype, "address", void 0);
88
- __decorate([
89
- Column('int', { name: 'clientId', nullable: true }),
90
- __metadata("design:type", Number)
91
- ], AlertBeta.prototype, "clientId", void 0);
92
- __decorate([
93
- Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
94
- __metadata("design:type", Boolean)
95
- ], AlertBeta.prototype, "isBuffer", void 0);
96
- __decorate([
97
- Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
98
- __metadata("design:type", Boolean)
99
- ], AlertBeta.prototype, "isNotification", void 0);
100
- __decorate([
101
- Column('datetime', { name: 'gpsUtcTime', nullable: true, precision: 3 }),
102
- __metadata("design:type", Date)
103
- ], AlertBeta.prototype, "gpsUtcTime", void 0);
104
- __decorate([
105
- Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
106
- __metadata("design:type", String)
107
- ], AlertBeta.prototype, "relevantAddress", void 0);
108
- __decorate([
109
- Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
110
- __metadata("design:type", Buffer)
111
- ], AlertBeta.prototype, "gpsMessageId", void 0);
112
- __decorate([
113
- Column('varchar', {
114
- name: 'cellTowerRelevantAddress',
115
- nullable: true,
116
- length: 255,
117
- }),
118
- __metadata("design:type", String)
119
- ], AlertBeta.prototype, "cellTowerRelevantAddress", void 0);
120
- __decorate([
121
- Column('int', { name: 'userAlertConfigurationId', nullable: true }),
122
- __metadata("design:type", Number)
123
- ], AlertBeta.prototype, "userAlertConfigurationId", void 0);
124
- AlertBeta = __decorate([
125
- Index('ixAlertUserId_Imei_AlertTypeId_SendTime', ['userId', 'imei', 'alertTypeId', 'sendTime'], {}),
126
- Index('ixAlertUserId_AlertTypeId_SendTime', ['userId', 'alertTypeId', 'sendTime'], {}),
127
- Index('ixAlertAlertTypeId', ['alertTypeId'], {}),
128
- Index('ixAlertClientId', ['clientId'], {}),
129
- Index('ixAlertImei', ['imei'], {}),
130
- Index('ixAlertSendTime', ['sendTime'], {}),
131
- Index('ixAlertUserId', ['userId'], {}),
132
- Entity('alertBeta', { schema: 'nova' })
133
- ], AlertBeta);
134
- export { AlertBeta };
135
- //# sourceMappingURL=alertBeta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertBeta.js","sourceRoot":"","sources":["../../src/entities/alertBeta.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,EACR,sBAAsB,GAEvB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAUhC,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,EAAE,CAAQ;IAGV,WAAW,CAAQ;IAInB,SAAS,CAAsB;IAG/B,KAAK,CAAe;IAGpB,SAAS,CAAa;IAGtB,MAAM,CAAe;IAGrB,SAAS,CAAQ;IAGjB,UAAU,CAAS;IAGnB,IAAI,CAAQ;IAGZ,QAAQ,CAAM;IAGd,GAAG,CAAe;IAGlB,GAAG,CAAe;IAGlB,OAAO,CAAe;IAGtB,QAAQ,CAAe;IAGvB,QAAQ,CAAgB;IAGxB,cAAc,CAAgB;IAG9B,UAAU,CAAa;IAGvB,eAAe,CAAe;IAG9B,YAAY,CAAe;IAO3B,wBAAwB,CAAe;IAGvC,wBAAwB,CAAe;CACxC,CAAA;AAnEC;IAAC,sBAAsB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;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EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC7B;AAnE5B,SAAS;IARrB,KAAK,CAAC,yCAAyC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;IACnG,KAAK,CAAC,oCAAoC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;IACtF,KAAK,CAAC,oBAAoB,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;IAChD,KAAK,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;IAC1C,KAAK,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;IAClC,KAAK,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;IAC1C,KAAK,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC3B,SAAS,CAoErB;SApEY,SAAS"}
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- export declare class AlertMigration {
4
- id: number;
5
- alertTypeId: number;
6
- value: string | null;
7
- createdAt: Date | null;
8
- userId: Buffer | null;
9
- messageId: Buffer;
10
- boundaryId?: number;
11
- imei: string;
12
- sendTime: Date;
13
- lat: number | null;
14
- lon: number | null;
15
- address: string | null;
16
- clientId: number | null;
17
- isBuffer: boolean | null;
18
- isNotification: boolean | null;
19
- gpsUtcTime: Date | null;
20
- relevantAddress: string | null;
21
- gpsMessageId: Buffer | null;
22
- cellTowerRelevantAddress: string | null;
23
- }
@@ -1,116 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, PrimaryColumn } from 'typeorm';
11
- let AlertMigration = class AlertMigration {
12
- id;
13
- alertTypeId;
14
- value;
15
- createdAt;
16
- userId;
17
- messageId;
18
- boundaryId;
19
- imei;
20
- sendTime;
21
- lat;
22
- lon;
23
- address;
24
- clientId;
25
- isBuffer;
26
- isNotification;
27
- gpsUtcTime;
28
- relevantAddress;
29
- gpsMessageId;
30
- cellTowerRelevantAddress;
31
- };
32
- __decorate([
33
- PrimaryColumn({ type: 'bigint', name: 'id' }),
34
- __metadata("design:type", Number)
35
- ], AlertMigration.prototype, "id", void 0);
36
- __decorate([
37
- Column('tinyint', { name: 'alertTypeId' }),
38
- __metadata("design:type", Number)
39
- ], AlertMigration.prototype, "alertTypeId", void 0);
40
- __decorate([
41
- Column('varchar', { name: 'value', nullable: true, length: 5000 }),
42
- __metadata("design:type", String)
43
- ], AlertMigration.prototype, "value", void 0);
44
- __decorate([
45
- Column('datetime', { name: 'createdAt', precision: 3 }),
46
- __metadata("design:type", Date)
47
- ], AlertMigration.prototype, "createdAt", void 0);
48
- __decorate([
49
- Column('binary', { name: 'userId', nullable: true, length: 16 }),
50
- __metadata("design:type", Buffer)
51
- ], AlertMigration.prototype, "userId", void 0);
52
- __decorate([
53
- Column('binary', { name: 'messageId', length: 16 }),
54
- __metadata("design:type", Buffer)
55
- ], AlertMigration.prototype, "messageId", void 0);
56
- __decorate([
57
- Column('int', { name: 'boundaryId', nullable: true }),
58
- __metadata("design:type", Number)
59
- ], AlertMigration.prototype, "boundaryId", void 0);
60
- __decorate([
61
- Column('varchar', { name: 'imei', length: 15 }),
62
- __metadata("design:type", String)
63
- ], AlertMigration.prototype, "imei", void 0);
64
- __decorate([
65
- Column('datetime', { name: 'sendTime', precision: 3 }),
66
- __metadata("design:type", Date)
67
- ], AlertMigration.prototype, "sendTime", void 0);
68
- __decorate([
69
- Column('decimal', { name: 'lat', nullable: true, precision: 8, scale: 6 }),
70
- __metadata("design:type", Number)
71
- ], AlertMigration.prototype, "lat", void 0);
72
- __decorate([
73
- Column('decimal', { name: 'lon', nullable: true, precision: 9, scale: 6 }),
74
- __metadata("design:type", Number)
75
- ], AlertMigration.prototype, "lon", void 0);
76
- __decorate([
77
- Column('varchar', { name: 'address', nullable: true, length: 255 }),
78
- __metadata("design:type", String)
79
- ], AlertMigration.prototype, "address", void 0);
80
- __decorate([
81
- Column('int', { name: 'clientId', nullable: true }),
82
- __metadata("design:type", Number)
83
- ], AlertMigration.prototype, "clientId", void 0);
84
- __decorate([
85
- Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
86
- __metadata("design:type", Boolean)
87
- ], AlertMigration.prototype, "isBuffer", void 0);
88
- __decorate([
89
- Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
90
- __metadata("design:type", Boolean)
91
- ], AlertMigration.prototype, "isNotification", void 0);
92
- __decorate([
93
- Column('datetime', { name: 'gpsUtcTime', nullable: true, precision: 3 }),
94
- __metadata("design:type", Date)
95
- ], AlertMigration.prototype, "gpsUtcTime", void 0);
96
- __decorate([
97
- Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
98
- __metadata("design:type", String)
99
- ], AlertMigration.prototype, "relevantAddress", void 0);
100
- __decorate([
101
- Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
102
- __metadata("design:type", Buffer)
103
- ], AlertMigration.prototype, "gpsMessageId", void 0);
104
- __decorate([
105
- Column('varchar', {
106
- name: 'cellTowerRelevantAddress',
107
- nullable: true,
108
- length: 255,
109
- }),
110
- __metadata("design:type", String)
111
- ], AlertMigration.prototype, "cellTowerRelevantAddress", void 0);
112
- AlertMigration = __decorate([
113
- Entity('alertMigration', { schema: 'nova' })
114
- ], AlertMigration);
115
- export { AlertMigration };
116
- //# sourceMappingURL=alertMigration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertMigration.js","sourceRoot":"","sources":["../../src/entities/alertMigration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGhD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAQ;IAGV,WAAW,CAAQ;IAGnB,KAAK,CAAe;IAGpB,SAAS,CAAa;IAGtB,MAAM,CAAe;IAGrB,SAAS,CAAQ;IAGjB,UAAU,CAAS;IAGnB,IAAI,CAAQ;IAGZ,QAAQ,CAAM;IAGd,GAAG,CAAe;IAGlB,GAAG,CAAe;IAGlB,OAAO,CAAe;IAGtB,QAAQ,CAAe;IAGvB,QAAQ,CAAgB;IAGxB,cAAc,CAAgB;IAG9B,UAAU,CAAa;IAGvB,eAAe,CAAe;IAG9B,YAAY,CAAe;IAO3B,wBAAwB,CAAe;CACxC,CAAA;AA5DC;IAAC,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0CACpC;AAEV;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;mDACxB;AAEnB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;6CAC/C;AAEpB;IAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAC7C,IAAI;iDAAO;AAEtB;IAAC,MAA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AAC,EAAE,CAAC;;gDAC1C;AAExB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;sDAC1C;AAE9B;IAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAC7D,IAAI;kDAAO;AAEvB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uDAC9C;AAE9B;IAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;8BACzD,MAAM;oDAAO;AAE3B;IAAC,MAAM,CAAC,SAAS,EAAE;QACjB,IAAI,EAAE,0BAA0B;QAChC,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,GAAG;KACZ,CAAC;;gEACqC;AA5D5B,cAAc;IAD1B,MAAM,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAChC,cAAc,CA6D1B;SA7DY,cAAc"}
@@ -1,3 +0,0 @@
1
- export declare class AlertMigrationBatch {
2
- id: number;
3
- }
@@ -1,22 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Entity, PrimaryColumn } from 'typeorm';
11
- let AlertMigrationBatch = class AlertMigrationBatch {
12
- id;
13
- };
14
- __decorate([
15
- PrimaryColumn({ type: 'bigint', name: 'id' }),
16
- __metadata("design:type", Number)
17
- ], AlertMigrationBatch.prototype, "id", void 0);
18
- AlertMigrationBatch = __decorate([
19
- Entity('alertMigrationBatch', { schema: 'nova' })
20
- ], AlertMigrationBatch);
21
- export { AlertMigrationBatch };
22
- //# sourceMappingURL=alertMigrationBatch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertMigrationBatch.js","sourceRoot":"","sources":["../../src/entities/alertMigrationBatch.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGxC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,EAAE,CAAQ;CACX,CAAA;AAFC;IAAC,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACpC;AAFC,mBAAmB;IAD/B,MAAM,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GACrC,mBAAmB,CAG/B;SAHY,mBAAmB"}
@@ -1,27 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { Relation } from 'typeorm';
4
- import { AlertType } from './alertType';
5
- export declare class AlertOld {
6
- id: number;
7
- alertTypeId: number;
8
- alertType?: Relation<AlertType>;
9
- value: string | null;
10
- createdAt: Date | null;
11
- userId: Buffer | null;
12
- messageId: Buffer;
13
- boundaryId?: number;
14
- imei: string;
15
- sendTime: Date;
16
- lat: number | null;
17
- lon: number | null;
18
- address: string | null;
19
- clientId: number | null;
20
- isBuffer: boolean | null;
21
- isNotification: boolean | null;
22
- gpsUtcTime: Date | null;
23
- relevantAddress: string | null;
24
- gpsMessageId: Buffer | null;
25
- cellTowerRelevantAddress: string | null;
26
- userAlertConfigurationId: number | null;
27
- }
@@ -1,135 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index, JoinColumn, OneToOne, PrimaryGeneratedColumn, } from 'typeorm';
11
- import { AlertType } from './alertType';
12
- let AlertOld = class AlertOld {
13
- id;
14
- alertTypeId;
15
- alertType;
16
- value;
17
- createdAt;
18
- userId;
19
- messageId;
20
- boundaryId;
21
- imei;
22
- sendTime;
23
- lat;
24
- lon;
25
- address;
26
- clientId;
27
- isBuffer;
28
- isNotification;
29
- gpsUtcTime;
30
- relevantAddress;
31
- gpsMessageId;
32
- cellTowerRelevantAddress;
33
- userAlertConfigurationId;
34
- };
35
- __decorate([
36
- PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
37
- __metadata("design:type", Number)
38
- ], AlertOld.prototype, "id", void 0);
39
- __decorate([
40
- Column('tinyint', { name: 'alertTypeId' }),
41
- __metadata("design:type", Number)
42
- ], AlertOld.prototype, "alertTypeId", void 0);
43
- __decorate([
44
- OneToOne(() => AlertType, { createForeignKeyConstraints: false }),
45
- JoinColumn(),
46
- __metadata("design:type", Object)
47
- ], AlertOld.prototype, "alertType", void 0);
48
- __decorate([
49
- Column('varchar', { name: 'value', nullable: true, length: 5000 }),
50
- __metadata("design:type", String)
51
- ], AlertOld.prototype, "value", void 0);
52
- __decorate([
53
- Column('datetime', { name: 'createdAt', precision: 3 }),
54
- __metadata("design:type", Date)
55
- ], AlertOld.prototype, "createdAt", void 0);
56
- __decorate([
57
- Column('binary', { name: 'userId', nullable: true, length: 16 }),
58
- __metadata("design:type", Buffer)
59
- ], AlertOld.prototype, "userId", void 0);
60
- __decorate([
61
- Column('binary', { name: 'messageId', length: 16 }),
62
- __metadata("design:type", Buffer)
63
- ], AlertOld.prototype, "messageId", void 0);
64
- __decorate([
65
- Column('int', { name: 'boundaryId', nullable: true }),
66
- __metadata("design:type", Number)
67
- ], AlertOld.prototype, "boundaryId", void 0);
68
- __decorate([
69
- Column('varchar', { name: 'imei', length: 15 }),
70
- __metadata("design:type", String)
71
- ], AlertOld.prototype, "imei", void 0);
72
- __decorate([
73
- Column('datetime', { name: 'sendTime', precision: 3 }),
74
- __metadata("design:type", Date)
75
- ], AlertOld.prototype, "sendTime", void 0);
76
- __decorate([
77
- Column('decimal', { name: 'lat', nullable: true, precision: 8, scale: 6 }),
78
- __metadata("design:type", Number)
79
- ], AlertOld.prototype, "lat", void 0);
80
- __decorate([
81
- Column('decimal', { name: 'lon', nullable: true, precision: 9, scale: 6 }),
82
- __metadata("design:type", Number)
83
- ], AlertOld.prototype, "lon", void 0);
84
- __decorate([
85
- Column('varchar', { name: 'address', nullable: true, length: 255 }),
86
- __metadata("design:type", String)
87
- ], AlertOld.prototype, "address", void 0);
88
- __decorate([
89
- Column('int', { name: 'clientId', nullable: true }),
90
- __metadata("design:type", Number)
91
- ], AlertOld.prototype, "clientId", void 0);
92
- __decorate([
93
- Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
94
- __metadata("design:type", Boolean)
95
- ], AlertOld.prototype, "isBuffer", void 0);
96
- __decorate([
97
- Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
98
- __metadata("design:type", Boolean)
99
- ], AlertOld.prototype, "isNotification", void 0);
100
- __decorate([
101
- Column('datetime', { name: 'gpsUtcTime', nullable: true, precision: 3 }),
102
- __metadata("design:type", Date)
103
- ], AlertOld.prototype, "gpsUtcTime", void 0);
104
- __decorate([
105
- Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
106
- __metadata("design:type", String)
107
- ], AlertOld.prototype, "relevantAddress", void 0);
108
- __decorate([
109
- Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
110
- __metadata("design:type", Buffer)
111
- ], AlertOld.prototype, "gpsMessageId", void 0);
112
- __decorate([
113
- Column('varchar', {
114
- name: 'cellTowerRelevantAddress',
115
- nullable: true,
116
- length: 255,
117
- }),
118
- __metadata("design:type", String)
119
- ], AlertOld.prototype, "cellTowerRelevantAddress", void 0);
120
- __decorate([
121
- Column('int', { name: 'userAlertConfigurationId', nullable: true }),
122
- __metadata("design:type", Number)
123
- ], AlertOld.prototype, "userAlertConfigurationId", void 0);
124
- AlertOld = __decorate([
125
- Index('ixAlertUserId_Imei_AlertTypeId_SendTime', ['userId', 'imei', 'alertTypeId', 'sendTime'], {}),
126
- Index('ixAlertUserId_AlertTypeId_SendTime', ['userId', 'alertTypeId', 'sendTime'], {}),
127
- Index('ixAlertAlertTypeId', ['alertTypeId'], {}),
128
- Index('ixAlertClientId', ['clientId'], {}),
129
- Index('ixAlertImei', ['imei'], {}),
130
- Index('ixAlertSendTime', ['sendTime'], {}),
131
- Index('ixAlertUserId', ['userId'], {}),
132
- Entity('alert_old', { schema: 'nova' })
133
- ], AlertOld);
134
- export { AlertOld };
135
- //# sourceMappingURL=alertOld.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alertOld.js","sourceRoot":"","sources":["../../src/entities/alertOld.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,EACR,sBAAsB,GAEvB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,SAAS,EAAE,MAAM,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EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC3B,QAAQ,CAoEpB;SApEY,QAAQ"}
@@ -1,4 +0,0 @@
1
- import { Repository } from 'typeorm';
2
- import { NovaDataSource } from '../..';
3
- import { Alert, AlertBeta } from '../../entities';
4
- export declare const createRepository: (novaDataSource: NovaDataSource, useBeta?: boolean) => Repository<Alert | AlertBeta>;
@@ -1,8 +0,0 @@
1
- import { Alert, AlertBeta } from '../../entities';
2
- export const createRepository = (novaDataSource, useBeta = false) => {
3
- const alertRepository = useBeta
4
- ? novaDataSource.getRepository(AlertBeta)
5
- : novaDataSource.getRepository(Alert);
6
- return alertRepository;
7
- };
8
- //# sourceMappingURL=createRepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createRepository.js","sourceRoot":"","sources":["../../../src/repositories/alerts/createRepository.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,cAA8B,EAC9B,OAAO,GAAG,KAAK,EACgB,EAAE;IACjC,MAAM,eAAe,GAAG,OAAO;QAC7B,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC,SAAS,CAAC;QACzC,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAEvC,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA"}