@tinywork/glass 0.0.49 → 0.0.51
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 +22 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export type DocFullSchema = DocSchema & {
|
|
|
48
48
|
};
|
|
49
49
|
export type GroupSchema = {
|
|
50
50
|
id: string;
|
|
51
|
+
orgId?: string | null;
|
|
52
|
+
teamId?: string | null;
|
|
51
53
|
parentId: string | null;
|
|
52
54
|
name: string;
|
|
53
55
|
desc?: string;
|
|
@@ -58,10 +60,13 @@ export type GroupSchema = {
|
|
|
58
60
|
};
|
|
59
61
|
export type Project = {
|
|
60
62
|
id: string;
|
|
63
|
+
orgId?: string | null;
|
|
64
|
+
teamId?: string | null;
|
|
61
65
|
name: string;
|
|
62
66
|
desc?: string;
|
|
63
67
|
status: boolean;
|
|
64
68
|
actived?: boolean;
|
|
69
|
+
hash?: string;
|
|
65
70
|
};
|
|
66
71
|
export type Version = {
|
|
67
72
|
id: string;
|
|
@@ -70,6 +75,7 @@ export type Version = {
|
|
|
70
75
|
desc?: string;
|
|
71
76
|
status: boolean;
|
|
72
77
|
actived?: boolean;
|
|
78
|
+
hash?: string;
|
|
73
79
|
};
|
|
74
80
|
export type Plan = {
|
|
75
81
|
id: string;
|
|
@@ -83,10 +89,12 @@ export type Plan = {
|
|
|
83
89
|
body?: string;
|
|
84
90
|
/** 校验结果的ts类型声明 */
|
|
85
91
|
assert?: string;
|
|
92
|
+
hash?: string;
|
|
86
93
|
};
|
|
87
94
|
export type Case = {
|
|
88
95
|
id: string;
|
|
89
96
|
versionId: string;
|
|
97
|
+
planId?: string;
|
|
90
98
|
name: string;
|
|
91
99
|
desc?: string;
|
|
92
100
|
origin: string;
|
|
@@ -98,16 +106,23 @@ export type Case = {
|
|
|
98
106
|
apiId?: string;
|
|
99
107
|
/** 校验结果的ts类型声明 */
|
|
100
108
|
assert?: string;
|
|
109
|
+
hash?: string;
|
|
101
110
|
};
|
|
102
111
|
export type CaseData = Omit<Case, "params" | "headers" | "body"> & {
|
|
103
112
|
params?: string;
|
|
104
113
|
headers?: string;
|
|
105
114
|
body?: string;
|
|
106
115
|
};
|
|
116
|
+
export type Association = {
|
|
117
|
+
versionId: string;
|
|
118
|
+
apiId: string;
|
|
119
|
+
tags?: string[];
|
|
120
|
+
hash?: string;
|
|
121
|
+
};
|
|
107
122
|
export type MockMode = "None" | "Local" | "Advance";
|
|
108
123
|
export type ActionMode = "Modify" | "Add" | "Remove";
|
|
109
124
|
export type ActionTarget = "Origin";
|
|
110
|
-
export type ContextMenuType = "log" | "group" | "doc" | "rule" | "project" | "version" | "plan" | "case";
|
|
125
|
+
export type ContextMenuType = "log" | "group" | "doc" | "rule" | "project" | "version" | "plan" | "case" | "association";
|
|
111
126
|
export type ContextMenuParams = {
|
|
112
127
|
type: "log";
|
|
113
128
|
data: NetLog;
|
|
@@ -132,6 +147,9 @@ export type ContextMenuParams = {
|
|
|
132
147
|
} | {
|
|
133
148
|
type: "case";
|
|
134
149
|
data: Case;
|
|
150
|
+
} | {
|
|
151
|
+
type: "association";
|
|
152
|
+
data: Association;
|
|
135
153
|
};
|
|
136
154
|
export type SyncDataType = "group" | "doc" | "rule" | "project" | "version" | "plan" | "case";
|
|
137
155
|
export type SyncDataParams = {
|
|
@@ -184,13 +202,15 @@ export type FilterSchema = {
|
|
|
184
202
|
};
|
|
185
203
|
export type RuleSchema = FilterSchema & {
|
|
186
204
|
id: string;
|
|
205
|
+
orgId?: string | null;
|
|
206
|
+
teamId?: string | null;
|
|
187
207
|
mode?: MockMode;
|
|
188
208
|
name?: string;
|
|
189
209
|
apiId?: string;
|
|
190
210
|
throttle?: number;
|
|
191
211
|
localOptions?: MockModelSchema[];
|
|
192
212
|
actions?: RewriteActionSchema[];
|
|
193
|
-
|
|
213
|
+
hash?: string;
|
|
194
214
|
};
|
|
195
215
|
export type NetLog = {
|
|
196
216
|
uid: string;
|