@freelog/tools-lib 0.1.67 → 0.1.71
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/service-API/informalNodes.d.ts +6 -0
- package/dist/tools-lib.cjs.development.js +14 -5
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +14 -5
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/informalNodes.ts +15 -3
package/package.json
CHANGED
|
@@ -196,10 +196,10 @@ export function searchTestResourcesByDependency({nodeId, ...params}: SearchTestR
|
|
|
196
196
|
// 重新匹配节点测试规则
|
|
197
197
|
interface RulesRematchParamsType {
|
|
198
198
|
nodeId: number;
|
|
199
|
+
isMandatoryMatch?: 0 | 1; // 0:否 1:是 默认1
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
export function rulesRematch({nodeId, ...params}: RulesRematchParamsType) {
|
|
202
|
-
// return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
|
|
203
203
|
return FUtil.Request({
|
|
204
204
|
method: 'POST',
|
|
205
205
|
url: `/v2/testNodes/${nodeId}/rules/rematch`,
|
|
@@ -207,6 +207,20 @@ export function rulesRematch({nodeId, ...params}: RulesRematchParamsType) {
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
// 节点测试规则预执行(不存档)
|
|
211
|
+
interface RulesPreExecutionParamsType {
|
|
212
|
+
nodeId: number;
|
|
213
|
+
testRuleText: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function rulesPreExecution({nodeId, ...params}: RulesPreExecutionParamsType) {
|
|
217
|
+
return FUtil.Request({
|
|
218
|
+
method: 'POST',
|
|
219
|
+
url: `/v2/testNodes/${nodeId}/rules/preExecution`,
|
|
220
|
+
data: params,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
210
224
|
// 批量获取测试资源授权结果
|
|
211
225
|
interface BatchGetAuthsParamsType {
|
|
212
226
|
nodeId: number;
|
|
@@ -215,10 +229,8 @@ interface BatchGetAuthsParamsType {
|
|
|
215
229
|
}
|
|
216
230
|
|
|
217
231
|
export function batchGetAuths({nodeId, ...params}: BatchGetAuthsParamsType) {
|
|
218
|
-
// return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
|
|
219
232
|
return FUtil.Request({
|
|
220
233
|
method: 'GET',
|
|
221
|
-
// url: `/v2/auths/testResources/nodes/${nodeId}/result`,
|
|
222
234
|
url: `/v2/auths/exhibits/${nodeId}/test/batchAuth/results`,
|
|
223
235
|
params: params,
|
|
224
236
|
});
|