{"version":3,"file":"nieuws.repository-BqvpPawC.js","sources":["../../../Frontend/vue/repositories/nieuws.repository.ts"],"sourcesContent":["import { UmbracoApi } from '../helpers/axios.helper';\r\n\r\nexport interface NieuwsResponse {\r\n TotalItems: number;\r\n Items: NieuwsArtikel[]\r\n}\r\n\r\nexport interface NieuwsArtikel {\r\n Id: number;\r\n Title: string;\r\n Beschrijving?: string;\r\n Categorien: number[];\r\n Order: number;\r\n Url: string;\r\n ImageUrl: string;\r\n Category: string;\r\n Description: string;\r\n Date: string;\r\n}\r\n\r\nexport interface Thema {\r\n Id: number;\r\n Url: string;\r\n Title: string;\r\n Name: string;\r\n}\r\n\r\n\r\nclass NieuwsRepository {\r\n async getNieuws(rootnode:any, currentTheme: any, itemcount: any = 15, page:any = 0, isRegion: boolean = false) {\r\n const response = await UmbracoApi.get('/article/GetArticleBlocks', { params: { rootnodeid: rootnode, mainTheme: currentTheme, itemcount: itemcount, page: page, isRegion: isRegion } });\r\n return response.data;\r\n }\r\n\r\n async getNieuwsByKey(umbracoKey: string, itemcount: any = 15) {\r\n const response = await UmbracoApi.get('/article/GetArticleBlocksFromKey', { params: { umbracoKey: umbracoKey, itemcount: itemcount } });\r\n return response.data;\r\n }\r\n\r\n async getUitgelichteItems(nodeId: any) {\r\n const response = await UmbracoApi.get('/article/GetFeaturedItemBlocks', { params: { nodeId: nodeId } });\r\n return response.data;\r\n }\r\n\r\n async getPopularThemes(nodeId: any) {\r\n const response = await UmbracoApi.get('/theme/GetPopularThemes', { params: { nodeId: nodeId } });\r\n return response.data;\r\n }\r\n}\r\n\r\nexport default new NieuwsRepository(); "],"names":["NieuwsRepository","rootnode","currentTheme","itemcount","page","isRegion","UmbracoApi","umbracoKey","nodeId","nieuwsRepository"],"mappings":"0DA4BA,MAAMA,CAAiB,CACnB,MAAM,UAAUC,EAAcC,EAAmBC,EAAiB,GAAIC,EAAW,EAAGC,EAAoB,GAAO,CAE3G,OADiB,MAAMC,EAAW,IAAoB,4BAA6B,CAAE,OAAQ,CAAE,WAAYL,EAAU,UAAWC,EAAc,UAAAC,EAAsB,KAAAC,EAAY,SAAAC,GAAsB,GACtL,IACpB,CAEA,MAAM,eAAeE,EAAoBJ,EAAiB,GAAI,CAE1D,OADiB,MAAMG,EAAW,IAAoB,mCAAoC,CAAE,OAAQ,CAAE,WAAAC,EAAwB,UAAAJ,CAAqB,CAAA,CAAG,GACtI,IACpB,CAEA,MAAM,oBAAoBK,EAAa,CAEnC,OADiB,MAAMF,EAAW,IAAoB,iCAAkC,CAAE,OAAQ,CAAE,OAAAE,CAAe,CAAA,CAAG,GACtG,IACpB,CAEA,MAAM,iBAAiBA,EAAa,CAEhC,OADiB,MAAMF,EAAW,IAAa,0BAA2B,CAAE,OAAQ,CAAE,OAAAE,CAAe,CAAA,CAAG,GACxF,IACpB,CACJ,CAEA,MAAeC,EAAA,IAAIT"}