@signalk/path-metadata 0.1.0

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 (73) hide show
  1. package/dist/ais-ship-types.d.ts +2 -0
  2. package/dist/ais-ship-types.d.ts.map +1 -0
  3. package/dist/ais-ship-types.js +89 -0
  4. package/dist/ais-ship-types.js.map +1 -0
  5. package/dist/aton-types.d.ts +2 -0
  6. package/dist/aton-types.d.ts.map +1 -0
  7. package/dist/aton-types.js +42 -0
  8. package/dist/aton-types.js.map +1 -0
  9. package/dist/communication.d.ts +3 -0
  10. package/dist/communication.d.ts.map +1 -0
  11. package/dist/communication.js +33 -0
  12. package/dist/communication.js.map +1 -0
  13. package/dist/design.d.ts +3 -0
  14. package/dist/design.d.ts.map +1 -0
  15. package/dist/design.js +113 -0
  16. package/dist/design.js.map +1 -0
  17. package/dist/electrical.d.ts +3 -0
  18. package/dist/electrical.d.ts.map +1 -0
  19. package/dist/electrical.js +602 -0
  20. package/dist/electrical.js.map +1 -0
  21. package/dist/environment.d.ts +3 -0
  22. package/dist/environment.d.ts.map +1 -0
  23. package/dist/environment.js +260 -0
  24. package/dist/environment.js.map +1 -0
  25. package/dist/index.d.ts +52 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +223 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/navigation.d.ts +3 -0
  30. package/dist/navigation.d.ts.map +1 -0
  31. package/dist/navigation.js +474 -0
  32. package/dist/navigation.js.map +1 -0
  33. package/dist/notifications.d.ts +3 -0
  34. package/dist/notifications.d.ts.map +1 -0
  35. package/dist/notifications.js +75 -0
  36. package/dist/notifications.js.map +1 -0
  37. package/dist/performance.d.ts +3 -0
  38. package/dist/performance.d.ts.map +1 -0
  39. package/dist/performance.js +105 -0
  40. package/dist/performance.js.map +1 -0
  41. package/dist/propulsion.d.ts +3 -0
  42. package/dist/propulsion.d.ts.map +1 -0
  43. package/dist/propulsion.js +133 -0
  44. package/dist/propulsion.js.map +1 -0
  45. package/dist/registrations.d.ts +3 -0
  46. package/dist/registrations.d.ts.map +1 -0
  47. package/dist/registrations.js +51 -0
  48. package/dist/registrations.js.map +1 -0
  49. package/dist/root.d.ts +3 -0
  50. package/dist/root.d.ts.map +1 -0
  51. package/dist/root.js +284 -0
  52. package/dist/root.js.map +1 -0
  53. package/dist/sails.d.ts +3 -0
  54. package/dist/sails.d.ts.map +1 -0
  55. package/dist/sails.js +65 -0
  56. package/dist/sails.js.map +1 -0
  57. package/dist/sensors.d.ts +3 -0
  58. package/dist/sensors.d.ts.map +1 -0
  59. package/dist/sensors.js +32 -0
  60. package/dist/sensors.js.map +1 -0
  61. package/dist/steering.d.ts +3 -0
  62. package/dist/steering.d.ts.map +1 -0
  63. package/dist/steering.js +72 -0
  64. package/dist/steering.js.map +1 -0
  65. package/dist/tanks.d.ts +3 -0
  66. package/dist/tanks.d.ts.map +1 -0
  67. package/dist/tanks.js +386 -0
  68. package/dist/tanks.js.map +1 -0
  69. package/dist/types.d.ts +28 -0
  70. package/dist/types.d.ts.map +1 -0
  71. package/dist/types.js +6 -0
  72. package/dist/types.js.map +1 -0
  73. package/package.json +24 -0
@@ -0,0 +1,474 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.navigationMetadata = void 0;
4
+ exports.navigationMetadata = {
5
+ '/vessels/*/navigation': {
6
+ description: 'Navigation data including Position, Course to next WP information, etc.'
7
+ },
8
+ '/vessels/*/navigation/lights': {
9
+ description: 'Current state of the vessels navigation lights'
10
+ },
11
+ '/vessels/*/navigation/courseOverGroundMagnetic': {
12
+ description: 'Course over ground (magnetic)',
13
+ units: 'rad'
14
+ },
15
+ '/vessels/*/navigation/courseOverGroundTrue': {
16
+ description: 'Course over ground (true)',
17
+ units: 'rad'
18
+ },
19
+ '/vessels/*/navigation/courseRhumbline': {
20
+ description: 'Course information computed with Rhumbline'
21
+ },
22
+ '/vessels/*/navigation/courseRhumbline/crossTrackError': {
23
+ description: "The distance from the vessel's present position to the closest point on a line (track) between previousPoint and nextPoint. A negative number indicates that the vessel is currently to the left of this line (and thus must steer right to compensate), a positive number means the vessel is to the right of the line (steer left to compensate).",
24
+ units: 'm'
25
+ },
26
+ '/vessels/*/navigation/courseRhumbline/bearingTrackTrue': {
27
+ description: 'The bearing of a line between previousPoint and nextPoint, relative to true north.',
28
+ units: 'rad'
29
+ },
30
+ '/vessels/*/navigation/courseRhumbline/bearingTrackMagnetic': {
31
+ description: 'The bearing of a line between previousPoint and nextPoint, relative to magnetic north.',
32
+ units: 'rad'
33
+ },
34
+ '/vessels/*/navigation/courseRhumbline/activeRoute': {
35
+ description: 'Data required if sailing to an active route, defined in resources.'
36
+ },
37
+ '/vessels/*/navigation/courseRhumbline/activeRoute/href': {
38
+ description: 'A reference (URL) to the presently active route, in resources.'
39
+ },
40
+ '/vessels/*/navigation/courseRhumbline/activeRoute/estimatedTimeOfArrival': {
41
+ description: 'The estimated time of arrival at the end of the current route'
42
+ },
43
+ '/vessels/*/navigation/courseRhumbline/activeRoute/startTime': {
44
+ description: 'The time this route was activated'
45
+ },
46
+ '/vessels/*/navigation/courseRhumbline/nextPoint': {
47
+ description: "The point on earth the vessel's presently navigating towards"
48
+ },
49
+ '/vessels/*/navigation/courseRhumbline/previousPoint': {
50
+ description: "The point on earth the vessel's presently navigating from",
51
+ properties: {
52
+ type: {
53
+ description: 'The type of the previous point (e.g. Waypoint, POI, Race Mark, etc)',
54
+ type: 'string'
55
+ },
56
+ href: {
57
+ description: 'A reference (URL) to an object (under resources) this point is related to',
58
+ type: 'string'
59
+ }
60
+ }
61
+ },
62
+ '/vessels/*/navigation/courseRhumbline/previousPoint/distance': {
63
+ description: "The distance in meters between previousPoint and the vessel's present position",
64
+ units: 'm'
65
+ },
66
+ '/vessels/*/navigation/courseRhumbline/previousPoint/position': {
67
+ description: 'The position of previousPoint in two dimensions',
68
+ properties: {
69
+ longitude: {
70
+ type: 'number',
71
+ description: 'Longitude',
72
+ units: 'deg',
73
+ example: 4.98765245
74
+ },
75
+ latitude: {
76
+ type: 'number',
77
+ description: 'Latitude',
78
+ units: 'deg',
79
+ example: 52.0987654
80
+ },
81
+ altitude: {
82
+ type: 'number',
83
+ description: 'Altitude',
84
+ units: 'm'
85
+ }
86
+ }
87
+ },
88
+ '/vessels/*/navigation/courseGreatCircle': {
89
+ description: 'Course information computed with Great Circle'
90
+ },
91
+ '/vessels/*/navigation/courseGreatCircle/crossTrackError': {
92
+ description: "The distance from the vessel's present position to the closest point on a line (track) between previousPoint and nextPoint. A negative number indicates that the vessel is currently to the left of this line (and thus must steer right to compensate), a positive number means the vessel is to the right of the line (steer left to compensate).",
93
+ units: 'm'
94
+ },
95
+ '/vessels/*/navigation/courseGreatCircle/bearingTrackTrue': {
96
+ description: 'The bearing of a line between previousPoint and nextPoint, relative to true north.',
97
+ units: 'rad'
98
+ },
99
+ '/vessels/*/navigation/courseGreatCircle/bearingTrackMagnetic': {
100
+ description: 'The bearing of a line between previousPoint and nextPoint, relative to magnetic north.',
101
+ units: 'rad'
102
+ },
103
+ '/vessels/*/navigation/courseGreatCircle/activeRoute': {
104
+ description: 'Data required if sailing to an active route, defined in resources.'
105
+ },
106
+ '/vessels/*/navigation/courseGreatCircle/activeRoute/href': {
107
+ description: 'A reference (URL) to the presently active route, in resources.'
108
+ },
109
+ '/vessels/*/navigation/courseGreatCircle/activeRoute/estimatedTimeOfArrival': {
110
+ description: 'The estimated time of arrival at the end of the current route'
111
+ },
112
+ '/vessels/*/navigation/courseGreatCircle/activeRoute/startTime': {
113
+ description: 'The time this route was activated'
114
+ },
115
+ '/vessels/*/navigation/courseGreatCircle/nextPoint': {
116
+ description: "The point on earth the vessel's presently navigating towards"
117
+ },
118
+ '/vessels/*/navigation/courseGreatCircle/previousPoint': {
119
+ description: "The point on earth the vessel's presently navigating from",
120
+ properties: {
121
+ type: {
122
+ description: 'The type of the previous point (e.g. Waypoint, POI, Race Mark, etc)',
123
+ type: 'string'
124
+ },
125
+ href: {
126
+ description: 'A reference (URL) to an object (under resources) this point is related to',
127
+ type: 'string'
128
+ }
129
+ }
130
+ },
131
+ '/vessels/*/navigation/courseGreatCircle/previousPoint/distance': {
132
+ description: "The distance in meters between previousPoint and the vessel's present position",
133
+ units: 'm'
134
+ },
135
+ '/vessels/*/navigation/courseGreatCircle/previousPoint/position': {
136
+ description: 'The position of previousPoint in two dimensions',
137
+ properties: {
138
+ longitude: {
139
+ type: 'number',
140
+ description: 'Longitude',
141
+ units: 'deg',
142
+ example: 4.98765245
143
+ },
144
+ latitude: {
145
+ type: 'number',
146
+ description: 'Latitude',
147
+ units: 'deg',
148
+ example: 52.0987654
149
+ },
150
+ altitude: {
151
+ type: 'number',
152
+ description: 'Altitude',
153
+ units: 'm'
154
+ }
155
+ }
156
+ },
157
+ '/vessels/*/navigation/closestApproach': {
158
+ description: 'Calculated values for other vessels, e.g. from AIS',
159
+ properties: {
160
+ distance: {
161
+ description: 'Closest Point of Approach (CPA), distance between own vessel and other vessel, based on current speeds, headings and positions',
162
+ type: 'number',
163
+ units: 'm',
164
+ example: 31.2
165
+ },
166
+ timeTo: {
167
+ description: 'Time to Closest Point of Approach (TCPA), between own vessel and other vessel, based on current speeds, headings and positions',
168
+ type: 'number',
169
+ units: 's',
170
+ example: 312
171
+ }
172
+ }
173
+ },
174
+ '/vessels/*/navigation/racing': {
175
+ description: 'Specific navigational data related to yacht racing.'
176
+ },
177
+ '/vessels/*/navigation/racing/startLineStb': {
178
+ description: 'Position of starboard start mark',
179
+ properties: {
180
+ longitude: {
181
+ type: 'number',
182
+ description: 'Longitude',
183
+ units: 'deg',
184
+ example: 4.98765245
185
+ },
186
+ latitude: {
187
+ type: 'number',
188
+ description: 'Latitude',
189
+ units: 'deg',
190
+ example: 52.0987654
191
+ },
192
+ altitude: {
193
+ type: 'number',
194
+ description: 'Altitude',
195
+ units: 'm'
196
+ }
197
+ }
198
+ },
199
+ '/vessels/*/navigation/racing/startLinePort': {
200
+ description: 'Position of port start mark',
201
+ properties: {
202
+ longitude: {
203
+ type: 'number',
204
+ description: 'Longitude',
205
+ units: 'deg',
206
+ example: 4.98765245
207
+ },
208
+ latitude: {
209
+ type: 'number',
210
+ description: 'Latitude',
211
+ units: 'deg',
212
+ example: 52.0987654
213
+ },
214
+ altitude: {
215
+ type: 'number',
216
+ description: 'Altitude',
217
+ units: 'm'
218
+ }
219
+ }
220
+ },
221
+ '/vessels/*/navigation/racing/distanceStartline': {
222
+ description: 'The current distance to the start line',
223
+ units: 'm'
224
+ },
225
+ '/vessels/*/navigation/racing/timeToStart': {
226
+ description: 'Time left before start',
227
+ units: 's'
228
+ },
229
+ '/vessels/*/navigation/racing/timePortDown': {
230
+ description: 'Time to arrive at the start line on port, turning downwind',
231
+ units: 's'
232
+ },
233
+ '/vessels/*/navigation/racing/timePortUp': {
234
+ description: 'Time to arrive at the start line on port, turning upwind',
235
+ units: 's'
236
+ },
237
+ '/vessels/*/navigation/racing/timeStbdDown': {
238
+ description: 'Time to arrive at the start line on starboard, turning downwind',
239
+ units: 's'
240
+ },
241
+ '/vessels/*/navigation/racing/timeStbdUp': {
242
+ description: 'Time to arrive at the start line on starboard, turning upwind',
243
+ units: 's'
244
+ },
245
+ '/vessels/*/navigation/racing/layline': {
246
+ description: 'The layline crossing the current course'
247
+ },
248
+ '/vessels/*/navigation/racing/layline/distance': {
249
+ description: 'The current distance to the layline',
250
+ units: 'm'
251
+ },
252
+ '/vessels/*/navigation/racing/layline/time': {
253
+ description: 'The time to the layline at current speed and heading',
254
+ units: 's'
255
+ },
256
+ '/vessels/*/navigation/racing/oppositeLayline': {
257
+ description: 'The layline parallel to current course'
258
+ },
259
+ '/vessels/*/navigation/racing/oppositeLayline/distance': {
260
+ description: 'The current distance to the layline',
261
+ units: 'm'
262
+ },
263
+ '/vessels/*/navigation/racing/oppositeLayline/time': {
264
+ description: 'The time to the layline at current speed and heading',
265
+ units: 's'
266
+ },
267
+ '/vessels/*/navigation/magneticVariation': {
268
+ description: 'The magnetic variation (declination) at the current position that must be added to the magnetic heading to derive the true heading. Easterly variations are positive and Westerly variations are negative (in Radians).',
269
+ units: 'rad'
270
+ },
271
+ '/vessels/*/navigation/magneticVariationAgeOfService': {
272
+ description: 'Seconds since the 1st Jan 1970 that the variation calculation was made',
273
+ units: 's'
274
+ },
275
+ '/vessels/*/navigation/destination': {
276
+ description: 'The intended destination of this trip'
277
+ },
278
+ '/vessels/*/navigation/destination/commonName': {
279
+ description: "Common name of the Destination, eg 'Fiji', also used in ais messages"
280
+ },
281
+ '/vessels/*/navigation/destination/eta': {
282
+ description: 'Expected time of arrival at destination waypoint'
283
+ },
284
+ '/vessels/*/navigation/destination/waypoint': {
285
+ description: 'UUID of destination waypoint'
286
+ },
287
+ '/vessels/*/navigation/gnss': {
288
+ description: 'Global satellite navigation meta information'
289
+ },
290
+ '/vessels/*/navigation/gnss/type': {
291
+ description: 'Fix type'
292
+ },
293
+ '/vessels/*/navigation/gnss/methodQuality': {
294
+ description: 'Quality of the satellite fix'
295
+ },
296
+ '/vessels/*/navigation/gnss/integrity': {
297
+ description: 'Integrity of the satellite fix'
298
+ },
299
+ '/vessels/*/navigation/gnss/satellites': {
300
+ description: 'Number of satellites'
301
+ },
302
+ '/vessels/*/navigation/gnss/antennaAltitude': {
303
+ description: 'Altitude of antenna',
304
+ units: 'm'
305
+ },
306
+ '/vessels/*/navigation/gnss/horizontalDilution': {
307
+ description: 'Horizontal Dilution of Precision'
308
+ },
309
+ '/vessels/*/navigation/gnss/positionDilution': {
310
+ description: 'Positional Dilution of Precision'
311
+ },
312
+ '/vessels/*/navigation/gnss/geoidalSeparation': {
313
+ description: 'Difference between WGS84 earth ellipsoid and mean sea level'
314
+ },
315
+ '/vessels/*/navigation/gnss/differentialAge': {
316
+ description: 'Age of DGPS data',
317
+ units: 's'
318
+ },
319
+ '/vessels/*/navigation/gnss/differentialReference': {
320
+ description: 'ID of DGPS base station'
321
+ },
322
+ '/vessels/*/navigation/headingMagnetic': {
323
+ description: "Current magnetic heading of the vessel, equals 'headingCompass adjusted for magneticDeviation'",
324
+ units: 'rad'
325
+ },
326
+ '/vessels/*/navigation/magneticDeviation': {
327
+ description: 'Magnetic deviation of the compass at the current headingCompass',
328
+ units: 'rad'
329
+ },
330
+ '/vessels/*/navigation/headingCompass': {
331
+ description: 'Current magnetic heading received from the compass. This is not adjusted for magneticDeviation of the compass',
332
+ units: 'rad'
333
+ },
334
+ '/vessels/*/navigation/headingTrue': {
335
+ description: "The current true north heading of the vessel, equals 'headingMagnetic adjusted for magneticVariation'",
336
+ units: 'rad'
337
+ },
338
+ '/vessels/*/navigation/position': {
339
+ description: 'The position of the vessel in 2 or 3 dimensions (WGS84 datum)',
340
+ properties: {
341
+ longitude: {
342
+ type: 'number',
343
+ description: 'Longitude',
344
+ units: 'deg',
345
+ example: 4.98765245
346
+ },
347
+ latitude: {
348
+ type: 'number',
349
+ description: 'Latitude',
350
+ units: 'deg',
351
+ example: 52.0987654
352
+ },
353
+ altitude: {
354
+ type: 'number',
355
+ description: 'Altitude',
356
+ units: 'm'
357
+ }
358
+ }
359
+ },
360
+ '/vessels/*/navigation/attitude': {
361
+ description: 'Vessel attitude: roll, pitch and yaw',
362
+ properties: {
363
+ roll: {
364
+ type: 'number',
365
+ description: 'Vessel roll, +ve is list to starboard',
366
+ units: 'rad'
367
+ },
368
+ pitch: {
369
+ type: 'number',
370
+ description: 'Pitch, +ve is bow up',
371
+ units: 'rad'
372
+ },
373
+ yaw: {
374
+ type: 'number',
375
+ description: 'Yaw, +ve is heading change to starboard',
376
+ units: 'rad'
377
+ }
378
+ }
379
+ },
380
+ '/vessels/*/navigation/maneuver': {
381
+ description: 'Special maneuver such as regional passing arrangement. (from ais)'
382
+ },
383
+ '/vessels/*/navigation/rateOfTurn': {
384
+ description: 'Rate of turn (+ve is change to starboard). If the value is AIS RIGHT or LEFT, set to +-0.0206 rads and add warning in notifications',
385
+ units: 'rad/s'
386
+ },
387
+ '/vessels/*/navigation/speedOverGround': {
388
+ description: "Vessel speed over ground. If converting from AIS 'HIGH' value, set to 102.2 (Ais max value) and add warning in notifications",
389
+ units: 'm/s'
390
+ },
391
+ '/vessels/*/navigation/speedThroughWater': {
392
+ description: 'Vessel speed through the water',
393
+ units: 'm/s'
394
+ },
395
+ '/vessels/*/navigation/speedThroughWaterTransverse': {
396
+ description: 'Transverse speed through the water (Leeway)',
397
+ units: 'm/s'
398
+ },
399
+ '/vessels/*/navigation/speedThroughWaterLongitudinal': {
400
+ description: 'Longitudinal speed through the water',
401
+ units: 'm/s'
402
+ },
403
+ '/vessels/*/navigation/leewayAngle': {
404
+ description: 'Leeway Angle derived from the longitudinal and transverse speeds through the water',
405
+ units: 'rad'
406
+ },
407
+ '/vessels/*/navigation/log': {
408
+ description: 'Total distance traveled',
409
+ units: 'm'
410
+ },
411
+ '/vessels/*/navigation/trip': {
412
+ description: 'Trip data'
413
+ },
414
+ '/vessels/*/navigation/trip/log': {
415
+ description: 'Total distance traveled on this trip / since trip reset',
416
+ units: 'm'
417
+ },
418
+ '/vessels/*/navigation/trip/lastReset': {
419
+ description: 'Trip log reset time'
420
+ },
421
+ '/vessels/*/navigation/state': {
422
+ description: 'Current navigational state of the vessel'
423
+ },
424
+ '/vessels/*/navigation/anchor': {
425
+ description: 'The anchor data, for anchor watch etc'
426
+ },
427
+ '/vessels/*/navigation/anchor/maxRadius': {
428
+ description: 'Radius of anchor alarm boundary. The distance from anchor to the center of the boat',
429
+ units: 'm'
430
+ },
431
+ '/vessels/*/navigation/anchor/currentRadius': {
432
+ description: 'Current distance to anchor',
433
+ units: 'm'
434
+ },
435
+ '/vessels/*/navigation/anchor/position': {
436
+ description: 'The actual anchor position of the vessel in 3 dimensions, probably an estimate at best',
437
+ properties: {
438
+ longitude: {
439
+ type: 'number',
440
+ description: 'Longitude',
441
+ units: 'deg',
442
+ example: 4.98765245
443
+ },
444
+ latitude: {
445
+ type: 'number',
446
+ description: 'Latitude',
447
+ units: 'deg',
448
+ example: 52.0987654
449
+ },
450
+ altitude: {
451
+ type: 'number',
452
+ description: 'Altitude',
453
+ units: 'm'
454
+ }
455
+ }
456
+ },
457
+ '/vessels/*/navigation/datetime': {
458
+ description: 'Time and Date from the GNSS Positioning System'
459
+ },
460
+ '/vessels/*/navigation/datetime/gnssTimeSource': {
461
+ description: 'Source of GNSS Date and Time',
462
+ enum: [
463
+ 'GPS',
464
+ 'GLONASS',
465
+ 'Galileo',
466
+ 'Beidou',
467
+ 'IRNSS',
468
+ 'Radio Signal',
469
+ 'Internet',
470
+ 'Local clock'
471
+ ]
472
+ }
473
+ };
474
+ //# sourceMappingURL=navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../src/navigation.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsC;IACnE,uBAAuB,EAAE;QACvB,WAAW,EACT,yEAAyE;KAC5E;IACD,8BAA8B,EAAE;QAC9B,WAAW,EAAE,gDAAgD;KAC9D;IACD,gDAAgD,EAAE;QAChD,WAAW,EAAE,+BAA+B;QAC5C,KAAK,EAAE,KAAK;KACb;IACD,4CAA4C,EAAE;QAC5C,WAAW,EAAE,2BAA2B;QACxC,KAAK,EAAE,KAAK;KACb;IACD,uCAAuC,EAAE;QACvC,WAAW,EAAE,4CAA4C;KAC1D;IACD,uDAAuD,EAAE;QACvD,WAAW,EACT,qVAAqV;QACvV,KAAK,EAAE,GAAG;KACX;IACD,wDAAwD,EAAE;QACxD,WAAW,EACT,oFAAoF;QACtF,KAAK,EAAE,KAAK;KACb;IACD,4DAA4D,EAAE;QAC5D,WAAW,EACT,wFAAwF;QAC1F,KAAK,EAAE,KAAK;KACb;IACD,mDAAmD,EAAE;QACnD,WAAW,EACT,oEAAoE;KACvE;IACD,wDAAwD,EAAE;QACxD,WAAW,EACT,gEAAgE;KACnE;IACD,0EAA0E,EAAE;QAC1E,WAAW,EAAE,+DAA+D;KAC7E;IACD,6DAA6D,EAAE;QAC7D,WAAW,EAAE,mCAAmC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;gBACd,WAAW,EAAE,UAAU;gBACvB,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,UAAU;aACpB;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,UAAU;gBACvB,KAAK,EAAE,GAAG;aACX;SACF;KACF;IACD,gCAAgC,EAAE;QAChC,WAAW,EAAE,gDAAgD;KAC9D;IACD,+CAA+C,EAAE;QAC/C,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE;YACJ,KAAK;YACL,SAAS;YACT,SAAS;YACT,QAAQ;YACR,OAAO;YACP,cAAc;YACd,UAAU;YACV,aAAa;SACd;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { PathMetadataEntry } from './types';
2
+ export declare const notificationsMetadata: Record<string, PathMetadataEntry>;
3
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AA0BhD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAiDnE,CAAA"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.notificationsMetadata = void 0;
4
+ // Properties shared by every notification path (mob, fire, sinking, etc).
5
+ // Kept in one place so a tweak to the alarm-state enum or the method
6
+ // list lands in every notification at once.
7
+ const NOTIFICATION_PROPERTIES = {
8
+ method: {
9
+ description: 'Method to use to raise notifications',
10
+ type: 'array',
11
+ items: {
12
+ enum: ['visual', 'sound']
13
+ }
14
+ },
15
+ state: {
16
+ type: 'string',
17
+ title: 'alarmState',
18
+ description: 'The alarm state when the value is in this zone.',
19
+ default: 'normal',
20
+ enum: ['nominal', 'normal', 'alert', 'warn', 'alarm', 'emergency']
21
+ },
22
+ message: {
23
+ description: 'Message to display or speak',
24
+ type: 'string'
25
+ }
26
+ };
27
+ exports.notificationsMetadata = {
28
+ '/vessels/*/notifications': {
29
+ description: 'Notifications currently raised. Major categories have well-defined names, but the tree can be extended by any hierarchical structure'
30
+ },
31
+ '/vessels/*/notifications/mob': {
32
+ description: 'Man overboard',
33
+ properties: NOTIFICATION_PROPERTIES
34
+ },
35
+ '/vessels/*/notifications/fire': {
36
+ description: 'Fire onboard',
37
+ properties: NOTIFICATION_PROPERTIES
38
+ },
39
+ '/vessels/*/notifications/sinking': {
40
+ description: 'Vessel is sinking',
41
+ properties: NOTIFICATION_PROPERTIES
42
+ },
43
+ '/vessels/*/notifications/flooding': {
44
+ description: 'Vessel is flooding',
45
+ properties: NOTIFICATION_PROPERTIES
46
+ },
47
+ '/vessels/*/notifications/collision': {
48
+ description: 'In collision with another vessel or object',
49
+ properties: NOTIFICATION_PROPERTIES
50
+ },
51
+ '/vessels/*/notifications/grounding': {
52
+ description: 'Vessel grounding',
53
+ properties: NOTIFICATION_PROPERTIES
54
+ },
55
+ '/vessels/*/notifications/listing': {
56
+ description: 'Vessel is listing',
57
+ properties: NOTIFICATION_PROPERTIES
58
+ },
59
+ '/vessels/*/notifications/adrift': {
60
+ description: 'Vessel is adrift',
61
+ properties: NOTIFICATION_PROPERTIES
62
+ },
63
+ '/vessels/*/notifications/piracy': {
64
+ description: 'Under attack or danger from pirates',
65
+ properties: NOTIFICATION_PROPERTIES
66
+ },
67
+ '/vessels/*/notifications/abandon': {
68
+ description: 'Abandon ship',
69
+ properties: NOTIFICATION_PROPERTIES
70
+ },
71
+ '/vessels/*/notifications/RegExp': {
72
+ description: 'This regex pattern is used for validation of the path of the alarm'
73
+ }
74
+ };
75
+ //# sourceMappingURL=notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":";;;AAEA,0EAA0E;AAC1E,qEAAqE;AACrE,4CAA4C;AAC5C,MAAM,uBAAuB,GA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B;KACpC;IACD,kCAAkC,EAAE;QAClC,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,uBAAuB;KACpC;IACD,iCAAiC,EAAE;QACjC,WAAW,EACT,oEAAoE;KACvE;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { PathMetadataEntry } from './types';
2
+ export declare const performanceMetadata: Record<string, PathMetadataEntry>;
3
+ //# sourceMappingURL=performance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../src/performance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAqGjE,CAAA"}