@cubejs-client/core 1.5.11 → 1.5.12

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.
@@ -2563,9 +2563,9 @@
2563
2563
  return _createClass__default['default'](CubeApi, [{
2564
2564
  key: "request",
2565
2565
  value: function request(method, params) {
2566
- return this.transport.request(method, _objectSpread({
2567
- baseRequestId: uuid.v4()
2568
- }, params));
2566
+ return this.transport.request(method, _objectSpread(_objectSpread({}, params), {}, {
2567
+ baseRequestId: (params === null || params === void 0 ? void 0 : params.baseRequestId) || uuid.v4()
2568
+ }));
2569
2569
  }
2570
2570
  }, {
2571
2571
  key: "loadMethod",
@@ -3011,11 +3011,12 @@
3011
3011
  query = _this$prepareQueryOpt2[0];
3012
3012
  options = _this$prepareQueryOpt2[1];
3013
3013
  return this.loadMethod(function () {
3014
- var _options6;
3014
+ var _options6, _options7;
3015
3015
  return _this4.request('load', {
3016
3016
  query: query,
3017
3017
  queryType: 'multi',
3018
- signal: (_options6 = options) === null || _options6 === void 0 ? void 0 : _options6.signal
3018
+ signal: (_options6 = options) === null || _options6 === void 0 ? void 0 : _options6.signal,
3019
+ baseRequestId: (_options7 = options) === null || _options7 === void 0 ? void 0 : _options7.baseRequestId
3019
3020
  });
3020
3021
  }, function (response) {
3021
3022
  return _this4.loadResponseInternal(response, options);
@@ -3081,11 +3082,12 @@
3081
3082
  query = _this$prepareQueryOpt4[0];
3082
3083
  options = _this$prepareQueryOpt4[1];
3083
3084
  return this.loadMethod(function () {
3084
- var _options7;
3085
+ var _options8, _options9;
3085
3086
  return _this6.request('subscribe', {
3086
3087
  query: query,
3087
3088
  queryType: 'multi',
3088
- signal: (_options7 = options) === null || _options7 === void 0 ? void 0 : _options7.signal
3089
+ signal: (_options8 = options) === null || _options8 === void 0 ? void 0 : _options8.signal,
3090
+ baseRequestId: (_options9 = options) === null || _options9 === void 0 ? void 0 : _options9.baseRequestId
3089
3091
  });
3090
3092
  }, function (response) {
3091
3093
  return _this6.loadResponseInternal(response, options);
@@ -3104,7 +3106,8 @@
3104
3106
  return this.loadMethod(function () {
3105
3107
  return _this7.request('sql', {
3106
3108
  query: query,
3107
- signal: options === null || options === void 0 ? void 0 : options.signal
3109
+ signal: options === null || options === void 0 ? void 0 : options.signal,
3110
+ baseRequestId: options === null || options === void 0 ? void 0 : options.baseRequestId
3108
3111
  });
3109
3112
  }, function (response) {
3110
3113
  return Array.isArray(response) ? response.map(function (body) {
@@ -3122,7 +3125,8 @@
3122
3125
  var _this8 = this;
3123
3126
  return this.loadMethod(function () {
3124
3127
  return _this8.request('meta', {
3125
- signal: options === null || options === void 0 ? void 0 : options.signal
3128
+ signal: options === null || options === void 0 ? void 0 : options.signal,
3129
+ baseRequestId: options === null || options === void 0 ? void 0 : options.baseRequestId
3126
3130
  });
3127
3131
  }, function (body) {
3128
3132
  return new Meta(body);
@@ -3139,7 +3143,8 @@
3139
3143
  return this.loadMethod(function () {
3140
3144
  return _this9.request('dry-run', {
3141
3145
  query: query,
3142
- signal: options === null || options === void 0 ? void 0 : options.signal
3146
+ signal: options === null || options === void 0 ? void 0 : options.signal,
3147
+ baseRequestId: options === null || options === void 0 ? void 0 : options.baseRequestId
3143
3148
  });
3144
3149
  }, function (response) {
3145
3150
  return response;
@@ -3159,7 +3164,8 @@
3159
3164
  cache: options === null || options === void 0 ? void 0 : options.cache,
3160
3165
  method: 'POST',
3161
3166
  signal: options === null || options === void 0 ? void 0 : options.signal,
3162
- fetchTimeout: options === null || options === void 0 ? void 0 : options.timeout
3167
+ fetchTimeout: options === null || options === void 0 ? void 0 : options.timeout,
3168
+ baseRequestId: options === null || options === void 0 ? void 0 : options.baseRequestId
3163
3169
  });
3164
3170
  return request;
3165
3171
  }, function (response) {