@vizzly/services 0.7.0-rc.0.10 → 0.7.0-rc.0.12
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,8 +1,7 @@
|
|
|
1
|
-
import { identityCallback
|
|
1
|
+
import { identityCallback } 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';
|
|
6
5
|
/**
|
|
7
6
|
* Represents a Vizzly dashboard.
|
|
8
7
|
*/
|
|
@@ -53,7 +52,7 @@ type APIOptions = {
|
|
|
53
52
|
*
|
|
54
53
|
* @default { host: 'https://api.vizzly.co' }
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
vizzlyAPIConfig?: ApiConfig;
|
|
57
56
|
};
|
|
58
57
|
/**
|
|
59
58
|
* Represents an API class for interacting with the services.
|
|
@@ -67,14 +66,19 @@ export declare class API {
|
|
|
67
66
|
private dashboardStorageStrategy;
|
|
68
67
|
private dashboards;
|
|
69
68
|
private vizzlyAPI;
|
|
70
|
-
private loadQueryEngineConfig;
|
|
71
69
|
private parentDashboardId;
|
|
72
70
|
/**
|
|
73
71
|
* Whether the API is currently loading.
|
|
74
72
|
* @default false
|
|
75
73
|
*/
|
|
76
74
|
loading: boolean;
|
|
77
|
-
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @param identity The identity callback to use when retrieving the identity.
|
|
78
|
+
* @param loadQueryEngineConfig The function to use when loading the query engine config.
|
|
79
|
+
* @param options The options for the API.
|
|
80
|
+
*/
|
|
81
|
+
constructor(identity: identityCallback, options?: APIOptions);
|
|
78
82
|
/**
|
|
79
83
|
* Retrieves the dashboards from the API.
|
|
80
84
|
*
|
|
@@ -134,7 +138,7 @@ export declare class API {
|
|
|
134
138
|
getDefaultParentDashboardId(): Promise<string>;
|
|
135
139
|
private checkEverythingIsDefined;
|
|
136
140
|
private fetchIdentityConfig;
|
|
137
|
-
private
|
|
141
|
+
private setPermissions;
|
|
138
142
|
private getDefaultParentDashboardIdBase;
|
|
139
143
|
}
|
|
140
144
|
export {};
|
package/package.json
CHANGED