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.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
import { DirectusDashboard } from "../../../schema/dashboard.js";
|
|
import { NestedPartial } from "../../../types/utils.js";
|
|
import { ApplyQueryFields } from "../../../types/output.js";
|
|
import { Query } from "../../../types/query.js";
|
|
import { RestCommand } from "../../types.js";
|
|
|
|
//#region src/rest/commands/create/dashboards.d.ts
|
|
type CreateDashboardOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusDashboard<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Create multiple new dashboards.
|
|
*
|
|
* @param items The items to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the dashboard object for the created dashboards.
|
|
*/
|
|
declare const createDashboards: <Schema, const TQuery extends Query<Schema, DirectusDashboard<Schema>>>(items: NestedPartial<DirectusDashboard<Schema>>[], query?: TQuery) => RestCommand<CreateDashboardOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Create a new dashboard.
|
|
*
|
|
* @param item The dashboard to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the dashboard object for the created dashboard.
|
|
*/
|
|
declare const createDashboard: <Schema, const TQuery extends Query<Schema, DirectusDashboard<Schema>>>(item: NestedPartial<DirectusDashboard<Schema>>, query?: TQuery) => RestCommand<CreateDashboardOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { CreateDashboardOutput, createDashboard, createDashboards };
|
|
//# sourceMappingURL=dashboards.d.ts.map |