Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __test__/auth/AccessTokenService.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import AccessTokenService from "../../src/features/auth/domain/accessToken/AccessTokenService"
import OAuthToken from "../../src/features/auth/domain/oAuthToken/OAuthToken"
import { AccessTokenService } from "../../src/features/auth/domain"
import { OAuthToken } from "../../src/features/auth/domain"

test("It gets the access token for the user", async () => {
let readUserID: string | undefined
Expand Down
2 changes: 1 addition & 1 deletion __test__/auth/CompositeLogOutHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CompositeLogOutHandler from "../../src/features/auth/domain/logOut/CompositeLogOutHandler"
import { CompositeLogOutHandler } from "../../src/features/auth/domain"

test("It invokes all log out handlers", async () => {
let didCallLogOutHandler1 = false
Expand Down
4 changes: 2 additions & 2 deletions __test__/auth/CredentialsTransferrer.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CredentialsTransferrer from "../../src/features/auth/domain/credentialsTransfer/CredentialsTransferrer"
import OAuthToken from "../../src/features/auth/domain/oAuthToken/OAuthToken"
import { CredentialsTransferrer } from "../../src/features/auth/domain"
import { OAuthToken } from "../../src/features/auth/domain"

test("It fetches refresh token for specified user", async () => {
let fetchedUserId: string | undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CredentialsTransferringLogInHandler from "../../src/features/auth/domain/logIn/CredentialsTransferringLogInHandler"
import { CredentialsTransferringLogInHandler } from "../../src/features/auth/domain"

test("It transfers credentials", async () => {
let didTransferCredentials = false
Expand Down
2 changes: 1 addition & 1 deletion __test__/auth/ErrorIgnoringLogOutHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ErrorIgnoringLogOutHandler from "../../src/features/auth/domain/logOut/ErrorIgnoringLogOutHandler"
import { ErrorIgnoringLogOutHandler } from "../../src/features/auth/domain"

test("It ignores errors", async () => {
const sut = new ErrorIgnoringLogOutHandler({
Expand Down
2 changes: 1 addition & 1 deletion __test__/auth/LockingAccessTokenService.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LockingAccessTokenService from "../../src/features/auth/domain/accessToken/LockingAccessTokenService"
import { LockingAccessTokenService } from "../../src/features/auth/domain"

test("It reads access token", async () => {
let didReadAccessToken = false
Expand Down
2 changes: 1 addition & 1 deletion __test__/auth/OAuthTokenRepository.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OAuthTokenRepository from "../../src/features/auth/domain/oAuthToken/OAuthTokenRepository"
import { OAuthTokenRepository } from "../../src/features/auth/domain"

test("It reads the auth token for the specified user", async () => {
let readUserId: string | undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OnlyStaleRefreshingAccessTokenService from "../../src/features/auth/domain/accessToken/OnlyStaleRefreshingAccessTokenService"
import { OnlyStaleRefreshingAccessTokenService } from "../../src/features/auth/domain"

test("It refreshes the access token when the input access token is equal to the stored access token", async () => {
let didRefreshAccessToken = false
Expand Down
2 changes: 1 addition & 1 deletion __test__/auth/UserDataCleanUpLogOutHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UserDataCleanUpLogOutHandler from "../../src/features/auth/domain/logOut/UserDataCleanUpLogOutHandler"
import { UserDataCleanUpLogOutHandler } from "../../src/features/auth/domain"

test("It deletes data for the read user ID", async () => {
let deletedUserId: string | undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AccessTokenRefreshingGitHubClient from "../../../src/common/github/AccessTokenRefreshingGitHubClient"
import { AccessTokenRefreshingGitHubClient } from "../../../src/common"
import {
GraphQLQueryRequest,
GetRepositoryContentRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
GetOrganizationMembershipStatusRequest
} from "../../../src/common/github/IGitHubClient"
import GitHubOrganizationSessionValidator from "../../../src/common/session/GitHubOrganizationSessionValidator"
import { GitHubOrganizationSessionValidator } from "../../../src/common"

test("It requests organization membership status for the specified organization", async () => {
let queriedOrganizationName: string | undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyValueUserDataRepository from "../../../src/common/userData/KeyValueUserDataRepository"
import { KeyValueUserDataRepository } from "../../../src/common"

test("It reads the expected key", async () => {
let readKey: string | undefined
Expand Down
2 changes: 1 addition & 1 deletion __test__/common/utils/ZodJSONCoder.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod"
import ZodJSONCoder from "../../../src/common/utils/ZodJSONCoder"
import { ZodJSONCoder } from "../../../src/common"

const SampleAuthTokenSchema = z.object({
accessToken: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion __test__/common/utils/url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getProjectId,
getVersionId,
getSpecificationId
} from "../../../src/common/utils/url"
} from "../../../src/common"

test("It reads path containing project only", async () => {
const url = "/foo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ExistingCommentCheckingPullRequestEventHandler from "../../src/features/hooks/domain/ExistingCommentCheckingPullRequestEventHandler"
import { ExistingCommentCheckingPullRequestEventHandler } from "../../src/features/hooks/domain"

test("It fetches comments from the repository", async () => {
let didFetchComments = false
Expand Down
2 changes: 1 addition & 1 deletion __test__/hooks/GitHubCommentFactory.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import GitHubCommentFactory from "../../src/features/hooks/domain/GitHubCommentFactory"
import { GitHubCommentFactory } from "../../src/features/hooks/domain"

test("It includes a link to the documentation", async () => {
const text = GitHubCommentFactory.makeDocumentationPreviewReadyComment(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PostCommentPullRequestEventHandler from "../../src/features/hooks/domain/PostCommentPullRequestEventHandler"
import { PostCommentPullRequestEventHandler } from "../../src/features/hooks/domain"

test("It adds a comment to the repository", async () => {
let didAddComment = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RepositoryNameCheckingPullRequestEventHandler from "../../src/features/hooks/domain/RepositoryNameCheckingPullRequestEventHandler"
import { RepositoryNameCheckingPullRequestEventHandler } from "../../src/features/hooks/domain"

test("It does not call event handler when repository name does not have \"-openapi\" suffix", async () => {
let didCallEventHandler = false
Expand Down
3 changes: 1 addition & 2 deletions __test__/projects/CachingProjectDataSource.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Project from "../../src/features/projects/domain/Project"
import CachingProjectDataSource from "../../src/features/projects/domain/CachingProjectDataSource"
import { Project, CachingProjectDataSource } from "../../src/features/projects/domain"

test("It caches projects read from the data source", async () => {
const projects: Project[] = [{
Expand Down
2 changes: 1 addition & 1 deletion __test__/projects/ProjectConfigParser.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ProjectConfigParser from "../../src/features/projects/domain/ProjectConfigParser"
import { ProjectConfigParser } from "../../src/features/projects/domain"

test("It parses an empty string", async () => {
const sut = new ProjectConfigParser()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SessionValidatingProjectDataSource from "../../src/features/projects/domain/SessionValidatingProjectDataSource"
import { SessionValidatingProjectDataSource } from "../../src/features/projects/domain"

test("It validates the session", async () => {
let didValidateSession = false
Expand Down
2 changes: 1 addition & 1 deletion __test__/projects/getSelection.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getSelection from "../../src/features/projects/domain/getSelection"
import { getSelection } from "../../src/features/projects/domain"

test("It selects the first project when there is only one project", () => {
const sut = getSelection({
Expand Down
2 changes: 1 addition & 1 deletion __test__/projects/projectNavigator.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import projectNavigator from "../../src/features/projects/domain/projectNavigator"
import { projectNavigator } from "../../src/features/projects/domain"

test("It navigates to the correct path", async () => {
let pushedPath: string | undefined
Expand Down
2 changes: 1 addition & 1 deletion __test__/projects/updateWindowTitle.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import updateWindowTitle from "../../src/features/projects/domain/updateWindowTitle"
import { updateWindowTitle } from "../../src/features/projects/domain"

test("It uses default title when there is no selection", async () => {
const store: { title: string } = { title: "" }
Expand Down
14 changes: 9 additions & 5 deletions src/app/api/hooks/github/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { NextRequest, NextResponse } from "next/server"
import GitHubHookHandler from "@/features/hooks/data/GitHubHookHandler"
import GitHubPullRequestCommentRepository from "@/features/hooks/data/GitHubPullRequestCommentRepository"
import PostCommentPullRequestEventHandler from "@/features/hooks/domain/PostCommentPullRequestEventHandler"
import RepositoryNameCheckingPullRequestEventHandler from "@/features/hooks/domain/RepositoryNameCheckingPullRequestEventHandler"
import ExistingCommentCheckingPullRequestEventHandler from "@/features/hooks/domain/ExistingCommentCheckingPullRequestEventHandler"
import {
GitHubHookHandler,
GitHubPullRequestCommentRepository
} from "@/features/hooks/data"
import {
PostCommentPullRequestEventHandler,
RepositoryNameCheckingPullRequestEventHandler,
ExistingCommentCheckingPullRequestEventHandler
} from "@/features/hooks/domain"
import { gitHubClient } from "@/composition"

const {
Expand Down
3 changes: 3 additions & 0 deletions src/common/github/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as AccessTokenRefreshingGitHubClient } from "./AccessTokenRefreshingGitHubClient"
export { default as GitHubClient } from "./GitHubClient"
export type { default as IGitHubClient } from "./IGitHubClient"
7 changes: 7 additions & 0 deletions src/common/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export * from "./errors"
export * from "./github"
export * from "./keyValueStore"
export * from "./mutex"
export * from "./session"
export * from "./userData"
export * from "./utils"
1 change: 1 addition & 0 deletions src/common/keyValueStore/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type { default as IKeyValueStore } from "./IKeyValueStore"
5 changes: 5 additions & 0 deletions src/common/mutex/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export type { default as IKeyedMutexFactory } from "./IKeyedMutexFactory"
export type { default as IMutex } from "./IMutex"
export type { default as IMutexFactory } from "./IMutexFactory"
export { default as SessionMutexFactory } from "./SessionMutexFactory"
export { default as withMutex } from "./withMutex"
2 changes: 1 addition & 1 deletion src/common/session/Auth0Session.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSession } from "@auth0/nextjs-auth0"
import { UnauthorizedError } from "@/common/errors"
import { UnauthorizedError } from "../../common/errors"
import ISession from "./ISession"

export default class Auth0Session implements ISession {
Expand Down
3 changes: 3 additions & 0 deletions src/common/session/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as GitHubOrganizationSessionValidator } from "./GitHubOrganizationSessionValidator"
export type { default as ISession } from "./ISession"
export type { default as ISessionValidator } from "./ISessionValidator"
2 changes: 2 additions & 0 deletions src/common/userData/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export type { default as IUserDataRepository } from "./IUserDataRepository"
export { default as KeyValueUserDataRepository } from "./KeyValueUserDataRepository"
4 changes: 4 additions & 0 deletions src/common/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./fetcher"
export { default as fetcher } from "./fetcher"
export * from "./url"
export { default as ZodJSONCoder } from "./ZodJSONCoder"
51 changes: 31 additions & 20 deletions src/composition.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
import AccessTokenRefreshingGitHubClient from "@/common/github/AccessTokenRefreshingGitHubClient"
import AccessTokenService from "@/features/auth/domain/accessToken/AccessTokenService"
import Auth0RefreshTokenReader from "@/features/auth/data/Auth0RefreshTokenReader"
import Auth0Session from "@/common/session/Auth0Session"
import CachingProjectDataSource from "@/features/projects/domain/CachingProjectDataSource"
import CompositeLogOutHandler from "@/features/auth/domain/logOut/CompositeLogOutHandler"
import CredentialsTransferrer from "@/features/auth/domain/credentialsTransfer/CredentialsTransferrer"
import CredentialsTransferringLogInHandler from "@/features/auth/domain/logIn/CredentialsTransferringLogInHandler"
import ErrorIgnoringLogOutHandler from "@/features/auth/domain/logOut/ErrorIgnoringLogOutHandler"
import GitHubClient from "@/common/github/GitHubClient"
import GitHubOAuthTokenRefresher from "@/features/auth/data/GitHubOAuthTokenRefresher"
import GitHubOrganizationSessionValidator from "@/common/session/GitHubOrganizationSessionValidator"
import GitHubProjectDataSource from "@/features/projects/data/GitHubProjectDataSource"
import KeyValueUserDataRepository from "@/common/userData/KeyValueUserDataRepository"
import LockingAccessTokenService from "@/features/auth/domain/accessToken/LockingAccessTokenService"
import OnlyStaleRefreshingAccessTokenService from "@/features/auth/domain/accessToken/OnlyStaleRefreshingAccessTokenService"
import ProjectRepository from "@/features/projects/domain/ProjectRepository"
import RedisKeyedMutexFactory from "@/common/mutex/RedisKeyedMutexFactory"
import RedisKeyValueStore from "@/common/keyValueStore/RedisKeyValueStore"
import SessionMutexFactory from "@/common/mutex/SessionMutexFactory"
import SessionValidatingProjectDataSource from "@/features/projects/domain/SessionValidatingProjectDataSource"
import OAuthTokenRepository from "@/features/auth/domain/oAuthToken/OAuthTokenRepository"
import UserDataCleanUpLogOutHandler from "@/features/auth/domain/logOut/UserDataCleanUpLogOutHandler"

import {
AccessTokenRefreshingGitHubClient,
GitHubClient,
GitHubOrganizationSessionValidator,
KeyValueUserDataRepository,
SessionMutexFactory
} from "@/common"
import {
Auth0RefreshTokenReader,
GitHubOAuthTokenRefresher
} from "@/features/auth/data"
import {
AccessTokenService,
CompositeLogOutHandler,
CredentialsTransferrer,
CredentialsTransferringLogInHandler,
ErrorIgnoringLogOutHandler,
LockingAccessTokenService,
OnlyStaleRefreshingAccessTokenService,
OAuthTokenRepository,
UserDataCleanUpLogOutHandler
} from "@/features/auth/domain"
import {
GitHubProjectDataSource
} from "@/features/projects/data"
import {
CachingProjectDataSource,
ProjectRepository,
SessionValidatingProjectDataSource
} from "@/features/projects/domain"

const {
AUTH0_MANAGEMENT_DOMAIN,
Expand Down
3 changes: 1 addition & 2 deletions src/features/auth/data/GitHubOAuthTokenRefresher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { UnauthorizedError } from "@/common/errors"
import OAuthToken from "../domain/oAuthToken/OAuthToken"
import IOAuthTokenRefresher from "../domain/oAuthToken/IOAuthTokenRefresher"
import { OAuthToken, IOAuthTokenRefresher } from "../domain"

export interface GitHubOAuthTokenRefresherConfig {
readonly clientId: string
Expand Down
2 changes: 2 additions & 0 deletions src/features/auth/data/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as Auth0RefreshTokenReader } from "./Auth0RefreshTokenReader"
export { default as GitHubOAuthTokenRefresher } from "./GitHubOAuthTokenRefresher"
4 changes: 4 additions & 0 deletions src/features/auth/domain/accessToken/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { default as AccessTokenService } from "./AccessTokenService"
export type { default as IAccessTokenService } from "./IAccessTokenService"
export { default as LockingAccessTokenService } from "./LockingAccessTokenService"
export { default as OnlyStaleRefreshingAccessTokenService } from "./OnlyStaleRefreshingAccessTokenService"
2 changes: 2 additions & 0 deletions src/features/auth/domain/credentialsTransfer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as CredentialsTransferrer } from "./CredentialsTransferrer"
export type { default as ICredentialsTransferrer } from "./ICredentialsTransferrer"
5 changes: 5 additions & 0 deletions src/features/auth/domain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from "./accessToken"
export * from "./credentialsTransfer"
export * from "./logIn"
export * from "./logOut"
export * from "./oAuthToken"
2 changes: 2 additions & 0 deletions src/features/auth/domain/logIn/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as CredentialsTransferringLogInHandler } from "./CredentialsTransferringLogInHandler"
export type { default as ILogInHandler } from "./ILogInHandler"
4 changes: 4 additions & 0 deletions src/features/auth/domain/logOut/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { default as CompositeLogOutHandler } from "./CompositeLogOutHandler"
export { default as ErrorIgnoringLogOutHandler } from "./ErrorIgnoringLogOutHandler"
export type { default as ILogOutHandler } from "./ILogOutHandler"
export { default as UserDataCleanUpLogOutHandler } from "./UserDataCleanUpLogOutHandler"
4 changes: 4 additions & 0 deletions src/features/auth/domain/oAuthToken/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export type { default as IOAuthTokenRefresher } from "./IOAuthTokenRefresher"
export type { default as IOAuthTokenRepository } from "./IOAuthTokenRepository"
export type { default as OAuthToken } from "./OAuthToken"
export { default as OAuthTokenRepository } from "./OAuthTokenRepository"
2 changes: 1 addition & 1 deletion src/features/docs/view/DocumentationViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Redocly from "./Redocly"
import Swagger from "./Swagger"
import DocumentationVisualizer from "@/features/settings/domain/DocumentationVisualizer"
import { DocumentationVisualizer } from "@/features/settings/domain"

const DocumentationViewer = ({
visualizer,
Expand Down
2 changes: 1 addition & 1 deletion src/features/hooks/data/GitHubHookHandler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextRequest } from "next/server"
import { Webhooks, EmitterWebhookEventName } from "@octokit/webhooks"
import IPullRequestEventHandler from "../domain/IPullRequestEventHandler"
import { IPullRequestEventHandler } from "../domain"

interface GitHubHookHandlerConfig {
readonly secret: string
Expand Down
2 changes: 2 additions & 0 deletions src/features/hooks/data/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as GitHubHookHandler } from "./GitHubHookHandler"
export { default as GitHubPullRequestCommentRepository } from "./GitHubPullRequestCommentRepository"
6 changes: 6 additions & 0 deletions src/features/hooks/domain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { default as ExistingCommentCheckingPullRequestEventHandler } from "./ExistingCommentCheckingPullRequestEventHandler"
export { default as GitHubCommentFactory } from "./GitHubCommentFactory"
export type { default as IPullRequestCommentRepository } from "./IPullRequestCommentRepository"
export type { default as IPullRequestEventHandler } from "./IPullRequestEventHandler"
export { default as PostCommentPullRequestEventHandler } from "./PostCommentPullRequestEventHandler"
export { default as RepositoryNameCheckingPullRequestEventHandler } from "./RepositoryNameCheckingPullRequestEventHandler"
12 changes: 7 additions & 5 deletions src/features/projects/data/GitHubProjectDataSource.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import IGitHubClient from "@/common/github/IGitHubClient"
import Project from "../domain/Project"
import IProjectConfig from "../domain/IProjectConfig"
import IProjectDataSource from "../domain/IProjectDataSource"
import Version from "../domain/Version"
import ProjectConfigParser from "../domain/ProjectConfigParser"
import {
Project,
IProjectConfig,
IProjectDataSource,
Version,
ProjectConfigParser
} from "../domain"

type SearchResult = {
readonly name: string
Expand Down
2 changes: 2 additions & 0 deletions src/features/projects/data/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as GitHubProjectDataSource } from "./GitHubProjectDataSource"
export { default as useProjects } from "./useProjects"
6 changes: 4 additions & 2 deletions src/features/projects/data/useProjects.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client"

import useSWR from "swr"
import fetcher from "@/common/utils/fetcher"
import Project from "../domain/Project"
import { fetcher } from "@/common"
import { Project } from "../domain"

type ProjectContainer = { projects: Project[] }

Expand Down
4 changes: 1 addition & 3 deletions src/features/projects/domain/ProjectRepository.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import ZodJSONCoder from "@/common/utils/ZodJSONCoder"
import ISession from "@/common/session/ISession"
import IUserDataRepository from "@/common/userData/IUserDataRepository"
import { ZodJSONCoder, ISession, IUserDataRepository } from "../../../common"
import IProjectRepository from "./IProjectRepository"
import Project, { ProjectSchema } from "./Project"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { InvalidSessionError } from "../../../common/errors"
import ISessionValidator from "@/common/session/ISessionValidator"
import IProjectDataSource from "../domain/IProjectDataSource"
import Project from "../domain/Project"
import { ISessionValidator, InvalidSessionError } from "../../../common"
import { IProjectDataSource ,Project } from "../domain"

export default class SessionValidatingProjectDataSource implements IProjectDataSource {
private readonly sessionValidator: ISessionValidator
Expand Down
12 changes: 12 additions & 0 deletions src/features/projects/domain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export { default as CachingProjectDataSource } from "./CachingProjectDataSource"
export { default as getSelection } from "./getSelection"
export type { default as IProjectConfig } from "./IProjectConfig"
export type { default as IProjectDataSource } from "./IProjectDataSource"
export type { default as OpenApiSpecification } from "./OpenApiSpecification"
export type { default as Project } from "./Project"
export { default as ProjectConfigParser } from "./ProjectConfigParser"
export { default as projectNavigator } from "./projectNavigator"
export { default as ProjectRepository } from "./ProjectRepository"
export { default as SessionValidatingProjectDataSource } from "./SessionValidatingProjectDataSource"
export { default as updateWindowTitle } from "./updateWindowTitle"
export type { default as Version } from "./Version"
Loading