@looker/sdk 23.20.1 → 24.2.0

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.
@@ -1,8 +1,8 @@
1
1
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
2
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  import { APIMethods, encodeParam } from '@looker/sdk-rtl';
7
7
  import { sdkVersion } from '../constants';
8
8
  export class Looker40SDKStream extends APIMethods {
@@ -2198,13 +2198,14 @@ export class Looker40SDKStream extends APIMethods {
2198
2198
  return _this263.authStream(callback, 'DELETE', "/lookml_models/".concat(lookml_model_name), null, null, options);
2199
2199
  })();
2200
2200
  }
2201
- lookml_model_explore(callback, lookml_model_name, explore_name, fields, options) {
2201
+ lookml_model_explore(callback, request, options) {
2202
2202
  var _this264 = this;
2203
2203
  return _asyncToGenerator(function* () {
2204
- lookml_model_name = encodeParam(lookml_model_name);
2205
- explore_name = encodeParam(explore_name);
2206
- return _this264.authStream(callback, 'GET', "/lookml_models/".concat(lookml_model_name, "/explores/").concat(explore_name), {
2207
- fields
2204
+ request.lookml_model_name = encodeParam(request.lookml_model_name);
2205
+ request.explore_name = encodeParam(request.explore_name);
2206
+ return _this264.authStream(callback, 'GET', "/lookml_models/".concat(request.lookml_model_name, "/explores/").concat(request.explore_name), {
2207
+ fields: request.fields,
2208
+ add_drills_metadata: request.add_drills_metadata
2208
2209
  }, null, options);
2209
2210
  })();
2210
2211
  }