autoql-fe-utils 1.11.24 → 1.11.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.global.js +17 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10716,7 +10716,8 @@ var runQueryOnly = ({
|
|
|
10716
10716
|
cancelToken,
|
|
10717
10717
|
scope = "null",
|
|
10718
10718
|
newColumns,
|
|
10719
|
-
displayOverrides
|
|
10719
|
+
displayOverrides,
|
|
10720
|
+
projectId
|
|
10720
10721
|
}) => {
|
|
10721
10722
|
const url = `${domain}/autoql/api/v1/query?key=${apiKey}`;
|
|
10722
10723
|
const finalUserSelection = userSelectionFinal || transformUserSelection(userSelection);
|
|
@@ -10738,7 +10739,8 @@ var runQueryOnly = ({
|
|
|
10738
10739
|
scope: finalScope,
|
|
10739
10740
|
additional_selects: newColumns,
|
|
10740
10741
|
display_overrides: displayOverrides,
|
|
10741
|
-
time_zone: getCurrentTimezone()
|
|
10742
|
+
time_zone: getCurrentTimezone(),
|
|
10743
|
+
project_id: projectId
|
|
10742
10744
|
};
|
|
10743
10745
|
if (!query || !query.trim()) {
|
|
10744
10746
|
console.error("No query supplied in request");
|
|
@@ -10818,7 +10820,8 @@ var runQuery = async ({
|
|
|
10818
10820
|
skipQueryValidation,
|
|
10819
10821
|
scope = "null",
|
|
10820
10822
|
newColumns,
|
|
10821
|
-
displayOverrides
|
|
10823
|
+
displayOverrides,
|
|
10824
|
+
projectId
|
|
10822
10825
|
} = {}) => {
|
|
10823
10826
|
if (enableQueryValidation && !(userSelection == null ? void 0 : userSelection.length) && !skipQueryValidation) {
|
|
10824
10827
|
try {
|
|
@@ -10860,7 +10863,8 @@ var runQuery = async ({
|
|
|
10860
10863
|
cancelToken,
|
|
10861
10864
|
scope,
|
|
10862
10865
|
newColumns,
|
|
10863
|
-
displayOverrides
|
|
10866
|
+
displayOverrides,
|
|
10867
|
+
projectId
|
|
10864
10868
|
});
|
|
10865
10869
|
};
|
|
10866
10870
|
var runCachedDashboardQuery = async ({
|
|
@@ -10878,7 +10882,8 @@ var runCachedDashboardQuery = async ({
|
|
|
10878
10882
|
queryIndex,
|
|
10879
10883
|
tileKey,
|
|
10880
10884
|
dashboardId,
|
|
10881
|
-
force
|
|
10885
|
+
force,
|
|
10886
|
+
projectId
|
|
10882
10887
|
} = {}) => {
|
|
10883
10888
|
if (!dashboardId) {
|
|
10884
10889
|
console.error("No dashboard ID supplied in request");
|
|
@@ -10903,6 +10908,9 @@ var runCachedDashboardQuery = async ({
|
|
|
10903
10908
|
if (force) {
|
|
10904
10909
|
queryParams.set("force", "true");
|
|
10905
10910
|
}
|
|
10911
|
+
if (projectId != null) {
|
|
10912
|
+
queryParams.set("project_id", String(projectId));
|
|
10913
|
+
}
|
|
10906
10914
|
const url = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
|
|
10907
10915
|
const config = {
|
|
10908
10916
|
headers: {
|
|
@@ -10943,7 +10951,8 @@ var runCachedDashboardQueryPost = async ({
|
|
|
10943
10951
|
queryIndex,
|
|
10944
10952
|
tileKey,
|
|
10945
10953
|
dashboardId,
|
|
10946
|
-
force
|
|
10954
|
+
force,
|
|
10955
|
+
projectId
|
|
10947
10956
|
} = {}) => {
|
|
10948
10957
|
if (!dashboardId) {
|
|
10949
10958
|
console.error("No dashboard ID supplied in request");
|
|
@@ -10967,7 +10976,8 @@ var runCachedDashboardQueryPost = async ({
|
|
|
10967
10976
|
const data = {
|
|
10968
10977
|
query_index: (queryIndex || 0).toString(),
|
|
10969
10978
|
force,
|
|
10970
|
-
session_filter_locks: filters
|
|
10979
|
+
session_filter_locks: filters,
|
|
10980
|
+
project_id: projectId
|
|
10971
10981
|
};
|
|
10972
10982
|
const url = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
|
|
10973
10983
|
const config = {
|