tango-api-schema 2.1.53 → 2.1.55
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/aiTicketConfig.js +43 -0
- package/schema/client.model.js +8 -0
package/index.js
CHANGED
|
@@ -57,6 +57,7 @@ import processeddetectionModel from "./schema/processeddetection.js";
|
|
|
57
57
|
import domainModel from "./schema/domain.js";
|
|
58
58
|
import hotjarModel from "./schema/hotjar.model.js";
|
|
59
59
|
import downloadModel from "./schema/download.js";
|
|
60
|
+
import aiTicketConfigModel from "./schema/aiTicketConfig.js";
|
|
60
61
|
|
|
61
62
|
|
|
62
63
|
export default {
|
|
@@ -118,5 +119,6 @@ export default {
|
|
|
118
119
|
processeddetectionModel,
|
|
119
120
|
domainModel,
|
|
120
121
|
hotjarModel,
|
|
121
|
-
downloadModel
|
|
122
|
+
downloadModel,
|
|
123
|
+
aiTicketConfigModel
|
|
122
124
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const aiTicketConfigSchema = new mongoose.Schema({
|
|
4
|
+
client_id: {
|
|
5
|
+
type: String
|
|
6
|
+
},
|
|
7
|
+
reason: {
|
|
8
|
+
type: String
|
|
9
|
+
},
|
|
10
|
+
from_email: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
to_email: {
|
|
14
|
+
type: String
|
|
15
|
+
},
|
|
16
|
+
description: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
checklistName: {
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
questionName: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
answerType: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
imageURL: {
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
31
|
+
requested_date: {
|
|
32
|
+
type: Date,
|
|
33
|
+
default: Date.now
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
strict: true,
|
|
38
|
+
versionKey: false,
|
|
39
|
+
timestamps: true,
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export default mongoose.model( 'aiTicketConfig', aiTicketConfigSchema);
|
package/schema/client.model.js
CHANGED