mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Add sorting to GET /workflows endpoint (#13029)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user