@freelog/tools-lib 0.1.60 → 0.1.64

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
+ exhibitIds: string;
84
+ authType: 1 | 2 | 3;
85
+ }
86
+ export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<any>;
81
87
  export {};
@@ -984,7 +984,11 @@ var USERNAME = /*#__PURE__*/new RegExp(/^([A-Za-z0-9][A-Za-z0-9-]{0,28})?[A-Za-z
984
984
 
985
985
  var PASSWORD = /*#__PURE__*/new RegExp(/^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/); // 自然数
986
986
 
987
- var NATURAL_NUMBER = /*#__PURE__*/new RegExp(/^[0-9]*$/);
987
+ var NATURAL_NUMBER = /*#__PURE__*/new RegExp(/^[0-9]*$/); // 对象的Bucket名称
988
+
989
+ var BUCKET_NAME = /*#__PURE__*/new RegExp(/^([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]$/); // JS变量名称
990
+
991
+ var JS_VARIABLE_NAME = /*#__PURE__*/new RegExp(/^[A-Za-z$_][\w$_]*$/);
988
992
 
989
993
  var Regexp = {
990
994
  __proto__: null,
@@ -999,7 +1003,9 @@ var Regexp = {
999
1003
  EMAIL_ADDRESS: EMAIL_ADDRESS,
1000
1004
  USERNAME: USERNAME,
1001
1005
  PASSWORD: PASSWORD,
1002
- NATURAL_NUMBER: NATURAL_NUMBER
1006
+ NATURAL_NUMBER: NATURAL_NUMBER,
1007
+ BUCKET_NAME: BUCKET_NAME,
1008
+ JS_VARIABLE_NAME: JS_VARIABLE_NAME
1003
1009
  };
1004
1010
 
1005
1011
  var _excluded = ["resourceID"],
@@ -2437,7 +2443,8 @@ var _excluded$5 = ["nodeId"],
2437
2443
  _excluded6$2 = ["testResourceId"],
2438
2444
  _excluded7$2 = ["testResourceId"],
2439
2445
  _excluded8$2 = ["nodeId"],
2440
- _excluded9$2 = ["nodeId"];
2446
+ _excluded9$2 = ["nodeId"],
2447
+ _excluded10$2 = ["nodeId"];
2441
2448
  function testResources(_ref) {
2442
2449
  var nodeId = _ref.nodeId,
2443
2450
  params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
@@ -2566,6 +2573,18 @@ function rulesRematch(_ref13) {
2566
2573
  data: params
2567
2574
  });
2568
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
+ url: "/v2/auths/exhibits/" + nodeId + "/test/batchAuth/results",
2585
+ params: params
2586
+ });
2587
+ }
2569
2588
 
2570
2589
  var InformalNode = {
2571
2590
  __proto__: null,
@@ -2581,7 +2600,8 @@ var InformalNode = {
2581
2600
  testResourcesAuthTree: testResourcesAuthTree,
2582
2601
  testResourceDetails: testResourceDetails,
2583
2602
  searchTestResourcesByDependency: searchTestResourcesByDependency,
2584
- rulesRematch: rulesRematch
2603
+ rulesRematch: rulesRematch,
2604
+ batchGetAuths: batchGetAuths
2585
2605
  };
2586
2606
 
2587
2607
  var _excluded$6 = ["contractId"],