2023-06-23 12:12:12 -07:00
|
|
|
import type * as Schemas from 'soapbox/schemas';
|
|
|
|
|
|
|
|
enum Entities {
|
2023-03-20 13:54:06 -07:00
|
|
|
ACCOUNTS = 'Accounts',
|
2023-03-14 07:19:34 -07:00
|
|
|
GROUPS = 'Groups',
|
2023-03-13 13:08:42 -07:00
|
|
|
GROUP_MEMBERSHIPS = 'GroupMemberships',
|
2023-06-08 06:00:49 -07:00
|
|
|
GROUP_MUTES = 'GroupMutes',
|
2023-03-29 10:21:28 -07:00
|
|
|
GROUP_RELATIONSHIPS = 'GroupRelationships',
|
|
|
|
GROUP_TAGS = 'GroupTags',
|
2023-06-21 14:20:07 -07:00
|
|
|
PATRON_USERS = 'PatronUsers',
|
2023-04-10 13:22:08 -07:00
|
|
|
RELATIONSHIPS = 'Relationships',
|
2023-03-29 10:21:28 -07:00
|
|
|
STATUSES = 'Statuses'
|
2023-06-23 12:12:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
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 };
|