mark old code as deprecated

This commit is contained in:
nflnkr 2023-03-30 15:33:55 +03:00
parent 955a9b597a
commit 958493ccdc
2 changed files with 17 additions and 0 deletions

@ -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/",

@ -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 { }