@i2analyze/notebook-sdk 1.1.0-dev.20 → 1.1.0-dev.23
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 +19 -0
- package/lib/gen/notebook-sdk-public.d.ts +41 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.23
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add PropertySpecifier and ensurePropertiesFetched API
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.22
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Return whether records or elements were removed when calling removeRecords and removeElements.
|
|
14
|
+
|
|
15
|
+
## 1.1.0-dev.21
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Remove removeRecord
|
|
20
|
+
- Add removeRecords and removeElements APIs
|
|
21
|
+
|
|
3
22
|
## 1.1.0-dev.20
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -277,6 +277,11 @@ export declare namespace app {
|
|
|
277
277
|
* @i2since 1.1
|
|
278
278
|
*/
|
|
279
279
|
export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
|
|
280
|
+
/**
|
|
281
|
+
* A common specifier for an element, for use in mutation APIs.
|
|
282
|
+
* @i2since 1.1
|
|
283
|
+
*/
|
|
284
|
+
export type ElementSpecifier = visual.ElementId | visual.IElement;
|
|
280
285
|
/**
|
|
281
286
|
* The identifier of a record group.
|
|
282
287
|
* @i2since 1.1
|
|
@@ -297,7 +302,7 @@ export declare namespace app {
|
|
|
297
302
|
* A common specifier for record properties used to pass record properties when adding or editing a record.
|
|
298
303
|
* @i2since 1.1
|
|
299
304
|
*/
|
|
300
|
-
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.
|
|
305
|
+
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
301
306
|
/**
|
|
302
307
|
* A set of data that is common to creating records of all types.
|
|
303
308
|
* @i2since 1.1
|
|
@@ -701,13 +706,6 @@ export declare namespace app {
|
|
|
701
706
|
* @i2since 1.1
|
|
702
707
|
*/
|
|
703
708
|
editRecord(record: RecordSpecifier): IRecordEditor;
|
|
704
|
-
/**
|
|
705
|
-
* Removes a record from the chart.
|
|
706
|
-
*
|
|
707
|
-
* @param record - The record to be removed.
|
|
708
|
-
* @i2since 1.1
|
|
709
|
-
*/
|
|
710
|
-
removeRecord(record: RecordSpecifier): void;
|
|
711
709
|
/**
|
|
712
710
|
* Moves a node to a particular location on the chart.
|
|
713
711
|
*
|
|
@@ -727,6 +725,22 @@ export declare namespace app {
|
|
|
727
725
|
xDelta: number;
|
|
728
726
|
yDelta: number;
|
|
729
727
|
}): void;
|
|
728
|
+
/**
|
|
729
|
+
* Removes records from the chart.
|
|
730
|
+
*
|
|
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.
|
|
733
|
+
* @i2since 1.1
|
|
734
|
+
*/
|
|
735
|
+
removeRecords(records: RecordSpecifier | Iterable<RecordSpecifier>): boolean;
|
|
736
|
+
/**
|
|
737
|
+
* Removes elements from the chart.
|
|
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.
|
|
741
|
+
* @i2since 1.1
|
|
742
|
+
*/
|
|
743
|
+
removeElements(elements: ElementSpecifier | Iterable<ElementSpecifier>): boolean;
|
|
730
744
|
/**
|
|
731
745
|
* Removes the selected records from the chart.
|
|
732
746
|
* @i2since 1.1
|
|
@@ -1137,6 +1151,19 @@ export declare namespace chart {
|
|
|
1137
1151
|
* @i2since 1.0
|
|
1138
1152
|
*/
|
|
1139
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>;
|
|
1140
1167
|
}
|
|
1141
1168
|
/**
|
|
1142
1169
|
* A change that has occurred to the data in a chart.
|
|
@@ -2931,7 +2958,7 @@ export declare namespace records {
|
|
|
2931
2958
|
* @returns The property value or, if not present, `undefined`.
|
|
2932
2959
|
* @i2since 1.0
|
|
2933
2960
|
*/
|
|
2934
|
-
getProperty(propertyType: schema.
|
|
2961
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
2935
2962
|
/**
|
|
2936
2963
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
2937
2964
|
*
|
|
@@ -3541,6 +3568,11 @@ export declare namespace schema {
|
|
|
3541
3568
|
* @i2since 1.0
|
|
3542
3569
|
*/
|
|
3543
3570
|
export type AnalyzePropertyTypeId = string;
|
|
3571
|
+
/**
|
|
3572
|
+
* A specifier for a property type.
|
|
3573
|
+
* @i2since 1.1
|
|
3574
|
+
*/
|
|
3575
|
+
export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
|
|
3544
3576
|
/**
|
|
3545
3577
|
* A property type.
|
|
3546
3578
|
* @i2since 1.0
|