@vizzly/services 0.15.0-dev-d8c6020f516c4db05074d3f3e57c59a3eb56308b → 0.15.0-dev-4c63e2ed8f8f9e24c2462664f3125f4632a5df04
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.
|
@@ -4,6 +4,7 @@ import { IdentityConfig } from '../../shared-logic/src/IdentityConfig/types';
|
|
|
4
4
|
import { DashboardStorageStrategy } from '../../shared-logic/src/DashboardAPI/types';
|
|
5
5
|
import { VizzlyTranslations } from '../../shared-logic/src/Translations/translation.types';
|
|
6
6
|
import { DataSet } from '../../shared-logic/src/DataSet/types';
|
|
7
|
+
import { CustomField } from '../../shared-logic/src/CustomField/types';
|
|
7
8
|
export declare type LoaderOptions = {
|
|
8
9
|
apiHost: string;
|
|
9
10
|
textOverrides?: Partial<VizzlyTranslations>;
|
|
@@ -21,8 +22,9 @@ export declare class VizzlyLoader {
|
|
|
21
22
|
private queryEngine;
|
|
22
23
|
private loadAccessTokens;
|
|
23
24
|
private loadDataSetsCallback?;
|
|
25
|
+
private extraCustomFields?;
|
|
24
26
|
options: LoaderOptions;
|
|
25
|
-
constructor(queryEngine: 'in-browser' | QueryEngineEndpoint | loadQueryEngineConfigCallback | undefined, loadAccessTokens: identityCallback, loadDataSetsCallback?: loadDataSetsCallback, options?: LoaderOptions);
|
|
27
|
+
constructor(queryEngine: 'in-browser' | QueryEngineEndpoint | loadQueryEngineConfigCallback | undefined, loadAccessTokens: identityCallback, loadDataSetsCallback?: loadDataSetsCallback, extraCustomFields?: (dataSet: DataSet) => Array<CustomField>, options?: LoaderOptions);
|
|
26
28
|
getQueryEngineConfig(): Promise<QueryEngineConfig>;
|
|
27
29
|
getIdentity(): Promise<{
|
|
28
30
|
accessTokens: AccessTokens;
|
|
@@ -20,6 +20,7 @@ import { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
|
20
20
|
export type { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
21
21
|
export type { ViewConfiguration } from '../../shared-logic/src/ViewConfiguration/types';
|
|
22
22
|
export { VizzlyInstanceNotLoaded } from './errors/VizzlyInstanceNotLoaded';
|
|
23
|
+
import { CustomField } from '../../shared-logic/src/CustomField/types';
|
|
23
24
|
export declare type Options = {
|
|
24
25
|
apiHost: string;
|
|
25
26
|
};
|
|
@@ -35,6 +36,7 @@ export declare type VizzlyServicesProperties = {
|
|
|
35
36
|
identity: identityCallback;
|
|
36
37
|
programmaticDashboard?: programmaticDashboardCallback;
|
|
37
38
|
dataSets?: loadDataSetsCallback;
|
|
39
|
+
extraCustomFields?: (dataSet: DataSet) => Array<CustomField>;
|
|
38
40
|
};
|
|
39
41
|
declare class VizzlyServices {
|
|
40
42
|
private queryEngineConfig;
|
|
@@ -52,6 +54,7 @@ declare class VizzlyServices {
|
|
|
52
54
|
constructor(identityConfig: IdentityConfig, queryEngineConfig: QueryEngineConfig, dataSets: DataSet[], dashboardStorageStrategy: DashboardStorageStrategy, programmaticDashboard: programmaticDashboardCallback | undefined, options: {
|
|
53
55
|
host: string;
|
|
54
56
|
});
|
|
57
|
+
getDataSets(): DataSet<DataSet.Field>[];
|
|
55
58
|
/**
|
|
56
59
|
* @param properties
|
|
57
60
|
* @param options
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
27
27
|
"prepare": "yarn build"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.15.0-dev-
|
|
29
|
+
"version": "0.15.0-dev-4c63e2ed8f8f9e24c2462664f3125f4632a5df04",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vizzly/api-client": "0.0.57",
|
|
32
32
|
"@vizzly/joi": "^17.11.0",
|