tango-api-schema 2.1.34 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.34",
3
+ "version": "2.1.36",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,8 +37,7 @@ const auditUserWalletSchema = new mongoose.Schema( {
37
37
  default:0
38
38
  },
39
39
  timeSpent:{
40
- type: Number,
41
- default:0
40
+ type: String,
42
41
  },
43
42
  minimumTarget:{
44
43
  type: Number,
@@ -24,7 +24,7 @@ tempId:{
24
24
  },
25
25
  moduleType:{
26
26
  type: String,
27
- enum: ['camera-angle-change','left-in-middle','unattended-customer' ],
27
+ enum: ['camera-angle-change','left-in-middle','unattended-customer','uniform-detection' ],
28
28
  },
29
29
  fileDate: {
30
30
  type: String,
@@ -19,40 +19,32 @@ let clusterSchema = new mongoose.Schema(
19
19
  },
20
20
  store: {
21
21
  type: mongoose.Types.ObjectId
22
- },
23
- storeName: {
24
- type: String
25
22
  }
26
23
  }
27
24
  ],
28
25
  Teamlead: [
29
- {
30
- userName: {
31
- type: String,
32
- },
26
+ {
33
27
  email: {
34
28
  type: String,
35
29
  },
36
30
  userId: {
37
- type: String
31
+ type: mongoose.Types.ObjectId
38
32
  }
39
33
  }
40
34
  ],
41
35
  users: [
42
36
  {
43
- userName: {
44
- type: String,
45
- },
46
37
  email: {
47
38
  type: String,
48
39
  },
49
40
  userId: {
50
- type: String
41
+ type: mongoose.Types.ObjectId
51
42
  }
52
43
  }
53
44
  ],
54
45
  status: {
55
- type: String
46
+ type: String,
47
+ default:"active"
56
48
  },
57
49
 
58
50
  },
@@ -18,7 +18,7 @@ const storeEmpDetectionSchema = new mongoose.Schema( {
18
18
  },
19
19
  moduleType:{
20
20
  type: String,
21
- enum: [ 'uniform', 'mobile' ],
21
+ enum: ['mobile-detection' ],
22
22
  },
23
23
  auditType: {
24
24
  type: String,
@@ -14,32 +14,27 @@ let teamsSchema = new mongoose.Schema(
14
14
  },
15
15
  Teamlead: [
16
16
  {
17
- userName: {
18
- type: String,
19
- },
20
17
  email: {
21
18
  type: String,
22
19
  },
23
20
  userId: {
24
- type: String
21
+ type: mongoose.Types.ObjectId
25
22
  }
26
23
  }
27
24
  ],
28
25
  users: [
29
26
  {
30
- userName: {
31
- type: String,
32
- },
33
27
  email: {
34
28
  type: String,
35
29
  },
36
30
  userId: {
37
- type: String
31
+ type: mongoose.Types.ObjectId
38
32
  }
39
33
  }
40
34
  ],
41
35
  status: {
42
- type: String
36
+ type: String,
37
+ default:"active"
43
38
  },
44
39
 
45
40
  },
@@ -19,7 +19,7 @@ const userEmpDetectionSchema = new mongoose.Schema( {
19
19
 
20
20
  moduleType:{
21
21
  type: String,
22
- enum: ['uniform-detection','mobile-detection' ],
22
+ enum: ['mobile-detection' ],
23
23
  },
24
24
  auditType: {
25
25
  type: String,