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