2024-09-01 05:57:41 -07:00
|
|
|
import type { AdminDomain, AdminRelay, AdminRule, BookmarkFolder, GroupMember, GroupRelationship, Relationship, Scrobble, TrendsLink } from 'pl-api';
|
2024-08-28 04:41:08 -07:00
|
|
|
import type { Account, Group, Status } from 'pl-fe/normalizers';
|
2023-06-23 12:12:12 -07:00
|
|
|
|
|
|
|
enum Entities {
|
2023-03-20 13:54:06 -07:00
|
|
|
ACCOUNTS = 'Accounts',
|
2024-03-20 15:58:53 -07:00
|
|
|
BOOKMARK_FOLDERS = 'BookmarkFolders',
|
2024-03-27 04:31:54 -07:00
|
|
|
DOMAINS = 'Domains',
|
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',
|
2023-04-10 13:22:08 -07:00
|
|
|
RELATIONSHIPS = 'Relationships',
|
2024-04-02 02:45:15 -07:00
|
|
|
RELAYS = 'Relays',
|
2024-04-07 02:07:32 -07:00
|
|
|
RULES = 'Rules',
|
2024-09-01 05:57:41 -07:00
|
|
|
SCROBBLES = 'Scrobbles',
|
2024-04-07 02:07:32 -07:00
|
|
|
STATUSES = 'Statuses',
|
2024-08-20 03:42:06 -07:00
|
|
|
TRENDS_LINKS = 'TrendsLinks',
|
2023-06-23 12:12:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
interface EntityTypes {
|
2024-08-11 01:48:58 -07:00
|
|
|
[Entities.ACCOUNTS]: Account;
|
|
|
|
[Entities.BOOKMARK_FOLDERS]: BookmarkFolder;
|
2024-08-28 11:58:20 -07:00
|
|
|
[Entities.DOMAINS]: AdminDomain;
|
2024-08-11 01:48:58 -07:00
|
|
|
[Entities.GROUPS]: Group;
|
|
|
|
[Entities.GROUP_MEMBERSHIPS]: GroupMember;
|
|
|
|
[Entities.GROUP_RELATIONSHIPS]: GroupRelationship;
|
|
|
|
[Entities.RELATIONSHIPS]: Relationship;
|
2024-08-28 11:58:20 -07:00
|
|
|
[Entities.RELAYS]: AdminRelay;
|
|
|
|
[Entities.RULES]: AdminRule;
|
2024-09-01 05:57:41 -07:00
|
|
|
[Entities.SCROBBLES]: Scrobble;
|
2024-08-11 01:48:58 -07:00
|
|
|
[Entities.STATUSES]: Status;
|
2024-08-20 03:42:06 -07:00
|
|
|
[Entities.TRENDS_LINKS]: TrendsLink;
|
2023-06-23 12:12:12 -07:00
|
|
|
}
|
|
|
|
|
2024-08-20 04:02:36 -07:00
|
|
|
export { Entities, type EntityTypes };
|