@springfield/ham-radio-api 0.4.0 → 0.5.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/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export * from './license/class.js';
2
- export * from './radio/channel.js';
3
2
  export * from './radio/channel-reference.js';
3
+ export * from './radio/channel.js';
4
+ export * from './radio/connection.js';
4
5
  export * from './radio/driver.js';
6
+ export * from './radio/manufacturer.js';
7
+ export * from './radio/model.js';
5
8
  export * from './radio/program.js';
6
9
  export * from './radio/programmed-channel.js';
7
10
  export * from './radio/progress-indicator.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA"}
package/dist/index.js CHANGED
@@ -15,9 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./license/class.js"), exports);
18
- __exportStar(require("./radio/channel.js"), exports);
19
18
  __exportStar(require("./radio/channel-reference.js"), exports);
19
+ __exportStar(require("./radio/channel.js"), exports);
20
+ __exportStar(require("./radio/connection.js"), exports);
20
21
  __exportStar(require("./radio/driver.js"), exports);
22
+ __exportStar(require("./radio/manufacturer.js"), exports);
23
+ __exportStar(require("./radio/model.js"), exports);
21
24
  __exportStar(require("./radio/program.js"), exports);
22
25
  __exportStar(require("./radio/programmed-channel.js"), exports);
23
26
  __exportStar(require("./radio/progress-indicator.js"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AACnC,+DAA6C;AAC7C,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAE9C,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,+DAA6C;AAC7C,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,mDAAiC;AACjC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAE9C,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
@@ -0,0 +1,6 @@
1
+ import { RadioModel } from './model.js';
2
+ export interface RadioConnection {
3
+ serialPortPath: string;
4
+ model: RadioModel;
5
+ }
6
+ //# sourceMappingURL=connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface RadioManufacturer {
2
+ id?: string;
3
+ manufacturerName: string;
4
+ }
5
+ //# sourceMappingURL=manufacturer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manufacturer.d.ts","sourceRoot":"","sources":["../../src/radio/manufacturer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=manufacturer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../src/radio/manufacturer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface RadioModel {
2
+ id?: string;
3
+ modelName: string;
4
+ manufactureId: string;
5
+ }
6
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ export interface RadioSettingUi {
2
+ type: string;
3
+ }
4
+ export interface ToggleRadioSettingType {
5
+ type: "toggle";
6
+ }
7
+ export interface NumberRadioSettingType {
8
+ type: "number";
9
+ min: number;
10
+ max: number;
11
+ }
12
+ export interface SelectRadioSettingType {
13
+ type: "select";
14
+ options: string[];
15
+ }
16
+ export interface RadioSettingSpecification {
17
+ id: string;
18
+ radioTypeId: string;
19
+ name: string;
20
+ description: string;
21
+ memoryAddress: number;
22
+ ui: RadioSettingUi;
23
+ }
24
+ //# sourceMappingURL=setting-specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting-specification.d.ts","sourceRoot":"","sources":["../../src/radio/setting-specification.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,cAAc,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=setting-specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting-specification.js","sourceRoot":"","sources":["../../src/radio/setting-specification.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface RadioSetting<T> {
2
+ specificationId: string;
3
+ value: T;
4
+ }
5
+ //# sourceMappingURL=setting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../src/radio/setting.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC;CACV"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.js","sourceRoot":"","sources":["../../src/radio/setting.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "author": "Bryan Hunt",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  export * from './license/class.js';
2
2
 
3
- export * from './radio/channel.js';
4
3
  export * from './radio/channel-reference.js';
4
+ export * from './radio/channel.js';
5
+ export * from './radio/connection.js';
5
6
  export * from './radio/driver.js';
7
+ export * from './radio/manufacturer.js';
8
+ export * from './radio/model.js';
6
9
  export * from './radio/program.js';
7
10
  export * from './radio/programmed-channel.js';
8
11
  export * from './radio/progress-indicator.js';
@@ -0,0 +1,6 @@
1
+ import { RadioModel } from './model.js';
2
+
3
+ export interface RadioConnection {
4
+ serialPortPath: string;
5
+ model: RadioModel;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface RadioManufacturer {
2
+ id?: string;
3
+ manufacturerName: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface RadioModel {
2
+ id?: string;
3
+ modelName: string;
4
+ manufactureId: string;
5
+ }
@@ -0,0 +1,27 @@
1
+ export interface RadioSettingUi {
2
+ type: string;
3
+ }
4
+
5
+ export interface ToggleRadioSettingType {
6
+ type: "toggle";
7
+ }
8
+
9
+ export interface NumberRadioSettingType {
10
+ type: "number";
11
+ min: number;
12
+ max: number;
13
+ }
14
+
15
+ export interface SelectRadioSettingType {
16
+ type: "select";
17
+ options: string[];
18
+ }
19
+
20
+ export interface RadioSettingSpecification {
21
+ id: string;
22
+ radioTypeId: string;
23
+ name: string;
24
+ description: string;
25
+ memoryAddress: number;
26
+ ui: RadioSettingUi;
27
+ }
@@ -0,0 +1,4 @@
1
+ export interface RadioSetting<T> {
2
+ specificationId: string;
3
+ value: T;
4
+ }