chore: remove unused tracking properties and types

This commit is contained in:
Arvid Norlin
2024-02-19 15:12:38 +01:00
parent 7b6c0c67bb
commit a7780c84a1
5 changed files with 0 additions and 13 deletions

View File

@@ -38,8 +38,6 @@ export default async function CurrentContentPage({
}
const pageData = response.data.all_current_blocks_page.items[0]
const trackingData = {
pageName: pageData.title,
pageType: pageData.__typename,
publishedDate: pageData.system.updated_at,
createdDate: pageData.system.created_at,
pageId: pageData.system.uid,

View File

@@ -10,7 +10,6 @@
query GetCurrentBlockPage($locale: String!, $url: String!) {
all_current_blocks_page(limit: 1, locale: $locale, where: { url: $url }) {
items {
__typename
aside {
__typename
...ContactAside

View File

@@ -3,8 +3,6 @@ export type TrackingProps = {
pageId: string
createdDate: string
publishedDate: string
pageName: string
pageType: string
}
}
@@ -12,8 +10,6 @@ export type TrackingData = {
pathName: string
queryString: string
pageId: string
pageName: string
pageType: string
publishedDate: string
createdDate: string
}

View File

@@ -11,7 +11,6 @@ import type { AllRequestResponse } from "./utils/all"
import type {
AsideTypenameEnum,
Typename,
PagesTypenameEnum,
} from "./utils/typename"
export type Asides =
@@ -34,7 +33,6 @@ export type Breadcrumbs = {
}
export type BlockPage = {
__typename: PagesTypenameEnum.CurrentBlocksPage
aside: Asides[]
blocks: Blocks[]
breadcrumbs: Breadcrumbs

View File

@@ -11,10 +11,6 @@ export enum BlocksTypenameEnum {
CurrentBlocksPageBlocksText = "CurrentBlocksPageBlocksText",
}
export enum PagesTypenameEnum {
CurrentBlocksPage = "CurrentBlocksPage",
}
export type BlocksTypename = keyof typeof BlocksTypenameEnum
export type Typename<T, K> = T & {