onecore 0.1.0 → 0.1.2
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/model.ts +15 -0
package/package.json
CHANGED
package/src/model.ts
CHANGED
|
@@ -142,6 +142,21 @@ export interface History<T> {
|
|
|
142
142
|
data: T;
|
|
143
143
|
time: Date;
|
|
144
144
|
user: User;
|
|
145
|
+
note?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface Notification {
|
|
148
|
+
id: string;
|
|
149
|
+
time: Date;
|
|
150
|
+
notifier?: User;
|
|
151
|
+
message: string;
|
|
152
|
+
url?: string;
|
|
153
|
+
read: boolean;
|
|
154
|
+
}
|
|
155
|
+
export interface Attachment {
|
|
156
|
+
originalFilename: string;
|
|
157
|
+
filename: string;
|
|
158
|
+
url: string;
|
|
159
|
+
size: number;
|
|
145
160
|
}
|
|
146
161
|
export interface Achievement {
|
|
147
162
|
subject: string;
|