@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.
- package/dist/ais-ship-types.d.ts +2 -0
- package/dist/ais-ship-types.d.ts.map +1 -0
- package/dist/ais-ship-types.js +89 -0
- package/dist/ais-ship-types.js.map +1 -0
- package/dist/aton-types.d.ts +2 -0
- package/dist/aton-types.d.ts.map +1 -0
- package/dist/aton-types.js +42 -0
- package/dist/aton-types.js.map +1 -0
- package/dist/communication.d.ts +3 -0
- package/dist/communication.d.ts.map +1 -0
- package/dist/communication.js +33 -0
- package/dist/communication.js.map +1 -0
- package/dist/design.d.ts +3 -0
- package/dist/design.d.ts.map +1 -0
- package/dist/design.js +113 -0
- package/dist/design.js.map +1 -0
- package/dist/electrical.d.ts +3 -0
- package/dist/electrical.d.ts.map +1 -0
- package/dist/electrical.js +602 -0
- package/dist/electrical.js.map +1 -0
- package/dist/environment.d.ts +3 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/environment.js +260 -0
- package/dist/environment.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +223 -0
- package/dist/index.js.map +1 -0
- package/dist/navigation.d.ts +3 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +474 -0
- package/dist/navigation.js.map +1 -0
- package/dist/notifications.d.ts +3 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +75 -0
- package/dist/notifications.js.map +1 -0
- package/dist/performance.d.ts +3 -0
- package/dist/performance.d.ts.map +1 -0
- package/dist/performance.js +105 -0
- package/dist/performance.js.map +1 -0
- package/dist/propulsion.d.ts +3 -0
- package/dist/propulsion.d.ts.map +1 -0
- package/dist/propulsion.js +133 -0
- package/dist/propulsion.js.map +1 -0
- package/dist/registrations.d.ts +3 -0
- package/dist/registrations.d.ts.map +1 -0
- package/dist/registrations.js +51 -0
- package/dist/registrations.js.map +1 -0
- package/dist/root.d.ts +3 -0
- package/dist/root.d.ts.map +1 -0
- package/dist/root.js +284 -0
- package/dist/root.js.map +1 -0
- package/dist/sails.d.ts +3 -0
- package/dist/sails.d.ts.map +1 -0
- package/dist/sails.js +65 -0
- package/dist/sails.js.map +1 -0
- package/dist/sensors.d.ts +3 -0
- package/dist/sensors.d.ts.map +1 -0
- package/dist/sensors.js +32 -0
- package/dist/sensors.js.map +1 -0
- package/dist/steering.d.ts +3 -0
- package/dist/steering.d.ts.map +1 -0
- package/dist/steering.js +72 -0
- package/dist/steering.js.map +1 -0
- package/dist/tanks.d.ts +3 -0
- package/dist/tanks.d.ts.map +1 -0
- package/dist/tanks.js +386 -0
- package/dist/tanks.js.map +1 -0
- package/dist/types.d.ts +28 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/package.json +24 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ais-ship-types.d.ts","sourceRoot":"","sources":["../src/ais-ship-types.ts"],"names":[],"mappings":"AAsFA,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjE"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAISShipTypeName = getAISShipTypeName;
|
|
4
|
+
/** AIS ship type ID to human-readable name. */
|
|
5
|
+
const AIS_SHIP_TYPES = [
|
|
6
|
+
{ id: 20, name: 'Wing In Ground' },
|
|
7
|
+
{ id: 21, name: 'Wing In Ground hazard cat A' },
|
|
8
|
+
{ id: 22, name: 'Wing In Ground hazard cat B' },
|
|
9
|
+
{ id: 23, name: 'Wing In Ground hazard cat C' },
|
|
10
|
+
{ id: 24, name: 'Wing In Ground hazard cat D' },
|
|
11
|
+
{ id: 25, name: 'Wing In Ground' },
|
|
12
|
+
{ id: 26, name: 'Wing In Ground' },
|
|
13
|
+
{ id: 27, name: 'Wing In Ground' },
|
|
14
|
+
{ id: 28, name: 'Wing In Ground' },
|
|
15
|
+
{ id: 29, name: 'Wing In Ground (no other information)' },
|
|
16
|
+
{ id: 30, name: 'Fishing' },
|
|
17
|
+
{ id: 31, name: 'Towing' },
|
|
18
|
+
{ id: 32, name: 'Towing exceeds 200m or wider than 25m' },
|
|
19
|
+
{ id: 33, name: 'Engaged in dredging or underwater operations' },
|
|
20
|
+
{ id: 34, name: 'Engaged in diving operations' },
|
|
21
|
+
{ id: 35, name: 'Engaged in military operations' },
|
|
22
|
+
{ id: 36, name: 'Sailing' },
|
|
23
|
+
{ id: 37, name: 'Pleasure' },
|
|
24
|
+
{ id: 40, name: 'High speed craft' },
|
|
25
|
+
{ id: 41, name: 'High speed craft carrying dangerous goods' },
|
|
26
|
+
{ id: 42, name: 'High speed craft hazard cat B' },
|
|
27
|
+
{ id: 43, name: 'High speed craft hazard cat C' },
|
|
28
|
+
{ id: 44, name: 'High speed craft hazard cat D' },
|
|
29
|
+
{ id: 45, name: 'High speed craft' },
|
|
30
|
+
{ id: 46, name: 'High speed craft' },
|
|
31
|
+
{ id: 47, name: 'High speed craft' },
|
|
32
|
+
{ id: 48, name: 'High speed craft' },
|
|
33
|
+
{ id: 49, name: 'High speed craft (no additional information)' },
|
|
34
|
+
{ id: 50, name: 'Pilot vessel' },
|
|
35
|
+
{ id: 51, name: 'SAR' },
|
|
36
|
+
{ id: 52, name: 'Tug' },
|
|
37
|
+
{ id: 53, name: 'Port tender' },
|
|
38
|
+
{ id: 54, name: 'Anti-pollution' },
|
|
39
|
+
{ id: 55, name: 'Law enforcement' },
|
|
40
|
+
{ id: 56, name: 'Spare' },
|
|
41
|
+
{ id: 57, name: 'Spare #2' },
|
|
42
|
+
{ id: 58, name: 'Medical' },
|
|
43
|
+
{ id: 59, name: 'RR Resolution No.18' },
|
|
44
|
+
{ id: 60, name: 'Passenger ship' },
|
|
45
|
+
{ id: 61, name: 'Passenger ship hazard cat A' },
|
|
46
|
+
{ id: 62, name: 'Passenger ship hazard cat B' },
|
|
47
|
+
{ id: 63, name: 'Passenger ship hazard cat C' },
|
|
48
|
+
{ id: 64, name: 'Passenger ship hazard cat D' },
|
|
49
|
+
{ id: 65, name: 'Passenger ship' },
|
|
50
|
+
{ id: 66, name: 'Passenger ship' },
|
|
51
|
+
{ id: 67, name: 'Passenger ship' },
|
|
52
|
+
{ id: 68, name: 'Passenger ship' },
|
|
53
|
+
{ id: 69, name: 'Passenger ship (no additional information)' },
|
|
54
|
+
{ id: 70, name: 'Cargo ship' },
|
|
55
|
+
{ id: 71, name: 'Cargo ship carrying dangerous goods' },
|
|
56
|
+
{ id: 72, name: 'Cargo ship hazard cat B' },
|
|
57
|
+
{ id: 73, name: 'Cargo ship hazard cat C' },
|
|
58
|
+
{ id: 74, name: 'Cargo ship hazard cat D' },
|
|
59
|
+
{ id: 75, name: 'Cargo ship' },
|
|
60
|
+
{ id: 76, name: 'Cargo ship' },
|
|
61
|
+
{ id: 77, name: 'Cargo ship' },
|
|
62
|
+
{ id: 78, name: 'Cargo ship' },
|
|
63
|
+
{ id: 79, name: 'Cargo ship (no additional information)' },
|
|
64
|
+
{ id: 80, name: 'Tanker' },
|
|
65
|
+
{ id: 81, name: 'Tanker carrying dangerous goods' },
|
|
66
|
+
{ id: 82, name: 'Tanker hazard cat B' },
|
|
67
|
+
{ id: 83, name: 'Tanker hazard cat C' },
|
|
68
|
+
{ id: 84, name: 'Tanker hazard cat D' },
|
|
69
|
+
{ id: 85, name: 'Tanker' },
|
|
70
|
+
{ id: 86, name: 'Tanker' },
|
|
71
|
+
{ id: 87, name: 'Tanker' },
|
|
72
|
+
{ id: 88, name: 'Tanker' },
|
|
73
|
+
{ id: 89, name: 'Tanker (no additional information)' },
|
|
74
|
+
{ id: 90, name: 'Other' },
|
|
75
|
+
{ id: 91, name: 'Other carrying dangerous goods' },
|
|
76
|
+
{ id: 92, name: 'Other hazard cat B' },
|
|
77
|
+
{ id: 93, name: 'Other hazard cat C' },
|
|
78
|
+
{ id: 94, name: 'Other hazard cat D' },
|
|
79
|
+
{ id: 95, name: 'Other' },
|
|
80
|
+
{ id: 96, name: 'Other' },
|
|
81
|
+
{ id: 97, name: 'Other' },
|
|
82
|
+
{ id: 98, name: 'Other' },
|
|
83
|
+
{ id: 99, name: 'Other (no additional information)' }
|
|
84
|
+
];
|
|
85
|
+
const aisShipTypeMap = new Map(AIS_SHIP_TYPES.map(({ id, name }) => [id, name]));
|
|
86
|
+
function getAISShipTypeName(id) {
|
|
87
|
+
return aisShipTypeMap.get(id);
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=ais-ship-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ais-ship-types.js","sourceRoot":"","sources":["../src/ais-ship-types.ts"],"names":[],"mappings":";;AAsFA,gDAEC;AAxFD,+CAA+C;AAC/C,MAAM,cAAc,GAAgD;IAClE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAClC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAC/C,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAC/C,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAC/C,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAC/C,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAClC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAClC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAClC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAClC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,uCAAuC,EAAE;IACzD,EAAE,EAAE,EAAE,EAAE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,gCAAgC,EAAE;IAClD,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzB,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzB,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzB,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACzB,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,mCAAmC,EAAE;CACtD,CAAA;AAED,MAAM,cAAc,GAAG,IAAI,GAAG,CAC5B,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CACjD,CAAA;AAED,SAAgB,kBAAkB,CAAC,EAAU;IAC3C,OAAO,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;AAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aton-types.d.ts","sourceRoot":"","sources":["../src/aton-types.ts"],"names":[],"mappings":"AAuCA,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE9D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAtonTypeName = getAtonTypeName;
|
|
4
|
+
/** AIS AtoN (Aid to Navigation) type ID to human-readable name. */
|
|
5
|
+
const ATON_TYPES = [
|
|
6
|
+
{ id: 1, name: 'Reference Point' },
|
|
7
|
+
{ id: 2, name: 'RACON' },
|
|
8
|
+
{ id: 3, name: 'Fixed Structure Off Shore' },
|
|
9
|
+
{ id: 4, name: 'Emergency Wreck Marking Buoy' },
|
|
10
|
+
{ id: 5, name: 'Light, Without Sectors' },
|
|
11
|
+
{ id: 6, name: 'Light, With Sectors' },
|
|
12
|
+
{ id: 7, name: 'Leading Light Front' },
|
|
13
|
+
{ id: 8, name: 'Leading Light Rear' },
|
|
14
|
+
{ id: 9, name: 'Beacon, Cardinal N' },
|
|
15
|
+
{ id: 10, name: 'Beacon, Cardinal E' },
|
|
16
|
+
{ id: 11, name: 'Beacon, Cardinal S' },
|
|
17
|
+
{ id: 12, name: 'Beacon, Cardinal W' },
|
|
18
|
+
{ id: 13, name: 'Beacon, Port Hand' },
|
|
19
|
+
{ id: 14, name: 'Beacon, Starboard Hand' },
|
|
20
|
+
{ id: 15, name: 'Beacon, Preferred Channel Port Hand' },
|
|
21
|
+
{ id: 16, name: 'Beacon, Preferred Channel Starboard Hand' },
|
|
22
|
+
{ id: 17, name: 'Beacon, Isolated Danger' },
|
|
23
|
+
{ id: 18, name: 'Beacon, Safe Water' },
|
|
24
|
+
{ id: 19, name: 'Beacon, Special Mark' },
|
|
25
|
+
{ id: 20, name: 'Cardinal Mark N' },
|
|
26
|
+
{ id: 21, name: 'Cardinal Mark E' },
|
|
27
|
+
{ id: 22, name: 'Cardinal Mark S' },
|
|
28
|
+
{ id: 23, name: 'Cardinal Mark W' },
|
|
29
|
+
{ id: 24, name: 'Port Hand Mark' },
|
|
30
|
+
{ id: 25, name: 'Starboard Hand Mark' },
|
|
31
|
+
{ id: 26, name: 'Preferred Channel Port Hand' },
|
|
32
|
+
{ id: 27, name: 'Preferred Channel Starboard Hand' },
|
|
33
|
+
{ id: 28, name: 'Isolated danger' },
|
|
34
|
+
{ id: 29, name: 'Safe Water' },
|
|
35
|
+
{ id: 30, name: 'Special Mark' },
|
|
36
|
+
{ id: 31, name: 'Light Vessel/LANBY/Rigs' }
|
|
37
|
+
];
|
|
38
|
+
const atonTypeMap = new Map(ATON_TYPES.map(({ id, name }) => [id, name]));
|
|
39
|
+
function getAtonTypeName(id) {
|
|
40
|
+
return atonTypeMap.get(id);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=aton-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aton-types.js","sourceRoot":"","sources":["../src/aton-types.ts"],"names":[],"mappings":";;AAuCA,0CAEC;AAzCD,mEAAmE;AACnE,MAAM,UAAU,GAAgD;IAC9D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAClC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;IACxB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE;IAC5C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE;IAC/C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACzC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACtC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACtC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACrC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACrC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;IACtC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;IACrC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;IAC1C,EAAE,EAAE,EAAE,EAAE,EAA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AC,EAAU;IACxC,OAAO,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;AAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication.d.ts","sourceRoot":"","sources":["../src/communication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA6BnE,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.communicationMetadata = void 0;
|
|
4
|
+
exports.communicationMetadata = {
|
|
5
|
+
'/vessels/*/communication': {
|
|
6
|
+
description: 'Communication data including Radio, Telephone, E-Mail, etc.'
|
|
7
|
+
},
|
|
8
|
+
'/vessels/*/communication/callsignVhf': {
|
|
9
|
+
description: 'Callsign for VHF communication'
|
|
10
|
+
},
|
|
11
|
+
'/vessels/*/communication/callsignHf': {
|
|
12
|
+
description: 'Callsign for HF communication'
|
|
13
|
+
},
|
|
14
|
+
'/vessels/*/communication/phoneNumber': {
|
|
15
|
+
description: 'Phone number of skipper'
|
|
16
|
+
},
|
|
17
|
+
'/vessels/*/communication/emailHf': {
|
|
18
|
+
description: 'Email address to be used for HF email (Winmail, Airmail, Sailmail)'
|
|
19
|
+
},
|
|
20
|
+
'/vessels/*/communication/email': {
|
|
21
|
+
description: 'Regular email for the skipper'
|
|
22
|
+
},
|
|
23
|
+
'/vessels/*/communication/satPhoneNumber': {
|
|
24
|
+
description: 'Satellite phone number for vessel.'
|
|
25
|
+
},
|
|
26
|
+
'/vessels/*/communication/skipperName': {
|
|
27
|
+
description: 'Full name of the skipper of the vessel.'
|
|
28
|
+
},
|
|
29
|
+
'/vessels/*/communication/crewNames': {
|
|
30
|
+
description: 'Array with the names of the crew'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=communication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication.js","sourceRoot":"","sources":["../src/communication.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsC;IACtE,0BAA0B,EAAE;QAC1B,WAAW,EAAE,6DAA6D;KAC3E;IACD,sCAAsC,EAAE;QACtC,WAAW,EAAE,gCAAgC;KAC9C;IACD,qCAAqC,EAAE;QACrC,WAAW,EAAE,+BAA+B;KAC7C;IACD,sCAAsC,EAAE;QACtC,WAAW,EAAE,yBAAyB;KACvC;IACD,kCAAkC,EAAE;QAClC,WAAW,EACT,oEAAoE;KACvE;IACD,gCAAgC,EAAE;QAChC,WAAW,EAAE,+BAA+B;KAC7C;IACD,yCAAyC,EAAE;QACzC,WAAW,EAAE,oCAAoC;KAClD;IACD,sCAAsC,EAAE;QACtC,WAAW,EAAE,yCAAyC;KACvD;IACD,oCAAoC,EAAE;QACpC,WAAW,EAAE,kCAAkC;KAChD;CACF,CAAA"}
|
package/dist/design.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../src/design.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA8G5D,CAAA"}
|
package/dist/design.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.designMetadata = void 0;
|
|
4
|
+
exports.designMetadata = {
|
|
5
|
+
'/vessels/*/design': {
|
|
6
|
+
description: 'Design/dimensional data of this vessel'
|
|
7
|
+
},
|
|
8
|
+
'/vessels/*/design/displacement': {
|
|
9
|
+
description: 'Data should be of type number.',
|
|
10
|
+
units: 'kg'
|
|
11
|
+
},
|
|
12
|
+
'/vessels/*/design/aisShipType': {
|
|
13
|
+
description: 'The ais ship type see http://www.bosunsmate.org/ais/message5.php',
|
|
14
|
+
properties: {
|
|
15
|
+
id: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
description: 'The ship type number'
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The ship type name'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
'/vessels/*/design/draft': {
|
|
26
|
+
description: 'The draft of the vessel',
|
|
27
|
+
properties: {
|
|
28
|
+
minimum: {
|
|
29
|
+
description: 'The minimum draft of the vessel',
|
|
30
|
+
type: 'number',
|
|
31
|
+
units: 'm'
|
|
32
|
+
},
|
|
33
|
+
maximum: {
|
|
34
|
+
description: 'The maximum draft of the vessel',
|
|
35
|
+
type: 'number',
|
|
36
|
+
units: 'm'
|
|
37
|
+
},
|
|
38
|
+
current: {
|
|
39
|
+
description: 'The current draft of the vessel',
|
|
40
|
+
type: 'number',
|
|
41
|
+
units: 'm'
|
|
42
|
+
},
|
|
43
|
+
canoe: {
|
|
44
|
+
description: 'The draft of the vessel without protrusions such as keel, centerboard, rudder',
|
|
45
|
+
type: 'number',
|
|
46
|
+
units: 'm'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
'/vessels/*/design/length': {
|
|
51
|
+
description: 'The various lengths of the vessel',
|
|
52
|
+
properties: {
|
|
53
|
+
overall: {
|
|
54
|
+
type: 'number',
|
|
55
|
+
description: 'Length overall',
|
|
56
|
+
units: 'm'
|
|
57
|
+
},
|
|
58
|
+
hull: {
|
|
59
|
+
type: 'number',
|
|
60
|
+
description: 'Length of hull',
|
|
61
|
+
units: 'm'
|
|
62
|
+
},
|
|
63
|
+
waterline: {
|
|
64
|
+
type: 'number',
|
|
65
|
+
description: 'Length at waterline',
|
|
66
|
+
units: 'm'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
'/vessels/*/design/keel': {
|
|
71
|
+
description: "Information about the vessel's keel"
|
|
72
|
+
},
|
|
73
|
+
'/vessels/*/design/keel/type': {
|
|
74
|
+
description: 'The type of keel.',
|
|
75
|
+
enum: [
|
|
76
|
+
'long',
|
|
77
|
+
'fin',
|
|
78
|
+
'flare',
|
|
79
|
+
'bulb',
|
|
80
|
+
'wing',
|
|
81
|
+
'centerboard',
|
|
82
|
+
'canting',
|
|
83
|
+
'lifting',
|
|
84
|
+
'daggerboard'
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
'/vessels/*/design/keel/angle': {
|
|
88
|
+
description: 'Data should be of type number.',
|
|
89
|
+
units: 'rad'
|
|
90
|
+
},
|
|
91
|
+
'/vessels/*/design/keel/lift': {
|
|
92
|
+
description: 'Data should be of type number.',
|
|
93
|
+
units: 'ratio'
|
|
94
|
+
},
|
|
95
|
+
'/vessels/*/design/beam': {
|
|
96
|
+
description: 'Data should be of type number.',
|
|
97
|
+
units: 'm'
|
|
98
|
+
},
|
|
99
|
+
'/vessels/*/design/airHeight': {
|
|
100
|
+
description: 'Data should be of type number.',
|
|
101
|
+
units: 'm'
|
|
102
|
+
},
|
|
103
|
+
'/vessels/*/design/rigging': {
|
|
104
|
+
description: "Information about the vessel's rigging"
|
|
105
|
+
},
|
|
106
|
+
'/vessels/*/design/rigging/configuration': {
|
|
107
|
+
description: 'The configuration of the rigging'
|
|
108
|
+
},
|
|
109
|
+
'/vessels/*/design/rigging/masts': {
|
|
110
|
+
description: 'The number of masts on the vessel.'
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=design.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.js","sourceRoot":"","sources":["../src/design.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsC;IAC/D,mBAAmB,EAAE;QACnB,WAAW,EAAE,wCAAwC;KACtD;IACD,gCAAgC,EAAE;QAChC,WAAW,E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