Files
klz-cables.com/.pnpm-store/v10/files/fb/a16b50855c7ed55aadf62cd9153c656334eb55203e4a205cbfe1d91ae10aaaea00de85b09a5ecaeccb2616de3863c956843d7c5fec435c18357f5b27684473
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

39 lines
1.8 KiB
Plaintext

import { DirectusDeployment, DirectusDeploymentProject } from "../../../schema/deployment.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/update/deployment.d.ts
type UpdateDeploymentOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusDeployment<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* Update an existing deployment provider.
*
* @param provider The provider type (e.g. 'vercel')
* @param item The deployment fields to update
* @param query Optional return data query
*
* @returns Returns the updated deployment object.
* @throws Will throw if provider is empty
*/
declare const updateDeployment: <Schema, const TQuery extends Query<Schema, DirectusDeployment<Schema>>>(provider: string, item: NestedPartial<DirectusDeployment<Schema>>, query?: TQuery) => RestCommand<UpdateDeploymentOutput<Schema, TQuery>, Schema>;
interface UpdateDeploymentProjectsInput {
create?: Array<{
external_id: string;
name: string;
}>;
delete?: string[];
}
/**
* Update selected projects for a deployment provider.
*
* @param provider The provider type (e.g. 'vercel')
* @param item Projects to create or delete
*
* @returns Returns the updated list of selected projects.
* @throws Will throw if provider is empty
*/
declare const updateDeploymentProjects: <Schema>(provider: string, item: UpdateDeploymentProjectsInput) => RestCommand<DirectusDeploymentProject<Schema>[], Schema>;
//#endregion
export { UpdateDeploymentOutput, UpdateDeploymentProjectsInput, updateDeployment, updateDeploymentProjects };
//# sourceMappingURL=deployment.d.ts.map