Magidoc

Query
Object

Fields

#

getMyTimesheets

Non-null

Used for the "Timesheet" tab in "Timesheets" app.

Access: It requires user access.

Errors: Returns [] if doesn't have access or user with requested userId doesn't exist.

isAdminOrManagerOrProjectCreator

Non-null

Check does a current user can view unsubmitted timesheet data

Access: Requires to be organization/workspace admin, user manager or project owner

Errors: Returns false if requester isn't identified.

getTimesheetsToApprove

Non-null

Used for the "My approvals" tab in "Timesheets" app.

Access: It requires user access.

Errors: Returns [] if doesn't have access or user with requested userId doesn't exist

getUserTimesheets

Non-null

Used for the "Manage" tab in "Timesheets" app.

Access: Requires workspace admin access

Errors: Returns [] if not a workspace admin.

getTimesheetApprovals

Non-null

paginated resolver for the timesheet approval log.

Used for approvals log in "Timesheets" app.

Access: It has admin access.

Errors: Returns empty paginated response if is not workspace admin.

getHistoricalTimesheets

Non-null

Used for edit log in "Manage" tab in "Timesheets" app.

Access: It requires user access.

Errors: Returns [] if not logged in or doesn't have access to workspace.

getTimesheetReportingData

No usage.

Access: Requires workspace admin access

Errors: Returns [] if not workspace admin, or this feature is disabled

getTimesheetReportingRows

Used for Reporting in "Timesheets" app.

Access: It requires user access.

Errors: Returns [] if not logged in, or doesn't have access to reporting, or this feature is disabled

getTimesheetReportingCsvExportData

Used for csv export in Reporting in "Timesheets" app.

Access: It requires user access.

Errors: Returns [] if not logged in, or doesn't have access to reporting, or this feature is disabled

getTimeTrackingData

Non-null

Used for querying time tracking data in "Time-tracking" tab in "Timesheets" app.

Access: It requires user access.

Errors: Returns specific expected errors if: user doesn't have access to workspace or not logged then returns { projects: [], actions: [] }

getTimesheetComments

Used for querying timesheet comments in timesheet comment modal in "timesheet" tab in "Timesheets" app.

Access: It requires user access.

Errors: Returns specific expected errors if: timesheet not found, user doesn't have access to workspace

getTimesheets

Non-null

Used for querying timesheets by date

getUserTimeEntries

Usage: Allows user to pull time entries for the specified userId in a given time range

Access: Requires workspace admin access

Errors: Returns an error if not a workspace administrator.

getTimeCategories

Non-null

getGoal

getGoals