refactor: http service (#2233)
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
import { IntegrityPayload } from './IntegrityPayload'
|
||||
|
||||
export type CheckIntegrityResponse = MinimalHttpResponse & {
|
||||
data: {
|
||||
mismatches: IntegrityPayload[]
|
||||
}
|
||||
export type CheckIntegrityResponse = {
|
||||
mismatches: IntegrityPayload[]
|
||||
}
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
import { ServerItemResponse } from './ServerItemResponse'
|
||||
|
||||
export type GetSingleItemResponse = MinimalHttpResponse & {
|
||||
data:
|
||||
| {
|
||||
success: true
|
||||
item: ServerItemResponse
|
||||
}
|
||||
| {
|
||||
success: false
|
||||
message: string
|
||||
}
|
||||
}
|
||||
export type GetSingleItemResponse =
|
||||
| {
|
||||
success: true
|
||||
item: ServerItemResponse
|
||||
}
|
||||
| {
|
||||
success: false
|
||||
message: string
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { HttpResponse } from '../Http/HttpResponse'
|
||||
import { RawSyncData } from './RawSyncData'
|
||||
|
||||
export type RawSyncResponse = HttpResponse & { data: RawSyncData }
|
||||
export type RawSyncResponse = RawSyncData
|
||||
|
||||
Reference in New Issue
Block a user