@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.
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1785009533000,
9
+ "tag": "0000_freezing_switch",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "7",
15
+ "when": 1785013798000,
16
+ "tag": "0001_military_leper_queen",
17
+ "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "7",
22
+ "when": 1785016080000,
23
+ "tag": "0002_illegal_black_tarantula",
24
+ "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "7",
29
+ "when": 1785023107000,
30
+ "tag": "0003_normal_viper",
31
+ "breakpoints": true
32
+ }
33
+ ]
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/meta-whatsapp-module",
3
- "version": "0.2.0-rc.1",
3
+ "version": "0.2.0-rc.3",
4
4
  "description": "Stateful conversation/flow module for WhatsApp — schema, migrations, repositories, and use-cases behind pluggable ports (Fase 3-5 of the meta-whatsapp trio)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,16 +12,19 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "drizzle-orm": "1.0.0-rc.4",
16
- "@adatechnology/meta-whatsapp-contracts": "0.2.0-rc.0",
17
- "@adatechnology/meta-graph-core": "0.2.0-rc.0",
18
- "@adatechnology/meta-whatsapp-provider": "0.2.0-rc.1"
15
+ "@adatechnology/meta-whatsapp-provider": "0.2.0-rc.2",
16
+ "@adatechnology/meta-whatsapp-contracts": "0.2.0-rc.1",
17
+ "@adatechnology/meta-graph-core": "0.2.0-rc.1"
19
18
  },
20
19
  "devDependencies": {
21
- "drizzle-kit": "1.0.0-rc.4",
20
+ "@types/bun": "1.3.14",
21
+ "drizzle-kit": "0.31.10",
22
+ "drizzle-orm": "0.45.2",
22
23
  "tsup": "^8.5.1",
23
- "typescript": "^5.7.3",
24
- "@types/bun": "1.3.14"
24
+ "typescript": "^5.7.3"
25
+ },
26
+ "peerDependencies": {
27
+ "drizzle-orm": ">=0.36.0 <1"
25
28
  },
26
29
  "scripts": {
27
30
  "build": "tsup",
@@ -1,555 +0,0 @@
1
- {
2
- "version": "8",
3
- "dialect": "postgres",
4
- "id": "04d059c7-9bb6-4033-959b-d52454d05afa",
5
- "prevIds": [
6
- "00000000-0000-0000-0000-000000000000"
7
- ],
8
- "ddl": [
9
- {
10
- "name": "meta_whatsapp",
11
- "entityType": "schemas"
12
- },
13
- {
14
- "isRlsEnabled": false,
15
- "name": "messages",
16
- "entityType": "tables",
17
- "schema": "meta_whatsapp"
18
- },
19
- {
20
- "isRlsEnabled": false,
21
- "name": "sessions",
22
- "entityType": "tables",
23
- "schema": "meta_whatsapp"
24
- },
25
- {
26
- "type": "uuid",
27
- "typeSchema": null,
28
- "notNull": true,
29
- "dimensions": 0,
30
- "default": "gen_random_uuid()",
31
- "generated": null,
32
- "identity": null,
33
- "name": "id",
34
- "entityType": "columns",
35
- "schema": "meta_whatsapp",
36
- "table": "messages"
37
- },
38
- {
39
- "type": "uuid",
40
- "typeSchema": null,
41
- "notNull": true,
42
- "dimensions": 0,
43
- "default": null,
44
- "generated": null,
45
- "identity": null,
46
- "name": "company_id",
47
- "entityType": "columns",
48
- "schema": "meta_whatsapp",
49
- "table": "messages"
50
- },
51
- {
52
- "type": "uuid",
53
- "typeSchema": null,
54
- "notNull": true,
55
- "dimensions": 0,
56
- "default": null,
57
- "generated": null,
58
- "identity": null,
59
- "name": "session_id",
60
- "entityType": "columns",
61
- "schema": "meta_whatsapp",
62
- "table": "messages"
63
- },
64
- {
65
- "type": "varchar(20)",
66
- "typeSchema": null,
67
- "notNull": true,
68
- "dimensions": 0,
69
- "default": null,
70
- "generated": null,
71
- "identity": null,
72
- "name": "whatsapp_number",
73
- "entityType": "columns",
74
- "schema": "meta_whatsapp",
75
- "table": "messages"
76
- },
77
- {
78
- "type": "varchar(12)",
79
- "typeSchema": null,
80
- "notNull": true,
81
- "dimensions": 0,
82
- "default": null,
83
- "generated": null,
84
- "identity": null,
85
- "name": "direction",
86
- "entityType": "columns",
87
- "schema": "meta_whatsapp",
88
- "table": "messages"
89
- },
90
- {
91
- "type": "varchar(12)",
92
- "typeSchema": null,
93
- "notNull": true,
94
- "dimensions": 0,
95
- "default": null,
96
- "generated": null,
97
- "identity": null,
98
- "name": "sender",
99
- "entityType": "columns",
100
- "schema": "meta_whatsapp",
101
- "table": "messages"
102
- },
103
- {
104
- "type": "uuid",
105
- "typeSchema": null,
106
- "notNull": false,
107
- "dimensions": 0,
108
- "default": null,
109
- "generated": null,
110
- "identity": null,
111
- "name": "agent_user_id",
112
- "entityType": "columns",
113
- "schema": "meta_whatsapp",
114
- "table": "messages"
115
- },
116
- {
117
- "type": "varchar(16)",
118
- "typeSchema": null,
119
- "notNull": true,
120
- "dimensions": 0,
121
- "default": "'text'",
122
- "generated": null,
123
- "identity": null,
124
- "name": "type",
125
- "entityType": "columns",
126
- "schema": "meta_whatsapp",
127
- "table": "messages"
128
- },
129
- {
130
- "type": "text",
131
- "typeSchema": null,
132
- "notNull": false,
133
- "dimensions": 0,
134
- "default": null,
135
- "generated": null,
136
- "identity": null,
137
- "name": "content",
138
- "entityType": "columns",
139
- "schema": "meta_whatsapp",
140
- "table": "messages"
141
- },
142
- {
143
- "type": "jsonb",
144
- "typeSchema": null,
145
- "notNull": false,
146
- "dimensions": 0,
147
- "default": null,
148
- "generated": null,
149
- "identity": null,
150
- "name": "payload",
151
- "entityType": "columns",
152
- "schema": "meta_whatsapp",
153
- "table": "messages"
154
- },
155
- {
156
- "type": "varchar(128)",
157
- "typeSchema": null,
158
- "notNull": false,
159
- "dimensions": 0,
160
- "default": null,
161
- "generated": null,
162
- "identity": null,
163
- "name": "wa_message_id",
164
- "entityType": "columns",
165
- "schema": "meta_whatsapp",
166
- "table": "messages"
167
- },
168
- {
169
- "type": "varchar(16)",
170
- "typeSchema": null,
171
- "notNull": false,
172
- "dimensions": 0,
173
- "default": null,
174
- "generated": null,
175
- "identity": null,
176
- "name": "status",
177
- "entityType": "columns",
178
- "schema": "meta_whatsapp",
179
- "table": "messages"
180
- },
181
- {
182
- "type": "timestamp with time zone",
183
- "typeSchema": null,
184
- "notNull": false,
185
- "dimensions": 0,
186
- "default": null,
187
- "generated": null,
188
- "identity": null,
189
- "name": "read_at",
190
- "entityType": "columns",
191
- "schema": "meta_whatsapp",
192
- "table": "messages"
193
- },
194
- {
195
- "type": "timestamp with time zone",
196
- "typeSchema": null,
197
- "notNull": true,
198
- "dimensions": 0,
199
- "default": "now()",
200
- "generated": null,
201
- "identity": null,
202
- "name": "created_at",
203
- "entityType": "columns",
204
- "schema": "meta_whatsapp",
205
- "table": "messages"
206
- },
207
- {
208
- "type": "uuid",
209
- "typeSchema": null,
210
- "notNull": true,
211
- "dimensions": 0,
212
- "default": "gen_random_uuid()",
213
- "generated": null,
214
- "identity": null,
215
- "name": "id",
216
- "entityType": "columns",
217
- "schema": "meta_whatsapp",
218
- "table": "sessions"
219
- },
220
- {
221
- "type": "uuid",
222
- "typeSchema": null,
223
- "notNull": true,
224
- "dimensions": 0,
225
- "default": null,
226
- "generated": null,
227
- "identity": null,
228
- "name": "company_id",
229
- "entityType": "columns",
230
- "schema": "meta_whatsapp",
231
- "table": "sessions"
232
- },
233
- {
234
- "type": "varchar(20)",
235
- "typeSchema": null,
236
- "notNull": true,
237
- "dimensions": 0,
238
- "default": null,
239
- "generated": null,
240
- "identity": null,
241
- "name": "whatsapp_number",
242
- "entityType": "columns",
243
- "schema": "meta_whatsapp",
244
- "table": "sessions"
245
- },
246
- {
247
- "type": "varchar(64)",
248
- "typeSchema": null,
249
- "notNull": true,
250
- "dimensions": 0,
251
- "default": "'start'",
252
- "generated": null,
253
- "identity": null,
254
- "name": "current_state",
255
- "entityType": "columns",
256
- "schema": "meta_whatsapp",
257
- "table": "sessions"
258
- },
259
- {
260
- "type": "jsonb",
261
- "typeSchema": null,
262
- "notNull": true,
263
- "dimensions": 0,
264
- "default": "'{}'",
265
- "generated": null,
266
- "identity": null,
267
- "name": "context",
268
- "entityType": "columns",
269
- "schema": "meta_whatsapp",
270
- "table": "sessions"
271
- },
272
- {
273
- "type": "varchar(12)",
274
- "typeSchema": null,
275
- "notNull": true,
276
- "dimensions": 0,
277
- "default": "'bot'",
278
- "generated": null,
279
- "identity": null,
280
- "name": "mode",
281
- "entityType": "columns",
282
- "schema": "meta_whatsapp",
283
- "table": "sessions"
284
- },
285
- {
286
- "type": "uuid",
287
- "typeSchema": null,
288
- "notNull": false,
289
- "dimensions": 0,
290
- "default": null,
291
- "generated": null,
292
- "identity": null,
293
- "name": "assigned_user_id",
294
- "entityType": "columns",
295
- "schema": "meta_whatsapp",
296
- "table": "sessions"
297
- },
298
- {
299
- "type": "timestamp with time zone",
300
- "typeSchema": null,
301
- "notNull": false,
302
- "dimensions": 0,
303
- "default": null,
304
- "generated": null,
305
- "identity": null,
306
- "name": "human_requested_at",
307
- "entityType": "columns",
308
- "schema": "meta_whatsapp",
309
- "table": "sessions"
310
- },
311
- {
312
- "type": "timestamp with time zone",
313
- "typeSchema": null,
314
- "notNull": false,
315
- "dimensions": 0,
316
- "default": null,
317
- "generated": null,
318
- "identity": null,
319
- "name": "last_inbound_at",
320
- "entityType": "columns",
321
- "schema": "meta_whatsapp",
322
- "table": "sessions"
323
- },
324
- {
325
- "type": "timestamp with time zone",
326
- "typeSchema": null,
327
- "notNull": false,
328
- "dimensions": 0,
329
- "default": null,
330
- "generated": null,
331
- "identity": null,
332
- "name": "last_agent_read_at",
333
- "entityType": "columns",
334
- "schema": "meta_whatsapp",
335
- "table": "sessions"
336
- },
337
- {
338
- "type": "timestamp with time zone",
339
- "typeSchema": null,
340
- "notNull": true,
341
- "dimensions": 0,
342
- "default": "now()",
343
- "generated": null,
344
- "identity": null,
345
- "name": "last_activity",
346
- "entityType": "columns",
347
- "schema": "meta_whatsapp",
348
- "table": "sessions"
349
- },
350
- {
351
- "type": "timestamp with time zone",
352
- "typeSchema": null,
353
- "notNull": true,
354
- "dimensions": 0,
355
- "default": "now()",
356
- "generated": null,
357
- "identity": null,
358
- "name": "created_at",
359
- "entityType": "columns",
360
- "schema": "meta_whatsapp",
361
- "table": "sessions"
362
- },
363
- {
364
- "type": "timestamp with time zone",
365
- "typeSchema": null,
366
- "notNull": true,
367
- "dimensions": 0,
368
- "default": "now()",
369
- "generated": null,
370
- "identity": null,
371
- "name": "updated_at",
372
- "entityType": "columns",
373
- "schema": "meta_whatsapp",
374
- "table": "sessions"
375
- },
376
- {
377
- "nameExplicit": true,
378
- "columns": [
379
- {
380
- "value": "session_id",
381
- "isExpression": false,
382
- "asc": true,
383
- "nullsFirst": false,
384
- "opclass": null
385
- },
386
- {
387
- "value": "created_at",
388
- "isExpression": false,
389
- "asc": true,
390
- "nullsFirst": false,
391
- "opclass": null
392
- }
393
- ],
394
- "isUnique": false,
395
- "where": null,
396
- "with": "",
397
- "method": "btree",
398
- "concurrently": false,
399
- "name": "idx_messages_session_created",
400
- "entityType": "indexes",
401
- "schema": "meta_whatsapp",
402
- "table": "messages"
403
- },
404
- {
405
- "nameExplicit": true,
406
- "columns": [
407
- {
408
- "value": "company_id",
409
- "isExpression": false,
410
- "asc": true,
411
- "nullsFirst": false,
412
- "opclass": null
413
- },
414
- {
415
- "value": "whatsapp_number",
416
- "isExpression": false,
417
- "asc": true,
418
- "nullsFirst": false,
419
- "opclass": null
420
- },
421
- {
422
- "value": "created_at",
423
- "isExpression": false,
424
- "asc": true,
425
- "nullsFirst": false,
426
- "opclass": null
427
- }
428
- ],
429
- "isUnique": false,
430
- "where": null,
431
- "with": "",
432
- "method": "btree",
433
- "concurrently": false,
434
- "name": "idx_messages_company_number_created",
435
- "entityType": "indexes",
436
- "schema": "meta_whatsapp",
437
- "table": "messages"
438
- },
439
- {
440
- "nameExplicit": true,
441
- "columns": [
442
- {
443
- "value": "wa_message_id",
444
- "isExpression": false,
445
- "asc": true,
446
- "nullsFirst": false,
447
- "opclass": null
448
- }
449
- ],
450
- "isUnique": false,
451
- "where": null,
452
- "with": "",
453
- "method": "btree",
454
- "concurrently": false,
455
- "name": "idx_messages_wa_message_id",
456
- "entityType": "indexes",
457
- "schema": "meta_whatsapp",
458
- "table": "messages"
459
- },
460
- {
461
- "nameExplicit": true,
462
- "columns": [
463
- {
464
- "value": "company_id",
465
- "isExpression": false,
466
- "asc": true,
467
- "nullsFirst": false,
468
- "opclass": null
469
- },
470
- {
471
- "value": "whatsapp_number",
472
- "isExpression": false,
473
- "asc": true,
474
- "nullsFirst": false,
475
- "opclass": null
476
- }
477
- ],
478
- "isUnique": true,
479
- "where": null,
480
- "with": "",
481
- "method": "btree",
482
- "concurrently": false,
483
- "name": "idx_sessions_company_number",
484
- "entityType": "indexes",
485
- "schema": "meta_whatsapp",
486
- "table": "sessions"
487
- },
488
- {
489
- "nameExplicit": true,
490
- "columns": [
491
- {
492
- "value": "company_id",
493
- "isExpression": false,
494
- "asc": true,
495
- "nullsFirst": false,
496
- "opclass": null
497
- },
498
- {
499
- "value": "mode",
500
- "isExpression": false,
501
- "asc": true,
502
- "nullsFirst": false,
503
- "opclass": null
504
- }
505
- ],
506
- "isUnique": false,
507
- "where": null,
508
- "with": "",
509
- "method": "btree",
510
- "concurrently": false,
511
- "name": "idx_sessions_company_mode",
512
- "entityType": "indexes",
513
- "schema": "meta_whatsapp",
514
- "table": "sessions"
515
- },
516
- {
517
- "nameExplicit": false,
518
- "columns": [
519
- "session_id"
520
- ],
521
- "schemaTo": "meta_whatsapp",
522
- "tableTo": "sessions",
523
- "columnsTo": [
524
- "id"
525
- ],
526
- "onUpdate": "NO ACTION",
527
- "onDelete": "CASCADE",
528
- "name": "messages_session_id_sessions_id_fkey",
529
- "entityType": "fks",
530
- "schema": "meta_whatsapp",
531
- "table": "messages"
532
- },
533
- {
534
- "columns": [
535
- "id"
536
- ],
537
- "nameExplicit": false,
538
- "name": "messages_pkey",
539
- "schema": "meta_whatsapp",
540
- "table": "messages",
541
- "entityType": "pks"
542
- },
543
- {
544
- "columns": [
545
- "id"
546
- ],
547
- "nameExplicit": false,
548
- "name": "sessions_pkey",
549
- "schema": "meta_whatsapp",
550
- "table": "sessions",
551
- "entityType": "pks"
552
- }
553
- ],
554
- "renames": []
555
- }