@itwin/core-backend 5.0.0-dev.2 → 5.0.0-dev.4

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.
Files changed (115) hide show
  1. package/lib/cjs/BackendHubAccess.js.map +1 -1
  2. package/lib/cjs/BackendLoggerCategory.js.map +1 -1
  3. package/lib/cjs/BisCoreSchema.js.map +1 -1
  4. package/lib/cjs/BlobContainerService.d.ts +22 -1
  5. package/lib/cjs/BlobContainerService.d.ts.map +1 -1
  6. package/lib/cjs/BlobContainerService.js.map +1 -1
  7. package/lib/cjs/BriefcaseManager.js.map +1 -1
  8. package/lib/cjs/Category.js.map +1 -1
  9. package/lib/cjs/ChangeSummaryManager.js +2 -2
  10. package/lib/cjs/ChangeSummaryManager.js.map +1 -1
  11. package/lib/cjs/ChangedElementsDb.js.map +1 -1
  12. package/lib/cjs/ChangedElementsManager.js.map +1 -1
  13. package/lib/cjs/ChangesetECAdaptor.js +242 -242
  14. package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
  15. package/lib/cjs/ChannelControl.js.map +1 -1
  16. package/lib/cjs/CheckpointManager.js.map +1 -1
  17. package/lib/cjs/ClassRegistry.js +5 -5
  18. package/lib/cjs/ClassRegistry.js.map +1 -1
  19. package/lib/cjs/CloudSqlite.js.map +1 -1
  20. package/lib/cjs/CodeService.js.map +1 -1
  21. package/lib/cjs/CodeSpecs.js.map +1 -1
  22. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  23. package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
  24. package/lib/cjs/DevTools.js.map +1 -1
  25. package/lib/cjs/DisplayStyle.js.map +1 -1
  26. package/lib/cjs/ECDb.js.map +1 -1
  27. package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
  28. package/lib/cjs/ECSqlStatement.js.map +1 -1
  29. package/lib/cjs/Element.js.map +1 -1
  30. package/lib/cjs/ElementAspect.js.map +1 -1
  31. package/lib/cjs/ElementGraphics.js.map +1 -1
  32. package/lib/cjs/ElementTreeWalker.js.map +1 -1
  33. package/lib/cjs/Entity.js.map +1 -1
  34. package/lib/cjs/EntityReferences.js.map +1 -1
  35. package/lib/cjs/ExportGraphics.js.map +1 -1
  36. package/lib/cjs/ExternalSource.js.map +1 -1
  37. package/lib/cjs/GeoCoordConfig.js.map +1 -1
  38. package/lib/cjs/GeographicCRSServices.js.map +1 -1
  39. package/lib/cjs/GeometrySummary.js +47 -47
  40. package/lib/cjs/GeometrySummary.js.map +1 -1
  41. package/lib/cjs/HubMock.js.map +1 -1
  42. package/lib/cjs/IModelCloneContext.js.map +1 -1
  43. package/lib/cjs/IModelDb.js +8 -8
  44. package/lib/cjs/IModelDb.js.map +1 -1
  45. package/lib/cjs/IModelElementCloneContext.js.map +1 -1
  46. package/lib/cjs/IModelHost.js.map +1 -1
  47. package/lib/cjs/IModelJsFs.js.map +1 -1
  48. package/lib/cjs/IpcHost.js.map +1 -1
  49. package/lib/cjs/LineStyle.js.map +1 -1
  50. package/lib/cjs/LocalHub.js +1 -1
  51. package/lib/cjs/LocalHub.js.map +1 -1
  52. package/lib/cjs/LocalhostIpcHost.js.map +1 -1
  53. package/lib/cjs/LockControl.js.map +1 -1
  54. package/lib/cjs/Material.js.map +1 -1
  55. package/lib/cjs/Model.js.map +1 -1
  56. package/lib/cjs/NativeAppStorage.js.map +1 -1
  57. package/lib/cjs/NativeHost.js.map +1 -1
  58. package/lib/cjs/NavigationRelationship.js.map +1 -1
  59. package/lib/cjs/PromiseMemoizer.js.map +1 -1
  60. package/lib/cjs/PropertyStore.js.map +1 -1
  61. package/lib/cjs/Relationship.js.map +1 -1
  62. package/lib/cjs/RpcBackend.js.map +1 -1
  63. package/lib/cjs/SQLiteDb.js.map +1 -1
  64. package/lib/cjs/Schema.js.map +1 -1
  65. package/lib/cjs/SchemaSync.js.map +1 -1
  66. package/lib/cjs/SchemaUtils.js.map +1 -1
  67. package/lib/cjs/SheetIndex.js.map +1 -1
  68. package/lib/cjs/SqliteChangesetReader.js.map +1 -1
  69. package/lib/cjs/SqliteStatement.js.map +1 -1
  70. package/lib/cjs/TextAnnotationElement.js.map +1 -1
  71. package/lib/cjs/TextAnnotationGeometry.js.map +1 -1
  72. package/lib/cjs/TextAnnotationLayout.js.map +1 -1
  73. package/lib/cjs/Texture.js.map +1 -1
  74. package/lib/cjs/TileStorage.js.map +1 -1
  75. package/lib/cjs/TxnManager.js.map +1 -1
  76. package/lib/cjs/ViewDefinition.js.map +1 -1
  77. package/lib/cjs/ViewStateHydrator.js.map +1 -1
  78. package/lib/cjs/ViewStore.js.map +1 -1
  79. package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
  80. package/lib/cjs/assets/Settings/Schemas/Base.Schema.json +32 -32
  81. package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +27 -27
  82. package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +94 -94
  83. package/lib/cjs/assets/Settings/backend.setting.json5 +21 -21
  84. package/lib/cjs/core-backend.js.map +1 -1
  85. package/lib/cjs/domains/FunctionalElements.js.map +1 -1
  86. package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
  87. package/lib/cjs/domains/GenericElements.js.map +1 -1
  88. package/lib/cjs/domains/GenericSchema.js.map +1 -1
  89. package/lib/cjs/internal/ChangesetConflictArgs.js.map +1 -1
  90. package/lib/cjs/internal/ChannelAdmin.js.map +1 -1
  91. package/lib/cjs/internal/NativePlatform.js.map +1 -1
  92. package/lib/cjs/internal/NoLocks.js.map +1 -1
  93. package/lib/cjs/internal/ServerBasedLocks.js.map +1 -1
  94. package/lib/cjs/internal/Symbols.js.map +1 -1
  95. package/lib/cjs/internal/cross-package.js.map +1 -1
  96. package/lib/cjs/internal/workspace/SettingsImpl.js.map +1 -1
  97. package/lib/cjs/internal/workspace/SettingsSchemasImpl.js.map +1 -1
  98. package/lib/cjs/internal/workspace/WorkspaceImpl.js.map +1 -1
  99. package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
  100. package/lib/cjs/rpc/multipart.js.map +1 -1
  101. package/lib/cjs/rpc/tracing.js.map +1 -1
  102. package/lib/cjs/rpc/web/logging.js.map +1 -1
  103. package/lib/cjs/rpc/web/request.js.map +1 -1
  104. package/lib/cjs/rpc/web/response.js.map +1 -1
  105. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
  106. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
  107. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
  108. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
  109. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
  110. package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
  111. package/lib/cjs/workspace/Settings.js.map +1 -1
  112. package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
  113. package/lib/cjs/workspace/Workspace.js.map +1 -1
  114. package/lib/cjs/workspace/WorkspaceEditor.js.map +1 -1
  115. package/package.json +12 -12
@@ -1,90 +1,90 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <ECSchema schemaName="IModelChange" alias="imodelchange" version="2.0.0" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
3
- <ECSchemaReference name="ECDbChange" version="01.00.01" alias="change"/>
4
- <ECSchemaReference name="CoreCustomAttributes" version="01.00.01" alias="CoreCA"/>
5
-
6
- <ECEntityClass typeName="ChangeSet" modifier="Sealed">
7
- <ECCustomAttributes>
8
- <DbIndexList xmlns="ECDbMap.02.00.00">
9
- <Indexes>
10
- <DbIndex>
11
- <Name>ix_imodelchange_ChangeSet_ParentWsgId</Name>
12
- <Properties>
13
- <string>ParentWsgId</string>
14
- </Properties>
15
- </DbIndex>
16
- <DbIndex>
17
- <Name>uix_imodelchange_ChangeSet_WsgId</Name>
18
- <IsUnique>True</IsUnique>
19
- <Properties>
20
- <string>WsgId</string>
21
- </Properties>
22
- </DbIndex>
23
- <DbIndex>
24
- <Name>ix_imodelchange_ChangeSet_PushDate</Name>
25
- <Properties>
26
- <string>PushDate</string>
27
- </Properties>
28
- </DbIndex>
29
- <DbIndex>
30
- <Name>ix_imodelchange_ChangeSet_UserCreated</Name>
31
- <Properties>
32
- <string>UserCreated</string>
33
- </Properties>
34
- </DbIndex>
35
- </Indexes>
36
- </DbIndexList>
37
- </ECCustomAttributes>
38
- <ECNavigationProperty propertyName="Summary" relationshipName="ChangeSummaryIsExtractedFromChangeset" direction="backward">
39
- <ECCustomAttributes>
40
- <ForeignKeyConstraint xmlns="ECDbMap.02.00.00">
41
- <OnDeleteAction>Cascade</OnDeleteAction>
42
- </ForeignKeyConstraint>
43
- </ECCustomAttributes>
44
- </ECNavigationProperty>
45
- <ECProperty propertyName="ParentWsgId" typeName="string">
46
- <ECCustomAttributes>
47
- <PropertyMap xmlns="ECDbMap.02.00.00">
48
- <Collation>NoCase</Collation>
49
- </PropertyMap>
50
- </ECCustomAttributes>
51
- </ECProperty>
52
- <ECProperty propertyName="WsgId" typeName="string">
53
- <ECCustomAttributes>
54
- <PropertyMap xmlns="ECDbMap.02.00.00">
55
- <Collation>NoCase</Collation>
56
- </PropertyMap>
57
- </ECCustomAttributes>
58
- </ECProperty>
59
- <ECProperty propertyName="Description" typeName="string">
60
- <ECCustomAttributes>
61
- <PropertyMap xmlns="ECDbMap.02.00.00">
62
- <Collation>NoCase</Collation>
63
- </PropertyMap>
64
- </ECCustomAttributes>
65
- </ECProperty>
66
- <ECProperty propertyName="PushDate" typeName="dateTime">
67
- <ECCustomAttributes>
68
- <DateTimeInfo xmlns="CoreCustomAttributes.01.00.01">
69
- <DateTimeKind>Utc</DateTimeKind>
70
- </DateTimeInfo>
71
- </ECCustomAttributes>
72
- </ECProperty>
73
- <ECProperty propertyName="UserCreated" typeName="string">
74
- <ECCustomAttributes>
75
- <PropertyMap xmlns="ECDbMap.02.00.00">
76
- <Collation>NoCase</Collation>
77
- </PropertyMap>
78
- </ECCustomAttributes>
79
- </ECProperty>
80
- </ECEntityClass>
81
-
82
- <ECRelationshipClass typeName="ChangeSummaryIsExtractedFromChangeset" modifier="Sealed" strength="embedding">
83
- <Source multiplicity="(1..1)" roleLabel="is created from" polymorphic="false">
84
- <Class class="change:ChangeSummary"/>
85
- </Source>
86
- <Target multiplicity="(0..1)" roleLabel="is source of" polymorphic="false">
87
- <Class class="ChangeSet"/>
88
- </Target>
89
- </ECRelationshipClass>
90
- </ECSchema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ECSchema schemaName="IModelChange" alias="imodelchange" version="2.0.0" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
3
+ <ECSchemaReference name="ECDbChange" version="01.00.01" alias="change"/>
4
+ <ECSchemaReference name="CoreCustomAttributes" version="01.00.01" alias="CoreCA"/>
5
+
6
+ <ECEntityClass typeName="ChangeSet" modifier="Sealed">
7
+ <ECCustomAttributes>
8
+ <DbIndexList xmlns="ECDbMap.02.00.00">
9
+ <Indexes>
10
+ <DbIndex>
11
+ <Name>ix_imodelchange_ChangeSet_ParentWsgId</Name>
12
+ <Properties>
13
+ <string>ParentWsgId</string>
14
+ </Properties>
15
+ </DbIndex>
16
+ <DbIndex>
17
+ <Name>uix_imodelchange_ChangeSet_WsgId</Name>
18
+ <IsUnique>True</IsUnique>
19
+ <Properties>
20
+ <string>WsgId</string>
21
+ </Properties>
22
+ </DbIndex>
23
+ <DbIndex>
24
+ <Name>ix_imodelchange_ChangeSet_PushDate</Name>
25
+ <Properties>
26
+ <string>PushDate</string>
27
+ </Properties>
28
+ </DbIndex>
29
+ <DbIndex>
30
+ <Name>ix_imodelchange_ChangeSet_UserCreated</Name>
31
+ <Properties>
32
+ <string>UserCreated</string>
33
+ </Properties>
34
+ </DbIndex>
35
+ </Indexes>
36
+ </DbIndexList>
37
+ </ECCustomAttributes>
38
+ <ECNavigationProperty propertyName="Summary" relationshipName="ChangeSummaryIsExtractedFromChangeset" direction="backward">
39
+ <ECCustomAttributes>
40
+ <ForeignKeyConstraint xmlns="ECDbMap.02.00.00">
41
+ <OnDeleteAction>Cascade</OnDeleteAction>
42
+ </ForeignKeyConstraint>
43
+ </ECCustomAttributes>
44
+ </ECNavigationProperty>
45
+ <ECProperty propertyName="ParentWsgId" typeName="string">
46
+ <ECCustomAttributes>
47
+ <PropertyMap xmlns="ECDbMap.02.00.00">
48
+ <Collation>NoCase</Collation>
49
+ </PropertyMap>
50
+ </ECCustomAttributes>
51
+ </ECProperty>
52
+ <ECProperty propertyName="WsgId" typeName="string">
53
+ <ECCustomAttributes>
54
+ <PropertyMap xmlns="ECDbMap.02.00.00">
55
+ <Collation>NoCase</Collation>
56
+ </PropertyMap>
57
+ </ECCustomAttributes>
58
+ </ECProperty>
59
+ <ECProperty propertyName="Description" typeName="string">
60
+ <ECCustomAttributes>
61
+ <PropertyMap xmlns="ECDbMap.02.00.00">
62
+ <Collation>NoCase</Collation>
63
+ </PropertyMap>
64
+ </ECCustomAttributes>
65
+ </ECProperty>
66
+ <ECProperty propertyName="PushDate" typeName="dateTime">
67
+ <ECCustomAttributes>
68
+ <DateTimeInfo xmlns="CoreCustomAttributes.01.00.01">
69
+ <DateTimeKind>Utc</DateTimeKind>
70
+ </DateTimeInfo>
71
+ </ECCustomAttributes>
72
+ </ECProperty>
73
+ <ECProperty propertyName="UserCreated" typeName="string">
74
+ <ECCustomAttributes>
75
+ <PropertyMap xmlns="ECDbMap.02.00.00">
76
+ <Collation>NoCase</Collation>
77
+ </PropertyMap>
78
+ </ECCustomAttributes>
79
+ </ECProperty>
80
+ </ECEntityClass>
81
+
82
+ <ECRelationshipClass typeName="ChangeSummaryIsExtractedFromChangeset" modifier="Sealed" strength="embedding">
83
+ <Source multiplicity="(1..1)" roleLabel="is created from" polymorphic="false">
84
+ <Class class="change:ChangeSummary"/>
85
+ </Source>
86
+ <Target multiplicity="(0..1)" roleLabel="is source of" polymorphic="false">
87
+ <Class class="ChangeSet"/>
88
+ </Target>
89
+ </ECRelationshipClass>
90
+ </ECSchema>
@@ -1,33 +1,33 @@
1
- {
2
- "$comment": "This schema describes the meta-structure of an iTwin Settings Schema file. It is used to provide a guide for the schema files themselves.",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "additionalProperties": false,
5
- "required": [
6
- "schemaPrefix",
7
- "description"
8
- ],
9
- "schemaPrefix": "itwin/core/base",
10
- "description": "meta-schema for all iTwin settings schemas",
11
- "properties": {
12
- "settingDefs": {
13
- "type": "object",
14
- "description": "A group of setting definitions."
15
- },
16
- "typeDefs": {
17
- "type": "object",
18
- "description": "A group of type definitions that can be extended in setting definitions."
19
- },
20
- "schemaPrefix": {
21
- "type": "string",
22
- "description": "The unique prefix of the schema."
23
- },
24
- "description": {
25
- "type": "string",
26
- "description": "A description of the schema."
27
- },
28
- "order": {
29
- "type": "integer",
30
- "description": "An integer value used to sort the schema in a user interface list of multiple schemas, where schemas of lower order are sorted before those with higher order."
31
- }
32
- }
1
+ {
2
+ "$comment": "This schema describes the meta-structure of an iTwin Settings Schema file. It is used to provide a guide for the schema files themselves.",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaPrefix",
7
+ "description"
8
+ ],
9
+ "schemaPrefix": "itwin/core/base",
10
+ "description": "meta-schema for all iTwin settings schemas",
11
+ "properties": {
12
+ "settingDefs": {
13
+ "type": "object",
14
+ "description": "A group of setting definitions."
15
+ },
16
+ "typeDefs": {
17
+ "type": "object",
18
+ "description": "A group of type definitions that can be extended in setting definitions."
19
+ },
20
+ "schemaPrefix": {
21
+ "type": "string",
22
+ "description": "The unique prefix of the schema."
23
+ },
24
+ "description": {
25
+ "type": "string",
26
+ "description": "A description of the schema."
27
+ },
28
+ "order": {
29
+ "type": "integer",
30
+ "description": "An integer value used to sort the schema in a user interface list of multiple schemas, where schemas of lower order are sorted before those with higher order."
31
+ }
32
+ }
33
33
  }
@@ -1,28 +1,28 @@
1
- {
2
- "$schema": "./Base.Schema.json",
3
- "description": "settings for geocoordinate services",
4
- "schemaPrefix": "itwin/core/gcs",
5
- "settingDefs": {
6
- "default/databases": {
7
- "type": "array",
8
- "description": "array of GCS WorkspaceDbs",
9
- "items": {
10
- "type": "object",
11
- "extends": "itwin/core/workspace/workspaceDb",
12
- "description": "Properties of a WorkspaceDb holding GCS data.",
13
- "properties": {
14
- "priority": {
15
- "type": "number",
16
- "description": "Priority value for GCS database, higher values are searched first",
17
- "default": 500
18
- }
19
- }
20
- }
21
- },
22
- "disableWorkspaces": {
23
- "type": "boolean",
24
- "description": "If true, do not load any GCS workspaces",
25
- "default": false
26
- }
27
- }
1
+ {
2
+ "$schema": "./Base.Schema.json",
3
+ "description": "settings for geocoordinate services",
4
+ "schemaPrefix": "itwin/core/gcs",
5
+ "settingDefs": {
6
+ "default/databases": {
7
+ "type": "array",
8
+ "description": "array of GCS WorkspaceDbs",
9
+ "items": {
10
+ "type": "object",
11
+ "extends": "itwin/core/workspace/workspaceDb",
12
+ "description": "Properties of a WorkspaceDb holding GCS data.",
13
+ "properties": {
14
+ "priority": {
15
+ "type": "number",
16
+ "description": "Priority value for GCS database, higher values are searched first",
17
+ "default": 500
18
+ }
19
+ }
20
+ }
21
+ },
22
+ "disableWorkspaces": {
23
+ "type": "boolean",
24
+ "description": "If true, do not load any GCS workspaces",
25
+ "default": false
26
+ }
27
+ }
28
28
  }
@@ -1,95 +1,95 @@
1
- {
2
- "$schema": "./Base.Schema.json",
3
- "description": "settings for workspaces",
4
- "schemaPrefix": "itwin/core/workspace",
5
- "settingDefs": {
6
- "settingsWorkspaces": {
7
- "description": "An array of resourceName, WorkspaceDb properties, each of which holds a Settings.Dictionary. Each entry also holds the settings priority for loading the dictionary.",
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "extends": "itwin/core/workspace/workspaceDb",
12
- "properties": {
13
- "resourceName": {
14
- "type": "string",
15
- "description": "the name of the string resource holding the settings dictionary in this WorkspaceDb",
16
- "default": "settingsDictionary"
17
- },
18
- "priority": {
19
- "type": "number",
20
- "description": "the SettingsPriority for the settingsDictionary",
21
- "default": 500
22
- }
23
- }
24
- }
25
- }
26
- },
27
- "typeDefs": {
28
- "workspaceDb": {
29
- "type": "object",
30
- "description": "WorkspaceDb properties",
31
- "required": [
32
- "containerId",
33
- "baseUri"
34
- ],
35
- "properties": {
36
- "dbName": {
37
- "type": "string",
38
- "description": "the name of the database within its cloud container. If not present, defaults to 'workspace-db'."
39
- },
40
- "baseUri": {
41
- "type": "string",
42
- "description": "the baseUri for the container, without trailing slash (e.g., https://containers.itwinjs.org)"
43
- },
44
- "containerId": {
45
- "type": "string",
46
- "description": "the containerId of this cloud container. Usually a Guid"
47
- },
48
- "storageType": {
49
- "type": "string",
50
- "description": "one of: 'azure', 'aws', 'google'",
51
- "default": "azure"
52
- },
53
- "description": {
54
- "type": "string",
55
- "description": "information about what is in this workspace"
56
- },
57
- "loadingHelp": {
58
- "type": "string",
59
- "description": "in case there is a problem loading this workspace, show this message"
60
- },
61
- "isPublic": {
62
- "type": "boolean",
63
- "description": "whether the cloud container is public (doesn't require authentication)",
64
- "default": false
65
- },
66
- "version": {
67
- "type": "string",
68
- "description": "the (semver) range of acceptable versions",
69
- "default": "^1"
70
- },
71
- "includePrerelease": {
72
- "type": "boolean",
73
- "description": "include prerelease in acceptable versions"
74
- },
75
- "prefetch": {
76
- "type": "boolean",
77
- "description": "if true, pre-fetch all of the data from the cloud in the background"
78
- },
79
- "syncOnConnect": {
80
- "type": "boolean",
81
- "description": "if false, do not attempt to synchronize with cloud when workspace is loaded",
82
- "hidden": true
83
- }
84
- }
85
- },
86
- "workspaceDbList": {
87
- "type": "array",
88
- "combineArray": true,
89
- "items": {
90
- "type": "object",
91
- "extends": "itwin/core/workspace/workspaceDb"
92
- }
93
- }
94
- }
1
+ {
2
+ "$schema": "./Base.Schema.json",
3
+ "description": "settings for workspaces",
4
+ "schemaPrefix": "itwin/core/workspace",
5
+ "settingDefs": {
6
+ "settingsWorkspaces": {
7
+ "description": "An array of resourceName, WorkspaceDb properties, each of which holds a Settings.Dictionary. Each entry also holds the settings priority for loading the dictionary.",
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "extends": "itwin/core/workspace/workspaceDb",
12
+ "properties": {
13
+ "resourceName": {
14
+ "type": "string",
15
+ "description": "the name of the string resource holding the settings dictionary in this WorkspaceDb",
16
+ "default": "settingsDictionary"
17
+ },
18
+ "priority": {
19
+ "type": "number",
20
+ "description": "the SettingsPriority for the settingsDictionary",
21
+ "default": 500
22
+ }
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "typeDefs": {
28
+ "workspaceDb": {
29
+ "type": "object",
30
+ "description": "WorkspaceDb properties",
31
+ "required": [
32
+ "containerId",
33
+ "baseUri"
34
+ ],
35
+ "properties": {
36
+ "dbName": {
37
+ "type": "string",
38
+ "description": "the name of the database within its cloud container. If not present, defaults to 'workspace-db'."
39
+ },
40
+ "baseUri": {
41
+ "type": "string",
42
+ "description": "the baseUri for the container, without trailing slash (e.g., https://containers.itwinjs.org)"
43
+ },
44
+ "containerId": {
45
+ "type": "string",
46
+ "description": "the containerId of this cloud container. Usually a Guid"
47
+ },
48
+ "storageType": {
49
+ "type": "string",
50
+ "description": "one of: 'azure', 'aws', 'google'",
51
+ "default": "azure"
52
+ },
53
+ "description": {
54
+ "type": "string",
55
+ "description": "information about what is in this workspace"
56
+ },
57
+ "loadingHelp": {
58
+ "type": "string",
59
+ "description": "in case there is a problem loading this workspace, show this message"
60
+ },
61
+ "isPublic": {
62
+ "type": "boolean",
63
+ "description": "whether the cloud container is public (doesn't require authentication)",
64
+ "default": false
65
+ },
66
+ "version": {
67
+ "type": "string",
68
+ "description": "the (semver) range of acceptable versions",
69
+ "default": "^1"
70
+ },
71
+ "includePrerelease": {
72
+ "type": "boolean",
73
+ "description": "include prerelease in acceptable versions"
74
+ },
75
+ "prefetch": {
76
+ "type": "boolean",
77
+ "description": "if true, pre-fetch all of the data from the cloud in the background"
78
+ },
79
+ "syncOnConnect": {
80
+ "type": "boolean",
81
+ "description": "if false, do not attempt to synchronize with cloud when workspace is loaded",
82
+ "hidden": true
83
+ }
84
+ }
85
+ },
86
+ "workspaceDbList": {
87
+ "type": "array",
88
+ "combineArray": true,
89
+ "items": {
90
+ "type": "object",
91
+ "extends": "itwin/core/workspace/workspaceDb"
92
+ }
93
+ }
94
+ }
95
95
  }
@@ -1,22 +1,22 @@
1
- {
2
- "itwin/core/gcs/default/databases": [
3
- {
4
- "name": "itwin/core/gcs/base",
5
- "dbName": "base",
6
- "version": "^1",
7
- "baseUri": "https://geocoord-workspace.itwinjs.org",
8
- "containerId": "gcs",
9
- "isPublic": true,
10
- "priority": 10000,
11
- "prefetch": true
12
- },
13
- {
14
- "name": "itwin/core/gcs/entire-earth",
15
- "dbName": "allEarth",
16
- "version": "^1",
17
- "baseUri": "https://geocoord-workspace.itwinjs.org",
18
- "containerId": "gcs",
19
- "priority": 100
20
- }
21
- ]
1
+ {
2
+ "itwin/core/gcs/default/databases": [
3
+ {
4
+ "name": "itwin/core/gcs/base",
5
+ "dbName": "base",
6
+ "version": "^1",
7
+ "baseUri": "https://geocoord-workspace.itwinjs.org",
8
+ "containerId": "gcs",
9
+ "isPublic": true,
10
+ "priority": 10000,
11
+ "prefetch": true
12
+ },
13
+ {
14
+ "name": "itwin/core/gcs/entire-earth",
15
+ "dbName": "allEarth",
16
+ "version": "^1",
17
+ "baseUri": "https://geocoord-workspace.itwinjs.org",
18
+ "containerId": "gcs",
19
+ "priority": 100
20
+ }
21
+ ]
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"core-backend.js","sourceRoot":"","sources":["../../src/core-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;AAE/F,qDAAmC;AACnC,0DAAwC;AACxC,kDAAgC;AAChC,yDAAuC;AACvC,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,gDA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GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;GAGG","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\nexport * from \"./BackendHubAccess\";\r\nexport * from \"./BackendLoggerCategory\";\r\nexport * from \"./BisCoreSchema\";\r\nexport * from \"./BlobContainerService\";\r\nexport * from \"./BriefcaseManager\";\r\nexport * from \"./Category\";\r\nexport * from \"./ChangedElementsDb\";\r\nexport * from \"./ChangeSummaryManager\";\r\nexport * from \"./ChannelControl\";\r\nexport * from \"./CheckpointManager\";\r\nexport * from \"./ClassRegistry\";\r\nexport * from \"./CloudSqlite\";\r\nexport * from \"./CodeService\";\r\nexport * from \"./CodeSpecs\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyle\";\r\nexport * from \"./domains/FunctionalElements\";\r\nexport * from \"./domains/FunctionalSchema\";\r\nexport * from \"./domains/GenericElements\";\r\nexport * from \"./domains/GenericSchema\";\r\nexport * from \"./ECDb\";\r\nexport * from \"./ECSchemaXmlContext\";\r\nexport * from \"./ECSqlStatement\";\r\nexport * from \"./Element\";\r\nexport * from \"./ElementAspect\";\r\nexport * from \"./ElementGraphics\";\r\nexport * from \"./ElementTreeWalker\";\r\nexport * from \"./Entity\";\r\nexport * from \"./EntityReferences\";\r\nexport * from \"./ExportGraphics\";\r\nexport * from \"./ExternalSource\";\r\nexport * from \"./GeoCoordConfig\";\r\nexport * from \"./GeographicCRSServices\";\r\nexport * from \"./HubMock\";\r\nexport * from \"./IModelCloneContext\";\r\nexport * from \"./IModelDb\";\r\nexport * from \"./IModelElementCloneContext\";\r\nexport * from \"./IModelHost\";\r\nexport * from \"./IModelJsFs\";\r\nexport * from \"./SchemaSync\";\r\nexport * from \"./IpcHost\";\r\nexport * from \"./LineStyle\";\r\nexport * from \"./LocalhostIpcHost\";\r\nexport * from \"./LocalHub\";\r\nexport * from \"./LockControl\";\r\nexport * from \"./Material\";\r\nexport * from \"./Model\";\r\nexport * from \"./NativeAppStorage\";\r\nexport * from \"./NativeHost\";\r\nexport * from \"./NavigationRelationship\";\r\nexport * from \"./PropertyStore\";\r\nexport * from \"./Relationship\";\r\nexport * from \"./rpc/tracing\";\r\nexport * from \"./Schema\";\r\nexport * from \"./SchemaUtils\";\r\nexport * from \"./SheetIndex\";\r\nexport * from \"./SQLiteDb\";\r\nexport * from \"./SqliteStatement\";\r\nexport * from \"./TextAnnotationElement\";\r\nexport {\r\n computeGraphemeOffsets,\r\n computeLayoutTextBlockResult,\r\n ComputeGraphemeOffsetsArgs,\r\n LayoutTextBlockArgs,\r\n} from \"./TextAnnotationLayout\";\r\nexport * from \"./TextAnnotationGeometry\";\r\nexport * from \"./Texture\";\r\nexport * from \"./TileStorage\";\r\nexport * from \"./TxnManager\";\r\nexport * from \"./ViewDefinition\";\r\nexport * from \"./ViewStore\";\r\nexport * from \"./workspace/Settings\";\r\nexport * from \"./workspace/SettingsSchemas\";\r\nexport * from \"./workspace/Workspace\";\r\nexport * from \"./workspace/WorkspaceEditor\";\r\nexport * from \"./SqliteChangesetReader\";\r\nexport * from \"./ChangesetECAdaptor\";\r\n\r\nexport * from \"./internal/cross-package\";\r\n\r\n/** @docs-package-description\r\n * The core-backend package always runs on the computer with a local Briefcase.\r\n *\r\n * It contains classes that [backend code]($docs/learning/backend/index.md) can use to work with directly with iModels.\r\n */\r\n\r\n/**\r\n * @docs-group-description BlobContainers\r\n * Classes for working with cloud-based blob containers.\r\n */\r\n\r\n/**\r\n * @docs-group-description Codes\r\n * Classes for working with [Codes]($docs/BIS/guide/fundamentals/codes.md).\r\n * See [the learning articles]($docs/learning/backend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description ECDb\r\n * Classes for working with ECDb.\r\n */\r\n\r\n/**\r\n * @docs-group-description ECSQL\r\n * Classes for working with [ECSQL]($docs/learning/ECSQL.md)\r\n */\r\n\r\n/**\r\n * @docs-group-description ElementAspects\r\n * Subclasses of [ElementAspects]($docs/bis/guide/fundamentals/elementaspect-fundamentals.md).\r\n * See [the learning articles]($docs/learning/backend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description ElementGeometry\r\n * Classes for defining the symbology and geometry of geometric elements\r\n */\r\n\r\n/**\r\n * @docs-group-description Elements\r\n * Subclasses of [Elements]($docs/BIS/guide/fundamentals/element-fundamentals.md).\r\n * See [the learning articles]($docs/learning/backend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description ExportGraphics\r\n * APIs for producing low-level graphics primitives from element geometry.\r\n */\r\n\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelHost\r\n * Classes for configuring and administering the backend [host]($docs/learning/backend/IModelHost.md).\r\n * See [the learning article]($docs/learning/backend/IModelHost.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description iModels\r\n * Classes for working with [iModels]($docs/learning/iModels.md).\r\n * See [the learning article]($docs/learning/backend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package.\r\n */\r\n\r\n/**\r\n * @docs-group-description Models\r\n * Subclasses of [Models]($docs/BIS/guide/fundamentals/model-fundamentals.md).\r\n * See [the learning articles]($docs/learning/backend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Mobile/Desktop Application.\r\n */\r\n\r\n/**\r\n * @docs-group-description Portability\r\n */\r\n\r\n/**\r\n * @docs-group-description Relationships\r\n * Classes that describe the [relationships]($docs/bis/guide/fundamentals/relationship-fundamentals.md) between elements.\r\n */\r\n\r\n/**\r\n * @docs-group-description RpcInterface\r\n * Classes for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description Schema\r\n * Classes for working with [ECSchemas]($docs/learning/backend/SchemasAndElementsInTypeScript.md)\r\n */\r\n\r\n/**\r\n * @docs-group-description SQLite\r\n * Classes for working directly with SQLite\r\n */\r\n\r\n/**\r\n * @docs-group-description SQLiteDb\r\n * Classes for working with SQLiteDb.\r\n */\r\n\r\n/**\r\n * @docs-group-description TileStorage\r\n * Class for working with cloud storage using iTwin/object-storage cloud providers\r\n */\r\n\r\n/**\r\n * @docs-group-description ViewDefinitions\r\n * Classes for working with Elements that define what appears in [Views]($docs/learning/frontend/views.md).\r\n * See [the learning articles]($docs/learning/backend/createelements/#orthographicviewdefinition).\r\n */\r\n\r\n/**\r\n * @docs-group-description Workspace\r\n * APIs for loading and using Settings and Workspace resources\r\n */\r\n"]}
1
+ {"version":3,"file":"core-backend.js","sourceRoot":"","sources":["../../src/core-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;AAE/F,qDAAmC;AACnC,0DAAwC;AACxC,kDAAgC;AAChC,yDAAuC;AACvC,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,8CAA4B;AAC5B,6CAA2B;AAC3B,iDAA+B;AAC/B,+DAA6C;AAC7C,6DAA2C;AAC3C,4DAA0C;AAC1C,0DAAwC;AACxC,yCAAuB;AACvB,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,sDAAoC;AACpC,2CAAyB;AACzB,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,0DAAwC;AACxC,4CAA0B;AAC1B,uDAAqC;AACrC,6CAA2B;AAC3B,8DAA4C;AAC5C,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,0CAAwB;AACxB,qDAAmC;AACnC,+CAA6B;AAC7B,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,oDAAkC;AAClC,0DAAwC;AACxC,+DAKgC;AAJ9B,8HAAA,sBAAsB,OAAA;AACtB,oIAAA,4BAA4B,OAAA;AAI9B,2DAAyC;AACzC,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,mDAAiC;AACjC,8CAA4B;AAC5B,uDAAqC;AACrC,8DAA4C;AAC5C,wDAAsC;AACtC,8DAA4C;AAC5C,0DAAwC;AACxC,uDAAqC;AAErC,2DAAyC;AAEzC;;;;GAIG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;IAGI;AAEJ;;;GAGG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;GAGG;AAEH;;GAEG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./BackendHubAccess\";\nexport * from \"./BackendLoggerCategory\";\nexport * from \"./BisCoreSchema\";\nexport * from \"./BlobContainerService\";\nexport * from \"./BriefcaseManager\";\nexport * from \"./Category\";\nexport * from \"./ChangedElementsDb\";\nexport * from \"./ChangeSummaryManager\";\nexport * from \"./ChannelControl\";\nexport * from \"./CheckpointManager\";\nexport * from \"./ClassRegistry\";\nexport * from \"./CloudSqlite\";\nexport * from \"./CodeService\";\nexport * from \"./CodeSpecs\";\nexport * from \"./DevTools\";\nexport * from \"./DisplayStyle\";\nexport * from \"./domains/FunctionalElements\";\nexport * from \"./domains/FunctionalSchema\";\nexport * from \"./domains/GenericElements\";\nexport * from \"./domains/GenericSchema\";\nexport * from \"./ECDb\";\nexport * from \"./ECSchemaXmlContext\";\nexport * from \"./ECSqlStatement\";\nexport * from \"./Element\";\nexport * from \"./ElementAspect\";\nexport * from \"./ElementGraphics\";\nexport * from \"./ElementTreeWalker\";\nexport * from \"./Entity\";\nexport * from \"./EntityReferences\";\nexport * from \"./ExportGraphics\";\nexport * from \"./ExternalSource\";\nexport * from \"./GeoCoordConfig\";\nexport * from \"./GeographicCRSServices\";\nexport * from \"./HubMock\";\nexport * from \"./IModelCloneContext\";\nexport * from \"./IModelDb\";\nexport * from \"./IModelElementCloneContext\";\nexport * from \"./IModelHost\";\nexport * from \"./IModelJsFs\";\nexport * from \"./SchemaSync\";\nexport * from \"./IpcHost\";\nexport * from \"./LineStyle\";\nexport * from \"./LocalhostIpcHost\";\nexport * from \"./LocalHub\";\nexport * from \"./LockControl\";\nexport * from \"./Material\";\nexport * from \"./Model\";\nexport * from \"./NativeAppStorage\";\nexport * from \"./NativeHost\";\nexport * from \"./NavigationRelationship\";\nexport * from \"./PropertyStore\";\nexport * from \"./Relationship\";\nexport * from \"./rpc/tracing\";\nexport * from \"./Schema\";\nexport * from \"./SchemaUtils\";\nexport * from \"./SheetIndex\";\nexport * from \"./SQLiteDb\";\nexport * from \"./SqliteStatement\";\nexport * from \"./TextAnnotationElement\";\nexport {\n computeGraphemeOffsets,\n computeLayoutTextBlockResult,\n ComputeGraphemeOffsetsArgs,\n LayoutTextBlockArgs,\n} from \"./TextAnnotationLayout\";\nexport * from \"./TextAnnotationGeometry\";\nexport * from \"./Texture\";\nexport * from \"./TileStorage\";\nexport * from \"./TxnManager\";\nexport * from \"./ViewDefinition\";\nexport * from \"./ViewStore\";\nexport * from \"./workspace/Settings\";\nexport * from \"./workspace/SettingsSchemas\";\nexport * from \"./workspace/Workspace\";\nexport * from \"./workspace/WorkspaceEditor\";\nexport * from \"./SqliteChangesetReader\";\nexport * from \"./ChangesetECAdaptor\";\n\nexport * from \"./internal/cross-package\";\n\n/** @docs-package-description\n * The core-backend package always runs on the computer with a local Briefcase.\n *\n * It contains classes that [backend code]($docs/learning/backend/index.md) can use to work with directly with iModels.\n */\n\n/**\n * @docs-group-description BlobContainers\n * Classes for working with cloud-based blob containers.\n */\n\n/**\n * @docs-group-description Codes\n * Classes for working with [Codes]($docs/BIS/guide/fundamentals/codes.md).\n * See [the learning articles]($docs/learning/backend/index.md).\n */\n\n/**\n * @docs-group-description ECDb\n * Classes for working with ECDb.\n */\n\n/**\n * @docs-group-description ECSQL\n * Classes for working with [ECSQL]($docs/learning/ECSQL.md)\n */\n\n/**\n * @docs-group-description ElementAspects\n * Subclasses of [ElementAspects]($docs/bis/guide/fundamentals/elementaspect-fundamentals.md).\n * See [the learning articles]($docs/learning/backend/index.md).\n */\n\n/**\n * @docs-group-description ElementGeometry\n * Classes for defining the symbology and geometry of geometric elements\n */\n\n/**\n * @docs-group-description Elements\n * Subclasses of [Elements]($docs/BIS/guide/fundamentals/element-fundamentals.md).\n * See [the learning articles]($docs/learning/backend/index.md).\n */\n\n/**\n * @docs-group-description ExportGraphics\n * APIs for producing low-level graphics primitives from element geometry.\n */\n\n/**\n * @docs-group-description HubAccess\n * APIs for working with IModelHub\n */\n\n/**\n * @docs-group-description IModelHost\n * Classes for configuring and administering the backend [host]($docs/learning/backend/IModelHost.md).\n * See [the learning article]($docs/learning/backend/IModelHost.md).\n */\n\n/**\n * @docs-group-description iModels\n * Classes for working with [iModels]($docs/learning/iModels.md).\n * See [the learning article]($docs/learning/backend/index.md).\n */\n\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n\n/**\n * @docs-group-description Models\n * Subclasses of [Models]($docs/BIS/guide/fundamentals/model-fundamentals.md).\n * See [the learning articles]($docs/learning/backend/index.md).\n */\n\n/**\n * @docs-group-description NativeApp\n * Classes for working with Mobile/Desktop Application.\n */\n\n/**\n * @docs-group-description Portability\n */\n\n/**\n * @docs-group-description Relationships\n * Classes that describe the [relationships]($docs/bis/guide/fundamentals/relationship-fundamentals.md) between elements.\n */\n\n/**\n * @docs-group-description RpcInterface\n * Classes for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\n */\n\n/**\n * @docs-group-description Schema\n * Classes for working with [ECSchemas]($docs/learning/backend/SchemasAndElementsInTypeScript.md)\n */\n\n/**\n * @docs-group-description SQLite\n * Classes for working directly with SQLite\n */\n\n/**\n * @docs-group-description SQLiteDb\n * Classes for working with SQLiteDb.\n */\n\n/**\n * @docs-group-description TileStorage\n * Class for working with cloud storage using iTwin/object-storage cloud providers\n */\n\n/**\n * @docs-group-description ViewDefinitions\n * Classes for working with Elements that define what appears in [Views]($docs/learning/frontend/views.md).\n * See [the learning articles]($docs/learning/backend/createelements/#orthographicviewdefinition).\n */\n\n/**\n * @docs-group-description Workspace\n * APIs for loading and using Settings and Workspace resources\n */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionalElements.js","sourceRoot":"","sources":["../../../src/domains/FunctionalElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,oDAE4B;AAC5B,wCAA6F;AAE7F,oCAAqC;AACrC,sEAAyE;AACzE,kDAA2F;AAE3F;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,qCAA2B;IAC3D,MAAM,KAAc,SAAS,KAAa,OAAO,qBAAqB,CAAC,CAAC,CAAC;IAEhF,YAAsB,KAAuC,EAAE,MAAgB;QAC7E,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,kDAMC;AAED;;GAEG;AACH,MAAa,eAAgB,SAAQ,iBAAS;IACrC,MAAM,KAAc,SAAS,KAAa,OAAO,iBAAiB,CAAC,CAAC,CAAC;IAE5E,Y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EhF,YAAsB,KAA6B,EAAE,MAAgB;QACnE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,kDAMC;AAED;;GAEG;AACH,MAAsB,0BAA2B,SAAQ,iBAAiB;IACjE,MAAM,KAAc,SAAS,KAAa,OAAO,4BAA4B,CAAC,CAAC,CAAC;IAEvF,YAAsB,KAA6B,EAAE,MAAgB;QACnE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,gEAMC;AAED;;GAEG;AACH,MAAsB,cAAe,SAAQ,+BAAqB;IACzD,MAAM,KAAc,SAAS,KAAa,OAAO,gBAAgB,CAAC,CAAC,CAAC;IAE3E,YAAsB,KAAiC,EAAE,MAAgB;QACvE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,wCAMC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,4BAAc;IACpD,MAAM,KAAK,SAAS,KAAa,OAAO,2BAA2B,CAAC,CAAC,CAAC;IAE7E,YAAmB,EAAc,EAAE,eAAuB,yBAAyB,CAAC,aAAa;QAC/F,KAAK,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC;IAC9B,CAAC;;AALH,8DAMC;AAJe,uCAAa,GAAG,sCAAsC,CAAC;AAMvE;;GAEG;AACH,MAAa,+BAAgC,SAAQ,sCAAuB;IACnE,MAAM,KAAc,SAAS,KAAa,OAAO,iCAAiC,CAAC,CAAC,CAAC;CAC7F;AAFD,0EAEC;AAED;;GAEG;AACH,MAAa,yCAA0C,SAAQ,8CAA+B;IACrF,MAAM,KAAc,SAAS,KAAa,OAAO,2CAA2C,CAAC,CAAC,CAAC;CACvG;AAFD,8FAEC","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 Elements\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport {\r\n FunctionalElementProps, IModel, InformationPartitionElementProps, ModelProps, RelatedElement, TypeDefinitionElementProps,\r\n} from \"@itwin/core-common\";\r\nimport { InformationPartitionElement, RoleElement, TypeDefinitionElement } from \"../Element\";\r\nimport { IModelDb } from \"../IModelDb\";\r\nimport { RoleModel } from \"../Model\";\r\nimport { SubjectOwnsPartitionElements } from \"../NavigationRelationship\";\r\nimport { DrawingGraphicRepresentsElement, ElementRefersToElements } from \"../Relationship\";\r\n\r\n/** A FunctionalPartition element is a key part of the iModel information hierarchy and is always parented\r\n * to a Subject and broken down by a FunctionalModel.\r\n * @public\r\n */\r\nexport class FunctionalPartition extends InformationPartitionElement {\r\n public static override get className(): string { return \"FunctionalPartition\"; }\r\n\r\n protected constructor(props: InformationPartitionElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** A container for persisting FunctionalElements.\r\n * @public\r\n */\r\nexport class FunctionalModel extends RoleModel {\r\n public static override get className(): string { return \"FunctionalModel\"; }\r\n\r\n public constructor(props: ModelProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n\r\n /** Insert a FunctionalPartition and a FunctionalModel that breaks it down.\r\n * @param iModelDb Insert into this iModel\r\n * @param parentSubjectId The FunctionalPartition will be inserted as a child of this Subject element.\r\n * @param name The name of the FunctionalPartition that the new FunctionalModel will break down.\r\n * @returns The Id of the newly inserted FunctionalPartition and FunctionalModel (same value).\r\n * @throws [[IModelError]] if there is an insert problem.\r\n */\r\n public static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String {\r\n const partitionProps: InformationPartitionElementProps = {\r\n classFullName: FunctionalPartition.classFullName,\r\n model: IModel.repositoryModelId,\r\n parent: new SubjectOwnsPartitionElements(parentSubjectId),\r\n code: FunctionalPartition.createCode(iModelDb, parentSubjectId, name),\r\n };\r\n const partitionId = iModelDb.elements.insertElement(partitionProps);\r\n return iModelDb.models.insertModel({\r\n classFullName: this.classFullName,\r\n modeledElement: { id: partitionId },\r\n });\r\n }\r\n}\r\n\r\n/** A FunctionalElement captures functional requirements that will ultimately be fulfilled by a PhysicalElement.\r\n * @public\r\n */\r\nexport abstract class FunctionalElement extends RoleElement {\r\n public static override get className(): string { return \"FunctionalElement\"; }\r\n\r\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** A FunctionalBreakdownElement is a *folder* node in the functional hierarchy.\r\n * @public\r\n */\r\nexport abstract class FunctionalBreakdownElement extends FunctionalElement {\r\n public static override get className(): string { return \"FunctionalBreakdownElement\"; }\r\n\r\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** @public */\r\nexport class FunctionalComposite extends FunctionalBreakdownElement {\r\n public static override get className(): string { return \"FunctionalComposite\"; }\r\n\r\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** A FunctionalComponentElement is a *leaf* node in the functional hierarchy.\r\n * @public\r\n */\r\nexport abstract class FunctionalComponentElement extends FunctionalElement {\r\n public static override get className(): string { return \"FunctionalComponentElement\"; }\r\n\r\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** Defines a set of properties (the 'type') that can be associated with a Functional Element.\r\n * @public\r\n */\r\nexport abstract class FunctionalType extends TypeDefinitionElement {\r\n public static override get className(): string { return \"FunctionalType\"; }\r\n\r\n protected constructor(props: TypeDefinitionElementProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n}\r\n\r\n/** Relates a [[FunctionalElement]] to its [[FunctionalType]]\r\n * @public\r\n */\r\nexport class FunctionalElementIsOfType extends RelatedElement {\r\n public static get className(): string { return \"FunctionalElementIsOfType\"; }\r\n public static classFullName = \"Functional:FunctionalElementIsOfType\";\r\n public constructor(id: Id64String, relClassName: string = FunctionalElementIsOfType.classFullName) {\r\n super({ id, relClassName });\r\n }\r\n}\r\n\r\n/** Relates a [[PhysicalElement]] to the [[FunctionalElement]] elements that it fulfills.\r\n * @public\r\n */\r\nexport class PhysicalElementFulfillsFunction extends ElementRefersToElements {\r\n public static override get className(): string { return \"PhysicalElementFulfillsFunction\"; }\r\n}\r\n\r\n/** Relates a [[DrawingGraphic]] to the [[FunctionalElement]] that it represents\r\n * @public\r\n */\r\nexport class DrawingGraphicRepresentsFunctionalElement extends DrawingGraphicRepresentsElement {\r\n public static override get className(): string { return \"DrawingGraphicRepresentsFunctionalElement\"; }\r\n}\r\n"]}
1
+ {"version":3,"file":"FunctionalElements.js","sourceRoot":"","sources":["../../../src/domains/FunctionalElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,oDAE4B;AAC5B,wCAA6F;AAE7F,oCAAqC;AACrC,sEAAyE;AACzE,kDAA2F;AAE3F;;;GAGG;AACH,MAAa,mBAAoB,SAAQ,qCAA2B;IAC3D,MAAM,KAAc,SAAS,KAAa,OAAO,qBAAqB,CAAC,CAAC,CAAC;IAEhF,YAAsB,KAAuC,EAAE,MAAgB;QAC7E,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,kDAMC;AAED;;GAEG;AACH,MAAa,eAAgB,SAAQ,iBAAS;IACrC,MAAM,KAAc,SAAS,KAAa,OAAO,iBAAiB,CAAC,CAAC,CAAC;IAE5E,YAAmB,KAAiB,EAAE,MAAgB;QACpD,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,QAAkB,EAAE,eAA2B,EAAE,IAAY;QAChF,MAAM,cAAc,GAAqC;YACvD,aAAa,EAAE,mBAAmB,CAAC,aAAa;YAChD,KAAK,EAAE,oBAAM,CAAC,iBAAi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,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,gEAMC;AAED;;GAEG;AACH,MAAsB,cAAe,SAAQ,+BAAqB;IACzD,MAAM,KAAc,SAAS,KAAa,OAAO,gBAAgB,CAAC,CAAC,CAAC;IAE3E,YAAsB,KAAiC,EAAE,MAAgB;QACvE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACF;AAND,wCAMC;AAED;;GAEG;AACH,MAAa,yBAA0B,SAAQ,4BAAc;IACpD,MAAM,KAAK,SAAS,KAAa,OAAO,2BAA2B,CAAC,CAAC,CAAC;IAE7E,YAAmB,EAAc,EAAE,eAAuB,yBAAyB,CAAC,aAAa;QAC/F,KAAK,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC;IAC9B,CAAC;;AALH,8DAMC;AAJe,uCAAa,GAAG,sCAAsC,CAAC;AAMvE;;GAEG;AACH,MAAa,+BAAgC,SAAQ,sCAAuB;IACnE,MAAM,KAAc,SAAS,KAAa,OAAO,iCAAiC,CAAC,CAAC,CAAC;CAC7F;AAFD,0EAEC;AAED;;GAEG;AACH,MAAa,yCAA0C,SAAQ,8CAA+B;IACrF,MAAM,KAAc,SAAS,KAAa,OAAO,2CAA2C,CAAC,CAAC,CAAC;CACvG;AAFD,8FAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Elements\n */\n\nimport { Id64String } from \"@itwin/core-bentley\";\nimport {\n FunctionalElementProps, IModel, InformationPartitionElementProps, ModelProps, RelatedElement, TypeDefinitionElementProps,\n} from \"@itwin/core-common\";\nimport { InformationPartitionElement, RoleElement, TypeDefinitionElement } from \"../Element\";\nimport { IModelDb } from \"../IModelDb\";\nimport { RoleModel } from \"../Model\";\nimport { SubjectOwnsPartitionElements } from \"../NavigationRelationship\";\nimport { DrawingGraphicRepresentsElement, ElementRefersToElements } from \"../Relationship\";\n\n/** A FunctionalPartition element is a key part of the iModel information hierarchy and is always parented\n * to a Subject and broken down by a FunctionalModel.\n * @public\n */\nexport class FunctionalPartition extends InformationPartitionElement {\n public static override get className(): string { return \"FunctionalPartition\"; }\n\n protected constructor(props: InformationPartitionElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** A container for persisting FunctionalElements.\n * @public\n */\nexport class FunctionalModel extends RoleModel {\n public static override get className(): string { return \"FunctionalModel\"; }\n\n public constructor(props: ModelProps, iModel: IModelDb) {\n super(props, iModel);\n }\n\n /** Insert a FunctionalPartition and a FunctionalModel that breaks it down.\n * @param iModelDb Insert into this iModel\n * @param parentSubjectId The FunctionalPartition will be inserted as a child of this Subject element.\n * @param name The name of the FunctionalPartition that the new FunctionalModel will break down.\n * @returns The Id of the newly inserted FunctionalPartition and FunctionalModel (same value).\n * @throws [[IModelError]] if there is an insert problem.\n */\n public static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string): Id64String {\n const partitionProps: InformationPartitionElementProps = {\n classFullName: FunctionalPartition.classFullName,\n model: IModel.repositoryModelId,\n parent: new SubjectOwnsPartitionElements(parentSubjectId),\n code: FunctionalPartition.createCode(iModelDb, parentSubjectId, name),\n };\n const partitionId = iModelDb.elements.insertElement(partitionProps);\n return iModelDb.models.insertModel({\n classFullName: this.classFullName,\n modeledElement: { id: partitionId },\n });\n }\n}\n\n/** A FunctionalElement captures functional requirements that will ultimately be fulfilled by a PhysicalElement.\n * @public\n */\nexport abstract class FunctionalElement extends RoleElement {\n public static override get className(): string { return \"FunctionalElement\"; }\n\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** A FunctionalBreakdownElement is a *folder* node in the functional hierarchy.\n * @public\n */\nexport abstract class FunctionalBreakdownElement extends FunctionalElement {\n public static override get className(): string { return \"FunctionalBreakdownElement\"; }\n\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** @public */\nexport class FunctionalComposite extends FunctionalBreakdownElement {\n public static override get className(): string { return \"FunctionalComposite\"; }\n\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** A FunctionalComponentElement is a *leaf* node in the functional hierarchy.\n * @public\n */\nexport abstract class FunctionalComponentElement extends FunctionalElement {\n public static override get className(): string { return \"FunctionalComponentElement\"; }\n\n protected constructor(props: FunctionalElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** Defines a set of properties (the 'type') that can be associated with a Functional Element.\n * @public\n */\nexport abstract class FunctionalType extends TypeDefinitionElement {\n public static override get className(): string { return \"FunctionalType\"; }\n\n protected constructor(props: TypeDefinitionElementProps, iModel: IModelDb) {\n super(props, iModel);\n }\n}\n\n/** Relates a [[FunctionalElement]] to its [[FunctionalType]]\n * @public\n */\nexport class FunctionalElementIsOfType extends RelatedElement {\n public static get className(): string { return \"FunctionalElementIsOfType\"; }\n public static classFullName = \"Functional:FunctionalElementIsOfType\";\n public constructor(id: Id64String, relClassName: string = FunctionalElementIsOfType.classFullName) {\n super({ id, relClassName });\n }\n}\n\n/** Relates a [[PhysicalElement]] to the [[FunctionalElement]] elements that it fulfills.\n * @public\n */\nexport class PhysicalElementFulfillsFunction extends ElementRefersToElements {\n public static override get className(): string { return \"PhysicalElementFulfillsFunction\"; }\n}\n\n/** Relates a [[DrawingGraphic]] to the [[FunctionalElement]] that it represents\n * @public\n */\nexport class DrawingGraphicRepresentsFunctionalElement extends DrawingGraphicRepresentsElement {\n public static override get className(): string { return \"DrawingGraphicRepresentsFunctionalElement\"; }\n}\n"]}