@adatechnology/meta-whatsapp-module 0.2.0-rc.3 → 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.cjs
CHANGED
|
@@ -141,9 +141,14 @@ var messages = metaWhatsAppSchema.table("messages", {
|
|
|
141
141
|
length: 12
|
|
142
142
|
}).notNull(),
|
|
143
143
|
agentUserId: (0, import_pg_core.uuid)("agent_user_id"),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
// 32, não 16: os tipos da própria Meta são curtos ('text', 'interactive'), mas o host rotula
|
|
145
|
+
type: (
|
|
146
|
+
// a saída com o subtipo que enviou ('interactive_buttons' já tem 19). Apertar aqui só
|
|
147
|
+
// transfere para o consumidor a escolha entre truncar o rótulo e estourar o insert.
|
|
148
|
+
(0, import_pg_core.varchar)("type", {
|
|
149
|
+
length: 32
|
|
150
|
+
}).notNull().default("text")
|
|
151
|
+
),
|
|
147
152
|
content: (0, import_pg_core.text)("content"),
|
|
148
153
|
// T5.4 — nunca base64 aqui; mídia vive no ObjectStorageInterface do host, referenciada por
|
|
149
154
|
// uploadId dentro deste jsonb.
|