another new workflow library

This commit is contained in:
Mary Hipp
2025-02-27 13:31:46 -05:00
committed by psychedelicious
parent 518a7c941f
commit d5c5e8e8ed
27 changed files with 682 additions and 461 deletions

View File

@@ -1,6 +1,7 @@
import type { paths } from 'services/api/schema';
import { api, buildV1Url, LIST_TAG } from '..';
import queryString from 'query-string';
/**
* Builds an endpoint URL for the workflows router
@@ -73,8 +74,7 @@ export const workflowsApi = api.injectEndpoints({
NonNullable<paths['/api/v1/workflows/']['get']['parameters']['query']>
>({
query: (params) => ({
url: buildWorkflowsUrl(),
params,
url: `${buildWorkflowsUrl()}?${queryString.stringify(params, { arrayFormat: 'none' })}`,
}),
providesTags: ['FetchOnReconnect', { type: 'Workflow', id: LIST_TAG }],
}),

View File

@@ -24252,8 +24252,8 @@ export interface operations {
order_by?: components["schemas"]["WorkflowRecordOrderBy"];
/** @description The direction to order by */
direction?: components["schemas"]["SQLiteDirection"];
/** @description The category of workflow to get */
category?: components["schemas"]["WorkflowCategory"];
/** @description The categories of workflow to get */
categories?: components["schemas"]["WorkflowCategory"][] | null;
/** @description The text to query by (matches name and description) */
query?: string | null;
};