@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/dist/service-API/informalNodes.d.ts +5 -0
- package/dist/tools-lib.cjs.development.js +14 -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 +14 -5
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/informalNodes.ts +14 -3
|
@@ -78,6 +78,11 @@ interface RulesRematchParamsType {
|
|
|
78
78
|
nodeId: number;
|
|
79
79
|
}
|
|
80
80
|
export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<any>;
|
|
81
|
+
interface RulesPreExecutionParamsType {
|
|
82
|
+
nodeId: number;
|
|
83
|
+
testRuleText: string;
|
|
84
|
+
}
|
|
85
|
+
export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<any>;
|
|
81
86
|
interface BatchGetAuthsParamsType {
|
|
82
87
|
nodeId: number;
|
|
83
88
|
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
|
|
2577
|
+
function rulesPreExecution(_ref14) {
|
|
2578
2578
|
var nodeId = _ref14.nodeId,
|
|
2579
2579
|
params = _objectWithoutPropertiesLoose(_ref14, _excluded10$2);
|
|
2580
2580
|
|
|
2581
|
-
|
|
2581
|
+
return FUtil.Request({
|
|
2582
|
+
method: 'PUT',
|
|
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
|
|