@peopl-health/nexus 4.0.1 → 4.0.2

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.
@@ -21,10 +21,10 @@ const messageSchema = new mongoose.Schema({
21
21
  nombre_whatsapp: { type: String, default: null },
22
22
  timestamp: { type: String, required: true, default: Date.now },
23
23
  message_id: { type: String, default: null},
24
- interactive_type: {
25
- type: String,
26
- enum: ['button', 'list', 'flow', 'quick_reply'],
27
- default: null
24
+ interactive_type: {
25
+ type: String,
26
+ enum: [null, 'button', 'list', 'flow', 'quick_reply'],
27
+ default: null
28
28
  },
29
29
  interactive_data: { type: Object, default: null },
30
30
  group_id: { type: String, default: null },
@@ -54,10 +54,10 @@ const messageSchema = new mongoose.Schema({
54
54
  contentType: { type: String, default: null },
55
55
  bucketName: { type: String, default: null },
56
56
  key: { type: String, default: null },
57
- mediaType: {
58
- type: String,
59
- enum: ['image', 'video', 'audio', 'document', 'sticker', 'other'],
60
- default: null
57
+ mediaType: {
58
+ type: String,
59
+ enum: [null, 'image', 'video', 'audio', 'document', 'sticker', 'other'],
60
+ default: null
61
61
  },
62
62
  fileName: { type: String, default: null },
63
63
  fileSize: { type: Number, default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",