Repository: apache/airflow
File: airflow-core/src/airflow/ui/openapi-gen/requests/services.gen.ts (TypeScript)

Code before:
    public static dagStats(): CancelablePromise<DagStatsResponse2> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/ui/dashboard/dag_stats'
        });
    }
    
}

export class DeadlinesService {
    /**
     * Get Dag Run Deadlines
     * Get all deadlines for a specific DAG run.
     * @param data The data for the request.
     * @param data.dagId
     * @param data.runId
     * @returns DeadlineResponse Successful Response
     * @throws ApiError
     */
    public static getDagRunDeadlines(data: GetDagRunDeadlinesData): CancelablePromise<GetDagRunDeadlinesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/ui/deadlines/{dag_id}/{run_id}',
            path: {
                dag_id: data.dagId,
                run_id: data.runId
            },
            errors: {
                404: 'Not Found',
                422: 'Validation Error'
            }
        });
    }
    
}

export class StructureService {
    /**
     * Structure Data
     * Get Structure Data.
     * @param data The data for the request.
     * @param data.dagId
     * @param data.includeUpstream
     * @param data.includeDownstream
     * @param data.depth
     * @param data.root
     * @param data.externalDependencies
     * @param data.versionNumber
     * @returns StructureDataResponse Successful Response
     * @throws ApiError
     */

Review comment (suggestion):
Non-blocking question for my education.  I'm not arguing, I'm trying to learn.  What makes this path better than the one @imrichardwu used?  Why change it?

The other changes make sense, I don't understand this one.

Code after:
    public static dagStats(): CancelablePromise<DagStatsResponse2> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/ui/dashboard/dag_stats'
        });
    }
    
}

export class DeadlinesService {
    /**
     * Get Dag Run Deadlines
     * Get all deadlines for a specific DAG run.
     * @param data The data for the request.
     * @param data.dagId
     * @param data.dagRunId
     * @param data.limit
     * @param data.offset
     * @param data.orderBy Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `id, deadline_time, created_at, alert_name`
     * @returns DealineCollectionResponse Successful Response
     * @throws ApiError
     */
    public static getDagRunDeadlines(data: GetDagRunDeadlinesData): CancelablePromise<GetDagRunDeadlinesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/ui/dags/{dag_id}/dagRuns/{dag_run_id}/deadlines',
            path: {
                dag_id: data.dagId,
                dag_run_id: data.dagRunId
            },
            query: {
                limit: data.limit,
                offset: data.offset,
                order_by: data.orderBy
            },
            errors: {
                404: 'Not Found',
                422: 'Validation Error'
            }
        });
    }
    
}

export class StructureService {
    /**
     * Structure Data
     * Get Structure Data.
     * @param data The data for the request.
     * @param data.dagId
     * @param data.includeUpstream