@i2analyze/notebook-sdk 1.1.0-dev.3 → 1.1.0-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +190 -0
- package/lib/gen/notebook-sdk-public.d.ts +862 -202
- package/package.json +1 -1
|
@@ -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,353 @@ export declare namespace app {
|
|
|
68
68
|
*/
|
|
69
69
|
readonly serverComponents: IServerComponents;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
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
|
+
* @param options - An object that can control the transaction.
|
|
73
79
|
* @i2since 1.1
|
|
74
80
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
|
|
82
|
+
/**
|
|
83
|
+
* Queues a function that performs tracked mutations on the application contents at the next available opportunity,
|
|
84
|
+
* and can respond to the changes that the mutations cause.
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* A mutation is an operation that can read or modify the contents of the application.
|
|
88
|
+
* A successful set of _tracked_ mutations is added as a single entry to the undo stack.
|
|
89
|
+
*
|
|
90
|
+
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
91
|
+
* @param responseHandler - A callback that receives the changes caused by the mutations.
|
|
92
|
+
* @param options - An object that can control the transaction.
|
|
93
|
+
* @i2since 1.1
|
|
94
|
+
*/
|
|
95
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
|
|
96
|
+
/**
|
|
97
|
+
* Queues a function that performs untracked mutations on the application contents at the next available opportunity.
|
|
98
|
+
*
|
|
99
|
+
* @remarks
|
|
100
|
+
* A mutation is an operation that can read or modify the contents of the application.
|
|
101
|
+
* _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
|
|
102
|
+
*
|
|
103
|
+
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
104
|
+
* @param options - An object that can control the transaction.
|
|
105
|
+
* @i2since 1.1
|
|
106
|
+
*/
|
|
107
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
|
|
108
|
+
/**
|
|
109
|
+
* Queues a function that performs untracked mutations on the application contents at the next available opportunity,
|
|
110
|
+
* and can respond to the changes that the mutations cause.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* A mutation is an operation that can read or modify the contents of the application.
|
|
114
|
+
* _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
|
|
115
|
+
*
|
|
116
|
+
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
117
|
+
* @param responseHandler - A callback that receives the changes produced by the mutations.
|
|
118
|
+
* @param options - An object that can control the transaction.
|
|
119
|
+
* @i2since 1.1
|
|
120
|
+
*/
|
|
121
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
|
|
77
122
|
}
|
|
78
|
-
|
|
123
|
+
/**
|
|
124
|
+
* A report on the result of one or more mutations.
|
|
125
|
+
* @i2since 1.1
|
|
126
|
+
*/
|
|
127
|
+
export type IMutationReport = ISuccessReport | IDetailedReport;
|
|
128
|
+
/**
|
|
129
|
+
* A report on the result of an entirely successful set of mutations.
|
|
130
|
+
* The report is typically displayed through a transient, 'toast'-style notification.
|
|
131
|
+
* @i2since 1.1
|
|
132
|
+
*/
|
|
133
|
+
export interface ISuccessReport {
|
|
134
|
+
/**
|
|
135
|
+
* Gets or sets the type of the report, which must be `'success'` for an `ISuccessReport`.
|
|
136
|
+
* @i2since 1.1
|
|
137
|
+
*/
|
|
138
|
+
type: 'success';
|
|
139
|
+
/**
|
|
140
|
+
* Gets or sets some additional information about the completed mutations.
|
|
141
|
+
* @i2since 1.1
|
|
142
|
+
*/
|
|
143
|
+
details: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A report on the result of a set of mutations that were not entirely successful.
|
|
147
|
+
* The report is typically displayed through a 'dialog'-style notification.
|
|
148
|
+
* @i2since 1.1
|
|
149
|
+
*/
|
|
150
|
+
export interface IDetailedReport {
|
|
151
|
+
/**
|
|
152
|
+
* Gets or sets the type of the report, which can be `'information'`, `'warning'`, or `'error'` for an `IDetailedReport`.
|
|
153
|
+
* @i2since 1.1
|
|
154
|
+
*/
|
|
155
|
+
type: 'information' | 'warning' | 'error';
|
|
156
|
+
/**
|
|
157
|
+
* Gets or sets a title for the report, which is typically used as the title of a notification dialog.
|
|
158
|
+
* @i2since 1.1
|
|
159
|
+
*/
|
|
160
|
+
title: string;
|
|
161
|
+
/**
|
|
162
|
+
* Gets or sets some additional information about the mutations.
|
|
163
|
+
* @i2since 1.1
|
|
164
|
+
*/
|
|
165
|
+
details: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* A set of information that is common to requests to commit mutations of all types.
|
|
169
|
+
* @i2since 1.1
|
|
170
|
+
*/
|
|
171
|
+
export interface IMutationCommitBase {
|
|
172
|
+
/**
|
|
173
|
+
* Gets or sets the type of the request, which must be `"commit"` for commit requests.
|
|
174
|
+
* @i2since 1.1
|
|
175
|
+
*/
|
|
79
176
|
type: 'commit';
|
|
177
|
+
/**
|
|
178
|
+
* Gets or sets a optional report that describes the result of one or more mutations.
|
|
179
|
+
* @i2since 1.1
|
|
180
|
+
*/
|
|
80
181
|
report?: IMutationReport;
|
|
81
182
|
}
|
|
82
|
-
|
|
183
|
+
/**
|
|
184
|
+
* A set of information that accompanies a request to commit a set of untracked mutations.
|
|
185
|
+
* @i2since 1.1
|
|
186
|
+
*/
|
|
187
|
+
export interface IUntrackedMutationCommit extends IMutationCommitBase {
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* A set of information that accompanies a request to commit a set of tracked mutations.
|
|
191
|
+
* @i2since 1.1
|
|
192
|
+
*/
|
|
193
|
+
export interface ITrackedMutationCommit extends IMutationCommitBase {
|
|
83
194
|
/**
|
|
84
|
-
* Gets the name to use in the undo stack
|
|
195
|
+
* Gets or sets the name to use for the entry in the undo stack that represents the commit.
|
|
85
196
|
* @i2since 1.1
|
|
86
197
|
*/
|
|
87
198
|
actionDisplayName: string;
|
|
88
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* A set of information that accompanies a request to roll back a set of mutations.
|
|
202
|
+
* @i2since 1.1
|
|
203
|
+
*/
|
|
89
204
|
export interface IMutationRollback {
|
|
205
|
+
/**
|
|
206
|
+
* Gets or sets the type of the request, which must be `"rollback"` for rollback requests.
|
|
207
|
+
* @i2since 1.1
|
|
208
|
+
*/
|
|
90
209
|
type: 'rollback';
|
|
210
|
+
/**
|
|
211
|
+
* Gets or sets a optional report that describes the result of one or more mutations.
|
|
212
|
+
* @i2since 1.1
|
|
213
|
+
*/
|
|
91
214
|
report?: IMutationReport;
|
|
92
215
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
216
|
+
/**
|
|
217
|
+
* A response from a tracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
218
|
+
* @i2since 1.1
|
|
219
|
+
*/
|
|
97
220
|
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
221
|
/**
|
|
102
|
-
*
|
|
222
|
+
* A response from an untracked mutation handler, which indicates whether the mutation should be committed or rolled back.
|
|
223
|
+
* @i2since 1.1
|
|
224
|
+
*/
|
|
225
|
+
export type IUntrackedMutationInfo = IUntrackedMutationCommit | IMutationRollback;
|
|
226
|
+
/**
|
|
227
|
+
* A function that performs untracked mutations.
|
|
228
|
+
*
|
|
103
229
|
* @remarks
|
|
104
|
-
*
|
|
105
|
-
* use depending on your scenario:
|
|
230
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
106
231
|
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
232
|
+
* @param application - The contents of the application that the function can operate on.
|
|
233
|
+
* @param mutations - A collection of methods that can perform untracked mutations.
|
|
234
|
+
* @param cancelation - An object that detects when a user requests cancelation of the mutations.
|
|
235
|
+
* @i2since 1.1
|
|
236
|
+
*/
|
|
237
|
+
export type UntrackedMutationHandler = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IUntrackedMutationInfo | Promise<IUntrackedMutationInfo>;
|
|
238
|
+
/**
|
|
239
|
+
* A function that performs tracked mutations.
|
|
240
|
+
*
|
|
241
|
+
* @remarks
|
|
242
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
243
|
+
*
|
|
244
|
+
* @param application - The contents of the application that the function can operate on.
|
|
245
|
+
* @param mutations - A collection of methods that can perform tracked mutations.
|
|
246
|
+
* @param cancelation - An object that detects when a user requests cancelation of the mutations.
|
|
247
|
+
* @i2since 1.1
|
|
248
|
+
*/
|
|
249
|
+
export type TrackedMutationHandler = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
|
|
250
|
+
/**
|
|
251
|
+
* A function that receives the results of a mutation.
|
|
252
|
+
*
|
|
253
|
+
* @param error - The `Error` that was thrown if the mutation failed or was aborted.
|
|
254
|
+
* @param result - An `IMutationResult` that contains the results of the mutation.
|
|
255
|
+
* @param application - The contents of the application after the mutation was performed.
|
|
256
|
+
* @i2since 1.1
|
|
257
|
+
*/
|
|
258
|
+
export type MutationResponseHandler = (error: Error | null, result: IMutationResult, application: IApplicationContents) => void;
|
|
259
|
+
/**
|
|
260
|
+
* A result from a mutation.
|
|
261
|
+
* @i2since 1.1
|
|
262
|
+
*/
|
|
263
|
+
export interface IMutationResult {
|
|
264
|
+
/**
|
|
265
|
+
* Gets the changes that were caused by the mutation.
|
|
266
|
+
* @i2since 1.1
|
|
267
|
+
*/
|
|
268
|
+
change: chart.IChartChange;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* A collection of methods and properties for handling the situation when a user cancels an operation.
|
|
272
|
+
*
|
|
273
|
+
* @remarks
|
|
274
|
+
* The i2 Notebook SDK provides two cancelation APIs: An `AbortSignal`-based API and a `Promise`-based
|
|
275
|
+
* API, which you can use depending on your scenario:
|
|
276
|
+
*
|
|
277
|
+
* - To launch an asynchronous operation (for example, a `fetch` call) that can itself be canceled by
|
|
278
|
+
* an `AbortSignal`, you can pass `signal` directly to that operation.
|
|
110
279
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* if the user cancels the operation.
|
|
280
|
+
* - To launch an asynchronous operation that cannot itself be canceled but is to be abandoned if the
|
|
281
|
+
* user requests cancelation, call `waitForPromiseOrCancel()` with the `Promise` from your operation.
|
|
282
|
+
* The returned `Promise` resolves or rejects just as your operation's `Promise` does, and it rejects
|
|
283
|
+
* immediately with an `AbortError` if the user cancels the operation.
|
|
116
284
|
*
|
|
117
|
-
*
|
|
118
|
-
* property
|
|
285
|
+
* To check synchronously if the operation has been canceled, you can inspect the `signal.aborted`
|
|
286
|
+
* property.
|
|
119
287
|
*
|
|
120
288
|
* @i2since 1.1
|
|
121
289
|
*/
|
|
122
290
|
export interface ICancelation {
|
|
291
|
+
/**
|
|
292
|
+
* Launches an asynchronous operation through the specified promise.
|
|
293
|
+
*
|
|
294
|
+
* @typeParam T - The type of the output from the operation.
|
|
295
|
+
* @param promise - A promise that resolves to the output from the operation.
|
|
296
|
+
* @returns A promise that also resolves to the output from the operation.
|
|
297
|
+
* @i2since 1.1
|
|
298
|
+
*/
|
|
123
299
|
waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
|
|
124
300
|
/**
|
|
125
|
-
* Gets an `AbortSignal`
|
|
301
|
+
* Gets an `AbortSignal` that indicates whether a user has requested that an operation be canceled.
|
|
302
|
+
*
|
|
126
303
|
* @i2since 1.1
|
|
127
304
|
*/
|
|
128
305
|
signal: AbortSignal;
|
|
129
306
|
}
|
|
130
307
|
export type TODO = unknown;
|
|
131
308
|
/**
|
|
132
|
-
*
|
|
309
|
+
* A set of methods for changing a status display while an asynchronous mutation is running.
|
|
133
310
|
* @i2since 1.1
|
|
134
311
|
*/
|
|
135
|
-
export interface
|
|
312
|
+
export interface IStatus {
|
|
136
313
|
/**
|
|
137
|
-
* Sets the status
|
|
314
|
+
* Sets the status message in the blocking spinner display.
|
|
138
315
|
*
|
|
139
316
|
* @remarks
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* It will be prefixed by the name of your plug-in.
|
|
317
|
+
* Use this method to update users about the progress of a particularly long-running operation.
|
|
318
|
+
* In the user interface, the text you provide is prefixed by the name of your plug-in.
|
|
143
319
|
*
|
|
144
320
|
* @param text - The text to display.
|
|
145
|
-
*
|
|
146
321
|
* @i2since 1.1
|
|
147
322
|
*/
|
|
148
|
-
|
|
323
|
+
setMessage(text: string): void;
|
|
149
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* A common specifier for a record, for use in mutation APIs.
|
|
327
|
+
* @i2since 1.1
|
|
328
|
+
*/
|
|
150
329
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
151
|
-
|
|
330
|
+
/**
|
|
331
|
+
* A common specifier for an element, for use in mutation APIs.
|
|
332
|
+
* @i2since 1.1
|
|
333
|
+
*/
|
|
334
|
+
export type ElementSpecifier = visual.ElementId | visual.IElement;
|
|
335
|
+
/**
|
|
336
|
+
* A common specifier for a note, for use in mutation APIs.
|
|
337
|
+
* @i2since 1.1
|
|
338
|
+
*/
|
|
339
|
+
export type NoteSpecifier = records.NoteId | records.INote;
|
|
340
|
+
/**
|
|
341
|
+
* A common specifier for a source reference, for use in mutation APIs.
|
|
342
|
+
* @i2since 1.1
|
|
343
|
+
*/
|
|
344
|
+
export type SourceReferenceSpecifier = records.SourceReferenceId | records.ISourceReference;
|
|
345
|
+
/**
|
|
346
|
+
* The identifier of a record group.
|
|
347
|
+
* @i2since 1.1
|
|
348
|
+
*/
|
|
349
|
+
export type AnalyzeRecordGroupId = string;
|
|
350
|
+
/**
|
|
351
|
+
* The effect on chart selection of adding a record group to the chart.
|
|
352
|
+
*
|
|
353
|
+
* @remarks
|
|
354
|
+
*
|
|
355
|
+
* `addRecordsToSelection` adds the records from the group to the current selection;
|
|
356
|
+
* `setSelectionToRecords` sets the selection to the records from the group;
|
|
357
|
+
* `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
|
|
358
|
+
* @i2since 1.1
|
|
359
|
+
*/
|
|
360
|
+
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
361
|
+
/**
|
|
362
|
+
* A common specifier for record properties, for use in mutation APIs.
|
|
363
|
+
* @i2since 1.1
|
|
364
|
+
*/
|
|
365
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
366
|
+
/**
|
|
367
|
+
* A common specifier for editing record properties, for use in mutation APIs.
|
|
368
|
+
* @i2since 1.1
|
|
369
|
+
*/
|
|
370
|
+
export type EditRecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
|
|
371
|
+
/**
|
|
372
|
+
* A set of data that is common to creating records of all types.
|
|
373
|
+
* @i2since 1.1
|
|
374
|
+
*/
|
|
375
|
+
export interface IChartRecordBaseData {
|
|
376
|
+
/**
|
|
377
|
+
* Gets or sets the item type of the new record.
|
|
378
|
+
* @i2since 1.1
|
|
379
|
+
*/
|
|
152
380
|
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
381
|
+
/**
|
|
382
|
+
* Gets or sets the properties of the new record.
|
|
383
|
+
* @i2since 1.1
|
|
384
|
+
*/
|
|
385
|
+
properties?: RecordPropertiesSpecifier;
|
|
386
|
+
/**
|
|
387
|
+
* Gets or sets the security settings of the new record.
|
|
388
|
+
* @i2since 1.1
|
|
389
|
+
*/
|
|
390
|
+
security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
|
|
391
|
+
/**
|
|
392
|
+
* Gets or sets the notes for the new record.
|
|
393
|
+
* @i2since 1.1
|
|
394
|
+
*/
|
|
395
|
+
notes?: readonly records.INoteData[];
|
|
396
|
+
/**
|
|
397
|
+
* Gets or sets the source references of the new record.
|
|
398
|
+
* @i2since 1.1
|
|
399
|
+
*/
|
|
156
400
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
401
|
+
/**
|
|
402
|
+
* Gets or sets the source identifiers of the new record.
|
|
403
|
+
* @i2since 1.1
|
|
404
|
+
*/
|
|
157
405
|
sourceIdentifiers?: readonly records.ISourceIdentifier[];
|
|
158
406
|
}
|
|
159
|
-
|
|
407
|
+
/**
|
|
408
|
+
* A set of data for creating an entity record.
|
|
409
|
+
* @i2since 1.1
|
|
410
|
+
*/
|
|
411
|
+
export interface IChartEntityRecordData extends IChartRecordBaseData {
|
|
160
412
|
}
|
|
161
|
-
|
|
413
|
+
/**
|
|
414
|
+
* A set of data for creating a link record.
|
|
415
|
+
* @i2since 1.1
|
|
416
|
+
*/
|
|
417
|
+
export interface IChartLinkRecordData extends IChartRecordBaseData {
|
|
162
418
|
/**
|
|
163
419
|
* Gets the record at the 'from' end of the link.
|
|
164
420
|
* @i2since 1.1
|
|
@@ -178,263 +434,497 @@ export declare namespace app {
|
|
|
178
434
|
*/
|
|
179
435
|
readonly linkDirection: data.LinkDirection;
|
|
180
436
|
}
|
|
181
|
-
export interface INoteData {
|
|
182
|
-
content: string;
|
|
183
|
-
}
|
|
184
437
|
/**
|
|
185
|
-
*
|
|
438
|
+
* A set of methods for performing tracked or untracked mutations, organized by what they affect.
|
|
186
439
|
* @i2since 1.1
|
|
187
440
|
*/
|
|
188
441
|
export interface IMutationsBase {
|
|
189
442
|
/**
|
|
190
|
-
* Gets an object that provides
|
|
443
|
+
* Gets an object that provides methods for communicating progress information to users.
|
|
444
|
+
* @i2since 1.1
|
|
445
|
+
*/
|
|
446
|
+
readonly status: IStatus;
|
|
447
|
+
/**
|
|
448
|
+
* Gets an object that provides methods for modifying chart selection.
|
|
191
449
|
* @i2since 1.1
|
|
192
450
|
*/
|
|
193
|
-
readonly
|
|
451
|
+
readonly selection: ISelectionEditor;
|
|
194
452
|
/**
|
|
195
|
-
* Gets an object that provides
|
|
453
|
+
* Gets an object that provides methods for modifying the chart view.
|
|
196
454
|
* @i2since 1.1
|
|
197
455
|
*/
|
|
198
|
-
readonly
|
|
199
|
-
readonly view: IViewMutations;
|
|
456
|
+
readonly view: IViewEditor;
|
|
200
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* A set of methods for performing untracked mutations, which do not require an entry in the undo stack.
|
|
460
|
+
* @i2since 1.1
|
|
461
|
+
*/
|
|
201
462
|
export interface IUntrackedMutations extends IMutationsBase {
|
|
202
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* A set of methods for modifying the contents of a record.
|
|
466
|
+
* @i2since 1.1
|
|
467
|
+
*/
|
|
203
468
|
export interface IRecordEditor {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
469
|
+
/**
|
|
470
|
+
* Sets properties on the record.
|
|
471
|
+
*
|
|
472
|
+
* @param properties - The properties to set.
|
|
473
|
+
* @returns This record, with the new properties in place.
|
|
474
|
+
* @i2since 1.1
|
|
475
|
+
*/
|
|
476
|
+
setProperties(properties: EditRecordPropertiesSpecifier): this;
|
|
477
|
+
/**
|
|
478
|
+
* Adds a new note to the record.
|
|
479
|
+
*
|
|
480
|
+
* @param noteData - The data for the new note.
|
|
481
|
+
* @returns This record, with the new note in place.
|
|
482
|
+
* @i2since 1.1
|
|
483
|
+
*/
|
|
484
|
+
addNote(noteData: records.INoteData): this;
|
|
485
|
+
/**
|
|
486
|
+
* Replaces an existing note on the record with a new one.
|
|
487
|
+
*
|
|
488
|
+
* @param note - The note to replace.
|
|
489
|
+
* @param noteData - The data for the new note.
|
|
490
|
+
* @returns This record, with the new note in place.
|
|
491
|
+
* @i2since 1.1
|
|
492
|
+
*/
|
|
493
|
+
replaceNote(note: NoteSpecifier, noteData: records.INoteData): this;
|
|
494
|
+
/**
|
|
495
|
+
* Removes a note from the record.
|
|
496
|
+
*
|
|
497
|
+
* @param note - The note to remove.
|
|
498
|
+
* @returns This record, without the note.
|
|
499
|
+
* @i2since 1.1
|
|
500
|
+
*/
|
|
501
|
+
removeNote(note: NoteSpecifier): this;
|
|
502
|
+
/**
|
|
503
|
+
* Adds a new source reference to the record.
|
|
504
|
+
*
|
|
505
|
+
* @param refData - The data for the new source reference.
|
|
506
|
+
* @returns This record, with the new source reference in place.
|
|
507
|
+
* @i2since 1.1
|
|
508
|
+
*/
|
|
509
|
+
addSourceReference(refData: records.ISourceReferenceData): this;
|
|
510
|
+
/**
|
|
511
|
+
* Replaces an existing source reference on the record with a new one.
|
|
512
|
+
*
|
|
513
|
+
* @param ref - The source reference to replace.
|
|
514
|
+
* @param refData - The data for the new source reference.
|
|
515
|
+
* @returns This record, with the new source reference in place.
|
|
516
|
+
* @i2since 1.1
|
|
517
|
+
*/
|
|
518
|
+
replaceSourceReference(ref: SourceReferenceSpecifier, refData: records.ISourceReferenceData): this;
|
|
519
|
+
/**
|
|
520
|
+
* Removes a source reference from the record.
|
|
521
|
+
*
|
|
522
|
+
* @param ref - The source reference to remove.
|
|
523
|
+
* @returns This record, without the source reference.
|
|
524
|
+
* @i2since 1.1
|
|
525
|
+
*/
|
|
526
|
+
removeSourceReference(ref: SourceReferenceSpecifier): this;
|
|
527
|
+
/**
|
|
528
|
+
* Adds a source identifier to the record.
|
|
529
|
+
*
|
|
530
|
+
* @param identifierData - The data for the new source identifier.
|
|
531
|
+
* @returns This record, with the new source identifier in place.
|
|
532
|
+
* @i2since 1.1
|
|
533
|
+
*/
|
|
534
|
+
addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
|
|
535
|
+
/**
|
|
536
|
+
* Replaces the record's security settings with a new set.
|
|
537
|
+
* @param security - The new security settings.
|
|
538
|
+
* @returns This record, with the new security settings in place.
|
|
539
|
+
* @i2since 1.1
|
|
540
|
+
*/
|
|
211
541
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
542
|
+
/**
|
|
543
|
+
* Sets the link direction on the record.
|
|
544
|
+
*
|
|
545
|
+
* @remarks
|
|
546
|
+
* Calling this method on a entity record will throw an error.
|
|
547
|
+
*
|
|
548
|
+
* @param linkDirection - The link direction to set.
|
|
549
|
+
* @returns This record, with the new link direction in place.
|
|
550
|
+
* @i2since 1.1
|
|
551
|
+
*/
|
|
552
|
+
setLinkDirection(linkDirection: data.LinkDirection): this;
|
|
212
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* A record that has been created in a transaction handler, but has not yet been added to a chart.
|
|
556
|
+
* @i2since 1.1
|
|
557
|
+
*/
|
|
213
558
|
export interface IPendingRecord extends IRecordEditor {
|
|
559
|
+
/**
|
|
560
|
+
* Gets or sets the identifier of the record.
|
|
561
|
+
* @i2since 1.1
|
|
562
|
+
*/
|
|
214
563
|
recordId: records.AnalyzeRecordId;
|
|
215
564
|
}
|
|
216
|
-
|
|
217
|
-
|
|
565
|
+
/**
|
|
566
|
+
* A set of utility functions for creating property and other values that can be reused across records.
|
|
567
|
+
* @i2since 1.1
|
|
568
|
+
*/
|
|
569
|
+
export interface IValueFactory {
|
|
218
570
|
/**
|
|
219
|
-
* Creates a
|
|
571
|
+
* Creates a security setting that you can use to configure record security.
|
|
572
|
+
*
|
|
573
|
+
* @remarks
|
|
574
|
+
* You can use the same security setting to configure the security of several records.
|
|
575
|
+
*
|
|
576
|
+
* @param data - The data for the new security setting.
|
|
577
|
+
* @returns The new security setting.
|
|
578
|
+
* @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
|
|
220
579
|
* @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
580
|
*/
|
|
225
|
-
createSecuritySetting(data: ISecuritySettingData): records.ISecuritySetting;
|
|
581
|
+
createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
|
|
226
582
|
/**
|
|
227
|
-
* Creates a
|
|
583
|
+
* Creates a decimal value from a number or a string.
|
|
228
584
|
*
|
|
229
|
-
* @param value - The number or
|
|
230
|
-
* @returns
|
|
231
|
-
* @throws `Error` if the value was `NaN`, too large to
|
|
585
|
+
* @param value - The number or string to initialize the decimal value from.
|
|
586
|
+
* @returns The new decimal value.
|
|
587
|
+
* @throws `Error` if the value was `NaN`, or too large to be a decimal, or an invalid string.
|
|
232
588
|
* @i2since 1.1
|
|
233
589
|
*/
|
|
234
590
|
createDecimal(value: number | string): data.IDecimal;
|
|
235
591
|
/**
|
|
236
|
-
* Creates a local date object (
|
|
237
|
-
*
|
|
238
|
-
* @param
|
|
239
|
-
* @param
|
|
240
|
-
* @
|
|
592
|
+
* Creates a local date object (that does not have a time or a time zone) from year/month/day information.
|
|
593
|
+
*
|
|
594
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
595
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
596
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
597
|
+
* @returns The new local date object.
|
|
241
598
|
* @i2since 1.1
|
|
242
599
|
*/
|
|
243
600
|
createLocalDate(year: number, month: number, day: number): data.ILocalDate;
|
|
244
601
|
/**
|
|
245
|
-
* Creates a local date object (
|
|
246
|
-
*
|
|
247
|
-
* @
|
|
602
|
+
* Creates a local date object (that does not have a time or a time zone) from a JavaScript `Date` object.
|
|
603
|
+
*
|
|
604
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date values are used.
|
|
605
|
+
* @returns The new local date object.
|
|
248
606
|
* @i2since 1.1
|
|
249
607
|
*/
|
|
250
608
|
createLocalDate(jsDate: Date): data.ILocalDate;
|
|
251
609
|
/**
|
|
252
|
-
* Creates a local date object (
|
|
253
|
-
*
|
|
254
|
-
* @
|
|
255
|
-
* @
|
|
610
|
+
* Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
|
|
611
|
+
*
|
|
612
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date.
|
|
613
|
+
* @returns The new local date object.
|
|
614
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
256
615
|
* @i2since 1.1
|
|
257
616
|
*/
|
|
258
617
|
createLocalDate(iso8601: string): data.ILocalDate;
|
|
259
618
|
/**
|
|
260
|
-
* Creates a local time object (
|
|
261
|
-
*
|
|
262
|
-
* @param
|
|
263
|
-
* @param
|
|
264
|
-
* @param
|
|
265
|
-
* @
|
|
619
|
+
* Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
|
|
620
|
+
*
|
|
621
|
+
* @param hour - The hour of the day (0-23).
|
|
622
|
+
* @param minute - The minutes of the hour (0-59).
|
|
623
|
+
* @param second - The seconds of the minute (0-59).
|
|
624
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
625
|
+
* @returns The new local time object.
|
|
266
626
|
* @i2since 1.1
|
|
267
627
|
*/
|
|
268
628
|
createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
|
|
269
629
|
/**
|
|
270
|
-
* Creates a local time object (
|
|
271
|
-
*
|
|
272
|
-
* @
|
|
630
|
+
* Creates a local time object (that does not have a date or a time zone) from a JavaScript `Date` object.
|
|
631
|
+
*
|
|
632
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) time values are used.
|
|
633
|
+
* @returns The new local time object.
|
|
273
634
|
* @i2since 1.1
|
|
274
635
|
*/
|
|
275
636
|
createLocalTime(jsDate: Date): data.ILocalTime;
|
|
276
637
|
/**
|
|
277
|
-
* Creates a local time object (
|
|
278
|
-
*
|
|
279
|
-
* @
|
|
280
|
-
* @
|
|
638
|
+
* 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').
|
|
639
|
+
*
|
|
640
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the time.
|
|
641
|
+
* @returns The new local time object.
|
|
642
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
281
643
|
* @i2since 1.1
|
|
282
644
|
*/
|
|
283
645
|
createLocalTime(iso8601: string): data.ILocalTime;
|
|
284
646
|
/**
|
|
285
|
-
* Creates a local date-time object (
|
|
286
|
-
*
|
|
287
|
-
* @param
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
291
|
-
* @param
|
|
292
|
-
* @param
|
|
293
|
-
* @
|
|
647
|
+
* Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
|
|
648
|
+
*
|
|
649
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
650
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
651
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
652
|
+
* @param hour - The hour of the day (0-23).
|
|
653
|
+
* @param minute - The minutes of the hour (0-59).
|
|
654
|
+
* @param second - The seconds of the minute (0-59).
|
|
655
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
656
|
+
* @returns The new local date-time object.
|
|
294
657
|
* @i2since 1.1
|
|
295
658
|
*/
|
|
296
659
|
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
|
|
297
660
|
/**
|
|
298
|
-
* Creates a local date-time object (
|
|
299
|
-
*
|
|
300
|
-
* @
|
|
661
|
+
* Creates a local date-time object (that does not have a time zone) from a JavaScript `Date` object.
|
|
662
|
+
*
|
|
663
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date and time values are used.
|
|
664
|
+
* @returns The new local date-time object.
|
|
301
665
|
* @i2since 1.1
|
|
302
666
|
*/
|
|
303
667
|
createLocalDateTime(jsDate: Date): data.ILocalDateTime;
|
|
304
668
|
/**
|
|
305
|
-
* Creates a local date-time object (
|
|
669
|
+
* Creates a local date-time object (that does not have a time zone) from a local date and a local time object.
|
|
670
|
+
*
|
|
306
671
|
* @param date - A local date.
|
|
307
672
|
* @param time - A local time.
|
|
308
|
-
* @returns
|
|
673
|
+
* @returns The new local date-time object.
|
|
309
674
|
* @i2since 1.1
|
|
310
675
|
*/
|
|
311
676
|
createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
|
|
312
677
|
/**
|
|
313
|
-
* Creates a local date-time object (
|
|
314
|
-
*
|
|
315
|
-
* @
|
|
316
|
-
* @
|
|
678
|
+
* 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').
|
|
679
|
+
*
|
|
680
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
681
|
+
* @returns The new local date-time object.
|
|
682
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
317
683
|
* @i2since 1.1
|
|
318
684
|
*/
|
|
319
685
|
createLocalDateTime(iso8601: string): data.ILocalDateTime;
|
|
320
686
|
/**
|
|
321
|
-
* Creates a
|
|
687
|
+
* Creates a date-time object that has a time zone from a local date, a local time, and a time zone.
|
|
688
|
+
*
|
|
322
689
|
* @param date - A local date.
|
|
323
690
|
* @param time - A local time.
|
|
324
|
-
* @param timeZone - A time zone or time zone
|
|
325
|
-
* @param isDst -
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* @
|
|
691
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
692
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
693
|
+
*
|
|
694
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
695
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
696
|
+
* @returns The new date-time object.
|
|
697
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
330
698
|
* @i2since 1.1
|
|
331
699
|
*/
|
|
332
700
|
createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
333
701
|
/**
|
|
334
|
-
* Creates a
|
|
335
|
-
*
|
|
336
|
-
* @param
|
|
337
|
-
* @param
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
702
|
+
* Creates a date-time object that has a time zone from a local date-time (or a JavaScript `Date` object) and a time zone.
|
|
703
|
+
*
|
|
704
|
+
* @param dateTime - A local date-time, or a JavaScript `Date`.
|
|
705
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
706
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
707
|
+
*
|
|
708
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
709
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
710
|
+
* @returns The new date-time object.
|
|
711
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
342
712
|
* @i2since 1.1
|
|
343
713
|
*/
|
|
344
714
|
createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
345
715
|
/**
|
|
346
|
-
* Creates a
|
|
347
|
-
*
|
|
348
|
-
* @param
|
|
349
|
-
* @param
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
* @
|
|
716
|
+
* 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.
|
|
717
|
+
*
|
|
718
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
719
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
720
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
721
|
+
*
|
|
722
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
723
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
724
|
+
* @returns The new date-time object.
|
|
725
|
+
* @throws `Error` if the string was not in valid ISO 8601 format, or `timeZone` did not specify a valid time zone.
|
|
355
726
|
* @i2since 1.1
|
|
356
727
|
*/
|
|
357
|
-
createZonedDateTime(
|
|
728
|
+
createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
358
729
|
/**
|
|
359
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
730
|
+
* Creates a {@link data.IGeoPoint} object from a pair of latitude and longitude values.
|
|
731
|
+
*
|
|
732
|
+
* @param latitude - The latitude of the geospatial position, in the range from -90 to +90 degrees.
|
|
733
|
+
* @param longitude - The longitude of the geospatial position, in the range from -180 to 180 degrees.
|
|
734
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
735
|
+
* @throws `Error` if either the latitude or the longitude was out of range.
|
|
360
736
|
* @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
737
|
*/
|
|
366
738
|
createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
|
|
367
739
|
/**
|
|
368
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
740
|
+
* Creates a {@link data.IGeoPoint} object from a {@link data.IGeoPointData} object.
|
|
741
|
+
*
|
|
742
|
+
* @param data - A set of data that specifies the geospatial position.
|
|
743
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
744
|
+
* @throws `Error` if the specified data was out of range or otherwise not valid.
|
|
369
745
|
* @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
746
|
*/
|
|
374
|
-
createGeoPoint(data: IGeoPointData): data.IGeoPoint;
|
|
747
|
+
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
375
748
|
}
|
|
376
|
-
|
|
749
|
+
/**
|
|
750
|
+
* A set of methods for performing tracked mutations, which require an entry in the undo stack.
|
|
751
|
+
* @i2since 1.1
|
|
752
|
+
*/
|
|
753
|
+
export interface ITrackedMutations extends IMutationsBase {
|
|
754
|
+
/**
|
|
755
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
756
|
+
* @i2since 1.1
|
|
757
|
+
*/
|
|
758
|
+
readonly valueFactory: IValueFactory;
|
|
759
|
+
/**
|
|
760
|
+
* Creates an entity record that is added to the chart on committal.
|
|
761
|
+
*
|
|
762
|
+
* @param recordTemplate - The data from which to create the record.
|
|
763
|
+
* @param hints - A TODO.
|
|
764
|
+
* @returns The new, pending record.
|
|
765
|
+
* @i2since 1.1
|
|
766
|
+
*/
|
|
377
767
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
768
|
+
/**
|
|
769
|
+
* Creates a link record that is added to the chart on committal.
|
|
770
|
+
*
|
|
771
|
+
* @param recordTemplate - The data from which to create the record.
|
|
772
|
+
* @param hints - A TODO.
|
|
773
|
+
* @returns The new, pending record.
|
|
774
|
+
* @i2since 1.1
|
|
775
|
+
*/
|
|
378
776
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
777
|
+
/**
|
|
778
|
+
* Adds the records from a record group to the chart.
|
|
779
|
+
*
|
|
780
|
+
* @param recordGroupId - The identifier of the record group to add.
|
|
781
|
+
* @param selectionOption - The effect on chart selection of adding the record group.
|
|
782
|
+
* @i2since 1.1
|
|
783
|
+
*/
|
|
784
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
|
|
785
|
+
/**
|
|
786
|
+
* Gets an object with methods for editing a record.
|
|
787
|
+
*
|
|
788
|
+
* @param record - The record to be edited.
|
|
789
|
+
* @returns The record-editing object.
|
|
790
|
+
* @i2since 1.1
|
|
791
|
+
*/
|
|
379
792
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
793
|
+
/**
|
|
794
|
+
* Moves a node to a particular location on the chart.
|
|
795
|
+
*
|
|
796
|
+
* @param node - The node to be moved.
|
|
797
|
+
* @param position - The location to move the node to.
|
|
798
|
+
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
799
|
+
* @i2since 1.1
|
|
800
|
+
*/
|
|
801
|
+
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
802
|
+
/**
|
|
803
|
+
* Moves all the nodes that contain selected records by the same displacement.
|
|
804
|
+
*
|
|
805
|
+
* @param centerDelta - The displacement on the x and y axes, in chart coordinates.
|
|
806
|
+
* @i2since 1.1
|
|
807
|
+
*/
|
|
808
|
+
moveSelectedNodesRelative(centerDelta: {
|
|
383
809
|
xDelta: number;
|
|
384
810
|
yDelta: number;
|
|
385
811
|
}): void;
|
|
386
|
-
}
|
|
387
|
-
export interface IGeoPointData {
|
|
388
812
|
/**
|
|
389
|
-
*
|
|
813
|
+
* Removes records from the chart.
|
|
814
|
+
*
|
|
815
|
+
* @param records - The record or records to be removed.
|
|
816
|
+
* @returns `true` if one or more records were successfully removed from the chart; `false` if none of the records existed.
|
|
390
817
|
* @i2since 1.1
|
|
391
818
|
*/
|
|
392
|
-
|
|
819
|
+
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
|
|
393
820
|
/**
|
|
394
|
-
*
|
|
821
|
+
* Removes elements from the chart.
|
|
822
|
+
*
|
|
823
|
+
* @param elements - The element or elements to be removed.
|
|
824
|
+
* @returns `true` if one or more elements were successfully removed from the chart; `false` if none of the elements existed.
|
|
395
825
|
* @i2since 1.1
|
|
396
826
|
*/
|
|
397
|
-
|
|
827
|
+
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
|
|
828
|
+
/**
|
|
829
|
+
* Removes the currently selected records from the chart.
|
|
830
|
+
* @i2since 1.1
|
|
831
|
+
*/
|
|
832
|
+
removeSelectedRecords(): void;
|
|
398
833
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
834
|
+
/**
|
|
835
|
+
* A collection of elements and records that together represent a selection on the chart surface.
|
|
836
|
+
* @i2since 1.1
|
|
837
|
+
*/
|
|
838
|
+
export interface IElementsAndRecords {
|
|
839
|
+
/**
|
|
840
|
+
* Gets or sets the records in the set.
|
|
841
|
+
* @i2since 1.1
|
|
842
|
+
*/
|
|
843
|
+
records?: Iterable<RecordSpecifier>;
|
|
844
|
+
/**
|
|
845
|
+
* Gets or sets the elements in the set.
|
|
846
|
+
* @i2since 1.1
|
|
847
|
+
*/
|
|
848
|
+
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
402
849
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
850
|
+
/**
|
|
851
|
+
* A set of methods that change the chart view.
|
|
852
|
+
* @i2since 1.1
|
|
853
|
+
*/
|
|
854
|
+
export interface IViewEditor {
|
|
855
|
+
/**
|
|
856
|
+
* Sets the location on the chart that appears in the center of the viewport, and the zoom level.
|
|
857
|
+
*
|
|
858
|
+
* @param viewport - The new position and zoom level of the chart in the viewport.
|
|
859
|
+
* @i2since 1.1
|
|
860
|
+
*/
|
|
861
|
+
setViewport(viewport: chart.IViewportData): void;
|
|
862
|
+
/**
|
|
863
|
+
* Adjusts the position and zoom of the chart so that all elements on it are visible.
|
|
864
|
+
*
|
|
865
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
866
|
+
* @i2since 1.1
|
|
867
|
+
*/
|
|
868
|
+
fitToChart(options?: chart.IFitConstraints): void;
|
|
869
|
+
/**
|
|
870
|
+
* Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
|
|
871
|
+
*
|
|
872
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
873
|
+
* @i2since 1.1
|
|
874
|
+
*/
|
|
875
|
+
fitToHeight(options?: chart.IFitConstraints): void;
|
|
876
|
+
/**
|
|
877
|
+
* Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
|
|
878
|
+
*
|
|
879
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
880
|
+
* @i2since 1.1
|
|
881
|
+
*/
|
|
882
|
+
fitToSelection(options?: chart.IFitConstraints): void;
|
|
883
|
+
/**
|
|
884
|
+
* Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
|
|
885
|
+
*
|
|
886
|
+
* @param items - The elements to make visible, and the records whose containing elements are to be visible.
|
|
887
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
888
|
+
* @i2since 1.1
|
|
889
|
+
*/
|
|
890
|
+
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
|
|
411
891
|
}
|
|
412
|
-
|
|
892
|
+
/**
|
|
893
|
+
* A set of methods that can change the chart selection.
|
|
894
|
+
* @i2since 1.1
|
|
895
|
+
*/
|
|
896
|
+
export interface ISelectionEditor {
|
|
413
897
|
/**
|
|
414
|
-
* Selects all records on the chart.
|
|
898
|
+
* Selects all the records on the chart.
|
|
415
899
|
* @i2since 1.1
|
|
416
900
|
*/
|
|
417
901
|
selectAll(): void;
|
|
418
902
|
/**
|
|
419
|
-
* Clears the chart selection.
|
|
903
|
+
* Clears the chart selection, so that no records are selected.
|
|
420
904
|
* @i2since 1.1
|
|
421
905
|
*/
|
|
422
906
|
clear(): void;
|
|
423
907
|
/**
|
|
424
|
-
* Replaces the chart selection with one
|
|
425
|
-
*
|
|
908
|
+
* Replaces the chart selection with one that contains the specified records.
|
|
909
|
+
*
|
|
910
|
+
* @param records - The records to use in the new selection.
|
|
911
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
426
912
|
* @i2since 1.1
|
|
427
913
|
*/
|
|
428
914
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
429
915
|
/**
|
|
430
|
-
* Adds
|
|
431
|
-
*
|
|
916
|
+
* Adds the specified records to the chart selection.
|
|
917
|
+
*
|
|
918
|
+
* @param records - The records to add to the selection.
|
|
919
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
432
920
|
* @i2since 1.1
|
|
433
921
|
*/
|
|
434
922
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
435
923
|
/**
|
|
436
|
-
* Removes
|
|
437
|
-
*
|
|
924
|
+
* Removes the specified records from the chart selection.
|
|
925
|
+
*
|
|
926
|
+
* @param records - The records to remove from the selection.
|
|
927
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
438
928
|
* @i2since 1.1
|
|
439
929
|
*/
|
|
440
930
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -444,6 +934,14 @@ export declare namespace app {
|
|
|
444
934
|
* @i2since 1.0
|
|
445
935
|
*/
|
|
446
936
|
export interface IServerComponents {
|
|
937
|
+
/**
|
|
938
|
+
* Gets the base URL of the i2 Analyze server. For example, `http://localhost:3000/opal/`.
|
|
939
|
+
*
|
|
940
|
+
* @remarks
|
|
941
|
+
* The base URL always ends with a forward slash, and never contains query parameters.
|
|
942
|
+
* @i2since 1.1
|
|
943
|
+
*/
|
|
944
|
+
readonly baseUrl: string;
|
|
447
945
|
/**
|
|
448
946
|
* Indicates whether the i2 Connect gateway is available on the application server.
|
|
449
947
|
* @i2since 1.0
|
|
@@ -484,13 +982,13 @@ export declare namespace app {
|
|
|
484
982
|
removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
|
|
485
983
|
}
|
|
486
984
|
/**
|
|
487
|
-
* A callback function that performs work on the application or its contents.
|
|
985
|
+
* A callback function that performs read-only work on the application or its contents.
|
|
488
986
|
*
|
|
489
987
|
* @remarks
|
|
490
988
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
491
989
|
* @i2since 1.0
|
|
492
990
|
*/
|
|
493
|
-
export type TransactionHandler = (applicationContents: IApplicationContents) => void
|
|
991
|
+
export type TransactionHandler = (applicationContents: IApplicationContents) => void | Promise<void>;
|
|
494
992
|
/**
|
|
495
993
|
* The contents of the i2 Notebook application.
|
|
496
994
|
* @i2since 1.0
|
|
@@ -745,6 +1243,21 @@ export declare namespace chart {
|
|
|
745
1243
|
* @i2since 1.0
|
|
746
1244
|
*/
|
|
747
1245
|
readonly selection: ISelection;
|
|
1246
|
+
/**
|
|
1247
|
+
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1248
|
+
*
|
|
1249
|
+
* @remarks
|
|
1250
|
+
* Some property values might not be fetched immediately from the server, due to size or other factors.
|
|
1251
|
+
* The property values that this method fetches become "unfetched" on subsequent record updates by the server.
|
|
1252
|
+
* See also the `hasUnfetchedProperties`, `isValueUnfetched()`, and `getUnfetchedPropertyTypes()` members of {@link records.IChartRecordBase}.
|
|
1253
|
+
*
|
|
1254
|
+
* @param records - The records to update with fetched property values.
|
|
1255
|
+
* @param propertyTypes - The types of the properties whose values are to be fetched if necessary.
|
|
1256
|
+
* @param signal - A signal that the application uses to abort the operation.
|
|
1257
|
+
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1258
|
+
* @i2since 1.1
|
|
1259
|
+
*/
|
|
1260
|
+
ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
|
|
748
1261
|
}
|
|
749
1262
|
/**
|
|
750
1263
|
* A change that has occurred to the data in a chart.
|
|
@@ -865,6 +1378,24 @@ export declare namespace chart {
|
|
|
865
1378
|
*/
|
|
866
1379
|
readonly zoomScale: number;
|
|
867
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* A set of data that defines a viewport.
|
|
1383
|
+
* @i2since 1.1
|
|
1384
|
+
*/
|
|
1385
|
+
export interface IViewportData {
|
|
1386
|
+
/**
|
|
1387
|
+
* Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
|
|
1388
|
+
* See also {@link chart.IChartView#zoomScale}.
|
|
1389
|
+
* @i2since 1.1
|
|
1390
|
+
*/
|
|
1391
|
+
zoomScale?: number;
|
|
1392
|
+
/**
|
|
1393
|
+
* Gets or sets the position of the center of the viewport, in chart coordinates.
|
|
1394
|
+
* See also {@link chart.IChartView#center}.
|
|
1395
|
+
* @i2since 1.1
|
|
1396
|
+
*/
|
|
1397
|
+
center?: visual.IPosition;
|
|
1398
|
+
}
|
|
868
1399
|
/**
|
|
869
1400
|
* A mapping of chart event types to their listener types.
|
|
870
1401
|
* @i2since 1.0
|
|
@@ -931,6 +1462,30 @@ export declare namespace chart {
|
|
|
931
1462
|
* @i2since 1.0
|
|
932
1463
|
*/
|
|
933
1464
|
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1465
|
+
/**
|
|
1466
|
+
* Constraints that control a view-fitting operation.
|
|
1467
|
+
*
|
|
1468
|
+
* @remarks
|
|
1469
|
+
* Fitting the view to a collection of elements ordinarily zooms in or out to make those
|
|
1470
|
+
* elements fill the viewport. However, you might want to limit this behavior to prevent
|
|
1471
|
+
* zooming in beyond a particular level.
|
|
1472
|
+
*
|
|
1473
|
+
* For example, if you fit the view to a single element, you might not want to zoom so that
|
|
1474
|
+
* the element fills the viewport. If you want to focus attention on a single element without
|
|
1475
|
+
* making it too large, you can set `maximumZoom` to `1`.
|
|
1476
|
+
*
|
|
1477
|
+
* Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
|
|
1478
|
+
* you can set `maximumZoom` to `current`.
|
|
1479
|
+
*
|
|
1480
|
+
* @i2since 1.1
|
|
1481
|
+
*/
|
|
1482
|
+
export interface IFitConstraints {
|
|
1483
|
+
/**
|
|
1484
|
+
* Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
|
|
1485
|
+
* @i2since 1.1
|
|
1486
|
+
*/
|
|
1487
|
+
maximumZoom?: number | 'current';
|
|
1488
|
+
}
|
|
934
1489
|
}
|
|
935
1490
|
|
|
936
1491
|
/**
|
|
@@ -946,9 +1501,9 @@ export declare namespace commands {
|
|
|
946
1501
|
*
|
|
947
1502
|
* @remarks
|
|
948
1503
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
949
|
-
* @i2since 1.
|
|
1504
|
+
* @i2since 1.1
|
|
950
1505
|
*/
|
|
951
|
-
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search';
|
|
1506
|
+
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
952
1507
|
/**
|
|
953
1508
|
* A type for a command, which determines the payload it receives when a user invokes it.
|
|
954
1509
|
* @i2since 1.0
|
|
@@ -1197,11 +1752,11 @@ export declare namespace commands {
|
|
|
1197
1752
|
*/
|
|
1198
1753
|
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1199
1754
|
/**
|
|
1200
|
-
* Locates the area of the user interface that appears immediately before
|
|
1755
|
+
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1201
1756
|
*
|
|
1202
|
-
* @param command - The
|
|
1757
|
+
* @param command - The surfaced command to use as a reference.
|
|
1203
1758
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1204
|
-
* @throws `Error` if
|
|
1759
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1205
1760
|
* @i2since 1.1
|
|
1206
1761
|
*/
|
|
1207
1762
|
before(command: ICommand): IActionArea<undefined>;
|
|
@@ -1215,11 +1770,11 @@ export declare namespace commands {
|
|
|
1215
1770
|
*/
|
|
1216
1771
|
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1217
1772
|
/**
|
|
1218
|
-
* Locates the area of the user interface that appears immediately after
|
|
1773
|
+
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1219
1774
|
*
|
|
1220
|
-
* @param command - The
|
|
1775
|
+
* @param command - The surfaced command to use as a reference.
|
|
1221
1776
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1222
|
-
* @throws `Error` if
|
|
1777
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1223
1778
|
* @i2since 1.1
|
|
1224
1779
|
*/
|
|
1225
1780
|
after(command: ICommand): IActionArea<undefined>;
|
|
@@ -1511,7 +2066,7 @@ export declare namespace commands {
|
|
|
1511
2066
|
*/
|
|
1512
2067
|
readonly toggleVisualQuery: CommandId;
|
|
1513
2068
|
/**
|
|
1514
|
-
* Gets the identifier of the system command that toggles the Expand UI.
|
|
2069
|
+
* Gets the identifier of the system command that toggles the Expand-with-conditions UI.
|
|
1515
2070
|
* @i2since 1.0
|
|
1516
2071
|
*/
|
|
1517
2072
|
readonly toggleExpand: CommandId;
|
|
@@ -1560,12 +2115,37 @@ export declare namespace commands {
|
|
|
1560
2115
|
* @i2since 1.0
|
|
1561
2116
|
*/
|
|
1562
2117
|
readonly deleteSelected: CommandId;
|
|
2118
|
+
/**
|
|
2119
|
+
* Gets the identifier of the system command that saves the current chart.
|
|
2120
|
+
* @i2since 1.1
|
|
2121
|
+
*/
|
|
2122
|
+
readonly saveChart: CommandId;
|
|
2123
|
+
/**
|
|
2124
|
+
* Gets the identifier of the system command that performs an expand operation on the current selection.
|
|
2125
|
+
* @i2since 1.1
|
|
2126
|
+
*/
|
|
2127
|
+
readonly expand: CommandId;
|
|
2128
|
+
/**
|
|
2129
|
+
* Gets the identifier of the system command that toggles the map UI.
|
|
2130
|
+
* @i2since 1.1
|
|
2131
|
+
*/
|
|
2132
|
+
readonly toggleMap: CommandId;
|
|
2133
|
+
/**
|
|
2134
|
+
* Gets the identifier of the system command that adds geospatial markers to the map from the current selection.
|
|
2135
|
+
* @i2since 1.1
|
|
2136
|
+
*/
|
|
2137
|
+
readonly addToMap: CommandId;
|
|
1563
2138
|
}
|
|
1564
2139
|
/**
|
|
1565
2140
|
* A lookup table for the group identifiers of the default system action groups.
|
|
1566
2141
|
* @i2since 1.0
|
|
1567
2142
|
*/
|
|
1568
2143
|
export interface IHomeTabSystemGroups {
|
|
2144
|
+
/**
|
|
2145
|
+
* Gets the identifier of the system action group named "Manage".
|
|
2146
|
+
* @i2since 1.1
|
|
2147
|
+
*/
|
|
2148
|
+
readonly chartManagement: GroupId;
|
|
1569
2149
|
/**
|
|
1570
2150
|
* Gets the identifier of the system action group named "History".
|
|
1571
2151
|
* @i2since 1.0
|
|
@@ -1829,6 +2409,22 @@ export declare namespace data {
|
|
|
1829
2409
|
*/
|
|
1830
2410
|
readonly longitude: number;
|
|
1831
2411
|
}
|
|
2412
|
+
/**
|
|
2413
|
+
* A set of data for creating a geospatial position.
|
|
2414
|
+
* @i2since 1.1
|
|
2415
|
+
*/
|
|
2416
|
+
export interface IGeoPointData {
|
|
2417
|
+
/**
|
|
2418
|
+
* Gets the latitude of the new position, in degrees north.
|
|
2419
|
+
* @i2since 1.1
|
|
2420
|
+
*/
|
|
2421
|
+
readonly latitude: number;
|
|
2422
|
+
/**
|
|
2423
|
+
* Gets the longitude of the new position, in degrees east.
|
|
2424
|
+
* @i2since 1.1
|
|
2425
|
+
*/
|
|
2426
|
+
readonly longitude: number;
|
|
2427
|
+
}
|
|
1832
2428
|
/**
|
|
1833
2429
|
* A logical type for the value of a record property.
|
|
1834
2430
|
*
|
|
@@ -2471,7 +3067,7 @@ export declare namespace records {
|
|
|
2471
3067
|
* @returns The property value or, if not present, `undefined`.
|
|
2472
3068
|
* @i2since 1.0
|
|
2473
3069
|
*/
|
|
2474
|
-
getProperty(propertyType: schema.
|
|
3070
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
2475
3071
|
/**
|
|
2476
3072
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
2477
3073
|
*
|
|
@@ -2556,6 +3152,11 @@ export declare namespace records {
|
|
|
2556
3152
|
* @i2since 1.0
|
|
2557
3153
|
*/
|
|
2558
3154
|
readonly itemType: schema.IChartEntityType;
|
|
3155
|
+
/**
|
|
3156
|
+
* Gets all the link records that are connected to the entity record.
|
|
3157
|
+
* @i2since 1.1
|
|
3158
|
+
*/
|
|
3159
|
+
readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
|
|
2559
3160
|
}
|
|
2560
3161
|
/**
|
|
2561
3162
|
* A link record.
|
|
@@ -2592,10 +3193,14 @@ export declare namespace records {
|
|
|
2592
3193
|
*/
|
|
2593
3194
|
export type NoteId = string;
|
|
2594
3195
|
/**
|
|
2595
|
-
*
|
|
3196
|
+
* A set of data for creating a note.
|
|
2596
3197
|
* @i2since 1.1
|
|
2597
3198
|
*/
|
|
2598
3199
|
export interface INoteData {
|
|
3200
|
+
/**
|
|
3201
|
+
* Gets the contents of the new note.
|
|
3202
|
+
* @i2since 1.1
|
|
3203
|
+
*/
|
|
2599
3204
|
readonly contents: string;
|
|
2600
3205
|
}
|
|
2601
3206
|
/**
|
|
@@ -2692,29 +3297,33 @@ export declare namespace records {
|
|
|
2692
3297
|
*/
|
|
2693
3298
|
readonly imageUrl?: string;
|
|
2694
3299
|
}
|
|
3300
|
+
/**
|
|
3301
|
+
* A set of data for creating a source reference.
|
|
3302
|
+
* @i2since 1.1
|
|
3303
|
+
*/
|
|
2695
3304
|
export interface ISourceReferenceData {
|
|
2696
3305
|
/**
|
|
2697
|
-
* Gets the name of the source that the source reference describes.
|
|
3306
|
+
* Gets the name of the source that the new source reference describes.
|
|
2698
3307
|
* @i2since 1.1
|
|
2699
3308
|
*/
|
|
2700
3309
|
readonly name: string;
|
|
2701
3310
|
/**
|
|
2702
|
-
* Gets the type of the source that the source reference describes.
|
|
3311
|
+
* Gets the type of the source that the new source reference describes.
|
|
2703
3312
|
* @i2since 1.1
|
|
2704
3313
|
*/
|
|
2705
3314
|
readonly type?: string;
|
|
2706
3315
|
/**
|
|
2707
|
-
* Gets the location of the source that the source reference describes.
|
|
3316
|
+
* Gets the location of the source that the new source reference describes.
|
|
2708
3317
|
* @i2since 1.1
|
|
2709
3318
|
*/
|
|
2710
3319
|
readonly location?: string;
|
|
2711
3320
|
/**
|
|
2712
|
-
* Gets the description of the source that the source reference describes.
|
|
3321
|
+
* Gets the description of the source that the new source reference describes.
|
|
2713
3322
|
* @i2since 1.1
|
|
2714
3323
|
*/
|
|
2715
3324
|
readonly description?: string;
|
|
2716
3325
|
/**
|
|
2717
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
3326
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
2718
3327
|
* @i2since 1.1
|
|
2719
3328
|
*/
|
|
2720
3329
|
readonly imageUrl?: string;
|
|
@@ -2735,6 +3344,22 @@ export declare namespace records {
|
|
|
2735
3344
|
*/
|
|
2736
3345
|
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
2737
3346
|
}
|
|
3347
|
+
/**
|
|
3348
|
+
* A set of data for creating a security setting.
|
|
3349
|
+
* @i2since 1.1
|
|
3350
|
+
*/
|
|
3351
|
+
export interface ISecuritySettingData {
|
|
3352
|
+
/**
|
|
3353
|
+
* Gets or sets the security dimension for the new security setting.
|
|
3354
|
+
* @i2since 1.1
|
|
3355
|
+
*/
|
|
3356
|
+
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
3357
|
+
/**
|
|
3358
|
+
* Gets or sets the dimension values for the new security setting.
|
|
3359
|
+
* @i2since 1.1
|
|
3360
|
+
*/
|
|
3361
|
+
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
3362
|
+
}
|
|
2738
3363
|
/**
|
|
2739
3364
|
* A source identifier for a record.
|
|
2740
3365
|
*
|
|
@@ -2744,7 +3369,7 @@ export declare namespace records {
|
|
|
2744
3369
|
*/
|
|
2745
3370
|
export interface ISourceIdentifier {
|
|
2746
3371
|
/**
|
|
2747
|
-
* Gets the type of
|
|
3372
|
+
* Gets the type of the source identifier.
|
|
2748
3373
|
* @i2since 1.0
|
|
2749
3374
|
*/
|
|
2750
3375
|
readonly type: string;
|
|
@@ -2754,15 +3379,19 @@ export declare namespace records {
|
|
|
2754
3379
|
*/
|
|
2755
3380
|
readonly key: string[];
|
|
2756
3381
|
}
|
|
3382
|
+
/**
|
|
3383
|
+
* A set of data for creating a source identifier.
|
|
3384
|
+
* @i2since 1.1
|
|
3385
|
+
*/
|
|
2757
3386
|
export interface ISourceIdentifierData {
|
|
2758
3387
|
/**
|
|
2759
|
-
* Gets the type of
|
|
2760
|
-
* @i2since 1.
|
|
3388
|
+
* Gets the type of the new source identifier.
|
|
3389
|
+
* @i2since 1.1
|
|
2761
3390
|
*/
|
|
2762
3391
|
readonly type: string;
|
|
2763
3392
|
/**
|
|
2764
|
-
* Gets the values that make up the source identifier key.
|
|
2765
|
-
* @i2since 1.
|
|
3393
|
+
* Gets the values that make up the new source identifier key.
|
|
3394
|
+
* @i2since 1.1
|
|
2766
3395
|
*/
|
|
2767
3396
|
readonly key: string[];
|
|
2768
3397
|
}
|
|
@@ -2831,6 +3460,21 @@ export declare namespace schema {
|
|
|
2831
3460
|
* @i2since 1.0
|
|
2832
3461
|
*/
|
|
2833
3462
|
readonly maximumSourceIdentifiers: number;
|
|
3463
|
+
/**
|
|
3464
|
+
* Gets the maximum number of characters for a source identifier key.
|
|
3465
|
+
* @i2since 1.1
|
|
3466
|
+
*/
|
|
3467
|
+
readonly maxKeyStringLength: data.ICharLimit;
|
|
3468
|
+
/**
|
|
3469
|
+
* Gets the maximum number of characters for a source identifier type.
|
|
3470
|
+
* @i2since 1.1
|
|
3471
|
+
*/
|
|
3472
|
+
readonly maxTypeStringLength: data.ICharLimit;
|
|
3473
|
+
/**
|
|
3474
|
+
* Gets the source identifier types that are reserved for system use.
|
|
3475
|
+
* @i2since 1.1
|
|
3476
|
+
*/
|
|
3477
|
+
readonly reservedTypes: data.IReadOnlyCollection<string>;
|
|
2834
3478
|
}
|
|
2835
3479
|
/**
|
|
2836
3480
|
* A security schema, which defines the available security dimensions and their dimension values.
|
|
@@ -2843,7 +3487,7 @@ export declare namespace schema {
|
|
|
2843
3487
|
*/
|
|
2844
3488
|
readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
|
|
2845
3489
|
/**
|
|
2846
|
-
* Gets the
|
|
3490
|
+
* Gets the security dimension values to apply to new records by default.
|
|
2847
3491
|
* @i2since 1.1
|
|
2848
3492
|
*/
|
|
2849
3493
|
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
|
|
@@ -3007,6 +3651,11 @@ export declare namespace schema {
|
|
|
3007
3651
|
* @i2since 1.0
|
|
3008
3652
|
*/
|
|
3009
3653
|
readonly isOrphaned: boolean;
|
|
3654
|
+
/**
|
|
3655
|
+
* Indicates whether the item type is defined in the Information Store schema.
|
|
3656
|
+
* @i2since 1.1
|
|
3657
|
+
*/
|
|
3658
|
+
readonly isInfoStore: boolean;
|
|
3010
3659
|
/**
|
|
3011
3660
|
* Gets the label definition for the item type, which describes how record labels are formed.
|
|
3012
3661
|
* @i2since 1.0
|
|
@@ -3028,6 +3677,11 @@ export declare namespace schema {
|
|
|
3028
3677
|
* @i2since 1.0
|
|
3029
3678
|
*/
|
|
3030
3679
|
export type AnalyzePropertyTypeId = string;
|
|
3680
|
+
/**
|
|
3681
|
+
* A common specifier for a property type.
|
|
3682
|
+
* @i2since 1.1
|
|
3683
|
+
*/
|
|
3684
|
+
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
3031
3685
|
/**
|
|
3032
3686
|
* A property type.
|
|
3033
3687
|
* @i2since 1.0
|
|
@@ -3585,9 +4239,15 @@ export declare namespace visual {
|
|
|
3585
4239
|
* @i2since 1.0
|
|
3586
4240
|
*/
|
|
3587
4241
|
readonly style: INodeStyle;
|
|
4242
|
+
/**
|
|
4243
|
+
* Gets all the edges that are connected to the node.
|
|
4244
|
+
* @i2since 1.1
|
|
4245
|
+
*/
|
|
4246
|
+
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3588
4247
|
/**
|
|
3589
4248
|
* Gets all the edges that are connected to the node.
|
|
3590
4249
|
* @i2since 1.0
|
|
4250
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
3591
4251
|
*/
|
|
3592
4252
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3593
4253
|
}
|