onecore 0.6.11 → 0.6.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onecore",
3
- "version": "0.6.11",
3
+ "version": "0.6.14",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/job.ts CHANGED
@@ -16,6 +16,13 @@ export interface Skill {
16
16
  hirable: boolean;
17
17
  }
18
18
 
19
+ export interface Role {
20
+ roleId: string
21
+ roleName: string
22
+ status: string
23
+ remark: string
24
+ privileges?: string[]
25
+ }
19
26
  export interface RoleFilter extends Filter {
20
27
  roleId?: string;
21
28
  roleName?: string;
@@ -51,7 +58,7 @@ export interface ReviewCommentFilter extends Filter {
51
58
  updatedAt?: DateRange;
52
59
  }
53
60
 
54
- export interface Rate {
61
+ export interface RateSummary {
55
62
  rate: number
56
63
  rate1: number
57
64
  rate2: number
@@ -74,6 +81,28 @@ export interface Article {
74
81
  savedAt?: Date
75
82
  }
76
83
 
84
+ export interface User {
85
+ id: string
86
+ username: string
87
+ email?: string
88
+ phone?: string
89
+ dateOfBirth?: Date
90
+ displayName?: string
91
+ status?: string
92
+ imageURL?: string
93
+ coverURL?: string
94
+ headline?: string
95
+ bio?: string
96
+ website?: string
97
+ occupation?: string
98
+ company?: string
99
+ location?: string
100
+
101
+ followedAt?: Date
102
+ followerCount?: number
103
+ followingCount?: number
104
+ }
105
+
77
106
  export interface Company {
78
107
  id: string
79
108
  slug: string
package/src/model.ts CHANGED
@@ -140,7 +140,7 @@ export interface DiffModel<T, ID> {
140
140
  origin?: T;
141
141
  value: T;
142
142
  }
143
- export interface User {
143
+ export interface UserInfo {
144
144
  id: string;
145
145
  name?: string;
146
146
  email?: string;
@@ -153,7 +153,7 @@ export interface History<T> {
153
153
  time: Date
154
154
  action: string
155
155
  data: T
156
- user: User;
156
+ user: UserInfo;
157
157
  note?: string;
158
158
  }
159
159