2024-11-10 03:18:55 +00:00
|
|
|
import type * as Schemas from 'soapbox/schemas/index.ts';
|
2023-06-23 19:12:12 +00:00
|
|
|
|
|
|
|
enum Entities {
|
2023-03-20 20:54:06 +00:00
|
|
|
ACCOUNTS = 'Accounts',
|
2024-03-27 11:31:54 +00:00
|
|
|
DOMAINS = 'Domains',
|
2023-03-14 14:19:34 +00:00
|
|
|
GROUPS = 'Groups',
|
2023-03-13 20:08:42 +00:00
|
|
|
GROUP_MEMBERSHIPS = 'GroupMemberships',
|
2023-06-08 13:00:49 +00:00
|
|
|
GROUP_MUTES = 'GroupMutes',
|
2023-03-29 17:21:28 +00:00
|
|
|
GROUP_RELATIONSHIPS = 'GroupRelationships',
|
|
|
|
GROUP_TAGS = 'GroupTags',
|
2023-06-21 21:20:07 +00:00
|
|
|
PATRON_USERS = 'PatronUsers',
|
2023-04-10 20:22:08 +00:00
|
|
|
RELATIONSHIPS = 'Relationships',
|
2024-04-02 09:45:15 +00:00
|
|
|
RELAYS = 'Relays',
|
2024-04-07 09:07:32 +00:00
|
|
|
RULES = 'Rules',
|
|
|
|
STATUSES = 'Statuses',
|
2023-06-23 19:12:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface EntityTypes {
|
2023-10-02 18:54:02 +00:00
|
|
|
[Entities.ACCOUNTS]: Schemas.Account;
|
2024-03-27 11:31:54 +00:00
|
|
|
[Entities.DOMAINS]: Schemas.Domain;
|
2023-10-02 18:54:02 +00:00
|
|
|
[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;
|
2024-04-02 09:45:15 +00:00
|
|
|
[Entities.RELAYS]: Schemas.Relay;
|
2024-04-07 09:07:32 +00:00
|
|
|
[Entities.RULES]: Schemas.AdminRule;
|
2023-10-02 18:54:02 +00:00
|
|
|
[Entities.STATUSES]: Schemas.Status;
|
2023-06-23 19:12:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export { Entities, type EntityTypes };
|