Merged in chore/refactor-hotel-trpc-routes (pull request #2891)

Chore/refactor hotel trpc routes

* chore(SW-3519): refactor trpc hotel routers

* chore(SW-3519): refactor trpc hotel routers

* refactor

* merge

* Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/refactor-hotel-trpc-routes


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-10-01 12:55:45 +00:00
parent 332abdfba0
commit 8498026189
52 changed files with 2338 additions and 1794 deletions

View File

@@ -12,7 +12,6 @@ import {
getFriendsMembership,
getMembershipCards,
} from "../../../routers/user/helpers"
import { getVerifiedUser } from "../../../routers/user/utils"
import { toApiLang } from "../../../utils"
import { isValidSession } from "../../../utils/session"
import {
@@ -21,13 +20,12 @@ import {
staysInput,
} from "../input"
import { getFriendTransactionsSchema } from "../output"
import {
getCreditCards,
getPreviousStays,
getUpcomingStays,
parsedUser,
updateStaysBookingUrl,
} from "../utils"
import { getCreditCards } from "../services/getCreditCards"
import { getPreviousStays } from "../services/getPreviousStays"
import { getUpcomingStays } from "../services/getUpcomingStays"
import { getVerifiedUser } from "../utils/getVerifiedUser"
import { parsedUser } from "../utils/parsedUser"
import { updateStaysBookingUrl } from "../utils/updateStaysBookingUrl"
import { userTrackingInfo } from "./userTrackingInfo"
export const userQueryRouter = router({

View File

@@ -3,7 +3,7 @@ import { createCounter } from "@scandic-hotels/common/telemetry"
import { safeProtectedProcedure } from "../../../procedures"
import { isValidSession } from "../../../utils/session"
import { getFriendsMembership } from "../helpers"
import { getVerifiedUser } from "../utils"
import { getVerifiedUser } from "../utils/getVerifiedUser"
import type { LoginType } from "@scandic-hotels/common/constants/loginType"