import { TYPE_COUNT, TYPE_MINIDOC, TYPE_VIEWER, type CountDescriptor, type DocDescriptor, type ViewerDescriptor } from "$lib/api/enrich"; // author docs come back keyed by the author's did export const REPO_OWNER_DOCS: DocDescriptor = { source: "sh.tangled.repo:.repo", type: TYPE_MINIDOC }; export const ISSUE_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.repo.issue:.repo", type: TYPE_MINIDOC }; export const PULL_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.repo.pull:.repo", type: TYPE_MINIDOC }; export const COMMENT_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.feed.comment:.repo", type: TYPE_MINIDOC }; export const REACTION_AUTHOR_DOCS: DocDescriptor = { source: "sh.tangled.feed.reaction:.repo", type: TYPE_MINIDOC }; export const REPO_COUNT: CountDescriptor = { source: "sh.tangled.repo:subject", type: TYPE_COUNT }; export const STRING_COUNT: CountDescriptor = { source: "sh.tangled.string:subject", type: TYPE_COUNT }; export const VOUCH_COUNT: CountDescriptor = { source: "sh.tangled.graph.vouch:subject", type: TYPE_COUNT }; export const STAR_COUNT: CountDescriptor = { source: "sh.tangled.feed.star:subject", type: TYPE_COUNT }; export const STAR_VIEWER: ViewerDescriptor = { source: "sh.tangled.feed.star:subject", type: TYPE_VIEWER }; export const STAR_SUBJECT_DOCS: DocDescriptor = { source: "sh.tangled.feed.star:subject", type: TYPE_MINIDOC }; export const STARRED_COUNT: CountDescriptor = { source: "sh.tangled.feed.star:.repo", type: TYPE_COUNT }; // a follow's author is the follower and its subject is who they follow, so // these look swapped export const FOLLOWER_COUNT: CountDescriptor = { source: "sh.tangled.graph.follow:subject", type: TYPE_COUNT }; export const FOLLOWING_COUNT: CountDescriptor = { source: "sh.tangled.graph.follow:.repo", type: TYPE_COUNT }; export const FOLLOW_VIEWER: ViewerDescriptor = { source: "sh.tangled.graph.follow:subject", type: TYPE_VIEWER }; export const FOLLOWER_DOCS: DocDescriptor = { source: "sh.tangled.graph.follow:.repo", type: TYPE_MINIDOC }; export const FOLLOWING_DOCS: DocDescriptor = { source: "sh.tangled.graph.follow:subject", type: TYPE_MINIDOC };