@@ -32,6 +32,9 @@ const pathTypeToNodeType: Record<EPathType, NavigationTreeNodeType | undefined>
3232
3333 [ EPathType . EPathTypeCdcStream ] : 'topic' ,
3434 [ EPathType . EPathTypePersQueueGroup ] : 'topic' ,
35+
36+ [ EPathType . EPathTypeExternalDataSource ] : 'external_data_source' ,
37+ [ EPathType . EPathTypeExternalTable ] : 'external_table' ,
3538} ;
3639
3740export const mapPathTypeToNavigationTreeType = (
@@ -64,6 +67,8 @@ const pathTypeToEntityName: Record<EPathType, string | undefined> = {
6467 [ EPathType . EPathTypeColumnTable ] : 'Columntable' ,
6568 [ EPathType . EPathTypeCdcStream ] : 'Changefeed' ,
6669 [ EPathType . EPathTypePersQueueGroup ] : 'Topic' ,
70+ [ EPathType . EPathTypeExternalDataSource ] : 'External Data Source' ,
71+ [ EPathType . EPathTypeExternalTable ] : 'External Table' ,
6772} ;
6873
6974export const mapPathTypeToEntityName = (
@@ -90,6 +95,8 @@ const pathTypeToIsTable: Record<EPathType, boolean> = {
9095 [ EPathType . EPathTypeTable ] : true ,
9196 [ EPathType . EPathTypeColumnTable ] : true ,
9297
98+ [ EPathType . EPathTypeExternalTable ] : true ,
99+
93100 [ EPathType . EPathTypeInvalid ] : false ,
94101 [ EPathType . EPathTypeDir ] : false ,
95102 [ EPathType . EPathTypeSubDomain ] : false ,
@@ -98,6 +105,7 @@ const pathTypeToIsTable: Record<EPathType, boolean> = {
98105 [ EPathType . EPathTypeColumnStore ] : false ,
99106 [ EPathType . EPathTypeCdcStream ] : false ,
100107 [ EPathType . EPathTypePersQueueGroup ] : false ,
108+ [ EPathType . EPathTypeExternalDataSource ] : false ,
101109} ;
102110
103111export const isTableType = ( pathType ?: EPathType ) =>
@@ -130,6 +138,8 @@ const pathTypeToIsColumn: Record<EPathType, boolean> = {
130138 [ EPathType . EPathTypeExtSubDomain ] : false ,
131139 [ EPathType . EPathTypeCdcStream ] : false ,
132140 [ EPathType . EPathTypePersQueueGroup ] : false ,
141+ [ EPathType . EPathTypeExternalDataSource ] : false ,
142+ [ EPathType . EPathTypeExternalTable ] : false ,
133143} ;
134144
135145export const isColumnEntityType = ( type ?: EPathType ) => ( type && pathTypeToIsColumn [ type ] ) ?? false ;
@@ -148,6 +158,8 @@ const pathTypeToIsDatabase: Record<EPathType, boolean> = {
148158 [ EPathType . EPathTypeTableIndex ] : false ,
149159 [ EPathType . EPathTypeCdcStream ] : false ,
150160 [ EPathType . EPathTypePersQueueGroup ] : false ,
161+ [ EPathType . EPathTypeExternalDataSource ] : false ,
162+ [ EPathType . EPathTypeExternalTable ] : false ,
151163} ;
152164
153165export const isDatabaseEntityType = ( type ?: EPathType ) =>
@@ -171,6 +183,8 @@ const pathTypeToEntityWithMergedImplementation: Record<EPathType, boolean> = {
171183 [ EPathType . EPathTypeSubDomain ] : false ,
172184 [ EPathType . EPathTypeTableIndex ] : false ,
173185 [ EPathType . EPathTypeExtSubDomain ] : false ,
186+ [ EPathType . EPathTypeExternalDataSource ] : false ,
187+ [ EPathType . EPathTypeExternalTable ] : false ,
174188} ;
175189
176190export const isEntityWithMergedImplementation = ( type ?: EPathType ) =>
@@ -190,6 +204,9 @@ const pathTypeToChildless: Record<EPathType, boolean> = {
190204 [ EPathType . EPathTypeCdcStream ] : true ,
191205 [ EPathType . EPathTypePersQueueGroup ] : true ,
192206
207+ [ EPathType . EPathTypeExternalDataSource ] : true ,
208+ [ EPathType . EPathTypeExternalTable ] : true ,
209+
193210 [ EPathType . EPathTypeInvalid ] : false ,
194211 [ EPathType . EPathTypeColumnStore ] : false ,
195212 [ EPathType . EPathTypeColumnTable ] : false ,
@@ -217,7 +234,14 @@ const mapPathTypeToIsWithTopic: Record<EPathType, boolean> = {
217234 [ EPathType . EPathTypeSubDomain ] : false ,
218235 [ EPathType . EPathTypeTableIndex ] : false ,
219236 [ EPathType . EPathTypeExtSubDomain ] : false ,
237+
238+ [ EPathType . EPathTypeExternalDataSource ] : false ,
239+ [ EPathType . EPathTypeExternalTable ] : false ,
220240} ;
221241
222242export const isPathTypeWithTopic = ( type ?: EPathType ) =>
223243 ( type && mapPathTypeToIsWithTopic [ type ] ) ?? false ;
244+
245+ // ====================
246+
247+ export const isExternalTable = ( type ?: EPathType ) => type === EPathType . EPathTypeExternalTable ;
0 commit comments