@freelog/tools-lib 0.1.110 → 0.1.113
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/presentables.d.ts +5 -0
- package/dist/service-API/resources.d.ts +4 -0
- package/dist/service-API/storages.d.ts +1 -1
- package/dist/service-API/user.d.ts +8 -0
- package/dist/tools-lib.cjs.development.js +45 -16
- 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 +45 -16
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +1 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +287 -282
- package/src/service-API/recombinations/index.ts +4 -3
- package/src/service-API/resources.ts +511 -497
- package/src/service-API/storages.ts +1 -1
- package/src/service-API/user.ts +28 -1
- package/src/utils/linkTo.ts +2 -5
|
@@ -10,6 +10,11 @@ export interface CreatePresentableParamsType {
|
|
|
10
10
|
}[];
|
|
11
11
|
presentableName: string;
|
|
12
12
|
tags?: string[];
|
|
13
|
+
policies?: {
|
|
14
|
+
policyName: string;
|
|
15
|
+
policyText: string;
|
|
16
|
+
status?: 0 | 1;
|
|
17
|
+
}[];
|
|
13
18
|
}
|
|
14
19
|
export declare function createPresentable(params: CreatePresentableParamsType): Promise<any>;
|
|
15
20
|
interface UpdatePresentableParamsType {
|
|
@@ -253,4 +253,8 @@ interface BatchAuthParamsType {
|
|
|
253
253
|
versionRanges?: string;
|
|
254
254
|
}
|
|
255
255
|
export declare function batchAuth({ ...params }: BatchAuthParamsType): Promise<any>;
|
|
256
|
+
interface ResourcesRecommendParamsType {
|
|
257
|
+
recommendType: 1 | 2;
|
|
258
|
+
}
|
|
259
|
+
export declare function resourcesRecommend({ ...params }: ResourcesRecommendParamsType): Promise<any>;
|
|
256
260
|
export {};
|
|
@@ -118,7 +118,7 @@ interface ClearUserNodeDataParamsType {
|
|
|
118
118
|
}
|
|
119
119
|
export declare function clearUserNodeData({ ...params }: ClearUserNodeDataParamsType): Promise<any>;
|
|
120
120
|
interface FilesListInfoParamsType {
|
|
121
|
-
sha1: string
|
|
121
|
+
sha1: string;
|
|
122
122
|
}
|
|
123
123
|
export declare function filesListInfo({ ...params }: FilesListInfoParamsType): Promise<any>;
|
|
124
124
|
export {};
|
|
@@ -68,4 +68,12 @@ interface RegisterOrBindParamsType {
|
|
|
68
68
|
identityId: string;
|
|
69
69
|
}
|
|
70
70
|
export declare function registerOrBind(params: RegisterOrBindParamsType): Promise<any>;
|
|
71
|
+
interface ThirdPartyUnbindParamsType {
|
|
72
|
+
thirdPartyType: string;
|
|
73
|
+
password: string;
|
|
74
|
+
}
|
|
75
|
+
export declare function thirdPartyUnbind(params: ThirdPartyUnbindParamsType): Promise<any>;
|
|
76
|
+
interface ThirdPartyListParamsType {
|
|
77
|
+
}
|
|
78
|
+
export declare function thirdPartyList(params?: ThirdPartyListParamsType): Promise<any>;
|
|
71
79
|
export {};
|
|
@@ -1055,11 +1055,9 @@ function dashboard(_temp3) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
function market(_temp4) {
|
|
1057
1057
|
var _ref5 = _temp4 === void 0 ? {} : _temp4,
|
|
1058
|
-
|
|
1058
|
+
params = _extends({}, _ref5);
|
|
1059
1059
|
|
|
1060
|
-
return "/market" + handleQuery(
|
|
1061
|
-
query: query
|
|
1062
|
-
});
|
|
1060
|
+
return "/market" + handleQuery(params);
|
|
1063
1061
|
}
|
|
1064
1062
|
function exampleNodes(_temp5) {
|
|
1065
1063
|
var _ref6 = _temp5 === void 0 ? {} : _temp5;
|
|
@@ -2118,6 +2116,15 @@ function batchAuth$1(_ref13) {
|
|
|
2118
2116
|
params: params
|
|
2119
2117
|
});
|
|
2120
2118
|
}
|
|
2119
|
+
function resourcesRecommend(_ref14) {
|
|
2120
|
+
var params = _extends({}, _ref14);
|
|
2121
|
+
|
|
2122
|
+
return FUtil.Request({
|
|
2123
|
+
method: 'GET',
|
|
2124
|
+
url: "/v2/resources/recommend",
|
|
2125
|
+
params: params
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2121
2128
|
|
|
2122
2129
|
var Resource = {
|
|
2123
2130
|
__proto__: null,
|
|
@@ -2144,7 +2151,8 @@ var Resource = {
|
|
|
2144
2151
|
cycleDependencyCheck: cycleDependencyCheck$1,
|
|
2145
2152
|
relationTree: relationTree$1,
|
|
2146
2153
|
relationTreeAuth: relationTreeAuth,
|
|
2147
|
-
batchAuth: batchAuth$1
|
|
2154
|
+
batchAuth: batchAuth$1,
|
|
2155
|
+
resourcesRecommend: resourcesRecommend
|
|
2148
2156
|
};
|
|
2149
2157
|
|
|
2150
2158
|
var _excluded$4 = ["loginName"];
|
|
@@ -2276,6 +2284,24 @@ function registerOrBind(params) {
|
|
|
2276
2284
|
noRedirect: true
|
|
2277
2285
|
});
|
|
2278
2286
|
}
|
|
2287
|
+
function thirdPartyUnbind(params) {
|
|
2288
|
+
return FUtil.Request({
|
|
2289
|
+
method: 'PUT',
|
|
2290
|
+
url: "/v2/thirdParty/unbind",
|
|
2291
|
+
data: params
|
|
2292
|
+
});
|
|
2293
|
+
}
|
|
2294
|
+
function thirdPartyList(params) {
|
|
2295
|
+
if (params === void 0) {
|
|
2296
|
+
params = {};
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
return FUtil.Request({
|
|
2300
|
+
method: 'GET',
|
|
2301
|
+
url: "/v2/thirdParty/list",
|
|
2302
|
+
data: params
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2279
2305
|
|
|
2280
2306
|
var User = {
|
|
2281
2307
|
__proto__: null,
|
|
@@ -2291,7 +2317,9 @@ var User = {
|
|
|
2291
2317
|
verifyLoginPassword: verifyLoginPassword,
|
|
2292
2318
|
areasProvinces: areasProvinces,
|
|
2293
2319
|
updateMobileOrEmail: updateMobileOrEmail,
|
|
2294
|
-
registerOrBind: registerOrBind
|
|
2320
|
+
registerOrBind: registerOrBind,
|
|
2321
|
+
thirdPartyUnbind: thirdPartyUnbind,
|
|
2322
|
+
thirdPartyList: thirdPartyList
|
|
2295
2323
|
};
|
|
2296
2324
|
|
|
2297
2325
|
var _excluded$5 = ["nodeId"],
|
|
@@ -2894,12 +2922,13 @@ function _getFilesSha1Info() {
|
|
|
2894
2922
|
|
|
2895
2923
|
case 6:
|
|
2896
2924
|
|
|
2897
|
-
|
|
2925
|
+
console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk');
|
|
2926
|
+
_context.next = 10;
|
|
2898
2927
|
return filesListInfo({
|
|
2899
|
-
sha1: needHandleSha1
|
|
2928
|
+
sha1: needHandleSha1.join(',')
|
|
2900
2929
|
});
|
|
2901
2930
|
|
|
2902
|
-
case
|
|
2931
|
+
case 10:
|
|
2903
2932
|
_yield$Storage$filesL = _context.sent;
|
|
2904
2933
|
data = _yield$Storage$filesL.data;
|
|
2905
2934
|
needHandleSha1 = data.filter(function (d) {
|
|
@@ -2928,24 +2957,24 @@ function _getFilesSha1Info() {
|
|
|
2928
2957
|
allData = [].concat(allData, finishedInfo);
|
|
2929
2958
|
|
|
2930
2959
|
if (!(needHandleSha1.length === 0)) {
|
|
2931
|
-
_context.next =
|
|
2960
|
+
_context.next = 18;
|
|
2932
2961
|
break;
|
|
2933
2962
|
}
|
|
2934
2963
|
|
|
2935
|
-
return _context.abrupt("break",
|
|
2964
|
+
return _context.abrupt("break", 22);
|
|
2936
2965
|
|
|
2937
|
-
case
|
|
2938
|
-
_context.next =
|
|
2966
|
+
case 18:
|
|
2967
|
+
_context.next = 20;
|
|
2939
2968
|
return promiseSleep(3000);
|
|
2940
2969
|
|
|
2941
|
-
case
|
|
2970
|
+
case 20:
|
|
2942
2971
|
_context.next = 6;
|
|
2943
2972
|
break;
|
|
2944
2973
|
|
|
2945
|
-
case
|
|
2974
|
+
case 22:
|
|
2946
2975
|
return _context.abrupt("return", allData);
|
|
2947
2976
|
|
|
2948
|
-
case
|
|
2977
|
+
case 23:
|
|
2949
2978
|
case "end":
|
|
2950
2979
|
return _context.stop();
|
|
2951
2980
|
}
|