@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,33 @@
1
+ import { FieldType } from "./data-types";
2
+ export interface RequirableRestriction {
3
+ required: boolean;
4
+ }
5
+ export interface FieldRestrictions extends RequirableRestriction {
6
+ readOnly: boolean;
7
+ systemReserved: boolean;
8
+ dataType: FieldType;
9
+ }
10
+ export interface StringRestrictions extends FieldRestrictions {
11
+ dataType: "STRING";
12
+ maxLength?: number;
13
+ }
14
+ export interface NumericRestrictions extends FieldRestrictions {
15
+ fieldDataType: "NUMERIC";
16
+ scale?: number;
17
+ precision?: number;
18
+ }
19
+ export interface ReferenceDataRestrictions extends FieldRestrictions {
20
+ constrainingListName: string;
21
+ cascadingReferenceDataName?: string;
22
+ cascadingReferenceDataFilterByCode?: string;
23
+ cascadingReferenceDataFilterByField?: string;
24
+ }
25
+ export declare type UserGroupStrategy = "USERS" | "GROUPS" | "USERS_AND_GROUPS";
26
+ export interface UserGroupRestrictions extends FieldRestrictions {
27
+ allowMultipleSelections: boolean;
28
+ userSelectionStrategy: UserGroupStrategy;
29
+ }
30
+ export interface FileRestrictions extends RequirableRestriction {
31
+ allowMultipleFiles: boolean;
32
+ }
33
+ export declare type FieldTypeToRestrictions<Type extends FieldType> = Type extends "STRING" ? StringRestrictions : Type extends "NUMERIC" ? NumericRestrictions : Type extends "REFERENCEDATA" ? ReferenceDataRestrictions : Type extends "USER_GROUP" ? UserGroupRestrictions : FieldRestrictions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This API is available on the Toolbar Property Editor controls to handle property changes and trigger refreshes.
3
+ */
4
+ export interface ToolbarPropertyApi {
5
+ /**
6
+ * Methods related to the entire page.
7
+ */
8
+ readonly page: {
9
+ /**
10
+ * Registers a function to be invoked whenever one of the calling toolbar control's properties change.
11
+ * @method
12
+ * @param handler The function to be invoked.
13
+ */
14
+ onPropertyChange(handler: (category: string, property: string, currentValue: any, previousValue: any) => void): void;
15
+ };
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,65 @@
1
+ export declare enum IdentityState {
2
+ Active = "active",
3
+ Inactive = "inactive",
4
+ Locked = "locked"
5
+ }
6
+ export declare enum IdentityType {
7
+ User = "user",
8
+ Group = "group"
9
+ }
10
+ export interface IdentitySummary {
11
+ id: string;
12
+ name?: string;
13
+ description?: string;
14
+ creationTimeStamp?: string;
15
+ modifiedTimeStamp?: string;
16
+ providerId?: string;
17
+ state?: IdentityState;
18
+ type: IdentityType;
19
+ }
20
+ export interface UserSummary extends IdentitySummary {
21
+ readonly type: IdentityType.User;
22
+ }
23
+ export interface SessionDetails {
24
+ authorizedFeatures: string[];
25
+ displayName: string;
26
+ id: string;
27
+ softwareVersionNumber: string;
28
+ }
29
+ /**
30
+ * This API is used to get the details and functionality associated with the current user.
31
+ * Accessed from the window at window.sas.vi.currentUser.
32
+ */
33
+ export interface CurrentUserApi {
34
+ /**
35
+ * @method
36
+ * @description Gets the object containing the users current session details.
37
+ * @returns The user's current session details.
38
+ */
39
+ getSessionDetails(): SessionDetails;
40
+ /**
41
+ * @method
42
+ * @description Gets the object containing the current user details.
43
+ * @returns The current user details.
44
+ */
45
+ getUserDetails(): Promise<UserSummary>;
46
+ /**
47
+ * @method
48
+ * @description Gets the list of groups to which the current user belongs.
49
+ * @returns A list of group details.
50
+ */
51
+ getUserMemberships(): Promise<IdentitySummary[]>;
52
+ /**
53
+ * @method
54
+ * @description Verifies if the current user has administration features.
55
+ * @returns A boolean value indicating if the user has access to the administration features.
56
+ */
57
+ hasAdminFeatures(): boolean;
58
+ /**
59
+ * @method
60
+ * @description Verifies if the current user has a set of features.
61
+ * @param features {string[]} Identifiers of the required features.
62
+ * @returns A boolean value indicating if the user has access to the features.
63
+ */
64
+ hasFeatures(features: string[]): boolean;
65
+ }
@@ -0,0 +1,11 @@
1
+ export var IdentityState;
2
+ (function (IdentityState) {
3
+ IdentityState["Active"] = "active";
4
+ IdentityState["Inactive"] = "inactive";
5
+ IdentityState["Locked"] = "locked";
6
+ })(IdentityState || (IdentityState = {}));
7
+ export var IdentityType;
8
+ (function (IdentityType) {
9
+ IdentityType["User"] = "user";
10
+ IdentityType["Group"] = "group";
11
+ })(IdentityType || (IdentityType = {}));
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/current-user",
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 "./currentUser-api";
@@ -0,0 +1 @@
1
+ export * from "./currentUser-api";
@@ -0,0 +1,57 @@
1
+ export declare const TAB_ACTIVE_EVENT = "SNG_TAB_ACTIVE";
2
+ export declare const CONTENT_PANE_RESIZE_EVENT = "SNG_CONTENT_PANE_RESIZE";
3
+ export declare enum PageEvents {
4
+ ChildObjectOnSelect = "spb:ChildObjectSelect",
5
+ CommentsOnShowEvent = "spb::Comments:onShow",
6
+ DirtyStateChangeEvent = "spb::dirty-state-change",
7
+ LoadDocumentEvent = "spb::page-load-all",
8
+ ModeChangeEvent = "spb::page-mode-change",
9
+ ModelChangeEvent = "spb::page-model-change",
10
+ PanelOpenEvent = "spb::sliding-panel-open",
11
+ RefreshPageEvent = "spb::refreshPage",
12
+ SelectAttachmentEvent = "spb::Highlighting:SelectAttachment",
13
+ SelectChildObjectEvent = "spb::Highlighting:SelectChildObject",
14
+ SelectCommentEvent = "spb::Highlighting:SelectComment",
15
+ SelectNodeEvent = "spb::selectNode",
16
+ UpdateSubDocumentTypeEvent = "spb::updateSubDocumentType",
17
+ TabSelectedEvent = "spb::tabSelected",
18
+ VisitAllTabs = "spb::mark-all-tabs-visited"
19
+ }
20
+ export interface Subscription {
21
+ unsubscribe(): void;
22
+ }
23
+ /**
24
+ * This API provides the details and functionality associated with publishing and subscribing to events.
25
+ * Accessed from the window at window.sas.vi.event.
26
+ */
27
+ export interface EventApi {
28
+ /**
29
+ * @method
30
+ * @description Publishes an event for subscribers to consume.
31
+ * @param eventName {string} Name of the event to publish.
32
+ * @param [payload] {any} Data passed to all subscribers.
33
+ */
34
+ publish(eventName: string, payload?: any): void;
35
+ /**
36
+ * @method
37
+ * @description Subscribes to an event and registers a function to be called on any future published events.
38
+ * If the eventName does not exist, it is created.
39
+ * @param eventName {string} Name of the event to subscribe to.
40
+ * @param {EventApi~subscriptionCallback} Function invoked when the subscription is triggered by an event.
41
+ * Has access to the event's payload.
42
+ * @returns The subscription being made to the event.
43
+ */
44
+ subscribe(eventName: string, observer: (payload: any) => void): Subscription | undefined;
45
+ /**
46
+ * @method
47
+ * @description Unsubscribe from a given subscription and stop listening for events.
48
+ * @param subscription {Subscription} Subscription to stop.
49
+ */
50
+ unsubscribe(subscription: Subscription): void;
51
+ }
52
+ /**
53
+ * Callback function executed when subscription is triggered by an event.
54
+ * @callback EventApi~subscriptionCallback
55
+ * @param payload {any} Payload of the subscription.
56
+ * @returns {void}
57
+ */
@@ -0,0 +1,26 @@
1
+ export const TAB_ACTIVE_EVENT = "SNG_TAB_ACTIVE";
2
+ export const CONTENT_PANE_RESIZE_EVENT = "SNG_CONTENT_PANE_RESIZE";
3
+ export var PageEvents;
4
+ (function (PageEvents) {
5
+ PageEvents["ChildObjectOnSelect"] = "spb:ChildObjectSelect";
6
+ PageEvents["CommentsOnShowEvent"] = "spb::Comments:onShow";
7
+ PageEvents["DirtyStateChangeEvent"] = "spb::dirty-state-change";
8
+ PageEvents["LoadDocumentEvent"] = "spb::page-load-all";
9
+ PageEvents["ModeChangeEvent"] = "spb::page-mode-change";
10
+ PageEvents["ModelChangeEvent"] = "spb::page-model-change";
11
+ PageEvents["PanelOpenEvent"] = "spb::sliding-panel-open";
12
+ PageEvents["RefreshPageEvent"] = "spb::refreshPage";
13
+ PageEvents["SelectAttachmentEvent"] = "spb::Highlighting:SelectAttachment";
14
+ PageEvents["SelectChildObjectEvent"] = "spb::Highlighting:SelectChildObject";
15
+ PageEvents["SelectCommentEvent"] = "spb::Highlighting:SelectComment";
16
+ PageEvents["SelectNodeEvent"] = "spb::selectNode";
17
+ PageEvents["UpdateSubDocumentTypeEvent"] = "spb::updateSubDocumentType";
18
+ PageEvents["TabSelectedEvent"] = "spb::tabSelected";
19
+ PageEvents["VisitAllTabs"] = "spb::mark-all-tabs-visited";
20
+ })(PageEvents || (PageEvents = {}));
21
+ /**
22
+ * Callback function executed when subscription is triggered by an event.
23
+ * @callback EventApi~subscriptionCallback
24
+ * @param payload {any} Payload of the subscription.
25
+ * @returns {void}
26
+ */
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/event",
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 "./event-api";
@@ -0,0 +1 @@
1
+ export * from "./event-api";
@@ -0,0 +1,44 @@
1
+ export interface SASUploadedFile {
2
+ type: string;
3
+ name: string;
4
+ size: number;
5
+ location: string;
6
+ id: string;
7
+ }
8
+ export interface SASObjectAttachedFile extends SASUploadedFile {
9
+ category: string;
10
+ description?: string;
11
+ displayOrder?: number;
12
+ uploadedAt?: string;
13
+ uploadedBy?: string;
14
+ version?: number;
15
+ }
16
+ export interface FileChange {
17
+ changeType: FileOperationMethod;
18
+ newFiles: SASObjectAttachedFile[];
19
+ changedFile?: SASObjectAttachedFile;
20
+ }
21
+ export declare const enum FileOperationMethod {
22
+ CREATE = "CREATE",
23
+ UPDATE = "UPDATE",
24
+ DELETE = "DELETE"
25
+ }
26
+ export interface FileOperation {
27
+ method: FileOperationMethod;
28
+ body?: SASObjectAttachedFile;
29
+ id?: string;
30
+ }
31
+ /**
32
+ * This API provides functionality related to uploading files.
33
+ * Accessed from the window at window.sas.vi.file.
34
+ */
35
+ export interface FileApi {
36
+ /**
37
+ * @method
38
+ * @description Uploads the file to the SAS Visual Investigator folder without attaching it to an object.
39
+ * @param file {File} File to be uploaded.
40
+ * @param [fileName] {string} Name to give to the file to upload.
41
+ * @returns Promise containing the uploaded file.
42
+ */
43
+ uploadToViFolder(file: File, fileName?: string): Promise<SASUploadedFile>;
44
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/file",
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 "./file-api";
@@ -0,0 +1 @@
1
+ export * from "./file-api";