@bslau/hmm_message_lib 1.0.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/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Introduction
2
+
3
+ TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
4
+
5
+ # Getting Started
6
+
7
+ TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
8
+
9
+ 1. Installation process
10
+ 2. Software dependencies
11
+ 3. Latest releases
12
+ 4. API references
13
+
14
+ # Build and Test
15
+
16
+ TODO: Describe and show how to build your code and run the tests.
17
+
18
+ # Contribute
19
+
20
+ TODO: Explain how other users and developers can contribute to make your code better.
21
+
22
+ If you want to learn more about creating good readme files then refer the following [guidelines](https://docs.microsoft.com/en-us/azure/devops/repos/git/create-a-readme?view=azure-devops). You can also seek inspiration from the below readme files:
23
+
24
+ - [ASP.NET Core](https://github.com/aspnet/Home)
25
+ - [Visual Studio Code](https://github.com/Microsoft/vscode)
26
+ - [Chakra Core](https://github.com/Microsoft/ChakraCore)
@@ -0,0 +1,21 @@
1
+ declare enum HMMEvents {
2
+ TORPEDO_MOVEMENT = "TORPEDO_MOVEMENT",
3
+ STATE_CHANGED = "STATE_CHANGED",
4
+ CAST_OPEN = "CAST_OPEN",
5
+ CAST_CLOSE = "CAST_CLOSE",
6
+ TORPEDO_FILLING_STARTED = "TORPEDO_FILLING_STARTED",
7
+ TORPEDO_FILLING_FINISHED = "TORPEDO_FILLING_FINISHED"
8
+ }
9
+
10
+ declare enum HMMEventsRoutingKeys {
11
+ TORPEDO_MOVEMENT_ROUTING_KEY = "HMM.Events.Torpedo.Movement",
12
+ STATE_CHANGED_ROUTING_KEY = "HMM.Events.Torpedo.State.Changed",
13
+ CAST_OPEN_ROUTING_KEY = "HMM.Events.Cast.Cpen",
14
+ CAST_CLOSE_ROUTING_KEY = "HMM.Events.Cast.Close",
15
+ TORPEDO_FILLING_STARTED_ROUTING_KEY = "HMM.Events.Torpedo.Filling.Started",
16
+ TORPEDO_FILLING_FINISHED_ROUTING_KEY = "HMM.Events.Torpedo.Filling.Finished"
17
+ }
18
+
19
+ declare const hmmEventsMap: Map<HMMEvents, HMMEventsRoutingKeys>;
20
+
21
+ export { HMMEvents, HMMEventsRoutingKeys, hmmEventsMap };
@@ -0,0 +1,21 @@
1
+ declare enum HMMEvents {
2
+ TORPEDO_MOVEMENT = "TORPEDO_MOVEMENT",
3
+ STATE_CHANGED = "STATE_CHANGED",
4
+ CAST_OPEN = "CAST_OPEN",
5
+ CAST_CLOSE = "CAST_CLOSE",
6
+ TORPEDO_FILLING_STARTED = "TORPEDO_FILLING_STARTED",
7
+ TORPEDO_FILLING_FINISHED = "TORPEDO_FILLING_FINISHED"
8
+ }
9
+
10
+ declare enum HMMEventsRoutingKeys {
11
+ TORPEDO_MOVEMENT_ROUTING_KEY = "HMM.Events.Torpedo.Movement",
12
+ STATE_CHANGED_ROUTING_KEY = "HMM.Events.Torpedo.State.Changed",
13
+ CAST_OPEN_ROUTING_KEY = "HMM.Events.Cast.Cpen",
14
+ CAST_CLOSE_ROUTING_KEY = "HMM.Events.Cast.Close",
15
+ TORPEDO_FILLING_STARTED_ROUTING_KEY = "HMM.Events.Torpedo.Filling.Started",
16
+ TORPEDO_FILLING_FINISHED_ROUTING_KEY = "HMM.Events.Torpedo.Filling.Finished"
17
+ }
18
+
19
+ declare const hmmEventsMap: Map<HMMEvents, HMMEventsRoutingKeys>;
20
+
21
+ export { HMMEvents, HMMEventsRoutingKeys, hmmEventsMap };
package/dist/index.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ HMMEvents: () => HMMEvents,
24
+ HMMEventsRoutingKeys: () => HMMEventsRoutingKeys,
25
+ hmmEventsMap: () => hmmEventsMap
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/hmm-event.ts
30
+ var HMMEvents = /* @__PURE__ */ ((HMMEvents2) => {
31
+ HMMEvents2["TORPEDO_MOVEMENT"] = "TORPEDO_MOVEMENT";
32
+ HMMEvents2["STATE_CHANGED"] = "STATE_CHANGED";
33
+ HMMEvents2["CAST_OPEN"] = "CAST_OPEN";
34
+ HMMEvents2["CAST_CLOSE"] = "CAST_CLOSE";
35
+ HMMEvents2["TORPEDO_FILLING_STARTED"] = "TORPEDO_FILLING_STARTED";
36
+ HMMEvents2["TORPEDO_FILLING_FINISHED"] = "TORPEDO_FILLING_FINISHED";
37
+ return HMMEvents2;
38
+ })(HMMEvents || {});
39
+
40
+ // src/hmm-events-routing-keys.ts
41
+ var HMMEventsRoutingKeys = /* @__PURE__ */ ((HMMEventsRoutingKeys2) => {
42
+ HMMEventsRoutingKeys2["TORPEDO_MOVEMENT_ROUTING_KEY"] = "HMM.Events.Torpedo.Movement";
43
+ HMMEventsRoutingKeys2["STATE_CHANGED_ROUTING_KEY"] = "HMM.Events.Torpedo.State.Changed";
44
+ HMMEventsRoutingKeys2["CAST_OPEN_ROUTING_KEY"] = "HMM.Events.Cast.Cpen";
45
+ HMMEventsRoutingKeys2["CAST_CLOSE_ROUTING_KEY"] = "HMM.Events.Cast.Close";
46
+ HMMEventsRoutingKeys2["TORPEDO_FILLING_STARTED_ROUTING_KEY"] = "HMM.Events.Torpedo.Filling.Started";
47
+ HMMEventsRoutingKeys2["TORPEDO_FILLING_FINISHED_ROUTING_KEY"] = "HMM.Events.Torpedo.Filling.Finished";
48
+ return HMMEventsRoutingKeys2;
49
+ })(HMMEventsRoutingKeys || {});
50
+
51
+ // src/hmm-events-map.ts
52
+ var hmmEventsMap = /* @__PURE__ */ new Map([
53
+ ["CAST_OPEN" /* CAST_OPEN */, "HMM.Events.Cast.Cpen" /* CAST_OPEN_ROUTING_KEY */],
54
+ ["CAST_CLOSE" /* CAST_CLOSE */, "HMM.Events.Cast.Close" /* CAST_CLOSE_ROUTING_KEY */],
55
+ ["STATE_CHANGED" /* STATE_CHANGED */, "HMM.Events.Torpedo.State.Changed" /* STATE_CHANGED_ROUTING_KEY */],
56
+ ["TORPEDO_FILLING_FINISHED" /* TORPEDO_FILLING_FINISHED */, "HMM.Events.Torpedo.Filling.Finished" /* TORPEDO_FILLING_FINISHED_ROUTING_KEY */],
57
+ ["TORPEDO_FILLING_STARTED" /* TORPEDO_FILLING_STARTED */, "HMM.Events.Torpedo.Filling.Started" /* TORPEDO_FILLING_STARTED_ROUTING_KEY */],
58
+ ["TORPEDO_MOVEMENT" /* TORPEDO_MOVEMENT */, "HMM.Events.Torpedo.Movement" /* TORPEDO_MOVEMENT_ROUTING_KEY */]
59
+ ]);
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ HMMEvents,
63
+ HMMEventsRoutingKeys,
64
+ hmmEventsMap
65
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,36 @@
1
+ // src/hmm-event.ts
2
+ var HMMEvents = /* @__PURE__ */ ((HMMEvents2) => {
3
+ HMMEvents2["TORPEDO_MOVEMENT"] = "TORPEDO_MOVEMENT";
4
+ HMMEvents2["STATE_CHANGED"] = "STATE_CHANGED";
5
+ HMMEvents2["CAST_OPEN"] = "CAST_OPEN";
6
+ HMMEvents2["CAST_CLOSE"] = "CAST_CLOSE";
7
+ HMMEvents2["TORPEDO_FILLING_STARTED"] = "TORPEDO_FILLING_STARTED";
8
+ HMMEvents2["TORPEDO_FILLING_FINISHED"] = "TORPEDO_FILLING_FINISHED";
9
+ return HMMEvents2;
10
+ })(HMMEvents || {});
11
+
12
+ // src/hmm-events-routing-keys.ts
13
+ var HMMEventsRoutingKeys = /* @__PURE__ */ ((HMMEventsRoutingKeys2) => {
14
+ HMMEventsRoutingKeys2["TORPEDO_MOVEMENT_ROUTING_KEY"] = "HMM.Events.Torpedo.Movement";
15
+ HMMEventsRoutingKeys2["STATE_CHANGED_ROUTING_KEY"] = "HMM.Events.Torpedo.State.Changed";
16
+ HMMEventsRoutingKeys2["CAST_OPEN_ROUTING_KEY"] = "HMM.Events.Cast.Cpen";
17
+ HMMEventsRoutingKeys2["CAST_CLOSE_ROUTING_KEY"] = "HMM.Events.Cast.Close";
18
+ HMMEventsRoutingKeys2["TORPEDO_FILLING_STARTED_ROUTING_KEY"] = "HMM.Events.Torpedo.Filling.Started";
19
+ HMMEventsRoutingKeys2["TORPEDO_FILLING_FINISHED_ROUTING_KEY"] = "HMM.Events.Torpedo.Filling.Finished";
20
+ return HMMEventsRoutingKeys2;
21
+ })(HMMEventsRoutingKeys || {});
22
+
23
+ // src/hmm-events-map.ts
24
+ var hmmEventsMap = /* @__PURE__ */ new Map([
25
+ ["CAST_OPEN" /* CAST_OPEN */, "HMM.Events.Cast.Cpen" /* CAST_OPEN_ROUTING_KEY */],
26
+ ["CAST_CLOSE" /* CAST_CLOSE */, "HMM.Events.Cast.Close" /* CAST_CLOSE_ROUTING_KEY */],
27
+ ["STATE_CHANGED" /* STATE_CHANGED */, "HMM.Events.Torpedo.State.Changed" /* STATE_CHANGED_ROUTING_KEY */],
28
+ ["TORPEDO_FILLING_FINISHED" /* TORPEDO_FILLING_FINISHED */, "HMM.Events.Torpedo.Filling.Finished" /* TORPEDO_FILLING_FINISHED_ROUTING_KEY */],
29
+ ["TORPEDO_FILLING_STARTED" /* TORPEDO_FILLING_STARTED */, "HMM.Events.Torpedo.Filling.Started" /* TORPEDO_FILLING_STARTED_ROUTING_KEY */],
30
+ ["TORPEDO_MOVEMENT" /* TORPEDO_MOVEMENT */, "HMM.Events.Torpedo.Movement" /* TORPEDO_MOVEMENT_ROUTING_KEY */]
31
+ ]);
32
+ export {
33
+ HMMEvents,
34
+ HMMEventsRoutingKeys,
35
+ hmmEventsMap
36
+ };
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@bslau/hmm_message_lib",
3
+ "version": "1.0.0",
4
+ "description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup",
10
+ "prettier:check": "npx prettier . --check",
11
+ "prettier:write": "npx prettier . --write"
12
+ },
13
+ "keywords": [],
14
+ "author": "CIPA Development Team",
15
+ "license": "MIT",
16
+ "devDependencies": {
17
+ "prettier": "^3.5.3",
18
+ "tsup": "^8.4.0",
19
+ "typescript": "^5.8.3"
20
+ }
21
+ }