tango-api-schema 2.1.21 → 2.1.22

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 CHANGED
@@ -43,6 +43,7 @@ import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
43
43
  import lowcountReasonModel from "./schema/lowcountReason.model.js";
44
44
  import auditUserWalletModel from "./schema/auditUserWallet.model.js";
45
45
  import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
46
+ import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
46
47
 
47
48
 
48
49
 
@@ -92,5 +93,6 @@ export default {
92
93
  storeEmpDetectionModel,
93
94
  lowcountReasonModel,
94
95
  auditUserWalletModel,
95
- mailOnlyuserModel
96
+ mailOnlyuserModel,
97
+ empDetectionOutputModel
96
98
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -56,6 +56,15 @@ const auditUserWalletSchema = new mongoose.Schema( {
56
56
  type:Number,
57
57
  default:0
58
58
  },
59
+ deductionBytimeSpent:{
60
+ type:Number
61
+ },
62
+ deductionByMinimumTarget:{
63
+ type:Number
64
+ },
65
+ deductionByMapping:{
66
+ type: Number
67
+ }
59
68
 
60
69
 
61
70
  },
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @name api_emp_detection_output
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const empDetectionOutputSchema = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ },
16
+ moduleType:{
17
+ type:String,
18
+ enum:["mobile-detection", "uniform-detection"]
19
+ },
20
+ totalCount: {
21
+ type: Number,
22
+ },
23
+ auditId: {
24
+ type: String,
25
+ },
26
+ auditType: {
27
+ type: String,
28
+ },
29
+ fileDate: {
30
+ type: String,
31
+ },
32
+
33
+ junkCount: {
34
+ type: Number,
35
+ },
36
+ junk: {
37
+ type: Array,
38
+ },
39
+ employeeCount: {
40
+ type: Number,
41
+ },
42
+ employee: {
43
+ type: Array,
44
+ }
45
+ },
46
+ {
47
+ timestamps: true,
48
+ strict: true,
49
+ versionKey: false,
50
+ } );
51
+
52
+ empDetectionOutputSchema.index({
53
+ storeId: 1,
54
+ clientId: 1,
55
+ userId: 1,
56
+ moduleType: 1,
57
+ fileDate: 1
58
+ });
59
+
60
+ export default mongoose.model( 'empDetectionOutput', empDetectionOutputSchema, 'empDetectionOutput' );
61
+