@i2analyze/notebook-sdk 1.8.0 → 1.9.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.
@@ -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 = records.NoteId | records.INote;
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 = records.SourceReferenceId | records.ISourceReference;
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.1
411
+ * @i2since 1.9
412
412
  */
413
- export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
413
+ export type PropertiesSpecifier = Record<schema.PropertyTypeIdentifier, data.PropertyValue> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue]>;
414
414
  /**
415
- * A common specifier for record properties that are to be edited, for use in mutation APIs.
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 EditRecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue | null> | Iterable<[schema.PropertyTypeSpecifier, data.PropertyValue | null]>;
419
+ export type RecordPropertiesSpecifier = PropertiesSpecifier;
419
420
  /**
420
- * A set of data that is common to creating records of all types.
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 interface IChartRecordBaseData {
424
- /**
425
- * Gets or sets the item type of the new record.
426
- * @i2since 1.1
427
- */
428
- itemType: schema.ChartItemTypeId | schema.IChartItemType;
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?: RecordPropertiesSpecifier;
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 records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
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 records.INoteData[];
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
@@ -508,8 +526,37 @@ export declare namespace app {
508
526
  * @i2since 1.1
509
527
  */
510
528
  export interface IUntrackedMutations extends IMutationsBase {
529
+ /**
530
+ * Gets an object with methods for editing the appearance of a node.
531
+ *
532
+ * @remarks
533
+ * Untracked edits apply only locally and are not persisted to the server.
534
+ * Any changes are lost on page or chart reload.
535
+ *
536
+ * @param node - The node to be edited.
537
+ * @returns The node-editing object.
538
+ * @i2since 1.9
539
+ */
540
+ editNode(node: NodeSpecifier): INodeEditor;
541
+ /**
542
+ * Gets an object with methods for editing the appearance of an edge.
543
+ *
544
+ * @remarks
545
+ * Untracked edits apply only locally and are not persisted to the server.
546
+ * Any changes are lost on page or chart reload.
547
+ *
548
+ * @param edge - The edge to be edited.
549
+ * @returns The edge-editing object.
550
+ * @i2since 1.9
551
+ */
552
+ editEdge(edge: EdgeSpecifier): IEdgeEditor;
511
553
  /**
512
554
  * Gets an object with methods for editing the appearance of an edge summary.
555
+ *
556
+ * @remarks
557
+ * Untracked edits apply only locally and are not persisted to the server.
558
+ * Any changes to edge summaries are persisted to the browser only.
559
+ *
513
560
  * @param edge - The edge summary to edit.
514
561
  * @returns The edge-summary-editing object.
515
562
  * @i2since 1.6
@@ -531,10 +578,10 @@ export declare namespace app {
531
578
  setLabel(label: string | undefined): this;
532
579
  }
533
580
  /**
534
- * A set of methods for modifying the contents of a record.
535
- * @i2since 1.1
581
+ * A set of methods for modifying common record data.
582
+ * @i2since 1.9
536
583
  */
537
- export interface IRecordEditor {
584
+ export interface IEditorBase {
538
585
  /**
539
586
  * Sets or clears the values of properties on the record.
540
587
  *
@@ -542,7 +589,7 @@ export declare namespace app {
542
589
  * @returns This record, with the edited properties in place.
543
590
  * @i2since 1.1
544
591
  */
545
- setProperties(properties: EditRecordPropertiesSpecifier): this;
592
+ setProperties(properties: EditPropertiesSpecifier): this;
546
593
  /**
547
594
  * Adds a new note to the record.
548
595
  *
@@ -550,7 +597,7 @@ export declare namespace app {
550
597
  * @returns This record, with the new note in place.
551
598
  * @i2since 1.1
552
599
  */
553
- addNote(noteData: records.INoteData): this;
600
+ addNote(noteData: data.INoteData): this;
554
601
  /**
555
602
  * Replaces an existing note on the record with a new one.
556
603
  *
@@ -559,7 +606,7 @@ export declare namespace app {
559
606
  * @returns This record, with the new note in place.
560
607
  * @i2since 1.1
561
608
  */
562
- replaceNote(note: NoteSpecifier, noteData: records.INoteData): this;
609
+ replaceNote(note: NoteSpecifier, noteData: data.INoteData): this;
563
610
  /**
564
611
  * Removes a note from the record.
565
612
  *
@@ -575,7 +622,7 @@ export declare namespace app {
575
622
  * @returns This record, with the new source reference in place.
576
623
  * @i2since 1.1
577
624
  */
578
- addSourceReference(refData: records.ISourceReferenceData): this;
625
+ addSourceReference(refData: data.ISourceReferenceData): this;
579
626
  /**
580
627
  * Replaces an existing source reference on the record with a new one.
581
628
  *
@@ -584,7 +631,7 @@ export declare namespace app {
584
631
  * @returns This record, with the new source reference in place.
585
632
  * @i2since 1.1
586
633
  */
587
- replaceSourceReference(ref: SourceReferenceSpecifier, refData: records.ISourceReferenceData): this;
634
+ replaceSourceReference(ref: SourceReferenceSpecifier, refData: data.ISourceReferenceData): this;
588
635
  /**
589
636
  * Removes a source reference from the record.
590
637
  *
@@ -594,21 +641,27 @@ export declare namespace app {
594
641
  */
595
642
  removeSourceReference(ref: SourceReferenceSpecifier): this;
596
643
  /**
597
- * Adds a new source identifier to the record.
644
+ * Replaces the record's security settings with a new set.
598
645
  *
599
- * @param identifierData - The data for the new source identifier.
600
- * @returns This record, with the new source identifier in place.
646
+ * @param security - The new security settings.
647
+ * @returns This record, with the new security settings in place.
601
648
  * @i2since 1.1
602
649
  */
603
- addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
650
+ replaceSecurity(security: readonly data.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
651
+ }
652
+ /**
653
+ * A set of methods for modifying the contents of a record.
654
+ * @i2since 1.1
655
+ */
656
+ export interface IRecordEditor extends IEditorBase {
604
657
  /**
605
- * Replaces the record's security settings with a new set.
658
+ * Adds a new source identifier to the record.
606
659
  *
607
- * @param security - The new security settings.
608
- * @returns This record, with the new security settings in place.
660
+ * @param identifierData - The data for the new source identifier.
661
+ * @returns This record, with the new source identifier in place.
609
662
  * @i2since 1.1
610
663
  */
611
- replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
664
+ addSourceIdentifier(identifierData: records.ISourceIdentifierData): this;
612
665
  /**
613
666
  * Sets the direction of a link record.
614
667
  *
@@ -819,7 +872,7 @@ export declare namespace app {
819
872
  * @throws `Error` if the security dimension or dimension values in the data do not exist in the security schema.
820
873
  * @i2since 1.1
821
874
  */
822
- createSecuritySetting(data: records.ISecuritySettingData): records.ISecuritySetting;
875
+ createSecuritySetting(data: data.ISecuritySettingData): data.ISecuritySetting;
823
876
  /**
824
877
  * Creates a decimal value from a number or a string.
825
878
  *
@@ -1142,7 +1195,7 @@ export declare namespace app {
1142
1195
  * @returns The type-editing object.
1143
1196
  * @i2since 1.6
1144
1197
  */
1145
- editItemType(itemType: schema.ItemTypeSpecifier): schema.IItemTypeEditor | schema.IPropertyTypesEditor;
1198
+ editItemType(itemType: schema.ChartItemTypeSpecifier | schema.IPendingItemType): schema.IItemTypeEditor | schema.IPropertyTypesEditor;
1146
1199
  }
1147
1200
  /**
1148
1201
  * A collection of elements and records that together represent a selection on the chart surface.
@@ -1574,17 +1627,17 @@ export declare namespace chart {
1574
1627
  * Gets all the entity types in use on the chart.
1575
1628
  * @i2since 1.3
1576
1629
  */
1577
- readonly entityTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartEntityType>;
1630
+ readonly entityTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartEntityType>;
1578
1631
  /**
1579
1632
  * Gets all the link types in use on the chart.
1580
1633
  * @i2since 1.3
1581
1634
  */
1582
- readonly linkTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartLinkType>;
1635
+ readonly linkTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartLinkType>;
1583
1636
  /**
1584
1637
  * Gets all the entity types and link types in use on the chart.
1585
1638
  * @i2since 1.3
1586
1639
  */
1587
- readonly itemTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeId, schema.IChartItemType>;
1640
+ readonly itemTypes: data.IKeyedReadOnlyCollection<schema.ChartItemTypeIdentifier, schema.IChartItemType>;
1588
1641
  /**
1589
1642
  * Fetches property values from the server of the specified types for the specified records, if they have not previously been fetched.
1590
1643
  *
@@ -2789,6 +2842,11 @@ export declare namespace commands {
2789
2842
  * @i2since 1.3
2790
2843
  */
2791
2844
  readonly toggleLists: CommandId;
2845
+ /**
2846
+ * Gets the identifier of the system command that toggles the list most connected UI.
2847
+ * @i2since 1.8
2848
+ */
2849
+ readonly toggleListMostConnected: CommandId;
2792
2850
  /**
2793
2851
  * Gets the identifier of the system command that toggles the map UI.
2794
2852
  * @i2since 1.1
@@ -2829,6 +2887,11 @@ export declare namespace commands {
2829
2887
  * @i2since 1.8
2830
2888
  */
2831
2889
  readonly ungroupNodes: CommandId;
2890
+ /**
2891
+ * Gets the identifier of the system command that toggles the Time Wheel UI.
2892
+ * @i2since 1.8
2893
+ */
2894
+ readonly toggleTimeWheel: CommandId;
2832
2895
  }
2833
2896
  /**
2834
2897
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -3664,6 +3727,210 @@ export declare namespace data {
3664
3727
  */
3665
3728
  readonly hasLabel: boolean;
3666
3729
  }
3730
+ /**
3731
+ * A set of common chart data properties.
3732
+ * @i2since 1.9
3733
+ */
3734
+ export interface IBaseChartData {
3735
+ /**
3736
+ * Gets the property value for the specified property type.
3737
+ *
3738
+ * @param propertyType - The property type or property type identifier of the value to retrieve.
3739
+ * @returns The property value or, if not present, `undefined`.
3740
+ * @i2since 1.0
3741
+ */
3742
+ getProperty(propertyType: schema.PropertyTypeSpecifier): PropertyValue | IValueNotFetched | undefined;
3743
+ /**
3744
+ * Gets the notes of the record.
3745
+ * @i2since 1.0
3746
+ */
3747
+ readonly notes: IKeyedReadOnlyCollection<NoteId, INote>;
3748
+ /**
3749
+ * Gets the source references of the record.
3750
+ * @i2since 1.0
3751
+ */
3752
+ readonly sourceReferences: IKeyedReadOnlyCollection<SourceReferenceId, ISourceReference>;
3753
+ /**
3754
+ * Gets the security settings of the record.
3755
+ * @i2since 1.0
3756
+ */
3757
+ readonly security: IKeyedReadOnlyCollection<schema.SecurityDimensionId, ISecuritySetting>;
3758
+ }
3759
+ /**
3760
+ * The identifier of a note.
3761
+ * @i2since 1.0
3762
+ */
3763
+ export type NoteId = string;
3764
+ /**
3765
+ * A set of data for creating a note.
3766
+ * @i2since 1.1
3767
+ */
3768
+ export interface INoteData {
3769
+ /**
3770
+ * Gets the contents of the new note.
3771
+ * @i2since 1.1
3772
+ */
3773
+ readonly contents: string;
3774
+ }
3775
+ /**
3776
+ * A note for a record.
3777
+ * @i2since 1.0
3778
+ */
3779
+ export interface INote {
3780
+ /**
3781
+ * Gets the identifier of the note.
3782
+ * @i2since 1.0
3783
+ */
3784
+ readonly id: NoteId;
3785
+ /**
3786
+ * Gets the creator of the note.
3787
+ * @i2since 1.0
3788
+ */
3789
+ readonly creator: IUser;
3790
+ /**
3791
+ * Gets information about when and by whom the note was first uploaded.
3792
+ *
3793
+ * @returns The user who first uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
3794
+ * @i2since 1.0
3795
+ */
3796
+ readonly firstUploaded: IUserAndDateAndTime | undefined;
3797
+ /**
3798
+ * Gets information about when and by whom the note was last uploaded.
3799
+ *
3800
+ * @returns The user who last uploaded the note and when it happened, or `undefined` if the note has not been uploaded.
3801
+ * @i2since 1.0
3802
+ */
3803
+ readonly lastUploaded: IUserAndDateAndTime | undefined;
3804
+ /**
3805
+ * Gets the contents of the note.
3806
+ *
3807
+ * @remarks
3808
+ * See {@link schema.INotesSchema} for constraints on the contents of notes.
3809
+ * @i2since 1.0
3810
+ */
3811
+ readonly contents: string;
3812
+ }
3813
+ /**
3814
+ * The identifier of a source reference.
3815
+ * @i2since 1.0
3816
+ */
3817
+ export type SourceReferenceId = string;
3818
+ /**
3819
+ * A source reference for a record.
3820
+ *
3821
+ * @remarks
3822
+ * A source reference contains information about a source from which data in the record was derived.
3823
+ * @i2since 1.0
3824
+ */
3825
+ export interface ISourceReference {
3826
+ /**
3827
+ * Gets the identifier of the source reference.
3828
+ * @i2since 1.0
3829
+ */
3830
+ readonly id: SourceReferenceId;
3831
+ /**
3832
+ * Indicates whether the source reference is read-only.
3833
+ * @i2since 1.8
3834
+ */
3835
+ readonly isReadOnly: boolean;
3836
+ /**
3837
+ * Gets the name of the source that the source reference describes.
3838
+ * @i2since 1.0
3839
+ */
3840
+ readonly name: string;
3841
+ /**
3842
+ * Gets the type of the source that the source reference describes.
3843
+ * @i2since 1.0
3844
+ */
3845
+ readonly type?: string;
3846
+ /**
3847
+ * Gets the location of the source that the source reference describes.
3848
+ * @i2since 1.0
3849
+ */
3850
+ readonly location?: string;
3851
+ /**
3852
+ * Indicates whether it makes sense to show `location` as a hyperlink.
3853
+ *
3854
+ * @remarks
3855
+ * This property is `true` if `location` is a valid URL that a plug-in can make available to users,
3856
+ * in the same way that the i2 Notebook Record Inspector presents source reference locations.
3857
+ * @i2since 1.0
3858
+ */
3859
+ readonly locationIsUrl: boolean;
3860
+ /**
3861
+ * Gets the description of the source that the source reference describes.
3862
+ * @i2since 1.0
3863
+ */
3864
+ readonly description?: string;
3865
+ /**
3866
+ * Gets the URL of an image of the source that the source reference describes.
3867
+ * @i2since 1.0
3868
+ */
3869
+ readonly imageUrl?: string;
3870
+ }
3871
+ /**
3872
+ * A set of data for creating a source reference.
3873
+ * @i2since 1.1
3874
+ */
3875
+ export interface ISourceReferenceData {
3876
+ /**
3877
+ * Gets the name of the source that the new source reference describes.
3878
+ * @i2since 1.1
3879
+ */
3880
+ readonly name: string;
3881
+ /**
3882
+ * Gets the type of the source that the new source reference describes.
3883
+ * @i2since 1.1
3884
+ */
3885
+ readonly type?: string;
3886
+ /**
3887
+ * Gets the location of the source that the new source reference describes.
3888
+ * @i2since 1.1
3889
+ */
3890
+ readonly location?: string;
3891
+ /**
3892
+ * Gets the description of the source that the new source reference describes.
3893
+ * @i2since 1.1
3894
+ */
3895
+ readonly description?: string;
3896
+ /**
3897
+ * Gets the URL of an image of the source that the new source reference describes.
3898
+ * @i2since 1.1
3899
+ */
3900
+ readonly imageUrl?: string;
3901
+ }
3902
+ /**
3903
+ * A set of dimension values for a record, from a particular security dimension.
3904
+ * @i2since 1.0
3905
+ */
3906
+ export interface ISecuritySetting {
3907
+ /**
3908
+ * Gets the security dimension that the dimension values come from.
3909
+ * @i2since 1.0
3910
+ */
3911
+ readonly dimension: schema.ISecurityDimension;
3912
+ /**
3913
+ * Gets the security dimension values.
3914
+ * @i2since 1.0
3915
+ */
3916
+ readonly values: IReadOnlyCollection<schema.ISecurityDimensionValue>;
3917
+ }
3918
+ /**
3919
+ * A set of data for creating a security setting.
3920
+ * @i2since 1.1
3921
+ */
3922
+ export interface ISecuritySettingData {
3923
+ /**
3924
+ * Gets or sets the security dimension for the new security setting.
3925
+ * @i2since 1.1
3926
+ */
3927
+ dimension: schema.SecurityDimensionId | schema.ISecurityDimension;
3928
+ /**
3929
+ * Gets or sets the dimension values for the new security setting.
3930
+ * @i2since 1.1
3931
+ */
3932
+ values: readonly (schema.SecurityDimensionValueId | schema.ISecurityDimensionValue)[];
3933
+ }
3667
3934
  }
3668
3935
 
3669
3936
  /**
@@ -4104,7 +4371,7 @@ export declare namespace records {
4104
4371
  * A set of information and functionality that is common to all records in i2 Notebook.
4105
4372
  * @i2since 1.0
4106
4373
  */
4107
- export interface IChartRecordBase {
4374
+ export interface IChartRecordBase extends data.IBaseChartData {
4108
4375
  /**
4109
4376
  * Gets the identifier of the record.
4110
4377
  * @i2since 1.0
@@ -4153,14 +4420,6 @@ export declare namespace records {
4153
4420
  * @i2since 1.0
4154
4421
  */
4155
4422
  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
4423
  /**
4165
4424
  * Tests whether the record is an entity record; functions as a TypeScript typeguard.
4166
4425
  *
@@ -4180,21 +4439,6 @@ export declare namespace records {
4180
4439
  * @i2since 1.0
4181
4440
  */
4182
4441
  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
4442
  /**
4199
4443
  * Gets information about when and by whom the record was first uploaded.
4200
4444
  *
@@ -4288,178 +4532,54 @@ export declare namespace records {
4288
4532
  /**
4289
4533
  * The identifier of a note.
4290
4534
  * @i2since 1.0
4535
+ * @deprecated Use {@link data.NoteId} instead.
4291
4536
  */
4292
- export type NoteId = string;
4537
+ export type NoteId = data.NoteId;
4293
4538
  /**
4294
4539
  * A set of data for creating a note.
4295
4540
  * @i2since 1.1
4541
+ * @deprecated Use {@link data.INoteData} instead.
4296
4542
  */
4297
- export interface INoteData {
4298
- /**
4299
- * Gets the contents of the new note.
4300
- * @i2since 1.1
4301
- */
4302
- readonly contents: string;
4303
- }
4543
+ export type INoteData = data.INoteData;
4304
4544
  /**
4305
4545
  * A note for a record.
4306
4546
  * @i2since 1.0
4547
+ * @deprecated Use {@link data.INote} instead.
4307
4548
  */
4308
- export interface INote {
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
- }
4549
+ export type INote = data.INote;
4342
4550
  /**
4343
4551
  * The identifier of a source reference.
4344
4552
  * @i2since 1.0
4553
+ * @deprecated Use {@link data.SourceReferenceId} instead.
4345
4554
  */
4346
- export type SourceReferenceId = string;
4555
+ export type SourceReferenceId = data.SourceReferenceId;
4347
4556
  /**
4348
4557
  * A source reference for a record.
4349
4558
  *
4350
4559
  * @remarks
4351
4560
  * A source reference contains information about a source from which data in the record was derived.
4352
4561
  * @i2since 1.0
4562
+ * @deprecated Use {@link data.ISourceReference} instead.
4353
4563
  */
4354
- export interface ISourceReference {
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
- }
4564
+ export type ISourceReference = data.ISourceReference;
4400
4565
  /**
4401
4566
  * A set of data for creating a source reference.
4402
4567
  * @i2since 1.1
4568
+ * @deprecated Use {@link data.ISourceReferenceData} instead.
4403
4569
  */
4404
- export interface ISourceReferenceData {
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
- }
4570
+ export type ISourceReferenceData = data.ISourceReferenceData;
4431
4571
  /**
4432
4572
  * A set of dimension values for a record, from a particular security dimension.
4433
4573
  * @i2since 1.0
4574
+ * @deprecated Use {@link data.ISecuritySetting} instead.
4434
4575
  */
4435
- export interface ISecuritySetting {
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
- }
4576
+ export type ISecuritySetting = data.ISecuritySetting;
4447
4577
  /**
4448
4578
  * A set of data for creating a security setting.
4449
4579
  * @i2since 1.1
4580
+ * @deprecated Use {@link data.ISecuritySettingData} instead.
4450
4581
  */
4451
- export interface ISecuritySettingData {
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
- }
4582
+ export type ISecuritySettingData = data.ISecuritySettingData;
4463
4583
  /**
4464
4584
  * A source identifier for a record.
4465
4585
  *
@@ -4515,17 +4635,17 @@ export declare namespace schema {
4515
4635
  * Gets all the entity types in the chart schema.
4516
4636
  * @i2since 1.0
4517
4637
  */
4518
- readonly entityTypes: data.IKeyedReadOnlyCollection<ChartItemTypeId, IChartEntityType>;
4638
+ readonly entityTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartEntityType>;
4519
4639
  /**
4520
4640
  * Gets all the link types in the chart schema.
4521
4641
  * @i2since 1.0
4522
4642
  */
4523
- readonly linkTypes: data.IKeyedReadOnlyCollection<ChartItemTypeId, IChartLinkType>;
4643
+ readonly linkTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartLinkType>;
4524
4644
  /**
4525
4645
  * Gets all the item types (that is, entity types _and_ link types) in the chart schema.
4526
4646
  * @i2since 1.0
4527
4647
  */
4528
- readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeId, IChartItemType>;
4648
+ readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartItemType>;
4529
4649
  /**
4530
4650
  * Gets the item type in the chart schema that has the specified i2 Analyze type identifier.
4531
4651
  * @param analyzeItemTypeId - An i2 Analyze item type identifier.
@@ -4541,7 +4661,7 @@ export declare namespace schema {
4541
4661
  * @returns The requested source reference schema.
4542
4662
  * @i2since 1.0
4543
4663
  */
4544
- getSourceReferenceSchema(itemTypeOrId: IChartItemType | ChartItemTypeId): ISourceReferenceSchema;
4664
+ getSourceReferenceSchema(itemTypeOrId: ChartItemTypeSpecifier): ISourceReferenceSchema;
4545
4665
  /**
4546
4666
  * Gets the schema for notes.
4547
4667
  * @i2since 1.0
@@ -4603,7 +4723,7 @@ export declare namespace schema {
4603
4723
  * Gets the security dimension values to apply to new records by default.
4604
4724
  * @i2since 1.1
4605
4725
  */
4606
- readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, records.ISecuritySetting>;
4726
+ readonly defaultSecurity: data.IKeyedReadOnlyCollection<SecurityDimensionId, data.ISecuritySetting>;
4607
4727
  }
4608
4728
  /**
4609
4729
  * An identifier of a security dimension.
@@ -4720,11 +4840,16 @@ export declare namespace schema {
4720
4840
  * @i2since 1.0
4721
4841
  */
4722
4842
  export type AnalyzeItemTypeId = string;
4843
+ /**
4844
+ * A common identifier for a chart item type.
4845
+ * @i2since 1.9
4846
+ */
4847
+ export type ChartItemTypeIdentifier = ChartItemTypeId | AnalyzeItemTypeId;
4723
4848
  /**
4724
4849
  * A common specifier for a chart item type.
4725
4850
  * @i2since 1.3
4726
4851
  */
4727
- export type ChartItemTypeSpecifier = ChartItemTypeId | IChartItemType;
4852
+ export type ChartItemTypeSpecifier = ChartItemTypeIdentifier | IChartItemType;
4728
4853
  /**
4729
4854
  * A set of information that is common to all item types in i2 Notebook.
4730
4855
  * @i2since 1.0
@@ -4773,7 +4898,7 @@ export declare namespace schema {
4773
4898
  * Gets all the property types of the item type.
4774
4899
  * @i2since 1.0
4775
4900
  */
4776
- readonly propertyTypes: data.IKeyedReadOnlyCollection<ChartPropertyTypeId, IChartPropertyType>;
4901
+ readonly propertyTypes: data.IKeyedReadOnlyCollection<PropertyTypeIdentifier, IChartPropertyType>;
4777
4902
  /**
4778
4903
  * Gets the property type that has the specified i2 Analyze type identifier.
4779
4904
  * @param analyzePropertyTypeId - An i2 Analyze property type identifier.
@@ -4941,21 +5066,22 @@ export declare namespace schema {
4941
5066
  * @returns The new, pending property type.
4942
5067
  * @i2since 1.6
4943
5068
  */
4944
- addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?: IChartPropertyType | IPendingPropertyType | null): IPendingPropertyType;
5069
+ addPropertyType(propertyTypeData: IPropertyTypeData, insertAfter?: PropertyTypeSpecifier | IPendingPropertyType | null): IPendingPropertyType;
4945
5070
  /**
4946
5071
  * Gets an object with methods for editing a custom property type.
4947
5072
  *
4948
- * @param propertyType - The custom property type to be edited.
5073
+ * @param propertyTypeSpecifier - The custom property type to be edited.
4949
5074
  * @returns The type-editing object.
4950
5075
  * @i2since 1.6
4951
5076
  */
4952
- editPropertyType(propertyType: IChartPropertyType | IPendingPropertyType): IPropertyTypeEditor;
5077
+ editPropertyType(propertyTypeSpecifier: AnalyzePropertyTypeId | IPendingPropertyType): IPropertyTypeEditor;
4953
5078
  /**
4954
5079
  * Gets an object with methods for editing a custom property type.
4955
5080
  *
4956
5081
  * @param typeId - The identifier of the property type to be edited.
4957
5082
  * @param logicalType - The logical type of the property type to be edited.
4958
5083
  * @returns The type-editing object.
5084
+ * @deprecated Use {@link schema.IPropertyTypesEditor.(editPropertyType:1) | editPropertyType(propertyType)} instead.
4959
5085
  * @i2since 1.6
4960
5086
  */
4961
5087
  editPropertyType(typeId: AnalyzePropertyTypeId, logicalType: CustomLogicalType): IPropertyTypeEditor;
@@ -5004,7 +5130,7 @@ export declare namespace schema {
5004
5130
  * @returns This property type, in its new position.
5005
5131
  * @i2since 1.6
5006
5132
  */
5007
- moveAfter(propertyType: IChartPropertyType | IPendingPropertyType | null): this;
5133
+ moveAfter(propertyType: PropertyTypeSpecifier | IPendingPropertyType | null): this;
5008
5134
  /**
5009
5135
  * Sets whether the property type forms part of the item type's label definition.
5010
5136
  *
@@ -5031,7 +5157,7 @@ export declare namespace schema {
5031
5157
  * A common specifier for an item type.
5032
5158
  * @i2since 1.6
5033
5159
  */
5034
- export type ItemTypeSpecifier = AnalyzeItemTypeId | IChartItemType | IPendingItemType;
5160
+ export type ItemTypeSpecifier = ChartItemTypeIdentifier | IChartItemType | IPendingItemType;
5035
5161
  /**
5036
5162
  * An identifier of a property type in a chart schema.
5037
5163
  * @i2since 1.0
@@ -5042,11 +5168,16 @@ export declare namespace schema {
5042
5168
  * @i2since 1.0
5043
5169
  */
5044
5170
  export type AnalyzePropertyTypeId = string;
5171
+ /**
5172
+ * A common identifier for a chart property type.
5173
+ * @i2since 1.9
5174
+ */
5175
+ export type PropertyTypeIdentifier = ChartPropertyTypeId | AnalyzePropertyTypeId;
5045
5176
  /**
5046
5177
  * A common specifier for a chart property type.
5047
5178
  * @i2since 1.1
5048
5179
  */
5049
- export type PropertyTypeSpecifier = ChartPropertyTypeId | IChartPropertyType;
5180
+ export type PropertyTypeSpecifier = PropertyTypeIdentifier | IChartPropertyType;
5050
5181
  /**
5051
5182
  * A property type.
5052
5183
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.0-dev.1",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {