onecore 0.6.10 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onecore",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
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/location.ts CHANGED
@@ -124,12 +124,3 @@ export interface TourFilter extends Filter {
124
124
  endTime?: Date|DateRange;
125
125
  locations?: string[];
126
126
  }
127
- export interface Rate {
128
- id: string;
129
- locationId: string;
130
- rateTime: Date;
131
- userId: string;
132
- rate: number;
133
- review: string;
134
- version?: number;
135
- }
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