@springfield/ham-radio-utils 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.
Files changed (62) hide show
  1. package/CHANGELOG.md +212 -0
  2. package/README.md +92 -0
  3. package/dist/db/bands.json +149 -0
  4. package/dist/db/license-classes.json +22 -0
  5. package/dist/index.d.ts +11 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +11 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/memory/segmented-memory.d.ts +12 -0
  10. package/dist/memory/segmented-memory.d.ts.map +1 -0
  11. package/dist/memory/segmented-memory.js +39 -0
  12. package/dist/memory/segmented-memory.js.map +1 -0
  13. package/dist/test-utils/radio-channel-factory.d.ts +5 -0
  14. package/dist/test-utils/radio-channel-factory.d.ts.map +1 -0
  15. package/dist/test-utils/radio-channel-factory.js +16 -0
  16. package/dist/test-utils/radio-channel-factory.js.map +1 -0
  17. package/dist/test-utils/radio-programmed-channel-factory.d.ts +4 -0
  18. package/dist/test-utils/radio-programmed-channel-factory.d.ts.map +1 -0
  19. package/dist/test-utils/radio-programmed-channel-factory.js +7 -0
  20. package/dist/test-utils/radio-programmed-channel-factory.js.map +1 -0
  21. package/dist/utils/band-plan.d.ts +24 -0
  22. package/dist/utils/band-plan.d.ts.map +1 -0
  23. package/dist/utils/band-plan.js +27 -0
  24. package/dist/utils/band-plan.js.map +1 -0
  25. package/dist/utils/bcd-to-number.d.ts +2 -0
  26. package/dist/utils/bcd-to-number.d.ts.map +1 -0
  27. package/dist/utils/bcd-to-number.js +9 -0
  28. package/dist/utils/bcd-to-number.js.map +1 -0
  29. package/dist/utils/frequency-display.d.ts +3 -0
  30. package/dist/utils/frequency-display.d.ts.map +1 -0
  31. package/dist/utils/frequency-display.js +5 -0
  32. package/dist/utils/frequency-display.js.map +1 -0
  33. package/dist/utils/memory-channel-utils.d.ts +2 -0
  34. package/dist/utils/memory-channel-utils.d.ts.map +1 -0
  35. package/dist/utils/memory-channel-utils.js +6 -0
  36. package/dist/utils/memory-channel-utils.js.map +1 -0
  37. package/dist/utils/memory-segment-utils.d.ts +3 -0
  38. package/dist/utils/memory-segment-utils.d.ts.map +1 -0
  39. package/dist/utils/memory-segment-utils.js +6 -0
  40. package/dist/utils/memory-segment-utils.js.map +1 -0
  41. package/dist/utils/number-to-bcd.d.ts +2 -0
  42. package/dist/utils/number-to-bcd.d.ts.map +1 -0
  43. package/dist/utils/number-to-bcd.js +12 -0
  44. package/dist/utils/number-to-bcd.js.map +1 -0
  45. package/dist/utils/to-hex-words.d.ts +2 -0
  46. package/dist/utils/to-hex-words.d.ts.map +1 -0
  47. package/dist/utils/to-hex-words.js +12 -0
  48. package/dist/utils/to-hex-words.js.map +1 -0
  49. package/package.json +68 -0
  50. package/src/db/bands.json +149 -0
  51. package/src/db/license-classes.json +22 -0
  52. package/src/index.ts +12 -0
  53. package/src/memory/segmented-memory.ts +52 -0
  54. package/src/test-utils/radio-channel-factory.ts +17 -0
  55. package/src/test-utils/radio-programmed-channel-factory.ts +8 -0
  56. package/src/utils/band-plan.ts +36 -0
  57. package/src/utils/bcd-to-number.ts +10 -0
  58. package/src/utils/frequency-display.ts +6 -0
  59. package/src/utils/memory-channel-utils.ts +6 -0
  60. package/src/utils/memory-segment-utils.ts +7 -0
  61. package/src/utils/number-to-bcd.ts +15 -0
  62. package/src/utils/to-hex-words.ts +14 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,212 @@
1
+ ## 1.0.0 (2025-05-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * move code from ham-radio-driver-utils ([ac3df43](https://gitlab.com/springfield-ham-radio/app/ham-radio-utils/commit/ac3df4357db5cdda6bc86c8e1a56a9699e79e658))
7
+
8
+ ## [7.1.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v7.0.4...v7.1.0) (2025-05-31)
9
+
10
+
11
+ ### Features
12
+
13
+ * add BandPlan and frequencyDisplay() ([de66e53](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/de66e53b089cc89388f7ee9f202559f3d4d230ae))
14
+
15
+ ## [7.0.4](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v7.0.3...v7.0.4) (2025-05-30)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * clean up logging typos ([4983279](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/4983279089278e5b86ac44b5d50fc7e2453b35b5))
21
+
22
+ ## [7.0.3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v7.0.2...v7.0.3) (2025-05-30)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **deps:** update dependency loglayer to ^6.4.2 ([c0069ff](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/c0069ff82aca43fd67bbbd7f8b1ef84672d32a39))
28
+
29
+ ## [7.0.2](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v7.0.1...v7.0.2) (2025-05-23)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **deps:** update dependency loglayer to ^6.4.0 ([744eec9](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/744eec97a43ae688abe2f87d54ebd21ff3504ea5))
35
+
36
+ ## [7.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v7.0.0...v7.0.1) (2025-05-16)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **deps:** update dependency fishery to ^2.3.1 ([3f337a6](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/3f337a6b33e682888e5bcf8504c542f4e29fc996))
42
+
43
+ ## [7.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.5...v7.0.0) (2025-05-10)
44
+
45
+
46
+ ### ⚠ BREAKING CHANGES
47
+
48
+ * RadoMemorySegment moved to the API package
49
+
50
+ ### Features
51
+
52
+ * RadoMemorySegment moved to the API package ([fd5a6ee](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/fd5a6ee9dab1c8978c15df53cdbe6cbbb3c607ab))
53
+
54
+ ## [6.0.5](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.4...v6.0.5) (2025-05-10)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * readRadioMemory() needs to return RadioMemorySegment[] ([69b35fd](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/69b35fd95190c514b4f2b8d691b41b5f6d240575))
60
+
61
+ ## [6.0.4](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.3...v6.0.4) (2025-05-02)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * **deps:** update dependency fishery to ^2.3.0 ([b265bcd](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/b265bcd2db10993058d83a7d16ca3997afbde236))
67
+
68
+ ## [6.0.3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.2...v6.0.3) (2025-04-27)
69
+
70
+
71
+ ### Bug Fixes
72
+
73
+ * update dependencies ([6d760a9](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/6d760a9127336252f61fb08fc04f3be0aadbf0fb))
74
+
75
+ ## [6.0.2](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.1...v6.0.2) (2025-04-27)
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * update dependencies ([9f4490e](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/9f4490ec6f66744c882b5cc541f4be7b2c11e809))
81
+
82
+ ## [6.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v6.0.0...v6.0.1) (2025-04-20)
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * **deps:** update dependencies ([848f732](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/848f7324a1c470fc3219cb57fbc9d389c3473c03))
88
+
89
+ ## [6.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v5.0.3...v6.0.0) (2025-04-12)
90
+
91
+
92
+ ### ⚠ BREAKING CHANGES
93
+
94
+ * remove encode and decode from the driver
95
+
96
+ ### Features
97
+
98
+ * remove encode and decode from the driver ([d553ac5](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/d553ac5b8a8974cae7a35bfc3bd731a104c49fe0))
99
+
100
+ ## [5.0.3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v5.0.2...v5.0.3) (2025-04-12)
101
+
102
+
103
+ ### Bug Fixes
104
+
105
+ * **deps:** update dependencies ([ab38bff](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/ab38bff0e0c5d035773653924090bec37f95bdf5))
106
+
107
+ ## [5.0.2](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v5.0.1...v5.0.2) (2025-04-06)
108
+
109
+
110
+ ### Bug Fixes
111
+
112
+ * update dependencies ([a737fae](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/a737faeda90ea71d51445b7fc16def560da6c003))
113
+
114
+ ## [5.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v5.0.0...v5.0.1) (2025-04-06)
115
+
116
+
117
+ ### Bug Fixes
118
+
119
+ * update dependencies ([3d0e57e](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/3d0e57e7788fb601f8d26a92d29cf1d1458a017f))
120
+
121
+ ## [5.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v4.0.3...v5.0.0) (2025-04-06)
122
+
123
+
124
+ ### ⚠ BREAKING CHANGES
125
+
126
+ * update to branded types and add factories for testing
127
+
128
+ ### Features
129
+
130
+ * update to branded types and add factories for testing ([c824c9c](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/c824c9cf22c41016ed3df9bfb4cb2e22379ee153))
131
+
132
+ ## [4.0.3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v4.0.2...v4.0.3) (2025-03-31)
133
+
134
+
135
+ ### Bug Fixes
136
+
137
+ * use withMetadata instead of withContext for logging memory address ([d929c4f](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/d929c4f5ef38a2b80dda10808e9ac1d7a8a95429))
138
+
139
+ ## [4.0.2](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v4.0.1...v4.0.2) (2025-03-31)
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * **deps:** update @springfield/ham-radio-api to 3.0.0 ([edd7752](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/edd77522fb79ac6c5c37d64564d177e1d12a54fe))
145
+
146
+ ## [4.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v4.0.0...v4.0.1) (2025-03-28)
147
+
148
+
149
+ ### Bug Fixes
150
+
151
+ * **deps:** update dependencies ([c4b034d](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/c4b034d5583a7529814e278140097fc55721a7de))
152
+
153
+ ## [4.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v3.0.0...v4.0.0) (2025-03-15)
154
+
155
+
156
+ ### ⚠ BREAKING CHANGES
157
+
158
+ * use new ILogLayer API
159
+
160
+ ### Features
161
+
162
+ * use new ILogLayer API ([59147cd](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/59147cd038f0a6569e9941430359746ca0090ff6))
163
+
164
+ ## [3.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v2.0.1...v3.0.0) (2024-12-02)
165
+
166
+
167
+ ### ⚠ BREAKING CHANGES
168
+
169
+ * switch to ESM
170
+
171
+ ### Features
172
+
173
+ * switch to ESM ([1bdcb42](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/1bdcb4259c183e479e54cb18965b4858d54b4fd8))
174
+
175
+ ## [2.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v2.0.0...v2.0.1) (2024-12-02)
176
+
177
+
178
+ ### Bug Fixes
179
+
180
+ * display memory addresses in hex ([49e33db](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/49e33db7ca9602d2189fa4c9a1c753b114f9e4f8))
181
+
182
+ ## [2.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v1.1.0...v2.0.0) (2024-12-02)
183
+
184
+
185
+ ### ⚠ BREAKING CHANGES
186
+
187
+ * switch to loglayer
188
+
189
+ ### Features
190
+
191
+ * switch to loglayer ([31a9ee3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/31a9ee36ca713f0edef894db3175bc3a8edac755))
192
+
193
+ ## [1.1.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v1.0.1...v1.1.0) (2024-12-01)
194
+
195
+
196
+ ### Features
197
+
198
+ * add port to SegmentedMemoryDriver abstract functions ([b0cf810](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/b0cf810196f89786161017f0eb8705da8c8636f9))
199
+
200
+ ## [1.0.1](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/compare/v1.0.0...v1.0.1) (2024-12-01)
201
+
202
+
203
+ ### Bug Fixes
204
+
205
+ * export missing code ([b75f3eb](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/b75f3eb603f2d8c4888bd92bbc2ca51c5942ba98))
206
+
207
+ ## 1.0.0 (2024-12-01)
208
+
209
+
210
+ ### Features
211
+
212
+ * add segmented memory ([d2f1ed3](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/commit/d2f1ed30f66978b9f06a0e902c750036702123d1))
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # ham-radio-driver-utils
2
+
3
+
4
+
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/app/ham-radio-driver-utils.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.com/springfield-ham-radio/app/ham-radio-driver-utils/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ 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.
50
+
51
+ ## Suggestions for a good README
52
+ 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.
53
+
54
+ ## Name
55
+ Choose a self-explaining name for your project.
56
+
57
+ ## Description
58
+ 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.
59
+
60
+ ## Badges
61
+ 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.
62
+
63
+ ## Visuals
64
+ 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.
65
+
66
+ ## Installation
67
+ 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.
68
+
69
+ ## Usage
70
+ 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.
71
+
72
+ ## Support
73
+ 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.
74
+
75
+ ## Roadmap
76
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
77
+
78
+ ## Contributing
79
+ State if you are open to contributions and what your requirements are for accepting them.
80
+
81
+ 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.
82
+
83
+ 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.
84
+
85
+ ## Authors and acknowledgment
86
+ Show your appreciation to those who have contributed to the project.
87
+
88
+ ## License
89
+ For open source projects, say how it is licensed.
90
+
91
+ ## Project status
92
+ 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.
@@ -0,0 +1,149 @@
1
+ [
2
+ {
3
+ "id": "d1a5c7e8-3f9b-4a6c-8d2e-1b3f7a9c5e8d",
4
+ "name": "160 Meter",
5
+ "wavelength": 160,
6
+ "lowerFrequency": 1800000000,
7
+ "upperFrequency": 2000000000,
8
+ "frequencyDisplayBaseMultiplier": 1000000,
9
+ "frequencyDisplayNumberDecimals": 3,
10
+ "privileges": [
11
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
12
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
13
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
14
+ ]
15
+ },
16
+ {
17
+ "id": "e3b7a9c5-d1a5-4f8d-2e1b-c7e83f9b6a4c",
18
+ "name": "80 Meter",
19
+ "wavelength": 80,
20
+ "lowerFrequency": 3500000000,
21
+ "upperFrequency": 4000000000,
22
+ "frequencyDisplayBaseMultiplier": 1000000,
23
+ "frequencyDisplayNumberDecimals": 3,
24
+ "privileges": [
25
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
26
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
27
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
28
+ ]
29
+ },
30
+ {
31
+ "id": "f0a4c5e8-d1b3-c7e83f9b-a6c8-d2e1b9c5f7ea",
32
+ "name": "60 Meter",
33
+ "wavelength": 60,
34
+ "lowerFrequency": 5332000,
35
+ "upperFrequency": 5405000,
36
+ "frequencyDisplayBaseMultiplier": 1000,
37
+ "frequencyDisplayNumberDecimals": 1,
38
+ "privileges": [
39
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
40
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
41
+ ],
42
+ "channels": [
43
+ {
44
+ "name": "Channel 1",
45
+ "frequency": 5332
46
+ },
47
+ {
48
+ "name": "Channel 2",
49
+ "frequency": 5348
50
+ },
51
+ {
52
+ "name": "Channel 3",
53
+ "frequency": 5358.5
54
+ },
55
+ {
56
+ "name": "Channel 4",
57
+ "frequency": 5373
58
+ },
59
+ {
60
+ "name": "Channel 5",
61
+ "frequency": 5405
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "id": "c5ea-f0a4-d1b39-c7ec83fa-a6cd82eb19cf",
67
+ "name": "40 Meter",
68
+ "wavelength": 40,
69
+ "lowerFrequency": 7000000000,
70
+ "upperFrequency": 7300000000,
71
+ "frequencyDisplayBaseMultiplier": 1000000,
72
+ "frequencyDisplayNumberDecimals": 3,
73
+ "privileges": [
74
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
75
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
76
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
77
+ ]
78
+ },
79
+ {
80
+ "id": "fa83ec-d12ab39-c75ea-a46cd82eb19cf",
81
+ "name": "20 Meter",
82
+ "wavelength": 20,
83
+ "lowerFrequency": 14000000000,
84
+ "upperFrequency": 14350000000,
85
+ "frequencyDisplayBaseMultiplier": 1000000,
86
+ "frequencyDisplayNumberDecimals": 3,
87
+ "privileges": [
88
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
89
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
90
+ ]
91
+ },
92
+ {
93
+ "id": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6",
94
+ "name": "15 Meter",
95
+ "wavelength": 15,
96
+ "lowerFrequency": 21000000,
97
+ "upperFrequency": 21450000,
98
+ "frequencyDisplayBaseMultiplier": 1000,
99
+ "frequencyDisplayNumberDecimals": 0,
100
+ "privileges": [
101
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
102
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
103
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d",
104
+ "a2c4b6f8-7e9d-3f5b-1c2a-9e7f8d3b6a4c"
105
+ ]
106
+ },
107
+ {
108
+ "id": "p6o5n4m3-l2k1-j0i9-h8g7-f6e5-d4c3b2a1",
109
+ "name": "10 Meter",
110
+ "wavelength": 10,
111
+ "lowerFrequency": 28000000,
112
+ "upperFrequency": 29700000,
113
+ "frequencyDisplayBaseMultiplier": 1000,
114
+ "frequencyDisplayNumberDecimals": 0,
115
+ "privileges": [
116
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
117
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
118
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
119
+ ]
120
+ },
121
+ {
122
+ "id": "z1y2x3w4-v5u6-t7s8-r9q0-p1o2n3m4l5k6",
123
+ "name": "2 Meter",
124
+ "wavelength": 2,
125
+ "lowerFrequency": 144000000,
126
+ "upperFrequency": 148000000,
127
+ "frequencyDisplayBaseMultiplier": 1000,
128
+ "frequencyDisplayNumberDecimals": 0,
129
+ "privileges": [
130
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
131
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
132
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
133
+ ]
134
+ },
135
+ {
136
+ "id": "k6l5m4n3-o2p1-q0r9-s8t7-u6v5-w4x3y2z1",
137
+ "name": "70 Centimeter",
138
+ "wavelength": 0.7,
139
+ "lowerFrequency": 420000000,
140
+ "upperFrequency": 450000000,
141
+ "frequencyDisplayBaseMultiplier": 1000,
142
+ "frequencyDisplayNumberDecimals": 0,
143
+ "privileges": [
144
+ "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
145
+ "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
146
+ "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d"
147
+ ]
148
+ }
149
+ ]
@@ -0,0 +1,22 @@
1
+ [
2
+ {
3
+ "id": "b7c9d9e4-5f0a-4f2d-9c2d-1e3b8e7a8b5f",
4
+ "name": "Technician"
5
+ },
6
+ {
7
+ "id": "f3a6c1d2-8e7f-4a5b-9d3e-2c4a9b6e7f8d",
8
+ "name": "General"
9
+ },
10
+ {
11
+ "id": "d6e8f7a2-3b4c-5d9e-1f2a-8c3b7e4a9f6d",
12
+ "name": "Amateur Extra"
13
+ },
14
+ {
15
+ "id": "a2c4b6f8-7e9d-3f5b-1c2a-9e7f8d3b6a4c",
16
+ "name": "Advanced (Grandfathered)"
17
+ },
18
+ {
19
+ "id": "e7f9d3b6-a2c4-5f1a-8c3b-6f8d2a4b9e7f",
20
+ "name": "Novice (Grandfathered)"
21
+ }
22
+ ]
@@ -0,0 +1,11 @@
1
+ export * from './memory/segmented-memory.js';
2
+ export * from './test-utils/radio-channel-factory.js';
3
+ export * from './test-utils/radio-programmed-channel-factory.js';
4
+ export * from './utils/bcd-to-number.js';
5
+ export * from './utils/band-plan.js';
6
+ export * from './utils/frequency-display.js';
7
+ export * from './utils/memory-channel-utils.js';
8
+ export * from './utils/memory-segment-utils.js';
9
+ export * from './utils/number-to-bcd.js';
10
+ export * from './utils/to-hex-words.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AAEjE,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ export * from './memory/segmented-memory.js';
2
+ export * from './test-utils/radio-channel-factory.js';
3
+ export * from './test-utils/radio-programmed-channel-factory.js';
4
+ export * from './utils/bcd-to-number.js';
5
+ export * from './utils/band-plan.js';
6
+ export * from './utils/frequency-display.js';
7
+ export * from './utils/memory-channel-utils.js';
8
+ export * from './utils/memory-segment-utils.js';
9
+ export * from './utils/number-to-bcd.js';
10
+ export * from './utils/to-hex-words.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AAEjE,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './memory/segmented-memory.js';\n\nexport * from './test-utils/radio-channel-factory.js';\nexport * from './test-utils/radio-programmed-channel-factory.js';\n\nexport * from './utils/bcd-to-number.js';\nexport * from './utils/band-plan.js';\nexport * from './utils/frequency-display.js';\nexport * from './utils/memory-channel-utils.js';\nexport * from './utils/memory-segment-utils.js';\nexport * from './utils/number-to-bcd.js';\nexport * from './utils/to-hex-words.js';\n"]}
@@ -0,0 +1,12 @@
1
+ import { RadioMemorySegment } from '@springfield/ham-radio-api';
2
+ export declare class RadioSegmentedMemory {
3
+ private segments;
4
+ constructor(segments?: RadioMemorySegment[]);
5
+ addSegment(segment: RadioMemorySegment): void;
6
+ getSegments(): IterableIterator<RadioMemorySegment>;
7
+ getSegment(startAddress: number): RadioMemorySegment | undefined;
8
+ segmentCount(): number;
9
+ findSegment(address: number): RadioMemorySegment | undefined;
10
+ toArray(): RadioMemorySegment[];
11
+ }
12
+ //# sourceMappingURL=segmented-memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segmented-memory.d.ts","sourceRoot":"","sources":["../../src/memory/segmented-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAkC;gBAEtC,QAAQ,CAAC,EAAE,kBAAkB,EAAE;IAUpC,UAAU,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAI7C,WAAW,IAAI,gBAAgB,CAAC,kBAAkB,CAAC;IAInD,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIhE,YAAY,IAAI,MAAM;IAItB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAiB5D,OAAO,IAAI,kBAAkB,EAAE;CAGvC"}
@@ -0,0 +1,39 @@
1
+ export class RadioSegmentedMemory {
2
+ segments;
3
+ constructor(segments) {
4
+ this.segments = new Map();
5
+ if (segments != undefined) {
6
+ for (const segment of segments) {
7
+ this.segments.set(segment.startAddress, segment);
8
+ }
9
+ }
10
+ }
11
+ addSegment(segment) {
12
+ this.segments.set(segment.startAddress, segment);
13
+ }
14
+ getSegments() {
15
+ return this.segments.values();
16
+ }
17
+ getSegment(startAddress) {
18
+ return this.segments.get(startAddress);
19
+ }
20
+ segmentCount() {
21
+ return this.segments.size;
22
+ }
23
+ findSegment(address) {
24
+ const iterator = this.segments.values();
25
+ let result = iterator.next();
26
+ while (!result.done) {
27
+ const segment = result.value;
28
+ if (segment.startAddress <= address && segment.startAddress + segment.length > address) {
29
+ return segment;
30
+ }
31
+ result = iterator.next();
32
+ }
33
+ return undefined;
34
+ }
35
+ toArray() {
36
+ return Array.from(this.segments.values());
37
+ }
38
+ }
39
+ //# sourceMappingURL=segmented-memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segmented-memory.js","sourceRoot":"","sources":["../../src/memory/segmented-memory.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,oBAAoB;IACvB,QAAQ,CAAkC;IAElD,YAAY,QAA+B;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;QAE1B,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;YAC1B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;gBAC/B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;IAEM,UAAU,CAAC,OAA2B;QAC3C,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAChC,CAAC;IAEM,UAAU,CAAC,YAAoB;QACpC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC5B,CAAC;IAEM,WAAW,CAAC,OAAe;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACxC,IAAI,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QAE7B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;YAE7B,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,EAAE,CAAC;gBACvF,OAAO,OAAO,CAAC;YACjB,CAAC;YAED,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEM,OAAO;QACZ,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,CAAC;CACF","sourcesContent":["import { RadioMemorySegment } from '@springfield/ham-radio-api';\n\nexport class RadioSegmentedMemory {\n private segments: Map<number, RadioMemorySegment>;\n\n constructor(segments?: RadioMemorySegment[]) {\n this.segments = new Map();\n\n if (segments != undefined) {\n for (const segment of segments) {\n this.segments.set(segment.startAddress, segment);\n }\n }\n }\n\n public addSegment(segment: RadioMemorySegment): void {\n this.segments.set(segment.startAddress, segment);\n }\n\n public getSegments(): IterableIterator<RadioMemorySegment> {\n return this.segments.values();\n }\n\n public getSegment(startAddress: number): RadioMemorySegment | undefined {\n return this.segments.get(startAddress);\n }\n\n public segmentCount(): number {\n return this.segments.size;\n }\n\n public findSegment(address: number): RadioMemorySegment | undefined {\n const iterator = this.segments.values();\n let result = iterator.next();\n\n while (!result.done) {\n const segment = result.value;\n\n if (segment.startAddress <= address && segment.startAddress + segment.length > address) {\n return segment;\n }\n\n result = iterator.next();\n }\n\n return undefined;\n }\n\n public toArray(): RadioMemorySegment[] {\n return Array.from(this.segments.values());\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { CTCSS, RadioChannel } from '@springfield/ham-radio-api';
2
+ import { Factory } from 'fishery';
3
+ export declare function getRandomCTCSS(): CTCSS;
4
+ export declare const radioChannelFactory: Factory<RadioChannel, any, RadioChannel, import("fishery").DeepPartialObject<RadioChannel>>;
5
+ //# sourceMappingURL=radio-channel-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-channel-factory.d.ts","sourceRoot":"","sources":["../../src/test-utils/radio-channel-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,YAAY,EAAiC,MAAM,4BAA4B,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,wBAAgB,cAAc,IAAI,KAAK,CAItC;AAED,eAAO,MAAM,mBAAmB,6FAO7B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CTCSS, Frequency, RadioChannelId, RadioToneType } from '@springfield/ham-radio-api';
2
+ import { Factory } from 'fishery';
3
+ export function getRandomCTCSS() {
4
+ const values = Object.values(CTCSS); // Get all values from the enum
5
+ const randomIndex = Math.floor(Math.random() * values.length); // Generate a random index
6
+ return values[randomIndex]; // Return the randomly selected value
7
+ }
8
+ export const radioChannelFactory = Factory.define(({ sequence }) => ({
9
+ id: RadioChannelId(sequence.toString()),
10
+ name: `c-${sequence}`,
11
+ transmitFrequency: Frequency(144000),
12
+ receiveFrequency: Frequency(144000),
13
+ transmitTone: { type: RadioToneType.CTCSS, tone: getRandomCTCSS() },
14
+ receiveTone: { type: RadioToneType.CTCSS, tone: getRandomCTCSS() },
15
+ }));
16
+ //# sourceMappingURL=radio-channel-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-channel-factory.js","sourceRoot":"","sources":["../../src/test-utils/radio-channel-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,UAAU,cAAc;IAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,+BAA+B;IACpE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,0BAA0B;IACzF,OAAO,MAAM,CAAC,WAAW,CAAU,CAAC,CAAC,qCAAqC;AAC5E,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IACjF,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;IACvC,IAAI,EAAE,KAAK,QAAQ,EAAE;IACrB,iBAAiB,EAAE,SAAS,CAAC,MAAM,CAAC;IACpC,gBAAgB,EAAE,SAAS,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE;IACnE,WAAW,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE;CACnE,CAAC,CAAC,CAAC","sourcesContent":["import { CTCSS, Frequency, RadioChannel, RadioChannelId, RadioToneType } from '@springfield/ham-radio-api';\nimport { Factory } from 'fishery';\n\nexport function getRandomCTCSS(): CTCSS {\n const values = Object.values(CTCSS); // Get all values from the enum\n const randomIndex = Math.floor(Math.random() * values.length); // Generate a random index\n return values[randomIndex] as CTCSS; // Return the randomly selected value\n}\n\nexport const radioChannelFactory = Factory.define<RadioChannel>(({ sequence }) => ({\n id: RadioChannelId(sequence.toString()),\n name: `c-${sequence}`,\n transmitFrequency: Frequency(144000),\n receiveFrequency: Frequency(144000),\n transmitTone: { type: RadioToneType.CTCSS, tone: getRandomCTCSS() },\n receiveTone: { type: RadioToneType.CTCSS, tone: getRandomCTCSS() },\n}));\n"]}
@@ -0,0 +1,4 @@
1
+ import { RadioProgrammedChannel } from '@springfield/ham-radio-api';
2
+ import { Factory } from 'fishery';
3
+ export declare const radioProgrammedChannelFactory: Factory<RadioProgrammedChannel, any, RadioProgrammedChannel, import("fishery").DeepPartialObject<RadioProgrammedChannel>>;
4
+ //# sourceMappingURL=radio-programmed-channel-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-programmed-channel-factory.d.ts","sourceRoot":"","sources":["../../src/test-utils/radio-programmed-channel-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,eAAO,MAAM,6BAA6B,2HAGvC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Factory } from 'fishery';
2
+ import { radioChannelFactory } from './radio-channel-factory.js';
3
+ export const radioProgrammedChannelFactory = Factory.define(({ sequence }) => ({
4
+ channelNumber: sequence,
5
+ radioChannel: radioChannelFactory.build(),
6
+ }));
7
+ //# sourceMappingURL=radio-programmed-channel-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-programmed-channel-factory.js","sourceRoot":"","sources":["../../src/test-utils/radio-programmed-channel-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IACrG,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,mBAAmB,CAAC,KAAK,EAAE;CAC1C,CAAC,CAAC,CAAC","sourcesContent":["import { RadioProgrammedChannel } from '@springfield/ham-radio-api';\nimport { Factory } from 'fishery';\nimport { radioChannelFactory } from './radio-channel-factory.js';\n\nexport const radioProgrammedChannelFactory = Factory.define<RadioProgrammedChannel>(({ sequence }) => ({\n channelNumber: sequence,\n radioChannel: radioChannelFactory.build(),\n}));\n"]}