@freelog/tools-lib 0.1.150 → 0.1.151
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/recombinations/index.d.ts +2 -1
- package/dist/service-API/resources.d.ts +3 -0
- package/dist/service-API/storages.d.ts +1 -0
- package/dist/tools-lib.cjs.development.js +20 -7
- 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 +20 -7
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/recombinations/index.ts +97 -92
- package/src/service-API/resources.ts +12 -0
- package/src/service-API/storages.ts +1 -0
- package/src/utils/regexp.ts +53 -52
|
@@ -7,8 +7,9 @@ interface FileInfo {
|
|
|
7
7
|
}
|
|
8
8
|
interface GetFileInfosBySha1Params {
|
|
9
9
|
sha1: string[];
|
|
10
|
+
resourceTypeCode: string;
|
|
10
11
|
}
|
|
11
|
-
export declare function getFilesSha1Info({ sha1 }: GetFileInfosBySha1Params, cdPartially?: (s: any[]) => void): Promise<{
|
|
12
|
+
export declare function getFilesSha1Info({ sha1, resourceTypeCode }: GetFileInfosBySha1Params, cdPartially?: (s: any[]) => void): Promise<{
|
|
12
13
|
error: string;
|
|
13
14
|
result: FileInfo[];
|
|
14
15
|
}>;
|
|
@@ -293,4 +293,7 @@ export declare function getResourceTypeInfoByCode({ ...params }: GetResourceType
|
|
|
293
293
|
interface GetResourceAttrListSimple {
|
|
294
294
|
}
|
|
295
295
|
export declare function getResourceAttrListSimple({ ...params }: GetResourceAttrListSimple): Promise<any>;
|
|
296
|
+
interface ListSimple4RecentlySimple {
|
|
297
|
+
}
|
|
298
|
+
export declare function listSimple4Recently({ ...params }?: ListSimple4RecentlySimple): Promise<any>;
|
|
296
299
|
export {};
|
|
@@ -121,6 +121,7 @@ interface ClearUserNodeDataParamsType {
|
|
|
121
121
|
export declare function clearUserNodeData({ ...params }: ClearUserNodeDataParamsType): Promise<any>;
|
|
122
122
|
interface FilesListInfoParamsType {
|
|
123
123
|
sha1: string;
|
|
124
|
+
resourceTypeCode: string;
|
|
124
125
|
}
|
|
125
126
|
export declare function filesListInfo({ ...params }: FilesListInfoParamsType): Promise<any>;
|
|
126
127
|
export {};
|
|
@@ -128,8 +128,9 @@ var RESOURCE_NAME = /*#__PURE__*/new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|
|
|
|
128
128
|
// export const RESOURCE_TYPE: RegExp = new RegExp(/^(?!_)[a-z0-9_]{3,20}(?<!_)$/);
|
|
129
129
|
|
|
130
130
|
var RESOURCE_TYPE = /*#__PURE__*/new RegExp(/^[a-z0-9][a-z0-9_]{1,18}[a-z0-9]$/); // 自定义属性键
|
|
131
|
+
// export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z0-9_]{1,20}$/);
|
|
131
132
|
|
|
132
|
-
var CUSTOM_KEY = /*#__PURE__*/new RegExp(/^[a-zA-Z0-9_]{1,
|
|
133
|
+
var CUSTOM_KEY = /*#__PURE__*/new RegExp(/^[a-zA-Z_][a-zA-Z0-9_]{1,19}$/); // 节点名称
|
|
133
134
|
|
|
134
135
|
var NODE_NAME = /*#__PURE__*/new RegExp(/^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/); // 节点地址
|
|
135
136
|
// export const NODE_DOMAIN: RegExp = new RegExp(/^(?!-)[a-z0-9-]{4,24}(?<!-)$/);
|
|
@@ -1811,6 +1812,16 @@ function getResourceAttrListSimple(_ref20) {
|
|
|
1811
1812
|
params: params
|
|
1812
1813
|
});
|
|
1813
1814
|
}
|
|
1815
|
+
function listSimple4Recently(_temp2) {
|
|
1816
|
+
var _ref21 = _temp2 === void 0 ? {} : _temp2,
|
|
1817
|
+
params = _extends({}, _ref21);
|
|
1818
|
+
|
|
1819
|
+
return FUtil.Request({
|
|
1820
|
+
method: 'GET',
|
|
1821
|
+
url: "/v2/resources/types/listSimple4Recently",
|
|
1822
|
+
params: params
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1814
1825
|
|
|
1815
1826
|
var Resource = {
|
|
1816
1827
|
__proto__: null,
|
|
@@ -1844,7 +1855,8 @@ var Resource = {
|
|
|
1844
1855
|
resourceTypes: resourceTypes$1,
|
|
1845
1856
|
ListSimpleByParentCode: ListSimpleByParentCode,
|
|
1846
1857
|
getResourceTypeInfoByCode: getResourceTypeInfoByCode,
|
|
1847
|
-
getResourceAttrListSimple: getResourceAttrListSimple
|
|
1858
|
+
getResourceAttrListSimple: getResourceAttrListSimple,
|
|
1859
|
+
listSimple4Recently: listSimple4Recently
|
|
1848
1860
|
};
|
|
1849
1861
|
|
|
1850
1862
|
var _excluded$4 = ["loginName"];
|
|
@@ -2897,13 +2909,13 @@ function getFilesSha1Info(_x, _x2) {
|
|
|
2897
2909
|
|
|
2898
2910
|
function _getFilesSha1Info() {
|
|
2899
2911
|
_getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, cdPartially) {
|
|
2900
|
-
var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, ret, errCode, data, msg, finishedInfo;
|
|
2912
|
+
var sha1, resourceTypeCode, delay, needHandleSha1, allData, _yield$Storage$filesL, ret, errCode, data, msg, finishedInfo;
|
|
2901
2913
|
|
|
2902
2914
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2903
2915
|
while (1) {
|
|
2904
2916
|
switch (_context.prev = _context.next) {
|
|
2905
2917
|
case 0:
|
|
2906
|
-
sha1 = _ref.sha1;
|
|
2918
|
+
sha1 = _ref.sha1, resourceTypeCode = _ref.resourceTypeCode;
|
|
2907
2919
|
|
|
2908
2920
|
if (cdPartially === void 0) {
|
|
2909
2921
|
cdPartially = function cdPartially() {
|
|
@@ -2930,7 +2942,8 @@ function _getFilesSha1Info() {
|
|
|
2930
2942
|
|
|
2931
2943
|
_context.next = 10;
|
|
2932
2944
|
return filesListInfo({
|
|
2933
|
-
sha1: needHandleSha1.join(',')
|
|
2945
|
+
sha1: needHandleSha1.join(','),
|
|
2946
|
+
resourceTypeCode: resourceTypeCode
|
|
2934
2947
|
});
|
|
2935
2948
|
|
|
2936
2949
|
case 10:
|
|
@@ -2973,9 +2986,9 @@ function _getFilesSha1Info() {
|
|
|
2973
2986
|
state = 'success';
|
|
2974
2987
|
} else if (d.metaAnalyzeStatus === 3) {
|
|
2975
2988
|
state = 'fail';
|
|
2976
|
-
}
|
|
2989
|
+
} // console.log(d, '90wieojiksdjf;lkasdjf;lksdjflksjdflkjsdlfkjsdlkj');
|
|
2990
|
+
|
|
2977
2991
|
|
|
2978
|
-
console.log(d, '90wieojiksdjf;lkasdjf;lksdjflksjdflkjsdlfkjsdlkj');
|
|
2979
2992
|
return {
|
|
2980
2993
|
sha1: d.sha1,
|
|
2981
2994
|
state: state,
|