@tinywork/glass 0.0.51 → 0.0.52
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/dist/index.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,12 +38,18 @@ 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;
|
|
42
46
|
prefix?: string;
|
|
43
47
|
};
|
|
44
48
|
export type DocFullSchema = DocSchema & {
|
|
45
49
|
external: {
|
|
46
50
|
group: string;
|
|
51
|
+
orgId?: string;
|
|
52
|
+
teamId?: string;
|
|
47
53
|
};
|
|
48
54
|
};
|
|
49
55
|
export type GroupSchema = {
|
|
@@ -57,6 +63,9 @@ export type GroupSchema = {
|
|
|
57
63
|
prefix?: string;
|
|
58
64
|
code?: string;
|
|
59
65
|
status: boolean;
|
|
66
|
+
hash?: string;
|
|
67
|
+
/** 无hash时,用updatedAt */
|
|
68
|
+
updatedAt?: string;
|
|
60
69
|
};
|
|
61
70
|
export type Project = {
|
|
62
71
|
id: string;
|
|
@@ -182,15 +191,18 @@ export type MockModelSchema = {
|
|
|
182
191
|
name?: string;
|
|
183
192
|
statusCode?: number;
|
|
184
193
|
status?: boolean;
|
|
194
|
+
updatedAt?: string;
|
|
185
195
|
};
|
|
186
196
|
export type RewriteActionSchema = {
|
|
187
197
|
id: string;
|
|
188
198
|
ruleId?: string;
|
|
199
|
+
name?: string;
|
|
189
200
|
action?: ActionMode;
|
|
190
201
|
target?: ActionTarget;
|
|
191
202
|
oldValue?: string;
|
|
192
203
|
newValue?: string;
|
|
193
204
|
status?: boolean;
|
|
205
|
+
updatedAt?: string;
|
|
194
206
|
};
|
|
195
207
|
export type FilterSchema = {
|
|
196
208
|
origin?: string;
|
|
@@ -208,9 +220,13 @@ export type RuleSchema = FilterSchema & {
|
|
|
208
220
|
name?: string;
|
|
209
221
|
apiId?: string;
|
|
210
222
|
throttle?: number;
|
|
223
|
+
/** 本地匹配规则是排序用 */
|
|
224
|
+
sort?: number;
|
|
225
|
+
tags?: string[];
|
|
211
226
|
localOptions?: MockModelSchema[];
|
|
212
227
|
actions?: RewriteActionSchema[];
|
|
213
228
|
hash?: string;
|
|
229
|
+
updatedAt?: string;
|
|
214
230
|
};
|
|
215
231
|
export type NetLog = {
|
|
216
232
|
uid: string;
|