refactor: http service (#2233)
This commit is contained in:
@@ -1,6 +1 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
|
||||
export type CloseUploadSessionResponse = MinimalHttpResponse & {
|
||||
success: boolean
|
||||
message: string
|
||||
}
|
||||
export type CloseUploadSessionResponse = { success: boolean; message: string }
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
import { CreateValetTokenResponseData } from './CreateValetTokenResponseData'
|
||||
|
||||
export type CreateValetTokenResponse = MinimalHttpResponse & {
|
||||
data: CreateValetTokenResponseData
|
||||
}
|
||||
export type CreateValetTokenResponse = CreateValetTokenResponseData
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
|
||||
export type DownloadFileChunkResponse = MinimalHttpResponse & {
|
||||
data: ArrayBuffer
|
||||
}
|
||||
export type DownloadFileChunkResponse = ArrayBuffer
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
|
||||
export type StartUploadSessionResponse = MinimalHttpResponse & {
|
||||
export type StartUploadSessionResponse = {
|
||||
success: boolean
|
||||
uploadId: string
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { MinimalHttpResponse } from '../Http/MinimalHttpResponses'
|
||||
|
||||
export type UploadFileChunkResponse = MinimalHttpResponse & {
|
||||
export type UploadFileChunkResponse = {
|
||||
success: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user