Skip to content

Commit

Permalink
feat: added worflowdefinition type to exported entities and to api.ty…
Browse files Browse the repository at this point in the history
…pes (#1294)
  • Loading branch information
mdmjg authored Jun 15, 2022
1 parent 29dc24d commit b2d917f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/types/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Entry,
Task,
Asset,
WorkflowDefinition,
} from './entities'
import { EntryAPI } from './entry.types'
import { SpaceAPI } from './space.types'
Expand Down Expand Up @@ -141,7 +142,7 @@ export type JSONPatchItem = {
path: string
value?: any
}
type PatchEntity = Entry | Task | Asset
type PatchEntity = Entry | Task | Asset | WorkflowDefinition

export interface AccessAPI {
can(action: 'read' | 'update', entity: 'EditorInterface' | EditorInterface): Promise<boolean>
Expand Down
1 change: 1 addition & 0 deletions lib/types/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type {
TeamProps as Team,
UploadProps as Upload,
UserProps as User,
WorkflowDefinitionProps as WorkflowDefinition,
} from 'contentful-management/types'

export interface CanonicalRequest {
Expand Down

0 comments on commit b2d917f

Please sign in to comment.