mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Enable verbatim module syntax + more API routes
This commit is contained in:
parent
991a2cba84
commit
be9b2e3376
84 changed files with 438 additions and 192 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { APIEmoji } from "./emoji";
|
||||
import { APIField } from "./field";
|
||||
import { APIRole } from "./role";
|
||||
import { APISource } from "./source";
|
||||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIField } from "./field";
|
||||
import type { APIRole } from "./role";
|
||||
import type { APISource } from "./source";
|
||||
|
||||
export interface APIAccount {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { APIEmoji } from "./emoji";
|
||||
import { APIStatusTag } from "./status";
|
||||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIStatusTag } from "./status";
|
||||
|
||||
export interface APIAnnouncement {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIMeta } from "./attachment";
|
||||
import type { APIMeta } from "./attachment";
|
||||
|
||||
export interface APIAsyncAttachment {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIStatus } from "./status";
|
||||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APIContext {
|
||||
ancestors: APIStatus[];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { APIAccount } from "./account";
|
||||
import { APIStatus } from "./status";
|
||||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APIConversation {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { APIAccount } from "./account";
|
||||
import { APIStats } from "./stats";
|
||||
import { APIURLs } from "./urls";
|
||||
import type { APIAccount } from "./account";
|
||||
import type { APIStats } from "./stats";
|
||||
import type { APIURLs } from "./urls";
|
||||
|
||||
export interface APIInstance {
|
||||
uri: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { APIAccount } from "./account";
|
||||
import { APIStatus } from "./status";
|
||||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
|
||||
export interface APINotification {
|
||||
account: APIAccount;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIPollOption } from "./poll_option";
|
||||
import type { APIPollOption } from "./poll_option";
|
||||
|
||||
export interface APIPoll {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIAccount } from "./account";
|
||||
import type { APIAccount } from "./account";
|
||||
|
||||
export interface APIReport {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { APIAccount } from "./account";
|
||||
import { APIStatus } from "./status";
|
||||
import { APITag } from "./tag";
|
||||
import type { APIAccount } from "./account";
|
||||
import type { APIStatus } from "./status";
|
||||
import type { APITag } from "./tag";
|
||||
|
||||
export interface APIResults {
|
||||
accounts: APIAccount[];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { APIAttachment } from "./attachment";
|
||||
import { APIStatusParams } from "./status_params";
|
||||
import type { APIAttachment } from "./attachment";
|
||||
import type { APIStatusParams } from "./status_params";
|
||||
|
||||
export interface APIScheduledStatus {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIField } from "./field";
|
||||
import type { APIField } from "./field";
|
||||
|
||||
export interface APISource {
|
||||
privacy: string | null;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { APIAccount } from "./account";
|
||||
import { APIApplication } from "./application";
|
||||
import { APIAttachment } from "./attachment";
|
||||
import { APICard } from "./card";
|
||||
import { APIEmoji } from "./emoji";
|
||||
import { APIMention } from "./mention";
|
||||
import { APIPoll } from "./poll";
|
||||
import type { APIAccount } from "./account";
|
||||
import type { APIApplication } from "./application";
|
||||
import type { APIAttachment } from "./attachment";
|
||||
import type { APICard } from "./card";
|
||||
import type { APIEmoji } from "./emoji";
|
||||
import type { APIMention } from "./mention";
|
||||
import type { APIPoll } from "./poll";
|
||||
|
||||
export interface APIStatus {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { APIHistory } from "./history";
|
||||
import type { APIHistory } from "./history";
|
||||
|
||||
export interface APITag {
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue