File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use server'
22import axios from 'axios'
33import type z from 'zod'
4- // import type { Level2Keys } from '@/lib/helpers/typescriptTyping'
4+ import type { Level2Keys } from '@/lib/helpers/typescriptTyping'
55import { subscribeSchema } from '@/lib/zodSchemas/zodSchemas'
66import { validateFormRequest } from '../api/forms/validateFormRequest'
77
@@ -11,7 +11,7 @@ const SUBSCRIBER_LIST_ID_EN = process.env.MAKE_SUBSCRIBER_LIST_ID_EN
1111const SUBSCRIBER_LIST_ID_NO = process . env . MAKE_SUBSCRIBER_LIST_ID_NO
1212const MAKE_API_USER = process . env . MAKE_API_USERID || ''
1313
14- const newsletterCategoryMap = {
14+ export const newsletterCategoryMap = {
1515 no : {
1616 generalNews : 'generelle nyheter' ,
1717 Company : 'generelle nyheter' ,
@@ -33,7 +33,7 @@ const newsletterCategoryMap = {
3333}
3434
3535export type newsletterCategoryLocale = keyof typeof newsletterCategoryMap
36- // type newsletterCategoryKeys = Level2Keys<typeof newsletterCategoryMap>
36+ export type newsletterCategoryKeys = Level2Keys < typeof newsletterCategoryMap >
3737
3838const subscriberApi = axios . create ( {
3939 baseURL : MAKE_SUBSCRIBER_API_BASE_URL ,
Original file line number Diff line number Diff line change 99 type newsletterCategoryKeys ,
1010 type newsletterCategoryLocale ,
1111 newsletterCategoryMap ,
12- } from '../newsletter/subscription/route '
12+ } from '@/app/_actions/subscription.actions '
1313import { type LatestNewsType , latestMagazine , latestNews } from './groq.global'
1414
1515const generateRssFeed = async ( locale : 'en_GB' | 'nb_NO' ) => {
You can’t perform that action at this time.
0 commit comments