@i2analyze/notebook-sdk 1.3.0-dev.0 → 1.3.0-dev.10

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
  *
@@ -1342,6 +1357,14 @@ export declare namespace chart {
1342
1357
  * @i2since 1.1
1343
1358
  */
1344
1359
  ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
1360
+ /**
1361
+ * Gets all the records in the chart that have the specified item type.
1362
+ *
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.
1365
+ * @i2since 1.3
1366
+ */
1367
+ getRecordsOfType(itemType: schema.ChartItemTypeSpecifier): data.IReadOnlyCollection<records.IChartRecord>;
1345
1368
  }
1346
1369
  /**
1347
1370
  * A change that has occurred to the data in a chart.
@@ -2247,6 +2270,11 @@ export declare namespace commands {
2247
2270
  * @i2since 1.3
2248
2271
  */
2249
2272
  readonly toggleLists: CommandId;
2273
+ /**
2274
+ * Gets the identifier of the "Export to PDF" system command.
2275
+ * @i2since 1.3
2276
+ */
2277
+ readonly exportPdf: CommandId;
2250
2278
  }
2251
2279
  /**
2252
2280
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -2766,6 +2794,13 @@ export declare namespace data {
2766
2794
  * @i2since 1.0
2767
2795
  */
2768
2796
  export interface IKeyedReadOnlyCollection<K, V> extends IReadOnlyCollection<V> {
2797
+ /**
2798
+ * Retrieves an iterator over all the objects in the collection.
2799
+ *
2800
+ * @returns An iterable collection in which the keys are of type `K` and the values are of type `V`.
2801
+ * @i2since 1.3
2802
+ */
2803
+ entries(): Iterable<[K, V]>;
2769
2804
  /**
2770
2805
  * Retrieves the object associated with the specified key.
2771
2806
  *
@@ -2978,16 +3013,23 @@ export declare interface IEntryPointApi extends app.IApplication {
2978
3013
  */
2979
3014
  readonly formatter: data.IFormatter;
2980
3015
  /**
2981
- * Creates and returns a tool view for a plug-in to use.
3016
+ * Creates and returns a tool view with the specified name and content.
2982
3017
  *
2983
3018
  * @param name - The name of the tool view, which appears as a heading in the user interface.
2984
- * @param path - The path to the plug-in view to host in the tool view, relative to the plug-in entry point.
2985
- * For example, setting `path` to '`./`' makes the server request the contents of the folder
2986
- * that contains the entry point.
3019
+ * @param path - The path to the content to host in the tool view, relative to the plug-in entry point.
3020
+ * For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
2987
3021
  * @returns The new tool view.
2988
3022
  * @i2since 1.0
2989
3023
  */
2990
3024
  createToolView(name: string, path: string): toolview.IToolView;
3025
+ /**
3026
+ * Creates and returns a tool view with the specified configuration.
3027
+ *
3028
+ * @param config - The information for creating the tool view, including its default size and position.
3029
+ * @returns The new tool view.
3030
+ * @i2since 1.3
3031
+ */
3032
+ createToolView(config: toolview.IToolViewConfig): toolview.IToolView;
2991
3033
  /**
2992
3034
  * Gets the core API for custom commands.
2993
3035
  * @i2since 1.0
@@ -3115,7 +3157,7 @@ export declare interface NotebookStatic {
3115
3157
  * @public
3116
3158
  * @i2since 1.0
3117
3159
  */
3118
- getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2'): Promise<IEntryPointApi>;
3160
+ getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3'): Promise<IEntryPointApi>;
3119
3161
  }
3120
3162
 
3121
3163
  /**
@@ -3738,6 +3780,11 @@ export declare namespace schema {
3738
3780
  * @i2since 1.0
3739
3781
  */
3740
3782
  export type AnalyzeItemTypeId = string;
3783
+ /**
3784
+ * A common specifier for a chart item type.
3785
+ * @i2since 1.3
3786
+ */
3787
+ export type ChartItemTypeSpecifier = ChartItemTypeId | IChartItemType;
3741
3788
  /**
3742
3789
  * A set of information that is common to all item types in i2 Notebook.
3743
3790
  * @i2since 1.0
@@ -3827,7 +3874,7 @@ export declare namespace schema {
3827
3874
  */
3828
3875
  export type AnalyzePropertyTypeId = string;
3829
3876
  /**
3830
- * A common specifier for a property type.
3877
+ * A common specifier for a chart property type.
3831
3878
  * @i2since 1.1
3832
3879
  */
3833
3880
  export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
@@ -4086,6 +4133,50 @@ export declare namespace toolview {
4086
4133
  * @i2since 1.0
4087
4134
  */
4088
4135
  export type ToolViewStateListener = (state: 'open' | 'closed') => void;
4136
+ /**
4137
+ * The position of the tool view, relative to an edge of the chart.
4138
+ * @i2since 1.3
4139
+ */
4140
+ export type ToolViewPosition = 'leading' | 'trailing' | 'top' | 'bottom';
4141
+ /**
4142
+ * The size of the tool view.
4143
+ * @i2since 1.3
4144
+ */
4145
+ export type ToolViewSize = 'small' | 'medium' | 'large';
4146
+ /**
4147
+ * A set of information for creating a tool view.
4148
+ * @i2since 1.3
4149
+ */
4150
+ export interface IToolViewConfig {
4151
+ /**
4152
+ * Gets the name of the tool view, which appears as a heading in the user interface.
4153
+ * @i2since 1.3
4154
+ */
4155
+ readonly name: string;
4156
+ /**
4157
+ * Gets the path to the content to host in the tool view, relative to the plug-in entry point.
4158
+ *
4159
+ * @remarks
4160
+ * For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
4161
+ *
4162
+ * @i2since 1.3
4163
+ */
4164
+ readonly path: string;
4165
+ /**
4166
+ * Gets the size of the tool view.
4167
+ * @i2since 1.3
4168
+ */
4169
+ readonly size?: ToolViewSize;
4170
+ /**
4171
+ * Gets the position of the tool view.
4172
+ *
4173
+ * @remarks
4174
+ * The tool view is created next to the specified edge of the chart in the browser window.
4175
+ *
4176
+ * @i2since 1.3
4177
+ */
4178
+ readonly position?: ToolViewPosition;
4179
+ }
4089
4180
  /**
4090
4181
  * A callback function that handles tool view unload events.
4091
4182
  *
@@ -4174,7 +4265,8 @@ export declare namespace toolview {
4174
4265
  clear(): void;
4175
4266
  }
4176
4267
  /**
4177
- * A tool view, as returned by {@link IEntryPointApi.createToolView}.
4268
+ * A tool view, as returned by {@link IEntryPointApi.(createToolView:1)}.
4269
+ *
4178
4270
  * @i2since 1.0
4179
4271
  */
4180
4272
  export interface IToolView {
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation.
3
3
  * © N.Harris Computer Corporation (2022)
4
4
  */
5
- const apiVersion = '1.2';
5
+ const apiVersion = '1.3';
6
6
  /**
7
7
  * Retrieves the plug-in entry point API.
8
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.3.0-dev.0",
3
+ "version": "1.3.0-dev.10",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -14,8 +14,8 @@
14
14
  "devDependencies": {
15
15
  "@ibmi2/eslint-config": "^13.0.0",
16
16
  "@ibmi2/webui-lerna-build-scripts": "^5.1.0",
17
- "@microsoft/api-documenter": "7.13.33",
18
- "@microsoft/api-extractor": "7.18.4",
17
+ "@microsoft/api-documenter": "7.19.28",
18
+ "@microsoft/api-extractor": "7.33.8",
19
19
  "concurrently": "^7.3.0",
20
20
  "copyfiles": "^2.4.1",
21
21
  "rimraf": "^3.0.0",
@@ -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
  }