mark old code as deprecated
This commit is contained in:
parent
955a9b597a
commit
958493ccdc
@ -17,6 +17,7 @@ import ReconnectingEventSource from "reconnecting-eventsource";
|
|||||||
|
|
||||||
const TEST_ACCESS_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6ImMxcDM0YjhqZHBmOG04Zm43cnIwIiwiU2Vzc2lvbiI6ImMxcDM0YjhqZHBmOG04Zm43cnJnIiwiVXNlciI6IiIsIlRhcmlmZiI6MCwiQ3JlYXRlZCI6MTYxODA5NjY4NTc4MCwiTGFzdFNlZW4iOjE2MTgwOTY2ODU3ODF9.ciJoJiOxzIPv0LY4h3rG8Tf3AsSBXXLcYEpyN9mIki0";
|
const TEST_ACCESS_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6ImMxcDM0YjhqZHBmOG04Zm43cnIwIiwiU2Vzc2lvbiI6ImMxcDM0YjhqZHBmOG04Zm43cnJnIiwiVXNlciI6IiIsIlRhcmlmZiI6MCwiQ3JlYXRlZCI6MTYxODA5NjY4NTc4MCwiTGFzdFNlZW4iOjE2MTgwOTY2ODU3ODF9.ciJoJiOxzIPv0LY4h3rG8Tf3AsSBXXLcYEpyN9mIki0";
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
class ApiRequestHandler {
|
class ApiRequestHandler {
|
||||||
private authApiUrl: string;
|
private authApiUrl: string;
|
||||||
private supportApiUrl: string;
|
private supportApiUrl: string;
|
||||||
@ -228,6 +229,7 @@ class ApiRequestHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export const apiRequestHandler = new ApiRequestHandler({
|
export const apiRequestHandler = new ApiRequestHandler({
|
||||||
authApiUrl: "http://localhost:8080/",
|
authApiUrl: "http://localhost:8080/",
|
||||||
supportApiUrl: "http://localhost:1488/",
|
supportApiUrl: "http://localhost:1488/",
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type LoginRequest = {
|
export type LoginRequest = {
|
||||||
email?: string;
|
email?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type RegistrationRequest = {
|
export type RegistrationRequest = {
|
||||||
login?: string;
|
login?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
@ -10,6 +13,7 @@ export type RegistrationRequest = {
|
|||||||
password?: string;
|
password?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type AuthenticationSuccessResponse = {
|
export type AuthenticationSuccessResponse = {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
@ -20,20 +24,24 @@ export type AuthenticationSuccessResponse = {
|
|||||||
accessToken: string;
|
accessToken: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type RefreshRequest = {
|
export type RefreshRequest = {
|
||||||
userId: string;
|
userId: string;
|
||||||
refreshToken?: string;
|
refreshToken?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type CreateTicketRequest = {
|
export type CreateTicketRequest = {
|
||||||
Title: string;
|
Title: string;
|
||||||
Message: string;
|
Message: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type CreateTicketResponse = {
|
export type CreateTicketResponse = {
|
||||||
Ticket: string;
|
Ticket: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type SendTicketMessageRequest = {
|
export type SendTicketMessageRequest = {
|
||||||
message: string;
|
message: string;
|
||||||
ticket: string;
|
ticket: string;
|
||||||
@ -41,6 +49,7 @@ export type SendTicketMessageRequest = {
|
|||||||
files: string[];
|
files: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type GetTicketsRequest = {
|
export type GetTicketsRequest = {
|
||||||
amt: number;
|
amt: number;
|
||||||
page: number;
|
page: number;
|
||||||
@ -48,11 +57,13 @@ export type GetTicketsRequest = {
|
|||||||
status: string;
|
status: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type GetTicketsResponse = {
|
export type GetTicketsResponse = {
|
||||||
count: number;
|
count: number;
|
||||||
data: Ticket[];
|
data: Ticket[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type Ticket = {
|
export type Ticket = {
|
||||||
id: string;
|
id: string;
|
||||||
user: string;
|
user: string;
|
||||||
@ -66,6 +77,7 @@ export type Ticket = {
|
|||||||
rate: number;
|
rate: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type TicketMessage = {
|
export type TicketMessage = {
|
||||||
id: string;
|
id: string;
|
||||||
ticket_id: string;
|
ticket_id: string;
|
||||||
@ -78,6 +90,7 @@ export type TicketMessage = {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type GetMessagesRequest = {
|
export type GetMessagesRequest = {
|
||||||
amt: number;
|
amt: number;
|
||||||
page: number;
|
page: number;
|
||||||
@ -85,7 +98,9 @@ export type GetMessagesRequest = {
|
|||||||
ticket: string;
|
ticket: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export type GetMessagesResponse = TicketMessage[];
|
export type GetMessagesResponse = TicketMessage[];
|
||||||
|
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
export class ApiError extends Error { }
|
export class ApiError extends Error { }
|
Loading…
Reference in New Issue
Block a user