@i2analyze/notebook-sdk 1.1.0-dev.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/gen/notebook-sdk-public.d.ts +845 -222
- package/lib/index.js +3 -6
- package/package.json +1 -1
- package/CHANGELOG.md +0 -69
|
@@ -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,103 +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
|
}
|
|
123
|
+
/**
|
|
124
|
+
* A report on the result of one or more mutations.
|
|
125
|
+
* @i2since 1.1
|
|
126
|
+
*/
|
|
78
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
|
+
*/
|
|
79
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
|
+
*/
|
|
80
138
|
type: 'success';
|
|
139
|
+
/**
|
|
140
|
+
* Gets or sets some additional information about the completed mutations.
|
|
141
|
+
* @i2since 1.1
|
|
142
|
+
*/
|
|
81
143
|
details: string;
|
|
82
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
|
+
*/
|
|
83
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
|
+
*/
|
|
84
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
|
+
*/
|
|
85
160
|
title: string;
|
|
161
|
+
/**
|
|
162
|
+
* Gets or sets some additional information about the mutations.
|
|
163
|
+
* @i2since 1.1
|
|
164
|
+
*/
|
|
86
165
|
details: string;
|
|
87
166
|
}
|
|
88
|
-
|
|
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
|
+
*/
|
|
89
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
|
+
*/
|
|
90
181
|
report?: IMutationReport;
|
|
91
182
|
}
|
|
92
|
-
|
|
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 {
|
|
93
194
|
/**
|
|
94
|
-
* 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.
|
|
95
196
|
* @i2since 1.1
|
|
96
197
|
*/
|
|
97
198
|
actionDisplayName: string;
|
|
98
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* A set of information that accompanies a request to roll back a set of mutations.
|
|
202
|
+
* @i2since 1.1
|
|
203
|
+
*/
|
|
99
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
|
+
*/
|
|
100
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
|
+
*/
|
|
101
214
|
report?: IMutationReport;
|
|
102
215
|
}
|
|
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
|
+
*/
|
|
103
220
|
export type ITrackedMutationInfo = ITrackedMutationCommit | IMutationRollback;
|
|
104
|
-
export type IMutationInfo = IMutationCommit | IMutationRollback;
|
|
105
|
-
export type UntrackedMutationListener = (application: IApplicationContents, mutations: IUntrackedMutations, cancelation: ICancelation) => IMutationInfo | Promise<IMutationInfo>;
|
|
106
|
-
export type TrackedMutationListener = (application: IApplicationContents, mutations: ITrackedMutations, cancelation: ICancelation) => ITrackedMutationInfo | Promise<ITrackedMutationInfo>;
|
|
107
221
|
/**
|
|
108
|
-
*
|
|
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
|
+
*
|
|
109
229
|
* @remarks
|
|
110
|
-
*
|
|
111
|
-
* use depending on your scenario:
|
|
230
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
112
231
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
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.
|
|
116
240
|
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
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:
|
|
122
276
|
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
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.
|
|
279
|
+
*
|
|
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.
|
|
284
|
+
*
|
|
285
|
+
* To check synchronously if the operation has been canceled, you can inspect the `signal.aborted`
|
|
286
|
+
* property.
|
|
125
287
|
*
|
|
126
288
|
* @i2since 1.1
|
|
127
289
|
*/
|
|
128
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
|
+
*/
|
|
129
299
|
waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
|
|
130
300
|
/**
|
|
131
|
-
* Gets an `AbortSignal`
|
|
301
|
+
* Gets an `AbortSignal` that indicates whether a user has requested that an operation be canceled.
|
|
302
|
+
*
|
|
132
303
|
* @i2since 1.1
|
|
133
304
|
*/
|
|
134
305
|
signal: AbortSignal;
|
|
135
306
|
}
|
|
136
307
|
export type TODO = unknown;
|
|
137
308
|
/**
|
|
138
|
-
*
|
|
309
|
+
* A set of methods for changing a status display while an asynchronous mutation is running.
|
|
139
310
|
* @i2since 1.1
|
|
140
311
|
*/
|
|
141
|
-
export interface
|
|
312
|
+
export interface IStatus {
|
|
142
313
|
/**
|
|
143
|
-
* Sets the status
|
|
314
|
+
* Sets the status message in the blocking spinner display.
|
|
144
315
|
*
|
|
145
316
|
* @remarks
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* 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.
|
|
149
319
|
*
|
|
150
320
|
* @param text - The text to display.
|
|
151
|
-
*
|
|
152
321
|
* @i2since 1.1
|
|
153
322
|
*/
|
|
154
|
-
|
|
323
|
+
setMessage(text: string): void;
|
|
155
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* A common specifier for a record, for use in mutation APIs.
|
|
327
|
+
* @i2since 1.1
|
|
328
|
+
*/
|
|
156
329
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
157
|
-
|
|
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 the properties of new records, 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 record properties that are to be edited, 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
|
+
*/
|
|
158
380
|
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
+
*/
|
|
162
400
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
401
|
+
/**
|
|
402
|
+
* Gets or sets the source identifiers of the new record.
|
|
403
|
+
* @i2since 1.1
|
|
404
|
+
*/
|
|
163
405
|
sourceIdentifiers?: readonly records.ISourceIdentifier[];
|
|
164
406
|
}
|
|
165
|
-
|
|
407
|
+
/**
|
|
408
|
+
* A set of data for creating an entity record.
|
|
409
|
+
* @i2since 1.1
|
|
410
|
+
*/
|
|
411
|
+
export interface IChartEntityRecordData extends IChartRecordBaseData {
|
|
166
412
|
}
|
|
167
|
-
|
|
413
|
+
/**
|
|
414
|
+
* A set of data for creating a link record.
|
|
415
|
+
* @i2since 1.1
|
|
416
|
+
*/
|
|
417
|
+
export interface IChartLinkRecordData extends IChartRecordBaseData {
|
|
168
418
|
/**
|
|
169
419
|
* Gets the record at the 'from' end of the link.
|
|
170
420
|
* @i2since 1.1
|
|
@@ -184,296 +434,498 @@ export declare namespace app {
|
|
|
184
434
|
*/
|
|
185
435
|
readonly linkDirection: data.LinkDirection;
|
|
186
436
|
}
|
|
187
|
-
export interface INoteData {
|
|
188
|
-
content: string;
|
|
189
|
-
}
|
|
190
437
|
/**
|
|
191
|
-
*
|
|
438
|
+
* A set of methods for performing tracked or untracked mutations, organized by what they affect.
|
|
192
439
|
* @i2since 1.1
|
|
193
440
|
*/
|
|
194
441
|
export interface IMutationsBase {
|
|
195
442
|
/**
|
|
196
|
-
* 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.
|
|
197
449
|
* @i2since 1.1
|
|
198
450
|
*/
|
|
199
|
-
readonly
|
|
451
|
+
readonly selection: ISelectionEditor;
|
|
200
452
|
/**
|
|
201
|
-
* Gets an object that provides
|
|
453
|
+
* Gets an object that provides methods for modifying the chart view.
|
|
202
454
|
* @i2since 1.1
|
|
203
455
|
*/
|
|
204
|
-
readonly
|
|
205
|
-
readonly view: IViewMutations;
|
|
456
|
+
readonly view: IViewEditor;
|
|
206
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
|
+
*/
|
|
207
462
|
export interface IUntrackedMutations extends IMutationsBase {
|
|
208
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* A set of methods for modifying the contents of a record.
|
|
466
|
+
* @i2since 1.1
|
|
467
|
+
*/
|
|
209
468
|
export interface IRecordEditor {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
469
|
+
/**
|
|
470
|
+
* Sets or clears the values of properties on the record.
|
|
471
|
+
*
|
|
472
|
+
* @param properties - The types and values of the properties to set (or `null` to clear them).
|
|
473
|
+
* @returns This record, with the edited 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 new 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
|
+
*
|
|
538
|
+
* @param security - The new security settings.
|
|
539
|
+
* @returns This record, with the new security settings in place.
|
|
540
|
+
* @i2since 1.1
|
|
541
|
+
*/
|
|
217
542
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
543
|
+
/**
|
|
544
|
+
* Sets the direction of a link record.
|
|
545
|
+
*
|
|
546
|
+
* @remarks
|
|
547
|
+
* Calling this method on a entity record will throw an error.
|
|
548
|
+
*
|
|
549
|
+
* @param linkDirection - The link direction to set.
|
|
550
|
+
* @returns This record, with the new link direction in place.
|
|
551
|
+
* @i2since 1.1
|
|
552
|
+
*/
|
|
553
|
+
setLinkDirection(linkDirection: data.LinkDirection): this;
|
|
218
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* A record that has been created in a transaction handler, but has not yet been added to a chart.
|
|
557
|
+
* @i2since 1.1
|
|
558
|
+
*/
|
|
219
559
|
export interface IPendingRecord extends IRecordEditor {
|
|
560
|
+
/**
|
|
561
|
+
* Gets or sets the identifier of the record.
|
|
562
|
+
* @i2since 1.1
|
|
563
|
+
*/
|
|
220
564
|
recordId: records.AnalyzeRecordId;
|
|
221
565
|
}
|
|
222
|
-
|
|
223
|
-
|
|
566
|
+
/**
|
|
567
|
+
* A set of utility functions for creating property and other values that can be reused across records.
|
|
568
|
+
* @i2since 1.1
|
|
569
|
+
*/
|
|
570
|
+
export interface IValueFactory {
|
|
224
571
|
/**
|
|
225
|
-
* Creates a
|
|
572
|
+
* Creates a security setting that you can use to configure record security.
|
|
573
|
+
*
|
|
574
|
+
* @remarks
|
|
575
|
+
* You can use the same security setting to configure the security of several records.
|
|
576
|
+
*
|
|
577
|
+
* @param data - The data for the new security setting.
|
|
578
|
+
* @returns The new security setting.
|
|
579
|
+
* @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
|
|
226
580
|
* @i2since 1.1
|
|
227
|
-
* @param data - The values to populate the new {@link records.ISecuritySetting} with.
|
|
228
|
-
* @returns A new {@link records.ISecuritySetting} object.
|
|
229
|
-
* @throws `Error` if the dimension or values did not exist in the security schema.
|
|
230
581
|
*/
|
|
231
|
-
createSecuritySetting(data: ISecuritySettingData): records.ISecuritySetting;
|
|
582
|
+
createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
|
|
232
583
|
/**
|
|
233
|
-
* Creates a
|
|
584
|
+
* Creates a decimal value from a number or a string.
|
|
234
585
|
*
|
|
235
|
-
* @param value - The number or
|
|
236
|
-
* @returns
|
|
237
|
-
* @throws `Error` if the value was `NaN`, too large to
|
|
586
|
+
* @param value - The number or string to initialize the decimal value from.
|
|
587
|
+
* @returns The new decimal value.
|
|
588
|
+
* @throws `Error` if the value was `NaN`, or too large to be a decimal, or an invalid string.
|
|
238
589
|
* @i2since 1.1
|
|
239
590
|
*/
|
|
240
591
|
createDecimal(value: number | string): data.IDecimal;
|
|
241
592
|
/**
|
|
242
|
-
* Creates a local date object (
|
|
243
|
-
*
|
|
244
|
-
* @param
|
|
245
|
-
* @param
|
|
246
|
-
* @
|
|
593
|
+
* Creates a local date object (that does not have a time or a time zone) from year/month/day information.
|
|
594
|
+
*
|
|
595
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
596
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
597
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
598
|
+
* @returns The new local date object.
|
|
247
599
|
* @i2since 1.1
|
|
248
600
|
*/
|
|
249
601
|
createLocalDate(year: number, month: number, day: number): data.ILocalDate;
|
|
250
602
|
/**
|
|
251
|
-
* Creates a local date object (
|
|
252
|
-
*
|
|
253
|
-
* @
|
|
603
|
+
* Creates a local date object (that does not have a time or a time zone) from a JavaScript `Date` object.
|
|
604
|
+
*
|
|
605
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date values are used.
|
|
606
|
+
* @returns The new local date object.
|
|
254
607
|
* @i2since 1.1
|
|
255
608
|
*/
|
|
256
609
|
createLocalDate(jsDate: Date): data.ILocalDate;
|
|
257
610
|
/**
|
|
258
|
-
* Creates a local date object (
|
|
259
|
-
*
|
|
260
|
-
* @
|
|
261
|
-
* @
|
|
611
|
+
* Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
|
|
612
|
+
*
|
|
613
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date.
|
|
614
|
+
* @returns The new local date object.
|
|
615
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
262
616
|
* @i2since 1.1
|
|
263
617
|
*/
|
|
264
618
|
createLocalDate(iso8601: string): data.ILocalDate;
|
|
265
619
|
/**
|
|
266
|
-
* Creates a local time object (
|
|
267
|
-
*
|
|
268
|
-
* @param
|
|
269
|
-
* @param
|
|
270
|
-
* @param
|
|
271
|
-
* @
|
|
620
|
+
* Creates a local time object (that does not have a date or a time zone) from hour/minute/second information.
|
|
621
|
+
*
|
|
622
|
+
* @param hour - The hour of the day (0-23).
|
|
623
|
+
* @param minute - The minutes of the hour (0-59).
|
|
624
|
+
* @param second - The seconds of the minute (0-59).
|
|
625
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
626
|
+
* @returns The new local time object.
|
|
272
627
|
* @i2since 1.1
|
|
273
628
|
*/
|
|
274
629
|
createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
|
|
275
630
|
/**
|
|
276
|
-
* Creates a local time object (
|
|
277
|
-
*
|
|
278
|
-
* @
|
|
631
|
+
* Creates a local time object (that does not have a date or a time zone) from a JavaScript `Date` object.
|
|
632
|
+
*
|
|
633
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) time values are used.
|
|
634
|
+
* @returns The new local time object.
|
|
279
635
|
* @i2since 1.1
|
|
280
636
|
*/
|
|
281
637
|
createLocalTime(jsDate: Date): data.ILocalTime;
|
|
282
638
|
/**
|
|
283
|
-
* Creates a local time object (
|
|
284
|
-
*
|
|
285
|
-
* @
|
|
286
|
-
* @
|
|
639
|
+
* 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').
|
|
640
|
+
*
|
|
641
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the time.
|
|
642
|
+
* @returns The new local time object.
|
|
643
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
287
644
|
* @i2since 1.1
|
|
288
645
|
*/
|
|
289
646
|
createLocalTime(iso8601: string): data.ILocalTime;
|
|
290
647
|
/**
|
|
291
|
-
* Creates a local date-time object (
|
|
292
|
-
*
|
|
293
|
-
* @param
|
|
294
|
-
* @param
|
|
295
|
-
* @param
|
|
296
|
-
* @param
|
|
297
|
-
* @param
|
|
298
|
-
* @param
|
|
299
|
-
* @
|
|
648
|
+
* Creates a local date-time object (that does not have a time zone) from year/month/day/hour/minute/second information.
|
|
649
|
+
*
|
|
650
|
+
* @param year - The full year of the date; for example, `1973`.
|
|
651
|
+
* @param month - The (1-based) month of the year (1-12).
|
|
652
|
+
* @param day - The (1-based) day of the month (1-31).
|
|
653
|
+
* @param hour - The hour of the day (0-23).
|
|
654
|
+
* @param minute - The minutes of the hour (0-59).
|
|
655
|
+
* @param second - The seconds of the minute (0-59).
|
|
656
|
+
* @param milli - The milliseconds of the second (0-999).
|
|
657
|
+
* @returns The new local date-time object.
|
|
300
658
|
* @i2since 1.1
|
|
301
659
|
*/
|
|
302
660
|
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
|
|
303
661
|
/**
|
|
304
|
-
* Creates a local date-time object (
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
662
|
+
* Creates a local date-time object (that does not have a time zone) from a JavaScript `Date` object.
|
|
663
|
+
*
|
|
664
|
+
* @param jsDate - A JavaScript `Date`, from which the 'local' (not UTC) date and time values are used.
|
|
665
|
+
* @returns The new local date-time object.
|
|
307
666
|
* @i2since 1.1
|
|
308
667
|
*/
|
|
309
668
|
createLocalDateTime(jsDate: Date): data.ILocalDateTime;
|
|
310
669
|
/**
|
|
311
|
-
* Creates a local date-time object (
|
|
670
|
+
* Creates a local date-time object (that does not have a time zone) from a local date and a local time object.
|
|
671
|
+
*
|
|
312
672
|
* @param date - A local date.
|
|
313
673
|
* @param time - A local time.
|
|
314
|
-
* @returns
|
|
674
|
+
* @returns The new local date-time object.
|
|
315
675
|
* @i2since 1.1
|
|
316
676
|
*/
|
|
317
677
|
createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
|
|
318
678
|
/**
|
|
319
|
-
* Creates a local date-time object (
|
|
320
|
-
*
|
|
321
|
-
* @
|
|
322
|
-
* @
|
|
679
|
+
* 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').
|
|
680
|
+
*
|
|
681
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
682
|
+
* @returns The new local date-time object.
|
|
683
|
+
* @throws `Error` if the string was not in valid ISO 8601 format.
|
|
323
684
|
* @i2since 1.1
|
|
324
685
|
*/
|
|
325
686
|
createLocalDateTime(iso8601: string): data.ILocalDateTime;
|
|
326
687
|
/**
|
|
327
|
-
* Creates a
|
|
688
|
+
* Creates a date-time object that has a time zone from a local date, a local time, and a time zone.
|
|
689
|
+
*
|
|
328
690
|
* @param date - A local date.
|
|
329
691
|
* @param time - A local time.
|
|
330
|
-
* @param timeZone - A time zone or time zone
|
|
331
|
-
* @param isDst -
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
* @
|
|
692
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
693
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
694
|
+
*
|
|
695
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
696
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
697
|
+
* @returns The new date-time object.
|
|
698
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
336
699
|
* @i2since 1.1
|
|
337
700
|
*/
|
|
338
701
|
createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
339
702
|
/**
|
|
340
|
-
* Creates a
|
|
341
|
-
*
|
|
342
|
-
* @param
|
|
343
|
-
* @param
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
703
|
+
* Creates a date-time object that has a time zone from a local date-time (or a JavaScript `Date` object) and a time zone.
|
|
704
|
+
*
|
|
705
|
+
* @param dateTime - A local date-time, or a JavaScript `Date`.
|
|
706
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
707
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
708
|
+
*
|
|
709
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
710
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
711
|
+
* @returns The new date-time object.
|
|
712
|
+
* @throws `Error` if `timeZone` did not specify a valid time zone.
|
|
348
713
|
* @i2since 1.1
|
|
349
714
|
*/
|
|
350
715
|
createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
351
716
|
/**
|
|
352
|
-
* Creates a
|
|
353
|
-
*
|
|
354
|
-
* @param
|
|
355
|
-
* @param
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
* @
|
|
717
|
+
* 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.
|
|
718
|
+
*
|
|
719
|
+
* @param iso8601 - An ISO 8601-formatted string that represents the date and time.
|
|
720
|
+
* @param timeZone - A time zone, or a time zone identifier.
|
|
721
|
+
* @param isDst - `true` if the date-time is in daylight saving time for the specified time zone; `false` otherwise.
|
|
722
|
+
*
|
|
723
|
+
* This value is especially important for date-time values that are ambiguous, such as during the period
|
|
724
|
+
* when clocks go back from DST to not-DST and the same local time occurs twice.
|
|
725
|
+
* @returns The new date-time object.
|
|
726
|
+
* @throws `Error` if the string was not in valid ISO 8601 format, or `timeZone` did not specify a valid time zone.
|
|
361
727
|
* @i2since 1.1
|
|
362
728
|
*/
|
|
363
|
-
createZonedDateTime(
|
|
729
|
+
createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
364
730
|
/**
|
|
365
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
731
|
+
* Creates a {@link data.IGeoPoint} object from a pair of latitude and longitude values.
|
|
732
|
+
*
|
|
733
|
+
* @param latitude - The latitude of the geospatial position, in the range from -90 to +90 degrees.
|
|
734
|
+
* @param longitude - The longitude of the geospatial position, in the range from -180 to 180 degrees.
|
|
735
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
736
|
+
* @throws `Error` if either the latitude or the longitude was out of range.
|
|
366
737
|
* @i2since 1.1
|
|
367
|
-
* @param latitude - The latitude [-90 to +90] of the point.
|
|
368
|
-
* @param longitude - The longitude [-180 to +180] of the point.
|
|
369
|
-
* @returns A {@link data.IGeoPoint}.
|
|
370
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
371
738
|
*/
|
|
372
739
|
createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
|
|
373
740
|
/**
|
|
374
|
-
* Creates a {@link data.IGeoPoint} object.
|
|
741
|
+
* Creates a {@link data.IGeoPoint} object from a {@link data.IGeoPointData} object.
|
|
742
|
+
*
|
|
743
|
+
* @param data - A set of data that specifies the geospatial position.
|
|
744
|
+
* @returns The new {@link data.IGeoPoint} object.
|
|
745
|
+
* @throws `Error` if the specified data was out of range or otherwise not valid.
|
|
375
746
|
* @i2since 1.1
|
|
376
|
-
* @param data - An object containing the latitude [-90 to +90] and longitude [-180 to +180] of the point.
|
|
377
|
-
* @returns A {@link data.IGeoPoint}.
|
|
378
|
-
* @throws `Error` if either the latitude or longitude was out of range.
|
|
379
747
|
*/
|
|
380
|
-
createGeoPoint(data: IGeoPointData): data.IGeoPoint;
|
|
748
|
+
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
381
749
|
}
|
|
382
|
-
|
|
750
|
+
/**
|
|
751
|
+
* A set of methods for performing tracked mutations, which require an entry in the undo stack.
|
|
752
|
+
* @i2since 1.1
|
|
753
|
+
*/
|
|
754
|
+
export interface ITrackedMutations extends IMutationsBase {
|
|
755
|
+
/**
|
|
756
|
+
* Gets a library of functions for creating objects to use in mutations.
|
|
757
|
+
* @i2since 1.1
|
|
758
|
+
*/
|
|
759
|
+
readonly valueFactory: IValueFactory;
|
|
760
|
+
/**
|
|
761
|
+
* Creates an entity record that is added to the chart on committal.
|
|
762
|
+
*
|
|
763
|
+
* @param recordTemplate - The data from which to create the record.
|
|
764
|
+
* @param hints - A TODO.
|
|
765
|
+
* @returns The new, pending record.
|
|
766
|
+
* @i2since 1.1
|
|
767
|
+
*/
|
|
383
768
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
769
|
+
/**
|
|
770
|
+
* Creates a link record that is added to the chart on committal.
|
|
771
|
+
*
|
|
772
|
+
* @param recordTemplate - The data from which to create the record.
|
|
773
|
+
* @param hints - A TODO.
|
|
774
|
+
* @returns The new, pending record.
|
|
775
|
+
* @i2since 1.1
|
|
776
|
+
*/
|
|
384
777
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
778
|
+
/**
|
|
779
|
+
* Adds the records from a record group to the chart.
|
|
780
|
+
*
|
|
781
|
+
* @param recordGroupId - The identifier of the record group to add.
|
|
782
|
+
* @param selectionOption - The effect on chart selection of adding the record group.
|
|
783
|
+
* @i2since 1.1
|
|
784
|
+
*/
|
|
785
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
|
|
786
|
+
/**
|
|
787
|
+
* Gets an object with methods for editing a record.
|
|
788
|
+
*
|
|
789
|
+
* @param record - The record to be edited.
|
|
790
|
+
* @returns The record-editing object.
|
|
791
|
+
* @i2since 1.1
|
|
792
|
+
*/
|
|
385
793
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
794
|
+
/**
|
|
795
|
+
* Moves a node to a particular location on the chart.
|
|
796
|
+
*
|
|
797
|
+
* @param node - The node to be moved.
|
|
798
|
+
* @param position - The location to move the node to.
|
|
799
|
+
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
800
|
+
* @i2since 1.1
|
|
801
|
+
*/
|
|
802
|
+
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
803
|
+
/**
|
|
804
|
+
* Moves all the nodes that contain selected records by the same displacement.
|
|
805
|
+
*
|
|
806
|
+
* @param centerDelta - The displacement on the x and y axes, in chart coordinates.
|
|
807
|
+
* @i2since 1.1
|
|
808
|
+
*/
|
|
809
|
+
moveSelectedNodesRelative(centerDelta: {
|
|
389
810
|
xDelta: number;
|
|
390
811
|
yDelta: number;
|
|
391
812
|
}): void;
|
|
392
|
-
}
|
|
393
|
-
export interface IGeoPointData {
|
|
394
813
|
/**
|
|
395
|
-
*
|
|
814
|
+
* Removes records from the chart.
|
|
815
|
+
*
|
|
816
|
+
* @param records - The record or records to be removed.
|
|
817
|
+
* @returns `true` if one or more records were successfully removed from the chart; `false` if none of the records existed.
|
|
396
818
|
* @i2since 1.1
|
|
397
819
|
*/
|
|
398
|
-
|
|
820
|
+
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
|
|
399
821
|
/**
|
|
400
|
-
*
|
|
822
|
+
* Removes elements from the chart.
|
|
823
|
+
*
|
|
824
|
+
* @param elements - The element or elements to be removed.
|
|
825
|
+
* @returns `true` if one or more elements were successfully removed from the chart; `false` if none of the elements existed.
|
|
401
826
|
* @i2since 1.1
|
|
402
827
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
828
|
+
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
|
|
829
|
+
/**
|
|
830
|
+
* Removes the currently selected records from the chart.
|
|
831
|
+
* @i2since 1.1
|
|
832
|
+
*/
|
|
833
|
+
removeSelectedRecords(): void;
|
|
408
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* A collection of elements and records that together represent a selection on the chart surface.
|
|
837
|
+
* @i2since 1.1
|
|
838
|
+
*/
|
|
409
839
|
export interface IElementsAndRecords {
|
|
840
|
+
/**
|
|
841
|
+
* Gets or sets the records in the set.
|
|
842
|
+
* @i2since 1.1
|
|
843
|
+
*/
|
|
410
844
|
records?: Iterable<RecordSpecifier>;
|
|
845
|
+
/**
|
|
846
|
+
* Gets or sets the elements in the set.
|
|
847
|
+
* @i2since 1.1
|
|
848
|
+
*/
|
|
411
849
|
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
412
850
|
}
|
|
413
851
|
/**
|
|
414
|
-
*
|
|
415
|
-
* @remarks
|
|
416
|
-
* Fitting the view to a collection of items will ordinarily zoom in or out to make those
|
|
417
|
-
* items fill the viewport. Sometimes, however, you may wish to limit this behavior to prevent
|
|
418
|
-
* zooming in or out beyond a particular level.
|
|
419
|
-
*
|
|
420
|
-
* Examples:
|
|
421
|
-
*
|
|
422
|
-
* You may not want a single element to fill the entire viewport, so if you want to focus
|
|
423
|
-
* attention on a single element without making it large, you may want to limit the `maximumZoom` level to
|
|
424
|
-
* `1`.
|
|
425
|
-
*
|
|
426
|
-
* You may wish to pan the chart to show a particular element but not change the zoom level _at all_: set
|
|
427
|
-
* both `minimumZoom` and `maximumZoom` to `current`.
|
|
428
|
-
*
|
|
852
|
+
* A set of methods that change the chart view.
|
|
429
853
|
* @i2since 1.1
|
|
430
854
|
*/
|
|
431
|
-
export interface
|
|
855
|
+
export interface IViewEditor {
|
|
432
856
|
/**
|
|
433
|
-
*
|
|
857
|
+
* Sets the location on the chart that appears in the center of the viewport, and the zoom level.
|
|
858
|
+
*
|
|
859
|
+
* @param viewport - The new position and zoom level of the chart in the viewport.
|
|
434
860
|
* @i2since 1.1
|
|
435
861
|
*/
|
|
436
|
-
|
|
862
|
+
setViewport(viewport: chart.IViewportData): void;
|
|
437
863
|
/**
|
|
438
|
-
*
|
|
864
|
+
* Adjusts the position and zoom of the chart so that all elements on it are visible.
|
|
865
|
+
*
|
|
866
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
439
867
|
* @i2since 1.1
|
|
440
868
|
*/
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
869
|
+
fitToChart(options?: chart.IFitConstraints): void;
|
|
870
|
+
/**
|
|
871
|
+
* Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
|
|
872
|
+
*
|
|
873
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
874
|
+
* @i2since 1.1
|
|
875
|
+
*/
|
|
876
|
+
fitToHeight(options?: chart.IFitConstraints): void;
|
|
877
|
+
/**
|
|
878
|
+
* Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
|
|
879
|
+
*
|
|
880
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
881
|
+
* @i2since 1.1
|
|
882
|
+
*/
|
|
883
|
+
fitToSelection(options?: chart.IFitConstraints): void;
|
|
884
|
+
/**
|
|
885
|
+
* Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
|
|
886
|
+
*
|
|
887
|
+
* @param items - The elements to make visible, and the records whose containing elements are to be visible.
|
|
888
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
889
|
+
* @i2since 1.1
|
|
890
|
+
*/
|
|
891
|
+
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
|
|
450
892
|
}
|
|
451
|
-
|
|
893
|
+
/**
|
|
894
|
+
* A set of methods that can change the chart selection.
|
|
895
|
+
* @i2since 1.1
|
|
896
|
+
*/
|
|
897
|
+
export interface ISelectionEditor {
|
|
452
898
|
/**
|
|
453
|
-
* Selects all records on the chart.
|
|
899
|
+
* Selects all the records on the chart.
|
|
454
900
|
* @i2since 1.1
|
|
455
901
|
*/
|
|
456
902
|
selectAll(): void;
|
|
457
903
|
/**
|
|
458
|
-
* Clears the chart selection.
|
|
904
|
+
* Clears the chart selection, so that no records are selected.
|
|
459
905
|
* @i2since 1.1
|
|
460
906
|
*/
|
|
461
907
|
clear(): void;
|
|
462
908
|
/**
|
|
463
|
-
* Replaces the chart selection with one
|
|
464
|
-
*
|
|
909
|
+
* Replaces the chart selection with one that contains the specified records.
|
|
910
|
+
*
|
|
911
|
+
* @param records - The records to use in the new selection.
|
|
912
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
465
913
|
* @i2since 1.1
|
|
466
914
|
*/
|
|
467
915
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
468
916
|
/**
|
|
469
|
-
* Adds
|
|
470
|
-
*
|
|
917
|
+
* Adds the specified records to the chart selection.
|
|
918
|
+
*
|
|
919
|
+
* @param records - The records to add to the selection.
|
|
920
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
471
921
|
* @i2since 1.1
|
|
472
922
|
*/
|
|
473
923
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
474
924
|
/**
|
|
475
|
-
* Removes
|
|
476
|
-
*
|
|
925
|
+
* Removes the specified records from the chart selection.
|
|
926
|
+
*
|
|
927
|
+
* @param records - The records to remove from the selection.
|
|
928
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
477
929
|
* @i2since 1.1
|
|
478
930
|
*/
|
|
479
931
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -483,6 +935,14 @@ export declare namespace app {
|
|
|
483
935
|
* @i2since 1.0
|
|
484
936
|
*/
|
|
485
937
|
export interface IServerComponents {
|
|
938
|
+
/**
|
|
939
|
+
* Gets the base URL of the i2 Analyze server. For example, `http://localhost:3000/opal/`.
|
|
940
|
+
*
|
|
941
|
+
* @remarks
|
|
942
|
+
* The base URL always ends with a forward slash, and never contains query parameters.
|
|
943
|
+
* @i2since 1.1
|
|
944
|
+
*/
|
|
945
|
+
readonly baseUrl: string;
|
|
486
946
|
/**
|
|
487
947
|
* Indicates whether the i2 Connect gateway is available on the application server.
|
|
488
948
|
* @i2since 1.0
|
|
@@ -523,13 +983,13 @@ export declare namespace app {
|
|
|
523
983
|
removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
|
|
524
984
|
}
|
|
525
985
|
/**
|
|
526
|
-
* A callback function that performs work on the application or its contents.
|
|
986
|
+
* A callback function that performs read-only work on the application or its contents.
|
|
527
987
|
*
|
|
528
988
|
* @remarks
|
|
529
989
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
530
990
|
* @i2since 1.0
|
|
531
991
|
*/
|
|
532
|
-
export type TransactionHandler = (applicationContents: IApplicationContents) => void
|
|
992
|
+
export type TransactionHandler = (applicationContents: IApplicationContents) => void | Promise<void>;
|
|
533
993
|
/**
|
|
534
994
|
* The contents of the i2 Notebook application.
|
|
535
995
|
* @i2since 1.0
|
|
@@ -784,6 +1244,21 @@ export declare namespace chart {
|
|
|
784
1244
|
* @i2since 1.0
|
|
785
1245
|
*/
|
|
786
1246
|
readonly selection: ISelection;
|
|
1247
|
+
/**
|
|
1248
|
+
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1249
|
+
*
|
|
1250
|
+
* @remarks
|
|
1251
|
+
* Some property values might not be fetched immediately from the server, due to size or other factors.
|
|
1252
|
+
* The property values that this method fetches become "unfetched" on subsequent record updates by the server.
|
|
1253
|
+
* See also the `hasUnfetchedProperties`, `isValueUnfetched()`, and `getUnfetchedPropertyTypes()` members of {@link records.IChartRecordBase}.
|
|
1254
|
+
*
|
|
1255
|
+
* @param records - The records to update with fetched property values.
|
|
1256
|
+
* @param propertyTypes - The types of the properties whose values are to be fetched if necessary.
|
|
1257
|
+
* @param signal - A signal that the application uses to abort the operation.
|
|
1258
|
+
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1259
|
+
* @i2since 1.1
|
|
1260
|
+
*/
|
|
1261
|
+
ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
|
|
787
1262
|
}
|
|
788
1263
|
/**
|
|
789
1264
|
* A change that has occurred to the data in a chart.
|
|
@@ -904,6 +1379,24 @@ export declare namespace chart {
|
|
|
904
1379
|
*/
|
|
905
1380
|
readonly zoomScale: number;
|
|
906
1381
|
}
|
|
1382
|
+
/**
|
|
1383
|
+
* A set of data that defines a viewport.
|
|
1384
|
+
* @i2since 1.1
|
|
1385
|
+
*/
|
|
1386
|
+
export interface IViewportData {
|
|
1387
|
+
/**
|
|
1388
|
+
* Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
|
|
1389
|
+
* See also {@link chart.IChartView.zoomScale}.
|
|
1390
|
+
* @i2since 1.1
|
|
1391
|
+
*/
|
|
1392
|
+
zoomScale?: number;
|
|
1393
|
+
/**
|
|
1394
|
+
* Gets or sets the position of the center of the viewport, in chart coordinates.
|
|
1395
|
+
* See also {@link chart.IChartView.center}.
|
|
1396
|
+
* @i2since 1.1
|
|
1397
|
+
*/
|
|
1398
|
+
center?: visual.IPosition;
|
|
1399
|
+
}
|
|
907
1400
|
/**
|
|
908
1401
|
* A mapping of chart event types to their listener types.
|
|
909
1402
|
* @i2since 1.0
|
|
@@ -970,6 +1463,30 @@ export declare namespace chart {
|
|
|
970
1463
|
* @i2since 1.0
|
|
971
1464
|
*/
|
|
972
1465
|
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1466
|
+
/**
|
|
1467
|
+
* Constraints that control a view-fitting operation.
|
|
1468
|
+
*
|
|
1469
|
+
* @remarks
|
|
1470
|
+
* Fitting the view to a collection of elements ordinarily zooms in or out to make those
|
|
1471
|
+
* elements fill the viewport. However, you might want to limit this behavior to prevent
|
|
1472
|
+
* zooming in beyond a particular level.
|
|
1473
|
+
*
|
|
1474
|
+
* For example, if you fit the view to a single element, you might not want to zoom so that
|
|
1475
|
+
* the element fills the viewport. If you want to focus attention on a single element without
|
|
1476
|
+
* making it too large, you can set `maximumZoom` to `1`.
|
|
1477
|
+
*
|
|
1478
|
+
* Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
|
|
1479
|
+
* you can set `maximumZoom` to `current`.
|
|
1480
|
+
*
|
|
1481
|
+
* @i2since 1.1
|
|
1482
|
+
*/
|
|
1483
|
+
export interface IFitConstraints {
|
|
1484
|
+
/**
|
|
1485
|
+
* Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
|
|
1486
|
+
* @i2since 1.1
|
|
1487
|
+
*/
|
|
1488
|
+
maximumZoom?: number | 'current';
|
|
1489
|
+
}
|
|
973
1490
|
}
|
|
974
1491
|
|
|
975
1492
|
/**
|
|
@@ -985,9 +1502,9 @@ export declare namespace commands {
|
|
|
985
1502
|
*
|
|
986
1503
|
* @remarks
|
|
987
1504
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
988
|
-
* @i2since 1.
|
|
1505
|
+
* @i2since 1.1
|
|
989
1506
|
*/
|
|
990
|
-
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search';
|
|
1507
|
+
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
991
1508
|
/**
|
|
992
1509
|
* A type for a command, which determines the payload it receives when a user invokes it.
|
|
993
1510
|
* @i2since 1.0
|
|
@@ -1236,11 +1753,11 @@ export declare namespace commands {
|
|
|
1236
1753
|
*/
|
|
1237
1754
|
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1238
1755
|
/**
|
|
1239
|
-
* Locates the area of the user interface that appears immediately before
|
|
1756
|
+
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1240
1757
|
*
|
|
1241
|
-
* @param command - The
|
|
1758
|
+
* @param command - The surfaced command to use as a reference.
|
|
1242
1759
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1243
|
-
* @throws `Error` if
|
|
1760
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1244
1761
|
* @i2since 1.1
|
|
1245
1762
|
*/
|
|
1246
1763
|
before(command: ICommand): IActionArea<undefined>;
|
|
@@ -1254,11 +1771,11 @@ export declare namespace commands {
|
|
|
1254
1771
|
*/
|
|
1255
1772
|
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1256
1773
|
/**
|
|
1257
|
-
* Locates the area of the user interface that appears immediately after
|
|
1774
|
+
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1258
1775
|
*
|
|
1259
|
-
* @param command - The
|
|
1776
|
+
* @param command - The surfaced command to use as a reference.
|
|
1260
1777
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1261
|
-
* @throws `Error` if
|
|
1778
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1262
1779
|
* @i2since 1.1
|
|
1263
1780
|
*/
|
|
1264
1781
|
after(command: ICommand): IActionArea<undefined>;
|
|
@@ -1550,7 +2067,7 @@ export declare namespace commands {
|
|
|
1550
2067
|
*/
|
|
1551
2068
|
readonly toggleVisualQuery: CommandId;
|
|
1552
2069
|
/**
|
|
1553
|
-
* Gets the identifier of the system command that toggles the Expand UI.
|
|
2070
|
+
* Gets the identifier of the system command that toggles the Expand-with-conditions UI.
|
|
1554
2071
|
* @i2since 1.0
|
|
1555
2072
|
*/
|
|
1556
2073
|
readonly toggleExpand: CommandId;
|
|
@@ -1599,12 +2116,37 @@ export declare namespace commands {
|
|
|
1599
2116
|
* @i2since 1.0
|
|
1600
2117
|
*/
|
|
1601
2118
|
readonly deleteSelected: CommandId;
|
|
2119
|
+
/**
|
|
2120
|
+
* Gets the identifier of the system command that saves the current chart.
|
|
2121
|
+
* @i2since 1.1
|
|
2122
|
+
*/
|
|
2123
|
+
readonly saveChart: CommandId;
|
|
2124
|
+
/**
|
|
2125
|
+
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2126
|
+
* @i2since 1.1
|
|
2127
|
+
*/
|
|
2128
|
+
readonly expand: CommandId;
|
|
2129
|
+
/**
|
|
2130
|
+
* Gets the identifier of the system command that toggles the map UI.
|
|
2131
|
+
* @i2since 1.1
|
|
2132
|
+
*/
|
|
2133
|
+
readonly toggleMap: CommandId;
|
|
2134
|
+
/**
|
|
2135
|
+
* Gets the identifier of the system command that adds geospatial markers to the map from the current selection.
|
|
2136
|
+
* @i2since 1.1
|
|
2137
|
+
*/
|
|
2138
|
+
readonly addToMap: CommandId;
|
|
1602
2139
|
}
|
|
1603
2140
|
/**
|
|
1604
2141
|
* A lookup table for the group identifiers of the default system action groups.
|
|
1605
2142
|
* @i2since 1.0
|
|
1606
2143
|
*/
|
|
1607
2144
|
export interface IHomeTabSystemGroups {
|
|
2145
|
+
/**
|
|
2146
|
+
* Gets the identifier of the system action group named "Manage".
|
|
2147
|
+
* @i2since 1.1
|
|
2148
|
+
*/
|
|
2149
|
+
readonly chartManagement: GroupId;
|
|
1608
2150
|
/**
|
|
1609
2151
|
* Gets the identifier of the system action group named "History".
|
|
1610
2152
|
* @i2since 1.0
|
|
@@ -1868,6 +2410,22 @@ export declare namespace data {
|
|
|
1868
2410
|
*/
|
|
1869
2411
|
readonly longitude: number;
|
|
1870
2412
|
}
|
|
2413
|
+
/**
|
|
2414
|
+
* A set of data for creating a geospatial position.
|
|
2415
|
+
* @i2since 1.1
|
|
2416
|
+
*/
|
|
2417
|
+
export interface IGeoPointData {
|
|
2418
|
+
/**
|
|
2419
|
+
* Gets the latitude of the new position, in degrees north.
|
|
2420
|
+
* @i2since 1.1
|
|
2421
|
+
*/
|
|
2422
|
+
readonly latitude: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Gets the longitude of the new position, in degrees east.
|
|
2425
|
+
* @i2since 1.1
|
|
2426
|
+
*/
|
|
2427
|
+
readonly longitude: number;
|
|
2428
|
+
}
|
|
1871
2429
|
/**
|
|
1872
2430
|
* A logical type for the value of a record property.
|
|
1873
2431
|
*
|
|
@@ -2430,7 +2988,7 @@ export declare interface NotebookStatic {
|
|
|
2430
2988
|
* @public
|
|
2431
2989
|
* @i2since 1.0
|
|
2432
2990
|
*/
|
|
2433
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0'): Promise<IEntryPointApi>;
|
|
2991
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1'): Promise<IEntryPointApi>;
|
|
2434
2992
|
}
|
|
2435
2993
|
|
|
2436
2994
|
/**
|
|
@@ -2510,7 +3068,7 @@ export declare namespace records {
|
|
|
2510
3068
|
* @returns The property value or, if not present, `undefined`.
|
|
2511
3069
|
* @i2since 1.0
|
|
2512
3070
|
*/
|
|
2513
|
-
getProperty(propertyType: schema.
|
|
3071
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
2514
3072
|
/**
|
|
2515
3073
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
2516
3074
|
*
|
|
@@ -2595,6 +3153,11 @@ export declare namespace records {
|
|
|
2595
3153
|
* @i2since 1.0
|
|
2596
3154
|
*/
|
|
2597
3155
|
readonly itemType: schema.IChartEntityType;
|
|
3156
|
+
/**
|
|
3157
|
+
* Gets all the link records that are connected to the entity record.
|
|
3158
|
+
* @i2since 1.1
|
|
3159
|
+
*/
|
|
3160
|
+
readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
|
|
2598
3161
|
}
|
|
2599
3162
|
/**
|
|
2600
3163
|
* A link record.
|
|
@@ -2631,10 +3194,14 @@ export declare namespace records {
|
|
|
2631
3194
|
*/
|
|
2632
3195
|
export type NoteId = string;
|
|
2633
3196
|
/**
|
|
2634
|
-
*
|
|
3197
|
+
* A set of data for creating a note.
|
|
2635
3198
|
* @i2since 1.1
|
|
2636
3199
|
*/
|
|
2637
3200
|
export interface INoteData {
|
|
3201
|
+
/**
|
|
3202
|
+
* Gets the contents of the new note.
|
|
3203
|
+
* @i2since 1.1
|
|
3204
|
+
*/
|
|
2638
3205
|
readonly contents: string;
|
|
2639
3206
|
}
|
|
2640
3207
|
/**
|
|
@@ -2731,29 +3298,33 @@ export declare namespace records {
|
|
|
2731
3298
|
*/
|
|
2732
3299
|
readonly imageUrl?: string;
|
|
2733
3300
|
}
|
|
3301
|
+
/**
|
|
3302
|
+
* A set of data for creating a source reference.
|
|
3303
|
+
* @i2since 1.1
|
|
3304
|
+
*/
|
|
2734
3305
|
export interface ISourceReferenceData {
|
|
2735
3306
|
/**
|
|
2736
|
-
* Gets the name of the source that the source reference describes.
|
|
3307
|
+
* Gets the name of the source that the new source reference describes.
|
|
2737
3308
|
* @i2since 1.1
|
|
2738
3309
|
*/
|
|
2739
3310
|
readonly name: string;
|
|
2740
3311
|
/**
|
|
2741
|
-
* Gets the type of the source that the source reference describes.
|
|
3312
|
+
* Gets the type of the source that the new source reference describes.
|
|
2742
3313
|
* @i2since 1.1
|
|
2743
3314
|
*/
|
|
2744
3315
|
readonly type?: string;
|
|
2745
3316
|
/**
|
|
2746
|
-
* Gets the location of the source that the source reference describes.
|
|
3317
|
+
* Gets the location of the source that the new source reference describes.
|
|
2747
3318
|
* @i2since 1.1
|
|
2748
3319
|
*/
|
|
2749
3320
|
readonly location?: string;
|
|
2750
3321
|
/**
|
|
2751
|
-
* Gets the description of the source that the source reference describes.
|
|
3322
|
+
* Gets the description of the source that the new source reference describes.
|
|
2752
3323
|
* @i2since 1.1
|
|
2753
3324
|
*/
|
|
2754
3325
|
readonly description?: string;
|
|
2755
3326
|
/**
|
|
2756
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
3327
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
2757
3328
|
* @i2since 1.1
|
|
2758
3329
|
*/
|
|
2759
3330
|
readonly imageUrl?: string;
|
|
@@ -2774,6 +3345,22 @@ export declare namespace records {
|
|
|
2774
3345
|
*/
|
|
2775
3346
|
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
2776
3347
|
}
|
|
3348
|
+
/**
|
|
3349
|
+
* A set of data for creating a security setting.
|
|
3350
|
+
* @i2since 1.1
|
|
3351
|
+
*/
|
|
3352
|
+
export interface ISecuritySettingData {
|
|
3353
|
+
/**
|
|
3354
|
+
* Gets or sets the security dimension for the new security setting.
|
|
3355
|
+
* @i2since 1.1
|
|
3356
|
+
*/
|
|
3357
|
+
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
3358
|
+
/**
|
|
3359
|
+
* Gets or sets the dimension values for the new security setting.
|
|
3360
|
+
* @i2since 1.1
|
|
3361
|
+
*/
|
|
3362
|
+
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
3363
|
+
}
|
|
2777
3364
|
/**
|
|
2778
3365
|
* A source identifier for a record.
|
|
2779
3366
|
*
|
|
@@ -2783,7 +3370,7 @@ export declare namespace records {
|
|
|
2783
3370
|
*/
|
|
2784
3371
|
export interface ISourceIdentifier {
|
|
2785
3372
|
/**
|
|
2786
|
-
* Gets the type of
|
|
3373
|
+
* Gets the type of the source identifier.
|
|
2787
3374
|
* @i2since 1.0
|
|
2788
3375
|
*/
|
|
2789
3376
|
readonly type: string;
|
|
@@ -2793,15 +3380,19 @@ export declare namespace records {
|
|
|
2793
3380
|
*/
|
|
2794
3381
|
readonly key: string[];
|
|
2795
3382
|
}
|
|
3383
|
+
/**
|
|
3384
|
+
* A set of data for creating a source identifier.
|
|
3385
|
+
* @i2since 1.1
|
|
3386
|
+
*/
|
|
2796
3387
|
export interface ISourceIdentifierData {
|
|
2797
3388
|
/**
|
|
2798
|
-
* Gets the type of
|
|
2799
|
-
* @i2since 1.
|
|
3389
|
+
* Gets the type of the new source identifier.
|
|
3390
|
+
* @i2since 1.1
|
|
2800
3391
|
*/
|
|
2801
3392
|
readonly type: string;
|
|
2802
3393
|
/**
|
|
2803
|
-
* Gets the values that make up the source identifier key.
|
|
2804
|
-
* @i2since 1.
|
|
3394
|
+
* Gets the values that make up the new source identifier key.
|
|
3395
|
+
* @i2since 1.1
|
|
2805
3396
|
*/
|
|
2806
3397
|
readonly key: string[];
|
|
2807
3398
|
}
|
|
@@ -2870,6 +3461,21 @@ export declare namespace schema {
|
|
|
2870
3461
|
* @i2since 1.0
|
|
2871
3462
|
*/
|
|
2872
3463
|
readonly maximumSourceIdentifiers: number;
|
|
3464
|
+
/**
|
|
3465
|
+
* Gets the maximum number of characters for a source identifier key.
|
|
3466
|
+
* @i2since 1.1
|
|
3467
|
+
*/
|
|
3468
|
+
readonly maxKeyStringLength: data.ICharLimit;
|
|
3469
|
+
/**
|
|
3470
|
+
* Gets the maximum number of characters for a source identifier type.
|
|
3471
|
+
* @i2since 1.1
|
|
3472
|
+
*/
|
|
3473
|
+
readonly maxTypeStringLength: data.ICharLimit;
|
|
3474
|
+
/**
|
|
3475
|
+
* Gets the source identifier types that are reserved for system use.
|
|
3476
|
+
* @i2since 1.1
|
|
3477
|
+
*/
|
|
3478
|
+
readonly reservedTypes: data.IReadOnlyCollection<string>;
|
|
2873
3479
|
}
|
|
2874
3480
|
/**
|
|
2875
3481
|
* A security schema, which defines the available security dimensions and their dimension values.
|
|
@@ -2882,7 +3488,7 @@ export declare namespace schema {
|
|
|
2882
3488
|
*/
|
|
2883
3489
|
readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
|
|
2884
3490
|
/**
|
|
2885
|
-
* Gets the
|
|
3491
|
+
* Gets the security dimension values to apply to new records by default.
|
|
2886
3492
|
* @i2since 1.1
|
|
2887
3493
|
*/
|
|
2888
3494
|
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
|
|
@@ -3046,6 +3652,11 @@ export declare namespace schema {
|
|
|
3046
3652
|
* @i2since 1.0
|
|
3047
3653
|
*/
|
|
3048
3654
|
readonly isOrphaned: boolean;
|
|
3655
|
+
/**
|
|
3656
|
+
* Indicates whether the item type is defined in the Information Store schema.
|
|
3657
|
+
* @i2since 1.1
|
|
3658
|
+
*/
|
|
3659
|
+
readonly isInfoStore: boolean;
|
|
3049
3660
|
/**
|
|
3050
3661
|
* Gets the label definition for the item type, which describes how record labels are formed.
|
|
3051
3662
|
* @i2since 1.0
|
|
@@ -3067,6 +3678,11 @@ export declare namespace schema {
|
|
|
3067
3678
|
* @i2since 1.0
|
|
3068
3679
|
*/
|
|
3069
3680
|
export type AnalyzePropertyTypeId = string;
|
|
3681
|
+
/**
|
|
3682
|
+
* A common specifier for a property type.
|
|
3683
|
+
* @i2since 1.1
|
|
3684
|
+
*/
|
|
3685
|
+
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
3070
3686
|
/**
|
|
3071
3687
|
* A property type.
|
|
3072
3688
|
* @i2since 1.0
|
|
@@ -3338,6 +3954,7 @@ export declare namespace toolview {
|
|
|
3338
3954
|
* @remarks
|
|
3339
3955
|
* Serializable values are constrained to the logical types that are listed in the definition.
|
|
3340
3956
|
* @i2since 1.0
|
|
3957
|
+
* @deprecated `toolview.SerializableValue` is no longer used. Replace any existing use with `unknown`.
|
|
3341
3958
|
*/
|
|
3342
3959
|
export type SerializableValue = string | number | boolean | null | BigInt | Date | SerializableValue[] | {
|
|
3343
3960
|
[key: string]: SerializableValue;
|
|
@@ -3374,7 +3991,7 @@ export declare namespace toolview {
|
|
|
3374
3991
|
* @returns The stored value, or `undefined` if the key does not exist in the store.
|
|
3375
3992
|
* @i2since 1.0
|
|
3376
3993
|
*/
|
|
3377
|
-
get<TValue
|
|
3994
|
+
get<TValue = unknown>(key: string): TValue | undefined;
|
|
3378
3995
|
/**
|
|
3379
3996
|
* Creates or updates a key in the volatile store.
|
|
3380
3997
|
*
|
|
@@ -3382,7 +3999,7 @@ export declare namespace toolview {
|
|
|
3382
3999
|
* @param value - The new value for the key.
|
|
3383
4000
|
* @i2since 1.0
|
|
3384
4001
|
*/
|
|
3385
|
-
set(key: string, value:
|
|
4002
|
+
set(key: string, value: unknown): void;
|
|
3386
4003
|
/**
|
|
3387
4004
|
* Deletes a key from the volatile store.
|
|
3388
4005
|
*
|
|
@@ -3624,9 +4241,15 @@ export declare namespace visual {
|
|
|
3624
4241
|
* @i2since 1.0
|
|
3625
4242
|
*/
|
|
3626
4243
|
readonly style: INodeStyle;
|
|
4244
|
+
/**
|
|
4245
|
+
* Gets all the edges that are connected to the node.
|
|
4246
|
+
* @i2since 1.1
|
|
4247
|
+
*/
|
|
4248
|
+
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3627
4249
|
/**
|
|
3628
4250
|
* Gets all the edges that are connected to the node.
|
|
3629
4251
|
* @i2since 1.0
|
|
4252
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
3630
4253
|
*/
|
|
3631
4254
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3632
4255
|
}
|