ms-types 0.4.8 → 0.4.10

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 (47) hide show
  1. package/package.json +22 -22
  2. package/types/action.d.ts +296 -296
  3. package/types/appleocr.d.ts +102 -102
  4. package/types/config.d.ts +97 -97
  5. package/types/cryptoUtils.d.ts +59 -59
  6. package/types/device.d.ts +117 -117
  7. package/types/global.d.ts +230 -220
  8. package/types/hid.d.ts +329 -329
  9. package/types/hotUpdate.d.ts +104 -104
  10. package/types/http.d.ts +300 -300
  11. package/types/ime.d.ts +99 -99
  12. package/types/index.d.ts +27 -27
  13. package/types/media.d.ts +101 -101
  14. package/types/mysql.d.ts +174 -174
  15. package/types/netCard.d.ts +77 -77
  16. package/types/node.d.ts +292 -292
  17. package/types/paddleocr.d.ts +73 -73
  18. package/types/pip.d.ts +51 -51
  19. package/types/system.d.ts +225 -225
  20. package/types/thread.d.ts +42 -42
  21. package/types/tomatoocr.d.ts +209 -209
  22. package/types/tts.d.ts +91 -91
  23. package/types/ui.d.ts +185 -185
  24. package/types/utils.d.ts +77 -77
  25. package/types/yolo.d.ts +114 -114
  26. package/types/zh/HID/346/250/241/345/235/227.d.ts +333 -333
  27. package/types/zh/HTTP/346/250/241/345/235/227.d.ts +301 -301
  28. package/types/zh/MySql/346/250/241/345/235/227.d.ts +175 -175
  29. package/types/zh/PaddleOCR/346/250/241/345/235/227.d.ts +74 -74
  30. package/types/zh/YOLO/346/250/241/345/235/227.d.ts +118 -118
  31. package/types/zh/index.d.ts +24 -24
  32. package/types/zh//345/205/250/345/261/200/346/250/241/345/235/227.d.ts +186 -186
  33. package/types/zh//345/212/250/344/275/234/346/250/241/345/235/227.d.ts +298 -298
  34. package/types/zh//345/215/241/345/257/206/346/250/241/345/235/227.d.ts +90 -90
  35. package/types/zh//345/252/222/344/275/223/346/250/241/345/235/227.d.ts +102 -102
  36. package/types/zh//345/267/245/345/205/267/346/250/241/345/235/227.d.ts +77 -77
  37. package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +55 -55
  38. package/types/zh//346/226/207/345/255/227/350/275/254/350/257/255/351/237/263/346/250/241/345/235/227.d.ts +92 -92
  39. package/types/zh//347/203/255/346/233/264/346/226/260/346/250/241/345/235/227.d.ts +105 -105
  40. package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +225 -225
  41. package/types/zh//347/272/277/347/250/213/346/250/241/345/235/227.d.ts +43 -43
  42. package/types/zh//350/212/202/347/202/271/346/250/241/345/235/227.d.ts +290 -290
  43. package/types/zh//350/213/271/346/236/234OCR.d.ts +104 -104
  44. package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +90 -90
  45. package/types/zh//350/256/276/345/244/207/346/250/241/345/235/227.d.ts +118 -118
  46. package/types/zh//350/276/223/345/205/245/346/263/225/346/250/241/345/235/227.d.ts +100 -100
  47. package/types/zh//351/205/215/347/275/256/346/250/241/345/235/227.d.ts +99 -99
package/types/node.d.ts CHANGED
@@ -1,292 +1,292 @@
1
- /**
2
- * 节点模块 包含节点操作、节点内容读写等功能
3
- */
4
- declare function createNodeSelector(params?: {
5
- /**
6
- * 代表要获取节点的层级,越少速度越快,默认 50
7
- */
8
- maxDepth?: number;
9
- }): NodeSelector;
10
-
11
- declare interface NodeBoundsInfo {
12
- /**
13
- * x坐标
14
- */
15
- x: number;
16
- /**
17
- * y坐标
18
- */
19
- y: number;
20
- /**
21
- * 宽度
22
- */
23
- width: number;
24
- /**
25
- * 高度
26
- */
27
- height: number;
28
- /**
29
- * 节点中心x坐标
30
- */
31
- centerX: number;
32
- /**
33
- * 节点中心y坐标
34
- */
35
- centerY: number;
36
- }
37
-
38
- declare interface NodeInfo {
39
- /**
40
- * 节点id
41
- */
42
- id: string;
43
- /**
44
- * 节点标识符
45
- */
46
- identifier: string;
47
- /**
48
- * 节点标签
49
- */
50
- label: string;
51
- /**
52
- * 节点类型
53
- */
54
- type: string;
55
- /**
56
- * 节点值
57
- */
58
- value: string;
59
- /**
60
- * 节点占位符值
61
- */
62
- placeholderValue: string;
63
- /**
64
- * 节点名称
65
- */
66
- title: string;
67
- /**
68
- * 节点是否可见
69
- */
70
- visible: boolean;
71
- /**
72
- * 节点是否启用
73
- */
74
- enabled: boolean;
75
- /**
76
- * 节点位置
77
- */
78
- bounds: NodeBoundsInfo;
79
- /**
80
- * 节点层级
81
- */
82
- depth: number;
83
- /**
84
- * 节点索引
85
- */
86
- index: number;
87
- /**
88
- * 父节点id
89
- */
90
- parentId: string;
91
- /**
92
- * 子节点数量
93
- */
94
- childCount: number;
95
- /**
96
- * 点击节点中心
97
- */
98
- clickCenter(): boolean;
99
- /**
100
- * 点击节点随机位置
101
- */
102
- clickRandom(): boolean;
103
- /**
104
- * 节点是否可接收事件 用于判断是否显示在屏幕上
105
- */
106
- hittable(): boolean;
107
- /**
108
- * 获取父节点
109
- */
110
- parent(): NodeInfo | null;
111
- /**
112
- * 获取子节点
113
- * @param index 子节点索引
114
- */
115
- child(index: number): NodeInfo | null;
116
- /**
117
- * 获取所有子节点
118
- */
119
- allChildren(): NodeInfo[];
120
- /**
121
- * 获取所有兄弟节点
122
- */
123
- siblings(): NodeInfo[];
124
- /**
125
- * 获取所有前兄弟节点
126
- */
127
- previousSiblings(): NodeInfo[];
128
- /**
129
- * 获取所有后兄弟节点
130
- */
131
- nextSiblings(): NodeInfo[];
132
- }
133
-
134
- /**
135
- * 节点选择器 包含节点选择、节点操作等功能
136
- */
137
- declare class NodeSelector {
138
- /**
139
- * 释放内存
140
- */
141
- releaseNode(): void;
142
- /**
143
- * 获取节点 xml 字符串
144
- * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
145
- * @returns 节点 xml 字符串
146
- */
147
- xml(timeout?: number): string | null;
148
- /**
149
- * 获取节点信息
150
- * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
151
- * @returns 节点信息数组
152
- */
153
- getNodeInfo(timeout?: number): NodeInfo[];
154
- /**
155
- * 获取一个节点信息
156
- * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
157
- * @returns 节点信息
158
- */
159
- getOneNodeInfo(timeout?: number): NodeInfo | null;
160
- /**
161
- * 加载节点数据
162
- * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
163
- */
164
- loadNode(timeout?: number): NodeSelector;
165
- /**
166
- * 清除所有选择条件
167
- */
168
- clearSelector(): NodeSelector;
169
- /**
170
- * 获取节点id
171
- * @param id 节点id
172
- * @returns 节点选择器
173
- */
174
- id(id: string): NodeSelector;
175
- /**
176
- * 获取节点xpath
177
- * @param path xpath路径
178
- * @returns 节点选择器
179
- */
180
- xpath(path: string): NodeSelector;
181
- /**
182
- * 获取节点标签
183
- * @param label 节点标签
184
- * @returns 节点选择器
185
- */
186
- label(label: string): NodeSelector;
187
- /**
188
- * 获取节点标签匹配
189
- * @param match 匹配字符串
190
- * @returns 节点选择器
191
- */
192
- labelMatch(match: string): NodeSelector;
193
- /**
194
- * 获取节点名称
195
- * @param title 节点名称
196
- * @returns 节点选择器
197
- */
198
- title(title: string): NodeSelector;
199
- /**
200
- * 获取节点名称匹配
201
- * @param match 匹配字符串
202
- * @returns 节点选择器
203
- */
204
- titleMatch(match: string): NodeSelector;
205
- /**
206
- * 获取节点标识符
207
- * @param identifier 节点标识符
208
- * @returns 节点选择器
209
- */
210
- identifier(identifier: string): NodeSelector;
211
- /**
212
- * 获取节点标识符匹配
213
- * @param match 匹配字符串
214
- * @returns 节点选择器
215
- */
216
- identifierMatch(match: string): NodeSelector;
217
- /**
218
- * 获取节点类型
219
- * @param type 节点类型
220
- * @returns 节点选择器
221
- */
222
- type(type: string): NodeSelector;
223
- /**
224
- * 获取节点类型匹配
225
- * @param match 匹配字符串
226
- * @returns 节点选择器
227
- */
228
- typeMatch(match: string): NodeSelector;
229
- /**
230
- * 获取节点值
231
- * @param value 节点值
232
- * @returns 节点选择器
233
- */
234
- value(value: string): NodeSelector;
235
- /**
236
- * 获取节点值匹配
237
- * @param match 匹配字符串
238
- * @returns 节点选择器
239
- */
240
- valueMatch(match: string): NodeSelector;
241
- /**
242
- * 获取节点占位符值
243
- * @param placeholderValue 节点占位符值
244
- * @returns 节点选择器
245
- */
246
- placeholderValue(placeholderValue: string): NodeSelector;
247
- /**
248
- * 获取节点占位符值匹配
249
- * @param match 匹配字符串
250
- * @returns 节点选择器
251
- */
252
- placeholderValueMatch(match: string): NodeSelector;
253
- /**
254
- * 获取节点是否启用
255
- * @param enabled 是否启用
256
- * @returns 节点选择器
257
- */
258
- enabled(enabled: boolean): NodeSelector;
259
- /**
260
- * 获取节点是否可见
261
- * @param visible 是否可见
262
- * @returns 节点选择器
263
- */
264
- visible(visible: boolean): NodeSelector;
265
- /**
266
- * 获取节点索引
267
- * @param index 节点索引
268
- * @returns 节点选择器
269
- */
270
- index(index: number): NodeSelector;
271
- /**
272
- * 获取节点层级
273
- * @param depth 节点层级
274
- * @returns 节点选择器
275
- */
276
- depth(depth: number): NodeSelector;
277
- /**
278
- * 获取节点子节点数量
279
- * @param childCount 子节点数量
280
- * @returns 节点选择器
281
- */
282
- childCount(childCount: number | string): NodeSelector;
283
- /**
284
- * 获取节点位置
285
- * @param x x坐标
286
- * @param y y坐标
287
- * @param width 宽度
288
- * @param height 高度
289
- * @returns 节点选择器
290
- */
291
- bounds(x: number, y: number, width: number, height: number): NodeSelector;
292
- }
1
+ /**
2
+ * 节点模块 包含节点操作、节点内容读写等功能
3
+ */
4
+ declare function createNodeSelector(params?: {
5
+ /**
6
+ * 代表要获取节点的层级,越少速度越快,默认 50
7
+ */
8
+ maxDepth?: number;
9
+ }): NodeSelector;
10
+
11
+ declare interface NodeBoundsInfo {
12
+ /**
13
+ * x坐标
14
+ */
15
+ x: number;
16
+ /**
17
+ * y坐标
18
+ */
19
+ y: number;
20
+ /**
21
+ * 宽度
22
+ */
23
+ width: number;
24
+ /**
25
+ * 高度
26
+ */
27
+ height: number;
28
+ /**
29
+ * 节点中心x坐标
30
+ */
31
+ centerX: number;
32
+ /**
33
+ * 节点中心y坐标
34
+ */
35
+ centerY: number;
36
+ }
37
+
38
+ declare interface NodeInfo {
39
+ /**
40
+ * 节点id
41
+ */
42
+ id: string;
43
+ /**
44
+ * 节点标识符
45
+ */
46
+ identifier: string;
47
+ /**
48
+ * 节点标签
49
+ */
50
+ label: string;
51
+ /**
52
+ * 节点类型
53
+ */
54
+ type: string;
55
+ /**
56
+ * 节点值
57
+ */
58
+ value: string;
59
+ /**
60
+ * 节点占位符值
61
+ */
62
+ placeholderValue: string;
63
+ /**
64
+ * 节点名称
65
+ */
66
+ title: string;
67
+ /**
68
+ * 节点是否可见
69
+ */
70
+ visible: boolean;
71
+ /**
72
+ * 节点是否启用
73
+ */
74
+ enabled: boolean;
75
+ /**
76
+ * 节点位置
77
+ */
78
+ bounds: NodeBoundsInfo;
79
+ /**
80
+ * 节点层级
81
+ */
82
+ depth: number;
83
+ /**
84
+ * 节点索引
85
+ */
86
+ index: number;
87
+ /**
88
+ * 父节点id
89
+ */
90
+ parentId: string;
91
+ /**
92
+ * 子节点数量
93
+ */
94
+ childCount: number;
95
+ /**
96
+ * 点击节点中心
97
+ */
98
+ clickCenter(): boolean;
99
+ /**
100
+ * 点击节点随机位置
101
+ */
102
+ clickRandom(): boolean;
103
+ /**
104
+ * 节点是否可接收事件 用于判断是否显示在屏幕上
105
+ */
106
+ hittable(): boolean;
107
+ /**
108
+ * 获取父节点
109
+ */
110
+ parent(): NodeInfo | null;
111
+ /**
112
+ * 获取子节点
113
+ * @param index 子节点索引
114
+ */
115
+ child(index: number): NodeInfo | null;
116
+ /**
117
+ * 获取所有子节点
118
+ */
119
+ allChildren(): NodeInfo[];
120
+ /**
121
+ * 获取所有兄弟节点
122
+ */
123
+ siblings(): NodeInfo[];
124
+ /**
125
+ * 获取所有前兄弟节点
126
+ */
127
+ previousSiblings(): NodeInfo[];
128
+ /**
129
+ * 获取所有后兄弟节点
130
+ */
131
+ nextSiblings(): NodeInfo[];
132
+ }
133
+
134
+ /**
135
+ * 节点选择器 包含节点选择、节点操作等功能
136
+ */
137
+ declare class NodeSelector {
138
+ /**
139
+ * 释放内存
140
+ */
141
+ releaseNode(): void;
142
+ /**
143
+ * 获取节点 xml 字符串
144
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
145
+ * @returns 节点 xml 字符串
146
+ */
147
+ xml(timeout?: number): string | null;
148
+ /**
149
+ * 获取节点信息
150
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
151
+ * @returns 节点信息数组
152
+ */
153
+ getNodeInfo(timeout?: number): NodeInfo[];
154
+ /**
155
+ * 获取一个节点信息
156
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
157
+ * @returns 节点信息
158
+ */
159
+ getOneNodeInfo(timeout?: number): NodeInfo | null;
160
+ /**
161
+ * 加载节点数据
162
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
163
+ */
164
+ loadNode(timeout?: number): NodeSelector;
165
+ /**
166
+ * 清除所有选择条件
167
+ */
168
+ clearSelector(): NodeSelector;
169
+ /**
170
+ * 获取节点id
171
+ * @param id 节点id
172
+ * @returns 节点选择器
173
+ */
174
+ id(id: string): NodeSelector;
175
+ /**
176
+ * 获取节点xpath
177
+ * @param path xpath路径
178
+ * @returns 节点选择器
179
+ */
180
+ xpath(path: string): NodeSelector;
181
+ /**
182
+ * 获取节点标签
183
+ * @param label 节点标签
184
+ * @returns 节点选择器
185
+ */
186
+ label(label: string): NodeSelector;
187
+ /**
188
+ * 获取节点标签匹配
189
+ * @param match 匹配字符串
190
+ * @returns 节点选择器
191
+ */
192
+ labelMatch(match: string): NodeSelector;
193
+ /**
194
+ * 获取节点名称
195
+ * @param title 节点名称
196
+ * @returns 节点选择器
197
+ */
198
+ title(title: string): NodeSelector;
199
+ /**
200
+ * 获取节点名称匹配
201
+ * @param match 匹配字符串
202
+ * @returns 节点选择器
203
+ */
204
+ titleMatch(match: string): NodeSelector;
205
+ /**
206
+ * 获取节点标识符
207
+ * @param identifier 节点标识符
208
+ * @returns 节点选择器
209
+ */
210
+ identifier(identifier: string): NodeSelector;
211
+ /**
212
+ * 获取节点标识符匹配
213
+ * @param match 匹配字符串
214
+ * @returns 节点选择器
215
+ */
216
+ identifierMatch(match: string): NodeSelector;
217
+ /**
218
+ * 获取节点类型
219
+ * @param type 节点类型
220
+ * @returns 节点选择器
221
+ */
222
+ type(type: string): NodeSelector;
223
+ /**
224
+ * 获取节点类型匹配
225
+ * @param match 匹配字符串
226
+ * @returns 节点选择器
227
+ */
228
+ typeMatch(match: string): NodeSelector;
229
+ /**
230
+ * 获取节点值
231
+ * @param value 节点值
232
+ * @returns 节点选择器
233
+ */
234
+ value(value: string): NodeSelector;
235
+ /**
236
+ * 获取节点值匹配
237
+ * @param match 匹配字符串
238
+ * @returns 节点选择器
239
+ */
240
+ valueMatch(match: string): NodeSelector;
241
+ /**
242
+ * 获取节点占位符值
243
+ * @param placeholderValue 节点占位符值
244
+ * @returns 节点选择器
245
+ */
246
+ placeholderValue(placeholderValue: string): NodeSelector;
247
+ /**
248
+ * 获取节点占位符值匹配
249
+ * @param match 匹配字符串
250
+ * @returns 节点选择器
251
+ */
252
+ placeholderValueMatch(match: string): NodeSelector;
253
+ /**
254
+ * 获取节点是否启用
255
+ * @param enabled 是否启用
256
+ * @returns 节点选择器
257
+ */
258
+ enabled(enabled: boolean): NodeSelector;
259
+ /**
260
+ * 获取节点是否可见
261
+ * @param visible 是否可见
262
+ * @returns 节点选择器
263
+ */
264
+ visible(visible: boolean): NodeSelector;
265
+ /**
266
+ * 获取节点索引
267
+ * @param index 节点索引
268
+ * @returns 节点选择器
269
+ */
270
+ index(index: number): NodeSelector;
271
+ /**
272
+ * 获取节点层级
273
+ * @param depth 节点层级
274
+ * @returns 节点选择器
275
+ */
276
+ depth(depth: number): NodeSelector;
277
+ /**
278
+ * 获取节点子节点数量
279
+ * @param childCount 子节点数量
280
+ * @returns 节点选择器
281
+ */
282
+ childCount(childCount: number | string): NodeSelector;
283
+ /**
284
+ * 获取节点位置
285
+ * @param x x坐标
286
+ * @param y y坐标
287
+ * @param width 宽度
288
+ * @param height 高度
289
+ * @returns 节点选择器
290
+ */
291
+ bounds(x: number, y: number, width: number, height: number): NodeSelector;
292
+ }