@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.
@@ -78,4 +78,10 @@ interface RulesRematchParamsType {
78
78
  nodeId: number;
79
79
  }
80
80
  export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<any>;
81
+ interface BatchGetAuthsParamsType {
82
+ nodeId: number;
83
+ testResourceIds: string;
84
+ authType: 1 | 2 | 3;
85
+ }
86
+ export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<any>;
81
87
  export {};
@@ -2443,7 +2443,8 @@ var _excluded$5 = ["nodeId"],
2443
2443
  _excluded6$2 = ["testResourceId"],
2444
2444
  _excluded7$2 = ["testResourceId"],
2445
2445
  _excluded8$2 = ["nodeId"],
2446
- _excluded9$2 = ["nodeId"];
2446
+ _excluded9$2 = ["nodeId"],
2447
+ _excluded10$2 = ["nodeId"];
2447
2448
  function testResources(_ref) {
2448
2449
  var nodeId = _ref.nodeId,
2449
2450
  params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
@@ -2572,6 +2573,17 @@ function rulesRematch(_ref13) {
2572
2573
  data: params
2573
2574
  });
2574
2575
  }
2576
+ function batchGetAuths(_ref14) {
2577
+ var nodeId = _ref14.nodeId,
2578
+ params = _objectWithoutPropertiesLoose(_ref14, _excluded10$2);
2579
+
2580
+ // return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
2581
+ return FUtil.Request({
2582
+ method: 'GET',
2583
+ url: "/v2/auths/testResources/nodes/" + nodeId + "/result",
2584
+ params: params
2585
+ });
2586
+ }
2575
2587
 
2576
2588
  var InformalNode = {
2577
2589
  __proto__: null,
@@ -2587,7 +2599,8 @@ var InformalNode = {
2587
2599
  testResourcesAuthTree: testResourcesAuthTree,
2588
2600
  testResourceDetails: testResourceDetails,
2589
2601
  searchTestResourcesByDependency: searchTestResourcesByDependency,
2590
- rulesRematch: rulesRematch
2602
+ rulesRematch: rulesRematch,
2603
+ batchGetAuths: batchGetAuths
2591
2604
  };
2592
2605
 
2593
2606
  var _excluded$6 = ["contractId"],