shuttlepro-shared 1.4.11 → 1.4.12
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/models/Automation.js +32 -0
- package/package.json +1 -1
package/models/Automation.js
CHANGED
|
@@ -55,6 +55,32 @@ const AutomationAction = new Schema({
|
|
|
55
55
|
templateId: descriptionJoin,
|
|
56
56
|
delay: defaultStringType,
|
|
57
57
|
},
|
|
58
|
+
ticketList: {
|
|
59
|
+
enabled: { type: Boolean, default: false },
|
|
60
|
+
templateId: descriptionJoin,
|
|
61
|
+
delay: defaultStringType,
|
|
62
|
+
ticketList: [
|
|
63
|
+
{
|
|
64
|
+
id: {
|
|
65
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
66
|
+
ref: "Column",
|
|
67
|
+
required: true,
|
|
68
|
+
},
|
|
69
|
+
title: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
name: {
|
|
74
|
+
type: String,
|
|
75
|
+
required: true,
|
|
76
|
+
},
|
|
77
|
+
type: {
|
|
78
|
+
type: String,
|
|
79
|
+
required: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
58
84
|
markAsSpam: {
|
|
59
85
|
enabled: { type: Boolean, default: false },
|
|
60
86
|
},
|
|
@@ -64,6 +90,10 @@ const AutomationAction = new Schema({
|
|
|
64
90
|
hideComment: {
|
|
65
91
|
enabled: { type: Boolean, default: false },
|
|
66
92
|
},
|
|
93
|
+
futureRestriction: {
|
|
94
|
+
enabled: { type: Boolean, default: false },
|
|
95
|
+
action: { type: String, default: "" },
|
|
96
|
+
},
|
|
67
97
|
closeChat: {
|
|
68
98
|
enabled: { type: Boolean, default: false },
|
|
69
99
|
},
|
|
@@ -169,6 +199,7 @@ const AutomationCondition = new Schema({
|
|
|
169
199
|
"shift",
|
|
170
200
|
"newCommentPost",
|
|
171
201
|
"profile",
|
|
202
|
+
"moveTicket",
|
|
172
203
|
],
|
|
173
204
|
},
|
|
174
205
|
keyValue: {
|
|
@@ -193,6 +224,7 @@ const AutomationCondition = new Schema({
|
|
|
193
224
|
"orderPublish",
|
|
194
225
|
"newCommentPost",
|
|
195
226
|
"profile",
|
|
227
|
+
"moveTicket",
|
|
196
228
|
],
|
|
197
229
|
},
|
|
198
230
|
subKeyValue: {
|