@adatechnology/meta-whatsapp-module 0.2.0-rc.4 → 0.2.0-rc.5
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/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/migrations/0004_widen_message_type.sql +1 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -85,9 +85,14 @@ var messages = metaWhatsAppSchema.table("messages", {
|
|
|
85
85
|
length: 12
|
|
86
86
|
}).notNull(),
|
|
87
87
|
agentUserId: uuid("agent_user_id"),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
// 32, não 16: os tipos da própria Meta são curtos ('text', 'interactive'), mas o host rotula
|
|
89
|
+
type: (
|
|
90
|
+
// a saída com o subtipo que enviou ('interactive_buttons' já tem 19). Apertar aqui só
|
|
91
|
+
// transfere para o consumidor a escolha entre truncar o rótulo e estourar o insert.
|
|
92
|
+
varchar("type", {
|
|
93
|
+
length: 32
|
|
94
|
+
}).notNull().default("text")
|
|
95
|
+
),
|
|
91
96
|
content: text("content"),
|
|
92
97
|
// T5.4 — nunca base64 aqui; mídia vive no ObjectStorageInterface do host, referenciada por
|
|
93
98
|
// uploadId dentro deste jsonb.
|