@vizzly/api-client 0.0.35 → 0.0.37

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.
@@ -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
- console.log(`[TRACING] QE; ${queryEngineRequestId} - API; ${vizzlyApiRequestId}`, authHeaders);
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
- console.log('No write permission');
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}`);
@@ -306,7 +306,7 @@ class VizzlyApi extends Api_1.Api {
306
306
  path: `/api/v3/project/${params.projectId}`,
307
307
  method: 'get',
308
308
  abortSignal: params.abortSignal,
309
- acceptedAuthParams: ['projectApiKey', 'projectAccessToken'],
309
+ acceptedAuthParams: ['projectApiKey', 'projectAccessToken', 'appSessionToken'],
310
310
  };
311
311
  }
312
312
  getProjectAccessToken(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/api-client",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "private": false,
5
5
  "license": "NONE",
6
6
  "source": "src/index.ts",