@hedia/types 2.1.53-alpha.0 → 2.1.54-alpha.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.
@@ -62,7 +62,7 @@ jobs:
62
62
  - run: npm ci --ignore-scripts
63
63
  - run: npm run pkg-json-lint
64
64
  - run: npm run prettier
65
- - run: npm run lint
65
+ - run: npm run tslint
66
66
  - run: npm run tsc
67
67
 
68
68
  ## Bump version (if needed) & publish alpha package
@@ -0,0 +1,19 @@
1
+ export declare namespace Cgm {
2
+ namespace Types {
3
+ export interface ICgmReading {
4
+ userId: number;
5
+ timestamp: Date;
6
+ retrievalTimestamp: Date;
7
+ glucoseValueMillimolar: number;
8
+ manufacturer: Manufacturers;
9
+ model: Models;
10
+ }
11
+ enum Manufacturers {
12
+ MENARINI = "menarini"
13
+ }
14
+ enum Models {
15
+ GLUCOMEN_DAY = "glucomen_day"
16
+ }
17
+ export {};
18
+ }
19
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cgm = void 0;
4
+ var Cgm;
5
+ (function (Cgm) {
6
+ let Types;
7
+ (function (Types) {
8
+ let Manufacturers;
9
+ (function (Manufacturers) {
10
+ Manufacturers["MENARINI"] = "menarini";
11
+ })(Manufacturers || (Manufacturers = {}));
12
+ let Models;
13
+ (function (Models) {
14
+ Models["GLUCOMEN_DAY"] = "glucomen_day";
15
+ })(Models || (Models = {}));
16
+ })(Types = Cgm.Types || (Cgm.Types = {}));
17
+ })(Cgm = exports.Cgm || (exports.Cgm = {}));
18
+ //# sourceMappingURL=cgm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cgm.js","sourceRoot":"","sources":["../../../types/cgm/cgm.ts"],"names":[],"mappings":";;;AAAA,IAAiB,GAAG,CAmBnB;AAnBD,WAAiB,GAAG;IACnB,IAAiB,KAAK,CAiBrB;IAjBD,WAAiB,KAAK;QAUrB,IAAK,aAEJ;QAFD,WAAK,aAAa;YACjB,sCAAqB,CAAA;QACtB,CAAC,EAFI,aAAa,KAAb,aAAa,QAEjB;QAED,IAAK,MAEJ;QAFD,WAAK,MAAM;YACV,uCAA6B,CAAA;QAC9B,CAAC,EAFI,MAAM,KAAN,MAAM,QAEV;IACF,CAAC,EAjBgB,KAAK,GAAL,SAAK,KAAL,SAAK,QAiBrB;AACF,CAAC,EAnBgB,GAAG,GAAH,WAAG,KAAH,WAAG,QAmBnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.53-alpha.0",
3
+ "version": "2.1.54-alpha.0",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -8,13 +8,17 @@
8
8
  "url": "git+ssh://git@github.com:hedia-team/hedia-types.git"
9
9
  },
10
10
  "scripts": {
11
+ "tsc": "tsc",
12
+ "build": "tsc --build",
11
13
  "clean": "tsc --build --clean",
12
- "lint": "tslint --project .",
14
+ "tslint": "tslint --project .",
15
+ "tslint-fix": "tslint --fix --project . ",
16
+ "prettier": "prettier --check \"types/**/*.{ts,tsx}\"",
17
+ "prettier-fix": "prettier --write \"types/**/*.{ts,tsx}\"",
13
18
  "pkg-json-lint": "npmPkgJsonLint .",
19
+ "package-audit": "npm-audit --high --critical",
14
20
  "postpublish": "npm run clean",
15
- "prepublishOnly": "npm ci && npm run tsc",
16
- "prettier": "prettier --check \"types/**/*.{ts,tsx}\"",
17
- "tsc": "tsc --build"
21
+ "prepublishOnly": "npm ci && npm run tsc"
18
22
  },
19
23
  "keywords": [],
20
24
  "author": "Hedia",
@@ -0,0 +1,20 @@
1
+ export namespace Cgm {
2
+ export namespace Types {
3
+ export interface ICgmReading {
4
+ userId: number;
5
+ timestamp: Date;
6
+ retrievalTimestamp: Date;
7
+ glucoseValueMillimolar: number;
8
+ manufacturer: Manufacturers;
9
+ model: Models;
10
+ }
11
+
12
+ enum Manufacturers {
13
+ MENARINI = "menarini",
14
+ }
15
+
16
+ enum Models {
17
+ GLUCOMEN_DAY = "glucomen_day",
18
+ }
19
+ }
20
+ }