@tinywork/glass 0.0.50 → 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 +27 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,17 +38,24 @@ 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 = {
|
|
50
56
|
id: string;
|
|
51
57
|
orgId?: string | null;
|
|
58
|
+
teamId?: string | null;
|
|
52
59
|
parentId: string | null;
|
|
53
60
|
name: string;
|
|
54
61
|
desc?: string;
|
|
@@ -56,14 +63,19 @@ export type GroupSchema = {
|
|
|
56
63
|
prefix?: string;
|
|
57
64
|
code?: string;
|
|
58
65
|
status: boolean;
|
|
66
|
+
hash?: string;
|
|
67
|
+
/** 无hash时,用updatedAt */
|
|
68
|
+
updatedAt?: string;
|
|
59
69
|
};
|
|
60
70
|
export type Project = {
|
|
61
71
|
id: string;
|
|
62
72
|
orgId?: string | null;
|
|
73
|
+
teamId?: string | null;
|
|
63
74
|
name: string;
|
|
64
75
|
desc?: string;
|
|
65
76
|
status: boolean;
|
|
66
77
|
actived?: boolean;
|
|
78
|
+
hash?: string;
|
|
67
79
|
};
|
|
68
80
|
export type Version = {
|
|
69
81
|
id: string;
|
|
@@ -72,6 +84,7 @@ export type Version = {
|
|
|
72
84
|
desc?: string;
|
|
73
85
|
status: boolean;
|
|
74
86
|
actived?: boolean;
|
|
87
|
+
hash?: string;
|
|
75
88
|
};
|
|
76
89
|
export type Plan = {
|
|
77
90
|
id: string;
|
|
@@ -85,10 +98,12 @@ export type Plan = {
|
|
|
85
98
|
body?: string;
|
|
86
99
|
/** 校验结果的ts类型声明 */
|
|
87
100
|
assert?: string;
|
|
101
|
+
hash?: string;
|
|
88
102
|
};
|
|
89
103
|
export type Case = {
|
|
90
104
|
id: string;
|
|
91
105
|
versionId: string;
|
|
106
|
+
planId?: string;
|
|
92
107
|
name: string;
|
|
93
108
|
desc?: string;
|
|
94
109
|
origin: string;
|
|
@@ -100,6 +115,7 @@ export type Case = {
|
|
|
100
115
|
apiId?: string;
|
|
101
116
|
/** 校验结果的ts类型声明 */
|
|
102
117
|
assert?: string;
|
|
118
|
+
hash?: string;
|
|
103
119
|
};
|
|
104
120
|
export type CaseData = Omit<Case, "params" | "headers" | "body"> & {
|
|
105
121
|
params?: string;
|
|
@@ -110,6 +126,7 @@ export type Association = {
|
|
|
110
126
|
versionId: string;
|
|
111
127
|
apiId: string;
|
|
112
128
|
tags?: string[];
|
|
129
|
+
hash?: string;
|
|
113
130
|
};
|
|
114
131
|
export type MockMode = "None" | "Local" | "Advance";
|
|
115
132
|
export type ActionMode = "Modify" | "Add" | "Remove";
|
|
@@ -174,15 +191,18 @@ export type MockModelSchema = {
|
|
|
174
191
|
name?: string;
|
|
175
192
|
statusCode?: number;
|
|
176
193
|
status?: boolean;
|
|
194
|
+
updatedAt?: string;
|
|
177
195
|
};
|
|
178
196
|
export type RewriteActionSchema = {
|
|
179
197
|
id: string;
|
|
180
198
|
ruleId?: string;
|
|
199
|
+
name?: string;
|
|
181
200
|
action?: ActionMode;
|
|
182
201
|
target?: ActionTarget;
|
|
183
202
|
oldValue?: string;
|
|
184
203
|
newValue?: string;
|
|
185
204
|
status?: boolean;
|
|
205
|
+
updatedAt?: string;
|
|
186
206
|
};
|
|
187
207
|
export type FilterSchema = {
|
|
188
208
|
origin?: string;
|
|
@@ -194,13 +214,19 @@ export type FilterSchema = {
|
|
|
194
214
|
};
|
|
195
215
|
export type RuleSchema = FilterSchema & {
|
|
196
216
|
id: string;
|
|
217
|
+
orgId?: string | null;
|
|
218
|
+
teamId?: string | null;
|
|
197
219
|
mode?: MockMode;
|
|
198
220
|
name?: string;
|
|
199
221
|
apiId?: string;
|
|
200
222
|
throttle?: number;
|
|
223
|
+
/** 本地匹配规则是排序用 */
|
|
224
|
+
sort?: number;
|
|
225
|
+
tags?: string[];
|
|
201
226
|
localOptions?: MockModelSchema[];
|
|
202
227
|
actions?: RewriteActionSchema[];
|
|
203
|
-
|
|
228
|
+
hash?: string;
|
|
229
|
+
updatedAt?: string;
|
|
204
230
|
};
|
|
205
231
|
export type NetLog = {
|
|
206
232
|
uid: string;
|