@i2analyze/notebook-sdk 1.5.0-dev.1 → 1.5.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 +126 -17
- package/package.json +1 -1
|
@@ -279,10 +279,22 @@ export declare namespace app {
|
|
|
279
279
|
*/
|
|
280
280
|
export interface IMutationResult {
|
|
281
281
|
/**
|
|
282
|
-
* Gets the changes that were caused by the mutation.
|
|
282
|
+
* Gets the changes that were caused by the mutation. If only the
|
|
283
|
+
* chart schema changed, the collections in this field are empty.
|
|
283
284
|
* @i2since 1.1
|
|
285
|
+
* @deprecated Deprecated since version 1.5. Use {@link app.IMutationResult.chartChange | chartChange} instead.
|
|
284
286
|
*/
|
|
285
|
-
change: chart.IChartChange;
|
|
287
|
+
readonly change: chart.IChartChange;
|
|
288
|
+
/**
|
|
289
|
+
* Gets the chart changes that were caused by the mutation.
|
|
290
|
+
* @i2since 1.5
|
|
291
|
+
*/
|
|
292
|
+
readonly chartChange?: chart.IChartChange;
|
|
293
|
+
/**
|
|
294
|
+
* Gets the chart schema changes that were caused by the mutation.
|
|
295
|
+
* @i2since 1.5
|
|
296
|
+
*/
|
|
297
|
+
readonly chartSchemaChange?: schema.IChartSchemaChange;
|
|
286
298
|
}
|
|
287
299
|
/**
|
|
288
300
|
* A collection of methods and properties for handling the situation when a user cancels an operation.
|
|
@@ -1553,6 +1565,11 @@ export declare namespace chart {
|
|
|
1553
1565
|
* @i2since 1.0
|
|
1554
1566
|
*/
|
|
1555
1567
|
readonly chartviewchange: ViewListener;
|
|
1568
|
+
/**
|
|
1569
|
+
* Gets the type of the callback method that listens for "chartschemachange" events.
|
|
1570
|
+
* @i2since 1.5
|
|
1571
|
+
*/
|
|
1572
|
+
readonly chartschemachange: ChartSchemaChangeListener;
|
|
1556
1573
|
}
|
|
1557
1574
|
/**
|
|
1558
1575
|
* A mapping of chart event types to their listener options types.
|
|
@@ -1574,6 +1591,11 @@ export declare namespace chart {
|
|
|
1574
1591
|
* @i2since 1.0
|
|
1575
1592
|
*/
|
|
1576
1593
|
readonly chartviewchange: app.ISubscriptionOptions;
|
|
1594
|
+
/**
|
|
1595
|
+
* Gets the type of the object that provides control over "chartschemachange" event listeners.
|
|
1596
|
+
* @i2since 1.5
|
|
1597
|
+
*/
|
|
1598
|
+
readonly chartschemachange: app.ISubscriptionOptions;
|
|
1577
1599
|
}
|
|
1578
1600
|
/**
|
|
1579
1601
|
* A callback function that handles chart selection events.
|
|
@@ -1591,6 +1613,14 @@ export declare namespace chart {
|
|
|
1591
1613
|
* @i2since 1.0
|
|
1592
1614
|
*/
|
|
1593
1615
|
export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1616
|
+
/**
|
|
1617
|
+
* A callback function that handles chart schema change events.
|
|
1618
|
+
*
|
|
1619
|
+
* @param chartSchemaChange - The change in the chart schema that caused the callback to be invoked, and the source of the schema change.
|
|
1620
|
+
* @param applicationContents - The contents of the application, including the current chart.
|
|
1621
|
+
* @i2since 1.5
|
|
1622
|
+
*/
|
|
1623
|
+
export type ChartSchemaChangeListener = (chartSchemaChange: schema.IChartSchemaChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1594
1624
|
/**
|
|
1595
1625
|
* A callback function that handles chart view events.
|
|
1596
1626
|
*
|
|
@@ -1877,10 +1907,10 @@ export declare namespace commands {
|
|
|
1877
1907
|
* To retrieve areas that represent the entire application ribbon or pop-up menu, use the properties of {@link commands.ICommandApi}.
|
|
1878
1908
|
*
|
|
1879
1909
|
* @typeParam TSystemGroups - The type of the list of system action groups in the area.
|
|
1880
|
-
* @typeParam
|
|
1910
|
+
* @typeParam TRootGroup - The type of action group that the area supports.
|
|
1881
1911
|
* @i2since 1.0
|
|
1882
1912
|
*/
|
|
1883
|
-
export interface IActionArea<TSystemGroups,
|
|
1913
|
+
export interface IActionArea<TSystemGroups, TRootGroup> {
|
|
1884
1914
|
/**
|
|
1885
1915
|
* Locates the area of the user interface that appears immediately before a particular action or group of actions.
|
|
1886
1916
|
*
|
|
@@ -1889,7 +1919,7 @@ export declare namespace commands {
|
|
|
1889
1919
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1890
1920
|
* @i2since 1.0
|
|
1891
1921
|
*/
|
|
1892
|
-
before(id: CommandId | GroupId): IActionArea<undefined,
|
|
1922
|
+
before(id: CommandId | GroupId): IActionArea<undefined, TRootGroup>;
|
|
1893
1923
|
/**
|
|
1894
1924
|
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1895
1925
|
*
|
|
@@ -1898,7 +1928,7 @@ export declare namespace commands {
|
|
|
1898
1928
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1899
1929
|
* @i2since 1.1
|
|
1900
1930
|
*/
|
|
1901
|
-
before(command: ICommand): IActionArea<undefined,
|
|
1931
|
+
before(command: ICommand): IActionArea<undefined, TRootGroup>;
|
|
1902
1932
|
/**
|
|
1903
1933
|
* Locates the area of the user interface that appears immediately after a particular action or group of actions.
|
|
1904
1934
|
*
|
|
@@ -1907,7 +1937,7 @@ export declare namespace commands {
|
|
|
1907
1937
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1908
1938
|
* @i2since 1.0
|
|
1909
1939
|
*/
|
|
1910
|
-
after(id: CommandId | GroupId): IActionArea<undefined,
|
|
1940
|
+
after(id: CommandId | GroupId): IActionArea<undefined, TRootGroup>;
|
|
1911
1941
|
/**
|
|
1912
1942
|
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1913
1943
|
*
|
|
@@ -1916,7 +1946,7 @@ export declare namespace commands {
|
|
|
1916
1946
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1917
1947
|
* @i2since 1.1
|
|
1918
1948
|
*/
|
|
1919
|
-
after(command: ICommand): IActionArea<undefined,
|
|
1949
|
+
after(command: ICommand): IActionArea<undefined, TRootGroup>;
|
|
1920
1950
|
/**
|
|
1921
1951
|
* Locates the area of the user interface that is occupied by a particular group of actions.
|
|
1922
1952
|
*
|
|
@@ -1925,7 +1955,7 @@ export declare namespace commands {
|
|
|
1925
1955
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1926
1956
|
* @i2since 1.0
|
|
1927
1957
|
*/
|
|
1928
|
-
getGroup(id: GroupId): IActionArea<undefined,
|
|
1958
|
+
getGroup(id: GroupId): IActionArea<undefined, IGroup>;
|
|
1929
1959
|
/**
|
|
1930
1960
|
* Removes an action or group of actions from the user interface.
|
|
1931
1961
|
*
|
|
@@ -1951,11 +1981,11 @@ export declare namespace commands {
|
|
|
1951
1981
|
* Adds the specified group of actions to the user interface.
|
|
1952
1982
|
*
|
|
1953
1983
|
* @param group - The group to add.
|
|
1954
|
-
* @returns An object that you can use to add actions or a further group to the added group.
|
|
1984
|
+
* @returns An object that you can use to add actions or a further group to the added group based on the child type provided.
|
|
1955
1985
|
* @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
|
|
1956
1986
|
* @i2since 1.0
|
|
1957
1987
|
*/
|
|
1958
|
-
addGroup(group:
|
|
1988
|
+
addGroup(group: TRootGroup): IActionArea<undefined, IGroup>;
|
|
1959
1989
|
/**
|
|
1960
1990
|
* Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
|
|
1961
1991
|
*
|
|
@@ -1969,7 +1999,7 @@ export declare namespace commands {
|
|
|
1969
1999
|
* @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
|
|
1970
2000
|
* @i2since 1.0
|
|
1971
2001
|
*/
|
|
1972
|
-
addOrGetGroup(group:
|
|
2002
|
+
addOrGetGroup(group: TRootGroup): IActionArea<undefined, IGroup>;
|
|
1973
2003
|
/**
|
|
1974
2004
|
* Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
|
|
1975
2005
|
* @i2since 1.0
|
|
@@ -2065,6 +2095,11 @@ export declare namespace commands {
|
|
|
2065
2095
|
* @i2since 1.0
|
|
2066
2096
|
*/
|
|
2067
2097
|
readonly id: GroupId;
|
|
2098
|
+
/**
|
|
2099
|
+
* Gets the type of the group, whether the group is initially expanded or collapsed.
|
|
2100
|
+
* @i2since 1.5
|
|
2101
|
+
*/
|
|
2102
|
+
readonly type?: 'expanded' | 'collapsed';
|
|
2068
2103
|
}
|
|
2069
2104
|
/**
|
|
2070
2105
|
* A group of actions in a tab, in the i2 Notebook application ribbon.
|
|
@@ -2075,16 +2110,34 @@ export declare namespace commands {
|
|
|
2075
2110
|
* Gets the label of the group, which is displayed to users.
|
|
2076
2111
|
* @i2since 1.0
|
|
2077
2112
|
*/
|
|
2078
|
-
readonly label
|
|
2113
|
+
readonly label?: string;
|
|
2079
2114
|
/**
|
|
2080
2115
|
* Gets the icon of the group, which is displayed when the group contents are not displayed.
|
|
2081
2116
|
* @i2since 1.0
|
|
2082
2117
|
*/
|
|
2118
|
+
readonly icon?: IIcon;
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* A group of actions in i2 Notebook application ribbon.
|
|
2122
|
+
* @i2since 1.5
|
|
2123
|
+
*
|
|
2124
|
+
*/
|
|
2125
|
+
export interface IRibbonGroup extends IGroupBase {
|
|
2126
|
+
/**
|
|
2127
|
+
* Gets the label of the group, which is displayed to users.
|
|
2128
|
+
* @i2since 1.5
|
|
2129
|
+
*/
|
|
2130
|
+
readonly label: string;
|
|
2131
|
+
/**
|
|
2132
|
+
* Gets the icon of the group, which is displayed when the group contents are not displayed.
|
|
2133
|
+
* @i2since 1.5
|
|
2134
|
+
*/
|
|
2083
2135
|
readonly icon: IIcon;
|
|
2084
2136
|
}
|
|
2085
2137
|
/**
|
|
2086
2138
|
* A group of actions in a popup menu, which do not have a label or an icon.
|
|
2087
2139
|
* @i2since 1.2
|
|
2140
|
+
* @deprecated Deprecated since version 1.5. Use {@link commands.IGroup}instead.
|
|
2088
2141
|
*/
|
|
2089
2142
|
export interface IMenuGroup extends IGroupBase {
|
|
2090
2143
|
}
|
|
@@ -2110,6 +2163,13 @@ export declare namespace commands {
|
|
|
2110
2163
|
* @i2since 1.0
|
|
2111
2164
|
*/
|
|
2112
2165
|
setEnabled(value: boolean): void;
|
|
2166
|
+
/**
|
|
2167
|
+
* Sets the icon for the action.
|
|
2168
|
+
*
|
|
2169
|
+
* @param value - An icon for the action.
|
|
2170
|
+
* @i2since 1.5
|
|
2171
|
+
*/
|
|
2172
|
+
setIcon(value: IIcon): void;
|
|
2113
2173
|
/**
|
|
2114
2174
|
* Sets whether the action is toggled "on" or "off" - that is, whether it appears to be active or inactive.
|
|
2115
2175
|
*
|
|
@@ -2117,6 +2177,13 @@ export declare namespace commands {
|
|
|
2117
2177
|
* @i2since 1.0
|
|
2118
2178
|
*/
|
|
2119
2179
|
setToggledState(value: boolean): void;
|
|
2180
|
+
/**
|
|
2181
|
+
* Sets whether the action should be hidden - that is, whether it is visible for users to interact with.
|
|
2182
|
+
*
|
|
2183
|
+
* @param value - `true` to show the action; `false` to hide it.
|
|
2184
|
+
* @i2since 1.5
|
|
2185
|
+
*/
|
|
2186
|
+
setHidden(value: boolean): void;
|
|
2120
2187
|
}
|
|
2121
2188
|
/**
|
|
2122
2189
|
* A collection of methods and properties that allow custom commands to interact with i2 Notebook.
|
|
@@ -2162,7 +2229,7 @@ export declare namespace commands {
|
|
|
2162
2229
|
* The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2163
2230
|
* @i2since 1.4
|
|
2164
2231
|
*/
|
|
2165
|
-
readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups,
|
|
2232
|
+
readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IGroup>;
|
|
2166
2233
|
/**
|
|
2167
2234
|
* Gets the area that represents the pop-up menu for chart items.
|
|
2168
2235
|
*
|
|
@@ -2170,7 +2237,7 @@ export declare namespace commands {
|
|
|
2170
2237
|
* The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2171
2238
|
* @i2since 1.4
|
|
2172
2239
|
*/
|
|
2173
|
-
readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups,
|
|
2240
|
+
readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IGroup>;
|
|
2174
2241
|
/**
|
|
2175
2242
|
* Gets the area that represents the pop-up menu for chart items.
|
|
2176
2243
|
*
|
|
@@ -2179,7 +2246,7 @@ export declare namespace commands {
|
|
|
2179
2246
|
* @i2since 1.0
|
|
2180
2247
|
* @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2181
2248
|
*/
|
|
2182
|
-
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups,
|
|
2249
|
+
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IGroup>;
|
|
2183
2250
|
/**
|
|
2184
2251
|
* Unregisters and removes a command and all its actions from the application.
|
|
2185
2252
|
*
|
|
@@ -2200,7 +2267,7 @@ export declare namespace commands {
|
|
|
2200
2267
|
* The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
|
|
2201
2268
|
* @i2since 1.0
|
|
2202
2269
|
*/
|
|
2203
|
-
readonly homeTab: IActionArea<IHomeTabSystemGroups,
|
|
2270
|
+
readonly homeTab: IActionArea<IHomeTabSystemGroups, IRibbonGroup>;
|
|
2204
2271
|
}
|
|
2205
2272
|
/**
|
|
2206
2273
|
* A lookup table for the command identifiers of the default system commands.
|
|
@@ -2302,6 +2369,11 @@ export declare namespace commands {
|
|
|
2302
2369
|
* @i2since 1.1
|
|
2303
2370
|
*/
|
|
2304
2371
|
readonly addToMap: CommandId;
|
|
2372
|
+
/**
|
|
2373
|
+
* Gets the identifier of the system command that opens the i2 Notebook importer.
|
|
2374
|
+
* @i2since 1.5
|
|
2375
|
+
*/
|
|
2376
|
+
readonly openImporter: CommandId;
|
|
2305
2377
|
/**
|
|
2306
2378
|
* Gets the identifier of the system command that opens a 360 view of the selected Information Store entity record.
|
|
2307
2379
|
* @i2since 1.2
|
|
@@ -2404,6 +2476,11 @@ export declare namespace commands {
|
|
|
2404
2476
|
* @i2since 1.4
|
|
2405
2477
|
*/
|
|
2406
2478
|
readonly clipboard: GroupId;
|
|
2479
|
+
/**
|
|
2480
|
+
* Gets the identifier of the system action group related to link direction operations.
|
|
2481
|
+
* @i2since 1.5
|
|
2482
|
+
*/
|
|
2483
|
+
readonly linkDirection: GroupId;
|
|
2407
2484
|
}
|
|
2408
2485
|
/**
|
|
2409
2486
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
@@ -2888,6 +2965,12 @@ export declare namespace data {
|
|
|
2888
2965
|
* @i2since 1.0
|
|
2889
2966
|
*/
|
|
2890
2967
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: V, currentIndex: number) => U, initialValue: U): U;
|
|
2968
|
+
/**
|
|
2969
|
+
* Creates a new readonly array instance populated with the object contained in this collection.
|
|
2970
|
+
* @returns A readonly array of the objects in the collection.
|
|
2971
|
+
* @i2since 1.5
|
|
2972
|
+
*/
|
|
2973
|
+
toArray(): readonly V[];
|
|
2891
2974
|
/**
|
|
2892
2975
|
* Returns an object that can be used to iterate over all objects in the collection.
|
|
2893
2976
|
*
|
|
@@ -4069,6 +4152,16 @@ export declare namespace schema {
|
|
|
4069
4152
|
* @i2since 1.0
|
|
4070
4153
|
*/
|
|
4071
4154
|
export interface IChartLinkType extends IChartItemTypeBase {
|
|
4155
|
+
/**
|
|
4156
|
+
* Gets the valid entity types that can be on the "from" end of a link of this type.
|
|
4157
|
+
* @i2since 1.5
|
|
4158
|
+
*/
|
|
4159
|
+
fromEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
|
|
4160
|
+
/**
|
|
4161
|
+
* Gets the valid entity types that can be on the "to" end of a link of this type.
|
|
4162
|
+
* @i2since 1.5
|
|
4163
|
+
*/
|
|
4164
|
+
toEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
|
|
4072
4165
|
}
|
|
4073
4166
|
/**
|
|
4074
4167
|
* A part of a label that consists of a literal string.
|
|
@@ -4456,6 +4549,22 @@ export declare namespace schema {
|
|
|
4456
4549
|
*/
|
|
4457
4550
|
readonly description: string;
|
|
4458
4551
|
}
|
|
4552
|
+
/**
|
|
4553
|
+
* A change that has occurred to an i2 Notebook chart schema.
|
|
4554
|
+
* @i2since 1.5
|
|
4555
|
+
*/
|
|
4556
|
+
export interface IChartSchemaChange {
|
|
4557
|
+
/**
|
|
4558
|
+
* Gets the item types that were added to the schema.
|
|
4559
|
+
* @i2since 1.5
|
|
4560
|
+
*/
|
|
4561
|
+
readonly addedTypes: data.IReadOnlyCollection<IChartItemType>;
|
|
4562
|
+
/**
|
|
4563
|
+
* Gets the item types that were changed in the schema.
|
|
4564
|
+
* @i2since 1.5
|
|
4565
|
+
*/
|
|
4566
|
+
readonly changedTypes: data.IReadOnlyCollection<IChartItemType>;
|
|
4567
|
+
}
|
|
4459
4568
|
}
|
|
4460
4569
|
|
|
4461
4570
|
/**
|