@i2analyze/notebook-sdk 1.1.0-dev.23 → 1.1.0-dev.26
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/CHANGELOG.md +18 -0
- package/lib/gen/notebook-sdk-public.d.ts +26 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.26
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add "baseUrl" property to the IServerComponents interface
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.25
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add Expand to system commands.
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.24
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Update return type for TransactionHandler to be void|Promise<void>.
|
|
20
|
+
|
|
3
21
|
## 1.1.0-dev.23
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -299,7 +299,7 @@ export declare namespace app {
|
|
|
299
299
|
*/
|
|
300
300
|
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
301
301
|
/**
|
|
302
|
-
* A common specifier for record properties
|
|
302
|
+
* A common specifier for record properties, for use in mutation APIs.
|
|
303
303
|
* @i2since 1.1
|
|
304
304
|
*/
|
|
305
305
|
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
@@ -673,20 +673,20 @@ export declare namespace app {
|
|
|
673
673
|
*/
|
|
674
674
|
readonly valueFactory: IValueFactory;
|
|
675
675
|
/**
|
|
676
|
-
* Creates an entity record that
|
|
676
|
+
* Creates an entity record that is added to the chart on committal.
|
|
677
677
|
*
|
|
678
678
|
* @param recordTemplate - The data from which to create the record.
|
|
679
679
|
* @param hints - A TODO.
|
|
680
|
-
* @returns The new,
|
|
680
|
+
* @returns The new, pending record.
|
|
681
681
|
* @i2since 1.1
|
|
682
682
|
*/
|
|
683
683
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
684
684
|
/**
|
|
685
|
-
* Creates a link record that
|
|
685
|
+
* Creates a link record that is added to the chart on committal.
|
|
686
686
|
*
|
|
687
687
|
* @param recordTemplate - The data from which to create the record.
|
|
688
688
|
* @param hints - A TODO.
|
|
689
|
-
* @returns The new,
|
|
689
|
+
* @returns The new, pending record.
|
|
690
690
|
* @i2since 1.1
|
|
691
691
|
*/
|
|
692
692
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
@@ -850,6 +850,15 @@ export declare namespace app {
|
|
|
850
850
|
* @i2since 1.0
|
|
851
851
|
*/
|
|
852
852
|
export interface IServerComponents {
|
|
853
|
+
/**
|
|
854
|
+
* Gets the base url of the i2 Analyze server.
|
|
855
|
+
*
|
|
856
|
+
* E.g. http://localhost:3000/opal/.
|
|
857
|
+
*
|
|
858
|
+
* @remarks Note: The url will not contain any query parameters.
|
|
859
|
+
* @i2since 1.1
|
|
860
|
+
*/
|
|
861
|
+
readonly baseUrl: string;
|
|
853
862
|
/**
|
|
854
863
|
* Indicates whether the i2 Connect gateway is available on the application server.
|
|
855
864
|
* @i2since 1.0
|
|
@@ -896,7 +905,7 @@ export declare namespace app {
|
|
|
896
905
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
897
906
|
* @i2since 1.0
|
|
898
907
|
*/
|
|
899
|
-
export type TransactionHandler = (applicationContents: IApplicationContents) => void
|
|
908
|
+
export type TransactionHandler = (applicationContents: IApplicationContents) => void | Promise<void>;
|
|
900
909
|
/**
|
|
901
910
|
* The contents of the i2 Notebook application.
|
|
902
911
|
* @i2since 1.0
|
|
@@ -1152,13 +1161,15 @@ export declare namespace chart {
|
|
|
1152
1161
|
*/
|
|
1153
1162
|
readonly selection: ISelection;
|
|
1154
1163
|
/**
|
|
1155
|
-
*
|
|
1164
|
+
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1156
1165
|
*
|
|
1157
1166
|
* @remarks
|
|
1158
|
-
*
|
|
1167
|
+
* Some property values might not be fetched immediately from the server, due to size or other factors.
|
|
1168
|
+
* The property values that this method fetches become "unfetched" on subsequent record updates by the server.
|
|
1169
|
+
* See also the `hasUnfetchedProperties`, `isValueUnfetched()`, and `getUnfetchedPropertyTypes()` members of {@link records.IChartRecordBase}.
|
|
1159
1170
|
*
|
|
1160
|
-
* @param records - The
|
|
1161
|
-
* @param propertyTypes - The
|
|
1171
|
+
* @param records - The records to update with fetched property values.
|
|
1172
|
+
* @param propertyTypes - The types of the properties whose values are to be fetched if necessary.
|
|
1162
1173
|
* @param signal - A signal that the application uses to abort the operation.
|
|
1163
1174
|
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1164
1175
|
* @i2since 1.1
|
|
@@ -2026,6 +2037,11 @@ export declare namespace commands {
|
|
|
2026
2037
|
* @i2since 1.1
|
|
2027
2038
|
*/
|
|
2028
2039
|
readonly saveChart: CommandId;
|
|
2040
|
+
/**
|
|
2041
|
+
* Gets the identifier of the system command that expands the current selection.
|
|
2042
|
+
* @i2since 1.1
|
|
2043
|
+
*/
|
|
2044
|
+
readonly expand: CommandId;
|
|
2029
2045
|
}
|
|
2030
2046
|
/**
|
|
2031
2047
|
* A lookup table for the group identifiers of the default system action groups.
|