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:
@@ -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]
|
||||
|
||||
@@ -6,7 +6,3 @@ export type MembershipLevelIconProps = {
|
||||
level: MembershipLevel
|
||||
rows?: 1 | 2
|
||||
} & LevelProps
|
||||
|
||||
export type CopyButtonProps = {
|
||||
membershipNumber: string
|
||||
}
|
||||
|
||||
@@ -66,9 +66,3 @@ export interface StepsProps {
|
||||
savedCreditCards: CreditCard[] | null
|
||||
error: AncillaryErrorMessage | null
|
||||
}
|
||||
|
||||
export interface ActionButtonsProps {
|
||||
isPriceDetailsOpen: boolean
|
||||
togglePriceDetails: () => void
|
||||
isSubmitting: boolean
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user