@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.
- package/dist/service-API/informalNodes.d.ts +46 -15
- package/dist/service-API/policies.d.ts +6 -2
- package/dist/service-API/resources.d.ts +4 -3
- package/dist/service-API/tools/index.d.ts +4 -0
- package/dist/tools-lib.cjs.development.js +124 -110
- 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 +124 -110
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/axios.d.ts +4 -4
- package/dist/utils/linkTo.d.ts +3 -0
- package/package.json +1 -1
- package/src/service-API/informalNodes.ts +238 -237
- package/src/service-API/resources.ts +496 -496
- package/src/service-API/tools/index.ts +10 -5
- package/src/utils/axios.ts +137 -132
- package/src/utils/linkTo.ts +9 -1
package/dist/tools-lib.esm.js
CHANGED
|
@@ -1042,106 +1042,113 @@ function market(_temp4) {
|
|
|
1042
1042
|
|
|
1043
1043
|
return "/market";
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
var
|
|
1047
|
-
params = _objectWithoutPropertiesLoose(_ref6, _excluded);
|
|
1045
|
+
function exampleNodes(_temp5) {
|
|
1046
|
+
var _ref6 = _temp5 === void 0 ? {} : _temp5;
|
|
1048
1047
|
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1051
|
-
function resourceCreator(_temp5) {
|
|
1052
|
-
var _ref7 = _temp5 === void 0 ? {} : _temp5;
|
|
1048
|
+
_objectDestructuringEmpty(_ref6);
|
|
1053
1049
|
|
|
1054
|
-
|
|
1050
|
+
return "/market";
|
|
1051
|
+
}
|
|
1052
|
+
function resourceDetails(_ref7) {
|
|
1053
|
+
var resourceID = _ref7.resourceID,
|
|
1054
|
+
params = _objectWithoutPropertiesLoose(_ref7, _excluded);
|
|
1055
1055
|
|
|
1056
|
-
return "/resource/
|
|
1056
|
+
return "/resource/details/" + resourceID + handleQuery(params);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function resourceCreator(_temp6) {
|
|
1059
1059
|
var _ref8 = _temp6 === void 0 ? {} : _temp6;
|
|
1060
1060
|
|
|
1061
1061
|
_objectDestructuringEmpty(_ref8);
|
|
1062
1062
|
|
|
1063
|
-
return "/resource/
|
|
1063
|
+
return "/resource/creator";
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function myResources(_temp7) {
|
|
1066
1066
|
var _ref9 = _temp7 === void 0 ? {} : _temp7;
|
|
1067
1067
|
|
|
1068
1068
|
_objectDestructuringEmpty(_ref9);
|
|
1069
1069
|
|
|
1070
|
+
return "/resource/list";
|
|
1071
|
+
}
|
|
1072
|
+
function myCollects(_temp8) {
|
|
1073
|
+
var _ref10 = _temp8 === void 0 ? {} : _temp8;
|
|
1074
|
+
|
|
1075
|
+
_objectDestructuringEmpty(_ref10);
|
|
1076
|
+
|
|
1070
1077
|
return "/resource/collect";
|
|
1071
1078
|
}
|
|
1072
|
-
function resourceInfo(
|
|
1073
|
-
var resourceID =
|
|
1079
|
+
function resourceInfo(_ref11) {
|
|
1080
|
+
var resourceID = _ref11.resourceID;
|
|
1074
1081
|
return "/resource/info/" + resourceID;
|
|
1075
1082
|
}
|
|
1076
|
-
function resourceAuth(
|
|
1077
|
-
var resourceID =
|
|
1083
|
+
function resourceAuth(_ref12) {
|
|
1084
|
+
var resourceID = _ref12.resourceID;
|
|
1078
1085
|
return "/resource/auth/" + resourceID;
|
|
1079
1086
|
}
|
|
1080
|
-
function resourceCreateVersion(
|
|
1081
|
-
var resourceID =
|
|
1087
|
+
function resourceCreateVersion(_ref13) {
|
|
1088
|
+
var resourceID = _ref13.resourceID;
|
|
1082
1089
|
return "/resource/version/creator/" + resourceID;
|
|
1083
1090
|
}
|
|
1084
|
-
function resourceVersion(
|
|
1085
|
-
var resourceID =
|
|
1086
|
-
version =
|
|
1091
|
+
function resourceVersion(_ref14) {
|
|
1092
|
+
var resourceID = _ref14.resourceID,
|
|
1093
|
+
version = _ref14.version;
|
|
1087
1094
|
return "/resource/version/info/" + resourceID + "/" + version;
|
|
1088
1095
|
}
|
|
1089
|
-
function nodeCreator(
|
|
1090
|
-
var
|
|
1096
|
+
function nodeCreator(_temp9) {
|
|
1097
|
+
var _ref15 = _temp9 === void 0 ? {} : _temp9;
|
|
1091
1098
|
|
|
1092
|
-
_objectDestructuringEmpty(
|
|
1099
|
+
_objectDestructuringEmpty(_ref15);
|
|
1093
1100
|
|
|
1094
1101
|
return "/node/creator";
|
|
1095
1102
|
}
|
|
1096
|
-
function nodeManagement(
|
|
1097
|
-
var nodeID =
|
|
1103
|
+
function nodeManagement(_ref16) {
|
|
1104
|
+
var nodeID = _ref16.nodeID;
|
|
1098
1105
|
return "/node/formal/" + nodeID;
|
|
1099
1106
|
}
|
|
1100
|
-
function exhibitManagement(
|
|
1101
|
-
var exhibitID =
|
|
1107
|
+
function exhibitManagement(_ref17) {
|
|
1108
|
+
var exhibitID = _ref17.exhibitID;
|
|
1102
1109
|
return "/node/exhibit/formal/" + exhibitID;
|
|
1103
1110
|
}
|
|
1104
|
-
function informNodeManagement(
|
|
1105
|
-
var nodeID =
|
|
1106
|
-
|
|
1107
|
-
showPage =
|
|
1108
|
-
params = _objectWithoutPropertiesLoose(
|
|
1111
|
+
function informNodeManagement(_ref18) {
|
|
1112
|
+
var nodeID = _ref18.nodeID,
|
|
1113
|
+
_ref18$showPage = _ref18.showPage,
|
|
1114
|
+
showPage = _ref18$showPage === void 0 ? 'exhibit' : _ref18$showPage,
|
|
1115
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded2);
|
|
1109
1116
|
|
|
1110
1117
|
return "/node/informal/" + nodeID + handleQuery(_extends({
|
|
1111
1118
|
showPage: showPage
|
|
1112
1119
|
}, params));
|
|
1113
1120
|
}
|
|
1114
|
-
function informExhibitManagement(
|
|
1115
|
-
var exhibitID =
|
|
1121
|
+
function informExhibitManagement(_ref19) {
|
|
1122
|
+
var exhibitID = _ref19.exhibitID;
|
|
1116
1123
|
return "/node/exhibit/informal/" + exhibitID;
|
|
1117
1124
|
}
|
|
1118
|
-
function storageSpace(
|
|
1119
|
-
var
|
|
1120
|
-
params = _extends({},
|
|
1125
|
+
function storageSpace(_temp10) {
|
|
1126
|
+
var _ref20 = _temp10 === void 0 ? {} : _temp10,
|
|
1127
|
+
params = _extends({}, _ref20);
|
|
1121
1128
|
|
|
1122
1129
|
return "/storage" + handleQuery(params);
|
|
1123
1130
|
}
|
|
1124
|
-
function objectDetails(
|
|
1125
|
-
var params = _extends({},
|
|
1131
|
+
function objectDetails(_ref21) {
|
|
1132
|
+
var params = _extends({}, _ref21);
|
|
1126
1133
|
|
|
1127
1134
|
return "/storage" + handleQuery(params);
|
|
1128
1135
|
}
|
|
1129
|
-
function resourceCreateSuccess(
|
|
1130
|
-
var resourceID =
|
|
1136
|
+
function resourceCreateSuccess(_ref22) {
|
|
1137
|
+
var resourceID = _ref22.resourceID;
|
|
1131
1138
|
return "/result/resource/create/success/" + resourceID;
|
|
1132
1139
|
}
|
|
1133
|
-
function resourceVersionCreateSuccess(
|
|
1134
|
-
var resourceID =
|
|
1135
|
-
version =
|
|
1140
|
+
function resourceVersionCreateSuccess(_ref23) {
|
|
1141
|
+
var resourceID = _ref23.resourceID,
|
|
1142
|
+
version = _ref23.version;
|
|
1136
1143
|
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
1137
1144
|
}
|
|
1138
|
-
function nodeCreateSuccess(
|
|
1139
|
-
var nodeID =
|
|
1145
|
+
function nodeCreateSuccess(_ref24) {
|
|
1146
|
+
var nodeID = _ref24.nodeID;
|
|
1140
1147
|
return "/result/node/create/success/" + nodeID;
|
|
1141
1148
|
}
|
|
1142
|
-
function exception403(
|
|
1143
|
-
var
|
|
1144
|
-
params = _extends({},
|
|
1149
|
+
function exception403(_temp11) {
|
|
1150
|
+
var _ref25 = _temp11 === void 0 ? {} : _temp11,
|
|
1151
|
+
params = _extends({}, _ref25);
|
|
1145
1152
|
|
|
1146
1153
|
var fromUrl = params.from || '';
|
|
1147
1154
|
|
|
@@ -1156,56 +1163,56 @@ function exception403(_temp10) {
|
|
|
1156
1163
|
from: fromUrl
|
|
1157
1164
|
});
|
|
1158
1165
|
}
|
|
1159
|
-
function login(
|
|
1160
|
-
var
|
|
1161
|
-
goTo =
|
|
1166
|
+
function login(_temp12) {
|
|
1167
|
+
var _ref26 = _temp12 === void 0 ? {} : _temp12,
|
|
1168
|
+
goTo = _ref26.goTo;
|
|
1162
1169
|
|
|
1163
1170
|
return "/login" + handleQuery({
|
|
1164
1171
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
1165
1172
|
});
|
|
1166
1173
|
}
|
|
1167
|
-
function logon(
|
|
1168
|
-
var
|
|
1169
|
-
goTo =
|
|
1174
|
+
function logon(_temp13) {
|
|
1175
|
+
var _ref27 = _temp13 === void 0 ? {} : _temp13,
|
|
1176
|
+
goTo = _ref27.goTo;
|
|
1170
1177
|
|
|
1171
1178
|
return "/logon" + handleQuery({
|
|
1172
1179
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
1173
1180
|
});
|
|
1174
1181
|
}
|
|
1175
|
-
function retrieveUserPassword(
|
|
1176
|
-
var
|
|
1177
|
-
goTo =
|
|
1182
|
+
function retrieveUserPassword(_temp14) {
|
|
1183
|
+
var _ref28 = _temp14 === void 0 ? {} : _temp14,
|
|
1184
|
+
goTo = _ref28.goTo;
|
|
1178
1185
|
|
|
1179
1186
|
return "/retrieve" + handleQuery({
|
|
1180
1187
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
1181
1188
|
});
|
|
1182
1189
|
}
|
|
1183
|
-
function retrievePayPassword(
|
|
1184
|
-
var _ref28 = _temp14 === void 0 ? {} : _temp14;
|
|
1185
|
-
|
|
1186
|
-
_objectDestructuringEmpty(_ref28);
|
|
1187
|
-
|
|
1188
|
-
return "/retrievePayPassword";
|
|
1189
|
-
}
|
|
1190
|
-
function wallet(_temp15) {
|
|
1190
|
+
function retrievePayPassword(_temp15) {
|
|
1191
1191
|
var _ref29 = _temp15 === void 0 ? {} : _temp15;
|
|
1192
1192
|
|
|
1193
1193
|
_objectDestructuringEmpty(_ref29);
|
|
1194
1194
|
|
|
1195
|
-
return "/
|
|
1195
|
+
return "/retrievePayPassword";
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function wallet(_temp16) {
|
|
1198
1198
|
var _ref30 = _temp16 === void 0 ? {} : _temp16;
|
|
1199
1199
|
|
|
1200
1200
|
_objectDestructuringEmpty(_ref30);
|
|
1201
1201
|
|
|
1202
|
-
return "/logged/
|
|
1202
|
+
return "/logged/wallet";
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function contract(_temp17) {
|
|
1205
1205
|
var _ref31 = _temp17 === void 0 ? {} : _temp17;
|
|
1206
1206
|
|
|
1207
1207
|
_objectDestructuringEmpty(_ref31);
|
|
1208
1208
|
|
|
1209
|
+
return "/logged/contract";
|
|
1210
|
+
}
|
|
1211
|
+
function setting(_temp18) {
|
|
1212
|
+
var _ref32 = _temp18 === void 0 ? {} : _temp18;
|
|
1213
|
+
|
|
1214
|
+
_objectDestructuringEmpty(_ref32);
|
|
1215
|
+
|
|
1209
1216
|
return "/logged/setting";
|
|
1210
1217
|
}
|
|
1211
1218
|
/************** user End ******************************************************/
|
|
@@ -1234,6 +1241,7 @@ var LinkTo = {
|
|
|
1234
1241
|
activity: activity,
|
|
1235
1242
|
dashboard: dashboard,
|
|
1236
1243
|
market: market,
|
|
1244
|
+
exampleNodes: exampleNodes,
|
|
1237
1245
|
resourceDetails: resourceDetails,
|
|
1238
1246
|
resourceCreator: resourceCreator,
|
|
1239
1247
|
myResources: myResources,
|
|
@@ -1426,20 +1434,20 @@ function request(_x, _x2) {
|
|
|
1426
1434
|
|
|
1427
1435
|
function _request() {
|
|
1428
1436
|
_request = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(config, _temp) {
|
|
1429
|
-
var _ref, _ref$noRedirect, noRedirect, result;
|
|
1437
|
+
var _ref, _ref$noRedirect, noRedirect, _ref$noErrorAlert, noErrorAlert, result;
|
|
1430
1438
|
|
|
1431
1439
|
return runtime_1.wrap(function _callee$(_context) {
|
|
1432
1440
|
while (1) {
|
|
1433
1441
|
switch (_context.prev = _context.next) {
|
|
1434
1442
|
case 0:
|
|
1435
|
-
_ref = _temp === void 0 ? {} : _temp, _ref$noRedirect = _ref.noRedirect, noRedirect = _ref$noRedirect === void 0 ? false : _ref$noRedirect;
|
|
1443
|
+
_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;
|
|
1436
1444
|
_context.next = 3;
|
|
1437
1445
|
return axios.request(config);
|
|
1438
1446
|
|
|
1439
1447
|
case 3:
|
|
1440
1448
|
result = _context.sent;
|
|
1441
1449
|
|
|
1442
|
-
if (!((result.errCode === 30 || result.
|
|
1450
|
+
if (!((result.errCode === 30 || result.errCode === 30) && !noRedirect)) {
|
|
1443
1451
|
_context.next = 6;
|
|
1444
1452
|
break;
|
|
1445
1453
|
}
|
|
@@ -1449,9 +1457,10 @@ function _request() {
|
|
|
1449
1457
|
})));
|
|
1450
1458
|
|
|
1451
1459
|
case 6:
|
|
1460
|
+
|
|
1452
1461
|
return _context.abrupt("return", result);
|
|
1453
1462
|
|
|
1454
|
-
case
|
|
1463
|
+
case 8:
|
|
1455
1464
|
case "end":
|
|
1456
1465
|
return _context.stop();
|
|
1457
1466
|
}
|
|
@@ -2076,13 +2085,14 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
2076
2085
|
_excluded2$3 = ["resourceId"],
|
|
2077
2086
|
_excluded3$2 = ["resourceId"],
|
|
2078
2087
|
_excluded4$2 = ["resourceId"],
|
|
2079
|
-
_excluded5$2 = ["
|
|
2088
|
+
_excluded5$2 = ["resourceId", "version"],
|
|
2080
2089
|
_excluded6$1 = ["fileSha1"],
|
|
2081
|
-
_excluded7$1 = ["
|
|
2090
|
+
_excluded7$1 = ["fileSha1"],
|
|
2082
2091
|
_excluded8$1 = ["resourceId"],
|
|
2083
2092
|
_excluded9$1 = ["resourceId"],
|
|
2084
2093
|
_excluded10$1 = ["resourceId"],
|
|
2085
|
-
_excluded11 = ["resourceId"]
|
|
2094
|
+
_excluded11 = ["resourceId"],
|
|
2095
|
+
_excluded12 = ["resourceId"];
|
|
2086
2096
|
function create$1(params) {
|
|
2087
2097
|
return FUtil.Request({
|
|
2088
2098
|
method: 'POST',
|
|
@@ -2152,24 +2162,27 @@ function createVersion(_ref4) {
|
|
|
2152
2162
|
data: params
|
|
2153
2163
|
});
|
|
2154
2164
|
}
|
|
2155
|
-
function
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
url: "/v2/resources/" + params.resourceId + "/versions/" + params.version,
|
|
2160
|
-
params: params
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2165
|
+
function resourceVersionInfo1(_ref5) {
|
|
2166
|
+
var resourceId = _ref5.resourceId,
|
|
2167
|
+
version = _ref5.version,
|
|
2168
|
+
params = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
|
|
2163
2169
|
|
|
2170
|
+
return FUtil.Request({
|
|
2171
|
+
method: 'GET',
|
|
2172
|
+
url: "/v2/resources/" + resourceId + "/versions/" + version,
|
|
2173
|
+
params: params
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2176
|
+
function resourceVersionInfo2(params) {
|
|
2164
2177
|
return FUtil.Request({
|
|
2165
2178
|
method: 'GET',
|
|
2166
2179
|
url: "/v2/resources/versions/detail",
|
|
2167
2180
|
params: params
|
|
2168
2181
|
});
|
|
2169
2182
|
}
|
|
2170
|
-
function getResourceVersionBySha1(
|
|
2171
|
-
var fileSha1 =
|
|
2172
|
-
params = _objectWithoutPropertiesLoose(
|
|
2183
|
+
function getResourceVersionBySha1(_ref6) {
|
|
2184
|
+
var fileSha1 = _ref6.fileSha1,
|
|
2185
|
+
params = _objectWithoutPropertiesLoose(_ref6, _excluded6$1);
|
|
2173
2186
|
|
|
2174
2187
|
// return FUtil.Axios.get(`/v2/resources/files/${fileSha1}/versions`, {
|
|
2175
2188
|
// params,
|
|
@@ -2180,9 +2193,9 @@ function getResourceVersionBySha1(_ref5) {
|
|
|
2180
2193
|
params: params
|
|
2181
2194
|
});
|
|
2182
2195
|
}
|
|
2183
|
-
function getResourceBySha1(
|
|
2184
|
-
var fileSha1 =
|
|
2185
|
-
params = _objectWithoutPropertiesLoose(
|
|
2196
|
+
function getResourceBySha1(_ref7) {
|
|
2197
|
+
var fileSha1 = _ref7.fileSha1,
|
|
2198
|
+
params = _objectWithoutPropertiesLoose(_ref7, _excluded7$1);
|
|
2186
2199
|
|
|
2187
2200
|
// return FUtil.Axios.get(`/v2/resources/files/${fileSha1}`, {
|
|
2188
2201
|
// params,
|
|
@@ -2232,9 +2245,9 @@ function resourcesDownload(params) {
|
|
|
2232
2245
|
// responseType: 'arraybuffer',
|
|
2233
2246
|
// });
|
|
2234
2247
|
}
|
|
2235
|
-
function batchGetCoverageVersions(
|
|
2236
|
-
var resourceId =
|
|
2237
|
-
params = _objectWithoutPropertiesLoose(
|
|
2248
|
+
function batchGetCoverageVersions(_ref8) {
|
|
2249
|
+
var resourceId = _ref8.resourceId,
|
|
2250
|
+
params = _objectWithoutPropertiesLoose(_ref8, _excluded8$1);
|
|
2238
2251
|
|
|
2239
2252
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
|
|
2240
2253
|
// params,
|
|
@@ -2252,9 +2265,9 @@ function resolveResources(params) {
|
|
|
2252
2265
|
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
2253
2266
|
});
|
|
2254
2267
|
}
|
|
2255
|
-
function batchSetContracts(
|
|
2256
|
-
var resourceId =
|
|
2257
|
-
params = _objectWithoutPropertiesLoose(
|
|
2268
|
+
function batchSetContracts(_ref9) {
|
|
2269
|
+
var resourceId = _ref9.resourceId,
|
|
2270
|
+
params = _objectWithoutPropertiesLoose(_ref9, _excluded9$1);
|
|
2258
2271
|
|
|
2259
2272
|
// return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
|
|
2260
2273
|
return FUtil.Request({
|
|
@@ -2263,9 +2276,9 @@ function batchSetContracts(_ref8) {
|
|
|
2263
2276
|
data: params
|
|
2264
2277
|
});
|
|
2265
2278
|
}
|
|
2266
|
-
function cycleDependencyCheck$1(
|
|
2267
|
-
var resourceId =
|
|
2268
|
-
params = _objectWithoutPropertiesLoose(
|
|
2279
|
+
function cycleDependencyCheck$1(_ref10) {
|
|
2280
|
+
var resourceId = _ref10.resourceId,
|
|
2281
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded10$1);
|
|
2269
2282
|
|
|
2270
2283
|
// return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
|
|
2271
2284
|
return FUtil.Request({
|
|
@@ -2274,9 +2287,9 @@ function cycleDependencyCheck$1(_ref9) {
|
|
|
2274
2287
|
data: params
|
|
2275
2288
|
});
|
|
2276
2289
|
}
|
|
2277
|
-
function relationTree$1(
|
|
2278
|
-
var resourceId =
|
|
2279
|
-
params = _objectWithoutPropertiesLoose(
|
|
2290
|
+
function relationTree$1(_ref11) {
|
|
2291
|
+
var resourceId = _ref11.resourceId,
|
|
2292
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
2280
2293
|
|
|
2281
2294
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
2282
2295
|
// params,
|
|
@@ -2287,9 +2300,9 @@ function relationTree$1(_ref10) {
|
|
|
2287
2300
|
params: params
|
|
2288
2301
|
});
|
|
2289
2302
|
}
|
|
2290
|
-
function relationTreeAuth(
|
|
2291
|
-
var resourceId =
|
|
2292
|
-
params = _objectWithoutPropertiesLoose(
|
|
2303
|
+
function relationTreeAuth(_ref12) {
|
|
2304
|
+
var resourceId = _ref12.resourceId,
|
|
2305
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
2293
2306
|
|
|
2294
2307
|
return FUtil.Request({
|
|
2295
2308
|
method: 'GET',
|
|
@@ -2297,8 +2310,8 @@ function relationTreeAuth(_ref11) {
|
|
|
2297
2310
|
params: params
|
|
2298
2311
|
});
|
|
2299
2312
|
}
|
|
2300
|
-
function batchAuth$1(
|
|
2301
|
-
var params = _extends({},
|
|
2313
|
+
function batchAuth$1(_ref13) {
|
|
2314
|
+
var params = _extends({}, _ref13);
|
|
2302
2315
|
|
|
2303
2316
|
return FUtil.Request({
|
|
2304
2317
|
method: 'GET',
|
|
@@ -2317,7 +2330,8 @@ var Resource = {
|
|
|
2317
2330
|
dependencyTree: dependencyTree$1,
|
|
2318
2331
|
authTree: authTree$1,
|
|
2319
2332
|
createVersion: createVersion,
|
|
2320
|
-
|
|
2333
|
+
resourceVersionInfo1: resourceVersionInfo1,
|
|
2334
|
+
resourceVersionInfo2: resourceVersionInfo2,
|
|
2321
2335
|
getResourceVersionBySha1: getResourceVersionBySha1,
|
|
2322
2336
|
getResourceBySha1: getResourceBySha1,
|
|
2323
2337
|
updateResourceVersionInfo: updateResourceVersionInfo,
|