talawa-admin / Modules / screens/OrganizationActionItems/OrganizationActionItemMocks
Module: screens/OrganizationActionItems/OrganizationActionItemMocks
Table of contents
Variables
Variables
MOCKS
• Const
MOCKS: ({ request
: { query
: DocumentNode
= ACTION_ITEM_CATEGORY_LIST; variables
: { actionItemCategoryId?
: undefined
= 'actionItemCategory1'; assigneeId?
: undefined
= 'user2'; dueDate?
: undefined
= '2024-02-14'; eventId?
: undefined
= 'event1'; id?
: undefined
= '123'; isActive?
: undefined
= false; isCompleted?
: undefined
= false; orderBy?
: undefined
= 'createdAt_DESC'; organizationId
: string
= '123'; preCompletionNotes?
: undefined
= 'pre completion notes edited' } } ; result
: { data
: { actionItemCategoriesByOrganization
: { _id
: string
= 'actionItemCategory1'; isDisabled
: boolean
= false; name
: string
= 'ActionItemCategory 1' }[] ; actionItemsByOrganization?
: undefined
; createActionItem?
: undefined
; organizations?
: undefined
} } } | { request
: { query
: DocumentNode
= MEMBERS_LIST; variables
: { actionItemCategoryId?
: undefined
= 'actionItemCategory1'; assigneeId?
: undefined
= 'user2'; dueDate?
: undefined
= '2024-02-14'; eventId?
: undefined
= 'event1'; id
: string
= '123'; isActive?
: undefined
= false; isCompleted?
: undefined
= false; orderBy?
: undefined
= 'createdAt_DESC'; organizationId?
: undefined
= '123'; preCompletionNotes?
: undefined
= 'pre completion notes edited' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: undefined
; actionItemsByOrganization?
: undefined
; createActionItem?
: undefined
; organizations
: { _id
: string
= '123'; members
: { _id
: string
= 'user1'; createdAt
: string
= '2024-02-14'; email
: string
= 'harve@example.com'; firstName
: string
= 'Harve'; image
: string
= ''; lastName
: string
= 'Lance'; organizationsBlockedBy
: never
[] = [] }[] }[] } } } | { request
: { query
: DocumentNode
= ACTION_ITEM_LIST; variables
: { actionItemCategoryId
: string
= ''; assigneeId?
: undefined
= 'user2'; dueDate?
: undefined
= '2024-02-14'; eventId?
: undefined
= 'event1'; id?
: undefined
= '123'; isActive
: boolean
= false; isCompleted
: boolean
= false; orderBy
: string
= 'createdAt_DESC'; organizationId
: string
= '123'; preCompletionNotes?
: undefined
= 'pre completion notes edited' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: undefined
; actionItemsByOrganization
: { _id
: string
= 'actionItem1'; actionItemCategory
: { _id
: string
= 'actionItemCategory1'; name
: string
= 'ActionItemCategory 1' } ; assignee
: { _id
: string
= 'user1'; firstName
: string
= 'Harve'; lastName
: string
= 'Lance' } ; assigner
: { _id
: string
= 'user0'; firstName
: string
= 'Wilt'; lastName
: string
= 'Shepherd' } ; assignmentDate
: string
= '2024-02-14'; completionDate
: string
= '2024-02-21'; creator
: { _id
: string
= 'user0'; firstName
: string
= 'Wilt'; lastName
: string
= 'Shepherd' } ; dueDate
: string
= '2024-02-21'; event
: { _id
: string
= 'event1'; title
: string
= 'event 1' } ; isCompleted
: boolean
= false; postCompletionNotes
: string
= 'Post Completion Notes'; preCompletionNotes
: string
= 'Pre Completion Notes' }[] ; createActionItem?
: undefined
; organizations?
: undefined
} } } | { request
: { query
: DocumentNode
= ACTION_ITEM_LIST; variables
: { actionItemCategoryId?
: undefined
= 'actionItemCategory1'; assigneeId?
: undefined
= 'user2'; dueDate?
: undefined
= '2024-02-14'; eventId
: string
= 'event1'; id?
: undefined
= '123'; isActive?
: undefined
= false; isCompleted?
: undefined
= false; orderBy
: string
= 'createdAt_DESC'; organizationId
: string
= '123'; preCompletionNotes?
: undefined
= 'pre completion notes edited' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: undefined
; actionItemsByOrganization
: { _id
: string
= 'actionItem1'; actionItemCategory
: { _id
: string
= 'actionItemCategory1'; name
: string
= 'ActionItemCategory 1' } ; assignee
: { _id
: string
= 'user1'; firstName
: string
= 'Harve'; lastName
: string
= 'Lance' } ; assigner
: { _id
: string
= 'user0'; firstName
: string
= 'Wilt'; lastName
: string
= 'Shepherd' } ; assignmentDate
: string
= '2024-02-14'; completionDate
: string
= '2024-02-21'; creator
: { _id
: string
= 'user0'; firstName
: string
= 'Wilt'; lastName
: string
= 'Shepherd' } ; dueDate
: string
= '2024-02-21'; event
: { _id
: string
= 'event1'; title
: string
= 'event 1' } ; isCompleted
: boolean
= false; postCompletionNotes
: string
= 'Post Completion Notes'; preCompletionNotes
: string
= 'Pre Completion Notes' }[] ; createActionItem?
: undefined
; organizations?
: undefined
} } } | { request
: { query
: DocumentNode
= CREATE_ACTION_ITEM_MUTATION; variables
: { actionItemCategoryId
: string
= 'actionItemCategory1'; assigneeId
: string
= 'user1'; dueDate
: string
= '2024-02-14'; eventId?
: undefined
= 'event1'; id?
: undefined
= '123'; isActive?
: undefined
= false; isCompleted?
: undefined
= false; orderBy?
: undefined
= 'createdAt_DESC'; organizationId?
: undefined
= '123'; preCompletionNotes
: string
= 'pre completion notes' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: undefined
; actionItemsByOrganization?
: undefined
; createActionItem
: { _id
: string
= 'actionItem2' } ; organizations?
: undefined
} } } | { request
: { query
: DocumentNode
= CREATE_ACTION_ITEM_MUTATION; variables
: { actionItemCategoryId
: string
= 'actionItemCategory1'; assigneeId
: string
= 'user1'; dueDate
: string
= '2024-02-14'; eventId
: string
= 'event1'; id?
: undefined
= '123'; isActive?
: undefined
= false; isCompleted?
: undefined
= false; orderBy?
: undefined
= 'createdAt_DESC'; organizationId?
: undefined
= '123'; preCompletionNotes
: string
= 'pre completion notes' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: undefined
; actionItemsByOrganization?
: undefined
; createActionItem
: { _id
: string
= 'actionItem2' } ; organizations?
: undefined
} } })[]
Defined in
src/screens/OrganizationActionItems/OrganizationActionItemMocks.ts:9