diff --git a/app/game-api/src/auth/tokenVerifier.ts b/app/game-api/src/auth/tokenVerifier.ts index 832517d..cc3f8ce 100644 --- a/app/game-api/src/auth/tokenVerifier.ts +++ b/app/game-api/src/auth/tokenVerifier.ts @@ -1,5 +1,5 @@ -import type { GameSessionTokenPayload } from '@sammo-ts/common/auth/gameToken.js'; -import { decryptGameSessionToken } from '@sammo-ts/common/auth/gameToken.js'; +import type { GameSessionTokenPayload } from '@sammo-ts/common'; +import { decryptGameSessionToken } from '@sammo-ts/common'; import { isAfter, isValid, parseISO } from 'date-fns'; import type { FlushStore } from './flushStore.js'; diff --git a/app/game-api/src/context.ts b/app/game-api/src/context.ts index 956f474..89a4e4f 100644 --- a/app/game-api/src/context.ts +++ b/app/game-api/src/context.ts @@ -1,4 +1,4 @@ -import type { GameSessionTokenPayload } from '@sammo-ts/common/auth/gameToken.js'; +import type { GameSessionTokenPayload } from '@sammo-ts/common'; import type { TurnDaemonTransport } from './daemon/transport.js'; diff --git a/app/gateway-api/src/router.ts b/app/gateway-api/src/router.ts index 29aacfa..4cae667 100644 --- a/app/gateway-api/src/router.ts +++ b/app/gateway-api/src/router.ts @@ -4,10 +4,7 @@ import { TRPCError } from '@trpc/server'; import { addHours, addSeconds, isAfter, isValid, parseISO } from 'date-fns'; import { z } from 'zod'; -import { - decryptGameSessionToken, - encryptGameSessionToken, -} from '@sammo-ts/common/auth/gameToken.js'; +import { decryptGameSessionToken, encryptGameSessionToken } from '@sammo-ts/common'; import { procedure, router } from './trpc.js'; import { toPublicUser } from './auth/userRepository.js'; diff --git a/packages/logic/src/actions/turn/general/index.ts b/packages/logic/src/actions/turn/general/index.ts index 3b8c78a..25eef47 100644 --- a/packages/logic/src/actions/turn/general/index.ts +++ b/packages/logic/src/actions/turn/general/index.ts @@ -5,12 +5,18 @@ export type GeneralTurnCommandKey = | 'che_의병모집' | '휴식'; +import type * as CommerceInvestmentModule from './che_상업투자.js'; +import type * as FireAttackModule from './che_화계.js'; +import type * as TalentScoutModule from './che_인재탐색.js'; +import type * as VolunteerRecruitModule from './che_의병모집.js'; +import type * as RestModule from './휴식.js'; + export type GeneralTurnCommandModule = - | typeof import('./che_상업투자.js') - | typeof import('./che_화계.js') - | typeof import('./che_인재탐색.js') - | typeof import('./che_의병모집.js') - | typeof import('./휴식.js'); + | typeof CommerceInvestmentModule + | typeof FireAttackModule + | typeof TalentScoutModule + | typeof VolunteerRecruitModule + | typeof RestModule; export type GeneralTurnCommandImporter = () => Promise; diff --git a/packages/logic/src/actions/turn/nation/index.ts b/packages/logic/src/actions/turn/nation/index.ts index aef1c75..af1e9e1 100644 --- a/packages/logic/src/actions/turn/nation/index.ts +++ b/packages/logic/src/actions/turn/nation/index.ts @@ -1,9 +1,13 @@ export type NationTurnCommandKey = '휴식' | 'che_포상' | 'che_발령'; +import type * as NationRestModule from './휴식.js'; +import type * as AwardModule from './che_포상.js'; +import type * as AssignmentModule from './che_발령.js'; + export type NationTurnCommandModule = - | typeof import('./휴식.js') - | typeof import('./che_포상.js') - | typeof import('./che_발령.js'); + | typeof NationRestModule + | typeof AwardModule + | typeof AssignmentModule; export type NationTurnCommandImporter = () => Promise;