@looker/extension-sdk 23.14.1 → 23.18.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.
- package/CHANGELOG.md +29 -0
- package/README.md +0 -1
- package/lib/connect/connect_extension_host.js.map +1 -1
- package/lib/connect/extension_host_api.js.map +1 -1
- package/lib/connect/fetch_proxy.js.map +1 -1
- package/lib/connect/global_listener.js.map +1 -1
- package/lib/connect/tile/tile_sdk.js.map +1 -1
- package/lib/connect/types.d.ts +0 -1
- package/lib/connect/types.js +0 -1
- package/lib/connect/types.js.map +1 -1
- package/lib/connect/visualization/types.d.ts +28 -1
- package/lib/connect/visualization/types.js.map +1 -1
- package/lib/connect/visualization/visualization_sdk.d.ts +3 -2
- package/lib/connect/visualization/visualization_sdk.js +9 -3
- package/lib/connect/visualization/visualization_sdk.js.map +1 -1
- package/lib/esm/connect/connect_extension_host.js +8 -15
- package/lib/esm/connect/connect_extension_host.js.map +1 -1
- package/lib/esm/connect/extension_host_api.js +49 -58
- package/lib/esm/connect/extension_host_api.js.map +1 -1
- package/lib/esm/connect/fetch_proxy.js +3 -11
- package/lib/esm/connect/fetch_proxy.js.map +1 -1
- package/lib/esm/connect/global_listener.js +5 -13
- package/lib/esm/connect/global_listener.js.map +1 -1
- package/lib/esm/connect/index.js +5 -63
- package/lib/esm/connect/index.js.map +1 -1
- package/lib/esm/connect/tile/index.js +1 -16
- package/lib/esm/connect/tile/index.js.map +1 -1
- package/lib/esm/connect/tile/tile_sdk.js +23 -30
- package/lib/esm/connect/tile/tile_sdk.js.map +1 -1
- package/lib/esm/connect/tile/types.js +1 -8
- package/lib/esm/connect/tile/types.js.map +1 -1
- package/lib/esm/connect/types.js +6 -19
- package/lib/esm/connect/types.js.map +1 -1
- package/lib/esm/connect/visualization/index.js +2 -27
- package/lib/esm/connect/visualization/index.js.map +1 -1
- package/lib/esm/connect/visualization/types.js.map +1 -1
- package/lib/esm/connect/visualization/visualization_sdk.js +14 -15
- package/lib/esm/connect/visualization/visualization_sdk.js.map +1 -1
- package/lib/esm/index.js +9 -115
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/sdk/extension_sdk.js +6 -16
- package/lib/esm/sdk/extension_sdk.js.map +1 -1
- package/lib/esm/sdk/extension_sdk_40.js +5 -12
- package/lib/esm/sdk/extension_sdk_40.js.map +1 -1
- package/lib/esm/sdk/index.js +1 -16
- package/lib/esm/sdk/index.js.map +1 -1
- package/lib/esm/sdk/sdk_connection.js +1 -8
- package/lib/esm/sdk/sdk_connection.js.map +1 -1
- package/lib/esm/util/errors.js +1 -8
- package/lib/esm/util/errors.js.map +1 -1
- package/lib/esm/util/index.js +2 -27
- package/lib/esm/util/index.js.map +1 -1
- package/lib/esm/util/logger.js +2 -10
- package/lib/esm/util/logger.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -12
- package/lib/index.js.map +1 -1
- package/lib/sdk/extension_sdk.d.ts +2 -3
- package/lib/sdk/extension_sdk.js +1 -4
- package/lib/sdk/extension_sdk.js.map +1 -1
- package/lib/sdk/extension_sdk_40.js.map +1 -1
- package/lib/sdk/sdk_connection.js.map +1 -1
- package/lib/util/errors.js.map +1 -1
- package/package.json +3 -3
- package/lib/esm/sdk/extension_sdk_31.js +0 -16
- package/lib/esm/sdk/extension_sdk_31.js.map +0 -1
- package/lib/sdk/extension_sdk_31.d.ts +0 -5
- package/lib/sdk/extension_sdk_31.js +0 -16
- package/lib/sdk/extension_sdk_31.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk.js","names":["
|
|
1
|
+
{"version":3,"file":"extension_sdk.js","names":["LookerExtensionSDK","_LookerExtensionSDK","Looker40SDK","ApiVersion","SdkConnection","create40Client","hostConnection","createClient","sdk40"],"sources":["../../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker40SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK {\n /**\n * Create an SDK client that uses SDK 4.0\n * @param hostConnection extension host API\n */\n static create40Client(hostConnection: ExtensionHostApi): Looker40SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk40),\n Looker40SDK\n )\n }\n\n /**\n * Creates a [[LookerSDK]] object.\n */\n static createClient(hostConnection: ExtensionHostApi) {\n return LookerExtensionSDK.create40Client(hostConnection)\n }\n}\n"],"mappings":"AA0BA,SACEA,kBAAkB,IAAIC,mBAAmB,EACzCC,WAAW,QACN,aAAa;AAEpB,SAASC,UAAU,QAAQ,YAAY;AAEvC,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,OAAO,MAAMJ,kBAAkB,CAAC;EAK9B,OAAOK,cAAcA,CAACC,cAAgC,EAAe;IACnE,OAAOL,mBAAmB,CAACM,YAAY,CACrC,IAAIH,aAAa,CAACE,cAAc,EAAEH,UAAU,CAACK,KAAK,CAAC,EACnDN,WACF,CAAC;EACH;EAKA,OAAOK,YAAYA,CAACD,cAAgC,EAAE;IACpD,OAAON,kBAAkB,CAACK,cAAc,CAACC,cAAc,CAAC;EAC1D;AACF"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.LookerExtensionSDK40 = void 0;
|
|
7
|
-
var _sdk = require("@looker/sdk");
|
|
8
|
-
var _connect = require("../connect");
|
|
9
|
-
var _sdk_connection = require("./sdk_connection");
|
|
10
|
-
class LookerExtensionSDK40 {
|
|
1
|
+
import { LookerExtensionSDK as _LookerExtensionSDK, Looker40SDK } from '@looker/sdk';
|
|
2
|
+
import { ApiVersion } from '../connect';
|
|
3
|
+
import { SdkConnection } from './sdk_connection';
|
|
4
|
+
export class LookerExtensionSDK40 {
|
|
11
5
|
static createClient(hostConnection) {
|
|
12
|
-
return
|
|
6
|
+
return _LookerExtensionSDK.createClient(new SdkConnection(hostConnection, ApiVersion.sdk40), Looker40SDK);
|
|
13
7
|
}
|
|
14
8
|
}
|
|
15
|
-
exports.LookerExtensionSDK40 = LookerExtensionSDK40;
|
|
16
9
|
//# sourceMappingURL=extension_sdk_40.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk_40.js","names":["
|
|
1
|
+
{"version":3,"file":"extension_sdk_40.js","names":["LookerExtensionSDK","_LookerExtensionSDK","Looker40SDK","ApiVersion","SdkConnection","LookerExtensionSDK40","createClient","hostConnection","sdk40"],"sources":["../../../src/sdk/extension_sdk_40.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker40SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK40 {\n /**\n * Create an SDK client that uses SDK 4.0\n * @param hostConnection extension host API\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk40),\n Looker40SDK\n )\n }\n}\n"],"mappings":"AA0BA,SACEA,kBAAkB,IAAIC,mBAAmB,EACzCC,WAAW,QACN,aAAa;AAEpB,SAASC,UAAU,QAAQ,YAAY;AAEvC,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,OAAO,MAAMC,oBAAoB,CAAC;EAKhC,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,OAAON,mBAAmB,CAACK,YAAY,CACrC,IAAIF,aAAa,CAACG,cAAc,EAAEJ,UAAU,CAACK,KAAK,CAAC,EACnDN,WACF,CAAC;EACH;AACF"}
|
package/lib/esm/sdk/index.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _extension_sdk = require("./extension_sdk");
|
|
7
|
-
Object.keys(_extension_sdk).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _extension_sdk[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _extension_sdk[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from './extension_sdk';
|
|
17
2
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/sdk/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/sdk/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './extension_sdk'\n"],"mappings":"AA0BA,cAAc,iBAAiB"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SdkConnection = void 0;
|
|
7
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); } }
|
|
8
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); }); }; }
|
|
9
|
-
class SdkConnection {
|
|
3
|
+
export class SdkConnection {
|
|
10
4
|
constructor(hostConnection, apiVersion) {
|
|
11
5
|
this.hostConnection = hostConnection;
|
|
12
6
|
this.apiVersion = apiVersion;
|
|
@@ -29,5 +23,4 @@ class SdkConnection {
|
|
|
29
23
|
})();
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
|
-
exports.SdkConnection = SdkConnection;
|
|
33
26
|
//# sourceMappingURL=sdk_connection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error"
|
|
1
|
+
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error"],"sources":["../../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { Readable } from 'readable-stream'\nimport type {\n HttpMethod,\n Values,\n Authenticator,\n ITransportSettings,\n IHostConnection,\n} from '@looker/sdk-rtl'\n\nimport type { ExtensionHostApi, ApiVersion } from '../connect'\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n )\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n )\n }\n\n async stream<T>(\n _callback: (readable: Readable) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'))\n }\n}\n"],"mappings":";;AAqCA,OAAO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAA;EACH;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAA;EACH;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAA;EACrD;AACF"}
|
package/lib/esm/util/errors.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = void 0;
|
|
7
|
-
var NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error('Mounting extensions in dashboards is not supported');
|
|
8
|
-
exports.NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR;
|
|
1
|
+
export var NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error('Mounting extensions in dashboards is not supported');
|
|
9
2
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error"
|
|
1
|
+
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error"],"sources":["../../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n)\n"],"mappings":"AAyBA,OAAO,IAAMA,uCAAuC,GAAG,IAAIC,KAAK,CAC9D,oDACF,CAAC"}
|
package/lib/esm/util/index.js
CHANGED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _logger = require("./logger");
|
|
7
|
-
Object.keys(_logger).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _logger[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _logger[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _errors = require("./errors");
|
|
18
|
-
Object.keys(_errors).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _errors[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function get() {
|
|
24
|
-
return _errors[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
1
|
+
export * from './logger';
|
|
2
|
+
export * from './errors';
|
|
28
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/util/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './logger'\nexport * from './errors'\n"],"mappings":"AA0BA,cAAc,UAAU;AACxB,cAAc,UAAU"}
|
package/lib/esm/util/logger.js
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.logWarn = exports.logError = void 0;
|
|
7
|
-
var logError = function logError(message) {
|
|
1
|
+
export var logError = function logError(message) {
|
|
8
2
|
for (var _len = arguments.length, optionalParams = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
9
3
|
optionalParams[_key - 1] = arguments[_key];
|
|
10
4
|
}
|
|
11
5
|
console.error(message, optionalParams);
|
|
12
6
|
};
|
|
13
|
-
|
|
14
|
-
var logWarn = function logWarn(message) {
|
|
7
|
+
export var logWarn = function logWarn(message) {
|
|
15
8
|
for (var _len2 = arguments.length, optionalParams = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
16
9
|
optionalParams[_key2 - 1] = arguments[_key2];
|
|
17
10
|
}
|
|
18
11
|
console.warn(message, optionalParams);
|
|
19
12
|
};
|
|
20
|
-
exports.logWarn = logWarn;
|
|
21
13
|
//# sourceMappingURL=logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["logError","message","_len","arguments","length","optionalParams","Array","_key","console","error","
|
|
1
|
+
{"version":3,"file":"logger.js","names":["logError","message","_len","arguments","length","optionalParams","Array","_key","console","error","logWarn","_len2","_key2","warn"],"sources":["../../../src/util/logger.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const logError = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.error(message, optionalParams)\n}\n\nexport const logWarn = (message?: any, ...optionalParams: any[]) => {\n // eslint-disable-next-line no-console\n console.warn(message, optionalParams)\n}\n"],"mappings":"AAyBA,OAAO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,OAAa,EAA+B;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAdF,cAAc,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEvDC,OAAO,CAACC,KAAK,CAACR,OAAO,EAAEI,cAAc,CAAC;AACxC,CAAC;AAED,OAAO,IAAMK,OAAO,GAAG,SAAVA,OAAOA,CAAIT,OAAa,EAA+B;EAAA,SAAAU,KAAA,GAAAR,SAAA,CAAAC,MAAA,EAA1BC,cAAc,OAAAC,KAAA,CAAAK,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;IAAdP,cAAc,CAAAO,KAAA,QAAAT,SAAA,CAAAS,KAAA;EAAA;EAEtDJ,OAAO,CAACK,IAAI,CAACZ,OAAO,EAAEI,cAAc,CAAC;AACvC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './connect/visualization/types';
|
|
|
4
4
|
export * from './connect/tile/types';
|
|
5
5
|
export * from './connect/types';
|
|
6
6
|
export * from './sdk/extension_sdk';
|
|
7
|
-
export * from './sdk/extension_sdk_31';
|
|
8
7
|
export * from './sdk/extension_sdk_40';
|
|
9
8
|
export * from './sdk/sdk_connection';
|
|
10
9
|
export * from './util/logger';
|
package/lib/index.js
CHANGED
|
@@ -69,7 +69,7 @@ Object.keys(_extension_sdk).forEach(function (key) {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
var _extension_sdk_ = require("./sdk/
|
|
72
|
+
var _extension_sdk_ = require("./sdk/extension_sdk_40");
|
|
73
73
|
Object.keys(_extension_sdk_).forEach(function (key) {
|
|
74
74
|
if (key === "default" || key === "__esModule") return;
|
|
75
75
|
if (key in exports && exports[key] === _extension_sdk_[key]) return;
|
|
@@ -80,17 +80,6 @@ Object.keys(_extension_sdk_).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
var _extension_sdk_2 = require("./sdk/extension_sdk_40");
|
|
84
|
-
Object.keys(_extension_sdk_2).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _extension_sdk_2[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function get() {
|
|
90
|
-
return _extension_sdk_2[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
83
|
var _sdk_connection = require("./sdk/sdk_connection");
|
|
95
84
|
Object.keys(_sdk_connection).forEach(function (key) {
|
|
96
85
|
if (key === "default" || key === "__esModule") return;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_connect_extension_host","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_global_listener","_types","_types2","_types3","_extension_sdk","_extension_sdk_","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_connect_extension_host","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_global_listener","_types","_types2","_types3","_extension_sdk","_extension_sdk_","_sdk_connection","_logger"],"sources":["../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './connect/connect_extension_host'\nexport * from './connect/global_listener'\nexport * from './connect/visualization/types'\nexport * from './connect/tile/types'\nexport * from './connect/types'\nexport * from './sdk/extension_sdk'\nexport * from './sdk/extension_sdk_40'\nexport * from './sdk/sdk_connection'\nexport * from './util/logger'\n"],"mappings":"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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Looker40SDK } from '@looker/sdk';
|
|
2
2
|
import type { ExtensionHostApi } from '../connect';
|
|
3
3
|
export declare class LookerExtensionSDK {
|
|
4
|
-
static create31Client(hostConnection: ExtensionHostApi): Looker31SDK;
|
|
5
4
|
static create40Client(hostConnection: ExtensionHostApi): Looker40SDK;
|
|
6
|
-
static createClient(hostConnection: ExtensionHostApi):
|
|
5
|
+
static createClient(hostConnection: ExtensionHostApi): Looker40SDK;
|
|
7
6
|
}
|
package/lib/sdk/extension_sdk.js
CHANGED
|
@@ -8,14 +8,11 @@ var _sdk = require("@looker/sdk");
|
|
|
8
8
|
var _connect = require("../connect");
|
|
9
9
|
var _sdk_connection = require("./sdk_connection");
|
|
10
10
|
class LookerExtensionSDK {
|
|
11
|
-
static create31Client(hostConnection) {
|
|
12
|
-
return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
|
|
13
|
-
}
|
|
14
11
|
static create40Client(hostConnection) {
|
|
15
12
|
return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk40), _sdk.Looker40SDK);
|
|
16
13
|
}
|
|
17
14
|
static createClient(hostConnection) {
|
|
18
|
-
return LookerExtensionSDK.
|
|
15
|
+
return LookerExtensionSDK.create40Client(hostConnection);
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
exports.LookerExtensionSDK = LookerExtensionSDK;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK","
|
|
1
|
+
{"version":3,"file":"extension_sdk.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK","create40Client","hostConnection","_LookerExtensionSDK","createClient","SdkConnection","ApiVersion","sdk40","Looker40SDK","exports"],"sources":["../../src/sdk/extension_sdk.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker40SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK {\n /**\n * Create an SDK client that uses SDK 4.0\n * @param hostConnection extension host API\n */\n static create40Client(hostConnection: ExtensionHostApi): Looker40SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk40),\n Looker40SDK\n )\n }\n\n /**\n * Creates a [[LookerSDK]] object.\n */\n static createClient(hostConnection: ExtensionHostApi) {\n return LookerExtensionSDK.create40Client(hostConnection)\n }\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,kBAAkB,CAAC;EAK9B,OAAOC,cAAcA,CAACC,cAAgC,EAAe;IACnE,OAAOC,uBAAmB,CAACC,YAAY,CACrC,IAAIC,6BAAa,CAACH,cAAc,EAAEI,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBACF,CAAC;EACH;EAKA,OAAOJ,YAAYA,CAACF,cAAgC,EAAE;IACpD,OAAOF,kBAAkB,CAACC,cAAc,CAACC,cAAc,CAAC;EAC1D;AACF;AAACO,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk_40.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK40","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk40","Looker40SDK","exports"],"sources":["../../src/sdk/extension_sdk_40.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker40SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK40 {\n /**\n * Create an SDK client that uses SDK 4.0\n * @param hostConnection extension host API\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk40),\n Looker40SDK\n )\n }\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,oBAAoB,CAAC;EAKhC,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,
|
|
1
|
+
{"version":3,"file":"extension_sdk_40.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK40","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk40","Looker40SDK","exports"],"sources":["../../src/sdk/extension_sdk_40.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker40SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK40 {\n /**\n * Create an SDK client that uses SDK 4.0\n * @param hostConnection extension host API\n */\n static createClient(hostConnection: ExtensionHostApi): Looker40SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk40),\n Looker40SDK\n )\n }\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,oBAAoB,CAAC;EAKhC,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBACF,CAAC;EACH;AACF;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error","exports"],"sources":["../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { Readable } from 'readable-stream'\nimport type {\n HttpMethod,\n Values,\n Authenticator,\n ITransportSettings,\n IHostConnection,\n} from '@looker/sdk-rtl'\n\nimport type { ExtensionHostApi, ApiVersion } from '../connect'\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n )\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n )\n }\n\n async stream<T>(\n _callback: (readable: Readable) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'))\n }\n}\n"],"mappings":";;;;;;;;AAqCO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,
|
|
1
|
+
{"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","_this","_asyncToGenerator","invokeCoreSdk","undefined","rawRequest","_options","_this2","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error","exports"],"sources":["../../src/sdk/sdk_connection.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { Readable } from 'readable-stream'\nimport type {\n HttpMethod,\n Values,\n Authenticator,\n ITransportSettings,\n IHostConnection,\n} from '@looker/sdk-rtl'\n\nimport type { ExtensionHostApi, ApiVersion } from '../connect'\n\nexport class SdkConnection implements IHostConnection {\n constructor(\n private hostConnection: ExtensionHostApi,\n private apiVersion: ApiVersion\n ) {}\n\n async request(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: any,\n options?: any\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdk(\n httpMethod,\n path,\n params,\n body,\n undefined,\n options,\n this.apiVersion\n )\n }\n\n async rawRequest(\n httpMethod: string,\n path: string,\n body?: any,\n params?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return this.hostConnection.invokeCoreSdkRaw(\n httpMethod,\n path,\n params,\n body,\n this.apiVersion\n )\n }\n\n async stream<T>(\n _callback: (readable: Readable) => Promise<T>,\n _method: HttpMethod,\n _path: string,\n _queryParams?: Values,\n _body?: any,\n _authenticator?: Authenticator,\n _options?: Partial<ITransportSettings>\n ): Promise<any> {\n return Promise.reject(new Error('Not implemented'))\n }\n}\n"],"mappings":";;;;;;;;AAqCO,MAAMA,aAAa,CAA4B;EACpDC,WAAWA,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAOA,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA,IAAAC,KAAA;IAAA,OAAAC,iBAAA;MACd,OAAOD,KAAI,CAACT,cAAc,CAACW,aAAa,CACtCR,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJO,SAAS,EACTJ,OAAO,EACPC,KAAI,CAACR,UACP,CAAC;IAAA;EACH;EAEMY,UAAUA,CACdV,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,IAAAC,MAAA;IAAA,OAAAL,iBAAA;MACd,OAAOK,MAAI,CAACf,cAAc,CAACgB,gBAAgB,CACzCb,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJU,MAAI,CAACd,UACP,CAAC;IAAA;EACH;EAEMgB,MAAMA,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXf,cAA8B,EAC9BO,QAAsC,EACxB;IAAA,OAAAJ,iBAAA;MACd,OAAOa,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAA;EACrD;AACF;AAACC,OAAA,CAAA5B,aAAA,GAAAA,aAAA"}
|
package/lib/util/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error","exports"],"sources":["../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n)\n"],"mappings":";;;;;;AAyBO,IAAMA,uCAAuC,GAAG,IAAIC,KAAK,CAC9D,
|
|
1
|
+
{"version":3,"file":"errors.js","names":["NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR","Error","exports"],"sources":["../../src/util/errors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const NOT_DASHBOARD_MOUNT_NOT_SUPPORTED_ERROR = new Error(\n 'Mounting extensions in dashboards is not supported'\n)\n"],"mappings":";;;;;;AAyBO,IAAMA,uCAAuC,GAAG,IAAIC,KAAK,CAC9D,oDACF,CAAC;AAAAC,OAAA,CAAAF,uCAAA,GAAAA,uCAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@looker/extension-sdk",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.18.0",
|
|
4
4
|
"description": "Looker Extension SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@looker/chatty": "2.3.9",
|
|
43
|
-
"@looker/sdk": "^23.
|
|
43
|
+
"@looker/sdk": "^23.18.0",
|
|
44
44
|
"@looker/sdk-rtl": "^21.6.1",
|
|
45
45
|
"deepmerge": "^4.2.2",
|
|
46
46
|
"readable-stream": "^3.4.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"Looker",
|
|
53
53
|
"extension-sdk"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "008b8386e4019bb33465e513c022a929282b30d1"
|
|
56
56
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LookerExtensionSDK31 = void 0;
|
|
7
|
-
var _sdk = require("@looker/sdk");
|
|
8
|
-
var _connect = require("../connect");
|
|
9
|
-
var _sdk_connection = require("./sdk_connection");
|
|
10
|
-
class LookerExtensionSDK31 {
|
|
11
|
-
static createClient(hostConnection) {
|
|
12
|
-
return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.LookerExtensionSDK31 = LookerExtensionSDK31;
|
|
16
|
-
//# sourceMappingURL=extension_sdk_31.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk_31.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK31","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk31","Looker31SDK","exports"],"sources":["../../../src/sdk/extension_sdk_31.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker31SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK31 {\n /**\n * Create an SDK client that uses SDK 3.1\n * @param hostConnection extension host API\n */\n static createClient(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,oBAAoB,CAAC;EAKhC,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LookerExtensionSDK31 = void 0;
|
|
7
|
-
var _sdk = require("@looker/sdk");
|
|
8
|
-
var _connect = require("../connect");
|
|
9
|
-
var _sdk_connection = require("./sdk_connection");
|
|
10
|
-
class LookerExtensionSDK31 {
|
|
11
|
-
static createClient(hostConnection) {
|
|
12
|
-
return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.LookerExtensionSDK31 = LookerExtensionSDK31;
|
|
16
|
-
//# sourceMappingURL=extension_sdk_31.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension_sdk_31.js","names":["_sdk","require","_connect","_sdk_connection","LookerExtensionSDK31","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk31","Looker31SDK","exports"],"sources":["../../src/sdk/extension_sdk_31.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport {\n LookerExtensionSDK as _LookerExtensionSDK,\n Looker31SDK,\n} from '@looker/sdk'\nimport type { ExtensionHostApi } from '../connect'\nimport { ApiVersion } from '../connect'\n\nimport { SdkConnection } from './sdk_connection'\n\nexport class LookerExtensionSDK31 {\n /**\n * Create an SDK client that uses SDK 3.1\n * @param hostConnection extension host API\n */\n static createClient(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,IAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAEO,MAAMG,oBAAoB,CAAC;EAKhC,OAAOC,YAAYA,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA"}
|