@hedia/types 2.1.49 → 2.1.50-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.
@@ -5,25 +5,24 @@ export declare namespace LogbookService {
5
5
  oldUUID: string;
6
6
  newUUID: string;
7
7
  }
8
- interface ICursor {
9
- created?: ICreatedCursor;
10
- deleted?: string;
11
- }
12
- interface ICreatedCursor {
13
- cursor: string;
14
- hasMore: boolean;
15
- }
16
- export interface ILogbookServiceRequest {
17
- cursor?: ICursor;
8
+ export interface ILogbookSyncRequest {
9
+ lastSyncTimestamp: string;
18
10
  created: Array<Logbook.Types.ILogbookEntry>;
19
11
  edited: Array<IEditedUUID>;
20
12
  deleted: Array<string>;
21
13
  }
22
- export interface ILogbookServiceResponse {
23
- cursor?: ICursor;
14
+ export interface ILogbookSyncResponse {
15
+ lastSyncTimestamp: string;
24
16
  created: Array<Logbook.Types.ILogbookEntry>;
25
17
  deleted: Array<string>;
26
18
  }
19
+ export interface ILogbookGetRequest {
20
+ cursor?: string;
21
+ }
22
+ export interface ILogbookGetResponse {
23
+ cursor?: string;
24
+ logbooks: Array<Logbook.Types.ILogbookEntry>;
25
+ }
27
26
  export {};
28
27
  }
29
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.1.49",
3
+ "version": "2.1.50-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": {
@@ -7,27 +7,26 @@ export namespace LogbookService {
7
7
  newUUID: string;
8
8
  }
9
9
 
10
- interface ICursor {
11
- created?: ICreatedCursor;
12
- deleted?: string;
13
- }
14
-
15
- interface ICreatedCursor {
16
- cursor: string;
17
- hasMore: boolean;
18
- }
19
-
20
- export interface ILogbookServiceRequest {
21
- cursor?: ICursor;
10
+ export interface ILogbookSyncRequest {
11
+ lastSyncTimestamp: string;
22
12
  created: Array<Logbook.Types.ILogbookEntry>;
23
13
  edited: Array<IEditedUUID>;
24
14
  deleted: Array<string>;
25
15
  }
26
16
 
27
- export interface ILogbookServiceResponse {
28
- cursor?: ICursor;
17
+ export interface ILogbookSyncResponse {
18
+ lastSyncTimestamp: string;
29
19
  created: Array<Logbook.Types.ILogbookEntry>;
30
20
  deleted: Array<string>;
31
21
  }
22
+
23
+ export interface ILogbookGetRequest {
24
+ cursor?: string;
25
+ }
26
+
27
+ export interface ILogbookGetResponse {
28
+ cursor?: string;
29
+ logbooks: Array<Logbook.Types.ILogbookEntry>;
30
+ }
32
31
  }
33
32
  }