@i2analyze/notebook-sdk 1.3.0-dev.5 → 1.3.0-dev.6

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.
@@ -1342,6 +1342,18 @@ export declare namespace chart {
1342
1342
  * @i2since 1.1
1343
1343
  */
1344
1344
  ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
1345
+ /**
1346
+ * Gets records on the chart grouped by record type.
1347
+ *
1348
+ * @remarks
1349
+ * When record type is specified, the function returns only the record of that type, grouped accordingly.
1350
+ * If no record type is specified, all record types on the chart are returned.
1351
+ *
1352
+ * @param recordTypes - The types of record on the chart.
1353
+ * @returns A collection of records, indexed by record type identifier.
1354
+ * @i2since 1.3
1355
+ */
1356
+ getRecordsByType(recordTypes?: schema.RecordTypeSpecifier | Iterable<schema.RecordTypeSpecifier>): data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, data.IReadOnlyCollection<records.IChartRecord>>;
1345
1357
  }
1346
1358
  /**
1347
1359
  * A change that has occurred to the data in a chart.
@@ -3745,6 +3757,11 @@ export declare namespace schema {
3745
3757
  * @i2since 1.0
3746
3758
  */
3747
3759
  export type AnalyzeItemTypeId = string;
3760
+ /**
3761
+ * A common specifier for a record type.
3762
+ * @i2since 1.3
3763
+ */
3764
+ export type RecordTypeSpecifier = ChartItemTypeId | IChartItemType;
3748
3765
  /**
3749
3766
  * A set of information that is common to all item types in i2 Notebook.
3750
3767
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.3.0-dev.5",
3
+ "version": "1.3.0-dev.6",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -47,5 +47,8 @@
47
47
  "types": "lib/index.d.ts",
48
48
  "volta": {
49
49
  "extends": "../../package.json"
50
+ },
51
+ "engines": {
52
+ "node": ">=14"
50
53
  }
51
54
  }