@freelog/tools-lib 0.1.150 → 0.1.152

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.
@@ -1,5 +1,6 @@
1
1
  interface OperationCategoriesParamsType {
2
2
  name?: string;
3
+ status?: number;
3
4
  }
4
5
  export declare function operationCategories({ ...params }?: OperationCategoriesParamsType): Promise<any>;
5
6
  export {};
@@ -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
  }>;
@@ -278,12 +278,16 @@ export declare function availableTags({ ...params }: AvailableTagsParamsType): P
278
278
  interface ResourceTypesParamsType {
279
279
  codeOrName?: string;
280
280
  category?: 1 | 2;
281
+ isMine?: boolean;
282
+ status?: 0 | 1;
281
283
  }
282
284
  export declare function resourceTypes({ ...params }?: ResourceTypesParamsType): Promise<any>;
283
285
  interface ListSimpleByParentCodeParamsType {
284
286
  parentCode: string;
285
287
  name?: string;
286
288
  category?: 1 | 2;
289
+ excludeParentCode?: boolean;
290
+ isTerminate?: boolean;
287
291
  }
288
292
  export declare function ListSimpleByParentCode({ ...params }: ListSimpleByParentCodeParamsType): Promise<any>;
289
293
  interface GetResourceTypeInfoByCodeParamsType {
@@ -293,4 +297,7 @@ export declare function getResourceTypeInfoByCode({ ...params }: GetResourceType
293
297
  interface GetResourceAttrListSimple {
294
298
  }
295
299
  export declare function getResourceAttrListSimple({ ...params }: GetResourceAttrListSimple): Promise<any>;
300
+ interface ListSimple4RecentlySimple {
301
+ }
302
+ export declare function listSimple4Recently({ ...params }?: ListSimple4RecentlySimple): Promise<any>;
296
303
  export {};
@@ -91,8 +91,8 @@ interface UpdateObjectParamsType {
91
91
  type: string;
92
92
  versionRange?: string;
93
93
  }[];
94
- resourceType?: string[];
95
94
  resourceTypeCode?: string;
95
+ resourceTypeName?: string;
96
96
  }
97
97
  export declare function updateObject({ objectIdOrName, ...params }: UpdateObjectParamsType): Promise<any>;
98
98
  interface BatchObjectListParamsType {
@@ -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 {};
@@ -125,11 +125,11 @@ var Format = {
125
125
  var EXHIBIT_NAME = /*#__PURE__*/new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/); // 资源名称
126
126
 
127
127
  var RESOURCE_NAME = /*#__PURE__*/new RegExp(/^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/); // 资源类型
128
- // export const RESOURCE_TYPE: RegExp = new RegExp(/^(?!_)[a-z0-9_]{3,20}(?<!_)$/);
129
128
 
130
- var RESOURCE_TYPE = /*#__PURE__*/new RegExp(/^[a-z0-9][a-z0-9_]{1,18}[a-z0-9]$/); // 自定义属性键
129
+ var RESOURCE_TYPE = /*#__PURE__*/new RegExp("^[\u4E00-\u9FEFa-zA-Z0-9\\-&.,]{1,40}$"); // 自定义属性键
130
+ // export const CUSTOM_KEY: RegExp = new RegExp(/^[a-zA-Z_]([a-zA-Z0-9_]{1,19})?$/);
131
131
 
132
- var CUSTOM_KEY = /*#__PURE__*/new RegExp(/^[a-zA-Z0-9_]{1,20}$/); // 节点名称
132
+ var CUSTOM_KEY = /*#__PURE__*/new RegExp('^[a-zA-Z]([a-zA-Z0-9_]{1,19})?$'); // 节点名称
133
133
 
134
134
  var NODE_NAME = /*#__PURE__*/new RegExp(/^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/); // 节点地址
135
135
  // export const NODE_DOMAIN: RegExp = new RegExp(/^(?!-)[a-z0-9-]{4,24}(?<!-)$/);
@@ -152,8 +152,9 @@ var PASSWORD = /*#__PURE__*/new RegExp(/^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/);
152
152
  var NATURAL_NUMBER = /*#__PURE__*/new RegExp(/^[0-9]*$/); // 正整数
153
153
 
154
154
  var POSITIVE_INTEGER = /*#__PURE__*/new RegExp(/^[1-9]\d*$/); // 最多两位小数的正数
155
+ // export const MAX_2_DECIMAL_POSITIVE_NUMBER = new RegExp(/^\d+(.\d{1,2})?$/);
155
156
 
156
- var MAX_2_DECIMAL_POSITIVE_NUMBER = /*#__PURE__*/new RegExp(/^\d+(.\d{1,2})?$/); // 对象的Bucket名称
157
+ var MAX_2_DECIMAL_POSITIVE_NUMBER = /*#__PURE__*/new RegExp(/^\d+(\.\d{0,2})?$/); // 对象的Bucket名称
157
158
 
158
159
  var BUCKET_NAME = /*#__PURE__*/new RegExp(/^([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]$/); // JS变量名称
159
160
 
@@ -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,