akeyless-client-commons 1.1.66 → 1.1.68
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.
|
@@ -380,7 +380,7 @@ declare const LeftToRightDiv: ({ direction, className, children, props, title, }
|
|
|
380
380
|
direction: Direction;
|
|
381
381
|
children: ReactNode;
|
|
382
382
|
className?: string;
|
|
383
|
-
props
|
|
383
|
+
props?: ComponentProps<"div">;
|
|
384
384
|
title?: string;
|
|
385
385
|
}) => react_jsx_runtime.JSX.Element;
|
|
386
386
|
|
|
@@ -380,7 +380,7 @@ declare const LeftToRightDiv: ({ direction, className, children, props, title, }
|
|
|
380
380
|
direction: Direction;
|
|
381
381
|
children: ReactNode;
|
|
382
382
|
className?: string;
|
|
383
|
-
props
|
|
383
|
+
props?: ComponentProps<"div">;
|
|
384
384
|
title?: string;
|
|
385
385
|
}) => react_jsx_runtime.JSX.Element;
|
|
386
386
|
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -255,7 +255,13 @@ declare const cloudwiseDomain: string;
|
|
|
255
255
|
declare const akeylessOnlineDomain: string;
|
|
256
256
|
type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
257
257
|
type ServerName = "devices" | "bi" | "call-center-geo" | "call-center-events" | "notifications" | "data-socket" | "data-sync" | "cloudwise";
|
|
258
|
-
|
|
258
|
+
interface ErrorDetails {
|
|
259
|
+
serverName: ServerName;
|
|
260
|
+
method: Method;
|
|
261
|
+
url: string;
|
|
262
|
+
error: any;
|
|
263
|
+
}
|
|
264
|
+
declare const nxApiCall: <T = any>(serverName: ServerName, method: Method, url: string, data?: TObject<any>) => Promise<T | ErrorDetails>;
|
|
259
265
|
|
|
260
266
|
declare const checkUserPermissions: <T extends keyof UserPermissionsObject>(userPermissions: UserPermissionsObject, entity: T, permissions?: userPermissionsObjectValue<T>[], mode?: "some" | "every") => boolean;
|
|
261
267
|
declare const parsePermissions: (object: NxUser | Client) => TObject<TObject<boolean>>;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -255,7 +255,13 @@ declare const cloudwiseDomain: string;
|
|
|
255
255
|
declare const akeylessOnlineDomain: string;
|
|
256
256
|
type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
257
257
|
type ServerName = "devices" | "bi" | "call-center-geo" | "call-center-events" | "notifications" | "data-socket" | "data-sync" | "cloudwise";
|
|
258
|
-
|
|
258
|
+
interface ErrorDetails {
|
|
259
|
+
serverName: ServerName;
|
|
260
|
+
method: Method;
|
|
261
|
+
url: string;
|
|
262
|
+
error: any;
|
|
263
|
+
}
|
|
264
|
+
declare const nxApiCall: <T = any>(serverName: ServerName, method: Method, url: string, data?: TObject<any>) => Promise<T | ErrorDetails>;
|
|
259
265
|
|
|
260
266
|
declare const checkUserPermissions: <T extends keyof UserPermissionsObject>(userPermissions: UserPermissionsObject, entity: T, permissions?: userPermissionsObjectValue<T>[], mode?: "some" | "every") => boolean;
|
|
261
267
|
declare const parsePermissions: (object: NxUser | Client) => TObject<TObject<boolean>>;
|
package/dist/helpers/index.js
CHANGED
|
@@ -2475,7 +2475,7 @@ var cloudwiseDomain = isLocal ? "http://localhost:9012/api/cloudwise" : baseDoma
|
|
|
2475
2475
|
var akeylessOnlineDomain = mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
|
|
2476
2476
|
var nxApiCall = /*#__PURE__*/ function() {
|
|
2477
2477
|
var _ref = _async_to_generator(function(serverName, method, url, data) {
|
|
2478
|
-
var urlResult, headers, _tmp, _tmp1, _, response, error, _error_response;
|
|
2478
|
+
var urlResult, headers, _tmp, _tmp1, _, response, error, _error_response, _error_response1, details;
|
|
2479
2479
|
return _ts_generator(this, function(_state) {
|
|
2480
2480
|
switch(_state.label){
|
|
2481
2481
|
case 0:
|
|
@@ -2552,15 +2552,18 @@ var nxApiCall = /*#__PURE__*/ function() {
|
|
|
2552
2552
|
];
|
|
2553
2553
|
case 5:
|
|
2554
2554
|
error = _state.sent();
|
|
2555
|
-
|
|
2555
|
+
details = {
|
|
2556
2556
|
serverName: serverName,
|
|
2557
2557
|
method: method,
|
|
2558
2558
|
url: url,
|
|
2559
2559
|
data: data
|
|
2560
|
-
}
|
|
2560
|
+
};
|
|
2561
|
+
console.error("Error from nxApiCall: ".concat(JSON.stringify(details)), (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : _error_response.data) || error);
|
|
2561
2562
|
return [
|
|
2562
2563
|
2,
|
|
2563
|
-
|
|
2564
|
+
_object_spread({
|
|
2565
|
+
error: (error === null || error === void 0 ? void 0 : (_error_response1 = error.response) === null || _error_response1 === void 0 ? void 0 : _error_response1.data) || error
|
|
2566
|
+
}, details)
|
|
2564
2567
|
];
|
|
2565
2568
|
case 6:
|
|
2566
2569
|
return [
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -2093,7 +2093,7 @@ var cloudwiseDomain = isLocal ? "http://localhost:9012/api/cloudwise" : baseDoma
|
|
|
2093
2093
|
var akeylessOnlineDomain = mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
|
|
2094
2094
|
var nxApiCall = /*#__PURE__*/ function() {
|
|
2095
2095
|
var _ref = _async_to_generator(function(serverName, method, url, data) {
|
|
2096
|
-
var urlResult, headers, _tmp, _tmp1, _, response, error, _error_response;
|
|
2096
|
+
var urlResult, headers, _tmp, _tmp1, _, response, error, _error_response, _error_response1, details;
|
|
2097
2097
|
return _ts_generator(this, function(_state) {
|
|
2098
2098
|
switch(_state.label){
|
|
2099
2099
|
case 0:
|
|
@@ -2170,15 +2170,18 @@ var nxApiCall = /*#__PURE__*/ function() {
|
|
|
2170
2170
|
];
|
|
2171
2171
|
case 5:
|
|
2172
2172
|
error = _state.sent();
|
|
2173
|
-
|
|
2173
|
+
details = {
|
|
2174
2174
|
serverName: serverName,
|
|
2175
2175
|
method: method,
|
|
2176
2176
|
url: url,
|
|
2177
2177
|
data: data
|
|
2178
|
-
}
|
|
2178
|
+
};
|
|
2179
|
+
console.error("Error from nxApiCall: ".concat(JSON.stringify(details)), (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : _error_response.data) || error);
|
|
2179
2180
|
return [
|
|
2180
2181
|
2,
|
|
2181
|
-
|
|
2182
|
+
_object_spread({
|
|
2183
|
+
error: (error === null || error === void 0 ? void 0 : (_error_response1 = error.response) === null || _error_response1 === void 0 ? void 0 : _error_response1.data) || error
|
|
2184
|
+
}, details)
|
|
2182
2185
|
];
|
|
2183
2186
|
case 6:
|
|
2184
2187
|
return [
|