logitude-dashboard-library 3.2.59 → 3.2.60

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.
@@ -149,12 +149,18 @@ var ApiServices = /*#__PURE__*/function () {
149
149
  }
150
150
 
151
151
  var token = this.getTokenFromStorage();
152
+ var requestHeaders = {
153
+ 'Content-Type': 'application/json',
154
+ 'Token': token
155
+ };
156
+
157
+ if (this.isDashboardClickHouseActive()) {
158
+ requestHeaders['Dashboard-Clickhouse'] = "True";
159
+ }
160
+
152
161
  var apiURL = "" + this._apiUrl + api;
153
162
  return axios.post(apiURL, date, {
154
- headers: {
155
- 'Content-Type': 'application/json',
156
- 'Token': token
157
- },
163
+ headers: requestHeaders,
158
164
  signal: requestSignal
159
165
  });
160
166
  };
@@ -163,6 +169,12 @@ var ApiServices = /*#__PURE__*/function () {
163
169
  return Session.Token || '';
164
170
  };
165
171
 
172
+ _proto.isDashboardClickHouseActive = function isDashboardClickHouseActive() {
173
+ var _window;
174
+
175
+ return ((_window = window) === null || _window === void 0 ? void 0 : _window.IsDashboardClickHouseActive) === true;
176
+ };
177
+
166
178
  _proto.ConcatFiltersToURL = function ConcatFiltersToURL(filters, urlparameters) {
167
179
  var mykeys = Object.keys(filters);
168
180
  var addtionalFiltersValues = null;