mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-23 06:54:45 +00:00
20 lines
782 B
TypeScript
20 lines
782 B
TypeScript
![]() |
import { DataModelEntity } from '@datahub/data-models/constants/entity';
|
||
|
import { DatasetEntity } from '@datahub/data-models/entity/dataset/dataset-entity';
|
||
|
|
||
|
// Alias for a DataModelEntity type in the list of supportedListEntities
|
||
|
export type SupportedListEntity = Exclude<DataModelEntity, typeof DatasetEntity>;
|
||
|
|
||
|
/**
|
||
|
* Lists entities that have Entity List support
|
||
|
* note: DatasetEntity is excluded from type pending mid-tier support for urn attribute, support for uri would be throw away
|
||
|
*/
|
||
|
export const supportedListEntities: Array<SupportedListEntity> = [];
|
||
|
|
||
|
/**
|
||
|
* Enumerates the cta text for toggling an Entity off or onto a list for action triggers where List toggle actions are called
|
||
|
*/
|
||
|
export enum ListToggleCta {
|
||
|
remove = 'Remove from list',
|
||
|
add = 'Add to list'
|
||
|
}
|