tango-api-schema 2.0.157 → 2.0.159
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 +3 -1
- package/package.json +1 -1
- package/schema/auditLogs.model.js +1 -1
- package/schema/dataMismatchDraft.model.js +23 -0
package/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import internalAuthModel from "./schema/internalAuth.model.js";
|
|
|
35
35
|
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
|
+
import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
|
|
38
39
|
|
|
39
40
|
export default {
|
|
40
41
|
leadModel,
|
|
@@ -73,5 +74,6 @@ export default {
|
|
|
73
74
|
internalAuthModel,
|
|
74
75
|
paymentAccountModel,
|
|
75
76
|
externalParameterModel,
|
|
76
|
-
transactionModel
|
|
77
|
+
transactionModel,
|
|
78
|
+
dataMismatchDraftModel
|
|
77
79
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const dataMismatchDraft = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
ticketId: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
data: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
strict: true,
|
|
14
|
+
versionKey: false,
|
|
15
|
+
timestamps: true,
|
|
16
|
+
},
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
dataMismatchDraft.index( { createdAt: 1 }, { expires: '5d' })
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export default mongoose.model('dataMismatchDraft', dataMismatchDraft, 'dataMismatchDraft');
|