@i2analyze/notebook-sdk 1.1.0-dev.28 → 1.1.0-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/gen/notebook-sdk-public.d.ts +72 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -72,25 +72,24 @@ export declare namespace app {
|
|
|
72
72
|
*
|
|
73
73
|
* @remarks
|
|
74
74
|
* A mutation is an operation that can read or modify the contents of the application.
|
|
75
|
-
* A successful set of
|
|
75
|
+
* A successful set of _tracked_ mutations is added as a single entry to the undo stack.
|
|
76
76
|
*
|
|
77
77
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
78
78
|
* @param options - An object that can control the transaction.
|
|
79
|
-
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
80
79
|
* @i2since 1.1
|
|
81
80
|
*/
|
|
82
81
|
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
|
|
83
82
|
/**
|
|
84
|
-
* Queues a function that performs tracked mutations on the application contents at the next available opportunity
|
|
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
85
|
*
|
|
86
86
|
* @remarks
|
|
87
87
|
* A mutation is an operation that can read or modify the contents of the application.
|
|
88
|
-
* A successful set of
|
|
88
|
+
* A successful set of _tracked_ mutations is added as a single entry to the undo stack.
|
|
89
89
|
*
|
|
90
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
|
|
91
|
+
* @param responseHandler - A callback that receives the changes caused by the mutations.
|
|
92
92
|
* @param options - An object that can control the transaction.
|
|
93
|
-
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
94
93
|
* @i2since 1.1
|
|
95
94
|
*/
|
|
96
95
|
runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
|
|
@@ -99,7 +98,7 @@ export declare namespace app {
|
|
|
99
98
|
*
|
|
100
99
|
* @remarks
|
|
101
100
|
* A mutation is an operation that can read or modify the contents of the application.
|
|
102
|
-
*
|
|
101
|
+
* _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
|
|
103
102
|
*
|
|
104
103
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
105
104
|
* @param options - An object that can control the transaction.
|
|
@@ -107,14 +106,15 @@ export declare namespace app {
|
|
|
107
106
|
*/
|
|
108
107
|
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
|
|
109
108
|
/**
|
|
110
|
-
* Queues a function that performs untracked mutations on the application contents at the next available opportunity
|
|
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
111
|
*
|
|
112
112
|
* @remarks
|
|
113
113
|
* A mutation is an operation that can read or modify the contents of the application.
|
|
114
|
-
*
|
|
114
|
+
* _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
|
|
115
115
|
*
|
|
116
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
|
|
117
|
+
* @param responseHandler - A callback that receives the changes produced by the mutations.
|
|
118
118
|
* @param options - An object that can control the transaction.
|
|
119
119
|
* @i2since 1.1
|
|
120
120
|
*/
|
|
@@ -250,8 +250,8 @@ export declare namespace app {
|
|
|
250
250
|
/**
|
|
251
251
|
* A function that receives the results of a mutation.
|
|
252
252
|
*
|
|
253
|
-
* @param error - The
|
|
254
|
-
* @param result -
|
|
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
255
|
* @param application - The contents of the application after the mutation was performed.
|
|
256
256
|
* @i2since 1.1
|
|
257
257
|
*/
|
|
@@ -262,7 +262,7 @@ export declare namespace app {
|
|
|
262
262
|
*/
|
|
263
263
|
export interface IMutationResult {
|
|
264
264
|
/**
|
|
265
|
-
* Gets the changes that were
|
|
265
|
+
* Gets the changes that were caused by the mutation.
|
|
266
266
|
* @i2since 1.1
|
|
267
267
|
*/
|
|
268
268
|
change: chart.IChartChange;
|
|
@@ -332,6 +332,16 @@ export declare namespace app {
|
|
|
332
332
|
* @i2since 1.1
|
|
333
333
|
*/
|
|
334
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;
|
|
335
345
|
/**
|
|
336
346
|
* The identifier of a record group.
|
|
337
347
|
* @i2since 1.1
|
|
@@ -353,6 +363,11 @@ export declare namespace app {
|
|
|
353
363
|
* @i2since 1.1
|
|
354
364
|
*/
|
|
355
365
|
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
366
|
+
/**
|
|
367
|
+
* A common specifier for editing record properties, for use in mutation APIs.
|
|
368
|
+
* @i2since 1.1
|
|
369
|
+
*/
|
|
370
|
+
export type EditRecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
|
|
356
371
|
/**
|
|
357
372
|
* A set of data that is common to creating records of all types.
|
|
358
373
|
* @i2since 1.1
|
|
@@ -458,57 +473,65 @@ export declare namespace app {
|
|
|
458
473
|
* @returns This record, with the new properties in place.
|
|
459
474
|
* @i2since 1.1
|
|
460
475
|
*/
|
|
461
|
-
setProperties(properties:
|
|
476
|
+
setProperties(properties: EditRecordPropertiesSpecifier): this;
|
|
462
477
|
/**
|
|
463
478
|
* Adds a new note to the record.
|
|
464
479
|
*
|
|
465
|
-
* @param
|
|
480
|
+
* @param noteData - The data for the new note.
|
|
466
481
|
* @returns This record, with the new note in place.
|
|
467
482
|
* @i2since 1.1
|
|
468
483
|
*/
|
|
469
|
-
addNote(
|
|
484
|
+
addNote(noteData: records.INoteData): this;
|
|
470
485
|
/**
|
|
471
486
|
* Replaces an existing note on the record with a new one.
|
|
472
487
|
*
|
|
473
|
-
* @param
|
|
474
|
-
* @param
|
|
488
|
+
* @param note - The note to replace.
|
|
489
|
+
* @param noteData - The data for the new note.
|
|
475
490
|
* @returns This record, with the new note in place.
|
|
476
491
|
* @i2since 1.1
|
|
477
492
|
*/
|
|
478
|
-
replaceNote(
|
|
493
|
+
replaceNote(note: NoteSpecifier, noteData: records.INoteData): this;
|
|
479
494
|
/**
|
|
480
495
|
* Removes a note from the record.
|
|
481
496
|
*
|
|
482
|
-
* @param
|
|
497
|
+
* @param note - The note to remove.
|
|
483
498
|
* @returns This record, without the note.
|
|
484
499
|
* @i2since 1.1
|
|
485
500
|
*/
|
|
486
|
-
removeNote(
|
|
501
|
+
removeNote(note: NoteSpecifier): this;
|
|
487
502
|
/**
|
|
488
503
|
* Adds a new source reference to the record.
|
|
489
504
|
*
|
|
490
|
-
* @param
|
|
505
|
+
* @param refData - The data for the new source reference.
|
|
491
506
|
* @returns This record, with the new source reference in place.
|
|
492
507
|
* @i2since 1.1
|
|
493
508
|
*/
|
|
494
|
-
addSourceReference(
|
|
509
|
+
addSourceReference(refData: records.ISourceReferenceData): this;
|
|
495
510
|
/**
|
|
496
511
|
* Replaces an existing source reference on the record with a new one.
|
|
497
512
|
*
|
|
498
|
-
* @param
|
|
499
|
-
* @param
|
|
513
|
+
* @param ref - The source reference to replace.
|
|
514
|
+
* @param refData - The data for the new source reference.
|
|
500
515
|
* @returns This record, with the new source reference in place.
|
|
501
516
|
* @i2since 1.1
|
|
502
517
|
*/
|
|
503
|
-
replaceSourceReference(
|
|
518
|
+
replaceSourceReference(ref: SourceReferenceSpecifier, refData: records.ISourceReferenceData): this;
|
|
504
519
|
/**
|
|
505
520
|
* Removes a source reference from the record.
|
|
506
521
|
*
|
|
507
|
-
* @param
|
|
522
|
+
* @param ref - The source reference to remove.
|
|
508
523
|
* @returns This record, without the source reference.
|
|
509
524
|
* @i2since 1.1
|
|
510
525
|
*/
|
|
511
|
-
removeSourceReference(
|
|
526
|
+
removeSourceReference(ref: SourceReferenceSpecifier): this;
|
|
527
|
+
/**
|
|
528
|
+
* Adds a source identifier to the record.
|
|
529
|
+
*
|
|
530
|
+
* @param identifierData - The data for the new source identifier.
|
|
531
|
+
* @returns This record, with the new source identifier in place.
|
|
532
|
+
* @i2since 1.1
|
|
533
|
+
*/
|
|
534
|
+
addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
|
|
512
535
|
/**
|
|
513
536
|
* Replaces the record's security settings with a new set.
|
|
514
537
|
* @param security - The new security settings.
|
|
@@ -516,6 +539,17 @@ export declare namespace app {
|
|
|
516
539
|
* @i2since 1.1
|
|
517
540
|
*/
|
|
518
541
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
542
|
+
/**
|
|
543
|
+
* Sets the link direction on the record.
|
|
544
|
+
*
|
|
545
|
+
* @remarks
|
|
546
|
+
* Calling this method on a entity record will throw an error.
|
|
547
|
+
*
|
|
548
|
+
* @param linkDirection - The link direction to set.
|
|
549
|
+
* @returns This record, with the new link direction in place.
|
|
550
|
+
* @i2since 1.1
|
|
551
|
+
*/
|
|
552
|
+
setLinkDirection(linkDirection: data.LinkDirection): this;
|
|
519
553
|
}
|
|
520
554
|
/**
|
|
521
555
|
* A record that has been created in a transaction handler, but has not yet been added to a chart.
|
|
@@ -2091,6 +2125,16 @@ export declare namespace commands {
|
|
|
2091
2125
|
* @i2since 1.1
|
|
2092
2126
|
*/
|
|
2093
2127
|
readonly expand: CommandId;
|
|
2128
|
+
/**
|
|
2129
|
+
* Gets the identifier of the system command that toggles the map UI.
|
|
2130
|
+
* @i2since 1.1
|
|
2131
|
+
*/
|
|
2132
|
+
readonly toggleMap: CommandId;
|
|
2133
|
+
/**
|
|
2134
|
+
* Gets the identifier of the system command that adds geospatial markers to the map from the current selection.
|
|
2135
|
+
* @i2since 1.1
|
|
2136
|
+
*/
|
|
2137
|
+
readonly addToMap: CommandId;
|
|
2094
2138
|
}
|
|
2095
2139
|
/**
|
|
2096
2140
|
* A lookup table for the group identifiers of the default system action groups.
|