@i2analyze/notebook-sdk 1.3.0-dev.8 → 1.3.0

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/README.md CHANGED
@@ -8,10 +8,11 @@ This npm package provides the JavaScript library for developing plug-ins and a t
8
8
 
9
9
  | `@i2analyze/notebook-sdk` version | i2 Analyze version |
10
10
  | --------------------------------- | ------------------ |
11
+ | 1.3.\* | 4.4.2.0 |
11
12
  | 1.2.\* | 4.4.1.0 |
12
13
  | 1.1.\* | 4.4.0.0 |
13
14
  | 1.0.\* | 4.3.4.0 |
14
15
 
15
16
  ## Documentation
16
17
 
17
- For more details, see the documentation at https://i2group.github.io/notebook-sdk/.
18
+ For more details, see the documentation at [https://i2group.github.io/notebook-sdk](https://i2group.github.io/notebook-sdk/).
@@ -53,10 +53,10 @@ export declare namespace app {
53
53
  * The list is sorted in ascending order of {@link data.ITimeZone.rawUtcOffset}, and then alphabetically
54
54
  * by {@link data.ITimeZone.fullDisplayName} if UTC offsets are equal. For example:
55
55
  * ```text
56
- * (GMT-08:00)‬ ‎‪Los Angeles Time‬‬
57
- * ‪‪(GMT-01:00)‬ Azores Time [Atlantic/Azores]‬‬
58
- * ‪‪(GMT)‬ ‎‪United Kingdom Time [Europe/London]‬‬
59
- * ‪‪(GMT+01:00)‬ Austria Time
56
+ * (GMT-08:00) ‪Los Angeles Time
57
+ * ‪‪(GMT-01:00) Azores Time [Atlantic/Azores]
58
+ * ‪‪(GMT) ‪United Kingdom Time [Europe/London]
59
+ * ‪‪(GMT+01:00)Austria Time
60
60
  * (GMT+01:00) Belgium Time
61
61
  * ```
62
62
  * @i2since 1.0
@@ -68,57 +68,57 @@ export declare namespace app {
68
68
  */
69
69
  readonly serverComponents: IServerComponents;
70
70
  /**
71
- * Queues a function that performs tracked mutations on the application contents at the next available opportunity.
71
+ * Queues a function that performs tracked mutations on the application contents at the next available opportunity,
72
+ * and can respond to the changes that the mutations cause.
72
73
  *
73
74
  * @remarks
74
75
  * A mutation is an operation that can read or modify the contents of the application.
75
76
  * A successful set of _tracked_ mutations is added as a single entry to the undo stack.
76
77
  *
77
78
  * @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
79
+ * @param responseHandler - A callback that receives the changes caused by the mutations.
78
80
  * @param options - An object that can control the transaction.
79
81
  * @i2since 1.1
80
82
  */
81
- runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
83
+ runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
82
84
  /**
83
- * Queues a function that performs tracked mutations on the application contents at the next available opportunity,
84
- * and can respond to the changes that the mutations cause.
85
+ * Queues a function that performs tracked mutations on the application contents at the next available opportunity.
85
86
  *
86
87
  * @remarks
87
88
  * A mutation is an operation that can read or modify the contents of the application.
88
89
  * A successful set of _tracked_ mutations is added as a single entry to the undo stack.
89
90
  *
90
91
  * @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
91
- * @param responseHandler - A callback that receives the changes caused by the mutations.
92
92
  * @param options - An object that can control the transaction.
93
93
  * @i2since 1.1
94
94
  */
95
- runTrackedMutations(mutationHandler: TrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
95
+ runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
96
96
  /**
97
- * Queues a function that performs untracked mutations on the application contents at the next available opportunity.
97
+ * Queues a function that performs untracked mutations on the application contents at the next available opportunity,
98
+ * and can respond to the changes that the mutations cause.
98
99
  *
99
100
  * @remarks
100
101
  * A mutation is an operation that can read or modify the contents of the application.
101
102
  * _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
102
103
  *
103
104
  * @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
105
+ * @param responseHandler - A callback that receives the changes produced by the mutations.
104
106
  * @param options - An object that can control the transaction.
105
107
  * @i2since 1.1
106
108
  */
107
- runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
109
+ runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
108
110
  /**
109
- * Queues a function that performs untracked mutations on the application contents at the next available opportunity,
110
- * and can respond to the changes that the mutations cause.
111
+ * Queues a function that performs untracked mutations on the application contents at the next available opportunity.
111
112
  *
112
113
  * @remarks
113
114
  * A mutation is an operation that can read or modify the contents of the application.
114
115
  * _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
115
116
  *
116
117
  * @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
117
- * @param responseHandler - A callback that receives the changes produced by the mutations.
118
118
  * @param options - An object that can control the transaction.
119
119
  * @i2since 1.1
120
120
  */
121
- runUntrackedMutations(mutationHandler: UntrackedMutationHandler, responseHandler?: MutationResponseHandler, options?: ITransactionOptions): void;
121
+ runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
122
122
  }
123
123
  /**
124
124
  * A report on the result of one or more mutations.
@@ -1327,6 +1327,21 @@ export declare namespace chart {
1327
1327
  * @i2since 1.0
1328
1328
  */
1329
1329
  readonly selection: ISelection;
1330
+ /**
1331
+ * Gets all the entity types in use on the chart.
1332
+ * @i2since 1.3
1333
+ */
1334
+ readonly entityTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartEntityType>;
1335
+ /**
1336
+ * Gets all the link types in use on the chart.
1337
+ * @i2since 1.3
1338
+ */
1339
+ readonly linkTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartLinkType>;
1340
+ /**
1341
+ * Gets all the entity types and link types in use on the chart.
1342
+ * @i2since 1.3
1343
+ */
1344
+ readonly itemTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartItemType>;
1330
1345
  /**
1331
1346
  * Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
1332
1347
  *
@@ -1343,17 +1358,13 @@ export declare namespace chart {
1343
1358
  */
1344
1359
  ensurePropertiesFetched(records: app.RecordSpecifier | Iterable<app.RecordSpecifier>, propertyTypes: schema.PropertyTypeSpecifier | Iterable<schema.PropertyTypeSpecifier>, signal?: AbortSignal): Promise<void>;
1345
1360
  /**
1346
- * Gets records on the chart grouped by record type.
1361
+ * Gets all the records in the chart that have the specified item type.
1347
1362
  *
1348
- * @remarks
1349
- * When record type is specified, the function returns only the record of that type, grouped accordingly.
1350
- * If no record type is specified, all record types on the chart are returned.
1351
- *
1352
- * @param recordTypes - The types of record on the chart.
1353
- * @returns A collection of records, indexed by record type identifier.
1363
+ * @param itemType - The chart item type of the records to retrieve.
1364
+ * @returns A collection of records that might be empty if the chart contains no records of the specified type.
1354
1365
  * @i2since 1.3
1355
1366
  */
1356
- getRecordsByType(recordTypes?: schema.RecordTypeSpecifier | Iterable<schema.RecordTypeSpecifier>): data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, data.IReadOnlyCollection<records.IChartRecord>>;
1367
+ getRecordsOfType(itemType: schema.ChartItemTypeSpecifier): data.IReadOnlyCollection<records.IChartRecord>;
1357
1368
  }
1358
1369
  /**
1359
1370
  * A change that has occurred to the data in a chart.
@@ -2259,6 +2270,16 @@ export declare namespace commands {
2259
2270
  * @i2since 1.3
2260
2271
  */
2261
2272
  readonly toggleLists: CommandId;
2273
+ /**
2274
+ * Gets the identifier of the "Export to PDF" system command.
2275
+ * @i2since 1.3
2276
+ */
2277
+ readonly exportPdf: CommandId;
2278
+ /**
2279
+ * Gets the identifier of the system command that allows users to share records with each other.
2280
+ * @i2since 1.3
2281
+ */
2282
+ readonly shareRecords: CommandId;
2262
2283
  }
2263
2284
  /**
2264
2285
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -2779,9 +2800,9 @@ export declare namespace data {
2779
2800
  */
2780
2801
  export interface IKeyedReadOnlyCollection<K, V> extends IReadOnlyCollection<V> {
2781
2802
  /**
2782
- * Returns a collection of key-value pairs that can be used to iterate over all the items in the collection.
2803
+ * Retrieves an iterator over all the objects in the collection.
2783
2804
  *
2784
- * @returns An iterable collection of key-value pairs where the key is of type 'K' and the value is of type 'V'.
2805
+ * @returns An iterable collection in which the keys are of type `K` and the values are of type `V`.
2785
2806
  * @i2since 1.3
2786
2807
  */
2787
2808
  entries(): Iterable<[K, V]>;
@@ -3004,6 +3025,7 @@ export declare interface IEntryPointApi extends app.IApplication {
3004
3025
  * For example, setting `path` to '`./`' makes the server use the folder that contains the entry point.
3005
3026
  * @returns The new tool view.
3006
3027
  * @i2since 1.0
3028
+ * @deprecated since version 1.3. Use {@link (IEntryPointApi:interface).(createToolView:2)} instead.
3007
3029
  */
3008
3030
  createToolView(name: string, path: string): toolview.IToolView;
3009
3031
  /**
@@ -3765,10 +3787,10 @@ export declare namespace schema {
3765
3787
  */
3766
3788
  export type AnalyzeItemTypeId = string;
3767
3789
  /**
3768
- * A common specifier for a record type.
3790
+ * A common specifier for a chart item type.
3769
3791
  * @i2since 1.3
3770
3792
  */
3771
- export type RecordTypeSpecifier = ChartItemTypeId | IChartItemType;
3793
+ export type ChartItemTypeSpecifier = ChartItemTypeId | IChartItemType;
3772
3794
  /**
3773
3795
  * A set of information that is common to all item types in i2 Notebook.
3774
3796
  * @i2since 1.0
@@ -3858,7 +3880,7 @@ export declare namespace schema {
3858
3880
  */
3859
3881
  export type AnalyzePropertyTypeId = string;
3860
3882
  /**
3861
- * A common specifier for a property type.
3883
+ * A common specifier for a chart property type.
3862
3884
  * @i2since 1.1
3863
3885
  */
3864
3886
  export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
@@ -4191,7 +4213,7 @@ export declare namespace toolview {
4191
4213
  * @i2since 1.0
4192
4214
  * @deprecated `toolview.SerializableValue` is no longer used. Replace any existing use with `unknown`.
4193
4215
  */
4194
- export type SerializableValue = string | number | boolean | null | BigInt | Date | SerializableValue[] | {
4216
+ export type SerializableValue = string | number | boolean | null | bigint | Date | SerializableValue[] | {
4195
4217
  [key: string]: SerializableValue;
4196
4218
  };
4197
4219
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.3.0-dev.8",
3
+ "version": "1.3.0",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {