@dra2020/dra-types 1.0.1 → 1.0.4

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.
@@ -2,21 +2,29 @@ export interface Comment {
2
2
  userid: string;
3
3
  text: string;
4
4
  date: string;
5
+ recommend: number;
5
6
  }
6
7
  export interface CommentList {
7
- id: string;
8
+ id?: string;
8
9
  [commentid: string]: Comment | string;
9
10
  }
10
- export declare type LikeType = 'like' | 'love' | 'wow' | 'angry' | 'funny';
11
+ export declare type LikeKind = 'like' | 'love' | 'wow' | 'angry' | 'funny';
11
12
  export interface Like {
12
13
  date: string;
13
- type: LikeType;
14
+ kind: LikeKind;
14
15
  }
15
16
  export interface LikeList {
16
- id: string;
17
+ id?: string;
17
18
  [userid: string]: Like | string;
18
19
  }
19
20
  export interface UserLikes {
20
- id: string;
21
+ id?: string;
21
22
  [aid: string]: Like | string;
22
23
  }
24
+ export interface SplitBlock {
25
+ id?: string;
26
+ state: string;
27
+ datasource: string;
28
+ geoid: string;
29
+ blocks: string[];
30
+ }
package/lib/dra-types.ts CHANGED
@@ -4,35 +4,45 @@ export interface Comment
4
4
  userid: string;
5
5
  text: string;
6
6
  date: string;
7
+ recommend: number;
7
8
  }
8
9
 
9
10
  // Comment record associated with a map
10
11
  export interface CommentList
11
12
  {
12
- id: string;
13
+ id?: string;
13
14
  [commentid: string]: Comment | string; // Really just Comment but make TypeScript happy
14
15
  }
15
16
 
16
- // Supported like types
17
- export type LikeType = 'like' | 'love' | 'wow' | 'angry' | 'funny';
17
+ // Supported like kinds
18
+ export type LikeKind = 'like' | 'love' | 'wow' | 'angry' | 'funny';
18
19
 
19
20
  // Like record for an individual like
20
21
  export interface Like
21
22
  {
22
23
  date: string;
23
- type: LikeType;
24
+ kind: LikeKind;
24
25
  }
25
26
 
26
27
  // Record for likes associated with a map
27
28
  export interface LikeList
28
29
  {
29
- id: string;
30
+ id?: string;
30
31
  [userid: string]: Like | string; // Really just Like but make TypeScript happy
31
32
  }
32
33
 
33
34
  // Record for likes an individual user has performed
34
35
  export interface UserLikes
35
36
  {
36
- id: string;
37
+ id?: string;
37
38
  [aid: string]: Like | string; // Really just Like but make TypeScript happy
38
39
  }
40
+
41
+ export interface SplitBlock
42
+ {
43
+ id?: string;
44
+ state: string;
45
+ datasource: string;
46
+ geoid: string;
47
+ blocks: string[];
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/dra-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "Shared types used between client and server.",
5
5
  "main": "dist/dra-types.js",
6
6
  "types": "./dist/all.d.ts",