chore(medusa,types): [14/14] Add request types to API routes (#8576)
* chore(medusa,types): [14/14] Add request types to API routes * more types
This commit is contained in:
1 parent
5ff5159cee
commit
1c8aeb9735
23 files changed
+72
-26
No files matched your search
@@ -1,5 +0,0 @@
|
||||
import { BaseFile, BaseUploadFile } from "./common"
|
||||
|
||||
export interface AdminFile extends BaseFile {}
|
||||
|
||||
export type AdminUploadFile = BaseUploadFile
|
||||
@@ -0,0 +1,3 @@
|
||||
import { BaseFile } from "../common"
|
||||
|
||||
export interface AdminFile extends BaseFile {}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from "./entities"
|
||||
export * from "./payloads"
|
||||
export * from "./responses"
|
||||
@@ -0,0 +1,3 @@
|
||||
import { BaseUploadFile } from "../common";
|
||||
|
||||
export type AdminUploadFile = BaseUploadFile
|
||||
@@ -0,0 +1,9 @@
|
||||
import { AdminFile } from "./entities";
|
||||
|
||||
export interface AdminFileResponse {
|
||||
file: AdminFile
|
||||
}
|
||||
|
||||
export interface AdminFileListResponse {
|
||||
files: AdminFile[]
|
||||
}
|
||||
@@ -36,3 +36,4 @@ export * from "./store"
|
||||
export * from "./tax-rate"
|
||||
export * from "./tax-region"
|
||||
export * from "./user"
|
||||
export * from "./workflow-execution"
|
||||
@@ -0,0 +1,11 @@
|
||||
export interface AdminWorkflowExecution {
|
||||
id: string
|
||||
workflow_id: string
|
||||
transaction_id: string
|
||||
execution: string
|
||||
context: string
|
||||
state: any
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
deleted_at: Date
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./entities"
|
||||
export * from "./responses"
|
||||
@@ -0,0 +1,10 @@
|
||||
import { PaginatedResponse } from "../../common/response";
|
||||
import { AdminWorkflowExecution } from "./entities";
|
||||
|
||||
export interface AdminWorkflowExecutionResponse {
|
||||
workflow_execution: AdminWorkflowExecution
|
||||
}
|
||||
|
||||
export type AdminWorkflowExecutionListResponse = PaginatedResponse<{
|
||||
workflow_executions: AdminWorkflowExecution[]
|
||||
}>
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./admin"
|
||||
Reference in new issue
Block a user