2019-08-31 20:51:14 -07:00
|
|
|
import { DataModelEntity } from '@datahub/data-models/constants/entity';
|
|
|
|
import { DatasetEntity } from '@datahub/data-models/entity/dataset/dataset-entity';
|
2019-09-04 21:46:02 -07:00
|
|
|
import { PersonEntity } from '@datahub/data-models/entity/person/person-entity';
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
// 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
|
|
|
|
*/
|
2019-09-04 21:46:02 -07:00
|
|
|
export const supportedListEntities: Array<SupportedListEntity> = [PersonEntity];
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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'
|
|
|
|
}
|