mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
chore: UI enhancements for workflow runs view (#142)
* add local state in filters * feat: add sorting feature by duration * chore: refactor workfow run view
This commit is contained in:
parent
6827744327
commit
5fe1c8ce2f
23 changed files with 1014 additions and 479 deletions
File diff suppressed because one or more lines are too long
|
|
@ -81,6 +81,19 @@ export type CampaignResponse = {
|
|||
max_concurrency?: number | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Paginated response for campaign workflow runs
|
||||
*/
|
||||
export type CampaignRunsResponse = {
|
||||
runs: Array<{
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
total_count: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
total_pages: number;
|
||||
};
|
||||
|
||||
export type CampaignSourceDownloadResponse = {
|
||||
download_url: string;
|
||||
expires_in: number;
|
||||
|
|
@ -1138,14 +1151,6 @@ export type WorkflowRunDetail = {
|
|||
created_at: string;
|
||||
};
|
||||
|
||||
export type WorkflowRunResponse = {
|
||||
id: number;
|
||||
workflow_id: number;
|
||||
state: string;
|
||||
created_at: string;
|
||||
completed_at: string | null;
|
||||
};
|
||||
|
||||
export type WorkflowRunResponseSchema = {
|
||||
id: number;
|
||||
workflow_id: number;
|
||||
|
|
@ -1494,6 +1499,27 @@ export type HandleInboundFallbackApiV1TelephonyInboundFallbackPostResponses = {
|
|||
200: unknown;
|
||||
};
|
||||
|
||||
export type HandleCloudonixCdrApiV1TelephonyCloudonixCdrPostData = {
|
||||
body?: never;
|
||||
path?: never;
|
||||
query?: never;
|
||||
url: '/api/v1/telephony/cloudonix/cdr';
|
||||
};
|
||||
|
||||
export type HandleCloudonixCdrApiV1TelephonyCloudonixCdrPostErrors = {
|
||||
/**
|
||||
* Not found
|
||||
*/
|
||||
404: unknown;
|
||||
};
|
||||
|
||||
export type HandleCloudonixCdrApiV1TelephonyCloudonixCdrPostResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: unknown;
|
||||
};
|
||||
|
||||
export type ImpersonateApiV1SuperuserImpersonatePostData = {
|
||||
body: ImpersonateRequest;
|
||||
headers?: {
|
||||
|
|
@ -1547,6 +1573,14 @@ export type GetWorkflowRunsApiV1SuperuserWorkflowRunsGetData = {
|
|||
* JSON-encoded filter criteria
|
||||
*/
|
||||
filters?: string | null;
|
||||
/**
|
||||
* Field to sort by (e.g., 'duration', 'created_at')
|
||||
*/
|
||||
sort_by?: string | null;
|
||||
/**
|
||||
* Sort order ('asc' or 'desc')
|
||||
*/
|
||||
sort_order?: string | null;
|
||||
};
|
||||
url: '/api/v1/superuser/workflow-runs';
|
||||
};
|
||||
|
|
@ -1934,6 +1968,14 @@ export type GetWorkflowRunsApiV1WorkflowWorkflowIdRunsGetData = {
|
|||
* JSON-encoded filter criteria
|
||||
*/
|
||||
filters?: string | null;
|
||||
/**
|
||||
* Field to sort by (e.g., 'duration', 'created_at')
|
||||
*/
|
||||
sort_by?: string | null;
|
||||
/**
|
||||
* Sort order ('asc' or 'desc')
|
||||
*/
|
||||
sort_order?: string | null;
|
||||
};
|
||||
url: '/api/v1/workflow/{workflow_id}/runs';
|
||||
};
|
||||
|
|
@ -2601,7 +2643,22 @@ export type GetCampaignRunsApiV1CampaignCampaignIdRunsGetData = {
|
|||
path: {
|
||||
campaign_id: number;
|
||||
};
|
||||
query?: never;
|
||||
query?: {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
/**
|
||||
* JSON-encoded filter criteria
|
||||
*/
|
||||
filters?: string | null;
|
||||
/**
|
||||
* Field to sort by (e.g., 'duration', 'created_at')
|
||||
*/
|
||||
sort_by?: string | null;
|
||||
/**
|
||||
* Sort order ('asc' or 'desc')
|
||||
*/
|
||||
sort_order?: string | null;
|
||||
};
|
||||
url: '/api/v1/campaign/{campaign_id}/runs';
|
||||
};
|
||||
|
||||
|
|
@ -2622,7 +2679,7 @@ export type GetCampaignRunsApiV1CampaignCampaignIdRunsGetResponses = {
|
|||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: Array<WorkflowRunResponse>;
|
||||
200: CampaignRunsResponse;
|
||||
};
|
||||
|
||||
export type GetCampaignRunsApiV1CampaignCampaignIdRunsGetResponse = GetCampaignRunsApiV1CampaignCampaignIdRunsGetResponses[keyof GetCampaignRunsApiV1CampaignCampaignIdRunsGetResponses];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue