@i2analyze/notebook-sdk 1.1.0-dev.24 → 1.1.0-dev.27
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 +28 -11
- 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.27
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add options parameter to IApplication.runTrackedMutation and IApplication.runUntrackedMutation.
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.26
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add "baseUrl" property to the IServerComponents interface
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.25
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Add Expand to system commands.
|
|
20
|
+
|
|
3
21
|
## 1.1.0-dev.24
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -75,9 +75,10 @@ export declare namespace app {
|
|
|
75
75
|
* A successful set of tracked mutations is added as a single entry to the undo stack.
|
|
76
76
|
*
|
|
77
77
|
* @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
|
|
78
|
+
* @param options - An object that can control the transaction.
|
|
78
79
|
* @i2since 1.1
|
|
79
80
|
*/
|
|
80
|
-
runTrackedMutations(mutationHandler: TrackedMutationHandler): void;
|
|
81
|
+
runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
|
|
81
82
|
/**
|
|
82
83
|
* Queues a function that performs untracked mutations on the application contents at the next available opportunity.
|
|
83
84
|
*
|
|
@@ -86,9 +87,10 @@ export declare namespace app {
|
|
|
86
87
|
* Untracked mutations are not added to the undo stack, and therefore cannot be undone.
|
|
87
88
|
*
|
|
88
89
|
* @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
|
|
90
|
+
* @param options - An object that can control the transaction.
|
|
89
91
|
* @i2since 1.1
|
|
90
92
|
*/
|
|
91
|
-
runUntrackedMutations(mutationHandler: UntrackedMutationHandler): void;
|
|
93
|
+
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* A report on the result of one or more mutations.
|
|
@@ -299,7 +301,7 @@ export declare namespace app {
|
|
|
299
301
|
*/
|
|
300
302
|
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
301
303
|
/**
|
|
302
|
-
* A common specifier for record properties
|
|
304
|
+
* A common specifier for record properties, for use in mutation APIs.
|
|
303
305
|
* @i2since 1.1
|
|
304
306
|
*/
|
|
305
307
|
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
@@ -673,20 +675,20 @@ export declare namespace app {
|
|
|
673
675
|
*/
|
|
674
676
|
readonly valueFactory: IValueFactory;
|
|
675
677
|
/**
|
|
676
|
-
* Creates an entity record that
|
|
678
|
+
* Creates an entity record that is added to the chart on committal.
|
|
677
679
|
*
|
|
678
680
|
* @param recordTemplate - The data from which to create the record.
|
|
679
681
|
* @param hints - A TODO.
|
|
680
|
-
* @returns The new,
|
|
682
|
+
* @returns The new, pending record.
|
|
681
683
|
* @i2since 1.1
|
|
682
684
|
*/
|
|
683
685
|
addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
|
|
684
686
|
/**
|
|
685
|
-
* Creates a link record that
|
|
687
|
+
* Creates a link record that is added to the chart on committal.
|
|
686
688
|
*
|
|
687
689
|
* @param recordTemplate - The data from which to create the record.
|
|
688
690
|
* @param hints - A TODO.
|
|
689
|
-
* @returns The new,
|
|
691
|
+
* @returns The new, pending record.
|
|
690
692
|
* @i2since 1.1
|
|
691
693
|
*/
|
|
692
694
|
addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
|
|
@@ -850,6 +852,14 @@ export declare namespace app {
|
|
|
850
852
|
* @i2since 1.0
|
|
851
853
|
*/
|
|
852
854
|
export interface IServerComponents {
|
|
855
|
+
/**
|
|
856
|
+
* Gets the base URL of the i2 Analyze server. For example, `http://localhost:3000/opal/`.
|
|
857
|
+
*
|
|
858
|
+
* @remarks
|
|
859
|
+
* The base URL always ends with a forward slash, and never contains query parameters.
|
|
860
|
+
* @i2since 1.1
|
|
861
|
+
*/
|
|
862
|
+
readonly baseUrl: string;
|
|
853
863
|
/**
|
|
854
864
|
* Indicates whether the i2 Connect gateway is available on the application server.
|
|
855
865
|
* @i2since 1.0
|
|
@@ -1152,13 +1162,15 @@ export declare namespace chart {
|
|
|
1152
1162
|
*/
|
|
1153
1163
|
readonly selection: ISelection;
|
|
1154
1164
|
/**
|
|
1155
|
-
*
|
|
1165
|
+
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1156
1166
|
*
|
|
1157
1167
|
* @remarks
|
|
1158
|
-
*
|
|
1168
|
+
* Some property values might not be fetched immediately from the server, due to size or other factors.
|
|
1169
|
+
* The property values that this method fetches become "unfetched" on subsequent record updates by the server.
|
|
1170
|
+
* See also the `hasUnfetchedProperties`, `isValueUnfetched()`, and `getUnfetchedPropertyTypes()` members of {@link records.IChartRecordBase}.
|
|
1159
1171
|
*
|
|
1160
|
-
* @param records - The
|
|
1161
|
-
* @param propertyTypes - The
|
|
1172
|
+
* @param records - The records to update with fetched property values.
|
|
1173
|
+
* @param propertyTypes - The types of the properties whose values are to be fetched if necessary.
|
|
1162
1174
|
* @param signal - A signal that the application uses to abort the operation.
|
|
1163
1175
|
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1164
1176
|
* @i2since 1.1
|
|
@@ -2026,6 +2038,11 @@ export declare namespace commands {
|
|
|
2026
2038
|
* @i2since 1.1
|
|
2027
2039
|
*/
|
|
2028
2040
|
readonly saveChart: CommandId;
|
|
2041
|
+
/**
|
|
2042
|
+
* Gets the identifier of the system command that expands the current selection.
|
|
2043
|
+
* @i2since 1.1
|
|
2044
|
+
*/
|
|
2045
|
+
readonly expand: CommandId;
|
|
2029
2046
|
}
|
|
2030
2047
|
/**
|
|
2031
2048
|
* A lookup table for the group identifiers of the default system action groups.
|