@i2analyze/notebook-sdk 1.3.0-dev.1 → 1.3.0-dev.11
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/lib/gen/notebook-sdk-public.d.ts +67 -19
- package/lib/index.js +1 -1
- package/package.json +6 -3
|
@@ -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,16 @@ 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;
|
|
2278
|
+
/**
|
|
2279
|
+
* Gets the identifier of the system command that allows users to share records with each other.
|
|
2280
|
+
* @i2since 1.3
|
|
2281
|
+
*/
|
|
2282
|
+
readonly shareRecords: CommandId;
|
|
2250
2283
|
}
|
|
2251
2284
|
/**
|
|
2252
2285
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -2766,6 +2799,13 @@ export declare namespace data {
|
|
|
2766
2799
|
* @i2since 1.0
|
|
2767
2800
|
*/
|
|
2768
2801
|
export interface IKeyedReadOnlyCollection<K, V> extends IReadOnlyCollection<V> {
|
|
2802
|
+
/**
|
|
2803
|
+
* Retrieves an iterator over all the objects in the collection.
|
|
2804
|
+
*
|
|
2805
|
+
* @returns An iterable collection in which the keys are of type `K` and the values are of type `V`.
|
|
2806
|
+
* @i2since 1.3
|
|
2807
|
+
*/
|
|
2808
|
+
entries(): Iterable<[K, V]>;
|
|
2769
2809
|
/**
|
|
2770
2810
|
* Retrieves the object associated with the specified key.
|
|
2771
2811
|
*
|
|
@@ -2978,20 +3018,19 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
2978
3018
|
*/
|
|
2979
3019
|
readonly formatter: data.IFormatter;
|
|
2980
3020
|
/**
|
|
2981
|
-
* Creates and returns a tool view
|
|
3021
|
+
* Creates and returns a tool view with the specified name and content.
|
|
2982
3022
|
*
|
|
2983
3023
|
* @param name - The name of the tool view, which appears as a heading in the user interface.
|
|
2984
|
-
* @param path - The path to the
|
|
2985
|
-
* For example, setting `path` to '`./`' makes the server
|
|
2986
|
-
* that contains the entry point.
|
|
3024
|
+
* @param path - The path to the content to host in the tool view, relative to the plug-in entry point.
|
|
3025
|
+
* For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
|
|
2987
3026
|
* @returns The new tool view.
|
|
2988
3027
|
* @i2since 1.0
|
|
2989
3028
|
*/
|
|
2990
3029
|
createToolView(name: string, path: string): toolview.IToolView;
|
|
2991
3030
|
/**
|
|
2992
|
-
* Creates and returns a tool view
|
|
3031
|
+
* Creates and returns a tool view with the specified configuration.
|
|
2993
3032
|
*
|
|
2994
|
-
* @param config - The information
|
|
3033
|
+
* @param config - The information for creating the tool view, including its default size and position.
|
|
2995
3034
|
* @returns The new tool view.
|
|
2996
3035
|
* @i2since 1.3
|
|
2997
3036
|
*/
|
|
@@ -3123,7 +3162,7 @@ export declare interface NotebookStatic {
|
|
|
3123
3162
|
* @public
|
|
3124
3163
|
* @i2since 1.0
|
|
3125
3164
|
*/
|
|
3126
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2'): Promise<IEntryPointApi>;
|
|
3165
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3'): Promise<IEntryPointApi>;
|
|
3127
3166
|
}
|
|
3128
3167
|
|
|
3129
3168
|
/**
|
|
@@ -3746,6 +3785,11 @@ export declare namespace schema {
|
|
|
3746
3785
|
* @i2since 1.0
|
|
3747
3786
|
*/
|
|
3748
3787
|
export type AnalyzeItemTypeId = string;
|
|
3788
|
+
/**
|
|
3789
|
+
* A common specifier for a chart item type.
|
|
3790
|
+
* @i2since 1.3
|
|
3791
|
+
*/
|
|
3792
|
+
export type ChartItemTypeSpecifier = ChartItemTypeId | IChartItemType;
|
|
3749
3793
|
/**
|
|
3750
3794
|
* A set of information that is common to all item types in i2 Notebook.
|
|
3751
3795
|
* @i2since 1.0
|
|
@@ -3835,7 +3879,7 @@ export declare namespace schema {
|
|
|
3835
3879
|
*/
|
|
3836
3880
|
export type AnalyzePropertyTypeId = string;
|
|
3837
3881
|
/**
|
|
3838
|
-
* A common specifier for a property type.
|
|
3882
|
+
* A common specifier for a chart property type.
|
|
3839
3883
|
* @i2since 1.1
|
|
3840
3884
|
*/
|
|
3841
3885
|
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
@@ -4095,17 +4139,17 @@ export declare namespace toolview {
|
|
|
4095
4139
|
*/
|
|
4096
4140
|
export type ToolViewStateListener = (state: 'open' | 'closed') => void;
|
|
4097
4141
|
/**
|
|
4098
|
-
* The position of the tool view.
|
|
4142
|
+
* The position of the tool view, relative to an edge of the chart.
|
|
4099
4143
|
* @i2since 1.3
|
|
4100
4144
|
*/
|
|
4101
|
-
export type
|
|
4145
|
+
export type ToolViewPosition = 'leading' | 'trailing' | 'top' | 'bottom';
|
|
4102
4146
|
/**
|
|
4103
4147
|
* The size of the tool view.
|
|
4104
4148
|
* @i2since 1.3
|
|
4105
4149
|
*/
|
|
4106
|
-
export type
|
|
4150
|
+
export type ToolViewSize = 'small' | 'medium' | 'large';
|
|
4107
4151
|
/**
|
|
4108
|
-
* A set of information
|
|
4152
|
+
* A set of information for creating a tool view.
|
|
4109
4153
|
* @i2since 1.3
|
|
4110
4154
|
*/
|
|
4111
4155
|
export interface IToolViewConfig {
|
|
@@ -4113,26 +4157,30 @@ export declare namespace toolview {
|
|
|
4113
4157
|
* Gets the name of the tool view, which appears as a heading in the user interface.
|
|
4114
4158
|
* @i2since 1.3
|
|
4115
4159
|
*/
|
|
4116
|
-
name: string;
|
|
4160
|
+
readonly name: string;
|
|
4117
4161
|
/**
|
|
4118
|
-
* Gets the path to the
|
|
4162
|
+
* Gets the path to the content to host in the tool view, relative to the plug-in entry point.
|
|
4119
4163
|
*
|
|
4120
|
-
* @remarks
|
|
4121
|
-
* that contains the entry point.
|
|
4164
|
+
* @remarks
|
|
4165
|
+
* For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
|
|
4122
4166
|
*
|
|
4123
4167
|
* @i2since 1.3
|
|
4124
4168
|
*/
|
|
4125
|
-
path: string;
|
|
4169
|
+
readonly path: string;
|
|
4126
4170
|
/**
|
|
4127
4171
|
* Gets the size of the tool view.
|
|
4128
4172
|
* @i2since 1.3
|
|
4129
4173
|
*/
|
|
4130
|
-
size?:
|
|
4174
|
+
readonly size?: ToolViewSize;
|
|
4131
4175
|
/**
|
|
4132
4176
|
* Gets the position of the tool view.
|
|
4177
|
+
*
|
|
4178
|
+
* @remarks
|
|
4179
|
+
* The tool view is created next to the specified edge of the chart in the browser window.
|
|
4180
|
+
*
|
|
4133
4181
|
* @i2since 1.3
|
|
4134
4182
|
*/
|
|
4135
|
-
position?:
|
|
4183
|
+
readonly position?: ToolViewPosition;
|
|
4136
4184
|
}
|
|
4137
4185
|
/**
|
|
4138
4186
|
* A callback function that handles tool view unload events.
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i2analyze/notebook-sdk",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.11",
|
|
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.
|
|
18
|
-
"@microsoft/api-extractor": "7.
|
|
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
|
}
|