tabletcommand-backend-models 5.27.0 → 5.27.1
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/models/monitor.js
CHANGED
|
@@ -34,9 +34,14 @@ async function MonitorModule(mongoose) {
|
|
|
34
34
|
type: Number,
|
|
35
35
|
default: helpers_1.retrieveCurrentUnixTime,
|
|
36
36
|
},
|
|
37
|
+
sentAt: {
|
|
38
|
+
type: Date,
|
|
39
|
+
default: helpers_1.currentDate,
|
|
40
|
+
},
|
|
37
41
|
ticketId: {
|
|
38
42
|
type: String,
|
|
39
|
-
|
|
43
|
+
default: "",
|
|
44
|
+
},
|
|
40
45
|
}, {
|
|
41
46
|
collection: "massive_monitor",
|
|
42
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../src/models/monitor.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../src/models/monitor.ts"],"names":[],"mappings":";;;AAAA,wCAUoB;AACpB,+DAA+D;AAExD,KAAK,UAAU,aAAa,CAAC,QAAwB;IAC1D,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAEnC,MAAM,WAAW,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACvC,GAAG,EAAE;YACH,IAAI,EAAE,KAAK,CAAC,QAAQ;YACpB,IAAI,EAAE,IAAI;SACX;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;SACZ;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,iCAAuB;SACjC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,qBAAW;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;KACF,EAAE;QACD,UAAU,EAAE,iBAAiB;KAC9B,CAAC,CAAC;IACH,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE;QACxB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IAEH,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,WAAW,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACzC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAEpC,OAAO,IAAA,qBAAW,EAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACvD,CAAC;AAxDD,sCAwDC;AAID,kBAAe,aAA2E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/models/monitor.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/models/monitor.ts"],"names":[],"mappings":";AAAA,OAAO,EAIL,8BAA8B,EAC9B,+BAA+B,EAE/B,cAAc,EACd,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAGpB,wBAAsB,aAAa,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;GAwD3D;AAED,MAAM,WAAW,OAAQ,SAAQ,8BAA8B,CAAC,OAAO,aAAa,CAAC;CAAI;AACzF,MAAM,WAAW,YAAa,SAAQ,+BAA+B,CAAC,OAAO,CAAC;CAAI;;AAClF,wBAA2F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabletcommand-backend-models",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.1",
|
|
4
4
|
"description": "Tablet Command Backend Models",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "gulp",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"bluebird": "^3.7.2",
|
|
20
20
|
"debug": "^4.3.4",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"moment-timezone": "^0.5.
|
|
22
|
+
"moment-timezone": "^0.5.39",
|
|
23
23
|
"mongoose": "=5.10.19",
|
|
24
24
|
"mongoose-lean-virtuals": "^0.7.6",
|
|
25
25
|
"uuid": "~9.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/bluebird": "^3.5.37",
|
|
29
|
-
"@types/chai": "^4.3.
|
|
30
|
-
"@types/lodash": "^4.14.
|
|
29
|
+
"@types/chai": "^4.3.4",
|
|
30
|
+
"@types/lodash": "^4.14.190",
|
|
31
31
|
"@types/mocha": "^9.1.1",
|
|
32
32
|
"@types/mongodb": "^3.6.20",
|
|
33
33
|
"@types/mongoose": "~5.10.5",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "~5.38.1",
|
|
36
36
|
"@typescript-eslint/parser": "~5.38.1",
|
|
37
37
|
"chai": "^4.3.6",
|
|
38
|
-
"cspell": "^6.
|
|
38
|
+
"cspell": "^6.15.0",
|
|
39
39
|
"del": "^6.1.1",
|
|
40
40
|
"eslint": "^8.24.0",
|
|
41
41
|
"gulp": "^4.0.2",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"gulp-shell": "^0.8.0",
|
|
44
44
|
"mocha": "^10.0.0",
|
|
45
45
|
"ts-node": "^10.9.1",
|
|
46
|
-
"type-coverage": "^2.
|
|
46
|
+
"type-coverage": "^2.24.1",
|
|
47
47
|
"typescript": "~4.7.4",
|
|
48
48
|
"yargs-parser": ">=21.1.1"
|
|
49
49
|
},
|
package/src/models/monitor.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createModel,
|
|
3
3
|
createSchema,
|
|
4
|
+
currentDate,
|
|
4
5
|
ItemTypeFromTypeSchemaFunction,
|
|
5
6
|
ModelTypeFromTypeSchemaFunction,
|
|
6
7
|
MongooseDocument,
|
|
@@ -42,9 +43,14 @@ export async function MonitorModule(mongoose: MongooseModule) {
|
|
|
42
43
|
type: Number,
|
|
43
44
|
default: retrieveCurrentUnixTime,
|
|
44
45
|
},
|
|
46
|
+
sentAt: {
|
|
47
|
+
type: Date,
|
|
48
|
+
default: currentDate,
|
|
49
|
+
},
|
|
45
50
|
ticketId: {
|
|
46
51
|
type: String,
|
|
47
|
-
|
|
52
|
+
default: "",
|
|
53
|
+
},
|
|
48
54
|
}, {
|
|
49
55
|
collection: "massive_monitor",
|
|
50
56
|
});
|