@freelog/tools-lib 0.1.67 → 0.1.71

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.
@@ -76,8 +76,14 @@ interface SearchTestResourcesByDependencyParamsType {
76
76
  export declare function searchTestResourcesByDependency({ nodeId, ...params }: SearchTestResourcesByDependencyParamsType): Promise<any>;
77
77
  interface RulesRematchParamsType {
78
78
  nodeId: number;
79
+ isMandatoryMatch?: 0 | 1;
79
80
  }
80
81
  export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<any>;
82
+ interface RulesPreExecutionParamsType {
83
+ nodeId: number;
84
+ testRuleText: string;
85
+ }
86
+ export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<any>;
81
87
  interface BatchGetAuthsParamsType {
82
88
  nodeId: number;
83
89
  exhibitIds: string;
@@ -2445,7 +2445,8 @@ var _excluded$5 = ["nodeId"],
2445
2445
  _excluded7$2 = ["testResourceId"],
2446
2446
  _excluded8$2 = ["nodeId"],
2447
2447
  _excluded9$2 = ["nodeId"],
2448
- _excluded10$2 = ["nodeId"];
2448
+ _excluded10$2 = ["nodeId"],
2449
+ _excluded11$1 = ["nodeId"];
2449
2450
  function testResources(_ref) {
2450
2451
  var nodeId = _ref.nodeId,
2451
2452
  params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
@@ -2567,21 +2568,28 @@ function rulesRematch(_ref13) {
2567
2568
  var nodeId = _ref13.nodeId,
2568
2569
  params = _objectWithoutPropertiesLoose(_ref13, _excluded9$2);
2569
2570
 
2570
- // return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
2571
2571
  return FUtil.Request({
2572
2572
  method: 'POST',
2573
2573
  url: "/v2/testNodes/" + nodeId + "/rules/rematch",
2574
2574
  data: params
2575
2575
  });
2576
2576
  }
2577
- function batchGetAuths(_ref14) {
2577
+ function rulesPreExecution(_ref14) {
2578
2578
  var nodeId = _ref14.nodeId,
2579
2579
  params = _objectWithoutPropertiesLoose(_ref14, _excluded10$2);
2580
2580
 
2581
- // return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
2581
+ return FUtil.Request({
2582
+ method: 'POST',
2583
+ url: "/v2/testNodes/" + nodeId + "/rules/preExecution",
2584
+ data: params
2585
+ });
2586
+ }
2587
+ function batchGetAuths(_ref15) {
2588
+ var nodeId = _ref15.nodeId,
2589
+ params = _objectWithoutPropertiesLoose(_ref15, _excluded11$1);
2590
+
2582
2591
  return FUtil.Request({
2583
2592
  method: 'GET',
2584
- // url: `/v2/auths/testResources/nodes/${nodeId}/result`,
2585
2593
  url: "/v2/auths/exhibits/" + nodeId + "/test/batchAuth/results",
2586
2594
  params: params
2587
2595
  });
@@ -2602,6 +2610,7 @@ var InformalNode = {
2602
2610
  testResourceDetails: testResourceDetails,
2603
2611
  searchTestResourcesByDependency: searchTestResourcesByDependency,
2604
2612
  rulesRematch: rulesRematch,
2613
+ rulesPreExecution: rulesPreExecution,
2605
2614
  batchGetAuths: batchGetAuths
2606
2615
  };
2607
2616