Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/new-items-20260513-105250.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: new-items
body: Supports Digital Twin Builder Flow item
time: 2026-05-13T10:52:50.730594+03:00
custom:
Author: v-alexmoraru
AuthorLink: https://github.com/v-alexmoraru
1 change: 1 addition & 0 deletions docs/essentials/resource_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Item types are the primary content resources within Fabric workspaces. Each type
| `.ApacheAirflowJob` | Apache Airflow job definitions |
| `.CosmosDBDatabase` | Cosmos DB databases |
| `.DigitalTwinBuilder` | Digital twin builder resources |
| `.DigitalTwinBuilderFlow` | Digital Twin Builder flows |
| `.GraphQuerySet` | Graph query collections |
| `.UserDataFunction` | User data functions |

Expand Down
5 changes: 3 additions & 2 deletions docs/examples/item_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ fab cd ../ws1.Workspace/lh1.Lakehouse
- `.Lakehouse`: `enableSchemas`
- `.Warehouse`: `enableCaseInsensitive`
- `.KQLDatabase`: `dbtype`, `eventhouseId`, `clusterUri`, `databaseName`
- `.DigitalTwinBuilderFlow`: `digitalTwinBuilderId`
- `.MirroredDatabase`: `mirrorType`, `connectionId`, `defaultSchema`, `database`, `mountedTables`
- `.Report`: `semanticModelId`

Expand Down Expand Up @@ -249,7 +250,7 @@ fab set ws1.Workspace/rep1.Report -q definition.parts[0].payload.datasetReferenc
- `.KQLDatabase`, `.KQLDashboard`, `.KQLQueryset`
- `.Eventhouse`, `.Eventstream`
- `.MirroredDatabase`, `.Reflex`
- `.DigitalTwinBuilder`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`


#### Copy Item to Workspace
Expand Down Expand Up @@ -324,7 +325,7 @@ fab export ws1.Workspace/nb1.Notebook -o /tmp
- `.Report`, `.SemanticModel`
- `.KQLDatabase`, `.KQLDashboard`, `.KQLQueryset`
- `.Eventhouse`, `.Eventstream`, `.MirroredDatabase`
- `.Reflex`, `.DigitalTwinBuilder`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`
- `.Reflex`, `.DigitalTwinBuilder`, `.DigitalTwinBuilderFlow`, `.Map`, `.MountedDataFactory`, `.CopyJob`, `.VariableLibrary`


#### Export to Lakehouse
Expand Down
6 changes: 2 additions & 4 deletions src/fabric_cli/client/fab_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def _get_session() -> requests.Session:
global _shared_session
if _shared_session is None:
_shared_session = requests.Session()
retries = Retry(
total=3, backoff_factor=1, status_forcelist=[502, 503, 504]
)
retries = Retry(total=3, backoff_factor=1, status_forcelist=[502, 503, 504])
adapter = HTTPAdapter(max_retries=retries)
_shared_session.mount("https://", adapter)
_shared_session.headers.update({"Accept-Encoding": "gzip, deflate"})
Expand Down Expand Up @@ -103,7 +101,7 @@ def do_request(
request_params["continuationToken"] = continuation_token

# Build url
url = f"https://{url}/{uri}"
url = f"https://{url}/{uri.lstrip('/')}"
if request_params:
url += f"?{requests.compat.urlencode(request_params)}"

Expand Down
8 changes: 6 additions & 2 deletions src/fabric_cli/core/fab_config/command_support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ commands:
# - kql_database
- mirrored_database
- cosmos_db_database
# - digital_twin_builder
- digital_twin_builder
- digital_twin_builder_flow
- reflex
# - eventstream
- mounted_data_factory
Expand Down Expand Up @@ -191,7 +192,8 @@ commands:
# - kql_database
- mirrored_database
- cosmos_db_database
# - digital_twin_builder
- digital_twin_builder
- digital_twin_builder_flow
- reflex
# - eventstream
- mounted_data_factory
Expand Down Expand Up @@ -256,6 +258,7 @@ commands:
- sql_database
- cosmos_db_database
- digital_twin_builder
- digital_twin_builder_flow
- user_data_function
- graph_query_set
- map
Expand Down Expand Up @@ -283,6 +286,7 @@ commands:
- sql_database
- cosmos_db_database
- digital_twin_builder
- digital_twin_builder_flow
- user_data_function
- map
- lakehouse
Expand Down
10 changes: 6 additions & 4 deletions src/fabric_cli/core/fab_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def from_string(cls, vws_type_str):
class _BaseItemType(Enum):
@classmethod
def from_string(cls, item_type_str):
raise NotImplementedError(
"This method must be implemented in the subclass")
raise NotImplementedError("This method must be implemented in the subclass")


##################################
Expand Down Expand Up @@ -200,8 +199,7 @@ def from_string(cls, vws_type_str):
if item.value.lower() == vws_type_str.lower():
return item
raise FabricCLIError(
ErrorMessages.Common.invalid_virtual_item_container_type(
vws_type_str),
ErrorMessages.Common.invalid_virtual_item_container_type(vws_type_str),
fab_constant.ERROR_INVALID_ITEM_TYPE,
)

Expand Down Expand Up @@ -262,6 +260,7 @@ class ItemType(_BaseItemType):
DATAMART = "Datamart"
DATA_PIPELINE = "DataPipeline"
DIGITAL_TWIN_BUILDER = "DigitalTwinBuilder"
DIGITAL_TWIN_BUILDER_FLOW = "DigitalTwinBuilderFlow"
ENVIRONMENT = "Environment"
EVENTHOUSE = "Eventhouse"
EVENTSTREAM = "Eventstream"
Expand Down Expand Up @@ -502,6 +501,7 @@ class MirroredDatabaseFolders(Enum):
ItemType.DATA_PIPELINE: "dataPipelines",
ItemType.DATAMART: "datamarts",
ItemType.DIGITAL_TWIN_BUILDER: "digitalTwinBuilders",
ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digitalTwinBuilderFlows",
ItemType.ENVIRONMENT: "environments",
ItemType.EVENTHOUSE: "eventhouses",
ItemType.EVENTSTREAM: "eventstreams",
Expand Down Expand Up @@ -550,6 +550,7 @@ class MirroredDatabaseFolders(Enum):
ItemType.DATAMART: "datamarts",
ItemType.DATA_PIPELINE: "pipelines",
ItemType.DIGITAL_TWIN_BUILDER: "digital-twin-builder",
ItemType.DIGITAL_TWIN_BUILDER_FLOW: "digital-twin-builder-flow",
ItemType.ENVIRONMENT: "sparkenvironments",
ItemType.EVENTHOUSE: "eventhouses",
ItemType.EVENTSTREAM: "eventstreams",
Expand Down Expand Up @@ -599,6 +600,7 @@ class MirroredDatabaseFolders(Enum):
},
ItemType.COSMOS_DB_DATABASE: {"default": ""},
ItemType.DIGITAL_TWIN_BUILDER: {"default": ""},
ItemType.DIGITAL_TWIN_BUILDER_FLOW: {"default": ""},
ItemType.USER_DATA_FUNCTION: {"default": ""},
ItemType.GRAPH_QUERY_SET: {"default": ""},
ItemType.VARIABLE_LIBRARY: {"default": ""},
Expand Down
Loading
Loading