@i2analyze/notebook-sdk 1.5.0-dev.2 → 1.5.0-dev.3

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.
@@ -280,9 +280,21 @@ export declare namespace app {
280
280
  export interface IMutationResult {
281
281
  /**
282
282
  * Gets the changes that were caused by the mutation.
283
+ * The change will consist of empty collections if there is only a schema change.
283
284
  * @i2since 1.1
285
+ * @deprecated Deprecated since version 1.5. `app.IMutationResult.change` has been renamed to {@link app.IMutationResult.chartChange}.
284
286
  */
285
- change: chart.IChartChange;
287
+ readonly change: chart.IChartChange;
288
+ /**
289
+ * Gets the chart changes that were caused by the mutation.
290
+ * @i2since 1.5
291
+ */
292
+ readonly chartChange?: chart.IChartChange;
293
+ /**
294
+ * Gets the chart schema changes.
295
+ * @i2since 1.5
296
+ */
297
+ readonly schemaChange?: schema.ISchemaChange;
286
298
  }
287
299
  /**
288
300
  * A collection of methods and properties for handling the situation when a user cancels an operation.
@@ -1553,6 +1565,11 @@ export declare namespace chart {
1553
1565
  * @i2since 1.0
1554
1566
  */
1555
1567
  readonly chartviewchange: ViewListener;
1568
+ /**
1569
+ * Gets the type of the callback method that listens for "chartschemachange" events.
1570
+ * @i2since 1.5
1571
+ */
1572
+ readonly chartschemachange: SchemaChangeListener;
1556
1573
  }
1557
1574
  /**
1558
1575
  * A mapping of chart event types to their listener options types.
@@ -1574,6 +1591,11 @@ export declare namespace chart {
1574
1591
  * @i2since 1.0
1575
1592
  */
1576
1593
  readonly chartviewchange: app.ISubscriptionOptions;
1594
+ /**
1595
+ * Gets the type of the object that provides control over "chartschemachange" event listeners.
1596
+ * @i2since 1.5
1597
+ */
1598
+ readonly chartschemachange: app.ISubscriptionOptions;
1577
1599
  }
1578
1600
  /**
1579
1601
  * A callback function that handles chart selection events.
@@ -1591,6 +1613,14 @@ export declare namespace chart {
1591
1613
  * @i2since 1.0
1592
1614
  */
1593
1615
  export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
1616
+ /**
1617
+ * A callback function that handles chart schema change events.
1618
+ *
1619
+ * @param schemaChange - The change in the chart schema that triggered the callback, and the source of the schema change.
1620
+ * @param applicationContents - The contents of the application, including the current chart.
1621
+ * @i2since 1.5
1622
+ */
1623
+ export type SchemaChangeListener = (schemaChange: schema.ISchemaChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
1594
1624
  /**
1595
1625
  * A callback function that handles chart view events.
1596
1626
  *
@@ -2111,7 +2141,7 @@ export declare namespace commands {
2111
2141
  */
2112
2142
  setEnabled(value: boolean): void;
2113
2143
  /**
2114
- * Sets the icon of the action.
2144
+ * Sets the icon for the action.
2115
2145
  *
2116
2146
  * @param value - An icon for the action.
2117
2147
  * @i2since 1.5
@@ -4463,6 +4493,27 @@ export declare namespace schema {
4463
4493
  */
4464
4494
  readonly description: string;
4465
4495
  }
4496
+ /**
4497
+ * A type that represents the item types changes within the chart schema.
4498
+ * @i2since 1.5
4499
+ */
4500
+ export interface ISchemaChange {
4501
+ /**
4502
+ * Gets the item types that were added.
4503
+ * @i2since 1.5
4504
+ */
4505
+ readonly added: data.IReadOnlyCollection<IChartItemType>;
4506
+ /**
4507
+ * Gets the item types that were changed.
4508
+ * @i2since 1.5
4509
+ */
4510
+ readonly changed: data.IReadOnlyCollection<IChartItemType>;
4511
+ /**
4512
+ * Gets the identifiers of the item types that were removed.
4513
+ * @i2since 1.5
4514
+ */
4515
+ readonly removed: data.IReadOnlyCollection<ChartItemTypeId>;
4516
+ }
4466
4517
  }
4467
4518
 
4468
4519
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.5.0-dev.2",
3
+ "version": "1.5.0-dev.3",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {