tabletcommand-incident 0.1.1 → 0.1.3
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 +3 -16
- package/build/index.js.map +1 -1
- package/definitions/index.d.ts +2 -1
- package/definitions/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -1
package/build/index.js
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
4
|
};
|
|
19
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.indexFile = void 0;
|
|
6
|
+
exports.indexFile = exports.setIncidentType = void 0;
|
|
21
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
22
8
|
const location_1 = __importDefault(require("./location"));
|
|
23
9
|
const store_1 = __importDefault(require("./store"));
|
|
24
10
|
// Forward imports
|
|
25
|
-
|
|
11
|
+
const set_incident_type_1 = __importDefault(require("./set-incident-type"));
|
|
12
|
+
exports.setIncidentType = set_incident_type_1.default;
|
|
26
13
|
function indexFile(departmentModel, locationModel, cadVehicleModel) {
|
|
27
14
|
const store = (0, store_1.default)(departmentModel, locationModel, cadVehicleModel);
|
|
28
15
|
const location = (0, location_1.default)(store);
|
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":";;;;;;AAMA,oDAAuB;AAEvB,0DAAwC;AACxC,oDAAkC;AAGlC,kBAAkB;AAClB,4EAA6E;AAE3E,0BAFK,2BAAe,CAEL;AAIjB,SAAgB,SAAS,CACvB,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;QAE1B,IAAI,gBAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,gBAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC3C,OAAO,EAAE,CAAC;SACX;QACD,IAAI,gBAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC1C,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;QACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACtE,OAAO,MAAM,CAAC;IAChB,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;AA5CD,8BA4CC;AAED,kBAAe,SAAS,CAAC"}
|
package/definitions/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DepartmentModel, LocationModel, CADVehicleModel, Department } from "tabletcommand-backend-models";
|
|
2
2
|
import { LocationPayload } from "./types";
|
|
3
|
-
|
|
3
|
+
import setIncidentType, { SetIncidentTypeModule } from "./set-incident-type";
|
|
4
|
+
export { setIncidentType, SetIncidentTypeModule, };
|
|
4
5
|
export declare function indexFile(departmentModel: DepartmentModel, locationModel: LocationModel, cadVehicleModel: CADVehicleModel): {
|
|
5
6
|
processLocations: (department: Partial<Department>, items: LocationPayload[] | null | undefined) => Promise<void | never[]>;
|
|
6
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,eAAe,EAAE,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,CAAC;AAEF,wBAAgB,SAAS,CACvB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;mCAQY,QAAQ,UAAU,CAAC,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS;EAiC7G;AAED,eAAe,SAAS,CAAC;AACzB,oBAAY,cAAc,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,11 @@ import storeModule from "./store";
|
|
|
11
11
|
import { LocationPayload } from "./types";
|
|
12
12
|
|
|
13
13
|
// Forward imports
|
|
14
|
-
|
|
14
|
+
import setIncidentType, { SetIncidentTypeModule } from "./set-incident-type";
|
|
15
|
+
export {
|
|
16
|
+
setIncidentType,
|
|
17
|
+
SetIncidentTypeModule,
|
|
18
|
+
};
|
|
15
19
|
|
|
16
20
|
export function indexFile(
|
|
17
21
|
departmentModel: DepartmentModel,
|