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
36 lines
1.9 KiB
Plaintext
36 lines
1.9 KiB
Plaintext
import { DirectusDashboard } from "../../../schema/dashboard.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/update/dashboards.d.ts
|
|
type UpdateDashboardOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusDashboard<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Update multiple existing dashboards.
|
|
* @param keys
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the dashboard objects for the updated dashboards.
|
|
* @throws Will throw if keys is empty
|
|
*/
|
|
declare const updateDashboards: <Schema, const TQuery extends Query<Schema, DirectusDashboard<Schema>>>(keys: DirectusDashboard<Schema>["id"][], item: NestedPartial<DirectusDashboard<Schema>>, query?: TQuery) => RestCommand<UpdateDashboardOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update multiple dashboards as batch.
|
|
* @param items
|
|
* @param query
|
|
* @returns Returns the dashboard objects for the updated dashboards.
|
|
*/
|
|
declare const updateDashboardsBatch: <Schema, const TQuery extends Query<Schema, DirectusDashboard<Schema>>>(items: NestedPartial<DirectusDashboard<Schema>>[], query?: TQuery) => RestCommand<UpdateDashboardOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Update an existing dashboard.
|
|
* @param key
|
|
* @param item
|
|
* @param query
|
|
* @returns Returns the dashboard object for the updated dashboard.
|
|
* @throws Will throw if key is empty
|
|
*/
|
|
declare const updateDashboard: <Schema, const TQuery extends Query<Schema, DirectusDashboard<Schema>>>(key: DirectusDashboard<Schema>["id"], item: NestedPartial<DirectusDashboard<Schema>>, query?: TQuery) => RestCommand<UpdateDashboardOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { UpdateDashboardOutput, updateDashboard, updateDashboards, updateDashboardsBatch };
|
|
//# sourceMappingURL=dashboards.d.cts.map |