tango-api-schema 2.0.141 → 2.0.142

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
@@ -35,8 +35,9 @@ import auditLogsModel from "./schema/auditLogs.model.js";
35
35
  import internalAuthModel from "./schema/internalAuth.model.js";
36
36
  import paymentAccountModel from "./schema/paymentAccount.model.js";
37
37
  import externalParameterModel from "./schema/externalParameter.model.js";
38
- import userZoneAuditSchema from './schema/userZoneAudit.model.js'
38
+ import userZoneAuditSchemaModel from './schema/userZoneAudit.model.js'
39
39
  import transactionModel from "./schema/transaction.model.js";
40
+ import assignZoneAuditModel from "./schema/assignZoneAudit.model.js";
40
41
 
41
42
  export default {
42
43
  leadModel,
@@ -76,6 +77,7 @@ export default {
76
77
  internalAuthModel,
77
78
  paymentAccountModel,
78
79
  externalParameterModel,
79
- userZoneAuditSchema,
80
- transactionModel
80
+ userZoneAuditSchemaModel,
81
+ transactionModel,
82
+ assignZoneAuditModel
81
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.141",
3
+ "version": "2.0.142",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const assignZoneAuditModel = new mongoose.Schema( {
10
+ storeId: {
11
+ type: String,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ auditType: {
17
+ type: String,
18
+ },
19
+ zoneName:{
20
+ type: String,
21
+ },
22
+ fileDate: {
23
+ type: String,
24
+ },
25
+ fileDateISO: {
26
+ type: Date,
27
+ },
28
+ fileCount: {
29
+ type: Number,
30
+ },
31
+ userId: {
32
+ type: mongoose.Schema.Types.ObjectId,
33
+ },
34
+ queueName: {
35
+ type: String,
36
+ },
37
+ isCompleted: {
38
+ type: Boolean,
39
+ default: false,
40
+ }
41
+ },
42
+ {
43
+ timestamps: true,
44
+ strict: true,
45
+ versionKey: false,
46
+ expires: '6h',
47
+ },
48
+ );
49
+
50
+
51
+ export default mongoose.model( 'assignZoneAudit', assignZoneAuditModel, 'assignZoneAudit' );
@@ -6,7 +6,7 @@
6
6
  import mongoose from 'mongoose';
7
7
 
8
8
  // Schema
9
- const userZoneAuditSchema = new mongoose.Schema( {
9
+ const userZoneAuditSchemaModel = new mongoose.Schema( {
10
10
  userId: {
11
11
  type: mongoose.Schema.Types.ObjectId,
12
12
  },
@@ -69,4 +69,4 @@ const userZoneAuditSchema = new mongoose.Schema( {
69
69
  } );
70
70
 
71
71
 
72
- export default mongoose.model( 'userZoneAudit', userZoneAuditSchema, 'userZoneAudit' );
72
+ export default mongoose.model( 'userZoneAudit', userZoneAuditSchemaModel, 'userZoneAudit' );