tango-api-schema 2.1.3 → 2.1.5

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
@@ -37,6 +37,9 @@ import externalParameterModel from "./schema/externalParameter.model.js";
37
37
  import transactionModel from "./schema/transaction.model.js";
38
38
  import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
39
39
  import traxAuditDataModel from "./schema/traxAuditData.model.js";
40
+ import binaryAuditModel from "./schema/binaryAudit.model.js";
41
+ import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
42
+
40
43
 
41
44
  export default {
42
45
  leadModel,
@@ -77,5 +80,7 @@ export default {
77
80
  externalParameterModel,
78
81
  transactionModel,
79
82
  dataMismatchDraftModel,
80
- traxAuditDataModel
83
+ traxAuditDataModel,
84
+ binaryAuditModel,
85
+ userEmpDetectionModel
81
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @name api_binary_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const binaryAuditSchema = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ storeId: {
17
+ type: String,
18
+ },
19
+ streamName:{
20
+ type: String
21
+ },
22
+ tempId:{
23
+ type:Number
24
+ },
25
+ moduleType:{
26
+ type: String,
27
+ enum: ['camera-angle-change','left-in-middle','unattended-customer' ],
28
+ },
29
+ fileDate: {
30
+ type: String,
31
+ },
32
+ fileDateISO: {
33
+ type: Date,
34
+ },
35
+ queueName: {
36
+ type: String,
37
+ },
38
+ auditStatus: {
39
+ type: String,
40
+ enum: [ 'inprogress', 'completed' ],
41
+ },
42
+ question: {
43
+ type: String,
44
+ },
45
+ answer: {
46
+ type: String,
47
+ },
48
+ userCommands: {
49
+ type: String,
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
+ },
64
+ {
65
+ timestamps: true,
66
+ strict: true,
67
+ versionKey: false,
68
+ } );
69
+
70
+
71
+ export default mongoose.model( 'binaryAudit', binaryAuditSchema, 'binaryAudit' );
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @name api_user_Employee_Detection
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const userEmpDetectionSchema = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ storeId: {
17
+ type: String,
18
+ },
19
+
20
+ moduleType:{
21
+ type: String,
22
+ enum: ['uniform-detection','mobile-detection' ],
23
+ },
24
+ auditType: {
25
+ type: String,
26
+ },
27
+ fileDate: {
28
+ type: String,
29
+ },
30
+ fileDateISO: {
31
+ type: Date,
32
+ },
33
+ queueName: {
34
+ type: String,
35
+ },
36
+ isDraft: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
40
+ auditStatus: {
41
+ type: String,
42
+ enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
43
+ },
44
+ beforeCount: {
45
+ type: Number,
46
+ },
47
+ afterCount: {
48
+ type: Number,
49
+ },
50
+ startTime: {
51
+ type: Date,
52
+ },
53
+ endTime: {
54
+ type: Date,
55
+ },
56
+ timeSpent: {
57
+ type: Number,
58
+ default: 0,
59
+ },
60
+ dueHour: {
61
+ type: String
62
+ },
63
+ userCommands: {
64
+ type: String,
65
+ },
66
+ },
67
+ {
68
+ timestamps: true,
69
+ strict: true,
70
+ versionKey: false,
71
+ } );
72
+
73
+
74
+ export default mongoose.model( 'userEmpDetection', userEmpDetectionSchema, 'userEmpDetection' );