medusa-plugin-tolgee
Version:
Medusa V2 Plugin to easily add translations to your models with Tolgee
21 lines (20 loc) • 1.19 kB
TypeScript
import { SupportedModels, ModelDTO } from "../../common";
type RetrieveStepInput = {
id?: string[];
slug: SupportedModels;
};
export declare const retrieveModelsStep: import("@medusajs/framework/workflows-sdk").StepFunction<RetrieveStepInput, import("@medusajs/types").ProductDTO[] | import("@medusajs/types").ProductCategoryDTO[] | import("@medusajs/types").ProductCollectionDTO[] | import("@medusajs/types").ProductOptionDTO[] | import("@medusajs/types").ProductTagDTO[] | import("@medusajs/types").ProductTypeDTO[] | import("@medusajs/types").ProductVariantDTO[] | import("@medusajs/types").ShippingOptionDTO[]>;
type CreateStepInput = {
models: ModelDTO[];
slug: SupportedModels;
};
export declare const createModelTranslationsStep: import("@medusajs/framework/workflows-sdk").StepFunction<CreateStepInput, string[]>;
type DeleteStepInput = {
id: string;
};
export declare const deleteTranslationStep: import("@medusajs/framework/workflows-sdk").StepFunction<DeleteStepInput, string[]>;
type GetStepInput = {
id: string;
};
export declare const getModelTranslationKeysStep: import("@medusajs/framework/workflows-sdk").StepFunction<GetStepInput, any>;
export {};