tango-api-schema 2.0.162 → 2.1.0

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
@@ -36,6 +36,7 @@ import paymentAccountModel from "./schema/paymentAccount.model.js";
36
36
  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
+ import traxAuditDataModel from "./schema/traxAuditData.model.js";
39
40
 
40
41
  export default {
41
42
  leadModel,
@@ -75,5 +76,6 @@ export default {
75
76
  paymentAccountModel,
76
77
  externalParameterModel,
77
78
  transactionModel,
78
- dataMismatchDraftModel
79
+ dataMismatchDraftModel,
80
+ traxAuditDataModel
79
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.162",
3
+ "version": "2.1.0",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const traxAuditData = new mongoose.Schema( {
10
+
11
+ clientId: {
12
+ type: String,
13
+ },
14
+ clientName: {
15
+ type: String,
16
+ trim:true
17
+ },
18
+ storeId:{
19
+ type:String
20
+ },
21
+ moduleType:{
22
+ type: String
23
+ },
24
+ streamName:{
25
+ type: String
26
+ },
27
+ tempId:{
28
+ type: String
29
+ },
30
+ fileDate: {
31
+ type: String,
32
+ },
33
+ fileDateISO: {
34
+ type: Date,
35
+ },
36
+ queueName: {
37
+ type: String,
38
+ trim:true
39
+ },
40
+ installedStore: {
41
+ type: Number,
42
+ },
43
+ totalFilesCount: {
44
+ type: Number,
45
+ },
46
+ sqs:{
47
+ type:Object
48
+ }
49
+ },
50
+ {
51
+ timestamps: true,
52
+ strict: true,
53
+ versionKey: false,
54
+ } );
55
+
56
+
57
+ export default mongoose.model( 'traxAuditData', traxAuditData, 'traxAuditData' );
58
+
59
+
60
+