fossekall-interface 0.1.9 → 0.1.11
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 +15 -57
- package/dist/ecu/constants.d.ts +1 -0
- package/dist/ecu/constants.js +1 -0
- package/dist/ecu/index.d.ts +1 -0
- package/dist/ecu/index.js +1 -0
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
package/README.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# fossekall-interface
|
|
2
2
|
|
|
3
|
-
`fossekall-interface` provides generated TypeScript
|
|
4
|
-
Fossekall data objects.
|
|
5
|
-
|
|
6
|
-
Current package exports are telemetry schemas and types from `ecu/telemetry`.
|
|
3
|
+
`fossekall-interface` provides generated TypeScript types and runtime schemas
|
|
4
|
+
for Fossekall data objects.
|
|
7
5
|
|
|
8
6
|
## Install
|
|
9
7
|
|
|
@@ -13,79 +11,39 @@ npm install fossekall-interface
|
|
|
13
11
|
|
|
14
12
|
## Usage
|
|
15
13
|
|
|
16
|
-
Import from
|
|
14
|
+
Import generated modules from published `dist` paths:
|
|
17
15
|
|
|
18
16
|
```ts
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type BLDCTelemetry as BLDCTelemetryType,
|
|
23
|
-
FsmTelemetry,
|
|
24
|
-
type FsmTelemetry as FsmTelemetryType,
|
|
25
|
-
SawWaveTelemetry,
|
|
26
|
-
type SawWaveTelemetry as SawWaveTelemetryType,
|
|
27
|
-
} from "fossekall-interface";
|
|
17
|
+
import * as telemetry from "fossekall-interface/dist/ecu/telemetry";
|
|
18
|
+
import * as commands from "fossekall-interface/dist/ecu/commands";
|
|
19
|
+
import type { TelemetrySpec, CommandSpec } from "fossekall-interface/dist/types";
|
|
28
20
|
```
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- `./ecu/telemetry`
|
|
33
|
-
|
|
34
|
-
### Current Generated API
|
|
35
|
-
|
|
36
|
-
- `STATE_NAME`
|
|
37
|
-
- `type STATE_NAME`
|
|
38
|
-
- `BLDCTelemetry`
|
|
39
|
-
- `type BLDCTelemetry`
|
|
40
|
-
- `FsmTelemetry`
|
|
41
|
-
- `type FsmTelemetry`
|
|
42
|
-
- `SawWaveTelemetry`
|
|
43
|
-
- `type SawWaveTelemetry`
|
|
22
|
+
These modules expose generated schemas, enums, and spec types for integration
|
|
23
|
+
and type-safe data handling.
|
|
44
24
|
|
|
45
|
-
##
|
|
25
|
+
## Package Output
|
|
46
26
|
|
|
47
|
-
|
|
27
|
+
Published artifacts are compiled files from `dist/`, including:
|
|
48
28
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- JavaScript (`dist/**/*.js`)
|
|
52
|
-
- Type declarations (`dist/**/*.d.ts`)
|
|
53
|
-
|
|
54
|
-
## Source Layout
|
|
55
|
-
|
|
56
|
-
- `index.ts`: package root exports
|
|
57
|
-
- `ecu/telemetry.ts`: generated telemetry schemas/types
|
|
58
|
-
- `dist/`: compiled output used by npm consumers
|
|
29
|
+
- JavaScript modules
|
|
30
|
+
- Type declarations
|
|
59
31
|
|
|
60
32
|
## Development
|
|
61
33
|
|
|
62
|
-
|
|
34
|
+
From this directory:
|
|
63
35
|
|
|
64
36
|
```bash
|
|
65
37
|
npm install
|
|
66
38
|
npm run build
|
|
67
39
|
```
|
|
68
40
|
|
|
69
|
-
The build uses `tsc` and outputs to `dist/`.
|
|
70
|
-
|
|
71
41
|
## Publishing
|
|
72
42
|
|
|
73
|
-
1. Update version:
|
|
74
|
-
|
|
75
43
|
```bash
|
|
76
44
|
npm version patch
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
2. Publish:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
45
|
npm publish --access private
|
|
83
46
|
```
|
|
84
47
|
|
|
85
|
-
If
|
|
86
|
-
|
|
87
|
-
```ini
|
|
88
|
-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
and export `NPM_TOKEN` in your shell before publishing.
|
|
48
|
+
If publishing with a token, configure `.npmrc` and set `NPM_TOKEN` in your
|
|
49
|
+
environment.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ip = "10.19.0.111";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ip = "10.19.0.111";
|
package/dist/ecu/index.d.ts
CHANGED
package/dist/ecu/index.js
CHANGED
package/package.json
CHANGED
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as types from "./types";
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as types from "./types";
|