@i2analyze/notebook-sdk 1.1.0-dev.21 → 1.1.0-dev.24
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 +25 -5
- 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.24
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update return type for TransactionHandler to be void|Promise<void>.
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.23
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add PropertySpecifier and ensurePropertiesFetched API
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.22
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Return whether records or elements were removed when calling removeRecords and removeElements.
|
|
20
|
+
|
|
3
21
|
## 1.1.0-dev.21
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -302,7 +302,7 @@ export declare namespace app {
|
|
|
302
302
|
* A common specifier for record properties used to pass record properties when adding or editing a record.
|
|
303
303
|
* @i2since 1.1
|
|
304
304
|
*/
|
|
305
|
-
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.
|
|
305
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
306
306
|
/**
|
|
307
307
|
* A set of data that is common to creating records of all types.
|
|
308
308
|
* @i2since 1.1
|
|
@@ -729,16 +729,18 @@ export declare namespace app {
|
|
|
729
729
|
* Removes records from the chart.
|
|
730
730
|
*
|
|
731
731
|
* @param records - The record or records to be removed.
|
|
732
|
+
* @returns Returns true if one or more records existed on the chart and has been removed, or false if none of the records existed.
|
|
732
733
|
* @i2since 1.1
|
|
733
734
|
*/
|
|
734
|
-
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>):
|
|
735
|
+
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
|
|
735
736
|
/**
|
|
736
737
|
* Removes elements from the chart.
|
|
737
738
|
*
|
|
738
739
|
* @param elements - The element or elements to be removed.
|
|
740
|
+
* @returns Returns true if one or more elements existed on the chart and has been removed, or false if none of the elements existed.
|
|
739
741
|
* @i2since 1.1
|
|
740
742
|
*/
|
|
741
|
-
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>):
|
|
743
|
+
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
|
|
742
744
|
/**
|
|
743
745
|
* Removes the selected records from the chart.
|
|
744
746
|
* @i2since 1.1
|
|
@@ -894,7 +896,7 @@ export declare namespace app {
|
|
|
894
896
|
* This function _must not_ maintain references to charts or any of their objects after the work completes.
|
|
895
897
|
* @i2since 1.0
|
|
896
898
|
*/
|
|
897
|
-
export type TransactionHandler = (applicationContents: IApplicationContents) => void
|
|
899
|
+
export type TransactionHandler = (applicationContents: IApplicationContents) => void | Promise<void>;
|
|
898
900
|
/**
|
|
899
901
|
* The contents of the i2 Notebook application.
|
|
900
902
|
* @i2since 1.0
|
|
@@ -1149,6 +1151,19 @@ export declare namespace chart {
|
|
|
1149
1151
|
* @i2since 1.0
|
|
1150
1152
|
*/
|
|
1151
1153
|
readonly selection: ISelection;
|
|
1154
|
+
/**
|
|
1155
|
+
* Updates each given record with the specified propertyTypes if the record does not have the specified propertyTypes.
|
|
1156
|
+
*
|
|
1157
|
+
* @remarks
|
|
1158
|
+
* Any propertyTypes that were fetched by this method will become unfetched on subsequent record updates by the server.
|
|
1159
|
+
*
|
|
1160
|
+
* @param records - The record or records to update.
|
|
1161
|
+
* @param propertyTypes - The propertyType or propertyTypes to ensure are fetched.
|
|
1162
|
+
* @param signal - A signal that the application uses to abort the operation.
|
|
1163
|
+
* @returns A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.
|
|
1164
|
+
* @i2since 1.1
|
|
1165
|
+
*/
|
|
1166
|
+
ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
|
|
1152
1167
|
}
|
|
1153
1168
|
/**
|
|
1154
1169
|
* A change that has occurred to the data in a chart.
|
|
@@ -2943,7 +2958,7 @@ export declare namespace records {
|
|
|
2943
2958
|
* @returns The property value or, if not present, `undefined`.
|
|
2944
2959
|
* @i2since 1.0
|
|
2945
2960
|
*/
|
|
2946
|
-
getProperty(propertyType: schema.
|
|
2961
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
2947
2962
|
/**
|
|
2948
2963
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
2949
2964
|
*
|
|
@@ -3553,6 +3568,11 @@ export declare namespace schema {
|
|
|
3553
3568
|
* @i2since 1.0
|
|
3554
3569
|
*/
|
|
3555
3570
|
export type AnalyzePropertyTypeId = string;
|
|
3571
|
+
/**
|
|
3572
|
+
* A specifier for a property type.
|
|
3573
|
+
* @i2since 1.1
|
|
3574
|
+
*/
|
|
3575
|
+
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
3556
3576
|
/**
|
|
3557
3577
|
* A property type.
|
|
3558
3578
|
* @i2since 1.0
|