@i2analyze/notebook-sdk 1.1.0-dev.13 → 1.1.0-dev.17

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 CHANGED
@@ -1,5 +1,39 @@
1
1
  # @i2analyze/notebook-sdk
2
2
 
3
+ ## 1.1.0-dev.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Update the SelectionOption type to specify "records"
8
+
9
+ ## 1.1.0-dev.16
10
+
11
+ ### Minor Changes
12
+
13
+ - Add addRecordGroup API for Prayan
14
+
15
+ ### Patch Changes
16
+
17
+ - Documented when setNodeCenter mutation throws
18
+ - Disable documentation contribution
19
+ - Update the docs, samples and json schemas for the i2group organization
20
+ - Add documentation for ISelectionEditor exceptions.
21
+ - Small modifications to API documentation
22
+ - Update the basic sample to include an .npmrc and uses public npm
23
+
24
+ ## 1.1.0-dev.15
25
+
26
+ ### Minor Changes
27
+
28
+ - Deprecate INode.connectedEdges.
29
+
30
+ ## 1.1.0-dev.14
31
+
32
+ ### Minor Changes
33
+
34
+ - Rename INode.connectedEdges to INode.edges.
35
+ - Add IChartEntityRecord.linkRecords property.
36
+
3
37
  ## 1.1.0-dev.13
4
38
 
5
39
  ### Minor Changes
@@ -277,6 +277,20 @@ export declare namespace app {
277
277
  * @i2since 1.1
278
278
  */
279
279
  export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
280
+ /**
281
+ * An identifier for a record group.
282
+ * @i2since 1.1
283
+ */
284
+ export type AnalyzeRecordGroupId = string;
285
+ /**
286
+ * Selection options used to determine what records are selected after the import record group mutation.
287
+ * @remarks Supported options:
288
+ * - addRecordsToSelection: Adds records from the record group to the current selection.
289
+ * - setSelectionToRecords: Sets the selection to the records in the record group.
290
+ * - setSelectionToNewRecords: Sets the selection to the records in the record group that are new to the chart.
291
+ * @i2since 1.1
292
+ */
293
+ export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
280
294
  /**
281
295
  * A set of data that is common to creating records of all types.
282
296
  * @i2since 1.1
@@ -664,6 +678,14 @@ export declare namespace app {
664
678
  * @i2since 1.1
665
679
  */
666
680
  addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
681
+ /**
682
+ * Adds an existing record group to the chart using a specified record group identifier.
683
+ *
684
+ * @param recordGroupId - The record group identifier to be used.
685
+ * @param selectionOption - A set of options used to define how the items are selected when added to the chart.
686
+ * @i2since 1.1
687
+ */
688
+ addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
667
689
  /**
668
690
  * Gets an object with methods for editing a record.
669
691
  *
@@ -684,6 +706,7 @@ export declare namespace app {
684
706
  *
685
707
  * @param node - The node to be moved.
686
708
  * @param position - The location to move the node to.
709
+ * @throws `Error` if the node cannot be found on the chart, if either of the position coordinates aren't finite numbers.
687
710
  * @i2since 1.1
688
711
  */
689
712
  setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
@@ -780,6 +803,7 @@ export declare namespace app {
780
803
  * Replaces the chart selection with one that contains the specified records.
781
804
  *
782
805
  * @param records - The records to use in the new selection.
806
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
783
807
  * @i2since 1.1
784
808
  */
785
809
  set(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
@@ -787,6 +811,7 @@ export declare namespace app {
787
811
  * Adds the specified records to the chart selection.
788
812
  *
789
813
  * @param records - The records to add to the selection.
814
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
790
815
  * @i2since 1.1
791
816
  */
792
817
  add(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
@@ -794,6 +819,7 @@ export declare namespace app {
794
819
  * Removes the specified records from the chart selection.
795
820
  *
796
821
  * @param records - The records to remove from the selection.
822
+ * @throws `Error` if one or more of the `records` does not exist on the chart.
797
823
  * @i2since 1.1
798
824
  */
799
825
  remove(records: Iterable<RecordSpecifier> | RecordSpecifier): void;
@@ -2983,6 +3009,11 @@ export declare namespace records {
2983
3009
  * @i2since 1.0
2984
3010
  */
2985
3011
  readonly itemType: schema.IChartEntityType;
3012
+ /**
3013
+ * Gets all the link records that are connected to the entity record.
3014
+ * @i2since 1.1
3015
+ */
3016
+ readonly linkRecords: data.IKeyedReadOnlyCollection<AnalyzeRecordId, IChartLinkRecord>;
2986
3017
  }
2987
3018
  /**
2988
3019
  * A link record.
@@ -4040,9 +4071,15 @@ export declare namespace visual {
4040
4071
  * @i2since 1.0
4041
4072
  */
4042
4073
  readonly style: INodeStyle;
4074
+ /**
4075
+ * Gets all the edges that are connected to the node.
4076
+ * @i2since 1.1
4077
+ */
4078
+ readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
4043
4079
  /**
4044
4080
  * Gets all the edges that are connected to the node.
4045
4081
  * @i2since 1.0
4082
+ * @deprecated INode.connectedEdges has been renamed to {@link visual.INode.edges}.
4046
4083
  */
4047
4084
  readonly connectedEdges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
4048
4085
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0-dev.13",
3
+ "version": "1.1.0-dev.17",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {