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.
@@ -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",
@@ -23,6 +23,7 @@ const IntegrationSchema = new mongoose.Schema(
23
23
  "ivr",
24
24
  "sms",
25
25
  "shuttle_smtp",
26
+ "qlyro",
26
27
  ],
27
28
  },
28
29
  chatbot: { type: Boolean, default: false },
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.34",
3
+ "version": "1.5.36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {