@vizzly/api-client 0.0.35 → 0.0.36
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/models/Api.js
CHANGED
|
@@ -42,7 +42,7 @@ class Api {
|
|
|
42
42
|
const queryEngineRequestId = res.headers.get('vizzly-query-engine-request-id') || '-';
|
|
43
43
|
const vizzlyApiRequestId = res.headers.get('x-request-id') || '-';
|
|
44
44
|
if (res.status === 500) {
|
|
45
|
-
|
|
45
|
+
VizzlyApiClientLogger_1.VizzlyApiClientLogger.debug(`[TRACING] QE; ${queryEngineRequestId} - API; ${vizzlyApiRequestId}`);
|
|
46
46
|
}
|
|
47
47
|
VizzlyApiClientLogger_1.VizzlyApiClientLogger.debug(`[TRACING] QE; ${queryEngineRequestId} - API; ${vizzlyApiRequestId}`);
|
|
48
48
|
return { body: body, status: res.status, headers: res.headers };
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.DashboardManager = void 0;
|
|
13
13
|
const lodash_1 = require("lodash");
|
|
14
14
|
const GlobalLibraryRepository_1 = require("./GlobalLibraryRepository");
|
|
15
|
+
const VizzlyApiClientLogger_1 = require("./VizzlyApiClientLogger");
|
|
15
16
|
class DashboardManager {
|
|
16
17
|
constructor(vizzly) {
|
|
17
18
|
this.vizzly = vizzly;
|
|
@@ -77,7 +78,7 @@ class DashboardManager {
|
|
|
77
78
|
var _d;
|
|
78
79
|
const writePermission = globalLibraryPermissions.find((permission) => permission.globalLibraryId === gL.id && permission.scope === 'read_write');
|
|
79
80
|
if (!writePermission)
|
|
80
|
-
|
|
81
|
+
VizzlyApiClientLogger_1.VizzlyApiClientLogger.error('No write permission found.');
|
|
81
82
|
if (writePermission) {
|
|
82
83
|
yield globalLibraryRepository.updateGlobalLibrary({
|
|
83
84
|
globalLibrarySessionToken: writePermission.token,
|
|
@@ -47,7 +47,6 @@ class DashboardRepository {
|
|
|
47
47
|
throw new DashboardQuotaReached_1.DashboardQuotaReached(`Dashboard quota reached; ${JSON.stringify(builtDashboard.body)}`);
|
|
48
48
|
}
|
|
49
49
|
if (builtDashboard.status != 200) {
|
|
50
|
-
console.log();
|
|
51
50
|
throw new FailedToCreateDashboard_1.FailedToCreateDashboard(`Failed to create the dashboard from POST /api/v2/dashboard. Got ${builtDashboard.status}`);
|
|
52
51
|
}
|
|
53
52
|
throw new FailedToCreateDashboard_1.FailedToCreateDashboard(`Unknown failure. Got status ${builtDashboard.status}`);
|