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