core-services-sdk 1.3.45 → 1.3.47

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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/src/ids/generators.js +7 -0
  3. package/src/ids/prefixes.js +3 -0
  4. package/src/index.js +1 -0
  5. package/src/instant-messages/im-platform.js +18 -0
  6. package/src/instant-messages/index.js +4 -0
  7. package/src/instant-messages/message-type.js +153 -0
  8. package/src/instant-messages/message-types.js +127 -0
  9. package/src/instant-messages/message-unified-mapper.js +247 -0
  10. package/tests/ids/prefixes.unit.test.js +1 -0
  11. package/tests/instant-messages/applications.unit.test.js +27 -0
  12. package/tests/instant-messages/message-type.unit.test.js +185 -0
  13. package/tests/instant-messages/message-types.unit.test.js +93 -0
  14. package/tests/instant-messages/message-unified-mapper-telegram.unit.test.js +66 -0
  15. package/tests/instant-messages/message-unified-mapper-united.unit.test.js +94 -0
  16. package/tests/instant-messages/message-unified-mapper-whatsapp.unit.test.js +65 -0
  17. package/tests/instant-messages/mock-messages/telegram/contact.json +27 -0
  18. package/tests/instant-messages/mock-messages/telegram/document.json +43 -0
  19. package/tests/instant-messages/mock-messages/telegram/location.json +26 -0
  20. package/tests/instant-messages/mock-messages/telegram/photo.json +52 -0
  21. package/tests/instant-messages/mock-messages/telegram/poll.json +45 -0
  22. package/tests/instant-messages/mock-messages/telegram/text.json +63 -0
  23. package/tests/instant-messages/mock-messages/telegram/video.json +46 -0
  24. package/tests/instant-messages/mock-messages/telegram/video_note.json +43 -0
  25. package/tests/instant-messages/mock-messages/telegram/voice.json +29 -0
  26. package/tests/instant-messages/mock-messages/whatsapp/audio.json +42 -0
  27. package/tests/instant-messages/mock-messages/whatsapp/contacts.json +50 -0
  28. package/tests/instant-messages/mock-messages/whatsapp/document.json +42 -0
  29. package/tests/instant-messages/mock-messages/whatsapp/image.json +41 -0
  30. package/tests/instant-messages/mock-messages/whatsapp/location.json +40 -0
  31. package/tests/instant-messages/mock-messages/whatsapp/reaction.json +40 -0
  32. package/tests/instant-messages/mock-messages/whatsapp/sticker.json +42 -0
  33. package/tests/instant-messages/mock-messages/whatsapp/text.json +39 -0
  34. package/tests/instant-messages/mock-messages/whatsapp/video.json +41 -0
  35. package/types/ids/generators.d.ts +2 -0
  36. package/types/ids/prefixes.d.ts +4 -0
  37. package/types/index.d.ts +1 -0
  38. package/types/instant-messages/im-platform.d.ts +13 -0
  39. package/types/instant-messages/index.d.ts +4 -0
  40. package/types/instant-messages/message-type.d.ts +24 -0
  41. package/types/instant-messages/message-types.d.ts +62 -0
  42. package/types/instant-messages/message-unified-mapper.d.ts +356 -0
@@ -0,0 +1,45 @@
1
+ {
2
+ "update_id": 895013313,
3
+ "message": {
4
+ "message_id": 17,
5
+ "from": {
6
+ "id": 59627707,
7
+ "is_bot": false,
8
+ "first_name": "Haim",
9
+ "last_name": "Rubin",
10
+ "username": "haimrubin",
11
+ "language_code": "en"
12
+ },
13
+ "chat": {
14
+ "id": 59627707,
15
+ "first_name": "Haim",
16
+ "last_name": "Rubin",
17
+ "username": "haimrubin",
18
+ "type": "private"
19
+ },
20
+ "date": 1763789823,
21
+ "poll": {
22
+ "id": "5841554975993365379",
23
+ "question": "Choose one",
24
+ "options": [
25
+ {
26
+ "text": "Ans1",
27
+ "voter_count": 0
28
+ },
29
+ {
30
+ "text": "Ans2",
31
+ "voter_count": 0
32
+ },
33
+ {
34
+ "text": "Ans3",
35
+ "voter_count": 0
36
+ }
37
+ ],
38
+ "total_voter_count": 0,
39
+ "is_closed": false,
40
+ "is_anonymous": true,
41
+ "type": "regular",
42
+ "allows_multiple_answers": false
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "update_id": 895013316,
3
+ "message": {
4
+ "message_id": 20,
5
+ "from": {
6
+ "id": 59627707,
7
+ "is_bot": false,
8
+ "first_name": "Haim",
9
+ "last_name": "Rubin",
10
+ "username": "haimrubin",
11
+ "language_code": "en"
12
+ },
13
+ "chat": {
14
+ "id": 59627707,
15
+ "first_name": "Haim",
16
+ "last_name": "Rubin",
17
+ "username": "haimrubin",
18
+ "type": "private"
19
+ },
20
+ "date": 1763790010,
21
+ "reply_to_message": {
22
+ "message_id": 15,
23
+ "from": {
24
+ "id": 59627707,
25
+ "is_bot": false,
26
+ "first_name": "Haim",
27
+ "last_name": "Rubin",
28
+ "username": "haimrubin",
29
+ "language_code": "en"
30
+ },
31
+ "chat": {
32
+ "id": 59627707,
33
+ "first_name": "Haim",
34
+ "last_name": "Rubin",
35
+ "username": "haimrubin",
36
+ "type": "private"
37
+ },
38
+ "date": 1763789772,
39
+ "document": {
40
+ "file_name": "View PDF Statement_2024-12-31.pdf",
41
+ "mime_type": "application/pdf",
42
+ "thumbnail": {
43
+ "file_id": "AAMCBAADGQEAAw9pIUvMD7oscJOFf765U00bgAk_6AACsBkAAn3bmVCXCOv2H3Zr0wEAB20AAzYE",
44
+ "file_unique_id": "AQADsBkAAn3bmVBy",
45
+ "file_size": 13015,
46
+ "width": 247,
47
+ "height": 320
48
+ },
49
+ "thumb": {
50
+ "file_id": "AAMCBAADGQEAAw9pIUvMD7oscJOFf765U00bgAk_6AACsBkAAn3bmVCXCOv2H3Zr0wEAB20AAzYE",
51
+ "file_unique_id": "AQADsBkAAn3bmVBy",
52
+ "file_size": 13015,
53
+ "width": 247,
54
+ "height": 320
55
+ },
56
+ "file_id": "BQACAgQAAxkBAAMPaSFLzA-6LHCThX--uVNNG4AJP-gAArAZAAJ925lQlwjr9h92a9M2BA",
57
+ "file_unique_id": "AgADsBkAAn3bmVA",
58
+ "file_size": 934888
59
+ }
60
+ },
61
+ "text": "Han"
62
+ }
63
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "update_id": 895013310,
3
+ "message": {
4
+ "message_id": 14,
5
+ "from": {
6
+ "id": 59627707,
7
+ "is_bot": false,
8
+ "first_name": "Haim",
9
+ "last_name": "Rubin",
10
+ "username": "haimrubin",
11
+ "language_code": "en"
12
+ },
13
+ "chat": {
14
+ "id": 59627707,
15
+ "first_name": "Haim",
16
+ "last_name": "Rubin",
17
+ "username": "haimrubin",
18
+ "type": "private"
19
+ },
20
+ "date": 1763789755,
21
+ "video": {
22
+ "duration": 3,
23
+ "width": 720,
24
+ "height": 1280,
25
+ "file_name": "IMG_3271.MP4",
26
+ "mime_type": "video/mp4",
27
+ "thumbnail": {
28
+ "file_id": "AAMCBAADGQEAAw5pIUu6UPwWMfVqzJvgUPmAwXqr_QAC6hsAAk1fEVHUU-KPR6EVWwEAB20AAzYE",
29
+ "file_unique_id": "AQAD6hsAAk1fEVFy",
30
+ "file_size": 14534,
31
+ "width": 180,
32
+ "height": 320
33
+ },
34
+ "thumb": {
35
+ "file_id": "AAMCBAADGQEAAw5pIUu6UPwWMfVqzJvgUPmAwXqr_QAC6hsAAk1fEVHUU-KPR6EVWwEAB20AAzYE",
36
+ "file_unique_id": "AQAD6hsAAk1fEVFy",
37
+ "file_size": 14534,
38
+ "width": 180,
39
+ "height": 320
40
+ },
41
+ "file_id": "BAACAgQAAxkBAAMOaSFLulD8FjH1asyb4FD5gMF6q_0AAuobAAJNXxFR1FPij0ehFVs2BA",
42
+ "file_unique_id": "AgAD6hsAAk1fEVE",
43
+ "file_size": 921492
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "update_id": 895013315,
3
+ "message": {
4
+ "message_id": 19,
5
+ "from": {
6
+ "id": 59627707,
7
+ "is_bot": false,
8
+ "first_name": "Haim",
9
+ "last_name": "Rubin",
10
+ "username": "haimrubin",
11
+ "language_code": "en"
12
+ },
13
+ "chat": {
14
+ "id": 59627707,
15
+ "first_name": "Haim",
16
+ "last_name": "Rubin",
17
+ "username": "haimrubin",
18
+ "type": "private"
19
+ },
20
+ "date": 1763789938,
21
+ "video_note": {
22
+ "duration": 5,
23
+ "length": 400,
24
+ "thumbnail": {
25
+ "file_id": "AAMCBAADGQEAAxNpIUxyECXLPQboUNXKbvm5bX54oAAC6xsAAk1fEVGddHN0dzY9SAEAB20AAzYE",
26
+ "file_unique_id": "AQAD6xsAAk1fEVFy",
27
+ "file_size": 11460,
28
+ "width": 320,
29
+ "height": 320
30
+ },
31
+ "thumb": {
32
+ "file_id": "AAMCBAADGQEAAxNpIUxyECXLPQboUNXKbvm5bX54oAAC6xsAAk1fEVGddHN0dzY9SAEAB20AAzYE",
33
+ "file_unique_id": "AQAD6xsAAk1fEVFy",
34
+ "file_size": 11460,
35
+ "width": 320,
36
+ "height": 320
37
+ },
38
+ "file_id": "DQACAgQAAxkBAAMTaSFMchAlyz0G6FDVym75uW1-eKAAAusbAAJNXxFRnXRzdHc2PUg2BA",
39
+ "file_unique_id": "AgAD6xsAAk1fEVE",
40
+ "file_size": 587250
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "update_id": 895013308,
3
+ "message": {
4
+ "message_id": 12,
5
+ "from": {
6
+ "id": 59627707,
7
+ "is_bot": false,
8
+ "first_name": "Haim",
9
+ "last_name": "Rubin",
10
+ "username": "haimrubin",
11
+ "language_code": "en"
12
+ },
13
+ "chat": {
14
+ "id": 59627707,
15
+ "first_name": "Haim",
16
+ "last_name": "Rubin",
17
+ "username": "haimrubin",
18
+ "type": "private"
19
+ },
20
+ "date": 1763789674,
21
+ "voice": {
22
+ "duration": 2,
23
+ "mime_type": "audio/ogg",
24
+ "file_id": "AwACAgQAAxkBAAMMaSFLapSkCafvENFBTyq72vcQH3sAAukbAAJNXxFRFh9saUFr1BE2BA",
25
+ "file_unique_id": "AgAD6RsAAk1fEVE",
26
+ "file_size": 10876
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0E3QjNBQjBEMTYwNEVCNjBCQzEA",
26
+ "timestamp": "1763743593",
27
+ "type": "audio",
28
+ "audio": {
29
+ "mime_type": "audio/ogg; codecs=opus",
30
+ "sha256": "e/1sv88kmY2wfP/wNfkek8x3xCXcjvA+n160jgIMG68=",
31
+ "id": "2976751285845206",
32
+ "voice": true
33
+ }
34
+ }
35
+ ]
36
+ },
37
+ "field": "messages"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0E4RjlBQUJBQTE1MjVBN0E5RkUA",
26
+ "timestamp": "1763743457",
27
+ "type": "contacts",
28
+ "contacts": [
29
+ {
30
+ "name": {
31
+ "first_name": "Abenleumi",
32
+ "formatted_name": "Abenleumi"
33
+ },
34
+ "phones": [
35
+ {
36
+ "phone": "+972 3-645-0200",
37
+ "type": "CELL"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ },
45
+ "field": "messages"
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0E4RTlCODE4MkFGNkMxOTE0QzIA",
26
+ "timestamp": "1763743524",
27
+ "type": "document",
28
+ "document": {
29
+ "filename": "FLIX-Ticket-1067506625.pdf",
30
+ "mime_type": "application/pdf",
31
+ "sha256": "eW2Qf+kiYoHtnzk5diCpUt5oS1VVpw7/PIfUHqFvXA8=",
32
+ "id": "1354168296074267"
33
+ }
34
+ }
35
+ ]
36
+ },
37
+ "field": "messages"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0FGNTlENzc1MEVGREU5QTAwRTQA",
26
+ "timestamp": "1763743426",
27
+ "type": "image",
28
+ "image": {
29
+ "mime_type": "image/jpeg",
30
+ "sha256": "iOvY9twNvtVx7cnykrUNJaZGmmWQw0HM40BfdNLFo+E=",
31
+ "id": "777894985299220"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ "field": "messages"
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0FFNUY0NjM3NzY0QkVDMkNCNTEA",
26
+ "timestamp": "1763743440",
27
+ "location": {
28
+ "latitude": 32.040576934814,
29
+ "longitude": 34.857173919678
30
+ },
31
+ "type": "location"
32
+ }
33
+ ]
34
+ },
35
+ "field": "messages"
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0FEMzhBQjQxNEJCMEQ1RjZBNzgA",
26
+ "timestamp": "1763743607",
27
+ "type": "reaction",
28
+ "reaction": {
29
+ "message_id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0E3QjNBQjBEMTYwNEVCNjBCQzEA",
30
+ "emoji": "❤️"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ "field": "messages"
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0EwMUM4MTI2Q0ExMDI2NDBCN0MA",
26
+ "timestamp": "1763743586",
27
+ "type": "sticker",
28
+ "sticker": {
29
+ "mime_type": "image/webp",
30
+ "sha256": "KPQCiQO1aLuGE5IU/FgWM37foP3NZhrLVO9i9eHMPpk=",
31
+ "id": "1461243551607776",
32
+ "animated": true
33
+ }
34
+ }
35
+ ]
36
+ },
37
+ "field": "messages"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "TaxDrop - FCHANGE LTD"
18
+ },
19
+ "wa_id": "972555628927"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972555628927",
25
+ "id": "wamid.HBgMOTcyNTU1NjI4OTI3FQIAEhgUMkFCMEVEREFDRDhEM0QyQTZDNzYA",
26
+ "timestamp": "1763787737",
27
+ "text": {
28
+ "body": "Hello, this is a text message"
29
+ },
30
+ "type": "text"
31
+ }
32
+ ]
33
+ },
34
+ "field": "messages"
35
+ }
36
+ ]
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "object": "whatsapp_business_account",
3
+ "entry": [
4
+ {
5
+ "id": "2671155033226672",
6
+ "changes": [
7
+ {
8
+ "value": {
9
+ "messaging_product": "whatsapp",
10
+ "metadata": {
11
+ "display_phone_number": "15556396461",
12
+ "phone_number_id": "850007711535110"
13
+ },
14
+ "contacts": [
15
+ {
16
+ "profile": {
17
+ "name": "Haim Rubin"
18
+ },
19
+ "wa_id": "972523443433"
20
+ }
21
+ ],
22
+ "messages": [
23
+ {
24
+ "from": "972523443433",
25
+ "id": "wamid.HBgMOTcyNTIzNDQzNDMzFQIAEhgUM0E1NTU0ODMxMkRFODI1MzY1QzYA",
26
+ "timestamp": "1763743437",
27
+ "type": "video",
28
+ "video": {
29
+ "mime_type": "video/mp4",
30
+ "sha256": "vD2/BTDxw6H7eStFErtBSPgnfTtnknqrDGkIhifKLuQ=",
31
+ "id": "1365419294986334"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ "field": "messages"
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -27,3 +27,5 @@ export function generateDeviceId(): string
27
27
  export function generateAlertId(): string
28
28
  export function generateResourceId(): string
29
29
  export function generateIncomingEmailId(): string
30
+ export function generateEmailId(): string
31
+ export function generateImId(): string
@@ -69,4 +69,8 @@ export const ID_PREFIXES: Readonly<{
69
69
  RESOURCE: 'res'
70
70
  /** Incoming email ID prefix */
71
71
  INCOMING_EMAIL: 'ieml'
72
+ /** Email ID prefix */
73
+ EMAIL: 'eml'
74
+ /** Instant Message ID prefix */
75
+ IM: 'im'
72
76
  }>
package/types/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './mailer/index.js'
9
9
  export * from './rabbit-mq/index.js'
10
10
  export * from './templates/index.js'
11
11
  export * from './util/index.js'
12
+ export * from './instant-messages/index.js'
@@ -0,0 +1,13 @@
1
+ /**
2
+ *
3
+ * Supported instant-messaging application identifiers.
4
+ *
5
+ * Used across the system to determine which message-mapper,
6
+ *
7
+ * parser, and processing logic to apply (Telegram vs WhatsApp).
8
+ */
9
+ export type IM_PLATFORM = string
10
+ export namespace IM_PLATFORM {
11
+ let TELEGRAM: string
12
+ let WHATSAPP: string
13
+ }
@@ -0,0 +1,4 @@
1
+ export * from './im-platform.js'
2
+ export * from './message-type.js'
3
+ export * from './message-types.js'
4
+ export * from './message-unified-mapper.js'