@hedia/types 2.1.42 → 2.1.43-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.
@@ -4,7 +4,7 @@ on:
4
4
  pull_request:
5
5
  branches:
6
6
  - master
7
- types: [opened]
7
+ types: [opened]
8
8
 
9
9
  env:
10
10
  NPM_TOKEN: ${{ secrets.HEDIA_BOT_NPM_TOKEN }}
@@ -11,11 +11,5 @@ export declare namespace AuthService {
11
11
  status: StatusCode;
12
12
  message: string;
13
13
  }
14
- interface IAuthRequest {
15
- token: string;
16
- }
17
- interface IAuthResponse {
18
- userId: number;
19
- }
20
14
  }
21
15
  }
@@ -5,14 +5,22 @@ export declare namespace LogbookService {
5
5
  oldUUID: string;
6
6
  newUUID: string;
7
7
  }
8
+ interface Cursor {
9
+ created?: CreatedCursor;
10
+ deleted?: string;
11
+ }
12
+ interface CreatedCursor {
13
+ cursor: string;
14
+ hasMore: boolean;
15
+ }
8
16
  export interface ILogbookServiceRequest {
9
- last_sync_timestamp: string;
17
+ cursor?: Cursor;
10
18
  created: Array<Logbook.Types.ILogbookEntry>;
11
19
  edited: Array<IEditedUUID>;
12
20
  deleted: Array<string>;
13
21
  }
14
22
  export interface ILogbookServiceResponse {
15
- last_sync_timestamp: string;
23
+ cursor?: Cursor;
16
24
  created: Array<Logbook.Types.ILogbookEntry>;
17
25
  deleted: Array<string>;
18
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.42",
3
+ "version": "2.1.43-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": {
@@ -12,13 +12,5 @@ export namespace AuthService {
12
12
  status: StatusCode;
13
13
  message: string;
14
14
  }
15
-
16
- export interface IAuthRequest {
17
- token: string;
18
- }
19
-
20
- export interface IAuthResponse {
21
- userId: number;
22
- }
23
15
  }
24
16
  }
@@ -7,15 +7,25 @@ export namespace LogbookService {
7
7
  newUUID: string;
8
8
  }
9
9
 
10
+ interface Cursor {
11
+ created?: CreatedCursor;
12
+ deleted?: string;
13
+ }
14
+
15
+ interface CreatedCursor {
16
+ cursor: string;
17
+ hasMore: boolean;
18
+ }
19
+
10
20
  export interface ILogbookServiceRequest {
11
- last_sync_timestamp: string;
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
27
  export interface ILogbookServiceResponse {
18
- last_sync_timestamp: string;
28
+ cursor?: Cursor;
19
29
  created: Array<Logbook.Types.ILogbookEntry>;
20
30
  deleted: Array<string>;
21
31
  }