@i2analyze/notebook-sdk 1.1.0-dev.17 → 1.1.0-dev.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @i2analyze/notebook-sdk
2
2
 
3
+ ## 1.1.0-dev.20
4
+
5
+ ### Minor Changes
6
+
7
+ - Add isInfostore property to IChartItemTypeBase.
8
+
9
+ ## 1.1.0-dev.19
10
+
11
+ ### Minor Changes
12
+
13
+ - Add Source Identifier schema settings to chart.IChartSchema.
14
+
15
+ ## 1.1.0-dev.18
16
+
17
+ ### Minor Changes
18
+
19
+ - Added Prayan API for passing properties
20
+
3
21
  ## 1.1.0-dev.17
4
22
 
5
23
  ### Patch Changes
@@ -278,19 +278,26 @@ export declare namespace app {
278
278
  */
279
279
  export type RecordSpecifier = records.AnalyzeRecordId | records.IChartRecord | IPendingRecord;
280
280
  /**
281
- * An identifier for a record group.
281
+ * The identifier of a record group.
282
282
  * @i2since 1.1
283
283
  */
284
284
  export type AnalyzeRecordGroupId = string;
285
285
  /**
286
- * Selection options used to determine what records are selected after the import record group mutation.
287
- * @remarks Supported options:
288
- * - addRecordsToSelection: Adds records from the record group to the current selection.
289
- * - setSelectionToRecords: Sets the selection to the records in the record group.
290
- * - setSelectionToNewRecords: Sets the selection to the records in the record group that are new to the chart.
286
+ * The effect on chart selection of adding a record group to the chart.
287
+ *
288
+ * @remarks
289
+ *
290
+ * `addRecordsToSelection` adds the records from the group to the current selection;
291
+ * `setSelectionToRecords` sets the selection to the records from the group;
292
+ * `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
291
293
  * @i2since 1.1
292
294
  */
293
295
  export type SelectionOption = 'addRecordsToSelection' | 'setSelectionToRecords' | 'setSelectionToNewRecords';
296
+ /**
297
+ * A common specifier for record properties used to pass record properties when adding or editing a record.
298
+ * @i2since 1.1
299
+ */
300
+ export type RecordPropertiesSpecifier = Record<schema.ChartPropertyTypeId, data.PropertyValue> | Iterable<[schema.IChartPropertyType | schema.ChartPropertyTypeId, data.PropertyValue]>;
294
301
  /**
295
302
  * A set of data that is common to creating records of all types.
296
303
  * @i2since 1.1
@@ -305,12 +312,12 @@ export declare namespace app {
305
312
  * Gets or sets the properties of the new record.
306
313
  * @i2since 1.1
307
314
  */
308
- properties: TODO;
315
+ properties?: RecordPropertiesSpecifier;
309
316
  /**
310
317
  * Gets or sets the security settings of the new record.
311
318
  * @i2since 1.1
312
319
  */
313
- security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
320
+ security?: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>;
314
321
  /**
315
322
  * Gets or sets the notes for the new record.
316
323
  * @i2since 1.1
@@ -396,7 +403,7 @@ export declare namespace app {
396
403
  * @returns This record, with the new properties in place.
397
404
  * @i2since 1.1
398
405
  */
399
- setProperties(properties: TODO): this;
406
+ setProperties(properties: RecordPropertiesSpecifier): this;
400
407
  /**
401
408
  * Adds a new note to the record.
402
409
  *
@@ -679,10 +686,10 @@ export declare namespace app {
679
686
  */
680
687
  addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
681
688
  /**
682
- * Adds an existing record group to the chart using a specified record group identifier.
689
+ * Adds the records from a record group to the chart.
683
690
  *
684
- * @param recordGroupId - The record group identifier to be used.
685
- * @param selectionOption - A set of options used to define how the items are selected when added to the chart.
691
+ * @param recordGroupId - The identifier of the record group to add.
692
+ * @param selectionOption - The effect on chart selection of adding the record group.
686
693
  * @i2since 1.1
687
694
  */
688
695
  addRecordGroup(recordGroupId: AnalyzeRecordGroupId, selectionOption: SelectionOption): void;
@@ -706,7 +713,7 @@ export declare namespace app {
706
713
  *
707
714
  * @param node - The node to be moved.
708
715
  * @param position - The location to move the node to.
709
- * @throws `Error` if the node cannot be found on the chart, if either of the position coordinates aren't finite numbers.
716
+ * @throws `Error` if the node is not on the chart, or if the x- or y-coordinate of the location is not a number.
710
717
  * @i2since 1.1
711
718
  */
712
719
  setNodeCenter(node: visual.INode | visual.ElementId, position: visual.IPosition): void;
@@ -3317,6 +3324,21 @@ export declare namespace schema {
3317
3324
  * @i2since 1.0
3318
3325
  */
3319
3326
  readonly maximumSourceIdentifiers: number;
3327
+ /**
3328
+ * Gets the maximum string length of a source identifier key.
3329
+ * @i2since 1.1
3330
+ */
3331
+ readonly maxKeyStringLength: data.ICharLimit;
3332
+ /**
3333
+ * Gets the maximum string length of a source identifier type.
3334
+ * @i2since 1.1
3335
+ */
3336
+ readonly maxTypeStringLength: data.ICharLimit;
3337
+ /**
3338
+ * Gets a collection of reserved source identifier types.
3339
+ * @i2since 1.1
3340
+ */
3341
+ readonly reservedTypes: data.IReadOnlyCollection<string>;
3320
3342
  }
3321
3343
  /**
3322
3344
  * A security schema, which defines the available security dimensions and their dimension values.
@@ -3493,6 +3515,11 @@ export declare namespace schema {
3493
3515
  * @i2since 1.0
3494
3516
  */
3495
3517
  readonly isOrphaned: boolean;
3518
+ /**
3519
+ * Indicates whether the item type exists in the Information Store.
3520
+ * @i2since 1.1
3521
+ */
3522
+ readonly isInfoStore: boolean;
3496
3523
  /**
3497
3524
  * Gets the label definition for the item type, which describes how record labels are formed.
3498
3525
  * @i2since 1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0-dev.17",
3
+ "version": "1.1.0-dev.20",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {