onecore 0.5.11 → 0.5.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/location.ts +12 -7
- package/src/model.ts +35 -0
package/package.json
CHANGED
package/src/location.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import {DateRange, Filter, NumberRange} from './model';
|
|
2
2
|
|
|
3
3
|
export interface Article {
|
|
4
|
-
id
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
description?: string
|
|
8
|
-
content?: string
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
id: string
|
|
5
|
+
slug: string
|
|
6
|
+
title: string
|
|
7
|
+
description?: string
|
|
8
|
+
content?: string
|
|
9
|
+
publishedAt?: Date
|
|
10
|
+
tags?: string[]
|
|
11
|
+
thumbnail?: string
|
|
12
|
+
status?: string
|
|
13
|
+
createdAt?: Date
|
|
14
|
+
authorId?: string
|
|
15
|
+
savedAt?: Date
|
|
11
16
|
}
|
|
12
17
|
export interface ArticleFilter extends Filter {
|
|
13
18
|
id?: string;
|
package/src/model.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface Item {
|
|
|
47
47
|
id?: string;
|
|
48
48
|
value: string;
|
|
49
49
|
text?: string;
|
|
50
|
+
fulltext?: string;
|
|
50
51
|
}
|
|
51
52
|
export interface ValueText {
|
|
52
53
|
id?: string;
|
|
@@ -254,3 +255,37 @@ export interface Info10 {
|
|
|
254
255
|
export interface InfoRepository<ID> {
|
|
255
256
|
exist(id: ID, ctx?: any): Promise<boolean>;
|
|
256
257
|
}
|
|
258
|
+
|
|
259
|
+
export interface Company {
|
|
260
|
+
id: string
|
|
261
|
+
slug: string
|
|
262
|
+
name: string
|
|
263
|
+
overview: string
|
|
264
|
+
website?: string
|
|
265
|
+
industry?: string
|
|
266
|
+
size?: string
|
|
267
|
+
logo?: string
|
|
268
|
+
coverURL?: string
|
|
269
|
+
status: string
|
|
270
|
+
|
|
271
|
+
followerCount?: number
|
|
272
|
+
followingAt?: Date
|
|
273
|
+
followedAt?: Date
|
|
274
|
+
}
|
|
275
|
+
export interface Job {
|
|
276
|
+
id: string
|
|
277
|
+
slug: string
|
|
278
|
+
title: string
|
|
279
|
+
description: string
|
|
280
|
+
publishedAt?: Date
|
|
281
|
+
expiredAt?: Date
|
|
282
|
+
position?: string
|
|
283
|
+
quantity?: number
|
|
284
|
+
location?: string
|
|
285
|
+
applicantCount?: number
|
|
286
|
+
skills?: string[]
|
|
287
|
+
minSalary?: number
|
|
288
|
+
maxSalary?: number
|
|
289
|
+
companyId?: string
|
|
290
|
+
status: string
|
|
291
|
+
}
|