@looker/extension-sdk 22.20.2-alpha.1650 → 23.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +1 -9
  3. package/lib/connect/connect_extension_host.js +5 -24
  4. package/lib/connect/connect_extension_host.js.map +1 -1
  5. package/lib/connect/extension_host_api.d.ts +3 -14
  6. package/lib/connect/extension_host_api.js +26 -230
  7. package/lib/connect/extension_host_api.js.map +1 -1
  8. package/lib/connect/fetch_proxy.js +0 -13
  9. package/lib/connect/fetch_proxy.js.map +1 -1
  10. package/lib/connect/global_listener.js +3 -17
  11. package/lib/connect/global_listener.js.map +1 -1
  12. package/lib/connect/index.d.ts +0 -2
  13. package/lib/connect/index.js +1 -34
  14. package/lib/connect/index.js.map +1 -1
  15. package/lib/connect/types.d.ts +7 -51
  16. package/lib/connect/types.js +1 -33
  17. package/lib/connect/types.js.map +1 -1
  18. package/lib/esm/connect/connect_extension_host.js +19 -25
  19. package/lib/esm/connect/connect_extension_host.js.map +1 -1
  20. package/lib/esm/connect/extension_host_api.js +71 -256
  21. package/lib/esm/connect/extension_host_api.js.map +1 -1
  22. package/lib/esm/connect/fetch_proxy.js +11 -12
  23. package/lib/esm/connect/fetch_proxy.js.map +1 -1
  24. package/lib/esm/connect/global_listener.js +11 -12
  25. package/lib/esm/connect/global_listener.js.map +1 -1
  26. package/lib/esm/connect/index.js +39 -5
  27. package/lib/esm/connect/index.js.map +1 -1
  28. package/lib/esm/connect/types.js +21 -41
  29. package/lib/esm/connect/types.js.map +1 -1
  30. package/lib/esm/index.js +82 -10
  31. package/lib/esm/index.js.map +1 -1
  32. package/lib/esm/sdk/extension_sdk.js +13 -9
  33. package/lib/esm/sdk/extension_sdk.js.map +1 -1
  34. package/lib/esm/sdk/extension_sdk_31.js +12 -6
  35. package/lib/esm/sdk/extension_sdk_31.js.map +1 -1
  36. package/lib/esm/sdk/extension_sdk_40.js +12 -6
  37. package/lib/esm/sdk/extension_sdk_40.js.map +1 -1
  38. package/lib/esm/sdk/index.js +16 -1
  39. package/lib/esm/sdk/index.js.map +1 -1
  40. package/lib/esm/sdk/sdk_connection.js +8 -9
  41. package/lib/esm/sdk/sdk_connection.js.map +1 -1
  42. package/lib/index.d.ts +0 -3
  43. package/lib/index.js +1 -54
  44. package/lib/index.js.map +1 -1
  45. package/lib/sdk/extension_sdk.js +0 -8
  46. package/lib/sdk/extension_sdk.js.map +1 -1
  47. package/lib/sdk/extension_sdk_31.js +0 -6
  48. package/lib/sdk/extension_sdk_31.js.map +1 -1
  49. package/lib/sdk/extension_sdk_40.js +0 -6
  50. package/lib/sdk/extension_sdk_40.js.map +1 -1
  51. package/lib/sdk/index.js +0 -2
  52. package/lib/sdk/index.js.map +1 -1
  53. package/lib/sdk/sdk_connection.js +0 -10
  54. package/lib/sdk/sdk_connection.js.map +1 -1
  55. package/package.json +4 -4
  56. package/lib/connect/tile/index.d.ts +0 -1
  57. package/lib/connect/tile/index.js +0 -19
  58. package/lib/connect/tile/index.js.map +0 -1
  59. package/lib/connect/tile/tile_sdk.d.ts +0 -24
  60. package/lib/connect/tile/tile_sdk.js +0 -153
  61. package/lib/connect/tile/tile_sdk.js.map +0 -1
  62. package/lib/connect/tile/types.d.ts +0 -86
  63. package/lib/connect/tile/types.js +0 -15
  64. package/lib/connect/tile/types.js.map +0 -1
  65. package/lib/connect/visualization/index.d.ts +0 -2
  66. package/lib/connect/visualization/index.js +0 -32
  67. package/lib/connect/visualization/index.js.map +0 -1
  68. package/lib/connect/visualization/types.d.ts +0 -62
  69. package/lib/connect/visualization/types.js +0 -2
  70. package/lib/connect/visualization/types.js.map +0 -1
  71. package/lib/connect/visualization/visualization_sdk.d.ts +0 -36
  72. package/lib/connect/visualization/visualization_sdk.js +0 -166
  73. package/lib/connect/visualization/visualization_sdk.js.map +0 -1
  74. package/lib/esm/connect/tile/index.js +0 -2
  75. package/lib/esm/connect/tile/index.js.map +0 -1
  76. package/lib/esm/connect/tile/tile_sdk.js +0 -140
  77. package/lib/esm/connect/tile/tile_sdk.js.map +0 -1
  78. package/lib/esm/connect/tile/types.js +0 -8
  79. package/lib/esm/connect/tile/types.js.map +0 -1
  80. package/lib/esm/connect/visualization/index.js +0 -3
  81. package/lib/esm/connect/visualization/index.js.map +0 -1
  82. package/lib/esm/connect/visualization/types.js +0 -2
  83. package/lib/esm/connect/visualization/types.js.map +0 -1
  84. package/lib/esm/connect/visualization/visualization_sdk.js +0 -156
  85. package/lib/esm/connect/visualization/visualization_sdk.js.map +0 -1
  86. package/lib/esm/util/errors.js +0 -2
  87. package/lib/esm/util/errors.js.map +0 -1
  88. package/lib/esm/util/index.js +0 -3
  89. package/lib/esm/util/index.js.map +0 -1
  90. package/lib/esm/util/logger.js +0 -15
  91. package/lib/esm/util/logger.js.map +0 -1
  92. package/lib/util/errors.d.ts +0 -1
  93. package/lib/util/errors.js +0 -9
  94. package/lib/util/errors.js.map +0 -1
  95. package/lib/util/index.d.ts +0 -2
  96. package/lib/util/index.js +0 -32
  97. package/lib/util/index.js.map +0 -1
  98. package/lib/util/logger.d.ts +0 -2
  99. package/lib/util/logger.js +0 -27
  100. package/lib/util/logger.js.map +0 -1
package/lib/esm/index.js CHANGED
@@ -1,11 +1,83 @@
1
- export * from './connect/connect_extension_host';
2
- export * from './connect/global_listener';
3
- export * from './connect/visualization/types';
4
- export * from './connect/tile/types';
5
- export * from './connect/types';
6
- export * from './sdk/extension_sdk';
7
- export * from './sdk/extension_sdk_31';
8
- export * from './sdk/extension_sdk_40';
9
- export * from './sdk/sdk_connection';
10
- export * from './util/logger';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _connect_extension_host = require("./connect/connect_extension_host");
7
+ Object.keys(_connect_extension_host).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _connect_extension_host[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _connect_extension_host[key];
14
+ }
15
+ });
16
+ });
17
+ var _global_listener = require("./connect/global_listener");
18
+ Object.keys(_global_listener).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _global_listener[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _global_listener[key];
25
+ }
26
+ });
27
+ });
28
+ var _types = require("./connect/types");
29
+ Object.keys(_types).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _types[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _types[key];
36
+ }
37
+ });
38
+ });
39
+ var _extension_sdk = require("./sdk/extension_sdk");
40
+ Object.keys(_extension_sdk).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _extension_sdk[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _extension_sdk[key];
47
+ }
48
+ });
49
+ });
50
+ var _extension_sdk_ = require("./sdk/extension_sdk_31");
51
+ Object.keys(_extension_sdk_).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _extension_sdk_[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _extension_sdk_[key];
58
+ }
59
+ });
60
+ });
61
+ var _extension_sdk_2 = require("./sdk/extension_sdk_40");
62
+ Object.keys(_extension_sdk_2).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _extension_sdk_2[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function get() {
68
+ return _extension_sdk_2[key];
69
+ }
70
+ });
71
+ });
72
+ var _sdk_connection = require("./sdk/sdk_connection");
73
+ Object.keys(_sdk_connection).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _sdk_connection[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function get() {
79
+ return _sdk_connection[key];
80
+ }
81
+ });
82
+ });
11
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":"AA0BA,cAAc,kCAAd;AACA,cAAc,2BAAd;AACA,cAAc,+BAAd;AACA,cAAc,sBAAd;AACA,cAAc,iBAAd;AACA,cAAc,qBAAd;AACA,cAAc,wBAAd;AACA,cAAc,wBAAd;AACA,cAAc,sBAAd;AACA,cAAc,eAAd","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_31'\nexport * from './sdk/extension_sdk_40'\nexport * from './sdk/sdk_connection'\nexport * from './util/logger'\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"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/types'\nexport * from './sdk/extension_sdk'\nexport * from './sdk/extension_sdk_31'\nexport * from './sdk/extension_sdk_40'\nexport * from './sdk/sdk_connection'\n"],"mappings":";;;;;AA0BA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,18 +1,22 @@
1
- import { LookerExtensionSDK as _LookerExtensionSDK, Looker31SDK, Looker40SDK } from '@looker/sdk';
2
- import { ApiVersion } from '../connect';
3
- import { SdkConnection } from './sdk_connection';
4
- export class LookerExtensionSDK {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LookerExtensionSDK = void 0;
7
+ var _sdk = require("@looker/sdk");
8
+ var _connect = require("../connect");
9
+ var _sdk_connection = require("./sdk_connection");
10
+ class LookerExtensionSDK {
5
11
  static create31Client(hostConnection) {
6
- return _LookerExtensionSDK.createClient(new SdkConnection(hostConnection, ApiVersion.sdk31), Looker31SDK);
12
+ return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
7
13
  }
8
-
9
14
  static create40Client(hostConnection) {
10
- return _LookerExtensionSDK.createClient(new SdkConnection(hostConnection, ApiVersion.sdk40), Looker40SDK);
15
+ return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk40), _sdk.Looker40SDK);
11
16
  }
12
-
13
17
  static createClient(hostConnection) {
14
18
  return LookerExtensionSDK.create31Client(hostConnection);
15
19
  }
16
-
17
20
  }
21
+ exports.LookerExtensionSDK = LookerExtensionSDK;
18
22
  //# sourceMappingURL=extension_sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/sdk/extension_sdk.ts"],"names":["LookerExtensionSDK","_LookerExtensionSDK","Looker31SDK","Looker40SDK","ApiVersion","SdkConnection","create31Client","hostConnection","createClient","sdk31","create40Client","sdk40"],"mappings":"AA0BA,SACEA,kBAAkB,IAAIC,mBADxB,EAEEC,WAFF,EAGEC,WAHF,QAIO,aAJP;AAMA,SAASC,UAAT,QAA2B,YAA3B;AAEA,SAASC,aAAT,QAA8B,kBAA9B;AAEA,OAAO,MAAML,kBAAN,CAAyB;AAKT,SAAdM,cAAc,CAACC,cAAD,EAAgD;AACnE,WAAON,mBAAmB,CAACO,YAApB,CACL,IAAIH,aAAJ,CAAkBE,cAAlB,EAAkCH,UAAU,CAACK,KAA7C,CADK,EAELP,WAFK,CAAP;AAID;;AAMoB,SAAdQ,cAAc,CAACH,cAAD,EAAgD;AACnE,WAAON,mBAAmB,CAACO,YAApB,CACL,IAAIH,aAAJ,CAAkBE,cAAlB,EAAkCH,UAAU,CAACO,KAA7C,CADK,EAELR,WAFK,CAAP;AAID;;AAKkB,SAAZK,YAAY,CAACD,cAAD,EAAmC;AACpD,WAAOP,kBAAkB,CAACM,cAAnB,CAAkCC,cAAlC,CAAP;AACD;;AA5B6B","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 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 3.1\n * @param hostConnection extension host API\n */\n static create31Client(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n\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.create31Client(hostConnection)\n }\n}\n"],"file":"extension_sdk.js"}
1
+ {"version":3,"file":"extension_sdk.js","names":["LookerExtensionSDK","create31Client","hostConnection","_LookerExtensionSDK","createClient","SdkConnection","ApiVersion","sdk31","Looker31SDK","create40Client","sdk40","Looker40SDK"],"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 Looker31SDK,\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 3.1\n * @param hostConnection extension host API\n */\n static create31Client(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n\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.create31Client(hostConnection)\n }\n}\n"],"mappings":";;;;;;AA0BA;AAMA;AAEA;AAEO,MAAMA,kBAAkB,CAAC;EAK9B,OAAOC,cAAc,CAACC,cAAgC,EAAe;IACnE,OAAOC,uBAAmB,CAACC,YAAY,CACrC,IAAIC,6BAAa,CAACH,cAAc,EAAEI,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;EAMA,OAAOC,cAAc,CAACP,cAAgC,EAAe;IACnE,OAAOC,uBAAmB,CAACC,YAAY,CACrC,IAAIC,6BAAa,CAACH,cAAc,EAAEI,mBAAU,CAACI,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;EAKA,OAAOP,YAAY,CAACF,cAAgC,EAAE;IACpD,OAAOF,kBAAkB,CAACC,cAAc,CAACC,cAAc,CAAC;EAC1D;AACF;AAAC"}
@@ -1,10 +1,16 @@
1
- import { LookerExtensionSDK as _LookerExtensionSDK, Looker31SDK } from '@looker/sdk';
2
- import { ApiVersion } from '../connect';
3
- import { SdkConnection } from './sdk_connection';
4
- export class LookerExtensionSDK31 {
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 {
5
11
  static createClient(hostConnection) {
6
- return _LookerExtensionSDK.createClient(new SdkConnection(hostConnection, ApiVersion.sdk31), Looker31SDK);
12
+ return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
7
13
  }
8
-
9
14
  }
15
+ exports.LookerExtensionSDK31 = LookerExtensionSDK31;
10
16
  //# sourceMappingURL=extension_sdk_31.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/sdk/extension_sdk_31.ts"],"names":["LookerExtensionSDK","_LookerExtensionSDK","Looker31SDK","ApiVersion","SdkConnection","LookerExtensionSDK31","createClient","hostConnection","sdk31"],"mappings":"AA0BA,SACEA,kBAAkB,IAAIC,mBADxB,EAEEC,WAFF,QAGO,aAHP;AAKA,SAASC,UAAT,QAA2B,YAA3B;AAEA,SAASC,aAAT,QAA8B,kBAA9B;AAEA,OAAO,MAAMC,oBAAN,CAA2B;AAKb,SAAZC,YAAY,CAACC,cAAD,EAAgD;AACjE,WAAON,mBAAmB,CAACK,YAApB,CACL,IAAIF,aAAJ,CAAkBG,cAAlB,EAAkCJ,UAAU,CAACK,KAA7C,CADK,EAELN,WAFK,CAAP;AAID;;AAV+B","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"],"file":"extension_sdk_31.js"}
1
+ {"version":3,"file":"extension_sdk_31.js","names":["LookerExtensionSDK31","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk31","Looker31SDK"],"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;AAKA;AAEA;AAEO,MAAMA,oBAAoB,CAAC;EAKhC,OAAOC,YAAY,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAAC"}
@@ -1,10 +1,16 @@
1
- import { LookerExtensionSDK as _LookerExtensionSDK, Looker40SDK } from '@looker/sdk';
2
- import { ApiVersion } from '../connect';
3
- import { SdkConnection } from './sdk_connection';
4
- export class LookerExtensionSDK40 {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
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 {
5
11
  static createClient(hostConnection) {
6
- return _LookerExtensionSDK.createClient(new SdkConnection(hostConnection, ApiVersion.sdk40), Looker40SDK);
12
+ return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk40), _sdk.Looker40SDK);
7
13
  }
8
-
9
14
  }
15
+ exports.LookerExtensionSDK40 = LookerExtensionSDK40;
10
16
  //# sourceMappingURL=extension_sdk_40.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/sdk/extension_sdk_40.ts"],"names":["LookerExtensionSDK","_LookerExtensionSDK","Looker40SDK","ApiVersion","SdkConnection","LookerExtensionSDK40","createClient","hostConnection","sdk40"],"mappings":"AA0BA,SACEA,kBAAkB,IAAIC,mBADxB,EAEEC,WAFF,QAGO,aAHP;AAKA,SAASC,UAAT,QAA2B,YAA3B;AAEA,SAASC,aAAT,QAA8B,kBAA9B;AAEA,OAAO,MAAMC,oBAAN,CAA2B;AAKb,SAAZC,YAAY,CAACC,cAAD,EAAgD;AACjE,WAAON,mBAAmB,CAACK,YAApB,CACL,IAAIF,aAAJ,CAAkBG,cAAlB,EAAkCJ,UAAU,CAACK,KAA7C,CADK,EAELN,WAFK,CAAP;AAID;;AAV+B","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"],"file":"extension_sdk_40.js"}
1
+ {"version":3,"file":"extension_sdk_40.js","names":["LookerExtensionSDK40","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk40","Looker40SDK"],"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;AAKA;AAEA;AAEO,MAAMA,oBAAoB,CAAC;EAKhC,OAAOC,YAAY,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAAC"}
@@ -1,2 +1,17 @@
1
- export * from './extension_sdk';
1
+ "use strict";
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
+ });
2
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AA0BA,cAAc,iBAAd","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"],"file":"index.js"}
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;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,34 +1,33 @@
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); } }
1
+ "use strict";
2
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SdkConnection = void 0;
7
+ 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); } }
3
8
  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); }); }; }
4
-
5
- export class SdkConnection {
9
+ class SdkConnection {
6
10
  constructor(hostConnection, apiVersion) {
7
11
  this.hostConnection = hostConnection;
8
12
  this.apiVersion = apiVersion;
9
13
  }
10
-
11
14
  request(httpMethod, path, body, params, _authenticator, options) {
12
15
  var _this = this;
13
-
14
16
  return _asyncToGenerator(function* () {
15
17
  return _this.hostConnection.invokeCoreSdk(httpMethod, path, params, body, undefined, options, _this.apiVersion);
16
18
  })();
17
19
  }
18
-
19
20
  rawRequest(httpMethod, path, body, params, _authenticator, _options) {
20
21
  var _this2 = this;
21
-
22
22
  return _asyncToGenerator(function* () {
23
23
  return _this2.hostConnection.invokeCoreSdkRaw(httpMethod, path, params, body, _this2.apiVersion);
24
24
  })();
25
25
  }
26
-
27
26
  stream(_callback, _method, _path, _queryParams, _body, _authenticator, _options) {
28
27
  return _asyncToGenerator(function* () {
29
28
  return Promise.reject(new Error('Not implemented'));
30
29
  })();
31
30
  }
32
-
33
31
  }
32
+ exports.SdkConnection = SdkConnection;
34
33
  //# sourceMappingURL=sdk_connection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/sdk/sdk_connection.ts"],"names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","invokeCoreSdk","undefined","rawRequest","_options","invokeCoreSdkRaw","stream","_callback","_method","_path","_queryParams","_body","Promise","reject","Error"],"mappings":";;;;AAqCA,OAAO,MAAMA,aAAN,CAA+C;AACpDC,EAAAA,WAAW,CACDC,cADC,EAEDC,UAFC,EAGT;AAAA,SAFQD,cAER,GAFQA,cAER;AAAA,SADQC,UACR,GADQA,UACR;AAAE;;AAEEC,EAAAA,OAAO,CACXC,UADW,EAEXC,IAFW,EAGXC,IAHW,EAIXC,MAJW,EAKXC,cALW,EAMXC,OANW,EAOG;AAAA;;AAAA;AACd,aAAO,KAAI,CAACR,cAAL,CAAoBS,aAApB,CACLN,UADK,EAELC,IAFK,EAGLE,MAHK,EAILD,IAJK,EAKLK,SALK,EAMLF,OANK,EAOL,KAAI,CAACP,UAPA,CAAP;AADc;AAUf;;AAEKU,EAAAA,UAAU,CACdR,UADc,EAEdC,IAFc,EAGdC,IAHc,EAIdC,MAJc,EAKdC,cALc,EAMdK,QANc,EAOA;AAAA;;AAAA;AACd,aAAO,MAAI,CAACZ,cAAL,CAAoBa,gBAApB,CACLV,UADK,EAELC,IAFK,EAGLE,MAHK,EAILD,IAJK,EAKL,MAAI,CAACJ,UALA,CAAP;AADc;AAQf;;AAEKa,EAAAA,MAAM,CACVC,SADU,EAEVC,OAFU,EAGVC,KAHU,EAIVC,YAJU,EAKVC,KALU,EAMVZ,cANU,EAOVK,QAPU,EAQI;AAAA;AACd,aAAOQ,OAAO,CAACC,MAAR,CAAe,IAAIC,KAAJ,CAAU,iBAAV,CAAf,CAAP;AADc;AAEf;;AApDmD","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"],"file":"sdk_connection.js"}
1
+ {"version":3,"file":"sdk_connection.js","names":["SdkConnection","constructor","hostConnection","apiVersion","request","httpMethod","path","body","params","_authenticator","options","invokeCoreSdk","undefined","rawRequest","_options","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":";;;;;;;;AAqCO,MAAMA,aAAa,CAA4B;EACpDC,WAAW,CACDC,cAAgC,EAChCC,UAAsB,EAC9B;IAAA,KAFQD,cAAgC,GAAhCA,cAAgC;IAAA,KAChCC,UAAsB,GAAtBA,UAAsB;EAC7B;EAEGC,OAAO,CACXC,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAAoB,EACpBC,OAAa,EACC;IAAA;IAAA;MACd,OAAO,KAAI,CAACR,cAAc,CAACS,aAAa,CACtCN,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJK,SAAS,EACTF,OAAO,EACP,KAAI,CAACP,UAAU,CAChB;IAAA;EACH;EAEMU,UAAU,CACdR,UAAkB,EAClBC,IAAY,EACZC,IAAU,EACVC,MAAY,EACZC,cAA8B,EAC9BK,QAAsC,EACxB;IAAA;IAAA;MACd,OAAO,MAAI,CAACZ,cAAc,CAACa,gBAAgB,CACzCV,UAAU,EACVC,IAAI,EACJE,MAAM,EACND,IAAI,EACJ,MAAI,CAACJ,UAAU,CAChB;IAAA;EACH;EAEMa,MAAM,CACVC,SAA6C,EAC7CC,OAAmB,EACnBC,KAAa,EACbC,YAAqB,EACrBC,KAAW,EACXZ,cAA8B,EAC9BK,QAAsC,EACxB;IAAA;MACd,OAAOQ,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAAA;EACrD;AACF;AAAC"}
package/lib/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  export * from './connect/connect_extension_host';
2
2
  export * from './connect/global_listener';
3
- export * from './connect/visualization/types';
4
- export * from './connect/tile/types';
5
3
  export * from './connect/types';
6
4
  export * from './sdk/extension_sdk';
7
5
  export * from './sdk/extension_sdk_31';
8
6
  export * from './sdk/extension_sdk_40';
9
7
  export * from './sdk/sdk_connection';
10
- export * from './util/logger';
package/lib/index.js CHANGED
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _connect_extension_host = require("./connect/connect_extension_host");
8
-
9
7
  Object.keys(_connect_extension_host).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _connect_extension_host[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_connect_extension_host).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _global_listener = require("./connect/global_listener");
21
-
22
18
  Object.keys(_global_listener).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _global_listener[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_global_listener).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
- var _types = require("./connect/visualization/types");
34
-
28
+ var _types = require("./connect/types");
35
29
  Object.keys(_types).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _types[key]) return;
@@ -42,35 +36,7 @@ Object.keys(_types).forEach(function (key) {
42
36
  }
43
37
  });
44
38
  });
45
-
46
- var _types2 = require("./connect/tile/types");
47
-
48
- Object.keys(_types2).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (key in exports && exports[key] === _types2[key]) return;
51
- Object.defineProperty(exports, key, {
52
- enumerable: true,
53
- get: function get() {
54
- return _types2[key];
55
- }
56
- });
57
- });
58
-
59
- var _types3 = require("./connect/types");
60
-
61
- Object.keys(_types3).forEach(function (key) {
62
- if (key === "default" || key === "__esModule") return;
63
- if (key in exports && exports[key] === _types3[key]) return;
64
- Object.defineProperty(exports, key, {
65
- enumerable: true,
66
- get: function get() {
67
- return _types3[key];
68
- }
69
- });
70
- });
71
-
72
39
  var _extension_sdk = require("./sdk/extension_sdk");
73
-
74
40
  Object.keys(_extension_sdk).forEach(function (key) {
75
41
  if (key === "default" || key === "__esModule") return;
76
42
  if (key in exports && exports[key] === _extension_sdk[key]) return;
@@ -81,9 +47,7 @@ Object.keys(_extension_sdk).forEach(function (key) {
81
47
  }
82
48
  });
83
49
  });
84
-
85
50
  var _extension_sdk_ = require("./sdk/extension_sdk_31");
86
-
87
51
  Object.keys(_extension_sdk_).forEach(function (key) {
88
52
  if (key === "default" || key === "__esModule") return;
89
53
  if (key in exports && exports[key] === _extension_sdk_[key]) return;
@@ -94,9 +58,7 @@ Object.keys(_extension_sdk_).forEach(function (key) {
94
58
  }
95
59
  });
96
60
  });
97
-
98
61
  var _extension_sdk_2 = require("./sdk/extension_sdk_40");
99
-
100
62
  Object.keys(_extension_sdk_2).forEach(function (key) {
101
63
  if (key === "default" || key === "__esModule") return;
102
64
  if (key in exports && exports[key] === _extension_sdk_2[key]) return;
@@ -107,9 +69,7 @@ Object.keys(_extension_sdk_2).forEach(function (key) {
107
69
  }
108
70
  });
109
71
  });
110
-
111
72
  var _sdk_connection = require("./sdk/sdk_connection");
112
-
113
73
  Object.keys(_sdk_connection).forEach(function (key) {
114
74
  if (key === "default" || key === "__esModule") return;
115
75
  if (key in exports && exports[key] === _sdk_connection[key]) return;
@@ -120,17 +80,4 @@ Object.keys(_sdk_connection).forEach(function (key) {
120
80
  }
121
81
  });
122
82
  });
123
-
124
- var _logger = require("./util/logger");
125
-
126
- Object.keys(_logger).forEach(function (key) {
127
- if (key === "default" || key === "__esModule") return;
128
- if (key in exports && exports[key] === _logger[key]) return;
129
- Object.defineProperty(exports, key, {
130
- enumerable: true,
131
- get: function get() {
132
- return _logger[key];
133
- }
134
- });
135
- });
136
83
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AA0BA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","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_31'\nexport * from './sdk/extension_sdk_40'\nexport * from './sdk/sdk_connection'\nexport * from './util/logger'\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"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/types'\nexport * from './sdk/extension_sdk'\nexport * from './sdk/extension_sdk_31'\nexport * from './sdk/extension_sdk_40'\nexport * from './sdk/sdk_connection'\n"],"mappings":";;;;;AA0BA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -4,27 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LookerExtensionSDK = void 0;
7
-
8
7
  var _sdk = require("@looker/sdk");
9
-
10
8
  var _connect = require("../connect");
11
-
12
9
  var _sdk_connection = require("./sdk_connection");
13
-
14
10
  class LookerExtensionSDK {
15
11
  static create31Client(hostConnection) {
16
12
  return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
17
13
  }
18
-
19
14
  static create40Client(hostConnection) {
20
15
  return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk40), _sdk.Looker40SDK);
21
16
  }
22
-
23
17
  static createClient(hostConnection) {
24
18
  return LookerExtensionSDK.create31Client(hostConnection);
25
19
  }
26
-
27
20
  }
28
-
29
21
  exports.LookerExtensionSDK = LookerExtensionSDK;
30
22
  //# sourceMappingURL=extension_sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/sdk/extension_sdk.ts"],"names":["LookerExtensionSDK","create31Client","hostConnection","_LookerExtensionSDK","createClient","SdkConnection","ApiVersion","sdk31","Looker31SDK","create40Client","sdk40","Looker40SDK"],"mappings":";;;;;;;AA0BA;;AAMA;;AAEA;;AAEO,MAAMA,kBAAN,CAAyB;AAKT,SAAdC,cAAc,CAACC,cAAD,EAAgD;AACnE,WAAOC,wBAAoBC,YAApB,CACL,IAAIC,6BAAJ,CAAkBH,cAAlB,EAAkCI,oBAAWC,KAA7C,CADK,EAELC,gBAFK,CAAP;AAID;;AAMoB,SAAdC,cAAc,CAACP,cAAD,EAAgD;AACnE,WAAOC,wBAAoBC,YAApB,CACL,IAAIC,6BAAJ,CAAkBH,cAAlB,EAAkCI,oBAAWI,KAA7C,CADK,EAELC,gBAFK,CAAP;AAID;;AAKkB,SAAZP,YAAY,CAACF,cAAD,EAAmC;AACpD,WAAOF,kBAAkB,CAACC,cAAnB,CAAkCC,cAAlC,CAAP;AACD;;AA5B6B","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 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 3.1\n * @param hostConnection extension host API\n */\n static create31Client(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n\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.create31Client(hostConnection)\n }\n}\n"],"file":"extension_sdk.js"}
1
+ {"version":3,"file":"extension_sdk.js","names":["LookerExtensionSDK","create31Client","hostConnection","_LookerExtensionSDK","createClient","SdkConnection","ApiVersion","sdk31","Looker31SDK","create40Client","sdk40","Looker40SDK"],"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 Looker31SDK,\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 3.1\n * @param hostConnection extension host API\n */\n static create31Client(hostConnection: ExtensionHostApi): Looker31SDK {\n return _LookerExtensionSDK.createClient(\n new SdkConnection(hostConnection, ApiVersion.sdk31),\n Looker31SDK\n )\n }\n\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.create31Client(hostConnection)\n }\n}\n"],"mappings":";;;;;;AA0BA;AAMA;AAEA;AAEO,MAAMA,kBAAkB,CAAC;EAK9B,OAAOC,cAAc,CAACC,cAAgC,EAAe;IACnE,OAAOC,uBAAmB,CAACC,YAAY,CACrC,IAAIC,6BAAa,CAACH,cAAc,EAAEI,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;EAMA,OAAOC,cAAc,CAACP,cAAgC,EAAe;IACnE,OAAOC,uBAAmB,CAACC,YAAY,CACrC,IAAIC,6BAAa,CAACH,cAAc,EAAEI,mBAAU,CAACI,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;EAKA,OAAOP,YAAY,CAACF,cAAgC,EAAE;IACpD,OAAOF,kBAAkB,CAACC,cAAc,CAACC,cAAc,CAAC;EAC1D;AACF;AAAC"}
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LookerExtensionSDK31 = void 0;
7
-
8
7
  var _sdk = require("@looker/sdk");
9
-
10
8
  var _connect = require("../connect");
11
-
12
9
  var _sdk_connection = require("./sdk_connection");
13
-
14
10
  class LookerExtensionSDK31 {
15
11
  static createClient(hostConnection) {
16
12
  return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk31), _sdk.Looker31SDK);
17
13
  }
18
-
19
14
  }
20
-
21
15
  exports.LookerExtensionSDK31 = LookerExtensionSDK31;
22
16
  //# sourceMappingURL=extension_sdk_31.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/sdk/extension_sdk_31.ts"],"names":["LookerExtensionSDK31","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk31","Looker31SDK"],"mappings":";;;;;;;AA0BA;;AAKA;;AAEA;;AAEO,MAAMA,oBAAN,CAA2B;AAKb,SAAZC,YAAY,CAACC,cAAD,EAAgD;AACjE,WAAOC,wBAAoBF,YAApB,CACL,IAAIG,6BAAJ,CAAkBF,cAAlB,EAAkCG,oBAAWC,KAA7C,CADK,EAELC,gBAFK,CAAP;AAID;;AAV+B","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"],"file":"extension_sdk_31.js"}
1
+ {"version":3,"file":"extension_sdk_31.js","names":["LookerExtensionSDK31","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk31","Looker31SDK"],"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;AAKA;AAEA;AAEO,MAAMA,oBAAoB,CAAC;EAKhC,OAAOC,YAAY,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAAC"}
@@ -4,19 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LookerExtensionSDK40 = void 0;
7
-
8
7
  var _sdk = require("@looker/sdk");
9
-
10
8
  var _connect = require("../connect");
11
-
12
9
  var _sdk_connection = require("./sdk_connection");
13
-
14
10
  class LookerExtensionSDK40 {
15
11
  static createClient(hostConnection) {
16
12
  return _sdk.LookerExtensionSDK.createClient(new _sdk_connection.SdkConnection(hostConnection, _connect.ApiVersion.sdk40), _sdk.Looker40SDK);
17
13
  }
18
-
19
14
  }
20
-
21
15
  exports.LookerExtensionSDK40 = LookerExtensionSDK40;
22
16
  //# sourceMappingURL=extension_sdk_40.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/sdk/extension_sdk_40.ts"],"names":["LookerExtensionSDK40","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk40","Looker40SDK"],"mappings":";;;;;;;AA0BA;;AAKA;;AAEA;;AAEO,MAAMA,oBAAN,CAA2B;AAKb,SAAZC,YAAY,CAACC,cAAD,EAAgD;AACjE,WAAOC,wBAAoBF,YAApB,CACL,IAAIG,6BAAJ,CAAkBF,cAAlB,EAAkCG,oBAAWC,KAA7C,CADK,EAELC,gBAFK,CAAP;AAID;;AAV+B","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"],"file":"extension_sdk_40.js"}
1
+ {"version":3,"file":"extension_sdk_40.js","names":["LookerExtensionSDK40","createClient","hostConnection","_LookerExtensionSDK","SdkConnection","ApiVersion","sdk40","Looker40SDK"],"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;AAKA;AAEA;AAEO,MAAMA,oBAAoB,CAAC;EAKhC,OAAOC,YAAY,CAACC,cAAgC,EAAe;IACjE,OAAOC,uBAAmB,CAACF,YAAY,CACrC,IAAIG,6BAAa,CAACF,cAAc,EAAEG,mBAAU,CAACC,KAAK,CAAC,EACnDC,gBAAW,CACZ;EACH;AACF;AAAC"}
package/lib/sdk/index.js CHANGED
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _extension_sdk = require("./extension_sdk");
8
-
9
7
  Object.keys(_extension_sdk).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _extension_sdk[key]) return;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/sdk/index.ts"],"names":[],"mappings":";;;;;;AA0BA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","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"],"file":"index.js"}
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;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}