@i2analyze/notebook-sdk 1.1.0-dev.30 → 1.1.0-dev.33
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 +36 -0
- package/lib/gen/notebook-sdk-public.d.ts +13 -11
- package/lib/index.js +3 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @i2analyze/notebook-sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0-dev.33
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update supported versions.
|
|
8
|
+
|
|
9
|
+
## 1.1.0-dev.32
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated copyright information
|
|
14
|
+
- Fix plugin-manifest.json schema to conform to JSON Schema draft-07 specification.
|
|
15
|
+
|
|
16
|
+
## 1.1.0-dev.31
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- Deprecated `toolview.SerializableValue` which will be removed in the future. Usages have been replaced with the type `unknown` to make it easier to get and set values within the volatile store.
|
|
21
|
+
|
|
22
|
+
E.g.
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
interface IData {
|
|
26
|
+
someString: string;
|
|
27
|
+
someNumber: number;
|
|
28
|
+
someOptionalBoolean?: boolean;
|
|
29
|
+
}
|
|
30
|
+
let toolView: toolview.IToolView = getToolView();
|
|
31
|
+
|
|
32
|
+
// Getting a value of type IData.
|
|
33
|
+
const myData = toolView.volatileStore.get<IData>('myKey');
|
|
34
|
+
|
|
35
|
+
// Setting a value of type IData.
|
|
36
|
+
toolView.volatileStore.set('myKey', myData);
|
|
37
|
+
```
|
|
38
|
+
|
|
3
39
|
## 1.1.0-dev.30
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -359,12 +359,12 @@ export declare namespace app {
|
|
|
359
359
|
*/
|
|
360
360
|
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
361
361
|
/**
|
|
362
|
-
* A common specifier for
|
|
362
|
+
* A common specifier for the properties of new records, for use in mutation APIs.
|
|
363
363
|
* @i2since 1.1
|
|
364
364
|
*/
|
|
365
365
|
export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
366
366
|
/**
|
|
367
|
-
* A common specifier for
|
|
367
|
+
* A common specifier for record properties that are to be edited, for use in mutation APIs.
|
|
368
368
|
* @i2since 1.1
|
|
369
369
|
*/
|
|
370
370
|
export type EditRecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
|
|
@@ -467,10 +467,10 @@ export declare namespace app {
|
|
|
467
467
|
*/
|
|
468
468
|
export interface IRecordEditor {
|
|
469
469
|
/**
|
|
470
|
-
* Sets properties on the record.
|
|
470
|
+
* Sets or clears the values of properties on the record.
|
|
471
471
|
*
|
|
472
|
-
* @param properties - The properties to set.
|
|
473
|
-
* @returns This record, with the
|
|
472
|
+
* @param properties - The types and values of the properties to set (or `null` to clear them).
|
|
473
|
+
* @returns This record, with the edited properties in place.
|
|
474
474
|
* @i2since 1.1
|
|
475
475
|
*/
|
|
476
476
|
setProperties(properties: EditRecordPropertiesSpecifier): this;
|
|
@@ -525,7 +525,7 @@ export declare namespace app {
|
|
|
525
525
|
*/
|
|
526
526
|
removeSourceReference(ref: SourceReferenceSpecifier): this;
|
|
527
527
|
/**
|
|
528
|
-
* Adds a source identifier to the record.
|
|
528
|
+
* Adds a new source identifier to the record.
|
|
529
529
|
*
|
|
530
530
|
* @param identifierData - The data for the new source identifier.
|
|
531
531
|
* @returns This record, with the new source identifier in place.
|
|
@@ -534,13 +534,14 @@ export declare namespace app {
|
|
|
534
534
|
addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
|
|
535
535
|
/**
|
|
536
536
|
* Replaces the record's security settings with a new set.
|
|
537
|
+
*
|
|
537
538
|
* @param security - The new security settings.
|
|
538
539
|
* @returns This record, with the new security settings in place.
|
|
539
540
|
* @i2since 1.1
|
|
540
541
|
*/
|
|
541
542
|
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
542
543
|
/**
|
|
543
|
-
* Sets the
|
|
544
|
+
* Sets the direction of a link record.
|
|
544
545
|
*
|
|
545
546
|
* @remarks
|
|
546
547
|
* Calling this method on a entity record will throw an error.
|
|
@@ -2121,7 +2122,7 @@ export declare namespace commands {
|
|
|
2121
2122
|
*/
|
|
2122
2123
|
readonly saveChart: CommandId;
|
|
2123
2124
|
/**
|
|
2124
|
-
* Gets the identifier of the system command that performs
|
|
2125
|
+
* Gets the identifier of the system command that performs a one-level expand operation on the current selection.
|
|
2125
2126
|
* @i2since 1.1
|
|
2126
2127
|
*/
|
|
2127
2128
|
readonly expand: CommandId;
|
|
@@ -2987,7 +2988,7 @@ export declare interface NotebookStatic {
|
|
|
2987
2988
|
* @public
|
|
2988
2989
|
* @i2since 1.0
|
|
2989
2990
|
*/
|
|
2990
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0'): Promise<IEntryPointApi>;
|
|
2991
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1'): Promise<IEntryPointApi>;
|
|
2991
2992
|
}
|
|
2992
2993
|
|
|
2993
2994
|
/**
|
|
@@ -3953,6 +3954,7 @@ export declare namespace toolview {
|
|
|
3953
3954
|
* @remarks
|
|
3954
3955
|
* Serializable values are constrained to the logical types that are listed in the definition.
|
|
3955
3956
|
* @i2since 1.0
|
|
3957
|
+
* @deprecated `toolview.SerializableValue` is no longer used. Replace any existing use with `unknown`.
|
|
3956
3958
|
*/
|
|
3957
3959
|
export type SerializableValue = string | number | boolean | null | BigInt | Date | SerializableValue[] | {
|
|
3958
3960
|
[key: string]: SerializableValue;
|
|
@@ -3989,7 +3991,7 @@ export declare namespace toolview {
|
|
|
3989
3991
|
* @returns The stored value, or `undefined` if the key does not exist in the store.
|
|
3990
3992
|
* @i2since 1.0
|
|
3991
3993
|
*/
|
|
3992
|
-
get<TValue
|
|
3994
|
+
get<TValue = unknown>(key: string): TValue | undefined;
|
|
3993
3995
|
/**
|
|
3994
3996
|
* Creates or updates a key in the volatile store.
|
|
3995
3997
|
*
|
|
@@ -3997,7 +3999,7 @@ export declare namespace toolview {
|
|
|
3997
3999
|
* @param value - The new value for the key.
|
|
3998
4000
|
* @i2since 1.0
|
|
3999
4001
|
*/
|
|
4000
|
-
set(key: string, value:
|
|
4002
|
+
set(key: string, value: unknown): void;
|
|
4001
4003
|
/**
|
|
4002
4004
|
* Deletes a key from the volatile store.
|
|
4003
4005
|
*
|
package/lib/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* (C) Copyright IBM Corp. 2012, 2021 All Rights Reserved.
|
|
5
|
-
* US Government Users Restricted Rights - Use, duplication or
|
|
6
|
-
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
2
|
+
* i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation.
|
|
3
|
+
* © N.Harris Computer Corporation (2022)
|
|
7
4
|
*/
|
|
8
|
-
const apiVersion = '1.
|
|
5
|
+
const apiVersion = '1.1';
|
|
9
6
|
/**
|
|
10
7
|
* Retrieves the plug-in entry point API.
|
|
11
8
|
*
|