tango-api-schema 2.1.5 → 2.1.7

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
@@ -39,6 +39,7 @@ import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
39
39
  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
+ import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
42
43
 
43
44
 
44
45
  export default {
@@ -82,5 +83,6 @@ export default {
82
83
  dataMismatchDraftModel,
83
84
  traxAuditDataModel,
84
85
  binaryAuditModel,
85
- userEmpDetectionModel
86
+ userEmpDetectionModel,
87
+ storeEmpDetectionModel
86
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -45,9 +45,12 @@ tempId:{
45
45
  answer: {
46
46
  type: String,
47
47
  },
48
- userCommands: {
48
+ userComments: {
49
49
  type: String,
50
50
  },
51
+ auditType:{
52
+ type:String
53
+ },
51
54
  inputBucketName:{
52
55
  type:String
53
56
  },
@@ -59,7 +62,17 @@ tempId:{
59
62
  },
60
63
  videoDetails:{
61
64
  type: Object
62
- }
65
+ },
66
+ startTime: {
67
+ type: Date,
68
+ },
69
+ endTime: {
70
+ type: Date,
71
+ },
72
+ timeSpent: {
73
+ type: Number,
74
+ default: 0,
75
+ },
63
76
  },
64
77
  {
65
78
  timestamps: true,
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @name api_trax_detection
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const storeEmpDetectionSchema = new mongoose.Schema( {
10
+ clientId: {
11
+ type: String,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ },
16
+ zoneName:{
17
+ type: String,
18
+ },
19
+ moduleType:{
20
+ type: String,
21
+ enum: [ 'uniform', 'mobile' ],
22
+ },
23
+ auditType: {
24
+ type: String,
25
+ },
26
+ queueName: {
27
+ type: String,
28
+ },
29
+ fileDate: {
30
+ type: String,
31
+ },
32
+ fileDateISO: {
33
+ type: Date,
34
+ },
35
+ userId: {
36
+ type:Array,
37
+ },
38
+ timeSpent: {
39
+ type: Number,
40
+ default: 0,
41
+ },
42
+ status: {
43
+ type: String,
44
+ enum: [ 'completed', 'inprogress', 'not_assign', 'drafted', 'skipped', 'assigned' ],
45
+ default: 'inprogress',
46
+ },
47
+ beforeCount: {
48
+ type: Number,
49
+ },
50
+ afterCount: {
51
+ type: Number,
52
+ },
53
+ },
54
+ {
55
+ timestamps: true,
56
+ strict: true,
57
+ versionKey: false,
58
+ } );
59
+
60
+
61
+ export default mongoose.model( 'storeEmpDetection', storeEmpDetectionSchema, 'storeEmpDetection' );