onecore 0.1.3 → 0.1.5

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.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/metadata.ts CHANGED
@@ -51,6 +51,7 @@ export interface Attribute {
51
51
  true?: string|number;
52
52
  false?: string|number;
53
53
  noValidate?: boolean;
54
+ resource?: string;
54
55
  getString?: (v: any) => string;
55
56
  }
56
57
  export interface Attributes {
package/src/model.ts CHANGED
@@ -88,19 +88,19 @@ export interface NumberRange {
88
88
 
89
89
  export interface Filter {
90
90
  page?: number;
91
- limit?: number;
92
- firstLimit?: number;
91
+ limit: number;
92
+ // firstLimit?: number;
93
93
  fields?: string[];
94
94
  sort?: string;
95
- currentUserId?: string;
95
+ // currentUserId?: string;
96
96
 
97
97
  q?: string;
98
- keyword?: string;
99
- excluding?: string[]|number[];
100
- refId?: string|number;
98
+ // keyword?: string;
99
+ // excluding?: string[]|number[];
100
+ // refId?: string|number;
101
101
 
102
- pageIndex?: number;
103
- pageSize?: number;
102
+ // pageIndex?: number;
103
+ // pageSize?: number;
104
104
  }
105
105
  export interface SearchResult<T> {
106
106
  list: T[];