@freelog/tools-lib 0.1.160 → 0.1.161
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/activities.d.ts +11 -1
- package/dist/service-API/nodes.d.ts +9 -0
- package/dist/service-API/presentables.d.ts +22 -0
- package/dist/service-API/resources.d.ts +11 -1
- package/dist/service-API/storages.d.ts +4 -0
- package/dist/tools-lib.cjs.development.js +132 -73
- 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 +132 -73
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +2 -1
- package/package.json +1 -1
- package/src/service-API/activities.ts +314 -286
- package/src/service-API/nodes.ts +19 -1
- package/src/service-API/operation.ts +42 -42
- package/src/service-API/presentables.ts +49 -20
- package/src/service-API/resources.ts +772 -746
- package/src/service-API/storages.ts +403 -391
- package/src/utils/axios.ts +141 -141
- package/src/utils/linkTo.ts +3 -2
- package/src/utils/regexp.ts +1 -1
|
@@ -10,7 +10,7 @@ export declare function find4Client(params: Find4ClientParamsType): Promise<any>
|
|
|
10
10
|
interface AdsListParamsType {
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
-
place: 1 | 2 | 3 | 4;
|
|
13
|
+
place: 1 | 2 | 3 | 4 | 5;
|
|
14
14
|
}
|
|
15
15
|
export declare function adsList(params: AdsListParamsType): Promise<any>;
|
|
16
16
|
interface AdsDetailsParamsType {
|
|
@@ -92,4 +92,14 @@ interface StatisticRewardRecordsParamsType {
|
|
|
92
92
|
codes: string[];
|
|
93
93
|
}
|
|
94
94
|
export declare function statisticRewardRecords(params: StatisticRewardRecordsParamsType): Promise<any>;
|
|
95
|
+
interface StatisticTaskRecordsParamsType {
|
|
96
|
+
codes: string[];
|
|
97
|
+
startTime?: string;
|
|
98
|
+
limitTime?: string;
|
|
99
|
+
}
|
|
100
|
+
export declare function statisticTaskRecords(params: StatisticTaskRecordsParamsType): Promise<any>;
|
|
101
|
+
interface StatisticSingleRewardRecordForAllParamsType {
|
|
102
|
+
code: string;
|
|
103
|
+
}
|
|
104
|
+
export declare function statisticSingleRewardRecordForAll(params: StatisticSingleRewardRecordForAllParamsType): Promise<any>;
|
|
95
105
|
export {};
|
|
@@ -16,8 +16,17 @@ interface NodesParamsType {
|
|
|
16
16
|
limit?: number;
|
|
17
17
|
status?: 0 | 1 | 2;
|
|
18
18
|
projection?: string;
|
|
19
|
+
nodeType?: 0 | 1;
|
|
19
20
|
}
|
|
20
21
|
export declare function nodes(params: NodesParamsType): Promise<any>;
|
|
22
|
+
interface SearchForClientParamsType {
|
|
23
|
+
skip?: number;
|
|
24
|
+
limit?: number;
|
|
25
|
+
status?: 0 | 1 | 2;
|
|
26
|
+
projection?: string;
|
|
27
|
+
nodeType?: 0 | 1;
|
|
28
|
+
}
|
|
29
|
+
export declare function searchForClient(params: SearchForClientParamsType): Promise<any>;
|
|
21
30
|
interface SetNodeInfoParamsType {
|
|
22
31
|
nodeId: number;
|
|
23
32
|
nodeLogo: string;
|
|
@@ -144,4 +144,26 @@ interface ContractAppliedPresentableParamsType {
|
|
|
144
144
|
contractIds: string;
|
|
145
145
|
}
|
|
146
146
|
export declare function contractAppliedPresentable({ nodeId, ...params }: ContractAppliedPresentableParamsType): Promise<any>;
|
|
147
|
+
export interface BatchCreatePresentableParamsType {
|
|
148
|
+
nodeId: number;
|
|
149
|
+
resources: {
|
|
150
|
+
resourceId: string;
|
|
151
|
+
policyId?: string;
|
|
152
|
+
}[];
|
|
153
|
+
}
|
|
154
|
+
export declare function batchCreatePresentable(params: BatchCreatePresentableParamsType): Promise<any>;
|
|
155
|
+
interface BatchUpdatePresentableParamsType {
|
|
156
|
+
presentableIds: string[];
|
|
157
|
+
addPolicies: {
|
|
158
|
+
policyName: string;
|
|
159
|
+
policyText: string;
|
|
160
|
+
status?: 0 | 1;
|
|
161
|
+
}[];
|
|
162
|
+
}
|
|
163
|
+
export declare function batchUpdatePresentable({ ...params }: BatchUpdatePresentableParamsType): Promise<any>;
|
|
164
|
+
interface BatchUpdatePresentableStatusParamsType {
|
|
165
|
+
presentableIds: string[];
|
|
166
|
+
onlineStatus: 0 | 1;
|
|
167
|
+
}
|
|
168
|
+
export declare function batchUpdatePresentableStatus({ ...params }: BatchUpdatePresentableStatusParamsType): Promise<any>;
|
|
147
169
|
export {};
|
|
@@ -132,6 +132,7 @@ interface ListParamsType {
|
|
|
132
132
|
tags?: string;
|
|
133
133
|
sort?: string;
|
|
134
134
|
operationCategoryCode?: string;
|
|
135
|
+
operationTypes?: string;
|
|
135
136
|
}
|
|
136
137
|
export declare function list(params: ListParamsType): Promise<any>;
|
|
137
138
|
interface InfoParamsType {
|
|
@@ -216,6 +217,11 @@ interface ResourceVersionInfo2ParamsType {
|
|
|
216
217
|
}
|
|
217
218
|
export declare function resourceVersionInfo1({ resourceId, version, ...params }: ResourceVersionInfo1ParamsType): Promise<any>;
|
|
218
219
|
export declare function resourceVersionInfo2(params: ResourceVersionInfo2ParamsType): Promise<any>;
|
|
220
|
+
interface GetVersionListParamsType {
|
|
221
|
+
versionIds: string;
|
|
222
|
+
projection?: string;
|
|
223
|
+
}
|
|
224
|
+
export declare function getVersionList({ ...params }: GetVersionListParamsType): Promise<any>;
|
|
219
225
|
interface GetResourceVersionBySha1ParamsType {
|
|
220
226
|
fileSha1: string;
|
|
221
227
|
projection?: string;
|
|
@@ -259,6 +265,10 @@ interface LookDraftParamsType {
|
|
|
259
265
|
resourceId: string;
|
|
260
266
|
}
|
|
261
267
|
export declare function lookDraft(params: LookDraftParamsType): Promise<any>;
|
|
268
|
+
interface DeleteResourceDraftParamsType {
|
|
269
|
+
resourceId: string;
|
|
270
|
+
}
|
|
271
|
+
export declare function deleteResourceDraft({ resourceId }: DeleteResourceDraftParamsType): Promise<any>;
|
|
262
272
|
interface ResourceIsUsedByOtherParamsType {
|
|
263
273
|
fileSha1: string;
|
|
264
274
|
}
|
|
@@ -339,7 +349,7 @@ interface ResourcesRecommendParamsType {
|
|
|
339
349
|
}
|
|
340
350
|
export declare function resourcesRecommend({ ...params }: ResourcesRecommendParamsType): Promise<any>;
|
|
341
351
|
interface AvailableTagsParamsType {
|
|
342
|
-
|
|
352
|
+
resourceTypeCode: string;
|
|
343
353
|
}
|
|
344
354
|
export declare function availableTags({ ...params }: AvailableTagsParamsType): Promise<any>;
|
|
345
355
|
interface ResourceTypesParamsType {
|
|
@@ -81,6 +81,10 @@ interface HandleImageParamsType {
|
|
|
81
81
|
sha1: string;
|
|
82
82
|
}
|
|
83
83
|
export declare function handleImage(params: HandleImageParamsType): Promise<any>;
|
|
84
|
+
interface GenerateCoverImageParamsType {
|
|
85
|
+
sha1: string;
|
|
86
|
+
}
|
|
87
|
+
export declare function generateCoverImage(params: GenerateCoverImageParamsType): Promise<any>;
|
|
84
88
|
interface UpdateObjectParamsType {
|
|
85
89
|
objectIdOrName: string;
|
|
86
90
|
customPropertyDescriptors?: {
|
|
@@ -130,7 +130,7 @@ var RESOURCE_NAME = /*#__PURE__*/new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|
|
|
|
130
130
|
var RESOURCE_TYPE = /*#__PURE__*/new RegExp("^[\u4E00-\u9FEFa-zA-Z0-9\\-&.,]{1,40}$"); // 自定义属性键
|
|
131
131
|
// export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z_]([a-zA-Z0-9_]{1,19})?$/);
|
|
132
132
|
|
|
133
|
-
var CUSTOM_KEY = /*#__PURE__*/new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,
|
|
133
|
+
var CUSTOM_KEY = /*#__PURE__*/new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,29})?$'); // 节点名称
|
|
134
134
|
|
|
135
135
|
var NODE_NAME = /*#__PURE__*/new RegExp(/^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/); // 节点地址
|
|
136
136
|
// export const NODE_DOMAIN: RegExp = new RegExp(/^(?!-)[a-z0-9-]{4,24}(?<!-)$/);
|
|
@@ -735,8 +735,11 @@ function nodeManagement(_ref20) {
|
|
|
735
735
|
}, params));
|
|
736
736
|
}
|
|
737
737
|
function exhibitManagement(_ref21) {
|
|
738
|
-
var exhibitID = _ref21.exhibitID
|
|
739
|
-
|
|
738
|
+
var exhibitID = _ref21.exhibitID,
|
|
739
|
+
openAuthDrawer = _ref21.openAuthDrawer;
|
|
740
|
+
return "/node/exhibit/formal/" + exhibitID + handleQuery({
|
|
741
|
+
openAuthDrawer: openAuthDrawer
|
|
742
|
+
});
|
|
740
743
|
}
|
|
741
744
|
function informNodeManagement(_ref22) {
|
|
742
745
|
var nodeID = _ref22.nodeID,
|
|
@@ -1064,6 +1067,13 @@ function nodes(params) {
|
|
|
1064
1067
|
params: params
|
|
1065
1068
|
});
|
|
1066
1069
|
}
|
|
1070
|
+
function searchForClient(params) {
|
|
1071
|
+
return FUtil.Request({
|
|
1072
|
+
method: 'GET',
|
|
1073
|
+
url: "/v2/nodes/searchForClient",
|
|
1074
|
+
params: params
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1067
1077
|
function setNodeInfo(params) {
|
|
1068
1078
|
return FUtil.Request({
|
|
1069
1079
|
method: 'POST',
|
|
@@ -1077,6 +1087,7 @@ var Node = {
|
|
|
1077
1087
|
create: create,
|
|
1078
1088
|
details: details,
|
|
1079
1089
|
nodes: nodes,
|
|
1090
|
+
searchForClient: searchForClient,
|
|
1080
1091
|
setNodeInfo: setNodeInfo
|
|
1081
1092
|
};
|
|
1082
1093
|
|
|
@@ -1091,7 +1102,6 @@ var _excluded$1 = ["presentableId"],
|
|
|
1091
1102
|
_excluded9 = ["nodeId"],
|
|
1092
1103
|
_excluded10 = ["nodeId"];
|
|
1093
1104
|
function createPresentable(params) {
|
|
1094
|
-
// return FUtil.Axios.post(`/v2/presentables`, params);
|
|
1095
1105
|
return FUtil.Request({
|
|
1096
1106
|
method: 'POST',
|
|
1097
1107
|
url: "/v2/presentables",
|
|
@@ -1102,7 +1112,6 @@ function updatePresentable(_ref) {
|
|
|
1102
1112
|
var presentableId = _ref.presentableId,
|
|
1103
1113
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
1104
1114
|
|
|
1105
|
-
// return FUtil.Axios.put(`/v2/presentables/${presentableId}`, params);
|
|
1106
1115
|
return FUtil.Request({
|
|
1107
1116
|
method: 'PUT',
|
|
1108
1117
|
url: "/v2/presentables/" + presentableId,
|
|
@@ -1113,7 +1122,6 @@ function presentablesOnlineStatus(_ref2) {
|
|
|
1113
1122
|
var presentableId = _ref2.presentableId,
|
|
1114
1123
|
params = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
|
|
1115
1124
|
|
|
1116
|
-
// return FUtil.Axios.put(`/v2/presentables/${presentableId}/onlineStatus`, params);
|
|
1117
1125
|
return FUtil.Request({
|
|
1118
1126
|
method: 'PUT',
|
|
1119
1127
|
url: "/v2/presentables/" + presentableId + "/onlineStatus",
|
|
@@ -1122,9 +1130,6 @@ function presentablesOnlineStatus(_ref2) {
|
|
|
1122
1130
|
}
|
|
1123
1131
|
function presentableDetails(params) {
|
|
1124
1132
|
if (params.nodeId) {
|
|
1125
|
-
// return FUtil.Axios.get(`/v2/presentables/detail`, {
|
|
1126
|
-
// params,
|
|
1127
|
-
// });
|
|
1128
1133
|
return FUtil.Request({
|
|
1129
1134
|
method: 'GET',
|
|
1130
1135
|
url: "/v2/presentables/detail",
|
|
@@ -1133,10 +1138,7 @@ function presentableDetails(params) {
|
|
|
1133
1138
|
}
|
|
1134
1139
|
|
|
1135
1140
|
var presentableId = params.presentableId,
|
|
1136
|
-
p = _objectWithoutPropertiesLoose(params, _excluded3$1);
|
|
1137
|
-
// params: p,
|
|
1138
|
-
// });
|
|
1139
|
-
|
|
1141
|
+
p = _objectWithoutPropertiesLoose(params, _excluded3$1);
|
|
1140
1142
|
|
|
1141
1143
|
return FUtil.Request({
|
|
1142
1144
|
method: 'GET',
|
|
@@ -1162,7 +1164,6 @@ function dependencyTree(_ref3) {
|
|
|
1162
1164
|
var presentableId = _ref3.presentableId,
|
|
1163
1165
|
params = _objectWithoutPropertiesLoose(_ref3, _excluded4$1);
|
|
1164
1166
|
|
|
1165
|
-
// return FUtil.Axios.get(`/v2/presentables/${presentableId}/dependencyTree`, {params});
|
|
1166
1167
|
return FUtil.Request({
|
|
1167
1168
|
method: 'GET',
|
|
1168
1169
|
url: "/v2/presentables/" + presentableId + "/dependencyTree",
|
|
@@ -1173,7 +1174,6 @@ function relationTree(_ref4) {
|
|
|
1173
1174
|
var presentableId = _ref4.presentableId,
|
|
1174
1175
|
params = _objectWithoutPropertiesLoose(_ref4, _excluded5$1);
|
|
1175
1176
|
|
|
1176
|
-
// return FUtil.Axios.get(`/v2/presentables/${presentableId}/relationTree`, {params});
|
|
1177
1177
|
return FUtil.Request({
|
|
1178
1178
|
method: 'GET',
|
|
1179
1179
|
url: "/v2/presentables/" + presentableId + "/relationTree",
|
|
@@ -1184,7 +1184,6 @@ function authTree(_ref5) {
|
|
|
1184
1184
|
var presentableId = _ref5.presentableId,
|
|
1185
1185
|
params = _objectWithoutPropertiesLoose(_ref5, _excluded6$1);
|
|
1186
1186
|
|
|
1187
|
-
// return FUtil.Axios.get(`/v2/presentables/${presentableId}/authTree`, {params});
|
|
1188
1187
|
return FUtil.Request({
|
|
1189
1188
|
method: 'GET',
|
|
1190
1189
|
url: "/v2/presentables/" + presentableId + "/authTree",
|
|
@@ -1195,7 +1194,6 @@ function presentablesVersion(_ref6) {
|
|
|
1195
1194
|
var presentableId = _ref6.presentableId,
|
|
1196
1195
|
params = _objectWithoutPropertiesLoose(_ref6, _excluded7);
|
|
1197
1196
|
|
|
1198
|
-
// return FUtil.Axios.put(`/v2/presentables/${presentableId}/version`, params);
|
|
1199
1197
|
return FUtil.Request({
|
|
1200
1198
|
method: 'PUT',
|
|
1201
1199
|
url: "/v2/presentables/" + presentableId + "/version",
|
|
@@ -1206,7 +1204,6 @@ function updateRewriteProperty(_ref7) {
|
|
|
1206
1204
|
var presentableId = _ref7.presentableId,
|
|
1207
1205
|
params = _objectWithoutPropertiesLoose(_ref7, _excluded8);
|
|
1208
1206
|
|
|
1209
|
-
// return FUtil.Axios.put(`/v2/presentables/${presentableId}/rewriteProperty`, params);
|
|
1210
1207
|
return FUtil.Request({
|
|
1211
1208
|
method: 'PUT',
|
|
1212
1209
|
url: "/v2/presentables/" + presentableId + "/rewriteProperty",
|
|
@@ -1217,9 +1214,6 @@ function batchAuth(_ref8) {
|
|
|
1217
1214
|
var nodeId = _ref8.nodeId,
|
|
1218
1215
|
params = _objectWithoutPropertiesLoose(_ref8, _excluded9);
|
|
1219
1216
|
|
|
1220
|
-
// return FUtil.Axios.get(`/v2/auths/presentables/nodes/${nodeId}/batchAuth/result`, {
|
|
1221
|
-
// params,
|
|
1222
|
-
// });
|
|
1223
1217
|
return FUtil.Request({
|
|
1224
1218
|
method: 'GET',
|
|
1225
1219
|
url: "/v2/auths/presentables/nodes/" + nodeId + "/batchAuth/result",
|
|
@@ -1230,15 +1224,37 @@ function contractAppliedPresentable(_ref9) {
|
|
|
1230
1224
|
var nodeId = _ref9.nodeId,
|
|
1231
1225
|
params = _objectWithoutPropertiesLoose(_ref9, _excluded10);
|
|
1232
1226
|
|
|
1233
|
-
// return FUtil.Axios.get(`/v2/presentables/${nodeId}/contractAppliedPresentable`, {
|
|
1234
|
-
// params,
|
|
1235
|
-
// });
|
|
1236
1227
|
return FUtil.Request({
|
|
1237
1228
|
method: 'GET',
|
|
1238
1229
|
url: "/v2/presentables/" + nodeId + "/contractAppliedPresentable",
|
|
1239
1230
|
params: params
|
|
1240
1231
|
});
|
|
1241
1232
|
}
|
|
1233
|
+
function batchCreatePresentable(params) {
|
|
1234
|
+
return FUtil.Request({
|
|
1235
|
+
method: 'POST',
|
|
1236
|
+
url: "/v2/presentables/createPresentableBatchEasy",
|
|
1237
|
+
data: params
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
function batchUpdatePresentable(_ref10) {
|
|
1241
|
+
var params = _extends({}, _ref10);
|
|
1242
|
+
|
|
1243
|
+
return FUtil.Request({
|
|
1244
|
+
method: 'PUT',
|
|
1245
|
+
url: "/v2/presentables/updatePresentableBatch",
|
|
1246
|
+
data: params
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
function batchUpdatePresentableStatus(_ref11) {
|
|
1250
|
+
var params = _extends({}, _ref11);
|
|
1251
|
+
|
|
1252
|
+
return FUtil.Request({
|
|
1253
|
+
method: 'PUT',
|
|
1254
|
+
url: "/v2/presentables/updatePresentableOnlineStatusBatch",
|
|
1255
|
+
data: params
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1242
1258
|
|
|
1243
1259
|
var Exhibit = {
|
|
1244
1260
|
__proto__: null,
|
|
@@ -1254,7 +1270,10 @@ var Exhibit = {
|
|
|
1254
1270
|
presentablesVersion: presentablesVersion,
|
|
1255
1271
|
updateRewriteProperty: updateRewriteProperty,
|
|
1256
1272
|
batchAuth: batchAuth,
|
|
1257
|
-
contractAppliedPresentable: contractAppliedPresentable
|
|
1273
|
+
contractAppliedPresentable: contractAppliedPresentable,
|
|
1274
|
+
batchCreatePresentable: batchCreatePresentable,
|
|
1275
|
+
batchUpdatePresentable: batchUpdatePresentable,
|
|
1276
|
+
batchUpdatePresentableStatus: batchUpdatePresentableStatus
|
|
1258
1277
|
};
|
|
1259
1278
|
|
|
1260
1279
|
var _excluded$2 = ["bucketName"],
|
|
@@ -1434,6 +1453,13 @@ function handleImage(params) {
|
|
|
1434
1453
|
data: params
|
|
1435
1454
|
});
|
|
1436
1455
|
}
|
|
1456
|
+
function generateCoverImage(params) {
|
|
1457
|
+
return FUtil.Request({
|
|
1458
|
+
method: 'POST',
|
|
1459
|
+
url: "/v2/storages/files/generateCoverImage",
|
|
1460
|
+
data: params
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1437
1463
|
function updateObject(_ref5) {
|
|
1438
1464
|
var objectIdOrName = _ref5.objectIdOrName,
|
|
1439
1465
|
params = _objectWithoutPropertiesLoose(_ref5, _excluded3$2);
|
|
@@ -1517,6 +1543,7 @@ var Storage = {
|
|
|
1517
1543
|
uploadFile: uploadFile,
|
|
1518
1544
|
uploadImage: uploadImage,
|
|
1519
1545
|
handleImage: handleImage,
|
|
1546
|
+
generateCoverImage: generateCoverImage,
|
|
1520
1547
|
updateObject: updateObject,
|
|
1521
1548
|
batchUpdateObject: batchUpdateObject,
|
|
1522
1549
|
batchObjectList: batchObjectList,
|
|
@@ -1693,22 +1720,28 @@ function resourceVersionInfo2(params) {
|
|
|
1693
1720
|
params: params
|
|
1694
1721
|
});
|
|
1695
1722
|
}
|
|
1696
|
-
function
|
|
1697
|
-
var
|
|
1698
|
-
params = _objectWithoutPropertiesLoose(_ref6, _excluded6$2);
|
|
1723
|
+
function getVersionList(_ref6) {
|
|
1724
|
+
var params = _extends({}, _ref6);
|
|
1699
1725
|
|
|
1700
|
-
// return FUtil.Axios.get(`/v2/resources/files/${fileSha1}/versions`, {
|
|
1701
|
-
// params,
|
|
1702
|
-
// });
|
|
1703
1726
|
return FUtil.Request({
|
|
1704
1727
|
method: 'GET',
|
|
1705
|
-
url: "/v2/resources/
|
|
1728
|
+
url: "/v2/resources/versions/list",
|
|
1706
1729
|
params: params
|
|
1707
1730
|
});
|
|
1708
1731
|
}
|
|
1709
|
-
function
|
|
1732
|
+
function getResourceVersionBySha1(_ref7) {
|
|
1710
1733
|
var fileSha1 = _ref7.fileSha1,
|
|
1711
|
-
params = _objectWithoutPropertiesLoose(_ref7,
|
|
1734
|
+
params = _objectWithoutPropertiesLoose(_ref7, _excluded6$2);
|
|
1735
|
+
|
|
1736
|
+
return FUtil.Request({
|
|
1737
|
+
method: 'GET',
|
|
1738
|
+
url: "/v2/resources/files/" + fileSha1 + "/versions",
|
|
1739
|
+
params: params
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
function getResourceBySha1(_ref8) {
|
|
1743
|
+
var fileSha1 = _ref8.fileSha1,
|
|
1744
|
+
params = _objectWithoutPropertiesLoose(_ref8, _excluded7$1);
|
|
1712
1745
|
|
|
1713
1746
|
// return FUtil.Axios.get(`/v2/resources/files/${fileSha1}`, {
|
|
1714
1747
|
// params,
|
|
@@ -1743,6 +1776,14 @@ function lookDraft(params) {
|
|
|
1743
1776
|
params: params
|
|
1744
1777
|
});
|
|
1745
1778
|
}
|
|
1779
|
+
function deleteResourceDraft(_ref9) {
|
|
1780
|
+
var resourceId = _ref9.resourceId;
|
|
1781
|
+
// return FUtil.Axios.post(`/v2/resources/${params.resourceId}/versions/drafts`, params);
|
|
1782
|
+
return FUtil.Request({
|
|
1783
|
+
method: 'DELETE',
|
|
1784
|
+
url: "/v2/resources/" + resourceId + "/versions/drafts"
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1746
1787
|
function resourceIsUsedByOther(params) {
|
|
1747
1788
|
// return FUtil.Axios.get(`/v2/resources/versions/isCanBeCreate`, {
|
|
1748
1789
|
// params,
|
|
@@ -1758,9 +1799,9 @@ function resourcesDownload(params) {
|
|
|
1758
1799
|
// responseType: 'arraybuffer',
|
|
1759
1800
|
// });
|
|
1760
1801
|
}
|
|
1761
|
-
function batchGetCoverageVersions(
|
|
1762
|
-
var resourceId =
|
|
1763
|
-
params = _objectWithoutPropertiesLoose(
|
|
1802
|
+
function batchGetCoverageVersions(_ref10) {
|
|
1803
|
+
var resourceId = _ref10.resourceId,
|
|
1804
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded8$1);
|
|
1764
1805
|
|
|
1765
1806
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
|
|
1766
1807
|
// params,
|
|
@@ -1778,9 +1819,9 @@ function resolveResources(params) {
|
|
|
1778
1819
|
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
1779
1820
|
});
|
|
1780
1821
|
}
|
|
1781
|
-
function batchSetContracts(
|
|
1782
|
-
var resourceId =
|
|
1783
|
-
params = _objectWithoutPropertiesLoose(
|
|
1822
|
+
function batchSetContracts(_ref11) {
|
|
1823
|
+
var resourceId = _ref11.resourceId,
|
|
1824
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded9$1);
|
|
1784
1825
|
|
|
1785
1826
|
// return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
|
|
1786
1827
|
return FUtil.Request({
|
|
@@ -1789,9 +1830,9 @@ function batchSetContracts(_ref9) {
|
|
|
1789
1830
|
data: params
|
|
1790
1831
|
});
|
|
1791
1832
|
}
|
|
1792
|
-
function cycleDependencyCheck$1(
|
|
1793
|
-
var resourceId =
|
|
1794
|
-
params = _objectWithoutPropertiesLoose(
|
|
1833
|
+
function cycleDependencyCheck$1(_ref12) {
|
|
1834
|
+
var resourceId = _ref12.resourceId,
|
|
1835
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded10$1);
|
|
1795
1836
|
|
|
1796
1837
|
// return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
|
|
1797
1838
|
return FUtil.Request({
|
|
@@ -1800,9 +1841,9 @@ function cycleDependencyCheck$1(_ref10) {
|
|
|
1800
1841
|
data: params
|
|
1801
1842
|
});
|
|
1802
1843
|
}
|
|
1803
|
-
function relationTree$1(
|
|
1804
|
-
var resourceId =
|
|
1805
|
-
params = _objectWithoutPropertiesLoose(
|
|
1844
|
+
function relationTree$1(_ref13) {
|
|
1845
|
+
var resourceId = _ref13.resourceId,
|
|
1846
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded11);
|
|
1806
1847
|
|
|
1807
1848
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
1808
1849
|
// params,
|
|
@@ -1813,9 +1854,9 @@ function relationTree$1(_ref11) {
|
|
|
1813
1854
|
params: params
|
|
1814
1855
|
});
|
|
1815
1856
|
}
|
|
1816
|
-
function relationTreeAuth(
|
|
1817
|
-
var resourceId =
|
|
1818
|
-
params = _objectWithoutPropertiesLoose(
|
|
1857
|
+
function relationTreeAuth(_ref14) {
|
|
1858
|
+
var resourceId = _ref14.resourceId,
|
|
1859
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1819
1860
|
|
|
1820
1861
|
return FUtil.Request({
|
|
1821
1862
|
method: 'GET',
|
|
@@ -1823,8 +1864,8 @@ function relationTreeAuth(_ref12) {
|
|
|
1823
1864
|
params: params
|
|
1824
1865
|
});
|
|
1825
1866
|
}
|
|
1826
|
-
function resourcesCount(
|
|
1827
|
-
var params = _extends({},
|
|
1867
|
+
function resourcesCount(_ref15) {
|
|
1868
|
+
var params = _extends({}, _ref15);
|
|
1828
1869
|
|
|
1829
1870
|
return FUtil.Request({
|
|
1830
1871
|
method: 'GET',
|
|
@@ -1832,8 +1873,8 @@ function resourcesCount(_ref13) {
|
|
|
1832
1873
|
params: params
|
|
1833
1874
|
});
|
|
1834
1875
|
}
|
|
1835
|
-
function batchAuth$1(
|
|
1836
|
-
var params = _extends({},
|
|
1876
|
+
function batchAuth$1(_ref16) {
|
|
1877
|
+
var params = _extends({}, _ref16);
|
|
1837
1878
|
|
|
1838
1879
|
return FUtil.Request({
|
|
1839
1880
|
method: 'GET',
|
|
@@ -1841,8 +1882,8 @@ function batchAuth$1(_ref14) {
|
|
|
1841
1882
|
params: params
|
|
1842
1883
|
});
|
|
1843
1884
|
}
|
|
1844
|
-
function resourcesRecommend(
|
|
1845
|
-
var params = _extends({},
|
|
1885
|
+
function resourcesRecommend(_ref17) {
|
|
1886
|
+
var params = _extends({}, _ref17);
|
|
1846
1887
|
|
|
1847
1888
|
return FUtil.Request({
|
|
1848
1889
|
method: 'GET',
|
|
@@ -1850,8 +1891,8 @@ function resourcesRecommend(_ref15) {
|
|
|
1850
1891
|
params: params
|
|
1851
1892
|
});
|
|
1852
1893
|
}
|
|
1853
|
-
function availableTags(
|
|
1854
|
-
var params = _extends({},
|
|
1894
|
+
function availableTags(_ref18) {
|
|
1895
|
+
var params = _extends({}, _ref18);
|
|
1855
1896
|
|
|
1856
1897
|
return FUtil.Request({
|
|
1857
1898
|
method: 'GET',
|
|
@@ -1860,8 +1901,8 @@ function availableTags(_ref16) {
|
|
|
1860
1901
|
});
|
|
1861
1902
|
}
|
|
1862
1903
|
function resourceTypes$1(_temp) {
|
|
1863
|
-
var
|
|
1864
|
-
params = _extends({},
|
|
1904
|
+
var _ref19 = _temp === void 0 ? {} : _temp,
|
|
1905
|
+
params = _extends({}, _ref19);
|
|
1865
1906
|
|
|
1866
1907
|
return FUtil.Request({
|
|
1867
1908
|
method: 'GET',
|
|
@@ -1869,8 +1910,8 @@ function resourceTypes$1(_temp) {
|
|
|
1869
1910
|
params: params
|
|
1870
1911
|
});
|
|
1871
1912
|
}
|
|
1872
|
-
function ListSimpleByParentCode(
|
|
1873
|
-
var params = _extends({},
|
|
1913
|
+
function ListSimpleByParentCode(_ref20) {
|
|
1914
|
+
var params = _extends({}, _ref20);
|
|
1874
1915
|
|
|
1875
1916
|
return FUtil.Request({
|
|
1876
1917
|
method: 'GET',
|
|
@@ -1878,8 +1919,8 @@ function ListSimpleByParentCode(_ref18) {
|
|
|
1878
1919
|
params: params
|
|
1879
1920
|
});
|
|
1880
1921
|
}
|
|
1881
|
-
function getResourceTypeInfoByCode(
|
|
1882
|
-
var params = _extends({},
|
|
1922
|
+
function getResourceTypeInfoByCode(_ref21) {
|
|
1923
|
+
var params = _extends({}, _ref21);
|
|
1883
1924
|
|
|
1884
1925
|
return FUtil.Request({
|
|
1885
1926
|
method: 'GET',
|
|
@@ -1887,8 +1928,8 @@ function getResourceTypeInfoByCode(_ref19) {
|
|
|
1887
1928
|
params: params
|
|
1888
1929
|
});
|
|
1889
1930
|
}
|
|
1890
|
-
function getResourceAttrListSimple(
|
|
1891
|
-
var params = _extends({},
|
|
1931
|
+
function getResourceAttrListSimple(_ref22) {
|
|
1932
|
+
var params = _extends({}, _ref22);
|
|
1892
1933
|
|
|
1893
1934
|
return FUtil.Request({
|
|
1894
1935
|
method: 'GET',
|
|
@@ -1897,8 +1938,8 @@ function getResourceAttrListSimple(_ref20) {
|
|
|
1897
1938
|
});
|
|
1898
1939
|
}
|
|
1899
1940
|
function listSimple4Recently(_temp2) {
|
|
1900
|
-
var
|
|
1901
|
-
params = _extends({},
|
|
1941
|
+
var _ref23 = _temp2 === void 0 ? {} : _temp2,
|
|
1942
|
+
params = _extends({}, _ref23);
|
|
1902
1943
|
|
|
1903
1944
|
return FUtil.Request({
|
|
1904
1945
|
method: 'GET',
|
|
@@ -1906,8 +1947,8 @@ function listSimple4Recently(_temp2) {
|
|
|
1906
1947
|
params: params
|
|
1907
1948
|
});
|
|
1908
1949
|
}
|
|
1909
|
-
function getAttrsInfoByKey(
|
|
1910
|
-
var params = _extends({},
|
|
1950
|
+
function getAttrsInfoByKey(_ref24) {
|
|
1951
|
+
var params = _extends({}, _ref24);
|
|
1911
1952
|
|
|
1912
1953
|
return FUtil.Request({
|
|
1913
1954
|
method: 'GET',
|
|
@@ -1915,8 +1956,8 @@ function getAttrsInfoByKey(_ref22) {
|
|
|
1915
1956
|
params: params
|
|
1916
1957
|
});
|
|
1917
1958
|
}
|
|
1918
|
-
function generateResourceNames(
|
|
1919
|
-
var data =
|
|
1959
|
+
function generateResourceNames(_ref25) {
|
|
1960
|
+
var data = _ref25.data;
|
|
1920
1961
|
return FUtil.Request({
|
|
1921
1962
|
method: 'POST',
|
|
1922
1963
|
url: "/v2/resources/generateResourceNames",
|
|
@@ -1938,11 +1979,13 @@ var Resource = {
|
|
|
1938
1979
|
createVersion: createVersion,
|
|
1939
1980
|
resourceVersionInfo1: resourceVersionInfo1,
|
|
1940
1981
|
resourceVersionInfo2: resourceVersionInfo2,
|
|
1982
|
+
getVersionList: getVersionList,
|
|
1941
1983
|
getResourceVersionBySha1: getResourceVersionBySha1,
|
|
1942
1984
|
getResourceBySha1: getResourceBySha1,
|
|
1943
1985
|
updateResourceVersionInfo: updateResourceVersionInfo,
|
|
1944
1986
|
saveVersionsDraft: saveVersionsDraft,
|
|
1945
1987
|
lookDraft: lookDraft,
|
|
1988
|
+
deleteResourceDraft: deleteResourceDraft,
|
|
1946
1989
|
resourceIsUsedByOther: resourceIsUsedByOther,
|
|
1947
1990
|
resourcesDownload: resourcesDownload,
|
|
1948
1991
|
batchGetCoverageVersions: batchGetCoverageVersions,
|
|
@@ -2714,6 +2757,20 @@ function statisticRewardRecords(params) {
|
|
|
2714
2757
|
data: params
|
|
2715
2758
|
});
|
|
2716
2759
|
}
|
|
2760
|
+
function statisticTaskRecords(params) {
|
|
2761
|
+
return FUtil.Request({
|
|
2762
|
+
method: 'POST',
|
|
2763
|
+
url: "/v2/activities/facade/statisticTaskRecords",
|
|
2764
|
+
data: params
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
2767
|
+
function statisticSingleRewardRecordForAll(params) {
|
|
2768
|
+
return FUtil.Request({
|
|
2769
|
+
method: 'POST',
|
|
2770
|
+
url: "/v2/activities/facade/statisticSingleRewardRecordForAll",
|
|
2771
|
+
data: params
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2717
2774
|
|
|
2718
2775
|
var Activity = {
|
|
2719
2776
|
__proto__: null,
|
|
@@ -2737,7 +2794,9 @@ var Activity = {
|
|
|
2737
2794
|
listInviteFriendInfos: listInviteFriendInfos,
|
|
2738
2795
|
getRewardRecordInfos: getRewardRecordInfos,
|
|
2739
2796
|
listRewardRecordInfos: listRewardRecordInfos,
|
|
2740
|
-
statisticRewardRecords: statisticRewardRecords
|
|
2797
|
+
statisticRewardRecords: statisticRewardRecords,
|
|
2798
|
+
statisticTaskRecords: statisticTaskRecords,
|
|
2799
|
+
statisticSingleRewardRecordForAll: statisticSingleRewardRecordForAll
|
|
2741
2800
|
};
|
|
2742
2801
|
|
|
2743
2802
|
var _excluded$9 = ["recordId"];
|
|
@@ -3382,7 +3441,7 @@ function _request() {
|
|
|
3382
3441
|
case 3:
|
|
3383
3442
|
result = _context.sent;
|
|
3384
3443
|
|
|
3385
|
-
if (!(result.
|
|
3444
|
+
if (!(result.errCode === 30 && !noRedirect)) {
|
|
3386
3445
|
_context.next = 10;
|
|
3387
3446
|
break;
|
|
3388
3447
|
}
|