@i2analyze/notebook-sdk 1.6.0-dev.17 → 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.
- package/lib/gen/notebook-sdk-public.d.ts +126 -53
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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;
|
|
@@ -2407,7 +2459,8 @@ export declare namespace commands {
|
|
|
2407
2459
|
* @i2since 1.1
|
|
2408
2460
|
*/
|
|
2409
2461
|
readonly toggleMap: CommandId;
|
|
2410
|
-
/**
|
|
2462
|
+
/**
|
|
2463
|
+
* Gets the identifier of the system command that toggles the palette UI.
|
|
2411
2464
|
* @i2since 1.6
|
|
2412
2465
|
*/
|
|
2413
2466
|
readonly togglePalette: CommandId;
|
|
@@ -2436,6 +2489,11 @@ export declare namespace commands {
|
|
|
2436
2489
|
* @i2since 1.0
|
|
2437
2490
|
*/
|
|
2438
2491
|
readonly undo: CommandId;
|
|
2492
|
+
/**
|
|
2493
|
+
* Gets the identifier of the system command that allows users to download records in Excel format.
|
|
2494
|
+
* @i2since 1.6
|
|
2495
|
+
*/
|
|
2496
|
+
readonly downloadRecords: CommandId;
|
|
2439
2497
|
}
|
|
2440
2498
|
/**
|
|
2441
2499
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -2498,6 +2556,11 @@ export declare namespace commands {
|
|
|
2498
2556
|
* @i2since 1.2
|
|
2499
2557
|
*/
|
|
2500
2558
|
readonly select: GroupId;
|
|
2559
|
+
/**
|
|
2560
|
+
* Gets the identifier of the system action group related to publishing (sharing and downloading) records.
|
|
2561
|
+
* @i2since 1.6
|
|
2562
|
+
*/
|
|
2563
|
+
readonly publish: GroupId;
|
|
2501
2564
|
}
|
|
2502
2565
|
/**
|
|
2503
2566
|
* A lookup table for the identifiers of the system action groups in the chart pop-up menu.
|
|
@@ -4366,11 +4429,6 @@ export declare namespace schema {
|
|
|
4366
4429
|
* @i2since 1.6
|
|
4367
4430
|
*/
|
|
4368
4431
|
readonly propertyTypes?: Iterable<IPropertyTypeData>;
|
|
4369
|
-
/**
|
|
4370
|
-
* Gets the label definition for the custom item type.
|
|
4371
|
-
* @i2since 1.6
|
|
4372
|
-
*/
|
|
4373
|
-
readonly labelDefinition?: Iterable<ILabelPartData>;
|
|
4374
4432
|
}
|
|
4375
4433
|
/**
|
|
4376
4434
|
* A set of data for creating a custom entity type.
|
|
@@ -4389,43 +4447,6 @@ export declare namespace schema {
|
|
|
4389
4447
|
*/
|
|
4390
4448
|
export interface IChartLinkTypeData extends IChartItemTypeDataBase {
|
|
4391
4449
|
}
|
|
4392
|
-
/**
|
|
4393
|
-
* A set of data for creating a part of a label from a property value.
|
|
4394
|
-
* @i2since 1.6
|
|
4395
|
-
*/
|
|
4396
|
-
export interface IChartPropertyLabelPartData {
|
|
4397
|
-
/**
|
|
4398
|
-
* Gets the type of the property whose value is to be used for the label part.
|
|
4399
|
-
* @i2since 1.6
|
|
4400
|
-
*/
|
|
4401
|
-
readonly propertyType: IChartPropertyType;
|
|
4402
|
-
/**
|
|
4403
|
-
* Gets the type of label part.
|
|
4404
|
-
* @i2since 1.6
|
|
4405
|
-
*/
|
|
4406
|
-
readonly type: 'chartProperty';
|
|
4407
|
-
}
|
|
4408
|
-
/**
|
|
4409
|
-
* A set of data for creating a label definition.
|
|
4410
|
-
* @i2since 1.6
|
|
4411
|
-
*/
|
|
4412
|
-
export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
|
|
4413
|
-
/**
|
|
4414
|
-
* A part of a label that consists of a pending custom property type.
|
|
4415
|
-
* @i2since 1.6
|
|
4416
|
-
*/
|
|
4417
|
-
export interface IPendingPropertyLabelPart {
|
|
4418
|
-
/**
|
|
4419
|
-
* Gets the type of the property whose value is used for the label part.
|
|
4420
|
-
* @i2since 1.6
|
|
4421
|
-
*/
|
|
4422
|
-
readonly propertyType: IPendingPropertyType;
|
|
4423
|
-
/**
|
|
4424
|
-
* Gets the type of label part.
|
|
4425
|
-
* @i2since 1.6
|
|
4426
|
-
*/
|
|
4427
|
-
readonly type: 'chartProperty';
|
|
4428
|
-
}
|
|
4429
4450
|
/**
|
|
4430
4451
|
* A set of data for creating a custom property type.
|
|
4431
4452
|
* @i2since 1.6
|
|
@@ -4441,6 +4462,14 @@ export declare namespace schema {
|
|
|
4441
4462
|
* @i2since 1.6
|
|
4442
4463
|
*/
|
|
4443
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;
|
|
4444
4473
|
}
|
|
4445
4474
|
/**
|
|
4446
4475
|
* An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
|
|
@@ -4471,14 +4500,6 @@ export declare namespace schema {
|
|
|
4471
4500
|
* @i2since 1.6
|
|
4472
4501
|
*/
|
|
4473
4502
|
setDisplayName(displayName: string): this;
|
|
4474
|
-
/**
|
|
4475
|
-
* Sets the label definition of the item type.
|
|
4476
|
-
*
|
|
4477
|
-
* @param labelDefinition - The label definition to set.
|
|
4478
|
-
* @returns This item type, with the new label definition in place.
|
|
4479
|
-
* @i2since 1.6
|
|
4480
|
-
*/
|
|
4481
|
-
setLabelDefinition(labelDefinition: Iterable<ILabelPartData>): this;
|
|
4482
4503
|
}
|
|
4483
4504
|
/**
|
|
4484
4505
|
* A set of methods for adding and modifying custom property types on schema and custom item types.
|
|
@@ -4534,6 +4555,14 @@ export declare namespace schema {
|
|
|
4534
4555
|
* @i2since 1.6
|
|
4535
4556
|
*/
|
|
4536
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;
|
|
4537
4566
|
}
|
|
4538
4567
|
/**
|
|
4539
4568
|
* A set of methods for modifying a custom property type.
|
|
@@ -4556,6 +4585,14 @@ export declare namespace schema {
|
|
|
4556
4585
|
* @i2since 1.6
|
|
4557
4586
|
*/
|
|
4558
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;
|
|
4559
4596
|
}
|
|
4560
4597
|
/**
|
|
4561
4598
|
* The type of a schema.
|
|
@@ -5420,6 +5457,42 @@ export declare namespace visual {
|
|
|
5420
5457
|
*/
|
|
5421
5458
|
readonly bottomRight: IPosition;
|
|
5422
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
|
+
}
|
|
5423
5496
|
}
|
|
5424
5497
|
|
|
5425
5498
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i2analyze/notebook-sdk",
|
|
3
|
-
"version": "1.6.0-dev.
|
|
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": "^
|
|
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",
|