@adatechnology/meta-whatsapp-module 0.2.0-rc.2 → 0.2.0-rc.4
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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +337 -185
- package/dist/index.d.ts +337 -185
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/migrations/meta/_journal.json +34 -0
- package/package.json +10 -7
- package/dist/migrations/20260725195853_freezing_switch/snapshot.json +0 -555
- package/dist/migrations/20260725210958_military_leper_queen/snapshot.json +0 -742
- package/dist/migrations/20260725214800_illegal_black_tarantula/snapshot.json +0 -810
- package/dist/migrations/20260725234507_normal_viper/snapshot.json +0 -930
- /package/dist/migrations/{20260725195853_freezing_switch/migration.sql → 0000_freezing_switch.sql} +0 -0
- /package/dist/migrations/{20260725210958_military_leper_queen/migration.sql → 0001_military_leper_queen.sql} +0 -0
- /package/dist/migrations/{20260725214800_illegal_black_tarantula/migration.sql → 0002_illegal_black_tarantula.sql} +0 -0
- /package/dist/migrations/{20260725234507_normal_viper/migration.sql → 0003_normal_viper.sql} +0 -0
package/dist/index.js
CHANGED
|
@@ -1379,11 +1379,15 @@ __name(createMetaWhatsAppModule, "createMetaWhatsAppModule");
|
|
|
1379
1379
|
|
|
1380
1380
|
// src/runMigrations.ts
|
|
1381
1381
|
import { join } from "path";
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1382
|
+
var META_WHATSAPP_MIGRATIONS_TABLE = "meta_whatsapp_migrations";
|
|
1383
|
+
function metaWhatsAppMigrationsFolder() {
|
|
1384
|
+
return join(__dirname, "migrations");
|
|
1385
|
+
}
|
|
1386
|
+
__name(metaWhatsAppMigrationsFolder, "metaWhatsAppMigrationsFolder");
|
|
1387
|
+
async function runMetaWhatsAppMigrations(params) {
|
|
1388
|
+
await params.migrate(params.db, {
|
|
1389
|
+
migrationsFolder: metaWhatsAppMigrationsFolder(),
|
|
1390
|
+
migrationsTable: META_WHATSAPP_MIGRATIONS_TABLE
|
|
1387
1391
|
});
|
|
1388
1392
|
}
|
|
1389
1393
|
__name(runMetaWhatsAppMigrations, "runMetaWhatsAppMigrations");
|
|
@@ -1477,6 +1481,7 @@ export {
|
|
|
1477
1481
|
ListFlowGraphsUseCase,
|
|
1478
1482
|
ListMessagesUseCase,
|
|
1479
1483
|
LogMessageUseCase,
|
|
1484
|
+
META_WHATSAPP_MIGRATIONS_TABLE,
|
|
1480
1485
|
MessageRepository,
|
|
1481
1486
|
OptimisticLockError,
|
|
1482
1487
|
ReceiveWebhookUseCase,
|
|
@@ -1495,6 +1500,7 @@ export {
|
|
|
1495
1500
|
flowGraphs,
|
|
1496
1501
|
issueSseTicket,
|
|
1497
1502
|
messages,
|
|
1503
|
+
metaWhatsAppMigrationsFolder,
|
|
1498
1504
|
metaWhatsAppSchema,
|
|
1499
1505
|
redeemSseTicket,
|
|
1500
1506
|
runMetaWhatsAppMigrations,
|