onecore 0.6.11 → 0.6.12
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 +1 -1
- package/src/job.ts +22 -0
- package/src/model.ts +2 -2
package/package.json
CHANGED
package/src/job.ts
CHANGED
|
@@ -74,6 +74,28 @@ export interface Article {
|
|
|
74
74
|
savedAt?: Date
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
export interface User {
|
|
78
|
+
id: string
|
|
79
|
+
username: string
|
|
80
|
+
email?: string
|
|
81
|
+
phone?: string
|
|
82
|
+
dateOfBirth?: Date
|
|
83
|
+
displayName?: string
|
|
84
|
+
status?: string
|
|
85
|
+
imageURL?: string
|
|
86
|
+
coverURL?: string
|
|
87
|
+
headline?: string
|
|
88
|
+
bio?: string
|
|
89
|
+
website?: string
|
|
90
|
+
occupation?: string
|
|
91
|
+
company?: string
|
|
92
|
+
location?: string
|
|
93
|
+
|
|
94
|
+
followedAt?: Date
|
|
95
|
+
followerCount?: number
|
|
96
|
+
followingCount?: number
|
|
97
|
+
}
|
|
98
|
+
|
|
77
99
|
export interface Company {
|
|
78
100
|
id: string
|
|
79
101
|
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
|
|
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:
|
|
156
|
+
user: UserInfo;
|
|
157
157
|
note?: string;
|
|
158
158
|
}
|
|
159
159
|
|