shuttlepro-shared 1.5.46 → 1.5.48
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/Assignment.js +2 -0
- package/models/Card.js +1 -0
- package/models/CardComments.js +2 -0
- package/models/Conversation.js +1 -0
- package/models/EscalationManager.js +2 -0
- package/models/Integration.js +9 -0
- package/models/Website.js +3 -0
- package/models/Workspace.js +8 -0
- package/package.json +1 -1
package/models/Assignment.js
CHANGED
package/models/Card.js
CHANGED
|
@@ -170,6 +170,7 @@ const cardSchema = new mongoose.Schema(
|
|
|
170
170
|
);
|
|
171
171
|
|
|
172
172
|
cardSchema.index({ workspaceId: 1, createdAt: 1 }); // Common filter
|
|
173
|
+
cardSchema.index({ columnId: 1, deleted: 1, category: 1, createdAt: 1 }); // Task-manager board lookups
|
|
173
174
|
|
|
174
175
|
// Virtual for the assignedTo user
|
|
175
176
|
cardSchema.virtual("assignedToUser", {
|
package/models/CardComments.js
CHANGED
package/models/Conversation.js
CHANGED
|
@@ -42,6 +42,8 @@ const EscalationManagerSchema = new Schema(
|
|
|
42
42
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
43
43
|
);
|
|
44
44
|
|
|
45
|
+
EscalationManagerSchema.index({ refId: 1 }); // Card/conversation escalation lookups
|
|
46
|
+
|
|
45
47
|
const EscalationManager = mongoose.model(
|
|
46
48
|
"EscalationManager",
|
|
47
49
|
EscalationManagerSchema
|
package/models/Integration.js
CHANGED
|
@@ -24,6 +24,7 @@ const IntegrationSchema = new mongoose.Schema(
|
|
|
24
24
|
"sms",
|
|
25
25
|
"shuttle_smtp",
|
|
26
26
|
"qlyro",
|
|
27
|
+
"qlyroWebChat",
|
|
27
28
|
],
|
|
28
29
|
},
|
|
29
30
|
chatbot: { type: Boolean, default: false },
|
|
@@ -52,6 +53,14 @@ const IntegrationSchema = new mongoose.Schema(
|
|
|
52
53
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
53
54
|
);
|
|
54
55
|
|
|
56
|
+
// Qlyro Webchat: a website's chat button is found by its widget id on every
|
|
57
|
+
// page view. Partial, so it only holds Qlyro Webchat channels (each gets a
|
|
58
|
+
// unique widget id when created) and other platforms are unaffected.
|
|
59
|
+
IntegrationSchema.index(
|
|
60
|
+
{ "body.widgetId": 1 },
|
|
61
|
+
{ unique: true, partialFilterExpression: { type: "qlyroWebChat" } }
|
|
62
|
+
);
|
|
63
|
+
|
|
55
64
|
IntegrationSchema.virtual("conversations", {
|
|
56
65
|
ref: "Conversation",
|
|
57
66
|
localField: "_id",
|
package/models/Website.js
CHANGED
|
@@ -8,6 +8,9 @@ const websiteSchema = new mongoose.Schema(
|
|
|
8
8
|
default: "",
|
|
9
9
|
},
|
|
10
10
|
accessToken: { type: String, default: "" },
|
|
11
|
+
refreshToken: { type: String, default: "" },
|
|
12
|
+
accessTokenExpires: { type: Date, default: null },
|
|
13
|
+
refreshTokenExpires: { type: Date, default: null },
|
|
11
14
|
url: { type: String, default: "" },
|
|
12
15
|
consumerKey: { type: String, default: "" },
|
|
13
16
|
consumerSecret: { type: String, default: "" },
|
package/models/Workspace.js
CHANGED
|
@@ -435,6 +435,14 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
435
435
|
chatbotTokenSaving: {
|
|
436
436
|
type: Boolean,
|
|
437
437
|
},
|
|
438
|
+
/**
|
|
439
|
+
* "AI chat summary" switch: true = after an AI chat is closed, aiSummaryApp writes a short
|
|
440
|
+
* summary for agents. No default on purpose: missing = off. Set by admins in Settings →
|
|
441
|
+
* General Settings (mainApp PUT /settings/update-ai-conversation-summary); off removes the field.
|
|
442
|
+
*/
|
|
443
|
+
aiConversationSummary: {
|
|
444
|
+
type: Boolean,
|
|
445
|
+
},
|
|
438
446
|
/** When true (default), ShuttleBot includes product photos with product detail replies. */
|
|
439
447
|
chatbotShowProductImages: {
|
|
440
448
|
type: Boolean,
|