@adatechnology/meta-whatsapp-module 0.2.0-rc.1 → 0.2.0-rc.3
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 +14 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +358 -206
- package/dist/index.d.ts +358 -206
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/migrations/meta/_journal.json +34 -0
- package/package.json +11 -8
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -33,6 +34,7 @@ __export(index_exports, {
|
|
|
33
34
|
ListFlowGraphsUseCase: () => ListFlowGraphsUseCase,
|
|
34
35
|
ListMessagesUseCase: () => ListMessagesUseCase,
|
|
35
36
|
LogMessageUseCase: () => LogMessageUseCase,
|
|
37
|
+
META_WHATSAPP_MIGRATIONS_TABLE: () => META_WHATSAPP_MIGRATIONS_TABLE,
|
|
36
38
|
MessageRepository: () => MessageRepository,
|
|
37
39
|
OptimisticLockError: () => OptimisticLockError,
|
|
38
40
|
ReceiveWebhookUseCase: () => ReceiveWebhookUseCase,
|
|
@@ -51,6 +53,7 @@ __export(index_exports, {
|
|
|
51
53
|
flowGraphs: () => flowGraphs,
|
|
52
54
|
issueSseTicket: () => issueSseTicket,
|
|
53
55
|
messages: () => messages,
|
|
56
|
+
metaWhatsAppMigrationsFolder: () => metaWhatsAppMigrationsFolder,
|
|
54
57
|
metaWhatsAppSchema: () => metaWhatsAppSchema,
|
|
55
58
|
redeemSseTicket: () => redeemSseTicket,
|
|
56
59
|
runMetaWhatsAppMigrations: () => runMetaWhatsAppMigrations,
|
|
@@ -1432,11 +1435,15 @@ __name(createMetaWhatsAppModule, "createMetaWhatsAppModule");
|
|
|
1432
1435
|
|
|
1433
1436
|
// src/runMigrations.ts
|
|
1434
1437
|
var import_node_path = require("path");
|
|
1435
|
-
var
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
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
|
|
1440
1447
|
});
|
|
1441
1448
|
}
|
|
1442
1449
|
__name(runMetaWhatsAppMigrations, "runMetaWhatsAppMigrations");
|
|
@@ -1531,6 +1538,7 @@ __name(redeemSseTicket, "redeemSseTicket");
|
|
|
1531
1538
|
ListFlowGraphsUseCase,
|
|
1532
1539
|
ListMessagesUseCase,
|
|
1533
1540
|
LogMessageUseCase,
|
|
1541
|
+
META_WHATSAPP_MIGRATIONS_TABLE,
|
|
1534
1542
|
MessageRepository,
|
|
1535
1543
|
OptimisticLockError,
|
|
1536
1544
|
ReceiveWebhookUseCase,
|
|
@@ -1549,6 +1557,7 @@ __name(redeemSseTicket, "redeemSseTicket");
|
|
|
1549
1557
|
flowGraphs,
|
|
1550
1558
|
issueSseTicket,
|
|
1551
1559
|
messages,
|
|
1560
|
+
metaWhatsAppMigrationsFolder,
|
|
1552
1561
|
metaWhatsAppSchema,
|
|
1553
1562
|
redeemSseTicket,
|
|
1554
1563
|
runMetaWhatsAppMigrations,
|