shuttlepro-shared 1.5.34 → 1.5.36
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/Conversation.js +4 -0
- package/models/Integration.js +1 -0
- package/models/Workspace.js +6 -0
- package/package.json +1 -1
package/models/Conversation.js
CHANGED
|
@@ -33,6 +33,7 @@ const conversationSchema = new mongoose.Schema(
|
|
|
33
33
|
"webChat",
|
|
34
34
|
"smtp_gmail",
|
|
35
35
|
"shuttle_smtp",
|
|
36
|
+
"qlyro",
|
|
36
37
|
],
|
|
37
38
|
required: true,
|
|
38
39
|
},
|
|
@@ -163,6 +164,9 @@ const conversationSchema = new mongoose.Schema(
|
|
|
163
164
|
default: [],
|
|
164
165
|
},
|
|
165
166
|
mergedAt: { type: Date, default: null },
|
|
167
|
+
// Qlyro secure web chat provenance (session / source WhatsApp chat).
|
|
168
|
+
// Never holds keys or tokens.
|
|
169
|
+
qlyro: { type: Schema.Types.Mixed, default: null },
|
|
166
170
|
mergedBy: {
|
|
167
171
|
type: Schema.Types.ObjectId,
|
|
168
172
|
ref: "User",
|
package/models/Integration.js
CHANGED
package/models/Workspace.js
CHANGED
|
@@ -375,6 +375,12 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
375
375
|
type: Boolean,
|
|
376
376
|
default: false,
|
|
377
377
|
},
|
|
378
|
+
// true: agents cannot type a normal WhatsApp reply; they must send a
|
|
379
|
+
// template, the same as after the 24-hour window closes.
|
|
380
|
+
isWhatsappReply: {
|
|
381
|
+
type: Boolean,
|
|
382
|
+
default: false,
|
|
383
|
+
},
|
|
378
384
|
emailShotCutKey: {
|
|
379
385
|
type: Boolean,
|
|
380
386
|
default: false,
|