@sassoftware/vi-api 1.40.4 → 1.44.0

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 (133) hide show
  1. package/README.md +36 -5
  2. package/alert-reps/index.d.ts +16 -3
  3. package/alert-reps/package.json +1 -1
  4. package/component/index.d.ts +5 -1
  5. package/component/package.json +2 -2
  6. package/config/config-api.d.ts +23 -3
  7. package/config/config-api.js +10 -0
  8. package/config/package.json +2 -2
  9. package/control/control-api.d.ts +40 -8
  10. package/control/events.d.ts +1 -1
  11. package/control/masking-api.d.ts +187 -0
  12. package/control/masking-api.js +3 -0
  13. package/control/package.json +2 -2
  14. package/control/restrictions.d.ts +7 -1
  15. package/current-user/currentUser-api.d.ts +7 -2
  16. package/current-user/package.json +2 -2
  17. package/elements/bindings.d.ts +25 -0
  18. package/elements/identity-select.d.ts +274 -0
  19. package/elements/identity-select.js +24 -0
  20. package/elements/index.d.ts +49 -0
  21. package/elements/index.js +50 -0
  22. package/elements/labelled-control.d.ts +47 -0
  23. package/elements/labelled-control.js +1 -0
  24. package/elements/mask-toggle-button.d.ts +37 -0
  25. package/elements/mask-toggle-button.js +1 -0
  26. package/elements/package.json +9 -0
  27. package/event/event-api.d.ts +10 -5
  28. package/event/event-api.js +3 -2
  29. package/event/package.json +2 -2
  30. package/file/file-api.d.ts +5 -1
  31. package/file/package.json +2 -2
  32. package/http/index.d.ts +5 -1
  33. package/http/package.json +2 -2
  34. package/index.d.ts +3 -1
  35. package/init/index.d.ts +12 -7
  36. package/init/index.js +3 -2
  37. package/init/package.json +2 -2
  38. package/localization/localization-api.d.ts +24 -9
  39. package/localization/package.json +2 -2
  40. package/metadata/admin/admin-metadata-api.d.ts +5 -1
  41. package/metadata/admin/index.d.ts +1 -0
  42. package/metadata/admin/index.js +1 -0
  43. package/metadata/metadata-api.d.ts +9 -5
  44. package/metadata/package.json +2 -2
  45. package/object/object-api.d.ts +15 -9
  46. package/object/package.json +2 -2
  47. package/package.json +3 -3
  48. package/page-admin/package.json +2 -2
  49. package/page-admin/page-admin-api.d.ts +5 -1
  50. package/page-model/package.json +2 -2
  51. package/page-model/page-model-api.d.ts +7 -6
  52. package/page-model/page-model-api.js +10 -0
  53. package/page-state/package.json +2 -2
  54. package/page-state/page-state-api.d.ts +4 -1
  55. package/page-template/package.json +2 -2
  56. package/page-template/page-template-api.d.ts +5 -1
  57. package/property/package.json +2 -2
  58. package/property/property-api.d.ts +6 -2
  59. package/reference-data/package.json +2 -2
  60. package/reference-data/refData.d.ts +4 -1
  61. package/resource/package.json +2 -2
  62. package/resource/resource-api.d.ts +5 -1
  63. package/score-reps/index.d.ts +11 -2
  64. package/score-reps/package.json +1 -1
  65. package/search/client/client-search-api.d.ts +7 -3
  66. package/search/client/index.d.ts +1 -0
  67. package/search/client/index.js +1 -0
  68. package/search/package.json +2 -2
  69. package/search/search-api.d.ts +5 -1
  70. package/sheet/package.json +2 -2
  71. package/sheet/sheet-api.d.ts +5 -1
  72. package/shell-tabs/package.json +2 -2
  73. package/shell-tabs/shell-tabs-api.d.ts +11 -7
  74. package/svi-datahub/index.d.ts +266 -231
  75. package/svi-datahub/package.json +1 -1
  76. package/svi-sand/index.d.ts +29 -2
  77. package/svi-sand/package.json +1 -1
  78. package/tab/package.json +2 -2
  79. package/tab/tab-api.d.ts +5 -1
  80. package/theme/package.json +2 -2
  81. package/theme/theme-api.d.ts +6 -2
  82. package/traversal/package.json +2 -2
  83. package/traversal/traversal-api.d.ts +5 -1
  84. package/component/public-api.d.ts +0 -1
  85. package/component/public-api.js +0 -1
  86. package/http/public-api.d.ts +0 -1
  87. package/http/public-api.js +0 -1
  88. package/init/public-api.d.ts +0 -1
  89. package/init/public-api.js +0 -1
  90. package/public-api.d.ts +0 -1
  91. /package/config/{public-api.d.ts → index.d.ts} +0 -0
  92. /package/config/{public-api.js → index.js} +0 -0
  93. /package/control/{public-api.d.ts → index.d.ts} +0 -0
  94. /package/control/{public-api.js → index.js} +0 -0
  95. /package/current-user/{public-api.d.ts → index.d.ts} +0 -0
  96. /package/current-user/{public-api.js → index.js} +0 -0
  97. /package/{public-api.js → elements/bindings.js} +0 -0
  98. /package/event/{public-api.d.ts → index.d.ts} +0 -0
  99. /package/event/{public-api.js → index.js} +0 -0
  100. /package/file/{public-api.d.ts → index.d.ts} +0 -0
  101. /package/file/{public-api.js → index.js} +0 -0
  102. /package/localization/{public-api.d.ts → index.d.ts} +0 -0
  103. /package/localization/{public-api.js → index.js} +0 -0
  104. /package/metadata/{public-api.d.ts → index.d.ts} +0 -0
  105. /package/metadata/{public-api.js → index.js} +0 -0
  106. /package/object/{public-api.d.ts → index.d.ts} +0 -0
  107. /package/object/{public-api.js → index.js} +0 -0
  108. /package/page-admin/{public-api.d.ts → index.d.ts} +0 -0
  109. /package/page-admin/{public-api.js → index.js} +0 -0
  110. /package/page-model/{public-api.d.ts → index.d.ts} +0 -0
  111. /package/page-model/{public-api.js → index.js} +0 -0
  112. /package/page-state/{public-api.d.ts → index.d.ts} +0 -0
  113. /package/page-state/{public-api.js → index.js} +0 -0
  114. /package/page-template/{public-api.d.ts → index.d.ts} +0 -0
  115. /package/page-template/{public-api.js → index.js} +0 -0
  116. /package/property/{public-api.d.ts → index.d.ts} +0 -0
  117. /package/property/{public-api.js → index.js} +0 -0
  118. /package/reference-data/{public-api.d.ts → index.d.ts} +0 -0
  119. /package/reference-data/{public-api.js → index.js} +0 -0
  120. /package/resource/{public-api.d.ts → index.d.ts} +0 -0
  121. /package/resource/{public-api.js → index.js} +0 -0
  122. /package/search/{public-api.d.ts → index.d.ts} +0 -0
  123. /package/search/{public-api.js → index.js} +0 -0
  124. /package/sheet/{public-api.d.ts → index.d.ts} +0 -0
  125. /package/sheet/{public-api.js → index.js} +0 -0
  126. /package/shell-tabs/{public-api.d.ts → index.d.ts} +0 -0
  127. /package/shell-tabs/{public-api.js → index.js} +0 -0
  128. /package/tab/{public-api.d.ts → index.d.ts} +0 -0
  129. /package/tab/{public-api.js → index.js} +0 -0
  130. /package/theme/{public-api.d.ts → index.d.ts} +0 -0
  131. /package/theme/{public-api.js → index.js} +0 -0
  132. /package/traversal/{public-api.d.ts → index.d.ts} +0 -0
  133. /package/traversal/{public-api.js → index.js} +0 -0
package/init/index.js CHANGED
@@ -3,8 +3,9 @@ export const ERR_EXISTING_APP_DECLARED = (appName) => `App: '${appName}' has alr
3
3
  export const ERR_EXISTING_RESOURCE_BUNDLE_DECLARED = (appName) => `I18n resource bundle: '${appName}' has already been declared.`;
4
4
  export const ERR_INIT_TIMEOUT = (name, timeout) => `Ready check for '${name}' timed out after ${timeout ?? APP_INIT_TIMEOUT_MS}ms.`;
5
5
  /**
6
- * Initialisation events for the Visual Investigator application.
7
- * These can be awaited using window.sas.viInit.whenReady
6
+ * Initialization events for the Visual Investigator application.
7
+ *
8
+ * These can be awaited using `window.sas.viInit.whenReady`
8
9
  */
9
10
  export var SviInitEvent;
10
11
  (function (SviInitEvent) {
package/init/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * This API is used for the localization methods.
3
- * Accessed from the window at window.sas.vi.localization.
3
+ *
4
+ * Accessed from the window at `window.sas.vi.localization`.
5
+ *
6
+ * @example window.sas.vi.localization.getLocale();
7
+ * @category API
4
8
  */
5
9
  export interface LocalizationApi {
6
10
  /**
@@ -16,6 +20,13 @@ export interface LocalizationApi {
16
20
  * @returns The current application locale.
17
21
  */
18
22
  getLocale(): string;
23
+ /**
24
+ * @method
25
+ * @description Gets user's preferred locale format in BCP 47 format. This should be used
26
+ * to format dates\numbers in VI extensions but not to drive the language.
27
+ * @returns The user's preferred locale format.
28
+ */
29
+ getFormatLocale(): string;
19
30
  /**
20
31
  * @method
21
32
  * @description Gets the application display direction.
@@ -30,7 +41,11 @@ export interface LocalizationApi {
30
41
  }
31
42
  /**
32
43
  * This API is used for solution content localization.
33
- * Accessed from the window at window.sas.vi.localization.solution.
44
+ *
45
+ * Accessed from the window at `window.sas.vi.localization.solution`.
46
+ *
47
+ * @example window.sas.vi.metadata.getLocalizationBundle();
48
+ * @category API
34
49
  */
35
50
  export interface SolutionLocalizationApi {
36
51
  /**
@@ -52,7 +67,7 @@ export interface SolutionLocalizationApi {
52
67
  * @returns The localized value for the given resource key, else undefined.
53
68
  * @param resourceKey {string} A resource key used to lookup the localized value.
54
69
  * @example
55
- * getLocalizedResource("colours.red.txt") === "rouge"
70
+ * getLocalizedResource("colors.red.txt") === "rouge"
56
71
  */
57
72
  getLocalizedResource(resourceKey: string): string | undefined;
58
73
  /**
@@ -64,7 +79,7 @@ export interface SolutionLocalizationApi {
64
79
  * @param resourceKey {string} A resource key used to lookup the localized value.
65
80
  * @returns The localized string.
66
81
  * @example
67
- * localize("red", "colours.red.txt") === "rouge"
82
+ * localize("red", "colors.red.txt") === "rouge"
68
83
  */
69
84
  localize(str: string, resourceKey?: string): string;
70
85
  /**
@@ -76,7 +91,7 @@ export interface SolutionLocalizationApi {
76
91
  * @param props {Record<string, string | undefined>} The properties to localize and their resource keys.
77
92
  * @returns The localized object.
78
93
  * @example
79
- * localizeObject({ label: "red" }, { "label": "colours.red.txt" }) === { label: "rouge" }
94
+ * localizeObject({ label: "red" }, { "label": "colors.red.txt" }) === { label: "rouge" }
80
95
  */
81
96
  localizeObject<T extends object>(obj: T, props: Record<string, string | undefined>): T;
82
97
  /**
@@ -89,7 +104,7 @@ export interface SolutionLocalizationApi {
89
104
  * @example
90
105
  * localizeList(
91
106
  * [{ id: "red", label: "Red" }, { id: "blue", label: "Blue"} ],
92
- * (item) => ({ "label": `colours.${item.id}.title` })
107
+ * (item) => ({ "label": `colors.${item.id}.title` })
93
108
  * ) === [{ id: "red", label: "Rouge" }, { id: "blue", label: "Bleu"} ]
94
109
  */
95
110
  localizeList<T extends object>(list: T[], getProps: (obj: T) => Record<string, string | undefined>): T[];
@@ -98,9 +113,9 @@ export interface SolutionLocalizationApi {
98
113
  * Stores localized strings by key and value.
99
114
  * @example
100
115
  * {
101
- * bykey: {
102
- * "colours.red.label": "rouge",
103
- * "colours.blue.label": "bleu"
116
+ * byKey: {
117
+ * "colors.red.label": "rouge",
118
+ * "colors.blue.label": "bleu"
104
119
  * },
105
120
  * byValue: {
106
121
  * "red": "rouge",
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -5,8 +5,12 @@ export interface FieldTypeLabels {
5
5
  /**
6
6
  * {@link MetadataApi} extension provides the functionality related to retrieval of metadata.
7
7
  * Additional methods are available only in the SAS Visual Investigator Manage and Investigate interface.
8
- * Accessed from the window at window.sas.vi.metadata.
8
+ *
9
+ * Accessed from the window at `window.sas.vi.metadata`.
10
+ *
9
11
  * @extends MetadataApi
12
+ * @example window.sas.vi.metadata.getFieldDataTypeLabels();
13
+ * @category API
10
14
  */
11
15
  export interface AdminMetadataApi extends MetadataApi {
12
16
  /**
@@ -0,0 +1 @@
1
+ export * from "./admin-metadata-api";
@@ -0,0 +1 @@
1
+ export * from "./admin-metadata-api";
@@ -147,7 +147,11 @@ export interface ReferenceDataOptions {
147
147
  }
148
148
  /**
149
149
  * This API provides the functionality related to retrieval of metadata.
150
- * Accessed from the window at window.sas.vi.metadata.
150
+ *
151
+ * Accessed from the window at `window.sas.vi.metadata`.
152
+ *
153
+ * @example window.sas.vi.metadata.getEntityAccessRules(objectType);
154
+ * @category API
151
155
  */
152
156
  export interface MetadataApi {
153
157
  /**
@@ -160,7 +164,7 @@ export interface MetadataApi {
160
164
  /**
161
165
  * @method
162
166
  * @description Gets create, read, and update access rights for the provided entities via batch call.
163
- * @param objectType {string[]} Entity names.
167
+ * @param {string[]} objectTypes Entity names.
164
168
  * @returns Object with a Promise of type EntityAccessRule[] for each rule, where EntityAccessRule maps to the access rule of a given entity name.
165
169
  */
166
170
  getEntitiesAccessRules(objectTypes: string[]): EntitiesAccessRules;
@@ -233,7 +237,7 @@ export interface MetadataApi {
233
237
  */
234
238
  getIconForEntity(objectType: string, iconType?: string): string | undefined;
235
239
  /**
236
- * @deprecated Use `getRootTypes()` and `getResolvedEntities()` instead.
240
+ * @deprecated Use [getRootTypes()]{@link getRootTypes} and [getResolvedEntities()]{@link getResolvedEntities}` instead.
237
241
  *
238
242
  * @method
239
243
  * @description Gets metadata for both entities and resolved entities.
@@ -243,8 +247,8 @@ export interface MetadataApi {
243
247
  /**
244
248
  * @method
245
249
  * @description Gets reference data with the given name.
246
- * @param refDataName {string} Reference data list name.
247
- * @param [options] {ReferenceDataOptions} Object containing name and filter constraints.
250
+ * @param {string} name Reference data list name.
251
+ * @param {ReferenceDataOptions} [options] Object containing name and filter constraints.
248
252
  * If constrainingListName is defined, then the refDataName parameter is ignored.
249
253
  * parentCode is used to filter list items to those that are children of this list name.
250
254
  * @returns Promise containing the reference data or undefined if none exists.
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -36,7 +36,11 @@ export interface CreateObjectOptions {
36
36
  }
37
37
  /**
38
38
  * This API provides the functionality related to objects within SAS Visual Investigator.
39
- * Accessed from the window at window.sas.vi.object.
39
+ *
40
+ * Accessed from the window at `window.sas.vi.object`.
41
+ *
42
+ * @example window.sas.vi.object.getObjectAccessRules(objectType, objectId);
43
+ * @category API
40
44
  */
41
45
  export interface ObjectApi {
42
46
  /**
@@ -59,19 +63,20 @@ export interface ObjectApi {
59
63
  * @param objectType {string} Object type.
60
64
  * @param objectId {string} Object ID.
61
65
  * @param [includeDisplayLabel = true] {boolean} Checks whether or not to return the object with a display label.
66
+ * @param [includeChildObjects = false] {boolean} Checks whether or not to return the child objects associated with this object.
62
67
  * @return The specified object.
63
68
  */
64
- getObject(objectType: string, objectId: string, includeDisplayLabel?: boolean): Promise<VIObject>;
69
+ getObject(objectType: string, objectId: string, includeDisplayLabel?: boolean, includeChildObjects?: boolean): Promise<VIObject>;
65
70
  /**
66
71
  * @method
67
72
  * @description Gets the child objects of an object.
68
73
  * @param objectType {string} Object type.
69
74
  * @param objectId {string} Gets the child objects relating to the object ID.
70
75
  * @param childObjectType {string} Child object type.
71
- * @param [maxResponses = 25] {number} Maximum number of child objects to be returned.
76
+ * @param [limit = 25] {number} Maximum number of child objects to be returned.
72
77
  * @return A Promise that resolves to an array of objects, that are child objects of the specified object.
73
78
  */
74
- getChildObjects(objectType: string, objectId: string, childObjectType: string, maxResponses?: number): Promise<VIObject[]>;
79
+ getChildObjects(objectType: string, objectId: string, childObjectType: string, limit?: number): Promise<VIObject[]>;
75
80
  /**
76
81
  * @method
77
82
  * @description Updates an existing object with the provided data.
@@ -93,10 +98,11 @@ export interface ObjectApi {
93
98
  * @param objectTypeVersion {number} Object type version.
94
99
  * @param originalFieldValues {FieldValues} Field values before the object was edited
95
100
  * @param newFieldValues {FieldValues} Field values after the object was edited
101
+ * @param objectVersion {number} Object Version
96
102
  * @param [options] {UpdateObjectOptions} Optional extra parameters.
97
103
  * @return A Promise that resolves to the updated object when the object has successfully been updated.
98
104
  */
99
- patchObject(objectType: string, objectId: string, objectTypeId: number, objectTypeVersion: number, originalFieldValues: FieldValues, newFieldValues: FieldValues, options?: UpdateObjectOptions): Promise<VIObject>;
105
+ patchObject(objectType: string, objectId: string, objectTypeId: number, objectTypeVersion: number, originalFieldValues: FieldValues, newFieldValues: FieldValues, objectVersion: number, options?: UpdateObjectOptions): Promise<VIObject>;
100
106
  /**
101
107
  * @method
102
108
  * @description Deletes an object.
@@ -211,8 +217,8 @@ export interface ObjectApi {
211
217
  /**
212
218
  * @method
213
219
  * @description Validates the fields, controls, and file categories of a child object.
214
- * @param pageModel {PageModel} Page model.
215
- * @param childObject {StoredObjectMetadata} Child object metadata.
220
+ * @param {PageModel} model Page model.
221
+ * @param {StoredObjectMetadata} childObject Child object metadata.
216
222
  * @return An observable that resolves to an array of validation results.
217
223
  */
218
224
  validate(model: PageModel, childObject: StoredObjectMetadata): Promise<ValidationResult[]>;
@@ -547,10 +553,10 @@ export interface CreateDialogModel extends CreateRelationshipDialogModel<CreateD
547
553
  export interface CreateDialogResponse {
548
554
  relateToModel?: CreateRelateToModel;
549
555
  }
550
- export interface CreateReleationshipDialogResultModel {
556
+ export interface CreateRelationshipDialogResultModel {
551
557
  linkReason?: Relationship;
552
558
  }
553
- export interface CreateRelateToModel extends CreateReleationshipDialogResultModel {
559
+ export interface CreateRelateToModel extends CreateRelationshipDialogResultModel {
554
560
  newPageModel?: {
555
561
  model: PageModel;
556
562
  };
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassoftware/vi-api",
3
- "version": "1.40.4",
3
+ "version": "1.44.0",
4
4
  "description": "Types used in the SAS Visual Investigator API",
5
5
  "keywords": [
6
6
  "SAS",
@@ -28,8 +28,8 @@
28
28
  "./README.md",
29
29
  "./LICENSE.txt"
30
30
  ],
31
- "main": "public-api.js",
32
- "types": "public-api.d.ts",
31
+ "main": "index.js",
32
+ "types": "index.d.ts",
33
33
  "peerDependencies": {
34
34
  "@types/angular": "^1.7.3",
35
35
  "@types/angular-resource": "^1.5.16"
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -10,7 +10,11 @@ export declare enum TemplateType {
10
10
  }
11
11
  /**
12
12
  * This API provides administration functionality related to pages.
13
- * Accessed from the window at window.sas.vi.pageAdmin.
13
+ *
14
+ * Accessed from the window at `window.sas.vi.pageAdmin`.
15
+ *
16
+ * @example window.sas.vi.pageAdmin.registerPageType(...);
17
+ * @category API
14
18
  */
15
19
  export interface PageAdminApi {
16
20
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -149,7 +149,7 @@ export interface IPageEventData {
149
149
  /**
150
150
  * Page model events which can have pre-event or post-event hooks.
151
151
  */
152
- export declare const enum HookablePageEvents {
152
+ export declare enum HookablePageEvents {
153
153
  /**
154
154
  * A pagemodel is being saved as an object.
155
155
  */
@@ -159,15 +159,13 @@ export interface IPageEvent<T extends IPageEventData> {
159
159
  /**
160
160
  * @method
161
161
  * @description Adds a hook to be executed before a hookable event is triggered.
162
- * @param event {string} the event to hook onto.
163
- * @param hook {IPrePageEventHook} the hook which defines the callback to run pre-event.
162
+ * @param {IPrePageEventHook} hook the hook which defines the callback to run pre-event.
164
163
  */
165
164
  addPreHook(hook: IPrePageEventHook<T>): PageEventHookRemove;
166
165
  /**
167
166
  * @method
168
167
  * @description Adds a hook to be executed after a hookable event is triggered.
169
- * @param event {string} the event to hook onto.
170
- * @param hook {IPostPageEventHook} the hook which defines the callback to run post-event.
168
+ * @param {IPostPageEventHook} hook the hook which defines the callback to run post-event.
171
169
  */
172
170
  addPostHook(hook: IPostPageEventHook<T>): PageEventHookRemove;
173
171
  /**
@@ -205,7 +203,10 @@ export interface PageEventsApi extends PageEventsApiBase {
205
203
  }
206
204
  /**
207
205
  * This API is used for PageModel utilities.
208
- * Accessed from the window at window.sas.vi.pageModel.
206
+ * Accessed from the window at `window.sas.vi.pageModel`.
207
+ *
208
+ * @example window.sas.vi.pageModel.createFromObject(partialPageModel);
209
+ * @category API
209
210
  */
210
211
  export interface PageModelApi {
211
212
  /**
@@ -5,6 +5,16 @@ export var PageMode;
5
5
  PageMode["View"] = "view";
6
6
  PageMode["Design"] = "design";
7
7
  })(PageMode || (PageMode = {}));
8
+ /**
9
+ * Page model events which can have pre-event or post-event hooks.
10
+ */
11
+ export var HookablePageEvents;
12
+ (function (HookablePageEvents) {
13
+ /**
14
+ * A pagemodel is being saved as an object.
15
+ */
16
+ HookablePageEvents["SaveObject"] = "svi:hookable:pagemodel:saveObject";
17
+ })(HookablePageEvents || (HookablePageEvents = {}));
8
18
  /**
9
19
  * @typedef {object} PageModelApi~CreateFromObjectOptions
10
20
  * @property [clone] {boolean} Whether or not to clone the page model data or use the referenced values.
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -13,7 +13,10 @@ export interface ObjectPageDesignerState {
13
13
  }
14
14
  /**
15
15
  * This API provides functionality that pertains to the page state.
16
- * Accessed from the window at window.sas.vi.pageState.
16
+ * Accessed from the window at `window.sas.vi.pageState`.
17
+ *
18
+ * @example window.sas.vi.pageState.getCurrent();
19
+ * @category API
17
20
  */
18
21
  export interface PageStateApi {
19
22
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -2,7 +2,11 @@ import { Template, TemplateResourceSummary } from "../svi-datahub";
2
2
  import { ApplicationType, TemplateType } from "../page-admin/page-admin-api";
3
3
  /**
4
4
  * This API provides functionality that pertains to the page templates.
5
- * Accessed from the window at window.sas.vi.pageTemplate.
5
+ *
6
+ * Accessed from the window at `window.sas.vi.pageTemplate`.
7
+ *
8
+ * @example window.sas.vi.pageTemplate.getPageTemplateById(templateNumber);
9
+ * @category API
6
10
  */
7
11
  export interface PageTemplateApi {
8
12
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -39,7 +39,7 @@ export type ControlPropertyLocalizer = ToolbarControlPropertyLocalizer | PageCon
39
39
  export interface ToolbarControlPropertyLocalizer extends PropertyLocalizer<EntityToolbarItem> {
40
40
  localizerType: "toolbar";
41
41
  /**
42
- * Generate resources to be inluded when the toolbar item is saved.
42
+ * Generate resources to be included when the toolbar item is saved.
43
43
  *
44
44
  * @param propertyKey the control attribute
45
45
  * @param control the toolbar item
@@ -106,7 +106,11 @@ export interface EditorApi {
106
106
  }
107
107
  /**
108
108
  * This API pertains to page/toolbar control properties in SAS Visual Investigator.
109
- * Accessed from the window at window.sas.vi.property.
109
+ *
110
+ * Accessed from the window at `window.sas.vi.property`.
111
+ *
112
+ * @example window.sas.vi.property.registerPropertyLocalizer(localizer);
113
+ * @category API
110
114
  */
111
115
  export interface PropertyApi {
112
116
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -37,8 +37,11 @@ export interface LocalizedLabel extends PersistableObject {
37
37
  }
38
38
  /**
39
39
  * This API provides functionality related to retrieving reference data.
40
- * Accessed from the window at window.sas.vi.refData.
41
40
  *
41
+ * Accessed from the window at `window.sas.vi.refData`.
42
+ *
43
+ * @example window.sas.vi.refData.getReferenceLists();
44
+ * @category API
42
45
  */
43
46
  export interface RefDataApi {
44
47
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -4,7 +4,11 @@ export interface I18nResources {
4
4
  /**
5
5
  * @deprecated Use window.sas.viInit.registerResourceBundle to register resources before the rest of the SAS Visual Investigator API is ready.
6
6
  * This API provides the resource functionality in SAS Visual Investigator.
7
- * Accessed from the window at window.sas.vi.resource.
7
+ *
8
+ * Accessed from the window at `window.sas.vi.resource`.
9
+ *
10
+ * @example window.sas.vi.resource.registerResourceBundle("bundleName", resources);
11
+ * @category API
8
12
  */
9
13
  export interface ResourceApi {
10
14
  /**
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- // Generated using typescript-generator version 2.15.527 on 2024-05-17 15:11:01.
3
+ // Generated using typescript-generator version 2.15.527 on 2024-10-22 14:13:02.
4
4
 
5
5
  export interface BaseRep extends TrackedResource {
6
6
  links?: Link[];
@@ -55,6 +55,12 @@ export interface EntityElementsRep {
55
55
  version?: number;
56
56
  }
57
57
 
58
+ export interface ScorecardConstants {
59
+ }
60
+
61
+ export interface Length {
62
+ }
63
+
58
64
  export interface ScorecardDefinitionRep extends BaseRep {
59
65
  currentTableName?: string;
60
66
  domainId?: string;
@@ -86,7 +92,7 @@ export interface ScorecardSummaryRep extends BaseRep {
86
92
  effectiveTimeStamp?: string;
87
93
  }
88
94
 
89
- export interface Link extends Serializable {
95
+ export interface Link extends Serializable, Comparable<Link> {
90
96
  method?: string;
91
97
  rel?: string;
92
98
  href?: string;
@@ -117,6 +123,9 @@ export interface TimeTrackedResource extends LastModifiedProviderFromModifiedTim
117
123
  export interface ETagAndLastModifiedProvider extends ETaggable, LastModifiedProvider {
118
124
  }
119
125
 
126
+ export interface Comparable<T> {
127
+ }
128
+
120
129
  export interface Preconditionable {
121
130
  }
122
131
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@types/score-reps",
3
- "version": "6.0.5",
3
+ "version": "7.4.4",
4
4
  "types": "index.d.ts"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { MapBoundedBoxFilter, MapBoundedPolygonFilter, MapRadiusFilter, MapShapeFilter, QueryMode, SearchRepresentation, SearchResponse, SummaryVisualizationResponse } from "../../svi-sand";
2
- import { CreateRelationshipDialogModel, CreateReleationshipDialogResultModel, ObjectIdentifier, SearchOrCreateAndLinkDialogBase } from "../../object/object-api";
2
+ import { CreateRelationshipDialogModel, CreateRelationshipDialogResultModel, ObjectIdentifier, SearchOrCreateAndLinkDialogBase } from "../../object/object-api";
3
3
  import { QueryBuilderModel, SearchApi } from "../search-api";
4
4
  export declare enum SearchVisualization {
5
5
  Summary = "summary",
@@ -53,7 +53,7 @@ export interface SearchObject extends ObjectIdentifier {
53
53
  typeLabel?: string;
54
54
  uniqueKey?: string;
55
55
  }
56
- export interface SearchAndCreateRelateToModel extends CreateReleationshipDialogResultModel {
56
+ export interface SearchAndCreateRelateToModel extends CreateRelationshipDialogResultModel {
57
57
  relateToTargetId?: string;
58
58
  relateToTargetType?: string;
59
59
  }
@@ -63,8 +63,12 @@ export interface SearchAndCreateResponse {
63
63
  /**
64
64
  * {@link SearchApi} extension pertains to functionality related to SAS Visual Investigator's search capabilities.
65
65
  * These additional methods are available only in the SAS Visual Investigator Investigate and Search interface.
66
- * Accessed from the window at window.sas.vi.search.
66
+ *
67
+ * Accessed from the window at `window.sas.vi.search`.
68
+ *
67
69
  * @extends SearchApi
70
+ * @example window.sas.vi.search.navigateSearch("query text", "map");
71
+ * @category API
68
72
  */
69
73
  export interface ClientSearchApi extends SearchApi {
70
74
  /**
@@ -0,0 +1 @@
1
+ export * from "./client-search-api";
@@ -0,0 +1 @@
1
+ export * from "./client-search-api";
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -45,7 +45,11 @@ export interface QueryBuilderResult {
45
45
  }
46
46
  /**
47
47
  * This API relates to SAS Visual Investigator's search functionality.
48
- * Accessed from the window at window.sas.vi.search.
48
+ *
49
+ * Accessed from the window at `window.sas.vi.search`.
50
+ *
51
+ * @example window.sas.vi.search.openQueryBuilderDialog("Dialog Title");
52
+ * @category API
49
53
  */
50
54
  export interface SearchApi {
51
55
  /**
@@ -4,6 +4,6 @@
4
4
  "**/*.d.ts",
5
5
  "**/*.js"
6
6
  ],
7
- "main": "public-api.js",
8
- "types": "public-api.d.ts"
7
+ "main": "index.js",
8
+ "types": "index.d.ts"
9
9
  }
@@ -2,7 +2,11 @@ import { ObjectIdentifier, ObjectSheetSettings, VIObject } from "../object/objec
2
2
  import { NetworkData, Visualization } from "../search/client/client-search-api";
3
3
  /**
4
4
  * This API relates to SAS Visual Investigator's sheet functionality.
5
- * Accessed from the window at window.sas.vi.sheet.
5
+ *
6
+ * Accessed from the window at `window.sas.vi.sheet`.
7
+ *
8
+ * @example window.sas.vi.sheet.getOpenObjects();
9
+ * @category API
6
10
  */
7
11
  export interface SheetApi {
8
12
  /**