( item: NestedPartial<DirectusFlow<Schema>>, query?: TQuery, )
| 38 | */ |
| 39 | export const createFlow = |
| 40 | <Schema, TQuery extends Query<Schema, DirectusFlow<Schema>>>( |
| 41 | item: NestedPartial<DirectusFlow<Schema>>, |
| 42 | query?: TQuery, |
| 43 | ): RestCommand<CreateFlowOutput<Schema, TQuery>, Schema> => |
| 44 | () => ({ |
| 45 | path: `/flows`, |
| 46 | params: query ?? {}, |
| 47 | body: JSON.stringify(item), |
| 48 | method: 'POST', |
| 49 | }); |
no outgoing calls
no test coverage detected