@i2analyze/notebook-sdk 1.6.0-dev.1 → 1.6.0-dev.2

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.
@@ -952,6 +952,30 @@ export declare namespace app {
952
952
  * @i2since 1.1
953
953
  */
954
954
  removeSelectedRecords(): void;
955
+ /**
956
+ * Creates an entity type.
957
+ *
958
+ * @param typeTemplate - The data from which to create the entity type.
959
+ * @returns The new, pending item type.
960
+ * @i2since 1.6
961
+ */
962
+ addEntityType(typeTemplate: schema.IChartEntityTypeData): schema.IPendingItemType;
963
+ /**
964
+ * Creates a link type.
965
+ *
966
+ * @param typeTemplate - The data from which to create the link type.
967
+ * @returns The new, pending item type.
968
+ * @i2since 1.6
969
+ */
970
+ addLinkType(typeTemplate: schema.IChartLinkTypeData): schema.IPendingItemType;
971
+ /**
972
+ * Gets an object with methods for editing an item type.
973
+ *
974
+ * @param itemType - The type to be edited.
975
+ * @returns The type-editing object..
976
+ * @i2since 1.6
977
+ */
978
+ editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor;
955
979
  }
956
980
  /**
957
981
  * A collection of elements and records that together represent a selection on the chart surface.
@@ -4040,30 +4064,6 @@ export declare namespace schema {
4040
4064
  * @i2since 1.0
4041
4065
  */
4042
4066
  readonly sourceIdentifiersSchema: ISourceIdentifiersSchema;
4043
- /**
4044
- * Creates an entity type.
4045
- *
4046
- * @param typeTemplate - The data from which to create the entity type.
4047
- * @returns The new, pending item type.
4048
- * @i2since 1.6
4049
- */
4050
- addEntityType(typeTemplate: IChartEntityTypeData): IPendingItemType;
4051
- /**
4052
- * Creates a link type.
4053
- *
4054
- * @param typeTemplate - The data from which to create the link type.
4055
- * @returns The new, pending item type.
4056
- * @i2since 1.6
4057
- */
4058
- addLinkType(typeTemplate: IChartLinkTypeData): IPendingItemType;
4059
- /**
4060
- * Gets an object with methods for editing an item type.
4061
- *
4062
- * @param itemType - The type to be edited.
4063
- * @returns The type-editing object..
4064
- * @i2since 1.6
4065
- */
4066
- editItemType(itemType: ItemTypeSpecifier): IItemTypeEditor;
4067
4067
  }
4068
4068
  /**
4069
4069
  * A schema for source identifiers, which places constraints on their use.
@@ -4346,16 +4346,6 @@ export declare namespace schema {
4346
4346
  * @i2since 1.6
4347
4347
  */
4348
4348
  readonly displayName: string;
4349
- /**
4350
- * Gets or sets the description of the item type.
4351
- * @i2since 1.6
4352
- */
4353
- readonly description?: string;
4354
- /**
4355
- * Gets or sets the semanticTypeId of the item type.
4356
- * @i2since 1.6
4357
- */
4358
- readonly semanticTypeId?: string;
4359
4349
  /**
4360
4350
  * Gets or sets the propertyTypes of the item type.
4361
4351
  * @i2since 1.6
@@ -4376,7 +4366,7 @@ export declare namespace schema {
4376
4366
  * Gets or sets the image icon of the entity type.
4377
4367
  * @i2since 1.6
4378
4368
  */
4379
- readonly icon: IImageData;
4369
+ readonly icon: string;
4380
4370
  }
4381
4371
  /**
4382
4372
  * A set of data for creating a link type.
@@ -4398,27 +4388,7 @@ export declare namespace schema {
4398
4388
  * Gets or sets the logicalType of the property type.
4399
4389
  * @i2since 1.6
4400
4390
  */
4401
- readonly logicalType: data.LogicalType;
4402
- /**
4403
- * Gets or sets the description of the property type.
4404
- * @i2since 1.6
4405
- */
4406
- readonly description?: string;
4407
- /**
4408
- * Gets or sets the semanticTypeId of the property type.
4409
- * @i2since 1.6
4410
- */
4411
- readonly semanticTypeId?: string;
4412
- /**
4413
- * Indicates whether the property type is mandatory.
4414
- * @i2since 1.6
4415
- */
4416
- readonly mandatory?: boolean;
4417
- /**
4418
- * Gets or sets the possibleValues of the property type.
4419
- * @i2since 1.6
4420
- */
4421
- readonly possibleValues?: Iterable<IPossibleValue>;
4391
+ readonly logicalType: ICustomLogicalType;
4422
4392
  }
4423
4393
  /**
4424
4394
  * An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
@@ -4449,20 +4419,6 @@ export declare namespace schema {
4449
4419
  * @i2since 1.6
4450
4420
  */
4451
4421
  setDisplayName(name: string): this;
4452
- /**
4453
- * Sets the value of description on the item type.
4454
- * @param description - The value of the displayName to set.
4455
- * @returns This item type editor, with the edited properties in place.
4456
- * @i2since 1.6
4457
- */
4458
- setDescription(description: string): this;
4459
- /**
4460
- * Sets the value of semantic type id on the item type.
4461
- * @param semanticId - The value of the semantic type id to set.
4462
- * @returns This item type editor, with the edited properties in place.
4463
- * @i2since 1.6
4464
- */
4465
- setSemanticTypeId(semanticId: string): this;
4466
4422
  /**
4467
4423
  * Sets the value of label definition on the item type.
4468
4424
  * @param labelDefinition - The value of label definition to set.
@@ -4496,17 +4452,13 @@ export declare namespace schema {
4496
4452
  * @returns The new, pending property type.
4497
4453
  * @i2since 1.6
4498
4454
  */
4499
- editPropertyType(propertyType: PropertyTypeSpecifier): IPendingPropertyType;
4500
- /**
4501
- * Gets an object with methods for editing a property type.
4502
- *
4503
- * @param analyzePropertyTypeId - The id of the propertyType to be edited.
4504
- * @param logicalType - The logical type of the propertyType to be edited.
4505
- * @returns The new, pending property type.
4506
- * @i2since 1.6
4507
- */
4508
- editPropertyType(analyzePropertyTypeId: AnalyzePropertyTypeId, logicalType: data.LogicalType): IPendingPropertyType;
4455
+ editPropertyType(propertyType: CustomPropertyTypeSpecifier): IPendingPropertyType;
4509
4456
  }
4457
+ /**
4458
+ * A common specifier for a custom property type.
4459
+ * @i2since 1.6
4460
+ */
4461
+ export type CustomPropertyTypeSpecifier = IChartPropertyType | IPendingPropertyType | AnalyzePropertyTypeId;
4510
4462
  /**
4511
4463
  * A property type that has been created in a transaction handler, but has not yet been added to a chart's schema.
4512
4464
  * @i2since 1.6
@@ -4517,11 +4469,6 @@ export declare namespace schema {
4517
4469
  * @i2since 1.6
4518
4470
  */
4519
4471
  analyzeId: string;
4520
- /**
4521
- * Gets the logical type of the property type.
4522
- * @i2since 1.6
4523
- */
4524
- logicalType: data.LogicalType;
4525
4472
  }
4526
4473
  /**
4527
4474
  * A set of methods for modifying the contents of a property type.
@@ -4536,34 +4483,6 @@ export declare namespace schema {
4536
4483
  * @i2since 1.6
4537
4484
  */
4538
4485
  setDisplayName(name: string): this;
4539
- /**
4540
- * Sets the value of description on the property type.
4541
- * @param description - The value of the description to set.
4542
- * @returns This property type editor, with the edited properties in place.
4543
- * @i2since 1.6
4544
- */
4545
- setDescription(description: string): this;
4546
- /**
4547
- * Sets the value of semantic type id on the property type.
4548
- * @param typeId - The value of the semantic type id to set.
4549
- * @returns This property type editor, with the edited properties in place.
4550
- * @i2since 1.6
4551
- */
4552
- setSemanticTypeId(typeId: string): this;
4553
- /**
4554
- * Sets the given property type is mandatory or not.
4555
- * @param isMandatory - The value of the logical type to set.
4556
- * @returns This property type editor, with the edited properties in place.
4557
- * @i2since 1.6
4558
- */
4559
- setMandatory(isMandatory: boolean): this;
4560
- /**
4561
- * Sets the value of the property type.
4562
- * @param values - The value for a property to set.
4563
- * @returns This property type editor, with the edited properties in place.
4564
- * @i2since 1.6
4565
- */
4566
- setPossibleValues(values: Iterable<IPossibleValue>): this;
4567
4486
  }
4568
4487
  /**
4569
4488
  * The type of a schema.
@@ -4575,6 +4494,7 @@ export declare namespace schema {
4575
4494
  * - `gateway`: A gateway schema.
4576
4495
  * - `connector`: A connector schema.
4577
4496
  * - `unknown`: An unknown schema, which can denote an orphaned item type.
4497
+ * - `custom`: A user defined type.
4578
4498
  */
4579
4499
  export type SchemaType = 'infostore' | 'gateway' | 'connector' | 'unknown' | 'custom';
4580
4500
  /**
@@ -4691,6 +4611,12 @@ export declare namespace schema {
4691
4611
  */
4692
4612
  readonly description?: string;
4693
4613
  }
4614
+ /**
4615
+ * A logical type for the value of a custom property.
4616
+ * @i2since 1.6
4617
+ */
4618
+ export interface ICustomLogicalType extends Omit<data.LogicalType, 'selectedFromList' | 'suggestedFromList'> {
4619
+ }
4694
4620
  /**
4695
4621
  * A schema for notes, which places constraints on their use.
4696
4622
  * @i2since 1.0
@@ -4807,17 +4733,6 @@ export declare namespace schema {
4807
4733
  */
4808
4734
  readonly possibleValues: data.IReadOnlyCollection<IPossibleValue>;
4809
4735
  }
4810
- /**
4811
- * An image icon, specified by the URL of the image file.
4812
- * @i2since 1.6
4813
- */
4814
- export interface IImageData {
4815
- /**
4816
- * Gets the URL of the image.
4817
- * @i2since 1.6
4818
- */
4819
- readonly href: string;
4820
- }
4821
4736
  /**
4822
4737
  * A type for the value of a field in a source reference.
4823
4738
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.1",
3
+ "version": "1.6.0-dev.2",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {