@sassoftware/vi-api 0.0.29
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/alert-reps/index.d.ts +677 -0
- package/alert-reps/package.json +5 -0
- package/component/bindings.d.ts +85 -0
- package/component/bindings.js +1 -0
- package/component/index.d.ts +49 -0
- package/component/index.js +16 -0
- package/component/package.json +9 -0
- package/component/public-api.d.ts +1 -0
- package/component/public-api.js +1 -0
- package/config/config-api.d.ts +92 -0
- package/config/config-api.js +6 -0
- package/config/package.json +9 -0
- package/config/public-api.d.ts +1 -0
- package/config/public-api.js +1 -0
- package/control/control-api.d.ts +450 -0
- package/control/control-api.js +1 -0
- package/control/data-types.d.ts +9 -0
- package/control/data-types.js +1 -0
- package/control/events.d.ts +75 -0
- package/control/events.js +5 -0
- package/control/file.d.ts +14 -0
- package/control/file.js +1 -0
- package/control/image.d.ts +14 -0
- package/control/image.js +1 -0
- package/control/package.json +9 -0
- package/control/page.d.ts +55 -0
- package/control/page.js +1 -0
- package/control/public-api.d.ts +8 -0
- package/control/public-api.js +8 -0
- package/control/restrictions.d.ts +33 -0
- package/control/restrictions.js +1 -0
- package/control/toolbar-property-api.d.ts +16 -0
- package/control/toolbar-property-api.js +1 -0
- package/current-user/currentUser-api.d.ts +65 -0
- package/current-user/currentUser-api.js +11 -0
- package/current-user/package.json +9 -0
- package/current-user/public-api.d.ts +1 -0
- package/current-user/public-api.js +1 -0
- package/event/event-api.d.ts +57 -0
- package/event/event-api.js +26 -0
- package/event/package.json +9 -0
- package/event/public-api.d.ts +1 -0
- package/event/public-api.js +1 -0
- package/file/file-api.d.ts +44 -0
- package/file/file-api.js +1 -0
- package/file/package.json +9 -0
- package/file/public-api.d.ts +1 -0
- package/file/public-api.js +1 -0
- package/http/index.d.ts +364 -0
- package/http/index.js +45 -0
- package/http/package.json +9 -0
- package/http/public-api.d.ts +1 -0
- package/http/public-api.js +1 -0
- package/index.d.ts +65 -0
- package/index.js +1 -0
- package/localization/localization-api.d.ts +26 -0
- package/localization/localization-api.js +1 -0
- package/localization/package.json +9 -0
- package/localization/public-api.d.ts +1 -0
- package/localization/public-api.js +1 -0
- package/metadata/admin/admin-metadata-api.d.ts +18 -0
- package/metadata/admin/admin-metadata-api.js +1 -0
- package/metadata/metadata-api.d.ts +237 -0
- package/metadata/metadata-api.js +1 -0
- package/metadata/package.json +9 -0
- package/metadata/public-api.d.ts +2 -0
- package/metadata/public-api.js +2 -0
- package/object/object-api.d.ts +507 -0
- package/object/object-api.js +13 -0
- package/object/package.json +9 -0
- package/object/public-api.d.ts +1 -0
- package/object/public-api.js +1 -0
- package/package.json +14 -0
- package/page-admin/package.json +9 -0
- package/page-admin/page-admin-api.d.ts +29 -0
- package/page-admin/page-admin-api.js +11 -0
- package/page-admin/public-api.d.ts +1 -0
- package/page-admin/public-api.js +1 -0
- package/page-model/package.json +9 -0
- package/page-model/page-model-api.d.ts +126 -0
- package/page-model/page-model-api.js +11 -0
- package/page-model/public-api.d.ts +1 -0
- package/page-model/public-api.js +1 -0
- package/page-state/package.json +9 -0
- package/page-state/page-state-api.d.ts +59 -0
- package/page-state/page-state-api.js +1 -0
- package/page-state/public-api.d.ts +1 -0
- package/page-state/public-api.js +1 -0
- package/property/package.json +9 -0
- package/property/property-api.d.ts +46 -0
- package/property/property-api.js +17 -0
- package/property/public-api.d.ts +1 -0
- package/property/public-api.js +1 -0
- package/public-api.d.ts +1 -0
- package/public-api.js +1 -0
- package/reference-data/package.json +9 -0
- package/reference-data/public-api.d.ts +1 -0
- package/reference-data/public-api.js +1 -0
- package/reference-data/refData.d.ts +72 -0
- package/reference-data/refData.js +1 -0
- package/resource/package.json +9 -0
- package/resource/public-api.d.ts +1 -0
- package/resource/public-api.js +1 -0
- package/resource/resource-api.d.ts +17 -0
- package/resource/resource-api.js +1 -0
- package/score-reps/index.d.ts +133 -0
- package/score-reps/package.json +5 -0
- package/search/client/client-search-api.d.ts +159 -0
- package/search/client/client-search-api.js +14 -0
- package/search/package.json +9 -0
- package/search/public-api.d.ts +2 -0
- package/search/public-api.js +2 -0
- package/search/search-api.d.ts +72 -0
- package/search/search-api.js +1 -0
- package/sheet/package.json +9 -0
- package/sheet/public-api.d.ts +1 -0
- package/sheet/public-api.js +1 -0
- package/sheet/sheet-api.d.ts +184 -0
- package/sheet/sheet-api.js +1 -0
- package/svi-datahub/index.d.ts +4514 -0
- package/svi-datahub/package.json +5 -0
- package/svi-sand/index.d.ts +1057 -0
- package/svi-sand/package.json +5 -0
- package/tab/package.json +9 -0
- package/tab/public-api.d.ts +1 -0
- package/tab/public-api.js +1 -0
- package/tab/tab-api.d.ts +33 -0
- package/tab/tab-api.js +1 -0
- package/theme/package.json +9 -0
- package/theme/public-api.d.ts +1 -0
- package/theme/public-api.js +1 -0
- package/theme/theme-api.d.ts +35 -0
- package/theme/theme-api.js +17 -0
- package/time-slider/index.d.ts +35 -0
- package/time-slider/index.js +17 -0
- package/traversal/package.json +9 -0
- package/traversal/public-api.d.ts +1 -0
- package/traversal/public-api.js +1 -0
- package/traversal/traversal-api.d.ts +34 -0
- package/traversal/traversal-api.js +1 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { Relationship } from "../../svi-datahub";
|
|
2
|
+
import { MapBoundedBoxFilter, MapBoundedPolygonFilter, MapRadiusFilter, MapShapeFilter, QueryMode, SearchRepresentation, SearchResponse } from "../../svi-sand";
|
|
3
|
+
import { ObjectIdentifier } from "../../object/object-api";
|
|
4
|
+
import { QueryBuilderModel, SearchApi } from "../search-api";
|
|
5
|
+
export declare enum SearchVisualization {
|
|
6
|
+
Summary = "summary",
|
|
7
|
+
Map = "map",
|
|
8
|
+
Table = "table"
|
|
9
|
+
}
|
|
10
|
+
export declare enum Visualization {
|
|
11
|
+
Summary = "summary",
|
|
12
|
+
Map = "map",
|
|
13
|
+
Table = "table",
|
|
14
|
+
Timeline = "timeline",
|
|
15
|
+
Network = "network"
|
|
16
|
+
}
|
|
17
|
+
export declare type MapFilter = MapBoundedPolygonFilter | MapRadiusFilter | MapBoundedBoxFilter | MapShapeFilter;
|
|
18
|
+
export interface SearchQuery {
|
|
19
|
+
additionalModes?: string[];
|
|
20
|
+
queryText: string;
|
|
21
|
+
visualizationName?: Visualization;
|
|
22
|
+
}
|
|
23
|
+
export interface NetworkData {
|
|
24
|
+
nodes: Array<{
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
}>;
|
|
28
|
+
links: Array<{
|
|
29
|
+
source: string;
|
|
30
|
+
target: string;
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}>;
|
|
34
|
+
options: {
|
|
35
|
+
showLinkLabels?: boolean;
|
|
36
|
+
showNodeAnnotation?: boolean;
|
|
37
|
+
showNodeLabels?: boolean;
|
|
38
|
+
showTimeline?: boolean;
|
|
39
|
+
showTransactionDetails?: boolean;
|
|
40
|
+
showTransactionLinks?: boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface ResolvedObjectIdentifier extends ObjectIdentifier {
|
|
44
|
+
compoundValues: string[];
|
|
45
|
+
}
|
|
46
|
+
export interface SearchAndCreateDialogModel {
|
|
47
|
+
entityName: string;
|
|
48
|
+
entityLabel: string;
|
|
49
|
+
relateToParentName?: string;
|
|
50
|
+
relateToParentLabel?: string;
|
|
51
|
+
canCreate?: boolean;
|
|
52
|
+
linkReasons?: Relationship[];
|
|
53
|
+
}
|
|
54
|
+
export interface SearchObject extends ObjectIdentifier {
|
|
55
|
+
title?: string;
|
|
56
|
+
isResolvedEntity?: boolean;
|
|
57
|
+
typeLabel?: string;
|
|
58
|
+
uniqueKey?: string;
|
|
59
|
+
compoundValues?: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface SearchAndCreateRelateToModel {
|
|
62
|
+
linkReason?: Relationship;
|
|
63
|
+
relateToTargetId?: string;
|
|
64
|
+
relateToTargetType?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface SearchAndCreateResponse {
|
|
67
|
+
selectedItem?: SearchObject;
|
|
68
|
+
relateToModel?: SearchAndCreateRelateToModel;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* {@link SearchApi} extension pertains to functionality related to SAS Visual Investigators search capabilities.
|
|
72
|
+
* These additional methods are available only in the SAS Visual Investigator Client Application.
|
|
73
|
+
* Accessed from the window at window.sas.vi.search.
|
|
74
|
+
* @extends SearchApi
|
|
75
|
+
*/
|
|
76
|
+
export interface ClientSearchApi extends SearchApi {
|
|
77
|
+
/**
|
|
78
|
+
* @method
|
|
79
|
+
* @description Performs a search against the svi-sand service.
|
|
80
|
+
* @param query {SearchRepresentation} Query to send to the service.
|
|
81
|
+
* @returns A promise containing the search response.
|
|
82
|
+
*/
|
|
83
|
+
performSearch(query: SearchRepresentation): Promise<SearchResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* @method
|
|
86
|
+
* @description Performs a search against the svi-sand service and navigates the user to the Search Results page.
|
|
87
|
+
* @param queryText {string} Text used to form the query.
|
|
88
|
+
* @param visualizationName {"summary" | "map" | "table"} Visualization to query for and then display to the user.
|
|
89
|
+
* @param [mapFilters] {MapFilter[]} The map filter object to include with the search query. This can consist of MapBoundedPolygonFilter, MapRadiusFilter, MapBoundedBoxFilter or MapShapeFilter.
|
|
90
|
+
* @param [queryMode] {"standard" | "phonetic" | "synonym"} Used to perform phonetic and synonym searches. Default is "standard".
|
|
91
|
+
*/
|
|
92
|
+
navigateSearch(queryText: string, visualizationName: SearchVisualization, mapFilters?: MapFilter[], queryMode?: QueryMode[]): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* @method
|
|
95
|
+
* @description Gets the current search query if one exists. Otherwise undefined.
|
|
96
|
+
*/
|
|
97
|
+
getCurrentSearchQuery(): SearchQuery | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* @method
|
|
100
|
+
* @description Converts a query model generated by the query builder to a string.
|
|
101
|
+
* @param queryModel {QueryBuilderModel} Query builder model.
|
|
102
|
+
* @returns A promise containing the string representation of the query.
|
|
103
|
+
*/
|
|
104
|
+
createQueryStringFromModel(queryModel: QueryBuilderModel): Promise<string>;
|
|
105
|
+
/**
|
|
106
|
+
* @method
|
|
107
|
+
* @description Gets the query builder model for the given ID. If no ID is given, it returns the query model for SEARCH.
|
|
108
|
+
* @param [id] {string} ID of the model to get. Defaults to SEARCH.
|
|
109
|
+
* @returns A query builder model.
|
|
110
|
+
*/
|
|
111
|
+
getQueryBuilderModel(id?: string): QueryBuilderModel | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* @method
|
|
114
|
+
* @description Sets the query builder model for the given ID. If no ID is given, it sets the query model for SEARCH.
|
|
115
|
+
* Once stored, the query model is used to initially populate a Query Builder opened with the given ID.
|
|
116
|
+
* @param queryModel {QueryBuilderModel} A query builder model.
|
|
117
|
+
* @param [id] {string} ID of the model to set. Defaults to SEARCH.
|
|
118
|
+
*/
|
|
119
|
+
setQueryBuilderModel(queryModel: QueryBuilderModel, id?: string): void;
|
|
120
|
+
/**
|
|
121
|
+
* @method
|
|
122
|
+
* @description Opens up the "Add Objects to Workspace" dialog box and then performs the action once a document and workspace have been selected.
|
|
123
|
+
* @param visualizationName {Visualization} Visualization to initially display once the objects have been added.
|
|
124
|
+
* @param objects {Array<ObjectIdentifier | ResolvedObjectIdentifier>} Objects to add to the workspace.
|
|
125
|
+
* @param [currentObject] {ObjectIdentifier} The document the user is currently viewing. This is used as a visual aid in the dialog box.
|
|
126
|
+
* @param [networkData] {NetworkData} Network visualization data to be copied to the workspace.
|
|
127
|
+
*/
|
|
128
|
+
openAddObjectsToWorkspaceDialog(visualizationName: Visualization, objects: Array<ObjectIdentifier | ResolvedObjectIdentifier>, currentObject?: ObjectIdentifier, networkData?: NetworkData): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* @method
|
|
131
|
+
* @description Adds an image to the Insights selected in the "Add image to Insights" dialog box.
|
|
132
|
+
* @param imageData {Uint8Array} Image to add.
|
|
133
|
+
* @param contentType {string} This is used in the content-type header when the file is uploaded. For example 'image/png'.
|
|
134
|
+
* @param [height] {string} Height of the Insights cell.
|
|
135
|
+
* @param [width] {string} Width of the Insights cell.
|
|
136
|
+
*/
|
|
137
|
+
openAddImageToInsightsDialog(imageData: Uint8Array, contentType: string, height?: string, width?: string): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* @method
|
|
140
|
+
* @description Creates a new workspace in the target object, populating it with an initial set of objects.
|
|
141
|
+
* Allows the creation of new objects assuming create mode is supported for the object type.
|
|
142
|
+
* @param objectsToAdd {Array<ObjectIdentifier | ResolvedObjectIdentifier>} Objects to add to the workspace.
|
|
143
|
+
* @param targetObjectType {string} Object type where the workspace is created.
|
|
144
|
+
* @param [targetObjectId] {string} Object to add to the workspace. If undefined, a new object is created.
|
|
145
|
+
* @param [visualization] {"summary" | "map" | "table" | "timeline" | "network"} Visualization to initially display in the new workspace.
|
|
146
|
+
* @param [workspaceName] {string} Name of the new workspace.
|
|
147
|
+
* @param [networkData] {NetworkData} Network visualization data to be copied to the new workspace.
|
|
148
|
+
*/
|
|
149
|
+
addToNewWorkspace(objectsToAdd: Array<ObjectIdentifier | ResolvedObjectIdentifier>, targetObjectType: string, targetObjectId?: string, visualization?: Visualization, workspaceName?: string, networkData?: NetworkData): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* @method
|
|
152
|
+
* @description Launches a wizard allowing users to search first, before creating an object/relationship.
|
|
153
|
+
* Relationship wizard is determined by relateToParentLabel or relateToParentName being defined within the wizardValues parameter.
|
|
154
|
+
* @param wizardValues {SearchAndCreateDialogModel} Object containing entity and relationship data.
|
|
155
|
+
* @param [onRelationshipSuccess] {function} A callback function that is defined when creating a relationship.
|
|
156
|
+
* It is invoked when a relationship is saved successfully.
|
|
157
|
+
*/
|
|
158
|
+
openSearchAndCreateDialog(wizardValues: SearchAndCreateDialogModel, onRelationshipSuccess?: () => void): Promise<SearchAndCreateResponse>;
|
|
159
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var SearchVisualization;
|
|
2
|
+
(function (SearchVisualization) {
|
|
3
|
+
SearchVisualization["Summary"] = "summary";
|
|
4
|
+
SearchVisualization["Map"] = "map";
|
|
5
|
+
SearchVisualization["Table"] = "table";
|
|
6
|
+
})(SearchVisualization || (SearchVisualization = {}));
|
|
7
|
+
export var Visualization;
|
|
8
|
+
(function (Visualization) {
|
|
9
|
+
Visualization["Summary"] = "summary";
|
|
10
|
+
Visualization["Map"] = "map";
|
|
11
|
+
Visualization["Table"] = "table";
|
|
12
|
+
Visualization["Timeline"] = "timeline";
|
|
13
|
+
Visualization["Network"] = "network";
|
|
14
|
+
})(Visualization || (Visualization = {}));
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface QueryBuilderItem {
|
|
2
|
+
booleanValue?: boolean | string;
|
|
3
|
+
boost?: number;
|
|
4
|
+
dateTimeValue?: string;
|
|
5
|
+
dateValue?: string;
|
|
6
|
+
exclude?: boolean;
|
|
7
|
+
field?: string;
|
|
8
|
+
fromDateTimeValue?: string;
|
|
9
|
+
fromDateValue?: string;
|
|
10
|
+
fromNumericValue?: number;
|
|
11
|
+
numericValue?: number;
|
|
12
|
+
operator?: string;
|
|
13
|
+
phonetic?: boolean;
|
|
14
|
+
previousField?: string;
|
|
15
|
+
proximity?: number;
|
|
16
|
+
rangeValidationError?: boolean;
|
|
17
|
+
referenceValue?: string;
|
|
18
|
+
relationshipField?: boolean;
|
|
19
|
+
relationshipTypeValue?: string;
|
|
20
|
+
relativeDateDatetimeNumericValue?: number;
|
|
21
|
+
relativeDateDatetimeUnitsValue?: string;
|
|
22
|
+
stringValidationError?: boolean;
|
|
23
|
+
synonym?: boolean;
|
|
24
|
+
textValue?: string;
|
|
25
|
+
toDateTimeValue?: string;
|
|
26
|
+
toDateValue?: string;
|
|
27
|
+
toNumericValue?: number;
|
|
28
|
+
userGroupValue?: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
export interface QueryBuilderEntityModel {
|
|
34
|
+
entity: string;
|
|
35
|
+
queries: QueryBuilderItem[];
|
|
36
|
+
singleChildSearch?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface QueryBuilderModel {
|
|
39
|
+
manualQueryString?: string;
|
|
40
|
+
model: QueryBuilderEntityModel[];
|
|
41
|
+
}
|
|
42
|
+
export interface QueryBuilderResult {
|
|
43
|
+
queryString: string;
|
|
44
|
+
queryModel: QueryBuilderModel;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* This API pertains to functionality related to SAS Visual Investigator's search capabilities.
|
|
48
|
+
* Accessed from the window at window.sas.vi.search.
|
|
49
|
+
*/
|
|
50
|
+
export interface SearchApi {
|
|
51
|
+
/**
|
|
52
|
+
* @method
|
|
53
|
+
* @description Opens the query builder dialog allowing the user to create a new query or edit an existing one passed in via the
|
|
54
|
+
* query model parameter.
|
|
55
|
+
* @param dialogTitle {string} Title of the dialog.
|
|
56
|
+
* @param [submitButtonText] {string} Text for the dialog submit button.
|
|
57
|
+
* @param [queryModel] {QueryBuilderModel} An existing query model that can be used to initially populate the query builder.
|
|
58
|
+
* @param [enforceObjectType] {string} If enforceObjectType is set, the user cannot choose which entity to query. It is pre-set to the specified entity.
|
|
59
|
+
* @param [restrictObjectTypes] {Array<string>} If restrictObjectTypes is set, then the entity dropdown is filtered to show only the entities in this list.
|
|
60
|
+
* @returns A promise containing the result of the dialog box.
|
|
61
|
+
* @example
|
|
62
|
+
* const searchApi: SearchApi = window.sas.vi.search;
|
|
63
|
+
* const dialogTitle = 'Intelligence Search'
|
|
64
|
+
* const submitButtonText = 'Submit'
|
|
65
|
+
* const objectType = 'intel'
|
|
66
|
+
*
|
|
67
|
+
* searchApi.openQueryBuilderDialog(dialogTitle, submitButtonText, undefined, objectType).then( (query) => {
|
|
68
|
+
* // Perform query action
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
openQueryBuilderDialog(dialogTitle: string, submitButtonText?: string, queryModel?: QueryBuilderModel, enforceObjectType?: string, restrictObjectTypes?: string[]): Promise<QueryBuilderResult>;
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sheet-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sheet-api";
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ObjectIdentifier, ObjectSheetSettings, VIObject } from "../object/object-api";
|
|
2
|
+
import { NetworkData, ResolvedObjectIdentifier, Visualization } from "../search/client/client-search-api";
|
|
3
|
+
/**
|
|
4
|
+
* This API pertains to functionality related to SAS Visual Investigators sheet capabilities.
|
|
5
|
+
* Accessed from the window at window.sas.vi.sheet.
|
|
6
|
+
*/
|
|
7
|
+
export interface SheetApi {
|
|
8
|
+
/**
|
|
9
|
+
* @method
|
|
10
|
+
* @description Gets a specified object that is currently open and allows sheets.
|
|
11
|
+
* @param objectId {string} Open object's ID.
|
|
12
|
+
* @param objectType {string} Open object's type.
|
|
13
|
+
* @returns The specified object or undefined if it is not found.
|
|
14
|
+
*/
|
|
15
|
+
getOpenObject(objectId: string, objectType: string): VIObject | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* @method
|
|
18
|
+
* @description Gets all of the objects currently open that allow sheets.
|
|
19
|
+
* @returns A list of currently open objects or an empty list if none are found.
|
|
20
|
+
*/
|
|
21
|
+
getOpenObjects(): VIObject[];
|
|
22
|
+
/**
|
|
23
|
+
* @method
|
|
24
|
+
* @description Gets the open object containing the specified sheet.
|
|
25
|
+
* @param sheet {ClientSheet} Sheet contained within the expected object.
|
|
26
|
+
* @returns The requested object or undefined if it could not be found.
|
|
27
|
+
*/
|
|
28
|
+
getOpenObjectBySheet(sheet: ClientSheet): VIObject | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @method
|
|
31
|
+
* @description Creates and returns the list containing all Context Menu Items for a right-click on a network diagram node.
|
|
32
|
+
* The menu is not rendered on the network diagram.
|
|
33
|
+
* @param workspace {ClientSheet} Workspace containing the network.
|
|
34
|
+
* @param handleAddToWorkspaceFn {function} A callback to handle adding the selected nodes to a Workspace.
|
|
35
|
+
* @param handleAddToInsightsFn {function} A callback to handle adding the NLD to an Insight.
|
|
36
|
+
* @returns Promise resolving to the list containing all Context Menu Items.
|
|
37
|
+
*/
|
|
38
|
+
createContextMenuForNodes(workspace: ClientSheet, handleAddToWorkspaceFn: () => void, handleAddToInsightsFn: () => void): Promise<ContextMenuItem[]>;
|
|
39
|
+
/**
|
|
40
|
+
* @method
|
|
41
|
+
* @description Adds objects to a workspace selected in the "Add Objects to Workspace" dialog box.
|
|
42
|
+
* @param objects {Array<ObjectIdentifier> | ResolvedObjectIdentifier} Objects to add to a workspace.
|
|
43
|
+
* @param [options] {AddAllObjectsToWorkspaceDialogOptions} Additional options to customize the dialog box and select the Visualization to display after the objects are added.
|
|
44
|
+
*/
|
|
45
|
+
openAddAllObjectsToWorkspaceDialog(objects: Array<ObjectIdentifier | ResolvedObjectIdentifier>, options?: AddAllObjectsToWorkspaceDialogOptions): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* @method
|
|
48
|
+
* @description Adds an image to the Insights selected in the "Add image to Insights" dialog box.
|
|
49
|
+
* @param imageData {Uint8Array | HTMLElement} Image to add. Either directly as an array of bytes or from an HTMLElement on the page.
|
|
50
|
+
* @param [contentType="image/png"] {string} Used in the content-type header when the file is uploaded.
|
|
51
|
+
* @param [height] {string} Height of the Insights cell.
|
|
52
|
+
* @param [width] {string} Width of the Insights cell.
|
|
53
|
+
*/
|
|
54
|
+
openAddImageToInsightsDialog(imageData: Uint8Array | HTMLElement, contentType: string, height?: string, width?: string): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* @method
|
|
57
|
+
* @description Creates a new workspace in the target object, populating it with an initial set of objects.
|
|
58
|
+
* Allows the creation of new objects assuming create mode is supported for the object type.
|
|
59
|
+
* If options.targetObjectId is undefined, then a new object is created.
|
|
60
|
+
* @param objectsToAdd {Array<ObjectIdentifier | ResolvedObjectIdentifier>} Objects to add to the new workspace.
|
|
61
|
+
* @param targetObjectType {string} Object type where the workspace is created.
|
|
62
|
+
* @param [options] {AddToNewWorkspaceOptions} Additional options to set a target object ID, workspace name and so on.
|
|
63
|
+
*/
|
|
64
|
+
addToNewWorkspace(objectsToAdd: Array<ObjectIdentifier | ResolvedObjectIdentifier>, targetObjectType: string, options: AddToNewWorkspaceOptions): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* @method
|
|
67
|
+
* @description Adds objects to an existing workspace.
|
|
68
|
+
* @param targetObject {VIObject} Object containing the existing workspace.
|
|
69
|
+
* @param workspaceClientId {string} Client ID of the workspace to add to.
|
|
70
|
+
* @param objectsToAdd {Array<ObjectIdentifier | ResolvedObjectIdentifier>} Objects to add. It is safe to pass objects that are already in the workspace.
|
|
71
|
+
* @param [networkData] {NetworkData} If provided, network data that shall be merged into any existing network data on the workspace.
|
|
72
|
+
* @param [isUndoRedo] {boolean} Specifies if the function was called as part of an undo/redo operation.
|
|
73
|
+
*/
|
|
74
|
+
addToExistingWorkspace(targetObject: VIObject, workspaceClientId: string, objectsToAdd: Array<ObjectIdentifier | ResolvedObjectIdentifier>, networkData?: NetworkData, isUndoRedo?: boolean): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
export interface AddAllObjectsToWorkspaceDialogOptions {
|
|
77
|
+
/**
|
|
78
|
+
* The visualization to initially display once the objects have been added
|
|
79
|
+
*/
|
|
80
|
+
visualizationName?: Visualization;
|
|
81
|
+
/**
|
|
82
|
+
* The object the user is currently viewing. This is used as a visual aid in the dialog
|
|
83
|
+
*/
|
|
84
|
+
currentObject?: ObjectIdentifier;
|
|
85
|
+
/**
|
|
86
|
+
* Network visualization data to be copied to the workspace
|
|
87
|
+
*/
|
|
88
|
+
networkData?: NetworkData;
|
|
89
|
+
}
|
|
90
|
+
export interface AddToNewWorkspaceOptions {
|
|
91
|
+
/**
|
|
92
|
+
* The object to add the workspace to. If undefined a new object will be created.
|
|
93
|
+
*/
|
|
94
|
+
targetObjectId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The visualization to initially display in the new workspace.
|
|
97
|
+
*/
|
|
98
|
+
visualization?: Visualization;
|
|
99
|
+
/**
|
|
100
|
+
* The name of the new workspace.
|
|
101
|
+
*/
|
|
102
|
+
workspaceName?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Network visualization data to be copied to the new workspace.
|
|
105
|
+
*/
|
|
106
|
+
networkData?: NetworkData;
|
|
107
|
+
}
|
|
108
|
+
export interface ContextMenuItem {
|
|
109
|
+
/**
|
|
110
|
+
* The default label string for the menu item.
|
|
111
|
+
*/
|
|
112
|
+
label?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The default field for the font icon to be displayed next to the menu item.
|
|
115
|
+
*/
|
|
116
|
+
icon?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The default name for the field used to place a checkmark on the menu item.
|
|
119
|
+
* The meaning of value is:
|
|
120
|
+
* true - will show a checkbox on the menu item
|
|
121
|
+
* false - will show no checkmark but an empty space will be reserved for a checkmark
|
|
122
|
+
* undefined - checkmarks are not used for this menu item.
|
|
123
|
+
*
|
|
124
|
+
* Notes: The menu component will not automatically change the value. It must be done by
|
|
125
|
+
* the selectItem handler.
|
|
126
|
+
* When value is false, it is recommended that the menu text indicate that the menu item
|
|
127
|
+
* can have a value.
|
|
128
|
+
*/
|
|
129
|
+
value?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The default CSS class name of a SAS font icon that will be placed
|
|
132
|
+
* next to the menu expand arrow in the menu item.
|
|
133
|
+
*/
|
|
134
|
+
indicatorIcon?: string;
|
|
135
|
+
/**
|
|
136
|
+
* URL to retrieve custom icon to display
|
|
137
|
+
*/
|
|
138
|
+
iconUrl?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Indicates whether the menu item can be clicked.
|
|
141
|
+
*/
|
|
142
|
+
disabled?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* If true, this item will be shown as a separator, and all other properties will be ignored.
|
|
145
|
+
*/
|
|
146
|
+
separator?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Indicates that the menu item is not selectable but is displayed as a heading.
|
|
149
|
+
* If heading is true then the value field and indicator are ignored.
|
|
150
|
+
*/
|
|
151
|
+
heading?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* If there is a cascade menu then its data is in the items.
|
|
154
|
+
*/
|
|
155
|
+
items?: any[];
|
|
156
|
+
/**
|
|
157
|
+
* When present, this method will be called when this menu item is selected.
|
|
158
|
+
*/
|
|
159
|
+
click?: (event?: any) => void;
|
|
160
|
+
}
|
|
161
|
+
export interface SheetCell {
|
|
162
|
+
id: string;
|
|
163
|
+
type: string;
|
|
164
|
+
}
|
|
165
|
+
export interface Sheet {
|
|
166
|
+
id: number;
|
|
167
|
+
name: string;
|
|
168
|
+
cells: SheetCell[];
|
|
169
|
+
type: string;
|
|
170
|
+
created?: string;
|
|
171
|
+
createdBy?: string;
|
|
172
|
+
lastModified?: string;
|
|
173
|
+
lastModifiedBy?: string;
|
|
174
|
+
tabOrder: number;
|
|
175
|
+
version?: string;
|
|
176
|
+
document: {
|
|
177
|
+
id: string;
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
export interface ClientSheet extends Sheet {
|
|
182
|
+
clientId: string;
|
|
183
|
+
document: ObjectSheetSettings;
|
|
184
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|