tabletcommand-backend-models 7.4.35 → 7.4.36
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.
|
@@ -77,13 +77,6 @@ async function IncidentNotifiedModule(mongoose) {
|
|
|
77
77
|
}, {
|
|
78
78
|
name: "departmentId_1_updated_1",
|
|
79
79
|
});
|
|
80
|
-
// TODO: Review this
|
|
81
|
-
// modelSchema.index({
|
|
82
|
-
// departmentId: 1,
|
|
83
|
-
// IncidentNumber: 1
|
|
84
|
-
// }, {
|
|
85
|
-
// name: "departmentId_1_IncidentNumber_1",
|
|
86
|
-
// });
|
|
87
80
|
modelSchema.index({
|
|
88
81
|
departmentId: 1,
|
|
89
82
|
IncidentNumber: 1
|
|
@@ -91,6 +84,15 @@ async function IncidentNotifiedModule(mongoose) {
|
|
|
91
84
|
name: "departmentId_1_IncidentNumber_1_unique",
|
|
92
85
|
unique: true,
|
|
93
86
|
});
|
|
87
|
+
// Used by pingdom,
|
|
88
|
+
// to get the last modified from the latest notification,
|
|
89
|
+
// regardless of department
|
|
90
|
+
modelSchema.index({
|
|
91
|
+
updated: -1,
|
|
92
|
+
"sent.type": 1,
|
|
93
|
+
}, {
|
|
94
|
+
name: "updated_-1_sent_type_1",
|
|
95
|
+
});
|
|
94
96
|
return mongoose.model("IncidentNotified", modelSchema, "massive_incident_notified", { overwriteModels: true });
|
|
95
97
|
}
|
|
96
98
|
//# sourceMappingURL=incident-notified.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-notified.js","sourceRoot":"","sources":["../../src/models/incident-notified.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"incident-notified.js","sourceRoot":"","sources":["../../src/models/incident-notified.ts"],"names":[],"mappings":";;AASA,yCAmGC;AA3GD,wCAGoB;AAKL,KAAK,UAAU,sBAAsB,CAAC,QAAwB;IAC3E,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;IAE5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E;YACP,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,qBAAW;SACrB;KACF,EAAE;QACD,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,CAAC;QAChB,YAAY,EAAE,CAAC;QACf,OAAO,EAAE,CAAC;KACX,EAAE;QACD,IAAI,EAAE,0BAA0B;KACjC,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,CAAC;QAChB,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;KAClB,EAAE;QACD,IAAI,EAAE,wCAAwC;QAC9C,MAAM,EAAE,IAAI;KACb,CAAC,CAAC;IAEH,mBAAmB;IACnB,yDAAyD;IACzD,2BAA2B;IAC3B,WAAW,CAAC,KAAK,CAAC;QAChB,OAAO,EAAE,CAAC,CAAC;QACX,WAAW,EAAE,CAAC;KACf,EAAE;QACD,IAAI,EAAE,wBAAwB;KAC/B,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,KAAK,CAAmB,kBAAkB,EAAE,WAAW,EAAE,2BAA2B,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;AACnI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-notified.d.ts","sourceRoot":"","sources":["../../src/models/incident-notified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAEL,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAA0B,MAAM,0BAA0B,CAAC;AAExF,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;CAAI;AAElE,wBAA8B,sBAAsB,CAAC,QAAQ,EAAE,cAAc;;;;
|
|
1
|
+
{"version":3,"file":"incident-notified.d.ts","sourceRoot":"","sources":["../../src/models/incident-notified.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAEL,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAA0B,MAAM,0BAA0B,CAAC;AAExF,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;CAAI;AAElE,wBAA8B,sBAAsB,CAAC,QAAQ,EAAE,cAAc;;;;SAmG5E;AAED,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,gBAAgB,CAAC;CAAI"}
|
package/eslint.config.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
|
-
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
2
|
import globals from "globals";
|
|
4
3
|
import tsParser from "@typescript-eslint/parser";
|
|
5
4
|
import path from "node:path";
|
|
@@ -22,19 +21,17 @@ export default defineConfig([
|
|
|
22
21
|
"mocha",
|
|
23
22
|
"node",
|
|
24
23
|
],
|
|
25
|
-
ts:
|
|
24
|
+
ts: true,
|
|
26
25
|
}),
|
|
27
26
|
plugins.n.configs["flat/recommended"],
|
|
28
27
|
//
|
|
29
28
|
{
|
|
30
29
|
extends: compat.extends(
|
|
31
30
|
"eslint:recommended",
|
|
32
|
-
"plugin:@typescript-eslint/recommended",
|
|
33
|
-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
34
31
|
),
|
|
35
32
|
|
|
36
33
|
plugins: {
|
|
37
|
-
|
|
34
|
+
// security, promise
|
|
38
35
|
},
|
|
39
36
|
|
|
40
37
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabletcommand-backend-models",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.36",
|
|
4
4
|
"description": "Tablet Command Backend Models",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint src",
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"debug": "^4.4.3",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"moment-timezone": "^0.6.0",
|
|
22
|
-
"mongoose": "^8.
|
|
22
|
+
"mongoose": "^8.21.0",
|
|
23
23
|
"mongoose-lean-virtuals": "^2.1.0",
|
|
24
24
|
"uuid": "~13.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/eslintrc": "^3.3.3",
|
|
28
|
-
"@eslint/js": "^9.39.
|
|
28
|
+
"@eslint/js": "^9.39.2",
|
|
29
29
|
"@types/chai": "^5.2.3",
|
|
30
30
|
"@types/lodash": "^4.17.21",
|
|
31
31
|
"@types/mocha": "^10.0.10",
|
|
32
|
-
"@types/node": "^22.19.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
34
|
-
"@typescript-eslint/parser": "~8.
|
|
35
|
-
"chai": "^6.2.
|
|
32
|
+
"@types/node": "^22.19.3",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "~8.51.0",
|
|
34
|
+
"@typescript-eslint/parser": "~8.51.0",
|
|
35
|
+
"chai": "^6.2.2",
|
|
36
36
|
"cspell": "^9.4.0",
|
|
37
37
|
"del": "^8.0.1",
|
|
38
|
-
"eslint": "^9.39.
|
|
39
|
-
"globals": "^
|
|
38
|
+
"eslint": "^9.39.2",
|
|
39
|
+
"globals": "^17.0.0",
|
|
40
40
|
"gulp": "^5.0.1",
|
|
41
41
|
"gulp-execa": "^8.0.1",
|
|
42
42
|
"mocha": "^11.7.5",
|
|
@@ -87,14 +87,6 @@ export default async function IncidentNotifiedModule(mongoose: MongooseModule) {
|
|
|
87
87
|
name: "departmentId_1_updated_1",
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
// TODO: Review this
|
|
91
|
-
// modelSchema.index({
|
|
92
|
-
// departmentId: 1,
|
|
93
|
-
// IncidentNumber: 1
|
|
94
|
-
// }, {
|
|
95
|
-
// name: "departmentId_1_IncidentNumber_1",
|
|
96
|
-
// });
|
|
97
|
-
|
|
98
90
|
modelSchema.index({
|
|
99
91
|
departmentId: 1,
|
|
100
92
|
IncidentNumber: 1
|
|
@@ -103,6 +95,16 @@ export default async function IncidentNotifiedModule(mongoose: MongooseModule) {
|
|
|
103
95
|
unique: true,
|
|
104
96
|
});
|
|
105
97
|
|
|
98
|
+
// Used by pingdom,
|
|
99
|
+
// to get the last modified from the latest notification,
|
|
100
|
+
// regardless of department
|
|
101
|
+
modelSchema.index({
|
|
102
|
+
updated: -1,
|
|
103
|
+
"sent.type": 1,
|
|
104
|
+
}, {
|
|
105
|
+
name: "updated_-1_sent_type_1",
|
|
106
|
+
});
|
|
107
|
+
|
|
106
108
|
return mongoose.model<IncidentNotified>("IncidentNotified", modelSchema, "massive_incident_notified", { overwriteModels: true });
|
|
107
109
|
}
|
|
108
110
|
|