@i2analyze/notebook-sdk 1.1.0-dev.15 → 1.1.0-dev.19

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,38 @@
1
1
  # @i2analyze/notebook-sdk
2
2
 
3
+ ## 1.1.0-dev.19
4
+
5
+ ### Minor Changes
6
+
7
+ - Add Source Identifier schema settings to chart.IChartSchema.
8
+
9
+ ## 1.1.0-dev.18
10
+
11
+ ### Minor Changes
12
+
13
+ - Added Prayan API for passing properties
14
+
15
+ ## 1.1.0-dev.17
16
+
17
+ ### Patch Changes
18
+
19
+ - Update the SelectionOption type to specify "records"
20
+
21
+ ## 1.1.0-dev.16
22
+
23
+ ### Minor Changes
24
+
25
+ - Add addRecordGroup API for Prayan
26
+
27
+ ### Patch Changes
28
+
29
+ - Documented when setNodeCenter mutation throws
30
+ - Disable documentation contribution
31
+ - Update the docs, samples and json schemas for the i2group organization
32
+ - Add documentation for ISelectionEditor exceptions.
33
+ - Small modifications to API documentation
34
+ - Update the basic sample to include an .npmrc and uses public npm
35
+
3
36
  ## 1.1.0-dev.15
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: TODO;
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: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
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: TODO): this;
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;
@@ -3291,6 +3324,21 @@ export declare namespace schema {
3291
3324
  * @i2since 1.0
3292
3325
  */
3293
3326
  readonly maximumSourceIdentifiers: number;
3327
+ /**
3328
+ * Gets the maximum string length of a source identifier key.
3329
+ * @i2since 1.0
3330
+ */
3331
+ readonly maxKeyStringLength: data.ICharLimit;
3332
+ /**
3333
+ * Gets the maximum string length of a source identifier type.
3334
+ * @i2since 1.0
3335
+ */
3336
+ readonly maxTypeStringLength: data.ICharLimit;
3337
+ /**
3338
+ * Gets a collection of reserved source identifier types.
3339
+ * @i2since 1.0
3340
+ */
3341
+ readonly reservedTypes: data.IReadOnlyCollection<string>;
3294
3342
  }
3295
3343
  /**
3296
3344
  * A security schema, which defines the available security dimensions and their dimension values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0-dev.15",
3
+ "version": "1.1.0-dev.19",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {