@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
  });