tabletcommand-location 2.0.8 → 2.1.0
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/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/location.js +2 -3
- package/build/location.js.map +1 -1
- package/build/store.js +2 -2
- package/build/store.js.map +1 -1
- package/build/test/location.js +17 -7
- package/build/test/location.js.map +1 -1
- package/build/test/mock.js +1 -1
- package/build/test/mock.js.map +1 -1
- package/definitions/index.d.ts.map +1 -1
- package/definitions/location.d.ts +19 -27
- package/definitions/location.d.ts.map +1 -1
- package/definitions/store.d.ts +21 -27
- package/definitions/store.d.ts.map +1 -1
- package/definitions/test/mock.d.ts +264 -158
- package/definitions/test/mock.d.ts.map +1 -1
- package/eslint.config.mjs +58 -41
- package/gulpfile.js +11 -5
- package/package.json +20 -19
- package/src/index.ts +1 -1
- package/src/location.ts +2 -2
- package/src/store.ts +2 -1
- package/src/test/location.ts +1 -2
package/build/index.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.LocationVisibility = exports.LocationSource = exports.LocationKindType = void 0;
|
|
7
|
+
exports.lib = lib;
|
|
7
8
|
const location_1 = __importDefault(require("./location"));
|
|
8
9
|
const store_1 = __importDefault(require("./store"));
|
|
9
10
|
const lodash_1 = __importDefault(require("lodash"));
|
|
@@ -54,6 +55,5 @@ function lib(departmentModel, locationModel, cadVehicleModel) {
|
|
|
54
55
|
// processLocationsOnly,
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
exports.lib = lib;
|
|
58
58
|
exports.default = lib;
|
|
59
59
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAwBA,kBAgDC;AAxED,0DAAwC;AACxC,oDAAkC;AAOlC,oDAAuB;AACvB,mCAKiB;AAIf,iGARA,wBAAgB,OAQA;AAEhB,+FARA,sBAAc,OAQA;AACd,mGARA,0BAAkB,OAQA;AAGpB,SAAgB,GAAG,CACjB,eAAgC,EAChC,aAA4B,EAC5B,eAAgC;IAEhC,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,eAAe,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;IAC3E,MAAM,QAAQ,GAAG,IAAA,kBAAc,EAAC,KAAK,CAAC,CAAC;IACvC,8FAA8F;IAC9F,uCAAuC;IACvC,IAAI;IAEJ,KAAK,UAAU,gBAAgB,CAAC,UAA+B,EAAE,KAA2C;QAC1G,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC;YACH,IAAI,gBAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5C,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,IAAI,gBAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3C,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;YAC3C,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;IAED,iJAAiJ;IACjJ,UAAU;IACV,qDAAqD;IACrD,mBAAmB;IACnB,QAAQ;IACR,oDAAoD;IACpD,yBAAyB;IACzB,QAAQ;IACR,sFAAsF;IACtF,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,MAAM;IACN,IAAI;IAEJ,OAAO;QACL,kBAAkB;QAClB,gBAAgB;QAChB,wBAAwB;KACzB,CAAC;AACJ,CAAC;AAED,kBAAe,GAAG,CAAC"}
|
package/build/location.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.location =
|
|
6
|
+
exports.location = location;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
8
|
const tabletcommand_backend_models_1 = require("tabletcommand-backend-models");
|
|
9
9
|
const debug_1 = __importDefault(require("debug"));
|
|
@@ -111,7 +111,7 @@ function location(store) {
|
|
|
111
111
|
department.cadOneWayVehiclesEnabled &&
|
|
112
112
|
(department.cadBidirectionalEnabled !== true || isBidirectionalException)) {
|
|
113
113
|
const vehicleItem = {
|
|
114
|
-
departmentId
|
|
114
|
+
departmentId,
|
|
115
115
|
modifiedDate: atDate.valueOf() / 1000.0,
|
|
116
116
|
modified: atDate,
|
|
117
117
|
radioName: item.radioName,
|
|
@@ -153,6 +153,5 @@ function location(store) {
|
|
|
153
153
|
processItems,
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
exports.location = location;
|
|
157
156
|
exports.default = location;
|
|
158
157
|
//# sourceMappingURL=location.js.map
|
package/build/location.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../src/location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,CAAC,UAAU,CAAC,QAAQ,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;YAC9H,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACrB,OAAO;YACT,CAAC;YAED,IAAI,MAAM,GAAG,IAAI,CAAC;YAClB,MAAM,0BAA0B,GAAG;gBACjC,0BAA0B,CAAC,uCAAuC;aACnE,CAAC;YAEF,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,0BAA0B,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;YAE3F,IAAI,gBAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,gBAAC,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC1D,MAAM,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC;YAC9B,CAAC;YACD,2CAA2C;YAE3C,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;YAC/B,6CAA6C;YAC7C,MAAM,UAAU,GAAyB;gBACvC,MAAM,CAAC,CAAC,CAAC,iDAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,iDAAkB,CAAC,MAAM;aAChE,CAAC;YACF,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;gBAC1B,UAAU,CAAC,IAAI,CAAC,iDAAkB,CAAC,MAAM,CAAC,CAAC;YAC7C,CAAC;YACD,MAAM,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAED,OAAO;QACL,cAAc;QACd,YAAY;KACb,CAAC;AACJ,CAAC;AAED,kBAAe,QAAQ,CAAC"}
|
package/build/store.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.store =
|
|
6
|
+
exports.store = store;
|
|
7
7
|
const debug_1 = __importDefault(require("debug"));
|
|
8
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
9
|
function store(departmentModel, locationModel, cadVehicleModel) {
|
|
@@ -28,6 +28,7 @@ function store(departmentModel, locationModel, cadVehicleModel) {
|
|
|
28
28
|
return await cadVehicleModel.findOneAndUpdate(query, item, options);
|
|
29
29
|
}
|
|
30
30
|
async function updateLocation(item, atDate) {
|
|
31
|
+
// eslint-disable-next-line new-cap
|
|
31
32
|
const modelItem = new locationModel(item);
|
|
32
33
|
const query = {
|
|
33
34
|
device_type: modelItem.device_type,
|
|
@@ -118,6 +119,5 @@ function store(departmentModel, locationModel, cadVehicleModel) {
|
|
|
118
119
|
updateLocation,
|
|
119
120
|
};
|
|
120
121
|
}
|
|
121
|
-
exports.store = store;
|
|
122
122
|
exports.default = store;
|
|
123
123
|
//# sourceMappingURL=store.js.map
|
package/build/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":";;;;;AAWA,sBA+HC;AA1ID,kDAAgC;AAQhC,oDAAuB;AAGvB,SAAgB,KAAK,CACnB,eAAgC,EAChC,aAA4B,EAC5B,eAAgC;IAEhC,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,uCAAuC,CAAC,CAAC;IAEnE,KAAK,UAAU,UAAU,CAAC,IAAqB,EAAE,YAAoB;QACnE,MAAM,KAAK,GAAG;YACZ,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,YAAY;SACb,CAAC;QACF,OAAO,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,IAAyB,EAAE,YAAoB;QAC1E,MAAM,KAAK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@@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/test/location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/test/location.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,iBAAe;AACf,2EAA6D;AAC7D,qDAAoD;AACpD,kDAAgC;AAChC,2DAA6D;AAI7D,MAAM,MAAM,GAAG,cAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,QAAwB,CAAC;AAC7B,IAAI,KAAkB,CAAC;AAEvB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AAA,cAAc,CAAC,CAAC,CAAC,0CAAE,YAAY,EAAE,0BAA0B,CAAC,CAAC;YAC1E,MAAM,CAAC,KAAK,CAAC,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YACrD,MAAM,CAAC,KAAK,CAAC,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC3E,MAAM,CAAC,KAAK,CAAC,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;YAC1E,MAAM,CAAC,KAAK,CAAC,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;YAC3C,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjD,MAAM,CAAC,KAAK,CAAC,MAAA,OAAO,CAAC,CAAC,CAAC,0CAAE,SAAS,EAAE,SAAS,CAAC,CAAC;YAC/C,MAAM,CAAC,KAAK,CAAC,MAAA,OAAO,CAAC,CAAC,CAAC,0CAAE,SAAS,EAAE,SAAS,CAAC,CAAC;YAC/C,MAAM,CAAC,KAAK,CAAC,MAAA,OAAO,CAAC,CAAC,CAAC,0CAAE,SAAS,EAAE,KAAK,CAAC,CAAC;YAC3C,mBAAmB;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/build/test/mock.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
require("mocha");
|
|
4
5
|
const tabletcommand_backend_models_1 = require("tabletcommand-backend-models");
|
|
5
6
|
function default_1(modelsModule) {
|
|
@@ -131,5 +132,4 @@ function default_1(modelsModule) {
|
|
|
131
132
|
getConnection,
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
|
-
exports.default = default_1;
|
|
135
135
|
//# sourceMappingURL=mock.js.map
|
package/build/test/mock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":";;AASA,4BAkJC;AA1JD,iBAAe;AACf,+EAKsC;AAEtC,mBAAwB,YAA2D;IACjF,MAAM,YAAY,GAAG,0BAA0B,CAAC;IAChD,MAAM,QAAQ,GAAG,0BAA0B,CAAC;IAC5C,MAAM,MAAM,GAAG,kBAAkB,CAAC;IAElC,MAAM,CAAC,GAAwB;QAC7B,GAAG,EAAE,IAAA,gDAAQ,EAAC,YAAY,CAAC;QAC3B,UAAU,EAAE,iBAAiB;QAC7B,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,MAAM;QACjB,aAAa,EAAE,EAAE;QACjB,gBAAgB,EAAE,qBAAqB;QACvC,qBAAqB,EAAE,IAAI;QAC3B,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;QACjB,uBAAuB,EAAE,KAAK;QAC9B,wBAAwB,EAAE,IAAI;QAC9B,gBAAgB,EAAE,EAAE;QACpB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,IAAI;QACZ,kBAAkB,EAAE,cAAc;QAClC,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sCAAsC;QAC5C,aAAa,EAAE,yBAAyB;QACxC,cAAc,EAAE;YACd,OAAO,EAAE,eAAe;YACxB,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,OAAO;SACj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OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,SAAS;QAChB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,SAAS,aAAa;QACpB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO;QACL,UAAU,EAAE,CAAC;QACb,MAAM;QACN,aAAa;QACb,eAAe;QACf,MAAM;QACN,UAAU;QACV,KAAK;QACL,SAAS;QACT,SAAS;QACT,aAAa;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,kBAAkB,GACnB,CAAC;AAEF,wBAAgB,GAAG,CACjB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;mCAQY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,kBAAkB,GACnB,CAAC;AAEF,wBAAgB,GAAG,CACjB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;mCAQY,OAAO,CAAC,UAAU,CAAC,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS;EAqC7G;AAED,eAAe,GAAG,CAAC;AACnB,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC"}
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
-
import { Department, CADVehicle } from "tabletcommand-backend-models";
|
|
1
|
+
import { Department } from "tabletcommand-backend-models";
|
|
27
2
|
import { LocationPayload } from "./types";
|
|
28
3
|
import { StoreModule } from "./store";
|
|
29
4
|
export declare function location(store: StoreModule): {
|
|
30
|
-
processVehicle: (departmentExceptions: string[], item: LocationPayload, department: Partial<Department>, atDate: Date) => Promise<(import("mongoose").FlattenMaps<
|
|
5
|
+
processVehicle: (departmentExceptions: string[], item: LocationPayload, department: Partial<Department>, atDate: Date) => Promise<(import("mongoose").FlattenMaps<{
|
|
6
|
+
uuid: string;
|
|
7
|
+
departmentId: string;
|
|
8
|
+
modifiedDate: number;
|
|
9
|
+
modified: Date;
|
|
10
|
+
vehicleId: string;
|
|
11
|
+
radioName: string;
|
|
12
|
+
station: {
|
|
13
|
+
code: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
capability: string;
|
|
17
|
+
mapHidden: boolean;
|
|
18
|
+
locationToCAD: boolean;
|
|
19
|
+
backupDate: Date;
|
|
20
|
+
}> & {
|
|
31
21
|
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
32
24
|
}) | null>;
|
|
33
25
|
processItems: (department: Partial<Department>, items: LocationPayload[], atDate: Date) => Promise<void>;
|
|
34
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EAIX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;2CAgHW,MAAM,EAAE,QAAQ,eAAe,cAAc,OAAO,CAAC,UAAU,CAAC,UAAU,IAAI;;;;;;;;;;;;;;;;;;;;+BAqB1F,OAAO,CAAC,UAAU,CAAC,SAAS,eAAe,EAAE,UAAU,IAAI;EAoCpG;AAED,eAAe,QAAQ,CAAC;AACxB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
package/definitions/store.d.ts
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { DepartmentModel, Location, LocationModel, CADVehicleModel, CADVehicle } from "tabletcommand-backend-models";
|
|
27
2
|
import { LocationPayload } from "./types";
|
|
28
3
|
export declare function store(departmentModel: DepartmentModel, locationModel: LocationModel, cadVehicleModel: CADVehicleModel): {
|
|
29
|
-
getVehicle: (item: LocationPayload, departmentId: string) => Promise<(import("mongoose").FlattenMaps<
|
|
4
|
+
getVehicle: (item: LocationPayload, departmentId: string) => Promise<(import("mongoose").FlattenMaps<{
|
|
5
|
+
uuid: string;
|
|
6
|
+
departmentId: string;
|
|
7
|
+
modifiedDate: number;
|
|
8
|
+
modified: Date;
|
|
9
|
+
vehicleId: string;
|
|
10
|
+
radioName: string;
|
|
11
|
+
station: {
|
|
12
|
+
code: string;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
capability: string;
|
|
16
|
+
mapHidden: boolean;
|
|
17
|
+
locationToCAD: boolean;
|
|
18
|
+
backupDate: Date;
|
|
19
|
+
}> & {
|
|
30
20
|
_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
} & {
|
|
22
|
+
__v: number;
|
|
31
23
|
}) | null>;
|
|
32
|
-
updateVehicle: (item: Partial<CADVehicle>, departmentId: string) => Promise<(import("mongoose").Document<unknown, {}, CADVehicle> & CADVehicle & {
|
|
24
|
+
updateVehicle: (item: Partial<CADVehicle>, departmentId: string) => Promise<(import("mongoose").Document<unknown, {}, CADVehicle, {}> & CADVehicle & {
|
|
33
25
|
_id: import("mongoose").Types.ObjectId;
|
|
26
|
+
} & {
|
|
27
|
+
__v: number;
|
|
34
28
|
}) | null>;
|
|
35
29
|
updateLocation: (item: Partial<Location>, atDate: Date) => Promise<void>;
|
|
36
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1D,wBAAgB,KAAK,CACnB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;uBAIA,eAAe,gBAAgB,MAAM;;;;;;;;;;;;;;;;;;;;0BAQlC,OAAO,CAAC,UAAU,CAAC,gBAAgB,MAAM;;;;;2BAaxC,OAAO,CAAC,QAAQ,CAAC,UAAU,IAAI;EAmGpE;AACD,eAAe,KAAK,CAAC;AACrB,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -7,165 +7,271 @@ export default function (modelsModule: typeof import("tabletcommand-backend-mode
|
|
|
7
7
|
clearTestData: (mods: BackendModels) => Promise<void>;
|
|
8
8
|
prepareTestData: (mods: BackendModels) => Promise<void>;
|
|
9
9
|
before: () => Promise<{
|
|
10
|
-
ActionLog: mongoose.Model<import("tabletcommand-backend-models").ActionLog, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").ActionLog> & import("tabletcommand-backend-models").ActionLog & Required<{
|
|
11
|
-
_id: mongoose.Types.ObjectId;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
_id: mongoose.Types.ObjectId;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, any>;
|
|
40
|
-
|
|
41
|
-
_id: mongoose.Types.ObjectId;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, any>;
|
|
55
|
-
|
|
56
|
-
_id: mongoose.Types.ObjectId;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
_id: mongoose.Types.ObjectId;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
_id: mongoose.Types.ObjectId;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
_id: mongoose.Types.ObjectId;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
_id: mongoose.Types.ObjectId;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
_id: mongoose.Types.ObjectId;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
10
|
+
ActionLog: import("mongoose").Model<import("tabletcommand-backend-models").ActionLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ActionLog, {}> & import("tabletcommand-backend-models").ActionLog & Required<{
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
}> & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, any>;
|
|
15
|
+
Agency: import("mongoose").Model<import("tabletcommand-backend-models/definitions/models/agency").Agency, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models/definitions/models/agency").Agency, {}> & import("tabletcommand-backend-models/definitions/models/agency").Agency & Required<{
|
|
16
|
+
_id: import("mongoose").Types.ObjectId;
|
|
17
|
+
}> & {
|
|
18
|
+
__v: number;
|
|
19
|
+
}, any>;
|
|
20
|
+
ArcGISGroup: import("mongoose").Model<import("tabletcommand-backend-models").ArcGISGroup, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ArcGISGroup, {}> & import("tabletcommand-backend-models").ArcGISGroup & {
|
|
21
|
+
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}, any>;
|
|
25
|
+
Assignment: import("mongoose").Model<import("tabletcommand-backend-models").Assignment, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Assignment, {}> & import("tabletcommand-backend-models").Assignment & Required<{
|
|
26
|
+
_id: import("mongoose").Types.ObjectId;
|
|
27
|
+
}> & {
|
|
28
|
+
__v: number;
|
|
29
|
+
}, any>;
|
|
30
|
+
Battalion: import("mongoose").Model<import("tabletcommand-backend-models").Battalion, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Battalion, {}> & import("tabletcommand-backend-models").Battalion & Required<{
|
|
31
|
+
_id: import("mongoose").Types.ObjectId;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, any>;
|
|
35
|
+
BeaconLog: import("mongoose").Model<import("tabletcommand-backend-models").BeaconLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").BeaconLog, {}> & import("tabletcommand-backend-models").BeaconLog & Required<{
|
|
36
|
+
_id: import("mongoose").Types.ObjectId;
|
|
37
|
+
}> & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}, any>;
|
|
40
|
+
CADIncident: import("mongoose").Model<import("tabletcommand-backend-models").CADIncident, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADIncident, {}> & import("tabletcommand-backend-models").CADIncident & Required<{
|
|
41
|
+
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, any>;
|
|
45
|
+
CADIncidentBlock: import("mongoose").Model<import("tabletcommand-backend-models").CADIncidentBlock, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADIncidentBlock, {}> & import("tabletcommand-backend-models").CADIncidentBlock & Required<{
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
}> & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}, any>;
|
|
50
|
+
CADIncidentStream: import("mongoose").Model<import("tabletcommand-backend-models").CADIncidentStream, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADIncidentStream, {}> & import("tabletcommand-backend-models").CADIncidentStream & Required<{
|
|
51
|
+
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
}> & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, any>;
|
|
55
|
+
CADSimulation: import("mongoose").Model<import("tabletcommand-backend-models").CADSimulation, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADSimulation, {}> & import("tabletcommand-backend-models").CADSimulation & {
|
|
56
|
+
_id: import("mongoose").Types.ObjectId;
|
|
57
|
+
} & {
|
|
58
|
+
__v: number;
|
|
59
|
+
}, any>;
|
|
60
|
+
CADStatus: import("mongoose").Model<import("tabletcommand-backend-models").CADStatus, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADStatus, {}> & import("tabletcommand-backend-models").CADStatus & {
|
|
61
|
+
_id: import("mongoose").Types.ObjectId;
|
|
62
|
+
} & {
|
|
63
|
+
__v: number;
|
|
64
|
+
}, any>;
|
|
65
|
+
CADStatusMap: import("mongoose").Model<import("tabletcommand-backend-models").CADStatusMap, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADStatusMap, {}> & import("tabletcommand-backend-models").CADStatusMap & {
|
|
66
|
+
_id: import("mongoose").Types.ObjectId;
|
|
67
|
+
} & {
|
|
68
|
+
__v: number;
|
|
69
|
+
}, any>;
|
|
70
|
+
CADVehicle: import("mongoose").Model<import("tabletcommand-backend-models").CADVehicle, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADVehicle, {}> & import("tabletcommand-backend-models").CADVehicle & {
|
|
71
|
+
_id: import("mongoose").Types.ObjectId;
|
|
72
|
+
} & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, any>;
|
|
75
|
+
CADVehicleStatus: import("mongoose").Model<import("tabletcommand-backend-models").CADVehicleStatus, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADVehicleStatus, {}> & import("tabletcommand-backend-models").CADVehicleStatus & {
|
|
76
|
+
_id: import("mongoose").Types.ObjectId;
|
|
77
|
+
} & {
|
|
78
|
+
__v: number;
|
|
79
|
+
}, any>;
|
|
80
|
+
CADVehicleStatusHistory: import("mongoose").Model<import("tabletcommand-backend-models").CADVehicleStatusHistory, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CADVehicleStatusHistory, {}> & import("tabletcommand-backend-models").CADVehicleStatusHistory & {
|
|
81
|
+
_id: import("mongoose").Types.ObjectId;
|
|
82
|
+
} & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}, any>;
|
|
85
|
+
ChartDeviceStats: import("mongoose").Model<import("tabletcommand-backend-models").ChartDeviceStats, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ChartDeviceStats, {}> & import("tabletcommand-backend-models").ChartDeviceStats & Required<{
|
|
86
|
+
_id: import("mongoose").Types.ObjectId;
|
|
87
|
+
}> & {
|
|
88
|
+
__v: number;
|
|
89
|
+
}, any>;
|
|
90
|
+
ChartIncident: import("mongoose").Model<import("tabletcommand-backend-models").ChartIncident, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ChartIncident, {}> & import("tabletcommand-backend-models").ChartIncident & Required<{
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
}> & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, any>;
|
|
95
|
+
ChartManagedIncident: import("mongoose").Model<import("tabletcommand-backend-models").ChartManagedIncident, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ChartManagedIncident, {}> & import("tabletcommand-backend-models").ChartManagedIncident & Required<{
|
|
96
|
+
_id: import("mongoose").Types.ObjectId;
|
|
97
|
+
}> & {
|
|
98
|
+
__v: number;
|
|
99
|
+
}, any>;
|
|
100
|
+
ChartUser: import("mongoose").Model<import("tabletcommand-backend-models").ChartUser, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ChartUser, {}> & import("tabletcommand-backend-models").ChartUser & Required<{
|
|
101
|
+
_id: import("mongoose").Types.ObjectId;
|
|
102
|
+
}> & {
|
|
103
|
+
__v: number;
|
|
104
|
+
}, any>;
|
|
105
|
+
Checklist: import("mongoose").Model<import("tabletcommand-backend-models").Checklist, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Checklist, {}> & import("tabletcommand-backend-models").Checklist & Required<{
|
|
106
|
+
_id: import("mongoose").Types.ObjectId;
|
|
107
|
+
}> & {
|
|
108
|
+
__v: number;
|
|
109
|
+
}, any>;
|
|
110
|
+
ChecklistItem: import("mongoose").Model<import("tabletcommand-backend-models").ChecklistItem, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ChecklistItem, {}> & import("tabletcommand-backend-models").ChecklistItem & Required<{
|
|
111
|
+
_id: import("mongoose").Types.ObjectId;
|
|
112
|
+
}> & {
|
|
113
|
+
__v: number;
|
|
114
|
+
}, any>;
|
|
115
|
+
CSVImport: import("mongoose").Model<import("tabletcommand-backend-models").CSVImport, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").CSVImport, {}> & import("tabletcommand-backend-models").CSVImport & Required<{
|
|
116
|
+
_id: import("mongoose").Types.ObjectId;
|
|
117
|
+
}> & {
|
|
118
|
+
__v: number;
|
|
119
|
+
}, any>;
|
|
120
|
+
Department: import("mongoose").Model<import("tabletcommand-backend-models/definitions/models/department").Department, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models/definitions/models/department").Department, {}> & import("tabletcommand-backend-models/definitions/models/department").Department & Required<{
|
|
121
|
+
_id: import("mongoose").Types.ObjectId;
|
|
122
|
+
}> & {
|
|
123
|
+
__v: number;
|
|
124
|
+
}, any>;
|
|
125
|
+
DeviceMapping: import("mongoose").Model<import("tabletcommand-backend-models").DeviceMapping, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").DeviceMapping, {}> & import("tabletcommand-backend-models").DeviceMapping & Required<{
|
|
126
|
+
_id: import("mongoose").Types.ObjectId;
|
|
127
|
+
}> & {
|
|
128
|
+
__v: number;
|
|
129
|
+
}, any>;
|
|
130
|
+
Esri: import("mongoose").Model<import("tabletcommand-backend-models").Esri, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Esri, {}> & import("tabletcommand-backend-models").Esri & Required<{
|
|
131
|
+
_id: import("mongoose").Types.ObjectId;
|
|
132
|
+
}> & {
|
|
133
|
+
__v: number;
|
|
134
|
+
}, any>;
|
|
135
|
+
GSTMapping: import("mongoose").Model<import("tabletcommand-backend-models").GSTMapping, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").GSTMapping, {}> & import("tabletcommand-backend-models").GSTMapping & Required<{
|
|
136
|
+
_id: import("mongoose").Types.ObjectId;
|
|
137
|
+
}> & {
|
|
138
|
+
__v: number;
|
|
139
|
+
}, any>;
|
|
140
|
+
IncidentEvent: import("mongoose").Model<import("tabletcommand-backend-models").IncidentEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").IncidentEvent, {}> & import("tabletcommand-backend-models").IncidentEvent & Required<{
|
|
141
|
+
_id: import("mongoose").Types.ObjectId;
|
|
142
|
+
}> & {
|
|
143
|
+
__v: number;
|
|
144
|
+
}, any>;
|
|
145
|
+
IncidentFilter: import("mongoose").Model<import("tabletcommand-backend-models").IncidentFilter, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").IncidentFilter, {}> & import("tabletcommand-backend-models").IncidentFilter & Required<{
|
|
146
|
+
_id: import("mongoose").Types.ObjectId;
|
|
147
|
+
}> & {
|
|
148
|
+
__v: number;
|
|
149
|
+
}, any>;
|
|
150
|
+
IncidentNotified: import("mongoose").Model<import("tabletcommand-backend-models").IncidentNotified, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").IncidentNotified, {}> & import("tabletcommand-backend-models").IncidentNotified & Required<{
|
|
151
|
+
_id: import("mongoose").Types.ObjectId;
|
|
152
|
+
}> & {
|
|
153
|
+
__v: number;
|
|
154
|
+
}, any>;
|
|
155
|
+
IncidentShareCode: import("mongoose").Model<import("tabletcommand-backend-models").IncidentShareCode, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").IncidentShareCode, {}> & import("tabletcommand-backend-models").IncidentShareCode & Required<{
|
|
156
|
+
_id: import("mongoose").Types.ObjectId;
|
|
157
|
+
}> & {
|
|
158
|
+
__v: number;
|
|
159
|
+
}, any>;
|
|
160
|
+
IncidentTakeover: import("mongoose").Model<import("tabletcommand-backend-models").IncidentTakeover, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").IncidentTakeover, {}> & import("tabletcommand-backend-models").IncidentTakeover & Required<{
|
|
161
|
+
_id: import("mongoose").Types.ObjectId;
|
|
162
|
+
}> & {
|
|
163
|
+
__v: number;
|
|
164
|
+
}, any>;
|
|
165
|
+
JobLog: import("mongoose").Model<import("tabletcommand-backend-models").JobLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").JobLog, {}> & import("tabletcommand-backend-models").JobLog & Required<{
|
|
166
|
+
_id: import("mongoose").Types.ObjectId;
|
|
167
|
+
}> & {
|
|
168
|
+
__v: number;
|
|
169
|
+
}, any>;
|
|
170
|
+
Location: import("mongoose").Model<import("tabletcommand-backend-models").Location, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Location, {}> & import("tabletcommand-backend-models").Location & Required<{
|
|
171
|
+
_id: import("mongoose").Types.ObjectId;
|
|
172
|
+
}> & {
|
|
173
|
+
__v: number;
|
|
174
|
+
}, any>;
|
|
175
|
+
MailLog: import("mongoose").Model<import("tabletcommand-backend-models").MailLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").MailLog, {}> & import("tabletcommand-backend-models").MailLog & Required<{
|
|
176
|
+
_id: import("mongoose").Types.ObjectId;
|
|
177
|
+
}> & {
|
|
178
|
+
__v: number;
|
|
179
|
+
}, any>;
|
|
180
|
+
ManagedIncident: import("mongoose").Model<import("tabletcommand-backend-models").ManagedIncident, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ManagedIncident, {}> & import("tabletcommand-backend-models").ManagedIncident & Required<{
|
|
181
|
+
_id: import("mongoose").Types.ObjectId;
|
|
182
|
+
}> & {
|
|
183
|
+
__v: number;
|
|
184
|
+
}, any>;
|
|
185
|
+
Mark43IncidentRetry: import("mongoose").Model<import("tabletcommand-backend-models").Mark43IncidentRetry, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Mark43IncidentRetry, {}> & import("tabletcommand-backend-models").Mark43IncidentRetry & {
|
|
186
|
+
_id: import("mongoose").Types.ObjectId;
|
|
187
|
+
} & {
|
|
188
|
+
__v: number;
|
|
189
|
+
}, any>;
|
|
190
|
+
Message: import("mongoose").Model<import("tabletcommand-backend-models").Message, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Message, {}> & import("tabletcommand-backend-models").Message & Required<{
|
|
191
|
+
_id: import("mongoose").Types.ObjectId;
|
|
192
|
+
}> & {
|
|
193
|
+
__v: number;
|
|
194
|
+
}, any>;
|
|
195
|
+
Monitor: import("mongoose").Model<import("tabletcommand-backend-models").Monitor, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Monitor, {}> & import("tabletcommand-backend-models").Monitor & Required<{
|
|
196
|
+
_id: import("mongoose").Types.ObjectId;
|
|
197
|
+
}> & {
|
|
198
|
+
__v: number;
|
|
199
|
+
}, any>;
|
|
200
|
+
PersonnelImport: import("mongoose").Model<import("tabletcommand-backend-models").PersonnelImport, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").PersonnelImport, {}> & import("tabletcommand-backend-models").PersonnelImport & Required<{
|
|
201
|
+
_id: import("mongoose").Types.ObjectId;
|
|
202
|
+
}> & {
|
|
203
|
+
__v: number;
|
|
204
|
+
}, any>;
|
|
205
|
+
PersonnelKnown: import("mongoose").Model<import("tabletcommand-backend-models").PersonnelKnown, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").PersonnelKnown, {}> & import("tabletcommand-backend-models").PersonnelKnown & Required<{
|
|
206
|
+
_id: import("mongoose").Types.ObjectId;
|
|
207
|
+
}> & {
|
|
208
|
+
__v: number;
|
|
209
|
+
}, any>;
|
|
210
|
+
PersonnelRoster: import("mongoose").Model<import("tabletcommand-backend-models").PersonnelRoster, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").PersonnelRoster, {}> & import("tabletcommand-backend-models").PersonnelRoster & Required<{
|
|
211
|
+
_id: import("mongoose").Types.ObjectId;
|
|
212
|
+
}> & {
|
|
213
|
+
__v: number;
|
|
214
|
+
}, any>;
|
|
215
|
+
RateLimit: import("mongoose").Model<import("tabletcommand-backend-models").RateLimit, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").RateLimit, {}> & import("tabletcommand-backend-models").RateLimit & Required<{
|
|
216
|
+
_id: import("mongoose").Types.ObjectId;
|
|
217
|
+
}> & {
|
|
218
|
+
__v: number;
|
|
219
|
+
}, any>;
|
|
220
|
+
ReleaseNote: import("mongoose").Model<import("tabletcommand-backend-models").ReleaseNote, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ReleaseNote, {}> & import("tabletcommand-backend-models").ReleaseNote & Required<{
|
|
221
|
+
_id: import("mongoose").Types.ObjectId;
|
|
222
|
+
}> & {
|
|
223
|
+
__v: number;
|
|
224
|
+
}, any>;
|
|
225
|
+
RemoteLog: import("mongoose").Model<import("tabletcommand-backend-models").RemoteLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").RemoteLog, {}> & import("tabletcommand-backend-models").RemoteLog & Required<{
|
|
226
|
+
_id: import("mongoose").Types.ObjectId;
|
|
227
|
+
}> & {
|
|
228
|
+
__v: number;
|
|
229
|
+
}, any>;
|
|
230
|
+
RemoteLogStream: import("mongoose").Model<import("tabletcommand-backend-models").RemoteLogStream, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").RemoteLogStream, {}> & import("tabletcommand-backend-models").RemoteLogStream & Required<{
|
|
231
|
+
_id: import("mongoose").Types.ObjectId;
|
|
232
|
+
}> & {
|
|
233
|
+
__v: number;
|
|
234
|
+
}, any>;
|
|
235
|
+
Session: import("mongoose").Model<import("tabletcommand-backend-models").Session, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Session, {}> & import("tabletcommand-backend-models").Session & Required<{
|
|
146
236
|
_id: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
_id: mongoose.Types.ObjectId;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
237
|
+
}> & {
|
|
238
|
+
__v: number;
|
|
239
|
+
}, any>;
|
|
240
|
+
SMSLog: import("mongoose").Model<import("tabletcommand-backend-models").SMSLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").SMSLog, {}> & import("tabletcommand-backend-models").SMSLog & Required<{
|
|
241
|
+
_id: import("mongoose").Types.ObjectId;
|
|
242
|
+
}> & {
|
|
243
|
+
__v: number;
|
|
244
|
+
}, any>;
|
|
245
|
+
SMTPUnhandled: import("mongoose").Model<import("tabletcommand-backend-models").SMTPUnhandled, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").SMTPUnhandled, {}> & import("tabletcommand-backend-models").SMTPUnhandled & Required<{
|
|
246
|
+
_id: import("mongoose").Types.ObjectId;
|
|
247
|
+
}> & {
|
|
248
|
+
__v: number;
|
|
249
|
+
}, any>;
|
|
250
|
+
Template: import("mongoose").Model<import("tabletcommand-backend-models").Template, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").Template, {}> & import("tabletcommand-backend-models").Template & Required<{
|
|
251
|
+
_id: import("mongoose").Types.ObjectId;
|
|
252
|
+
}> & {
|
|
253
|
+
__v: number;
|
|
254
|
+
}, any>;
|
|
255
|
+
User: import("mongoose").Model<import("tabletcommand-backend-models").User, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").User, {}> & import("tabletcommand-backend-models").User & Required<{
|
|
256
|
+
_id: import("mongoose").Types.ObjectId;
|
|
257
|
+
}> & {
|
|
258
|
+
__v: number;
|
|
259
|
+
}, any>;
|
|
260
|
+
UserDevice: import("mongoose").Model<import("tabletcommand-backend-models").UserDevice, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").UserDevice, {}> & import("tabletcommand-backend-models").UserDevice & Required<{
|
|
261
|
+
_id: import("mongoose").Types.ObjectId;
|
|
262
|
+
}> & {
|
|
263
|
+
__v: number;
|
|
264
|
+
}, any>;
|
|
265
|
+
UserRegistration: import("mongoose").Model<import("tabletcommand-backend-models").UserRegistration, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").UserRegistration, {}> & import("tabletcommand-backend-models").UserRegistration & {
|
|
266
|
+
_id: import("mongoose").Types.ObjectId;
|
|
267
|
+
} & {
|
|
268
|
+
__v: number;
|
|
269
|
+
}, any>;
|
|
270
|
+
ValidationReport: import("mongoose").Model<import("tabletcommand-backend-models").ValidationReport, {}, {}, {}, import("mongoose").Document<unknown, {}, import("tabletcommand-backend-models").ValidationReport, {}> & import("tabletcommand-backend-models").ValidationReport & Required<{
|
|
271
|
+
_id: import("mongoose").Types.ObjectId;
|
|
272
|
+
}> & {
|
|
273
|
+
__v: number;
|
|
274
|
+
}, any>;
|
|
169
275
|
}>;
|
|
170
276
|
beforeEach: () => Promise<void>;
|
|
171
277
|
after: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,CAAC;AACf,OAAO,EACL,aAAa,EACb,MAAM,EACN,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,WAAU,YAAY,EAAE,cAAc,8BAA8B,CAAC;;;0BAkE9C,aAAa;4BAQX,aAAa
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,CAAC;AACf,OAAO,EACL,aAAa,EACb,MAAM,EACN,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,WAAU,YAAY,EAAE,cAAc,8BAA8B,CAAC;;;0BAkE9C,aAAa;4BAQX,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoD5B,aAAa;yBAIT,OAAO,QAAQ;EAgB1C"}
|
package/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineConfig
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
2
|
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
-
import promise from "eslint-plugin-promise";
|
|
4
3
|
import security from "eslint-plugin-security";
|
|
5
4
|
import globals from "globals";
|
|
6
5
|
import tsParser from "@typescript-eslint/parser";
|
|
@@ -8,6 +7,7 @@ import path from "node:path";
|
|
|
8
7
|
import { fileURLToPath } from "node:url";
|
|
9
8
|
import js from "@eslint/js";
|
|
10
9
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
10
|
+
import neostandard, { plugins } from "neostandard";
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = path.dirname(__filename);
|
|
@@ -17,46 +17,63 @@ const compat = new FlatCompat({
|
|
|
17
17
|
allConfig: js.configs.all
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
export default defineConfig([
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
20
|
+
export default defineConfig([
|
|
21
|
+
...neostandard({
|
|
22
|
+
ts: true,
|
|
23
|
+
}),
|
|
24
|
+
plugins.n.configs["flat/recommended"],
|
|
25
|
+
{
|
|
26
|
+
extends: compat.extends(
|
|
27
|
+
"eslint:recommended",
|
|
28
|
+
"plugin:@typescript-eslint/recommended",
|
|
29
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
30
|
+
"plugin:security/recommended-legacy",
|
|
31
|
+
),
|
|
32
|
+
|
|
33
|
+
plugins: {
|
|
34
|
+
"@typescript-eslint": typescriptEslint,
|
|
35
|
+
security,
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
languageOptions: {
|
|
39
|
+
globals: {
|
|
40
|
+
...globals.node,
|
|
41
|
+
...globals.mocha,
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
parser: tsParser,
|
|
45
|
+
ecmaVersion: 2019,
|
|
46
|
+
sourceType: "commonjs",
|
|
47
|
+
|
|
48
|
+
parserOptions: {
|
|
49
|
+
project: "./src/tsconfig.json",
|
|
50
|
+
},
|
|
38
51
|
},
|
|
39
52
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
53
|
+
rules: {
|
|
54
|
+
quotes: [2, "double"],
|
|
55
|
+
semi: [2, "always"],
|
|
56
|
+
"space-before-function-paren": [0],
|
|
57
|
+
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
58
|
+
"@typescript-eslint/no-empty-interface": 0,
|
|
59
|
+
"@typescript-eslint/require-await": 0,
|
|
60
|
+
"@typescript-eslint/restrict-template-expressions": 0,
|
|
43
61
|
|
|
44
|
-
|
|
45
|
-
|
|
62
|
+
"@typescript-eslint/no-misused-promises": ["error", {
|
|
63
|
+
checksVoidReturn: false,
|
|
64
|
+
}],
|
|
65
|
+
//
|
|
66
|
+
"@stylistic/quotes": [2, "double"],
|
|
67
|
+
"@stylistic/space-before-function-paren": [0],
|
|
68
|
+
"@stylistic/semi": [2, "always"],
|
|
69
|
+
"import-x/first": [0],
|
|
70
|
+
"camelcase": [0],
|
|
71
|
+
"n/no-process-exit": [0],
|
|
72
|
+
"n/no-unpublished-import": ["error", {
|
|
73
|
+
"allowModules": ["chai", "mocha"]
|
|
74
|
+
}],
|
|
75
|
+
// this is a workaround for import of .ts files
|
|
76
|
+
"n/no-missing-import": [0],
|
|
46
77
|
},
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
rules: {
|
|
50
|
-
quotes: [2, "double"],
|
|
51
|
-
semi: [2, "always"],
|
|
52
|
-
"space-before-function-paren": [0],
|
|
53
|
-
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
54
|
-
"@typescript-eslint/no-empty-interface": 0,
|
|
55
|
-
"@typescript-eslint/require-await": 0,
|
|
56
|
-
"@typescript-eslint/restrict-template-expressions": 0,
|
|
57
|
-
|
|
58
|
-
"@typescript-eslint/no-misused-promises": ["error", {
|
|
59
|
-
checksVoidReturn: false,
|
|
60
|
-
}],
|
|
61
|
-
},
|
|
62
|
-
}]);
|
|
78
|
+
}
|
|
79
|
+
]);
|
package/gulpfile.js
CHANGED
|
@@ -3,15 +3,21 @@ const exec = require("gulp-execa");
|
|
|
3
3
|
const { deleteAsync } = require("del");
|
|
4
4
|
|
|
5
5
|
gulp.task("clean", function() {
|
|
6
|
-
return deleteAsync(["build/**", "
|
|
6
|
+
return deleteAsync(["build/**", "definitions/**"], {
|
|
7
7
|
force: true
|
|
8
8
|
});
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
gulp.task("ts",
|
|
11
|
+
gulp.task("ts", exec.task("tsc -p src"));
|
|
12
12
|
|
|
13
|
-
gulp.task("
|
|
13
|
+
gulp.task("type-coverage", exec.task("type-coverage --detail"));
|
|
14
14
|
|
|
15
|
-
gulp.task("
|
|
15
|
+
gulp.task("cspell", exec.task("cspell"));
|
|
16
16
|
|
|
17
|
-
gulp.task("
|
|
17
|
+
gulp.task("lint", exec.task("eslint src"));
|
|
18
|
+
|
|
19
|
+
gulp.task("test", exec.task("ts-mocha -p src --reporter list --recursive --extension ts src/test"));
|
|
20
|
+
|
|
21
|
+
gulp.task("build", gulp.series("clean", "ts"));
|
|
22
|
+
|
|
23
|
+
gulp.task("default", gulp.series("cspell", "type-coverage", "lint", "clean", "ts", "test"));
|
package/package.json
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabletcommand-location",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Tablet Command Location",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "gulp build",
|
|
8
8
|
"lint": "eslint src",
|
|
9
|
-
"test": "
|
|
9
|
+
"test": "type-coverage && ts-mocha -p src --reporter list --recursive --extension ts src/test"
|
|
10
10
|
},
|
|
11
11
|
"author": "Joe Goeman <joe@tabletcommand.com>",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"types": "definitions/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"debug": "^4.4.
|
|
15
|
+
"debug": "^4.4.1",
|
|
16
16
|
"lodash": "~4.17.21",
|
|
17
|
-
"tabletcommand-backend-models": "~7.
|
|
17
|
+
"tabletcommand-backend-models": "~7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@eslint/eslintrc": "^3.3.1",
|
|
21
|
-
"@eslint/js": "^9.
|
|
22
|
-
"@types/chai": "^5.2.
|
|
21
|
+
"@eslint/js": "^9.30.1",
|
|
22
|
+
"@types/chai": "^5.2.2",
|
|
23
23
|
"@types/debug": "^4.1.12",
|
|
24
|
-
"@types/express": "^4.17.
|
|
25
|
-
"@types/lodash": "^4.17.
|
|
24
|
+
"@types/express": "^4.17.23",
|
|
25
|
+
"@types/lodash": "^4.17.20",
|
|
26
26
|
"@types/mocha": "^10.0.10",
|
|
27
|
-
"@types/node": "^22.
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
29
|
-
"@typescript-eslint/parser": "^8.
|
|
27
|
+
"@types/node": "^22.16.0",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
|
29
|
+
"@typescript-eslint/parser": "^8.35.1",
|
|
30
30
|
"chai": "^5.2.0",
|
|
31
|
-
"cspell": "^
|
|
31
|
+
"cspell": "^9.1.2",
|
|
32
32
|
"del": "^8.0.0",
|
|
33
|
-
"eslint": "^9.
|
|
34
|
-
"eslint-plugin-node": "^11.1.0",
|
|
35
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
33
|
+
"eslint": "^9.30.1",
|
|
36
34
|
"eslint-plugin-security": "^3.0.1",
|
|
37
|
-
"globals": "^16.
|
|
38
|
-
"gulp": "^5.0.
|
|
35
|
+
"globals": "^16.3.0",
|
|
36
|
+
"gulp": "^5.0.1",
|
|
39
37
|
"gulp-execa": "^8.0.1",
|
|
40
|
-
"mocha": "^11.1
|
|
38
|
+
"mocha": "^11.7.1",
|
|
39
|
+
"neostandard": "^0.12.1",
|
|
40
|
+
"ts-mocha": "^11.1.0",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
|
+
"tsconfig-paths": "^4.2.0",
|
|
42
43
|
"type-coverage": "^2.29.7",
|
|
43
|
-
"typescript": "~
|
|
44
|
+
"typescript": "~5.8.3"
|
|
44
45
|
},
|
|
45
46
|
"typeCoverage": {
|
|
46
47
|
"atLeast": 99.3,
|
package/src/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ export {
|
|
|
25
25
|
export function lib(
|
|
26
26
|
departmentModel: DepartmentModel,
|
|
27
27
|
locationModel: LocationModel,
|
|
28
|
-
cadVehicleModel: CADVehicleModel
|
|
28
|
+
cadVehicleModel: CADVehicleModel
|
|
29
29
|
) {
|
|
30
30
|
const store = storeModule(departmentModel, locationModel, cadVehicleModel);
|
|
31
31
|
const location = locationModule(store);
|
package/src/location.ts
CHANGED
|
@@ -101,7 +101,7 @@ export function location(store: StoreModule) {
|
|
|
101
101
|
const speed = item.speed;
|
|
102
102
|
cadAVL.speed = speed;
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
if (_.isNumber(item.heading) && item.heading >= 0 && item.heading <= 360) {
|
|
106
106
|
const heading = item.heading;
|
|
107
107
|
cadAVL.heading = heading;
|
|
@@ -134,7 +134,7 @@ export function location(store: StoreModule) {
|
|
|
134
134
|
department.cadOneWayVehiclesEnabled &&
|
|
135
135
|
(department.cadBidirectionalEnabled !== true || isBidirectionalException)) {
|
|
136
136
|
const vehicleItem: Partial<CADVehicle> = {
|
|
137
|
-
departmentId
|
|
137
|
+
departmentId,
|
|
138
138
|
modifiedDate: atDate.valueOf() / 1000.0,
|
|
139
139
|
modified: atDate,
|
|
140
140
|
radioName: item.radioName,
|
package/src/store.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { LocationObject, LocationPayload } from "./types";
|
|
|
12
12
|
export function store(
|
|
13
13
|
departmentModel: DepartmentModel,
|
|
14
14
|
locationModel: LocationModel,
|
|
15
|
-
cadVehicleModel: CADVehicleModel
|
|
15
|
+
cadVehicleModel: CADVehicleModel
|
|
16
16
|
) {
|
|
17
17
|
const debug = debugModule("tabletcommand-location:location:store");
|
|
18
18
|
|
|
@@ -38,6 +38,7 @@ export function store(
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
async function updateLocation(item: Partial<Location>, atDate: Date) {
|
|
41
|
+
// eslint-disable-next-line new-cap
|
|
41
42
|
const modelItem = new locationModel(item);
|
|
42
43
|
const query = {
|
|
43
44
|
device_type: modelItem.device_type,
|
package/src/test/location.ts
CHANGED
|
@@ -26,7 +26,7 @@ describe("location", () => {
|
|
|
26
26
|
store = storeModule(
|
|
27
27
|
models.Department,
|
|
28
28
|
models.Location,
|
|
29
|
-
models.CADVehicle
|
|
29
|
+
models.CADVehicle
|
|
30
30
|
);
|
|
31
31
|
location = locationModule(store);
|
|
32
32
|
});
|
|
@@ -117,4 +117,3 @@ describe("location", () => {
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
|
-
|