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.d.mts
CHANGED
|
@@ -1459,6 +1459,7 @@ interface QueryParams {
|
|
|
1459
1459
|
newColumns?: AdditionalSelect[];
|
|
1460
1460
|
displayOverrides?: DisplayOverride[];
|
|
1461
1461
|
force?: boolean;
|
|
1462
|
+
projectId?: string | number;
|
|
1462
1463
|
}
|
|
1463
1464
|
interface DashboardTileQueryParams extends QueryParams {
|
|
1464
1465
|
queryIndex?: number;
|
|
@@ -1471,7 +1472,7 @@ interface ColumnSelect {
|
|
|
1471
1472
|
table_column: string;
|
|
1472
1473
|
custom: string;
|
|
1473
1474
|
}
|
|
1474
|
-
declare const runQueryOnly: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, scope, newColumns, displayOverrides, }: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1475
|
+
declare const runQueryOnly: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, scope, newColumns, displayOverrides, projectId, }: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1475
1476
|
declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }?: {
|
|
1476
1477
|
text?: string;
|
|
1477
1478
|
domain?: string;
|
|
@@ -1479,9 +1480,9 @@ declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }
|
|
|
1479
1480
|
token?: string;
|
|
1480
1481
|
cancelToken?: CancelTokenLike;
|
|
1481
1482
|
}) => Promise<axios.AxiosResponse<any, any, {}>>;
|
|
1482
|
-
declare const runQuery: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, newColumns, displayOverrides, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1483
|
-
declare const runCachedDashboardQuery: ({ query, domain, apiKey, token, source, orders, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1484
|
-
declare const runCachedDashboardQueryPost: ({ query, domain, apiKey, token, source, orders, filters, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1483
|
+
declare const runQuery: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, newColumns, displayOverrides, projectId, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1484
|
+
declare const runCachedDashboardQuery: ({ query, domain, apiKey, token, source, orders, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, projectId, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1485
|
+
declare const runCachedDashboardQueryPost: ({ query, domain, apiKey, token, source, orders, filters, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, projectId, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1485
1486
|
declare const exportCSV: ({ queryId, domain, apiKey, token, filters, tableFilters, csvProgressCallback, source, scope, }?: {
|
|
1486
1487
|
queryId?: string;
|
|
1487
1488
|
domain?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1459,6 +1459,7 @@ interface QueryParams {
|
|
|
1459
1459
|
newColumns?: AdditionalSelect[];
|
|
1460
1460
|
displayOverrides?: DisplayOverride[];
|
|
1461
1461
|
force?: boolean;
|
|
1462
|
+
projectId?: string | number;
|
|
1462
1463
|
}
|
|
1463
1464
|
interface DashboardTileQueryParams extends QueryParams {
|
|
1464
1465
|
queryIndex?: number;
|
|
@@ -1471,7 +1472,7 @@ interface ColumnSelect {
|
|
|
1471
1472
|
table_column: string;
|
|
1472
1473
|
custom: string;
|
|
1473
1474
|
}
|
|
1474
|
-
declare const runQueryOnly: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, scope, newColumns, displayOverrides, }: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1475
|
+
declare const runQueryOnly: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, scope, newColumns, displayOverrides, projectId, }: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1475
1476
|
declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }?: {
|
|
1476
1477
|
text?: string;
|
|
1477
1478
|
domain?: string;
|
|
@@ -1479,9 +1480,9 @@ declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }
|
|
|
1479
1480
|
token?: string;
|
|
1480
1481
|
cancelToken?: CancelTokenLike;
|
|
1481
1482
|
}) => Promise<axios.AxiosResponse<any, any, {}>>;
|
|
1482
|
-
declare const runQuery: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, newColumns, displayOverrides, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1483
|
-
declare const runCachedDashboardQuery: ({ query, domain, apiKey, token, source, orders, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1484
|
-
declare const runCachedDashboardQueryPost: ({ query, domain, apiKey, token, source, orders, filters, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1483
|
+
declare const runQuery: ({ query, userSelection, userSelectionFinal, translation, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, newColumns, displayOverrides, projectId, }?: QueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1484
|
+
declare const runCachedDashboardQuery: ({ query, domain, apiKey, token, source, orders, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, projectId, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1485
|
+
declare const runCachedDashboardQueryPost: ({ query, domain, apiKey, token, source, orders, filters, tableFilters, allowSuggestions, cancelToken, scope, newColumns, queryIndex, tileKey, dashboardId, force, projectId, }?: DashboardTileQueryParams) => Promise<TransformedAxiosResponse | axios.AxiosResponse<any, any, {}>>;
|
|
1485
1486
|
declare const exportCSV: ({ queryId, domain, apiKey, token, filters, tableFilters, csvProgressCallback, source, scope, }?: {
|
|
1486
1487
|
queryId?: string;
|
|
1487
1488
|
domain?: string;
|
package/dist/index.global.js
CHANGED
|
@@ -31320,7 +31320,8 @@
|
|
|
31320
31320
|
cancelToken,
|
|
31321
31321
|
scope = "null",
|
|
31322
31322
|
newColumns,
|
|
31323
|
-
displayOverrides
|
|
31323
|
+
displayOverrides,
|
|
31324
|
+
projectId
|
|
31324
31325
|
}) => {
|
|
31325
31326
|
const url2 = `${domain}/autoql/api/v1/query?key=${apiKey}`;
|
|
31326
31327
|
const finalUserSelection = userSelectionFinal || transformUserSelection(userSelection);
|
|
@@ -31342,7 +31343,8 @@
|
|
|
31342
31343
|
scope: finalScope,
|
|
31343
31344
|
additional_selects: newColumns,
|
|
31344
31345
|
display_overrides: displayOverrides,
|
|
31345
|
-
time_zone: getCurrentTimezone()
|
|
31346
|
+
time_zone: getCurrentTimezone(),
|
|
31347
|
+
project_id: projectId
|
|
31346
31348
|
};
|
|
31347
31349
|
if (!query || !query.trim()) {
|
|
31348
31350
|
console.error("No query supplied in request");
|
|
@@ -31422,7 +31424,8 @@
|
|
|
31422
31424
|
skipQueryValidation,
|
|
31423
31425
|
scope = "null",
|
|
31424
31426
|
newColumns,
|
|
31425
|
-
displayOverrides
|
|
31427
|
+
displayOverrides,
|
|
31428
|
+
projectId
|
|
31426
31429
|
} = {}) => {
|
|
31427
31430
|
if (enableQueryValidation && !(userSelection == null ? void 0 : userSelection.length) && !skipQueryValidation) {
|
|
31428
31431
|
try {
|
|
@@ -31464,7 +31467,8 @@
|
|
|
31464
31467
|
cancelToken,
|
|
31465
31468
|
scope,
|
|
31466
31469
|
newColumns,
|
|
31467
|
-
displayOverrides
|
|
31470
|
+
displayOverrides,
|
|
31471
|
+
projectId
|
|
31468
31472
|
});
|
|
31469
31473
|
};
|
|
31470
31474
|
var runCachedDashboardQuery = async ({
|
|
@@ -31482,7 +31486,8 @@
|
|
|
31482
31486
|
queryIndex,
|
|
31483
31487
|
tileKey,
|
|
31484
31488
|
dashboardId,
|
|
31485
|
-
force
|
|
31489
|
+
force,
|
|
31490
|
+
projectId
|
|
31486
31491
|
} = {}) => {
|
|
31487
31492
|
if (!dashboardId) {
|
|
31488
31493
|
console.error("No dashboard ID supplied in request");
|
|
@@ -31507,6 +31512,9 @@
|
|
|
31507
31512
|
if (force) {
|
|
31508
31513
|
queryParams.set("force", "true");
|
|
31509
31514
|
}
|
|
31515
|
+
if (projectId != null) {
|
|
31516
|
+
queryParams.set("project_id", String(projectId));
|
|
31517
|
+
}
|
|
31510
31518
|
const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
|
|
31511
31519
|
const config = {
|
|
31512
31520
|
headers: {
|
|
@@ -31547,7 +31555,8 @@
|
|
|
31547
31555
|
queryIndex,
|
|
31548
31556
|
tileKey,
|
|
31549
31557
|
dashboardId,
|
|
31550
|
-
force
|
|
31558
|
+
force,
|
|
31559
|
+
projectId
|
|
31551
31560
|
} = {}) => {
|
|
31552
31561
|
if (!dashboardId) {
|
|
31553
31562
|
console.error("No dashboard ID supplied in request");
|
|
@@ -31571,7 +31580,8 @@
|
|
|
31571
31580
|
const data = {
|
|
31572
31581
|
query_index: (queryIndex || 0).toString(),
|
|
31573
31582
|
force,
|
|
31574
|
-
session_filter_locks: filters
|
|
31583
|
+
session_filter_locks: filters,
|
|
31584
|
+
project_id: projectId
|
|
31575
31585
|
};
|
|
31576
31586
|
const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
|
|
31577
31587
|
const config = {
|