tango-api-schema 2.1.4 → 2.1.6

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.4",
3
+ "version": "2.1.6",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -48,6 +48,28 @@ tempId:{
48
48
  userCommands: {
49
49
  type: String,
50
50
  },
51
+ inputBucketName:{
52
+ type:String
53
+ },
54
+ fileDetails: {
55
+ type:Array
56
+ },
57
+ questionType: {
58
+ type: String
59
+ },
60
+ videoDetails:{
61
+ type: Object
62
+ },
63
+ startTime: {
64
+ type: Date,
65
+ },
66
+ endTime: {
67
+ type: Date,
68
+ },
69
+ timeSpent: {
70
+ type: Number,
71
+ default: 0,
72
+ },
51
73
  },
52
74
  {
53
75
  timestamps: true,
@@ -56,4 +78,4 @@ tempId:{
56
78
  } );
57
79
 
58
80
 
59
- export default mongoose.model( 'binaryAuditSchema', binaryAuditSchema, 'binaryAuditSchema' );
81
+ export default mongoose.model( 'binaryAudit', binaryAuditSchema, 'binaryAudit' );
@@ -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' );