@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,507 @@
1
+ import { Relationship, StoredObjectFieldDTO } from "../svi-datahub";
2
+ import { FileOperation } from "../file/file-api";
3
+ import { PageModel } from "../page-model/page-model-api";
4
+ import { ClientSheet, Sheet } from "../sheet/sheet-api";
5
+ export interface ObjectIdentifier {
6
+ id: string;
7
+ type: string;
8
+ }
9
+ export interface ObjectAccessRules {
10
+ canReadObject: Promise<boolean>;
11
+ canUpdateObject: Promise<boolean>;
12
+ canDeleteObject: Promise<boolean>;
13
+ }
14
+ export interface FormatObjectFieldsOptions {
15
+ skipFormatReferenceData?: boolean;
16
+ skipFormatUserGroups?: boolean;
17
+ skipFormatBooleans?: boolean;
18
+ /**
19
+ * A function that will be the last thing called in order to format the object's field values
20
+ * @param fieldValue the current value of the field being formatted
21
+ * @param fieldName the name of the field currently being formatted
22
+ * @param objectFields all of the available fields in the object
23
+ * @param fieldMetadata the current field's metadata
24
+ */
25
+ formatCallback?: (fieldValue: string | number | Date | PageData[], fieldName: string, objectFields: FieldValues, fieldMetadata: StoredObjectFieldDTO) => void;
26
+ }
27
+ export interface UpdateObjectOptions {
28
+ fileOperations?: FileOperation[];
29
+ isExternalObject?: boolean;
30
+ sheets?: ClientSheet[];
31
+ }
32
+ export interface CreateObjectOptions {
33
+ comments?: Comment[];
34
+ fileOperations?: FileOperation[];
35
+ sheets?: ClientSheet[];
36
+ }
37
+ /**
38
+ * This API provides the functionality related to objects within SAS Visual Investigator.
39
+ * Accessed from the window at window.sas.vi.object.
40
+ */
41
+ export interface ObjectApi {
42
+ /**
43
+ * @method
44
+ * @description Gets the object access rules for an object:
45
+ * The three methods that return booleans based on specified object are:
46
+ *
47
+ * canReadObject,
48
+ * canUpdateObject,
49
+ * and canDeleteObject.
50
+ *
51
+ * @param objectType {string} Object type.
52
+ * @param objectId {string} Object ID.
53
+ * @return Object with three boolean methods which provide boolean data on a specified object.
54
+ */
55
+ getObjectAccessRules(objectType: string, objectId: string): ObjectAccessRules;
56
+ /**
57
+ * @method
58
+ * @description Gets the specified object.
59
+ * @param objectType {string} Object type.
60
+ * @param objectId {string} Object ID.
61
+ * @param [includeDisplayLabel = true] {boolean} Checks whether or not to return the object with a display label.
62
+ * @return The specified object.
63
+ */
64
+ getObject(objectType: string, objectId: string, includeDisplayLabel?: boolean): Promise<VIObject>;
65
+ /**
66
+ * @method
67
+ * @description Gets the child objects of an object.
68
+ * @param objectType {string} Object type.
69
+ * @param objectId {string} Gets the child objects relating to the object ID.
70
+ * @param childObjectType {string} Child object type.
71
+ * @param [maxResponses = 25] {number} Maximum number of child objects to be returned.
72
+ * @return A promise that resolves to an array of objects, that are child objects of the specified object.
73
+ */
74
+ getChildObjects(objectType: string, objectId: string, childObjectType: string, maxResponses?: number): Promise<VIObject[]>;
75
+ /**
76
+ * @method
77
+ * @description Updates an existing object with the provided data.
78
+ * @param objectType {string} Object type.
79
+ * @param objectId {string} Object ID.
80
+ * @param objectTypeId {string} Object type ID.
81
+ * @param objectTypeVersion {number} Object type version.
82
+ * @param fieldValues {FieldValues} Field values of the object.
83
+ * @param [options] {UpdateObjectOptions} Optional extra parameters.
84
+ * @return A promise that resolves to the updated object once the object has successfully been updated.
85
+ */
86
+ updateObject(objectType: string, objectId: string, objectTypeId: string, objectTypeVersion: number, fieldValues: FieldValues, options?: UpdateObjectOptions): Promise<VIObject>;
87
+ /**
88
+ * @method
89
+ * @description Deletes an object.
90
+ * @param objectType {string} Object type.
91
+ * @param objectId {string} Object ID.
92
+ * @return A promise that resolves to void when the specified object is successfully deleted.
93
+ */
94
+ deleteObject(objectType: string, objectId: string): Promise<void>;
95
+ /**
96
+ * @method
97
+ * @description Creates an object.
98
+ * @param objectType {string} Object type.
99
+ * @param objectTypeId {string} Object type ID.
100
+ * @param fieldValues {FieldValues} Field values of the object.
101
+ * @param [options] {CreateObjectOptions} Optional extra parameters.
102
+ * @return A promise that resolves to the created object once the object has successfully been created.
103
+ */
104
+ createObject(objectType: string, objectTypeId: string, fieldValues: FieldValues, options?: CreateObjectOptions): Promise<VIObject>;
105
+ /**
106
+ * @method
107
+ * @description Gets relationship via the relationship ID.
108
+ * @param relationshipId {string} Relationship ID.
109
+ * @return A promise that resolves to a relationship.
110
+ */
111
+ getObjectRelationship(relationshipId: string): Promise<ObjectRelationship>;
112
+ /**
113
+ * @method
114
+ * @description Updates an existing relationship in SAS Visual Investigator.
115
+ * @param relationshipId {string} Relationship ID.
116
+ * @param payload {any} HTTP request content.
117
+ * @return A promise that resolves to a relationship.
118
+ */
119
+ updateObjectRelationship(relationshipId: string, payload: any): Promise<ObjectRelationship>;
120
+ /**
121
+ * @method
122
+ * @description Deletes relationship with the specified ID.
123
+ * @param relationshipId {string} Relationship ID.
124
+ * @return A promise that resolves to void when the object is successfully deleted.
125
+ */
126
+ deleteObjectRelationship(relationshipId: string): Promise<void>;
127
+ /**
128
+ * @method
129
+ * @description Creates a relationship between two objects.
130
+ * @param from {VIObject} Object that relationship is from.
131
+ * @param to {VIObject} Object that relationship is to.
132
+ * @param relationship {ObjectRelationship} The relationship.
133
+ * @return A promise that resolves to an object.
134
+ */
135
+ relateObject(from: VIObject, to: VIObject, relationship: ObjectRelationship): Promise<ObjectRelationship>;
136
+ /**
137
+ * @method
138
+ * @description Gets object summary label.
139
+ * @param objectType {string} Object type.
140
+ * @param objectId {string} Object ID.
141
+ * @return Summary label as a String.
142
+ */
143
+ getObjectSummaryLabel(objectType: string, objectId: string): Promise<string>;
144
+ /**
145
+ * @method
146
+ * @description Creates a new object and relates it with an existing one.
147
+ * @param from {VIObject} Object that the relationship is from.
148
+ * @param to {VIObject} Object that the relationship is to.
149
+ * @param relationship {ObjectRelationship} The relationship.
150
+ * @return A promise that resolves to a newly created relationship.
151
+ */
152
+ createAndRelateObject(from: VIObject, to: VIObject, relationship: ObjectRelationship): Promise<ObjectRelationship>;
153
+ /**
154
+ * @method
155
+ * @description Processes an array of objects and formats them for display.
156
+ * @param objects {VIObject[]} Array of objects.
157
+ * @param objectType {string} Type of the objects in the array.
158
+ * @param [options] {FormatObjectFieldsOptions} Optional parameters to control the formatting. By default, nothing is skipped and there is no formatCallback.
159
+ * @return A promise that resolves to the formatted array of objects.
160
+ */
161
+ formatObjectFieldsForDisplay(objects: VIObject[], objectType: string, options?: FormatObjectFieldsOptions): Promise<VIObject[]>;
162
+ /**
163
+ * @method
164
+ * @description Uploads an attachment.
165
+ * @param attachmentModel {AttachmentModel} Attachment model.
166
+ * @param objectType {string} Object type.
167
+ * @param objectId {string} Object ID.
168
+ * @return A promise that resolves to a HttpResponse with a FileAssociationResponse as the data.
169
+ */
170
+ uploadAttachment(attachmentModel: AttachmentModel, objectType: string, objectId: string): Promise<FileAssociationResponse>;
171
+ /**
172
+ * @method
173
+ * @description Deletes the specified attachment of the associated object.
174
+ * @param objectType {string} Object type.
175
+ * @param objectId {string} Object ID.
176
+ * @param attachmentId {string} Attachment ID.
177
+ * @return A promise that resolves to an empty HttpResponse when the attachment is successfully deleted.
178
+ */
179
+ deleteAttachment(objectType: string, objectId: string, attachmentId: string): Promise<void>;
180
+ /**
181
+ * @method
182
+ * @description Gets an attachment of the associated object.
183
+ * @param objectId {string} Object ID
184
+ * @param objectType {string} Object type.
185
+ * @param attachmentId {string} Attachment ID.
186
+ * @return A promise that resolves to a HttpResponse with a FileAssociationResponse as the data.
187
+ */
188
+ getAttachment(objectType: string, objectId: string, attachmentId: string): Promise<FileAssociationResponse>;
189
+ /**
190
+ * @method
191
+ * @description Validates the fields, controls and file categories of a child object.
192
+ * @param pageModel {PageModel} Page model.
193
+ * @param childObject {StoredObjectMetadata} Child object metadata.
194
+ * @return An observable that resolves to an array of validation results.
195
+ */
196
+ validate(model: PageModel, childObject: StoredObjectMetadata): Promise<ValidationResult[]>;
197
+ }
198
+ export interface PageData {
199
+ fieldValues: FieldValues;
200
+ id: string;
201
+ displayLabel?: string;
202
+ }
203
+ export interface FieldValues {
204
+ [property: string]: string | number | Date | PageData[];
205
+ }
206
+ export interface ObjectSheetSettings {
207
+ id: string;
208
+ type: string;
209
+ title: string;
210
+ allowWorksheets: boolean;
211
+ allowWorksheetCreation: boolean;
212
+ allowNotesheets: boolean;
213
+ allowNotesheetCreation: boolean;
214
+ }
215
+ export interface VIObject {
216
+ fieldValues: FieldValues;
217
+ comments?: Comment[];
218
+ fileOperations?: FileOperation[];
219
+ createdAt: string;
220
+ displayLabel?: string;
221
+ lastUpdatedAt: string;
222
+ objectTypeId: string;
223
+ objectTypeName: string;
224
+ sheets?: Sheet[];
225
+ id: string;
226
+ }
227
+ export interface ValidationResult {
228
+ isValid: boolean;
229
+ message?: string;
230
+ }
231
+ export interface PageAction {
232
+ attrs: {
233
+ actionId: number;
234
+ actionName: string;
235
+ attributes: {
236
+ [property: string]: any;
237
+ displayName: string;
238
+ disabled: string;
239
+ };
240
+ controlId?: number;
241
+ displayName: string;
242
+ };
243
+ }
244
+ export interface PageActions {
245
+ items?: PageAction[];
246
+ }
247
+ export interface ControlContainer {
248
+ childNodes?: ChildNode[];
249
+ }
250
+ export interface PageTemplateScreen extends ControlContainer {
251
+ id: string;
252
+ name: string;
253
+ locked?: boolean;
254
+ }
255
+ export interface PageTemplate {
256
+ errors?: boolean;
257
+ errorDetails?: Error;
258
+ showTabs: boolean;
259
+ id?: number;
260
+ screens: PageTemplateScreen[];
261
+ }
262
+ export interface FieldRestriction {
263
+ maxLength?: number;
264
+ required?: boolean;
265
+ fieldDataType?: string;
266
+ allowMultipleFiles?: boolean;
267
+ constrainingListName?: string;
268
+ cascadingReferenceDataFilterByCode?: string;
269
+ cascadingReferenceDataFilterByField?: string;
270
+ }
271
+ export interface FieldRestrictions {
272
+ [property: string]: FieldRestriction;
273
+ }
274
+ export interface ObjectFieldRestrictions {
275
+ [property: string]: FieldRestrictions;
276
+ }
277
+ export interface TypeAttributes {
278
+ [property: string]: any;
279
+ }
280
+ export interface NodeStates {
281
+ readOnly?: boolean;
282
+ required?: boolean;
283
+ hidden?: boolean;
284
+ }
285
+ interface GlobalNodeStates extends NodeStates {
286
+ conditions?: any[];
287
+ }
288
+ export interface NodeAttributes extends TypeAttributes {
289
+ global?: {
290
+ state?: GlobalNodeStates;
291
+ groupRestrictions?: Array<{
292
+ id: string;
293
+ name: string;
294
+ }>;
295
+ };
296
+ }
297
+ export interface ChildNodeAttrs {
298
+ attributes?: {
299
+ disabled: boolean;
300
+ showActionHistory: boolean;
301
+ showVersionHistory: boolean;
302
+ };
303
+ id: string;
304
+ category: string;
305
+ type: string;
306
+ states?: NodeStates;
307
+ }
308
+ export interface ChildNode extends ControlContainer {
309
+ id: string;
310
+ _fullScreen?: boolean;
311
+ attributes?: NodeAttributes;
312
+ typeAttributes: TypeAttributes;
313
+ inheritedAttributes?: TypeAttributes;
314
+ attrs: ChildNodeAttrs;
315
+ }
316
+ export declare enum ConditionReferenceType {
317
+ TemplateControl = "TEMPLATE_CONTROL",
318
+ Condition = "CONDITION",
319
+ RequiredField = "REQUIRED_FIELD",
320
+ ReadOnlyField = "READ_ONLY_FIELD",
321
+ NldStyling = "NLD_STYLING"
322
+ }
323
+ export interface ConditionReference {
324
+ association: string;
325
+ type: ConditionReferenceType;
326
+ }
327
+ export declare enum ConditionFactType {
328
+ Field = "FIELD",
329
+ Condition = "CONDITION_REFERENCE"
330
+ }
331
+ export interface ConditionFact {
332
+ factType: ConditionFactType;
333
+ factPlaceholder: string;
334
+ factValue: string;
335
+ }
336
+ export interface Condition {
337
+ type: string;
338
+ parameters: Array<string | number | boolean | Condition>;
339
+ isComplete?: boolean;
340
+ }
341
+ export interface StoredObjectField {
342
+ id: number;
343
+ label: string;
344
+ name: string;
345
+ columnName: string;
346
+ dataType: string;
347
+ length?: number;
348
+ required: boolean;
349
+ primaryKeyField: boolean;
350
+ unique: boolean;
351
+ autoGenerated: boolean;
352
+ systemReserved: boolean;
353
+ displayIndex: number;
354
+ version: number;
355
+ primaryKeySeqNo?: number;
356
+ readOnly: boolean;
357
+ indexedForSearch: boolean;
358
+ showTimeZone: boolean;
359
+ ownerName: string;
360
+ constrainingListName?: string;
361
+ cascadingReferenceDataFilterByCode?: string;
362
+ cascadingReferenceDataFilterByField?: string;
363
+ }
364
+ export interface FieldOperand {
365
+ type: string;
366
+ fieldName: string;
367
+ objectName: string;
368
+ }
369
+ export interface BooleanExpression {
370
+ type: string;
371
+ leftOperand?: {};
372
+ operator: string;
373
+ rightOperand: any;
374
+ }
375
+ export interface ConditionalExpression extends BooleanExpression {
376
+ type: string;
377
+ leftOperand: {};
378
+ operator: string;
379
+ rightOperands: Array<{}>;
380
+ }
381
+ export interface ObjectIcon {
382
+ id: number;
383
+ name: string;
384
+ imageType: string;
385
+ imageLocation: string;
386
+ version: number;
387
+ }
388
+ export interface StoredObjectFileCategory {
389
+ name: string;
390
+ displayName: string;
391
+ allowMultiple?: boolean;
392
+ required?: boolean;
393
+ documentLockRequired?: boolean;
394
+ }
395
+ export interface StoredObjectMetadata {
396
+ id: number;
397
+ label: string;
398
+ description: string;
399
+ name: string;
400
+ tableName: string;
401
+ historyEnabled: boolean;
402
+ version: number;
403
+ lastUpdatedAtTimeFieldName: string;
404
+ createdAtTimeFieldName: string;
405
+ displayTextFields?: DisplayTextFields[];
406
+ dataStoreAssignedTimeZone: string;
407
+ type: string;
408
+ markerColor: string;
409
+ nodeShape: string;
410
+ nodeColor: string;
411
+ borderColor: string;
412
+ borderWidth: number;
413
+ indexedForSearch: boolean;
414
+ attachmentsIndexedForSearch: boolean;
415
+ fields?: StoredObjectField[];
416
+ relationshipsFrom?: Relationship[];
417
+ defaultRegularIcon: ObjectIcon;
418
+ requireSearchBeforeCreate: boolean;
419
+ fileCategories?: StoredObjectFileCategory[];
420
+ }
421
+ export interface ObjectRelationship {
422
+ relationshipTypeName?: string;
423
+ relationshipTypeLabel?: string;
424
+ id?: string;
425
+ createdAt?: Date;
426
+ lastUpdatedAt?: Date;
427
+ validFrom?: Date;
428
+ validTo?: Date;
429
+ displayLabel?: string;
430
+ fromObjectTypeName?: string;
431
+ fromObjectTypeVersion?: number;
432
+ fromObjectId?: string;
433
+ fromObjectDisplayLabel?: string;
434
+ toObjectTypeName?: string;
435
+ toObjectTypeVersion?: number;
436
+ toObjectId?: string;
437
+ toObjectDisplayLabel?: string;
438
+ fieldValues?: {
439
+ [index: string]: any;
440
+ };
441
+ qualifiedTypeName?: string;
442
+ }
443
+ export interface AttachmentRow {
444
+ description: string;
445
+ location: string;
446
+ id: string;
447
+ uploadedBy: string;
448
+ name: string;
449
+ size: number;
450
+ type: string;
451
+ }
452
+ export interface AttachmentModel {
453
+ id: string;
454
+ name: string;
455
+ type?: string;
456
+ description?: string;
457
+ location: string;
458
+ uploadedBy?: string;
459
+ size?: number;
460
+ selectedFile: AttachmentRow;
461
+ }
462
+ export interface RestRepresentationsLink {
463
+ method?: string;
464
+ rel?: string;
465
+ href?: string;
466
+ uri?: string;
467
+ type?: string;
468
+ responseType?: string;
469
+ itemType?: string;
470
+ responseItemType?: string;
471
+ title?: string;
472
+ }
473
+ export interface FileAssociationResponse {
474
+ version?: number;
475
+ id?: string;
476
+ name?: string;
477
+ category?: string;
478
+ location?: string;
479
+ type?: string;
480
+ size?: number;
481
+ description?: string;
482
+ properties?: {
483
+ [index: string]: any;
484
+ };
485
+ uploadedAt?: Date;
486
+ uploadedBy?: string;
487
+ extractedContent?: string;
488
+ displayOrder?: number;
489
+ links?: RestRepresentationsLink[];
490
+ }
491
+ export interface Comment {
492
+ category: string;
493
+ createDate: string;
494
+ detail: string;
495
+ id: number;
496
+ lastUpdatedBy: string;
497
+ lastUpdatedAt: string;
498
+ author: {
499
+ id: string;
500
+ name: string;
501
+ };
502
+ }
503
+ export interface DisplayTextFields {
504
+ name: string;
505
+ displayIndex: number;
506
+ }
507
+ export {};
@@ -0,0 +1,13 @@
1
+ export var ConditionReferenceType;
2
+ (function (ConditionReferenceType) {
3
+ ConditionReferenceType["TemplateControl"] = "TEMPLATE_CONTROL";
4
+ ConditionReferenceType["Condition"] = "CONDITION";
5
+ ConditionReferenceType["RequiredField"] = "REQUIRED_FIELD";
6
+ ConditionReferenceType["ReadOnlyField"] = "READ_ONLY_FIELD";
7
+ ConditionReferenceType["NldStyling"] = "NLD_STYLING";
8
+ })(ConditionReferenceType || (ConditionReferenceType = {}));
9
+ export var ConditionFactType;
10
+ (function (ConditionFactType) {
11
+ ConditionFactType["Field"] = "FIELD";
12
+ ConditionFactType["Condition"] = "CONDITION_REFERENCE";
13
+ })(ConditionFactType || (ConditionFactType = {}));
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/object",
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 "./object-api";
@@ -0,0 +1 @@
1
+ export * from "./object-api";
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@sassoftware/vi-api",
3
+ "version": "0.0.29",
4
+ "files": [
5
+ "**/*.d.ts",
6
+ "**/*.js"
7
+ ],
8
+ "main": "public-api.js",
9
+ "types": "public-api.d.ts",
10
+ "peerDependencies": {
11
+ "@types/angular": "^1.7.3",
12
+ "@types/angular-resource": "^1.5.16"
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/page-admin",
3
+ "files": [
4
+ "**/*.d.ts",
5
+ "**/*.js"
6
+ ],
7
+ "main": "public-api.js",
8
+ "types": "public-api.d.ts"
9
+ }
@@ -0,0 +1,29 @@
1
+ import { Control } from "../control/page";
2
+ export declare enum ApplicationType {
3
+ Desktop = "desktop",
4
+ Mobile = "mobile"
5
+ }
6
+ export declare enum TemplateType {
7
+ Home = "homepage",
8
+ Page = "page",
9
+ Print = "print"
10
+ }
11
+ /**
12
+ * This API provides administration functionality related to pages.
13
+ * Accessed from the window at window.sas.vi.pageAdmin.
14
+ */
15
+ export interface PageAdminApi {
16
+ /**
17
+ * @method
18
+ * @description Registers a page designer configuration.
19
+ * @param name {string} A unique name for the configuration.
20
+ * @param applicationType {ApplicationType} The name of the app type used for this page. Must be a valid datahub client application (for example, desktop | mobile).
21
+ * @param templateType {TemplateType} The name of the template type used for this page. Must be a valid datahub template type (for example, home | page).
22
+ * @param controlGroups {Control[]} The control categories that are displayed in the designer's left hand side toolbox. Must be valid control categories.
23
+ * @param canvasCssClass {string} A CSS class that is applied to the canvas in the designer.
24
+ * @param previewCssClass {string} A CSS class that is applied to the preview (for example, template list).
25
+ * @param options {object} Other designer options: hideSaveAs, customToolbarTemplateUrl, hidePageSettings, hidePreviewGroups.
26
+ * @param dataTypeControlMappings {Record<string,any>} A mapping between the data type and the control used to generate data tab.
27
+ */
28
+ registerPageType(name: string, applicationType: ApplicationType, templateType: TemplateType, controlGroups: Control[], canvasCssClass: string, previewCssClass: string, options: any, dataTypeControlMappings: Record<string, any>): void;
29
+ }
@@ -0,0 +1,11 @@
1
+ export var ApplicationType;
2
+ (function (ApplicationType) {
3
+ ApplicationType["Desktop"] = "desktop";
4
+ ApplicationType["Mobile"] = "mobile";
5
+ })(ApplicationType || (ApplicationType = {}));
6
+ export var TemplateType;
7
+ (function (TemplateType) {
8
+ TemplateType["Home"] = "homepage";
9
+ TemplateType["Page"] = "page";
10
+ TemplateType["Print"] = "print";
11
+ })(TemplateType || (TemplateType = {}));
@@ -0,0 +1 @@
1
+ export * from "./page-admin-api";
@@ -0,0 +1 @@
1
+ export * from "./page-admin-api";
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@sassoftware/vi-api/page-model",
3
+ "files": [
4
+ "**/*.d.ts",
5
+ "**/*.js"
6
+ ],
7
+ "main": "public-api.js",
8
+ "types": "public-api.d.ts"
9
+ }