feat(core): Add sorting to GET /workflows endpoint (#13029)

This commit is contained in:
Ricardo Espinoza
2025-02-04 10:52:35 -05:00
committed by GitHub
parent 18eaa5423d
commit b60011a180
7 changed files with 246 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export namespace ListQuery {
skip?: string;
take?: string;
select?: string;
sortBy?: string;
};
export type Options = {
@@ -69,6 +70,7 @@ export namespace ListQuery {
select?: Record<string, true>;
skip?: number;
take?: number;
sortBy?: string;
};
/**
@@ -82,6 +84,10 @@ export namespace ListQuery {
type SharedField = Partial<Pick<WorkflowEntity, 'shared'>>;
type SortingField = 'createdAt' | 'updatedAt' | 'name';
export type SortOrder = `${SortingField}:asc` | `${SortingField}:desc`;
type OwnedByField = { ownedBy: SlimUser | null; homeProject: SlimProject | null };
export type Plain = BaseFields;