File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export * from './entity.js';
5
5
export * from './repository/index.js' ;
6
6
export * from './workspace/index.js' ;
7
7
export * from './modals/index.js' ;
8
+ export * from './paths.js' ;
8
9
9
10
export { UmbMoveDataTypeRepository , UMB_MOVE_DATA_TYPE_REPOSITORY_ALIAS } from './entity-actions/move-to/index.js' ;
10
11
Original file line number Diff line number Diff line change
1
+ import { UMB_DATA_TYPE_ENTITY_TYPE , UMB_DATA_TYPE_ROOT_ENTITY_TYPE } from './entity.js' ;
2
+ import { UMB_WORKSPACE_PATH_PATTERN } from '@umbraco-cms/backoffice/workspace' ;
3
+ import { UMB_SETTINGS_SECTION_PATHNAME } from '@umbraco-cms/backoffice/settings' ;
4
+ import { UmbPathPattern } from '@umbraco-cms/backoffice/router' ;
5
+ import type { UmbEntityModel } from '@umbraco-cms/backoffice/entity' ;
6
+
7
+ export const UMB_DATA_TYPE_WORKSPACE_PATH = UMB_WORKSPACE_PATH_PATTERN . generateAbsolute ( {
8
+ sectionName : UMB_SETTINGS_SECTION_PATHNAME ,
9
+ entityType : UMB_DATA_TYPE_ENTITY_TYPE ,
10
+ } ) ;
11
+
12
+ export const UMB_DATA_TYPE_ROOT_WORKSPACE_PATH = UMB_WORKSPACE_PATH_PATTERN . generateAbsolute ( {
13
+ sectionName : UMB_SETTINGS_SECTION_PATHNAME ,
14
+ entityType : UMB_DATA_TYPE_ROOT_ENTITY_TYPE ,
15
+ } ) ;
16
+
17
+ export const UMB_CREATE_DATA_TYPE_WORKSPACE_PATH_PATTERN = new UmbPathPattern < {
18
+ parentEntityType : UmbEntityModel [ 'entityType' ] ;
19
+ parentUnique : UmbEntityModel [ 'unique' ] ;
20
+ } > ( 'create/parent/:parentEntityType/:parentUnique' , UMB_DATA_TYPE_WORKSPACE_PATH ) ;
You can’t perform that action at this time.
0 commit comments