1- import { RootDefinition } from '@croct/content-model/definition/definition' ;
2- import { WorkspacePath } from '@/application/api/organization' ;
3- import { Application } from '@/application/model/application' ;
4- import { Audience } from '@/application/model/audience' ;
5- import { Slot } from '@/application/model/slot' ;
6- import { Component } from '@/application/model/component' ;
7- import {
1+ import type { RootDefinition } from '@croct/content-model/definition/definition' ;
2+ import type { WorkspacePath } from '@/application/api/organization' ;
3+ import type { Application } from '@/application/model/application' ;
4+ import type { Audience } from '@/application/model/audience' ;
5+ import type { Slot } from '@/application/model/slot' ;
6+ import type { Component } from '@/application/model/component' ;
7+ import type {
88 ExperienceDetails ,
99 ExperienceStatus ,
1010 Experience ,
@@ -13,7 +13,7 @@ import {
1313 SlotContentMap ,
1414 SegmentedContent ,
1515} from '@/application/model/experience' ;
16- import { WorkspaceFeatures } from '@/application/model/workspace' ;
16+ import type { WorkspaceFeatures } from '@/application/model/workspace' ;
1717
1818export type AudiencePath = WorkspacePath & {
1919 audienceSlug : string ,
@@ -61,7 +61,7 @@ export type ExperiencePath = WorkspacePath & {
6161} ;
6262
6363export type ExperienceCriteria = WorkspacePath & {
64- status ?: ExperienceStatus | ExperienceStatus [ ] ,
64+ status ?: ExperienceStatus | ExperienceStatus [ ] ,
6565} ;
6666
6767export type SegmentedContentDefinition = Omit < SegmentedContent , 'id' > ;
@@ -125,33 +125,33 @@ export type NewResourceIds = {
125125} ;
126126
127127export interface WorkspaceApi {
128- getFeatures ( path : WorkspacePath ) : Promise < WorkspaceFeatures | null > ;
128+ getFeatures ( path : WorkspacePath ) : Promise < WorkspaceFeatures | null > ;
129129
130130 getAudiences ( path : WorkspacePath ) : Promise < Audience [ ] > ;
131131
132- getAudience ( path : AudiencePath ) : Promise < Audience | null > ;
132+ getAudience ( path : AudiencePath ) : Promise < Audience | null > ;
133133
134134 getSlots ( path : WorkspacePath ) : Promise < Slot [ ] > ;
135135
136- getSlot ( criteria : SlotCriteria ) : Promise < Slot | null > ;
136+ getSlot ( criteria : SlotCriteria ) : Promise < Slot | null > ;
137137
138138 getComponents ( path : WorkspacePath ) : Promise < Component [ ] > ;
139139
140- getComponent ( criteria : ComponentCriteria ) : Promise < Component | null > ;
140+ getComponent ( criteria : ComponentCriteria ) : Promise < Component | null > ;
141141
142142 getSlotStaticContent ( path : SlotPath , majorVersion ?: number ) : Promise < LocalizedContent [ ] > ;
143143
144144 generateTypes ( typing : TargetTyping ) : Promise < string > ;
145145
146146 getApplications ( path : WorkspacePath ) : Promise < Application [ ] > ;
147147
148- getApplication ( path : ApplicationPath ) : Promise < Application | null > ;
148+ getApplication ( path : ApplicationPath ) : Promise < Application | null > ;
149149
150150 createApplication ( application : NewApplication ) : Promise < Application > ;
151151
152152 getExperiences ( path : ExperienceCriteria ) : Promise < Experience [ ] > ;
153153
154- getExperience ( path : ExperiencePath ) : Promise < ExperienceDetails | null > ;
154+ getExperience ( path : ExperiencePath ) : Promise < ExperienceDetails | null > ;
155155
156156 createResources ( resources : NewResources ) : Promise < NewResourceIds > ;
157157}
0 commit comments