@i2analyze/notebook-sdk 1.1.0-dev.14 → 1.1.0-dev.18
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 +33 -0
- package/lib/gen/notebook-sdk-public.d.ts +43 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.18
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added Prayan API for passing properties
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Update the SelectionOption type to specify "records"
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.16
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Add addRecordGroup API for Prayan
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Documented when setNodeCenter mutation throws
|
|
24
|
+
- Disable documentation contribution
|
|
25
|
+
- Update the docs, samples and json schemas for the i2group organization
|
|
26
|
+
- Add documentation for ISelectionEditor exceptions.
|
|
27
|
+
- Small modifications to API documentation
|
|
28
|
+
- Update the basic sample to include an .npmrc and uses public npm
|
|
29
|
+
|
|
30
|
+
## 1.1.0-dev.15
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- Deprecate INode.connectedEdges.
|
|
35
|
+
|
|
3
36
|
## 1.1.0-dev.14
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
|
@@ -277,6 +277,27 @@ export declare namespace app {
|
|
|
277
277
|
* @i2since 1.1
|
|
278
278
|
*/
|
|
279
279
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
280
|
+
/**
|
|
281
|
+
* The identifier of a record group.
|
|
282
|
+
* @i2since 1.1
|
|
283
|
+
*/
|
|
284
|
+
export type AnalyzeRecordGroupId = string;
|
|
285
|
+
/**
|
|
286
|
+
* The effect on chart selection of adding a record group to the chart.
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
*
|
|
290
|
+
* `addRecordsToSelection` adds the records from the group to the current selection;
|
|
291
|
+
* `setSelectionToRecords` sets the selection to the records from the group;
|
|
292
|
+
* `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
|
|
293
|
+
* @i2since 1.1
|
|
294
|
+
*/
|
|
295
|
+
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
296
|
+
/**
|
|
297
|
+
* A common specifier for record properties used to pass record properties when adding or editing a record.
|
|
298
|
+
* @i2since 1.1
|
|
299
|
+
*/
|
|
300
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.IChartPropertyType | schema.ChartPropertyTypeId, data.PropertyValue]>;
|
|
280
301
|
/**
|
|
281
302
|
* A set of data that is common to creating records of all types.
|
|
282
303
|
* @i2since 1.1
|
|
@@ -291,12 +312,12 @@ export declare namespace app {
|
|
|
291
312
|
* Gets or sets the properties of the new record.
|
|
292
313
|
* @i2since 1.1
|
|
293
314
|
*/
|
|
294
|
-
properties
|
|
315
|
+
properties?: RecordPropertiesSpecifier;
|
|
295
316
|
/**
|
|
296
317
|
* Gets or sets the security settings of the new record.
|
|
297
318
|
* @i2since 1.1
|
|
298
319
|
*/
|
|
299
|
-
security
|
|
320
|
+
security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
|
|
300
321
|
/**
|
|
301
322
|
* Gets or sets the notes for the new record.
|
|
302
323
|
* @i2since 1.1
|
|
@@ -382,7 +403,7 @@ export declare namespace app {
|
|
|
382
403
|
* @returns This record, with the new properties in place.
|
|
383
404
|
* @i2since 1.1
|
|
384
405
|
*/
|
|
385
|
-
setProperties(properties:
|
|
406
|
+
setProperties(properties: RecordPropertiesSpecifier): this;
|
|
386
407
|
/**
|
|
387
408
|
* Adds a new note to the record.
|
|
388
409
|
*
|
|
@@ -664,6 +685,14 @@ export declare namespace app {
|
|
|
664
685
|
* @i2since 1.1
|
|
665
686
|
*/
|
|
666
687
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
688
|
+
/**
|
|
689
|
+
* Adds the records from a record group to the chart.
|
|
690
|
+
*
|
|
691
|
+
* @param recordGroupId - The identifier of the record group to add.
|
|
692
|
+
* @param selectionOption - The effect on chart selection of adding the record group.
|
|
693
|
+
* @i2since 1.1
|
|
694
|
+
*/
|
|
695
|
+
addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
|
|
667
696
|
/**
|
|
668
697
|
* Gets an object with methods for editing a record.
|
|
669
698
|
*
|
|
@@ -684,6 +713,7 @@ export declare namespace app {
|
|
|
684
713
|
*
|
|
685
714
|
* @param node - The node to be moved.
|
|
686
715
|
* @param position - The location to move the node to.
|
|
716
|
+
* @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
|
|
687
717
|
* @i2since 1.1
|
|
688
718
|
*/
|
|
689
719
|
setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
|
|
@@ -780,6 +810,7 @@ export declare namespace app {
|
|
|
780
810
|
* Replaces the chart selection with one that contains the specified records.
|
|
781
811
|
*
|
|
782
812
|
* @param records - The records to use in the new selection.
|
|
813
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
783
814
|
* @i2since 1.1
|
|
784
815
|
*/
|
|
785
816
|
set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -787,6 +818,7 @@ export declare namespace app {
|
|
|
787
818
|
* Adds the specified records to the chart selection.
|
|
788
819
|
*
|
|
789
820
|
* @param records - The records to add to the selection.
|
|
821
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
790
822
|
* @i2since 1.1
|
|
791
823
|
*/
|
|
792
824
|
add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -794,6 +826,7 @@ export declare namespace app {
|
|
|
794
826
|
* Removes the specified records from the chart selection.
|
|
795
827
|
*
|
|
796
828
|
* @param records - The records to remove from the selection.
|
|
829
|
+
* @throws `Error` if one or more of the `records` does not exist on the chart.
|
|
797
830
|
* @i2since 1.1
|
|
798
831
|
*/
|
|
799
832
|
remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
|
|
@@ -4047,9 +4080,15 @@ export declare namespace visual {
|
|
|
4047
4080
|
readonly style: INodeStyle;
|
|
4048
4081
|
/**
|
|
4049
4082
|
* Gets all the edges that are connected to the node.
|
|
4050
|
-
* @i2since 1.
|
|
4083
|
+
* @i2since 1.1
|
|
4051
4084
|
*/
|
|
4052
4085
|
readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
4086
|
+
/**
|
|
4087
|
+
* Gets all the edges that are connected to the node.
|
|
4088
|
+
* @i2since 1.0
|
|
4089
|
+
* @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
|
|
4090
|
+
*/
|
|
4091
|
+
readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
|
|
4053
4092
|
}
|
|
4054
4093
|
/**
|
|
4055
4094
|
* An edge on a chart surface.
|