@i2analyze/notebook-sdk 1.1.0-dev.2 → 1.1.0-dev.22

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.
@@ -18,7 +18,7 @@ export declare namespace app {
18
18
  */
19
19
  export interface IApplication extends IApplicationEvents {
20
20
  /**
21
- * Queues a function that performs work on the application contents at the next available opportunity.
21
+ * Queues a function that performs read-only work on the application contents at the next available opportunity.
22
22
  *
23
23
  * @param handler - The function to perform the work.
24
24
  * @param options - An object that can control the transaction.
@@ -68,97 +68,288 @@ export declare namespace app {
68
68
  */
69
69
  readonly serverComponents: IServerComponents;
70
70
  /**
71
- * Runs TODO TODO TODO.
72
- * @param mutationListener - A TODO.
71
+ * Queues a function that performs tracked mutations on the application contents at the next available opportunity.
72
+ *
73
+ * @remarks
74
+ * A mutation is an operation that can read or modify the contents of the application.
75
+ * A successful set of tracked mutations is added as a single entry to the undo stack.
76
+ *
77
+ * @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
78
+ * @i2since 1.1
79
+ */
80
+ runTrackedMutations(mutationHandler: TrackedMutationHandler): void;
81
+ /**
82
+ * Queues a function that performs untracked mutations on the application contents at the next available opportunity.
83
+ *
84
+ * @remarks
85
+ * A mutation is an operation that can read or modify the contents of the application.
86
+ * Untracked mutations are not added to the undo stack, and therefore cannot be undone.
87
+ *
88
+ * @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
89
+ * @i2since 1.1
90
+ */
91
+ runUntrackedMutations(mutationHandler: UntrackedMutationHandler): void;
92
+ }
93
+ /**
94
+ * A report on the result of one or more mutations.
95
+ * @i2since 1.1
96
+ */
97
+ export type IMutationReport = ISuccessReport | IDetailedReport;
98
+ /**
99
+ * A report on the result of an entirely successful set of mutations.
100
+ * The report is typically displayed through a transient, 'toast'-style notification.
101
+ * @i2since 1.1
102
+ */
103
+ export interface ISuccessReport {
104
+ /**
105
+ * Gets or sets the type of the report, which must be `'success'` for an `ISuccessReport`.
106
+ * @i2since 1.1
107
+ */
108
+ type: 'success';
109
+ /**
110
+ * Gets or sets some additional information about the completed mutations.
111
+ * @i2since 1.1
112
+ */
113
+ details: string;
114
+ }
115
+ /**
116
+ * A report on the result of a set of mutations that were not entirely successful.
117
+ * The report is typically displayed through a 'dialog'-style notification.
118
+ * @i2since 1.1
119
+ */
120
+ export interface IDetailedReport {
121
+ /**
122
+ * Gets or sets the type of the report, which can be `'information'`, `'warning'`, or `'error'` for an `IDetailedReport`.
123
+ * @i2since 1.1
124
+ */
125
+ type: 'information' | 'warning' | 'error';
126
+ /**
127
+ * Gets or sets a title for the report, which is typically used as the title of a notification dialog.
128
+ * @i2since 1.1
129
+ */
130
+ title: string;
131
+ /**
132
+ * Gets or sets some additional information about the mutations.
73
133
  * @i2since 1.1
74
134
  */
75
- runMutation(mutationListener: TrackedMutationListener): void;
76
- runUntrackedMutation(mutationListener: UntrackedMutationListener): void;
135
+ details: string;
77
136
  }
78
- export interface IMutationCommit {
137
+ /**
138
+ * A set of information that is common to requests to commit mutations of all types.
139
+ * @i2since 1.1
140
+ */
141
+ export interface IMutationCommitBase {
142
+ /**
143
+ * Gets or sets the type of the request, which must be `"commit"` for commit requests.
144
+ * @i2since 1.1
145
+ */
79
146
  type: 'commit';
147
+ /**
148
+ * Gets or sets a optional report that describes the result of one or more mutations.
149
+ * @i2since 1.1
150
+ */
80
151
  report?: IMutationReport;
81
152
  }
82
- export interface ITrackedMutationCommit extends IMutationCommit {
153
+ /**
154
+ * A set of information that accompanies a request to commit a set of untracked mutations.
155
+ * @i2since 1.1
156
+ */
157
+ export interface IUntrackedMutationCommit extends IMutationCommitBase {
158
+ }
159
+ /**
160
+ * A set of information that accompanies a request to commit a set of tracked mutations.
161
+ * @i2since 1.1
162
+ */
163
+ export interface ITrackedMutationCommit extends IMutationCommitBase {
83
164
  /**
84
- * Gets the name to use in the undo stack entry created for this action.
165
+ * Gets or sets the name to use for the entry in the undo stack that represents the commit.
85
166
  * @i2since 1.1
86
167
  */
87
168
  actionDisplayName: string;
88
169
  }
170
+ /**
171
+ * A set of information that accompanies a request to roll back a set of mutations.
172
+ * @i2since 1.1
173
+ */
89
174
  export interface IMutationRollback {
175
+ /**
176
+ * Gets or sets the type of the request, which must be `"rollback"` for rollback requests.
177
+ * @i2since 1.1
178
+ */
90
179
  type: 'rollback';
180
+ /**
181
+ * Gets or sets a optional report that describes the result of one or more mutations.
182
+ * @i2since 1.1
183
+ */
91
184
  report?: IMutationReport;
92
185
  }
93
- export interface IMutationReport {
94
- type: 'success' | 'info' | 'warn' | 'error';
95
- text: string;
96
- }
186
+ /**
187
+ * A response from a tracked mutation handler, which indicates whether the mutation should be committed or rolled back.
188
+ * @i2since 1.1
189
+ */
97
190
  export type ITrackedMutationInfo = ITrackedMutationCommit | IMutationRollback;
98
- export type IMutationInfo = IMutationCommit | IMutationRollback;
99
- export type UntrackedMutationListener = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IMutationInfo | Promise<IMutationInfo>;
100
- export type TrackedMutationListener = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
101
191
  /**
102
- * Provides information about whether the user has requested that the operation be canceled.
192
+ * A response from an untracked mutation handler, which indicates whether the mutation should be committed or rolled back.
193
+ * @i2since 1.1
194
+ */
195
+ export type IUntrackedMutationInfo = IUntrackedMutationCommit | IMutationRollback;
196
+ /**
197
+ * A function that performs untracked mutations.
198
+ *
199
+ * @remarks
200
+ * This function _must not_ maintain references to charts or any of their objects after the work completes.
201
+ *
202
+ * @param application - The contents of the application that the function can operate on.
203
+ * @param mutations - A collection of methods that can perform untracked mutations.
204
+ * @param cancelation - An object that detects when a user requests cancelation of the mutations.
205
+ * @i2since 1.1
206
+ */
207
+ export type UntrackedMutationHandler = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IUntrackedMutationInfo | Promise<IUntrackedMutationInfo>;
208
+ /**
209
+ * A function that performs tracked mutations.
210
+ *
211
+ * @remarks
212
+ * This function _must not_ maintain references to charts or any of their objects after the work completes.
213
+ *
214
+ * @param application - The contents of the application that the function can operate on.
215
+ * @param mutations - A collection of methods that can perform tracked mutations.
216
+ * @param cancelation - An object that detects when a user requests cancelation of the mutations.
217
+ * @i2since 1.1
218
+ */
219
+ export type TrackedMutationHandler = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
220
+ /**
221
+ * A collection of methods and properties for handling the situation when a user cancels an operation.
222
+ *
103
223
  * @remarks
104
- * We provide two cancelation APIs: An `AbortSignal`-based API and a `Promise`-based API, which you can
105
- * use depending on your scenario:
224
+ * The i2 Notebook SDK provides two cancelation APIs: An `AbortSignal`-based API and a `Promise`-based
225
+ * API, which you can use depending on your scenario:
106
226
  *
107
- * If you need to launch an asynchronous operation (for example, a `fetch` call) which can itself be
108
- * canceled via an `AbortSignal`, you may wish to pass the cancelation `AbortSignal` directly to that
109
- * operation.
227
+ * - To launch an asynchronous operation (for example, a `fetch` call) that can itself be canceled by
228
+ * an `AbortSignal`, you can pass `signal` directly to that operation.
110
229
  *
111
- * If you need to launch an asynchronous operation which cannot itself be canceled but wish to
112
- * abandon that operation when the user requests cancelation, you should use
113
- * `waitForPromiseOrCancel` with the `Promise` from your operation. The returned Promise will resolve
114
- * or reject just as your operation Promise does, will reject immediately with an `AbortError`
115
- * if the user cancels the operation.
230
+ * - To launch an asynchronous operation that cannot itself be canceled but is to be abandoned if the
231
+ * user requests cancelation, call `waitForPromiseOrCancel()` with the `Promise` from your operation.
232
+ * The returned `Promise` resolves or rejects just as your operation's `Promise` does, and it rejects
233
+ * immediately with an `AbortError` if the user cancels the operation.
116
234
  *
117
- * If you need to check synchronously if the operation has been canceled, you can inspect the `aborted`
118
- * property of the `AbortSignal`.
235
+ * To check synchronously if the operation has been canceled, you can inspect the `signal.aborted`
236
+ * property.
119
237
  *
120
238
  * @i2since 1.1
121
239
  */
122
240
  export interface ICancelation {
241
+ /**
242
+ * Launches an asynchronous operation through the specified promise.
243
+ *
244
+ * @typeParam T - The type of the output from the operation.
245
+ * @param promise - A promise that resolves to the output from the operation.
246
+ * @returns A promise that also resolves to the output from the operation.
247
+ * @i2since 1.1
248
+ */
123
249
  waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
124
250
  /**
125
- * Gets an `AbortSignal` which indicates whether the user has requested that the operation be canceled.
251
+ * Gets an `AbortSignal` that indicates whether a user has requested that an operation be canceled.
252
+ *
126
253
  * @i2since 1.1
127
254
  */
128
255
  signal: AbortSignal;
129
256
  }
130
257
  export type TODO = unknown;
131
258
  /**
132
- * Provides support for manipulating a status display while an asynchronous mutation is running.
259
+ * A set of methods for changing a status display while an asynchronous mutation is running.
133
260
  * @i2since 1.1
134
261
  */
135
- export interface IStatusSupport {
262
+ export interface IStatus {
136
263
  /**
137
- * Sets the status text in the blocking spinner display.
264
+ * Sets the status message in the blocking spinner display.
138
265
  *
139
266
  * @remarks
140
- *
141
- * Use this to update the user on the progress of a particularly long-running operation.
142
- * It will be prefixed by the name of your plug-in.
267
+ * Use this method to update users about the progress of a particularly long-running operation.
268
+ * In the user interface, the text you provide is prefixed by the name of your plug-in.
143
269
  *
144
270
  * @param text - The text to display.
145
- *
146
271
  * @i2since 1.1
147
272
  */
148
- setStatus(text: string): void;
273
+ setMessage(text: string): void;
149
274
  }
275
+ /**
276
+ * A common specifier for a record, for use in mutation APIs.
277
+ * @i2since 1.1
278
+ */
150
279
  export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
151
- export interface IChartRecordData {
280
+ /**
281
+ * A common specifier for an element, for use in mutation APIs.
282
+ * @i2since 1.1
283
+ */
284
+ export type ElementSpecifier = visual.ElementId | visual.IElement;
285
+ /**
286
+ * The identifier of a record group.
287
+ * @i2since 1.1
288
+ */
289
+ export type AnalyzeRecordGroupId = string;
290
+ /**
291
+ * The effect on chart selection of adding a record group to the chart.
292
+ *
293
+ * @remarks
294
+ *
295
+ * `addRecordsToSelection` adds the records from the group to the current selection;
296
+ * `setSelectionToRecords` sets the selection to the records from the group;
297
+ * `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
298
+ * @i2since 1.1
299
+ */
300
+ export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
301
+ /**
302
+ * A common specifier for record properties used to pass record properties when adding or editing a record.
303
+ * @i2since 1.1
304
+ */
305
+ export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.IChartPropertyType | schema.ChartPropertyTypeId, data.PropertyValue]>;
306
+ /**
307
+ * A set of data that is common to creating records of all types.
308
+ * @i2since 1.1
309
+ */
310
+ export interface IChartRecordBaseData {
311
+ /**
312
+ * Gets or sets the item type of the new record.
313
+ * @i2since 1.1
314
+ */
152
315
  itemType: schema.ChartItemTypeId | schema.IChartItemType;
153
- properties: TODO;
154
- security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
155
- notes?: readonly INoteData[];
316
+ /**
317
+ * Gets or sets the properties of the new record.
318
+ * @i2since 1.1
319
+ */
320
+ properties?: RecordPropertiesSpecifier;
321
+ /**
322
+ * Gets or sets the security settings of the new record.
323
+ * @i2since 1.1
324
+ */
325
+ security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
326
+ /**
327
+ * Gets or sets the notes for the new record.
328
+ * @i2since 1.1
329
+ */
330
+ notes?: readonly records.INoteData[];
331
+ /**
332
+ * Gets or sets the source references of the new record.
333
+ * @i2since 1.1
334
+ */
156
335
  sourceReferences?: readonly records.ISourceReferenceData[];
336
+ /**
337
+ * Gets or sets the source identifiers of the new record.
338
+ * @i2since 1.1
339
+ */
157
340
  sourceIdentifiers?: readonly records.ISourceIdentifier[];
158
341
  }
159
- export interface IChartEntityRecordData extends IChartRecordData {
342
+ /**
343
+ * A set of data for creating an entity record.
344
+ * @i2since 1.1
345
+ */
346
+ export interface IChartEntityRecordData extends IChartRecordBaseData {
160
347
  }
161
- export interface IChartLinkRecordData extends IChartRecordData {
348
+ /**
349
+ * A set of data for creating a link record.
350
+ * @i2since 1.1
351
+ */
352
+ export interface IChartLinkRecordData extends IChartRecordBaseData {
162
353
  /**
163
354
  * Gets the record at the 'from' end of the link.
164
355
  * @i2since 1.1
@@ -178,263 +369,478 @@ export declare namespace app {
178
369
  */
179
370
  readonly linkDirection: data.LinkDirection;
180
371
  }
181
- export interface INoteData {
182
- content: string;
183
- }
184
372
  /**
185
- * Provides utility functions for performing mutation operations.
373
+ * A set of methods for performing tracked or untracked mutations, organized by what they affect.
186
374
  * @i2since 1.1
187
375
  */
188
376
  export interface IMutationsBase {
189
377
  /**
190
- * Gets an object that provides the user with progress feedback and operation cancellation support.
378
+ * Gets an object that provides methods for communicating progress information to users.
379
+ * @i2since 1.1
380
+ */
381
+ readonly status: IStatus;
382
+ /**
383
+ * Gets an object that provides methods for modifying chart selection.
191
384
  * @i2since 1.1
192
385
  */
193
- readonly status: IStatusSupport;
386
+ readonly selection: ISelectionEditor;
194
387
  /**
195
- * Gets an object that provides the user with the ability to modify selection.
388
+ * Gets an object that provides methods for modifying the chart view.
196
389
  * @i2since 1.1
197
390
  */
198
- readonly selection: ISelectionMutations;
199
- readonly view: IViewMutations;
391
+ readonly view: IViewEditor;
200
392
  }
393
+ /**
394
+ * A set of methods for performing untracked mutations, which do not require an entry in the undo stack.
395
+ * @i2since 1.1
396
+ */
201
397
  export interface IUntrackedMutations extends IMutationsBase {
202
398
  }
399
+ /**
400
+ * A set of methods for modifying the contents of a record.
401
+ * @i2since 1.1
402
+ */
203
403
  export interface IRecordEditor {
204
- setProperties(properties: TODO): this;
205
- addNote(note: INoteData): this;
206
- replaceNote(id: records.NoteId, note: INoteData): this;
404
+ /**
405
+ * Sets properties on the record.
406
+ *
407
+ * @param properties - The properties to set.
408
+ * @returns This record, with the new properties in place.
409
+ * @i2since 1.1
410
+ */
411
+ setProperties(properties: RecordPropertiesSpecifier): this;
412
+ /**
413
+ * Adds a new note to the record.
414
+ *
415
+ * @param note - The data for the new note.
416
+ * @returns This record, with the new note in place.
417
+ * @i2since 1.1
418
+ */
419
+ addNote(note: records.INoteData): this;
420
+ /**
421
+ * Replaces an existing note on the record with a new one.
422
+ *
423
+ * @param id - The identifier of the note to replace.
424
+ * @param note - The data for the new note.
425
+ * @returns This record, with the new note in place.
426
+ * @i2since 1.1
427
+ */
428
+ replaceNote(id: records.NoteId, note: records.INoteData): this;
429
+ /**
430
+ * Removes a note from the record.
431
+ *
432
+ * @param id - The identifier of the note to remove.
433
+ * @returns This record, without the note.
434
+ * @i2since 1.1
435
+ */
207
436
  removeNote(id: records.NoteId): this;
437
+ /**
438
+ * Adds a new source reference to the record.
439
+ *
440
+ * @param ref - The data for the new source reference.
441
+ * @returns This record, with the new source reference in place.
442
+ * @i2since 1.1
443
+ */
208
444
  addSourceReference(ref: records.ISourceReferenceData): this;
445
+ /**
446
+ * Replaces an existing source reference on the record with a new one.
447
+ *
448
+ * @param id - The identifier of the source reference to replace.
449
+ * @param ref - The data for the new source reference.
450
+ * @returns This record, with the new source reference in place.
451
+ * @i2since 1.1
452
+ */
209
453
  replaceSourceReference(id: records.SourceReferenceId, ref: records.ISourceReferenceData): this;
454
+ /**
455
+ * Removes a source reference from the record.
456
+ *
457
+ * @param id - The identifier of the source reference to remove.
458
+ * @returns This record, without the source reference.
459
+ * @i2since 1.1
460
+ */
210
461
  removeSourceReference(id: records.SourceReferenceId): this;
462
+ /**
463
+ * Replaces the record's security settings with a new set.
464
+ * @param security - The new security settings.
465
+ * @returns This record, with the new security settings in place.
466
+ * @i2since 1.1
467
+ */
211
468
  replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
212
469
  }
470
+ /**
471
+ * A record that has been created in a transaction handler, but has not yet been added to a chart.
472
+ * @i2since 1.1
473
+ */
213
474
  export interface IPendingRecord extends IRecordEditor {
475
+ /**
476
+ * Gets or sets the identifier of the record.
477
+ * @i2since 1.1
478
+ */
214
479
  recordId: records.AnalyzeRecordId;
215
480
  }
216
- export type NodeSpecifier = visual.INode | visual.ElementId;
217
- export interface IDataFactory {
481
+ /**
482
+ * A set of utility functions for creating property and other values that can be reused across records.
483
+ * @i2since 1.1
484
+ */
485
+ export interface IValueFactory {
218
486
  /**
219
- * Creates a Security Setting object which can be used to configure the security for records.
487
+ * Creates a security setting that you can use to configure record security.
488
+ *
489
+ * @remarks
490
+ * You can use the same security setting to configure the security of several records.
491
+ *
492
+ * @param data - The data for the new security setting.
493
+ * @returns The new security setting.
494
+ * @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
220
495
  * @i2since 1.1
221
- * @param data - The values to populate the new {@link records.ISecuritySetting} with.
222
- * @returns A new {@link records.ISecuritySetting} object.
223
- * @throws `Error` if the dimension or values did not exist in the security schema.
224
496
  */
225
- createSecuritySetting(data: ISecuritySettingData): records.ISecuritySetting;
497
+ createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
226
498
  /**
227
- * Creates a Decimal value from a number or a Decimal transport string.
499
+ * Creates a decimal value from a number or a string.
228
500
  *
229
- * @param value - The number or transport string to initialize the Decimal from.
230
- * @returns A new {@link data.IDecimal} object.
231
- * @throws `Error` if the value was `NaN`, too large to fit into a Decimal or an invalid transport string.
501
+ * @param value - The number or string to initialize the decimal value from.
502
+ * @returns The new decimal value.
503
+ * @throws `Error` if the value was `NaN`, or too large to be a decimal, or an invalid string.
232
504
  * @i2since 1.1
233
505
  */
234
506
  createDecimal(value: number | string): data.IDecimal;
235
507
  /**
236
- * Creates a local date object (one without a time or time zone).
237
- * @param year - A full year for the date; for example, `1973`.
238
- * @param month - The (1-based) full month of the date (1-12).
239
- * @param day - The month day of the date (1-31).
240
- * @returns An {@link data.ILocalDate} containing the date data.
508
+ * Creates a local date object (that does not have a time or a time zone) from year/month/day information.
509
+ *
510
+ * @param year - The full year of the date; for example, `1973`.
511
+ * @param month - The (1-based) month of the year (1-12).
512
+ * @param day - The (1-based) day of the month (1-31).
513
+ * @returns The new local date object.
241
514
  * @i2since 1.1
242
515
  */
243
516
  createLocalDate(year: number, month: number, day: number): data.ILocalDate;
244
517
  /**
245
- * Creates a local date object (one without a time or time zone) from a JavaScript `Date` object.
246
- * @param jsDate - A JavaScript `Date` from which the 'local' (not UTC) date values are used.
247
- * @returns An {@link data.ILocalDate} containing the date data.
518
+ * Creates a local date object (that does not have a time or a time zone) from a JavaScript `Date` object.
519
+ *
520
+ * @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date values are used.
521
+ * @returns The new local date object.
248
522
  * @i2since 1.1
249
523
  */
250
524
  createLocalDate(jsDate: Date): data.ILocalDate;
251
525
  /**
252
- * Creates a local date object (one without a time or time zone) from an ISO8601 string ('yyyy-mm-dd').
253
- * @param iso8601 - An ISO8601-formatted string representing the date.
254
- * @returns An {@link data.ILocalDate} containing the date data.
255
- * @throws `Error` if the string was not valid ISO8601.
526
+ * Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
527
+ *
528
+ * @param iso8601 - An ISO 8601-formatted string that represents the date.
529
+ * @returns The new local date object.
530
+ * @throws `Error` if the string was not in valid ISO 8601 format.
256
531
  * @i2since 1.1
257
532
  */
258
533
  createLocalDate(iso8601: string): data.ILocalDate;
259
534
  /**
260
- * Creates a local time object (one without a date or time zone).
261
- * @param hour - The hour (0-23).
262
- * @param minute - The minutes (0-59).
263
- * @param second - The seconds (0-59).
264
- * @param milli - The (optional) milliseconds (0-999).
265
- * @returns An {@link data.ILocalTime} containing the time data.
535
+ * Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
536
+ *
537
+ * @param hour - The hour of the day (0-23).
538
+ * @param minute - The minutes of the hour (0-59).
539
+ * @param second - The seconds of the minute (0-59).
540
+ * @param milli - The milliseconds of the second (0-999).
541
+ * @returns The new local time object.
266
542
  * @i2since 1.1
267
543
  */
268
544
  createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
269
545
  /**
270
- * Creates a local time object (one without a date or time zone) from a JavaScript `Date` object.
271
- * @param jsDate - A JavaScript `Date` from which the 'local' (not UTC) time values are used.
272
- * @returns An {@link data.ILocalTime} containing the time data.
546
+ * Creates a local time object (that does not have a date or a time zone) from a JavaScript `Date` object.
547
+ *
548
+ * @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) time values are used.
549
+ * @returns The new local time object.
273
550
  * @i2since 1.1
274
551
  */
275
552
  createLocalTime(jsDate: Date): data.ILocalTime;
276
553
  /**
277
- * Creates a local time object (one without a time or time zone) from an ISO8601 string ('hh:mm:ss' or 'hh:mm:ss.sss').
278
- * @param iso8601 - An ISO8601-formatted string representing the date.
279
- * @returns An {@link data.ILocalTime} containing the time data.
280
- * @throws `Error` if the string was not valid ISO8601.
554
+ * Creates a local time object (that does not have a date or a time zone) from an ISO 8601 string ('hh:mm:ss' or 'hh:mm:ss.sss').
555
+ *
556
+ * @param iso8601 - An ISO 8601-formatted string that represents the time.
557
+ * @returns The new local time object.
558
+ * @throws `Error` if the string was not in valid ISO 8601 format.
281
559
  * @i2since 1.1
282
560
  */
283
561
  createLocalTime(iso8601: string): data.ILocalTime;
284
562
  /**
285
- * Creates a local date-time object (one without a time zone).
286
- * @param year - A full year for the date; for example, `1973`.
287
- * @param month - The (1-based) full month of the date (1-12).
288
- * @param day - The month day of the date (1-31).
289
- * @param hour - The hour (0-23).
290
- * @param minute - The minutes (0-59).
291
- * @param second - The seconds (0-59).
292
- * @param milli - The (optional) milliseconds (0-999).
293
- * @returns An {@link data.ILocalDateTime} containing the date and time data.
563
+ * Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
564
+ *
565
+ * @param year - The full year of the date; for example, `1973`.
566
+ * @param month - The (1-based) month of the year (1-12).
567
+ * @param day - The (1-based) day of the month (1-31).
568
+ * @param hour - The hour of the day (0-23).
569
+ * @param minute - The minutes of the hour (0-59).
570
+ * @param second - The seconds of the minute (0-59).
571
+ * @param milli - The milliseconds of the second (0-999).
572
+ * @returns The new local date-time object.
294
573
  * @i2since 1.1
295
574
  */
296
- createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
575
+ createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
297
576
  /**
298
- * Creates a local date-time object (one without a time zone) from a JavaScript `Date` object.
299
- * @param jsDate - A JavaScript `Date` from which the 'local' (not UTC) date and time values are used.
300
- * @returns An {@link data.ILocalDateTime} containing the date-time data.
577
+ * Creates a local date-time object (that does not have a time zone) from a JavaScript `Date` object.
578
+ *
579
+ * @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date and time values are used.
580
+ * @returns The new local date-time object.
301
581
  * @i2since 1.1
302
582
  */
303
583
  createLocalDateTime(jsDate: Date): data.ILocalDateTime;
304
584
  /**
305
- * Creates a local date-time object (one without a time zone) from a local date and a local time object.
585
+ * Creates a local date-time object (that does not have a time zone) from a local date and a local time object.
586
+ *
306
587
  * @param date - A local date.
307
588
  * @param time - A local time.
308
- * @returns An {@link data.ILocalDateTime} containing the date-time data.
589
+ * @returns The new local date-time object.
309
590
  * @i2since 1.1
310
591
  */
311
592
  createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
312
593
  /**
313
- * Creates a local date-time object (one without a time zone) from an ISO8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss').
314
- * @param iso8601 - An ISO8601-formatted string representing the date and time.
315
- * @returns An {@link data.ILocalTime} containing the date-time data.
316
- * @throws `Error` if the string was not valid ISO8601.
594
+ * Creates a local date-time object (that does not have a time zone) from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss').
595
+ *
596
+ * @param iso8601 - An ISO 8601-formatted string that represents the date and time.
597
+ * @returns The new local date-time object.
598
+ * @throws `Error` if the string was not in valid ISO 8601 format.
317
599
  * @i2since 1.1
318
600
  */
319
601
  createLocalDateTime(iso8601: string): data.ILocalDateTime;
320
602
  /**
321
- * Creates a 'zoned' date-time object (one with a time zone).
603
+ * Creates a date-time object that has a time zone from a local date, a local time, and a time zone.
604
+ *
322
605
  * @param date - A local date.
323
606
  * @param time - A local time.
324
- * @param timeZone - A time zone or time zone id.
325
- * @param isDst - A value indicating whether the date-time is in daylight-savings-time for the specified time zone.
326
- * This is especially important for date-time values which are ambiguous, such as during the period
327
- * when clocks go back from DST to not-DST: this flag is needed to distinguish those two values.
328
- * @returns An {@link data.IZonedDateTime} containing the date-time data.
329
- * @throws `Error` if an unknown time zone id is used.
607
+ * @param timeZone - A time zone, or a time zone identifier.
608
+ * @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
609
+ *
610
+ * This value is especially important for date-time values that are ambiguous, such as during the period
611
+ * when clocks go back from DST to not-DST and the same local time occurs twice.
612
+ * @returns The new date-time object.
613
+ * @throws `Error` if `timeZone` did not specify a valid time zone.
330
614
  * @i2since 1.1
331
615
  */
332
616
  createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
333
617
  /**
334
- * Creates a 'zoned' date-time object (one with a time zone).
335
- * @param dateTime - A date and a time, either as an {@link data.ILocalDateTime} or a JavaScript `Date`.
336
- * @param timeZone - A time zone or time zone id.
337
- * @param isDst - A value indicating whether the date-time is in daylight-savings-time for the specified time zone.
338
- * This is especially important for date-time values which are ambiguous, such as during the period
339
- * when clocks go back from DST to not-DST: this flag is needed to distinguish those two values.
340
- * @returns An {@link data.IZonedDateTime} containing the date-time data.
341
- * @throws `Error` if an unknown time zone id is used.
618
+ * Creates a date-time object that has a time zone from a local date-time (or a JavaScript `Date` object) and a time zone.
619
+ *
620
+ * @param dateTime - A local date-time, or a JavaScript `Date`.
621
+ * @param timeZone - A time zone, or a time zone identifier.
622
+ * @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
623
+ *
624
+ * This value is especially important for date-time values that are ambiguous, such as during the period
625
+ * when clocks go back from DST to not-DST and the same local time occurs twice.
626
+ * @returns The new date-time object.
627
+ * @throws `Error` if `timeZone` did not specify a valid time zone.
342
628
  * @i2since 1.1
343
629
  */
344
630
  createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
345
631
  /**
346
- * Creates a 'zoned' date-time object (one with a time zone) from an ISO8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss').
347
- * @param dateTimeIso8601 - An ISO8601-formatted string representing the date and time.
348
- * @param timeZone - A time zone or time zone id.
349
- * @param isDst - A value indicating whether the date-time is in daylight-savings-time for the specified time zone.
350
- * This is especially important for date-time values which are ambiguous, such as during the period
351
- * when clocks go back from DST to not-DST: this flag is needed to distinguish those two values.
352
- * @returns An {@link data.IZonedDateTime} containing the date-time data.
353
- * @throws `Error` if the string was not valid ISO8601.
354
- * @throws `Error` if an unknown time zone id is used.
632
+ * Creates a date-time object that has a time zone from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss') and a time zone.
633
+ *
634
+ * @param iso8601 - An ISO 8601-formatted string that represents the date and time.
635
+ * @param timeZone - A time zone, or a time zone identifier.
636
+ * @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
637
+ *
638
+ * This value is especially important for date-time values that are ambiguous, such as during the period
639
+ * when clocks go back from DST to not-DST and the same local time occurs twice.
640
+ * @returns The new date-time object.
641
+ * @throws `Error` if the string was not in valid ISO 8601 format, or `timeZone` did not specify a valid time zone.
355
642
  * @i2since 1.1
356
643
  */
357
- createZonedDateTime(dateTimeIso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
644
+ createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
358
645
  /**
359
- * Creates a {@link data.IGeoPoint} object.
646
+ * Creates a {@link data.IGeoPoint} object from a pair of latitude and longitude values.
647
+ *
648
+ * @param latitude - The latitude of the geospatial position, in the range from -90 to +90 degrees.
649
+ * @param longitude - The longitude of the geospatial position, in the range from -180 to 180 degrees.
650
+ * @returns The new {@link data.IGeoPoint} object.
651
+ * @throws `Error` if either the latitude or the longitude was out of range.
360
652
  * @i2since 1.1
361
- * @param latitude - The latitude [-90 to +90] of the point.
362
- * @param longitude - The longitude [-180 to +180] of the point.
363
- * @returns A {@link data.IGeoPoint}.
364
- * @throws `Error` if either the latitude or longitude was out of range.
365
653
  */
366
654
  createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
367
655
  /**
368
- * Creates a {@link data.IGeoPoint} object.
656
+ * Creates a {@link data.IGeoPoint} object from a {@link data.IGeoPointData} object.
657
+ *
658
+ * @param data - A set of data that specifies the geospatial position.
659
+ * @returns The new {@link data.IGeoPoint} object.
660
+ * @throws `Error` if the specified data was out of range or otherwise not valid.
369
661
  * @i2since 1.1
370
- * @param data - An object containing the latitude [-90 to +90] and longitude [-180 to +180] of the point.
371
- * @returns A {@link data.IGeoPoint}.
372
- * @throws `Error` if either the latitude or longitude was out of range.
373
662
  */
374
- createGeoPoint(data: IGeoPointData): data.IGeoPoint;
663
+ createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
375
664
  }
376
- export interface ITrackedMutations extends IMutationsBase, IDataFactory {
665
+ /**
666
+ * A set of methods for performing tracked mutations, which require an entry in the undo stack.
667
+ * @i2since 1.1
668
+ */
669
+ export interface ITrackedMutations extends IMutationsBase {
670
+ /**
671
+ * Gets a library of functions for creating objects to use in mutations.
672
+ * @i2since 1.1
673
+ */
674
+ readonly valueFactory: IValueFactory;
675
+ /**
676
+ * Creates an entity record that will be added to the chart when the mutation is committed.
677
+ *
678
+ * @param recordTemplate - The data from which to create the record.
679
+ * @param hints - A TODO.
680
+ * @returns The new, "pending" record.
681
+ * @i2since 1.1
682
+ */
377
683
  addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
684
+ /**
685
+ * Creates a link record that will be added to the chart when the mutation is committed.
686
+ *
687
+ * @param recordTemplate - The data from which to create the record.
688
+ * @param hints - A TODO.
689
+ * @returns The new, "pending" record.
690
+ * @i2since 1.1
691
+ */
378
692
  addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
693
+ /**
694
+ * Adds the records from a record group to the chart.
695
+ *
696
+ * @param recordGroupId - The identifier of the record group to add.
697
+ * @param selectionOption - The effect on chart selection of adding the record group.
698
+ * @i2since 1.1
699
+ */
700
+ addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
701
+ /**
702
+ * Gets an object with methods for editing a record.
703
+ *
704
+ * @param record - The record to be edited.
705
+ * @returns The record-editing object.
706
+ * @i2since 1.1
707
+ */
379
708
  editRecord(record: RecordSpecifier): IRecordEditor;
380
- removeRecord(record: RecordSpecifier): void;
381
- setNodeCenter(node: NodeSpecifier, position: visual.IPosition): void;
382
- moveSelectionRelative(centerDelta: {
709
+ /**
710
+ * Moves a node to a particular location on the chart.
711
+ *
712
+ * @param node - The node to be moved.
713
+ * @param position - The location to move the node to.
714
+ * @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
715
+ * @i2since 1.1
716
+ */
717
+ setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
718
+ /**
719
+ * Moves all the nodes that contain selected records by the same displacement.
720
+ *
721
+ * @param centerDelta - The displacement on the x and y axes, in chart coordinates.
722
+ * @i2since 1.1
723
+ */
724
+ moveSelectedNodesRelative(centerDelta: {
383
725
  xDelta: number;
384
726
  yDelta: number;
385
727
  }): void;
386
- }
387
- export interface IGeoPointData {
388
728
  /**
389
- * Gets the latitude of the position, in degrees north.
729
+ * Removes records from the chart.
730
+ *
731
+ * @param records - The record or records to be removed.
732
+ * @returns Returns true if one or more records existed on the chart and has been removed, or false if none of the records existed.
390
733
  * @i2since 1.1
391
734
  */
392
- readonly latitude: number;
735
+ removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
393
736
  /**
394
- * Gets the longitude of the position, in degrees east.
737
+ * Removes elements from the chart.
738
+ *
739
+ * @param elements - The element or elements to be removed.
740
+ * @returns Returns true if one or more elements existed on the chart and has been removed, or false if none of the elements existed.
395
741
  * @i2since 1.1
396
742
  */
397
- readonly longitude: number;
743
+ removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
744
+ /**
745
+ * Removes the selected records from the chart.
746
+ * @i2since 1.1
747
+ */
748
+ removeSelectedRecords(): void;
398
749
  }
399
- export interface ISecuritySettingData {
400
- dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
401
- values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
750
+ /**
751
+ * A collection of elements and records that together represent a selection on the chart surface.
752
+ * @i2since 1.1
753
+ */
754
+ export interface IElementsAndRecords {
755
+ /**
756
+ * Gets or sets the records in the set.
757
+ * @i2since 1.1
758
+ */
759
+ records?: Iterable<RecordSpecifier>;
760
+ /**
761
+ * Gets or sets the elements in the set.
762
+ * @i2since 1.1
763
+ */
764
+ elements?: Iterable<visual.ElementId | visual.IElement>;
402
765
  }
403
- export interface IViewMutations {
404
- setCenter(): void;
405
- setZoom(): void;
406
- fitToChart(): void;
407
- fitToHeight(): void;
408
- fitToSelection(): void;
409
- fitToItems(items: Iterable<RecordSpecifier | visual.ElementId | visual.IElement>): void;
410
- fitToItems(...items: readonly (RecordSpecifier | visual.ElementId | visual.IElement)[]): void;
766
+ /**
767
+ * A set of methods that change the chart view.
768
+ * @i2since 1.1
769
+ */
770
+ export interface IViewEditor {
771
+ /**
772
+ * Sets the location on the chart that appears in the center of the viewport, and the zoom level.
773
+ *
774
+ * @param viewport - The new position and zoom level of the chart in the viewport.
775
+ * @i2since 1.1
776
+ */
777
+ setViewport(viewport: chart.IViewportData): void;
778
+ /**
779
+ * Adjusts the position and zoom of the chart so that all elements on it are visible.
780
+ *
781
+ * @param options - A set of constraints that place restrictions on the change to the viewport.
782
+ * @i2since 1.1
783
+ */
784
+ fitToChart(options?: chart.IFitConstraints): void;
785
+ /**
786
+ * Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
787
+ *
788
+ * @param options - A set of constraints that place restrictions on the change to the viewport.
789
+ * @i2since 1.1
790
+ */
791
+ fitToHeight(options?: chart.IFitConstraints): void;
792
+ /**
793
+ * Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
794
+ *
795
+ * @param options - A set of constraints that place restrictions on the change to the viewport.
796
+ * @i2since 1.1
797
+ */
798
+ fitToSelection(options?: chart.IFitConstraints): void;
799
+ /**
800
+ * Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
801
+ *
802
+ * @param items - The elements to make visible, and the records whose containing elements are to be visible.
803
+ * @param options - A set of constraints that place restrictions on the change to the viewport.
804
+ * @i2since 1.1
805
+ */
806
+ fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
411
807
  }
412
- export interface ISelectionMutations {
808
+ /**
809
+ * A set of methods that can change the chart selection.
810
+ * @i2since 1.1
811
+ */
812
+ export interface ISelectionEditor {
413
813
  /**
414
- * Selects all records on the chart.
814
+ * Selects all the records on the chart.
415
815
  * @i2since 1.1
416
816
  */
417
817
  selectAll(): void;
418
818
  /**
419
- * Clears the chart selection.
819
+ * Clears the chart selection, so that no records are selected.
420
820
  * @i2since 1.1
421
821
  */
422
822
  clear(): void;
423
823
  /**
424
- * Replaces the chart selection with one or more records.
425
- * @param records - The record (or records) to set as the new selection.
824
+ * Replaces the chart selection with one that contains the specified records.
825
+ *
826
+ * @param records - The records to use in the new selection.
827
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
426
828
  * @i2since 1.1
427
829
  */
428
830
  set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
429
831
  /**
430
- * Adds one or more records to the chart selection.
431
- * @param records - The record (or records) to add.
832
+ * Adds the specified records to the chart selection.
833
+ *
834
+ * @param records - The records to add to the selection.
835
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
432
836
  * @i2since 1.1
433
837
  */
434
838
  add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
435
839
  /**
436
- * Removes one or more records to the chart selection.
437
- * @param records - The record (or records) to remove.
840
+ * Removes the specified records from the chart selection.
841
+ *
842
+ * @param records - The records to remove from the selection.
843
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
438
844
  * @i2since 1.1
439
845
  */
440
846
  remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
@@ -484,7 +890,7 @@ export declare namespace app {
484
890
  removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
485
891
  }
486
892
  /**
487
- * A callback function that performs work on the application or its contents.
893
+ * A callback function that performs read-only work on the application or its contents.
488
894
  *
489
895
  * @remarks
490
896
  * This function _must not_ maintain references to charts or any of their objects after the work completes.
@@ -865,6 +1271,24 @@ export declare namespace chart {
865
1271
  */
866
1272
  readonly zoomScale: number;
867
1273
  }
1274
+ /**
1275
+ * A set of data that defines a viewport.
1276
+ * @i2since 1.1
1277
+ */
1278
+ export interface IViewportData {
1279
+ /**
1280
+ * Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
1281
+ * See also {@link chart.IChartView#zoomScale}.
1282
+ * @i2since 1.1
1283
+ */
1284
+ zoomScale?: number;
1285
+ /**
1286
+ * Gets or sets the position of the center of the viewport, in chart coordinates.
1287
+ * See also {@link chart.IChartView#center}.
1288
+ * @i2since 1.1
1289
+ */
1290
+ center?: visual.IPosition;
1291
+ }
868
1292
  /**
869
1293
  * A mapping of chart event types to their listener types.
870
1294
  * @i2since 1.0
@@ -931,6 +1355,30 @@ export declare namespace chart {
931
1355
  * @i2since 1.0
932
1356
  */
933
1357
  export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
1358
+ /**
1359
+ * Constraints that control a view-fitting operation.
1360
+ *
1361
+ * @remarks
1362
+ * Fitting the view to a collection of elements ordinarily zooms in or out to make those
1363
+ * elements fill the viewport. However, you might want to limit this behavior to prevent
1364
+ * zooming in beyond a particular level.
1365
+ *
1366
+ * For example, if you fit the view to a single element, you might not want to zoom so that
1367
+ * the element fills the viewport. If you want to focus attention on a single element without
1368
+ * making it too large, you can set `maximumZoom` to `1`.
1369
+ *
1370
+ * Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
1371
+ * you can set `maximumZoom` to `current`.
1372
+ *
1373
+ * @i2since 1.1
1374
+ */
1375
+ export interface IFitConstraints {
1376
+ /**
1377
+ * Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
1378
+ * @i2since 1.1
1379
+ */
1380
+ maximumZoom?: number | 'current';
1381
+ }
934
1382
  }
935
1383
 
936
1384
  /**
@@ -946,9 +1394,9 @@ export declare namespace commands {
946
1394
  *
947
1395
  * @remarks
948
1396
  * The category determines the section of the keyboard help dialog in which the command is displayed.
949
- * @i2since 1.0
1397
+ * @i2since 1.1
950
1398
  */
951
- export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search';
1399
+ export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
952
1400
  /**
953
1401
  * A type for a command, which determines the payload it receives when a user invokes it.
954
1402
  * @i2since 1.0
@@ -1197,11 +1645,11 @@ export declare namespace commands {
1197
1645
  */
1198
1646
  before(id: CommandId | GroupId): IActionArea<undefined>;
1199
1647
  /**
1200
- * Locates the area of the user interface that appears immediately before a particular command.
1648
+ * Locates the area of the user interface that appears immediately before the action that represents the specified command.
1201
1649
  *
1202
- * @param command - The registered command to surface.
1650
+ * @param command - The surfaced command to use as a reference.
1203
1651
  * @returns An object that you can use to add actions or a group to the located area.
1204
- * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId}.
1652
+ * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1205
1653
  * @i2since 1.1
1206
1654
  */
1207
1655
  before(command: ICommand): IActionArea<undefined>;
@@ -1215,11 +1663,11 @@ export declare namespace commands {
1215
1663
  */
1216
1664
  after(id: CommandId | GroupId): IActionArea<undefined>;
1217
1665
  /**
1218
- * Locates the area of the user interface that appears immediately after a particular command.
1666
+ * Locates the area of the user interface that appears immediately after the action that represents the specified command.
1219
1667
  *
1220
- * @param command - The registered command to surface.
1668
+ * @param command - The surfaced command to use as a reference.
1221
1669
  * @returns An object that you can use to add actions or a group to the located area.
1222
- * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId}.
1670
+ * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1223
1671
  * @i2since 1.1
1224
1672
  */
1225
1673
  after(command: ICommand): IActionArea<undefined>;
@@ -1560,12 +2008,22 @@ export declare namespace commands {
1560
2008
  * @i2since 1.0
1561
2009
  */
1562
2010
  readonly deleteSelected: CommandId;
2011
+ /**
2012
+ * Gets the identifier of the system command that saves the current chart.
2013
+ * @i2since 1.1
2014
+ */
2015
+ readonly saveChart: CommandId;
1563
2016
  }
1564
2017
  /**
1565
2018
  * A lookup table for the group identifiers of the default system action groups.
1566
2019
  * @i2since 1.0
1567
2020
  */
1568
2021
  export interface IHomeTabSystemGroups {
2022
+ /**
2023
+ * Gets the identifier of the system action group named "Manage".
2024
+ * @i2since 1.1
2025
+ */
2026
+ readonly chartManagement: GroupId;
1569
2027
  /**
1570
2028
  * Gets the identifier of the system action group named "History".
1571
2029
  * @i2since 1.0
@@ -1829,6 +2287,22 @@ export declare namespace data {
1829
2287
  */
1830
2288
  readonly longitude: number;
1831
2289
  }
2290
+ /**
2291
+ * A set of data for creating a geospatial position.
2292
+ * @i2since 1.1
2293
+ */
2294
+ export interface IGeoPointData {
2295
+ /**
2296
+ * Gets the latitude of the new position, in degrees north.
2297
+ * @i2since 1.1
2298
+ */
2299
+ readonly latitude: number;
2300
+ /**
2301
+ * Gets the longitude of the new position, in degrees east.
2302
+ * @i2since 1.1
2303
+ */
2304
+ readonly longitude: number;
2305
+ }
1832
2306
  /**
1833
2307
  * A logical type for the value of a record property.
1834
2308
  *
@@ -2556,6 +3030,11 @@ export declare namespace records {
2556
3030
  * @i2since 1.0
2557
3031
  */
2558
3032
  readonly itemType: schema.IChartEntityType;
3033
+ /**
3034
+ * Gets all the link records that are connected to the entity record.
3035
+ * @i2since 1.1
3036
+ */
3037
+ readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
2559
3038
  }
2560
3039
  /**
2561
3040
  * A link record.
@@ -2592,10 +3071,14 @@ export declare namespace records {
2592
3071
  */
2593
3072
  export type NoteId = string;
2594
3073
  /**
2595
- * Data for creating a new note.
3074
+ * A set of data for creating a note.
2596
3075
  * @i2since 1.1
2597
3076
  */
2598
3077
  export interface INoteData {
3078
+ /**
3079
+ * Gets the contents of the new note.
3080
+ * @i2since 1.1
3081
+ */
2599
3082
  readonly contents: string;
2600
3083
  }
2601
3084
  /**
@@ -2692,29 +3175,33 @@ export declare namespace records {
2692
3175
  */
2693
3176
  readonly imageUrl?: string;
2694
3177
  }
3178
+ /**
3179
+ * A set of data for creating a source reference.
3180
+ * @i2since 1.1
3181
+ */
2695
3182
  export interface ISourceReferenceData {
2696
3183
  /**
2697
- * Gets the name of the source that the source reference describes.
3184
+ * Gets the name of the source that the new source reference describes.
2698
3185
  * @i2since 1.1
2699
3186
  */
2700
3187
  readonly name: string;
2701
3188
  /**
2702
- * Gets the type of the source that the source reference describes.
3189
+ * Gets the type of the source that the new source reference describes.
2703
3190
  * @i2since 1.1
2704
3191
  */
2705
3192
  readonly type?: string;
2706
3193
  /**
2707
- * Gets the location of the source that the source reference describes.
3194
+ * Gets the location of the source that the new source reference describes.
2708
3195
  * @i2since 1.1
2709
3196
  */
2710
3197
  readonly location?: string;
2711
3198
  /**
2712
- * Gets the description of the source that the source reference describes.
3199
+ * Gets the description of the source that the new source reference describes.
2713
3200
  * @i2since 1.1
2714
3201
  */
2715
3202
  readonly description?: string;
2716
3203
  /**
2717
- * Gets the URL of an image of the source that the source reference describes.
3204
+ * Gets the URL of an image of the source that the new source reference describes.
2718
3205
  * @i2since 1.1
2719
3206
  */
2720
3207
  readonly imageUrl?: string;
@@ -2735,6 +3222,22 @@ export declare namespace records {
2735
3222
  */
2736
3223
  readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
2737
3224
  }
3225
+ /**
3226
+ * A set of data for creating a security setting.
3227
+ * @i2since 1.1
3228
+ */
3229
+ export interface ISecuritySettingData {
3230
+ /**
3231
+ * Gets or sets the security dimension for the new security setting.
3232
+ * @i2since 1.1
3233
+ */
3234
+ dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
3235
+ /**
3236
+ * Gets or sets the dimension values for the new security setting.
3237
+ * @i2since 1.1
3238
+ */
3239
+ values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
3240
+ }
2738
3241
  /**
2739
3242
  * A source identifier for a record.
2740
3243
  *
@@ -2744,7 +3247,7 @@ export declare namespace records {
2744
3247
  */
2745
3248
  export interface ISourceIdentifier {
2746
3249
  /**
2747
- * Gets the type of this source identifier.
3250
+ * Gets the type of the source identifier.
2748
3251
  * @i2since 1.0
2749
3252
  */
2750
3253
  readonly type: string;
@@ -2754,15 +3257,19 @@ export declare namespace records {
2754
3257
  */
2755
3258
  readonly key: string[];
2756
3259
  }
3260
+ /**
3261
+ * A set of data for creating a source identifier.
3262
+ * @i2since 1.1
3263
+ */
2757
3264
  export interface ISourceIdentifierData {
2758
3265
  /**
2759
- * Gets the type of this source identifier.
2760
- * @i2since 1.0
3266
+ * Gets the type of the new source identifier.
3267
+ * @i2since 1.1
2761
3268
  */
2762
3269
  readonly type: string;
2763
3270
  /**
2764
- * Gets the values that make up the source identifier key.
2765
- * @i2since 1.0
3271
+ * Gets the values that make up the new source identifier key.
3272
+ * @i2since 1.1
2766
3273
  */
2767
3274
  readonly key: string[];
2768
3275
  }
@@ -2831,6 +3338,21 @@ export declare namespace schema {
2831
3338
  * @i2since 1.0
2832
3339
  */
2833
3340
  readonly maximumSourceIdentifiers: number;
3341
+ /**
3342
+ * Gets the maximum string length of a source identifier key.
3343
+ * @i2since 1.1
3344
+ */
3345
+ readonly maxKeyStringLength: data.ICharLimit;
3346
+ /**
3347
+ * Gets the maximum string length of a source identifier type.
3348
+ * @i2since 1.1
3349
+ */
3350
+ readonly maxTypeStringLength: data.ICharLimit;
3351
+ /**
3352
+ * Gets a collection of reserved source identifier types.
3353
+ * @i2since 1.1
3354
+ */
3355
+ readonly reservedTypes: data.IReadOnlyCollection<string>;
2834
3356
  }
2835
3357
  /**
2836
3358
  * A security schema, which defines the available security dimensions and their dimension values.
@@ -2843,7 +3365,7 @@ export declare namespace schema {
2843
3365
  */
2844
3366
  readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
2845
3367
  /**
2846
- * Gets the default security that should be applied to new records.
3368
+ * Gets the security dimension values to apply to new records by default.
2847
3369
  * @i2since 1.1
2848
3370
  */
2849
3371
  readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
@@ -3007,6 +3529,11 @@ export declare namespace schema {
3007
3529
  * @i2since 1.0
3008
3530
  */
3009
3531
  readonly isOrphaned: boolean;
3532
+ /**
3533
+ * Indicates whether the item type exists in the Information Store.
3534
+ * @i2since 1.1
3535
+ */
3536
+ readonly isInfoStore: boolean;
3010
3537
  /**
3011
3538
  * Gets the label definition for the item type, which describes how record labels are formed.
3012
3539
  * @i2since 1.0
@@ -3585,9 +4112,15 @@ export declare namespace visual {
3585
4112
  * @i2since 1.0
3586
4113
  */
3587
4114
  readonly style: INodeStyle;
4115
+ /**
4116
+ * Gets all the edges that are connected to the node.
4117
+ * @i2since 1.1
4118
+ */
4119
+ readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
3588
4120
  /**
3589
4121
  * Gets all the edges that are connected to the node.
3590
4122
  * @i2since 1.0
4123
+ * @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
3591
4124
  */
3592
4125
  readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
3593
4126
  }