@freelog/tools-lib 0.1.85 → 0.1.88

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.
@@ -8,36 +8,49 @@ interface TestResourcesParamsType {
8
8
  omitResourceType?: string;
9
9
  keywords?: string;
10
10
  }
11
- export declare function testResources({ nodeId, ...params }: TestResourcesParamsType): Promise<any>;
11
+ export declare function testResources({ nodeId, ...params }: TestResourcesParamsType): Promise<void | (import("./tools").CommonReturn & {
12
+ data: any;
13
+ })>;
12
14
  interface CreateRulesParamsType {
13
15
  nodeId: number;
14
16
  testRuleText: string;
15
17
  }
16
- export declare function createRules({ nodeId, ...params }: CreateRulesParamsType): Promise<any>;
18
+ export declare function createRules({ nodeId, ...params }: CreateRulesParamsType): Promise<void | (import("./tools").CommonReturn & {
19
+ data: any;
20
+ })>;
17
21
  interface BatchTestResourcesParamsType {
18
22
  nodeId: number;
19
23
  entityType?: 'resource' | 'object';
20
24
  entityIds?: string;
21
25
  entityNames?: string;
26
+ testResourceNames?: string;
22
27
  projection?: string;
23
28
  }
24
- export declare function batchTestResources({ nodeId, ...params }: BatchTestResourcesParamsType): Promise<any>;
29
+ export declare function batchTestResources({ nodeId, ...params }: BatchTestResourcesParamsType): Promise<void | (import("./tools").CommonReturn & {
30
+ data: any;
31
+ })>;
25
32
  interface DependencyTreeParamsType {
26
33
  nodeId: number;
27
34
  keywords: string;
28
35
  resourceType?: string;
29
36
  omitResourceType?: string;
30
37
  }
31
- export declare function dependencyTree({ nodeId, ...params }: DependencyTreeParamsType): Promise<any>;
38
+ export declare function dependencyTree({ nodeId, ...params }: DependencyTreeParamsType): Promise<void | (import("./tools").CommonReturn & {
39
+ data: any;
40
+ })>;
32
41
  interface PutRulesParamsType {
33
42
  nodeId: number;
34
43
  additionalTestRule: string;
35
44
  }
36
- export declare function putRules({ nodeId, ...params }: PutRulesParamsType): Promise<any>;
45
+ export declare function putRules({ nodeId, ...params }: PutRulesParamsType): Promise<void | (import("./tools").CommonReturn & {
46
+ data: any;
47
+ })>;
37
48
  interface TestNodeRulesParamsType {
38
49
  nodeId: number;
39
50
  }
40
- export declare function testNodeRules({ nodeId }: TestNodeRulesParamsType): Promise<any>;
51
+ export declare function testNodeRules({ nodeId }: TestNodeRulesParamsType): Promise<void | (import("./tools").CommonReturn & {
52
+ data: any;
53
+ })>;
41
54
  interface UpdateTestResourceContractsParamsType {
42
55
  testResourceId: string;
43
56
  resolveResources: {
@@ -47,25 +60,35 @@ interface UpdateTestResourceContractsParamsType {
47
60
  }[];
48
61
  }[];
49
62
  }
50
- export declare function updateTestResourceContracts({ testResourceId, ...params }: UpdateTestResourceContractsParamsType): Promise<any>;
63
+ export declare function updateTestResourceContracts({ testResourceId, ...params }: UpdateTestResourceContractsParamsType): Promise<void | (import("./tools").CommonReturn & {
64
+ data: any;
65
+ })>;
51
66
  interface DependencyTreeFilterParamsType {
52
67
  testResourceId: string;
53
68
  dependentEntityId: string;
54
69
  dependentEntityVersionRange?: string;
55
70
  }
56
- export declare function dependencyTreeFilter({ testResourceId, ...params }: DependencyTreeFilterParamsType): Promise<any>;
71
+ export declare function dependencyTreeFilter({ testResourceId, ...params }: DependencyTreeFilterParamsType): Promise<void | (import("./tools").CommonReturn & {
72
+ data: any;
73
+ })>;
57
74
  interface TestResourcesDependencyTreeParamsType {
58
75
  testResourceId: string;
59
76
  }
60
- export declare function testResourcesDependencyTree({ testResourceId }: TestResourcesDependencyTreeParamsType): Promise<any>;
77
+ export declare function testResourcesDependencyTree({ testResourceId }: TestResourcesDependencyTreeParamsType): Promise<void | (import("./tools").CommonReturn & {
78
+ data: any;
79
+ })>;
61
80
  interface TestResourcesAuthTreeParamsType {
62
81
  testResourceId: string;
63
82
  }
64
- export declare function testResourcesAuthTree({ testResourceId }: TestResourcesAuthTreeParamsType): Promise<any>;
83
+ export declare function testResourcesAuthTree({ testResourceId }: TestResourcesAuthTreeParamsType): Promise<void | (import("./tools").CommonReturn & {
84
+ data: any;
85
+ })>;
65
86
  interface TestResourceDetailsParamsType {
66
87
  testResourceId: string;
67
88
  }
68
- export declare function testResourceDetails({ testResourceId }: TestResourceDetailsParamsType): Promise<any>;
89
+ export declare function testResourceDetails({ testResourceId }: TestResourceDetailsParamsType): Promise<void | (import("./tools").CommonReturn & {
90
+ data: any;
91
+ })>;
69
92
  interface SearchTestResourcesByDependencyParamsType {
70
93
  nodeId: number;
71
94
  dependentEntityId: string;
@@ -73,21 +96,29 @@ interface SearchTestResourcesByDependencyParamsType {
73
96
  resourceType?: string;
74
97
  omitResourceType?: string;
75
98
  }
76
- export declare function searchTestResourcesByDependency({ nodeId, ...params }: SearchTestResourcesByDependencyParamsType): Promise<any>;
99
+ export declare function searchTestResourcesByDependency({ nodeId, ...params }: SearchTestResourcesByDependencyParamsType): Promise<void | (import("./tools").CommonReturn & {
100
+ data: any;
101
+ })>;
77
102
  interface RulesRematchParamsType {
78
103
  nodeId: number;
79
104
  isMandatoryMatch?: 0 | 1;
80
105
  }
81
- export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<any>;
106
+ export declare function rulesRematch({ nodeId, ...params }: RulesRematchParamsType): Promise<void | (import("./tools").CommonReturn & {
107
+ data: any;
108
+ })>;
82
109
  interface RulesPreExecutionParamsType {
83
110
  nodeId: number;
84
111
  testRuleText: string;
85
112
  }
86
- export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<any>;
113
+ export declare function rulesPreExecution({ nodeId, ...params }: RulesPreExecutionParamsType): Promise<void | (import("./tools").CommonReturn & {
114
+ data: any;
115
+ })>;
87
116
  interface BatchGetAuthsParamsType {
88
117
  nodeId: number;
89
118
  exhibitIds: string;
90
119
  authType: 1 | 2 | 3;
91
120
  }
92
- export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<any>;
121
+ export declare function batchGetAuths({ nodeId, ...params }: BatchGetAuthsParamsType): Promise<void | (import("./tools").CommonReturn & {
122
+ data: any;
123
+ })>;
93
124
  export {};
@@ -4,12 +4,16 @@ interface PoliciesParamsType {
4
4
  subjectType?: 1 | 2 | 3;
5
5
  projection?: string;
6
6
  }
7
- export declare function policies(params: PoliciesParamsType): Promise<any>;
7
+ export declare function policies(params: PoliciesParamsType): Promise<void | (import("./tools").CommonReturn & {
8
+ data: any;
9
+ })>;
8
10
  interface PoliciesListParamsType {
9
11
  policyIds: string;
10
12
  subjectType?: number;
11
13
  userId?: number;
12
14
  projection?: string;
13
15
  }
14
- export declare function policiesList(params: PoliciesListParamsType): Promise<any>;
16
+ export declare function policiesList(params: PoliciesListParamsType): Promise<void | (import("./tools").CommonReturn & {
17
+ data: any;
18
+ })>;
15
19
  export {};
@@ -133,16 +133,17 @@ interface CreateVersionParamsType {
133
133
  }[];
134
134
  }
135
135
  export declare function createVersion({ resourceId, ...params }: CreateVersionParamsType): Promise<any>;
136
- interface ResourceVersionInfoParamsType1 {
136
+ interface ResourceVersionInfo1ParamsType {
137
137
  resourceId: string;
138
138
  version: string;
139
139
  projection?: string;
140
140
  }
141
- interface ResourceVersionInfoParamsType2 {
141
+ interface ResourceVersionInfo2ParamsType {
142
142
  versionId: string;
143
143
  projection?: string;
144
144
  }
145
- export declare function resourceVersionInfo(params: ResourceVersionInfoParamsType1 | ResourceVersionInfoParamsType2): Promise<any>;
145
+ export declare function resourceVersionInfo1({ resourceId, version, ...params }: ResourceVersionInfo1ParamsType): Promise<any>;
146
+ export declare function resourceVersionInfo2(params: ResourceVersionInfo2ParamsType): Promise<any>;
146
147
  interface GetResourceVersionBySha1ParamsType {
147
148
  fileSha1: string;
148
149
  projection?: string;
@@ -3,3 +3,7 @@ export interface CommonReturn {
3
3
  msg: string;
4
4
  ret: number;
5
5
  }
6
+ export interface RequestParamsType {
7
+ noRedirect?: boolean;
8
+ noErrorAlert?: boolean;
9
+ }
@@ -1048,106 +1048,113 @@ function market(_temp4) {
1048
1048
 
1049
1049
  return "/market";
1050
1050
  }
1051
- function resourceDetails(_ref6) {
1052
- var resourceID = _ref6.resourceID,
1053
- params = _objectWithoutPropertiesLoose(_ref6, _excluded);
1051
+ function exampleNodes(_temp5) {
1052
+ var _ref6 = _temp5 === void 0 ? {} : _temp5;
1054
1053
 
1055
- return "/resource/details/" + resourceID + handleQuery(params);
1056
- }
1057
- function resourceCreator(_temp5) {
1058
- var _ref7 = _temp5 === void 0 ? {} : _temp5;
1054
+ _objectDestructuringEmpty(_ref6);
1059
1055
 
1060
- _objectDestructuringEmpty(_ref7);
1056
+ return "/market";
1057
+ }
1058
+ function resourceDetails(_ref7) {
1059
+ var resourceID = _ref7.resourceID,
1060
+ params = _objectWithoutPropertiesLoose(_ref7, _excluded);
1061
1061
 
1062
- return "/resource/creator";
1062
+ return "/resource/details/" + resourceID + handleQuery(params);
1063
1063
  }
1064
- function myResources(_temp6) {
1064
+ function resourceCreator(_temp6) {
1065
1065
  var _ref8 = _temp6 === void 0 ? {} : _temp6;
1066
1066
 
1067
1067
  _objectDestructuringEmpty(_ref8);
1068
1068
 
1069
- return "/resource/list";
1069
+ return "/resource/creator";
1070
1070
  }
1071
- function myCollects(_temp7) {
1071
+ function myResources(_temp7) {
1072
1072
  var _ref9 = _temp7 === void 0 ? {} : _temp7;
1073
1073
 
1074
1074
  _objectDestructuringEmpty(_ref9);
1075
1075
 
1076
+ return "/resource/list";
1077
+ }
1078
+ function myCollects(_temp8) {
1079
+ var _ref10 = _temp8 === void 0 ? {} : _temp8;
1080
+
1081
+ _objectDestructuringEmpty(_ref10);
1082
+
1076
1083
  return "/resource/collect";
1077
1084
  }
1078
- function resourceInfo(_ref10) {
1079
- var resourceID = _ref10.resourceID;
1085
+ function resourceInfo(_ref11) {
1086
+ var resourceID = _ref11.resourceID;
1080
1087
  return "/resource/info/" + resourceID;
1081
1088
  }
1082
- function resourceAuth(_ref11) {
1083
- var resourceID = _ref11.resourceID;
1089
+ function resourceAuth(_ref12) {
1090
+ var resourceID = _ref12.resourceID;
1084
1091
  return "/resource/auth/" + resourceID;
1085
1092
  }
1086
- function resourceCreateVersion(_ref12) {
1087
- var resourceID = _ref12.resourceID;
1093
+ function resourceCreateVersion(_ref13) {
1094
+ var resourceID = _ref13.resourceID;
1088
1095
  return "/resource/version/creator/" + resourceID;
1089
1096
  }
1090
- function resourceVersion(_ref13) {
1091
- var resourceID = _ref13.resourceID,
1092
- version = _ref13.version;
1097
+ function resourceVersion(_ref14) {
1098
+ var resourceID = _ref14.resourceID,
1099
+ version = _ref14.version;
1093
1100
  return "/resource/version/info/" + resourceID + "/" + version;
1094
1101
  }
1095
- function nodeCreator(_temp8) {
1096
- var _ref14 = _temp8 === void 0 ? {} : _temp8;
1102
+ function nodeCreator(_temp9) {
1103
+ var _ref15 = _temp9 === void 0 ? {} : _temp9;
1097
1104
 
1098
- _objectDestructuringEmpty(_ref14);
1105
+ _objectDestructuringEmpty(_ref15);
1099
1106
 
1100
1107
  return "/node/creator";
1101
1108
  }
1102
- function nodeManagement(_ref15) {
1103
- var nodeID = _ref15.nodeID;
1109
+ function nodeManagement(_ref16) {
1110
+ var nodeID = _ref16.nodeID;
1104
1111
  return "/node/formal/" + nodeID;
1105
1112
  }
1106
- function exhibitManagement(_ref16) {
1107
- var exhibitID = _ref16.exhibitID;
1113
+ function exhibitManagement(_ref17) {
1114
+ var exhibitID = _ref17.exhibitID;
1108
1115
  return "/node/exhibit/formal/" + exhibitID;
1109
1116
  }
1110
- function informNodeManagement(_ref17) {
1111
- var nodeID = _ref17.nodeID,
1112
- _ref17$showPage = _ref17.showPage,
1113
- showPage = _ref17$showPage === void 0 ? 'exhibit' : _ref17$showPage,
1114
- params = _objectWithoutPropertiesLoose(_ref17, _excluded2);
1117
+ function informNodeManagement(_ref18) {
1118
+ var nodeID = _ref18.nodeID,
1119
+ _ref18$showPage = _ref18.showPage,
1120
+ showPage = _ref18$showPage === void 0 ? 'exhibit' : _ref18$showPage,
1121
+ params = _objectWithoutPropertiesLoose(_ref18, _excluded2);
1115
1122
 
1116
1123
  return "/node/informal/" + nodeID + handleQuery(_extends({
1117
1124
  showPage: showPage
1118
1125
  }, params));
1119
1126
  }
1120
- function informExhibitManagement(_ref18) {
1121
- var exhibitID = _ref18.exhibitID;
1127
+ function informExhibitManagement(_ref19) {
1128
+ var exhibitID = _ref19.exhibitID;
1122
1129
  return "/node/exhibit/informal/" + exhibitID;
1123
1130
  }
1124
- function storageSpace(_temp9) {
1125
- var _ref19 = _temp9 === void 0 ? {} : _temp9,
1126
- params = _extends({}, _ref19);
1131
+ function storageSpace(_temp10) {
1132
+ var _ref20 = _temp10 === void 0 ? {} : _temp10,
1133
+ params = _extends({}, _ref20);
1127
1134
 
1128
1135
  return "/storage" + handleQuery(params);
1129
1136
  }
1130
- function objectDetails(_ref20) {
1131
- var params = _extends({}, _ref20);
1137
+ function objectDetails(_ref21) {
1138
+ var params = _extends({}, _ref21);
1132
1139
 
1133
1140
  return "/storage" + handleQuery(params);
1134
1141
  }
1135
- function resourceCreateSuccess(_ref21) {
1136
- var resourceID = _ref21.resourceID;
1142
+ function resourceCreateSuccess(_ref22) {
1143
+ var resourceID = _ref22.resourceID;
1137
1144
  return "/result/resource/create/success/" + resourceID;
1138
1145
  }
1139
- function resourceVersionCreateSuccess(_ref22) {
1140
- var resourceID = _ref22.resourceID,
1141
- version = _ref22.version;
1146
+ function resourceVersionCreateSuccess(_ref23) {
1147
+ var resourceID = _ref23.resourceID,
1148
+ version = _ref23.version;
1142
1149
  return "/result/resource/version/create/success/" + resourceID + "/" + version;
1143
1150
  }
1144
- function nodeCreateSuccess(_ref23) {
1145
- var nodeID = _ref23.nodeID;
1151
+ function nodeCreateSuccess(_ref24) {
1152
+ var nodeID = _ref24.nodeID;
1146
1153
  return "/result/node/create/success/" + nodeID;
1147
1154
  }
1148
- function exception403(_temp10) {
1149
- var _ref24 = _temp10 === void 0 ? {} : _temp10,
1150
- params = _extends({}, _ref24);
1155
+ function exception403(_temp11) {
1156
+ var _ref25 = _temp11 === void 0 ? {} : _temp11,
1157
+ params = _extends({}, _ref25);
1151
1158
 
1152
1159
  var fromUrl = params.from || '';
1153
1160
 
@@ -1162,56 +1169,56 @@ function exception403(_temp10) {
1162
1169
  from: fromUrl
1163
1170
  });
1164
1171
  }
1165
- function login(_temp11) {
1166
- var _ref25 = _temp11 === void 0 ? {} : _temp11,
1167
- goTo = _ref25.goTo;
1172
+ function login(_temp12) {
1173
+ var _ref26 = _temp12 === void 0 ? {} : _temp12,
1174
+ goTo = _ref26.goTo;
1168
1175
 
1169
1176
  return "/login" + handleQuery({
1170
1177
  goTo: goTo ? encodeURIComponent(goTo) : undefined
1171
1178
  });
1172
1179
  }
1173
- function logon(_temp12) {
1174
- var _ref26 = _temp12 === void 0 ? {} : _temp12,
1175
- goTo = _ref26.goTo;
1180
+ function logon(_temp13) {
1181
+ var _ref27 = _temp13 === void 0 ? {} : _temp13,
1182
+ goTo = _ref27.goTo;
1176
1183
 
1177
1184
  return "/logon" + handleQuery({
1178
1185
  goTo: goTo ? encodeURIComponent(goTo) : undefined
1179
1186
  });
1180
1187
  }
1181
- function retrieveUserPassword(_temp13) {
1182
- var _ref27 = _temp13 === void 0 ? {} : _temp13,
1183
- goTo = _ref27.goTo;
1188
+ function retrieveUserPassword(_temp14) {
1189
+ var _ref28 = _temp14 === void 0 ? {} : _temp14,
1190
+ goTo = _ref28.goTo;
1184
1191
 
1185
1192
  return "/retrieve" + handleQuery({
1186
1193
  goTo: goTo ? encodeURIComponent(goTo) : undefined
1187
1194
  });
1188
1195
  }
1189
- function retrievePayPassword(_temp14) {
1190
- var _ref28 = _temp14 === void 0 ? {} : _temp14;
1191
-
1192
- _objectDestructuringEmpty(_ref28);
1193
-
1194
- return "/retrievePayPassword";
1195
- }
1196
- function wallet(_temp15) {
1196
+ function retrievePayPassword(_temp15) {
1197
1197
  var _ref29 = _temp15 === void 0 ? {} : _temp15;
1198
1198
 
1199
1199
  _objectDestructuringEmpty(_ref29);
1200
1200
 
1201
- return "/logged/wallet";
1201
+ return "/retrievePayPassword";
1202
1202
  }
1203
- function contract(_temp16) {
1203
+ function wallet(_temp16) {
1204
1204
  var _ref30 = _temp16 === void 0 ? {} : _temp16;
1205
1205
 
1206
1206
  _objectDestructuringEmpty(_ref30);
1207
1207
 
1208
- return "/logged/contract";
1208
+ return "/logged/wallet";
1209
1209
  }
1210
- function setting(_temp17) {
1210
+ function contract(_temp17) {
1211
1211
  var _ref31 = _temp17 === void 0 ? {} : _temp17;
1212
1212
 
1213
1213
  _objectDestructuringEmpty(_ref31);
1214
1214
 
1215
+ return "/logged/contract";
1216
+ }
1217
+ function setting(_temp18) {
1218
+ var _ref32 = _temp18 === void 0 ? {} : _temp18;
1219
+
1220
+ _objectDestructuringEmpty(_ref32);
1221
+
1215
1222
  return "/logged/setting";
1216
1223
  }
1217
1224
  /************** user End ******************************************************/
@@ -1240,6 +1247,7 @@ var LinkTo = {
1240
1247
  activity: activity,
1241
1248
  dashboard: dashboard,
1242
1249
  market: market,
1250
+ exampleNodes: exampleNodes,
1243
1251
  resourceDetails: resourceDetails,
1244
1252
  resourceCreator: resourceCreator,
1245
1253
  myResources: myResources,
@@ -1432,20 +1440,20 @@ function request(_x, _x2) {
1432
1440
 
1433
1441
  function _request() {
1434
1442
  _request = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(config, _temp) {
1435
- var _ref, _ref$noRedirect, noRedirect, result;
1443
+ var _ref, _ref$noRedirect, noRedirect, _ref$noErrorAlert, noErrorAlert, result;
1436
1444
 
1437
1445
  return runtime_1.wrap(function _callee$(_context) {
1438
1446
  while (1) {
1439
1447
  switch (_context.prev = _context.next) {
1440
1448
  case 0:
1441
- _ref = _temp === void 0 ? {} : _temp, _ref$noRedirect = _ref.noRedirect, noRedirect = _ref$noRedirect === void 0 ? false : _ref$noRedirect;
1449
+ _ref = _temp === void 0 ? {} : _temp, _ref$noRedirect = _ref.noRedirect, noRedirect = _ref$noRedirect === void 0 ? false : _ref$noRedirect, _ref$noErrorAlert = _ref.noErrorAlert, noErrorAlert = _ref$noErrorAlert === void 0 ? false : _ref$noErrorAlert;
1442
1450
  _context.next = 3;
1443
1451
  return axios.request(config);
1444
1452
 
1445
1453
  case 3:
1446
1454
  result = _context.sent;
1447
1455
 
1448
- if (!((result.errCode === 30 || result.errcode === 30) && !noRedirect)) {
1456
+ if (!((result.errCode === 30 || result.errCode === 30) && !noRedirect)) {
1449
1457
  _context.next = 6;
1450
1458
  break;
1451
1459
  }
@@ -1455,9 +1463,10 @@ function _request() {
1455
1463
  })));
1456
1464
 
1457
1465
  case 6:
1466
+
1458
1467
  return _context.abrupt("return", result);
1459
1468
 
1460
- case 7:
1469
+ case 8:
1461
1470
  case "end":
1462
1471
  return _context.stop();
1463
1472
  }
@@ -2082,13 +2091,14 @@ var _excluded$3 = ["resourceIdOrName"],
2082
2091
  _excluded2$3 = ["resourceId"],
2083
2092
  _excluded3$2 = ["resourceId"],
2084
2093
  _excluded4$2 = ["resourceId"],
2085
- _excluded5$2 = ["fileSha1"],
2094
+ _excluded5$2 = ["resourceId", "version"],
2086
2095
  _excluded6$1 = ["fileSha1"],
2087
- _excluded7$1 = ["resourceId"],
2096
+ _excluded7$1 = ["fileSha1"],
2088
2097
  _excluded8$1 = ["resourceId"],
2089
2098
  _excluded9$1 = ["resourceId"],
2090
2099
  _excluded10$1 = ["resourceId"],
2091
- _excluded11 = ["resourceId"];
2100
+ _excluded11 = ["resourceId"],
2101
+ _excluded12 = ["resourceId"];
2092
2102
  function create$1(params) {
2093
2103
  return FUtil.Request({
2094
2104
  method: 'POST',
@@ -2158,24 +2168,27 @@ function createVersion(_ref4) {
2158
2168
  data: params
2159
2169
  });
2160
2170
  }
2161
- function resourceVersionInfo(params) {
2162
- if (params.version) {
2163
- return FUtil.Request({
2164
- method: 'GET',
2165
- url: "/v2/resources/" + params.resourceId + "/versions/" + params.version,
2166
- params: params
2167
- });
2168
- }
2171
+ function resourceVersionInfo1(_ref5) {
2172
+ var resourceId = _ref5.resourceId,
2173
+ version = _ref5.version,
2174
+ params = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
2169
2175
 
2176
+ return FUtil.Request({
2177
+ method: 'GET',
2178
+ url: "/v2/resources/" + resourceId + "/versions/" + version,
2179
+ params: params
2180
+ });
2181
+ }
2182
+ function resourceVersionInfo2(params) {
2170
2183
  return FUtil.Request({
2171
2184
  method: 'GET',
2172
2185
  url: "/v2/resources/versions/detail",
2173
2186
  params: params
2174
2187
  });
2175
2188
  }
2176
- function getResourceVersionBySha1(_ref5) {
2177
- var fileSha1 = _ref5.fileSha1,
2178
- params = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
2189
+ function getResourceVersionBySha1(_ref6) {
2190
+ var fileSha1 = _ref6.fileSha1,
2191
+ params = _objectWithoutPropertiesLoose(_ref6, _excluded6$1);
2179
2192
 
2180
2193
  // return FUtil.Axios.get(`/v2/resources/files/${fileSha1}/versions`, {
2181
2194
  // params,
@@ -2186,9 +2199,9 @@ function getResourceVersionBySha1(_ref5) {
2186
2199
  params: params
2187
2200
  });
2188
2201
  }
2189
- function getResourceBySha1(_ref6) {
2190
- var fileSha1 = _ref6.fileSha1,
2191
- params = _objectWithoutPropertiesLoose(_ref6, _excluded6$1);
2202
+ function getResourceBySha1(_ref7) {
2203
+ var fileSha1 = _ref7.fileSha1,
2204
+ params = _objectWithoutPropertiesLoose(_ref7, _excluded7$1);
2192
2205
 
2193
2206
  // return FUtil.Axios.get(`/v2/resources/files/${fileSha1}`, {
2194
2207
  // params,
@@ -2238,9 +2251,9 @@ function resourcesDownload(params) {
2238
2251
  // responseType: 'arraybuffer',
2239
2252
  // });
2240
2253
  }
2241
- function batchGetCoverageVersions(_ref7) {
2242
- var resourceId = _ref7.resourceId,
2243
- params = _objectWithoutPropertiesLoose(_ref7, _excluded7$1);
2254
+ function batchGetCoverageVersions(_ref8) {
2255
+ var resourceId = _ref8.resourceId,
2256
+ params = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
2244
2257
 
2245
2258
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
2246
2259
  // params,
@@ -2258,9 +2271,9 @@ function resolveResources(params) {
2258
2271
  url: "/v2/resources/" + params.resourceId + "/resolveResources"
2259
2272
  });
2260
2273
  }
2261
- function batchSetContracts(_ref8) {
2262
- var resourceId = _ref8.resourceId,
2263
- params = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
2274
+ function batchSetContracts(_ref9) {
2275
+ var resourceId = _ref9.resourceId,
2276
+ params = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
2264
2277
 
2265
2278
  // return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
2266
2279
  return FUtil.Request({
@@ -2269,9 +2282,9 @@ function batchSetContracts(_ref8) {
2269
2282
  data: params
2270
2283
  });
2271
2284
  }
2272
- function cycleDependencyCheck$1(_ref9) {
2273
- var resourceId = _ref9.resourceId,
2274
- params = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
2285
+ function cycleDependencyCheck$1(_ref10) {
2286
+ var resourceId = _ref10.resourceId,
2287
+ params = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
2275
2288
 
2276
2289
  // return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
2277
2290
  return FUtil.Request({
@@ -2280,9 +2293,9 @@ function cycleDependencyCheck$1(_ref9) {
2280
2293
  data: params
2281
2294
  });
2282
2295
  }
2283
- function relationTree$1(_ref10) {
2284
- var resourceId = _ref10.resourceId,
2285
- params = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
2296
+ function relationTree$1(_ref11) {
2297
+ var resourceId = _ref11.resourceId,
2298
+ params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
2286
2299
 
2287
2300
  // return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
2288
2301
  // params,
@@ -2293,9 +2306,9 @@ function relationTree$1(_ref10) {
2293
2306
  params: params
2294
2307
  });
2295
2308
  }
2296
- function relationTreeAuth(_ref11) {
2297
- var resourceId = _ref11.resourceId,
2298
- params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
2309
+ function relationTreeAuth(_ref12) {
2310
+ var resourceId = _ref12.resourceId,
2311
+ params = _objectWithoutPropertiesLoose(_ref12, _excluded12);
2299
2312
 
2300
2313
  return FUtil.Request({
2301
2314
  method: 'GET',
@@ -2303,8 +2316,8 @@ function relationTreeAuth(_ref11) {
2303
2316
  params: params
2304
2317
  });
2305
2318
  }
2306
- function batchAuth$1(_ref12) {
2307
- var params = _extends({}, _ref12);
2319
+ function batchAuth$1(_ref13) {
2320
+ var params = _extends({}, _ref13);
2308
2321
 
2309
2322
  return FUtil.Request({
2310
2323
  method: 'GET',
@@ -2323,7 +2336,8 @@ var Resource = {
2323
2336
  dependencyTree: dependencyTree$1,
2324
2337
  authTree: authTree$1,
2325
2338
  createVersion: createVersion,
2326
- resourceVersionInfo: resourceVersionInfo,
2339
+ resourceVersionInfo1: resourceVersionInfo1,
2340
+ resourceVersionInfo2: resourceVersionInfo2,
2327
2341
  getResourceVersionBySha1: getResourceVersionBySha1,
2328
2342
  getResourceBySha1: getResourceBySha1,
2329
2343
  updateResourceVersionInfo: updateResourceVersionInfo,