From b7d1507ccbdf8e67207a25ad1c2bca0a65a61a72 Mon Sep 17 00:00:00 2001 From: Aleksandrs Vaguscenko <54764339+Alequez97@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:31:53 +0200 Subject: [PATCH] fix(server): fix open api validation errors (#285) * delete hubs from open api spec Signed-off-by: Aleksandrs Vaguscenko * fix(client): codegen Signed-off-by: Aleksandrs Vaguscenko * fix(server): remove obsolete nunit verifier in analyzer tests project Signed-off-by: Aleksandrs Vaguscenko --------- Signed-off-by: Aleksandrs Vaguscenko --- .../packages/gomoku-api/client/hooks/index.ts | 20 - .../usePostGamehubAnonymousApproverematch.ts | 61 --- .../usePostGamehubAnonymousApproveundo.ts | 59 --- .../hooks/usePostGamehubAnonymousGetclock.ts | 59 --- .../usePostGamehubAnonymousJoingamegroup.ts | 59 --- .../hooks/usePostGamehubAnonymousMakemove.ts | 59 --- .../usePostGamehubAnonymousRequestrematch.ts | 61 --- .../usePostGamehubAnonymousRequestundo.ts | 59 --- .../hooks/usePostGamehubAnonymousResign.ts | 59 --- ...ostGamehubAnonymousSendinvitationtoplay.ts | 61 --- .../usePostGamehubAnonymousSendmessage.ts | 59 --- .../usePostGamehubRegisteredApproverematch.ts | 61 --- .../usePostGamehubRegisteredApproveundo.ts | 59 --- .../hooks/usePostGamehubRegisteredGetclock.ts | 59 --- .../usePostGamehubRegisteredJoingamegroup.ts | 61 --- .../hooks/usePostGamehubRegisteredMakemove.ts | 59 --- .../usePostGamehubRegisteredRequestrematch.ts | 61 --- .../usePostGamehubRegisteredRequestundo.ts | 59 --- .../hooks/usePostGamehubRegisteredResign.ts | 59 --- ...stGamehubRegisteredSendinvitationtoplay.ts | 63 --- .../usePostGamehubRegisteredSendmessage.ts | 59 --- .../client/models/ApproveRematchMessage.ts | 6 - .../client/models/ApproveUndoMessage.ts | 6 - .../client/models/ChatMessageClientMessage.ts | 14 - .../client/models/GetClockMessage.ts | 6 - .../client/models/MakeMoveClientMessage.ts | 14 - .../PostGamehubAnonymousApproverematch.ts | 13 - .../models/PostGamehubAnonymousApproveundo.ts | 13 - .../models/PostGamehubAnonymousGetclock.ts | 13 - .../PostGamehubAnonymousJoingamegroup.ts | 11 - .../models/PostGamehubAnonymousMakemove.ts | 13 - .../PostGamehubAnonymousRequestrematch.ts | 13 - .../models/PostGamehubAnonymousRequestundo.ts | 13 - .../models/PostGamehubAnonymousResign.ts | 13 - ...ostGamehubAnonymousSendinvitationtoplay.ts | 13 - .../models/PostGamehubAnonymousSendmessage.ts | 13 - .../PostGamehubRegisteredApproverematch.ts | 13 - .../PostGamehubRegisteredApproveundo.ts | 13 - .../models/PostGamehubRegisteredGetclock.ts | 13 - .../PostGamehubRegisteredJoingamegroup.ts | 11 - .../models/PostGamehubRegisteredMakemove.ts | 13 - .../PostGamehubRegisteredRequestrematch.ts | 13 - .../PostGamehubRegisteredRequestundo.ts | 13 - .../models/PostGamehubRegisteredResign.ts | 13 - ...stGamehubRegisteredSendinvitationtoplay.ts | 13 - .../PostGamehubRegisteredSendmessage.ts | 13 - .../client/models/RematchRequestMessage.ts | 6 - .../client/models/RequestUndoMessage.ts | 6 - .../client/models/ResignClientMessage.ts | 6 - .../models/SendInvitationToPlayMessage.ts | 6 - .../gomoku-api/client/models/index.ts | 29 -- GomokuClient/packages/gomoku-api/schema.json | 442 +----------------- .../Extensions/ServiceCollectionExtensions.cs | 12 - .../AnalyzerTestBase.cs | 5 +- .../GomokuServer.Analyzer.UnitTests.csproj | 19 +- 55 files changed, 15 insertions(+), 2034 deletions(-) delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproverematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproveundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousGetclock.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousJoingamegroup.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousMakemove.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestrematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousResign.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendinvitationtoplay.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendmessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproverematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproveundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredGetclock.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredJoingamegroup.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredMakemove.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestrematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredResign.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendinvitationtoplay.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendmessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/ApproveRematchMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/ApproveUndoMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/ChatMessageClientMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/GetClockMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/MakeMoveClientMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproverematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproveundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousGetclock.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousJoingamegroup.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousMakemove.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestrematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousResign.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendinvitationtoplay.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendmessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproverematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproveundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredGetclock.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredJoingamegroup.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredMakemove.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestrematch.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestundo.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredResign.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendinvitationtoplay.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendmessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/RematchRequestMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/RequestUndoMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/ResignClientMessage.ts delete mode 100644 GomokuClient/packages/gomoku-api/client/models/SendInvitationToPlayMessage.ts diff --git a/GomokuClient/packages/gomoku-api/client/hooks/index.ts b/GomokuClient/packages/gomoku-api/client/hooks/index.ts index e16b902a..42e00cc6 100644 --- a/GomokuClient/packages/gomoku-api/client/hooks/index.ts +++ b/GomokuClient/packages/gomoku-api/client/hooks/index.ts @@ -11,23 +11,3 @@ export * from "./usePostApiGameAnonymous"; export * from "./usePostApiGameAnonymousGameidJoin"; export * from "./usePostApiGameRegistered"; export * from "./usePostApiGameRegisteredGameidJoin"; -export * from "./usePostGamehubAnonymousApproverematch"; -export * from "./usePostGamehubAnonymousApproveundo"; -export * from "./usePostGamehubAnonymousGetclock"; -export * from "./usePostGamehubAnonymousJoingamegroup"; -export * from "./usePostGamehubAnonymousMakemove"; -export * from "./usePostGamehubAnonymousRequestrematch"; -export * from "./usePostGamehubAnonymousRequestundo"; -export * from "./usePostGamehubAnonymousResign"; -export * from "./usePostGamehubAnonymousSendinvitationtoplay"; -export * from "./usePostGamehubAnonymousSendmessage"; -export * from "./usePostGamehubRegisteredApproverematch"; -export * from "./usePostGamehubRegisteredApproveundo"; -export * from "./usePostGamehubRegisteredGetclock"; -export * from "./usePostGamehubRegisteredJoingamegroup"; -export * from "./usePostGamehubRegisteredMakemove"; -export * from "./usePostGamehubRegisteredRequestrematch"; -export * from "./usePostGamehubRegisteredRequestundo"; -export * from "./usePostGamehubRegisteredResign"; -export * from "./usePostGamehubRegisteredSendinvitationtoplay"; -export * from "./usePostGamehubRegisteredSendmessage"; diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproverematch.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproverematch.ts deleted file mode 100644 index 6d0b054e..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproverematch.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousApproverematchMutationResponse, - PostGamehubAnonymousApproverematchQueryParams, -} from "../models/PostGamehubAnonymousApproverematch"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousApproverematchClient = typeof client< - PostGamehubAnonymousApproverematchMutationResponse, - Error, - never ->; -type PostGamehubAnonymousApproverematch = { - data: PostGamehubAnonymousApproverematchMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousApproverematchQueryParams; - headerParams: never; - response: PostGamehubAnonymousApproverematchMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/ApproveRematch - */ -export function usePostGamehubAnonymousApproverematch( - params?: PostGamehubAnonymousApproverematch["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousApproverematch["response"], - PostGamehubAnonymousApproverematch["error"], - PostGamehubAnonymousApproverematch["request"] - >; - client?: PostGamehubAnonymousApproverematch["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousApproverematch["data"], - PostGamehubAnonymousApproverematch["error"], - PostGamehubAnonymousApproverematch["request"] - >({ - method: "post", - url: `/gamehub/anonymous/ApproveRematch`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproveundo.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproveundo.ts deleted file mode 100644 index acc4d4ad..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousApproveundo.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousApproveundoMutationResponse, - PostGamehubAnonymousApproveundoQueryParams, -} from "../models/PostGamehubAnonymousApproveundo"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousApproveundoClient = typeof client< - PostGamehubAnonymousApproveundoMutationResponse, - Error, - never ->; -type PostGamehubAnonymousApproveundo = { - data: PostGamehubAnonymousApproveundoMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousApproveundoQueryParams; - headerParams: never; - response: PostGamehubAnonymousApproveundoMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/ApproveUndo - */ -export function usePostGamehubAnonymousApproveundo( - params?: PostGamehubAnonymousApproveundo["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousApproveundo["response"], - PostGamehubAnonymousApproveundo["error"], - PostGamehubAnonymousApproveundo["request"] - >; - client?: PostGamehubAnonymousApproveundo["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousApproveundo["data"], - PostGamehubAnonymousApproveundo["error"], - PostGamehubAnonymousApproveundo["request"] - >({ - method: "post", - url: `/gamehub/anonymous/ApproveUndo`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousGetclock.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousGetclock.ts deleted file mode 100644 index 93cb03a9..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousGetclock.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousGetclockMutationResponse, - PostGamehubAnonymousGetclockQueryParams, -} from "../models/PostGamehubAnonymousGetclock"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousGetclockClient = typeof client< - PostGamehubAnonymousGetclockMutationResponse, - Error, - never ->; -type PostGamehubAnonymousGetclock = { - data: PostGamehubAnonymousGetclockMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousGetclockQueryParams; - headerParams: never; - response: PostGamehubAnonymousGetclockMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/GetClock - */ -export function usePostGamehubAnonymousGetclock( - params?: PostGamehubAnonymousGetclock["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousGetclock["response"], - PostGamehubAnonymousGetclock["error"], - PostGamehubAnonymousGetclock["request"] - >; - client?: PostGamehubAnonymousGetclock["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousGetclock["data"], - PostGamehubAnonymousGetclock["error"], - PostGamehubAnonymousGetclock["request"] - >({ - method: "post", - url: `/gamehub/anonymous/GetClock`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousJoingamegroup.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousJoingamegroup.ts deleted file mode 100644 index c60cdc37..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousJoingamegroup.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousJoingamegroupMutationResponse, - PostGamehubAnonymousJoingamegroupQueryParams, -} from "../models/PostGamehubAnonymousJoingamegroup"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousJoingamegroupClient = typeof client< - PostGamehubAnonymousJoingamegroupMutationResponse, - Error, - never ->; -type PostGamehubAnonymousJoingamegroup = { - data: PostGamehubAnonymousJoingamegroupMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousJoingamegroupQueryParams; - headerParams: never; - response: PostGamehubAnonymousJoingamegroupMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/JoinGameGroup - */ -export function usePostGamehubAnonymousJoingamegroup( - params?: PostGamehubAnonymousJoingamegroup["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousJoingamegroup["response"], - PostGamehubAnonymousJoingamegroup["error"], - PostGamehubAnonymousJoingamegroup["request"] - >; - client?: PostGamehubAnonymousJoingamegroup["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousJoingamegroup["data"], - PostGamehubAnonymousJoingamegroup["error"], - PostGamehubAnonymousJoingamegroup["request"] - >({ - method: "post", - url: `/gamehub/anonymous/JoinGameGroup`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousMakemove.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousMakemove.ts deleted file mode 100644 index ad9e36d8..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousMakemove.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousMakemoveMutationResponse, - PostGamehubAnonymousMakemoveQueryParams, -} from "../models/PostGamehubAnonymousMakemove"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousMakemoveClient = typeof client< - PostGamehubAnonymousMakemoveMutationResponse, - Error, - never ->; -type PostGamehubAnonymousMakemove = { - data: PostGamehubAnonymousMakemoveMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousMakemoveQueryParams; - headerParams: never; - response: PostGamehubAnonymousMakemoveMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/MakeMove - */ -export function usePostGamehubAnonymousMakemove( - params?: PostGamehubAnonymousMakemove["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousMakemove["response"], - PostGamehubAnonymousMakemove["error"], - PostGamehubAnonymousMakemove["request"] - >; - client?: PostGamehubAnonymousMakemove["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousMakemove["data"], - PostGamehubAnonymousMakemove["error"], - PostGamehubAnonymousMakemove["request"] - >({ - method: "post", - url: `/gamehub/anonymous/MakeMove`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestrematch.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestrematch.ts deleted file mode 100644 index 80f858da..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestrematch.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousRequestrematchMutationResponse, - PostGamehubAnonymousRequestrematchQueryParams, -} from "../models/PostGamehubAnonymousRequestrematch"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousRequestrematchClient = typeof client< - PostGamehubAnonymousRequestrematchMutationResponse, - Error, - never ->; -type PostGamehubAnonymousRequestrematch = { - data: PostGamehubAnonymousRequestrematchMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousRequestrematchQueryParams; - headerParams: never; - response: PostGamehubAnonymousRequestrematchMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/RequestRematch - */ -export function usePostGamehubAnonymousRequestrematch( - params?: PostGamehubAnonymousRequestrematch["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousRequestrematch["response"], - PostGamehubAnonymousRequestrematch["error"], - PostGamehubAnonymousRequestrematch["request"] - >; - client?: PostGamehubAnonymousRequestrematch["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousRequestrematch["data"], - PostGamehubAnonymousRequestrematch["error"], - PostGamehubAnonymousRequestrematch["request"] - >({ - method: "post", - url: `/gamehub/anonymous/RequestRematch`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestundo.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestundo.ts deleted file mode 100644 index dbe4782e..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousRequestundo.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousRequestundoMutationResponse, - PostGamehubAnonymousRequestundoQueryParams, -} from "../models/PostGamehubAnonymousRequestundo"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousRequestundoClient = typeof client< - PostGamehubAnonymousRequestundoMutationResponse, - Error, - never ->; -type PostGamehubAnonymousRequestundo = { - data: PostGamehubAnonymousRequestundoMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousRequestundoQueryParams; - headerParams: never; - response: PostGamehubAnonymousRequestundoMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/RequestUndo - */ -export function usePostGamehubAnonymousRequestundo( - params?: PostGamehubAnonymousRequestundo["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousRequestundo["response"], - PostGamehubAnonymousRequestundo["error"], - PostGamehubAnonymousRequestundo["request"] - >; - client?: PostGamehubAnonymousRequestundo["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousRequestundo["data"], - PostGamehubAnonymousRequestundo["error"], - PostGamehubAnonymousRequestundo["request"] - >({ - method: "post", - url: `/gamehub/anonymous/RequestUndo`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousResign.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousResign.ts deleted file mode 100644 index c580ed7e..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousResign.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousResignMutationResponse, - PostGamehubAnonymousResignQueryParams, -} from "../models/PostGamehubAnonymousResign"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousResignClient = typeof client< - PostGamehubAnonymousResignMutationResponse, - Error, - never ->; -type PostGamehubAnonymousResign = { - data: PostGamehubAnonymousResignMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousResignQueryParams; - headerParams: never; - response: PostGamehubAnonymousResignMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/Resign - */ -export function usePostGamehubAnonymousResign( - params?: PostGamehubAnonymousResign["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousResign["response"], - PostGamehubAnonymousResign["error"], - PostGamehubAnonymousResign["request"] - >; - client?: PostGamehubAnonymousResign["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousResign["data"], - PostGamehubAnonymousResign["error"], - PostGamehubAnonymousResign["request"] - >({ - method: "post", - url: `/gamehub/anonymous/Resign`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendinvitationtoplay.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendinvitationtoplay.ts deleted file mode 100644 index 64a9ad39..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendinvitationtoplay.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousSendinvitationtoplayMutationResponse, - PostGamehubAnonymousSendinvitationtoplayQueryParams, -} from "../models/PostGamehubAnonymousSendinvitationtoplay"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousSendinvitationtoplayClient = typeof client< - PostGamehubAnonymousSendinvitationtoplayMutationResponse, - Error, - never ->; -type PostGamehubAnonymousSendinvitationtoplay = { - data: PostGamehubAnonymousSendinvitationtoplayMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousSendinvitationtoplayQueryParams; - headerParams: never; - response: PostGamehubAnonymousSendinvitationtoplayMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/SendInvitationToPlay - */ -export function usePostGamehubAnonymousSendinvitationtoplay( - params?: PostGamehubAnonymousSendinvitationtoplay["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousSendinvitationtoplay["response"], - PostGamehubAnonymousSendinvitationtoplay["error"], - PostGamehubAnonymousSendinvitationtoplay["request"] - >; - client?: PostGamehubAnonymousSendinvitationtoplay["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousSendinvitationtoplay["data"], - PostGamehubAnonymousSendinvitationtoplay["error"], - PostGamehubAnonymousSendinvitationtoplay["request"] - >({ - method: "post", - url: `/gamehub/anonymous/SendInvitationToPlay`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendmessage.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendmessage.ts deleted file mode 100644 index c5ff38a6..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubAnonymousSendmessage.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubAnonymousSendmessageMutationResponse, - PostGamehubAnonymousSendmessageQueryParams, -} from "../models/PostGamehubAnonymousSendmessage"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubAnonymousSendmessageClient = typeof client< - PostGamehubAnonymousSendmessageMutationResponse, - Error, - never ->; -type PostGamehubAnonymousSendmessage = { - data: PostGamehubAnonymousSendmessageMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubAnonymousSendmessageQueryParams; - headerParams: never; - response: PostGamehubAnonymousSendmessageMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/anonymous/SendMessage - */ -export function usePostGamehubAnonymousSendmessage( - params?: PostGamehubAnonymousSendmessage["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubAnonymousSendmessage["response"], - PostGamehubAnonymousSendmessage["error"], - PostGamehubAnonymousSendmessage["request"] - >; - client?: PostGamehubAnonymousSendmessage["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubAnonymousSendmessage["data"], - PostGamehubAnonymousSendmessage["error"], - PostGamehubAnonymousSendmessage["request"] - >({ - method: "post", - url: `/gamehub/anonymous/SendMessage`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproverematch.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproverematch.ts deleted file mode 100644 index 94dc23a7..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproverematch.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredApproverematchMutationResponse, - PostGamehubRegisteredApproverematchQueryParams, -} from "../models/PostGamehubRegisteredApproverematch"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredApproverematchClient = typeof client< - PostGamehubRegisteredApproverematchMutationResponse, - Error, - never ->; -type PostGamehubRegisteredApproverematch = { - data: PostGamehubRegisteredApproverematchMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredApproverematchQueryParams; - headerParams: never; - response: PostGamehubRegisteredApproverematchMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/ApproveRematch - */ -export function usePostGamehubRegisteredApproverematch( - params?: PostGamehubRegisteredApproverematch["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredApproverematch["response"], - PostGamehubRegisteredApproverematch["error"], - PostGamehubRegisteredApproverematch["request"] - >; - client?: PostGamehubRegisteredApproverematch["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredApproverematch["data"], - PostGamehubRegisteredApproverematch["error"], - PostGamehubRegisteredApproverematch["request"] - >({ - method: "post", - url: `/gamehub/registered/ApproveRematch`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproveundo.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproveundo.ts deleted file mode 100644 index 58be09b5..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredApproveundo.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredApproveundoMutationResponse, - PostGamehubRegisteredApproveundoQueryParams, -} from "../models/PostGamehubRegisteredApproveundo"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredApproveundoClient = typeof client< - PostGamehubRegisteredApproveundoMutationResponse, - Error, - never ->; -type PostGamehubRegisteredApproveundo = { - data: PostGamehubRegisteredApproveundoMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredApproveundoQueryParams; - headerParams: never; - response: PostGamehubRegisteredApproveundoMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/ApproveUndo - */ -export function usePostGamehubRegisteredApproveundo( - params?: PostGamehubRegisteredApproveundo["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredApproveundo["response"], - PostGamehubRegisteredApproveundo["error"], - PostGamehubRegisteredApproveundo["request"] - >; - client?: PostGamehubRegisteredApproveundo["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredApproveundo["data"], - PostGamehubRegisteredApproveundo["error"], - PostGamehubRegisteredApproveundo["request"] - >({ - method: "post", - url: `/gamehub/registered/ApproveUndo`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredGetclock.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredGetclock.ts deleted file mode 100644 index 0aa812c1..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredGetclock.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredGetclockMutationResponse, - PostGamehubRegisteredGetclockQueryParams, -} from "../models/PostGamehubRegisteredGetclock"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredGetclockClient = typeof client< - PostGamehubRegisteredGetclockMutationResponse, - Error, - never ->; -type PostGamehubRegisteredGetclock = { - data: PostGamehubRegisteredGetclockMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredGetclockQueryParams; - headerParams: never; - response: PostGamehubRegisteredGetclockMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/GetClock - */ -export function usePostGamehubRegisteredGetclock( - params?: PostGamehubRegisteredGetclock["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredGetclock["response"], - PostGamehubRegisteredGetclock["error"], - PostGamehubRegisteredGetclock["request"] - >; - client?: PostGamehubRegisteredGetclock["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredGetclock["data"], - PostGamehubRegisteredGetclock["error"], - PostGamehubRegisteredGetclock["request"] - >({ - method: "post", - url: `/gamehub/registered/GetClock`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredJoingamegroup.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredJoingamegroup.ts deleted file mode 100644 index 40784c60..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredJoingamegroup.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredJoingamegroupMutationResponse, - PostGamehubRegisteredJoingamegroupQueryParams, -} from "../models/PostGamehubRegisteredJoingamegroup"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredJoingamegroupClient = typeof client< - PostGamehubRegisteredJoingamegroupMutationResponse, - Error, - never ->; -type PostGamehubRegisteredJoingamegroup = { - data: PostGamehubRegisteredJoingamegroupMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredJoingamegroupQueryParams; - headerParams: never; - response: PostGamehubRegisteredJoingamegroupMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/JoinGameGroup - */ -export function usePostGamehubRegisteredJoingamegroup( - params?: PostGamehubRegisteredJoingamegroup["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredJoingamegroup["response"], - PostGamehubRegisteredJoingamegroup["error"], - PostGamehubRegisteredJoingamegroup["request"] - >; - client?: PostGamehubRegisteredJoingamegroup["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredJoingamegroup["data"], - PostGamehubRegisteredJoingamegroup["error"], - PostGamehubRegisteredJoingamegroup["request"] - >({ - method: "post", - url: `/gamehub/registered/JoinGameGroup`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredMakemove.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredMakemove.ts deleted file mode 100644 index d0970c59..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredMakemove.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredMakemoveMutationResponse, - PostGamehubRegisteredMakemoveQueryParams, -} from "../models/PostGamehubRegisteredMakemove"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredMakemoveClient = typeof client< - PostGamehubRegisteredMakemoveMutationResponse, - Error, - never ->; -type PostGamehubRegisteredMakemove = { - data: PostGamehubRegisteredMakemoveMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredMakemoveQueryParams; - headerParams: never; - response: PostGamehubRegisteredMakemoveMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/MakeMove - */ -export function usePostGamehubRegisteredMakemove( - params?: PostGamehubRegisteredMakemove["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredMakemove["response"], - PostGamehubRegisteredMakemove["error"], - PostGamehubRegisteredMakemove["request"] - >; - client?: PostGamehubRegisteredMakemove["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredMakemove["data"], - PostGamehubRegisteredMakemove["error"], - PostGamehubRegisteredMakemove["request"] - >({ - method: "post", - url: `/gamehub/registered/MakeMove`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestrematch.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestrematch.ts deleted file mode 100644 index 8e914053..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestrematch.ts +++ /dev/null @@ -1,61 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredRequestrematchMutationResponse, - PostGamehubRegisteredRequestrematchQueryParams, -} from "../models/PostGamehubRegisteredRequestrematch"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredRequestrematchClient = typeof client< - PostGamehubRegisteredRequestrematchMutationResponse, - Error, - never ->; -type PostGamehubRegisteredRequestrematch = { - data: PostGamehubRegisteredRequestrematchMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredRequestrematchQueryParams; - headerParams: never; - response: PostGamehubRegisteredRequestrematchMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/RequestRematch - */ -export function usePostGamehubRegisteredRequestrematch( - params?: PostGamehubRegisteredRequestrematch["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredRequestrematch["response"], - PostGamehubRegisteredRequestrematch["error"], - PostGamehubRegisteredRequestrematch["request"] - >; - client?: PostGamehubRegisteredRequestrematch["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredRequestrematch["data"], - PostGamehubRegisteredRequestrematch["error"], - PostGamehubRegisteredRequestrematch["request"] - >({ - method: "post", - url: `/gamehub/registered/RequestRematch`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestundo.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestundo.ts deleted file mode 100644 index 22c461db..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredRequestundo.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredRequestundoMutationResponse, - PostGamehubRegisteredRequestundoQueryParams, -} from "../models/PostGamehubRegisteredRequestundo"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredRequestundoClient = typeof client< - PostGamehubRegisteredRequestundoMutationResponse, - Error, - never ->; -type PostGamehubRegisteredRequestundo = { - data: PostGamehubRegisteredRequestundoMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredRequestundoQueryParams; - headerParams: never; - response: PostGamehubRegisteredRequestundoMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/RequestUndo - */ -export function usePostGamehubRegisteredRequestundo( - params?: PostGamehubRegisteredRequestundo["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredRequestundo["response"], - PostGamehubRegisteredRequestundo["error"], - PostGamehubRegisteredRequestundo["request"] - >; - client?: PostGamehubRegisteredRequestundo["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredRequestundo["data"], - PostGamehubRegisteredRequestundo["error"], - PostGamehubRegisteredRequestundo["request"] - >({ - method: "post", - url: `/gamehub/registered/RequestUndo`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredResign.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredResign.ts deleted file mode 100644 index fd087a17..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredResign.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredResignMutationResponse, - PostGamehubRegisteredResignQueryParams, -} from "../models/PostGamehubRegisteredResign"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredResignClient = typeof client< - PostGamehubRegisteredResignMutationResponse, - Error, - never ->; -type PostGamehubRegisteredResign = { - data: PostGamehubRegisteredResignMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredResignQueryParams; - headerParams: never; - response: PostGamehubRegisteredResignMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/Resign - */ -export function usePostGamehubRegisteredResign( - params?: PostGamehubRegisteredResign["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredResign["response"], - PostGamehubRegisteredResign["error"], - PostGamehubRegisteredResign["request"] - >; - client?: PostGamehubRegisteredResign["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredResign["data"], - PostGamehubRegisteredResign["error"], - PostGamehubRegisteredResign["request"] - >({ - method: "post", - url: `/gamehub/registered/Resign`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendinvitationtoplay.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendinvitationtoplay.ts deleted file mode 100644 index a9a6d5e7..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendinvitationtoplay.ts +++ /dev/null @@ -1,63 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredSendinvitationtoplayMutationResponse, - PostGamehubRegisteredSendinvitationtoplayQueryParams, -} from "../models/PostGamehubRegisteredSendinvitationtoplay"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredSendinvitationtoplayClient = typeof client< - PostGamehubRegisteredSendinvitationtoplayMutationResponse, - Error, - never ->; -type PostGamehubRegisteredSendinvitationtoplay = { - data: PostGamehubRegisteredSendinvitationtoplayMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredSendinvitationtoplayQueryParams; - headerParams: never; - response: PostGamehubRegisteredSendinvitationtoplayMutationResponse; - client: { - parameters: Partial< - Parameters[0] - >; - return: Awaited< - ReturnType - >; - }; -}; -/** - * @link /gamehub/registered/SendInvitationToPlay - */ -export function usePostGamehubRegisteredSendinvitationtoplay( - params?: PostGamehubRegisteredSendinvitationtoplay["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredSendinvitationtoplay["response"], - PostGamehubRegisteredSendinvitationtoplay["error"], - PostGamehubRegisteredSendinvitationtoplay["request"] - >; - client?: PostGamehubRegisteredSendinvitationtoplay["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredSendinvitationtoplay["data"], - PostGamehubRegisteredSendinvitationtoplay["error"], - PostGamehubRegisteredSendinvitationtoplay["request"] - >({ - method: "post", - url: `/gamehub/registered/SendInvitationToPlay`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendmessage.ts b/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendmessage.ts deleted file mode 100644 index c10ab7a3..00000000 --- a/GomokuClient/packages/gomoku-api/client/hooks/usePostGamehubRegisteredSendmessage.ts +++ /dev/null @@ -1,59 +0,0 @@ -import client from "../../http"; -import { useMutation } from "@tanstack/react-query"; -import type { - PostGamehubRegisteredSendmessageMutationResponse, - PostGamehubRegisteredSendmessageQueryParams, -} from "../models/PostGamehubRegisteredSendmessage"; -import type { UseMutationOptions } from "@tanstack/react-query"; - -type PostGamehubRegisteredSendmessageClient = typeof client< - PostGamehubRegisteredSendmessageMutationResponse, - Error, - never ->; -type PostGamehubRegisteredSendmessage = { - data: PostGamehubRegisteredSendmessageMutationResponse; - error: Error; - request: never; - pathParams: never; - queryParams: PostGamehubRegisteredSendmessageQueryParams; - headerParams: never; - response: PostGamehubRegisteredSendmessageMutationResponse; - client: { - parameters: Partial[0]>; - return: Awaited>; - }; -}; -/** - * @link /gamehub/registered/SendMessage - */ -export function usePostGamehubRegisteredSendmessage( - params?: PostGamehubRegisteredSendmessage["queryParams"], - options: { - mutation?: UseMutationOptions< - PostGamehubRegisteredSendmessage["response"], - PostGamehubRegisteredSendmessage["error"], - PostGamehubRegisteredSendmessage["request"] - >; - client?: PostGamehubRegisteredSendmessage["client"]["parameters"]; - } = {}, -) { - const { mutation: mutationOptions, client: clientOptions = {} } = - options ?? {}; - return useMutation({ - mutationFn: async () => { - const res = await client< - PostGamehubRegisteredSendmessage["data"], - PostGamehubRegisteredSendmessage["error"], - PostGamehubRegisteredSendmessage["request"] - >({ - method: "post", - url: `/gamehub/registered/SendMessage`, - params, - ...clientOptions, - }); - return res.data; - }, - ...mutationOptions, - }); -} diff --git a/GomokuClient/packages/gomoku-api/client/models/ApproveRematchMessage.ts b/GomokuClient/packages/gomoku-api/client/models/ApproveRematchMessage.ts deleted file mode 100644 index 852fbede..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/ApproveRematchMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type ApproveRematchMessage = { - /** - * @type string - */ - gameId: string | null; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/ApproveUndoMessage.ts b/GomokuClient/packages/gomoku-api/client/models/ApproveUndoMessage.ts deleted file mode 100644 index e2a71adb..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/ApproveUndoMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type ApproveUndoMessage = { - /** - * @type string - */ - gameId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/ChatMessageClientMessage.ts b/GomokuClient/packages/gomoku-api/client/models/ChatMessageClientMessage.ts deleted file mode 100644 index 896a84dc..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/ChatMessageClientMessage.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type ChatMessageClientMessage = { - /** - * @type string - */ - gameId: string; - /** - * @type string - */ - user: string; - /** - * @type string - */ - message: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/GetClockMessage.ts b/GomokuClient/packages/gomoku-api/client/models/GetClockMessage.ts deleted file mode 100644 index a175f080..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/GetClockMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type GetClockMessage = { - /** - * @type string - */ - gameId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/MakeMoveClientMessage.ts b/GomokuClient/packages/gomoku-api/client/models/MakeMoveClientMessage.ts deleted file mode 100644 index 92272b89..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/MakeMoveClientMessage.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type MakeMoveClientMessage = { - /** - * @type string - */ - gameId: string; - /** - * @type integer, int32 - */ - x: number; - /** - * @type integer, int32 - */ - y: number; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproverematch.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproverematch.ts deleted file mode 100644 index a6d72095..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproverematch.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ApproveRematchMessage } from "./ApproveRematchMessage"; - -export type PostGamehubAnonymousApproverematchQueryParams = { - /** - * @type object | undefined - */ - message?: ApproveRematchMessage; -}; -export type PostGamehubAnonymousApproverematchMutationResponse = any; -export type PostGamehubAnonymousApproverematchMutation = { - Response: PostGamehubAnonymousApproverematchMutationResponse; - QueryParams: PostGamehubAnonymousApproverematchQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproveundo.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproveundo.ts deleted file mode 100644 index 47361176..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousApproveundo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ApproveUndoMessage } from "./ApproveUndoMessage"; - -export type PostGamehubAnonymousApproveundoQueryParams = { - /** - * @type object | undefined - */ - message?: ApproveUndoMessage; -}; -export type PostGamehubAnonymousApproveundoMutationResponse = any; -export type PostGamehubAnonymousApproveundoMutation = { - Response: PostGamehubAnonymousApproveundoMutationResponse; - QueryParams: PostGamehubAnonymousApproveundoQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousGetclock.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousGetclock.ts deleted file mode 100644 index 5a380b15..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousGetclock.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { GetClockMessage } from "./GetClockMessage"; - -export type PostGamehubAnonymousGetclockQueryParams = { - /** - * @type object | undefined - */ - message?: GetClockMessage; -}; -export type PostGamehubAnonymousGetclockMutationResponse = any; -export type PostGamehubAnonymousGetclockMutation = { - Response: PostGamehubAnonymousGetclockMutationResponse; - QueryParams: PostGamehubAnonymousGetclockQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousJoingamegroup.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousJoingamegroup.ts deleted file mode 100644 index 5625b11d..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousJoingamegroup.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type PostGamehubAnonymousJoingamegroupQueryParams = { - /** - * @type string | undefined - */ - gameId?: string; -}; -export type PostGamehubAnonymousJoingamegroupMutationResponse = any; -export type PostGamehubAnonymousJoingamegroupMutation = { - Response: PostGamehubAnonymousJoingamegroupMutationResponse; - QueryParams: PostGamehubAnonymousJoingamegroupQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousMakemove.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousMakemove.ts deleted file mode 100644 index a661e6d5..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousMakemove.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { MakeMoveClientMessage } from "./MakeMoveClientMessage"; - -export type PostGamehubAnonymousMakemoveQueryParams = { - /** - * @type object | undefined - */ - message?: MakeMoveClientMessage; -}; -export type PostGamehubAnonymousMakemoveMutationResponse = any; -export type PostGamehubAnonymousMakemoveMutation = { - Response: PostGamehubAnonymousMakemoveMutationResponse; - QueryParams: PostGamehubAnonymousMakemoveQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestrematch.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestrematch.ts deleted file mode 100644 index 1e73c0a6..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestrematch.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { RematchRequestMessage } from "./RematchRequestMessage"; - -export type PostGamehubAnonymousRequestrematchQueryParams = { - /** - * @type object | undefined - */ - message?: RematchRequestMessage; -}; -export type PostGamehubAnonymousRequestrematchMutationResponse = any; -export type PostGamehubAnonymousRequestrematchMutation = { - Response: PostGamehubAnonymousRequestrematchMutationResponse; - QueryParams: PostGamehubAnonymousRequestrematchQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestundo.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestundo.ts deleted file mode 100644 index 93074a5c..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousRequestundo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { RequestUndoMessage } from "./RequestUndoMessage"; - -export type PostGamehubAnonymousRequestundoQueryParams = { - /** - * @type object | undefined - */ - message?: RequestUndoMessage; -}; -export type PostGamehubAnonymousRequestundoMutationResponse = any; -export type PostGamehubAnonymousRequestundoMutation = { - Response: PostGamehubAnonymousRequestundoMutationResponse; - QueryParams: PostGamehubAnonymousRequestundoQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousResign.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousResign.ts deleted file mode 100644 index 0ad9ec1b..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousResign.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ResignClientMessage } from "./ResignClientMessage"; - -export type PostGamehubAnonymousResignQueryParams = { - /** - * @type object | undefined - */ - message?: ResignClientMessage; -}; -export type PostGamehubAnonymousResignMutationResponse = any; -export type PostGamehubAnonymousResignMutation = { - Response: PostGamehubAnonymousResignMutationResponse; - QueryParams: PostGamehubAnonymousResignQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendinvitationtoplay.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendinvitationtoplay.ts deleted file mode 100644 index 8a30dd45..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendinvitationtoplay.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { SendInvitationToPlayMessage } from "./SendInvitationToPlayMessage"; - -export type PostGamehubAnonymousSendinvitationtoplayQueryParams = { - /** - * @type object | undefined - */ - _?: SendInvitationToPlayMessage; -}; -export type PostGamehubAnonymousSendinvitationtoplayMutationResponse = any; -export type PostGamehubAnonymousSendinvitationtoplayMutation = { - Response: PostGamehubAnonymousSendinvitationtoplayMutationResponse; - QueryParams: PostGamehubAnonymousSendinvitationtoplayQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendmessage.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendmessage.ts deleted file mode 100644 index 8ab001e7..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubAnonymousSendmessage.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ChatMessageClientMessage } from "./ChatMessageClientMessage"; - -export type PostGamehubAnonymousSendmessageQueryParams = { - /** - * @type object | undefined - */ - messageRequest?: ChatMessageClientMessage; -}; -export type PostGamehubAnonymousSendmessageMutationResponse = any; -export type PostGamehubAnonymousSendmessageMutation = { - Response: PostGamehubAnonymousSendmessageMutationResponse; - QueryParams: PostGamehubAnonymousSendmessageQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproverematch.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproverematch.ts deleted file mode 100644 index bd24aecf..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproverematch.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ApproveRematchMessage } from "./ApproveRematchMessage"; - -export type PostGamehubRegisteredApproverematchQueryParams = { - /** - * @type object | undefined - */ - message?: ApproveRematchMessage; -}; -export type PostGamehubRegisteredApproverematchMutationResponse = any; -export type PostGamehubRegisteredApproverematchMutation = { - Response: PostGamehubRegisteredApproverematchMutationResponse; - QueryParams: PostGamehubRegisteredApproverematchQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproveundo.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproveundo.ts deleted file mode 100644 index 8ae971ce..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredApproveundo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ApproveUndoMessage } from "./ApproveUndoMessage"; - -export type PostGamehubRegisteredApproveundoQueryParams = { - /** - * @type object | undefined - */ - message?: ApproveUndoMessage; -}; -export type PostGamehubRegisteredApproveundoMutationResponse = any; -export type PostGamehubRegisteredApproveundoMutation = { - Response: PostGamehubRegisteredApproveundoMutationResponse; - QueryParams: PostGamehubRegisteredApproveundoQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredGetclock.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredGetclock.ts deleted file mode 100644 index fd7e624c..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredGetclock.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { GetClockMessage } from "./GetClockMessage"; - -export type PostGamehubRegisteredGetclockQueryParams = { - /** - * @type object | undefined - */ - message?: GetClockMessage; -}; -export type PostGamehubRegisteredGetclockMutationResponse = any; -export type PostGamehubRegisteredGetclockMutation = { - Response: PostGamehubRegisteredGetclockMutationResponse; - QueryParams: PostGamehubRegisteredGetclockQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredJoingamegroup.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredJoingamegroup.ts deleted file mode 100644 index 9547da3f..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredJoingamegroup.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type PostGamehubRegisteredJoingamegroupQueryParams = { - /** - * @type string | undefined - */ - gameId?: string; -}; -export type PostGamehubRegisteredJoingamegroupMutationResponse = any; -export type PostGamehubRegisteredJoingamegroupMutation = { - Response: PostGamehubRegisteredJoingamegroupMutationResponse; - QueryParams: PostGamehubRegisteredJoingamegroupQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredMakemove.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredMakemove.ts deleted file mode 100644 index 35cf051d..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredMakemove.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { MakeMoveClientMessage } from "./MakeMoveClientMessage"; - -export type PostGamehubRegisteredMakemoveQueryParams = { - /** - * @type object | undefined - */ - message?: MakeMoveClientMessage; -}; -export type PostGamehubRegisteredMakemoveMutationResponse = any; -export type PostGamehubRegisteredMakemoveMutation = { - Response: PostGamehubRegisteredMakemoveMutationResponse; - QueryParams: PostGamehubRegisteredMakemoveQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestrematch.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestrematch.ts deleted file mode 100644 index eaf08ce1..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestrematch.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { RematchRequestMessage } from "./RematchRequestMessage"; - -export type PostGamehubRegisteredRequestrematchQueryParams = { - /** - * @type object | undefined - */ - message?: RematchRequestMessage; -}; -export type PostGamehubRegisteredRequestrematchMutationResponse = any; -export type PostGamehubRegisteredRequestrematchMutation = { - Response: PostGamehubRegisteredRequestrematchMutationResponse; - QueryParams: PostGamehubRegisteredRequestrematchQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestundo.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestundo.ts deleted file mode 100644 index 6facf12b..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredRequestundo.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { RequestUndoMessage } from "./RequestUndoMessage"; - -export type PostGamehubRegisteredRequestundoQueryParams = { - /** - * @type object | undefined - */ - message?: RequestUndoMessage; -}; -export type PostGamehubRegisteredRequestundoMutationResponse = any; -export type PostGamehubRegisteredRequestundoMutation = { - Response: PostGamehubRegisteredRequestundoMutationResponse; - QueryParams: PostGamehubRegisteredRequestundoQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredResign.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredResign.ts deleted file mode 100644 index baca3880..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredResign.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ResignClientMessage } from "./ResignClientMessage"; - -export type PostGamehubRegisteredResignQueryParams = { - /** - * @type object | undefined - */ - message?: ResignClientMessage; -}; -export type PostGamehubRegisteredResignMutationResponse = any; -export type PostGamehubRegisteredResignMutation = { - Response: PostGamehubRegisteredResignMutationResponse; - QueryParams: PostGamehubRegisteredResignQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendinvitationtoplay.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendinvitationtoplay.ts deleted file mode 100644 index 13c05c94..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendinvitationtoplay.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { SendInvitationToPlayMessage } from "./SendInvitationToPlayMessage"; - -export type PostGamehubRegisteredSendinvitationtoplayQueryParams = { - /** - * @type object | undefined - */ - message?: SendInvitationToPlayMessage; -}; -export type PostGamehubRegisteredSendinvitationtoplayMutationResponse = any; -export type PostGamehubRegisteredSendinvitationtoplayMutation = { - Response: PostGamehubRegisteredSendinvitationtoplayMutationResponse; - QueryParams: PostGamehubRegisteredSendinvitationtoplayQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendmessage.ts b/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendmessage.ts deleted file mode 100644 index 06fcf45b..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/PostGamehubRegisteredSendmessage.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { ChatMessageClientMessage } from "./ChatMessageClientMessage"; - -export type PostGamehubRegisteredSendmessageQueryParams = { - /** - * @type object | undefined - */ - messageRequest?: ChatMessageClientMessage; -}; -export type PostGamehubRegisteredSendmessageMutationResponse = any; -export type PostGamehubRegisteredSendmessageMutation = { - Response: PostGamehubRegisteredSendmessageMutationResponse; - QueryParams: PostGamehubRegisteredSendmessageQueryParams; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/RematchRequestMessage.ts b/GomokuClient/packages/gomoku-api/client/models/RematchRequestMessage.ts deleted file mode 100644 index 5ad2b45a..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/RematchRequestMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type RematchRequestMessage = { - /** - * @type string - */ - gameId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/RequestUndoMessage.ts b/GomokuClient/packages/gomoku-api/client/models/RequestUndoMessage.ts deleted file mode 100644 index 48a8cf5a..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/RequestUndoMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type RequestUndoMessage = { - /** - * @type string - */ - gameId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/ResignClientMessage.ts b/GomokuClient/packages/gomoku-api/client/models/ResignClientMessage.ts deleted file mode 100644 index f205af83..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/ResignClientMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type ResignClientMessage = { - /** - * @type string - */ - gameId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/SendInvitationToPlayMessage.ts b/GomokuClient/packages/gomoku-api/client/models/SendInvitationToPlayMessage.ts deleted file mode 100644 index 7428df64..00000000 --- a/GomokuClient/packages/gomoku-api/client/models/SendInvitationToPlayMessage.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type SendInvitationToPlayMessage = { - /** - * @type string - */ - playerId: string; -}; diff --git a/GomokuClient/packages/gomoku-api/client/models/index.ts b/GomokuClient/packages/gomoku-api/client/models/index.ts index 50ffb14f..a66b93ed 100644 --- a/GomokuClient/packages/gomoku-api/client/models/index.ts +++ b/GomokuClient/packages/gomoku-api/client/models/index.ts @@ -1,8 +1,5 @@ export * from "./AddAnonymousPlayerToGameRequest"; export * from "./AddPlayerToGameResponse"; -export * from "./ApproveRematchMessage"; -export * from "./ApproveUndoMessage"; -export * from "./ChatMessageClientMessage"; export * from "./ClockDto"; export * from "./CreateGameRequest"; export * from "./CreateGameResponse"; @@ -18,12 +15,10 @@ export * from "./GetApiProfilesUsernameGames"; export * from "./GetApiV1RapfiTest"; export * from "./GetAvailableGamesResponse"; export * from "./GetAvailableGamesResponseIEnumerablePaginatedResponse"; -export * from "./GetClockMessage"; export * from "./GetGameHistoryResponse"; export * from "./GetGamesByUsernameResponse"; export * from "./GetGamesByUsernameResponseIEnumerablePaginatedResponse"; export * from "./GetHealth"; -export * from "./MakeMoveClientMessage"; export * from "./PaginationMetadata"; export * from "./PlayerDto"; export * from "./PlayersDto"; @@ -31,32 +26,8 @@ export * from "./PostApiGameAnonymous"; export * from "./PostApiGameAnonymousGameidJoin"; export * from "./PostApiGameRegistered"; export * from "./PostApiGameRegisteredGameidJoin"; -export * from "./PostGamehubAnonymousApproverematch"; -export * from "./PostGamehubAnonymousApproveundo"; -export * from "./PostGamehubAnonymousGetclock"; -export * from "./PostGamehubAnonymousJoingamegroup"; -export * from "./PostGamehubAnonymousMakemove"; -export * from "./PostGamehubAnonymousRequestrematch"; -export * from "./PostGamehubAnonymousRequestundo"; -export * from "./PostGamehubAnonymousResign"; -export * from "./PostGamehubAnonymousSendinvitationtoplay"; -export * from "./PostGamehubAnonymousSendmessage"; -export * from "./PostGamehubRegisteredApproverematch"; -export * from "./PostGamehubRegisteredApproveundo"; -export * from "./PostGamehubRegisteredGetclock"; -export * from "./PostGamehubRegisteredJoingamegroup"; -export * from "./PostGamehubRegisteredMakemove"; -export * from "./PostGamehubRegisteredRequestrematch"; -export * from "./PostGamehubRegisteredRequestundo"; -export * from "./PostGamehubRegisteredResign"; -export * from "./PostGamehubRegisteredSendinvitationtoplay"; -export * from "./PostGamehubRegisteredSendmessage"; export * from "./ProblemDetails"; export * from "./ProfileDto"; -export * from "./RematchRequestMessage"; -export * from "./RequestUndoMessage"; -export * from "./ResignClientMessage"; -export * from "./SendInvitationToPlayMessage"; export * from "./TileDto"; export * from "./TimeControlDto"; export * from "./UsernamesDto"; diff --git a/GomokuClient/packages/gomoku-api/schema.json b/GomokuClient/packages/gomoku-api/schema.json index 3d9f50c5..dc17872a 100644 --- a/GomokuClient/packages/gomoku-api/schema.json +++ b/GomokuClient/packages/gomoku-api/schema.json @@ -764,315 +764,6 @@ } ] } - }, - "/gamehub/anonymous/JoinGameGroup": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "gameId", - "in": "query", - "schema": { - "type": "string" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/GetClock": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/GetClockMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/MakeMove": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/MakeMoveClientMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/RequestUndo": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RequestUndoMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/ApproveUndo": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ApproveUndoMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/Resign": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ResignClientMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/RequestRematch": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RematchRequestMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/ApproveRematch": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ApproveRematchMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/SendMessage": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "messageRequest", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ChatMessageClientMessage" - } - } - ], - "responses": {}, - "security": [{}] - } - }, - "/gamehub/anonymous/SendInvitationToPlay": { - "post": { - "tags": ["AnonymousGameHub"], - "parameters": [ - { - "name": "_", - "in": "query", - "schema": { - "$ref": "#/components/schemas/SendInvitationToPlayMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/JoinGameGroup": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "gameId", - "in": "query", - "schema": { - "type": "string" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/GetClock": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/GetClockMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/MakeMove": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/MakeMoveClientMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/RequestUndo": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RequestUndoMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/ApproveUndo": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ApproveUndoMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/Resign": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ResignClientMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/RequestRematch": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RematchRequestMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/ApproveRematch": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ApproveRematchMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/SendMessage": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "messageRequest", - "in": "query", - "schema": { - "$ref": "#/components/schemas/ChatMessageClientMessage" - } - } - ], - "responses": {} - } - }, - "/gamehub/registered/SendInvitationToPlay": { - "post": { - "tags": ["RegisteredGameHub"], - "parameters": [ - { - "name": "message", - "in": "query", - "schema": { - "$ref": "#/components/schemas/SendInvitationToPlayMessage" - } - } - ], - "responses": {} - } } }, "components": { @@ -1103,47 +794,6 @@ }, "additionalProperties": false }, - "ApproveRematchMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "type": "string", - "nullable": true - } - }, - "additionalProperties": false - }, - "ApproveUndoMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, - "ChatMessageClientMessage": { - "required": ["gameId", "message", "user"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - }, - "user": { - "minLength": 1, - "type": "string" - }, - "message": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, "ClockDto": { "required": ["black", "white"], "type": "object", @@ -1254,17 +904,6 @@ }, "additionalProperties": false }, - "GetClockMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, "GetGameHistoryResponse": { "required": [ "boardSize", @@ -1379,25 +1018,6 @@ }, "additionalProperties": false }, - "MakeMoveClientMessage": { - "required": ["gameId", "x", "y"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - }, - "x": { - "type": "integer", - "format": "int32" - }, - "y": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false - }, "PaginationMetadata": { "required": ["hasMoreItems", "totalCount"], "type": "object", @@ -1485,50 +1105,6 @@ }, "additionalProperties": false }, - "RematchRequestMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, - "RequestUndoMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, - "ResignClientMessage": { - "required": ["gameId"], - "type": "object", - "properties": { - "gameId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, - "SendInvitationToPlayMessage": { - "required": ["playerId"], - "type": "object", - "properties": { - "playerId": { - "minLength": 1, - "type": "string" - } - }, - "additionalProperties": false - }, "TileDto": { "required": ["x", "y"], "type": "object", @@ -1573,22 +1149,6 @@ }, "additionalProperties": false } - }, - "securitySchemes": { - "Bearer": { - "type": "http", - "description": "Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\"", - "scheme": "Bearer", - "bearerFormat": "JWT" - } - } - }, - "tags": [ - { - "name": "AnonymousGameHub" - }, - { - "name": "RegisteredGameHub" } - ] + } } diff --git a/GomokuServer/src/GomokuServer.Api/Extensions/ServiceCollectionExtensions.cs b/GomokuServer/src/GomokuServer.Api/Extensions/ServiceCollectionExtensions.cs index 45fbef7d..4159d91c 100644 --- a/GomokuServer/src/GomokuServer.Api/Extensions/ServiceCollectionExtensions.cs +++ b/GomokuServer/src/GomokuServer.Api/Extensions/ServiceCollectionExtensions.cs @@ -40,21 +40,9 @@ public static IServiceCollection RegisterSwagger(this IServiceCollection service options.ExampleFilters(); - options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme - { - Name = "Authorization", - Type = SecuritySchemeType.Http, - Scheme = "Bearer", - BearerFormat = "JWT", - In = ParameterLocation.Header, - Description = "Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\"" - }); - options.OperationFilter(); options.OperationFilter(); options.OperationFilter(); - - options.AddSignalRSwaggerGen(); }); return services; diff --git a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AnalyzerTestBase.cs b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AnalyzerTestBase.cs index 281ee5fa..c03eb5c9 100644 --- a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AnalyzerTestBase.cs +++ b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AnalyzerTestBase.cs @@ -1,15 +1,14 @@ using Microsoft.CodeAnalysis.CSharp.Testing; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Testing; -using Microsoft.CodeAnalysis.Testing.Verifiers; namespace GomokuServer.Analyzer.UnitTests; public abstract class AnalyzerTestBase where TAnalyzer : DiagnosticAnalyzer, new() { - protected CSharpAnalyzerTest CreateAnalyzerTest(string sourceCode, params DiagnosticResult[] expectedDiagnostics) + protected CSharpAnalyzerTest CreateAnalyzerTest(string sourceCode, params DiagnosticResult[] expectedDiagnostics) { - var test = new CSharpAnalyzerTest + var test = new CSharpAnalyzerTest { TestCode = sourceCode }; diff --git a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/GomokuServer.Analyzer.UnitTests.csproj b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/GomokuServer.Analyzer.UnitTests.csproj index a48d8fd7..eabb3aff 100644 --- a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/GomokuServer.Analyzer.UnitTests.csproj +++ b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/GomokuServer.Analyzer.UnitTests.csproj @@ -10,19 +10,24 @@ - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + +