Merged in chore/cleanup-unused (pull request #3461)

chore: Cleanup unused vars, exports, types

* Cleanup some unused exports

* Remove more

* Readd CampaignPageIncludedHotelsRef

* Add alias comment to procedure exports

* Remove unused exports


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2026-01-22 12:34:07 +00:00
parent 4de24e9f2a
commit f79ff9b570
56 changed files with 84 additions and 411 deletions

View File

@@ -30,7 +30,6 @@ export interface CityMarker {
}
export type CityMarkerProperties = Omit<CityMarker, "coordinates">
export type CitiesClusterMarkerProperties = CityMarkerProperties[]
export type CityMarkerGeojson = FeatureCollection<Point, CityMarkerProperties>
export type CityMarkerFeature = CityMarkerGeojson["features"][number]

View File

@@ -6,7 +6,3 @@ export type MembershipLevelIconProps = {
level: MembershipLevel
rows?: 1 | 2
} & LevelProps
export type CopyButtonProps = {
membershipNumber: string
}

View File

@@ -66,9 +66,3 @@ export interface StepsProps {
savedCreditCards: CreditCard[] | null
error: AncillaryErrorMessage | null
}
export interface ActionButtonsProps {
isPriceDetailsOpen: boolean
togglePriceDetails: () => void
isSubmitting: boolean
}

View File

@@ -1,8 +1,3 @@
import type { userQueryRouter } from "@scandic-hotels/trpc/routers/user/query"
import type { User } from "@scandic-hotels/trpc/types/user"
export type UserQueryRouter = typeof userQueryRouter
export interface UserProps {
user: User
}

View File

@@ -1,34 +1,5 @@
import type { Lang } from "@scandic-hotels/common/constants/language"
import type { PageContentTypeEnum } from "@scandic-hotels/trpc/enums/contentType"
export type NextSearchParams = { [key: string]: string | string[] | undefined }
export type SearchParams<S = object> = {
searchParams: Promise<S & { [key: string]: string }>
}
export type LangParams = {
lang: Lang
}
export type StatusParams = {
status: number
}
export type ContentTypeParams = {
contentType:
| PageContentTypeEnum.loyaltyPage
| PageContentTypeEnum.campaignOverviewPage
| PageContentTypeEnum.campaignPage
| PageContentTypeEnum.contentPage
| PageContentTypeEnum.hotelPage
| PageContentTypeEnum.collectionPage
| PageContentTypeEnum.destinationOverviewPage
| PageContentTypeEnum.destinationCountryPage
| PageContentTypeEnum.destinationCityPage
| PageContentTypeEnum.startPage
}
export type UIDParams = {
uid: string
}

View File

@@ -1,7 +1,7 @@
import type { Lang } from "@scandic-hotels/common/constants/language"
import type { SyncResult } from "contentstack"
export type ChangeFrequency =
type ChangeFrequency =
| "always"
| "hourly"
| "daily"
@@ -10,7 +10,7 @@ export type ChangeFrequency =
| "yearly"
| "never"
export interface SitemapEntry {
interface SitemapEntry {
url: string
lastModified: string
changeFrequency: ChangeFrequency
@@ -62,8 +62,3 @@ export interface SyncItem {
export interface SyncResponse extends Omit<SyncResult, "items"> {
items: SyncItem[]
}
export type SyncItemsByUid = {
mainEntry: SyncItem
alternates: SyncItem[]
}