onecore 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/model.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onecore",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/model.ts CHANGED
@@ -142,6 +142,15 @@ 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;
145
154
  }
146
155
  export interface Achievement {
147
156
  subject: string;