chore: remove unused tracking properties and types
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user