@i2analyze/notebook-sdk 1.1.0-dev.9 → 1.1.2
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 +5 -0
- package/lib/gen/notebook-sdk-public.d.ts +836 -232
- package/lib/index.js +3 -6
- package/package.json +10 -5
- package/CHANGELOG.md +0 -81
|
@@ -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,352 @@ 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
|
+
*
|
|
229
|
+
* @remarks
|
|
230
|
+
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
231
|
+
*
|
|
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
|
+
*
|
|
109
273
|
* @remarks
|
|
110
|
-
*
|
|
111
|
-
* use depending on your scenario:
|
|
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:
|
|
112
276
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* operation.
|
|
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.
|
|
116
279
|
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* 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.
|
|
122
284
|
*
|
|
123
|
-
*
|
|
124
|
-
* property
|
|
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
|
-
export type TODO = unknown;
|
|
137
307
|
/**
|
|
138
|
-
*
|
|
308
|
+
* A set of methods for changing a status display while an asynchronous mutation is running.
|
|
139
309
|
* @i2since 1.1
|
|
140
310
|
*/
|
|
141
|
-
export interface
|
|
311
|
+
export interface IStatus {
|
|
142
312
|
/**
|
|
143
|
-
* Sets the status
|
|
313
|
+
* Sets the status message in the blocking spinner display.
|
|
144
314
|
*
|
|
145
315
|
* @remarks
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* It will be prefixed by the name of your plug-in.
|
|
316
|
+
* Use this method to update users about the progress of a particularly long-running operation.
|
|
317
|
+
* In the user interface, the text you provide is prefixed by the name of your plug-in.
|
|
149
318
|
*
|
|
150
319
|
* @param text - The text to display.
|
|
151
|
-
*
|
|
152
320
|
* @i2since 1.1
|
|
153
321
|
*/
|
|
154
|
-
|
|
322
|
+
setMessage(text: string): void;
|
|
155
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* A common specifier for a record, for use in mutation APIs.
|
|
326
|
+
* @i2since 1.1
|
|
327
|
+
*/
|
|
156
328
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
157
|
-
|
|
329
|
+
/**
|
|
330
|
+
* A common specifier for an element, for use in mutation APIs.
|
|
331
|
+
* @i2since 1.1
|
|
332
|
+
*/
|
|
333
|
+
export type ElementSpecifier = visual.ElementId | visual.IElement;
|
|
334
|
+
/**
|
|
335
|
+
* A common specifier for a note, for use in mutation APIs.
|
|
336
|
+
* @i2since 1.1
|
|
337
|
+
*/
|
|
338
|
+
export type NoteSpecifier = records.NoteId | records.INote;
|
|
339
|
+
/**
|
|
340
|
+
* A common specifier for a source reference, for use in mutation APIs.
|
|
341
|
+
* @i2since 1.1
|
|
342
|
+
*/
|
|
343
|
+
export type SourceReferenceSpecifier = records.SourceReferenceId | records.ISourceReference;
|
|
344
|
+
/**
|
|
345
|
+
* The identifier of a record group.
|
|
346
|
+
* @i2since 1.1
|
|
347
|
+
*/
|
|
348
|
+
export type AnalyzeRecordGroupId = string;
|
|
349
|
+
/**
|
|
350
|
+
* The effect on chart selection of adding a record group to the chart.
|
|
351
|
+
*
|
|
352
|
+
* @remarks
|
|
353
|
+
*
|
|
354
|
+
* `addRecordsToSelection` adds the records from the group to the current selection;
|
|
355
|
+
* `setSelectionToRecords` sets the selection to the records from the group;
|
|
356
|
+
* `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
|
|
357
|
+
* @i2since 1.1
|
|
358
|
+
*/
|
|
359
|
+
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
360
|
+
/**
|
|
361
|
+
* A common specifier for the properties of new records, for use in mutation APIs.
|
|
362
|
+
* @i2since 1.1
|
|
363
|
+
*/
|
|
364
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
365
|
+
/**
|
|
366
|
+
* A common specifier for record properties that are to be edited, for use in mutation APIs.
|
|
367
|
+
* @i2since 1.1
|
|
368
|
+
*/
|
|
369
|
+
export type EditRecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
|
|
370
|
+
/**
|
|
371
|
+
* A set of data that is common to creating records of all types.
|
|
372
|
+
* @i2since 1.1
|
|
373
|
+
*/
|
|
374
|
+
export interface IChartRecordBaseData {
|
|
375
|
+
/**
|
|
376
|
+
* Gets or sets the item type of the new record.
|
|
377
|
+
* @i2since 1.1
|
|
378
|
+
*/
|
|
158
379
|
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
380
|
+
/**
|
|
381
|
+
* Gets or sets the properties of the new record.
|
|
382
|
+
* @i2since 1.1
|
|
383
|
+
*/
|
|
384
|
+
properties?: RecordPropertiesSpecifier;
|
|
385
|
+
/**
|
|
386
|
+
* Gets or sets the security settings of the new record.
|
|
387
|
+
* @i2since 1.1
|
|
388
|
+
*/
|
|
389
|
+
security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
|
|
390
|
+
/**
|
|
391
|
+
* Gets or sets the notes for the new record.
|
|
392
|
+
* @i2since 1.1
|
|
393
|
+
*/
|
|
394
|
+
notes?: readonly records.INoteData[];
|
|
395
|
+
/**
|
|
396
|
+
* Gets or sets the source references of the new record.
|
|
397
|
+
* @i2since 1.1
|
|
398
|
+
*/
|
|
162
399
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
400
|
+
/**
|
|
401
|
+
* Gets or sets the source identifiers of the new record.
|
|
402
|
+
* @i2since 1.1
|
|
403
|
+
*/
|
|
163
404
|
sourceIdentifiers?: readonly records.ISourceIdentifier[];
|
|
164
405
|
}
|
|
165
|
-
|
|
406
|
+
/**
|
|
407
|
+
* A set of data for creating an entity record.
|
|
408
|
+
* @i2since 1.1
|
|
409
|
+
*/
|
|
410
|
+
export interface IChartEntityRecordData extends IChartRecordBaseData {
|
|
166
411
|
}
|
|
167
|
-
|
|
412
|
+
/**
|
|
413
|
+
* A set of data for creating a link record.
|
|
414
|
+
* @i2since 1.1
|
|
415
|
+
*/
|
|
416
|
+
export interface IChartLinkRecordData extends IChartRecordBaseData {
|
|
168
417
|
/**
|
|
169
418
|
* Gets the record at the 'from' end of the link.
|
|
170
419
|
* @i2since 1.1
|
|
@@ -184,302 +433,496 @@ export declare namespace app {
|
|
|
184
433
|
*/
|
|
185
434
|
readonly linkDirection: data.LinkDirection;
|
|
186
435
|
}
|
|
187
|
-
export interface INoteData {
|
|
188
|
-
content: string;
|
|
189
|
-
}
|
|
190
436
|
/**
|
|
191
|
-
*
|
|
437
|
+
* A set of methods for performing tracked or untracked mutations, organized by what they affect.
|
|
192
438
|
* @i2since 1.1
|
|
193
439
|
*/
|
|
194
440
|
export interface IMutationsBase {
|
|
195
441
|
/**
|
|
196
|
-
* Gets an object that provides
|
|
442
|
+
* Gets an object that provides methods for communicating progress information to users.
|
|
197
443
|
* @i2since 1.1
|
|
198
444
|
*/
|
|
199
|
-
readonly status:
|
|
445
|
+
readonly status: IStatus;
|
|
200
446
|
/**
|
|
201
|
-
* Gets an object that provides
|
|
447
|
+
* Gets an object that provides methods for modifying chart selection.
|
|
202
448
|
* @i2since 1.1
|
|
203
449
|
*/
|
|
204
|
-
readonly selection:
|
|
205
|
-
|
|
450
|
+
readonly selection: ISelectionEditor;
|
|
451
|
+
/**
|
|
452
|
+
* Gets an object that provides methods for modifying the chart view.
|
|
453
|
+
* @i2since 1.1
|
|
454
|
+
*/
|
|
455
|
+
readonly view: IViewEditor;
|
|
206
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
* A set of methods for performing untracked mutations, which do not require an entry in the undo stack.
|
|
459
|
+
* @i2since 1.1
|
|
460
|
+
*/
|
|
207
461
|
export interface IUntrackedMutations extends IMutationsBase {
|
|
208
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* A set of methods for modifying the contents of a record.
|
|
465
|
+
* @i2since 1.1
|
|
466
|
+
*/
|
|
209
467
|
export interface IRecordEditor {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
468
|
+
/**
|
|
469
|
+
* Sets or clears the values of properties on the record.
|
|
470
|
+
*
|
|
471
|
+
* @param properties - The types and values of the properties to set (or `null` to clear them).
|
|
472
|
+
* @returns This record, with the edited properties in place.
|
|
473
|
+
* @i2since 1.1
|
|
474
|
+
*/
|
|
475
|
+
setProperties(properties: EditRecordPropertiesSpecifier): this;
|
|
476
|
+
/**
|
|
477
|
+
* Adds a new note to the record.
|
|
478
|
+
*
|
|
479
|
+
* @param noteData - The data for the new note.
|
|
480
|
+
* @returns This record, with the new note in place.
|
|
481
|
+
* @i2since 1.1
|
|
482
|
+
*/
|
|
483
|
+
addNote(noteData: records.INoteData): this;
|
|
484
|
+
/**
|
|
485
|
+
* Replaces an existing note on the record with a new one.
|
|
486
|
+
*
|
|
487
|
+
* @param note - The note to replace.
|
|
488
|
+
* @param noteData - The data for the new note.
|
|
489
|
+
* @returns This record, with the new note in place.
|
|
490
|
+
* @i2since 1.1
|
|
491
|
+
*/
|
|
492
|
+
replaceNote(note: NoteSpecifier, noteData: records.INoteData): this;
|
|
493
|
+
/**
|
|
494
|
+
* Removes a note from the record.
|
|
495
|
+
*
|
|
496
|
+
* @param note - The note to remove.
|
|
497
|
+
* @returns This record, without the note.
|
|
498
|
+
* @i2since 1.1
|
|
499
|
+
*/
|
|
500
|
+
removeNote(note: NoteSpecifier): this;
|
|
501
|
+
/**
|
|
502
|
+
* Adds a new source reference to the record.
|
|
503
|
+
*
|
|
504
|
+
* @param refData - The data for the new source reference.
|
|
505
|
+
* @returns This record, with the new source reference in place.
|
|
506
|
+
* @i2since 1.1
|
|
507
|
+
*/
|
|
508
|
+
addSourceReference(refData: records.ISourceReferenceData): this;
|
|
509
|
+
/**
|
|
510
|
+
* Replaces an existing source reference on the record with a new one.
|
|
511
|
+
*
|
|
512
|
+
* @param ref - The source reference to replace.
|
|
513
|
+
* @param refData - The data for the new source reference.
|
|
514
|
+
* @returns This record, with the new source reference in place.
|
|
515
|
+
* @i2since 1.1
|
|
516
|
+
*/
|
|
517
|
+
replaceSourceReference(ref: SourceReferenceSpecifier, refData: records.ISourceReferenceData): this;
|
|
518
|
+
/**
|
|
519
|
+
* Removes a source reference from the record.
|
|
520
|
+
*
|
|
521
|
+
* @param ref - The source reference to remove.
|
|
522
|
+
* @returns This record, without the source reference.
|
|
523
|
+
* @i2since 1.1
|
|
524
|
+
*/
|
|
525
|
+
removeSourceReference(ref: SourceReferenceSpecifier): this;
|
|
526
|
+
/**
|
|
527
|
+
* Adds a new source identifier to the record.
|
|
528
|
+
*
|
|
529
|
+
* @param identifierData - The data for the new source identifier.
|
|
530
|
+
* @returns This record, with the new source identifier in place.
|
|
531
|
+
* @i2since 1.1
|
|
532
|
+
*/
|
|
533
|
+
addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
|
|
534
|
+
/**
|
|
535
|
+
* Replaces the record's security settings with a new set.
|
|
536
|
+
*
|
|
537
|
+
* @param security - The new security settings.
|
|
538
|
+
* @returns This record, with the new security settings in place.
|
|
539
|
+
* @i2since 1.1
|
|
540
|
+
*/
|
|
217
541
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
542
|
+
/**
|
|
543
|
+
* Sets the direction of a link 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;
|
|
218
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
|
+
*/
|
|
219
558
|
export interface IPendingRecord extends IRecordEditor {
|
|
559
|
+
/**
|
|
560
|
+
* Gets or sets the identifier of the record.
|
|
561
|
+
* @i2since 1.1
|
|
562
|
+
*/
|
|
220
563
|
recordId: records.AnalyzeRecordId;
|
|
221
564
|
}
|
|
222
|
-
|
|
223
|
-
|
|
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 {
|
|
224
570
|
/**
|
|
225
|
-
* 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.
|
|
226
579
|
* @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
580
|
*/
|
|
231
|
-
createSecuritySetting(data: ISecuritySettingData): records.ISecuritySetting;
|
|
581
|
+
createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
|
|
232
582
|
/**
|
|
233
|
-
* Creates a
|
|
583
|
+
* Creates a decimal value from a number or a string.
|
|
234
584
|
*
|
|
235
|
-
* @param value - The number or
|
|
236
|
-
* @returns
|
|
237
|
-
* @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.
|
|
238
588
|
* @i2since 1.1
|
|
239
589
|
*/
|
|
240
590
|
createDecimal(value: number | string): data.IDecimal;
|
|
241
591
|
/**
|
|
242
|
-
* Creates a local date object (
|
|
243
|
-
*
|
|
244
|
-
* @param
|
|
245
|
-
* @param
|
|
246
|
-
* @
|
|
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.
|
|
247
598
|
* @i2since 1.1
|
|
248
599
|
*/
|
|
249
600
|
createLocalDate(year: number, month: number, day: number): data.ILocalDate;
|
|
250
601
|
/**
|
|
251
|
-
* Creates a local date object (
|
|
252
|
-
*
|
|
253
|
-
* @
|
|
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.
|
|
254
606
|
* @i2since 1.1
|
|
255
607
|
*/
|
|
256
608
|
createLocalDate(jsDate: Date): data.ILocalDate;
|
|
257
609
|
/**
|
|
258
|
-
* Creates a local date object (
|
|
259
|
-
*
|
|
260
|
-
* @
|
|
261
|
-
* @
|
|
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.
|
|
262
615
|
* @i2since 1.1
|
|
263
616
|
*/
|
|
264
617
|
createLocalDate(iso8601: string): data.ILocalDate;
|
|
265
618
|
/**
|
|
266
|
-
* Creates a local time object (
|
|
267
|
-
*
|
|
268
|
-
* @param
|
|
269
|
-
* @param
|
|
270
|
-
* @param
|
|
271
|
-
* @
|
|
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.
|
|
272
626
|
* @i2since 1.1
|
|
273
627
|
*/
|
|
274
628
|
createLocalTime(hour: number, minute: number, second: number, milli?: number): data.ILocalTime;
|
|
275
629
|
/**
|
|
276
|
-
* Creates a local time object (
|
|
277
|
-
*
|
|
278
|
-
* @
|
|
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.
|
|
279
634
|
* @i2since 1.1
|
|
280
635
|
*/
|
|
281
636
|
createLocalTime(jsDate: Date): data.ILocalTime;
|
|
282
637
|
/**
|
|
283
|
-
* Creates a local time object (
|
|
284
|
-
*
|
|
285
|
-
* @
|
|
286
|
-
* @
|
|
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.
|
|
287
643
|
* @i2since 1.1
|
|
288
644
|
*/
|
|
289
645
|
createLocalTime(iso8601: string): data.ILocalTime;
|
|
290
646
|
/**
|
|
291
|
-
* Creates a local date-time object (
|
|
292
|
-
*
|
|
293
|
-
* @param
|
|
294
|
-
* @param
|
|
295
|
-
* @param
|
|
296
|
-
* @param
|
|
297
|
-
* @param
|
|
298
|
-
* @param
|
|
299
|
-
* @
|
|
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.
|
|
300
657
|
* @i2since 1.1
|
|
301
658
|
*/
|
|
302
659
|
createLocalDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milli?: number): data.ILocalDateTime;
|
|
303
660
|
/**
|
|
304
|
-
* Creates a local date-time object (
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
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.
|
|
307
665
|
* @i2since 1.1
|
|
308
666
|
*/
|
|
309
667
|
createLocalDateTime(jsDate: Date): data.ILocalDateTime;
|
|
310
668
|
/**
|
|
311
|
-
* 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
|
+
*
|
|
312
671
|
* @param date - A local date.
|
|
313
672
|
* @param time - A local time.
|
|
314
|
-
* @returns
|
|
673
|
+
* @returns The new local date-time object.
|
|
315
674
|
* @i2since 1.1
|
|
316
675
|
*/
|
|
317
676
|
createLocalDateTime(date: data.ILocalDate, time: data.ILocalTime): data.ILocalDateTime;
|
|
318
677
|
/**
|
|
319
|
-
* Creates a local date-time object (
|
|
320
|
-
*
|
|
321
|
-
* @
|
|
322
|
-
* @
|
|
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.
|
|
323
683
|
* @i2since 1.1
|
|
324
684
|
*/
|
|
325
685
|
createLocalDateTime(iso8601: string): data.ILocalDateTime;
|
|
326
686
|
/**
|
|
327
|
-
* 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
|
+
*
|
|
328
689
|
* @param date - A local date.
|
|
329
690
|
* @param time - A local time.
|
|
330
|
-
* @param timeZone - A time zone or time zone
|
|
331
|
-
* @param isDst -
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
* @
|
|
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.
|
|
336
698
|
* @i2since 1.1
|
|
337
699
|
*/
|
|
338
700
|
createZonedDateTime(date: data.ILocalDate, time: data.ILocalTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
339
701
|
/**
|
|
340
|
-
* Creates a
|
|
341
|
-
*
|
|
342
|
-
* @param
|
|
343
|
-
* @param
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
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.
|
|
348
712
|
* @i2since 1.1
|
|
349
713
|
*/
|
|
350
714
|
createZonedDateTime(dateTime: Date | data.ILocalDateTime, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
351
715
|
/**
|
|
352
|
-
* Creates a
|
|
353
|
-
*
|
|
354
|
-
* @param
|
|
355
|
-
* @param
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
* @
|
|
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.
|
|
361
726
|
* @i2since 1.1
|
|
362
727
|
*/
|
|
363
|
-
createZonedDateTime(
|
|
728
|
+
createZonedDateTime(iso8601: string, timeZone: data.ITimeZone | data.TimeZoneId, isDst: boolean): data.IZonedDateTime;
|
|
364
729
|
/**
|
|
365
|
-
* 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.
|
|
366
736
|
* @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
737
|
*/
|
|
372
738
|
createGeoPoint(latitude: number, longitude: number): data.IGeoPoint;
|
|
373
739
|
/**
|
|
374
|
-
* 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.
|
|
375
745
|
* @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
746
|
*/
|
|
380
|
-
createGeoPoint(data: IGeoPointData): data.IGeoPoint;
|
|
747
|
+
createGeoPoint(data: data.IGeoPointData): data.IGeoPoint;
|
|
381
748
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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
|
+
* @returns The new, pending record.
|
|
764
|
+
* @i2since 1.1
|
|
765
|
+
*/
|
|
766
|
+
addEntityRecord(recordTemplate: IChartEntityRecordData): IPendingRecord;
|
|
767
|
+
/**
|
|
768
|
+
* Creates a link record that is added to the chart on committal.
|
|
769
|
+
*
|
|
770
|
+
* @param recordTemplate - The data from which to create the record.
|
|
771
|
+
* @returns The new, pending record.
|
|
772
|
+
* @i2since 1.1
|
|
773
|
+
*/
|
|
774
|
+
addLinkRecord(recordTemplate: IChartLinkRecordData): IPendingRecord;
|
|
775
|
+
/**
|
|
776
|
+
* Adds the records from a record group to the chart.
|
|
777
|
+
*
|
|
778
|
+
* @param recordGroupId - The identifier of the record group to add.
|
|
779
|
+
* @param selectionOption - The effect on chart selection of adding the record group.
|
|
780
|
+
* @i2since 1.1
|
|
781
|
+
*/
|
|
782
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
|
|
783
|
+
/**
|
|
784
|
+
* Gets an object with methods for editing a record.
|
|
785
|
+
*
|
|
786
|
+
* @param record - The record to be edited.
|
|
787
|
+
* @returns The record-editing object.
|
|
788
|
+
* @i2since 1.1
|
|
789
|
+
*/
|
|
385
790
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
791
|
+
/**
|
|
792
|
+
* Moves a node to a particular location on the chart.
|
|
793
|
+
*
|
|
794
|
+
* @param node - The node to be moved.
|
|
795
|
+
* @param position - The location to move the node to.
|
|
796
|
+
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
797
|
+
* @i2since 1.1
|
|
798
|
+
*/
|
|
799
|
+
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
800
|
+
/**
|
|
801
|
+
* Moves all the nodes that contain selected records by the same displacement.
|
|
802
|
+
*
|
|
803
|
+
* @param centerDelta - The displacement on the x and y axes, in chart coordinates.
|
|
804
|
+
* @i2since 1.1
|
|
805
|
+
*/
|
|
806
|
+
moveSelectedNodesRelative(centerDelta: {
|
|
389
807
|
xDelta: number;
|
|
390
808
|
yDelta: number;
|
|
391
809
|
}): void;
|
|
392
|
-
}
|
|
393
|
-
export interface IGeoPointData {
|
|
394
810
|
/**
|
|
395
|
-
*
|
|
811
|
+
* Removes records from the chart.
|
|
812
|
+
*
|
|
813
|
+
* @param records - The record or records to be removed.
|
|
814
|
+
* @returns `true` if one or more records were successfully removed from the chart; `false` if none of the records existed.
|
|
396
815
|
* @i2since 1.1
|
|
397
816
|
*/
|
|
398
|
-
|
|
817
|
+
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
|
|
399
818
|
/**
|
|
400
|
-
*
|
|
819
|
+
* Removes elements from the chart.
|
|
820
|
+
*
|
|
821
|
+
* @param elements - The element or elements to be removed.
|
|
822
|
+
* @returns `true` if one or more elements were successfully removed from the chart; `false` if none of the elements existed.
|
|
401
823
|
* @i2since 1.1
|
|
402
824
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
825
|
+
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Removes the currently selected records from the chart.
|
|
828
|
+
* @i2since 1.1
|
|
829
|
+
*/
|
|
830
|
+
removeSelectedRecords(): void;
|
|
408
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* A collection of elements and records that together represent a selection on the chart surface.
|
|
834
|
+
* @i2since 1.1
|
|
835
|
+
*/
|
|
409
836
|
export interface IElementsAndRecords {
|
|
837
|
+
/**
|
|
838
|
+
* Gets or sets the records in the set.
|
|
839
|
+
* @i2since 1.1
|
|
840
|
+
*/
|
|
410
841
|
records?: Iterable<RecordSpecifier>;
|
|
842
|
+
/**
|
|
843
|
+
* Gets or sets the elements in the set.
|
|
844
|
+
* @i2since 1.1
|
|
845
|
+
*/
|
|
411
846
|
elements?: Iterable<visual.ElementId | visual.IElement>;
|
|
412
847
|
}
|
|
413
848
|
/**
|
|
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
|
-
*
|
|
849
|
+
* A set of methods that change the chart view.
|
|
429
850
|
* @i2since 1.1
|
|
430
851
|
*/
|
|
431
|
-
export interface
|
|
852
|
+
export interface IViewEditor {
|
|
432
853
|
/**
|
|
433
|
-
*
|
|
854
|
+
* Sets the location on the chart that appears in the center of the viewport, and the zoom level.
|
|
855
|
+
*
|
|
856
|
+
* @param viewport - The new position and zoom level of the chart in the viewport.
|
|
434
857
|
* @i2since 1.1
|
|
435
858
|
*/
|
|
436
|
-
|
|
859
|
+
setViewport(viewport: chart.IViewportData): void;
|
|
437
860
|
/**
|
|
438
|
-
*
|
|
861
|
+
* Adjusts the position and zoom of the chart so that all elements on it are visible.
|
|
862
|
+
*
|
|
863
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
439
864
|
* @i2since 1.1
|
|
440
865
|
*/
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
866
|
+
fitToChart(options?: chart.IFitConstraints): void;
|
|
867
|
+
/**
|
|
868
|
+
* Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible.
|
|
869
|
+
*
|
|
870
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
871
|
+
* @i2since 1.1
|
|
872
|
+
*/
|
|
873
|
+
fitToHeight(options?: chart.IFitConstraints): void;
|
|
874
|
+
/**
|
|
875
|
+
* Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
|
|
876
|
+
*
|
|
877
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
878
|
+
* @i2since 1.1
|
|
879
|
+
*/
|
|
880
|
+
fitToSelection(options?: chart.IFitConstraints): void;
|
|
881
|
+
/**
|
|
882
|
+
* Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
|
|
883
|
+
*
|
|
884
|
+
* @param items - The elements to make visible, and the records whose containing elements are to be visible.
|
|
885
|
+
* @param options - A set of constraints that place restrictions on the change to the viewport.
|
|
886
|
+
* @i2since 1.1
|
|
887
|
+
*/
|
|
888
|
+
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
|
|
456
889
|
}
|
|
457
|
-
|
|
890
|
+
/**
|
|
891
|
+
* A set of methods that can change the chart selection.
|
|
892
|
+
* @i2since 1.1
|
|
893
|
+
*/
|
|
894
|
+
export interface ISelectionEditor {
|
|
458
895
|
/**
|
|
459
|
-
* Selects all records on the chart.
|
|
896
|
+
* Selects all the records on the chart.
|
|
460
897
|
* @i2since 1.1
|
|
461
898
|
*/
|
|
462
899
|
selectAll(): void;
|
|
463
900
|
/**
|
|
464
|
-
* Clears the chart selection.
|
|
901
|
+
* Clears the chart selection, so that no records are selected.
|
|
465
902
|
* @i2since 1.1
|
|
466
903
|
*/
|
|
467
904
|
clear(): void;
|
|
468
905
|
/**
|
|
469
|
-
* Replaces the chart selection with one
|
|
470
|
-
*
|
|
906
|
+
* Replaces the chart selection with one that contains the specified records.
|
|
907
|
+
*
|
|
908
|
+
* @param records - The records to use in the new selection.
|
|
909
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
471
910
|
* @i2since 1.1
|
|
472
911
|
*/
|
|
473
912
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
474
913
|
/**
|
|
475
|
-
* Adds
|
|
476
|
-
*
|
|
914
|
+
* Adds the specified records to the chart selection.
|
|
915
|
+
*
|
|
916
|
+
* @param records - The records to add to the selection.
|
|
917
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
477
918
|
* @i2since 1.1
|
|
478
919
|
*/
|
|
479
920
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
480
921
|
/**
|
|
481
|
-
* Removes
|
|
482
|
-
*
|
|
922
|
+
* Removes the specified records from the chart selection.
|
|
923
|
+
*
|
|
924
|
+
* @param records - The records to remove from the selection.
|
|
925
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
483
926
|
* @i2since 1.1
|
|
484
927
|
*/
|
|
485
928
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -489,6 +932,14 @@ export declare namespace app {
|
|
|
489
932
|
* @i2since 1.0
|
|
490
933
|
*/
|
|
491
934
|
export interface IServerComponents {
|
|
935
|
+
/**
|
|
936
|
+
* Gets the base URL of the i2 Analyze server. For example, `http://localhost:3000/opal/`.
|
|
937
|
+
*
|
|
938
|
+
* @remarks
|
|
939
|
+
* The base URL always ends with a forward slash, and never contains query parameters.
|
|
940
|
+
* @i2since 1.1
|
|
941
|
+
*/
|
|
942
|
+
readonly baseUrl: string;
|
|
492
943
|
/**
|
|
493
944
|
* Indicates whether the i2 Connect gateway is available on the application server.
|
|
494
945
|
* @i2since 1.0
|
|
@@ -529,13 +980,13 @@ export declare namespace app {
|
|
|
529
980
|
removeEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K]): void;
|
|
530
981
|
}
|
|
531
982
|
/**
|
|
532
|
-
* A callback function that performs work on the application or its contents.
|
|
983
|
+
* A callback function that performs read-only work on the application or its contents.
|
|
533
984
|
*
|
|
534
985
|
* @remarks
|
|
535
986
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
536
987
|
* @i2since 1.0
|
|
537
988
|
*/
|
|
538
|
-
export type TransactionHandler = (applicationContents: IApplicationContents) => void
|
|
989
|
+
export type TransactionHandler = (applicationContents: IApplicationContents) => void | Promise<void>;
|
|
539
990
|
/**
|
|
540
991
|
* The contents of the i2 Notebook application.
|
|
541
992
|
* @i2since 1.0
|
|
@@ -790,6 +1241,21 @@ export declare namespace chart {
|
|
|
790
1241
|
* @i2since 1.0
|
|
791
1242
|
*/
|
|
792
1243
|
readonly selection: ISelection;
|
|
1244
|
+
/**
|
|
1245
|
+
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1246
|
+
*
|
|
1247
|
+
* @remarks
|
|
1248
|
+
* Some property values might not be fetched immediately from the server, due to size or other factors.
|
|
1249
|
+
* The property values that this method fetches become "unfetched" on subsequent record updates by the server.
|
|
1250
|
+
* See also the `hasUnfetchedProperties`, `isValueUnfetched()`, and `getUnfetchedPropertyTypes()` members of {@link records.IChartRecordBase}.
|
|
1251
|
+
*
|
|
1252
|
+
* @param records - The records to update with fetched property values.
|
|
1253
|
+
* @param propertyTypes - The types of the properties whose values are to be fetched if necessary.
|
|
1254
|
+
* @param signal - A signal that the application uses to abort the operation.
|
|
1255
|
+
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1256
|
+
* @i2since 1.1
|
|
1257
|
+
*/
|
|
1258
|
+
ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
|
|
793
1259
|
}
|
|
794
1260
|
/**
|
|
795
1261
|
* A change that has occurred to the data in a chart.
|
|
@@ -910,6 +1376,24 @@ export declare namespace chart {
|
|
|
910
1376
|
*/
|
|
911
1377
|
readonly zoomScale: number;
|
|
912
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* A set of data that defines a viewport.
|
|
1381
|
+
* @i2since 1.1
|
|
1382
|
+
*/
|
|
1383
|
+
export interface IViewportData {
|
|
1384
|
+
/**
|
|
1385
|
+
* Gets or sets the zoom scale of the view, where 1.0 is a 100% (one-to-one) scale.
|
|
1386
|
+
* See also {@link chart.IChartView.zoomScale}.
|
|
1387
|
+
* @i2since 1.1
|
|
1388
|
+
*/
|
|
1389
|
+
zoomScale?: number;
|
|
1390
|
+
/**
|
|
1391
|
+
* Gets or sets the position of the center of the viewport, in chart coordinates.
|
|
1392
|
+
* See also {@link chart.IChartView.center}.
|
|
1393
|
+
* @i2since 1.1
|
|
1394
|
+
*/
|
|
1395
|
+
center?: visual.IPosition;
|
|
1396
|
+
}
|
|
913
1397
|
/**
|
|
914
1398
|
* A mapping of chart event types to their listener types.
|
|
915
1399
|
* @i2since 1.0
|
|
@@ -976,6 +1460,30 @@ export declare namespace chart {
|
|
|
976
1460
|
* @i2since 1.0
|
|
977
1461
|
*/
|
|
978
1462
|
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1463
|
+
/**
|
|
1464
|
+
* Constraints that control a view-fitting operation.
|
|
1465
|
+
*
|
|
1466
|
+
* @remarks
|
|
1467
|
+
* Fitting the view to a collection of elements ordinarily zooms in or out to make those
|
|
1468
|
+
* elements fill the viewport. However, you might want to limit this behavior to prevent
|
|
1469
|
+
* zooming in beyond a particular level.
|
|
1470
|
+
*
|
|
1471
|
+
* For example, if you fit the view to a single element, you might not want to zoom so that
|
|
1472
|
+
* the element fills the viewport. If you want to focus attention on a single element without
|
|
1473
|
+
* making it too large, you can set `maximumZoom` to `1`.
|
|
1474
|
+
*
|
|
1475
|
+
* Equally, if you want to pan the chart to show a particular element but not zoom in _at all_,
|
|
1476
|
+
* you can set `maximumZoom` to `current`.
|
|
1477
|
+
*
|
|
1478
|
+
* @i2since 1.1
|
|
1479
|
+
*/
|
|
1480
|
+
export interface IFitConstraints {
|
|
1481
|
+
/**
|
|
1482
|
+
* Gets or sets a value that controls the maximum zoom level to apply when performing a fit operation.
|
|
1483
|
+
* @i2since 1.1
|
|
1484
|
+
*/
|
|
1485
|
+
maximumZoom?: number | 'current';
|
|
1486
|
+
}
|
|
979
1487
|
}
|
|
980
1488
|
|
|
981
1489
|
/**
|
|
@@ -991,9 +1499,9 @@ export declare namespace commands {
|
|
|
991
1499
|
*
|
|
992
1500
|
* @remarks
|
|
993
1501
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
994
|
-
* @i2since 1.
|
|
1502
|
+
* @i2since 1.1
|
|
995
1503
|
*/
|
|
996
|
-
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search';
|
|
1504
|
+
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
997
1505
|
/**
|
|
998
1506
|
* A type for a command, which determines the payload it receives when a user invokes it.
|
|
999
1507
|
* @i2since 1.0
|
|
@@ -1242,11 +1750,11 @@ export declare namespace commands {
|
|
|
1242
1750
|
*/
|
|
1243
1751
|
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1244
1752
|
/**
|
|
1245
|
-
* Locates the area of the user interface that appears immediately before
|
|
1753
|
+
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1246
1754
|
*
|
|
1247
|
-
* @param command - The
|
|
1755
|
+
* @param command - The surfaced command to use as a reference.
|
|
1248
1756
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1249
|
-
* @throws `Error` if
|
|
1757
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1250
1758
|
* @i2since 1.1
|
|
1251
1759
|
*/
|
|
1252
1760
|
before(command: ICommand): IActionArea<undefined>;
|
|
@@ -1260,11 +1768,11 @@ export declare namespace commands {
|
|
|
1260
1768
|
*/
|
|
1261
1769
|
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1262
1770
|
/**
|
|
1263
|
-
* Locates the area of the user interface that appears immediately after
|
|
1771
|
+
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1264
1772
|
*
|
|
1265
|
-
* @param command - The
|
|
1773
|
+
* @param command - The surfaced command to use as a reference.
|
|
1266
1774
|
* @returns An object that you can use to add actions or a group to the located area.
|
|
1267
|
-
* @throws `Error` if
|
|
1775
|
+
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1268
1776
|
* @i2since 1.1
|
|
1269
1777
|
*/
|
|
1270
1778
|
after(command: ICommand): IActionArea<undefined>;
|
|
@@ -1556,7 +2064,7 @@ export declare namespace commands {
|
|
|
1556
2064
|
*/
|
|
1557
2065
|
readonly toggleVisualQuery: CommandId;
|
|
1558
2066
|
/**
|
|
1559
|
-
* Gets the identifier of the system command that toggles the Expand UI.
|
|
2067
|
+
* Gets the identifier of the system command that toggles the Expand-with-conditions UI.
|
|
1560
2068
|
* @i2since 1.0
|
|
1561
2069
|
*/
|
|
1562
2070
|
readonly toggleExpand: CommandId;
|
|
@@ -1610,6 +2118,21 @@ export declare namespace commands {
|
|
|
1610
2118
|
* @i2since 1.1
|
|
1611
2119
|
*/
|
|
1612
2120
|
readonly saveChart: CommandId;
|
|
2121
|
+
/**
|
|
2122
|
+
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2123
|
+
* @i2since 1.1
|
|
2124
|
+
*/
|
|
2125
|
+
readonly expand: CommandId;
|
|
2126
|
+
/**
|
|
2127
|
+
* Gets the identifier of the system command that toggles the map UI.
|
|
2128
|
+
* @i2since 1.1
|
|
2129
|
+
*/
|
|
2130
|
+
readonly toggleMap: CommandId;
|
|
2131
|
+
/**
|
|
2132
|
+
* Gets the identifier of the system command that adds geospatial markers to the map from the current selection.
|
|
2133
|
+
* @i2since 1.1
|
|
2134
|
+
*/
|
|
2135
|
+
readonly addToMap: CommandId;
|
|
1613
2136
|
}
|
|
1614
2137
|
/**
|
|
1615
2138
|
* A lookup table for the group identifiers of the default system action groups.
|
|
@@ -1617,7 +2140,7 @@ export declare namespace commands {
|
|
|
1617
2140
|
*/
|
|
1618
2141
|
export interface IHomeTabSystemGroups {
|
|
1619
2142
|
/**
|
|
1620
|
-
* Gets the identifier of the system action group named "
|
|
2143
|
+
* Gets the identifier of the system action group named "Manage".
|
|
1621
2144
|
* @i2since 1.1
|
|
1622
2145
|
*/
|
|
1623
2146
|
readonly chartManagement: GroupId;
|
|
@@ -1884,6 +2407,22 @@ export declare namespace data {
|
|
|
1884
2407
|
*/
|
|
1885
2408
|
readonly longitude: number;
|
|
1886
2409
|
}
|
|
2410
|
+
/**
|
|
2411
|
+
* A set of data for creating a geospatial position.
|
|
2412
|
+
* @i2since 1.1
|
|
2413
|
+
*/
|
|
2414
|
+
export interface IGeoPointData {
|
|
2415
|
+
/**
|
|
2416
|
+
* Gets the latitude of the new position, in degrees north.
|
|
2417
|
+
* @i2since 1.1
|
|
2418
|
+
*/
|
|
2419
|
+
readonly latitude: number;
|
|
2420
|
+
/**
|
|
2421
|
+
* Gets the longitude of the new position, in degrees east.
|
|
2422
|
+
* @i2since 1.1
|
|
2423
|
+
*/
|
|
2424
|
+
readonly longitude: number;
|
|
2425
|
+
}
|
|
1887
2426
|
/**
|
|
1888
2427
|
* A logical type for the value of a record property.
|
|
1889
2428
|
*
|
|
@@ -2446,7 +2985,7 @@ export declare interface NotebookStatic {
|
|
|
2446
2985
|
* @public
|
|
2447
2986
|
* @i2since 1.0
|
|
2448
2987
|
*/
|
|
2449
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0'): Promise<IEntryPointApi>;
|
|
2988
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1'): Promise<IEntryPointApi>;
|
|
2450
2989
|
}
|
|
2451
2990
|
|
|
2452
2991
|
/**
|
|
@@ -2526,7 +3065,7 @@ export declare namespace records {
|
|
|
2526
3065
|
* @returns The property value or, if not present, `undefined`.
|
|
2527
3066
|
* @i2since 1.0
|
|
2528
3067
|
*/
|
|
2529
|
-
getProperty(propertyType: schema.
|
|
3068
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
2530
3069
|
/**
|
|
2531
3070
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
2532
3071
|
*
|
|
@@ -2611,6 +3150,11 @@ export declare namespace records {
|
|
|
2611
3150
|
* @i2since 1.0
|
|
2612
3151
|
*/
|
|
2613
3152
|
readonly itemType: schema.IChartEntityType;
|
|
3153
|
+
/**
|
|
3154
|
+
* Gets all the link records that are connected to the entity record.
|
|
3155
|
+
* @i2since 1.1
|
|
3156
|
+
*/
|
|
3157
|
+
readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
|
|
2614
3158
|
}
|
|
2615
3159
|
/**
|
|
2616
3160
|
* A link record.
|
|
@@ -2647,10 +3191,14 @@ export declare namespace records {
|
|
|
2647
3191
|
*/
|
|
2648
3192
|
export type NoteId = string;
|
|
2649
3193
|
/**
|
|
2650
|
-
*
|
|
3194
|
+
* A set of data for creating a note.
|
|
2651
3195
|
* @i2since 1.1
|
|
2652
3196
|
*/
|
|
2653
3197
|
export interface INoteData {
|
|
3198
|
+
/**
|
|
3199
|
+
* Gets the contents of the new note.
|
|
3200
|
+
* @i2since 1.1
|
|
3201
|
+
*/
|
|
2654
3202
|
readonly contents: string;
|
|
2655
3203
|
}
|
|
2656
3204
|
/**
|
|
@@ -2747,29 +3295,33 @@ export declare namespace records {
|
|
|
2747
3295
|
*/
|
|
2748
3296
|
readonly imageUrl?: string;
|
|
2749
3297
|
}
|
|
3298
|
+
/**
|
|
3299
|
+
* A set of data for creating a source reference.
|
|
3300
|
+
* @i2since 1.1
|
|
3301
|
+
*/
|
|
2750
3302
|
export interface ISourceReferenceData {
|
|
2751
3303
|
/**
|
|
2752
|
-
* Gets the name of the source that the source reference describes.
|
|
3304
|
+
* Gets the name of the source that the new source reference describes.
|
|
2753
3305
|
* @i2since 1.1
|
|
2754
3306
|
*/
|
|
2755
3307
|
readonly name: string;
|
|
2756
3308
|
/**
|
|
2757
|
-
* Gets the type of the source that the source reference describes.
|
|
3309
|
+
* Gets the type of the source that the new source reference describes.
|
|
2758
3310
|
* @i2since 1.1
|
|
2759
3311
|
*/
|
|
2760
3312
|
readonly type?: string;
|
|
2761
3313
|
/**
|
|
2762
|
-
* Gets the location of the source that the source reference describes.
|
|
3314
|
+
* Gets the location of the source that the new source reference describes.
|
|
2763
3315
|
* @i2since 1.1
|
|
2764
3316
|
*/
|
|
2765
3317
|
readonly location?: string;
|
|
2766
3318
|
/**
|
|
2767
|
-
* Gets the description of the source that the source reference describes.
|
|
3319
|
+
* Gets the description of the source that the new source reference describes.
|
|
2768
3320
|
* @i2since 1.1
|
|
2769
3321
|
*/
|
|
2770
3322
|
readonly description?: string;
|
|
2771
3323
|
/**
|
|
2772
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
3324
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
2773
3325
|
* @i2since 1.1
|
|
2774
3326
|
*/
|
|
2775
3327
|
readonly imageUrl?: string;
|
|
@@ -2790,6 +3342,22 @@ export declare namespace records {
|
|
|
2790
3342
|
*/
|
|
2791
3343
|
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
2792
3344
|
}
|
|
3345
|
+
/**
|
|
3346
|
+
* A set of data for creating a security setting.
|
|
3347
|
+
* @i2since 1.1
|
|
3348
|
+
*/
|
|
3349
|
+
export interface ISecuritySettingData {
|
|
3350
|
+
/**
|
|
3351
|
+
* Gets or sets the security dimension for the new security setting.
|
|
3352
|
+
* @i2since 1.1
|
|
3353
|
+
*/
|
|
3354
|
+
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
3355
|
+
/**
|
|
3356
|
+
* Gets or sets the dimension values for the new security setting.
|
|
3357
|
+
* @i2since 1.1
|
|
3358
|
+
*/
|
|
3359
|
+
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
3360
|
+
}
|
|
2793
3361
|
/**
|
|
2794
3362
|
* A source identifier for a record.
|
|
2795
3363
|
*
|
|
@@ -2799,7 +3367,7 @@ export declare namespace records {
|
|
|
2799
3367
|
*/
|
|
2800
3368
|
export interface ISourceIdentifier {
|
|
2801
3369
|
/**
|
|
2802
|
-
* Gets the type of
|
|
3370
|
+
* Gets the type of the source identifier.
|
|
2803
3371
|
* @i2since 1.0
|
|
2804
3372
|
*/
|
|
2805
3373
|
readonly type: string;
|
|
@@ -2809,15 +3377,19 @@ export declare namespace records {
|
|
|
2809
3377
|
*/
|
|
2810
3378
|
readonly key: string[];
|
|
2811
3379
|
}
|
|
3380
|
+
/**
|
|
3381
|
+
* A set of data for creating a source identifier.
|
|
3382
|
+
* @i2since 1.1
|
|
3383
|
+
*/
|
|
2812
3384
|
export interface ISourceIdentifierData {
|
|
2813
3385
|
/**
|
|
2814
|
-
* Gets the type of
|
|
2815
|
-
* @i2since 1.
|
|
3386
|
+
* Gets the type of the new source identifier.
|
|
3387
|
+
* @i2since 1.1
|
|
2816
3388
|
*/
|
|
2817
3389
|
readonly type: string;
|
|
2818
3390
|
/**
|
|
2819
|
-
* Gets the values that make up the source identifier key.
|
|
2820
|
-
* @i2since 1.
|
|
3391
|
+
* Gets the values that make up the new source identifier key.
|
|
3392
|
+
* @i2since 1.1
|
|
2821
3393
|
*/
|
|
2822
3394
|
readonly key: string[];
|
|
2823
3395
|
}
|
|
@@ -2886,6 +3458,21 @@ export declare namespace schema {
|
|
|
2886
3458
|
* @i2since 1.0
|
|
2887
3459
|
*/
|
|
2888
3460
|
readonly maximumSourceIdentifiers: number;
|
|
3461
|
+
/**
|
|
3462
|
+
* Gets the maximum number of characters for a source identifier key.
|
|
3463
|
+
* @i2since 1.1
|
|
3464
|
+
*/
|
|
3465
|
+
readonly maxKeyStringLength: data.ICharLimit;
|
|
3466
|
+
/**
|
|
3467
|
+
* Gets the maximum number of characters for a source identifier type.
|
|
3468
|
+
* @i2since 1.1
|
|
3469
|
+
*/
|
|
3470
|
+
readonly maxTypeStringLength: data.ICharLimit;
|
|
3471
|
+
/**
|
|
3472
|
+
* Gets the source identifier types that are reserved for system use.
|
|
3473
|
+
* @i2since 1.1
|
|
3474
|
+
*/
|
|
3475
|
+
readonly reservedTypes: data.IReadOnlyCollection<string>;
|
|
2889
3476
|
}
|
|
2890
3477
|
/**
|
|
2891
3478
|
* A security schema, which defines the available security dimensions and their dimension values.
|
|
@@ -2898,7 +3485,7 @@ export declare namespace schema {
|
|
|
2898
3485
|
*/
|
|
2899
3486
|
readonly securityDimensions: data.IKeyedReadOnlyCollection<SecurityDimensionId, ISecurityDimension>;
|
|
2900
3487
|
/**
|
|
2901
|
-
* Gets the
|
|
3488
|
+
* Gets the security dimension values to apply to new records by default.
|
|
2902
3489
|
* @i2since 1.1
|
|
2903
3490
|
*/
|
|
2904
3491
|
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
|
|
@@ -3062,6 +3649,11 @@ export declare namespace schema {
|
|
|
3062
3649
|
* @i2since 1.0
|
|
3063
3650
|
*/
|
|
3064
3651
|
readonly isOrphaned: boolean;
|
|
3652
|
+
/**
|
|
3653
|
+
* Indicates whether the item type is defined in the Information Store schema.
|
|
3654
|
+
* @i2since 1.1
|
|
3655
|
+
*/
|
|
3656
|
+
readonly isInfoStore: boolean;
|
|
3065
3657
|
/**
|
|
3066
3658
|
* Gets the label definition for the item type, which describes how record labels are formed.
|
|
3067
3659
|
* @i2since 1.0
|
|
@@ -3083,6 +3675,11 @@ export declare namespace schema {
|
|
|
3083
3675
|
* @i2since 1.0
|
|
3084
3676
|
*/
|
|
3085
3677
|
export type AnalyzePropertyTypeId = string;
|
|
3678
|
+
/**
|
|
3679
|
+
* A common specifier for a property type.
|
|
3680
|
+
* @i2since 1.1
|
|
3681
|
+
*/
|
|
3682
|
+
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
3086
3683
|
/**
|
|
3087
3684
|
* A property type.
|
|
3088
3685
|
* @i2since 1.0
|
|
@@ -3354,6 +3951,7 @@ export declare namespace toolview {
|
|
|
3354
3951
|
* @remarks
|
|
3355
3952
|
* Serializable values are constrained to the logical types that are listed in the definition.
|
|
3356
3953
|
* @i2since 1.0
|
|
3954
|
+
* @deprecated `toolview.SerializableValue` is no longer used. Replace any existing use with `unknown`.
|
|
3357
3955
|
*/
|
|
3358
3956
|
export type SerializableValue = string | number | boolean | null | BigInt | Date | SerializableValue[] | {
|
|
3359
3957
|
[key: string]: SerializableValue;
|
|
@@ -3390,7 +3988,7 @@ export declare namespace toolview {
|
|
|
3390
3988
|
* @returns The stored value, or `undefined` if the key does not exist in the store.
|
|
3391
3989
|
* @i2since 1.0
|
|
3392
3990
|
*/
|
|
3393
|
-
get<TValue
|
|
3991
|
+
get<TValue = unknown>(key: string): TValue | undefined;
|
|
3394
3992
|
/**
|
|
3395
3993
|
* Creates or updates a key in the volatile store.
|
|
3396
3994
|
*
|
|
@@ -3398,7 +3996,7 @@ export declare namespace toolview {
|
|
|
3398
3996
|
* @param value - The new value for the key.
|
|
3399
3997
|
* @i2since 1.0
|
|
3400
3998
|
*/
|
|
3401
|
-
set(key: string, value:
|
|
3999
|
+
set(key: string, value: unknown): void;
|
|
3402
4000
|
/**
|
|
3403
4001
|
* Deletes a key from the volatile store.
|
|
3404
4002
|
*
|
|
@@ -3640,9 +4238,15 @@ export declare namespace visual {
|
|
|
3640
4238
|
* @i2since 1.0
|
|
3641
4239
|
*/
|
|
3642
4240
|
readonly style: INodeStyle;
|
|
4241
|
+
/**
|
|
4242
|
+
* Gets all the edges that are connected to the node.
|
|
4243
|
+
* @i2since 1.1
|
|
4244
|
+
*/
|
|
4245
|
+
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3643
4246
|
/**
|
|
3644
4247
|
* Gets all the edges that are connected to the node.
|
|
3645
4248
|
* @i2since 1.0
|
|
4249
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
3646
4250
|
*/
|
|
3647
4251
|
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
3648
4252
|
}
|