@i2analyze/notebook-sdk 1.3.0-dev.8 → 1.3.0-dev.9

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.
@@ -1327,6 +1327,21 @@ export declare namespace chart {
1327
1327
  * @i2since 1.0
1328
1328
  */
1329
1329
  readonly selection: ISelection;
1330
+ /**
1331
+ * Gets all the entity types in use on the chart.
1332
+ * @i2since 1.3
1333
+ */
1334
+ readonly entityTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartEntityType>;
1335
+ /**
1336
+ * Gets all the link types in use on the chart.
1337
+ * @i2since 1.3
1338
+ */
1339
+ readonly linkTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartLinkType>;
1340
+ /**
1341
+ * Gets all the entity types and link types in use on the chart.
1342
+ * @i2since 1.3
1343
+ */
1344
+ readonly itemTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartItemType>;
1330
1345
  /**
1331
1346
  * Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
1332
1347
  *
@@ -1343,17 +1358,13 @@ export declare namespace chart {
1343
1358
  */
1344
1359
  ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
1345
1360
  /**
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.
1361
+ * Gets all the records in the chart that have the specified item type.
1351
1362
  *
1352
- * @param recordTypes - The types of record on the chart.
1353
- * @returns A collection of records, indexed by record type identifier.
1363
+ * @param itemType - The chart item type of the records to retrieve.
1364
+ * @returns A collection of records that might be empty if the chart contains no records of the specified type.
1354
1365
  * @i2since 1.3
1355
1366
  */
1356
- getRecordsByType(recordTypes?: schema.RecordTypeSpecifier | Iterable<schema.RecordTypeSpecifier>): data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, data.IReadOnlyCollection<records.IChartRecord>>;
1367
+ getRecordsOfType(itemType: schema.ChartItemTypeSpecifier): data.IReadOnlyCollection<records.IChartRecord>;
1357
1368
  }
1358
1369
  /**
1359
1370
  * A change that has occurred to the data in a chart.
@@ -2779,9 +2790,9 @@ export declare namespace data {
2779
2790
  */
2780
2791
  export interface IKeyedReadOnlyCollection<K, V> extends IReadOnlyCollection<V> {
2781
2792
  /**
2782
- * Returns a collection of key-value pairs that can be used to iterate over all the items in the collection.
2793
+ * Retrieves an iterator over all the objects in the collection.
2783
2794
  *
2784
- * @returns An iterable collection of key-value pairs where the key is of type 'K' and the value is of type 'V'.
2795
+ * @returns An iterable collection in which the keys are of type `K` and the values are of type `V`.
2785
2796
  * @i2since 1.3
2786
2797
  */
2787
2798
  entries(): Iterable<[K, V]>;
@@ -3765,10 +3776,10 @@ export declare namespace schema {
3765
3776
  */
3766
3777
  export type AnalyzeItemTypeId = string;
3767
3778
  /**
3768
- * A common specifier for a record type.
3779
+ * A common specifier for a chart item type.
3769
3780
  * @i2since 1.3
3770
3781
  */
3771
- export type RecordTypeSpecifier = ChartItemTypeId | IChartItemType;
3782
+ export type ChartItemTypeSpecifier = ChartItemTypeId | IChartItemType;
3772
3783
  /**
3773
3784
  * A set of information that is common to all item types in i2 Notebook.
3774
3785
  * @i2since 1.0
@@ -3858,7 +3869,7 @@ export declare namespace schema {
3858
3869
  */
3859
3870
  export type AnalyzePropertyTypeId = string;
3860
3871
  /**
3861
- * A common specifier for a property type.
3872
+ * A common specifier for a chart property type.
3862
3873
  * @i2since 1.1
3863
3874
  */
3864
3875
  export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.3.0-dev.8",
3
+ "version": "1.3.0-dev.9",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {