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

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.
@@ -4429,6 +4429,11 @@ export declare namespace schema {
4429
4429
  * @i2since 1.6
4430
4430
  */
4431
4431
  readonly propertyTypes?: Iterable<IPropertyTypeData>;
4432
+ /**
4433
+ * Gets the label definition for the custom item type.
4434
+ * @i2since 1.6
4435
+ */
4436
+ readonly labelDefinition?: Iterable<ILabelPartData>;
4432
4437
  }
4433
4438
  /**
4434
4439
  * A set of data for creating a custom entity type.
@@ -4447,6 +4452,43 @@ export declare namespace schema {
4447
4452
  */
4448
4453
  export interface IChartLinkTypeData extends IChartItemTypeDataBase {
4449
4454
  }
4455
+ /**
4456
+ * A set of data for creating a part of a label from a property value.
4457
+ * @i2since 1.6
4458
+ */
4459
+ export interface IChartPropertyLabelPartData {
4460
+ /**
4461
+ * Gets the type of the property whose value is to be used for the label part.
4462
+ * @i2since 1.6
4463
+ */
4464
+ readonly propertyType: IChartPropertyType;
4465
+ /**
4466
+ * Gets the type of label part.
4467
+ * @i2since 1.6
4468
+ */
4469
+ readonly type: 'chartProperty';
4470
+ }
4471
+ /**
4472
+ * A set of data for creating a label definition.
4473
+ * @i2since 1.6
4474
+ */
4475
+ export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
4476
+ /**
4477
+ * A part of a label that consists of a pending custom property type.
4478
+ * @i2since 1.6
4479
+ */
4480
+ export interface IPendingPropertyLabelPart {
4481
+ /**
4482
+ * Gets the type of the property whose value is used for the label part.
4483
+ * @i2since 1.6
4484
+ */
4485
+ readonly propertyType: IPendingPropertyType;
4486
+ /**
4487
+ * Gets the type of label part.
4488
+ * @i2since 1.6
4489
+ */
4490
+ readonly type: 'chartProperty';
4491
+ }
4450
4492
  /**
4451
4493
  * A set of data for creating a custom property type.
4452
4494
  * @i2since 1.6
@@ -4462,14 +4504,6 @@ export declare namespace schema {
4462
4504
  * @i2since 1.6
4463
4505
  */
4464
4506
  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;
4473
4507
  }
4474
4508
  /**
4475
4509
  * An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
@@ -4500,6 +4534,14 @@ export declare namespace schema {
4500
4534
  * @i2since 1.6
4501
4535
  */
4502
4536
  setDisplayName(displayName: string): this;
4537
+ /**
4538
+ * Sets the label definition of the item type.
4539
+ *
4540
+ * @param labelDefinition - The label definition to set.
4541
+ * @returns This item type, with the new label definition in place.
4542
+ * @i2since 1.6
4543
+ */
4544
+ setLabelDefinition(labelDefinition: Iterable<ILabelPartData>): this;
4503
4545
  }
4504
4546
  /**
4505
4547
  * A set of methods for adding and modifying custom property types on schema and custom item types.
@@ -4555,14 +4597,6 @@ export declare namespace schema {
4555
4597
  * @i2since 1.6
4556
4598
  */
4557
4599
  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;
4566
4600
  }
4567
4601
  /**
4568
4602
  * A set of methods for modifying a custom property type.
@@ -4585,14 +4619,6 @@ export declare namespace schema {
4585
4619
  * @i2since 1.6
4586
4620
  */
4587
4621
  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;
4596
4622
  }
4597
4623
  /**
4598
4624
  * The type of a schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.19",
3
+ "version": "1.6.0-dev.20",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {