@i2analyze/notebook-sdk 1.3.0-dev.1 → 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,20 +3013,19 @@ 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;
2991
3025
  /**
2992
- * Creates and returns a tool view for a plug-in to use.
3026
+ * Creates and returns a tool view with the specified configuration.
2993
3027
  *
2994
- * @param config - The information necessary for creating the tool view where you can define the default opening size and postion.
3028
+ * @param config - The information for creating the tool view, including its default size and position.
2995
3029
  * @returns The new tool view.
2996
3030
  * @i2since 1.3
2997
3031
  */
@@ -3123,7 +3157,7 @@ export declare interface NotebookStatic {
3123
3157
  * @public
3124
3158
  * @i2since 1.0
3125
3159
  */
3126
- 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>;
3127
3161
  }
3128
3162
 
3129
3163
  /**
@@ -3746,6 +3780,11 @@ export declare namespace schema {
3746
3780
  * @i2since 1.0
3747
3781
  */
3748
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;
3749
3788
  /**
3750
3789
  * A set of information that is common to all item types in i2 Notebook.
3751
3790
  * @i2since 1.0
@@ -3835,7 +3874,7 @@ export declare namespace schema {
3835
3874
  */
3836
3875
  export type AnalyzePropertyTypeId = string;
3837
3876
  /**
3838
- * A common specifier for a property type.
3877
+ * A common specifier for a chart property type.
3839
3878
  * @i2since 1.1
3840
3879
  */
3841
3880
  export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
@@ -4095,17 +4134,17 @@ export declare namespace toolview {
4095
4134
  */
4096
4135
  export type ToolViewStateListener = (state: 'open' | 'closed') => void;
4097
4136
  /**
4098
- * The position of the tool view.
4137
+ * The position of the tool view, relative to an edge of the chart.
4099
4138
  * @i2since 1.3
4100
4139
  */
4101
- export type ToolPosition = 'leading' | 'trailing' | 'top' | 'bottom';
4140
+ export type ToolViewPosition = 'leading' | 'trailing' | 'top' | 'bottom';
4102
4141
  /**
4103
4142
  * The size of the tool view.
4104
4143
  * @i2since 1.3
4105
4144
  */
4106
- export type ToolSize = 'small' | 'medium' | 'large';
4145
+ export type ToolViewSize = 'small' | 'medium' | 'large';
4107
4146
  /**
4108
- * A set of information related to the toolview.
4147
+ * A set of information for creating a tool view.
4109
4148
  * @i2since 1.3
4110
4149
  */
4111
4150
  export interface IToolViewConfig {
@@ -4113,26 +4152,30 @@ export declare namespace toolview {
4113
4152
  * Gets the name of the tool view, which appears as a heading in the user interface.
4114
4153
  * @i2since 1.3
4115
4154
  */
4116
- name: string;
4155
+ readonly name: string;
4117
4156
  /**
4118
- * Gets the path to the plug-in view to host in the tool view, relative to the plug-in entry point.
4157
+ * Gets the path to the content to host in the tool view, relative to the plug-in entry point.
4119
4158
  *
4120
- * @remarks For example, setting `path` to '`./`' makes the server request the contents of the folder
4121
- * that contains the entry point.
4159
+ * @remarks
4160
+ * For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
4122
4161
  *
4123
4162
  * @i2since 1.3
4124
4163
  */
4125
- path: string;
4164
+ readonly path: string;
4126
4165
  /**
4127
4166
  * Gets the size of the tool view.
4128
4167
  * @i2since 1.3
4129
4168
  */
4130
- size?: ToolSize;
4169
+ readonly size?: ToolViewSize;
4131
4170
  /**
4132
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
+ *
4133
4176
  * @i2since 1.3
4134
4177
  */
4135
- position?: ToolPosition;
4178
+ readonly position?: ToolViewPosition;
4136
4179
  }
4137
4180
  /**
4138
4181
  * A callback function that handles tool view unload events.
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.1",
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
  }