Merged master into feat/1268-mask-private-data

This commit is contained in:
Linus Flood
2024-12-19 10:21:17 +00:00
53 changed files with 1243 additions and 227 deletions

View File

@@ -1,4 +1,4 @@
import { System } from "@/types/requests/system"
import type { System } from "@/types/requests/system"
import type { Edges } from "@/types/requests/utils/edges"
import type { NodeRefs } from "@/types/requests/utils/refs"
import type { Lang } from "@/constants/languages"
@@ -109,3 +109,14 @@ export function generateLoyaltyConfigTag(
export function generateServiceTokenTag(scopes: string[]) {
return `service_token:${scopes.join("-")}`
}
/**
* Function to generate tags for hotel page urls
*
* @param lang Lang
* @param hotelId hotelId of reference
* @returns string
*/
export function generateHotelUrlTag(lang: Lang, hotelId: string) {
return `${lang}:hotel_page_url:${hotelId}`
}