Skip to content

Commit bfb613f

Browse files
authored
refactor: update ThemeId import paths across multiple files (nx-circular-deps) (data <-> common) (#2123)
1 parent 7394110 commit bfb613f

File tree

19 files changed

+22
-24
lines changed

19 files changed

+22
-24
lines changed

apps/nuxt/src/components/layout/LayoutCatalog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import { useNavigationStore } from '@/stores/navigation'
7979
import { FaqPage } from '@/tools/faq/faqType'
8080
import Navigation from '@/tools/navigation'
8181
import { Theme } from '@/tools/theme'
82-
import { ThemeId } from '@tee/data'
82+
import { ThemeId } from '@/types'
8383
import { computed } from 'vue'
8484
8585
interface Props {

apps/nuxt/src/components/theme/ThemeFiltersAndCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
/>
1212
</template>
1313
<script setup lang="ts">
14-
import { ThemeId } from '@tee/data'
1514
import { computed } from 'vue'
16-
import { FilterItemKeys } from '@/types'
15+
import { FilterItemKeys, ThemeId } from '@/types'
1716
import { useFiltersStore } from '@/stores/filters'
1817
interface Props {
1918
hasError: boolean

apps/nuxt/src/tools/api/opportunityApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
RouteName,
1212
isProjectFormDataType,
1313
ProjectType,
14-
ProgramTypeForFront
14+
ProgramTypeForFront,
15+
ThemeId
1516
} from '@/types'
1617
import RequestApi from '@/tools/api/requestApi'
1718
import Opportunity from '@/tools/opportunity'
1819
import TrackStructure from '@/tools/questionnaire/track/trackStructure'
19-
import { ThemeId } from '@tee/data'
2020

2121
export default class OpportunityApi extends RequestApi {
2222
protected readonly url = '/api/opportunities'

libs/backend-ddd/src/opportunity/domain/opportunityFeatures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import OpportunityHubFeatures from '../../opportunityHub/domain/opportunityHubFe
66
import { OpportunityHubRepository } from '../../opportunityHub/domain/spi'
77
import { ProgramRepository } from '../../program/domain/spi'
88
import ProgramFeatures from '../../program/domain/programFeatures'
9-
import { Operators, ProgramType, ThemeId } from '@tee/data'
10-
import { ContactDetails, Opportunity, OpportunityType, SiretValidator } from '@tee/common'
9+
import { Operators, ProgramType } from '@tee/data'
10+
import { ContactDetails, Opportunity, OpportunityType, SiretValidator, ThemeId } from '@tee/common'
1111
import EstablishmentService from '../../establishment/application/establishmentService'
1212
import Monitor from '../../common/domain/monitoring/monitor'
1313
import { ProjectService } from '../../project/application/projectService'

libs/backend-ddd/src/opportunity/domain/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Opportunity, OpportunityDetails } from '@tee/common'
2-
import { ProgramType, ProjectType, Operators, ThemeId } from '@tee/data'
1+
import { Opportunity, OpportunityDetails, ThemeId } from '@tee/common'
2+
import { ProgramType, ProjectType, Operators } from '@tee/data'
33

44
export type OpportunityWithContactId = Opportunity & {
55
contactId: number

libs/backend-ddd/src/opportunityHub/infrastructure/api/placedesentreprises/placeDesEntreprises.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { OpportunityWithContactId } from '../../../../opportunity/domain/types'
88
import OpportunityHubAbstract from '../opportunityHubAbstract'
99
import { ProgramService } from '../../../../program/application/programService'
1010
import OpportunityService from '../../../../opportunity/application/opportunityService'
11-
import { Operators, ProgramType, ThemeId } from '@tee/data'
12-
import { Objective, Opportunity, OpportunityType } from '@tee/common'
11+
import { Operators, ProgramType } from '@tee/data'
12+
import { Objective, Opportunity, OpportunityType, ThemeId } from '@tee/common'
1313
import Monitor from '../../../../common/domain/monitoring/monitor'
1414
import { OpportunityAssociatedData } from '../../../../opportunity/domain/opportunityAssociatedData'
1515

libs/backend-ddd/src/program/infrastructure/frontConverter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PublicodesKeys, PublicodeObjective } from '@tee/common'
2-
import { FiltersKeys, ProgramTypeForFront, ProgramTypeWithEligibility, PublicodesCondition, ThemeId } from '@tee/data'
1+
import { PublicodesKeys, PublicodeObjective, ThemeId } from '@tee/common'
2+
import { FiltersKeys, ProgramTypeForFront, ProgramTypeWithEligibility, PublicodesCondition } from '@tee/data'
33
import type { ObjectivePublicodeData } from './types'
44

55
class FrontConverter {

libs/backend-ddd/tests/opportunity/testing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { ContactDetails, Opportunity, OpportunityDetails, OpportunityType } from '@tee/common'
2-
import { ThemeId } from '@tee/data'
1+
import { ContactDetails, Opportunity, OpportunityDetails, OpportunityType, ThemeId } from '@tee/common'
32

43
export const fakeContact = (): ContactDetails => {
54
return {

libs/common/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export * from './geoSearch/types'
55
export * from './opportunity'
66
export * from './questionnaire'
77
export * from './validator'
8+
export * from './theme/types'

libs/common/src/questionnaire/questionnaireSchemaValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ThemeId } from '@tee/data'
21
import { z } from 'zod'
2+
import { ThemeId } from '../theme/types'
33
import { stringBoolean } from '../validator'
44
import { BuildingProperty, MobilityStatus, StructureSize, WasteManagementStatus, WasteSortingStatus, YesNo } from './types/types'
55

0 commit comments

Comments
 (0)