bigbuffet-rw/app/soapbox/entity-store/entities.ts
2023-06-27 09:24:03 -04:00

26 lines
No EOL
778 B
TypeScript

import type * as Schemas from 'soapbox/schemas';
enum Entities {
ACCOUNTS = 'Accounts',
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.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 };