tango-api-schema 2.1.7 → 2.1.9
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/index.js +3 -1
- package/package.json +1 -1
- package/schema/lowcountReason.model.js +45 -0
- package/schema/traxAuditData.model.js +3 -0
package/index.js
CHANGED
|
@@ -40,6 +40,7 @@ import traxAuditDataModel from "./schema/traxAuditData.model.js";
|
|
|
40
40
|
import binaryAuditModel from "./schema/binaryAudit.model.js";
|
|
41
41
|
import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
|
|
42
42
|
import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
43
|
+
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
export default {
|
|
@@ -84,5 +85,6 @@ export default {
|
|
|
84
85
|
traxAuditDataModel,
|
|
85
86
|
binaryAuditModel,
|
|
86
87
|
userEmpDetectionModel,
|
|
87
|
-
storeEmpDetectionModel
|
|
88
|
+
storeEmpDetectionModel,
|
|
89
|
+
lowcountReasonModel
|
|
88
90
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const lowcountReasons = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
parentId: {
|
|
9
|
+
type: mongoose.Types.ObjectId
|
|
10
|
+
},
|
|
11
|
+
parentName: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
order: {
|
|
15
|
+
type: Number
|
|
16
|
+
},
|
|
17
|
+
toolTips: [
|
|
18
|
+
{
|
|
19
|
+
name: {
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
order: {
|
|
23
|
+
type: Number
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
stepstoResolve: [{
|
|
28
|
+
name: {
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
31
|
+
order: {
|
|
32
|
+
type: Number
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
strict: true,
|
|
39
|
+
versionKey: false,
|
|
40
|
+
timestamps: true,
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export default mongoose.model('lowcountReasons', lowcountReasons, 'lowcountReasons');
|