@spytecgps/nova-orm 1.0.125 → 1.0.126
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/dist/entities/dataExport.d.ts +1 -3
- package/dist/entities/dataExport.js +5 -15
- package/dist/entities/dataExport.js.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/repositories/dataExports/createDataExports.js +1 -1
- package/dist/repositories/dataExports/createDataExports.js.map +1 -1
- package/dist/repositories/dataExports/getDataExports.js +0 -3
- package/dist/repositories/dataExports/getDataExports.js.map +1 -1
- package/dist/types/dataExports.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Relation } from 'typeorm';
|
|
3
3
|
import { Client } from './client';
|
|
4
|
-
import { Device } from './device';
|
|
5
4
|
export declare class DataExport {
|
|
6
5
|
id: Buffer;
|
|
7
6
|
clientId: number;
|
|
@@ -12,7 +11,6 @@ export declare class DataExport {
|
|
|
12
11
|
parameters?: object;
|
|
13
12
|
exportLocation?: string;
|
|
14
13
|
downloadLink?: string;
|
|
15
|
-
|
|
16
|
-
device?: Relation<Device>;
|
|
14
|
+
imei?: string;
|
|
17
15
|
client?: Relation<Client>;
|
|
18
16
|
}
|
|
@@ -9,7 +9,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, JoinColumn, OneToOne } from 'typeorm';
|
|
11
11
|
import { Client } from './client';
|
|
12
|
-
import { Device } from './device';
|
|
13
12
|
let DataExport = class DataExport {
|
|
14
13
|
id;
|
|
15
14
|
clientId;
|
|
@@ -20,8 +19,7 @@ let DataExport = class DataExport {
|
|
|
20
19
|
parameters;
|
|
21
20
|
exportLocation;
|
|
22
21
|
downloadLink;
|
|
23
|
-
|
|
24
|
-
device;
|
|
22
|
+
imei;
|
|
25
23
|
client;
|
|
26
24
|
};
|
|
27
25
|
__decorate([
|
|
@@ -53,7 +51,7 @@ __decorate([
|
|
|
53
51
|
__metadata("design:type", Object)
|
|
54
52
|
], DataExport.prototype, "parameters", void 0);
|
|
55
53
|
__decorate([
|
|
56
|
-
Column('varchar', { name: 'exportLocation', length:
|
|
54
|
+
Column('varchar', { name: 'exportLocation', length: 500, nullable: true }),
|
|
57
55
|
__metadata("design:type", String)
|
|
58
56
|
], DataExport.prototype, "exportLocation", void 0);
|
|
59
57
|
__decorate([
|
|
@@ -61,17 +59,9 @@ __decorate([
|
|
|
61
59
|
__metadata("design:type", String)
|
|
62
60
|
], DataExport.prototype, "downloadLink", void 0);
|
|
63
61
|
__decorate([
|
|
64
|
-
Column('
|
|
65
|
-
__metadata("design:type",
|
|
66
|
-
], DataExport.prototype, "
|
|
67
|
-
__decorate([
|
|
68
|
-
OneToOne(() => Device, {
|
|
69
|
-
createForeignKeyConstraints: false,
|
|
70
|
-
nullable: true,
|
|
71
|
-
}),
|
|
72
|
-
JoinColumn(),
|
|
73
|
-
__metadata("design:type", Object)
|
|
74
|
-
], DataExport.prototype, "device", void 0);
|
|
62
|
+
Column('varchar', { name: 'imei', length: 16, nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], DataExport.prototype, "imei", void 0);
|
|
75
65
|
__decorate([
|
|
76
66
|
OneToOne(() => Client, { createForeignKeyConstraints: false, nullable: true }),
|
|
77
67
|
JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataExport.js","sourceRoot":"","sources":["../../src/entities/dataExport.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAY,MAAM,SAAS,CAAA;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"dataExport.js","sourceRoot":"","sources":["../../src/entities/dataExport.ts"],"names":[],"mappings":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C,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACpC;AAEnB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACpD;AAEvB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACpD;AAErB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACnD;AAEb;IAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9E,UAAU,EAAE;;0CACY;AAjCd,UAAU;IADtB,MAAM,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC5B,UAAU,CAkCtB;SAlCY,UAAU"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,21 @@ import { NovaDataSource, NovaDataSourceConfig } from './novaDataSource';
|
|
|
3
3
|
import * as Repositories from './repositories';
|
|
4
4
|
import * as Types from './types';
|
|
5
5
|
import * as Enums from './types/enums';
|
|
6
|
+
import { ConsoleLogger } from './utils/consoleLogger';
|
|
6
7
|
declare const Utils: {
|
|
7
8
|
uuidStringToBinaryBuffer: (uuidString: string) => Buffer;
|
|
8
9
|
binaryBufferToUuidString: (buffer: Buffer) => string;
|
|
10
|
+
getRandomBoolean: () => boolean;
|
|
11
|
+
getRandomImei: (length?: number) => string;
|
|
12
|
+
getRandomDateInRange: (rangeInDays: number) => Date;
|
|
13
|
+
getRandomInteger: (max: number) => number;
|
|
14
|
+
getRandomString: (length: number) => string;
|
|
15
|
+
tryParseBoolean: (valueToParse: any, defaultValue?: boolean) => boolean;
|
|
16
|
+
tryParseDate: (anyDate: any, defaultValue?: Date) => Date;
|
|
17
|
+
tryParseFloat: (valueToParse: any, defaultValue?: number) => number;
|
|
18
|
+
allAttributesAreNull: <T>(params: T, attributes: string[]) => boolean;
|
|
19
|
+
anyAttributeInArrayIsNull: <T_1>(params: T_1[], attributes: string[]) => boolean;
|
|
20
|
+
anyAttributeIsNull: <T_2>(params: T_2, attributes: string[]) => boolean;
|
|
21
|
+
now: () => Date;
|
|
9
22
|
};
|
|
10
|
-
export { Entities, Repositories, Enums, Types, Utils, NovaDataSourceConfig, NovaDataSource };
|
|
23
|
+
export { Entities, Repositories, Enums, Types, Utils, ConsoleLogger, NovaDataSourceConfig, NovaDataSource, };
|