@i2analyze/notebook-sdk 1.6.0-dev.11 → 1.6.0-dev.13
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 +34 -24
- package/package.json +1 -1
|
@@ -975,7 +975,7 @@ export declare namespace app {
|
|
|
975
975
|
* @returns The type-editing object.
|
|
976
976
|
* @i2since 1.6
|
|
977
977
|
*/
|
|
978
|
-
editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor | schema.
|
|
978
|
+
editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor | schema.IPropertyTypesEditor;
|
|
979
979
|
}
|
|
980
980
|
/**
|
|
981
981
|
* A collection of elements and records that together represent a selection on the chart surface.
|
|
@@ -4192,7 +4192,7 @@ export declare namespace schema {
|
|
|
4192
4192
|
readonly type: 'literal';
|
|
4193
4193
|
}
|
|
4194
4194
|
/**
|
|
4195
|
-
* A part of a label that consists of a property
|
|
4195
|
+
* A part of a label that consists of a property value.
|
|
4196
4196
|
* @i2since 1.0
|
|
4197
4197
|
*/
|
|
4198
4198
|
export interface IChartPropertyLabelPart {
|
|
@@ -4379,11 +4379,27 @@ export declare namespace schema {
|
|
|
4379
4379
|
*/
|
|
4380
4380
|
export interface IChartLinkTypeData extends IChartItemTypeDataBase {
|
|
4381
4381
|
}
|
|
4382
|
+
/**
|
|
4383
|
+
* A set of data for creating a part of a label from a property value.
|
|
4384
|
+
* @i2since 1.6
|
|
4385
|
+
*/
|
|
4386
|
+
export interface IChartPropertyLabelPartData {
|
|
4387
|
+
/**
|
|
4388
|
+
* Gets the identifier or the type of the property whose value is to be used for the label part.
|
|
4389
|
+
* @i2since 1.6
|
|
4390
|
+
*/
|
|
4391
|
+
readonly propertyType: PropertyTypeSpecifier;
|
|
4392
|
+
/**
|
|
4393
|
+
* Gets the type of label part.
|
|
4394
|
+
* @i2since 1.6
|
|
4395
|
+
*/
|
|
4396
|
+
readonly type: 'chartProperty';
|
|
4397
|
+
}
|
|
4382
4398
|
/**
|
|
4383
4399
|
* A set of data for creating a label definition.
|
|
4384
4400
|
* @i2since 1.6
|
|
4385
4401
|
*/
|
|
4386
|
-
export type ILabelPartData = ILiteralLabelPart |
|
|
4402
|
+
export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
|
|
4387
4403
|
/**
|
|
4388
4404
|
* A part of a label that consists of a pending custom property type.
|
|
4389
4405
|
* @i2since 1.6
|
|
@@ -4431,12 +4447,12 @@ export declare namespace schema {
|
|
|
4431
4447
|
* A set of methods for modifying a custom item type.
|
|
4432
4448
|
* @i2since 1.6
|
|
4433
4449
|
*/
|
|
4434
|
-
export interface IItemTypeEditor extends
|
|
4450
|
+
export interface IItemTypeEditor extends IPropertyTypesEditor {
|
|
4435
4451
|
/**
|
|
4436
|
-
* Indicates
|
|
4452
|
+
* Indicates whether the item type is a custom type.
|
|
4437
4453
|
* @i2since 1.6
|
|
4438
4454
|
*/
|
|
4439
|
-
readonly
|
|
4455
|
+
readonly isCustomItemType: true;
|
|
4440
4456
|
/**
|
|
4441
4457
|
* Sets the display name of the item type.
|
|
4442
4458
|
*
|
|
@@ -4455,26 +4471,26 @@ export declare namespace schema {
|
|
|
4455
4471
|
setLabelDefinition(labelDefinition: Iterable<ILabelPartData>): this;
|
|
4456
4472
|
}
|
|
4457
4473
|
/**
|
|
4458
|
-
* A set of methods for adding and
|
|
4474
|
+
* A set of methods for adding and modifying custom property types on schema and custom item types.
|
|
4459
4475
|
* @i2since 1.6
|
|
4460
4476
|
*/
|
|
4461
|
-
export interface
|
|
4477
|
+
export interface IPropertyTypesEditor {
|
|
4462
4478
|
/**
|
|
4463
4479
|
* Indicates whether the item type is a custom type.
|
|
4464
4480
|
* @i2since 1.6
|
|
4465
4481
|
*/
|
|
4466
|
-
|
|
4482
|
+
readonly isCustomItemType: boolean;
|
|
4467
4483
|
/**
|
|
4468
4484
|
* Creates a custom property type that is added to the chart schema on committal.
|
|
4469
4485
|
*
|
|
4470
|
-
* @param
|
|
4471
|
-
* @param insertAfter - The
|
|
4486
|
+
* @param propertyTypeData - The data for creating the custom property type.
|
|
4487
|
+
* @param insertAfter - The existing property type to insert the new property type after.
|
|
4472
4488
|
* If this is not provided, the new property type is added at the end of the list.
|
|
4473
4489
|
* If this is null, the new property type is added at the beginning of the list.
|
|
4474
4490
|
* @returns The new, pending property type.
|
|
4475
4491
|
* @i2since 1.6
|
|
4476
4492
|
*/
|
|
4477
|
-
addPropertyType(
|
|
4493
|
+
addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?: PropertyTypeSpecifier | IPendingPropertyType | null): IPendingPropertyType;
|
|
4478
4494
|
/**
|
|
4479
4495
|
* Gets an object with methods for editing a custom property type.
|
|
4480
4496
|
*
|
|
@@ -4482,7 +4498,7 @@ export declare namespace schema {
|
|
|
4482
4498
|
* @returns The type-editing object.
|
|
4483
4499
|
* @i2since 1.6
|
|
4484
4500
|
*/
|
|
4485
|
-
editPropertyType(propertyType:
|
|
4501
|
+
editPropertyType(propertyType: PropertyTypeSpecifier | IPendingPropertyType): IPropertyTypeEditor;
|
|
4486
4502
|
/**
|
|
4487
4503
|
* Gets an object with methods for editing a custom property type.
|
|
4488
4504
|
*
|
|
@@ -4493,11 +4509,6 @@ export declare namespace schema {
|
|
|
4493
4509
|
*/
|
|
4494
4510
|
editPropertyType(typeId: AnalyzePropertyTypeId, logicalType: CustomLogicalType): IPropertyTypeEditor;
|
|
4495
4511
|
}
|
|
4496
|
-
/**
|
|
4497
|
-
* A common specifier for a custom property type.
|
|
4498
|
-
* @i2since 1.6
|
|
4499
|
-
*/
|
|
4500
|
-
export type CustomPropertyTypeSpecifier = IChartPropertyType | IPendingPropertyType;
|
|
4501
4512
|
/**
|
|
4502
4513
|
* A custom property type that has been created in a transaction handler, but has not yet been added to a chart schema.
|
|
4503
4514
|
* @i2since 1.6
|
|
@@ -4528,14 +4539,13 @@ export declare namespace schema {
|
|
|
4528
4539
|
*/
|
|
4529
4540
|
setDisplayName(displayName: string): this;
|
|
4530
4541
|
/**
|
|
4531
|
-
* Moves the property type after the specified property type.
|
|
4542
|
+
* Moves the property type after the specified property type in the item type's list.
|
|
4532
4543
|
*
|
|
4533
|
-
* @param propertyType - The property type
|
|
4534
|
-
*
|
|
4535
|
-
* @returns This property type editor, with the edited properties in place.
|
|
4544
|
+
* @param propertyType - The property type to move the property type after, or null to move it to the beginning of the list.
|
|
4545
|
+
* @returns This property type, in its new position.
|
|
4536
4546
|
* @i2since 1.6
|
|
4537
4547
|
*/
|
|
4538
|
-
moveAfter(propertyType:
|
|
4548
|
+
moveAfter(propertyType: PropertyTypeSpecifier | IPendingPropertyType | null): this;
|
|
4539
4549
|
}
|
|
4540
4550
|
/**
|
|
4541
4551
|
* The type of a schema.
|
|
@@ -4619,7 +4629,7 @@ export declare namespace schema {
|
|
|
4619
4629
|
* Indicates whether the property type is a custom type.
|
|
4620
4630
|
* @i2since 1.6
|
|
4621
4631
|
*/
|
|
4622
|
-
readonly
|
|
4632
|
+
readonly isCustom: boolean;
|
|
4623
4633
|
/**
|
|
4624
4634
|
* Gets the maximum string length for the value of a property that has the property type.
|
|
4625
4635
|
*
|