Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
import { DirectusFlow } from "../../../schema/flow.cjs";
|
|
import { NestedPartial } from "../../../types/utils.cjs";
|
|
import { ApplyQueryFields } from "../../../types/output.cjs";
|
|
import { Query } from "../../../types/query.cjs";
|
|
import { RestCommand } from "../../types.cjs";
|
|
|
|
//#region src/rest/commands/create/flows.d.ts
|
|
type CreateFlowOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusFlow<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Create multiple new flows.
|
|
*
|
|
* @param items The flows to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the flow object for the created flow.
|
|
*/
|
|
declare const createFlows: <Schema, const TQuery extends Query<Schema, DirectusFlow<Schema>>>(items: NestedPartial<DirectusFlow<Schema>>[], query?: TQuery) => RestCommand<CreateFlowOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Create a new flow.
|
|
*
|
|
* @param item The flow to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the flow object for the created flow.
|
|
*/
|
|
declare const createFlow: <Schema, TQuery extends Query<Schema, DirectusFlow<Schema>>>(item: NestedPartial<DirectusFlow<Schema>>, query?: TQuery) => RestCommand<CreateFlowOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { CreateFlowOutput, createFlow, createFlows };
|
|
//# sourceMappingURL=flows.d.cts.map |