@hedia/types 2.1.44-alpha.0 → 2.1.44-alpha.1

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.
@@ -4,7 +4,7 @@ on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened]
7
+ types: [opened, edited, reopened]
8
8
 
9
9
  env:
10
10
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
@@ -5,5 +5,6 @@ export * from "./services/outbound/email";
5
5
  export * from "./services/outbound/notification";
6
6
  export * from "./services/rpc/auth";
7
7
  export * from "./services/rpc/logbook";
8
+ export * from "./services/events/logbook";
8
9
  export * from "./userdetails/userdetails";
9
10
  export * from "./usersettings/usersettings";
@@ -17,6 +17,7 @@ __exportStar(require("./services/outbound/email"), exports);
17
17
  __exportStar(require("./services/outbound/notification"), exports);
18
18
  __exportStar(require("./services/rpc/auth"), exports);
19
19
  __exportStar(require("./services/rpc/logbook"), exports);
20
+ __exportStar(require("./services/events/logbook"), exports);
20
21
  __exportStar(require("./userdetails/userdetails"), exports);
21
22
  __exportStar(require("./usersettings/usersettings"), exports);
22
23
  //# 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,sDAAoC;AACpC,yDAAuC;AACvC,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,4DAA0C;AAC1C,8DAA4C"}
@@ -0,0 +1,11 @@
1
+ import { Logbook } from "../../logbook/logbook";
2
+ export declare namespace LogbookEvents {
3
+ interface CreateLogbook {
4
+ logbook: Logbook.Types.ILogbookEntry;
5
+ userId: number;
6
+ }
7
+ interface DeleteLogbook {
8
+ uuid: string;
9
+ userId: number;
10
+ }
11
+ }
@@ -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/events/logbook.ts"],"names":[],"mappings":""}
@@ -5,24 +5,25 @@ export declare namespace LogbookService {
5
5
  oldUUID: string;
6
6
  newUUID: string;
7
7
  }
8
- export interface ILogbookSyncRequest {
9
- lastSyncTimestamp: string;
8
+ interface Cursor {
9
+ created?: CreatedCursor;
10
+ deleted?: string;
11
+ }
12
+ interface CreatedCursor {
13
+ cursor: string;
14
+ hasMore: boolean;
15
+ }
16
+ export interface ILogbookServiceRequest {
17
+ cursor?: Cursor;
10
18
  created: Array<Logbook.Types.ILogbookEntry>;
11
19
  edited: Array<IEditedUUID>;
12
20
  deleted: Array<string>;
13
21
  }
14
- export interface ILogbookSyncResponse {
15
- lastSyncTimestamp: string;
22
+ export interface ILogbookServiceResponse {
23
+ cursor?: Cursor;
16
24
  created: Array<Logbook.Types.ILogbookEntry>;
17
25
  deleted: Array<string>;
18
26
  }
19
- export interface ILogbookGetRequest {
20
- cursor?: string;
21
- }
22
- export interface ILogbookGetResponse {
23
- cursor?: string;
24
- logbooks: Array<Logbook.Types.ILogbookEntry>;
25
- }
26
27
  export {};
27
28
  }
28
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.44-alpha.0",
3
+ "version": "2.1.44-alpha.1",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
package/types/index.ts CHANGED
@@ -5,5 +5,6 @@ export * from "./services/outbound/email";
5
5
  export * from "./services/outbound/notification";
6
6
  export * from "./services/rpc/auth";
7
7
  export * from "./services/rpc/logbook";
8
+ export * from "./services/events/logbook";
8
9
  export * from "./userdetails/userdetails";
9
10
  export * from "./usersettings/usersettings";
@@ -0,0 +1,12 @@
1
+ import { Logbook } from "../../logbook/logbook";
2
+
3
+ export namespace LogbookEvents {
4
+ export interface CreateLogbook {
5
+ logbook: Logbook.Types.ILogbookEntry;
6
+ userId: number;
7
+ }
8
+ export interface DeleteLogbook {
9
+ uuid: string;
10
+ userId: number;
11
+ }
12
+ }
@@ -7,26 +7,27 @@ export namespace LogbookService {
7
7
  newUUID: string;
8
8
  }
9
9
 
10
- export interface ILogbookSyncRequest {
11
- lastSyncTimestamp: string;
10
+ interface Cursor {
11
+ created?: CreatedCursor;
12
+ deleted?: string;
13
+ }
14
+
15
+ interface CreatedCursor {
16
+ cursor: string;
17
+ hasMore: boolean;
18
+ }
19
+
20
+ export interface ILogbookServiceRequest {
21
+ cursor?: Cursor;
12
22
  created: Array<Logbook.Types.ILogbookEntry>;
13
23
  edited: Array<IEditedUUID>;
14
24
  deleted: Array<string>;
15
25
  }
16
26
 
17
- export interface ILogbookSyncResponse {
18
- lastSyncTimestamp: string;
27
+ export interface ILogbookServiceResponse {
28
+ cursor?: Cursor;
19
29
  created: Array<Logbook.Types.ILogbookEntry>;
20
30
  deleted: Array<string>;
21
31
  }
22
-
23
- export interface ILogbookGetRequest {
24
- cursor?: string;
25
- }
26
-
27
- export interface ILogbookGetResponse {
28
- cursor?: string;
29
- logbooks: Array<Logbook.Types.ILogbookEntry>;
30
- }
31
32
  }
32
33
  }