@tinywork/glass 1.0.24 → 1.0.26

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/index.d.ts +10 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -76,13 +76,15 @@ declare global {
76
76
  title?: string;
77
77
  };
78
78
 
79
+ type Method = "GET" | "POST" | "PUT" | "DELETE";
80
+
79
81
  type DocSchema = {
80
82
  apiId: string;
81
83
  groupId: string;
82
84
  name: string;
83
85
  desc?: string;
84
86
  pathname?: string;
85
- method?: "GET" | "POST" | "PUT" | "DELETE";
87
+ method?: Method;
86
88
  code?: string; // ts声明
87
89
  modifier?: string; // 最后操作人
88
90
  modifyTime?: string; // 最后操作时间
@@ -167,7 +169,7 @@ declare global {
167
169
  desc?: string;
168
170
  origin: string;
169
171
  pathname: string;
170
- method: "GET" | "POST" | "PUT" | "DELETE";
172
+ method: Method;
171
173
  params?: Record<string, any>;
172
174
  headers?: Record<string, any>;
173
175
  body?: any;
@@ -255,6 +257,7 @@ declare global {
255
257
  target?: ActionTarget;
256
258
  oldValue?: string;
257
259
  newValue?: string;
260
+ regex?: boolean;
258
261
  status?: boolean;
259
262
  updatedAt?: string;
260
263
  };
@@ -328,6 +331,11 @@ declare global {
328
331
  params?: Record<string, any>;
329
332
  data?: any;
330
333
  }>;
334
+ /** 用来流式输出 */
335
+ onStreamEvent?: IGlassExtensionEvent<{
336
+ text?: string;
337
+ duration?: number;
338
+ }>;
331
339
 
332
340
  /** 在用例批量执行前触发 */
333
341
  beforeCasesExec?: IGlassExtensionEvent<{ list: Case[] }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [