@freelog/tools-lib 0.1.61 → 0.1.62

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.61",
3
+ "version": "0.1.62",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -54,7 +54,7 @@
54
54
  "typescript": "^4.3.2"
55
55
  },
56
56
  "dependencies": {
57
- "@freelog/resource-policy-lang": "^1.1.25",
57
+ "@freelog/resource-policy-lang": "1.1.26",
58
58
  "@freelog/tools-lib": "^0.1.43",
59
59
  "axios": "^0.21.1",
60
60
  "crypto-js": "^4.0.0",
@@ -206,3 +206,19 @@ export function rulesRematch({nodeId, ...params}: RulesRematchParamsType) {
206
206
  data: params,
207
207
  });
208
208
  }
209
+
210
+ // 批量获取测试资源授权结果
211
+ interface BatchGetAuthsParamsType {
212
+ nodeId: number;
213
+ testResourceIds: string;
214
+ authType: 1 | 2 | 3; //授权类型 1:节点侧授权 2:资源侧授权 3:节点+资源侧授权
215
+ }
216
+
217
+ export function batchGetAuths({nodeId, ...params}: BatchGetAuthsParamsType) {
218
+ // return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
219
+ return FUtil.Request({
220
+ method: 'GET',
221
+ url: `/v2/auths/testResources/nodes/${nodeId}/result`,
222
+ params: params,
223
+ });
224
+ }