@vizzly/services 0.11.0 → 0.12.0-dev-e9cb501d005236550d32fd4ffe3eaeb1307996b1
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.js +1 -1
- package/dist/services/src/Services/{CellServices.d.ts → Cell.d.ts} +4 -4
- package/dist/services/src/Services/{DashboardServices.d.ts → Dashboard.d.ts} +6 -6
- package/dist/services/src/Services/{HeaderServices.d.ts → Header.d.ts} +1 -1
- package/dist/services/src/Services/{ComponentLibraryServices.d.ts → Library.d.ts} +8 -8
- package/dist/services/src/Services/{RowServices.d.ts → Row.d.ts} +1 -1
- package/dist/services/src/Services/View.d.ts +65 -0
- package/dist/services/src/VizzlyLoader.d.ts +44 -0
- package/dist/services/src/errors/TimeoutWaitingForVizzlyInstance.d.ts +3 -0
- package/dist/services/src/errors/VizzlyInstanceNotLoaded.d.ts +3 -0
- package/dist/services/src/index.d.ts +124 -31
- package/dist/services/src/schemaValidations/dashboard.d.ts +3 -3
- package/dist/services/src/schemaValidations/filters.d.ts +1 -1
- package/dist/services/src/schemaValidations/library.d.ts +2 -2
- package/dist/shared-logic/src/Callbacks/types.d.ts +2 -0
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +1 -1
- package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +4 -0
- package/dist/shared-logic/src/Dashboard/types.d.ts +8 -0
- package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +2 -5
- package/dist/shared-logic/src/GlobalLibrary/GlobalLibrary.d.ts +1 -0
- package/dist/shared-logic/src/GlobalLibrary/fromRaw.d.ts +10 -0
- package/dist/shared-logic/src/GlobalLibrary/index.d.ts +2 -0
- package/dist/shared-logic/src/GlobalLibrary/types.d.ts +16 -0
- package/dist/shared-logic/src/QueryEngineConfig/loadQueryEngineConfig.d.ts +2 -2
- package/dist/shared-logic/src/QueryEngineConfig/supportedConstants.d.ts +125 -0
- package/dist/shared-logic/src/Theme/types.d.ts +1 -0
- package/dist/shared-logic/src/Translations/translateQueryEngineConfig.d.ts +3 -0
- package/dist/shared-logic/src/Translations/translation.types.d.ts +43 -8
- package/dist/shared-logic/src/ViewConfiguration/types.d.ts +4 -0
- package/dist/shared-logic/src/errors/InvalidIdentityPropType.d.ts +4 -0
- package/dist/shared-logic/src/getVizzly.d.ts +5 -0
- package/package.json +13 -4
- package/dist/services/src/Services/APIServices.d.ts +0 -155
- package/dist/services/src/Services/ViewServices.d.ts +0 -61
- package/dist/shared-logic/src/AI/types.d.ts +0 -31
- package/dist/shared-logic/src/ApiResource/index.d.ts +0 -7
- package/dist/shared-logic/src/DashboardAPI/clientDashboardSchema.d.ts +0 -3
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +0 -19
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +0 -19
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +0 -17
- package/dist/shared-logic/src/DashboardAPI/dashboardManager.d.ts +0 -9
- package/dist/shared-logic/src/DashboardPermission/index.d.ts +0 -7
- package/dist/shared-logic/src/DashboardPermission/types.d.ts +0 -12
- package/dist/shared-logic/src/Project/types.d.ts +0 -74
- package/dist/shared-logic/src/api/index.d.ts +0 -66
- package/dist/shared-logic/src/api/queryEngine/createDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/queryEngine/multiGetDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/queryEngine/updateDashboard.d.ts +0 -13
- package/dist/shared-logic/src/api/vizzly/aiActions.d.ts +0 -18
- package/dist/shared-logic/src/api/vizzly/aiHelpers/buildAIResponse.d.ts +0 -5
- package/dist/shared-logic/src/api/vizzly/aiHelpers/buildDataSets.d.ts +0 -4
- package/dist/shared-logic/src/api/vizzly/aiHelpers/checkAiResponseStatus.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +0 -23
- package/dist/shared-logic/src/api/vizzly/aiHelpers/validateAndUpcastAIAttributes.d.ts +0 -4
- package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +0 -10
- package/dist/shared-logic/src/api/vizzly/askAi.d.ts +0 -6
- package/dist/shared-logic/src/api/vizzly/askAiForQuestionSuggestions.d.ts +0 -4
- package/dist/shared-logic/src/api/vizzly/createDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/vizzly/createDashboardAccess.d.ts +0 -8
- package/dist/shared-logic/src/api/vizzly/createProjectApiKey.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/createQueryEngineUser.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/createSelfHostedDynamicQueryEngine.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/createSelfHostedInBrowserQueryEngineProject.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/createSelfHostedQueryEngineProject.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/createVizzlyConfigVersion.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/getConnection.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/getManagedQueryEngineKeyPair.d.ts +0 -5
- package/dist/shared-logic/src/api/vizzly/getParentDashboards.d.ts +0 -9
- package/dist/shared-logic/src/api/vizzly/getProject.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/getQueryEngineUser.d.ts +0 -3
- package/dist/shared-logic/src/api/vizzly/getTeamMembers.d.ts +0 -11
- package/dist/shared-logic/src/api/vizzly/getVizzlyConfig.d.ts +0 -4
- package/dist/shared-logic/src/api/vizzly/multiGetDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/multiGetEncryptedDashboards.d.ts +0 -7
- package/dist/shared-logic/src/api/vizzly/saveConnection.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/saveEncryptedProjectEncryptionSecret.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/saveScheduledReport.d.ts +0 -6
- package/dist/shared-logic/src/api/vizzly/updateDashboard.d.ts +0 -20
- package/dist/shared-logic/src/api/vizzly/updateProjectApiKey.d.ts +0 -6
- package/dist/shared-logic/src/api/vizzly/updateQueryEngineUser.d.ts +0 -2
- package/dist/shared-logic/src/errors/AIAborted.d.ts +0 -4
- package/dist/shared-logic/src/errors/AIContainsErrors.d.ts +0 -4
- package/dist/shared-logic/src/errors/AIFailedToFetch.d.ts +0 -4
- package/dist/shared-logic/src/errors/AIUsageLimitReached.d.ts +0 -4
- package/dist/shared-logic/src/errors/DashboardQuotaReached.d.ts +0 -4
- package/dist/shared-logic/src/errors/EncryptedProjectSecretAlreadyExists.d.ts +0 -4
- package/dist/shared-logic/src/errors/FailedToCreateDashboard.d.ts +0 -4
- package/dist/shared-logic/src/errors/FailedToCreateDashboardAccess.d.ts +0 -4
- package/dist/shared-logic/src/errors/FailedToGetDashboard.d.ts +0 -4
- package/dist/shared-logic/src/errors/FailedToSaveVizzlyConfigVersion.d.ts +0 -3
- package/dist/shared-logic/src/errors/FailedToUpdateDashboard.d.ts +0 -4
- package/dist/shared-logic/src/errors/ProjectEncryptedSecretAlreadySaved.d.ts +0 -4
- package/dist/shared-logic/src/errors/ReadOnlyPermissionNotFound.d.ts +0 -4
- package/dist/shared-logic/src/errors/ReadPermissionNotFound.d.ts +0 -4
- package/dist/shared-logic/src/errors/VizzlyApiCallErrorFailedToSetupProject.d.ts +0 -4
- package/dist/shared-logic/src/errors/WritePermissionNotFound.d.ts +0 -4
- package/dist/shared-logic/src/errors/index.d.ts +0 -5
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Dashboard } from '../Dashboard';
|
|
2
|
-
export declare type ProjectType = 'instant_dashboard' | 'self_hosted' | 'managed_query_engine' | 'in_browser' | 'dynamic_self_hosted_query_engine';
|
|
3
|
-
export declare type GlobalLibrary = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
created_at: string;
|
|
7
|
-
updated_at: string;
|
|
8
|
-
};
|
|
9
|
-
export declare type Project = {
|
|
10
|
-
instant_dashboard_id: string | null;
|
|
11
|
-
managed_query_engine_id: string | null;
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
type: ProjectType;
|
|
15
|
-
created_at: Date;
|
|
16
|
-
share_links?: ShareLink[];
|
|
17
|
-
parent_dashboards: Dashboard[];
|
|
18
|
-
parent_global_libraries: GlobalLibrary[];
|
|
19
|
-
key_pairs: RawKeyPair[];
|
|
20
|
-
encrypted_encryption_secret: string | null;
|
|
21
|
-
query_engine_users: Array<{
|
|
22
|
-
id: string;
|
|
23
|
-
/** Hashed and encrypted using the encryption secret on the query engine */
|
|
24
|
-
password: string | null;
|
|
25
|
-
user: {
|
|
26
|
-
id: string;
|
|
27
|
-
email: string;
|
|
28
|
-
first_name: string;
|
|
29
|
-
last_name: string;
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
config_store: {
|
|
33
|
-
id: string;
|
|
34
|
-
versions: Array<{
|
|
35
|
-
id: string;
|
|
36
|
-
created_at: string;
|
|
37
|
-
updated_at: string;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
connections: Array<{
|
|
41
|
-
id: string;
|
|
42
|
-
created_at: string;
|
|
43
|
-
updated_at: string;
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
}>;
|
|
46
|
-
api_keys: Array<{
|
|
47
|
-
id: string;
|
|
48
|
-
created_at: string;
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
}>;
|
|
51
|
-
deleted: boolean;
|
|
52
|
-
data_upload: {
|
|
53
|
-
created_at: string;
|
|
54
|
-
id: string;
|
|
55
|
-
updated_at: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare type ShareLink = {
|
|
59
|
-
id: string;
|
|
60
|
-
token: string;
|
|
61
|
-
active: boolean;
|
|
62
|
-
created_at: string;
|
|
63
|
-
title: string;
|
|
64
|
-
email: string | null;
|
|
65
|
-
};
|
|
66
|
-
export declare type RawKeyPair = {
|
|
67
|
-
id: string;
|
|
68
|
-
uploaded_by: string;
|
|
69
|
-
public_key: string;
|
|
70
|
-
organisation_id: string;
|
|
71
|
-
uploaded_at: string;
|
|
72
|
-
updated_at: string;
|
|
73
|
-
disabled: boolean;
|
|
74
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ApiConfig } from '../ApiConfig';
|
|
2
|
-
export declare const api: (config: ApiConfig) => {
|
|
3
|
-
config: ApiConfig;
|
|
4
|
-
getParentDashboards: () => Promise<{
|
|
5
|
-
id: string;
|
|
6
|
-
created_at: string;
|
|
7
|
-
updated_at: string;
|
|
8
|
-
webhook_id: string | null;
|
|
9
|
-
}[] | undefined>;
|
|
10
|
-
saveScheduledReport: (params: {
|
|
11
|
-
dashboardAccessToken: string;
|
|
12
|
-
scheduledReportId: string;
|
|
13
|
-
cronSchedule: string | null;
|
|
14
|
-
}) => Promise<boolean>;
|
|
15
|
-
createDashboardAccess: (dashboardAccessToken: string, dashboardAdminOverrideToken: string | undefined, abortSignal: AbortSignal) => Promise<{
|
|
16
|
-
permissions: import("../DashboardPermission/types").DashboardPermission[];
|
|
17
|
-
}>;
|
|
18
|
-
multiGetDashboards: (dashboardAccessTokens: string[], abortSignal: AbortSignal) => Promise<import("./vizzly/multiGetDashboards").Response>;
|
|
19
|
-
multiGetEncryptedDashboards: (dashboardAccessTokens: string[]) => Promise<import("./vizzly/multiGetEncryptedDashboards").Response>;
|
|
20
|
-
createDashboard: (params: import("./vizzly/createDashboard").CreateDashboardParams) => Promise<{
|
|
21
|
-
dashboard: import("../Dashboard").RawDashboard<import("../Dashboard").RawDefinition>;
|
|
22
|
-
permissions: import("../DashboardPermission/types").RawDashboardPermission[];
|
|
23
|
-
}>;
|
|
24
|
-
updateDashboard: (params: import("./vizzly/updateDashboard").UpdateDashboardParams) => Promise<import("./vizzly/updateDashboard").EncryptedDashboardUpdateResponse | import("./vizzly/updateDashboard").UnEncryptedDashboardUpdateResponse>;
|
|
25
|
-
askAi: (conversationId: string | undefined, currentAttributes: import("../Component/types").Component.Attributes, question: string, dashboardAccessToken: string, dataSets: import("../DataSet/types").DataSet[], queryEngineConfig: import("../QueryEngineConfig/types").QueryEngineConfig, abortSignal: AbortSignal) => Promise<import("./vizzly/aiHelpers/types").AiConversation>;
|
|
26
|
-
aiActions: (conversationId: string, messageId: string, dashboardAccessToken: string, options: import("./vizzly/aiActions").AIOptions) => Promise<import("./vizzly/aiActions").AIActionReponse>;
|
|
27
|
-
askAiForQuestionSuggestions: (dashboardAccessToken: string, dataSets: import("../DataSet/types").DataSet[]) => Promise<import("./vizzly/aiHelpers/types").AskAiQuestionSuggestions>;
|
|
28
|
-
createVizzlyConfigVersion: (projectId: string, encryptedVizzlyConfig: string) => Promise<boolean>;
|
|
29
|
-
getVizzlyConfig: (projectId: string) => Promise<{
|
|
30
|
-
encryptedConfig: string | null;
|
|
31
|
-
} | undefined>;
|
|
32
|
-
saveConnection: (projectId: string, encryptedConnection: string, encryptedConfig: string) => Promise<boolean>;
|
|
33
|
-
getConnection: (projectId: string) => Promise<{
|
|
34
|
-
status: number;
|
|
35
|
-
encryptedCredentials: string;
|
|
36
|
-
} | {
|
|
37
|
-
status: number;
|
|
38
|
-
}>;
|
|
39
|
-
createProjectApiKey: (projectId: string) => Promise<string>;
|
|
40
|
-
updateProjectApiKey: (projectId: string, projectApiKeyId: string, updateParams: {
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
}) => Promise<string>;
|
|
43
|
-
getProjectAccessToken: (projectId: string, appSessionAuthToken?: string | undefined, resourceFilters?: string[] | undefined) => Promise<string | undefined>;
|
|
44
|
-
getProject: (projectId: string) => Promise<import("../Project/types").Project | null>;
|
|
45
|
-
createQueryEngineUser: (projectId: string, email: string, password: string) => Promise<boolean>;
|
|
46
|
-
updateQueryEngineUser: (projectId: string, updateQueryEngineUser: string, password: string) => Promise<boolean>;
|
|
47
|
-
getQueryEngineUser: (projectId: string, email: string) => Promise<{
|
|
48
|
-
id: string;
|
|
49
|
-
password: string | null;
|
|
50
|
-
user: {
|
|
51
|
-
id: string;
|
|
52
|
-
email: string;
|
|
53
|
-
first_name: string;
|
|
54
|
-
last_name: string;
|
|
55
|
-
};
|
|
56
|
-
} | undefined>;
|
|
57
|
-
getProjectTeamMembers: (projectId: string) => Promise<import("./vizzly/getTeamMembers").TeamMember[] | undefined>;
|
|
58
|
-
createSelfHostedQueryEngineProject: (appSessionToken?: string | undefined) => Promise<import("../Project/types").Project | undefined>;
|
|
59
|
-
createSelfHostedDynamicQueryEngineProject: (appSessionToken?: string | undefined) => Promise<import("../Project/types").Project | undefined>;
|
|
60
|
-
createSelfHostedInBrowserQueryEngineProject: (appSessionToken?: string | undefined) => Promise<import("../Project/types").Project | undefined>;
|
|
61
|
-
getManagedQueryEngineKeyPair: (managedProjectId: string, keyPairId: string, appSessionToken?: string | undefined) => Promise<{
|
|
62
|
-
publicKey: string;
|
|
63
|
-
privateKey: string | null;
|
|
64
|
-
} | undefined>;
|
|
65
|
-
saveEncryptedProjectEncryptionSecret: (projectId: string, encryptedProjectEncryptionSecret: string, allowRotation?: boolean) => Promise<boolean>;
|
|
66
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RawDashboard, SaveableDashboardDefinition } from '../../Dashboard';
|
|
2
|
-
import { RawDashboardPermission } from '../../DashboardPermission/types';
|
|
3
|
-
import { QueryEngineEndpoint } from '../../QueryEngineConfig/types';
|
|
4
|
-
export declare type Response = {
|
|
5
|
-
dashboard: RawDashboard;
|
|
6
|
-
permissions: Array<RawDashboardPermission>;
|
|
7
|
-
};
|
|
8
|
-
export declare type CreateDashboardParams = {
|
|
9
|
-
dashboardAccessToken: string;
|
|
10
|
-
definition: SaveableDashboardDefinition;
|
|
11
|
-
/** @deprecated - use `metadata` instead */
|
|
12
|
-
meta?: any;
|
|
13
|
-
metadata?: any;
|
|
14
|
-
parentDashboardId: string | null;
|
|
15
|
-
permissions: Array<any>;
|
|
16
|
-
};
|
|
17
|
-
export declare const createDashboardViaQueryEngine: (queryEngineEndpoint: QueryEngineEndpoint) => (params: CreateDashboardParams) => Promise<{
|
|
18
|
-
dashboard: RawDashboard;
|
|
19
|
-
permissions: Array<RawDashboardPermission>;
|
|
20
|
-
}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { QueryEngineEndpoint } from '../../QueryEngineConfig/types';
|
|
2
|
-
import { RawDashboard } from '../../Dashboard';
|
|
3
|
-
export declare type Response = {
|
|
4
|
-
found: RawDashboard[];
|
|
5
|
-
not_found: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const multiGetDashboards: (queryEngineEndpoint: QueryEngineEndpoint) => (dashboardAccessTokens: string[], abortSignal: AbortSignal) => Promise<Response>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as Dashboard from '../../Dashboard/Dashboard';
|
|
2
|
-
import { RawDashboard, SaveableDashboardDefinition } from '../../Dashboard';
|
|
3
|
-
import { QueryEngineEndpoint } from '../../QueryEngineConfig/types';
|
|
4
|
-
export declare type Response = {
|
|
5
|
-
dashboard: RawDashboard<Dashboard.RawDefinition>;
|
|
6
|
-
};
|
|
7
|
-
export declare type UpdateDashboardParams = {
|
|
8
|
-
dashboardSessionToken: string;
|
|
9
|
-
definition?: SaveableDashboardDefinition;
|
|
10
|
-
meta?: any;
|
|
11
|
-
deleted?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const updateDashboardViaQueryEngine: (queryEngineEndpoint: QueryEngineEndpoint) => (params: UpdateDashboardParams) => Promise<Response>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Message } from '../../AI/types';
|
|
2
|
-
import { HttpClient } from '../types';
|
|
3
|
-
export declare type AIActionReponse = {
|
|
4
|
-
success: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare type AIOptions = {
|
|
7
|
-
reaction: Message['reaction'];
|
|
8
|
-
};
|
|
9
|
-
declare type APIResponse = {
|
|
10
|
-
status: number;
|
|
11
|
-
body: any;
|
|
12
|
-
headers: any;
|
|
13
|
-
};
|
|
14
|
-
export declare const aiActions: (httpClient: HttpClient) => (conversationId: string, messageId: string, dashboardAccessToken: string, options: AIOptions) => Promise<AIActionReponse>;
|
|
15
|
-
export declare const buildAIActionResponse: (response: APIResponse) => {
|
|
16
|
-
success: boolean;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DataSet } from '../../../DataSet/types';
|
|
2
|
-
import { QueryEngineConfig } from '../../../QueryEngineConfig/types';
|
|
3
|
-
import { AiConversation, AskAIResponse } from './types';
|
|
4
|
-
import { Component } from '../../../Component/types';
|
|
5
|
-
export declare const buildAIResponse: (askAiResponse: AskAIResponse, currentAttributes: Component.Attributes, queryEngineConfig: QueryEngineConfig, dataSets: DataSet[]) => AiConversation;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ConversationState } from '../../../AI/types';
|
|
2
|
-
import { Component } from '../../../Component/types';
|
|
3
|
-
import { View } from '@vizzly/ai-types';
|
|
4
|
-
export declare type AskAIResponse = {
|
|
5
|
-
message_id: string;
|
|
6
|
-
conversation_id: string;
|
|
7
|
-
ai_view: View;
|
|
8
|
-
conversation_content: {
|
|
9
|
-
messages: ConversationState['messageHistory'];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare type AskAIUsageResponse = {
|
|
13
|
-
quota: number;
|
|
14
|
-
used: number;
|
|
15
|
-
};
|
|
16
|
-
export declare type AiConversation = {
|
|
17
|
-
conversationId: ConversationState['conversationId'];
|
|
18
|
-
attributes: Component.Attributes;
|
|
19
|
-
messageHistory: ConversationState['messageHistory'];
|
|
20
|
-
};
|
|
21
|
-
export declare type AskAiQuestionSuggestions = {
|
|
22
|
-
suggestions: string[];
|
|
23
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { QueryEngineConfig } from '../../../QueryEngineConfig/types';
|
|
2
|
-
import { Component } from '../../../Component/types';
|
|
3
|
-
declare const validateAndUpcast: (aiAttributes: Partial<Component.Attributes>, queryEngineConfig: QueryEngineConfig) => Component.Attributes;
|
|
4
|
-
export default validateAndUpcast;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from '../../../Component/types';
|
|
2
|
-
import { View } from '@vizzly/ai-types';
|
|
3
|
-
import { DataSet } from '../../../DataSet/types';
|
|
4
|
-
import { QueryEngineConfig } from '../../../QueryEngineConfig/types';
|
|
5
|
-
/**
|
|
6
|
-
* Convert the complex view used on the frontend, to the simplified
|
|
7
|
-
* version that the AI is used too...
|
|
8
|
-
*/
|
|
9
|
-
export declare const attributesToAiView: (dataSet: DataSet, originalAttributes: Component.Attributes) => View;
|
|
10
|
-
export declare const mergeAiViewIntoCurrentAttributes: (dataSets: DataSet[], currentAttributes: Component.Attributes, aiView: View, queryEngineConfig: QueryEngineConfig) => Component.Attributes;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
import { DataSet } from '../../DataSet/types';
|
|
3
|
-
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
4
|
-
import { AiConversation } from './aiHelpers/types';
|
|
5
|
-
import { Component } from '../../Component/types';
|
|
6
|
-
export declare const askAi: (httpClient: HttpClient) => (conversationId: string | undefined, currentAttributes: Component.Attributes, question: string, dashboardAccessToken: string, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig, abortSignal: AbortSignal) => Promise<AiConversation>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
import { DataSet } from '../../DataSet/types';
|
|
3
|
-
import { AskAiQuestionSuggestions } from './aiHelpers/types';
|
|
4
|
-
export declare const askAiForQuestionSuggestions: (httpClient: HttpClient) => (dashboardAccessToken: string, dataSets: DataSet[]) => Promise<AskAiQuestionSuggestions>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RawDashboard, SaveableDashboardDefinition } from '../../Dashboard';
|
|
2
|
-
import { RawDashboardPermission } from '../../DashboardPermission/types';
|
|
3
|
-
import { HttpClient } from '../types';
|
|
4
|
-
export declare type Response = {
|
|
5
|
-
dashboard: RawDashboard;
|
|
6
|
-
permissions: Array<RawDashboardPermission>;
|
|
7
|
-
};
|
|
8
|
-
export declare type CreateDashboardParams = {
|
|
9
|
-
dashboardAccessToken: string;
|
|
10
|
-
definition: SaveableDashboardDefinition;
|
|
11
|
-
/** @deprecated - use `metadata` instead */
|
|
12
|
-
meta?: any;
|
|
13
|
-
metadata?: any;
|
|
14
|
-
parentDashboardId: string | null;
|
|
15
|
-
permissions: Array<any>;
|
|
16
|
-
};
|
|
17
|
-
export declare const createDashboard: (httpClient: HttpClient) => (params: CreateDashboardParams) => Promise<{
|
|
18
|
-
dashboard: RawDashboard;
|
|
19
|
-
permissions: Array<RawDashboardPermission>;
|
|
20
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
import { DashboardPermission, RawDashboardPermission } from '../../DashboardPermission/types';
|
|
3
|
-
export declare type Response = {
|
|
4
|
-
permissions: Array<RawDashboardPermission>;
|
|
5
|
-
};
|
|
6
|
-
export declare const createDashboardAccess: (httpClient: HttpClient) => (dashboardAccessToken: string, dashboardAdminOverrideToken: string | undefined, abortSignal: AbortSignal) => Promise<{
|
|
7
|
-
permissions: Array<DashboardPermission>;
|
|
8
|
-
}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
export declare const getManagedQueryEngineKeyPair: (httpClient: HttpClient) => (managedProjectId: string, keyPairId: string, appSessionToken?: string) => Promise<{
|
|
3
|
-
publicKey: string;
|
|
4
|
-
privateKey: string | null;
|
|
5
|
-
} | undefined>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
declare type MinimalDashboard = {
|
|
3
|
-
id: string;
|
|
4
|
-
created_at: string;
|
|
5
|
-
updated_at: string;
|
|
6
|
-
webhook_id: string | null;
|
|
7
|
-
};
|
|
8
|
-
export declare const getParentDashboards: (httpClient: HttpClient) => () => Promise<MinimalDashboard[] | undefined>;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
export declare type TeamMember = {
|
|
3
|
-
id: string;
|
|
4
|
-
organisation_name: string;
|
|
5
|
-
user_id: string;
|
|
6
|
-
email: string;
|
|
7
|
-
first_name: string;
|
|
8
|
-
last_name: string;
|
|
9
|
-
status: 'pending' | 'active' | 'removed';
|
|
10
|
-
};
|
|
11
|
-
export declare const getProjectTeamMembers: (httpClient: HttpClient) => (projectId: string) => Promise<Array<TeamMember> | undefined>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RawDashboard } from '../../Dashboard';
|
|
2
|
-
import { HttpClient } from '../types';
|
|
3
|
-
export declare type Response = {
|
|
4
|
-
found: RawDashboard[];
|
|
5
|
-
not_found: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const multiGetDashboards: (httpClient: HttpClient) => (dashboardAccessTokens: string[], abortSignal: AbortSignal) => Promise<Response>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RawDashboard, RawDefinition } from '../../Dashboard';
|
|
2
|
-
import { HttpClient } from '../types';
|
|
3
|
-
export declare type Response = {
|
|
4
|
-
found: RawDashboard<string | RawDefinition>[];
|
|
5
|
-
not_found: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const multiGetEncryptedDashboards: (httpClient: HttpClient) => (dashboardAccessTokens: string[]) => Promise<Response>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as Dashboard from '../../Dashboard/Dashboard';
|
|
2
|
-
import { RawDashboard, SaveableDashboardDefinition } from '../../Dashboard';
|
|
3
|
-
import { HttpClient } from '../types';
|
|
4
|
-
export declare type EncryptedDashboardUpdateResponse = {
|
|
5
|
-
dashboard: RawDashboard<string>;
|
|
6
|
-
};
|
|
7
|
-
export declare type UnEncryptedDashboardUpdateResponse = {
|
|
8
|
-
dashboard: RawDashboard<Dashboard.RawDefinition>;
|
|
9
|
-
};
|
|
10
|
-
declare type UpdateDashboardResponse = EncryptedDashboardUpdateResponse | UnEncryptedDashboardUpdateResponse;
|
|
11
|
-
export declare type UpdateDashboardParams = {
|
|
12
|
-
dashboardSessionToken: string;
|
|
13
|
-
definition?: SaveableDashboardDefinition;
|
|
14
|
-
/** @deprecated - use `metadata` instead */
|
|
15
|
-
meta?: any;
|
|
16
|
-
metadata?: any;
|
|
17
|
-
deleted?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare const updateDashboard: (httpClient: HttpClient) => (params: UpdateDashboardParams) => Promise<UpdateDashboardResponse>;
|
|
20
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '../types';
|
|
2
|
-
declare type UpdateParams = {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const updateProjectApiKey: (httpClient: HttpClient) => (projectId: string, projectApiKeyId: string, updateParams: UpdateParams) => Promise<string>;
|
|
6
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import AIUsageLimitReached from './AIUsageLimitReached';
|
|
2
|
-
import AIFailedToFetch from '../errors/AIFailedToFetch';
|
|
3
|
-
import AIContainsErrors from '../errors/AIContainsErrors';
|
|
4
|
-
import AIAborted from '../errors/AIAborted';
|
|
5
|
-
export { AIUsageLimitReached, AIFailedToFetch, AIContainsErrors, AIAborted };
|