bigbuffet-rw/packages/pl-fe/src/entity-store/entities.ts
marcin mikołajczak c43178fc09 Display scrobbles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-09-01 14:57:59 +02:00

35 lines
1.1 KiB
TypeScript

import type { AdminDomain, AdminRelay, AdminRule, BookmarkFolder, GroupMember, GroupRelationship, Relationship, Scrobble, TrendsLink } from 'pl-api';
import type { Account, Group, Status } from 'pl-fe/normalizers';
enum Entities {
ACCOUNTS = 'Accounts',
BOOKMARK_FOLDERS = 'BookmarkFolders',
DOMAINS = 'Domains',
GROUPS = 'Groups',
GROUP_MEMBERSHIPS = 'GroupMemberships',
GROUP_MUTES = 'GroupMutes',
GROUP_RELATIONSHIPS = 'GroupRelationships',
RELATIONSHIPS = 'Relationships',
RELAYS = 'Relays',
RULES = 'Rules',
SCROBBLES = 'Scrobbles',
STATUSES = 'Statuses',
TRENDS_LINKS = 'TrendsLinks',
}
interface EntityTypes {
[Entities.ACCOUNTS]: Account;
[Entities.BOOKMARK_FOLDERS]: BookmarkFolder;
[Entities.DOMAINS]: AdminDomain;
[Entities.GROUPS]: Group;
[Entities.GROUP_MEMBERSHIPS]: GroupMember;
[Entities.GROUP_RELATIONSHIPS]: GroupRelationship;
[Entities.RELATIONSHIPS]: Relationship;
[Entities.RELAYS]: AdminRelay;
[Entities.RULES]: AdminRule;
[Entities.SCROBBLES]: Scrobble;
[Entities.STATUSES]: Status;
[Entities.TRENDS_LINKS]: TrendsLink;
}
export { Entities, type EntityTypes };