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.5 KiB
Plaintext
29 lines
1.5 KiB
Plaintext
import { DirectusTranslation } from "../../../schema/translation.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/create/translations.d.ts
|
|
type CreateTranslationOutput<Schema, TQuery extends Query<Schema, Item>, Item extends object = DirectusTranslation<Schema>> = ApplyQueryFields<Schema, Item, TQuery['fields']>;
|
|
/**
|
|
* Create multiple new translation.
|
|
*
|
|
* @param items The translations to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the translation object for the created translation.
|
|
*/
|
|
declare const createTranslations: <Schema, const TQuery extends Query<Schema, DirectusTranslation<Schema>>>(items: NestedPartial<DirectusTranslation<Schema>>[], query?: TQuery) => RestCommand<CreateTranslationOutput<Schema, TQuery>[], Schema>;
|
|
/**
|
|
* Create a new translation.
|
|
*
|
|
* @param item The translation to create
|
|
* @param query Optional return data query
|
|
*
|
|
* @returns Returns the translation object for the created translation.
|
|
*/
|
|
declare const createTranslation: <Schema, const TQuery extends Query<Schema, DirectusTranslation<Schema>>>(item: NestedPartial<DirectusTranslation<Schema>>, query?: TQuery) => RestCommand<CreateTranslationOutput<Schema, TQuery>, Schema>;
|
|
//#endregion
|
|
export { CreateTranslationOutput, createTranslation, createTranslations };
|
|
//# sourceMappingURL=translations.d.cts.map |