chore: TSDocs for Translation Module (#14280)
* tsdocs for translation module * fixes
This commit is contained in:
@@ -5,6 +5,10 @@ import {
|
||||
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: MedusaRequest<HttpTypes.AdminLocaleParams>,
|
||||
res: MedusaResponse<HttpTypes.AdminLocaleResponse>
|
||||
|
||||
@@ -2,6 +2,10 @@ import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: MedusaRequest<HttpTypes.AdminLocaleListParams>,
|
||||
res: MedusaResponse<HttpTypes.AdminLocaleListResponse>
|
||||
|
||||
@@ -13,6 +13,10 @@ import {
|
||||
AdminUpdateTranslationType,
|
||||
} from "../validators"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const POST = async (
|
||||
req: AuthenticatedMedusaRequest<
|
||||
BatchMethodRequest<AdminCreateTranslationType, AdminUpdateTranslationType>
|
||||
|
||||
@@ -7,6 +7,10 @@ import {
|
||||
} from "@medusajs/framework/utils"
|
||||
import TranslationFeatureFlag from "../../../feature-flags/translation"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: MedusaRequest<HttpTypes.AdminTranslationsListParams>,
|
||||
res: MedusaResponse<HttpTypes.AdminTranslationsListResponse>
|
||||
|
||||
@@ -10,6 +10,10 @@ import {
|
||||
} from "@medusajs/framework/utils"
|
||||
import TranslationFeatureFlag from "../../../../feature-flags/translation"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: AuthenticatedMedusaRequest,
|
||||
res: MedusaResponse<HttpTypes.AdminTranslationSettingsResponse>
|
||||
|
||||
@@ -12,9 +12,13 @@ import {
|
||||
} from "@medusajs/framework/utils"
|
||||
import TranslationFeatureFlag from "../../../../feature-flags/translation"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: AuthenticatedMedusaRequest<
|
||||
unknown,
|
||||
{},
|
||||
HttpTypes.AdminTranslationStatisticsParams
|
||||
>,
|
||||
res: MedusaResponse<HttpTypes.AdminTranslationStatisticsResponse>
|
||||
|
||||
@@ -2,6 +2,10 @@ import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
|
||||
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||
import { HttpTypes } from "@medusajs/framework/types"
|
||||
|
||||
/**
|
||||
* @since 2.12.3
|
||||
* @featureFlag translation
|
||||
*/
|
||||
export const GET = async (
|
||||
req: MedusaRequest,
|
||||
res: MedusaResponse<HttpTypes.StoreLocaleListResponse>
|
||||
|
||||
Reference in New Issue
Block a user