@atmosx/event-product-parser 3.0.63 → 3.0.75
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/.github/docs/docs-functions.md +1 -1
- package/.github/docs/docs-general-configurations.md +1 -11
- package/.github/docs/docs-integrations.md +3 -2
- package/README.md +4 -4
- package/dist/cjs/index.cjs +3590 -623
- package/dist/esm/index.mjs +3589 -624
- package/package.json +11 -4
- package/src/bootstrap.ts +50 -33
- package/src/{@building → building}/CreateEvent.ts +10 -10
- package/src/{@building → building}/GetCleanedEvent.ts +2 -2
- package/src/{@building → building}/GetEventAttachments.ts +12 -10
- package/src/building/GetEventDirection.ts +28 -0
- package/src/{@building → building}/GetEventEnhancedName.ts +5 -6
- package/src/{@building → building}/GetEventGeometry.ts +19 -13
- package/src/{@building → building}/GetEventHeader.ts +4 -4
- package/src/{@building → building}/GetEventNodes.ts +16 -14
- package/src/{@building → building}/GetEventOffice.ts +5 -5
- package/src/building/GetEventPopulation.ts +58 -0
- package/src/{@building → building}/GetEventProperties.ts +23 -18
- package/src/{@building → building}/GetEventSignature.ts +8 -8
- package/src/{@building → building}/GetEventTags.ts +3 -3
- package/src/{@core/CreateListener.ts → building/GetEventTheme.ts} +8 -6
- package/src/{@building → building}/GetEventTracking.ts +6 -6
- package/src/{@modules/@eas/GenerateEASMessage.ts → components/audio/GenerateAudioMessage.ts} +32 -33
- package/src/{@modules/@eas → components/audio/components}/GetCleanDescription.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetFloatPCM16.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetMergedPCM16.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetPCM16.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetPCMToFloat.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetSampledPCM16.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/GetTTS.ts +5 -3
- package/src/{@modules/@eas → components/audio/components}/GetWavPCM16.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/SetAFSK.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/SetAsciiToBits.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/SetAttentionTone.ts +2 -2
- package/src/{@modules/@eas → components/audio/components}/SetNoise.ts +4 -4
- package/src/{@modules/@eas → components/audio/components}/SetRadioEffect.ts +4 -4
- package/src/{@modules/@eas → components/audio/components}/SetSameHeader.ts +5 -5
- package/src/{@modules/@utilities/SetWarning.ts → components/database/CreateQuery.ts} +18 -13
- package/src/{@modules/@database → components/database}/GetCachedEvents.ts +14 -9
- package/src/components/database/ImportBoundaries.ts +168 -0
- package/src/{@modules/@database → components/database}/ImportBroadcastify.ts +8 -17
- package/src/components/database/ImportCities.ts +87 -0
- package/src/{@modules/@database → components/database}/ImportShapefiles.ts +14 -16
- package/src/{@modules/@database → components/database}/ImportStanza.ts +13 -17
- package/src/components/database/InitializeDatabase.ts +71 -0
- package/src/components/images/GenerateGraphic.ts +242 -0
- package/src/components/images/components/CreateRectangle.ts +22 -0
- package/src/components/images/components/CreateText.ts +22 -0
- package/src/components/images/modules/CreateSVG.ts +37 -0
- package/src/components/images/modules/GetGeographicalBoundaries.ts +72 -0
- package/src/components/images/modules/GetGeographicalCities.ts +58 -0
- package/src/components/images/modules/GetGeographicalEvents.ts +48 -0
- package/src/components/images/modules/GetGeometryBounds.ts +82 -0
- package/src/components/images/modules/GetParsedBoundary.ts +58 -0
- package/src/components/images/modules/GetSVGPath.ts +53 -0
- package/src/components/images/modules/NormalizePolygon.ts +57 -0
- package/src/{@modules/@stanza → components/stanza}/GetAwipsType.ts +4 -4
- package/src/{@modules/@stanza → components/stanza}/ValidateStanza.ts +6 -6
- package/src/{@modules/@utilities → components/utilities}/CreateHttp.ts +2 -2
- package/src/{@parsers/@text → components/utilities}/GetEmbededText.ts +6 -4
- package/src/{@modules/@utilities → components/utilities}/GetFormattedTime.ts +2 -2
- package/src/{@modules/@utilities → components/utilities}/GetLatestIssuance.ts +2 -2
- package/src/{@modules/@utilities → components/utilities}/GetMatched.ts +2 -2
- package/src/{@modules/@utilities → components/utilities}/GetShapeNearestPoint.ts +2 -2
- package/src/{@parsers/@text → components/utilities}/GetStringText.ts +7 -7
- package/src/components/utilities/GetUnionPolygon.ts +36 -0
- package/src/{@modules/@utilities → components/utilities}/QueueManager.ts +2 -2
- package/src/{@modules/@utilities → components/utilities}/SetCronSchedule.ts +37 -25
- package/src/{@modules/@utilities → components/utilities}/SetDebug.ts +4 -4
- package/src/{@modules/@utilities → components/utilities}/SetEventEmit.ts +8 -7
- package/src/{@modules/@utilities → components/utilities}/SetSettings.ts +4 -4
- package/src/{@modules/@utilities → components/utilities}/SetSleep.ts +2 -2
- package/src/{@modules/@utilities → components/utilities}/SetTimeoutAction.ts +3 -3
- package/src/components/utilities/SetWarning.ts +47 -0
- package/src/{@modules/@xmpp → components/xmpp}/DeployXMPP.ts +12 -12
- package/src/{@modules/@xmpp → components/xmpp}/ErrorXMPP.ts +3 -3
- package/src/{@modules/@xmpp → components/xmpp}/OfflineXMPP.ts +4 -4
- package/src/{@modules/@xmpp → components/xmpp}/OnlineXMPP.ts +5 -5
- package/src/{@modules/@xmpp → components/xmpp}/ReconnectXMPP.ts +6 -6
- package/src/{@modules/@xmpp → components/xmpp}/StanzaXMPP.ts +8 -8
- package/src/{@core → core}/ClearEvents.ts +4 -4
- package/src/{@core → core}/GetEvents.ts +3 -3
- package/src/{@core → core}/GetNodes.ts +3 -3
- package/src/{@core → core}/GetRandomEvent.ts +3 -3
- package/src/{@core → core}/GetVersion.ts +3 -3
- package/src/{@core → core}/ManualEvent.ts +6 -6
- package/src/{@core → core}/QueryStanza.ts +9 -8
- package/src/{@core → core}/SetNode.ts +5 -5
- package/src/{@core → core}/StartService.ts +13 -12
- package/src/{@core → core}/StopService.ts +3 -3
- package/src/{@enums → enums}/AWIPS.ts +2 -2
- package/src/{@enums → enums}/Actions.ts +2 -2
- package/src/{@enums → enums}/Cancellation.ts +2 -2
- package/src/{@enums → enums}/Causes.ts +2 -2
- package/src/{@enums → enums}/Correlations.ts +2 -2
- package/src/{@enums → enums}/Enhanced.ts +4 -3
- package/src/{@enums → enums}/Events.ts +2 -2
- package/src/{@enums → enums}/Expressions.ts +2 -2
- package/src/{@enums → enums}/GlobalFilter.ts +2 -2
- package/src/{@enums → enums}/Hail.ts +2 -2
- package/src/{@enums → enums}/ICAO.ts +2 -2
- package/src/{@enums → enums}/Matches.ts +8 -3
- package/src/{@enums → enums}/Products.ts +2 -2
- package/src/{@enums → enums}/Records.ts +2 -2
- package/src/{@enums → enums}/Severity.ts +2 -2
- package/src/{@enums → enums}/Shapefiles.ts +2 -2
- package/src/{@enums → enums}/States.ts +68 -4
- package/src/{@enums → enums}/Status.ts +2 -2
- package/src/{@enums → enums}/Strings.ts +2 -2
- package/src/{@enums → enums}/Tags.ts +8 -3
- package/src/{@enums → enums}/Testing.ts +2 -2
- package/src/enums/Themes.ts +70 -0
- package/src/{@events → events}/ParseAPI.ts +28 -17
- package/src/{@events → events}/ParseText.ts +13 -11
- package/src/{@events → events}/ParseUGC.ts +15 -14
- package/src/{@events → events}/ParseVTEC.ts +18 -16
- package/src/index.ts +49 -32
- package/src/{@manager → manager}/MakeEvents.ts +16 -28
- package/src/{@manager → manager}/RemoveEvent.ts +9 -9
- package/src/{@manager → manager}/SetHash.ts +5 -5
- package/src/{@manager → manager}/UpdateEvents.ts +6 -6
- package/src/{@manager → manager}/UpdateNode.ts +6 -6
- package/src/{@manager → manager}/ValidateEvents.ts +31 -20
- package/src/{@parsers/@hvtec → parsers/hvtec}/HVExtract.ts +7 -7
- package/src/{@parsers/@text → parsers/text}/GetDescriptionFromProduct.ts +3 -3
- package/src/parsers/text/GetPolygonFromProduct.ts +71 -0
- package/src/{@parsers/@text → parsers/text}/GetTextFromProduct.ts +2 -2
- package/src/{@parsers/@ugc → parsers/ugc}/GetCache.ts +4 -4
- package/src/{@parsers/@ugc → parsers/ugc}/GetExpiry.ts +2 -2
- package/src/{@parsers/@ugc → parsers/ugc}/GetHeader.ts +3 -3
- package/src/{@parsers/@ugc → parsers/ugc}/GetLocations.ts +9 -9
- package/src/parsers/ugc/GetZonePolygon.ts +73 -0
- package/src/{@parsers/@ugc → parsers/ugc}/GetZones.ts +2 -2
- package/src/{@parsers/@ugc → parsers/ugc}/SetCache.ts +4 -4
- package/src/{@parsers/@ugc → parsers/ugc}/UGCExtract.ts +9 -9
- package/src/{@parsers/@vtec → parsers/vtec}/GetExpiry.ts +2 -2
- package/src/{@parsers/@vtec → parsers/vtec}/VTECExtract.ts +9 -9
- package/src/{@types-lower → static}/Attributes.ts +2 -3
- package/src/{@types-lower → static}/Event.ts +7 -6
- package/src/{@types-lower → static}/Properties.ts +17 -4
- package/src/{@types-lower → static}/Stanza.ts +3 -3
- package/src/{@tasks → tasks}/CreateTasks.ts +40 -34
- package/src/{@tasks → tasks}/TaskGenerateJSON.ts +2 -2
- package/src/{@tasks → tasks}/TaskGenerateText.ts +2 -2
- package/src/{@tasks → tasks}/TaskSendNTFY.ts +29 -25
- package/src/{@tasks → tasks}/TaskSendWebhook.ts +22 -15
- package/src/{@types → types}/Actions.ts +3 -3
- package/src/{@types → types}/HVTEC.ts +2 -2
- package/src/{@types → types}/Hash.ts +2 -2
- package/src/types/Nodes.ts +29 -0
- package/src/{@types → types}/Settings.ts +17 -8
- package/src/{@types → types}/StanzaCompiled.ts +3 -3
- package/src/{@types → types}/UGC.ts +2 -2
- package/src/{@types → types}/VTEC.ts +2 -2
- package/tools/build.js +2 -0
- package/tsconfig.json +25 -18
- package/src/@modules/@database/InitializeDatabase.ts +0 -59
- package/src/@modules/@utilities/GetSettings.ts +0 -25
- package/src/@modules/@utilities/SetListener.ts +0 -30
- package/src/@parsers/@text/GetPolygonFromProduct.ts +0 -53
- package/src/@parsers/@text/GetXML.ts +0 -61
- package/src/@parsers/@ugc/GetZonePolygon.ts +0 -111
- package/src/@tasks/TaskGenerateAudio.ts +0 -34
|
@@ -84,16 +84,6 @@ LAT...LON 4587 6965 4585 6968 4588 6971 4587 6972
|
|
|
84
84
|
4580 7042 4589 7026 4596 7026 4598 6968
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
## 4.2.3 - Shapefile Skip Points
|
|
88
|
-
|
|
89
|
-
The **ShapefileSkipPoints** configuration allows you to skip a specified number of points when building geometry for shapefiles. This can be useful for reducing the complexity of the resulting geometry or for performance reasons. This uses the [polygon-clipping](https://www.npmjs.com/package/polygon-clipping) library.
|
|
90
|
-
|
|
91
|
-
```ts
|
|
92
|
-
GlobalSettings: {
|
|
93
|
-
ShapefileSkipPoints: 2, // Skip every 2nd point
|
|
94
|
-
},
|
|
95
|
-
```
|
|
96
|
-
|
|
97
87
|
# 4.3 – Tracking Node Settings
|
|
98
88
|
|
|
99
89
|
Tracking nodes are GPS-based longitude/latitude filters used to monitor and manage geographic locations. They allow the system to match, filter, and process data based on specified coordinate positions.
|
|
@@ -206,4 +196,4 @@ Additionally, all events can be processed by setting **ListeningEvents** to an e
|
|
|
206
196
|
## 4.4.7 - Test Products
|
|
207
197
|
# 4.5 - Archive Configurations
|
|
208
198
|
## 4.5.1 - TTL (Time-To-Live)
|
|
209
|
-
## 4.5.2 -
|
|
199
|
+
## 4.5.2 - Audio Toneout
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
# 5.4 - Broadcastify Feed Attachments
|
|
29
29
|
## 5.4.1 - Tag Filtering
|
|
30
30
|
|
|
31
|
-
# 5.5 -
|
|
31
|
+
# 5.5 - Audio Generation
|
|
32
32
|
## 5.5.1 - Linux Prerequisites
|
|
33
33
|
## 5.5.2 - Limitations
|
|
34
34
|
|
|
35
35
|
# 5.6 - Event Archiving
|
|
36
36
|
## 5.6.1 - Raw Text Product Archiving
|
|
37
|
-
## 5.6.2 - GeoJSON Archiving
|
|
37
|
+
## 5.6.2 - GeoJSON Archiving
|
|
38
|
+
## 5.7 - Graphic Generation
|
package/README.md
CHANGED
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
- 4.2 [Geometry Configurations](/.github/docs/docs-general-configurations.md#42---geometry-configurations)
|
|
35
35
|
- 4.2.1 [Disable Geometry Processing](/.github/docs/docs-general-configurations.md#421---disable-geometry-processing)
|
|
36
36
|
- 4.2.2 [Force Shapefile Coordinates](/.github/docs/docs-general-configurations.md#422---force-shapefile-coordinates)
|
|
37
|
-
- 4.2.3 [Shapefile Skip Points](/.github/docs/docs-general-configurations.md#423---shapefile-skip-points)
|
|
38
37
|
- 4.3 [Tracking Node Settings](/.github/docs/docs-general-configurations.md#43---tracking-node-settings)
|
|
39
38
|
- 4.3.1 [NodeTTL](/.github/docs/docs-general-configurations.md#431---nodettl)
|
|
40
39
|
- 4.3.2 [Max Distance](/.github/docs/docs-general-configurations.md#432---max-distance)
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
- 4.4.7 [Test Products](/.github/docs/docs-general-configurations.md#447---test-products)
|
|
50
49
|
- 4.5 [Archive Configurations](/.github/docs/docs-general-configurations.md#45---archive-configurations)
|
|
51
50
|
- 4.5.1 [TTL (Time-to-Live)](/.github/docs/docs-general-configurations.md#451---ttl-time-to-live)
|
|
52
|
-
- 4.5.2 [
|
|
51
|
+
- 4.5.2 [Audio Toneout](/.github/docs/docs-general-configurations.md#452---audio-toneout)
|
|
53
52
|
5. [Actions / Integrations](/.github/docs/docs-integrations.md)
|
|
54
53
|
- 5.1 [Action Events & Wildcards](/.github/docs/docs-integrations.md#51---action-events---wildcards)
|
|
55
54
|
- 5.2 [Discord Webhooks](/.github/docs/docs-integrations.md#52---discord-webhooks)
|
|
@@ -60,12 +59,13 @@
|
|
|
60
59
|
- 5.3.3 [Node Filtering & Local Events](./github/docs/docs-integrations.md#533---node-filtering---local-events)
|
|
61
60
|
- 5.4 [Broadcastify Feed Attachments](/.github/docs/docs-integrations.md#54---broadcastify-feed-attachments)
|
|
62
61
|
- 5.4.1 [Tag Filtering](/.github/docs/docs-integrations.md#541---tag-filtering)
|
|
63
|
-
- 5.5 [
|
|
62
|
+
- 5.5 [Audio Generation](/.github/docs/docs-integrations.md#55---audio-generation)
|
|
64
63
|
- 5.5.1 [Linux Prerequisites](/.github/docs/docs-integrations.md#551---linux-prerequisites)
|
|
65
64
|
- 5.5.2 [Limitations](/.github/docs/docs-integrations.md#552---limitations)
|
|
66
65
|
- 5.6 [Event Archiving](/.github/docs/docs-integrations.md#56---event-archiving)
|
|
67
66
|
- 5.6.1 [Raw Text Product Archiving](/.github/docs/docs-integrations.md#561---raw-text-product-archiving)
|
|
68
67
|
- 5.6.2 [GeoJSON Archiving](/.github/docs/docs-integrations.md#562---geojson-archiving)
|
|
68
|
+
- 5.7 [Graphic Generation](/.github/docs/docs-integrations.md#57---graphic-generation)
|
|
69
69
|
6. [Listeners](/.github/docs/docs-listeners.md)
|
|
70
70
|
- 6.1 [XMPP / NWS Status](/.github/docs/docs-listeners.md#61---xmpp---nws-status)
|
|
71
71
|
- 6.2 [Test Products](/.github/docs/docs-listeners.md#62---test-products)
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
- 7.10 [Creating Manual WMO Events](/.github/docs/docs-functions.md#710---creating-manual-wmo-events)
|
|
92
92
|
- 7.11 [Database Queries](/.github/docs/docs-functions.md#711---database-queries)
|
|
93
93
|
- 7.11.1 [Stanza Query](/.github/docs/docs-functions.md#7111---stanza-query)
|
|
94
|
-
- 7.12 [Manual
|
|
94
|
+
- 7.12 [Manual Audio Generation](/.github/docs/docs-functions.md#712---manual-audio-generation)
|
|
95
95
|
8. [Technical Parser Documentation](/.github/docs/docs-technical.md)
|
|
96
96
|
- 8.1 [Workflow & Pipeline](/.github/docs/docs-technical.md#81---workflow---pipeline)
|
|
97
97
|
- 8.2 [Core Parsing Logic](/.github/docs/docs-technical.md#82---core-parsing-logic)
|