@springfield/ham-radio-api 0.17.0 → 1.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/CHANGELOG.md +20 -0
- package/README.md +3 -18
- package/dist/brand.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/license/class.js.map +1 -1
- package/dist/radio/channel.js.map +1 -1
- package/dist/radio/codec.d.ts +7 -0
- package/dist/radio/codec.d.ts.map +1 -0
- package/dist/radio/{setting.js → codec.js} +1 -1
- package/dist/radio/codec.js.map +1 -0
- package/dist/radio/connection.js.map +1 -1
- package/dist/radio/driver.js.map +1 -1
- package/dist/radio/memory.js.map +1 -1
- package/dist/radio/model.js.map +1 -1
- package/dist/radio/module.js.map +1 -1
- package/dist/radio/program.js.map +1 -1
- package/dist/radio/programmed-channel.js.map +1 -1
- package/dist/radio/progress-indicator.js.map +1 -1
- package/dist/radio/radio.js.map +1 -1
- package/dist/radio/schema.js.map +1 -1
- package/dist/radio/settings.js.map +1 -1
- package/dist/radio/tone.js +1 -1
- package/dist/radio/tone.js.map +1 -1
- package/dist/spectrum/band.js.map +1 -1
- package/dist/spectrum/channel.js.map +1 -1
- package/dist/spectrum/mode.js.map +1 -1
- package/dist/spectrum/privilege.js.map +1 -1
- package/package.json +45 -4
- package/src/index.ts +1 -0
- package/src/radio/codec.ts +7 -0
- package/dist/radio/channel-reference.d.ts +0 -4
- package/dist/radio/channel-reference.d.ts.map +0 -1
- package/dist/radio/channel-reference.js +0 -3
- package/dist/radio/channel-reference.js.map +0 -1
- package/dist/radio/manufacturer.d.ts +0 -5
- package/dist/radio/manufacturer.d.ts.map +0 -1
- package/dist/radio/manufacturer.js +0 -3
- package/dist/radio/manufacturer.js.map +0 -1
- package/dist/radio/radio-channel-reference.d.ts +0 -4
- package/dist/radio/radio-channel-reference.d.ts.map +0 -1
- package/dist/radio/radio-channel-reference.js +0 -3
- package/dist/radio/radio-channel-reference.js.map +0 -1
- package/dist/radio/radio-channel.d.ts +0 -8
- package/dist/radio/radio-channel.d.ts.map +0 -1
- package/dist/radio/radio-channel.js +0 -3
- package/dist/radio/radio-channel.js.map +0 -1
- package/dist/radio/radio-driver.d.ts +0 -7
- package/dist/radio/radio-driver.d.ts.map +0 -1
- package/dist/radio/radio-driver.js +0 -3
- package/dist/radio/radio-driver.js.map +0 -1
- package/dist/radio/radio-program.d.ts +0 -6
- package/dist/radio/radio-program.d.ts.map +0 -1
- package/dist/radio/radio-program.js +0 -3
- package/dist/radio/radio-program.js.map +0 -1
- package/dist/radio/radio-programmed-channel.d.ts +0 -8
- package/dist/radio/radio-programmed-channel.d.ts.map +0 -1
- package/dist/radio/radio-programmed-channel.js +0 -3
- package/dist/radio/radio-programmed-channel.js.map +0 -1
- package/dist/radio/radio-progress-indicator.d.ts +0 -5
- package/dist/radio/radio-progress-indicator.d.ts.map +0 -1
- package/dist/radio/radio-progress-indicator.js +0 -3
- package/dist/radio/radio-progress-indicator.js.map +0 -1
- package/dist/radio/setting-specification.d.ts +0 -24
- package/dist/radio/setting-specification.d.ts.map +0 -1
- package/dist/radio/setting-specification.js +0 -3
- package/dist/radio/setting-specification.js.map +0 -1
- package/dist/radio/setting.d.ts +0 -5
- package/dist/radio/setting.d.ts.map +0 -1
- package/dist/radio/setting.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## [1.1.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v1.0.1...v1.1.0) (2024-11-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add RadioCodec API ([632a76c](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/632a76c3fd2dca49331b723b826c9d74851f564c))
|
|
7
|
+
|
|
8
|
+
## [1.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v1.0.0...v1.0.1) (2024-11-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* force build ([bc601c0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/bc601c0470e05fe912cdd712ab7325726fd1fc4d))
|
|
14
|
+
|
|
15
|
+
## 1.0.0 (2024-11-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add semantic-release and force build ([8343a38](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/8343a387c63a7b87c1e303f47edb0112feb7fcee))
|
package/README.md
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
# ham-radio-api
|
|
2
2
|
|
|
3
|
+
`corepack enable`
|
|
4
|
+
`yarn install`
|
|
5
|
+
`yarn prepare`
|
|
3
6
|
|
|
4
7
|
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://gitlab.com/springfield-ham-radio/ham-radio-api.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
8
|
## Integrate with your tools
|
|
24
9
|
|
|
25
10
|
- [ ] [Set up project integrations](https://gitlab.com/springfield-ham-radio/ham-radio-api/-/settings/integrations)
|
package/dist/brand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../src/brand.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../src/brand.ts"],"names":[],"mappings":"","sourcesContent":["declare const brand: unique symbol;\n\nexport type Brand<T, TBrand extends string> = T & { [brand]: TBrand };\n"]}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./license/class.js"), exports);
|
|
18
18
|
__exportStar(require("./radio/channel.js"), exports);
|
|
19
|
+
__exportStar(require("./radio/codec.js"), exports);
|
|
19
20
|
__exportStar(require("./radio/connection.js"), exports);
|
|
20
21
|
__exportStar(require("./radio/driver.js"), exports);
|
|
21
22
|
__exportStar(require("./radio/memory.js"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAEhC,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAEhC,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC","sourcesContent":["export * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/driver.js';\nexport * from './radio/memory.js';\nexport * from './radio/model.js';\nexport * from './radio/module.js';\nexport * from './radio/program.js';\nexport * from './radio/programmed-channel.js';\nexport * from './radio/progress-indicator.js';\nexport * from './radio/schema.js';\nexport * from './radio/settings.js';\nexport * from './radio/radio.js';\nexport * from './radio/tone.js';\n\nexport * from './spectrum/band.js';\nexport * from './spectrum/channel.js';\nexport * from './spectrum/mode.js';\nexport * from './spectrum/privilege.js'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../src/license/class.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../src/license/class.ts"],"names":[],"mappings":"","sourcesContent":["export interface LicenseClass {\n id?: string;\n name: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/radio/channel.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/radio/channel.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioTone } from './tone.js';\n\nexport interface RadioChannel {\n id?: string;\n name?: string;\n transmitFrequency: number;\n receiveFrequency: number;\n transmitTone: RadioTone;\n receiveTone: RadioTone;\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioMemory } from './memory.js';
|
|
2
|
+
import { RadioProgram } from './program.js';
|
|
3
|
+
export interface RadioCodec {
|
|
4
|
+
decode(memory: RadioMemory): RadioProgram;
|
|
5
|
+
encode(program: RadioProgram, memory: RadioMemory): RadioMemory;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=codec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../src/radio/codec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC;IAC1C,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;CACjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec.js","sourceRoot":"","sources":["../../src/radio/codec.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\n\nexport interface RadioCodec {\n decode(memory: RadioMemory): RadioProgram;\n encode(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioConnection {\n serialPortPath: string;\n modelId: string;\n}\n"]}
|
package/dist/radio/driver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.js","sourceRoot":"","sources":["../../src/radio/driver.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"driver.js","sourceRoot":"","sources":["../../src/radio/driver.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioProgressIndicator } from './progress-indicator.js';\n\nexport interface RadioDriver {\n readRadio(serialPortPath: string, progressIndicator: RadioProgressIndicator): Promise<RadioMemory | undefined>;\n writeRadio(serialPortPath: string, memory: RadioMemory, progressIndicator: RadioProgressIndicator): Promise<void>;\n\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
|
package/dist/radio/memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioMemory {\n radioModelId: string;\n contents: any;\n}\n"]}
|
package/dist/radio/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioModel {\n id: string;\n moduleId: string;\n name: string;\n manufacturer: string;\n}\n"]}
|
package/dist/radio/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioDriver } from './driver';\nimport { RadioModel } from './model';\nimport { RadioSchema } from './schema';\n\nexport interface RadioModule {\n getId(): string;\n getModels(): RadioModel[];\n getSchema(modelId: string): Promise<RadioSchema>;\n getDriver(modelId: string): RadioDriver;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/radio/program.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/radio/program.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioProgrammedChannel } from './programmed-channel.js';\nimport { RadioSettings } from './settings.js';\n\nexport interface RadioProgram {\n radioId?: string;\n settings: RadioSettings;\n channels: RadioProgrammedChannel[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"programmed-channel.js","sourceRoot":"","sources":["../../src/radio/programmed-channel.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"programmed-channel.js","sourceRoot":"","sources":["../../src/radio/programmed-channel.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioChannel } from './channel.js';\nimport { RadioSettings } from './settings.js';\n\nexport interface RadioProgrammedChannel {\n channelNumber: number;\n radioChannel: RadioChannel | string;\n settings?: RadioSettings;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-indicator.js","sourceRoot":"","sources":["../../src/radio/progress-indicator.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"progress-indicator.js","sourceRoot":"","sources":["../../src/radio/progress-indicator.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioProgressIndicator {\n setValue(value: number): void;\n isCanceled: boolean;\n}\n"]}
|
package/dist/radio/radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"","sourcesContent":["export interface Radio {\n id: string;\n name: string;\n modelId: string;\n}\n"]}
|
package/dist/radio/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/radio/schema.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/radio/schema.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioSchema {\n modelId: string;\n settingsSchema: any;\n channelSchema: any;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/radio/settings.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/radio/settings.ts"],"names":[],"mappings":"","sourcesContent":["export interface RadioSettings {\n [setting: string]: string | number | boolean;\n}\n"]}
|
package/dist/radio/tone.js
CHANGED
|
@@ -5,5 +5,5 @@ var RadioToneType;
|
|
|
5
5
|
(function (RadioToneType) {
|
|
6
6
|
RadioToneType[RadioToneType["CTCSS"] = 0] = "CTCSS";
|
|
7
7
|
RadioToneType[RadioToneType["DCS"] = 1] = "DCS";
|
|
8
|
-
})(RadioToneType
|
|
8
|
+
})(RadioToneType || (exports.RadioToneType = RadioToneType = {}));
|
|
9
9
|
//# sourceMappingURL=tone.js.map
|
package/dist/radio/tone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tone.js","sourceRoot":"","sources":["../../src/radio/tone.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,mDAAK,CAAA;IACL,+CAAG,CAAA;AACL,CAAC,EAHW,aAAa,
|
|
1
|
+
{"version":3,"file":"tone.js","sourceRoot":"","sources":["../../src/radio/tone.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,mDAAK,CAAA;IACL,+CAAG,CAAA;AACL,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["export enum RadioToneType {\n CTCSS,\n DCS,\n}\n\nexport interface RadioTone {\n tone: number;\n type: RadioToneType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/spectrum/band.ts"],"names":[],"mappings":"","sourcesContent":["import { SpectrumChannel } from './channel';\n\nexport interface SpectrumBand {\n id?: string;\n name: string;\n wavelength: number;\n lowerFrequency: number;\n upperFrequency: number;\n frequencyDisplayBaseMultiplier: number;\n frequencyDisplayNumberDecimals: number;\n privilegeIds: string[];\n channels?: SpectrumChannel[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/spectrum/channel.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/spectrum/channel.ts"],"names":[],"mappings":"","sourcesContent":["export interface SpectrumChannel {\n name: string;\n frequency: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mode.js","sourceRoot":"","sources":["../../src/spectrum/mode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"mode.js","sourceRoot":"","sources":["../../src/spectrum/mode.ts"],"names":[],"mappings":"","sourcesContent":["export interface SpectrumMode {\n id?: string;\n name: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":"","sourcesContent":["export interface SpectrumPrivilege {\n id?: string;\n licenseClassId: string;\n modeId: string;\n bandId: string;\n lowerFrequency: string;\n upperFrequency: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springfield/ham-radio-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"author": "Bryan Hunt",
|
|
5
|
+
"packageManager": "yarn@4.5.2",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
@@ -9,10 +10,50 @@
|
|
|
9
10
|
"dist/"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"commitlint": "commitlint --edit",
|
|
15
|
+
"release": "semantic-release",
|
|
16
|
+
"prepare": "husky"
|
|
17
|
+
},
|
|
18
|
+
"release": {
|
|
19
|
+
"branches": [
|
|
20
|
+
"main",
|
|
21
|
+
{
|
|
22
|
+
"name": "beta",
|
|
23
|
+
"prerelease": true
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"plugins": [
|
|
27
|
+
[
|
|
28
|
+
"@semantic-release/commit-analyzer",
|
|
29
|
+
{
|
|
30
|
+
"preset": "conventionalcommits"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"@semantic-release/release-notes-generator",
|
|
35
|
+
{
|
|
36
|
+
"preset": "conventionalcommits"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"@semantic-release/changelog",
|
|
40
|
+
"semantic-release-yarn",
|
|
41
|
+
"@semantic-release/gitlab",
|
|
42
|
+
"@semantic-release/git"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
13
47
|
},
|
|
14
|
-
"packageManager": "yarn@3.5.0",
|
|
15
48
|
"devDependencies": {
|
|
16
|
-
"
|
|
49
|
+
"@commitlint/cli": "^19.6.0",
|
|
50
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
51
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
52
|
+
"@semantic-release/git": "^10.0.1",
|
|
53
|
+
"@semantic-release/gitlab": "^13.2.1",
|
|
54
|
+
"husky": "^9.1.7",
|
|
55
|
+
"semantic-release": "23.1.1",
|
|
56
|
+
"semantic-release-yarn": "^3.0.2",
|
|
57
|
+
"typescript": "5.7.2"
|
|
17
58
|
}
|
|
18
59
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channel-reference.d.ts","sourceRoot":"","sources":["../../src/radio/channel-reference.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channel-reference.js","sourceRoot":"","sources":["../../src/radio/channel-reference.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturer.d.ts","sourceRoot":"","sources":["../../src/radio/manufacturer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../src/radio/manufacturer.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-channel-reference.d.ts","sourceRoot":"","sources":["../../src/radio/radio-channel-reference.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-channel-reference.js","sourceRoot":"","sources":["../../src/radio/radio-channel-reference.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-channel.d.ts","sourceRoot":"","sources":["../../src/radio/radio-channel.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAE5B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-channel.js","sourceRoot":"","sources":["../../src/radio/radio-channel.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RadioProgram } from './radio-program.js';
|
|
2
|
-
import { RadioProgressIndicator } from './radio-progress-indicator.js';
|
|
3
|
-
export interface RadioDriver<Settings> {
|
|
4
|
-
importFromRadio(path: string, progressIndicator: RadioProgressIndicator): Promise<RadioProgram<Settings>>;
|
|
5
|
-
programRadio(path: string, program: RadioProgram<Settings>, progressIndicator: RadioProgressIndicator): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=radio-driver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-driver.d.ts","sourceRoot":"","sources":["../../src/radio/radio-driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,WAAW,WAAW,CAAC,QAAQ;IACnC,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1G,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,iBAAiB,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-driver.js","sourceRoot":"","sources":["../../src/radio/radio-driver.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-program.d.ts","sourceRoot":"","sources":["../../src/radio/radio-program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,WAAW,YAAY,CAAC,QAAQ;IACpC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-program.js","sourceRoot":"","sources":["../../src/radio/radio-program.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RadioChannelReference } from './radio-channel-reference.js';
|
|
2
|
-
import { RadioChannel } from './radio-channel.js';
|
|
3
|
-
export interface RadioProgrammedChannel {
|
|
4
|
-
channelNumber: number;
|
|
5
|
-
transmitPower: number;
|
|
6
|
-
radioChannel: RadioChannel | RadioChannelReference;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=radio-programmed-channel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-programmed-channel.d.ts","sourceRoot":"","sources":["../../src/radio/radio-programmed-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,YAAY,GAAG,qBAAqB,CAAC;CACpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-programmed-channel.js","sourceRoot":"","sources":["../../src/radio/radio-programmed-channel.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-progress-indicator.d.ts","sourceRoot":"","sources":["../../src/radio/radio-progress-indicator.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-progress-indicator.js","sourceRoot":"","sources":["../../src/radio/radio-progress-indicator.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface RadioSettingUi {
|
|
2
|
-
type: string;
|
|
3
|
-
}
|
|
4
|
-
export interface ToggleRadioSettingType {
|
|
5
|
-
type: "toggle";
|
|
6
|
-
}
|
|
7
|
-
export interface NumberRadioSettingType {
|
|
8
|
-
type: "number";
|
|
9
|
-
min: number;
|
|
10
|
-
max: number;
|
|
11
|
-
}
|
|
12
|
-
export interface SelectRadioSettingType {
|
|
13
|
-
type: "select";
|
|
14
|
-
options: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface RadioSettingSpecification {
|
|
17
|
-
id: string;
|
|
18
|
-
radioTypeId: string;
|
|
19
|
-
name: string;
|
|
20
|
-
description: string;
|
|
21
|
-
memoryAddress: number;
|
|
22
|
-
ui: RadioSettingUi;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=setting-specification.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting-specification.d.ts","sourceRoot":"","sources":["../../src/radio/setting-specification.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,cAAc,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting-specification.js","sourceRoot":"","sources":["../../src/radio/setting-specification.ts"],"names":[],"mappings":""}
|
package/dist/radio/setting.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../src/radio/setting.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC;CACV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setting.js","sourceRoot":"","sources":["../../src/radio/setting.ts"],"names":[],"mappings":""}
|