@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.
Files changed (140) hide show
  1. package/alert-reps/index.d.ts +677 -0
  2. package/alert-reps/package.json +5 -0
  3. package/component/bindings.d.ts +85 -0
  4. package/component/bindings.js +1 -0
  5. package/component/index.d.ts +49 -0
  6. package/component/index.js +16 -0
  7. package/component/package.json +9 -0
  8. package/component/public-api.d.ts +1 -0
  9. package/component/public-api.js +1 -0
  10. package/config/config-api.d.ts +92 -0
  11. package/config/config-api.js +6 -0
  12. package/config/package.json +9 -0
  13. package/config/public-api.d.ts +1 -0
  14. package/config/public-api.js +1 -0
  15. package/control/control-api.d.ts +450 -0
  16. package/control/control-api.js +1 -0
  17. package/control/data-types.d.ts +9 -0
  18. package/control/data-types.js +1 -0
  19. package/control/events.d.ts +75 -0
  20. package/control/events.js +5 -0
  21. package/control/file.d.ts +14 -0
  22. package/control/file.js +1 -0
  23. package/control/image.d.ts +14 -0
  24. package/control/image.js +1 -0
  25. package/control/package.json +9 -0
  26. package/control/page.d.ts +55 -0
  27. package/control/page.js +1 -0
  28. package/control/public-api.d.ts +8 -0
  29. package/control/public-api.js +8 -0
  30. package/control/restrictions.d.ts +33 -0
  31. package/control/restrictions.js +1 -0
  32. package/control/toolbar-property-api.d.ts +16 -0
  33. package/control/toolbar-property-api.js +1 -0
  34. package/current-user/currentUser-api.d.ts +65 -0
  35. package/current-user/currentUser-api.js +11 -0
  36. package/current-user/package.json +9 -0
  37. package/current-user/public-api.d.ts +1 -0
  38. package/current-user/public-api.js +1 -0
  39. package/event/event-api.d.ts +57 -0
  40. package/event/event-api.js +26 -0
  41. package/event/package.json +9 -0
  42. package/event/public-api.d.ts +1 -0
  43. package/event/public-api.js +1 -0
  44. package/file/file-api.d.ts +44 -0
  45. package/file/file-api.js +1 -0
  46. package/file/package.json +9 -0
  47. package/file/public-api.d.ts +1 -0
  48. package/file/public-api.js +1 -0
  49. package/http/index.d.ts +364 -0
  50. package/http/index.js +45 -0
  51. package/http/package.json +9 -0
  52. package/http/public-api.d.ts +1 -0
  53. package/http/public-api.js +1 -0
  54. package/index.d.ts +65 -0
  55. package/index.js +1 -0
  56. package/localization/localization-api.d.ts +26 -0
  57. package/localization/localization-api.js +1 -0
  58. package/localization/package.json +9 -0
  59. package/localization/public-api.d.ts +1 -0
  60. package/localization/public-api.js +1 -0
  61. package/metadata/admin/admin-metadata-api.d.ts +18 -0
  62. package/metadata/admin/admin-metadata-api.js +1 -0
  63. package/metadata/metadata-api.d.ts +237 -0
  64. package/metadata/metadata-api.js +1 -0
  65. package/metadata/package.json +9 -0
  66. package/metadata/public-api.d.ts +2 -0
  67. package/metadata/public-api.js +2 -0
  68. package/object/object-api.d.ts +507 -0
  69. package/object/object-api.js +13 -0
  70. package/object/package.json +9 -0
  71. package/object/public-api.d.ts +1 -0
  72. package/object/public-api.js +1 -0
  73. package/package.json +14 -0
  74. package/page-admin/package.json +9 -0
  75. package/page-admin/page-admin-api.d.ts +29 -0
  76. package/page-admin/page-admin-api.js +11 -0
  77. package/page-admin/public-api.d.ts +1 -0
  78. package/page-admin/public-api.js +1 -0
  79. package/page-model/package.json +9 -0
  80. package/page-model/page-model-api.d.ts +126 -0
  81. package/page-model/page-model-api.js +11 -0
  82. package/page-model/public-api.d.ts +1 -0
  83. package/page-model/public-api.js +1 -0
  84. package/page-state/package.json +9 -0
  85. package/page-state/page-state-api.d.ts +59 -0
  86. package/page-state/page-state-api.js +1 -0
  87. package/page-state/public-api.d.ts +1 -0
  88. package/page-state/public-api.js +1 -0
  89. package/property/package.json +9 -0
  90. package/property/property-api.d.ts +46 -0
  91. package/property/property-api.js +17 -0
  92. package/property/public-api.d.ts +1 -0
  93. package/property/public-api.js +1 -0
  94. package/public-api.d.ts +1 -0
  95. package/public-api.js +1 -0
  96. package/reference-data/package.json +9 -0
  97. package/reference-data/public-api.d.ts +1 -0
  98. package/reference-data/public-api.js +1 -0
  99. package/reference-data/refData.d.ts +72 -0
  100. package/reference-data/refData.js +1 -0
  101. package/resource/package.json +9 -0
  102. package/resource/public-api.d.ts +1 -0
  103. package/resource/public-api.js +1 -0
  104. package/resource/resource-api.d.ts +17 -0
  105. package/resource/resource-api.js +1 -0
  106. package/score-reps/index.d.ts +133 -0
  107. package/score-reps/package.json +5 -0
  108. package/search/client/client-search-api.d.ts +159 -0
  109. package/search/client/client-search-api.js +14 -0
  110. package/search/package.json +9 -0
  111. package/search/public-api.d.ts +2 -0
  112. package/search/public-api.js +2 -0
  113. package/search/search-api.d.ts +72 -0
  114. package/search/search-api.js +1 -0
  115. package/sheet/package.json +9 -0
  116. package/sheet/public-api.d.ts +1 -0
  117. package/sheet/public-api.js +1 -0
  118. package/sheet/sheet-api.d.ts +184 -0
  119. package/sheet/sheet-api.js +1 -0
  120. package/svi-datahub/index.d.ts +4514 -0
  121. package/svi-datahub/package.json +5 -0
  122. package/svi-sand/index.d.ts +1057 -0
  123. package/svi-sand/package.json +5 -0
  124. package/tab/package.json +9 -0
  125. package/tab/public-api.d.ts +1 -0
  126. package/tab/public-api.js +1 -0
  127. package/tab/tab-api.d.ts +33 -0
  128. package/tab/tab-api.js +1 -0
  129. package/theme/package.json +9 -0
  130. package/theme/public-api.d.ts +1 -0
  131. package/theme/public-api.js +1 -0
  132. package/theme/theme-api.d.ts +35 -0
  133. package/theme/theme-api.js +17 -0
  134. package/time-slider/index.d.ts +35 -0
  135. package/time-slider/index.js +17 -0
  136. package/traversal/package.json +9 -0
  137. package/traversal/public-api.d.ts +1 -0
  138. package/traversal/public-api.js +1 -0
  139. package/traversal/traversal-api.d.ts +34 -0
  140. package/traversal/traversal-api.js +1 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@types/svi-sand",
3
+ "version": "12.4.64",
4
+ "types": "index.d.ts"
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/tab",
3
+ "files": [
4
+ "**/*.d.ts",
5
+ "**/*.js"
6
+ ],
7
+ "main": "public-api.js",
8
+ "types": "public-api.d.ts"
9
+ }
@@ -0,0 +1 @@
1
+ export * from "./tab-api";
@@ -0,0 +1 @@
1
+ export * from "./tab-api";
@@ -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,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/theme",
3
+ "files": [
4
+ "**/*.d.ts",
5
+ "**/*.js"
6
+ ],
7
+ "main": "public-api.js",
8
+ "types": "public-api.d.ts"
9
+ }
@@ -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,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/traversal",
3
+ "files": [
4
+ "**/*.d.ts",
5
+ "**/*.js"
6
+ ],
7
+ "main": "public-api.js",
8
+ "types": "public-api.d.ts"
9
+ }
@@ -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 {};