autoql-fe-utils 1.11.25 → 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.mjs CHANGED
@@ -10191,7 +10191,8 @@ var runQueryOnly = ({
10191
10191
  cancelToken,
10192
10192
  scope = "null",
10193
10193
  newColumns,
10194
- displayOverrides
10194
+ displayOverrides,
10195
+ projectId
10195
10196
  }) => {
10196
10197
  const url = `${domain}/autoql/api/v1/query?key=${apiKey}`;
10197
10198
  const finalUserSelection = userSelectionFinal || transformUserSelection(userSelection);
@@ -10213,7 +10214,8 @@ var runQueryOnly = ({
10213
10214
  scope: finalScope,
10214
10215
  additional_selects: newColumns,
10215
10216
  display_overrides: displayOverrides,
10216
- time_zone: getCurrentTimezone()
10217
+ time_zone: getCurrentTimezone(),
10218
+ project_id: projectId
10217
10219
  };
10218
10220
  if (!query || !query.trim()) {
10219
10221
  console.error("No query supplied in request");
@@ -10293,7 +10295,8 @@ var runQuery = async ({
10293
10295
  skipQueryValidation,
10294
10296
  scope = "null",
10295
10297
  newColumns,
10296
- displayOverrides
10298
+ displayOverrides,
10299
+ projectId
10297
10300
  } = {}) => {
10298
10301
  if (enableQueryValidation && !(userSelection == null ? void 0 : userSelection.length) && !skipQueryValidation) {
10299
10302
  try {
@@ -10335,7 +10338,8 @@ var runQuery = async ({
10335
10338
  cancelToken,
10336
10339
  scope,
10337
10340
  newColumns,
10338
- displayOverrides
10341
+ displayOverrides,
10342
+ projectId
10339
10343
  });
10340
10344
  };
10341
10345
  var runCachedDashboardQuery = async ({
@@ -10353,7 +10357,8 @@ var runCachedDashboardQuery = async ({
10353
10357
  queryIndex,
10354
10358
  tileKey,
10355
10359
  dashboardId,
10356
- force
10360
+ force,
10361
+ projectId
10357
10362
  } = {}) => {
10358
10363
  if (!dashboardId) {
10359
10364
  console.error("No dashboard ID supplied in request");
@@ -10378,6 +10383,9 @@ var runCachedDashboardQuery = async ({
10378
10383
  if (force) {
10379
10384
  queryParams.set("force", "true");
10380
10385
  }
10386
+ if (projectId != null) {
10387
+ queryParams.set("project_id", String(projectId));
10388
+ }
10381
10389
  const url = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
10382
10390
  const config = {
10383
10391
  headers: {
@@ -10418,7 +10426,8 @@ var runCachedDashboardQueryPost = async ({
10418
10426
  queryIndex,
10419
10427
  tileKey,
10420
10428
  dashboardId,
10421
- force
10429
+ force,
10430
+ projectId
10422
10431
  } = {}) => {
10423
10432
  if (!dashboardId) {
10424
10433
  console.error("No dashboard ID supplied in request");
@@ -10442,7 +10451,8 @@ var runCachedDashboardQueryPost = async ({
10442
10451
  const data = {
10443
10452
  query_index: (queryIndex || 0).toString(),
10444
10453
  force,
10445
- session_filter_locks: filters
10454
+ session_filter_locks: filters,
10455
+ project_id: projectId
10446
10456
  };
10447
10457
  const url = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
10448
10458
  const config = {