@freelog/tools-lib 0.1.76 → 0.1.77

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.
@@ -44,7 +44,10 @@ interface PresentableDetailsParamsType1 {
44
44
  projection?: string;
45
45
  isLoadVersionProperty?: 0 | 1;
46
46
  isLoadPolicyInfo?: 0 | 1;
47
+ isTranslate?: 0 | 1;
47
48
  isLoadCustomPropertyDescriptors?: 0 | 1;
49
+ isLoadResourceDetailInfo?: 0 | 1;
50
+ isLoadResourceVersionInfo?: 0 | 1;
48
51
  }
49
52
  interface PresentableDetailsParamsType2 {
50
53
  nodeId: number;
@@ -40,6 +40,7 @@ export declare function list(params: ListParamsType): Promise<any>;
40
40
  interface InfoParamsType {
41
41
  resourceIdOrName: string;
42
42
  isLoadPolicyInfo?: 0 | 1;
43
+ isTranslate?: 0 | 1;
43
44
  isLoadLatestVersionInfo?: 0 | 1;
44
45
  projection?: string;
45
46
  }
@@ -1605,9 +1605,6 @@ function presentableDetails(params) {
1605
1605
  });
1606
1606
  }
1607
1607
  function presentables(params) {
1608
- // return FUtil.Axios.get(`/v2/presentables`, {
1609
- // params,
1610
- // });
1611
1608
  return FUtil.Request({
1612
1609
  method: 'GET',
1613
1610
  url: "/v2/presentables",
@@ -1615,9 +1612,6 @@ function presentables(params) {
1615
1612
  });
1616
1613
  }
1617
1614
  function presentableList(params) {
1618
- // return FUtil.Axios.get(`/v2/presentables/list`, {
1619
- // params,
1620
- // });
1621
1615
  return FUtil.Request({
1622
1616
  method: 'GET',
1623
1617
  url: "/v2/presentables/list",
@@ -2030,7 +2024,6 @@ var _excluded$3 = ["resourceIdOrName"],
2030
2024
  _excluded10$1 = ["resourceId"],
2031
2025
  _excluded11 = ["resourceId"];
2032
2026
  function create$1(params) {
2033
- // return FUtil.Axios.post('/v2/resources', params)
2034
2027
  return FUtil.Request({
2035
2028
  method: 'POST',
2036
2029
  url: "/v2/resources",
@@ -2038,7 +2031,6 @@ function create$1(params) {
2038
2031
  });
2039
2032
  }
2040
2033
  function update(params) {
2041
- // return FUtil.Axios.put(`/v2/resources/${params.resourceId}`, params);
2042
2034
  return FUtil.Request({
2043
2035
  method: 'PUT',
2044
2036
  url: "/v2/resources/" + params.resourceId,
@@ -2046,9 +2038,6 @@ function update(params) {
2046
2038
  });
2047
2039
  }
2048
2040
  function list(params) {
2049
- // return FUtil.Axios.get('/v2/resources', {
2050
- // params,
2051
- // });
2052
2041
  return FUtil.Request({
2053
2042
  method: 'GET',
2054
2043
  url: "/v2/resources",
@@ -2059,9 +2048,6 @@ function info(_ref) {
2059
2048
  var resourceIdOrName = _ref.resourceIdOrName,
2060
2049
  params = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2061
2050
 
2062
- // return FUtil.Axios.get(`/v2/resources/${encodeURIComponent(resourceIdOrName)}`, {
2063
- // params: params,
2064
- // });
2065
2051
  return FUtil.Request({
2066
2052
  method: 'GET',
2067
2053
  url: "/v2/resources/" + encodeURIComponent(resourceIdOrName),
@@ -2069,9 +2055,6 @@ function info(_ref) {
2069
2055
  });
2070
2056
  }
2071
2057
  function batchInfo(params) {
2072
- // return FUtil.Axios.get(`/v2/resources/list`, {
2073
- // params: params,
2074
- // });
2075
2058
  return FUtil.Request({
2076
2059
  method: 'GET',
2077
2060
  url: "/v2/resources/list",
@@ -2082,9 +2065,6 @@ function dependencyTree$1(_ref2) {
2082
2065
  var resourceId = _ref2.resourceId,
2083
2066
  params = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
2084
2067
 
2085
- // return FUtil.Axios.get(`/v2/resources/${resourceId}/dependencyTree`, {
2086
- // params: params,
2087
- // });
2088
2068
  return FUtil.Request({
2089
2069
  method: 'GET',
2090
2070
  url: "/v2/resources/" + resourceId + "/dependencyTree",
@@ -2095,9 +2075,6 @@ function authTree$1(_ref3) {
2095
2075
  var resourceId = _ref3.resourceId,
2096
2076
  params = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
2097
2077
 
2098
- // return FUtil.Axios.get(`/v2/resources/${resourceId}/authTree`, {
2099
- // params: params,
2100
- // });
2101
2078
  return FUtil.Request({
2102
2079
  method: 'GET',
2103
2080
  url: "/v2/resources/" + resourceId + "/authTree",
@@ -2116,22 +2093,13 @@ function createVersion(_ref4) {
2116
2093
  });
2117
2094
  }
2118
2095
  function resourceVersionInfo(params) {
2119
- // console.log('####!AAA');
2120
2096
  if (params.version) {
2121
- // return FUtil.Axios.get(`/v2/resources/${(params as ResourceVersionInfoParamsType1).resourceId}/versions/${(params as ResourceVersionInfoParamsType1).version}`, {
2122
- // params: {
2123
- // projection: params.projection,
2124
- // }
2125
- // });
2126
2097
  return FUtil.Request({
2127
2098
  method: 'GET',
2128
2099
  url: "/v2/resources/" + params.resourceId + "/versions/" + params.version,
2129
2100
  params: params
2130
2101
  });
2131
- } // return FUtil.Axios.get(`/v2/resources/versions/detail`, {
2132
- // params,
2133
- // });
2134
-
2102
+ }
2135
2103
 
2136
2104
  return FUtil.Request({
2137
2105
  method: 'GET',