@i2analyze/notebook-sdk 1.5.1-dev.0 → 1.6.0-dev.1
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 +281 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -3559,7 +3559,7 @@ export declare interface NotebookStatic {
|
|
|
3559
3559
|
* @public
|
|
3560
3560
|
* @i2since 1.0
|
|
3561
3561
|
*/
|
|
3562
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5'): Promise<IEntryPointApi>;
|
|
3562
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6'): Promise<IEntryPointApi>;
|
|
3563
3563
|
}
|
|
3564
3564
|
|
|
3565
3565
|
/**
|
|
@@ -4040,6 +4040,30 @@ export declare namespace schema {
|
|
|
4040
4040
|
* @i2since 1.0
|
|
4041
4041
|
*/
|
|
4042
4042
|
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;
|
|
4043
4067
|
}
|
|
4044
4068
|
/**
|
|
4045
4069
|
* A schema for source identifiers, which places constraints on their use.
|
|
@@ -4270,6 +4294,11 @@ export declare namespace schema {
|
|
|
4270
4294
|
* @i2since 1.1
|
|
4271
4295
|
*/
|
|
4272
4296
|
readonly isInfoStore: boolean;
|
|
4297
|
+
/**
|
|
4298
|
+
* Indicates whether the item type is custom type.
|
|
4299
|
+
* @i2since 1.6
|
|
4300
|
+
*/
|
|
4301
|
+
readonly isCustomType: boolean;
|
|
4273
4302
|
/**
|
|
4274
4303
|
* Gets the label definition for the item type, which describes how record labels are formed.
|
|
4275
4304
|
* @i2since 1.0
|
|
@@ -4307,6 +4336,235 @@ export declare namespace schema {
|
|
|
4307
4336
|
*/
|
|
4308
4337
|
readonly name?: string;
|
|
4309
4338
|
}
|
|
4339
|
+
/**
|
|
4340
|
+
* A set of data for creating an item type.
|
|
4341
|
+
* @i2since 1.6
|
|
4342
|
+
*/
|
|
4343
|
+
export interface IChartItemTypeData {
|
|
4344
|
+
/**
|
|
4345
|
+
* Gets or sets the display name of the item type.
|
|
4346
|
+
* @i2since 1.6
|
|
4347
|
+
*/
|
|
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
|
+
/**
|
|
4360
|
+
* Gets or sets the propertyTypes of the item type.
|
|
4361
|
+
* @i2since 1.6
|
|
4362
|
+
*/
|
|
4363
|
+
readonly propertyTypes?: Iterable<IPropertyTypeData>;
|
|
4364
|
+
/**
|
|
4365
|
+
* Gets or sets the labelDefinition of the item type.
|
|
4366
|
+
* @i2since 1.6
|
|
4367
|
+
*/
|
|
4368
|
+
readonly labelDefinition?: Iterable<ILabelPart>;
|
|
4369
|
+
}
|
|
4370
|
+
/**
|
|
4371
|
+
* A set of data for creating an entity type.
|
|
4372
|
+
* @i2since 1.6
|
|
4373
|
+
*/
|
|
4374
|
+
export interface IChartEntityTypeData extends IChartItemTypeData {
|
|
4375
|
+
/**
|
|
4376
|
+
* Gets or sets the image icon of the entity type.
|
|
4377
|
+
* @i2since 1.6
|
|
4378
|
+
*/
|
|
4379
|
+
readonly icon: IImageData;
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* A set of data for creating a link type.
|
|
4383
|
+
* @i2since 1.6
|
|
4384
|
+
*/
|
|
4385
|
+
export interface IChartLinkTypeData extends IChartItemTypeData {
|
|
4386
|
+
}
|
|
4387
|
+
/**
|
|
4388
|
+
* A set of data for creating a property type.
|
|
4389
|
+
* @i2since 1.6
|
|
4390
|
+
*/
|
|
4391
|
+
export interface IPropertyTypeData {
|
|
4392
|
+
/**
|
|
4393
|
+
* Gets or sets the display name of the property type.
|
|
4394
|
+
* @i2since 1.6
|
|
4395
|
+
*/
|
|
4396
|
+
readonly displayName: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* Gets or sets the logicalType of the property type.
|
|
4399
|
+
* @i2since 1.6
|
|
4400
|
+
*/
|
|
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>;
|
|
4422
|
+
}
|
|
4423
|
+
/**
|
|
4424
|
+
* An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
|
|
4425
|
+
* @i2since 1.6
|
|
4426
|
+
*/
|
|
4427
|
+
export interface IPendingItemType extends IItemTypeEditor {
|
|
4428
|
+
/**
|
|
4429
|
+
* Gets the identifier of the item type.
|
|
4430
|
+
* @i2since 1.6
|
|
4431
|
+
*/
|
|
4432
|
+
readonly analyzeId: string;
|
|
4433
|
+
}
|
|
4434
|
+
/**
|
|
4435
|
+
* A set of methods for modifying the contents of an item type.
|
|
4436
|
+
* @i2since 1.6
|
|
4437
|
+
*/
|
|
4438
|
+
export interface IItemTypeEditor extends IPropertyTypeFactory {
|
|
4439
|
+
/**
|
|
4440
|
+
* Gets the item type as a custom type only.
|
|
4441
|
+
* @i2since 1.6
|
|
4442
|
+
*/
|
|
4443
|
+
readonly isCustomType: true;
|
|
4444
|
+
/**
|
|
4445
|
+
* Sets the value of displayName on the item type.
|
|
4446
|
+
*
|
|
4447
|
+
* @param name - The value of the displayName to set.
|
|
4448
|
+
* @returns This item type editor, with the edited properties in place.
|
|
4449
|
+
* @i2since 1.6
|
|
4450
|
+
*/
|
|
4451
|
+
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
|
+
/**
|
|
4467
|
+
* Sets the value of label definition on the item type.
|
|
4468
|
+
* @param labelDefinition - The value of label definition to set.
|
|
4469
|
+
* @returns This item type editor, with the edited properties in place.
|
|
4470
|
+
* @i2since 1.6
|
|
4471
|
+
*/
|
|
4472
|
+
setLabelDefinition(labelDefinition: Iterable<ILabelPart>): this;
|
|
4473
|
+
}
|
|
4474
|
+
/**
|
|
4475
|
+
* A set of methods to add and edit property types.
|
|
4476
|
+
* @i2since 1.6
|
|
4477
|
+
*/
|
|
4478
|
+
export interface IPropertyTypeFactory {
|
|
4479
|
+
/**
|
|
4480
|
+
* Indicates the type is a custom type or not.
|
|
4481
|
+
* @i2since 1.6
|
|
4482
|
+
*/
|
|
4483
|
+
isCustomType: boolean;
|
|
4484
|
+
/**
|
|
4485
|
+
* Creates a property type.
|
|
4486
|
+
*
|
|
4487
|
+
* @param propertyTypeTemplate - The data from which to create the property type.
|
|
4488
|
+
* @returns The new, pending property type.
|
|
4489
|
+
* @i2since 1.6
|
|
4490
|
+
*/
|
|
4491
|
+
addPropertyType(propertyTypeTemplate: IPropertyTypeData): IPendingPropertyType;
|
|
4492
|
+
/**
|
|
4493
|
+
* Gets an object with methods for editing a property type.
|
|
4494
|
+
*
|
|
4495
|
+
* @param propertyType - The propertyType to be edited.
|
|
4496
|
+
* @returns The new, pending property type.
|
|
4497
|
+
* @i2since 1.6
|
|
4498
|
+
*/
|
|
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;
|
|
4509
|
+
}
|
|
4510
|
+
/**
|
|
4511
|
+
* A property type that has been created in a transaction handler, but has not yet been added to a chart's schema.
|
|
4512
|
+
* @i2since 1.6
|
|
4513
|
+
*/
|
|
4514
|
+
export interface IPendingPropertyType extends IPropertyTypeEditor {
|
|
4515
|
+
/**
|
|
4516
|
+
* Gets identifier of a property type in the i2 Analyze schema.
|
|
4517
|
+
* @i2since 1.6
|
|
4518
|
+
*/
|
|
4519
|
+
analyzeId: string;
|
|
4520
|
+
/**
|
|
4521
|
+
* Gets the logical type of the property type.
|
|
4522
|
+
* @i2since 1.6
|
|
4523
|
+
*/
|
|
4524
|
+
logicalType: data.LogicalType;
|
|
4525
|
+
}
|
|
4526
|
+
/**
|
|
4527
|
+
* A set of methods for modifying the contents of a property type.
|
|
4528
|
+
* @i2since 1.6
|
|
4529
|
+
*/
|
|
4530
|
+
export interface IPropertyTypeEditor {
|
|
4531
|
+
/**
|
|
4532
|
+
* Sets the value of displayName on the property type.
|
|
4533
|
+
*
|
|
4534
|
+
* @param name - The value of the displayName to set.
|
|
4535
|
+
* @returns This property type editor, with the edited properties in place.
|
|
4536
|
+
* @i2since 1.6
|
|
4537
|
+
*/
|
|
4538
|
+
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
|
+
}
|
|
4310
4568
|
/**
|
|
4311
4569
|
* The type of a schema.
|
|
4312
4570
|
* @i2since 1.5
|
|
@@ -4318,7 +4576,12 @@ export declare namespace schema {
|
|
|
4318
4576
|
* - `connector`: A connector schema.
|
|
4319
4577
|
* - `unknown`: An unknown schema, which can denote an orphaned item type.
|
|
4320
4578
|
*/
|
|
4321
|
-
export type SchemaType = 'infostore' | 'gateway' | 'connector' | 'unknown';
|
|
4579
|
+
export type SchemaType = 'infostore' | 'gateway' | 'connector' | 'unknown' | 'custom';
|
|
4580
|
+
/**
|
|
4581
|
+
* A common specifier for an item type.
|
|
4582
|
+
* @i2since 1.6
|
|
4583
|
+
*/
|
|
4584
|
+
export type ItemTypeSpecifier = AnalyzeItemTypeId | IChartItemType | IPendingItemType;
|
|
4322
4585
|
/**
|
|
4323
4586
|
* An identifier of a property type in a chart schema.
|
|
4324
4587
|
* @i2since 1.0
|
|
@@ -4379,6 +4642,11 @@ export declare namespace schema {
|
|
|
4379
4642
|
* @i2since 1.0
|
|
4380
4643
|
*/
|
|
4381
4644
|
readonly isOrphaned: boolean;
|
|
4645
|
+
/**
|
|
4646
|
+
* Indicates whether the property type is custom type.
|
|
4647
|
+
* @i2since 1.6
|
|
4648
|
+
*/
|
|
4649
|
+
readonly isCustomType: boolean;
|
|
4382
4650
|
/**
|
|
4383
4651
|
* Gets the maximum string length for the value of a property that has the property type.
|
|
4384
4652
|
*
|
|
@@ -4539,6 +4807,17 @@ export declare namespace schema {
|
|
|
4539
4807
|
*/
|
|
4540
4808
|
readonly possibleValues: data.IReadOnlyCollection<IPossibleValue>;
|
|
4541
4809
|
}
|
|
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
|
+
}
|
|
4542
4821
|
/**
|
|
4543
4822
|
* A type for the value of a field in a source reference.
|
|
4544
4823
|
* @i2since 1.0
|
package/lib/index.js
CHANGED