mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 03:49:37 +00:00
36 lines
753 B
TypeScript
36 lines
753 B
TypeScript
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
|
|
|
/**
|
|
* Describes the interface for a party entity
|
|
*/
|
|
export interface IPartyEntity {
|
|
category: string;
|
|
displayName: string;
|
|
label: string;
|
|
}
|
|
|
|
/**
|
|
* Describes the expected shape of the response for party entities endpoint
|
|
*/
|
|
export interface IPartyEntityResponse {
|
|
status: ApiStatus;
|
|
userEntities?: Array<IPartyEntity>;
|
|
msg?: string;
|
|
}
|
|
|
|
/**
|
|
* Describes a IUserEntityMap interface
|
|
*/
|
|
export interface IUserEntityMap {
|
|
[label: string]: string;
|
|
}
|
|
|
|
/**
|
|
* Describes the props resolved by the getUserEntities function
|
|
*/
|
|
export interface IPartyProps {
|
|
userEntities: Array<IPartyEntity>;
|
|
userEntitiesMaps: IUserEntityMap;
|
|
userEntitiesSource: Array<keyof IUserEntityMap>;
|
|
}
|