@vizzly/services 0.7.0-rc.0 → 0.7.0-rc.0.10
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { identityCallback } from 'shared-logic/src/Callbacks/types';
|
|
1
|
+
import { identityCallback, loadQueryEngineConfigCallback } from 'shared-logic/src/Callbacks/types';
|
|
2
2
|
import { Dashboard as DashboardType } from 'shared-logic/src/Dashboard';
|
|
3
3
|
import * as Dashboard from 'shared-logic/src/Dashboard';
|
|
4
4
|
import { ApiConfig } from 'shared-logic/src/ApiConfig';
|
|
5
|
+
import { QueryEngineEndpoint } from 'shared-logic/src/QueryEngineConfig/types';
|
|
5
6
|
/**
|
|
6
7
|
* Represents a Vizzly dashboard.
|
|
7
8
|
*/
|
|
@@ -52,7 +53,7 @@ type APIOptions = {
|
|
|
52
53
|
*
|
|
53
54
|
* @default { host: 'https://api.vizzly.co' }
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
+
vizzlyApiHost?: ApiConfig;
|
|
56
57
|
};
|
|
57
58
|
/**
|
|
58
59
|
* Represents an API class for interacting with the services.
|
|
@@ -66,13 +67,14 @@ export declare class API {
|
|
|
66
67
|
private dashboardStorageStrategy;
|
|
67
68
|
private dashboards;
|
|
68
69
|
private vizzlyAPI;
|
|
70
|
+
private loadQueryEngineConfig;
|
|
69
71
|
private parentDashboardId;
|
|
70
72
|
/**
|
|
71
73
|
* Whether the API is currently loading.
|
|
72
74
|
* @default false
|
|
73
75
|
*/
|
|
74
76
|
loading: boolean;
|
|
75
|
-
constructor(identity: identityCallback, options?: APIOptions);
|
|
77
|
+
constructor(identity: identityCallback, loadQueryEngineConfig: loadQueryEngineConfigCallback | QueryEngineEndpoint, options?: APIOptions);
|
|
76
78
|
/**
|
|
77
79
|
* Retrieves the dashboards from the API.
|
|
78
80
|
*
|
package/package.json
CHANGED