feat(SW-543): update requests

This commit is contained in:
Fredrik Thorsson
2024-12-19 14:32:41 +01:00
parent c976d187be
commit a7aefcded1
9 changed files with 64 additions and 42 deletions

View File

@@ -78,6 +78,7 @@ export type ContactFields = {
display_text: string | null
contact_field: string
footnote: string | null
selectTest: string
}
export const validateCurrentHeaderConfigSchema = z

View File

@@ -1,6 +1,5 @@
import { cache } from "react"
import { Lang } from "@/constants/languages"
import { GetContactConfig } from "@/lib/graphql/Query/ContactConfig.graphql"
import {
GetCurrentFooter,
@@ -30,9 +29,9 @@ import {
import { langInput } from "./input"
import {
type ContactConfigData,
CurrentFooterDataRaw,
CurrentFooterRefDataRaw,
CurrentHeaderRefDataRaw,
type CurrentFooterDataRaw,
type CurrentFooterRefDataRaw,
type CurrentHeaderRefDataRaw,
type GetCurrentHeaderData,
headerRefsSchema,
headerSchema,
@@ -94,8 +93,9 @@ import type {
GetSiteConfigData,
GetSiteConfigRefData,
} from "@/types/trpc/routers/contentstack/siteConfig"
import type { Lang } from "@/constants/languages"
const getContactConfig = cache(async (lang: Lang) => {
export const getContactConfig = cache(async (lang: Lang) => {
getContactConfigCounter.add(1, { lang })
console.info(
"contentstack.contactConfig start",