kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
28 wiersze
881 B
TypeScript
28 wiersze
881 B
TypeScript
import type * as Schemas from 'soapbox/schemas';
|
|
|
|
enum Entities {
|
|
ACCOUNTS = 'Accounts',
|
|
BOOKMARK_FOLDERS = 'BookmarkFolders',
|
|
GROUPS = 'Groups',
|
|
GROUP_MEMBERSHIPS = 'GroupMemberships',
|
|
GROUP_MUTES = 'GroupMutes',
|
|
GROUP_RELATIONSHIPS = 'GroupRelationships',
|
|
GROUP_TAGS = 'GroupTags',
|
|
PATRON_USERS = 'PatronUsers',
|
|
RELATIONSHIPS = 'Relationships',
|
|
STATUSES = 'Statuses'
|
|
}
|
|
|
|
interface EntityTypes {
|
|
[Entities.ACCOUNTS]: Schemas.Account;
|
|
[Entities.BOOKMARK_FOLDERS]: Schemas.BookmarkFolder;
|
|
[Entities.GROUPS]: Schemas.Group;
|
|
[Entities.GROUP_MEMBERSHIPS]: Schemas.GroupMember;
|
|
[Entities.GROUP_RELATIONSHIPS]: Schemas.GroupRelationship;
|
|
[Entities.GROUP_TAGS]: Schemas.GroupTag;
|
|
[Entities.PATRON_USERS]: Schemas.PatronUser;
|
|
[Entities.RELATIONSHIPS]: Schemas.Relationship;
|
|
[Entities.STATUSES]: Schemas.Status;
|
|
}
|
|
|
|
export { Entities, type EntityTypes }; |