@i2analyze/notebook-sdk 1.6.0-dev.18 → 1.6.0-dev.19

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.
@@ -380,6 +380,11 @@ export declare namespace app {
380
380
  * @i2since 1.2
381
381
  */
382
382
  export type EdgeSpecifier = visual.ElementId | visual.IEdge;
383
+ /**
384
+ * A common specifier for an edge summary, for use in mutation APIs.
385
+ * @i2since 1.6
386
+ */
387
+ export type EdgeSummarySpecifier = visual.ElementId | visual.IEdgeSummary;
383
388
  /**
384
389
  * The identifier of a record group.
385
390
  * @i2since 1.1
@@ -498,6 +503,27 @@ export declare namespace app {
498
503
  * @i2since 1.1
499
504
  */
500
505
  export interface IUntrackedMutations extends IMutationsBase {
506
+ /**
507
+ * Gets an object with methods for editing the appearance of an edge summary.
508
+ * @param edge - The edge summary to edit.
509
+ * @returns The edge-summary-editing object.
510
+ * @i2since 1.6
511
+ */
512
+ editEdgeSummary(edge: EdgeSummarySpecifier): IEdgeSummaryEditor;
513
+ }
514
+ /**
515
+ * A set of methods for modifying the appearance of an edge summary.
516
+ * @i2since 1.6
517
+ */
518
+ export interface IEdgeSummaryEditor {
519
+ /**
520
+ * Sets or resets the label of the edge summary.
521
+ *
522
+ * @param label - The label to set, or `undefined` to reset the label to the default.
523
+ * @returns The edge summary, with its label set to the specified value.
524
+ * @i2since 1.6
525
+ */
526
+ setLabel(label: string | undefined): this;
501
527
  }
502
528
  /**
503
529
  * A set of methods for modifying the contents of a record.
@@ -1373,6 +1399,11 @@ export declare namespace chart {
1373
1399
  * @i2since 1.0
1374
1400
  */
1375
1401
  readonly edges: data.IKeyedReadOnlyCollection<visual.ElementId, visual.IEdge>;
1402
+ /**
1403
+ * Gets all the edge summaries in the chart.
1404
+ * @i2since 1.6
1405
+ */
1406
+ readonly edgeSummaries: data.IKeyedReadOnlyCollection<visual.ElementId, visual.IEdgeSummary>;
1376
1407
  /**
1377
1408
  * Gets all the records in the chart.
1378
1409
  * @i2since 1.0
@@ -1512,6 +1543,27 @@ export declare namespace chart {
1512
1543
  */
1513
1544
  readonly removed: data.IReadOnlyCollection<records.AnalyzeRecordId>;
1514
1545
  };
1546
+ /**
1547
+ * Gets the {@link visual.IEdgeSummary | edge summaries} that changed.
1548
+ * @i2since 1.6
1549
+ */
1550
+ readonly edgeSummaries: {
1551
+ /**
1552
+ * Gets the edge summaries that were added.
1553
+ * @i2since 1.6
1554
+ */
1555
+ readonly added: data.IReadOnlyCollection<visual.IEdgeSummary>;
1556
+ /**
1557
+ * Gets the edge summaries that were changed.
1558
+ * @i2since 1.6
1559
+ */
1560
+ readonly changed: data.IReadOnlyCollection<visual.IEdgeSummary>;
1561
+ /**
1562
+ * Gets the identifiers of the edge summaries that were removed.
1563
+ * @i2since 1.6
1564
+ */
1565
+ readonly removed: data.IReadOnlyCollection<visual.ElementId>;
1566
+ };
1515
1567
  }
1516
1568
  /**
1517
1569
  * A change to the data in a chart in i2 Notebook.
@@ -2378,7 +2430,7 @@ export declare namespace commands {
2378
2430
  */
2379
2431
  readonly shareRecords: CommandId;
2380
2432
  /**
2381
- * Gets the identifier of the system command that toggles the Charting Preferences UI.
2433
+ * Gets the identifier of the system command that toggles the charting preferences UI.
2382
2434
  * @i2since 1.6
2383
2435
  */
2384
2436
  readonly toggleChartingPreferences: CommandId;
@@ -2388,7 +2440,7 @@ export declare namespace commands {
2388
2440
  */
2389
2441
  readonly toggleExpand: CommandId;
2390
2442
  /**
2391
- * Gets the identifier of the system command that toggles the Explore selection UI.
2443
+ * Gets the identifier of the system command that toggles the explore selection UI.
2392
2444
  * @i2since 1.6
2393
2445
  */
2394
2446
  readonly toggleExplore: CommandId;
@@ -4377,11 +4429,6 @@ export declare namespace schema {
4377
4429
  * @i2since 1.6
4378
4430
  */
4379
4431
  readonly propertyTypes?: Iterable<IPropertyTypeData>;
4380
- /**
4381
- * Gets the label definition for the custom item type.
4382
- * @i2since 1.6
4383
- */
4384
- readonly labelDefinition?: Iterable<ILabelPartData>;
4385
4432
  }
4386
4433
  /**
4387
4434
  * A set of data for creating a custom entity type.
@@ -4400,43 +4447,6 @@ export declare namespace schema {
4400
4447
  */
4401
4448
  export interface IChartLinkTypeData extends IChartItemTypeDataBase {
4402
4449
  }
4403
- /**
4404
- * A set of data for creating a part of a label from a property value.
4405
- * @i2since 1.6
4406
- */
4407
- export interface IChartPropertyLabelPartData {
4408
- /**
4409
- * Gets the type of the property whose value is to be used for the label part.
4410
- * @i2since 1.6
4411
- */
4412
- readonly propertyType: IChartPropertyType;
4413
- /**
4414
- * Gets the type of label part.
4415
- * @i2since 1.6
4416
- */
4417
- readonly type: 'chartProperty';
4418
- }
4419
- /**
4420
- * A set of data for creating a label definition.
4421
- * @i2since 1.6
4422
- */
4423
- export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
4424
- /**
4425
- * A part of a label that consists of a pending custom property type.
4426
- * @i2since 1.6
4427
- */
4428
- export interface IPendingPropertyLabelPart {
4429
- /**
4430
- * Gets the type of the property whose value is used for the label part.
4431
- * @i2since 1.6
4432
- */
4433
- readonly propertyType: IPendingPropertyType;
4434
- /**
4435
- * Gets the type of label part.
4436
- * @i2since 1.6
4437
- */
4438
- readonly type: 'chartProperty';
4439
- }
4440
4450
  /**
4441
4451
  * A set of data for creating a custom property type.
4442
4452
  * @i2since 1.6
@@ -4452,6 +4462,14 @@ export declare namespace schema {
4452
4462
  * @i2since 1.6
4453
4463
  */
4454
4464
  readonly logicalType: CustomLogicalType;
4465
+ /**
4466
+ * Indicates whether the custom property type forms part of the item type's label definition.
4467
+ *
4468
+ * @remarks
4469
+ * This field is present only when the custom property type has a string-based logical type.
4470
+ * @i2since 1.6
4471
+ */
4472
+ readonly isLabelPart?: boolean;
4455
4473
  }
4456
4474
  /**
4457
4475
  * An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
@@ -4482,14 +4500,6 @@ export declare namespace schema {
4482
4500
  * @i2since 1.6
4483
4501
  */
4484
4502
  setDisplayName(displayName: string): this;
4485
- /**
4486
- * Sets the label definition of the item type.
4487
- *
4488
- * @param labelDefinition - The label definition to set.
4489
- * @returns This item type, with the new label definition in place.
4490
- * @i2since 1.6
4491
- */
4492
- setLabelDefinition(labelDefinition: Iterable<ILabelPartData>): this;
4493
4503
  }
4494
4504
  /**
4495
4505
  * A set of methods for adding and modifying custom property types on schema and custom item types.
@@ -4545,6 +4555,14 @@ export declare namespace schema {
4545
4555
  * @i2since 1.6
4546
4556
  */
4547
4557
  logicalType: CustomLogicalType;
4558
+ /**
4559
+ * Indicates whether the property type forms part of the item type's label definition.
4560
+ *
4561
+ * @remarks
4562
+ * This field is present only when the property type has a string-based logical type.
4563
+ * @i2since 1.6
4564
+ */
4565
+ readonly isLabelPart?: boolean;
4548
4566
  }
4549
4567
  /**
4550
4568
  * A set of methods for modifying a custom property type.
@@ -4567,6 +4585,14 @@ export declare namespace schema {
4567
4585
  * @i2since 1.6
4568
4586
  */
4569
4587
  moveAfter(propertyType: IChartPropertyType | IPendingPropertyType | null): this;
4588
+ /**
4589
+ * Sets whether the property type forms part of the item type's label definition.
4590
+ *
4591
+ * @param isLabelPart - `true` if the property type is part of the label definition; `false` otherwise.
4592
+ * @returns This property type, with its new setting.
4593
+ * @i2since 1.6
4594
+ */
4595
+ setIsLabelPart(isLabelPart: boolean): this;
4570
4596
  }
4571
4597
  /**
4572
4598
  * The type of a schema.
@@ -5431,6 +5457,42 @@ export declare namespace visual {
5431
5457
  */
5432
5458
  readonly bottomRight: IPosition;
5433
5459
  }
5460
+ /**
5461
+ * An edge summary, which is a collection of edges that share the same 'from' and 'to' nodes and link type.
5462
+ * @i2since 1.6
5463
+ */
5464
+ export interface IEdgeSummary {
5465
+ /**
5466
+ * Gets the identifier of the edge summary.
5467
+ * @i2since 1.6
5468
+ */
5469
+ readonly id: ElementId;
5470
+ /**
5471
+ * Gets the node at the 'from' end of the edge summary.
5472
+ * @i2since 1.6
5473
+ */
5474
+ readonly fromEnd: INode;
5475
+ /**
5476
+ * Gets the node at the 'to' end of the edge summary.
5477
+ * @i2since 1.6
5478
+ */
5479
+ readonly toEnd: INode;
5480
+ /**
5481
+ * Gets the link type of the edges in the edge summary.
5482
+ * @i2since 1.6
5483
+ */
5484
+ readonly linkType: schema.IChartLinkType;
5485
+ /**
5486
+ * Gets the label of the edge summary, or undefined if there is no explicit label.
5487
+ * @i2since 1.6
5488
+ */
5489
+ readonly label: string | undefined;
5490
+ /**
5491
+ * Gets the edges in the edge summary.
5492
+ * @i2since 1.6
5493
+ */
5494
+ readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
5495
+ }
5434
5496
  }
5435
5497
 
5436
5498
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.18",
3
+ "version": "1.6.0-dev.19",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@ibmi2/eslint-config": "^13.0.0",
16
- "@ibmi2/webui-lerna-build-scripts": "^5.1.0",
16
+ "@ibmi2/webui-lerna-build-scripts": "^6.0.1",
17
17
  "@microsoft/api-documenter": "7.19.28",
18
18
  "@microsoft/api-extractor": "7.33.8",
19
19
  "concurrently": "^7.3.0",