@i2analyze/notebook-sdk 1.5.0-dev.9 → 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 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, TGroupInfo> {
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, TGroupInfo>;
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, TGroupInfo>;
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, TGroupInfo>;
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, TGroupInfo>;
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.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
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, TGroupInfo>;
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 added group.
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: TGroupInfo): IActionArea<undefined, TGroupInfo>;
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 create a group, use {@link commands.IActionArea.addGroup}. If you want to get a group before
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 added or gotten group.
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: TGroupInfo): IActionArea<undefined, TGroupInfo>;
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 a tab, in the i2 Notebook application ribbon.
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: string;
2112
+ readonly label?: string;
2109
2113
  /**
2110
- * Gets the icon of the group, which is displayed when the group contents are not 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: IIcon;
2117
+ readonly icon?: IIcon;
2114
2118
  }
2115
2119
  /**
2116
- * A group of actions in a popup menu, which do not have a label or an icon.
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
  }
@@ -2155,9 +2160,9 @@ export declare namespace commands {
2155
2160
  */
2156
2161
  setToggledState(value: boolean): void;
2157
2162
  /**
2158
- * Sets whether the action should be hidden - that is, whether it is visible for users to interact with.
2163
+ * Sets whether the action is hidden - that is, whether it is visible to users at all.
2159
2164
  *
2160
- * @param value - `true` to show the action; `false` to hide it.
2165
+ * @param value - `true` to hide the action; `false` to show it.
2161
2166
  * @i2since 1.5
2162
2167
  */
2163
2168
  setHidden(value: boolean): void;
@@ -2206,7 +2211,7 @@ export declare namespace commands {
2206
2211
  * The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2207
2212
  * @i2since 1.4
2208
2213
  */
2209
- readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IMenuGroup>;
2214
+ readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups>;
2210
2215
  /**
2211
2216
  * Gets the area that represents the pop-up menu for chart items.
2212
2217
  *
@@ -2214,7 +2219,7 @@ export declare namespace commands {
2214
2219
  * The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2215
2220
  * @i2since 1.4
2216
2221
  */
2217
- readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IMenuGroup>;
2222
+ readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups>;
2218
2223
  /**
2219
2224
  * Gets the area that represents the pop-up menu for chart items.
2220
2225
  *
@@ -2223,7 +2228,7 @@ export declare namespace commands {
2223
2228
  * @i2since 1.0
2224
2229
  * @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
2225
2230
  */
2226
- readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
2231
+ readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups>;
2227
2232
  /**
2228
2233
  * Unregisters and removes a command and all its actions from the application.
2229
2234
  *
@@ -2239,12 +2244,9 @@ export declare namespace commands {
2239
2244
  export interface IApplicationRibbon {
2240
2245
  /**
2241
2246
  * Gets the area that represents the "Home" tab in the application ribbon.
2242
- *
2243
- * @remarks
2244
- * The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
2245
2247
  * @i2since 1.0
2246
2248
  */
2247
- readonly homeTab: IActionArea<IHomeTabSystemGroups, IGroup>;
2249
+ readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2248
2250
  }
2249
2251
  /**
2250
2252
  * A lookup table for the command identifiers of the default system commands.
@@ -2454,7 +2456,7 @@ export declare namespace commands {
2454
2456
  */
2455
2457
  readonly clipboard: GroupId;
2456
2458
  /**
2457
- * Gets the identifier of the system action group related to link direction operations.
2459
+ * Gets the identifier of the system action group related to link direction.
2458
2460
  * @i2since 1.5
2459
2461
  */
2460
2462
  readonly linkDirection: GroupId;
@@ -2943,8 +2945,8 @@ export declare namespace data {
2943
2945
  */
2944
2946
  reduceRight<U>(callbackfn: (previousValue: U, currentValue: V, currentIndex: number) => U, initialValue: U): U;
2945
2947
  /**
2946
- * Creates a new readonly array instance populated with the object contained in this collection.
2947
- * @returns A readonly array of the objects in the collection.
2948
+ * Returns a new, read-only array that contains all the objects in the collection.
2949
+ * @returns The new array.
2948
2950
  * @i2since 1.5
2949
2951
  */
2950
2952
  toArray(): readonly V[];
@@ -4130,12 +4132,12 @@ export declare namespace schema {
4130
4132
  */
4131
4133
  export interface IChartLinkType extends IChartItemTypeBase {
4132
4134
  /**
4133
- * Gets the valid entity types that can be on the "from" end of a link of this type.
4135
+ * Gets the entity types that are valid for use at the "from" end of links of this type.
4134
4136
  * @i2since 1.5
4135
4137
  */
4136
4138
  fromEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
4137
4139
  /**
4138
- * Gets the valid entity types that can be on the "to" end of a link of this type.
4140
+ * Gets the entity types that are valid for use at the "to" end of links of this type.
4139
4141
  * @i2since 1.5
4140
4142
  */
4141
4143
  toEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
@@ -4274,7 +4276,45 @@ export declare namespace schema {
4274
4276
  * @i2since 1.0
4275
4277
  */
4276
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;
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;
4277
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';
4278
4318
  /**
4279
4319
  * An identifier of a property type in a chart schema.
4280
4320
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.5.0-dev.9",
3
+ "version": "1.5.0",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {