@i2analyze/notebook-sdk 1.5.0-dev.8 → 1.5.0
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/README.md +1 -0
- package/lib/gen/notebook-sdk-public.d.ts +82 -30
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ This npm package provides the JavaScript library for developing plug-ins and a t
|
|
|
8
8
|
|
|
9
9
|
| `@i2analyze/notebook-sdk` version | i2 Analyze version |
|
|
10
10
|
| --------------------------------- | ------------------ |
|
|
11
|
+
| 1.5.\* | 4.4.4.0 |
|
|
11
12
|
| 1.4.\* | 4.4.3.0 |
|
|
12
13
|
| 1.3.\* | 4.4.2.0 |
|
|
13
14
|
| 1.2.\* | 4.4.1.0 |
|
|
@@ -1907,10 +1907,9 @@ export declare namespace commands {
|
|
|
1907
1907
|
* To retrieve areas that represent the entire application ribbon or pop-up menu, use the properties of {@link commands.ICommandApi}.
|
|
1908
1908
|
*
|
|
1909
1909
|
* @typeParam TSystemGroups - The type of the list of system action groups in the area.
|
|
1910
|
-
* @typeParam TGroupInfo - The type of action group that the area supports.
|
|
1911
1910
|
* @i2since 1.0
|
|
1912
1911
|
*/
|
|
1913
|
-
export interface IActionArea<TSystemGroups
|
|
1912
|
+
export interface IActionArea<TSystemGroups> {
|
|
1914
1913
|
/**
|
|
1915
1914
|
* Locates the area of the user interface that appears immediately before a particular action or group of actions.
|
|
1916
1915
|
*
|
|
@@ -1919,7 +1918,7 @@ export declare namespace commands {
|
|
|
1919
1918
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1920
1919
|
* @i2since 1.0
|
|
1921
1920
|
*/
|
|
1922
|
-
before(id: CommandId | GroupId): IActionArea<undefined
|
|
1921
|
+
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1923
1922
|
/**
|
|
1924
1923
|
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1925
1924
|
*
|
|
@@ -1928,7 +1927,7 @@ export declare namespace commands {
|
|
|
1928
1927
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1929
1928
|
* @i2since 1.1
|
|
1930
1929
|
*/
|
|
1931
|
-
before(command: ICommand): IActionArea<undefined
|
|
1930
|
+
before(command: ICommand): IActionArea<undefined>;
|
|
1932
1931
|
/**
|
|
1933
1932
|
* Locates the area of the user interface that appears immediately after a particular action or group of actions.
|
|
1934
1933
|
*
|
|
@@ -1937,7 +1936,7 @@ export declare namespace commands {
|
|
|
1937
1936
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1938
1937
|
* @i2since 1.0
|
|
1939
1938
|
*/
|
|
1940
|
-
after(id: CommandId | GroupId): IActionArea<undefined
|
|
1939
|
+
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1941
1940
|
/**
|
|
1942
1941
|
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1943
1942
|
*
|
|
@@ -1946,16 +1945,16 @@ export declare namespace commands {
|
|
|
1946
1945
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1947
1946
|
* @i2since 1.1
|
|
1948
1947
|
*/
|
|
1949
|
-
after(command: ICommand): IActionArea<undefined
|
|
1948
|
+
after(command: ICommand): IActionArea<undefined>;
|
|
1950
1949
|
/**
|
|
1951
1950
|
* Locates the area of the user interface that is occupied by a particular group of actions.
|
|
1952
1951
|
*
|
|
1953
1952
|
* @param id - The identifier of the group to use as a reference.
|
|
1954
1953
|
* @returns An area of the i2 Notebook user interface that can display actions and groups of actions.
|
|
1955
|
-
* @throws `Error` if the `id` was not a valid {@link commands.
|
|
1954
|
+
* @throws `Error` if the `id` was not a valid {@link commands.GroupId | GroupId}.
|
|
1956
1955
|
* @i2since 1.0
|
|
1957
1956
|
*/
|
|
1958
|
-
getGroup(id: GroupId): IActionArea<undefined
|
|
1957
|
+
getGroup(id: GroupId): IActionArea<undefined>;
|
|
1959
1958
|
/**
|
|
1960
1959
|
* Removes an action or group of actions from the user interface.
|
|
1961
1960
|
*
|
|
@@ -1981,25 +1980,25 @@ export declare namespace commands {
|
|
|
1981
1980
|
* Adds the specified group of actions to the user interface.
|
|
1982
1981
|
*
|
|
1983
1982
|
* @param group - The group to add.
|
|
1984
|
-
* @returns An object that you can use to add actions or a further group to the
|
|
1983
|
+
* @returns An object that you can use to add actions or a further group to the new group.
|
|
1985
1984
|
* @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
|
|
1986
1985
|
* @i2since 1.0
|
|
1987
1986
|
*/
|
|
1988
|
-
addGroup(group:
|
|
1987
|
+
addGroup(group: IGroup): IActionArea<undefined>;
|
|
1989
1988
|
/**
|
|
1990
1989
|
* Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
|
|
1991
1990
|
*
|
|
1992
1991
|
* @remarks
|
|
1993
|
-
* In general, if you want to
|
|
1992
|
+
* In general, if you want to add a group, use {@link commands.IActionArea.addGroup}. If you want to get a group before
|
|
1994
1993
|
* surfacing commands or adding a group to it, use {@link commands.IActionArea.getGroup}. However, if you are creating multiple
|
|
1995
1994
|
* plug-ins that want to use the same group, and these plug-ins can be deployed independently, then you should use this method.
|
|
1996
1995
|
*
|
|
1997
1996
|
* @param group - The group to add or get.
|
|
1998
|
-
* @returns An object that you can use to add actions or a further group to the
|
|
1997
|
+
* @returns An object that you can use to add actions or a further group to the new or existing group.
|
|
1999
1998
|
* @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
|
|
2000
1999
|
* @i2since 1.0
|
|
2001
2000
|
*/
|
|
2002
|
-
addOrGetGroup(group:
|
|
2001
|
+
addOrGetGroup(group: IGroup): IActionArea<undefined>;
|
|
2003
2002
|
/**
|
|
2004
2003
|
* Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
|
|
2005
2004
|
* @i2since 1.0
|
|
@@ -2095,26 +2094,32 @@ export declare namespace commands {
|
|
|
2095
2094
|
* @i2since 1.0
|
|
2096
2095
|
*/
|
|
2097
2096
|
readonly id: GroupId;
|
|
2097
|
+
/**
|
|
2098
|
+
* Indicates whether the group is initially expanded (`false`) or collapsed (`true`) in the user interface.
|
|
2099
|
+
* @i2since 1.5
|
|
2100
|
+
*/
|
|
2101
|
+
readonly isCollapsed?: boolean;
|
|
2098
2102
|
}
|
|
2099
2103
|
/**
|
|
2100
|
-
* A group of actions in
|
|
2104
|
+
* A group of actions in either the i2 Notebook application ribbon or a popup menu.
|
|
2101
2105
|
* @i2since 1.0
|
|
2102
2106
|
*/
|
|
2103
2107
|
export interface IGroup extends IGroupBase {
|
|
2104
2108
|
/**
|
|
2105
|
-
* Gets the label of the group, which is displayed to users.
|
|
2109
|
+
* Gets the label of the group, which is displayed to users unless the group is both expanded and in a popup menu.
|
|
2106
2110
|
* @i2since 1.0
|
|
2107
2111
|
*/
|
|
2108
|
-
readonly label
|
|
2112
|
+
readonly label?: string;
|
|
2109
2113
|
/**
|
|
2110
|
-
* Gets the icon of the group, which is displayed
|
|
2114
|
+
* Gets the icon of the group, which is displayed if the group is collapsed.
|
|
2111
2115
|
* @i2since 1.0
|
|
2112
2116
|
*/
|
|
2113
|
-
readonly icon
|
|
2117
|
+
readonly icon?: IIcon;
|
|
2114
2118
|
}
|
|
2115
2119
|
/**
|
|
2116
|
-
* A group of actions in a popup menu
|
|
2120
|
+
* A group of actions in a popup menu that do not have a label or an icon.
|
|
2117
2121
|
* @i2since 1.2
|
|
2122
|
+
* @deprecated Deprecated since version 1.5. Use {@link commands.IGroup} instead.
|
|
2118
2123
|
*/
|
|
2119
2124
|
export interface IMenuGroup extends IGroupBase {
|
|
2120
2125
|
}
|
|
@@ -2154,6 +2159,13 @@ export declare namespace commands {
|
|
|
2154
2159
|
* @i2since 1.0
|
|
2155
2160
|
*/
|
|
2156
2161
|
setToggledState(value: boolean): void;
|
|
2162
|
+
/**
|
|
2163
|
+
* Sets whether the action is hidden - that is, whether it is visible to users at all.
|
|
2164
|
+
*
|
|
2165
|
+
* @param value - `true` to hide the action; `false` to show it.
|
|
2166
|
+
* @i2since 1.5
|
|
2167
|
+
*/
|
|
2168
|
+
setHidden(value: boolean): void;
|
|
2157
2169
|
}
|
|
2158
2170
|
/**
|
|
2159
2171
|
* A collection of methods and properties that allow custom commands to interact with i2 Notebook.
|
|
@@ -2199,7 +2211,7 @@ export declare namespace commands {
|
|
|
2199
2211
|
* The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2200
2212
|
* @i2since 1.4
|
|
2201
2213
|
*/
|
|
2202
|
-
readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups
|
|
2214
|
+
readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups>;
|
|
2203
2215
|
/**
|
|
2204
2216
|
* Gets the area that represents the pop-up menu for chart items.
|
|
2205
2217
|
*
|
|
@@ -2207,7 +2219,7 @@ export declare namespace commands {
|
|
|
2207
2219
|
* The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2208
2220
|
* @i2since 1.4
|
|
2209
2221
|
*/
|
|
2210
|
-
readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups
|
|
2222
|
+
readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups>;
|
|
2211
2223
|
/**
|
|
2212
2224
|
* Gets the area that represents the pop-up menu for chart items.
|
|
2213
2225
|
*
|
|
@@ -2216,7 +2228,7 @@ export declare namespace commands {
|
|
|
2216
2228
|
* @i2since 1.0
|
|
2217
2229
|
* @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2218
2230
|
*/
|
|
2219
|
-
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups
|
|
2231
|
+
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups>;
|
|
2220
2232
|
/**
|
|
2221
2233
|
* Unregisters and removes a command and all its actions from the application.
|
|
2222
2234
|
*
|
|
@@ -2232,12 +2244,9 @@ export declare namespace commands {
|
|
|
2232
2244
|
export interface IApplicationRibbon {
|
|
2233
2245
|
/**
|
|
2234
2246
|
* Gets the area that represents the "Home" tab in the application ribbon.
|
|
2235
|
-
*
|
|
2236
|
-
* @remarks
|
|
2237
|
-
* The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
|
|
2238
2247
|
* @i2since 1.0
|
|
2239
2248
|
*/
|
|
2240
|
-
readonly homeTab: IActionArea<IHomeTabSystemGroups
|
|
2249
|
+
readonly homeTab: IActionArea<IHomeTabSystemGroups>;
|
|
2241
2250
|
}
|
|
2242
2251
|
/**
|
|
2243
2252
|
* A lookup table for the command identifiers of the default system commands.
|
|
@@ -2446,6 +2455,11 @@ export declare namespace commands {
|
|
|
2446
2455
|
* @i2since 1.4
|
|
2447
2456
|
*/
|
|
2448
2457
|
readonly clipboard: GroupId;
|
|
2458
|
+
/**
|
|
2459
|
+
* Gets the identifier of the system action group related to link direction.
|
|
2460
|
+
* @i2since 1.5
|
|
2461
|
+
*/
|
|
2462
|
+
readonly linkDirection: GroupId;
|
|
2449
2463
|
}
|
|
2450
2464
|
/**
|
|
2451
2465
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
@@ -2931,8 +2945,8 @@ export declare namespace data {
|
|
|
2931
2945
|
*/
|
|
2932
2946
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: V, currentIndex: number) => U, initialValue: U): U;
|
|
2933
2947
|
/**
|
|
2934
|
-
*
|
|
2935
|
-
* @returns
|
|
2948
|
+
* Returns a new, read-only array that contains all the objects in the collection.
|
|
2949
|
+
* @returns The new array.
|
|
2936
2950
|
* @i2since 1.5
|
|
2937
2951
|
*/
|
|
2938
2952
|
toArray(): readonly V[];
|
|
@@ -4118,12 +4132,12 @@ export declare namespace schema {
|
|
|
4118
4132
|
*/
|
|
4119
4133
|
export interface IChartLinkType extends IChartItemTypeBase {
|
|
4120
4134
|
/**
|
|
4121
|
-
* Gets the
|
|
4135
|
+
* Gets the entity types that are valid for use at the "from" end of links of this type.
|
|
4122
4136
|
* @i2since 1.5
|
|
4123
4137
|
*/
|
|
4124
4138
|
fromEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
|
|
4125
4139
|
/**
|
|
4126
|
-
* Gets the
|
|
4140
|
+
* Gets the entity types that are valid for use at the "to" end of links of this type.
|
|
4127
4141
|
* @i2since 1.5
|
|
4128
4142
|
*/
|
|
4129
4143
|
toEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
|
|
@@ -4262,7 +4276,45 @@ export declare namespace schema {
|
|
|
4262
4276
|
* @i2since 1.0
|
|
4263
4277
|
*/
|
|
4264
4278
|
readonly sourceReferenceSchema: ISourceReferenceSchema;
|
|
4279
|
+
/**
|
|
4280
|
+
* Gets information about the schema where the type definition is located.
|
|
4281
|
+
* @i2since 1.5
|
|
4282
|
+
*/
|
|
4283
|
+
readonly origin: ISchemaInfo;
|
|
4265
4284
|
}
|
|
4285
|
+
/**
|
|
4286
|
+
* Information about a schema in an i2 Analyze deployment.
|
|
4287
|
+
* @i2since 1.5
|
|
4288
|
+
*/
|
|
4289
|
+
export interface ISchemaInfo {
|
|
4290
|
+
/**
|
|
4291
|
+
* Gets the type of the schema.
|
|
4292
|
+
* @i2since 1.5
|
|
4293
|
+
*/
|
|
4294
|
+
readonly type: SchemaType;
|
|
4295
|
+
/**
|
|
4296
|
+
* Gets the identifier of the schema.
|
|
4297
|
+
* @i2since 1.5
|
|
4298
|
+
*/
|
|
4299
|
+
readonly id?: string;
|
|
4300
|
+
/**
|
|
4301
|
+
* Gets the name of the schema.
|
|
4302
|
+
* @i2since 1.5
|
|
4303
|
+
*/
|
|
4304
|
+
readonly name?: string;
|
|
4305
|
+
}
|
|
4306
|
+
/**
|
|
4307
|
+
* The type of a schema.
|
|
4308
|
+
* @i2since 1.5
|
|
4309
|
+
*
|
|
4310
|
+
* @remarks
|
|
4311
|
+
* The possible values are:
|
|
4312
|
+
* - `infostore`: The Information Store schema.
|
|
4313
|
+
* - `gateway`: A gateway schema.
|
|
4314
|
+
* - `connector`: A connector schema.
|
|
4315
|
+
* - `unknown`: An unknown schema, which can denote an orphaned item type.
|
|
4316
|
+
*/
|
|
4317
|
+
export type SchemaType = 'infostore' | 'gateway' | 'connector' | 'unknown';
|
|
4266
4318
|
/**
|
|
4267
4319
|
* An identifier of a property type in a chart schema.
|
|
4268
4320
|
* @i2since 1.0
|