@springfield/ham-radio-api 4.0.0 → 5.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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## [5.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v4.0.0...v5.0.0) (2025-04-06)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * id branded types need to be string and not number
7
+
8
+ ### Features
9
+
10
+ * id branded types need to be string and not number ([3a0b68d](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/commit/3a0b68def4fe84e87ea3dc64a1fa09a8d8143a5c))
11
+
1
12
  ## [4.0.0](https://gitlab.com/springfield-ham-radio/app/ham-radio-api/compare/v3.0.0...v4.0.0) (2025-04-06)
2
13
 
3
14
 
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type LicenseClassId = Brand<number, 'license-class-id'>;
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 +1 @@
1
- {"version":3,"file":"license-class-id.js","sourceRoot":"","sources":["../../src/branded-types/license-class-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type LicenseClassId = Brand<number, 'license-class-id'>;\nexport const LicenseClassId = make<LicenseClassId>();\n"]}
1
+ {"version":3,"file":"license-class-id.js","sourceRoot":"","sources":["../../src/branded-types/license-class-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type LicenseClassId = Brand<string, 'license-class-id'>;\nexport const LicenseClassId = make<LicenseClassId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type RadioChannelId = Brand<number, 'radio-channel-id'>;
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 +1 @@
1
- {"version":3,"file":"radio-channel-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-channel-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioChannelId = Brand<number, 'radio-channel-id'>;\nexport const RadioChannelId = make<RadioChannelId>();\n"]}
1
+ {"version":3,"file":"radio-channel-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-channel-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioChannelId = Brand<string, 'radio-channel-id'>;\nexport const RadioChannelId = make<RadioChannelId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type RadioId = Brand<number, 'radio-id'>;
2
+ export type RadioId = Brand<string, 'radio-id'>;
3
3
  export declare const RadioId: import("ts-brand").Brander<RadioId>;
4
4
  //# sourceMappingURL=radio-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,EAAW,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioId = Brand<number, 'radio-id'>;\nexport const RadioId = make<RadioId>();\n"]}
1
+ {"version":3,"file":"radio-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,EAAW,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioId = Brand<string, 'radio-id'>;\nexport const RadioId = make<RadioId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type RadioModelId = Brand<number, 'radio-model-id'>;
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 +1 @@
1
- {"version":3,"file":"radio-model-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-model-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,EAAgB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioModelId = Brand<number, 'radio-model-id'>;\nexport const RadioModelId = make<RadioModelId>();\n"]}
1
+ {"version":3,"file":"radio-model-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-model-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,EAAgB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioModelId = Brand<string, 'radio-model-id'>;\nexport const RadioModelId = make<RadioModelId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type RadioModuleId = Brand<number, 'radio-module-id'>;
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 +1 @@
1
- {"version":3,"file":"radio-module-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-module-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,EAAiB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioModuleId = Brand<number, 'radio-module-id'>;\nexport const RadioModuleId = make<RadioModuleId>();\n"]}
1
+ {"version":3,"file":"radio-module-id.js","sourceRoot":"","sources":["../../src/branded-types/radio-module-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,EAAiB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type RadioModuleId = Brand<string, 'radio-module-id'>;\nexport const RadioModuleId = make<RadioModuleId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type SpectrumBandId = Brand<number, 'spectrum-band-id'>;
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 +1 @@
1
- {"version":3,"file":"spectrum-band-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-band-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type SpectrumBandId = Brand<number, 'spectrum-band-id'>;\nexport const SpectrumBandId = make<SpectrumBandId>();\n"]}
1
+ {"version":3,"file":"spectrum-band-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-band-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type SpectrumBandId = Brand<string, 'spectrum-band-id'>;\nexport const SpectrumBandId = make<SpectrumBandId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type SpectrumModeId = Brand<number, 'spectrum-mode-id'>;
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 +1 @@
1
- {"version":3,"file":"spectrum-mode-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-mode-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type SpectrumModeId = Brand<number, 'spectrum-mode-id'>;\nexport const SpectrumModeId = make<SpectrumModeId>();\n"]}
1
+ {"version":3,"file":"spectrum-mode-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-mode-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,EAAkB,CAAC","sourcesContent":["import { Brand, make } from 'ts-brand';\n\nexport type SpectrumModeId = Brand<string, 'spectrum-mode-id'>;\nexport const SpectrumModeId = make<SpectrumModeId>();\n"]}
@@ -1,4 +1,4 @@
1
1
  import { Brand } from 'ts-brand';
2
- export type SpectrumPrivilegeId = Brand<number, 'spectrum-privilege-id'>;
2
+ export type SpectrumPrivilegeId = Brand<string, 'spectrum-privilege-id'>;
3
3
  export declare const SpectrumPrivilegeId: import("ts-brand").Brander<SpectrumPrivilegeId>;
4
4
  //# sourceMappingURL=spectrum-privlege-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spectrum-privlege-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-privlege-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<number, 'spectrum-privilege-id'>;\nexport const SpectrumPrivilegeId = make<SpectrumPrivilegeId>();\n"]}
1
+ {"version":3,"file":"spectrum-privlege-id.js","sourceRoot":"","sources":["../../src/branded-types/spectrum-privlege-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "author": "Bryan Hunt",
5
5
  "packageManager": "yarn@4.8.1",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type LicenseClassId = Brand<number, 'license-class-id'>;
3
+ export type LicenseClassId = Brand<string, 'license-class-id'>;
4
4
  export const LicenseClassId = make<LicenseClassId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type RadioChannelId = Brand<number, 'radio-channel-id'>;
3
+ export type RadioChannelId = Brand<string, 'radio-channel-id'>;
4
4
  export const RadioChannelId = make<RadioChannelId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type RadioId = Brand<number, 'radio-id'>;
3
+ export type RadioId = Brand<string, 'radio-id'>;
4
4
  export const RadioId = make<RadioId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type RadioModelId = Brand<number, 'radio-model-id'>;
3
+ export type RadioModelId = Brand<string, 'radio-model-id'>;
4
4
  export const RadioModelId = make<RadioModelId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type RadioModuleId = Brand<number, 'radio-module-id'>;
3
+ export type RadioModuleId = Brand<string, 'radio-module-id'>;
4
4
  export const RadioModuleId = make<RadioModuleId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type SpectrumBandId = Brand<number, 'spectrum-band-id'>;
3
+ export type SpectrumBandId = Brand<string, 'spectrum-band-id'>;
4
4
  export const SpectrumBandId = make<SpectrumBandId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type SpectrumModeId = Brand<number, 'spectrum-mode-id'>;
3
+ export type SpectrumModeId = Brand<string, 'spectrum-mode-id'>;
4
4
  export const SpectrumModeId = make<SpectrumModeId>();
@@ -1,4 +1,4 @@
1
1
  import { Brand, make } from 'ts-brand';
2
2
 
3
- export type SpectrumPrivilegeId = Brand<number, 'spectrum-privilege-id'>;
3
+ export type SpectrumPrivilegeId = Brand<string, 'spectrum-privilege-id'>;
4
4
  export const SpectrumPrivilegeId = make<SpectrumPrivilegeId>();