tango-api-schema 2.2.102 → 2.2.104

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
@@ -84,6 +84,7 @@ import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
84
84
  import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
85
85
  import planoStaticData from './schema/planoStaticData.model.js';
86
86
  import suspiciousActivityModel from "./schema/suspiciousActivity.model.js";
87
+ import auditConfigModel from "./schema/auditConfig.model.js";
87
88
 
88
89
 
89
90
  export default {
@@ -172,6 +173,7 @@ export default {
172
173
  planoTaskCompliance,
173
174
  planoQrConversionRequest,
174
175
  planoStaticData,
175
- suspiciousActivityModel
176
+ suspiciousActivityModel,
177
+ auditConfigModel
176
178
 
177
179
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.102",
3
+ "version": "2.2.104",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @name api_audit_config
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditConfigSchema = new mongoose.Schema( {
10
+
11
+ clientId:{
12
+ type:String,
13
+ required:true
14
+ },
15
+ AuditName:{
16
+ type:String
17
+ },
18
+ keyWord:{
19
+ type:String
20
+ },
21
+ fileType:{
22
+ type:String,
23
+ enum:["video",'image']
24
+ },
25
+ responseType:{
26
+ type:String,
27
+ },
28
+ status:{
29
+ type:String,
30
+ enum:["active","inactive"]
31
+ }
32
+ },
33
+ {
34
+ timestamps: true,
35
+ strict: true,
36
+ versionKey: false,
37
+ } );
38
+
39
+ auditConfigSchema.index( { createdAt: 1 } );
40
+ export default mongoose.model( 'auditConfig', auditConfigSchema, 'auditConfig' );
41
+