fix(types,translations): fix types for translation and locale updates (#14278)
* fix(types,translations): fix types for translation and locale updates * remove array type
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
FilterableTranslationProps,
|
||||
ITranslationModuleService,
|
||||
UpdateTranslationDataDTO,
|
||||
UpdateTranslationDTO,
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
@@ -22,7 +23,7 @@ export type UpdateTranslationsStepInput =
|
||||
/**
|
||||
* The data to update in the translations.
|
||||
*/
|
||||
update: UpdateTranslationDTO
|
||||
update: UpdateTranslationDataDTO
|
||||
}
|
||||
| {
|
||||
translations: UpdateTranslationDTO[]
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
MedusaErrorTypes,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
|
||||
import { CreateTranslationDTO, UpdateTranslationDTO } from "@medusajs/types"
|
||||
import { CreateTranslationDTO, UpdateTranslationDataDTO, UpdateTranslationDTO } from "@medusajs/types"
|
||||
|
||||
export const validateTranslationsStepId = "validate-translations"
|
||||
|
||||
@@ -13,6 +13,7 @@ export type ValidateTranslationsStepInput =
|
||||
| CreateTranslationDTO
|
||||
| UpdateTranslationDTO[]
|
||||
| UpdateTranslationDTO
|
||||
| UpdateTranslationDataDTO
|
||||
|
||||
// TODO: Do we want to validate anything else here?
|
||||
export const validateTranslationsStep = createStep(
|
||||
|
||||
Reference in New Issue
Block a user