@springfield/ham-radio-api 0.8.0 → 0.10.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
@@ -4,7 +4,7 @@ export * from './radio/channel.js';
4
4
  export * from './radio/connection.js';
5
5
  export * from './radio/driver.js';
6
6
  export * from './radio/manufacturer.js';
7
- export * from './radio/model.js';
7
+ export * from './radio/module.js';
8
8
  export * from './radio/program.js';
9
9
  export * from './radio/programmed-channel.js';
10
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,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"}
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,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"}
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ __exportStar(require("./radio/channel.js"), exports);
20
20
  __exportStar(require("./radio/connection.js"), exports);
21
21
  __exportStar(require("./radio/driver.js"), exports);
22
22
  __exportStar(require("./radio/manufacturer.js"), exports);
23
- __exportStar(require("./radio/model.js"), exports);
23
+ __exportStar(require("./radio/module.js"), exports);
24
24
  __exportStar(require("./radio/program.js"), exports);
25
25
  __exportStar(require("./radio/programmed-channel.js"), exports);
26
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,+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"}
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,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAE9C,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
@@ -1,6 +1,6 @@
1
- import { RadioModel } from './model.js';
2
1
  export interface RadioConnection {
3
2
  serialPortPath: string;
4
- model: RadioModel;
3
+ manufacturerId: string;
4
+ model: string;
5
5
  }
6
6
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/radio/connection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,5 +1,5 @@
1
1
  export interface RadioManufacturer {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
4
  }
5
5
  //# sourceMappingURL=manufacturer.d.ts.map
@@ -1 +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,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"manufacturer.d.ts","sourceRoot":"","sources":["../../src/radio/manufacturer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,6 +1,6 @@
1
1
  export interface RadioModel {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
- manufactureId: string;
4
+ schema: any;
5
5
  }
6
6
  //# sourceMappingURL=model.d.ts.map
@@ -1 +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,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;CACb"}
@@ -0,0 +1,9 @@
1
+ import { RadioManufacturer } from './manufacturer';
2
+ import { RadioDriver } from './driver';
3
+ import { RadioModel } from './model';
4
+ export interface RadioModule {
5
+ getManufacturer(): RadioManufacturer;
6
+ getModels(filter?: string[]): RadioModel[];
7
+ getDriver(modelName: string): RadioDriver;
8
+ }
9
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,eAAe,IAAI,iBAAiB,CAAC;IACrC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;IAC3C,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC;CAC3C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "author": "Bryan Hunt",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ export * from './radio/channel.js';
5
5
  export * from './radio/connection.js';
6
6
  export * from './radio/driver.js';
7
7
  export * from './radio/manufacturer.js';
8
- export * from './radio/model.js';
8
+ export * from './radio/module.js';
9
9
  export * from './radio/program.js';
10
10
  export * from './radio/programmed-channel.js';
11
11
  export * from './radio/progress-indicator.js';
@@ -1,6 +1,5 @@
1
- import { RadioModel } from './model.js';
2
-
3
1
  export interface RadioConnection {
4
2
  serialPortPath: string;
5
- model: RadioModel;
3
+ manufacturerId: string;
4
+ model: string;
6
5
  }
@@ -1,4 +1,4 @@
1
1
  export interface RadioManufacturer {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  export interface RadioModel {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
- manufactureId: string;
4
+ schema: any;
5
5
  }
@@ -0,0 +1,9 @@
1
+ import { RadioManufacturer } from './manufacturer';
2
+ import { RadioDriver } from './driver';
3
+ import { RadioModel } from './model';
4
+
5
+ export interface RadioModule {
6
+ getManufacturer(): RadioManufacturer;
7
+ getModels(filter?: string[]): RadioModel[];
8
+ getDriver(modelName: string): RadioDriver;
9
+ }