@looker/run-it 0.9.52 → 0.9.54
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/lib/RunIt.js.map +1 -1
- package/lib/RunItProvider.js.map +1 -1
- package/lib/components/Collapser/CollapserCard.js.map +1 -1
- package/lib/components/ConfigForm/ConfigForm.js.map +1 -1
- package/lib/components/ConfigForm/utils.js.map +1 -1
- package/lib/components/CopyLinkWrapper/CopyLinkWrapper.js.map +1 -1
- package/lib/components/DataGrid/DataGrid.js.map +1 -1
- package/lib/components/DataGrid/gridUtils.js.map +1 -1
- package/lib/components/DocSdkCalls/DocMultiCall.js.map +1 -1
- package/lib/components/DocSdkCalls/DocSdkCalls.js.map +1 -1
- package/lib/components/Loading/Loading.js.map +1 -1
- package/lib/components/LoginForm/LoginForm.js.map +1 -1
- package/lib/components/MethodBadge/MethodBadge.js.map +1 -1
- package/lib/components/PerfTracker/PerfChart.js.map +1 -1
- package/lib/components/PerfTracker/PerfTable.js.map +1 -1
- package/lib/components/PerfTracker/PerfTracker.js.map +1 -1
- package/lib/components/PerfTracker/perfTableUtils.js.map +1 -1
- package/lib/components/PerfTracker/perfUtils.js.map +1 -1
- package/lib/components/RequestForm/FormItem.js.map +1 -1
- package/lib/components/RequestForm/RequestForm.js.map +1 -1
- package/lib/components/RequestForm/formUtils.js.map +1 -1
- package/lib/components/ResponseExplorer/ResponseExplorer.js.map +1 -1
- package/lib/components/ShowResponse/ShowResponse.js.map +1 -1
- package/lib/components/ShowResponse/responseUtils.js.map +1 -1
- package/lib/components/common/common.js.map +1 -1
- package/lib/esm/RunIt.js +48 -57
- package/lib/esm/RunIt.js.map +1 -1
- package/lib/esm/RunItProvider.js +4 -14
- package/lib/esm/RunItProvider.js.map +1 -1
- package/lib/esm/components/Collapser/CollapserCard.js +14 -22
- package/lib/esm/components/Collapser/CollapserCard.js.map +1 -1
- package/lib/esm/components/Collapser/index.js +1 -12
- package/lib/esm/components/Collapser/index.js.map +1 -1
- package/lib/esm/components/ConfigForm/ConfigForm.js +49 -58
- package/lib/esm/components/ConfigForm/ConfigForm.js.map +1 -1
- package/lib/esm/components/ConfigForm/index.js +2 -27
- package/lib/esm/components/ConfigForm/index.js.map +1 -1
- package/lib/esm/components/ConfigForm/utils.js +9 -21
- package/lib/esm/components/ConfigForm/utils.js.map +1 -1
- package/lib/esm/components/CopyLinkWrapper/CopyLinkWrapper.js +13 -22
- package/lib/esm/components/CopyLinkWrapper/CopyLinkWrapper.js.map +1 -1
- package/lib/esm/components/CopyLinkWrapper/index.js +1 -12
- package/lib/esm/components/CopyLinkWrapper/index.js.map +1 -1
- package/lib/esm/components/DataGrid/DataGrid.js +16 -25
- package/lib/esm/components/DataGrid/DataGrid.js.map +1 -1
- package/lib/esm/components/DataGrid/gridUtils.js +13 -26
- package/lib/esm/components/DataGrid/gridUtils.js.map +1 -1
- package/lib/esm/components/DataGrid/index.js +2 -25
- package/lib/esm/components/DataGrid/index.js.map +1 -1
- package/lib/esm/components/DocSdkCalls/DocMultiCall.js +7 -15
- package/lib/esm/components/DocSdkCalls/DocMultiCall.js.map +1 -1
- package/lib/esm/components/DocSdkCalls/DocSdkCalls.js +17 -26
- package/lib/esm/components/DocSdkCalls/DocSdkCalls.js.map +1 -1
- package/lib/esm/components/DocSdkCalls/callUtils.js +3 -10
- package/lib/esm/components/DocSdkCalls/callUtils.js.map +1 -1
- package/lib/esm/components/DocSdkCalls/index.js +2 -19
- package/lib/esm/components/DocSdkCalls/index.js.map +1 -1
- package/lib/esm/components/Loading/Loading.js +6 -14
- package/lib/esm/components/Loading/Loading.js.map +1 -1
- package/lib/esm/components/Loading/index.js +1 -12
- package/lib/esm/components/Loading/index.js.map +1 -1
- package/lib/esm/components/LoginForm/LoginForm.js +11 -21
- package/lib/esm/components/LoginForm/LoginForm.js.map +1 -1
- package/lib/esm/components/LoginForm/index.js +1 -18
- package/lib/esm/components/LoginForm/index.js.map +1 -1
- package/lib/esm/components/MethodBadge/MethodBadge.js +8 -19
- package/lib/esm/components/MethodBadge/MethodBadge.js.map +1 -1
- package/lib/esm/components/MethodBadge/index.js +1 -12
- package/lib/esm/components/MethodBadge/index.js.map +1 -1
- package/lib/esm/components/PerfTracker/PerfChart.js +11 -19
- package/lib/esm/components/PerfTracker/PerfChart.js.map +1 -1
- package/lib/esm/components/PerfTracker/PerfTable.js +13 -22
- package/lib/esm/components/PerfTracker/PerfTable.js.map +1 -1
- package/lib/esm/components/PerfTracker/PerfTracker.js +25 -34
- package/lib/esm/components/PerfTracker/PerfTracker.js.map +1 -1
- package/lib/esm/components/PerfTracker/index.js +2 -19
- package/lib/esm/components/PerfTracker/index.js.map +1 -1
- package/lib/esm/components/PerfTracker/perfTableUtils.js +17 -27
- package/lib/esm/components/PerfTracker/perfTableUtils.js.map +1 -1
- package/lib/esm/components/PerfTracker/perfUtils.js +3 -12
- package/lib/esm/components/PerfTracker/perfUtils.js.map +1 -1
- package/lib/esm/components/RequestForm/FormItem.js +6 -14
- package/lib/esm/components/RequestForm/FormItem.js.map +1 -1
- package/lib/esm/components/RequestForm/RequestForm.js +24 -32
- package/lib/esm/components/RequestForm/RequestForm.js.map +1 -1
- package/lib/esm/components/RequestForm/formUtils.js +26 -41
- package/lib/esm/components/RequestForm/formUtils.js.map +1 -1
- package/lib/esm/components/RequestForm/index.js +2 -19
- package/lib/esm/components/RequestForm/index.js.map +1 -1
- package/lib/esm/components/ResponseExplorer/ResponseExplorer.js +30 -41
- package/lib/esm/components/ResponseExplorer/ResponseExplorer.js.map +1 -1
- package/lib/esm/components/ResponseExplorer/index.js +1 -16
- package/lib/esm/components/ResponseExplorer/index.js.map +1 -1
- package/lib/esm/components/ShowResponse/ShowResponse.js +6 -14
- package/lib/esm/components/ShowResponse/ShowResponse.js.map +1 -1
- package/lib/esm/components/ShowResponse/index.js +1 -12
- package/lib/esm/components/ShowResponse/index.js.map +1 -1
- package/lib/esm/components/ShowResponse/responseUtils.js +28 -41
- package/lib/esm/components/ShowResponse/responseUtils.js.map +1 -1
- package/lib/esm/components/common/common.js +4 -13
- package/lib/esm/components/common/common.js.map +1 -1
- package/lib/esm/components/common/index.js +1 -18
- package/lib/esm/components/common/index.js.map +1 -1
- package/lib/esm/components/index.js +13 -148
- package/lib/esm/components/index.js.map +1 -1
- package/lib/esm/index.js +4 -49
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/test-data/index.js +2 -67
- package/lib/esm/test-data/index.js.map +1 -1
- package/lib/esm/test-data/responses.js +9 -24
- package/lib/esm/test-data/responses.js.map +1 -1
- package/lib/esm/test-data/specs.js +3 -10
- package/lib/esm/test-data/specs.js.map +1 -1
- package/lib/esm/utils/RunItSDK.js +12 -20
- package/lib/esm/utils/RunItSDK.js.map +1 -1
- package/lib/esm/utils/index.js +2 -27
- package/lib/esm/utils/index.js.map +1 -1
- package/lib/esm/utils/requestUtils.js +26 -41
- package/lib/esm/utils/requestUtils.js.map +1 -1
- package/lib/test-data/responses.js.map +1 -1
- package/lib/test-data/specs.js +1 -1
- package/lib/test-data/specs.js.map +1 -1
- package/lib/utils/RunItSDK.js.map +1 -1
- package/lib/utils/requestUtils.js.map +1 -1
- package/package.json +4 -4
@@ -1,149 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
});
|
16
|
-
});
|
17
|
-
var _Collapser = require("./Collapser");
|
18
|
-
Object.keys(_Collapser).forEach(function (key) {
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
20
|
-
if (key in exports && exports[key] === _Collapser[key]) return;
|
21
|
-
Object.defineProperty(exports, key, {
|
22
|
-
enumerable: true,
|
23
|
-
get: function get() {
|
24
|
-
return _Collapser[key];
|
25
|
-
}
|
26
|
-
});
|
27
|
-
});
|
28
|
-
var _ConfigForm = require("./ConfigForm");
|
29
|
-
Object.keys(_ConfigForm).forEach(function (key) {
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
31
|
-
if (key in exports && exports[key] === _ConfigForm[key]) return;
|
32
|
-
Object.defineProperty(exports, key, {
|
33
|
-
enumerable: true,
|
34
|
-
get: function get() {
|
35
|
-
return _ConfigForm[key];
|
36
|
-
}
|
37
|
-
});
|
38
|
-
});
|
39
|
-
var _CopyLinkWrapper = require("./CopyLinkWrapper");
|
40
|
-
Object.keys(_CopyLinkWrapper).forEach(function (key) {
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
42
|
-
if (key in exports && exports[key] === _CopyLinkWrapper[key]) return;
|
43
|
-
Object.defineProperty(exports, key, {
|
44
|
-
enumerable: true,
|
45
|
-
get: function get() {
|
46
|
-
return _CopyLinkWrapper[key];
|
47
|
-
}
|
48
|
-
});
|
49
|
-
});
|
50
|
-
var _DocSdkCalls = require("./DocSdkCalls");
|
51
|
-
Object.keys(_DocSdkCalls).forEach(function (key) {
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
53
|
-
if (key in exports && exports[key] === _DocSdkCalls[key]) return;
|
54
|
-
Object.defineProperty(exports, key, {
|
55
|
-
enumerable: true,
|
56
|
-
get: function get() {
|
57
|
-
return _DocSdkCalls[key];
|
58
|
-
}
|
59
|
-
});
|
60
|
-
});
|
61
|
-
var _DataGrid = require("./DataGrid");
|
62
|
-
Object.keys(_DataGrid).forEach(function (key) {
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
64
|
-
if (key in exports && exports[key] === _DataGrid[key]) return;
|
65
|
-
Object.defineProperty(exports, key, {
|
66
|
-
enumerable: true,
|
67
|
-
get: function get() {
|
68
|
-
return _DataGrid[key];
|
69
|
-
}
|
70
|
-
});
|
71
|
-
});
|
72
|
-
var _LoginForm = require("./LoginForm");
|
73
|
-
Object.keys(_LoginForm).forEach(function (key) {
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
75
|
-
if (key in exports && exports[key] === _LoginForm[key]) return;
|
76
|
-
Object.defineProperty(exports, key, {
|
77
|
-
enumerable: true,
|
78
|
-
get: function get() {
|
79
|
-
return _LoginForm[key];
|
80
|
-
}
|
81
|
-
});
|
82
|
-
});
|
83
|
-
var _Loading = require("./Loading");
|
84
|
-
Object.keys(_Loading).forEach(function (key) {
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
86
|
-
if (key in exports && exports[key] === _Loading[key]) return;
|
87
|
-
Object.defineProperty(exports, key, {
|
88
|
-
enumerable: true,
|
89
|
-
get: function get() {
|
90
|
-
return _Loading[key];
|
91
|
-
}
|
92
|
-
});
|
93
|
-
});
|
94
|
-
var _MethodBadge = require("./MethodBadge");
|
95
|
-
Object.keys(_MethodBadge).forEach(function (key) {
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
97
|
-
if (key in exports && exports[key] === _MethodBadge[key]) return;
|
98
|
-
Object.defineProperty(exports, key, {
|
99
|
-
enumerable: true,
|
100
|
-
get: function get() {
|
101
|
-
return _MethodBadge[key];
|
102
|
-
}
|
103
|
-
});
|
104
|
-
});
|
105
|
-
var _PerfTracker = require("./PerfTracker");
|
106
|
-
Object.keys(_PerfTracker).forEach(function (key) {
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
108
|
-
if (key in exports && exports[key] === _PerfTracker[key]) return;
|
109
|
-
Object.defineProperty(exports, key, {
|
110
|
-
enumerable: true,
|
111
|
-
get: function get() {
|
112
|
-
return _PerfTracker[key];
|
113
|
-
}
|
114
|
-
});
|
115
|
-
});
|
116
|
-
var _RequestForm = require("./RequestForm");
|
117
|
-
Object.keys(_RequestForm).forEach(function (key) {
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
119
|
-
if (key in exports && exports[key] === _RequestForm[key]) return;
|
120
|
-
Object.defineProperty(exports, key, {
|
121
|
-
enumerable: true,
|
122
|
-
get: function get() {
|
123
|
-
return _RequestForm[key];
|
124
|
-
}
|
125
|
-
});
|
126
|
-
});
|
127
|
-
var _ResponseExplorer = require("./ResponseExplorer");
|
128
|
-
Object.keys(_ResponseExplorer).forEach(function (key) {
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
130
|
-
if (key in exports && exports[key] === _ResponseExplorer[key]) return;
|
131
|
-
Object.defineProperty(exports, key, {
|
132
|
-
enumerable: true,
|
133
|
-
get: function get() {
|
134
|
-
return _ResponseExplorer[key];
|
135
|
-
}
|
136
|
-
});
|
137
|
-
});
|
138
|
-
var _ShowResponse = require("./ShowResponse");
|
139
|
-
Object.keys(_ShowResponse).forEach(function (key) {
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
141
|
-
if (key in exports && exports[key] === _ShowResponse[key]) return;
|
142
|
-
Object.defineProperty(exports, key, {
|
143
|
-
enumerable: true,
|
144
|
-
get: function get() {
|
145
|
-
return _ShowResponse[key];
|
146
|
-
}
|
147
|
-
});
|
148
|
-
});
|
1
|
+
export * from './common';
|
2
|
+
export * from './Collapser';
|
3
|
+
export * from './ConfigForm';
|
4
|
+
export * from './CopyLinkWrapper';
|
5
|
+
export * from './DocSdkCalls';
|
6
|
+
export * from './DataGrid';
|
7
|
+
export * from './LoginForm';
|
8
|
+
export * from './Loading';
|
9
|
+
export * from './MethodBadge';
|
10
|
+
export * from './PerfTracker';
|
11
|
+
export * from './RequestForm';
|
12
|
+
export * from './ResponseExplorer';
|
13
|
+
export * from './ShowResponse';
|
149
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/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 './common'\nexport * from './Collapser'\nexport * from './ConfigForm'\nexport * from './CopyLinkWrapper'\nexport * from './DocSdkCalls'\nexport * from './DataGrid'\nexport * from './LoginForm'\nexport * from './Loading'\nexport * from './MethodBadge'\nexport * from './PerfTracker'\nexport * from './RequestForm'\nexport * from './ResponseExplorer'\nexport * from './ShowResponse'\n"],"mappings":"AA0BA,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,oBAAoB;AAClC,cAAc,gBAAgB"}
|
package/lib/esm/index.js
CHANGED
@@ -1,50 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
});
|
6
|
-
var _RunIt = require("./RunIt");
|
7
|
-
Object.keys(_RunIt).forEach(function (key) {
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
9
|
-
if (key in exports && exports[key] === _RunIt[key]) return;
|
10
|
-
Object.defineProperty(exports, key, {
|
11
|
-
enumerable: true,
|
12
|
-
get: function get() {
|
13
|
-
return _RunIt[key];
|
14
|
-
}
|
15
|
-
});
|
16
|
-
});
|
17
|
-
var _RunItProvider = require("./RunItProvider");
|
18
|
-
Object.keys(_RunItProvider).forEach(function (key) {
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
20
|
-
if (key in exports && exports[key] === _RunItProvider[key]) return;
|
21
|
-
Object.defineProperty(exports, key, {
|
22
|
-
enumerable: true,
|
23
|
-
get: function get() {
|
24
|
-
return _RunItProvider[key];
|
25
|
-
}
|
26
|
-
});
|
27
|
-
});
|
28
|
-
var _utils = require("./utils");
|
29
|
-
Object.keys(_utils).forEach(function (key) {
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
31
|
-
if (key in exports && exports[key] === _utils[key]) return;
|
32
|
-
Object.defineProperty(exports, key, {
|
33
|
-
enumerable: true,
|
34
|
-
get: function get() {
|
35
|
-
return _utils[key];
|
36
|
-
}
|
37
|
-
});
|
38
|
-
});
|
39
|
-
var _components = require("./components");
|
40
|
-
Object.keys(_components).forEach(function (key) {
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
42
|
-
if (key in exports && exports[key] === _components[key]) return;
|
43
|
-
Object.defineProperty(exports, key, {
|
44
|
-
enumerable: true,
|
45
|
-
get: function get() {
|
46
|
-
return _components[key];
|
47
|
-
}
|
48
|
-
});
|
49
|
-
});
|
1
|
+
export * from './RunIt';
|
2
|
+
export * from './RunItProvider';
|
3
|
+
export * from './utils';
|
4
|
+
export * from './components';
|
50
5
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
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 './RunIt'\nexport * from './RunItProvider'\nexport * from './utils'\nexport * from './components'\n"],"mappings":"AA0BA,cAAc,SAAS;AACvB,cAAc,iBAAiB;AAC/B,cAAc,SAAS;AACvB,cAAc,cAAc"}
|
@@ -1,68 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "api", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _specs.api;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "testBogusJsonResponse", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _responses.testBogusJsonResponse;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "testErrorResponse", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _responses.testErrorResponse;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
Object.defineProperty(exports, "testHtmlResponse", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function get() {
|
27
|
-
return _responses.testHtmlResponse;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
Object.defineProperty(exports, "testImageResponse", {
|
31
|
-
enumerable: true,
|
32
|
-
get: function get() {
|
33
|
-
return _responses.testImageResponse;
|
34
|
-
}
|
35
|
-
});
|
36
|
-
Object.defineProperty(exports, "testJsonResponse", {
|
37
|
-
enumerable: true,
|
38
|
-
get: function get() {
|
39
|
-
return _responses.testJsonResponse;
|
40
|
-
}
|
41
|
-
});
|
42
|
-
Object.defineProperty(exports, "testOneRowComplexJson", {
|
43
|
-
enumerable: true,
|
44
|
-
get: function get() {
|
45
|
-
return _responses.testOneRowComplexJson;
|
46
|
-
}
|
47
|
-
});
|
48
|
-
Object.defineProperty(exports, "testSqlResponse", {
|
49
|
-
enumerable: true,
|
50
|
-
get: function get() {
|
51
|
-
return _responses.testSqlResponse;
|
52
|
-
}
|
53
|
-
});
|
54
|
-
Object.defineProperty(exports, "testTextResponse", {
|
55
|
-
enumerable: true,
|
56
|
-
get: function get() {
|
57
|
-
return _responses.testTextResponse;
|
58
|
-
}
|
59
|
-
});
|
60
|
-
Object.defineProperty(exports, "testUnknownResponse", {
|
61
|
-
enumerable: true,
|
62
|
-
get: function get() {
|
63
|
-
return _responses.testUnknownResponse;
|
64
|
-
}
|
65
|
-
});
|
66
|
-
var _responses = require("./responses");
|
67
|
-
var _specs = require("./specs");
|
1
|
+
export { testImageResponse, testJsonResponse, testSqlResponse, testTextResponse, testHtmlResponse, testUnknownResponse, testErrorResponse, testBogusJsonResponse, testOneRowComplexJson } from './responses';
|
2
|
+
export { api } from './specs';
|
68
3
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
1
|
+
{"version":3,"file":"index.js","names":["testImageResponse","testJsonResponse","testSqlResponse","testTextResponse","testHtmlResponse","testUnknownResponse","testErrorResponse","testBogusJsonResponse","testOneRowComplexJson","api"],"sources":["../../../src/test-data/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 */\nexport {\n testImageResponse,\n testJsonResponse,\n testSqlResponse,\n testTextResponse,\n testHtmlResponse,\n testUnknownResponse,\n testErrorResponse,\n testBogusJsonResponse,\n testOneRowComplexJson,\n} from './responses'\nexport { api } from './specs'\n"],"mappings":"AAyBA,SACEA,iBAAiB,EACjBC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,mBAAmB,EACnBC,iBAAiB,EACjBC,qBAAqB,EACrBC,qBAAqB,QAChB,aAAa;AACpB,SAASC,GAAG,QAAQ,SAAS"}
|
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.testUnknownResponse = exports.testTextResponse = exports.testSqlResponse = exports.testOneRowComplexJson = exports.testJsonResponse = exports.testImageResponse = exports.testHtmlResponse = exports.testErrorResponse = exports.testBogusJsonResponse = void 0;
|
7
|
-
var testJsonResponse = {
|
1
|
+
export var testJsonResponse = {
|
8
2
|
method: 'GET',
|
9
3
|
url: 'https://some/json/data',
|
10
4
|
headers: {
|
@@ -18,8 +12,7 @@ var testJsonResponse = {
|
|
18
12
|
requestStarted: 1000,
|
19
13
|
responseCompleted: 2000
|
20
14
|
};
|
21
|
-
|
22
|
-
var testOneRowComplexJson = {
|
15
|
+
export var testOneRowComplexJson = {
|
23
16
|
method: 'GET',
|
24
17
|
url: 'https://some/json/data',
|
25
18
|
headers: {
|
@@ -33,8 +26,7 @@ var testOneRowComplexJson = {
|
|
33
26
|
requestStarted: 1000,
|
34
27
|
responseCompleted: 2000
|
35
28
|
};
|
36
|
-
|
37
|
-
var testTextResponse = {
|
29
|
+
export var testTextResponse = {
|
38
30
|
method: 'GET',
|
39
31
|
url: 'https://some/text/data',
|
40
32
|
headers: {
|
@@ -48,8 +40,7 @@ var testTextResponse = {
|
|
48
40
|
requestStarted: 1000,
|
49
41
|
responseCompleted: 2000
|
50
42
|
};
|
51
|
-
|
52
|
-
var testHtmlResponse = {
|
43
|
+
export var testHtmlResponse = {
|
53
44
|
method: 'GET',
|
54
45
|
url: "https://some/html",
|
55
46
|
headers: {
|
@@ -63,8 +54,7 @@ var testHtmlResponse = {
|
|
63
54
|
requestStarted: 1000,
|
64
55
|
responseCompleted: 2000
|
65
56
|
};
|
66
|
-
|
67
|
-
var testSqlResponse = {
|
57
|
+
export var testSqlResponse = {
|
68
58
|
method: 'GET',
|
69
59
|
url: "https://some/sql",
|
70
60
|
headers: {
|
@@ -78,8 +68,7 @@ var testSqlResponse = {
|
|
78
68
|
requestStarted: 1000,
|
79
69
|
responseCompleted: 2000
|
80
70
|
};
|
81
|
-
|
82
|
-
var testImageResponse = function testImageResponse() {
|
71
|
+
export var testImageResponse = function testImageResponse() {
|
83
72
|
var contentType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png';
|
84
73
|
return {
|
85
74
|
method: 'GET',
|
@@ -96,8 +85,7 @@ var testImageResponse = function testImageResponse() {
|
|
96
85
|
responseCompleted: 2000
|
97
86
|
};
|
98
87
|
};
|
99
|
-
|
100
|
-
var testUnknownResponse = {
|
88
|
+
export var testUnknownResponse = {
|
101
89
|
method: 'GET',
|
102
90
|
url: 'http://bogus',
|
103
91
|
headers: {},
|
@@ -109,8 +97,7 @@ var testUnknownResponse = {
|
|
109
97
|
requestStarted: 1000,
|
110
98
|
responseCompleted: 2000
|
111
99
|
};
|
112
|
-
|
113
|
-
var testErrorResponse = {
|
100
|
+
export var testErrorResponse = {
|
114
101
|
method: 'GET',
|
115
102
|
url: 'http://error',
|
116
103
|
headers: {},
|
@@ -122,8 +109,7 @@ var testErrorResponse = {
|
|
122
109
|
requestStarted: 1000,
|
123
110
|
responseCompleted: 2000
|
124
111
|
};
|
125
|
-
|
126
|
-
var testBogusJsonResponse = {
|
112
|
+
export var testBogusJsonResponse = {
|
127
113
|
method: 'GET',
|
128
114
|
url: 'https://some/json/data',
|
129
115
|
headers: {},
|
@@ -135,5 +121,4 @@ var testBogusJsonResponse = {
|
|
135
121
|
requestStarted: 1000,
|
136
122
|
responseCompleted: 2000
|
137
123
|
};
|
138
|
-
exports.testBogusJsonResponse = testBogusJsonResponse;
|
139
124
|
//# sourceMappingURL=responses.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.js","names":["testJsonResponse","method","url","headers","contentType","ok","statusCode","statusMessage","body","Buffer","from","requestStarted","responseCompleted","
|
1
|
+
{"version":3,"file":"responses.js","names":["testJsonResponse","method","url","headers","contentType","ok","statusCode","statusMessage","body","Buffer","from","requestStarted","responseCompleted","testOneRowComplexJson","testTextResponse","testHtmlResponse","testSqlResponse","testImageResponse","arguments","length","undefined","concat","testUnknownResponse","testErrorResponse","testBogusJsonResponse"],"sources":["../../../src/test-data/responses.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 { IRawResponse } from '@looker/sdk-rtl'\n\nexport const testJsonResponse: IRawResponse = {\n method: 'GET',\n url: 'https://some/json/data',\n headers: { 'content-type': 'application/json' },\n contentType: 'application/json',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from('[{\"key1\": \"value1\" }]'),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testOneRowComplexJson: IRawResponse = {\n method: 'GET',\n url: 'https://some/json/data',\n headers: { 'content-type': 'application/json' },\n contentType: 'application/json',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from(`{\n \"id\": 520,\n \"view\": \"orders\",\n \"fields\": [\n \"orders.id\",\n \"users.age\",\n \"users.city\"\n ],\n \"pivots\": [],\n \"fill_fields\": [],\n \"filters\": null,\n \"filter_expression\": \"\",\n \"sorts\": [],\n \"limit\": \"\",\n \"column_limit\": \"\",\n \"total\": null,\n \"row_total\": \"\",\n \"subtotals\": [],\n \"vis_config\": null,\n \"filter_config\": null,\n \"visible_ui_sections\": \"\",\n \"slug\": \"64zJjJw\",\n \"client_id\": \"zfn3SwIaaHbJTbsXSJ0JO7\",\n \"share_url\": \"https://localhost:9999/x/zfn3SwIaaHbJTbsXSJ0JO7\",\n \"expanded_share_url\": \"https://localhost:9999/explore/thelook/orders?fields=orders.id,users.age,users.city&origin=share-expanded\",\n \"url\": \"/explore/thelook/orders?fields=orders.id,users.age,users.city\",\n \"has_table_calculations\": false,\n \"model\": \"thelook\",\n \"dynamic_fields\": \"\",\n \"query_timezone\": \"\",\n \"quick_calcs\": null,\n \"analysis_config\": null,\n \"can\": {\n \"run\": true,\n \"see_results\": true,\n \"explore\": true,\n \"create\": true,\n \"show\": true,\n \"cost_estimate\": true,\n \"index\": true,\n \"see_lookml\": true,\n \"see_aggregate_table_lookml\": true,\n \"see_derived_table_lookml\": true,\n \"see_sql\": true,\n \"save\": true,\n \"generate_drill_links\": true,\n \"download\": true,\n \"download_unlimited\": true,\n \"use_custom_fields\": true,\n \"schedule\": true\n }\n}`),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testTextResponse: IRawResponse = {\n method: 'GET',\n url: 'https://some/text/data',\n headers: { 'content-type': 'text/plain;charset=utf-8' },\n contentType: 'text/plain;charset=utf-8',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from('some text data'),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testHtmlResponse: IRawResponse = {\n method: 'GET',\n url: `https://some/html`,\n headers: { 'content-type': 'text/html;charset=utf-8' },\n contentType: 'text/html;charset=utf-8',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from(\n '<table>\\n' +\n '<tr><th>Orders Created Date</th><th>Orders Count</th></tr>\\n' +\n '<tr><td>2019-12-22</td><td>39</td></tr>\\n' +\n '</table>'\n ),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testSqlResponse: IRawResponse = {\n method: 'GET',\n url: `https://some/sql`,\n headers: { 'content-type': 'application/sql' },\n contentType: 'application/sql',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from(`SELECT\n COUNT(DISTINCT products.id ) AS \\`products.count\\`\nFROM demo_db.inventory_items AS inventory_items\nLEFT JOIN demo_db.products AS products ON inventory_items.product_id = products.id\nLIMIT 500`),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testImageResponse = (contentType = 'image/png'): IRawResponse => ({\n method: 'GET',\n url: `http://${contentType}`,\n headers: { 'content-type': contentType },\n contentType,\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from('some image data'),\n requestStarted: 1000,\n responseCompleted: 2000,\n})\n\nexport const testUnknownResponse: IRawResponse = {\n method: 'GET',\n url: 'http://bogus',\n headers: {},\n contentType: 'bogus',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from('some data'),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testErrorResponse: IRawResponse = {\n method: 'GET',\n url: 'http://error',\n headers: {},\n body: Buffer.from(\n '{\"message\": \"Not found\", \"documentation_url\": \"http://docs.looker.com\"}'\n ),\n contentType: 'text',\n ok: false,\n statusCode: 404,\n statusMessage: 'some status message',\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n\nexport const testBogusJsonResponse: IRawResponse = {\n method: 'GET',\n url: 'https://some/json/data',\n headers: {},\n contentType: 'application/json',\n ok: true,\n statusCode: 200,\n statusMessage: 'OK',\n body: Buffer.from('<html><body>I AM A LYING JSON RESPONSE</body></html>'),\n requestStarted: 1000,\n responseCompleted: 2000,\n}\n"],"mappings":"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"}
|
@@ -1,11 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.api = void 0;
|
7
|
-
var _sdkCodegen = require("@looker/sdk-codegen");
|
8
|
-
var spec = require('../../../../spec/Looker.3.1.oas.json');
|
9
|
-
var api = _sdkCodegen.ApiModel.fromJson(spec);
|
10
|
-
exports.api = api;
|
1
|
+
import { ApiModel } from '@looker/sdk-codegen';
|
2
|
+
var spec = require('../../../../spec/Looker.4.0.oas.json');
|
3
|
+
export var api = ApiModel.fromJson(spec);
|
11
4
|
//# sourceMappingURL=specs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"specs.js","names":["
|
1
|
+
{"version":3,"file":"specs.js","names":["ApiModel","spec","require","api","fromJson"],"sources":["../../../src/test-data/specs.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 */\nimport { ApiModel } from '@looker/sdk-codegen'\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst spec = require('../../../../spec/Looker.4.0.oas.json')\n\nexport const api = ApiModel.fromJson(spec)\n"],"mappings":"AAyBA,SAASA,QAAQ,QAAQ,qBAAqB;AAG9C,IAAMC,IAAI,GAAGC,OAAO,CAAC,sCAAsC,CAAC;AAE5D,OAAO,IAAMC,GAAG,GAAGH,QAAQ,CAACI,QAAQ,CAACH,IAAI,CAAC"}
|
@@ -1,34 +1,26 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.initRunItSdk = exports.StoreConstants = void 0;
|
7
|
-
var _sdkRtl = require("@looker/sdk-rtl");
|
8
|
-
var _sdk = require("@looker/sdk");
|
9
|
-
var _extensionUtils = require("@looker/extension-utils");
|
10
|
-
var _components = require("../components");
|
11
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
12
2
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
13
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
14
4
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
15
5
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
16
|
-
|
17
|
-
|
6
|
+
import { BrowserSession, BrowserTransport, DefaultSettings } from '@looker/sdk-rtl';
|
7
|
+
import { functionalSdk40 } from '@looker/sdk';
|
8
|
+
import { OAuthConfigProvider } from '@looker/extension-utils';
|
9
|
+
import { RunItConfigKey } from '../components';
|
10
|
+
export var initRunItSdk = () => {
|
11
|
+
var settings = _objectSpread(_objectSpread({}, DefaultSettings()), {}, {
|
18
12
|
base_url: 'https://self-signed.looker.com:19999',
|
19
13
|
agentTag: 'RunIt 0.8'
|
20
14
|
});
|
21
|
-
var options = new
|
22
|
-
var transport = new
|
23
|
-
var session = new
|
24
|
-
var sdk =
|
25
|
-
|
15
|
+
var options = new OAuthConfigProvider(settings, 'looker.api-explorer', RunItConfigKey);
|
16
|
+
var transport = new BrowserTransport(options);
|
17
|
+
var session = new BrowserSession(options, transport);
|
18
|
+
var sdk = functionalSdk40(session);
|
19
|
+
BrowserTransport.trackPerformance = true;
|
26
20
|
return sdk;
|
27
21
|
};
|
28
|
-
|
29
|
-
var StoreConstants = function (StoreConstants) {
|
22
|
+
export var StoreConstants = function (StoreConstants) {
|
30
23
|
StoreConstants["LOCALSTORAGE_SETTINGS_KEY"] = "settings";
|
31
24
|
return StoreConstants;
|
32
25
|
}({});
|
33
|
-
exports.StoreConstants = StoreConstants;
|
34
26
|
//# sourceMappingURL=RunItSDK.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RunItSDK.js","names":["
|
1
|
+
{"version":3,"file":"RunItSDK.js","names":["BrowserSession","BrowserTransport","DefaultSettings","functionalSdk40","OAuthConfigProvider","RunItConfigKey","initRunItSdk","settings","_objectSpread","base_url","agentTag","options","transport","session","sdk","trackPerformance","StoreConstants"],"sources":["../../../src/utils/RunItSDK.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 { IApiSettings } from '@looker/sdk-rtl'\nimport {\n BrowserSession,\n BrowserTransport,\n DefaultSettings,\n} from '@looker/sdk-rtl'\nimport { functionalSdk40 } from '@looker/sdk'\nimport { OAuthConfigProvider } from '@looker/extension-utils'\n\nimport { RunItConfigKey } from '../components'\n\nexport const initRunItSdk = () => {\n const settings = {\n ...DefaultSettings(),\n base_url: 'https://self-signed.looker.com:19999',\n agentTag: 'RunIt 0.8',\n } as IApiSettings\n\n const options = new OAuthConfigProvider(\n settings,\n 'looker.api-explorer',\n RunItConfigKey\n )\n const transport = new BrowserTransport(options)\n const session = new BrowserSession(options, transport)\n const sdk = functionalSdk40(session)\n BrowserTransport.trackPerformance = true\n return sdk\n}\n\nexport enum StoreConstants {\n LOCALSTORAGE_SETTINGS_KEY = 'settings',\n}\n"],"mappings":";;;;;AA2BA,SACEA,cAAc,EACdC,gBAAgB,EAChBC,eAAe,QACV,iBAAiB;AACxB,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,mBAAmB,QAAQ,yBAAyB;AAE7D,SAASC,cAAc,QAAQ,eAAe;AAE9C,OAAO,IAAMC,YAAY,GAAGA,CAAA,KAAM;EAChC,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,KACTN,eAAe,CAAC,CAAC;IACpBO,QAAQ,EAAE,sCAAsC;IAChDC,QAAQ,EAAE;EAAW,EACN;EAEjB,IAAMC,OAAO,GAAG,IAAIP,mBAAmB,CACrCG,QAAQ,EACR,qBAAqB,EACrBF,cACF,CAAC;EACD,IAAMO,SAAS,GAAG,IAAIX,gBAAgB,CAACU,OAAO,CAAC;EAC/C,IAAME,OAAO,GAAG,IAAIb,cAAc,CAACW,OAAO,EAAEC,SAAS,CAAC;EACtD,IAAME,GAAG,GAAGX,eAAe,CAACU,OAAO,CAAC;EACpCZ,gBAAgB,CAACc,gBAAgB,GAAG,IAAI;EACxC,OAAOD,GAAG;AACZ,CAAC;AAED,WAAYE,cAAc,aAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA"}
|
package/lib/esm/utils/index.js
CHANGED
@@ -1,28 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
var _RunItSDK = require("./RunItSDK");
|
7
|
-
Object.keys(_RunItSDK).forEach(function (key) {
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
9
|
-
if (key in exports && exports[key] === _RunItSDK[key]) return;
|
10
|
-
Object.defineProperty(exports, key, {
|
11
|
-
enumerable: true,
|
12
|
-
get: function get() {
|
13
|
-
return _RunItSDK[key];
|
14
|
-
}
|
15
|
-
});
|
16
|
-
});
|
17
|
-
var _requestUtils = require("./requestUtils");
|
18
|
-
Object.keys(_requestUtils).forEach(function (key) {
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
20
|
-
if (key in exports && exports[key] === _requestUtils[key]) return;
|
21
|
-
Object.defineProperty(exports, key, {
|
22
|
-
enumerable: true,
|
23
|
-
get: function get() {
|
24
|
-
return _requestUtils[key];
|
25
|
-
}
|
26
|
-
});
|
27
|
-
});
|
1
|
+
export * from './RunItSDK';
|
2
|
+
export * from './requestUtils';
|
28
3
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/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 */\nexport * from './RunItSDK'\nexport * from './requestUtils'\n"],"mappings":"AAyBA,cAAc,YAAY;AAC1B,cAAc,gBAAgB"}
|