rename functions

This commit is contained in:
smanylov
2026-05-11 14:10:42 +07:00
parent 51a3ed7d18
commit 0e28986dc7
3 changed files with 9 additions and 18 deletions
+4 -13
View File
@@ -162,7 +162,7 @@ export async function fetchViolationStats() {
}
}
export async function getFileViolations(fileId: string, page: number, status?: string, violationId?: string) {
export async function getFileMatches(fileId: string, page: number, status?: string, violationId?: string) {
const token = await getSessionData('token');
try {
@@ -497,28 +497,19 @@ export async function updateMatchStatus(id: number, status: MatchStatus) {
}
}
export async function fetchCaseInfo(id: number) {
export async function fetchClaimInfo(id: number) {
const token = await getSessionData('token');
try {
const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
method: 'POST',
/* body: JSON.stringify({
version: 1,
msg_id: 30017,
message_body: {
action: 'get_byId',
token: token,
id: id
}
}), */
body: JSON.stringify({
version: 1,
msg_id: 30017,
message_body: {
action: 'get_all',
token: token,
pageSize: 10,
pageSize: 1,
pageNumber: 0,
sortBy: "createdAt",
sortDir: "desc",
@@ -564,7 +555,7 @@ interface caseBody {
errorMessage?: Record<string, string> | null
}
export async function createCase(
export async function createClaim(
state: caseBody | undefined,
formData: FormData
): Promise<caseBody> {