rename functions
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user