実装:#4
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
import { ApiMap } from "1.6.11/types/api/map";
|
||||
export default ApiMap;
|
||||
@@ -1,18 +0,0 @@
|
||||
import ServerInfo from "1.6.11/types/api/serverinfo-api";
|
||||
import Users from "1.6.11/types/api/users";
|
||||
import UsersFollow from "1.6.11/types/api/users/follow";
|
||||
import Me from "1.6.11/types/api/me";
|
||||
import MeNotification from "1.6.11/types/api/me/notification";
|
||||
import MeNotificationRead from "1.6.11/types/api/me/notification/read";
|
||||
import MeSettings from "1.6.11/types/api/me/settings";
|
||||
import Ueuse from "1.6.11/types/api/ueuse";
|
||||
|
||||
export type ApiMap =
|
||||
& ServerInfo
|
||||
& Me
|
||||
& MeNotification
|
||||
& MeNotificationRead
|
||||
& MeSettings
|
||||
& Users
|
||||
& UsersFollow
|
||||
& Ueuse;
|
||||
@@ -1,17 +0,0 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
|
||||
export default interface UeuseBookmark {
|
||||
"ueuse/bookmark/": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** ブックマークしているユーズ */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
|
||||
export default interface Ueuse {
|
||||
"ueuse/": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** ユーズ(LTL) */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
|
||||
export default interface UeuseMentions {
|
||||
"ueuse/mentions": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** メンションされているユーズ */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { generateAuthURIOptions } from "1.6.11/types/auth";
|
||||
import type { generateAuthURIOptions } from "1.6.8/types/auth";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
/** ユーザー認可によるトークン取得のURIを生成します。 */
|
||||
@@ -0,0 +1,2 @@
|
||||
import { ApiMap } from "1.6.8/types/api/map";
|
||||
export default ApiMap;
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface AdminReports {
|
||||
"admin/reports/": {
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
|
||||
export default interface AdminReportsResolve {
|
||||
"admin/reports/resolve": {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { UserResponse } from "1.6.11/types/api/users";
|
||||
import { UserResponse } from "1.6.8/types/api/users";
|
||||
|
||||
export default interface AdminUsers {
|
||||
"admin/users/": {
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
|
||||
interface RequestBase<T extends string> {
|
||||
/** 対象のユーザーID */
|
||||
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
|
||||
export default interface FavoriteChange {
|
||||
"favorite/change": {
|
||||
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
|
||||
export default interface FavoriteGet {
|
||||
"favorite/get": {
|
||||
@@ -0,0 +1,18 @@
|
||||
import ServerInfo from "1.6.8/types/api/serverinfo-api";
|
||||
import Users from "1.6.8/types/api/users";
|
||||
import UsersFollow from "1.6.8/types/api/users/follow";
|
||||
import Me from "1.6.8/types/api/me";
|
||||
import MeNotification from "1.6.8/types/api/me/notification";
|
||||
import MeNotificationRead from "1.6.8/types/api/me/notification/read";
|
||||
import MeSettings from "1.6.8/types/api/me/settings";
|
||||
import Ueuse from "1.6.8/types/api/ueuse";
|
||||
|
||||
export type ApiMap =
|
||||
& ServerInfo
|
||||
& Me
|
||||
& MeNotification
|
||||
& MeNotificationRead
|
||||
& MeSettings
|
||||
& Users
|
||||
& UsersFollow
|
||||
& Ueuse;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UserResponse } from "1.6.11/types/api/users";
|
||||
import { UserResponse } from "1.6.8/types/api/users";
|
||||
|
||||
export default interface Me {
|
||||
"me/": {
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface MeNotification {
|
||||
"me/notification/": {
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import UpdateError from "1.6.11/types/modules/error/update";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError from "1.6.8/types/modules/error/update";
|
||||
|
||||
export default interface MeNotificationRead {
|
||||
"me/notification/read": {
|
||||
@@ -1,7 +1,7 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import UpdateError from "1.6.11/types/modules/error/update";
|
||||
import { Upload1Error, Upload2Error, UploadCommonError } from "1.6.11/types/modules/error/upload";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError from "1.6.8/types/modules/error/update";
|
||||
import { Upload1Error, Upload2Error, UploadCommonError } from "1.6.8/types/modules/error/upload";
|
||||
|
||||
type AtLeastOne<T> = {
|
||||
[K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>
|
||||
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
|
||||
export default interface TokenGet {
|
||||
"ueuse/get": {
|
||||
@@ -0,0 +1,17 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface UeuseBookmark {
|
||||
"ueuse/bookmark/": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** ブックマークしているユーズ */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { Media } from "1.6.11/types/modules/ueuse";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { Media } from "1.6.8/types/modules/ueuse";
|
||||
|
||||
export default interface UeuseCreate {
|
||||
"ueuse/get": {
|
||||
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
|
||||
interface ResponseBase<T extends string, S extends boolean> {
|
||||
/** 成功かどうか */
|
||||
@@ -1,7 +1,7 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
|
||||
export default interface UeuseGet {
|
||||
"ueuse/get": {
|
||||
@@ -0,0 +1,17 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface Ueuse {
|
||||
"ueuse/": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** ユーズ(LTL) */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface UeuseMentions {
|
||||
"ueuse/mentions": {
|
||||
body?: Page;
|
||||
response: {
|
||||
/** 成功かどうか */
|
||||
success: true;
|
||||
/** メンションされているユーズ */
|
||||
data: ueuseModule[];
|
||||
} | InputError | AuthError | ueuseError;
|
||||
}
|
||||
};
|
||||
@@ -1,8 +1,8 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface UeuseReplies {
|
||||
"ueuse/replies": {
|
||||
@@ -1,8 +1,8 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
||||
import Page from "1.6.11/types/modules/page";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
|
||||
export default interface UeuseSearch {
|
||||
"ueuse/search": {
|
||||
@@ -1,8 +1,8 @@
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import UpdateError, { CouldNotComplete } from "1.6.11/types/modules/error/update";
|
||||
import ToYouNotAllowed from "1.6.11/types/modules/error/follow";
|
||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError, { CouldNotComplete } from "1.6.8/types/modules/error/update";
|
||||
import ToYouNotAllowed from "1.6.8/types/modules/error/follow";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
|
||||
interface Follow<T extends string> {
|
||||
body: {
|
||||
@@ -1,7 +1,7 @@
|
||||
import Role from "1.6.11/types/modules/role";
|
||||
import InputError from "1.6.11/types/modules/error/input";
|
||||
import AuthError from "1.6.11/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
||||
import Role from "1.6.8/types/modules/role";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
|
||||
export type UserResponse = {
|
||||
/** 成功かどうか */
|
||||
+4
-1
@@ -19,7 +19,10 @@
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
"1.6.11/*": ["./1.6.11/*"],
|
||||
"1.6.8/*": ["./1.6.8/*"],
|
||||
"1.6.9/*": ["./1.6.8/*"],
|
||||
"1.6.10/*": ["./1.6.8/*"],
|
||||
"1.6.11/*": ["./1.6.8/*"],
|
||||
},
|
||||
},
|
||||
"tsc-alias": {
|
||||
|
||||
Reference in New Issue
Block a user