mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
chore: fix API schema for workflow
This commit is contained in:
parent
eed48c2054
commit
0b86813b6c
2 changed files with 10 additions and 4 deletions
|
|
@ -89,6 +89,10 @@ class ValidateWorkflowResponse(BaseModel):
|
|||
errors: list[WorkflowError]
|
||||
|
||||
|
||||
class CallDispositionCodes(BaseModel):
|
||||
disposition_codes: list[str] = []
|
||||
|
||||
|
||||
class WorkflowResponse(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
|
|
@ -97,7 +101,7 @@ class WorkflowResponse(BaseModel):
|
|||
workflow_definition: dict
|
||||
current_definition_id: int | None
|
||||
template_context_variables: dict | None = None
|
||||
call_disposition_codes: dict | None = None
|
||||
call_disposition_codes: CallDispositionCodes | None = None
|
||||
total_runs: int | None = None
|
||||
workflow_configurations: dict | None = None
|
||||
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ export type AuthUserResponse = {
|
|||
is_superuser: boolean;
|
||||
};
|
||||
|
||||
export type CallDispositionCodes = {
|
||||
disposition_codes?: Array<string>;
|
||||
};
|
||||
|
||||
export type CallType = 'inbound' | 'outbound';
|
||||
|
||||
export type CampaignDefaultsResponse = {
|
||||
|
|
@ -1447,9 +1451,7 @@ export type WorkflowResponse = {
|
|||
template_context_variables?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
call_disposition_codes?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
call_disposition_codes?: CallDispositionCodes | null;
|
||||
total_runs?: number | null;
|
||||
workflow_configurations?: {
|
||||
[key: string]: unknown;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue