Merged in chore/cleanup-after-trpc-migration (pull request #2457)

Chore/cleanup after trpc migration

* Clean up TODOs

* Rename REDEMPTION constant to SEARCH_TYPE_REDEMPTION

* Update dependencies

Remove unused deps from scandic-web
Add missing deps to trpc package

* Update self-referencing imports

* Remove unused variables from scandic-web env

* Fix missing graphql-tag package

* Actually fix

* Remove unused env var


Approved-by: Christian Andolf
Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-06-30 12:08:19 +00:00
parent 8127cfc73b
commit 4e1cb01b84
53 changed files with 131 additions and 233 deletions

View File

@@ -1,5 +1,4 @@
import { mergeRouters } from "@scandic-hotels/trpc"
import { mergeRouters } from "../.."
import { userMutationRouter } from "./mutation"
import { userQueryRouter } from "./query"

View File

@@ -1,20 +1,20 @@
import { createCounter } from "@scandic-hotels/common/telemetry"
import { router } from "@scandic-hotels/trpc"
import * as api from "@scandic-hotels/trpc/api"
import { router } from "../.."
import * as api from "../../api"
import { Transactions } from "../../enums/transactions"
import {
languageProtectedProcedure,
protectedProcedure,
safeProtectedProcedure,
} from "@scandic-hotels/trpc/procedures"
} from "../../procedures"
import {
getFriendsMembership,
getMembershipCards,
} from "@scandic-hotels/trpc/routers/user/helpers"
import { getVerifiedUser } from "@scandic-hotels/trpc/routers/user/utils"
import { toApiLang } from "@scandic-hotels/trpc/utils"
import { isValidSession } from "@scandic-hotels/trpc/utils/session"
import { Transactions } from "../../enums/transactions"
} from "../../routers/user/helpers"
import { getVerifiedUser } from "../../routers/user/utils"
import { toApiLang } from "../../utils"
import { isValidSession } from "../../utils/session"
import {
friendTransactionsInput,
getSavedPaymentCardsInput,
@@ -30,8 +30,7 @@ import {
updateStaysBookingUrl,
} from "./utils"
import type { LoginType } from "@scandic-hotels/trpc/types/loginType"
import type { LoginType } from "../../types/loginType"
import type { TrackingUserData } from "../types"
export const userQueryRouter = router({