@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,237 @@
|
|
|
1
|
+
import { CoreStoredObjectField, Entity, Relationship, RelationshipDTO, StoredObjectDTO } from "../svi-datahub";
|
|
2
|
+
export interface NodeShapeMultipliers {
|
|
3
|
+
square: number;
|
|
4
|
+
circle: number;
|
|
5
|
+
ellipse: number;
|
|
6
|
+
triangle: number;
|
|
7
|
+
hexagon: number;
|
|
8
|
+
pentagon: number;
|
|
9
|
+
diamond: number;
|
|
10
|
+
custom: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SandServicesField {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
export interface EntityMetadata {
|
|
17
|
+
[entityName: string]: SandDataObject;
|
|
18
|
+
}
|
|
19
|
+
export interface SandDataObject extends DataObject {
|
|
20
|
+
parentName?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
relationshipsFrom?: any;
|
|
23
|
+
relationshipsTo?: any;
|
|
24
|
+
attachmentsIndexedForSearch?: boolean;
|
|
25
|
+
resolvedEntity?: boolean;
|
|
26
|
+
indexedForSearch?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface DataObject extends PersistableObject {
|
|
29
|
+
name: string;
|
|
30
|
+
dataStoreName: string;
|
|
31
|
+
tableName: string;
|
|
32
|
+
deleteTableName?: string;
|
|
33
|
+
readOnly: boolean;
|
|
34
|
+
archived: boolean;
|
|
35
|
+
historyEnabled?: boolean;
|
|
36
|
+
systemReserved: boolean;
|
|
37
|
+
type?: string;
|
|
38
|
+
fields: DataObjectField[];
|
|
39
|
+
fileCategories?: FileCategory[];
|
|
40
|
+
}
|
|
41
|
+
export interface FileCategory {
|
|
42
|
+
name: string;
|
|
43
|
+
displayName: string;
|
|
44
|
+
required: boolean;
|
|
45
|
+
allowMultiple: boolean;
|
|
46
|
+
documentLockRequired: boolean;
|
|
47
|
+
filesExist?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface DataObjectField extends PersistableObject, LocalizableObject {
|
|
50
|
+
name: string;
|
|
51
|
+
label: string;
|
|
52
|
+
columnName: string;
|
|
53
|
+
dataType: string;
|
|
54
|
+
length: number;
|
|
55
|
+
precision: number;
|
|
56
|
+
displayIndex: number;
|
|
57
|
+
unique: boolean;
|
|
58
|
+
required: boolean;
|
|
59
|
+
readOnly: boolean;
|
|
60
|
+
readOnlyConditionally: {
|
|
61
|
+
conditionId: string;
|
|
62
|
+
objectState: "ENTERED" | "SAVED";
|
|
63
|
+
};
|
|
64
|
+
requiredConditionally: {
|
|
65
|
+
conditionId: string;
|
|
66
|
+
objectState: "ENTERED" | "SAVED";
|
|
67
|
+
};
|
|
68
|
+
primaryKeyField: boolean;
|
|
69
|
+
archived: boolean;
|
|
70
|
+
systemReserved: boolean;
|
|
71
|
+
multiValued: boolean;
|
|
72
|
+
autoGenerated: boolean;
|
|
73
|
+
autoGenStartValue: number;
|
|
74
|
+
ownerName: string;
|
|
75
|
+
jsonSchema: string;
|
|
76
|
+
constrainingListName?: string;
|
|
77
|
+
cascadingReferenceDataName?: string;
|
|
78
|
+
cascadingReferenceDataFilterByCode?: string;
|
|
79
|
+
cascadingReferenceDataFilterByField?: string;
|
|
80
|
+
[index: string]: any;
|
|
81
|
+
}
|
|
82
|
+
export interface LocalizableObject {
|
|
83
|
+
label?: string;
|
|
84
|
+
localizedLabels: LocalizedLabel[];
|
|
85
|
+
description?: string;
|
|
86
|
+
localizedDescriptions: LocalizedDescription[];
|
|
87
|
+
}
|
|
88
|
+
export interface LocalizedLabel extends PersistableObject {
|
|
89
|
+
localeCd: string;
|
|
90
|
+
label: string;
|
|
91
|
+
}
|
|
92
|
+
export interface LocalizedDescription extends PersistableObject {
|
|
93
|
+
localeCd: string;
|
|
94
|
+
description: string;
|
|
95
|
+
}
|
|
96
|
+
export interface PersistableObject {
|
|
97
|
+
id?: number;
|
|
98
|
+
createdBy?: string;
|
|
99
|
+
createdAt?: Date;
|
|
100
|
+
lastUpdatedBy?: string;
|
|
101
|
+
lastUpdatedAt?: Date;
|
|
102
|
+
version?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface ValidRelationshipTypes {
|
|
105
|
+
[relationshipName: string]: RelationshipTypes;
|
|
106
|
+
}
|
|
107
|
+
export interface RelationshipTypes {
|
|
108
|
+
isIndexedForSearch: boolean;
|
|
109
|
+
linkTypes: Relationship[];
|
|
110
|
+
name: string;
|
|
111
|
+
searchBeforeCreate: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface EntityAccessRules {
|
|
114
|
+
create: Promise<boolean>;
|
|
115
|
+
read: Promise<boolean>;
|
|
116
|
+
update: Promise<boolean>;
|
|
117
|
+
}
|
|
118
|
+
export interface ReferenceDataItem {
|
|
119
|
+
group?: string;
|
|
120
|
+
displayText: string;
|
|
121
|
+
value: string | null;
|
|
122
|
+
}
|
|
123
|
+
export declare type Picklist = ReferenceDataItem[];
|
|
124
|
+
export interface RelationshipWithLabel extends RelationshipDTO {
|
|
125
|
+
relationshipLabel?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ReferenceDataOptions {
|
|
128
|
+
constrainingListName?: string;
|
|
129
|
+
parentCode?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* This API provides the functionality related to retrieval of metadata.
|
|
133
|
+
* Accessed from the window at window.sas.vi.metadata.
|
|
134
|
+
*/
|
|
135
|
+
export interface MetadataApi {
|
|
136
|
+
/**
|
|
137
|
+
* @method
|
|
138
|
+
* @description Gets create, read and update access rights for an entity.
|
|
139
|
+
* @param objectType {string} Entity name.
|
|
140
|
+
* @returns Object with a promise of type boolean for each rule.
|
|
141
|
+
*/
|
|
142
|
+
getEntityAccessRules(objectType: string): EntityAccessRules;
|
|
143
|
+
/**
|
|
144
|
+
* @method
|
|
145
|
+
* @description Checks access rights and gets metadata for an entity. Returns undefined if the entity does not exist.
|
|
146
|
+
* @param objectType {string} Entity name.
|
|
147
|
+
* @returns A promise containing the entity metadata.
|
|
148
|
+
*/
|
|
149
|
+
getEntity(objectType: string): Promise<StoredObjectDTO | undefined>;
|
|
150
|
+
/**
|
|
151
|
+
* @method
|
|
152
|
+
* @description Gets metadata for an entity field.
|
|
153
|
+
* @param objectType {string} Entity name.
|
|
154
|
+
* @param fieldName {string} Field name.
|
|
155
|
+
* @returns A promise containing the field metadata.
|
|
156
|
+
*/
|
|
157
|
+
getField(objectType: string, fieldName: string): Promise<CoreStoredObjectField>;
|
|
158
|
+
/**
|
|
159
|
+
* @method
|
|
160
|
+
* @description Gets managed entity types.
|
|
161
|
+
* @returns A promise containing an array of managed entity types
|
|
162
|
+
*/
|
|
163
|
+
getManagedEntityTypes(): Promise<StoredObjectDTO[]>;
|
|
164
|
+
/**
|
|
165
|
+
* @method
|
|
166
|
+
* @description Gets root type entities that are not child types.
|
|
167
|
+
* @returns A promise containing an array of root types
|
|
168
|
+
*/
|
|
169
|
+
getRootTypes(): Promise<StoredObjectDTO[]>;
|
|
170
|
+
/**
|
|
171
|
+
* @method
|
|
172
|
+
* @description Gets child entity types for a given entity.
|
|
173
|
+
* @param objectType {string} Checks for children for the named entity.
|
|
174
|
+
* @returns A promise containing an array of child entity types or an empty list if none are found.
|
|
175
|
+
*/
|
|
176
|
+
getChildEntityTypes(objectType: string): Promise<StoredObjectDTO[]>;
|
|
177
|
+
/**
|
|
178
|
+
* @method
|
|
179
|
+
* @description Gets valid relationship types for a specified entity.
|
|
180
|
+
* If relationshipObjectType and RelationshipName are provided, the link types are filtered accordingly.
|
|
181
|
+
* Otherwise, all valid relationships related to the objectType are returned.
|
|
182
|
+
* @param objectType {string} Finds relationships for the entity.
|
|
183
|
+
* @param [relationshipObjectType] {string} Used for filtering the name of an expected related entity.
|
|
184
|
+
* @param [relationshipName] {string} Used for filtering the name of an expected relationship.
|
|
185
|
+
* @returns A Promise resolving to an object containing relationship type metadata.
|
|
186
|
+
* The object is empty if no relationship types exist.
|
|
187
|
+
*/
|
|
188
|
+
getAllValidRelationshipTypes(objectType: string, relationshipObjectType?: string, relationshipName?: string): Promise<ValidRelationshipTypes>;
|
|
189
|
+
/**
|
|
190
|
+
* @method
|
|
191
|
+
* @description Gets metadata for all resolved entities
|
|
192
|
+
* @returns A promise containing an array of the resolved entities metadata.
|
|
193
|
+
*/
|
|
194
|
+
getResolvedEntities(): Promise<Entity[]>;
|
|
195
|
+
/**
|
|
196
|
+
* @method
|
|
197
|
+
* @description Gets metadata for a resolved entity.
|
|
198
|
+
* @param objectType {string} Resolved Entity Name.
|
|
199
|
+
* @returns A promise containing resolved entity metadata or undefined if none exists.
|
|
200
|
+
*/
|
|
201
|
+
getResolvedEntityMetadata(objectType: string): Promise<Entity | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* @method
|
|
204
|
+
* @description Gets the icon path for an entity.
|
|
205
|
+
* @param objectType {string} Entity name.
|
|
206
|
+
* @param [iconType] {string} Icon type. If iconType is not provided it is set to REGULAR by default.
|
|
207
|
+
* @returns A string containing the icon path. Returns undefined if objectType is empty.
|
|
208
|
+
*/
|
|
209
|
+
getIconForEntity(objectType: string, iconType?: string): string | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* @method
|
|
212
|
+
* @description Gets metadata for both entities and resolved entities
|
|
213
|
+
* @returns A promise resolving to Search entity metadata.
|
|
214
|
+
*/
|
|
215
|
+
getSearchMetadata(): Promise<EntityMetadata>;
|
|
216
|
+
/**
|
|
217
|
+
* @method
|
|
218
|
+
* @description Gets reference data with the given name.
|
|
219
|
+
* @param refDataName {string} Reference data list name.
|
|
220
|
+
* @param [options] {ReferenceDataOptions} Object containing name and filter constraints.
|
|
221
|
+
* If constrainingListName is defined, then the refDataName parameter is ignored.
|
|
222
|
+
* parentCode is used to filter list items to those that are children of this list name.
|
|
223
|
+
* @returns Promise containing the reference data or undefined if none exists.
|
|
224
|
+
*/
|
|
225
|
+
getReferenceData(name: string, options?: {
|
|
226
|
+
constrainingListName?: string;
|
|
227
|
+
parentCode?: string;
|
|
228
|
+
}): Promise<Picklist | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* @method
|
|
231
|
+
* @description Gets relationships with a specified end type.
|
|
232
|
+
* @param endType {string} End type entity name.
|
|
233
|
+
* @param [includeHeterogeneous = false] {boolean} Boolean value to determine whether heterogeneous relationships are included.
|
|
234
|
+
* @returns A Promise resolving to a list of relationships, or an empty list if none are found.
|
|
235
|
+
*/
|
|
236
|
+
getRelationshipsFilteredByEndType(endType: string, includeHeterogeneous?: boolean): Promise<RelationshipWithLabel[]>;
|
|
237
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|