diff --git a/src/utils/api/apiRequestHandler.ts b/src/utils/api/apiRequestHandler.ts index 6b54cb5..306bb2a 100644 --- a/src/utils/api/apiRequestHandler.ts +++ b/src/utils/api/apiRequestHandler.ts @@ -17,6 +17,7 @@ import ReconnectingEventSource from "reconnecting-eventsource"; const TEST_ACCESS_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6ImMxcDM0YjhqZHBmOG04Zm43cnIwIiwiU2Vzc2lvbiI6ImMxcDM0YjhqZHBmOG04Zm43cnJnIiwiVXNlciI6IiIsIlRhcmlmZiI6MCwiQ3JlYXRlZCI6MTYxODA5NjY4NTc4MCwiTGFzdFNlZW4iOjE2MTgwOTY2ODU3ODF9.ciJoJiOxzIPv0LY4h3rG8Tf3AsSBXXLcYEpyN9mIki0"; +/** @deprecated */ class ApiRequestHandler { private authApiUrl: string; private supportApiUrl: string; @@ -228,6 +229,7 @@ class ApiRequestHandler { } } +/** @deprecated */ export const apiRequestHandler = new ApiRequestHandler({ authApiUrl: "http://localhost:8080/", supportApiUrl: "http://localhost:1488/", diff --git a/src/utils/api/types.ts b/src/utils/api/types.ts index 3555dfe..10b0415 100644 --- a/src/utils/api/types.ts +++ b/src/utils/api/types.ts @@ -1,8 +1,11 @@ + +/** @deprecated */ export type LoginRequest = { email?: string; password?: string; }; +/** @deprecated */ export type RegistrationRequest = { login?: string; email?: string; @@ -10,6 +13,7 @@ export type RegistrationRequest = { password?: string; }; +/** @deprecated */ export type AuthenticationSuccessResponse = { id: string; email: string; @@ -20,20 +24,24 @@ export type AuthenticationSuccessResponse = { accessToken: string; }; +/** @deprecated */ export type RefreshRequest = { userId: string; refreshToken?: string; }; +/** @deprecated */ export type CreateTicketRequest = { Title: string; Message: string; }; +/** @deprecated */ export type CreateTicketResponse = { Ticket: string; }; +/** @deprecated */ export type SendTicketMessageRequest = { message: string; ticket: string; @@ -41,6 +49,7 @@ export type SendTicketMessageRequest = { files: string[]; }; +/** @deprecated */ export type GetTicketsRequest = { amt: number; page: number; @@ -48,11 +57,13 @@ export type GetTicketsRequest = { status: string; }; +/** @deprecated */ export type GetTicketsResponse = { count: number; data: Ticket[]; }; +/** @deprecated */ export type Ticket = { id: string; user: string; @@ -66,6 +77,7 @@ export type Ticket = { rate: number; }; +/** @deprecated */ export type TicketMessage = { id: string; ticket_id: string; @@ -78,6 +90,7 @@ export type TicketMessage = { created_at: string; }; +/** @deprecated */ export type GetMessagesRequest = { amt: number; page: number; @@ -85,7 +98,9 @@ export type GetMessagesRequest = { ticket: string; }; +/** @deprecated */ export type GetMessagesResponse = TicketMessage[]; +/** @deprecated */ export class ApiError extends Error { } \ No newline at end of file