@springfield/ham-radio-api 8.0.0 → 10.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/CHANGELOG.md +22 -0
- package/dist/branded-types/spectrum-privilege-id.d.ts +4 -0
- package/dist/branded-types/spectrum-privilege-id.d.ts.map +1 -0
- package/dist/branded-types/spectrum-privilege-id.js +3 -0
- package/dist/branded-types/spectrum-privilege-id.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/radio/connection.d.ts +2 -2
- package/dist/radio/connection.d.ts.map +1 -1
- package/dist/radio/connection.js.map +1 -1
- package/dist/radio/id.d.ts +7 -0
- package/dist/radio/id.d.ts.map +1 -0
- package/dist/radio/id.js +2 -0
- package/dist/radio/id.js.map +1 -0
- package/dist/radio/model.d.ts +4 -4
- package/dist/radio/model.d.ts.map +1 -1
- package/dist/radio/model.js.map +1 -1
- package/dist/radio/module.d.ts +2 -7
- package/dist/radio/module.d.ts.map +1 -1
- package/dist/radio/module.js.map +1 -1
- package/dist/radio/radio.d.ts +10 -5
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/radio/radio.js.map +1 -1
- package/dist/spectrum/privilege.d.ts +1 -1
- package/dist/spectrum/privilege.d.ts.map +1 -1
- package/dist/spectrum/privilege.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +4 -4
- package/src/radio/connection.ts +2 -2
- package/src/radio/id.ts +7 -0
- package/src/radio/module.ts +7 -0
- package/src/radio/{model.ts → radio.ts} +3 -5
- package/src/spectrum/privilege.ts +1 -1
- package/src/branded-types/radio-id.ts +0 -4
- package/src/radio/model-provider.ts +0 -7
- /package/src/branded-types/{spectrum-privlege-id.ts → spectrum-privilege-id.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [10.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v9.0.0...v10.0.0) (2025-04-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* improved Radio API
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* improved Radio API ([7c34422](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/7c34422a8f37ddd01ae6b630eaea5b3d1a815bcb))
|
|
11
|
+
|
|
12
|
+
## [9.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v8.0.0...v9.0.0) (2025-04-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* update RadioModel interface to use properties instead of getter methods
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* update RadioModel interface to use properties instead of getter methods ([fe0c930](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/fe0c930ea6da1be01d0ead7bdc217546954fa04f))
|
|
22
|
+
|
|
1
23
|
## [8.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v7.0.0...v8.0.0) (2025-04-12)
|
|
2
24
|
|
|
3
25
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spectrum-privilege-id.d.ts","sourceRoot":"","sources":["../../src/branded-types/spectrum-privilege-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAQ,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AACzE,eAAO,MAAM,mBAAmB,iDAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spectrum-privilege-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-privilege-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,EAAuB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type SpectrumPrivilegeId = Brand<string, 'spectrum-privilege-id'>;\nexport const SpectrumPrivilegeId = make<SpectrumPrivilegeId>();\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from './branded-types/frequency.js';
|
|
2
2
|
export * from './branded-types/license-class-id.js';
|
|
3
3
|
export * from './branded-types/radio-channel-id.js';
|
|
4
|
-
export * from './branded-types/radio-id.js';
|
|
5
4
|
export * from './branded-types/radio-model-id.js';
|
|
6
5
|
export * from './branded-types/radio-module-id.js';
|
|
7
6
|
export * from './branded-types/spectrum-band-id.js';
|
|
8
7
|
export * from './branded-types/spectrum-mode-id.js';
|
|
9
|
-
export * from './branded-types/spectrum-
|
|
8
|
+
export * from './branded-types/spectrum-privilege-id.js';
|
|
10
9
|
export * from './branded-types/wavelength.js';
|
|
11
10
|
export * from './license/class.js';
|
|
12
11
|
export * from './radio/channel.js';
|
|
@@ -16,9 +15,10 @@ export * from './radio/ctcss.js';
|
|
|
16
15
|
export * from './radio/dcs.js';
|
|
17
16
|
export * from './radio/driver.js';
|
|
18
17
|
export * from './radio/driver-provider.js';
|
|
18
|
+
export * from './radio/id.js';
|
|
19
19
|
export * from './radio/memory.js';
|
|
20
|
-
export * from './radio/
|
|
21
|
-
export * from './radio/
|
|
20
|
+
export * from './radio/radio.js';
|
|
21
|
+
export * from './radio/module.js';
|
|
22
22
|
export * from './radio/program.js';
|
|
23
23
|
export * from './radio/programmed-channel.js';
|
|
24
24
|
export * from './radio/progress-indicator.js';
|
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,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,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,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from './branded-types/frequency.js';
|
|
2
2
|
export * from './branded-types/license-class-id.js';
|
|
3
3
|
export * from './branded-types/radio-channel-id.js';
|
|
4
|
-
export * from './branded-types/radio-id.js';
|
|
5
4
|
export * from './branded-types/radio-model-id.js';
|
|
6
5
|
export * from './branded-types/radio-module-id.js';
|
|
7
6
|
export * from './branded-types/spectrum-band-id.js';
|
|
8
7
|
export * from './branded-types/spectrum-mode-id.js';
|
|
9
|
-
export * from './branded-types/spectrum-
|
|
8
|
+
export * from './branded-types/spectrum-privilege-id.js';
|
|
10
9
|
export * from './branded-types/wavelength.js';
|
|
11
10
|
export * from './license/class.js';
|
|
12
11
|
export * from './radio/channel.js';
|
|
@@ -16,9 +15,10 @@ export * from './radio/ctcss.js';
|
|
|
16
15
|
export * from './radio/dcs.js';
|
|
17
16
|
export * from './radio/driver.js';
|
|
18
17
|
export * from './radio/driver-provider.js';
|
|
18
|
+
export * from './radio/id.js';
|
|
19
19
|
export * from './radio/memory.js';
|
|
20
|
-
export * from './radio/
|
|
21
|
-
export * from './radio/
|
|
20
|
+
export * from './radio/radio.js';
|
|
21
|
+
export * from './radio/module.js';
|
|
22
22
|
export * from './radio/program.js';
|
|
23
23
|
export * from './radio/programmed-channel.js';
|
|
24
24
|
export * from './radio/progress-indicator.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,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,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './branded-types/frequency.js';\nexport * from './branded-types/license-class-id.js';\nexport * from './branded-types/radio-channel-id.js';\nexport * from './branded-types/radio-model-id.js';\nexport * from './branded-types/radio-module-id.js';\nexport * from './branded-types/spectrum-band-id.js';\nexport * from './branded-types/spectrum-mode-id.js';\nexport * from './branded-types/spectrum-privilege-id.js';\nexport * from './branded-types/wavelength.js';\n\nexport * from './license/class.js';\n\nexport * from './radio/channel.js';\nexport * from './radio/codec.js';\nexport * from './radio/connection.js';\nexport * from './radio/ctcss.js';\nexport * from './radio/dcs.js';\nexport * from './radio/driver.js';\nexport * from './radio/driver-provider.js';\nexport * from './radio/id.js';\nexport * from './radio/memory.js';\nexport * from './radio/radio.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/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":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioId } from './id.js';\n\nexport interface RadioConnection {\n serialPortPath: string;\n radio: RadioId;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;CACrB"}
|
package/dist/radio/id.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/radio/id.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\n\nexport interface RadioId {\n module: RadioModuleId;\n model: RadioModelId;\n}\n"]}
|
package/dist/radio/model.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { RadioMemory } from './memory.js';
|
|
|
4
4
|
import { RadioProgram } from './program.js';
|
|
5
5
|
import { RadioSchema } from './schema.js';
|
|
6
6
|
export interface RadioModel {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
id: RadioModelId;
|
|
8
|
+
module: RadioModuleId;
|
|
9
|
+
name: string;
|
|
10
|
+
manufacturer: string;
|
|
11
11
|
getSchema(): Promise<RadioSchema>;
|
|
12
12
|
decodeMemory(memory: RadioMemory): RadioProgram;
|
|
13
13
|
encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,YAAY,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAClC,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC;IAChD,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;CACxE"}
|
package/dist/radio/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface RadioModel {\n
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModelId } from '../branded-types/radio-model-id.js';\nimport { RadioModuleId } from '../branded-types/radio-module-id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface RadioModel {\n id: RadioModelId;\n module: RadioModuleId;\n name: string;\n manufacturer: string;\n getSchema(): Promise<RadioSchema>;\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
|
package/dist/radio/module.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { RadioModelId } from '../branded-types/radio-model-id.js';
|
|
2
1
|
import { RadioModuleId } from '../branded-types/radio-module-id.js';
|
|
3
|
-
import {
|
|
4
|
-
import { RadioModel } from './model.js';
|
|
5
|
-
import { RadioSchema } from './schema.js';
|
|
2
|
+
import { Radio } from './radio.js';
|
|
6
3
|
export interface RadioModule {
|
|
7
4
|
getId(): RadioModuleId;
|
|
8
|
-
|
|
9
|
-
getSchema(model: RadioModelId): Promise<RadioSchema>;
|
|
10
|
-
getDriver(model: RadioModelId): RadioDriver;
|
|
5
|
+
getRadios(): Radio[];
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,WAAW,WAAW;IAC1B,KAAK,IAAI,aAAa,CAAC;IACvB,SAAS,IAAI,KAAK,EAAE,CAAC;CACtB"}
|
package/dist/radio/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioModuleId } from '../branded-types/radio-module-id.js';\nimport { Radio } from './radio.js';\n\nexport interface RadioModule {\n getId(): RadioModuleId;\n getRadios(): Radio[];\n}\n"]}
|
package/dist/radio/radio.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { RadioId } from '
|
|
2
|
-
import {
|
|
1
|
+
import { RadioId } from './id.js';
|
|
2
|
+
import { RadioMemory } from './memory.js';
|
|
3
|
+
import { RadioProgram } from './program.js';
|
|
4
|
+
import { RadioSchema } from './schema.js';
|
|
3
5
|
export interface Radio {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
getId(): RadioId;
|
|
7
|
+
getName(): string;
|
|
8
|
+
getManufacturer(): string;
|
|
9
|
+
getSchema(): Promise<RadioSchema>;
|
|
10
|
+
decodeMemory(memory: RadioMemory): RadioProgram;
|
|
11
|
+
encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;
|
|
7
12
|
}
|
|
8
13
|
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,KAAK,IAAI,OAAO,CAAC;IACjB,OAAO,IAAI,MAAM,CAAC;IAClB,eAAe,IAAI,MAAM,CAAC;IAC1B,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAClC,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC;IAChD,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;CACxE"}
|
package/dist/radio/radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioId } from '
|
|
1
|
+
{"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.ts"],"names":[],"mappings":"","sourcesContent":["import { RadioId } from './id.js';\nimport { RadioMemory } from './memory.js';\nimport { RadioProgram } from './program.js';\nimport { RadioSchema } from './schema.js';\n\nexport interface Radio {\n getId(): RadioId;\n getName(): string;\n getManufacturer(): string;\n getSchema(): Promise<RadioSchema>;\n decodeMemory(memory: RadioMemory): RadioProgram;\n encodeProgram(program: RadioProgram, memory: RadioMemory): RadioMemory;\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import { Frequency } from '../branded-types/frequency.js';
|
|
|
2
2
|
import { LicenseClassId } from '../branded-types/license-class-id.js';
|
|
3
3
|
import { SpectrumBandId } from '../branded-types/spectrum-band-id.js';
|
|
4
4
|
import { SpectrumModeId } from '../branded-types/spectrum-mode-id.js';
|
|
5
|
-
import { SpectrumPrivilegeId } from '../branded-types/spectrum-
|
|
5
|
+
import { SpectrumPrivilegeId } from '../branded-types/spectrum-privilege-id.js';
|
|
6
6
|
export interface SpectrumPrivilege {
|
|
7
7
|
id: SpectrumPrivilegeId;
|
|
8
8
|
licenseClassId: LicenseClassId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privilege.d.ts","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"privilege.d.ts","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,mBAAmB,CAAC;IACxB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;IACrB,cAAc,EAAE,SAAS,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":"","sourcesContent":["import { Frequency } from '../branded-types/frequency.js';\nimport { LicenseClassId } from '../branded-types/license-class-id.js';\nimport { SpectrumBandId } from '../branded-types/spectrum-band-id.js';\nimport { SpectrumModeId } from '../branded-types/spectrum-mode-id.js';\nimport { SpectrumPrivilegeId } from '../branded-types/spectrum-
|
|
1
|
+
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../src/spectrum/privilege.ts"],"names":[],"mappings":"","sourcesContent":["import { Frequency } from '../branded-types/frequency.js';\nimport { LicenseClassId } from '../branded-types/license-class-id.js';\nimport { SpectrumBandId } from '../branded-types/spectrum-band-id.js';\nimport { SpectrumModeId } from '../branded-types/spectrum-mode-id.js';\nimport { SpectrumPrivilegeId } from '../branded-types/spectrum-privilege-id.js';\n\nexport interface SpectrumPrivilege {\n id: SpectrumPrivilegeId;\n licenseClassId: LicenseClassId;\n mode: SpectrumModeId;\n band: SpectrumBandId;\n lowerFrequency: Frequency;\n upperFrequency: Frequency;\n}\n"]}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from './branded-types/frequency.js';
|
|
2
2
|
export * from './branded-types/license-class-id.js';
|
|
3
3
|
export * from './branded-types/radio-channel-id.js';
|
|
4
|
-
export * from './branded-types/radio-id.js';
|
|
5
4
|
export * from './branded-types/radio-model-id.js';
|
|
6
5
|
export * from './branded-types/radio-module-id.js';
|
|
7
6
|
export * from './branded-types/spectrum-band-id.js';
|
|
8
7
|
export * from './branded-types/spectrum-mode-id.js';
|
|
9
|
-
export * from './branded-types/spectrum-
|
|
8
|
+
export * from './branded-types/spectrum-privilege-id.js';
|
|
10
9
|
export * from './branded-types/wavelength.js';
|
|
11
10
|
|
|
12
11
|
export * from './license/class.js';
|
|
@@ -18,9 +17,10 @@ export * from './radio/ctcss.js';
|
|
|
18
17
|
export * from './radio/dcs.js';
|
|
19
18
|
export * from './radio/driver.js';
|
|
20
19
|
export * from './radio/driver-provider.js';
|
|
20
|
+
export * from './radio/id.js';
|
|
21
21
|
export * from './radio/memory.js';
|
|
22
|
-
export * from './radio/
|
|
23
|
-
export * from './radio/
|
|
22
|
+
export * from './radio/radio.js';
|
|
23
|
+
export * from './radio/module.js';
|
|
24
24
|
export * from './radio/program.js';
|
|
25
25
|
export * from './radio/programmed-channel.js';
|
|
26
26
|
export * from './radio/progress-indicator.js';
|
package/src/radio/connection.ts
CHANGED
package/src/radio/id.ts
ADDED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RadioModuleId } from '../branded-types/radio-module-id.js';
|
|
1
|
+
import { RadioId } from './id.js';
|
|
3
2
|
import { RadioMemory } from './memory.js';
|
|
4
3
|
import { RadioProgram } from './program.js';
|
|
5
4
|
import { RadioSchema } from './schema.js';
|
|
6
5
|
|
|
7
|
-
export interface
|
|
8
|
-
getId():
|
|
9
|
-
getModuleId(): RadioModuleId;
|
|
6
|
+
export interface Radio {
|
|
7
|
+
getId(): RadioId;
|
|
10
8
|
getName(): string;
|
|
11
9
|
getManufacturer(): string;
|
|
12
10
|
getSchema(): Promise<RadioSchema>;
|
|
@@ -2,7 +2,7 @@ import { Frequency } from '../branded-types/frequency.js';
|
|
|
2
2
|
import { LicenseClassId } from '../branded-types/license-class-id.js';
|
|
3
3
|
import { SpectrumBandId } from '../branded-types/spectrum-band-id.js';
|
|
4
4
|
import { SpectrumModeId } from '../branded-types/spectrum-mode-id.js';
|
|
5
|
-
import { SpectrumPrivilegeId } from '../branded-types/spectrum-
|
|
5
|
+
import { SpectrumPrivilegeId } from '../branded-types/spectrum-privilege-id.js';
|
|
6
6
|
|
|
7
7
|
export interface SpectrumPrivilege {
|
|
8
8
|
id: SpectrumPrivilegeId;
|
|
File without changes
|