tango-api-schema 2.1.20 → 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
@@ -41,8 +41,9 @@ 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
43
  import lowcountReasonModel from "./schema/lowcountReason.model.js";
44
- import auditUserWalletMedel from "./schema/auditUserWallet.model.js";
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
 
@@ -91,6 +92,7 @@ export default {
91
92
  userEmpDetectionModel,
92
93
  storeEmpDetectionModel,
93
94
  lowcountReasonModel,
94
- auditUserWalletMedel,
95
- mailOnlyuserModel
95
+ auditUserWalletModel,
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.20",
3
+ "version": "2.1.22",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6,7 +6,7 @@
6
6
  import mongoose from 'mongoose';
7
7
 
8
8
  // Schema
9
- const auditUserWalletSchem = new mongoose.Schema( {
9
+ const auditUserWalletSchema = new mongoose.Schema( {
10
10
  userEmail: {
11
11
  type: String,
12
12
  trim:true
@@ -56,6 +56,15 @@ const auditUserWalletSchem = 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
  },
@@ -65,11 +74,11 @@ const auditUserWalletSchem = new mongoose.Schema( {
65
74
  versionKey: false,
66
75
  } );
67
76
 
68
- auditUserWalletSchem.index({
77
+ auditUserWalletSchema.index({
69
78
  userEmail: 1,
70
79
  date: 1,
71
80
  moduleType:1
72
81
  });
73
82
 
74
- export default mongoose.model( 'auditUserWallet', auditUserWalletSchem, 'auditUserWallet' );
83
+ export default mongoose.model( 'auditUserWallet', auditUserWalletSchema, 'auditUserWallet' );
75
84
 
@@ -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
+
@@ -4,12 +4,12 @@ import mongoose from 'mongoose';
4
4
  // schema
5
5
  const collection = new mongoose.Schema( {
6
6
  email: {
7
- type: String,
8
- trim: true,
7
+ type: String,
9
8
  unique: true,
10
9
  required:true
11
10
  },
12
11
  clientId:{
12
+ type: String,
13
13
  trim: true,
14
14
  required:true
15
15
  },