tango-api-schema 2.1.22 → 2.1.25

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
@@ -44,6 +44,7 @@ import lowcountReasonModel from "./schema/lowcountReason.model.js";
44
44
  import auditUserWalletModel from "./schema/auditUserWallet.model.js";
45
45
  import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
46
46
  import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
47
+ import auditUsersModel from "./schema/auditUsers.model.js";
47
48
 
48
49
 
49
50
 
@@ -94,5 +95,6 @@ export default {
94
95
  lowcountReasonModel,
95
96
  auditUserWalletModel,
96
97
  mailOnlyuserModel,
97
- empDetectionOutputModel
98
+ empDetectionOutputModel,
99
+ auditUsersModel
98
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.22",
3
+ "version": "2.1.25",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -15,7 +15,7 @@ const auditLogSchem = new mongoose.Schema( {
15
15
  },
16
16
  moduleType:{
17
17
  type:String,
18
- enum:["traffic", "zone"]
18
+ enum:["traffic", "zone", "uniform-detection","mobile-detection"]
19
19
  },
20
20
  zoneName:{
21
21
  type:String
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @name api_audit_user
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditUsersSchema = new mongoose.Schema( {
10
+ email: {
11
+ type: String,
12
+ trim:true
13
+ },
14
+ userId: {
15
+ type: mongoose.Schema.Types.ObjectId,
16
+ },
17
+ isActive:{
18
+ type: Boolean,
19
+ default:true
20
+ },
21
+ type:{
22
+ type: String,
23
+ enum:["consultant"]
24
+ }
25
+
26
+ },
27
+ {
28
+ timestamps: true,
29
+ strict: true,
30
+ versionKey: false,
31
+ } );
32
+
33
+ auditUsersSchema.index({
34
+ email: 1,
35
+ type: 1,
36
+ });
37
+
38
+ export default mongoose.model( 'auditUsers', auditUsersSchema, 'auditUsers' );
39
+
@@ -195,6 +195,7 @@ const client = new mongoose.Schema(
195
195
  reportConfigs: {
196
196
  report: {
197
197
  type: Boolean,
198
+ default:true
198
199
  },
199
200
  reportName: {
200
201
  type: String,
@@ -33,6 +33,12 @@ const userEmpDetectionSchema = new mongoose.Schema( {
33
33
  queueName: {
34
34
  type: String,
35
35
  },
36
+ inputBucketName:{
37
+ type:String
38
+ },
39
+ folderPath:{
40
+ type:String
41
+ },
36
42
  isDraft: {
37
43
  type: Boolean,
38
44
  default: false,