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 pageData = response.data.all_current_blocks_page.items[0]
const trackingData = { const trackingData = {
pageName: pageData.title,
pageType: pageData.__typename,
publishedDate: pageData.system.updated_at, publishedDate: pageData.system.updated_at,
createdDate: pageData.system.created_at, createdDate: pageData.system.created_at,
pageId: pageData.system.uid, pageId: pageData.system.uid,

View File

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

View File

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

View File

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

View File

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