@itwin/core-common 4.1.0-dev.12 → 4.1.0-dev.14

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.
@@ -9,6 +9,8 @@ import { AxisAlignedBox3dProps } from "./geometry/Placement";
9
9
  * @extensions
10
10
  */
11
11
  export declare enum TypeOfChange {
12
+ /** Element contains no changes */
13
+ NoChange = 0,
12
14
  /** A property in the element changed */
13
15
  Property = 1,
14
16
  /** The geometry stream of a [GeometricElement]($backend) changed */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.d.ts","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAI7D;;;GAGG;AACH,oBAAY,YAAY;IACtB,wCAAwC;IACxC,QAAQ,IAAM;IACd,oEAAoE;IACpE,QAAQ,IAAO;IACf,kEAAkE;IAClE,SAAS,IAAQ;IACjB,qEAAqE;IACrE,QAAQ,IAAS;IACjB,+CAA+C;IAC/C,MAAM,KAAU;IAChB,qDAAqD;IACrD,MAAM,KAAW;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,mCAAmC;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,oDAAoD;IACpD,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IACxB;;MAEE;IACF,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,Y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IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;CAC/B;AAED,gBAAgB;AAChB,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B"}
@@ -8,6 +8,8 @@ exports.TypeOfChange = void 0;
8
8
  */
9
9
  var TypeOfChange;
10
10
  (function (TypeOfChange) {
11
+ /** Element contains no changes */
12
+ TypeOfChange[TypeOfChange["NoChange"] = 0] = "NoChange";
11
13
  /** A property in the element changed */
12
14
  TypeOfChange[TypeOfChange["Property"] = 1] = "Property";
13
15
  /** The geometry stream of a [GeometricElement]($backend) changed */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":";;;AAWA,uBAAuB;AAEvB;;;GAGG;AACH,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAbW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAavB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
1
+ {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":";;;AAWA,uBAAuB;AAEvB;;;GAGG;AACH,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,kCAAkC;IAClC,uDAAY,CAAA;IACZ,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAfW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAevB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** Element contains no changes */\r\n NoChange = 0,\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
@@ -9,6 +9,8 @@ import { AxisAlignedBox3dProps } from "./geometry/Placement";
9
9
  * @extensions
10
10
  */
11
11
  export declare enum TypeOfChange {
12
+ /** Element contains no changes */
13
+ NoChange = 0,
12
14
  /** A property in the element changed */
13
15
  Property = 1,
14
16
  /** The geometry stream of a [GeometricElement]($backend) changed */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.d.ts","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAI7D;;;GAGG;AACH,oBAAY,YAAY;IACtB,wCAAwC;IACxC,QAAQ,IAAM;IACd,oEAAoE;IACpE,QAAQ,IAAO;IACf,kEAAkE;IAClE,SAAS,IAAQ;IACjB,qEAAqE;IACrE,QAAQ,IAAS;IACjB,+CAA+C;IAC/C,MAAM,KAAU;IAChB,qDAAqD;IACrD,MAAM,KAAW;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,mCAAmC;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,QAAQ,EA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CAA2C;IAC3C,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,oDAAoD;IACpD,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IACxB;;MAEE;IACF,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;CAC/B;AAED,gBAAgB;AAChB,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B"}
@@ -5,6 +5,8 @@
5
5
  */
6
6
  export var TypeOfChange;
7
7
  (function (TypeOfChange) {
8
+ /** Element contains no changes */
9
+ TypeOfChange[TypeOfChange["NoChange"] = 0] = "NoChange";
8
10
  /** A property in the element changed */
9
11
  TypeOfChange[TypeOfChange["Property"] = 1] = "Property";
10
12
  /** The geometry stream of a [GeometricElement]($backend) changed */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
1
+ {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,kCAAkC;IAClC,uDAAY,CAAA;IACZ,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAfW,YAAY,KAAZ,YAAY,QAevB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** Element contains no changes */\r\n NoChange = 0,\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-common",
3
- "version": "4.1.0-dev.12",
3
+ "version": "4.1.0-dev.14",
4
4
  "description": "iTwin.js components common to frontend and backend",
5
5
  "main": "lib/cjs/core-common.js",
6
6
  "module": "lib/esm/core-common.js",
@@ -28,8 +28,8 @@
28
28
  "js-base64": "^3.6.1"
29
29
  },
30
30
  "peerDependencies": {
31
- "@itwin/core-bentley": "^4.1.0-dev.12",
32
- "@itwin/core-geometry": "^4.1.0-dev.12"
31
+ "@itwin/core-bentley": "^4.1.0-dev.14",
32
+ "@itwin/core-geometry": "^4.1.0-dev.14"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@itwin/eslint-plugin": "^4.0.0-dev.33",
@@ -43,9 +43,9 @@
43
43
  "nyc": "^15.1.0",
44
44
  "rimraf": "^3.0.2",
45
45
  "typescript": "~5.0.2",
46
- "@itwin/build-tools": "4.1.0-dev.12",
47
- "@itwin/core-bentley": "4.1.0-dev.12",
48
- "@itwin/core-geometry": "4.1.0-dev.12"
46
+ "@itwin/core-bentley": "4.1.0-dev.14",
47
+ "@itwin/build-tools": "4.1.0-dev.14",
48
+ "@itwin/core-geometry": "4.1.0-dev.14"
49
49
  },
50
50
  "nyc": {
51
51
  "extends": "./node_modules/@itwin/build-tools/.nycrc",