Skip to main content

MOCKS

Admin Docs


Variable: MOCKS

const MOCKS: ({ request: { query: DocumentNode; variables: { organizationId: string; }; }; result: { data: { usersByOrganizationId: object[]; }; }; } | { request: { query: DocumentNode; variables: { input: { organizationId: string; }; }; }; result: { data: { actionCategoriesByOrganization: object[]; }; }; } | { request: { query: DocumentNode; variables: { input: { organizationId: string; }; }; }; result: { data: { actionItemsByOrganization: ({ assignedAt: Date; category: { createdAt: string; creatorId: string; id: string; isDisabled: boolean; name: string; organizationId: string; updatedAt: string; }; categoryId: string; completionAt: any; createdAt: Date; creator: { avatarURL: any; emailAddress: string; id: string; name: string; }; creatorId: string; event: any; eventId: any; id: string; isCompleted: boolean; organizationId: string; postCompletionNotes: any; preCompletionNotes: string; recurringEventInstance: any; recurringEventInstanceId: any; updatedAt: Date; updaterId: string; volunteer: any; volunteerGroup: any; volunteerGroupId: any; volunteerId: any; } | { assignedAt: Date; category: any; categoryId: any; completionAt: any; createdAt: Date; creator: { avatarURL: any; emailAddress: string; id: string; name: string; }; creatorId: string; event: any; eventId: any; id: string; isCompleted: boolean; organizationId: string; postCompletionNotes: any; preCompletionNotes: string; recurringEventInstance: any; recurringEventInstanceId: any; updatedAt: Date; updaterId: string; volunteer: { hasAccepted: boolean; hoursVolunteered: number; id: string; isPublic: boolean; user: { avatarURL: string; id: string; name: string; }; }; volunteerGroup: any; volunteerGroupId: any; volunteerId: string; })[]; }; }; } | { request: { query: DocumentNode; variables: { input: { id: string; isCompleted: boolean; postCompletionNotes: string; }; }; }; result: { data: { updateActionItem: { id: string; isCompleted: boolean; postCompletionNotes: string; updatedAt: string; }; }; }; } | { request: { query: DocumentNode; variables: { input: { id: string; }; }; }; result: { data: { markActionItemAsPending: { id: string; isCompleted: boolean; postCompletionNotes: any; updatedAt: string; }; }; }; } | { request: { query: DocumentNode; variables: { input: { id: string; }; }; }; result: { data: { deleteActionItem: { id: string; }; }; }; } | { request: { query: DocumentNode; variables: { input: { actionId: string; eventId: string; }; }; }; result: { data: { deleteActionItemForInstance: { id: string; }; }; }; } | { request: { query: DocumentNode; variables: { input: { actionId: string; eventId: string; postCompletionNotes: string; }; }; }; result: { data: { completeActionForInstance: { id: string; }; }; }; } | { request: { query: DocumentNode; variables: { input: { actionId: string; eventId: string; }; }; }; result: { data: { markActionAsPendingForInstance: { id: string; }; }; }; })[]

Defined in: src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts:518