@freelog/tools-lib 0.1.67 → 0.1.68
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 +5 -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 +14 -3
package/package.json
CHANGED
|
@@ -199,7 +199,6 @@ interface RulesRematchParamsType {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
export function rulesRematch({nodeId, ...params}: RulesRematchParamsType) {
|
|
202
|
-
// return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
|
|
203
202
|
return FUtil.Request({
|
|
204
203
|
method: 'POST',
|
|
205
204
|
url: `/v2/testNodes/${nodeId}/rules/rematch`,
|
|
@@ -207,6 +206,20 @@ export function rulesRematch({nodeId, ...params}: RulesRematchParamsType) {
|
|
|
207
206
|
});
|
|
208
207
|
}
|
|
209
208
|
|
|
209
|
+
// 节点测试规则预执行(不存档)
|
|
210
|
+
interface RulesPreExecutionParamsType {
|
|
211
|
+
nodeId: number;
|
|
212
|
+
testRuleText: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function rulesPreExecution({nodeId, ...params}: RulesPreExecutionParamsType) {
|
|
216
|
+
return FUtil.Request({
|
|
217
|
+
method: 'PUT',
|
|
218
|
+
url: `/v2/testNodes/${nodeId}/rules/preExecution`,
|
|
219
|
+
data: params,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
210
223
|
// 批量获取测试资源授权结果
|
|
211
224
|
interface BatchGetAuthsParamsType {
|
|
212
225
|
nodeId: number;
|
|
@@ -215,10 +228,8 @@ interface BatchGetAuthsParamsType {
|
|
|
215
228
|
}
|
|
216
229
|
|
|
217
230
|
export function batchGetAuths({nodeId, ...params}: BatchGetAuthsParamsType) {
|
|
218
|
-
// return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
|
|
219
231
|
return FUtil.Request({
|
|
220
232
|
method: 'GET',
|
|
221
|
-
// url: `/v2/auths/testResources/nodes/${nodeId}/result`,
|
|
222
233
|
url: `/v2/auths/exhibits/${nodeId}/test/batchAuth/results`,
|
|
223
234
|
params: params,
|
|
224
235
|
});
|