Files
klz-cables.com/.pnpm-store/v10/files/10/1f882f870062829701acd2459b580ef530f94c913939c298f85247fea9e248a3571c737d3990799df33f0f9cd1c62be1a4be720797bf0cc9d0210271ef0170
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

24 lines
1.4 KiB
Plaintext

import { DirectusVersion } from "../../../schema/version.js";
import { ApplyQueryFields } from "../../../types/output.js";
import { Query } from "../../../types/query.js";
import { RestCommand } from "../../types.js";
//#region src/rest/commands/read/versions.d.ts
type ReadContentVersionOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusVersion<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
/**
* List all Content Versions that exist in Directus.
* @param query The query parameters
* @returns An array of up to limit Content Version objects. If no items are available, data will be an empty array.
*/
declare const readContentVersions: <Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(query?: TQuery) => RestCommand<ReadContentVersionOutput<Schema, TQuery>[], Schema>;
/**
* List an existing COntent Version by primary key.
* @param key The primary key of the Content Version
* @param query The query parameters
* @returns Returns a Content Version object if a valid primary key was provided.
* @throws Will throw if key is empty
*/
declare const readContentVersion: <Schema, const TQuery extends Query<Schema, DirectusVersion<Schema>>>(key: DirectusVersion<Schema>["id"], query?: TQuery) => RestCommand<ReadContentVersionOutput<Schema, TQuery>, Schema>;
//#endregion
export { ReadContentVersionOutput, readContentVersion, readContentVersions };
//# sourceMappingURL=versions.d.ts.map