@itwin/core-common 5.15.0-dev.14 → 5.15.0-dev.15
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/cjs/TxnProps.d.ts +15 -13
- package/lib/cjs/TxnProps.d.ts.map +1 -1
- package/lib/cjs/TxnProps.js.map +1 -1
- package/lib/esm/TxnProps.d.ts +15 -13
- package/lib/esm/TxnProps.d.ts.map +1 -1
- package/lib/esm/TxnProps.js.map +1 -1
- package/package.json +6 -6
package/lib/cjs/TxnProps.d.ts
CHANGED
|
@@ -3,33 +3,35 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Id64String } from "@itwin/core-bentley";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* The type of changes contained in a transaction.
|
|
7
|
+
* - `"Data"`: data changes only.
|
|
8
|
+
* - `"ECSchema"` or `"Schema"`: EC schema changes. Both values may be reported for schema transactions.
|
|
9
|
+
* - `"Ddl"`: database schema (DDL) changes.
|
|
10
|
+
* @beta
|
|
8
11
|
*/
|
|
9
12
|
export type TxnType = "Data" | "ECSchema" | "Schema" | "Ddl";
|
|
10
13
|
/**
|
|
11
|
-
* @alpha
|
|
12
14
|
* Represents the properties of a transaction within the transaction manager.
|
|
13
|
-
*
|
|
14
|
-
* @property id - The unique identifier for the transaction.
|
|
15
|
-
* @property sessionId - The identifier of the session to which the transaction belongs.
|
|
16
|
-
* @property nextId - (Optional) The identifier of the next transaction in the sequence.
|
|
17
|
-
* @property prevId - (Optional) The identifier of the previous transaction in the sequence.
|
|
18
|
-
* @property props - The arguments or properties associated with the save changes operation.
|
|
19
|
-
* @property type - The type of transaction, which can be "Data", "ECSchema", or "Ddl".
|
|
20
|
-
* @property reversed - Indicates whether the transaction has been reversed.
|
|
21
|
-
* @property grouped - Indicates whether the transaction is grouped with others.
|
|
22
|
-
* @property timestamp - The timestamp when the transaction was created.
|
|
15
|
+
* @beta
|
|
23
16
|
*/
|
|
24
17
|
export interface TxnProps {
|
|
18
|
+
/** The unique identifier for the transaction. */
|
|
25
19
|
id: Id64String;
|
|
20
|
+
/** The identifier of the session in which the transaction was created. */
|
|
26
21
|
sessionId: number;
|
|
22
|
+
/** The identifier of the next transaction in the sequence, if any. */
|
|
27
23
|
nextId?: Id64String;
|
|
24
|
+
/** The identifier of the previous transaction in the sequence, if any. */
|
|
28
25
|
prevId?: Id64String;
|
|
26
|
+
/** The arguments supplied when the transaction's changes were saved. */
|
|
29
27
|
props: SaveChangesArgs;
|
|
28
|
+
/** The type of changes contained in the transaction. */
|
|
30
29
|
type: TxnType;
|
|
30
|
+
/** Whether the transaction has been reversed. */
|
|
31
31
|
reversed: boolean;
|
|
32
|
+
/** Whether the transaction is grouped with others. */
|
|
32
33
|
grouped: boolean;
|
|
34
|
+
/** The time at which the transaction was created. */
|
|
33
35
|
timestamp: string;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,iDAAiD;IACjD,EAAE,EAAE,UAAU,CAAC;IACf,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,wEAAwE;IACxE,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;oCACgC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;gHAC4G;IAC5G,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
package/lib/cjs/TxnProps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * The type of changes contained in a transaction.\r\n * - `\"Data\"`: data changes only.\r\n * - `\"ECSchema\"` or `\"Schema\"`: EC schema changes. Both values may be reported for schema transactions.\r\n * - `\"Ddl\"`: database schema (DDL) changes.\r\n * @beta\r\n */\r\nexport type TxnType = \"Data\" | \"ECSchema\" | \"Schema\" | \"Ddl\"; // TODO: Remove \"Schema\" in favor of \"ECSchema\". Currently thats a bug in native code....for schema txns we get txn type as \"Schema\" instead of \"ECSchema\".\r\n\r\n/**\r\n * Represents the properties of a transaction within the transaction manager.\r\n * @beta\r\n */\r\nexport interface TxnProps {\r\n /** The unique identifier for the transaction. */\r\n id: Id64String;\r\n /** The identifier of the session in which the transaction was created. */\r\n sessionId: number;\r\n /** The identifier of the next transaction in the sequence, if any. */\r\n nextId?: Id64String;\r\n /** The identifier of the previous transaction in the sequence, if any. */\r\n prevId?: Id64String;\r\n /** The arguments supplied when the transaction's changes were saved. */\r\n props: SaveChangesArgs;\r\n /** The type of changes contained in the transaction. */\r\n type: TxnType;\r\n /** Whether the transaction has been reversed. */\r\n reversed: boolean;\r\n /** Whether the transaction is grouped with others. */\r\n grouped: boolean;\r\n /** The time at which the transaction was created. */\r\n timestamp: string;\r\n}\r\n\r\n/**\r\n * Arguments for saving changes to the iModel.\r\n * @beta\r\n */\r\nexport interface SaveChangesArgs {\r\n /**\r\n * Optional description of the changes being saved.\r\n */\r\n description?: string;\r\n /**\r\n * Optional source of the changes being saved.\r\n */\r\n source?: string;\r\n /**\r\n * Optional application-specific data to include with the changes.\r\n */\r\n appData?: { [key: string]: any };\r\n}\r\n\r\n/** Arguments to [[TxnManager]]'s async reverse and cancel methods.\r\n * @beta\r\n */\r\nexport interface ReverseTxnArgs {\r\n /** If `true`, locks acquired when the reversed Txns were originally created are retained. If `false` or not specified,\r\n * these locks are abandoned. */\r\n readonly retainLocks?: boolean;\r\n}\r\n\r\n/** Arguments to [[TxnManager]]'s async reinstate methods.\r\n * @beta\r\n */\r\nexport interface ReinstateTxnArgs {\r\n /** If `true`, locks acquired during the current, unsaved Txn are retained, even while the unsaved changes\r\n * themselves are abandoned. If `false` or not specified, the locks are abandoned along with the changes. */\r\n readonly retainLocks?: boolean;\r\n}\r\n"]}
|
package/lib/esm/TxnProps.d.ts
CHANGED
|
@@ -3,33 +3,35 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Id64String } from "@itwin/core-bentley";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* The type of changes contained in a transaction.
|
|
7
|
+
* - `"Data"`: data changes only.
|
|
8
|
+
* - `"ECSchema"` or `"Schema"`: EC schema changes. Both values may be reported for schema transactions.
|
|
9
|
+
* - `"Ddl"`: database schema (DDL) changes.
|
|
10
|
+
* @beta
|
|
8
11
|
*/
|
|
9
12
|
export type TxnType = "Data" | "ECSchema" | "Schema" | "Ddl";
|
|
10
13
|
/**
|
|
11
|
-
* @alpha
|
|
12
14
|
* Represents the properties of a transaction within the transaction manager.
|
|
13
|
-
*
|
|
14
|
-
* @property id - The unique identifier for the transaction.
|
|
15
|
-
* @property sessionId - The identifier of the session to which the transaction belongs.
|
|
16
|
-
* @property nextId - (Optional) The identifier of the next transaction in the sequence.
|
|
17
|
-
* @property prevId - (Optional) The identifier of the previous transaction in the sequence.
|
|
18
|
-
* @property props - The arguments or properties associated with the save changes operation.
|
|
19
|
-
* @property type - The type of transaction, which can be "Data", "ECSchema", or "Ddl".
|
|
20
|
-
* @property reversed - Indicates whether the transaction has been reversed.
|
|
21
|
-
* @property grouped - Indicates whether the transaction is grouped with others.
|
|
22
|
-
* @property timestamp - The timestamp when the transaction was created.
|
|
15
|
+
* @beta
|
|
23
16
|
*/
|
|
24
17
|
export interface TxnProps {
|
|
18
|
+
/** The unique identifier for the transaction. */
|
|
25
19
|
id: Id64String;
|
|
20
|
+
/** The identifier of the session in which the transaction was created. */
|
|
26
21
|
sessionId: number;
|
|
22
|
+
/** The identifier of the next transaction in the sequence, if any. */
|
|
27
23
|
nextId?: Id64String;
|
|
24
|
+
/** The identifier of the previous transaction in the sequence, if any. */
|
|
28
25
|
prevId?: Id64String;
|
|
26
|
+
/** The arguments supplied when the transaction's changes were saved. */
|
|
29
27
|
props: SaveChangesArgs;
|
|
28
|
+
/** The type of changes contained in the transaction. */
|
|
30
29
|
type: TxnType;
|
|
30
|
+
/** Whether the transaction has been reversed. */
|
|
31
31
|
reversed: boolean;
|
|
32
|
+
/** Whether the transaction is grouped with others. */
|
|
32
33
|
grouped: boolean;
|
|
34
|
+
/** The time at which the transaction was created. */
|
|
33
35
|
timestamp: string;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,iDAAiD;IACjD,EAAE,EAAE,UAAU,CAAC;IACf,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,wEAAwE;IACxE,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;oCACgC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;gHAC4G;IAC5G,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
package/lib/esm/TxnProps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * The type of changes contained in a transaction.\r\n * - `\"Data\"`: data changes only.\r\n * - `\"ECSchema\"` or `\"Schema\"`: EC schema changes. Both values may be reported for schema transactions.\r\n * - `\"Ddl\"`: database schema (DDL) changes.\r\n * @beta\r\n */\r\nexport type TxnType = \"Data\" | \"ECSchema\" | \"Schema\" | \"Ddl\"; // TODO: Remove \"Schema\" in favor of \"ECSchema\". Currently thats a bug in native code....for schema txns we get txn type as \"Schema\" instead of \"ECSchema\".\r\n\r\n/**\r\n * Represents the properties of a transaction within the transaction manager.\r\n * @beta\r\n */\r\nexport interface TxnProps {\r\n /** The unique identifier for the transaction. */\r\n id: Id64String;\r\n /** The identifier of the session in which the transaction was created. */\r\n sessionId: number;\r\n /** The identifier of the next transaction in the sequence, if any. */\r\n nextId?: Id64String;\r\n /** The identifier of the previous transaction in the sequence, if any. */\r\n prevId?: Id64String;\r\n /** The arguments supplied when the transaction's changes were saved. */\r\n props: SaveChangesArgs;\r\n /** The type of changes contained in the transaction. */\r\n type: TxnType;\r\n /** Whether the transaction has been reversed. */\r\n reversed: boolean;\r\n /** Whether the transaction is grouped with others. */\r\n grouped: boolean;\r\n /** The time at which the transaction was created. */\r\n timestamp: string;\r\n}\r\n\r\n/**\r\n * Arguments for saving changes to the iModel.\r\n * @beta\r\n */\r\nexport interface SaveChangesArgs {\r\n /**\r\n * Optional description of the changes being saved.\r\n */\r\n description?: string;\r\n /**\r\n * Optional source of the changes being saved.\r\n */\r\n source?: string;\r\n /**\r\n * Optional application-specific data to include with the changes.\r\n */\r\n appData?: { [key: string]: any };\r\n}\r\n\r\n/** Arguments to [[TxnManager]]'s async reverse and cancel methods.\r\n * @beta\r\n */\r\nexport interface ReverseTxnArgs {\r\n /** If `true`, locks acquired when the reversed Txns were originally created are retained. If `false` or not specified,\r\n * these locks are abandoned. */\r\n readonly retainLocks?: boolean;\r\n}\r\n\r\n/** Arguments to [[TxnManager]]'s async reinstate methods.\r\n * @beta\r\n */\r\nexport interface ReinstateTxnArgs {\r\n /** If `true`, locks acquired during the current, unsaved Txn are retained, even while the unsaved changes\r\n * themselves are abandoned. If `false` or not specified, the locks are abandoned along with the changes. */\r\n readonly retainLocks?: boolean;\r\n}\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-common",
|
|
3
|
-
"version": "5.15.0-dev.
|
|
3
|
+
"version": "5.15.0-dev.15",
|
|
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",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"js-base64": "^3.6.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@itwin/core-bentley": "5.15.0-dev.
|
|
31
|
-
"@itwin/core-geometry": "5.15.0-dev.
|
|
30
|
+
"@itwin/core-bentley": "5.15.0-dev.15",
|
|
31
|
+
"@itwin/core-geometry": "5.15.0-dev.15"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@itwin/eslint-plugin": "^6.0.0",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"rimraf": "^6.0.1",
|
|
41
41
|
"typescript": "~5.6.2",
|
|
42
42
|
"vitest": "^4.1.10",
|
|
43
|
-
"@itwin/
|
|
44
|
-
"@itwin/
|
|
45
|
-
"@itwin/core-
|
|
43
|
+
"@itwin/build-tools": "5.15.0-dev.15",
|
|
44
|
+
"@itwin/core-geometry": "5.15.0-dev.15",
|
|
45
|
+
"@itwin/core-bentley": "5.15.0-dev.15"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "npm run -s build:cjs && npm run -s build:esm",
|