@springfield/ham-radio-api 0.9.0 → 0.11.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,6 +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
8
  export * from './radio/module.js';
8
9
  export * from './radio/program.js';
9
10
  export * from './radio/programmed-channel.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,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,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,6 +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
24
  __exportStar(require("./radio/module.js"), exports);
24
25
  __exportStar(require("./radio/program.js"), exports);
25
26
  __exportStar(require("./radio/programmed-channel.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,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,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAE9C,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
@@ -1,6 +1,5 @@
1
1
  export interface RadioManufacturer {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
- models: string[];
5
4
  }
6
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;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
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"}
@@ -1,7 +1,9 @@
1
1
  import { RadioManufacturer } from './manufacturer';
2
2
  import { RadioDriver } from './driver';
3
+ import { RadioModel } from './model';
3
4
  export interface RadioModule {
4
5
  getManufacturer(): RadioManufacturer;
6
+ getModels(filter?: string[]): RadioModel[];
5
7
  getDriver(modelName: string): RadioDriver;
6
8
  }
7
9
  //# sourceMappingURL=module.d.ts.map
@@ -1 +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,MAAM,WAAW,WAAW;IAC1B,eAAe,IAAI,iBAAiB,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC;CAC3C"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "0.9.0",
3
+ "version": "0.11.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,6 +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
9
  export * from './radio/module.js';
9
10
  export * from './radio/program.js';
10
11
  export * from './radio/programmed-channel.js';
@@ -1,5 +1,4 @@
1
1
  export interface RadioManufacturer {
2
- id?: string;
2
+ moduleId: string;
3
3
  name: string;
4
- models: string[];
5
4
  }
@@ -0,0 +1,5 @@
1
+ export interface RadioModel {
2
+ moduleId: string;
3
+ name: string;
4
+ schema: any;
5
+ }
@@ -1,6 +1,9 @@
1
1
  import { RadioManufacturer } from './manufacturer';
2
2
  import { RadioDriver } from './driver';
3
+ import { RadioModel } from './model';
4
+
3
5
  export interface RadioModule {
4
6
  getManufacturer(): RadioManufacturer;
7
+ getModels(filter?: string[]): RadioModel[];
5
8
  getDriver(modelName: string): RadioDriver;
6
9
  }