feat(ocr): implement PATCH endpoint for OCR provider updates

Add PATCH handler for OCR provider updates with request/response schemas
Implement patchProvider method in OcrService to update provider data
This commit is contained in:
icarus
2025-10-20 07:19:08 +08:00
parent 1e9014b080
commit 4e7a67df59
5 changed files with 54 additions and 7 deletions
+8 -2
View File
@@ -1,6 +1,11 @@
// NOTE: Types are defined inline in the schema for simplicity
// If needed, specific types can be imported from './apiModels'
import type { GetOcrProviderResponse, ListOcrProvidersResponse } from '@types'
import type {
GetOcrProviderResponse,
ListOcrProvidersResponse,
PatchOcrProviderRequest,
PatchOcrProviderResponse
} from '@types'
import type { BodyForPath, ConcreteApiPaths, QueryParamsForPath, ResponseForPath } from './apiPaths'
import type { HttpMethod, PaginatedResponse, PaginationParams } from './apiTypes'
@@ -364,7 +369,8 @@ export interface ApiSchemas {
response: GetOcrProviderResponse
}
PATCH: {
// TODO
body: PatchOcrProviderRequest
response: PatchOcrProviderResponse
}
PUT: {
// TODO