@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
package/tab/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tab-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tab-api";
|
package/tab/tab-api.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PageModeEvent } from "../control/page";
|
|
2
|
+
/**
|
|
3
|
+
* This API provides the functionality related to tabs.
|
|
4
|
+
* Accessed from the window at window.sas.vi.tab.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabApi {
|
|
7
|
+
/**
|
|
8
|
+
* @method
|
|
9
|
+
* @description Opens the tab of a specified object.
|
|
10
|
+
* @param objectType {string} Type of the object to be opened.
|
|
11
|
+
* @param objectId {string} ID of the object to be opened.
|
|
12
|
+
* @param [suppressNavigation = false] {boolean} Allows the tab to be opened without navigating to it.
|
|
13
|
+
* @param [mode = PageModeEvent.OPEN] {PageModeEvent} Mode to open the tab in.
|
|
14
|
+
* @return A promise that resolves when the tab is opened.
|
|
15
|
+
*/
|
|
16
|
+
openTab(objectType: string, objectId: string, suppressNavigation?: boolean, mode?: PageModeEvent): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* @method
|
|
19
|
+
* @description Checks to see if an open tab is dirty.
|
|
20
|
+
* @param objectType {string} Tab's object type.
|
|
21
|
+
* @param objectId {string} An open tab's object ID.
|
|
22
|
+
* @return true/false if the tab is dirty/not.
|
|
23
|
+
*/
|
|
24
|
+
isOpenTabDirty(objectType: string, objectId: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @method
|
|
27
|
+
* @description Sets the dirty state of an open tab.
|
|
28
|
+
* @param objectType {string} Open tab's object type.
|
|
29
|
+
* @param objectId {string} Open tab's object ID.
|
|
30
|
+
* @param dirtyState {boolean} Sets the tab's dirty state.
|
|
31
|
+
*/
|
|
32
|
+
setOpenTabDirty(objectType: string, objectId: string, dirtyState: boolean): Promise<void>;
|
|
33
|
+
}
|
package/tab/tab-api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./theme-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./theme-api";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum Theme {
|
|
2
|
+
Illuminate = "sas_corporate",
|
|
3
|
+
Inspire = "sas_inspire",
|
|
4
|
+
HighContrast = "sas_hcb"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* This API provides the functionality related to SAS Visual Investigator's application theme.
|
|
8
|
+
* Accessed from the window at window.sas.vi.theme.
|
|
9
|
+
*/
|
|
10
|
+
export interface ThemeApi {
|
|
11
|
+
/**
|
|
12
|
+
* @method
|
|
13
|
+
* @description Gets the current theme.
|
|
14
|
+
* @returns The current theme.
|
|
15
|
+
*/
|
|
16
|
+
getCurrent(): Theme;
|
|
17
|
+
/**
|
|
18
|
+
* @method
|
|
19
|
+
* @description Callback function when the theme is changed.
|
|
20
|
+
* @param {ThemeApi~themeChangeHandler} Function to be called when a theme is changed.
|
|
21
|
+
* @returns {ThemeApi~stopThemeChangeHandler} A function that, when invoked, stops the callback from being called.
|
|
22
|
+
*/
|
|
23
|
+
onChange(callback: (themeName: Theme) => void): () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A callback function to handle theme changes.
|
|
27
|
+
* @callback ThemeApi~themeChangeHandler
|
|
28
|
+
* @param {theme} themeName New theme.
|
|
29
|
+
* @returns {void}
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Stops handling theme change events.
|
|
33
|
+
* @callback ThemeApi~stopThemeChangeHandler
|
|
34
|
+
* @returns {void}
|
|
35
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export var Theme;
|
|
2
|
+
(function (Theme) {
|
|
3
|
+
Theme["Illuminate"] = "sas_corporate";
|
|
4
|
+
Theme["Inspire"] = "sas_inspire";
|
|
5
|
+
Theme["HighContrast"] = "sas_hcb";
|
|
6
|
+
})(Theme || (Theme = {}));
|
|
7
|
+
/**
|
|
8
|
+
* A callback function to handle theme changes.
|
|
9
|
+
* @callback ThemeApi~themeChangeHandler
|
|
10
|
+
* @param {theme} themeName New theme.
|
|
11
|
+
* @returns {void}
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Stops handling theme change events.
|
|
15
|
+
* @callback ThemeApi~stopThemeChangeHandler
|
|
16
|
+
* @returns {void}
|
|
17
|
+
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the set of from and to events that is used to
|
|
3
|
+
* build the histogram within the time slider.
|
|
4
|
+
*/
|
|
5
|
+
export interface TimeSliderEventDates {
|
|
6
|
+
fromEvents: Date[];
|
|
7
|
+
toEvents: Date[];
|
|
8
|
+
}
|
|
9
|
+
export declare enum DateTimeInterval {
|
|
10
|
+
Second = "second",
|
|
11
|
+
Minute = "minute",
|
|
12
|
+
Hour = "hour",
|
|
13
|
+
Day = "day",
|
|
14
|
+
Week = "week",
|
|
15
|
+
Month = "month",
|
|
16
|
+
Year = "year",
|
|
17
|
+
Quarter = "qtr",
|
|
18
|
+
Millisecond = "millisecond"
|
|
19
|
+
}
|
|
20
|
+
export declare enum HandleType {
|
|
21
|
+
Single = 1,
|
|
22
|
+
Double = 2
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The time-slider.component.ts uses a single or double handled slider
|
|
26
|
+
* to specify a range of dates. This interface is the data associated
|
|
27
|
+
* with that range. It accommodates a single or double handled range.
|
|
28
|
+
*
|
|
29
|
+
* For a single handled slider, the start and end dates are the same.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export interface TimeSliderRange {
|
|
33
|
+
start?: Date;
|
|
34
|
+
end?: Date;
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export var DateTimeInterval;
|
|
2
|
+
(function (DateTimeInterval) {
|
|
3
|
+
DateTimeInterval["Second"] = "second";
|
|
4
|
+
DateTimeInterval["Minute"] = "minute";
|
|
5
|
+
DateTimeInterval["Hour"] = "hour";
|
|
6
|
+
DateTimeInterval["Day"] = "day";
|
|
7
|
+
DateTimeInterval["Week"] = "week";
|
|
8
|
+
DateTimeInterval["Month"] = "month";
|
|
9
|
+
DateTimeInterval["Year"] = "year";
|
|
10
|
+
DateTimeInterval["Quarter"] = "qtr";
|
|
11
|
+
DateTimeInterval["Millisecond"] = "millisecond";
|
|
12
|
+
})(DateTimeInterval || (DateTimeInterval = {}));
|
|
13
|
+
export var HandleType;
|
|
14
|
+
(function (HandleType) {
|
|
15
|
+
HandleType[HandleType["Single"] = 1] = "Single";
|
|
16
|
+
HandleType[HandleType["Double"] = 2] = "Double";
|
|
17
|
+
})(HandleType || (HandleType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./traversal-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./traversal-api";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Record, Traversal } from "../svi-datahub";
|
|
2
|
+
export interface TraversalWithEndpoint extends Traversal {
|
|
3
|
+
endPoint?: string | null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This API provides functionality related to traversal data.
|
|
7
|
+
* Accessed from the window at window.sas.vi.traversal.
|
|
8
|
+
*/
|
|
9
|
+
export interface TraversalApi {
|
|
10
|
+
/**
|
|
11
|
+
* @method
|
|
12
|
+
* @description Gets field values from a list of traversals.
|
|
13
|
+
* @param rootObjectId {string} Traversal's root object ID.
|
|
14
|
+
* @param rootObjectType {string} Traversal's root object Type.
|
|
15
|
+
* @param traversalUuids {string[]} Array of traversal UUIDs associated with the root object type.
|
|
16
|
+
* @param destinationObjectType {string} Destination object's type.
|
|
17
|
+
* @param fields {string[]} Names of the fields to be retrieved.
|
|
18
|
+
* @returns Promise containing the array of objects with specified fields and their values.
|
|
19
|
+
*/
|
|
20
|
+
getFieldsByTraversals(rootObjectId: string, rootObjectType: string, traversalUuids: string[], destinationObjectType: string, fields: string[]): Promise<Record[]>;
|
|
21
|
+
/**
|
|
22
|
+
* @method
|
|
23
|
+
* @description Gets all Traversals.
|
|
24
|
+
* @returns Promise containing the array of Traversals.
|
|
25
|
+
*/
|
|
26
|
+
getTraversals(): Promise<TraversalWithEndpoint[]>;
|
|
27
|
+
/**
|
|
28
|
+
* @method
|
|
29
|
+
* @description Gets a traversal with the specified UUID parameter.
|
|
30
|
+
* @param uuid {string} UUID of the traversal to be returned.
|
|
31
|
+
* @returns Promise containing the specified traversal.
|
|
32
|
+
*/
|
|
33
|
+
getTraversalByUuid(uuid: string): Promise<Traversal>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|