@i2analyze/notebook-sdk 1.8.0 → 1.9.0-dev.0
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 +316 -214
- package/package.json +1 -1
|
@@ -364,12 +364,12 @@ export declare namespace app {
|
|
|
364
364
|
* A common specifier for a note, for use in mutation APIs.
|
|
365
365
|
* @i2since 1.1
|
|
366
366
|
*/
|
|
367
|
-
export type NoteSpecifier =
|
|
367
|
+
export type NoteSpecifier = data.NoteId | data.INote;
|
|
368
368
|
/**
|
|
369
369
|
* A common specifier for a source reference, for use in mutation APIs.
|
|
370
370
|
* @i2since 1.1
|
|
371
371
|
*/
|
|
372
|
-
export type SourceReferenceSpecifier =
|
|
372
|
+
export type SourceReferenceSpecifier = data.SourceReferenceId | data.ISourceReference;
|
|
373
373
|
/**
|
|
374
374
|
* A common specifier for a node, for use in mutation APIs.
|
|
375
375
|
* @i2since 1.2
|
|
@@ -408,44 +408,62 @@ export declare namespace app {
|
|
|
408
408
|
export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
|
|
409
409
|
/**
|
|
410
410
|
* A common specifier for the properties of new records, for use in mutation APIs.
|
|
411
|
-
* @i2since 1.
|
|
411
|
+
* @i2since 1.9
|
|
412
412
|
*/
|
|
413
|
-
export type
|
|
413
|
+
export type PropertiesSpecifier = Record<schema.PropertyTypeIdentifier, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
|
|
414
414
|
/**
|
|
415
|
-
* A common specifier for
|
|
415
|
+
* A common specifier for the properties of new records, for use in mutation APIs.
|
|
416
|
+
* @deprecated Use {@link app.PropertiesSpecifier | PropertiesSpecifier} instead.
|
|
416
417
|
* @i2since 1.1
|
|
417
418
|
*/
|
|
418
|
-
export type
|
|
419
|
+
export type RecordPropertiesSpecifier = PropertiesSpecifier;
|
|
419
420
|
/**
|
|
420
|
-
* A
|
|
421
|
+
* A common specifier for properties that are to be edited, for use in mutation APIs.
|
|
422
|
+
* @i2since 1.9
|
|
423
|
+
*/
|
|
424
|
+
export type EditPropertiesSpecifier = Record<schema.PropertyTypeIdentifier, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
|
|
425
|
+
/**
|
|
426
|
+
* A common specifier for records properties that are to be edited, for use in mutation APIs.
|
|
427
|
+
* @deprecated Use {@link app.EditPropertiesSpecifier | EditPropertiesSpecifier} instead.
|
|
421
428
|
* @i2since 1.1
|
|
422
429
|
*/
|
|
423
|
-
export
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
430
|
+
export type EditRecordPropertiesSpecifier = EditPropertiesSpecifier;
|
|
431
|
+
/**
|
|
432
|
+
* A set of common chart data that for creating records.
|
|
433
|
+
* @i2since 1.9
|
|
434
|
+
*/
|
|
435
|
+
export interface IChartBaseData {
|
|
429
436
|
/**
|
|
430
437
|
* Gets or sets the properties of the new record.
|
|
431
438
|
* @i2since 1.1
|
|
432
439
|
*/
|
|
433
|
-
properties?:
|
|
440
|
+
properties?: PropertiesSpecifier;
|
|
434
441
|
/**
|
|
435
442
|
* Gets or sets the security settings of the new record.
|
|
436
443
|
* @i2since 1.1
|
|
437
444
|
*/
|
|
438
|
-
security?: readonly
|
|
445
|
+
security?: readonly data.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, data.ISecuritySetting>;
|
|
439
446
|
/**
|
|
440
447
|
* Gets or sets the notes for the new record.
|
|
441
448
|
* @i2since 1.1
|
|
442
449
|
*/
|
|
443
|
-
notes?: readonly
|
|
450
|
+
notes?: readonly data.INoteData[];
|
|
444
451
|
/**
|
|
445
452
|
* Gets or sets the source references of the new record.
|
|
446
453
|
* @i2since 1.1
|
|
447
454
|
*/
|
|
448
455
|
sourceReferences?: readonly records.ISourceReferenceData[];
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* A set of data that is common to creating records of all types.
|
|
459
|
+
* @i2since 1.1
|
|
460
|
+
*/
|
|
461
|
+
export interface IChartRecordBaseData extends IChartBaseData {
|
|
462
|
+
/**
|
|
463
|
+
* Gets or sets the item type of the new record.
|
|
464
|
+
* @i2since 1.1
|
|
465
|
+
*/
|
|
466
|
+
itemType: schema.ChartItemTypeId | schema.IChartItemType;
|
|
449
467
|
/**
|
|
450
468
|
* Gets or sets the source identifiers of the new record.
|
|
451
469
|
* @i2since 1.1
|
|
@@ -531,10 +549,10 @@ export declare namespace app {
|
|
|
531
549
|
setLabel(label: string | undefined): this;
|
|
532
550
|
}
|
|
533
551
|
/**
|
|
534
|
-
* A set of methods for modifying
|
|
535
|
-
*
|
|
552
|
+
* A set of methods for modifying common record data.
|
|
553
|
+
* @i2since 1.9
|
|
536
554
|
*/
|
|
537
|
-
export interface
|
|
555
|
+
export interface IEditorBase {
|
|
538
556
|
/**
|
|
539
557
|
* Sets or clears the values of properties on the record.
|
|
540
558
|
*
|
|
@@ -542,7 +560,7 @@ export declare namespace app {
|
|
|
542
560
|
* @returns This record, with the edited properties in place.
|
|
543
561
|
* @i2since 1.1
|
|
544
562
|
*/
|
|
545
|
-
setProperties(properties:
|
|
563
|
+
setProperties(properties: EditPropertiesSpecifier): this;
|
|
546
564
|
/**
|
|
547
565
|
* Adds a new note to the record.
|
|
548
566
|
*
|
|
@@ -550,7 +568,7 @@ export declare namespace app {
|
|
|
550
568
|
* @returns This record, with the new note in place.
|
|
551
569
|
* @i2since 1.1
|
|
552
570
|
*/
|
|
553
|
-
addNote(noteData:
|
|
571
|
+
addNote(noteData: data.INoteData): this;
|
|
554
572
|
/**
|
|
555
573
|
* Replaces an existing note on the record with a new one.
|
|
556
574
|
*
|
|
@@ -559,7 +577,7 @@ export declare namespace app {
|
|
|
559
577
|
* @returns This record, with the new note in place.
|
|
560
578
|
* @i2since 1.1
|
|
561
579
|
*/
|
|
562
|
-
replaceNote(note: NoteSpecifier, noteData:
|
|
580
|
+
replaceNote(note: NoteSpecifier, noteData: data.INoteData): this;
|
|
563
581
|
/**
|
|
564
582
|
* Removes a note from the record.
|
|
565
583
|
*
|
|
@@ -575,7 +593,7 @@ export declare namespace app {
|
|
|
575
593
|
* @returns This record, with the new source reference in place.
|
|
576
594
|
* @i2since 1.1
|
|
577
595
|
*/
|
|
578
|
-
addSourceReference(refData:
|
|
596
|
+
addSourceReference(refData: data.ISourceReferenceData): this;
|
|
579
597
|
/**
|
|
580
598
|
* Replaces an existing source reference on the record with a new one.
|
|
581
599
|
*
|
|
@@ -584,7 +602,7 @@ export declare namespace app {
|
|
|
584
602
|
* @returns This record, with the new source reference in place.
|
|
585
603
|
* @i2since 1.1
|
|
586
604
|
*/
|
|
587
|
-
replaceSourceReference(ref: SourceReferenceSpecifier, refData:
|
|
605
|
+
replaceSourceReference(ref: SourceReferenceSpecifier, refData: data.ISourceReferenceData): this;
|
|
588
606
|
/**
|
|
589
607
|
* Removes a source reference from the record.
|
|
590
608
|
*
|
|
@@ -594,21 +612,27 @@ export declare namespace app {
|
|
|
594
612
|
*/
|
|
595
613
|
removeSourceReference(ref: SourceReferenceSpecifier): this;
|
|
596
614
|
/**
|
|
597
|
-
*
|
|
615
|
+
* Replaces the record's security settings with a new set.
|
|
598
616
|
*
|
|
599
|
-
* @param
|
|
600
|
-
* @returns This record, with the new
|
|
617
|
+
* @param security - The new security settings.
|
|
618
|
+
* @returns This record, with the new security settings in place.
|
|
601
619
|
* @i2since 1.1
|
|
602
620
|
*/
|
|
603
|
-
|
|
621
|
+
replaceSecurity(security: readonly data.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* A set of methods for modifying the contents of a record.
|
|
625
|
+
* @i2since 1.1
|
|
626
|
+
*/
|
|
627
|
+
export interface IRecordEditor extends IEditorBase {
|
|
604
628
|
/**
|
|
605
|
-
*
|
|
629
|
+
* Adds a new source identifier to the record.
|
|
606
630
|
*
|
|
607
|
-
* @param
|
|
608
|
-
* @returns This record, with the new
|
|
631
|
+
* @param identifierData - The data for the new source identifier.
|
|
632
|
+
* @returns This record, with the new source identifier in place.
|
|
609
633
|
* @i2since 1.1
|
|
610
634
|
*/
|
|
611
|
-
|
|
635
|
+
addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
|
|
612
636
|
/**
|
|
613
637
|
* Sets the direction of a link record.
|
|
614
638
|
*
|
|
@@ -819,7 +843,7 @@ export declare namespace app {
|
|
|
819
843
|
* @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
|
|
820
844
|
* @i2since 1.1
|
|
821
845
|
*/
|
|
822
|
-
createSecuritySetting(data:
|
|
846
|
+
createSecuritySetting(data: data.ISecuritySettingData): data.ISecuritySetting;
|
|
823
847
|
/**
|
|
824
848
|
* Creates a decimal value from a number or a string.
|
|
825
849
|
*
|
|
@@ -1142,7 +1166,7 @@ export declare namespace app {
|
|
|
1142
1166
|
* @returns The type-editing object.
|
|
1143
1167
|
* @i2since 1.6
|
|
1144
1168
|
*/
|
|
1145
|
-
editItemType(itemType: schema.
|
|
1169
|
+
editItemType(itemType: schema.ChartItemTypeSpecifier | schema.IPendingItemType): schema.IItemTypeEditor | schema.IPropertyTypesEditor;
|
|
1146
1170
|
}
|
|
1147
1171
|
/**
|
|
1148
1172
|
* A collection of elements and records that together represent a selection on the chart surface.
|
|
@@ -1574,17 +1598,17 @@ export declare namespace chart {
|
|
|
1574
1598
|
* Gets all the entity types in use on the chart.
|
|
1575
1599
|
* @i2since 1.3
|
|
1576
1600
|
*/
|
|
1577
|
-
readonly entityTypes: data.IKeyedReadOnlyCollection<schema.
|
|
1601
|
+
readonly entityTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartEntityType>;
|
|
1578
1602
|
/**
|
|
1579
1603
|
* Gets all the link types in use on the chart.
|
|
1580
1604
|
* @i2since 1.3
|
|
1581
1605
|
*/
|
|
1582
|
-
readonly linkTypes: data.IKeyedReadOnlyCollection<schema.
|
|
1606
|
+
readonly linkTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartLinkType>;
|
|
1583
1607
|
/**
|
|
1584
1608
|
* Gets all the entity types and link types in use on the chart.
|
|
1585
1609
|
* @i2since 1.3
|
|
1586
1610
|
*/
|
|
1587
|
-
readonly itemTypes: data.IKeyedReadOnlyCollection<schema.
|
|
1611
|
+
readonly itemTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartItemType>;
|
|
1588
1612
|
/**
|
|
1589
1613
|
* Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
|
|
1590
1614
|
*
|
|
@@ -2789,6 +2813,11 @@ export declare namespace commands {
|
|
|
2789
2813
|
* @i2since 1.3
|
|
2790
2814
|
*/
|
|
2791
2815
|
readonly toggleLists: CommandId;
|
|
2816
|
+
/**
|
|
2817
|
+
* Gets the identifier of the system command that toggles the list most connected UI.
|
|
2818
|
+
* @i2since 1.8
|
|
2819
|
+
*/
|
|
2820
|
+
readonly toggleListMostConnected: CommandId;
|
|
2792
2821
|
/**
|
|
2793
2822
|
* Gets the identifier of the system command that toggles the map UI.
|
|
2794
2823
|
* @i2since 1.1
|
|
@@ -2829,6 +2858,11 @@ export declare namespace commands {
|
|
|
2829
2858
|
* @i2since 1.8
|
|
2830
2859
|
*/
|
|
2831
2860
|
readonly ungroupNodes: CommandId;
|
|
2861
|
+
/**
|
|
2862
|
+
* Gets the identifier of the system command that toggles the Time Wheel UI.
|
|
2863
|
+
* @i2since 1.8
|
|
2864
|
+
*/
|
|
2865
|
+
readonly toggleTimeWheel: CommandId;
|
|
2832
2866
|
}
|
|
2833
2867
|
/**
|
|
2834
2868
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -3664,6 +3698,210 @@ export declare namespace data {
|
|
|
3664
3698
|
*/
|
|
3665
3699
|
readonly hasLabel: boolean;
|
|
3666
3700
|
}
|
|
3701
|
+
/**
|
|
3702
|
+
* A set of common chart data properties.
|
|
3703
|
+
* @i2since 1.9
|
|
3704
|
+
*/
|
|
3705
|
+
export interface IBaseChartData {
|
|
3706
|
+
/**
|
|
3707
|
+
* Gets the property value for the specified property type.
|
|
3708
|
+
*
|
|
3709
|
+
* @param propertyType - The property type or property type identifier of the value to retrieve.
|
|
3710
|
+
* @returns The property value or, if not present, `undefined`.
|
|
3711
|
+
* @i2since 1.0
|
|
3712
|
+
*/
|
|
3713
|
+
getProperty(propertyType: schema.PropertyTypeSpecifier): PropertyValue | IValueNotFetched | undefined;
|
|
3714
|
+
/**
|
|
3715
|
+
* Gets the notes of the record.
|
|
3716
|
+
* @i2since 1.0
|
|
3717
|
+
*/
|
|
3718
|
+
readonly notes: IKeyedReadOnlyCollection<NoteId, INote>;
|
|
3719
|
+
/**
|
|
3720
|
+
* Gets the source references of the record.
|
|
3721
|
+
* @i2since 1.0
|
|
3722
|
+
*/
|
|
3723
|
+
readonly sourceReferences: IKeyedReadOnlyCollection<SourceReferenceId, ISourceReference>;
|
|
3724
|
+
/**
|
|
3725
|
+
* Gets the security settings of the record.
|
|
3726
|
+
* @i2since 1.0
|
|
3727
|
+
*/
|
|
3728
|
+
readonly security: IKeyedReadOnlyCollection<schema.SecurityDimensionId, ISecuritySetting>;
|
|
3729
|
+
}
|
|
3730
|
+
/**
|
|
3731
|
+
* The identifier of a note.
|
|
3732
|
+
* @i2since 1.0
|
|
3733
|
+
*/
|
|
3734
|
+
export type NoteId = string;
|
|
3735
|
+
/**
|
|
3736
|
+
* A set of data for creating a note.
|
|
3737
|
+
* @i2since 1.1
|
|
3738
|
+
*/
|
|
3739
|
+
export interface INoteData {
|
|
3740
|
+
/**
|
|
3741
|
+
* Gets the contents of the new note.
|
|
3742
|
+
* @i2since 1.1
|
|
3743
|
+
*/
|
|
3744
|
+
readonly contents: string;
|
|
3745
|
+
}
|
|
3746
|
+
/**
|
|
3747
|
+
* A note for a record.
|
|
3748
|
+
* @i2since 1.0
|
|
3749
|
+
*/
|
|
3750
|
+
export interface INote {
|
|
3751
|
+
/**
|
|
3752
|
+
* Gets the identifier of the note.
|
|
3753
|
+
* @i2since 1.0
|
|
3754
|
+
*/
|
|
3755
|
+
readonly id: NoteId;
|
|
3756
|
+
/**
|
|
3757
|
+
* Gets the creator of the note.
|
|
3758
|
+
* @i2since 1.0
|
|
3759
|
+
*/
|
|
3760
|
+
readonly creator: IUser;
|
|
3761
|
+
/**
|
|
3762
|
+
* Gets information about when and by whom the note was first uploaded.
|
|
3763
|
+
*
|
|
3764
|
+
* @returns The user who first uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
|
|
3765
|
+
* @i2since 1.0
|
|
3766
|
+
*/
|
|
3767
|
+
readonly firstUploaded: IUserAndDateAndTime | undefined;
|
|
3768
|
+
/**
|
|
3769
|
+
* Gets information about when and by whom the note was last uploaded.
|
|
3770
|
+
*
|
|
3771
|
+
* @returns The user who last uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
|
|
3772
|
+
* @i2since 1.0
|
|
3773
|
+
*/
|
|
3774
|
+
readonly lastUploaded: IUserAndDateAndTime | undefined;
|
|
3775
|
+
/**
|
|
3776
|
+
* Gets the contents of the note.
|
|
3777
|
+
*
|
|
3778
|
+
* @remarks
|
|
3779
|
+
* See {@link schema.INotesSchema} for constraints on the contents of notes.
|
|
3780
|
+
* @i2since 1.0
|
|
3781
|
+
*/
|
|
3782
|
+
readonly contents: string;
|
|
3783
|
+
}
|
|
3784
|
+
/**
|
|
3785
|
+
* The identifier of a source reference.
|
|
3786
|
+
* @i2since 1.0
|
|
3787
|
+
*/
|
|
3788
|
+
export type SourceReferenceId = string;
|
|
3789
|
+
/**
|
|
3790
|
+
* A source reference for a record.
|
|
3791
|
+
*
|
|
3792
|
+
* @remarks
|
|
3793
|
+
* A source reference contains information about a source from which data in the record was derived.
|
|
3794
|
+
* @i2since 1.0
|
|
3795
|
+
*/
|
|
3796
|
+
export interface ISourceReference {
|
|
3797
|
+
/**
|
|
3798
|
+
* Gets the identifier of the source reference.
|
|
3799
|
+
* @i2since 1.0
|
|
3800
|
+
*/
|
|
3801
|
+
readonly id: SourceReferenceId;
|
|
3802
|
+
/**
|
|
3803
|
+
* Indicates whether the source reference is read-only.
|
|
3804
|
+
* @i2since 1.8
|
|
3805
|
+
*/
|
|
3806
|
+
readonly isReadOnly: boolean;
|
|
3807
|
+
/**
|
|
3808
|
+
* Gets the name of the source that the source reference describes.
|
|
3809
|
+
* @i2since 1.0
|
|
3810
|
+
*/
|
|
3811
|
+
readonly name: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* Gets the type of the source that the source reference describes.
|
|
3814
|
+
* @i2since 1.0
|
|
3815
|
+
*/
|
|
3816
|
+
readonly type?: string;
|
|
3817
|
+
/**
|
|
3818
|
+
* Gets the location of the source that the source reference describes.
|
|
3819
|
+
* @i2since 1.0
|
|
3820
|
+
*/
|
|
3821
|
+
readonly location?: string;
|
|
3822
|
+
/**
|
|
3823
|
+
* Indicates whether it makes sense to show `location` as a hyperlink.
|
|
3824
|
+
*
|
|
3825
|
+
* @remarks
|
|
3826
|
+
* This property is `true` if `location` is a valid URL that a plug-in can make available to users,
|
|
3827
|
+
* in the same way that the i2 Notebook Record Inspector presents source reference locations.
|
|
3828
|
+
* @i2since 1.0
|
|
3829
|
+
*/
|
|
3830
|
+
readonly locationIsUrl: boolean;
|
|
3831
|
+
/**
|
|
3832
|
+
* Gets the description of the source that the source reference describes.
|
|
3833
|
+
* @i2since 1.0
|
|
3834
|
+
*/
|
|
3835
|
+
readonly description?: string;
|
|
3836
|
+
/**
|
|
3837
|
+
* Gets the URL of an image of the source that the source reference describes.
|
|
3838
|
+
* @i2since 1.0
|
|
3839
|
+
*/
|
|
3840
|
+
readonly imageUrl?: string;
|
|
3841
|
+
}
|
|
3842
|
+
/**
|
|
3843
|
+
* A set of data for creating a source reference.
|
|
3844
|
+
* @i2since 1.1
|
|
3845
|
+
*/
|
|
3846
|
+
export interface ISourceReferenceData {
|
|
3847
|
+
/**
|
|
3848
|
+
* Gets the name of the source that the new source reference describes.
|
|
3849
|
+
* @i2since 1.1
|
|
3850
|
+
*/
|
|
3851
|
+
readonly name: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* Gets the type of the source that the new source reference describes.
|
|
3854
|
+
* @i2since 1.1
|
|
3855
|
+
*/
|
|
3856
|
+
readonly type?: string;
|
|
3857
|
+
/**
|
|
3858
|
+
* Gets the location of the source that the new source reference describes.
|
|
3859
|
+
* @i2since 1.1
|
|
3860
|
+
*/
|
|
3861
|
+
readonly location?: string;
|
|
3862
|
+
/**
|
|
3863
|
+
* Gets the description of the source that the new source reference describes.
|
|
3864
|
+
* @i2since 1.1
|
|
3865
|
+
*/
|
|
3866
|
+
readonly description?: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* Gets the URL of an image of the source that the new source reference describes.
|
|
3869
|
+
* @i2since 1.1
|
|
3870
|
+
*/
|
|
3871
|
+
readonly imageUrl?: string;
|
|
3872
|
+
}
|
|
3873
|
+
/**
|
|
3874
|
+
* A set of dimension values for a record, from a particular security dimension.
|
|
3875
|
+
* @i2since 1.0
|
|
3876
|
+
*/
|
|
3877
|
+
export interface ISecuritySetting {
|
|
3878
|
+
/**
|
|
3879
|
+
* Gets the security dimension that the dimension values come from.
|
|
3880
|
+
* @i2since 1.0
|
|
3881
|
+
*/
|
|
3882
|
+
readonly dimension: schema.ISecurityDimension;
|
|
3883
|
+
/**
|
|
3884
|
+
* Gets the security dimension values.
|
|
3885
|
+
* @i2since 1.0
|
|
3886
|
+
*/
|
|
3887
|
+
readonly values: IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
3888
|
+
}
|
|
3889
|
+
/**
|
|
3890
|
+
* A set of data for creating a security setting.
|
|
3891
|
+
* @i2since 1.1
|
|
3892
|
+
*/
|
|
3893
|
+
export interface ISecuritySettingData {
|
|
3894
|
+
/**
|
|
3895
|
+
* Gets or sets the security dimension for the new security setting.
|
|
3896
|
+
* @i2since 1.1
|
|
3897
|
+
*/
|
|
3898
|
+
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
3899
|
+
/**
|
|
3900
|
+
* Gets or sets the dimension values for the new security setting.
|
|
3901
|
+
* @i2since 1.1
|
|
3902
|
+
*/
|
|
3903
|
+
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
3904
|
+
}
|
|
3667
3905
|
}
|
|
3668
3906
|
|
|
3669
3907
|
/**
|
|
@@ -4104,7 +4342,7 @@ export declare namespace records {
|
|
|
4104
4342
|
* A set of information and functionality that is common to all records in i2 Notebook.
|
|
4105
4343
|
* @i2since 1.0
|
|
4106
4344
|
*/
|
|
4107
|
-
export interface IChartRecordBase {
|
|
4345
|
+
export interface IChartRecordBase extends data.IBaseChartData {
|
|
4108
4346
|
/**
|
|
4109
4347
|
* Gets the identifier of the record.
|
|
4110
4348
|
* @i2since 1.0
|
|
@@ -4153,14 +4391,6 @@ export declare namespace records {
|
|
|
4153
4391
|
* @i2since 1.0
|
|
4154
4392
|
*/
|
|
4155
4393
|
getUnfetchedPropertyTypes(): data.IReadOnlyCollection<schema.IChartPropertyType>;
|
|
4156
|
-
/**
|
|
4157
|
-
* Gets the property value for the specified property type.
|
|
4158
|
-
*
|
|
4159
|
-
* @param propertyType - The property type or property type identifier of the value to retrieve.
|
|
4160
|
-
* @returns The property value or, if not present, `undefined`.
|
|
4161
|
-
* @i2since 1.0
|
|
4162
|
-
*/
|
|
4163
|
-
getProperty(propertyType: schema.PropertyTypeSpecifier): data.PropertyValue | data.IValueNotFetched | undefined;
|
|
4164
4394
|
/**
|
|
4165
4395
|
* Tests whether the record is an entity record; functions as a TypeScript typeguard.
|
|
4166
4396
|
*
|
|
@@ -4180,21 +4410,6 @@ export declare namespace records {
|
|
|
4180
4410
|
* @i2since 1.0
|
|
4181
4411
|
*/
|
|
4182
4412
|
readonly itemType: schema.IChartItemType;
|
|
4183
|
-
/**
|
|
4184
|
-
* Gets the notes of the record.
|
|
4185
|
-
* @i2since 1.0
|
|
4186
|
-
*/
|
|
4187
|
-
readonly notes: data.IKeyedReadOnlyCollection<NoteId, INote>;
|
|
4188
|
-
/**
|
|
4189
|
-
* Gets the source references of the record.
|
|
4190
|
-
* @i2since 1.0
|
|
4191
|
-
*/
|
|
4192
|
-
readonly sourceReferences: data.IKeyedReadOnlyCollection<SourceReferenceId, ISourceReference>;
|
|
4193
|
-
/**
|
|
4194
|
-
* Gets the security settings of the record.
|
|
4195
|
-
* @i2since 1.0
|
|
4196
|
-
*/
|
|
4197
|
-
readonly security: data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, ISecuritySetting>;
|
|
4198
4413
|
/**
|
|
4199
4414
|
* Gets information about when and by whom the record was first uploaded.
|
|
4200
4415
|
*
|
|
@@ -4288,178 +4503,54 @@ export declare namespace records {
|
|
|
4288
4503
|
/**
|
|
4289
4504
|
* The identifier of a note.
|
|
4290
4505
|
* @i2since 1.0
|
|
4506
|
+
* @deprecated Use {@link data.NoteId} instead.
|
|
4291
4507
|
*/
|
|
4292
|
-
export type NoteId =
|
|
4508
|
+
export type NoteId = data.NoteId;
|
|
4293
4509
|
/**
|
|
4294
4510
|
* A set of data for creating a note.
|
|
4295
4511
|
* @i2since 1.1
|
|
4512
|
+
* @deprecated Use {@link data.INoteData} instead.
|
|
4296
4513
|
*/
|
|
4297
|
-
export
|
|
4298
|
-
/**
|
|
4299
|
-
* Gets the contents of the new note.
|
|
4300
|
-
* @i2since 1.1
|
|
4301
|
-
*/
|
|
4302
|
-
readonly contents: string;
|
|
4303
|
-
}
|
|
4514
|
+
export type INoteData = data.INoteData;
|
|
4304
4515
|
/**
|
|
4305
4516
|
* A note for a record.
|
|
4306
4517
|
* @i2since 1.0
|
|
4518
|
+
* @deprecated Use {@link data.INote} instead.
|
|
4307
4519
|
*/
|
|
4308
|
-
export
|
|
4309
|
-
/**
|
|
4310
|
-
* Gets the identifier of the note.
|
|
4311
|
-
* @i2since 1.0
|
|
4312
|
-
*/
|
|
4313
|
-
readonly id: NoteId;
|
|
4314
|
-
/**
|
|
4315
|
-
* Gets the creator of the note.
|
|
4316
|
-
* @i2since 1.0
|
|
4317
|
-
*/
|
|
4318
|
-
readonly creator: data.IUser;
|
|
4319
|
-
/**
|
|
4320
|
-
* Gets information about when and by whom the note was first uploaded.
|
|
4321
|
-
*
|
|
4322
|
-
* @returns The user who first uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
|
|
4323
|
-
* @i2since 1.0
|
|
4324
|
-
*/
|
|
4325
|
-
readonly firstUploaded: data.IUserAndDateAndTime | undefined;
|
|
4326
|
-
/**
|
|
4327
|
-
* Gets information about when and by whom the note was last uploaded.
|
|
4328
|
-
*
|
|
4329
|
-
* @returns The user who last uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
|
|
4330
|
-
* @i2since 1.0
|
|
4331
|
-
*/
|
|
4332
|
-
readonly lastUploaded: data.IUserAndDateAndTime | undefined;
|
|
4333
|
-
/**
|
|
4334
|
-
* Gets the contents of the note.
|
|
4335
|
-
*
|
|
4336
|
-
* @remarks
|
|
4337
|
-
* See {@link schema.INotesSchema} for constraints on the contents of notes.
|
|
4338
|
-
* @i2since 1.0
|
|
4339
|
-
*/
|
|
4340
|
-
readonly contents: string;
|
|
4341
|
-
}
|
|
4520
|
+
export type INote = data.INote;
|
|
4342
4521
|
/**
|
|
4343
4522
|
* The identifier of a source reference.
|
|
4344
4523
|
* @i2since 1.0
|
|
4524
|
+
* @deprecated Use {@link data.SourceReferenceId} instead.
|
|
4345
4525
|
*/
|
|
4346
|
-
export type SourceReferenceId =
|
|
4526
|
+
export type SourceReferenceId = data.SourceReferenceId;
|
|
4347
4527
|
/**
|
|
4348
4528
|
* A source reference for a record.
|
|
4349
4529
|
*
|
|
4350
4530
|
* @remarks
|
|
4351
4531
|
* A source reference contains information about a source from which data in the record was derived.
|
|
4352
4532
|
* @i2since 1.0
|
|
4533
|
+
* @deprecated Use {@link data.ISourceReference} instead.
|
|
4353
4534
|
*/
|
|
4354
|
-
export
|
|
4355
|
-
/**
|
|
4356
|
-
* Gets the identifier of the source reference.
|
|
4357
|
-
* @i2since 1.0
|
|
4358
|
-
*/
|
|
4359
|
-
readonly id: SourceReferenceId;
|
|
4360
|
-
/**
|
|
4361
|
-
* Indicates whether the source reference is read-only.
|
|
4362
|
-
* @i2since 1.8
|
|
4363
|
-
*/
|
|
4364
|
-
readonly isReadOnly: boolean;
|
|
4365
|
-
/**
|
|
4366
|
-
* Gets the name of the source that the source reference describes.
|
|
4367
|
-
* @i2since 1.0
|
|
4368
|
-
*/
|
|
4369
|
-
readonly name: string;
|
|
4370
|
-
/**
|
|
4371
|
-
* Gets the type of the source that the source reference describes.
|
|
4372
|
-
* @i2since 1.0
|
|
4373
|
-
*/
|
|
4374
|
-
readonly type?: string;
|
|
4375
|
-
/**
|
|
4376
|
-
* Gets the location of the source that the source reference describes.
|
|
4377
|
-
* @i2since 1.0
|
|
4378
|
-
*/
|
|
4379
|
-
readonly location?: string;
|
|
4380
|
-
/**
|
|
4381
|
-
* Indicates whether it makes sense to show `location` as a hyperlink.
|
|
4382
|
-
*
|
|
4383
|
-
* @remarks
|
|
4384
|
-
* This property is `true` if `location` is a valid URL that a plug-in can make available to users,
|
|
4385
|
-
* in the same way that the i2 Notebook Record Inspector presents source reference locations.
|
|
4386
|
-
* @i2since 1.0
|
|
4387
|
-
*/
|
|
4388
|
-
readonly locationIsUrl: boolean;
|
|
4389
|
-
/**
|
|
4390
|
-
* Gets the description of the source that the source reference describes.
|
|
4391
|
-
* @i2since 1.0
|
|
4392
|
-
*/
|
|
4393
|
-
readonly description?: string;
|
|
4394
|
-
/**
|
|
4395
|
-
* Gets the URL of an image of the source that the source reference describes.
|
|
4396
|
-
* @i2since 1.0
|
|
4397
|
-
*/
|
|
4398
|
-
readonly imageUrl?: string;
|
|
4399
|
-
}
|
|
4535
|
+
export type ISourceReference = data.ISourceReference;
|
|
4400
4536
|
/**
|
|
4401
4537
|
* A set of data for creating a source reference.
|
|
4402
4538
|
* @i2since 1.1
|
|
4539
|
+
* @deprecated Use {@link data.ISourceReferenceData} instead.
|
|
4403
4540
|
*/
|
|
4404
|
-
export
|
|
4405
|
-
/**
|
|
4406
|
-
* Gets the name of the source that the new source reference describes.
|
|
4407
|
-
* @i2since 1.1
|
|
4408
|
-
*/
|
|
4409
|
-
readonly name: string;
|
|
4410
|
-
/**
|
|
4411
|
-
* Gets the type of the source that the new source reference describes.
|
|
4412
|
-
* @i2since 1.1
|
|
4413
|
-
*/
|
|
4414
|
-
readonly type?: string;
|
|
4415
|
-
/**
|
|
4416
|
-
* Gets the location of the source that the new source reference describes.
|
|
4417
|
-
* @i2since 1.1
|
|
4418
|
-
*/
|
|
4419
|
-
readonly location?: string;
|
|
4420
|
-
/**
|
|
4421
|
-
* Gets the description of the source that the new source reference describes.
|
|
4422
|
-
* @i2since 1.1
|
|
4423
|
-
*/
|
|
4424
|
-
readonly description?: string;
|
|
4425
|
-
/**
|
|
4426
|
-
* Gets the URL of an image of the source that the new source reference describes.
|
|
4427
|
-
* @i2since 1.1
|
|
4428
|
-
*/
|
|
4429
|
-
readonly imageUrl?: string;
|
|
4430
|
-
}
|
|
4541
|
+
export type ISourceReferenceData = data.ISourceReferenceData;
|
|
4431
4542
|
/**
|
|
4432
4543
|
* A set of dimension values for a record, from a particular security dimension.
|
|
4433
4544
|
* @i2since 1.0
|
|
4545
|
+
* @deprecated Use {@link data.ISecuritySetting} instead.
|
|
4434
4546
|
*/
|
|
4435
|
-
export
|
|
4436
|
-
/**
|
|
4437
|
-
* Gets the security dimension that the dimension values come from.
|
|
4438
|
-
* @i2since 1.0
|
|
4439
|
-
*/
|
|
4440
|
-
readonly dimension: schema.ISecurityDimension;
|
|
4441
|
-
/**
|
|
4442
|
-
* Gets the security dimension values.
|
|
4443
|
-
* @i2since 1.0
|
|
4444
|
-
*/
|
|
4445
|
-
readonly values: data.IReadOnlyCollection<schema.ISecurityDimensionValue>;
|
|
4446
|
-
}
|
|
4547
|
+
export type ISecuritySetting = data.ISecuritySetting;
|
|
4447
4548
|
/**
|
|
4448
4549
|
* A set of data for creating a security setting.
|
|
4449
4550
|
* @i2since 1.1
|
|
4551
|
+
* @deprecated Use {@link data.ISecuritySettingData} instead.
|
|
4450
4552
|
*/
|
|
4451
|
-
export
|
|
4452
|
-
/**
|
|
4453
|
-
* Gets or sets the security dimension for the new security setting.
|
|
4454
|
-
* @i2since 1.1
|
|
4455
|
-
*/
|
|
4456
|
-
dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
|
|
4457
|
-
/**
|
|
4458
|
-
* Gets or sets the dimension values for the new security setting.
|
|
4459
|
-
* @i2since 1.1
|
|
4460
|
-
*/
|
|
4461
|
-
values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
|
|
4462
|
-
}
|
|
4553
|
+
export type ISecuritySettingData = data.ISecuritySettingData;
|
|
4463
4554
|
/**
|
|
4464
4555
|
* A source identifier for a record.
|
|
4465
4556
|
*
|
|
@@ -4515,17 +4606,17 @@ export declare namespace schema {
|
|
|
4515
4606
|
* Gets all the entity types in the chart schema.
|
|
4516
4607
|
* @i2since 1.0
|
|
4517
4608
|
*/
|
|
4518
|
-
readonly entityTypes: data.IKeyedReadOnlyCollection<
|
|
4609
|
+
readonly entityTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartEntityType>;
|
|
4519
4610
|
/**
|
|
4520
4611
|
* Gets all the link types in the chart schema.
|
|
4521
4612
|
* @i2since 1.0
|
|
4522
4613
|
*/
|
|
4523
|
-
readonly linkTypes: data.IKeyedReadOnlyCollection<
|
|
4614
|
+
readonly linkTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartLinkType>;
|
|
4524
4615
|
/**
|
|
4525
4616
|
* Gets all the item types (that is, entity types _and_ link types) in the chart schema.
|
|
4526
4617
|
* @i2since 1.0
|
|
4527
4618
|
*/
|
|
4528
|
-
readonly itemTypes: data.IKeyedReadOnlyCollection<
|
|
4619
|
+
readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartItemType>;
|
|
4529
4620
|
/**
|
|
4530
4621
|
* Gets the item type in the chart schema that has the specified i2 Analyze type identifier.
|
|
4531
4622
|
* @param analyzeItemTypeId - An i2 Analyze item type identifier.
|
|
@@ -4541,7 +4632,7 @@ export declare namespace schema {
|
|
|
4541
4632
|
* @returns The requested source reference schema.
|
|
4542
4633
|
* @i2since 1.0
|
|
4543
4634
|
*/
|
|
4544
|
-
getSourceReferenceSchema(itemTypeOrId:
|
|
4635
|
+
getSourceReferenceSchema(itemTypeOrId: ChartItemTypeSpecifier): ISourceReferenceSchema;
|
|
4545
4636
|
/**
|
|
4546
4637
|
* Gets the schema for notes.
|
|
4547
4638
|
* @i2since 1.0
|
|
@@ -4603,7 +4694,7 @@ export declare namespace schema {
|
|
|
4603
4694
|
* Gets the security dimension values to apply to new records by default.
|
|
4604
4695
|
* @i2since 1.1
|
|
4605
4696
|
*/
|
|
4606
|
-
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId,
|
|
4697
|
+
readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, data.ISecuritySetting>;
|
|
4607
4698
|
}
|
|
4608
4699
|
/**
|
|
4609
4700
|
* An identifier of a security dimension.
|
|
@@ -4720,11 +4811,16 @@ export declare namespace schema {
|
|
|
4720
4811
|
* @i2since 1.0
|
|
4721
4812
|
*/
|
|
4722
4813
|
export type AnalyzeItemTypeId = string;
|
|
4814
|
+
/**
|
|
4815
|
+
* A common identifier for a chart item type.
|
|
4816
|
+
* @i2since 1.9
|
|
4817
|
+
*/
|
|
4818
|
+
export type ChartItemTypeIdentifier = ChartItemTypeId | AnalyzeItemTypeId;
|
|
4723
4819
|
/**
|
|
4724
4820
|
* A common specifier for a chart item type.
|
|
4725
4821
|
* @i2since 1.3
|
|
4726
4822
|
*/
|
|
4727
|
-
export type ChartItemTypeSpecifier =
|
|
4823
|
+
export type ChartItemTypeSpecifier = ChartItemTypeIdentifier | IChartItemType;
|
|
4728
4824
|
/**
|
|
4729
4825
|
* A set of information that is common to all item types in i2 Notebook.
|
|
4730
4826
|
* @i2since 1.0
|
|
@@ -4773,7 +4869,7 @@ export declare namespace schema {
|
|
|
4773
4869
|
* Gets all the property types of the item type.
|
|
4774
4870
|
* @i2since 1.0
|
|
4775
4871
|
*/
|
|
4776
|
-
readonly propertyTypes: data.IKeyedReadOnlyCollection<
|
|
4872
|
+
readonly propertyTypes: data.IKeyedReadOnlyCollection<PropertyTypeIdentifier, IChartPropertyType>;
|
|
4777
4873
|
/**
|
|
4778
4874
|
* Gets the property type that has the specified i2 Analyze type identifier.
|
|
4779
4875
|
* @param analyzePropertyTypeId - An i2 Analyze property type identifier.
|
|
@@ -4941,21 +5037,22 @@ export declare namespace schema {
|
|
|
4941
5037
|
* @returns The new, pending property type.
|
|
4942
5038
|
* @i2since 1.6
|
|
4943
5039
|
*/
|
|
4944
|
-
addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?:
|
|
5040
|
+
addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?: PropertyTypeSpecifier | IPendingPropertyType | null): IPendingPropertyType;
|
|
4945
5041
|
/**
|
|
4946
5042
|
* Gets an object with methods for editing a custom property type.
|
|
4947
5043
|
*
|
|
4948
|
-
* @param
|
|
5044
|
+
* @param propertyTypeSpecifier - The custom property type to be edited.
|
|
4949
5045
|
* @returns The type-editing object.
|
|
4950
5046
|
* @i2since 1.6
|
|
4951
5047
|
*/
|
|
4952
|
-
editPropertyType(
|
|
5048
|
+
editPropertyType(propertyTypeSpecifier: AnalyzePropertyTypeId | IPendingPropertyType): IPropertyTypeEditor;
|
|
4953
5049
|
/**
|
|
4954
5050
|
* Gets an object with methods for editing a custom property type.
|
|
4955
5051
|
*
|
|
4956
5052
|
* @param typeId - The identifier of the property type to be edited.
|
|
4957
5053
|
* @param logicalType - The logical type of the property type to be edited.
|
|
4958
5054
|
* @returns The type-editing object.
|
|
5055
|
+
* @deprecated Use {@link schema.IPropertyTypesEditor.(editPropertyType:1) | editPropertyType(propertyType)} instead.
|
|
4959
5056
|
* @i2since 1.6
|
|
4960
5057
|
*/
|
|
4961
5058
|
editPropertyType(typeId: AnalyzePropertyTypeId, logicalType: CustomLogicalType): IPropertyTypeEditor;
|
|
@@ -5004,7 +5101,7 @@ export declare namespace schema {
|
|
|
5004
5101
|
* @returns This property type, in its new position.
|
|
5005
5102
|
* @i2since 1.6
|
|
5006
5103
|
*/
|
|
5007
|
-
moveAfter(propertyType:
|
|
5104
|
+
moveAfter(propertyType: PropertyTypeSpecifier | IPendingPropertyType | null): this;
|
|
5008
5105
|
/**
|
|
5009
5106
|
* Sets whether the property type forms part of the item type's label definition.
|
|
5010
5107
|
*
|
|
@@ -5031,7 +5128,7 @@ export declare namespace schema {
|
|
|
5031
5128
|
* A common specifier for an item type.
|
|
5032
5129
|
* @i2since 1.6
|
|
5033
5130
|
*/
|
|
5034
|
-
export type ItemTypeSpecifier =
|
|
5131
|
+
export type ItemTypeSpecifier = ChartItemTypeIdentifier | IChartItemType | IPendingItemType;
|
|
5035
5132
|
/**
|
|
5036
5133
|
* An identifier of a property type in a chart schema.
|
|
5037
5134
|
* @i2since 1.0
|
|
@@ -5042,11 +5139,16 @@ export declare namespace schema {
|
|
|
5042
5139
|
* @i2since 1.0
|
|
5043
5140
|
*/
|
|
5044
5141
|
export type AnalyzePropertyTypeId = string;
|
|
5142
|
+
/**
|
|
5143
|
+
* A common identifier for a chart property type.
|
|
5144
|
+
* @i2since 1.9
|
|
5145
|
+
*/
|
|
5146
|
+
export type PropertyTypeIdentifier = ChartPropertyTypeId | AnalyzePropertyTypeId;
|
|
5045
5147
|
/**
|
|
5046
5148
|
* A common specifier for a chart property type.
|
|
5047
5149
|
* @i2since 1.1
|
|
5048
5150
|
*/
|
|
5049
|
-
export type PropertyTypeSpecifier =
|
|
5151
|
+
export type PropertyTypeSpecifier = PropertyTypeIdentifier | IChartPropertyType;
|
|
5050
5152
|
/**
|
|
5051
5153
|
* A property type.
|
|
5052
5154
|
* @i2since 1.0
|