@tinywork/glass 0.0.51 → 0.0.53

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/dist/index.d.ts +22 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -38,12 +38,22 @@ export type DocSchema = {
38
38
  code?: string;
39
39
  modifier?: string;
40
40
  modifyTime?: string;
41
+ tags?: string[] | null;
41
42
  status: boolean;
43
+ hash?: string;
44
+ /** 无hash时,用updatedAt */
45
+ updatedAt?: string;
46
+ /** 用来glass生成时的文件名,同pathname下时区分不同接口用 */
47
+ filename?: string;
48
+ /** 是否支持app编辑 */
49
+ readonly?: boolean;
42
50
  prefix?: string;
43
51
  };
44
52
  export type DocFullSchema = DocSchema & {
45
53
  external: {
46
54
  group: string;
55
+ orgId?: string;
56
+ teamId?: string;
47
57
  };
48
58
  };
49
59
  export type GroupSchema = {
@@ -57,6 +67,11 @@ export type GroupSchema = {
57
67
  prefix?: string;
58
68
  code?: string;
59
69
  status: boolean;
70
+ hash?: string;
71
+ /** 无hash时,用updatedAt */
72
+ updatedAt?: string;
73
+ /** 是否支持app编辑 */
74
+ readonly?: boolean;
60
75
  };
61
76
  export type Project = {
62
77
  id: string;
@@ -182,15 +197,18 @@ export type MockModelSchema = {
182
197
  name?: string;
183
198
  statusCode?: number;
184
199
  status?: boolean;
200
+ updatedAt?: string;
185
201
  };
186
202
  export type RewriteActionSchema = {
187
203
  id: string;
188
204
  ruleId?: string;
205
+ name?: string;
189
206
  action?: ActionMode;
190
207
  target?: ActionTarget;
191
208
  oldValue?: string;
192
209
  newValue?: string;
193
210
  status?: boolean;
211
+ updatedAt?: string;
194
212
  };
195
213
  export type FilterSchema = {
196
214
  origin?: string;
@@ -208,9 +226,13 @@ export type RuleSchema = FilterSchema & {
208
226
  name?: string;
209
227
  apiId?: string;
210
228
  throttle?: number;
229
+ /** 本地匹配规则是排序用 */
230
+ sort?: number;
231
+ tags?: string[];
211
232
  localOptions?: MockModelSchema[];
212
233
  actions?: RewriteActionSchema[];
213
234
  hash?: string;
235
+ updatedAt?: string;
214
236
  };
215
237
  export type NetLog = {
216
238
  uid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [