@sassoftware/vi-api 1.42.0 → 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.
@@ -0,0 +1,274 @@
1
+ import { SASInputBindings } from ".";
2
+ import { IdentitySummary } from "../current-user";
3
+ /**
4
+ * Properties for {@link SVICustomElement.IdentitySelect}.
5
+ *
6
+ * @category Properties
7
+ *
8
+ * @example HTML Example #1 - Provide a custom set of User/Group identities to display in dialog
9
+ * ```html
10
+ * <svi-identity-select
11
+ * [model]="selectedIdentities"
12
+ * [identities]="myIdentitiesList"
13
+ * [selectionMode]="SelectionMode.UsersAndGroups"
14
+ * [selfSelectBtn]="true"
15
+ * [filter]="{ byGroups: ['alpha', 'bravo'] }"
16
+ * (modelChanged)="onSelectionChange($event)"
17
+ * ></svi-identity-select>
18
+ * ```
19
+ *
20
+ * @example HTML Example #2 - Retrieve a list of users from the identities service in dialog
21
+ * ```html
22
+ * <svi-identity-select
23
+ * [model]="selectedIdentities"
24
+ * [ariaLabel]="'Select Users'"
25
+ * [selectionMode]="SelectionMode.Users"
26
+ * [selfSelectBtn]="true"
27
+ * (modelChanged)="onSelectionChange($event)"
28
+ * ></svi-identity-select>
29
+ * ```
30
+ *
31
+ * @example Create element via document.createElement:
32
+ * ```ts
33
+ * const identitySelect = document.createElement(SVICustomElement.IdentitySelect);
34
+ * identitySelect.identities = this.myIdentitiesList;
35
+ * identitySelect.ariaLabel = "My label";
36
+ * ```
37
+ */
38
+ export interface IdentitySelectProperties extends SASInputBindings {
39
+ /** ARIA label for identifying the list. */
40
+ ariaLabel?: string;
41
+ /** The available users and groups to select from. If not provided, the identities are retrieved from the identities microservice. */
42
+ identities?: IIdentityOption[];
43
+ /** Does the input allow the selection of only a user, users, a group, groups, or both? (default: {@link SelectionMode.UsersAndGroups}) */
44
+ selectionMode?: SelectionMode;
45
+ /** Determines whether the select current user button is displayed. (default: false) */
46
+ selfSelectBtn?: boolean;
47
+ /** Determines if the current user button is displayed above or to the left/right of the identity-select control. (default: false) */
48
+ inlineSelectCurrentUserBtn?: boolean;
49
+ /** The filtering options used when the available identities are retrieved from the identities microservice. (default: false) */
50
+ filter?: IIdentitySelectFilterOptions;
51
+ /**
52
+ * Only members of the given group will be valid and selectable. If inclusive if true,
53
+ * the group itself is treated as a valid selection.
54
+ *
55
+ * Accepts the group id as a string, or as part of configuration object.
56
+ */
57
+ limitSelectionToMembersOf?: string | ILimitSelectionToConfig;
58
+ /** Optional title that can be used to override the default dialog title. */
59
+ title?: string;
60
+ }
61
+ /**
62
+ * Properties for {@link SVICustomElement.IdentitySelectAction}.
63
+ *
64
+ * @category Properties
65
+ *
66
+ * @example HTML Example #1 - Select Users and Groups
67
+ * ```html
68
+ * <svi-identity-select-action
69
+ * [model]="selectedIdentities"
70
+ * [title]="'Multiple Users and Groups from Button'"
71
+ * [hideLabel]="true"
72
+ * (selectionDialogClose)="onDialogClose($event)"
73
+ * (modelChanged)="onSelectionChange($event)"
74
+ * ></svi-identity-select-action>
75
+ * ```
76
+ *
77
+ * @example HTML Example #1 - Select Users Only
78
+ * ```html
79
+ * <svi-identity-select-action
80
+ * [model]="selectedIdentities"
81
+ * [title]="'Multiple Users from Button'"
82
+ * [hideLabel]="true"
83
+ * [selectionMode]="selectionMode.Users"
84
+ * (selectionDialogClose)="onDialogClose($event)"
85
+ * (modelChanged)="onSelectionChange($event)"
86
+ * ></svi-identity-select-action>
87
+ * ```
88
+ *
89
+ * @example Create element via document.createElement:
90
+ * ```ts
91
+ * const identityAvatar = document.createElement(SVICustomElement.IdentitySelectAction);
92
+ * identitySelect.title = this.title;
93
+ * identitySelect.actionMode = this.actionMode;
94
+ * ```
95
+ */
96
+ export interface IdentitySelectActionProperties {
97
+ /** Determines if the action is rendered as a Button or MenuItem (default: {@link ActionMode.Button}). */
98
+ actionMode?: ActionMode;
99
+ /** The tabIndex for the button (default: {@link TabIndex.Tabbable}). */
100
+ tabIndex?: string;
101
+ /** Optional title that can be used to override the default dialog title. */
102
+ title?: string;
103
+ /** Optional label that can be used to override the default button label. */
104
+ label?: string;
105
+ /** Defines if the label will be hidden. (default: false). */
106
+ hideLabel?: boolean;
107
+ /** Label for the identity select dialog "ok" button. (default: "ok") */
108
+ okButtonLabel?: string;
109
+ /** Optional icon class that can be used to override the default button icon. */
110
+ iconClass?: string;
111
+ /** Disables the component's controls. (default: false) */
112
+ disabled?: boolean;
113
+ /** The available users and groups to select from. If not provided, the identities are retrieved from the identities microservice. */
114
+ identities?: IIdentityOption[];
115
+ /** Does the input allow the selection of only a user, users, a group, groups, or both? (default: {@link SelectionMode.UsersAndGroups}) */
116
+ selectionMode?: SelectionMode;
117
+ /** Pre-select Identities. */
118
+ selectedIdentities?: IIdentityOption[];
119
+ /** The filtering options used when the available identities are retrieved from the identities microservice. */
120
+ filter?: IIdentitySelectFilterOptions;
121
+ /**
122
+ * Only members of the given group will be valid and selectable. If inclusive if true,
123
+ * the group itself is treated as a valid selection.
124
+ *
125
+ * Accepts the group id as a string, or as part of configuration object.
126
+ */
127
+ limitSelectionToMembersOf?: string | ILimitSelectionToConfig;
128
+ /** Emits the selected identities when the dialog's ok button is clicked. */
129
+ selectionDialogClose?: (event: CustomEvent) => void;
130
+ }
131
+ /**
132
+ * Properties for {@link SVICustomElement.Avatar}.
133
+ *
134
+ * @category Properties
135
+ *
136
+ * @example HTML Example
137
+ * ```html
138
+ * <svi-avatar
139
+ * [identity]="identity"
140
+ * [size]="SizeType.XLarge"
141
+ * [isIcon]="true"
142
+ * [isButton]="true"
143
+ * ></svi-avatar>
144
+ * ```
145
+ *
146
+ * @example Create element via document.createElement:
147
+ * ```ts
148
+ * const identityAvatar = document.createElement(SVICustomElement.IdentityAvatar);
149
+ * identitySelect.identity = this.identity;
150
+ * identitySelect.size = SizeType.XLarge;
151
+ * identitySelect.isButton = true;
152
+ * ```
153
+ */
154
+ export interface AvatarProperties {
155
+ /** The identity of the user, including name, userID, user type, and any tooltips. (required) */
156
+ identity: AvatarData;
157
+ /** Specifies the size styling the avatar should use. */
158
+ size?: SizeType;
159
+ /** Specifies if the avatar is a clickable button. */
160
+ isButton?: boolean;
161
+ /** The user's photo, if provided. */
162
+ imgSrcUrl?: string;
163
+ /** Specifies whether the avatar displays an icon (user or group) or a non-icon (initial or image). */
164
+ isIcon?: boolean;
165
+ }
166
+ /** @category Identities Types */
167
+ export declare enum SizeType {
168
+ Small = "small",
169
+ Medium = "medium",
170
+ XLarge = "x-large"
171
+ }
172
+ /** @category Identities Types */
173
+ export declare enum TabIndex {
174
+ Tabbable = "0",
175
+ NotTabbable = "-1"
176
+ }
177
+ /** @category Identities Types */
178
+ export declare enum IdentityType {
179
+ User = "user",
180
+ Group = "group"
181
+ }
182
+ /** @category Identities Types */
183
+ export declare enum IdentityState {
184
+ Active = "active",
185
+ Inactive = "inactive",
186
+ Locked = "locked"
187
+ }
188
+ /** @category Identities Types */
189
+ export interface GroupSummary extends IdentitySummary {
190
+ /** The value of "group" */
191
+ readonly type: IdentityType.Group;
192
+ }
193
+ /** @category Identities Types */
194
+ export interface UserSummary extends IdentitySummary {
195
+ /** The value of "user" */
196
+ readonly type: IdentityType.User;
197
+ }
198
+ /** @category Identities Types */
199
+ export interface AvatarData {
200
+ /** The name of the avatar file */
201
+ name?: string;
202
+ /** The content-type of the avatar file. */
203
+ type?: string;
204
+ /** Describes whether or not the avatar file for this identity is a default image. */
205
+ default?: boolean;
206
+ /** The uri location of the avatar file only if stored externally. */
207
+ uri?: string;
208
+ /** Timestamp of avatar data creation */
209
+ creationTimeStamp?: Date;
210
+ /** Timestamp of last avatar data modification */
211
+ modifiedTimeStamp?: Date;
212
+ }
213
+ /** @category Identities Types */
214
+ export declare enum ActionMode {
215
+ Button = "button",
216
+ MenuItem = "menuItem"
217
+ }
218
+ /** @category Identities Types */
219
+ export declare enum SelectionMode {
220
+ User = "user",
221
+ Group = "group",
222
+ Users = "users",
223
+ Groups = "groups",
224
+ UserOrGroup = "userOrGroup",
225
+ UsersAndGroups = "usersAndGroups"
226
+ }
227
+ /** @category Identities Types */
228
+ export type IdentitySelection = Array<{
229
+ id: string;
230
+ type: IdentityType;
231
+ }>;
232
+ /** @category Identities Types */
233
+ export interface IIdentitySelectDialogData {
234
+ identities?: IIdentityOption[];
235
+ selection?: IdentitySelection;
236
+ selectionMode: SelectionMode;
237
+ filter?: IIdentitySelectFilterOptions;
238
+ limitSelectionToMembersOf?: string | ILimitSelectionToConfig;
239
+ title?: string;
240
+ okButtonLabel?: string;
241
+ showSelectCurrentUserButton?: boolean;
242
+ }
243
+ /** @category Identities Types */
244
+ export interface IIdentityOption {
245
+ label?: string;
246
+ icon?: string;
247
+ }
248
+ /** @category Identities Types */
249
+ export declare const enum IdentityTypeIcon {
250
+ User = "userIcon",
251
+ Group = "userGroupIcon",
252
+ UserAndGroup = "userGroupLimitIcon"
253
+ }
254
+ /** @category Identities Types */
255
+ export interface IIdentitySelectFilterOptions {
256
+ byGroups: string[];
257
+ includeNestedMembers?: boolean;
258
+ includeFilteredGroups?: boolean;
259
+ term?: string;
260
+ start?: number;
261
+ limit?: number;
262
+ cache?: number;
263
+ }
264
+ /** @category Identities Types */
265
+ export interface IFilterGroup {
266
+ id: string;
267
+ name?: string;
268
+ members: IdentitySummary[];
269
+ }
270
+ /** @category Identities Types */
271
+ export interface ILimitSelectionToConfig {
272
+ id: string;
273
+ inclusive?: boolean;
274
+ }
@@ -0,0 +1,24 @@
1
+ import { expectType } from "../../shared/util/helper-functions";
2
+ /** @category Identities Types */
3
+ export var SizeType;
4
+ (function (SizeType) {
5
+ SizeType["Small"] = "small";
6
+ SizeType["Medium"] = "medium";
7
+ SizeType["XLarge"] = "x-large";
8
+ })(SizeType || (SizeType = {}));
9
+ /** @category Identities Types */
10
+ export var IdentityType;
11
+ (function (IdentityType) {
12
+ IdentityType["User"] = "user";
13
+ IdentityType["Group"] = "group";
14
+ })(IdentityType || (IdentityType = {}));
15
+ /** @category Identities Types */
16
+ export var IdentityState;
17
+ (function (IdentityState) {
18
+ IdentityState["Active"] = "active";
19
+ IdentityState["Inactive"] = "inactive";
20
+ IdentityState["Locked"] = "locked";
21
+ })(IdentityState || (IdentityState = {}));
22
+ expectType(true);
23
+ expectType(true);
24
+ expectType(true);
@@ -2,13 +2,11 @@
2
2
  * SAS Visual Investigator exposes a number of controls within the DOM as Custom Elements.
3
3
  *
4
4
  * See {@link SVICustomElement} for the list of available SVI Custom Elements.
5
- *
6
- * @module
7
5
  */
8
6
  /**
9
7
  * This enumeration list contains the tag names of all SVI custom elements.
10
8
  *
11
- * @category CustomElement
9
+ * @category Properties
12
10
  */
13
11
  export declare enum SVICustomElement {
14
12
  /**
@@ -25,6 +23,27 @@ export declare enum SVICustomElement {
25
23
  *
26
24
  * See {@link MaskToggleButtonProperties} for supported input bindings.
27
25
  */
28
- MaskToggleButton = "svi-mask-toggle-button"
26
+ MaskToggleButton = "svi-mask-toggle-button",
27
+ /**
28
+ * A token input that spawns a dialog for selecting a set of users, a set of groups, or a set of users and groups.
29
+ *
30
+ * See {@link IdentitySelectProperties} for supported input bindings.
31
+ */
32
+ IdentitySelect = "svi-identity-select",
33
+ /**
34
+ * A button for selecting a set of users, a set of groups, or a set of users and groups.
35
+ *
36
+ * See {@link IdentitySelectActionProperties} for supported input bindings.
37
+ */
38
+ IdentitySelectAction = "svi-identity-select-action",
39
+ /**
40
+ * An input to select a set of users, a set of groups, or a set of users and groups.
41
+ *
42
+ * See {@link AvatarProperties} for supported input bindings.
43
+ */
44
+ Avatar = "svi-avatar"
29
45
  }
30
- export * from "./properties";
46
+ export * from "./bindings";
47
+ export * from "./identity-select";
48
+ export * from "./labelled-control";
49
+ export * from "./mask-toggle-button";
package/elements/index.js CHANGED
@@ -2,13 +2,11 @@
2
2
  * SAS Visual Investigator exposes a number of controls within the DOM as Custom Elements.
3
3
  *
4
4
  * See {@link SVICustomElement} for the list of available SVI Custom Elements.
5
- *
6
- * @module
7
5
  */
8
6
  /**
9
7
  * This enumeration list contains the tag names of all SVI custom elements.
10
8
  *
11
- * @category CustomElement
9
+ * @category Properties
12
10
  */
13
11
  export var SVICustomElement;
14
12
  (function (SVICustomElement) {
@@ -27,5 +25,26 @@ export var SVICustomElement;
27
25
  * See {@link MaskToggleButtonProperties} for supported input bindings.
28
26
  */
29
27
  SVICustomElement["MaskToggleButton"] = "svi-mask-toggle-button";
28
+ /**
29
+ * A token input that spawns a dialog for selecting a set of users, a set of groups, or a set of users and groups.
30
+ *
31
+ * See {@link IdentitySelectProperties} for supported input bindings.
32
+ */
33
+ SVICustomElement["IdentitySelect"] = "svi-identity-select";
34
+ /**
35
+ * A button for selecting a set of users, a set of groups, or a set of users and groups.
36
+ *
37
+ * See {@link IdentitySelectActionProperties} for supported input bindings.
38
+ */
39
+ SVICustomElement["IdentitySelectAction"] = "svi-identity-select-action";
40
+ /**
41
+ * An input to select a set of users, a set of groups, or a set of users and groups.
42
+ *
43
+ * See {@link AvatarProperties} for supported input bindings.
44
+ */
45
+ SVICustomElement["Avatar"] = "svi-avatar";
30
46
  })(SVICustomElement || (SVICustomElement = {}));
31
- export * from "./properties";
47
+ export * from "./bindings";
48
+ export * from "./identity-select";
49
+ export * from "./labelled-control";
50
+ export * from "./mask-toggle-button";
@@ -0,0 +1,47 @@
1
+ import { PageControlBindings } from ".";
2
+ /**
3
+ * Properties for {@link SVICustomElement.LabelledControl}.
4
+ *
5
+ * @category Properties
6
+ *
7
+ * @example HTML Example:
8
+ * ```html
9
+ * <svi-labelled-control
10
+ * [childNode]="childNode"
11
+ * [pageModel]="pageModel"
12
+ * >
13
+ * <!-- my control -->
14
+ * </svi-labelled-control>
15
+ * ```
16
+ *
17
+ * @example Create the element via document.createElement:
18
+ * ```ts
19
+ * const labelledControl = document.createElement(SVICustomElement.LabelledControl);
20
+ * labelledControl.pageModel = this.pageModel;
21
+ * labelledControl.childNode = this.childNode;
22
+ * labelledControl.appendChild(myControlElement)
23
+ * ```
24
+ */
25
+ export interface LabelledControlProperties extends PageControlBindings {
26
+ /** Set the label as required. */
27
+ isRequired?: boolean;
28
+ /** Set the label as disabled. */
29
+ isDisabled?: boolean;
30
+ /** Override the text displayed in the label. */
31
+ overrideLabel?: string;
32
+ /** Add css classes to the label element. */
33
+ labelClass?: string;
34
+ /**
35
+ * Specify which dataSource the label's mask-toggle-button will toggle.
36
+ *
37
+ * If no {@link MaskToggleButtonProperties.dataSource | dataSource} is specified,
38
+ * the mask-toggle-button will toggle the dataSource(s) defined in the childNode's typeAttributes.
39
+ */
40
+ dataSource?: string;
41
+ /** Disable the label's mask toggle button. */
42
+ disableMaskToggle?: boolean;
43
+ /** Hide the label's mask toggle button. */
44
+ hideMaskToggle?: boolean;
45
+ /** Set the label's `for` attribute. */
46
+ for?: string;
47
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import { PageControlBindings } from ".";
2
+ /**
3
+ * Properties for {@link SVICustomElement.MaskToggleButton}.
4
+ *
5
+ * @category Properties
6
+ *
7
+ * @example HTML Example
8
+ * ```html
9
+ * <svi-mask-toggle-button
10
+ * [childNode]="childNode"
11
+ * [pageModel]="pageModel"
12
+ * >
13
+ * </svi-mask-toggle-button>
14
+ * ```
15
+ *
16
+ * @example Create element via document.createElement:
17
+ * ```ts
18
+ * const maskToggleBtn = document.createElement(SVICustomElement.MaskToggleButton);
19
+ * maskToggleBtn.pageModel = this.pageModel;
20
+ * maskToggleBtn.childNode = this.childNode;
21
+ * ```
22
+ */
23
+ export interface MaskToggleButtonProperties extends PageControlBindings {
24
+ /**
25
+ * Specify which dataSource will be toggled.
26
+ *
27
+ * If no {@link MaskToggleButtonProperties.dataSource | dataSource} is specified,
28
+ * the mask-toggle-button will toggle the dataSource(s) defined in the childNode's typeAttributes.
29
+ */
30
+ dataSource?: string;
31
+ /** Disable the mask toggle button. */
32
+ disabled?: boolean;
33
+ /** Hide the mask toggle button. */
34
+ hidden?: boolean;
35
+ /** Override the control name displayed in the authorization dialog. */
36
+ controlName?: string;
37
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -17,8 +17,9 @@ export declare enum PageEvents {
17
17
  UpdateSubDocumentTypeEvent = "spb::updateSubDocumentType",
18
18
  TabSelectedEvent = "spb::tabSelected",
19
19
  VisitAllTabs = "spb::mark-all-tabs-visited",
20
- MaskToggleEvent = "spb::mask-toggle",
21
- MaskAllEvent = "spb::mask-all",
20
+ MaskEvent = "spb::mask",
21
+ UnmaskEvent = "spb::unmask",
22
+ MaskResetEvent = "spb::mask-reset",
22
23
  ClearDateFieldEvent = "spb::clear-date-field"
23
24
  }
24
25
  export declare enum DocumentGeneratorEvents {
@@ -18,8 +18,9 @@ export var PageEvents;
18
18
  PageEvents["UpdateSubDocumentTypeEvent"] = "spb::updateSubDocumentType";
19
19
  PageEvents["TabSelectedEvent"] = "spb::tabSelected";
20
20
  PageEvents["VisitAllTabs"] = "spb::mark-all-tabs-visited";
21
- PageEvents["MaskToggleEvent"] = "spb::mask-toggle";
22
- PageEvents["MaskAllEvent"] = "spb::mask-all";
21
+ PageEvents["MaskEvent"] = "spb::mask";
22
+ PageEvents["UnmaskEvent"] = "spb::unmask";
23
+ PageEvents["MaskResetEvent"] = "spb::mask-reset";
23
24
  PageEvents["ClearDateFieldEvent"] = "spb::clear-date-field";
24
25
  })(PageEvents || (PageEvents = {}));
25
26
  export var DocumentGeneratorEvents;
@@ -63,19 +63,20 @@ export interface ObjectApi {
63
63
  * @param objectType {string} Object type.
64
64
  * @param objectId {string} Object ID.
65
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.
66
67
  * @return The specified object.
67
68
  */
68
- getObject(objectType: string, objectId: string, includeDisplayLabel?: boolean): Promise<VIObject>;
69
+ getObject(objectType: string, objectId: string, includeDisplayLabel?: boolean, includeChildObjects?: boolean): Promise<VIObject>;
69
70
  /**
70
71
  * @method
71
72
  * @description Gets the child objects of an object.
72
73
  * @param objectType {string} Object type.
73
74
  * @param objectId {string} Gets the child objects relating to the object ID.
74
75
  * @param childObjectType {string} Child object type.
75
- * @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.
76
77
  * @return A Promise that resolves to an array of objects, that are child objects of the specified object.
77
78
  */
78
- getChildObjects(objectType: string, objectId: string, childObjectType: string, maxResponses?: number): Promise<VIObject[]>;
79
+ getChildObjects(objectType: string, objectId: string, childObjectType: string, limit?: number): Promise<VIObject[]>;
79
80
  /**
80
81
  * @method
81
82
  * @description Updates an existing object with the provided data.
@@ -97,10 +98,11 @@ export interface ObjectApi {
97
98
  * @param objectTypeVersion {number} Object type version.
98
99
  * @param originalFieldValues {FieldValues} Field values before the object was edited
99
100
  * @param newFieldValues {FieldValues} Field values after the object was edited
101
+ * @param objectVersion {number} Object Version
100
102
  * @param [options] {UpdateObjectOptions} Optional extra parameters.
101
103
  * @return A Promise that resolves to the updated object when the object has successfully been updated.
102
104
  */
103
- 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>;
104
106
  /**
105
107
  * @method
106
108
  * @description Deletes an object.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassoftware/vi-api",
3
- "version": "1.42.0",
3
+ "version": "1.44.0",
4
4
  "description": "Types used in the SAS Visual Investigator API",
5
5
  "keywords": [
6
6
  "SAS",
@@ -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
  */
@@ -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.
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- // Generated using typescript-generator version 2.15.527 on 2024-04-29 09:50:32.
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.3",
3
+ "version": "7.4.4",
4
4
  "types": "index.d.ts"
5
5
  }