shuttlepro-shared 1.5.33 → 1.5.35

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.
@@ -249,6 +249,7 @@ const AutomationCondition = new Schema({
249
249
  "sendReceipt",
250
250
  "shipperAdvice",
251
251
  "delivered",
252
+ "sendOTP",
252
253
  "other",
253
254
  "newCommentPost",
254
255
  "profile",
@@ -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 },
@@ -11,6 +11,14 @@ const userSessionSchema = new mongoose.Schema(
11
11
  type: String,
12
12
  default: "",
13
13
  },
14
+ deviceId: {
15
+ type: String,
16
+ default: "",
17
+ },
18
+ isMobile: {
19
+ type: Boolean,
20
+ default: false,
21
+ },
14
22
  ipAddress: {
15
23
  type: String,
16
24
  default: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.5.33",
3
+ "version": "1.5.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {