@i2analyze/notebook-sdk 1.2.0-dev.2 → 1.2.0-dev.5
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 +44 -27
- package/package.json +1 -1
|
@@ -164,6 +164,18 @@ export declare namespace app {
|
|
|
164
164
|
*/
|
|
165
165
|
details: string;
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* The source of a change that takes place in the i2 Notebook application.
|
|
169
|
+
* @i2since 1.2
|
|
170
|
+
*/
|
|
171
|
+
export interface IChangeSource {
|
|
172
|
+
/**
|
|
173
|
+
* Gets the identifier of the plug-in that is responsible for the change, or <code>null</code>
|
|
174
|
+
* if the change is the result of a user action outside a plug-in.
|
|
175
|
+
* @i2since 1.2
|
|
176
|
+
*/
|
|
177
|
+
readonly pluginId?: string;
|
|
178
|
+
}
|
|
167
179
|
/**
|
|
168
180
|
* A set of information that is common to requests to commit mutations of all types.
|
|
169
181
|
* @i2since 1.1
|
|
@@ -1118,7 +1130,6 @@ export declare namespace app {
|
|
|
1118
1130
|
*/
|
|
1119
1131
|
export interface ApplicationEventOptionsMap extends chart.ChartEventOptionsMap {
|
|
1120
1132
|
}
|
|
1121
|
-
{};
|
|
1122
1133
|
}
|
|
1123
1134
|
|
|
1124
1135
|
/**
|
|
@@ -1439,27 +1450,27 @@ export declare namespace chart {
|
|
|
1439
1450
|
/**
|
|
1440
1451
|
* A callback function that handles chart selection events.
|
|
1441
1452
|
*
|
|
1442
|
-
* @param selection -The selection on the chart at the moment the callback was invoked.
|
|
1453
|
+
* @param selection - The selection on the chart at the moment the callback was invoked, and the source of the selection change.
|
|
1443
1454
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1444
1455
|
* @i2since 1.0
|
|
1445
1456
|
*/
|
|
1446
|
-
export type SelectionListener = (selection: ISelection, applicationContents: app.IApplicationContents) => void;
|
|
1457
|
+
export type SelectionListener = (selection: ISelection & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1447
1458
|
/**
|
|
1448
|
-
* A callback function that handles chart events.
|
|
1459
|
+
* A callback function that handles chart data change events.
|
|
1449
1460
|
*
|
|
1450
|
-
* @param change - The change that took place on the chart and caused the callback to be invoked.
|
|
1461
|
+
* @param change - The change that took place on the chart and caused the callback to be invoked, and the source of the data change.
|
|
1451
1462
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1452
1463
|
* @i2since 1.0
|
|
1453
1464
|
*/
|
|
1454
|
-
export type ChangeListener = (change: IChartChange, applicationContents: app.IApplicationContents) => void;
|
|
1465
|
+
export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1455
1466
|
/**
|
|
1456
1467
|
* A callback function that handles chart view events.
|
|
1457
1468
|
*
|
|
1458
|
-
* @param view -The appearance of the chart following the change that caused the callback to be invoked.
|
|
1469
|
+
* @param view - The appearance of the chart following the change that caused the callback to be invoked, and the source of the view change.
|
|
1459
1470
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1460
1471
|
* @i2since 1.0
|
|
1461
1472
|
*/
|
|
1462
|
-
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1473
|
+
export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1463
1474
|
/**
|
|
1464
1475
|
* Constraints that control a view-fitting operation.
|
|
1465
1476
|
*
|
|
@@ -1602,10 +1613,11 @@ export declare namespace commands {
|
|
|
1602
1613
|
/**
|
|
1603
1614
|
* A callback function that handles records context change events.
|
|
1604
1615
|
*
|
|
1605
|
-
* @param recordsContext - The records that
|
|
1616
|
+
* @param recordsContext - The records that were pertinent in the context of the surfaced command
|
|
1617
|
+
* at the moment the callback was invoked, and the source of the change to those records.
|
|
1606
1618
|
* @i2since 1.0
|
|
1607
1619
|
*/
|
|
1608
|
-
export type RecordsContextChangeListener = (recordsContext: IRecordsContext) => void;
|
|
1620
|
+
export type RecordsContextChangeListener = (recordsContext: IRecordsContext & app.IChangeSource) => void;
|
|
1609
1621
|
/**
|
|
1610
1622
|
* An identifier of a command.
|
|
1611
1623
|
* @i2since 1.0
|
|
@@ -2133,6 +2145,11 @@ export declare namespace commands {
|
|
|
2133
2145
|
* @i2since 1.1
|
|
2134
2146
|
*/
|
|
2135
2147
|
readonly addToMap: CommandId;
|
|
2148
|
+
/**
|
|
2149
|
+
* Gets the identifier of the system command that opens a 360 view of the selected Information Store entity record.
|
|
2150
|
+
* @i2since 1.2
|
|
2151
|
+
*/
|
|
2152
|
+
readonly openThreeSixtyView: CommandId;
|
|
2136
2153
|
}
|
|
2137
2154
|
/**
|
|
2138
2155
|
* A lookup table for the group identifiers of the default system action groups.
|
|
@@ -3140,7 +3157,7 @@ export declare namespace records {
|
|
|
3140
3157
|
*/
|
|
3141
3158
|
get360ViewUrl(): string | undefined;
|
|
3142
3159
|
/**
|
|
3143
|
-
* Gets the element to which the record belongs.
|
|
3160
|
+
* Gets the chart element to which the record belongs.
|
|
3144
3161
|
* @i2since 1.2
|
|
3145
3162
|
*/
|
|
3146
3163
|
readonly element: visual.IElement;
|
|
@@ -3430,10 +3447,10 @@ export declare namespace schema {
|
|
|
3430
3447
|
*/
|
|
3431
3448
|
readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeId, IChartItemType>;
|
|
3432
3449
|
/**
|
|
3433
|
-
* Gets the item type
|
|
3434
|
-
* @param analyzeItemTypeId - An
|
|
3435
|
-
* @returns The requested item type.
|
|
3436
|
-
* @throws `VerbatimError` if
|
|
3450
|
+
* Gets the item type in the chart schema that has the specified i2 Analyze type identifier.
|
|
3451
|
+
* @param analyzeItemTypeId - An i2 Analyze item type identifier.
|
|
3452
|
+
* @returns The requested chart item type.
|
|
3453
|
+
* @throws `VerbatimError` if no chart item type has the specified i2 Analyze type identifier.
|
|
3437
3454
|
* @i2since 1.2
|
|
3438
3455
|
*/
|
|
3439
3456
|
getItemType(analyzeItemTypeId: AnalyzeItemTypeId): IChartItemType;
|
|
@@ -3658,10 +3675,10 @@ export declare namespace schema {
|
|
|
3658
3675
|
*/
|
|
3659
3676
|
readonly propertyTypes: data.IKeyedReadOnlyCollection<ChartPropertyTypeId, IChartPropertyType>;
|
|
3660
3677
|
/**
|
|
3661
|
-
* Gets the property type
|
|
3662
|
-
* @param analyzePropertyTypeId - An
|
|
3663
|
-
* @returns The requested property type
|
|
3664
|
-
* @throws `VerbatimError` if a property type
|
|
3678
|
+
* Gets the property type that has the specified i2 Analyze type identifier.
|
|
3679
|
+
* @param analyzePropertyTypeId - An i2 Analyze property type identifier.
|
|
3680
|
+
* @returns The requested property type.
|
|
3681
|
+
* @throws `VerbatimError` if the item type does not contain a property type that has the specified i2 Analyze type identifier.
|
|
3665
3682
|
* @i2since 1.2
|
|
3666
3683
|
*/
|
|
3667
3684
|
getPropertyType(analyzePropertyTypeId: AnalyzePropertyTypeId): IChartPropertyType;
|
|
@@ -3967,13 +3984,14 @@ export declare namespace toolview {
|
|
|
3967
3984
|
*/
|
|
3968
3985
|
export type ToolViewUnloadListener = (isClosing: boolean) => void;
|
|
3969
3986
|
/**
|
|
3970
|
-
* A callback function that handles tool view minimized
|
|
3987
|
+
* A callback function that handles tool view minimized events.
|
|
3971
3988
|
*
|
|
3972
3989
|
* @remarks
|
|
3973
|
-
* This listener receives an event
|
|
3990
|
+
* This listener receives an event after the docked tool view changes visibility in the i2 Notebook user interface,
|
|
3991
|
+
* as a result of a chart or another docked tool being maximized or restored.
|
|
3974
3992
|
*
|
|
3975
|
-
* @param isMinimized - `true` if the tool view is
|
|
3976
|
-
* `false` if
|
|
3993
|
+
* @param isMinimized - `true` if the tool view is now invisible for one of the reasons given;
|
|
3994
|
+
* `false` if it is now visible in the opposite circumstances.
|
|
3977
3995
|
* @i2since 1.2
|
|
3978
3996
|
*/
|
|
3979
3997
|
export type ToolViewMinimizedListener = (isMinimized: boolean) => void;
|
|
@@ -4055,10 +4073,10 @@ export declare namespace toolview {
|
|
|
4055
4073
|
*/
|
|
4056
4074
|
readonly isOpen: boolean;
|
|
4057
4075
|
/**
|
|
4058
|
-
* Indicates whether the
|
|
4076
|
+
* Indicates whether the tool view is open and docked but not visible in the user interface.
|
|
4059
4077
|
*
|
|
4060
|
-
* @returns `true` if the tool view is
|
|
4061
|
-
* `false` if
|
|
4078
|
+
* @returns `true` if the tool view is not visible because a chart or another tool view is maximized;
|
|
4079
|
+
* `false` if nothing is maximized, or if the tool view is closed or undocked.
|
|
4062
4080
|
* @i2since 1.2
|
|
4063
4081
|
*/
|
|
4064
4082
|
readonly isMinimized: boolean;
|
|
@@ -4200,7 +4218,6 @@ export declare namespace toolview {
|
|
|
4200
4218
|
*/
|
|
4201
4219
|
export interface ToolViewApiEventOptionsMap extends ToolViewEventOptionsMap, app.ApplicationEventOptionsMap {
|
|
4202
4220
|
}
|
|
4203
|
-
{};
|
|
4204
4221
|
}
|
|
4205
4222
|
|
|
4206
4223
|
/**
|