talawa-admin / Modules / screens/OrganizationActionItems/OrganizationActionItemsErrorMocks
Module: screens/OrganizationActionItems/OrganizationActionItemsErrorMocks
Table of contents
Variables
- MOCKS_ERROR_ACTION_ITEM_CATEGORY_LIST_QUERY
- MOCKS_ERROR_ACTION_ITEM_LIST_QUERY
- MOCKS_ERROR_MEMBERS_LIST_QUERY
- MOCKS_ERROR_MUTATIONS
Variables
MOCKS_ERROR_ACTION_ITEM_CATEGORY_LIST_QUERY
• Const
MOCKS_ERROR_ACTION_ITEM_CATEGORY_LIST_QUERY: { error
: Error
; request
: { query
: DocumentNode
= ACTION_ITEM_CATEGORY_LIST; variables
: { organizationId
: string
= '123' } } }[]
Defined in
src/screens/OrganizationActionItems/OrganizationActionItemsErrorMocks.ts:9
MOCKS_ERROR_ACTION_ITEM_LIST_QUERY
• Const
MOCKS_ERROR_ACTION_ITEM_LIST_QUERY: ({ error?
: undefined
; request
: { query
: DocumentNode
= ACTION_ITEM_CATEGORY_LIST; variables
: { id?
: undefined
= '123'; organizationId
: string
= '123' } } ; result
: { data
: { actionItemCategoriesByOrganization
: { _id
: string
= 'actionItemCategory1'; isDisabled
: boolean
= false; name
: string
= 'ActionItemCategory 1' }[] ; organizations?
: undefined
} } } | { error?
: undefined
; request
: { query
: DocumentNode
= MEMBERS_LIST; variables
: { id
: string
= '123'; organizationId?
: undefined
= '123' } } ; result
: { data
: { actionItemCategoriesByOrganization?
: 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
[] = [] }[] }[] } } } | { error
: Error
; request
: { query
: DocumentNode
= ACTION_ITEM_LIST; variables
: { id
: string
= '123'; organizationId?
: undefined
= '123' } } ; result?
: undefined
})[]
Defined in
src/screens/OrganizationActionItems/OrganizationActionItemsErrorMocks.ts:46
MOCKS_ERROR_MEMBERS_LIST_QUERY
• Const
MOCKS_ERROR_MEMBERS_LIST_QUERY: ({ error?
: undefined
; request
: { query
: DocumentNode
= ACTION_ITEM_CATEGORY_LIST; variables
: { id?
: undefined
= '123'; organizationId
: string
= '123' } } ; result
: { data
: { actionItemCategoriesByOrganization
: { _id
: string
= 'actionItemCategory1'; isDisabled
: boolean
= false; name
: string
= 'ActionItemCategory 1' }[] } } } | { error
: Error
; request
: { query
: DocumentNode
= MEMBERS_LIST; variables
: { id
: string
= '123'; organizationId?
: undefined
= '123' } } ; result?
: undefined
})[]
Defined in
src/screens/OrganizationActionItems/OrganizationActionItemsErrorMocks.ts:19
MOCKS_ERROR_MUTATIONS
• Const
MOCKS_ERROR_MUTATIONS: ({ error?
: undefined
; 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
; organizations?
: undefined
} } } | { error?
: 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
; 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
[] = [] }[] }[] } } } | { error?
: undefined
; 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' }[] ; organizations?
: undefined
} } } | { error?
: 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' }[] ; organizations?
: undefined
} } } | { error
: Error
; 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?
: undefined
} | { error
: Error
; 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?
: undefined
})[]
Defined in
src/screens/OrganizationActionItems/OrganizationActionItemsErrorMocks.ts:99