@hedia/types 2.1.36 → 2.1.37-alpha.3

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.
@@ -3,5 +3,7 @@ export * from "./boluscalculator/boluscalculator";
3
3
  export * from "./logbook/logbook";
4
4
  export * from "./services/outbound/email";
5
5
  export * from "./services/outbound/notification";
6
+ export * from "./services/rpc/auth";
7
+ export * from "./services/rpc/logbook";
6
8
  export * from "./userdetails/userdetails";
7
9
  export * from "./usersettings/usersettings";
@@ -15,6 +15,8 @@ __exportStar(require("./boluscalculator/boluscalculator"), exports);
15
15
  __exportStar(require("./logbook/logbook"), exports);
16
16
  __exportStar(require("./services/outbound/email"), exports);
17
17
  __exportStar(require("./services/outbound/notification"), exports);
18
+ __exportStar(require("./services/rpc/auth"), exports);
19
+ __exportStar(require("./services/rpc/logbook"), exports);
18
20
  __exportStar(require("./userdetails/userdetails"), exports);
19
21
  __exportStar(require("./usersettings/usersettings"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,4DAA0C;AAC1C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,oDAAkC;AAClC,4DAA0C;AAC1C,mEAAiD;AACjD,sDAAoC;AACpC,yDAAuC;AACvC,4DAA0C;AAC1C,8DAA4C"}
@@ -117,20 +117,5 @@ export declare namespace Logbook {
117
117
  utc_timezone_offset: string | null;
118
118
  smart_pen_sync_timestamp?: string;
119
119
  }
120
- interface IEditedUUID {
121
- oldUUID: string;
122
- newUUID: string;
123
- }
124
- interface IClientSyncObject {
125
- last_sync_timestamp: string;
126
- created: Array<ILogbookEntry>;
127
- edited: Array<IEditedUUID>;
128
- deleted: Array<string>;
129
- }
130
- interface IBackendSyncObject {
131
- last_sync_timestamp: string;
132
- created: Array<ILogbookEntry>;
133
- deleted: Array<string>;
134
- }
135
120
  }
136
121
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../types/logbook/logbook.ts"],"names":[],"mappings":";;;AAAA,IAAiB,OAAO,CA2IvB;AA3ID,WAAiB,OAAO;IACvB,IAAiB,KAAK,CASrB;IATD,WAAiB,KAAK;QACrB,uEAAuE;QACvE,IAAY,QAMX;QAND,WAAY,QAAQ;YACnB,qCAAO,CAAA;YACP,6CAAW,CAAA;YACX,6CAAW,CAAA;YACX,iDAAa,CAAA;YACb,yCAAS,CAAA;QACV,CAAC,EANW,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAMnB;IACF,CAAC,EATgB,KAAK,GAAL,aAAK,KAAL,aAAK,QASrB;AAiIF,CAAC,EA3IgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA2IvB"}
1
+ {"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../types/logbook/logbook.ts"],"names":[],"mappings":";;;AAAA,IAAiB,OAAO,CAyHvB;AAzHD,WAAiB,OAAO;IACvB,IAAiB,KAAK,CASrB;IATD,WAAiB,KAAK;QACrB,uEAAuE;QACvE,IAAY,QAMX;QAND,WAAY,QAAQ;YACnB,qCAAO,CAAA;YACP,6CAAW,CAAA;YACX,6CAAW,CAAA;YACX,iDAAa,CAAA;YACb,yCAAS,CAAA;QACV,CAAC,EANW,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAMnB;IACF,CAAC,EATgB,KAAK,GAAL,aAAK,KAAL,aAAK,QASrB;AA+GF,CAAC,EAzHgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAyHvB"}
@@ -0,0 +1,15 @@
1
+ import { StatusCode } from "../../enums";
2
+ export declare namespace AuthService {
3
+ namespace Types {
4
+ interface ILoginRequest {
5
+ email: string;
6
+ password: string;
7
+ }
8
+ interface ILoginResponse {
9
+ id: number;
10
+ token: string;
11
+ status: StatusCode;
12
+ message: string;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../types/services/rpc/auth.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { Logbook } from "../../logbook/logbook";
2
+ export declare namespace LogbookService {
3
+ namespace Types {
4
+ interface IEditedUUID {
5
+ oldUUID: string;
6
+ newUUID: string;
7
+ }
8
+ export interface ILogbookServiceRequest {
9
+ last_sync_timestamp: string;
10
+ created: Array<Logbook.Types.ILogbookEntry>;
11
+ edited: Array<IEditedUUID>;
12
+ deleted: Array<string>;
13
+ }
14
+ export interface ILogbookServiceResponse {
15
+ last_sync_timestamp: string;
16
+ created: Array<Logbook.Types.ILogbookEntry>;
17
+ deleted: Array<string>;
18
+ }
19
+ export {};
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=logbook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logbook.js","sourceRoot":"","sources":["../../../../types/services/rpc/logbook.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.36",
4
- "alphaVersionCounter": "2",
3
+ "version": "2.1.37-alpha.3",
4
+ "alphaVersionCounter": "3",
5
5
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
6
6
  "main": "dist/index.js",
7
7
  "repository": {
package/types/index.ts CHANGED
@@ -3,5 +3,7 @@ export * from "./boluscalculator/boluscalculator";
3
3
  export * from "./logbook/logbook";
4
4
  export * from "./services/outbound/email";
5
5
  export * from "./services/outbound/notification";
6
+ export * from "./services/rpc/auth";
7
+ export * from "./services/rpc/logbook";
6
8
  export * from "./userdetails/userdetails";
7
9
  export * from "./usersettings/usersettings";
@@ -118,23 +118,5 @@ export namespace Logbook {
118
118
  utc_timezone_offset: string | null;
119
119
  smart_pen_sync_timestamp?: string;
120
120
  }
121
-
122
- export interface IEditedUUID {
123
- oldUUID: string;
124
- newUUID: string;
125
- }
126
-
127
- export interface IClientSyncObject {
128
- last_sync_timestamp: string;
129
- created: Array<ILogbookEntry>;
130
- edited: Array<IEditedUUID>;
131
- deleted: Array<string>;
132
- }
133
-
134
- export interface IBackendSyncObject {
135
- last_sync_timestamp: string;
136
- created: Array<ILogbookEntry>;
137
- deleted: Array<string>;
138
- }
139
121
  }
140
122
  }
@@ -0,0 +1,16 @@
1
+ import { StatusCode } from "../../enums";
2
+
3
+ export namespace AuthService {
4
+ export namespace Types {
5
+ export interface ILoginRequest {
6
+ email: string;
7
+ password: string;
8
+ }
9
+ export interface ILoginResponse {
10
+ id: number;
11
+ token: string;
12
+ status: StatusCode;
13
+ message: string;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,23 @@
1
+ import { Logbook } from "../../logbook/logbook";
2
+
3
+ export namespace LogbookService {
4
+ export namespace Types {
5
+ interface IEditedUUID {
6
+ oldUUID: string;
7
+ newUUID: string;
8
+ }
9
+
10
+ export interface ILogbookServiceRequest {
11
+ last_sync_timestamp: string;
12
+ created: Array<Logbook.Types.ILogbookEntry>;
13
+ edited: Array<IEditedUUID>;
14
+ deleted: Array<string>;
15
+ }
16
+
17
+ export interface ILogbookServiceResponse {
18
+ last_sync_timestamp: string;
19
+ created: Array<Logbook.Types.ILogbookEntry>;
20
+ deleted: Array<string>;
21
+ }
22
+ }
23
+ }