@springfield/ham-radio-api 0.16.0 → 0.17.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
@@ -2,13 +2,13 @@ export * from './license/class.js';
2
2
  export * from './radio/channel.js';
3
3
  export * from './radio/connection.js';
4
4
  export * from './radio/driver.js';
5
- export * from './radio/manufacturer.js';
6
5
  export * from './radio/memory.js';
7
6
  export * from './radio/model.js';
8
7
  export * from './radio/module.js';
9
8
  export * from './radio/program.js';
10
9
  export * from './radio/programmed-channel.js';
11
10
  export * from './radio/progress-indicator.js';
11
+ export * from './radio/schema.js';
12
12
  export * from './radio/settings.js';
13
13
  export * from './radio/radio.js';
14
14
  export * from './radio/tone.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,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,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,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAA"}
package/dist/index.js CHANGED
@@ -18,13 +18,13 @@ __exportStar(require("./license/class.js"), exports);
18
18
  __exportStar(require("./radio/channel.js"), exports);
19
19
  __exportStar(require("./radio/connection.js"), exports);
20
20
  __exportStar(require("./radio/driver.js"), exports);
21
- __exportStar(require("./radio/manufacturer.js"), exports);
22
21
  __exportStar(require("./radio/memory.js"), exports);
23
22
  __exportStar(require("./radio/model.js"), exports);
24
23
  __exportStar(require("./radio/module.js"), exports);
25
24
  __exportStar(require("./radio/program.js"), exports);
26
25
  __exportStar(require("./radio/programmed-channel.js"), exports);
27
26
  __exportStar(require("./radio/progress-indicator.js"), exports);
27
+ __exportStar(require("./radio/schema.js"), exports);
28
28
  __exportStar(require("./radio/settings.js"), exports);
29
29
  __exportStar(require("./radio/radio.js"), exports);
30
30
  __exportStar(require("./radio/tone.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,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAC9C,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAEhC,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,kDAAgC;AAEhC,qDAAmC;AACnC,wDAAsC;AACtC,qDAAmC;AACnC,0DAAuC"}
@@ -1,6 +1,5 @@
1
1
  export interface RadioConnection {
2
2
  serialPortPath: string;
3
- manufacturerId: string;
4
3
  modelId: string;
5
4
  }
6
5
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +1 @@
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,OAAO,EAAE,MAAM,CAAC;CACjB"}
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,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1,5 +1,5 @@
1
1
  export interface RadioMemory {
2
- radioId?: string;
2
+ radioModelId: string;
3
3
  contents: any;
4
4
  }
5
5
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC;CACf"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/radio/memory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;CACf"}
@@ -2,7 +2,6 @@ export interface RadioModel {
2
2
  id: string;
3
3
  moduleId: string;
4
4
  name: string;
5
- settingsSchema: any;
6
- channelSchema: any;
5
+ manufacturer: string;
7
6
  }
8
7
  //# 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,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC;CACpB"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/radio/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1,9 +1,10 @@
1
- import { RadioManufacturer } from './manufacturer';
2
1
  import { RadioDriver } from './driver';
3
2
  import { RadioModel } from './model';
3
+ import { RadioSchema } from './schema';
4
4
  export interface RadioModule {
5
- getManufacturer(): RadioManufacturer;
6
- getModels(filter?: string[]): Promise<RadioModel[]>;
5
+ getId(): string;
6
+ getModels(): RadioModel[];
7
+ getSchema(modelId: string): Promise<RadioSchema>;
7
8
  getDriver(modelId: string): RadioDriver;
8
9
  }
9
10
  //# 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,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,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACpD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/radio/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,KAAK,IAAI,MAAM,CAAC;IAChB,SAAS,IAAI,UAAU,EAAE,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC"}
@@ -0,0 +1,6 @@
1
+ export interface RadioSchema {
2
+ modelId: string;
3
+ settingsSchema: any;
4
+ channelSchema: any;
5
+ }
6
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/radio/schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,GAAG,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/radio/schema.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springfield/ham-radio-api",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "author": "Bryan Hunt",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -3,13 +3,13 @@ export * from './license/class.js';
3
3
  export * from './radio/channel.js';
4
4
  export * from './radio/connection.js';
5
5
  export * from './radio/driver.js';
6
- export * from './radio/manufacturer.js';
7
6
  export * from './radio/memory.js';
8
7
  export * from './radio/model.js';
9
8
  export * from './radio/module.js';
10
9
  export * from './radio/program.js';
11
10
  export * from './radio/programmed-channel.js';
12
11
  export * from './radio/progress-indicator.js';
12
+ export * from './radio/schema.js';
13
13
  export * from './radio/settings.js';
14
14
  export * from './radio/radio.js';
15
15
  export * from './radio/tone.js';
@@ -1,5 +1,4 @@
1
1
  export interface RadioConnection {
2
2
  serialPortPath: string;
3
- manufacturerId: string;
4
3
  modelId: string;
5
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface RadioMemory {
2
- radioId?: string;
2
+ radioModelId: string;
3
3
  contents: any;
4
4
  }
@@ -2,6 +2,5 @@ export interface RadioModel {
2
2
  id: string;
3
3
  moduleId: string;
4
4
  name: string;
5
- settingsSchema: any;
6
- channelSchema: any;
5
+ manufacturer: string;
7
6
  }
@@ -1,9 +1,10 @@
1
- import { RadioManufacturer } from './manufacturer';
2
1
  import { RadioDriver } from './driver';
3
2
  import { RadioModel } from './model';
3
+ import { RadioSchema } from './schema';
4
4
 
5
5
  export interface RadioModule {
6
- getManufacturer(): RadioManufacturer;
7
- getModels(filter?: string[]): Promise<RadioModel[]>;
6
+ getId(): string;
7
+ getModels(): RadioModel[];
8
+ getSchema(modelId: string): Promise<RadioSchema>;
8
9
  getDriver(modelId: string): RadioDriver;
9
10
  }
@@ -0,0 +1,5 @@
1
+ export interface RadioSchema {
2
+ modelId: string;
3
+ settingsSchema: any;
4
+ channelSchema: any;
5
+ }
@@ -1,4 +0,0 @@
1
- export interface RadioManufacturer {
2
- moduleId: string;
3
- name: string;
4
- }