@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.
@@ -1,742 +0,0 @@
1
- {
2
- "version": "8",
3
- "dialect": "postgres",
4
- "id": "5510b482-4806-4827-a6ce-e39b57da0c07",
5
- "prevIds": [
6
- "04d059c7-9bb6-4033-959b-d52454d05afa"
7
- ],
8
- "ddl": [
9
- {
10
- "name": "meta_whatsapp",
11
- "entityType": "schemas"
12
- },
13
- {
14
- "isRlsEnabled": false,
15
- "name": "flow_graphs",
16
- "entityType": "tables",
17
- "schema": "meta_whatsapp"
18
- },
19
- {
20
- "isRlsEnabled": false,
21
- "name": "messages",
22
- "entityType": "tables",
23
- "schema": "meta_whatsapp"
24
- },
25
- {
26
- "isRlsEnabled": false,
27
- "name": "sessions",
28
- "entityType": "tables",
29
- "schema": "meta_whatsapp"
30
- },
31
- {
32
- "type": "uuid",
33
- "typeSchema": null,
34
- "notNull": true,
35
- "dimensions": 0,
36
- "default": "gen_random_uuid()",
37
- "generated": null,
38
- "identity": null,
39
- "name": "id",
40
- "entityType": "columns",
41
- "schema": "meta_whatsapp",
42
- "table": "flow_graphs"
43
- },
44
- {
45
- "type": "uuid",
46
- "typeSchema": null,
47
- "notNull": true,
48
- "dimensions": 0,
49
- "default": null,
50
- "generated": null,
51
- "identity": null,
52
- "name": "company_id",
53
- "entityType": "columns",
54
- "schema": "meta_whatsapp",
55
- "table": "flow_graphs"
56
- },
57
- {
58
- "type": "varchar(64)",
59
- "typeSchema": null,
60
- "notNull": true,
61
- "dimensions": 0,
62
- "default": null,
63
- "generated": null,
64
- "identity": null,
65
- "name": "key",
66
- "entityType": "columns",
67
- "schema": "meta_whatsapp",
68
- "table": "flow_graphs"
69
- },
70
- {
71
- "type": "varchar(120)",
72
- "typeSchema": null,
73
- "notNull": true,
74
- "dimensions": 0,
75
- "default": null,
76
- "generated": null,
77
- "identity": null,
78
- "name": "label",
79
- "entityType": "columns",
80
- "schema": "meta_whatsapp",
81
- "table": "flow_graphs"
82
- },
83
- {
84
- "type": "varchar(64)",
85
- "typeSchema": null,
86
- "notNull": true,
87
- "dimensions": 0,
88
- "default": null,
89
- "generated": null,
90
- "identity": null,
91
- "name": "start_node_id",
92
- "entityType": "columns",
93
- "schema": "meta_whatsapp",
94
- "table": "flow_graphs"
95
- },
96
- {
97
- "type": "jsonb",
98
- "typeSchema": null,
99
- "notNull": true,
100
- "dimensions": 0,
101
- "default": "'{}'",
102
- "generated": null,
103
- "identity": null,
104
- "name": "nodes",
105
- "entityType": "columns",
106
- "schema": "meta_whatsapp",
107
- "table": "flow_graphs"
108
- },
109
- {
110
- "type": "integer",
111
- "typeSchema": null,
112
- "notNull": true,
113
- "dimensions": 0,
114
- "default": "1",
115
- "generated": null,
116
- "identity": null,
117
- "name": "version",
118
- "entityType": "columns",
119
- "schema": "meta_whatsapp",
120
- "table": "flow_graphs"
121
- },
122
- {
123
- "type": "boolean",
124
- "typeSchema": null,
125
- "notNull": true,
126
- "dimensions": 0,
127
- "default": "false",
128
- "generated": null,
129
- "identity": null,
130
- "name": "show_in_menu",
131
- "entityType": "columns",
132
- "schema": "meta_whatsapp",
133
- "table": "flow_graphs"
134
- },
135
- {
136
- "type": "varchar(64)",
137
- "typeSchema": null,
138
- "notNull": false,
139
- "dimensions": 0,
140
- "default": null,
141
- "generated": null,
142
- "identity": null,
143
- "name": "menu_option_label",
144
- "entityType": "columns",
145
- "schema": "meta_whatsapp",
146
- "table": "flow_graphs"
147
- },
148
- {
149
- "type": "timestamp with time zone",
150
- "typeSchema": null,
151
- "notNull": true,
152
- "dimensions": 0,
153
- "default": "now()",
154
- "generated": null,
155
- "identity": null,
156
- "name": "created_at",
157
- "entityType": "columns",
158
- "schema": "meta_whatsapp",
159
- "table": "flow_graphs"
160
- },
161
- {
162
- "type": "timestamp with time zone",
163
- "typeSchema": null,
164
- "notNull": true,
165
- "dimensions": 0,
166
- "default": "now()",
167
- "generated": null,
168
- "identity": null,
169
- "name": "updated_at",
170
- "entityType": "columns",
171
- "schema": "meta_whatsapp",
172
- "table": "flow_graphs"
173
- },
174
- {
175
- "type": "uuid",
176
- "typeSchema": null,
177
- "notNull": true,
178
- "dimensions": 0,
179
- "default": "gen_random_uuid()",
180
- "generated": null,
181
- "identity": null,
182
- "name": "id",
183
- "entityType": "columns",
184
- "schema": "meta_whatsapp",
185
- "table": "messages"
186
- },
187
- {
188
- "type": "uuid",
189
- "typeSchema": null,
190
- "notNull": true,
191
- "dimensions": 0,
192
- "default": null,
193
- "generated": null,
194
- "identity": null,
195
- "name": "company_id",
196
- "entityType": "columns",
197
- "schema": "meta_whatsapp",
198
- "table": "messages"
199
- },
200
- {
201
- "type": "uuid",
202
- "typeSchema": null,
203
- "notNull": true,
204
- "dimensions": 0,
205
- "default": null,
206
- "generated": null,
207
- "identity": null,
208
- "name": "session_id",
209
- "entityType": "columns",
210
- "schema": "meta_whatsapp",
211
- "table": "messages"
212
- },
213
- {
214
- "type": "varchar(20)",
215
- "typeSchema": null,
216
- "notNull": true,
217
- "dimensions": 0,
218
- "default": null,
219
- "generated": null,
220
- "identity": null,
221
- "name": "whatsapp_number",
222
- "entityType": "columns",
223
- "schema": "meta_whatsapp",
224
- "table": "messages"
225
- },
226
- {
227
- "type": "varchar(12)",
228
- "typeSchema": null,
229
- "notNull": true,
230
- "dimensions": 0,
231
- "default": null,
232
- "generated": null,
233
- "identity": null,
234
- "name": "direction",
235
- "entityType": "columns",
236
- "schema": "meta_whatsapp",
237
- "table": "messages"
238
- },
239
- {
240
- "type": "varchar(12)",
241
- "typeSchema": null,
242
- "notNull": true,
243
- "dimensions": 0,
244
- "default": null,
245
- "generated": null,
246
- "identity": null,
247
- "name": "sender",
248
- "entityType": "columns",
249
- "schema": "meta_whatsapp",
250
- "table": "messages"
251
- },
252
- {
253
- "type": "uuid",
254
- "typeSchema": null,
255
- "notNull": false,
256
- "dimensions": 0,
257
- "default": null,
258
- "generated": null,
259
- "identity": null,
260
- "name": "agent_user_id",
261
- "entityType": "columns",
262
- "schema": "meta_whatsapp",
263
- "table": "messages"
264
- },
265
- {
266
- "type": "varchar(16)",
267
- "typeSchema": null,
268
- "notNull": true,
269
- "dimensions": 0,
270
- "default": "'text'",
271
- "generated": null,
272
- "identity": null,
273
- "name": "type",
274
- "entityType": "columns",
275
- "schema": "meta_whatsapp",
276
- "table": "messages"
277
- },
278
- {
279
- "type": "text",
280
- "typeSchema": null,
281
- "notNull": false,
282
- "dimensions": 0,
283
- "default": null,
284
- "generated": null,
285
- "identity": null,
286
- "name": "content",
287
- "entityType": "columns",
288
- "schema": "meta_whatsapp",
289
- "table": "messages"
290
- },
291
- {
292
- "type": "jsonb",
293
- "typeSchema": null,
294
- "notNull": false,
295
- "dimensions": 0,
296
- "default": null,
297
- "generated": null,
298
- "identity": null,
299
- "name": "payload",
300
- "entityType": "columns",
301
- "schema": "meta_whatsapp",
302
- "table": "messages"
303
- },
304
- {
305
- "type": "varchar(128)",
306
- "typeSchema": null,
307
- "notNull": false,
308
- "dimensions": 0,
309
- "default": null,
310
- "generated": null,
311
- "identity": null,
312
- "name": "wa_message_id",
313
- "entityType": "columns",
314
- "schema": "meta_whatsapp",
315
- "table": "messages"
316
- },
317
- {
318
- "type": "varchar(16)",
319
- "typeSchema": null,
320
- "notNull": false,
321
- "dimensions": 0,
322
- "default": null,
323
- "generated": null,
324
- "identity": null,
325
- "name": "status",
326
- "entityType": "columns",
327
- "schema": "meta_whatsapp",
328
- "table": "messages"
329
- },
330
- {
331
- "type": "timestamp with time zone",
332
- "typeSchema": null,
333
- "notNull": false,
334
- "dimensions": 0,
335
- "default": null,
336
- "generated": null,
337
- "identity": null,
338
- "name": "read_at",
339
- "entityType": "columns",
340
- "schema": "meta_whatsapp",
341
- "table": "messages"
342
- },
343
- {
344
- "type": "timestamp with time zone",
345
- "typeSchema": null,
346
- "notNull": true,
347
- "dimensions": 0,
348
- "default": "now()",
349
- "generated": null,
350
- "identity": null,
351
- "name": "created_at",
352
- "entityType": "columns",
353
- "schema": "meta_whatsapp",
354
- "table": "messages"
355
- },
356
- {
357
- "type": "uuid",
358
- "typeSchema": null,
359
- "notNull": true,
360
- "dimensions": 0,
361
- "default": "gen_random_uuid()",
362
- "generated": null,
363
- "identity": null,
364
- "name": "id",
365
- "entityType": "columns",
366
- "schema": "meta_whatsapp",
367
- "table": "sessions"
368
- },
369
- {
370
- "type": "uuid",
371
- "typeSchema": null,
372
- "notNull": true,
373
- "dimensions": 0,
374
- "default": null,
375
- "generated": null,
376
- "identity": null,
377
- "name": "company_id",
378
- "entityType": "columns",
379
- "schema": "meta_whatsapp",
380
- "table": "sessions"
381
- },
382
- {
383
- "type": "varchar(20)",
384
- "typeSchema": null,
385
- "notNull": true,
386
- "dimensions": 0,
387
- "default": null,
388
- "generated": null,
389
- "identity": null,
390
- "name": "whatsapp_number",
391
- "entityType": "columns",
392
- "schema": "meta_whatsapp",
393
- "table": "sessions"
394
- },
395
- {
396
- "type": "varchar(64)",
397
- "typeSchema": null,
398
- "notNull": true,
399
- "dimensions": 0,
400
- "default": "'start'",
401
- "generated": null,
402
- "identity": null,
403
- "name": "current_state",
404
- "entityType": "columns",
405
- "schema": "meta_whatsapp",
406
- "table": "sessions"
407
- },
408
- {
409
- "type": "jsonb",
410
- "typeSchema": null,
411
- "notNull": true,
412
- "dimensions": 0,
413
- "default": "'{}'",
414
- "generated": null,
415
- "identity": null,
416
- "name": "context",
417
- "entityType": "columns",
418
- "schema": "meta_whatsapp",
419
- "table": "sessions"
420
- },
421
- {
422
- "type": "varchar(12)",
423
- "typeSchema": null,
424
- "notNull": true,
425
- "dimensions": 0,
426
- "default": "'bot'",
427
- "generated": null,
428
- "identity": null,
429
- "name": "mode",
430
- "entityType": "columns",
431
- "schema": "meta_whatsapp",
432
- "table": "sessions"
433
- },
434
- {
435
- "type": "uuid",
436
- "typeSchema": null,
437
- "notNull": false,
438
- "dimensions": 0,
439
- "default": null,
440
- "generated": null,
441
- "identity": null,
442
- "name": "assigned_user_id",
443
- "entityType": "columns",
444
- "schema": "meta_whatsapp",
445
- "table": "sessions"
446
- },
447
- {
448
- "type": "timestamp with time zone",
449
- "typeSchema": null,
450
- "notNull": false,
451
- "dimensions": 0,
452
- "default": null,
453
- "generated": null,
454
- "identity": null,
455
- "name": "human_requested_at",
456
- "entityType": "columns",
457
- "schema": "meta_whatsapp",
458
- "table": "sessions"
459
- },
460
- {
461
- "type": "timestamp with time zone",
462
- "typeSchema": null,
463
- "notNull": false,
464
- "dimensions": 0,
465
- "default": null,
466
- "generated": null,
467
- "identity": null,
468
- "name": "last_inbound_at",
469
- "entityType": "columns",
470
- "schema": "meta_whatsapp",
471
- "table": "sessions"
472
- },
473
- {
474
- "type": "timestamp with time zone",
475
- "typeSchema": null,
476
- "notNull": false,
477
- "dimensions": 0,
478
- "default": null,
479
- "generated": null,
480
- "identity": null,
481
- "name": "last_agent_read_at",
482
- "entityType": "columns",
483
- "schema": "meta_whatsapp",
484
- "table": "sessions"
485
- },
486
- {
487
- "type": "timestamp with time zone",
488
- "typeSchema": null,
489
- "notNull": true,
490
- "dimensions": 0,
491
- "default": "now()",
492
- "generated": null,
493
- "identity": null,
494
- "name": "last_activity",
495
- "entityType": "columns",
496
- "schema": "meta_whatsapp",
497
- "table": "sessions"
498
- },
499
- {
500
- "type": "timestamp with time zone",
501
- "typeSchema": null,
502
- "notNull": true,
503
- "dimensions": 0,
504
- "default": "now()",
505
- "generated": null,
506
- "identity": null,
507
- "name": "created_at",
508
- "entityType": "columns",
509
- "schema": "meta_whatsapp",
510
- "table": "sessions"
511
- },
512
- {
513
- "type": "timestamp with time zone",
514
- "typeSchema": null,
515
- "notNull": true,
516
- "dimensions": 0,
517
- "default": "now()",
518
- "generated": null,
519
- "identity": null,
520
- "name": "updated_at",
521
- "entityType": "columns",
522
- "schema": "meta_whatsapp",
523
- "table": "sessions"
524
- },
525
- {
526
- "nameExplicit": true,
527
- "columns": [
528
- {
529
- "value": "company_id",
530
- "isExpression": false,
531
- "asc": true,
532
- "nullsFirst": false,
533
- "opclass": null
534
- },
535
- {
536
- "value": "key",
537
- "isExpression": false,
538
- "asc": true,
539
- "nullsFirst": false,
540
- "opclass": null
541
- }
542
- ],
543
- "isUnique": true,
544
- "where": null,
545
- "with": "",
546
- "method": "btree",
547
- "concurrently": false,
548
- "name": "idx_flow_graphs_company_key",
549
- "entityType": "indexes",
550
- "schema": "meta_whatsapp",
551
- "table": "flow_graphs"
552
- },
553
- {
554
- "nameExplicit": true,
555
- "columns": [
556
- {
557
- "value": "session_id",
558
- "isExpression": false,
559
- "asc": true,
560
- "nullsFirst": false,
561
- "opclass": null
562
- },
563
- {
564
- "value": "created_at",
565
- "isExpression": false,
566
- "asc": true,
567
- "nullsFirst": false,
568
- "opclass": null
569
- }
570
- ],
571
- "isUnique": false,
572
- "where": null,
573
- "with": "",
574
- "method": "btree",
575
- "concurrently": false,
576
- "name": "idx_messages_session_created",
577
- "entityType": "indexes",
578
- "schema": "meta_whatsapp",
579
- "table": "messages"
580
- },
581
- {
582
- "nameExplicit": true,
583
- "columns": [
584
- {
585
- "value": "company_id",
586
- "isExpression": false,
587
- "asc": true,
588
- "nullsFirst": false,
589
- "opclass": null
590
- },
591
- {
592
- "value": "whatsapp_number",
593
- "isExpression": false,
594
- "asc": true,
595
- "nullsFirst": false,
596
- "opclass": null
597
- },
598
- {
599
- "value": "created_at",
600
- "isExpression": false,
601
- "asc": true,
602
- "nullsFirst": false,
603
- "opclass": null
604
- }
605
- ],
606
- "isUnique": false,
607
- "where": null,
608
- "with": "",
609
- "method": "btree",
610
- "concurrently": false,
611
- "name": "idx_messages_company_number_created",
612
- "entityType": "indexes",
613
- "schema": "meta_whatsapp",
614
- "table": "messages"
615
- },
616
- {
617
- "nameExplicit": true,
618
- "columns": [
619
- {
620
- "value": "wa_message_id",
621
- "isExpression": false,
622
- "asc": true,
623
- "nullsFirst": false,
624
- "opclass": null
625
- }
626
- ],
627
- "isUnique": false,
628
- "where": null,
629
- "with": "",
630
- "method": "btree",
631
- "concurrently": false,
632
- "name": "idx_messages_wa_message_id",
633
- "entityType": "indexes",
634
- "schema": "meta_whatsapp",
635
- "table": "messages"
636
- },
637
- {
638
- "nameExplicit": true,
639
- "columns": [
640
- {
641
- "value": "company_id",
642
- "isExpression": false,
643
- "asc": true,
644
- "nullsFirst": false,
645
- "opclass": null
646
- },
647
- {
648
- "value": "whatsapp_number",
649
- "isExpression": false,
650
- "asc": true,
651
- "nullsFirst": false,
652
- "opclass": null
653
- }
654
- ],
655
- "isUnique": true,
656
- "where": null,
657
- "with": "",
658
- "method": "btree",
659
- "concurrently": false,
660
- "name": "idx_sessions_company_number",
661
- "entityType": "indexes",
662
- "schema": "meta_whatsapp",
663
- "table": "sessions"
664
- },
665
- {
666
- "nameExplicit": true,
667
- "columns": [
668
- {
669
- "value": "company_id",
670
- "isExpression": false,
671
- "asc": true,
672
- "nullsFirst": false,
673
- "opclass": null
674
- },
675
- {
676
- "value": "mode",
677
- "isExpression": false,
678
- "asc": true,
679
- "nullsFirst": false,
680
- "opclass": null
681
- }
682
- ],
683
- "isUnique": false,
684
- "where": null,
685
- "with": "",
686
- "method": "btree",
687
- "concurrently": false,
688
- "name": "idx_sessions_company_mode",
689
- "entityType": "indexes",
690
- "schema": "meta_whatsapp",
691
- "table": "sessions"
692
- },
693
- {
694
- "nameExplicit": false,
695
- "columns": [
696
- "session_id"
697
- ],
698
- "schemaTo": "meta_whatsapp",
699
- "tableTo": "sessions",
700
- "columnsTo": [
701
- "id"
702
- ],
703
- "onUpdate": "NO ACTION",
704
- "onDelete": "CASCADE",
705
- "name": "messages_session_id_sessions_id_fkey",
706
- "entityType": "fks",
707
- "schema": "meta_whatsapp",
708
- "table": "messages"
709
- },
710
- {
711
- "columns": [
712
- "id"
713
- ],
714
- "nameExplicit": false,
715
- "name": "flow_graphs_pkey",
716
- "schema": "meta_whatsapp",
717
- "table": "flow_graphs",
718
- "entityType": "pks"
719
- },
720
- {
721
- "columns": [
722
- "id"
723
- ],
724
- "nameExplicit": false,
725
- "name": "messages_pkey",
726
- "schema": "meta_whatsapp",
727
- "table": "messages",
728
- "entityType": "pks"
729
- },
730
- {
731
- "columns": [
732
- "id"
733
- ],
734
- "nameExplicit": false,
735
- "name": "sessions_pkey",
736
- "schema": "meta_whatsapp",
737
- "table": "sessions",
738
- "entityType": "pks"
739
- }
740
- ],
741
- "renames": []
742
- }