@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.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
ListFlowGraphsUseCase: () => ListFlowGraphsUseCase,
|
|
35
35
|
ListMessagesUseCase: () => ListMessagesUseCase,
|
|
36
36
|
LogMessageUseCase: () => LogMessageUseCase,
|
|
37
|
+
META_WHATSAPP_MIGRATIONS_TABLE: () => META_WHATSAPP_MIGRATIONS_TABLE,
|
|
37
38
|
MessageRepository: () => MessageRepository,
|
|
38
39
|
OptimisticLockError: () => OptimisticLockError,
|
|
39
40
|
ReceiveWebhookUseCase: () => ReceiveWebhookUseCase,
|
|
@@ -52,6 +53,7 @@ __export(index_exports, {
|
|
|
52
53
|
flowGraphs: () => flowGraphs,
|
|
53
54
|
issueSseTicket: () => issueSseTicket,
|
|
54
55
|
messages: () => messages,
|
|
56
|
+
metaWhatsAppMigrationsFolder: () => metaWhatsAppMigrationsFolder,
|
|
55
57
|
metaWhatsAppSchema: () => metaWhatsAppSchema,
|
|
56
58
|
redeemSseTicket: () => redeemSseTicket,
|
|
57
59
|
runMetaWhatsAppMigrations: () => runMetaWhatsAppMigrations,
|
|
@@ -1433,11 +1435,15 @@ __name(createMetaWhatsAppModule, "createMetaWhatsAppModule");
|
|
|
1433
1435
|
|
|
1434
1436
|
// src/runMigrations.ts
|
|
1435
1437
|
var import_node_path = require("path");
|
|
1436
|
-
var
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1438
|
+
var META_WHATSAPP_MIGRATIONS_TABLE = "meta_whatsapp_migrations";
|
|
1439
|
+
function metaWhatsAppMigrationsFolder() {
|
|
1440
|
+
return (0, import_node_path.join)(__dirname, "migrations");
|
|
1441
|
+
}
|
|
1442
|
+
__name(metaWhatsAppMigrationsFolder, "metaWhatsAppMigrationsFolder");
|
|
1443
|
+
async function runMetaWhatsAppMigrations(params) {
|
|
1444
|
+
await params.migrate(params.db, {
|
|
1445
|
+
migrationsFolder: metaWhatsAppMigrationsFolder(),
|
|
1446
|
+
migrationsTable: META_WHATSAPP_MIGRATIONS_TABLE
|
|
1441
1447
|
});
|
|
1442
1448
|
}
|
|
1443
1449
|
__name(runMetaWhatsAppMigrations, "runMetaWhatsAppMigrations");
|
|
@@ -1532,6 +1538,7 @@ __name(redeemSseTicket, "redeemSseTicket");
|
|
|
1532
1538
|
ListFlowGraphsUseCase,
|
|
1533
1539
|
ListMessagesUseCase,
|
|
1534
1540
|
LogMessageUseCase,
|
|
1541
|
+
META_WHATSAPP_MIGRATIONS_TABLE,
|
|
1535
1542
|
MessageRepository,
|
|
1536
1543
|
OptimisticLockError,
|
|
1537
1544
|
ReceiveWebhookUseCase,
|
|
@@ -1550,6 +1557,7 @@ __name(redeemSseTicket, "redeemSseTicket");
|
|
|
1550
1557
|
flowGraphs,
|
|
1551
1558
|
issueSseTicket,
|
|
1552
1559
|
messages,
|
|
1560
|
+
metaWhatsAppMigrationsFolder,
|
|
1553
1561
|
metaWhatsAppSchema,
|
|
1554
1562
|
redeemSseTicket,
|
|
1555
1563
|
runMetaWhatsAppMigrations,
|