@freelog/tools-lib 0.1.68 → 0.1.72
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 +1 -0
- package/dist/service-API/resources.d.ts +6 -0
- package/dist/tools-lib.cjs.development.js +12 -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 +12 -5
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/informalNodes.ts +2 -1
- package/src/service-API/resources.ts +15 -3
package/package.json
CHANGED
|
@@ -196,6 +196,7 @@ 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) {
|
|
@@ -214,7 +215,7 @@ interface RulesPreExecutionParamsType {
|
|
|
214
215
|
|
|
215
216
|
export function rulesPreExecution({nodeId, ...params}: RulesPreExecutionParamsType) {
|
|
216
217
|
return FUtil.Request({
|
|
217
|
-
method: '
|
|
218
|
+
method: 'POST',
|
|
218
219
|
url: `/v2/testNodes/${nodeId}/rules/preExecution`,
|
|
219
220
|
data: params,
|
|
220
221
|
});
|
|
@@ -440,12 +440,24 @@ interface RelationTreeAuthParamsType {
|
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
export function relationTreeAuth({resourceId, ...params}: RelationTreeAuthParamsType) {
|
|
443
|
-
// return FUtil.Axios.get(`/v2/auths/resources/${resourceId}/relationTreeAuth`, {
|
|
444
|
-
// params,
|
|
445
|
-
// });
|
|
446
443
|
return FUtil.Request({
|
|
447
444
|
method: 'GET',
|
|
448
445
|
url: `/v2/auths/resources/${resourceId}/relationTreeAuth`,
|
|
449
446
|
params: params,
|
|
450
447
|
});
|
|
451
448
|
}
|
|
449
|
+
|
|
450
|
+
// 批量查询资源授权结果
|
|
451
|
+
interface BatchAuthParamsType {
|
|
452
|
+
resourceIds: string;
|
|
453
|
+
versions?: string;
|
|
454
|
+
versionRanges?: string;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export function batchAuth({...params}: BatchAuthParamsType) {
|
|
458
|
+
return FUtil.Request({
|
|
459
|
+
method: 'GET',
|
|
460
|
+
url: `/v2/auths/resources/batchAuth/results`,
|
|
461
|
+
params: params,
|
|
462
|
+
});
|
|
463
|
+
}
|