@springfield/ham-radio-api 16.3.2 → 16.3.4

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.
Files changed (79) hide show
  1. package/README.md +14 -2
  2. package/dist/branded-types/frequency.d.ts +2 -2
  3. package/dist/branded-types/frequency.js +1 -1
  4. package/dist/branded-types/license-class-id.d.ts +2 -2
  5. package/dist/branded-types/license-class-id.js +1 -1
  6. package/dist/branded-types/radio-channel-id.d.ts +2 -2
  7. package/dist/branded-types/radio-channel-id.js +1 -1
  8. package/dist/branded-types/radio-model-id.d.ts +2 -2
  9. package/dist/branded-types/radio-model-id.js +1 -1
  10. package/dist/branded-types/radio-module-id.d.ts +2 -2
  11. package/dist/branded-types/radio-module-id.js +1 -1
  12. package/dist/branded-types/spectrum-band-id.d.ts +2 -2
  13. package/dist/branded-types/spectrum-band-id.js +1 -1
  14. package/dist/branded-types/spectrum-mode-id.d.ts +2 -2
  15. package/dist/branded-types/spectrum-mode-id.js +1 -1
  16. package/dist/branded-types/spectrum-privilege-id.d.ts +2 -2
  17. package/dist/branded-types/spectrum-privilege-id.js +1 -1
  18. package/dist/branded-types/wavelength.d.ts +2 -2
  19. package/dist/branded-types/wavelength.js +1 -1
  20. package/dist/index.d.ts +38 -38
  21. package/dist/index.js +38 -38
  22. package/dist/license/class.d.ts +1 -1
  23. package/dist/radio/channel.d.ts +3 -3
  24. package/dist/radio/codec-factory.d.ts +3 -3
  25. package/dist/radio/codec.d.ts +2 -2
  26. package/dist/radio/connection.d.ts +1 -1
  27. package/dist/radio/driver-provider.d.ts +3 -3
  28. package/dist/radio/driver.d.ts +2 -2
  29. package/dist/radio/id.d.ts +1 -1
  30. package/dist/radio/memory-config.d.ts +2 -2
  31. package/dist/radio/memory.d.ts +1 -1
  32. package/dist/radio/module.d.ts +2 -2
  33. package/dist/radio/program.d.ts +2 -2
  34. package/dist/radio/programmed-channel.d.ts +2 -2
  35. package/dist/radio/protocol.d.ts +5 -5
  36. package/dist/radio/radio.d.ts +5 -5
  37. package/dist/radio/schema.d.ts +1 -1
  38. package/dist/radio/serial-config.d.ts +1 -1
  39. package/dist/radio/shared-components.d.ts +1 -1
  40. package/dist/radio/tone.d.ts +2 -2
  41. package/dist/spectrum/band.d.ts +5 -5
  42. package/dist/spectrum/channel.d.ts +1 -1
  43. package/dist/spectrum/mode.d.ts +1 -1
  44. package/dist/spectrum/privilege.d.ts +5 -5
  45. package/package.json +38 -29
  46. package/src/branded-types/frequency.ts +2 -2
  47. package/src/branded-types/license-class-id.ts +2 -2
  48. package/src/branded-types/radio-channel-id.ts +2 -2
  49. package/src/branded-types/radio-model-id.ts +2 -2
  50. package/src/branded-types/radio-module-id.ts +2 -2
  51. package/src/branded-types/spectrum-band-id.ts +2 -2
  52. package/src/branded-types/spectrum-mode-id.ts +2 -2
  53. package/src/branded-types/spectrum-privilege-id.ts +2 -2
  54. package/src/branded-types/wavelength.ts +2 -2
  55. package/src/index.ts +38 -38
  56. package/src/license/class.ts +1 -1
  57. package/src/radio/channel.ts +3 -3
  58. package/src/radio/codec-factory.ts +3 -3
  59. package/src/radio/codec.ts +2 -2
  60. package/src/radio/connection.ts +1 -1
  61. package/src/radio/driver-provider.ts +3 -3
  62. package/src/radio/driver.ts +2 -2
  63. package/src/radio/id.ts +1 -1
  64. package/src/radio/memory-config.ts +2 -2
  65. package/src/radio/memory.ts +1 -1
  66. package/src/radio/module.ts +2 -2
  67. package/src/radio/program.ts +2 -2
  68. package/src/radio/programmed-channel.ts +2 -2
  69. package/src/radio/protocol.ts +5 -5
  70. package/src/radio/radio.ts +5 -5
  71. package/src/radio/schema.ts +1 -1
  72. package/src/radio/serial-config.ts +1 -1
  73. package/src/radio/shared-components.ts +1 -1
  74. package/src/radio/tone.ts +2 -2
  75. package/src/spectrum/band.ts +5 -5
  76. package/src/spectrum/channel.ts +1 -1
  77. package/src/spectrum/mode.ts +1 -1
  78. package/src/spectrum/privilege.ts +5 -5
  79. package/CHANGELOG.md +0 -270
package/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  `yarn install`
5
5
  `yarn prepare`
6
6
 
7
-
8
7
  ## Integrate with your tools
9
8
 
10
9
  - [ ] [Set up project integrations](https://gitlab.com/springfield-ham-radio/ham-radio-api/-/settings/integrations)
@@ -27,40 +26,50 @@ Use the built-in continuous integration in GitLab.
27
26
  - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
28
27
  - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
29
28
 
30
- ***
29
+ ---
31
30
 
32
31
  # Editing this README
33
32
 
34
33
  When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
35
34
 
36
35
  ## Suggestions for a good README
36
+
37
37
  Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
38
38
 
39
39
  ## Name
40
+
40
41
  Choose a self-explaining name for your project.
41
42
 
42
43
  ## Description
44
+
43
45
  Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
44
46
 
45
47
  ## Badges
48
+
46
49
  On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
47
50
 
48
51
  ## Visuals
52
+
49
53
  Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
50
54
 
51
55
  ## Installation
56
+
52
57
  Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
53
58
 
54
59
  ## Usage
60
+
55
61
  Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
56
62
 
57
63
  ## Support
64
+
58
65
  Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
59
66
 
60
67
  ## Roadmap
68
+
61
69
  If you have ideas for releases in the future, it is a good idea to list them in the README.
62
70
 
63
71
  ## Contributing
72
+
64
73
  State if you are open to contributions and what your requirements are for accepting them.
65
74
 
66
75
  For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
@@ -68,10 +77,13 @@ For people who want to make changes to your project, it's helpful to have some d
68
77
  You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
69
78
 
70
79
  ## Authors and acknowledgment
80
+
71
81
  Show your appreciation to those who have contributed to the project.
72
82
 
73
83
  ## License
84
+
74
85
  For open source projects, say how it is licensed.
75
86
 
76
87
  ## Project status
88
+
77
89
  If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type Frequency = Brand<number, 'frequency'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type Frequency = Brand<number, "frequency">;
3
3
  export declare const Frequency: import("ts-brand").Brander<Frequency>;
4
4
  //# sourceMappingURL=frequency.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const Frequency = make();
3
3
  //# sourceMappingURL=frequency.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type LicenseClassId = Brand<string, 'license-class-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type LicenseClassId = Brand<string, "license-class-id">;
3
3
  export declare const LicenseClassId: import("ts-brand").Brander<LicenseClassId>;
4
4
  //# sourceMappingURL=license-class-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const LicenseClassId = make();
3
3
  //# sourceMappingURL=license-class-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type RadioChannelId = Brand<string, 'radio-channel-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type RadioChannelId = Brand<string, "radio-channel-id">;
3
3
  export declare const RadioChannelId: import("ts-brand").Brander<RadioChannelId>;
4
4
  //# sourceMappingURL=radio-channel-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const RadioChannelId = make();
3
3
  //# sourceMappingURL=radio-channel-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type RadioModelId = Brand<string, 'radio-model-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type RadioModelId = Brand<string, "radio-model-id">;
3
3
  export declare const RadioModelId: import("ts-brand").Brander<RadioModelId>;
4
4
  //# sourceMappingURL=radio-model-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const RadioModelId = make();
3
3
  //# sourceMappingURL=radio-model-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type RadioModuleId = Brand<string, 'radio-module-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type RadioModuleId = Brand<string, "radio-module-id">;
3
3
  export declare const RadioModuleId: import("ts-brand").Brander<RadioModuleId>;
4
4
  //# sourceMappingURL=radio-module-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const RadioModuleId = make();
3
3
  //# sourceMappingURL=radio-module-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type SpectrumBandId = Brand<string, 'spectrum-band-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type SpectrumBandId = Brand<string, "spectrum-band-id">;
3
3
  export declare const SpectrumBandId: import("ts-brand").Brander<SpectrumBandId>;
4
4
  //# sourceMappingURL=spectrum-band-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const SpectrumBandId = make();
3
3
  //# sourceMappingURL=spectrum-band-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type SpectrumModeId = Brand<string, 'spectrum-mode-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type SpectrumModeId = Brand<string, "spectrum-mode-id">;
3
3
  export declare const SpectrumModeId: import("ts-brand").Brander<SpectrumModeId>;
4
4
  //# sourceMappingURL=spectrum-mode-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const SpectrumModeId = make();
3
3
  //# sourceMappingURL=spectrum-mode-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type SpectrumPrivilegeId = Brand<string, 'spectrum-privilege-id'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type SpectrumPrivilegeId = Brand<string, "spectrum-privilege-id">;
3
3
  export declare const SpectrumPrivilegeId: import("ts-brand").Brander<SpectrumPrivilegeId>;
4
4
  //# sourceMappingURL=spectrum-privilege-id.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const SpectrumPrivilegeId = make();
3
3
  //# sourceMappingURL=spectrum-privilege-id.js.map
@@ -1,4 +1,4 @@
1
- import { type Brand } from 'ts-brand';
2
- export type Wavelength = Brand<number, 'wavelength'>;
1
+ import { type Brand } from "ts-brand";
2
+ export type Wavelength = Brand<number, "wavelength">;
3
3
  export declare const Wavelength: import("ts-brand").Brander<Wavelength>;
4
4
  //# sourceMappingURL=wavelength.d.ts.map
@@ -1,3 +1,3 @@
1
- import { make } from 'ts-brand';
1
+ import { make } from "ts-brand";
2
2
  export const Wavelength = make();
3
3
  //# sourceMappingURL=wavelength.js.map
package/dist/index.d.ts CHANGED
@@ -1,39 +1,39 @@
1
- export * from './branded-types/frequency.js';
2
- export * from './branded-types/license-class-id.js';
3
- export * from './branded-types/radio-channel-id.js';
4
- export * from './branded-types/radio-model-id.js';
5
- export * from './branded-types/radio-module-id.js';
6
- export * from './branded-types/spectrum-band-id.js';
7
- export * from './branded-types/spectrum-mode-id.js';
8
- export * from './branded-types/spectrum-privilege-id.js';
9
- export * from './branded-types/wavelength.js';
10
- export * from './license/class.js';
11
- export * from './radio/channel.js';
12
- export * from './radio/codec.js';
13
- export * from './radio/codec-factory.js';
14
- export * from './radio/connection.js';
15
- export * from './radio/ctcss.js';
16
- export * from './radio/dcs.js';
17
- export * from './radio/driver.js';
18
- export * from './radio/driver-provider.js';
19
- export * from './radio/id.js';
20
- export * from './radio/memory-config.js';
21
- export * from './radio/memory-segment.js';
22
- export * from './radio/memory.js';
23
- export * from './radio/module.js';
24
- export * from './radio/program.js';
25
- export * from './radio/programmed-channel.js';
26
- export * from './radio/progress-indicator.js';
27
- export * from './radio/protocol.js';
28
- export * from './radio/radio.js';
29
- export * from './radio/schema.js';
30
- export * from './radio/serial-config.js';
31
- export * from './radio/shared-components.js';
32
- export * from './radio/settings.js';
33
- export * from './radio/tone.js';
34
- export * from './radio/validation.js';
35
- export * from './spectrum/band.js';
36
- export * from './spectrum/channel.js';
37
- export * from './spectrum/mode.js';
38
- export * from './spectrum/privilege.js';
1
+ export * from "./branded-types/frequency.js";
2
+ export * from "./branded-types/license-class-id.js";
3
+ export * from "./branded-types/radio-channel-id.js";
4
+ export * from "./branded-types/radio-model-id.js";
5
+ export * from "./branded-types/radio-module-id.js";
6
+ export * from "./branded-types/spectrum-band-id.js";
7
+ export * from "./branded-types/spectrum-mode-id.js";
8
+ export * from "./branded-types/spectrum-privilege-id.js";
9
+ export * from "./branded-types/wavelength.js";
10
+ export * from "./license/class.js";
11
+ export * from "./radio/channel.js";
12
+ export * from "./radio/codec.js";
13
+ export * from "./radio/codec-factory.js";
14
+ export * from "./radio/connection.js";
15
+ export * from "./radio/ctcss.js";
16
+ export * from "./radio/dcs.js";
17
+ export * from "./radio/driver.js";
18
+ export * from "./radio/driver-provider.js";
19
+ export * from "./radio/id.js";
20
+ export * from "./radio/memory-config.js";
21
+ export * from "./radio/memory-segment.js";
22
+ export * from "./radio/memory.js";
23
+ export * from "./radio/module.js";
24
+ export * from "./radio/program.js";
25
+ export * from "./radio/programmed-channel.js";
26
+ export * from "./radio/progress-indicator.js";
27
+ export * from "./radio/protocol.js";
28
+ export * from "./radio/radio.js";
29
+ export * from "./radio/schema.js";
30
+ export * from "./radio/serial-config.js";
31
+ export * from "./radio/shared-components.js";
32
+ export * from "./radio/settings.js";
33
+ export * from "./radio/tone.js";
34
+ export * from "./radio/validation.js";
35
+ export * from "./spectrum/band.js";
36
+ export * from "./spectrum/channel.js";
37
+ export * from "./spectrum/mode.js";
38
+ export * from "./spectrum/privilege.js";
39
39
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,39 +1,39 @@
1
- export * from './branded-types/frequency.js';
2
- export * from './branded-types/license-class-id.js';
3
- export * from './branded-types/radio-channel-id.js';
4
- export * from './branded-types/radio-model-id.js';
5
- export * from './branded-types/radio-module-id.js';
6
- export * from './branded-types/spectrum-band-id.js';
7
- export * from './branded-types/spectrum-mode-id.js';
8
- export * from './branded-types/spectrum-privilege-id.js';
9
- export * from './branded-types/wavelength.js';
10
- export * from './license/class.js';
11
- export * from './radio/channel.js';
12
- export * from './radio/codec.js';
13
- export * from './radio/codec-factory.js';
14
- export * from './radio/connection.js';
15
- export * from './radio/ctcss.js';
16
- export * from './radio/dcs.js';
17
- export * from './radio/driver.js';
18
- export * from './radio/driver-provider.js';
19
- export * from './radio/id.js';
20
- export * from './radio/memory-config.js';
21
- export * from './radio/memory-segment.js';
22
- export * from './radio/memory.js';
23
- export * from './radio/module.js';
24
- export * from './radio/program.js';
25
- export * from './radio/programmed-channel.js';
26
- export * from './radio/progress-indicator.js';
27
- export * from './radio/protocol.js';
28
- export * from './radio/radio.js';
29
- export * from './radio/schema.js';
30
- export * from './radio/serial-config.js';
31
- export * from './radio/shared-components.js';
32
- export * from './radio/settings.js';
33
- export * from './radio/tone.js';
34
- export * from './radio/validation.js';
35
- export * from './spectrum/band.js';
36
- export * from './spectrum/channel.js';
37
- export * from './spectrum/mode.js';
38
- export * from './spectrum/privilege.js';
1
+ export * from "./branded-types/frequency.js";
2
+ export * from "./branded-types/license-class-id.js";
3
+ export * from "./branded-types/radio-channel-id.js";
4
+ export * from "./branded-types/radio-model-id.js";
5
+ export * from "./branded-types/radio-module-id.js";
6
+ export * from "./branded-types/spectrum-band-id.js";
7
+ export * from "./branded-types/spectrum-mode-id.js";
8
+ export * from "./branded-types/spectrum-privilege-id.js";
9
+ export * from "./branded-types/wavelength.js";
10
+ export * from "./license/class.js";
11
+ export * from "./radio/channel.js";
12
+ export * from "./radio/codec.js";
13
+ export * from "./radio/codec-factory.js";
14
+ export * from "./radio/connection.js";
15
+ export * from "./radio/ctcss.js";
16
+ export * from "./radio/dcs.js";
17
+ export * from "./radio/driver.js";
18
+ export * from "./radio/driver-provider.js";
19
+ export * from "./radio/id.js";
20
+ export * from "./radio/memory-config.js";
21
+ export * from "./radio/memory-segment.js";
22
+ export * from "./radio/memory.js";
23
+ export * from "./radio/module.js";
24
+ export * from "./radio/program.js";
25
+ export * from "./radio/programmed-channel.js";
26
+ export * from "./radio/progress-indicator.js";
27
+ export * from "./radio/protocol.js";
28
+ export * from "./radio/radio.js";
29
+ export * from "./radio/schema.js";
30
+ export * from "./radio/serial-config.js";
31
+ export * from "./radio/shared-components.js";
32
+ export * from "./radio/settings.js";
33
+ export * from "./radio/tone.js";
34
+ export * from "./radio/validation.js";
35
+ export * from "./spectrum/band.js";
36
+ export * from "./spectrum/channel.js";
37
+ export * from "./spectrum/mode.js";
38
+ export * from "./spectrum/privilege.js";
39
39
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { LicenseClassId } from '../branded-types/license-class-id.js';
1
+ import type { LicenseClassId } from "../branded-types/license-class-id.js";
2
2
  export interface LicenseClass {
3
3
  id: LicenseClassId;
4
4
  name: string;
@@ -1,6 +1,6 @@
1
- import type { Frequency } from '../branded-types/frequency.js';
2
- import type { RadioChannelId } from '../branded-types/radio-channel-id.js';
3
- import type { RadioTone } from './tone.js';
1
+ import type { Frequency } from "../branded-types/frequency.js";
2
+ import type { RadioChannelId } from "../branded-types/radio-channel-id.js";
3
+ import type { RadioTone } from "./tone.js";
4
4
  export interface RadioChannel {
5
5
  id?: RadioChannelId;
6
6
  name?: string;
@@ -1,6 +1,6 @@
1
- import type { ILogLayer } from 'loglayer';
2
- import type { RadioCodec } from './codec.js';
3
- import type { RadioModelId } from '../branded-types/radio-model-id.js';
1
+ import type { ILogLayer } from "loglayer";
2
+ import type { RadioCodec } from "./codec.js";
3
+ import type { RadioModelId } from "../branded-types/radio-model-id.js";
4
4
  /**
5
5
  * Factory interface for creating radio codecs
6
6
  *
@@ -1,5 +1,5 @@
1
- import type { RadioMemory } from './memory.js';
2
- import type { RadioProgram } from './program.js';
1
+ import type { RadioMemory } from "./memory.js";
2
+ import type { RadioProgram } from "./program.js";
3
3
  export interface RadioCodec {
4
4
  decode(memory: RadioMemory): RadioProgram;
5
5
  encode(program: RadioProgram, memory: RadioMemory): RadioMemory;
@@ -1,4 +1,4 @@
1
- import type { RadioId } from './id.js';
1
+ import type { RadioId } from "./id.js";
2
2
  export interface RadioConnection {
3
3
  serialPortPath: string;
4
4
  radio: RadioId;
@@ -1,6 +1,6 @@
1
- import type { RadioDriver } from './driver.js';
2
- import type { RadioModelId } from '../branded-types/radio-model-id.js';
3
- import type { RadioModuleId } from '../branded-types/radio-module-id.js';
1
+ import type { RadioDriver } from "./driver.js";
2
+ import type { RadioModelId } from "../branded-types/radio-model-id.js";
3
+ import type { RadioModuleId } from "../branded-types/radio-module-id.js";
4
4
  export interface RadioDriverProvider {
5
5
  getId(): RadioModuleId;
6
6
  getDriver(model: RadioModelId): RadioDriver;
@@ -1,5 +1,5 @@
1
- import type { RadioMemory } from './memory.js';
2
- import type { RadioProgressIndicator } from './progress-indicator.js';
1
+ import type { RadioMemory } from "./memory.js";
2
+ import type { RadioProgressIndicator } from "./progress-indicator.js";
3
3
  export interface RadioDriver {
4
4
  readRadio(serialPortPath: string, progressIndicator: RadioProgressIndicator): Promise<RadioMemory>;
5
5
  writeRadio(serialPortPath: string, memory: RadioMemory, progressIndicator: RadioProgressIndicator): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { RadioModelId } from '../branded-types/radio-model-id.js';
1
+ import type { RadioModelId } from "../branded-types/radio-model-id.js";
2
2
  /**
3
3
  * A unique identifier for a radio.
4
4
  *
@@ -1,8 +1,8 @@
1
- import type { RadioMemorySegment } from './memory-segment.js';
1
+ import type { RadioMemorySegment } from "./memory-segment.js";
2
2
  export interface RadioMemoryConfig {
3
3
  chunkSize: number;
4
4
  addressSize: number;
5
- addressEndianness: 'big' | 'little';
5
+ addressEndianness: "big" | "little";
6
6
  segments: {
7
7
  [segmentName: string]: RadioMemorySegment;
8
8
  };
@@ -1,4 +1,4 @@
1
- import type { RadioModelId } from '../branded-types/radio-model-id.js';
1
+ import type { RadioModelId } from "../branded-types/radio-model-id.js";
2
2
  export interface RadioMemory {
3
3
  radioModel: RadioModelId;
4
4
  contents: Uint8Array;
@@ -1,5 +1,5 @@
1
- import type { Radio } from './radio.js';
2
- import type { RadioModuleId } from '../branded-types/radio-module-id.js';
1
+ import type { Radio } from "./radio.js";
2
+ import type { RadioModuleId } from "../branded-types/radio-module-id.js";
3
3
  export interface RadioModule {
4
4
  getId(): RadioModuleId;
5
5
  getRadios(): Radio[];
@@ -1,5 +1,5 @@
1
- import type { RadioProgrammedChannel } from './programmed-channel.js';
2
- import type { RadioSettings } from './settings.js';
1
+ import type { RadioProgrammedChannel } from "./programmed-channel.js";
2
+ import type { RadioSettings } from "./settings.js";
3
3
  export interface RadioProgram {
4
4
  settings: RadioSettings;
5
5
  channels: RadioProgrammedChannel[];
@@ -1,5 +1,5 @@
1
- import type { RadioChannel } from './channel.js';
2
- import type { RadioSettings } from './settings.js';
1
+ import type { RadioChannel } from "./channel.js";
2
+ import type { RadioSettings } from "./settings.js";
3
3
  export interface RadioProgrammedChannel {
4
4
  channelNumber: number;
5
5
  radioChannel: RadioChannel | string;
@@ -1,14 +1,14 @@
1
1
  export interface RadioExactReceivePattern {
2
- type: 'exact';
2
+ type: "exact";
3
3
  value: number;
4
4
  length: number;
5
5
  }
6
6
  export interface RadioVariableReceivePattern {
7
- type: 'variable';
7
+ type: "variable";
8
8
  length: number;
9
9
  }
10
10
  export interface RadioPatternReceivePattern {
11
- type: 'pattern';
11
+ type: "pattern";
12
12
  pattern: (string | number | {
13
13
  field: string;
14
14
  size: number;
@@ -16,7 +16,7 @@ export interface RadioPatternReceivePattern {
16
16
  dataLength?: number | string;
17
17
  }
18
18
  export interface RadioAnyReceivePattern {
19
- type: 'any';
19
+ type: "any";
20
20
  length: number;
21
21
  }
22
22
  export type RadioReceivePattern = RadioExactReceivePattern | RadioVariableReceivePattern | RadioPatternReceivePattern | RadioAnyReceivePattern;
@@ -36,7 +36,7 @@ export interface RadioSendStep {
36
36
  }
37
37
  export interface RadioReceiveStep {
38
38
  receive: {
39
- type: 'exact' | 'variable' | 'pattern' | 'any';
39
+ type: "exact" | "variable" | "pattern" | "any";
40
40
  value?: number;
41
41
  length: number;
42
42
  pattern?: (string | number | {
@@ -1,8 +1,8 @@
1
- import type { RadioId } from './id.js';
2
- import type { RadioMemoryConfig } from './memory-config.js';
3
- import type { RadioProtocolStep } from './protocol.js';
4
- import type { RadioSchema } from './schema.js';
5
- import type { RadioSerialConfig } from './serial-config.js';
1
+ import type { RadioId } from "./id.js";
2
+ import type { RadioMemoryConfig } from "./memory-config.js";
3
+ import type { RadioProtocolStep } from "./protocol.js";
4
+ import type { RadioSchema } from "./schema.js";
5
+ import type { RadioSerialConfig } from "./serial-config.js";
6
6
  export interface Radio {
7
7
  id: RadioId;
8
8
  version: string;
@@ -1,4 +1,4 @@
1
- import type { RadioModelId } from '../branded-types/radio-model-id.js';
1
+ import type { RadioModelId } from "../branded-types/radio-model-id.js";
2
2
  export interface RadioSchema {
3
3
  model: RadioModelId;
4
4
  settingsSchema: unknown;
@@ -2,6 +2,6 @@ export interface RadioSerialConfig {
2
2
  baudRate: number;
3
3
  dataBits?: 8 | 5 | 6 | 7;
4
4
  stopBits?: 1 | 1.5 | 2;
5
- parity?: 'none' | 'even' | 'odd';
5
+ parity?: "none" | "even" | "odd";
6
6
  }
7
7
  //# sourceMappingURL=serial-config.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { RadioCodec } from './codec.js';
1
+ import type { RadioCodec } from "./codec.js";
2
2
  /**
3
3
  * Interface for managing shared components across radio models
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { CTCSS } from './ctcss.js';
2
- import type { DCS } from './dcs.js';
1
+ import type { CTCSS } from "./ctcss.js";
2
+ import type { DCS } from "./dcs.js";
3
3
  export declare enum RadioToneType {
4
4
  CTCSS = 0,
5
5
  DCS = 1
@@ -1,8 +1,8 @@
1
- import type { Frequency } from '../branded-types/frequency.js';
2
- import type { LicenseClassId } from '../branded-types/license-class-id.js';
3
- import type { SpectrumBandId } from '../branded-types/spectrum-band-id.js';
4
- import type { SpectrumChannel } from './channel.js';
5
- import type { Wavelength } from '../branded-types/wavelength.js';
1
+ import type { Frequency } from "../branded-types/frequency.js";
2
+ import type { LicenseClassId } from "../branded-types/license-class-id.js";
3
+ import type { SpectrumBandId } from "../branded-types/spectrum-band-id.js";
4
+ import type { SpectrumChannel } from "./channel.js";
5
+ import type { Wavelength } from "../branded-types/wavelength.js";
6
6
  export interface SpectrumBand {
7
7
  id: SpectrumBandId;
8
8
  name: string;
@@ -1,4 +1,4 @@
1
- import type { Frequency } from '../branded-types/frequency.js';
1
+ import type { Frequency } from "../branded-types/frequency.js";
2
2
  export interface SpectrumChannel {
3
3
  name: string;
4
4
  frequency: Frequency;
@@ -1,4 +1,4 @@
1
- import type { SpectrumModeId } from '../branded-types/spectrum-mode-id.js';
1
+ import type { SpectrumModeId } from "../branded-types/spectrum-mode-id.js";
2
2
  export interface SpectrumMode {
3
3
  id: SpectrumModeId;
4
4
  name: string;