lms-graphql-api 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lms_graphql/mutations/canvas/add_message.rb +2 -2
  3. data/lib/lms_graphql/mutations/canvas/add_recipients.rb +1 -1
  4. data/lib/lms_graphql/mutations/canvas/copy_course_content.rb +2 -2
  5. data/lib/lms_graphql/mutations/canvas/create_appointment_group.rb +3 -3
  6. data/lib/lms_graphql/mutations/canvas/create_assignment.rb +2 -2
  7. data/lib/lms_graphql/mutations/canvas/create_assignment_override.rb +1 -1
  8. data/lib/lms_graphql/mutations/canvas/create_conversation.rb +2 -2
  9. data/lib/lms_graphql/mutations/canvas/create_global_notification.rb +1 -1
  10. data/lib/lms_graphql/mutations/canvas/create_instid.rb +22 -0
  11. data/lib/lms_graphql/mutations/canvas/create_link_outcome_accounts.rb +2 -2
  12. data/lib/lms_graphql/mutations/canvas/create_link_outcome_accounts_outcome_id.rb +2 -2
  13. data/lib/lms_graphql/mutations/canvas/create_link_outcome_courses.rb +2 -2
  14. data/lib/lms_graphql/mutations/canvas/create_link_outcome_courses_outcome_id.rb +2 -2
  15. data/lib/lms_graphql/mutations/canvas/create_link_outcome_global.rb +2 -2
  16. data/lib/lms_graphql/mutations/canvas/create_link_outcome_global_outcome_id.rb +2 -2
  17. data/lib/lms_graphql/mutations/canvas/create_module.rb +1 -1
  18. data/lib/lms_graphql/mutations/canvas/create_new_course.rb +1 -1
  19. data/lib/lms_graphql/mutations/canvas/create_new_grading_standard_accounts.rb +2 -2
  20. data/lib/lms_graphql/mutations/canvas/create_new_grading_standard_courses.rb +2 -2
  21. data/lib/lms_graphql/mutations/canvas/create_or_update_events_directly_for_course_timetable.rb +3 -3
  22. data/lib/lms_graphql/mutations/canvas/create_question_group.rb +4 -4
  23. data/lib/lms_graphql/mutations/canvas/create_single_poll.rb +2 -2
  24. data/lib/lms_graphql/mutations/canvas/create_single_poll_choice.rb +3 -3
  25. data/lib/lms_graphql/mutations/canvas/create_single_poll_session.rb +3 -3
  26. data/lib/lms_graphql/mutations/canvas/create_single_poll_submission.rb +1 -1
  27. data/lib/lms_graphql/mutations/canvas/create_update_proficiency_ratings_accounts.rb +4 -4
  28. data/lib/lms_graphql/mutations/canvas/create_update_proficiency_ratings_courses.rb +4 -4
  29. data/lib/lms_graphql/mutations/canvas/delete_message.rb +1 -1
  30. data/lib/lms_graphql/mutations/canvas/edit_assignment.rb +2 -2
  31. data/lib/lms_graphql/mutations/canvas/edit_conversation.rb +1 -1
  32. data/lib/lms_graphql/mutations/canvas/edit_group.rb +1 -1
  33. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_courses_assignments.rb +1 -1
  34. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_courses_submissions.rb +1 -1
  35. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_sections_assignments.rb +1 -1
  36. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_sections_submissions.rb +1 -1
  37. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_courses.rb +1 -1
  38. data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_sections.rb +1 -1
  39. data/lib/lms_graphql/mutations/canvas/import_sis_data.rb +5 -1
  40. data/lib/lms_graphql/mutations/canvas/invite_others_to_group.rb +1 -1
  41. data/lib/lms_graphql/mutations/canvas/mutations.rb +1 -0
  42. data/lib/lms_graphql/mutations/canvas/quiz_extensions_set_extensions_for_student_quiz_submissions.rb +6 -6
  43. data/lib/lms_graphql/mutations/canvas/reorder_custom_columns.rb +1 -1
  44. data/lib/lms_graphql/mutations/canvas/reorder_pinned_topics_courses.rb +1 -1
  45. data/lib/lms_graphql/mutations/canvas/reorder_pinned_topics_groups.rb +1 -1
  46. data/lib/lms_graphql/mutations/canvas/reorder_question_groups.rb +2 -2
  47. data/lib/lms_graphql/mutations/canvas/reorder_quiz_items.rb +2 -2
  48. data/lib/lms_graphql/mutations/canvas/set_course_timetable.rb +4 -4
  49. data/lib/lms_graphql/mutations/canvas/set_extensions_for_student_assignment_submissions.rb +2 -2
  50. data/lib/lms_graphql/mutations/canvas/submit_assignment_courses.rb +1 -1
  51. data/lib/lms_graphql/mutations/canvas/submit_assignment_sections.rb +1 -1
  52. data/lib/lms_graphql/mutations/canvas/update_account.rb +11 -1
  53. data/lib/lms_graphql/mutations/canvas/update_appointment_group.rb +3 -3
  54. data/lib/lms_graphql/mutations/canvas/update_assignment_override.rb +1 -1
  55. data/lib/lms_graphql/mutations/canvas/update_course.rb +8 -4
  56. data/lib/lms_graphql/mutations/canvas/update_global_notification.rb +1 -1
  57. data/lib/lms_graphql/mutations/canvas/update_media_tracks.rb +1 -1
  58. data/lib/lms_graphql/mutations/canvas/update_module.rb +1 -1
  59. data/lib/lms_graphql/mutations/canvas/update_outcome.rb +2 -2
  60. data/lib/lms_graphql/mutations/canvas/update_question_group.rb +3 -3
  61. data/lib/lms_graphql/mutations/canvas/update_single_grading_period.rb +1 -1
  62. data/lib/lms_graphql/mutations/canvas/update_single_poll.rb +2 -2
  63. data/lib/lms_graphql/mutations/canvas/update_single_poll_choice.rb +3 -3
  64. data/lib/lms_graphql/mutations/canvas/update_single_poll_session.rb +3 -3
  65. data/lib/lms_graphql/mutations/canvas/update_student_question_scores_and_comments.rb +2 -2
  66. data/lib/lms_graphql/resolvers/canvas/batch_retrieve_overrides_in_course.rb +2 -2
  67. data/lib/lms_graphql/resolvers/canvas/courses_permissions.rb +1 -1
  68. data/lib/lms_graphql/resolvers/canvas/find_recipients_conversations.rb +2 -2
  69. data/lib/lms_graphql/resolvers/canvas/find_recipients_search.rb +2 -2
  70. data/lib/lms_graphql/resolvers/canvas/get_accounts_that_admins_can_manage.rb +23 -0
  71. data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_courses_peer_reviews.rb +1 -1
  72. data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_courses_submissions.rb +1 -1
  73. data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_sections_peer_reviews.rb +1 -1
  74. data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_sections_submissions.rb +1 -1
  75. data/lib/lms_graphql/resolvers/canvas/get_all_quiz_submission_questions.rb +1 -1
  76. data/lib/lms_graphql/resolvers/canvas/get_all_quiz_submissions.rb +1 -1
  77. data/lib/lms_graphql/resolvers/canvas/get_assignment_group.rb +1 -1
  78. data/lib/lms_graphql/resolvers/canvas/get_file_courses.rb +1 -1
  79. data/lib/lms_graphql/resolvers/canvas/get_file_files.rb +1 -1
  80. data/lib/lms_graphql/resolvers/canvas/get_file_groups.rb +1 -1
  81. data/lib/lms_graphql/resolvers/canvas/get_file_users.rb +1 -1
  82. data/lib/lms_graphql/resolvers/canvas/get_outcome_result_rollups.rb +2 -2
  83. data/lib/lms_graphql/resolvers/canvas/get_outcome_results.rb +1 -1
  84. data/lib/lms_graphql/resolvers/canvas/get_quiz_submission.rb +1 -1
  85. data/lib/lms_graphql/resolvers/canvas/get_section_information_courses.rb +1 -1
  86. data/lib/lms_graphql/resolvers/canvas/get_section_information_sections.rb +1 -1
  87. data/lib/lms_graphql/resolvers/canvas/get_single_appointment_group.rb +1 -1
  88. data/lib/lms_graphql/resolvers/canvas/get_single_assignment.rb +1 -1
  89. data/lib/lms_graphql/resolvers/canvas/get_single_conversation.rb +1 -1
  90. data/lib/lms_graphql/resolvers/canvas/get_single_course_accounts.rb +1 -1
  91. data/lib/lms_graphql/resolvers/canvas/get_single_course_courses.rb +1 -1
  92. data/lib/lms_graphql/resolvers/canvas/get_single_group.rb +1 -1
  93. data/lib/lms_graphql/resolvers/canvas/get_single_quiz_submission.rb +1 -1
  94. data/lib/lms_graphql/resolvers/canvas/get_single_rubric_accounts.rb +1 -1
  95. data/lib/lms_graphql/resolvers/canvas/get_single_rubric_courses.rb +1 -1
  96. data/lib/lms_graphql/resolvers/canvas/get_single_submission_courses.rb +1 -1
  97. data/lib/lms_graphql/resolvers/canvas/get_single_submission_sections.rb +1 -1
  98. data/lib/lms_graphql/resolvers/canvas/get_single_topic_courses.rb +1 -1
  99. data/lib/lms_graphql/resolvers/canvas/get_single_topic_groups.rb +1 -1
  100. data/lib/lms_graphql/resolvers/canvas/get_sis_import_list.rb +4 -2
  101. data/lib/lms_graphql/resolvers/canvas/get_users_most_recently_graded_submissions.rb +1 -1
  102. data/lib/lms_graphql/resolvers/canvas/get_visible_course_navigation_tools.rb +3 -3
  103. data/lib/lms_graphql/resolvers/canvas/get_visible_course_navigation_tools_for_single_course.rb +22 -0
  104. data/lib/lms_graphql/resolvers/canvas/groups_permissions.rb +1 -1
  105. data/lib/lms_graphql/resolvers/canvas/list_accounts.rb +1 -1
  106. data/lib/lms_graphql/resolvers/canvas/list_active_courses_in_account.rb +9 -7
  107. data/lib/lms_graphql/resolvers/canvas/list_announcements.rb +4 -2
  108. data/lib/lms_graphql/resolvers/canvas/list_appointment_groups.rb +2 -2
  109. data/lib/lms_graphql/resolvers/canvas/list_assignment_groups.rb +2 -2
  110. data/lib/lms_graphql/resolvers/canvas/list_assignment_submissions_courses.rb +1 -1
  111. data/lib/lms_graphql/resolvers/canvas/list_assignment_submissions_sections.rb +1 -1
  112. data/lib/lms_graphql/resolvers/canvas/list_assignments_assignment_groups.rb +1 -1
  113. data/lib/lms_graphql/resolvers/canvas/list_assignments_assignments.rb +1 -1
  114. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_accounts.rb +4 -2
  115. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_courses.rb +4 -2
  116. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_groups.rb +4 -2
  117. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_users.rb +4 -2
  118. data/lib/lms_graphql/resolvers/canvas/list_calendar_events.rb +5 -3
  119. data/lib/lms_graphql/resolvers/canvas/list_calendar_events_for_user.rb +5 -3
  120. data/lib/lms_graphql/resolvers/canvas/list_conversations.rb +2 -2
  121. data/lib/lms_graphql/resolvers/canvas/list_counts_for_todo_items.rb +1 -1
  122. data/lib/lms_graphql/resolvers/canvas/list_course_sections.rb +1 -1
  123. data/lib/lms_graphql/resolvers/canvas/list_courses_for_user.rb +6 -4
  124. data/lib/lms_graphql/resolvers/canvas/list_discussion_topics_courses.rb +1 -1
  125. data/lib/lms_graphql/resolvers/canvas/list_discussion_topics_groups.rb +1 -1
  126. data/lib/lms_graphql/resolvers/canvas/list_enrollment_terms.rb +2 -2
  127. data/lib/lms_graphql/resolvers/canvas/list_enrollments_courses.rb +9 -9
  128. data/lib/lms_graphql/resolvers/canvas/list_enrollments_sections.rb +9 -9
  129. data/lib/lms_graphql/resolvers/canvas/list_enrollments_users.rb +9 -9
  130. data/lib/lms_graphql/resolvers/canvas/list_entries_courses.rb +1 -1
  131. data/lib/lms_graphql/resolvers/canvas/list_entries_groups.rb +1 -1
  132. data/lib/lms_graphql/resolvers/canvas/list_files_courses.rb +3 -3
  133. data/lib/lms_graphql/resolvers/canvas/list_files_folders.rb +3 -3
  134. data/lib/lms_graphql/resolvers/canvas/list_files_groups.rb +3 -3
  135. data/lib/lms_graphql/resolvers/canvas/list_files_users.rb +3 -3
  136. data/lib/lms_graphql/resolvers/canvas/list_group_memberships.rb +1 -1
  137. data/lib/lms_graphql/resolvers/canvas/list_group_s_users.rb +1 -1
  138. data/lib/lms_graphql/resolvers/canvas/list_groups_available_in_context_accounts.rb +1 -1
  139. data/lib/lms_graphql/resolvers/canvas/list_groups_available_in_context_courses.rb +1 -1
  140. data/lib/lms_graphql/resolvers/canvas/list_media_objects_courses.rb +1 -1
  141. data/lib/lms_graphql/resolvers/canvas/list_media_objects_groups.rb +1 -1
  142. data/lib/lms_graphql/resolvers/canvas/list_media_objects_media_objects.rb +1 -1
  143. data/lib/lms_graphql/resolvers/canvas/list_media_tracks_for_media_object.rb +1 -1
  144. data/lib/lms_graphql/resolvers/canvas/list_members_of_collaboration.rb +1 -1
  145. data/lib/lms_graphql/resolvers/canvas/list_missing_submissions.rb +2 -2
  146. data/lib/lms_graphql/resolvers/canvas/list_module_items.rb +1 -1
  147. data/lib/lms_graphql/resolvers/canvas/list_modules.rb +1 -1
  148. data/lib/lms_graphql/resolvers/canvas/list_observees.rb +1 -1
  149. data/lib/lms_graphql/resolvers/canvas/list_observers.rb +1 -1
  150. data/lib/lms_graphql/resolvers/canvas/list_planner_items_planner.rb +1 -1
  151. data/lib/lms_graphql/resolvers/canvas/list_planner_items_users.rb +1 -1
  152. data/lib/lms_graphql/resolvers/canvas/list_planner_notes.rb +1 -1
  153. data/lib/lms_graphql/resolvers/canvas/list_roles.rb +1 -1
  154. data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_courses.rb +1 -1
  155. data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_sections.rb +1 -1
  156. data/lib/lms_graphql/resolvers/canvas/list_todo_items.rb +1 -1
  157. data/lib/lms_graphql/resolvers/canvas/list_users_in_course_search_users.rb +3 -3
  158. data/lib/lms_graphql/resolvers/canvas/list_users_in_course_users.rb +3 -3
  159. data/lib/lms_graphql/resolvers/canvas/list_your_courses.rb +2 -2
  160. data/lib/lms_graphql/resolvers/canvas/list_your_groups.rb +1 -1
  161. data/lib/lms_graphql/resolvers/canvas/permissions.rb +1 -1
  162. data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_classic_quizzes.rb +1 -1
  163. data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_new_quizzes.rb +1 -1
  164. data/lib/lms_graphql/resolvers/canvas/settings.rb +22 -0
  165. data/lib/lms_graphql/resolvers/canvas/show_module.rb +1 -1
  166. data/lib/lms_graphql/resolvers/canvas/show_module_item.rb +1 -1
  167. data/lib/lms_graphql/resolvers/canvas/show_user_details.rb +1 -1
  168. data/lib/lms_graphql/resolvers/canvas/update_user_settings.rb +8 -2
  169. data/lib/lms_graphql/types/canvas/account_notification.rb +1 -1
  170. data/lib/lms_graphql/types/canvas/account_notification_input.rb +1 -1
  171. data/lib/lms_graphql/types/canvas/appointment_group.rb +2 -2
  172. data/lib/lms_graphql/types/canvas/appointment_group_input.rb +2 -2
  173. data/lib/lms_graphql/types/canvas/assignment.rb +4 -4
  174. data/lib/lms_graphql/types/canvas/assignment_event.rb +1 -0
  175. data/lib/lms_graphql/types/canvas/assignment_event_input.rb +1 -0
  176. data/lib/lms_graphql/types/canvas/assignment_group.rb +1 -1
  177. data/lib/lms_graphql/types/canvas/assignment_group_input.rb +1 -1
  178. data/lib/lms_graphql/types/canvas/assignment_input.rb +4 -4
  179. data/lib/lms_graphql/types/canvas/authentication_provider.rb +1 -0
  180. data/lib/lms_graphql/types/canvas/authentication_provider_input.rb +1 -0
  181. data/lib/lms_graphql/types/canvas/calendar_event.rb +2 -1
  182. data/lib/lms_graphql/types/canvas/calendar_event_input.rb +2 -1
  183. data/lib/lms_graphql/types/canvas/conference.rb +1 -1
  184. data/lib/lms_graphql/types/canvas/conference_input.rb +1 -1
  185. data/lib/lms_graphql/types/canvas/conversation.rb +3 -3
  186. data/lib/lms_graphql/types/canvas/conversation_input.rb +3 -3
  187. data/lib/lms_graphql/types/canvas/created_event_datum.rb +4 -4
  188. data/lib/lms_graphql/types/canvas/created_event_datum_input.rb +4 -4
  189. data/lib/lms_graphql/types/canvas/discussion_topic.rb +1 -1
  190. data/lib/lms_graphql/types/canvas/discussion_topic_input.rb +1 -1
  191. data/lib/lms_graphql/types/canvas/grader.rb +1 -1
  192. data/lib/lms_graphql/types/canvas/grader_input.rb +1 -1
  193. data/lib/lms_graphql/types/canvas/grading_rule.rb +1 -1
  194. data/lib/lms_graphql/types/canvas/grading_rule_input.rb +1 -1
  195. data/lib/lms_graphql/types/canvas/inst_id.rb +14 -0
  196. data/lib/lms_graphql/types/canvas/inst_id_input.rb +14 -0
  197. data/lib/lms_graphql/types/canvas/migrator.rb +1 -1
  198. data/lib/lms_graphql/types/canvas/migrator_input.rb +1 -1
  199. data/lib/lms_graphql/types/canvas/profile.rb +1 -0
  200. data/lib/lms_graphql/types/canvas/profile_input.rb +1 -0
  201. data/lib/lms_graphql/types/canvas/query_type.rb +13 -1
  202. data/lib/lms_graphql/types/canvas/quiz.rb +1 -1
  203. data/lib/lms_graphql/types/canvas/quiz_input.rb +1 -1
  204. data/lib/lms_graphql/types/canvas/quiz_submission_question.rb +1 -1
  205. data/lib/lms_graphql/types/canvas/quiz_submission_question_input.rb +1 -1
  206. data/lib/lms_graphql/types/canvas/report_parameter.rb +1 -1
  207. data/lib/lms_graphql/types/canvas/report_parameter_input.rb +1 -1
  208. data/lib/lms_graphql/types/canvas/rubric_assessment.rb +1 -1
  209. data/lib/lms_graphql/types/canvas/rubric_assessment_input.rb +1 -1
  210. data/lib/lms_graphql/types/canvas/sis_import_datum.rb +1 -1
  211. data/lib/lms_graphql/types/canvas/sis_import_datum_input.rb +1 -1
  212. data/lib/lms_graphql/types/canvas/submission.rb +6 -0
  213. data/lib/lms_graphql/types/canvas/submission_input.rb +6 -0
  214. data/lib/lms_graphql/types/canvas/updated_event_datum.rb +4 -4
  215. data/lib/lms_graphql/types/canvas/updated_event_datum_input.rb +4 -4
  216. data/lib/lms_graphql/types/canvas_forward_declarations.rb +2 -0
  217. data/lib/lms_graphql/version.rb +1 -1
  218. metadata +8 -2
@@ -51,7 +51,7 @@ module LMSGraphQL
51
51
  field :submissions_download_url, String, "the URL to download all submissions as a zip.Example: https://example.com/courses/:course_id/assignments/:id/submissions?zip=1", null: true
52
52
  field :assignment_group_id, ID, "the ID of the assignment's group.Example: 2", null: true
53
53
  field :due_date_required, Boolean, "Boolean flag indicating whether the assignment requires a due date based on the account level setting.Example: true", null: true
54
- field :allowed_extensions, String, "Allowed file extensions, which take effect if submission_types includes 'online_upload'..Example: docx, ppt", null: true
54
+ field :allowed_extensions, [String], "Allowed file extensions, which take effect if submission_types includes 'online_upload'..Example: docx, ppt", null: true
55
55
  field :max_name_length, Int, "An integer indicating the maximum length an assignment's name may be.Example: 15", null: true
56
56
  field :turnitin_enabled, Boolean, "Boolean flag indicating whether or not Turnitin has been enabled for the assignment. NOTE: This flag will not appear unless your account has the Turnitin plugin available.Example: true", null: true
57
57
  field :vericite_enabled, Boolean, "Boolean flag indicating whether or not VeriCite has been enabled for the assignment. NOTE: This flag will not appear unless your account has the VeriCite plugin available.Example: true", null: true
@@ -86,12 +86,12 @@ module LMSGraphQL
86
86
  field :discussion_topic, LMSGraphQL::Types::Canvas::CanvasDiscussionTopic, "(Optional) the DiscussionTopic associated with the assignment, if applicable.", null: true
87
87
  field :freeze_on_copy, Boolean, "(Optional) Boolean indicating if assignment will be frozen when it is copied. NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..", null: true
88
88
  field :frozen, Boolean, "(Optional) Boolean indicating if assignment is frozen for the calling user. NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..", null: true
89
- field :frozen_attributes, String, "(Optional) Array of frozen attributes for the assignment. Only account administrators currently have permission to change an attribute in this list. Will be empty if no attributes are frozen for this assignment. Possible frozen attributes are: title, description, lock_at, points_possible, grading_type, submission_types, assignment_group_id, allowed_extensions, group_category_id, notify_of_update, peer_reviews NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..Example: title", null: true
89
+ field :frozen_attributes, [String], "(Optional) Array of frozen attributes for the assignment. Only account administrators currently have permission to change an attribute in this list. Will be empty if no attributes are frozen for this assignment. Possible frozen attributes are: title, description, lock_at, points_possible, grading_type, submission_types, assignment_group_id, allowed_extensions, group_category_id, notify_of_update, peer_reviews NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..Example: title", null: true
90
90
  field :submission, LMSGraphQL::Types::Canvas::CanvasSubmission, "(Optional) If 'submission' is included in the 'include' parameter, includes a Submission object that represents the current user's (user who is requesting information from the api) current submission for the assignment. See the Submissions API for an example response. If the user does not have a submission, this key will be absent..", null: true
91
91
  field :use_rubric_for_grading, Boolean, "(Optional) If true, the rubric is directly tied to grading the assignment. Otherwise, it is only advisory. Included if there is an associated rubric..Example: true", null: true
92
92
  field :rubric_settings, String, "(Optional) An object describing the basic attributes of the rubric, including the point total. Included if there is an associated rubric..Example: {'points_possible'=>12}", null: true
93
93
  field :rubric, [LMSGraphQL::Types::Canvas::CanvasRubricCriterium], "(Optional) A list of scoring criteria and ratings for each rubric criterion. Included if there is an associated rubric..", null: true
94
- field :assignment_visibility, Int, "(Optional) If 'assignment_visibility' is included in the 'include' parameter, includes an array of student IDs who can see this assignment..Example: 137, 381, 572", null: true
94
+ field :assignment_visibility, [Int], "(Optional) If 'assignment_visibility' is included in the 'include' parameter, includes an array of student IDs who can see this assignment..Example: 137, 381, 572", null: true
95
95
  field :overrides, [LMSGraphQL::Types::Canvas::CanvasAssignmentOverride], "(Optional) If 'overrides' is included in the 'include' parameter, includes an array of assignment override objects..", null: true
96
96
  field :omit_from_final_grade, Boolean, "(Optional) If true, the assignment will be omitted from the student's final grade.Example: true", null: true
97
97
  field :moderated_grading, Boolean, "Boolean indicating if the assignment is moderated..Example: true", null: true
@@ -104,7 +104,7 @@ module LMSGraphQL
104
104
  field :allowed_attempts, Int, "The number of submission attempts a student can make for this assignment. -1 is considered unlimited..Example: 2", null: true
105
105
  field :post_manually, Boolean, "Whether the assignment has manual posting enabled. Only relevant for courses using New Gradebook..Example: true", null: true
106
106
  field :score_statistics, LMSGraphQL::Types::Canvas::CanvasScoreStatistic, "(Optional) If 'score_statistics' and 'submission' are included in the 'include' parameter and statistics are available, includes the min, max, and mode for this assignment.", null: true
107
- field :can_submit, Boolean, "(Optional) If retrieving a single assignment and 'can_submit' is included in the 'include' parameter, flags whether user has the right to submit the assignment (i.e. checks enrollment dates, submission types, locked status, attempts remaining, etc...). Including 'can submit' automatically includes 'submission' in the include parameter..Example: true", null: true
107
+ field :can_submit, Boolean, "(Optional) If retrieving a single assignment and 'can_submit' is included in the 'include' parameter, flags whether user has the right to submit the assignment (i.e. checks enrollment dates, submission types, locked status, attempts remaining, etc...). Including 'can submit' automatically includes 'submission' in the include parameter. Not available when observed_users are included..Example: true", null: true
108
108
 
109
109
  end
110
110
  end
@@ -26,6 +26,7 @@ module LMSGraphQL
26
26
  field :updated_at, LMSGraphQL::Types::DateTimeType, "When the assignment was last updated.Example: 2012-07-12T10:55:20-06:00", null: true
27
27
  field :assignment, LMSGraphQL::Types::Canvas::CanvasAssignment, "The full assignment JSON data (See the Assignments API).", null: true
28
28
  field :assignment_overrides, LMSGraphQL::Types::Canvas::CanvasAssignmentOverride, "The list of AssignmentOverrides that apply to this event (See the Assignments API). This information is useful for determining which students or sections this assignment-due event applies to..", null: true
29
+ field :important_dates, Boolean, "Boolean indicating whether this has important dates. Only present if the Important Dates feature flag is enabled.Example: true", null: true
29
30
 
30
31
  end
31
32
  end
@@ -26,6 +26,7 @@ module LMSGraphQL
26
26
  argument :updated_at, LMSGraphQL::Types::DateTimeType, "When the assignment was last updated.Example: 2012-07-12T10:55:20-06:00", required: false
27
27
  argument :assignment, LMSGraphQL::Types::Canvas::CanvasAssignmentInput, "The full assignment JSON data (See the Assignments API).", required: false
28
28
  argument :assignment_overrides, LMSGraphQL::Types::Canvas::CanvasAssignmentOverrideInput, "The list of AssignmentOverrides that apply to this event (See the Assignments API). This information is useful for determining which students or sections this assignment-due event applies to..", required: false
29
+ argument :important_dates, Boolean, "Boolean indicating whether this has important dates. Only present if the Important Dates feature flag is enabled.Example: true", required: false
29
30
 
30
31
  end
31
32
  end
@@ -12,7 +12,7 @@ module LMSGraphQL
12
12
  field :group_weight, Int, "the weight of the Assignment Group.Example: 20", null: true
13
13
  field :sis_source_id, ID, "the sis source id of the Assignment Group.Example: 1234", null: true
14
14
  field :integration_data, String, "the integration data of the Assignment Group.Example: 0954", null: true
15
- field :assignments, Int, "the assignments in this Assignment Group (see the Assignment API for a detailed list of fields).", null: true
15
+ field :assignments, [Int], "the assignments in this Assignment Group (see the Assignment API for a detailed list of fields).", null: true
16
16
  field :rules, LMSGraphQL::Types::Canvas::CanvasGradingRule, "the grading rules that this Assignment Group has.", null: true
17
17
 
18
18
  end
@@ -12,7 +12,7 @@ module LMSGraphQL
12
12
  argument :group_weight, Int, "the weight of the Assignment Group.Example: 20", required: false
13
13
  argument :sis_source_id, ID, "the sis source id of the Assignment Group.Example: 1234", required: false
14
14
  argument :integration_data, String, "the integration data of the Assignment Group.Example: 0954", required: false
15
- argument :assignments, Int, "the assignments in this Assignment Group (see the Assignment API for a detailed list of fields).", required: false
15
+ argument :assignments, [Int], "the assignments in this Assignment Group (see the Assignment API for a detailed list of fields).", required: false
16
16
  argument :rules, LMSGraphQL::Types::Canvas::CanvasGradingRuleInput, "the grading rules that this Assignment Group has.", required: false
17
17
 
18
18
  end
@@ -51,7 +51,7 @@ module LMSGraphQL
51
51
  argument :submissions_download_url, String, "the URL to download all submissions as a zip.Example: https://example.com/courses/:course_id/assignments/:id/submissions?zip=1", required: false
52
52
  argument :assignment_group_id, ID, "the ID of the assignment's group.Example: 2", required: false
53
53
  argument :due_date_required, Boolean, "Boolean flag indicating whether the assignment requires a due date based on the account level setting.Example: true", required: false
54
- argument :allowed_extensions, String, "Allowed file extensions, which take effect if submission_types includes 'online_upload'..Example: docx, ppt", required: false
54
+ argument :allowed_extensions, [String], "Allowed file extensions, which take effect if submission_types includes 'online_upload'..Example: docx, ppt", required: false
55
55
  argument :max_name_length, Int, "An integer indicating the maximum length an assignment's name may be.Example: 15", required: false
56
56
  argument :turnitin_enabled, Boolean, "Boolean flag indicating whether or not Turnitin has been enabled for the assignment. NOTE: This flag will not appear unless your account has the Turnitin plugin available.Example: true", required: false
57
57
  argument :vericite_enabled, Boolean, "Boolean flag indicating whether or not VeriCite has been enabled for the assignment. NOTE: This flag will not appear unless your account has the VeriCite plugin available.Example: true", required: false
@@ -86,12 +86,12 @@ module LMSGraphQL
86
86
  argument :discussion_topic, LMSGraphQL::Types::Canvas::CanvasDiscussionTopicInput, "(Optional) the DiscussionTopic associated with the assignment, if applicable.", required: false
87
87
  argument :freeze_on_copy, Boolean, "(Optional) Boolean indicating if assignment will be frozen when it is copied. NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..", required: false
88
88
  argument :frozen, Boolean, "(Optional) Boolean indicating if assignment is frozen for the calling user. NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..", required: false
89
- argument :frozen_attributes, String, "(Optional) Array of frozen attributes for the assignment. Only account administrators currently have permission to change an attribute in this list. Will be empty if no attributes are frozen for this assignment. Possible frozen attributes are: title, description, lock_at, points_possible, grading_type, submission_types, assignment_group_id, allowed_extensions, group_category_id, notify_of_update, peer_reviews NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..Example: title", required: false
89
+ argument :frozen_attributes, [String], "(Optional) Array of frozen attributes for the assignment. Only account administrators currently have permission to change an attribute in this list. Will be empty if no attributes are frozen for this assignment. Possible frozen attributes are: title, description, lock_at, points_possible, grading_type, submission_types, assignment_group_id, allowed_extensions, group_category_id, notify_of_update, peer_reviews NOTE: This field will only be present if the AssignmentFreezer plugin is available for your account..Example: title", required: false
90
90
  argument :submission, LMSGraphQL::Types::Canvas::CanvasSubmissionInput, "(Optional) If 'submission' is included in the 'include' parameter, includes a Submission object that represents the current user's (user who is requesting information from the api) current submission for the assignment. See the Submissions API for an example response. If the user does not have a submission, this key will be absent..", required: false
91
91
  argument :use_rubric_for_grading, Boolean, "(Optional) If true, the rubric is directly tied to grading the assignment. Otherwise, it is only advisory. Included if there is an associated rubric..Example: true", required: false
92
92
  argument :rubric_settings, String, "(Optional) An object describing the basic attributes of the rubric, including the point total. Included if there is an associated rubric..Example: {'points_possible'=>12}", required: false
93
93
  argument :rubric, [LMSGraphQL::Types::Canvas::CanvasRubricCriteriumInput], "(Optional) A list of scoring criteria and ratings for each rubric criterion. Included if there is an associated rubric..", required: false
94
- argument :assignment_visibility, Int, "(Optional) If 'assignment_visibility' is included in the 'include' parameter, includes an array of student IDs who can see this assignment..Example: 137, 381, 572", required: false
94
+ argument :assignment_visibility, [Int], "(Optional) If 'assignment_visibility' is included in the 'include' parameter, includes an array of student IDs who can see this assignment..Example: 137, 381, 572", required: false
95
95
  argument :overrides, [LMSGraphQL::Types::Canvas::CanvasAssignmentOverrideInput], "(Optional) If 'overrides' is included in the 'include' parameter, includes an array of assignment override objects..", required: false
96
96
  argument :omit_from_final_grade, Boolean, "(Optional) If true, the assignment will be omitted from the student's final grade.Example: true", required: false
97
97
  argument :moderated_grading, Boolean, "Boolean indicating if the assignment is moderated..Example: true", required: false
@@ -104,7 +104,7 @@ module LMSGraphQL
104
104
  argument :allowed_attempts, Int, "The number of submission attempts a student can make for this assignment. -1 is considered unlimited..Example: 2", required: false
105
105
  argument :post_manually, Boolean, "Whether the assignment has manual posting enabled. Only relevant for courses using New Gradebook..Example: true", required: false
106
106
  argument :score_statistics, LMSGraphQL::Types::Canvas::CanvasScoreStatisticInput, "(Optional) If 'score_statistics' and 'submission' are included in the 'include' parameter and statistics are available, includes the min, max, and mode for this assignment.", required: false
107
- argument :can_submit, Boolean, "(Optional) If retrieving a single assignment and 'can_submit' is included in the 'include' parameter, flags whether user has the right to submit the assignment (i.e. checks enrollment dates, submission types, locked status, attempts remaining, etc...). Including 'can submit' automatically includes 'submission' in the include parameter..Example: true", required: false
107
+ argument :can_submit, Boolean, "(Optional) If retrieving a single assignment and 'can_submit' is included in the 'include' parameter, flags whether user has the right to submit the assignment (i.e. checks enrollment dates, submission types, locked status, attempts remaining, etc...). Including 'can submit' automatically includes 'submission' in the include parameter. Not available when observed_users are included..Example: true", required: false
108
108
 
109
109
  end
110
110
  end
@@ -25,6 +25,7 @@ module LMSGraphQL
25
25
  field :sig_alg, String, "Valid for SAML providers..Example: http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", null: true
26
26
  field :jit_provisioning, Boolean, "Just In Time provisioning. Valid for all providers except Canvas (which has the similar in concept self_registration setting)..", null: true
27
27
  field :federated_attributes, LMSGraphQL::Types::Canvas::CanvasFederatedAttributesConfig, "", null: true
28
+ field :mfa_required, Boolean, "If multi-factor authentication is required when logging in with this authentication provider. The account must not have MFA disabled..", null: true
28
29
 
29
30
  end
30
31
  end
@@ -25,6 +25,7 @@ module LMSGraphQL
25
25
  argument :sig_alg, String, "Valid for SAML providers..Example: http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", required: false
26
26
  argument :jit_provisioning, Boolean, "Just In Time provisioning. Valid for all providers except Canvas (which has the similar in concept self_registration setting)..", required: false
27
27
  argument :federated_attributes, LMSGraphQL::Types::Canvas::CanvasFederatedAttributesConfigInput, "", required: false
28
+ argument :mfa_required, Boolean, "If multi-factor authentication is required when logging in with this authentication provider. The account must not have MFA disabled..", required: false
28
29
 
29
30
  end
30
31
  end
@@ -21,7 +21,7 @@ module LMSGraphQL
21
21
  field :hidden, Boolean, "Whether this event should be displayed on the calendar. Only true for course-level events with section-level child events..", null: true
22
22
  field :parent_event_id, ID, "Normally null. If this is a reservation (see the Appointment Groups API), the id will indicate the time slot it is for. If this is a section-level event, this will be the course-level parent event..", null: true
23
23
  field :child_events_count, Int, "The number of child_events. See child_events (and parent_event_id).Example: 0", null: true
24
- field :child_events, Int, "Included by default, but may be excluded (see include[] option). If this is a time slot (see the Appointment Groups API) this will be a list of any reservations. If this is a course-level event, this will be a list of section-level events (if any).", null: true
24
+ field :child_events, [Int], "Included by default, but may be excluded (see include[] option). If this is a time slot (see the Appointment Groups API) this will be a list of any reservations. If this is a course-level event, this will be a list of section-level events (if any).", null: true
25
25
  field :url, String, "URL for this calendar event (to update, delete, etc.).Example: https://example.com/api/v1/calendar_events/234", null: true
26
26
  field :html_url, String, "URL for a user to view this event.Example: https://example.com/calendar?event_id=234&include_contexts=course_123", null: true
27
27
  field :all_day_date, LMSGraphQL::Types::DateTimeType, "The date of this event.Example: 2012-07-19", null: true
@@ -38,6 +38,7 @@ module LMSGraphQL
38
38
  field :available_slots, Int, "If the event is a time slot and it has a participant limit, an integer indicating how many slots are available.", null: true
39
39
  field :user, String, "If the event is a user-level reservation, this will contain the user participant JSON (refer to the Users API)..", null: true
40
40
  field :group, String, "If the event is a group-level reservation, this will contain the group participant JSON (refer to the Groups API)..", null: true
41
+ field :important_dates, Boolean, "Boolean indicating whether this has important dates. Only present if the Important Dates feature flag is enabled.Example: true", null: true
41
42
 
42
43
  end
43
44
  end
@@ -21,7 +21,7 @@ module LMSGraphQL
21
21
  argument :hidden, Boolean, "Whether this event should be displayed on the calendar. Only true for course-level events with section-level child events..", required: false
22
22
  argument :parent_event_id, ID, "Normally null. If this is a reservation (see the Appointment Groups API), the id will indicate the time slot it is for. If this is a section-level event, this will be the course-level parent event..", required: false
23
23
  argument :child_events_count, Int, "The number of child_events. See child_events (and parent_event_id).Example: 0", required: false
24
- argument :child_events, Int, "Included by default, but may be excluded (see include[] option). If this is a time slot (see the Appointment Groups API) this will be a list of any reservations. If this is a course-level event, this will be a list of section-level events (if any).", required: false
24
+ argument :child_events, [Int], "Included by default, but may be excluded (see include[] option). If this is a time slot (see the Appointment Groups API) this will be a list of any reservations. If this is a course-level event, this will be a list of section-level events (if any).", required: false
25
25
  argument :url, String, "URL for this calendar event (to update, delete, etc.).Example: https://example.com/api/v1/calendar_events/234", required: false
26
26
  argument :html_url, String, "URL for a user to view this event.Example: https://example.com/calendar?event_id=234&include_contexts=course_123", required: false
27
27
  argument :all_day_date, LMSGraphQL::Types::DateTimeType, "The date of this event.Example: 2012-07-19", required: false
@@ -38,6 +38,7 @@ module LMSGraphQL
38
38
  argument :available_slots, Int, "If the event is a time slot and it has a participant limit, an integer indicating how many slots are available.", required: false
39
39
  argument :user, String, "If the event is a user-level reservation, this will contain the user participant JSON (refer to the Users API)..", required: false
40
40
  argument :group, String, "If the event is a group-level reservation, this will contain the group participant JSON (refer to the Groups API)..", required: false
41
+ argument :important_dates, Boolean, "Boolean indicating whether this has important dates. Only present if the Important Dates feature flag is enabled.Example: true", required: false
41
42
 
42
43
  end
43
44
  end
@@ -14,7 +14,7 @@ module LMSGraphQL
14
14
  field :ended_at, LMSGraphQL::Types::DateTimeType, "The date that the conference ended at, null if it hasn't ended.Example: 2013-12-13T17:23:26Z", null: true
15
15
  field :started_at, LMSGraphQL::Types::DateTimeType, "The date the conference started at, null if it hasn't started.Example: 2013-12-12T23:02:17Z", null: true
16
16
  field :title, String, "The title of the conference.Example: Test conference", null: true
17
- field :users, Int, "Array of user ids that are participants in the conference.Example: 1, 7, 8, 9, 10", null: true
17
+ field :users, [Int], "Array of user ids that are participants in the conference.Example: 1, 7, 8, 9, 10", null: true
18
18
  field :has_advanced_settings, Boolean, "True if the conference type has advanced settings..", null: true
19
19
  field :long_running, Boolean, "If true the conference is long running and has no expected end time.", null: true
20
20
  field :user_settings, String, "A collection of settings specific to the conference type.Example: true", null: true
@@ -14,7 +14,7 @@ module LMSGraphQL
14
14
  argument :ended_at, LMSGraphQL::Types::DateTimeType, "The date that the conference ended at, null if it hasn't ended.Example: 2013-12-13T17:23:26Z", required: false
15
15
  argument :started_at, LMSGraphQL::Types::DateTimeType, "The date the conference started at, null if it hasn't started.Example: 2013-12-12T23:02:17Z", required: false
16
16
  argument :title, String, "The title of the conference.Example: Test conference", required: false
17
- argument :users, Int, "Array of user ids that are participants in the conference.Example: 1, 7, 8, 9, 10", required: false
17
+ argument :users, [Int], "Array of user ids that are participants in the conference.Example: 1, 7, 8, 9, 10", required: false
18
18
  argument :has_advanced_settings, Boolean, "True if the conference type has advanced settings..", required: false
19
19
  argument :long_running, Boolean, "If true the conference is long running and has no expected end time.", required: false
20
20
  argument :user_settings, String, "A collection of settings specific to the conference type.Example: true", required: false
@@ -15,9 +15,9 @@ module LMSGraphQL
15
15
  field :subscribed, Boolean, "whether the current user is subscribed to the conversation..Example: true", null: true
16
16
  field :private, Boolean, "whether the conversation is private..Example: true", null: true
17
17
  field :starred, Boolean, "whether the conversation is starred..Example: true", null: true
18
- field :properties, String, "Additional conversation flags (last_author, attachments, media_objects). Each listed property means the flag is set to true (i.e. the current user is the most recent author, there are attachments, or there are media objects).", null: true
19
- field :audience, Int, "Array of user ids who are involved in the conversation, ordered by participation level, then alphabetical. Excludes current user, unless this is a monologue..", null: true
20
- field :audience_contexts, String, "Most relevant shared contexts (courses and groups) between current user and other participants. If there is only one participant, it will also include that user's enrollment(s)/ membership type(s) in each course/group..", null: true
18
+ field :properties, [String], "Additional conversation flags (last_author, attachments, media_objects). Each listed property means the flag is set to true (i.e. the current user is the most recent author, there are attachments, or there are media objects).", null: true
19
+ field :audience, [Int], "Array of user ids who are involved in the conversation, ordered by participation level, then alphabetical. Excludes current user, unless this is a monologue..", null: true
20
+ field :audience_contexts, [String], "Most relevant shared contexts (courses and groups) between current user and other participants. If there is only one participant, it will also include that user's enrollment(s)/ membership type(s) in each course/group..", null: true
21
21
  field :avatar_url, String, "URL to appropriate icon for this conversation (custom, individual or group avatar, depending on audience)..Example: https://canvas.instructure.com/images/messages/avatar-group-50.png", null: true
22
22
  field :participants, [LMSGraphQL::Types::Canvas::CanvasConversationParticipant], "Array of users participating in the conversation. Includes current user..", null: true
23
23
  field :visible, Boolean, "indicates whether the conversation is visible under the current scope and filter. This attribute is always true in the index API response, and is primarily useful in create/update responses so that you can know if the record should be displayed in the UI. The default scope is assumed, unless a scope or filter is passed to the create/update API call..Example: true", null: true
@@ -15,9 +15,9 @@ module LMSGraphQL
15
15
  argument :subscribed, Boolean, "whether the current user is subscribed to the conversation..Example: true", required: false
16
16
  argument :private, Boolean, "whether the conversation is private..Example: true", required: false
17
17
  argument :starred, Boolean, "whether the conversation is starred..Example: true", required: false
18
- argument :properties, String, "Additional conversation flags (last_author, attachments, media_objects). Each listed property means the flag is set to true (i.e. the current user is the most recent author, there are attachments, or there are media objects).", required: false
19
- argument :audience, Int, "Array of user ids who are involved in the conversation, ordered by participation level, then alphabetical. Excludes current user, unless this is a monologue..", required: false
20
- argument :audience_contexts, String, "Most relevant shared contexts (courses and groups) between current user and other participants. If there is only one participant, it will also include that user's enrollment(s)/ membership type(s) in each course/group..", required: false
18
+ argument :properties, [String], "Additional conversation flags (last_author, attachments, media_objects). Each listed property means the flag is set to true (i.e. the current user is the most recent author, there are attachments, or there are media objects).", required: false
19
+ argument :audience, [Int], "Array of user ids who are involved in the conversation, ordered by participation level, then alphabetical. Excludes current user, unless this is a monologue..", required: false
20
+ argument :audience_contexts, [String], "Most relevant shared contexts (courses and groups) between current user and other participants. If there is only one participant, it will also include that user's enrollment(s)/ membership type(s) in each course/group..", required: false
21
21
  argument :avatar_url, String, "URL to appropriate icon for this conversation (custom, individual or group avatar, depending on audience)..Example: https://canvas.instructure.com/images/messages/avatar-group-50.png", required: false
22
22
  argument :participants, [LMSGraphQL::Types::Canvas::CanvasConversationParticipantInput], "Array of users participating in the conversation. Includes current user..", required: false
23
23
  argument :visible, Boolean, "indicates whether the conversation is visible under the current scope and filter. This attribute is always true in the index API response, and is primarily useful in create/update responses so that you can know if the record should be displayed in the UI. The default scope is assumed, unless a scope or filter is passed to the create/update API call..Example: true", required: false
@@ -6,10 +6,10 @@ module LMSGraphQL
6
6
  module Canvas
7
7
  class CanvasCreatedEventDatum < BaseType
8
8
  description "Course Audit log. API Docs: https://canvas.instructure.com/doc/api/course_audit_log.html"
9
- field :name, String, "Example: , Course 1", null: true
10
- field :start_at, LMSGraphQL::Types::DateTimeType, "Example: , 2012-01-19T15:00:00-06:00", null: true
11
- field :conclude_at, LMSGraphQL::Types::DateTimeType, "Example: , 2012-01-19T15:00:00-08:00", null: true
12
- field :is_public, Boolean, "Example: , false", null: true
9
+ field :name, [String], "Example: , Course 1", null: true
10
+ field :start_at, [LMSGraphQL::Types::DateTimeType], "Example: , 2012-01-19T15:00:00-06:00", null: true
11
+ field :conclude_at, [LMSGraphQL::Types::DateTimeType], "Example: , 2012-01-19T15:00:00-08:00", null: true
12
+ field :is_public, [Boolean], "Example: , false", null: true
13
13
  field :created_source, String, "The type of action that triggered the creation of the course..Example: manual|sis|api", null: true
14
14
 
15
15
  end
@@ -6,10 +6,10 @@ module LMSGraphQL
6
6
  module Canvas
7
7
  class CanvasCreatedEventDatumInput < BaseInputObject
8
8
  description "Course Audit log. API Docs: https://canvas.instructure.com/doc/api/course_audit_log.html"
9
- argument :name, String, "Example: , Course 1", required: false
10
- argument :start_at, LMSGraphQL::Types::DateTimeType, "Example: , 2012-01-19T15:00:00-06:00", required: false
11
- argument :conclude_at, LMSGraphQL::Types::DateTimeType, "Example: , 2012-01-19T15:00:00-08:00", required: false
12
- argument :is_public, Boolean, "Example: , false", required: false
9
+ argument :name, [String], "Example: , Course 1", required: false
10
+ argument :start_at, [LMSGraphQL::Types::DateTimeType], "Example: , 2012-01-19T15:00:00-06:00", required: false
11
+ argument :conclude_at, [LMSGraphQL::Types::DateTimeType], "Example: , 2012-01-19T15:00:00-08:00", required: false
12
+ argument :is_public, [Boolean], "Example: , false", required: false
13
13
  argument :created_source, String, "The type of action that triggered the creation of the course..Example: manual|sis|api", required: false
14
14
 
15
15
  end
@@ -46,7 +46,7 @@ module LMSGraphQL
46
46
  field :lock_info, LMSGraphQL::Types::Canvas::CanvasLockInfo, "(Optional) Information for the user about the lock. Present when locked_for_user is true..", null: true
47
47
  field :lock_explanation, String, "(Optional) An explanation of why this is locked for the user. Present when locked_for_user is true..Example: This discussion is locked until September 1 at 12:00am", null: true
48
48
  field :user_name, String, "The username of the topic creator..Example: User Name", null: true
49
- field :topic_children, Int, "DEPRECATED An array of topic_ids for the group discussions the user is a part of..Example: 5, 7, 10", null: true
49
+ field :topic_children, [Int], "DEPRECATED An array of topic_ids for the group discussions the user is a part of..Example: 5, 7, 10", null: true
50
50
  field :group_topic_children, String, "An array of group discussions the user is a part of. Fields include: id, group_id.Example: {'id'=>5, 'group_id'=>1}, {'id'=>7, 'group_id'=>5}, {'id'=>10, 'group_id'=>4}", null: true
51
51
  field :root_topic_id, ID, "If the topic is for grading and a group assignment this will point to the original topic in the course..", null: true
52
52
  field :podcast_url, String, "If the topic is a podcast topic this is the feed url for the current user..Example: /feeds/topics/1/enrollment_1XAcepje4u228rt4mi7Z1oFbRpn3RAkTzuXIGOPe.rss", null: true
@@ -46,7 +46,7 @@ module LMSGraphQL
46
46
  argument :lock_info, LMSGraphQL::Types::Canvas::CanvasLockInfoInput, "(Optional) Information for the user about the lock. Present when locked_for_user is true..", required: false
47
47
  argument :lock_explanation, String, "(Optional) An explanation of why this is locked for the user. Present when locked_for_user is true..Example: This discussion is locked until September 1 at 12:00am", required: false
48
48
  argument :user_name, String, "The username of the topic creator..Example: User Name", required: false
49
- argument :topic_children, Int, "DEPRECATED An array of topic_ids for the group discussions the user is a part of..Example: 5, 7, 10", required: false
49
+ argument :topic_children, [Int], "DEPRECATED An array of topic_ids for the group discussions the user is a part of..Example: 5, 7, 10", required: false
50
50
  argument :group_topic_children, String, "An array of group discussions the user is a part of. Fields include: id, group_id.Example: {'id'=>5, 'group_id'=>1}, {'id'=>7, 'group_id'=>5}, {'id'=>10, 'group_id'=>4}", required: false
51
51
  argument :root_topic_id, ID, "If the topic is for grading and a group assignment this will point to the original topic in the course..", required: false
52
52
  argument :podcast_url, String, "If the topic is a podcast topic this is the feed url for the current user..Example: /feeds/topics/1/enrollment_1XAcepje4u228rt4mi7Z1oFbRpn3RAkTzuXIGOPe.rss", required: false
@@ -8,7 +8,7 @@ module LMSGraphQL
8
8
  description "Gradebook History. API Docs: https://canvas.instructure.com/doc/api/gradebook_history.html"
9
9
  field :id, ID, "the user_id of the user who graded the contained submissions.Example: 27", null: true
10
10
  field :name, String, "the name of the user who graded the contained submissions.Example: Some User", null: true
11
- field :assignments, Int, "the assignment groups for all submissions in this response that were graded by this user. The details are not nested inside here, but the fact that an assignment is present here means that the grader did grade submissions for this assignment on the contextual date. You can use the id of a grader and of an assignment to make another API call to find all submissions for a grader/assignment combination on a given date..Example: 1, 2, 3", null: true
11
+ field :assignments, [Int], "the assignment groups for all submissions in this response that were graded by this user. The details are not nested inside here, but the fact that an assignment is present here means that the grader did grade submissions for this assignment on the contextual date. You can use the id of a grader and of an assignment to make another API call to find all submissions for a grader/assignment combination on a given date..Example: 1, 2, 3", null: true
12
12
 
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module LMSGraphQL
8
8
  description "Gradebook History. API Docs: https://canvas.instructure.com/doc/api/gradebook_history.html"
9
9
  argument :id, ID, "the user_id of the user who graded the contained submissions.Example: 27", required: false
10
10
  argument :name, String, "the name of the user who graded the contained submissions.Example: Some User", required: false
11
- argument :assignments, Int, "the assignment groups for all submissions in this response that were graded by this user. The details are not nested inside here, but the fact that an assignment is present here means that the grader did grade submissions for this assignment on the contextual date. You can use the id of a grader and of an assignment to make another API call to find all submissions for a grader/assignment combination on a given date..Example: 1, 2, 3", required: false
11
+ argument :assignments, [Int], "the assignment groups for all submissions in this response that were graded by this user. The details are not nested inside here, but the fact that an assignment is present here means that the grader did grade submissions for this assignment on the contextual date. You can use the id of a grader and of an assignment to make another API call to find all submissions for a grader/assignment combination on a given date..Example: 1, 2, 3", required: false
12
12
 
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module LMSGraphQL
8
8
  description "Assignment Groups. API Docs: https://canvas.instructure.com/doc/api/assignment_groups.html"
9
9
  field :drop_lowest, Int, "Number of lowest scores to be dropped for each user..Example: 1", null: true
10
10
  field :drop_highest, Int, "Number of highest scores to be dropped for each user..Example: 1", null: true
11
- field :never_drop, Int, "Assignment IDs that should never be dropped..Example: 33, 17, 24", null: true
11
+ field :never_drop, [Int], "Assignment IDs that should never be dropped..Example: 33, 17, 24", null: true
12
12
 
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module LMSGraphQL
8
8
  description "Assignment Groups. API Docs: https://canvas.instructure.com/doc/api/assignment_groups.html"
9
9
  argument :drop_lowest, Int, "Number of lowest scores to be dropped for each user..Example: 1", required: false
10
10
  argument :drop_highest, Int, "Number of highest scores to be dropped for each user..Example: 1", required: false
11
- argument :never_drop, Int, "Assignment IDs that should never be dropped..Example: 33, 17, 24", required: false
11
+ argument :never_drop, [Int], "Assignment IDs that should never be dropped..Example: 33, 17, 24", required: false
12
12
 
13
13
  end
14
14
  end
@@ -0,0 +1,14 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasInstID < BaseType
8
+ description "InstIDs. API Docs: https://canvas.instructure.com/doc/api/inst_i_ds.html"
9
+ field :token, String, "The InstID token itself -- a signed, encrypted JWT.Example: eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.EstatUwzltksvZn4wbjHYiwleM986vzryrv4R9jqvYDGEY4rt6KPG4Q6lJ3oI0piYbH7h17i8vIWv35cqrgRbb7fzmGQ0Ptj74OEjx-1gGBMZCbZTE4W206XxPHRm9TS4qOAvIq0hsvJroE4xZsVWJFiUIKl_Wd2udbvqwF8bvnMKPAx_ooa-9mWaG1N9kd4EWC3Oxu9wi7j8ZG_TbkLSXAg1KxLaO2zXBcU5_HWrKFRxOjHmWpaOMKWkjUInt-DA6fLRszBZp9BFGoop8S9KDs6f1JebLgyM5gGrP-Gz7kSEAPO9eVXtjpd6N29wMClNI0X-Ppp_40Fp4Z3vocTKQ.c_tcevWI68RuZ0s04fDSEQ.wV8KIPHGfYwxm19MWt3K7VVGm4qqZJruPwAZ8rdUANTzJoqwafqOnYZLCyky8lV7J-m64SMVUmR-BOha_CmJEKVVw7T5x70MTP6-nv4RMVPpcViHsNgE2f1GE9HUauVePw7CrnV0PyVaNq2EZasDgdHdye4iG_-hXXQZRnGYzxl8UceTLBVkpEYHlXKdD7DyQ0IT2BYOcZSpXyW7kEIvAHpNaNbvTPCR2t0SeGbuNf8PpYVjohKDpXhNgQ-Pyl9pxs05TrdjTq1fIctzTLqIN58nfqzoqQld6rSkjcAZZXgr8bOsg8EDFMov5gTv2_Uf-YOm52yD1SbL0lJ-VdpKgXu7XtQ4UmEOj40W4uXF-KmLTjEwQmdbmtKrruhakIeth7EZa3w0Xg6RRyHLqKUheAdTgxAIer8MST8tamZlqW1b9wjMw371zSSjeksF_UjTS9p9i7eTtRPuAbf9geDhKb5e-y29MJaL1eKkhTMiEOPY3O4XGGuqRdRMrbjkNmla_RxiQhFJ3T8Dem-yDRan8gqaJLfRRrvGViz-lty96bQT-Z0hVer1uJhAtkM6RT_DgrnAUP_66LfaupZr6bLCKwnYocF1ICcAzkcYw7l5jHa4DTc2ZLgLi-yfbv2wGXpybAvLfZcO424TxHOuQykCSvbfPPuf06kkjPbYmMg6_GdM3JcQ_50VUXQFZkjH45BH5zX7y-2u0ReM8zxt65RpJAvlivrc8j2_E-u0LhlzCwEgsnd61lG4baaI86IVl4wNXkMDui4CgGvAUAf4AXW7Imw_cF0zI69z0SLfahjaYkdREGIYKStBtPAR04sfsR7o.LHBODYub4W4Vq-SXfdbk1Q", null: true
10
+
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require_relative "../canvas_base_input_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasInstIDInput < BaseInputObject
8
+ description "InstIDs. API Docs: https://canvas.instructure.com/doc/api/inst_i_ds.html"
9
+ argument :token, String, "The InstID token itself -- a signed, encrypted JWT.Example: eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.EstatUwzltksvZn4wbjHYiwleM986vzryrv4R9jqvYDGEY4rt6KPG4Q6lJ3oI0piYbH7h17i8vIWv35cqrgRbb7fzmGQ0Ptj74OEjx-1gGBMZCbZTE4W206XxPHRm9TS4qOAvIq0hsvJroE4xZsVWJFiUIKl_Wd2udbvqwF8bvnMKPAx_ooa-9mWaG1N9kd4EWC3Oxu9wi7j8ZG_TbkLSXAg1KxLaO2zXBcU5_HWrKFRxOjHmWpaOMKWkjUInt-DA6fLRszBZp9BFGoop8S9KDs6f1JebLgyM5gGrP-Gz7kSEAPO9eVXtjpd6N29wMClNI0X-Ppp_40Fp4Z3vocTKQ.c_tcevWI68RuZ0s04fDSEQ.wV8KIPHGfYwxm19MWt3K7VVGm4qqZJruPwAZ8rdUANTzJoqwafqOnYZLCyky8lV7J-m64SMVUmR-BOha_CmJEKVVw7T5x70MTP6-nv4RMVPpcViHsNgE2f1GE9HUauVePw7CrnV0PyVaNq2EZasDgdHdye4iG_-hXXQZRnGYzxl8UceTLBVkpEYHlXKdD7DyQ0IT2BYOcZSpXyW7kEIvAHpNaNbvTPCR2t0SeGbuNf8PpYVjohKDpXhNgQ-Pyl9pxs05TrdjTq1fIctzTLqIN58nfqzoqQld6rSkjcAZZXgr8bOsg8EDFMov5gTv2_Uf-YOm52yD1SbL0lJ-VdpKgXu7XtQ4UmEOj40W4uXF-KmLTjEwQmdbmtKrruhakIeth7EZa3w0Xg6RRyHLqKUheAdTgxAIer8MST8tamZlqW1b9wjMw371zSSjeksF_UjTS9p9i7eTtRPuAbf9geDhKb5e-y29MJaL1eKkhTMiEOPY3O4XGGuqRdRMrbjkNmla_RxiQhFJ3T8Dem-yDRan8gqaJLfRRrvGViz-lty96bQT-Z0hVer1uJhAtkM6RT_DgrnAUP_66LfaupZr6bLCKwnYocF1ICcAzkcYw7l5jHa4DTc2ZLgLi-yfbv2wGXpybAvLfZcO424TxHOuQykCSvbfPPuf06kkjPbYmMg6_GdM3JcQ_50VUXQFZkjH45BH5zX7y-2u0ReM8zxt65RpJAvlivrc8j2_E-u0LhlzCwEgsnd61lG4baaI86IVl4wNXkMDui4CgGvAUAf4AXW7Imw_cF0zI69z0SLfahjaYkdREGIYKStBtPAR04sfsR7o.LHBODYub4W4Vq-SXfdbk1Q", required: false
10
+
11
+ end
12
+ end
13
+ end
14
+ end
@@ -9,7 +9,7 @@ module LMSGraphQL
9
9
  field :type, String, "The value to pass to the create endpoint.Example: common_cartridge_importer", null: true
10
10
  field :requires_file_upload, Boolean, "Whether this endpoint requires a file upload.Example: true", null: true
11
11
  field :name, String, "Description of the package type expected.Example: Common Cartridge 1.0/1.1/1.2 Package", null: true
12
- field :required_settings, String, "A list of fields this system requires.Example: source_course_id", null: true
12
+ field :required_settings, [String], "A list of fields this system requires.Example: source_course_id", null: true
13
13
 
14
14
  end
15
15
  end
@@ -9,7 +9,7 @@ module LMSGraphQL
9
9
  argument :type, String, "The value to pass to the create endpoint.Example: common_cartridge_importer", required: false
10
10
  argument :requires_file_upload, Boolean, "Whether this endpoint requires a file upload.Example: true", required: false
11
11
  argument :name, String, "Description of the package type expected.Example: Common Cartridge 1.0/1.1/1.2 Package", required: false
12
- argument :required_settings, String, "A list of fields this system requires.Example: source_course_id", required: false
12
+ argument :required_settings, [String], "A list of fields this system requires.Example: source_course_id", required: false
13
13
 
14
14
  end
15
15
  end
@@ -20,6 +20,7 @@ module LMSGraphQL
20
20
  field :calendar, LMSGraphQL::Types::Canvas::CanvasCalendarLink, "", null: true
21
21
  field :time_zone, String, "Optional: This field is only returned in certain API calls, and will return the IANA time zone name of the user's preferred timezone..Example: America/Denver", null: true
22
22
  field :locale, String, "The users locale..", null: true
23
+ field :k5_user, Boolean, "Optional: Whether or not the user is a K5 user. This field is nil if the user settings are not for the user making the request..Example: true", null: true
23
24
 
24
25
  end
25
26
  end
@@ -20,6 +20,7 @@ module LMSGraphQL
20
20
  argument :calendar, LMSGraphQL::Types::Canvas::CanvasCalendarLinkInput, "", required: false
21
21
  argument :time_zone, String, "Optional: This field is only returned in certain API calls, and will return the IANA time zone name of the user's preferred timezone..Example: America/Denver", required: false
22
22
  argument :locale, String, "The users locale..", required: false
23
+ argument :k5_user, Boolean, "Optional: Whether or not the user is a K5 user. This field is nil if the user settings are not for the user making the request..Example: true", required: false
23
24
 
24
25
  end
25
26
  end
@@ -39,6 +39,10 @@ module LMSGraphQL
39
39
  resolver: LMSGraphQL::Resolvers::Canvas::ListAccount,
40
40
  description: "List accounts. A paginated list of accounts that the current user can view or manage. Typically, students and even teachers will get an empty list in response, only account admins can view the accounts that they are in."
41
41
 
42
+ field :get_accounts_that_admins_can_manage,
43
+ resolver: LMSGraphQL::Resolvers::Canvas::GetAccountsThatAdminsCanManage,
44
+ description: "Get accounts that admins can manage. A paginated list of accounts where the current user has permission to create or manage courses. List will be empty for students and teachers as only admins can view which accounts they are in."
45
+
42
46
  field :list_accounts_for_course_admins,
43
47
  resolver: LMSGraphQL::Resolvers::Canvas::ListAccountsForCourseAdmin,
44
48
  description: "List accounts for course admins. A paginated list of accounts that the current user can view through their admin course enrollments. (Teacher, TA, or designer enrollments). Only returns 'id', 'name', 'workflow_state', 'root_account_id' and 'parent_account_id'"
@@ -47,6 +51,10 @@ module LMSGraphQL
47
51
  resolver: LMSGraphQL::Resolvers::Canvas::GetSingleAccount,
48
52
  description: "Get a single account. Retrieve information on an individual account, given by id or sis sis_account_id."
49
53
 
54
+ field :settings,
55
+ resolver: LMSGraphQL::Resolvers::Canvas::Setting,
56
+ description: "Settings. Returns all of the settings for the specified account as a JSON object. The caller must be an Account admin with the manage_account_settings permission."
57
+
50
58
  field :permissions,
51
59
  resolver: LMSGraphQL::Resolvers::Canvas::Permission,
52
60
  description: "Permissions. Returns permission information for the calling user and the given account. You may use `self` as the account id to check permissions against the domain root account. The caller must have an account role or admin (teacher/TA/designer) enrollment in a course in the account. See also the {api:CoursesController#permissions Course} and {api:GroupsController#permissions Group} counterparts."
@@ -705,7 +713,11 @@ module LMSGraphQL
705
713
 
706
714
  field :get_visible_course_navigation_tools,
707
715
  resolver: LMSGraphQL::Resolvers::Canvas::GetVisibleCourseNavigationTool,
708
- description: "Get visible course navigation tools. Get a list of external tools with the course_navigation placement that have not been hidden in course settings and whose visibility settings apply to the requesting user. These tools are the same that appear in the course navigation."
716
+ description: "Get visible course navigation tools. Get a list of external tools with the course_navigation placement that have not been hidden in course settings and whose visibility settings apply to the requesting user. These tools are the same that appear in the course navigation. The response format is the same as for List external tools, but with additional context_id and context_name fields on each element in the array."
717
+
718
+ field :get_visible_course_navigation_tools_for_single_course,
719
+ resolver: LMSGraphQL::Resolvers::Canvas::GetVisibleCourseNavigationToolsForSingleCourse,
720
+ description: "Get visible course navigation tools for a single course. Get a list of external tools with the course_navigation placement that have not been hidden in course settings and whose visibility settings apply to the requesting user. These tools are the same that appear in the course navigation. The response format is the same as Get visible course navigation tools."
709
721
 
710
722
  field :list_favorite_courses,
711
723
  resolver: LMSGraphQL::Resolvers::Canvas::ListFavoriteCourse,
@@ -61,7 +61,7 @@ module LMSGraphQL
61
61
  field :permissions, LMSGraphQL::Types::Canvas::CanvasQuizPermission, "Permissions the user has for the quiz.", null: true
62
62
  field :all_dates, [LMSGraphQL::Types::Canvas::CanvasAssignmentDate], "list of due dates for the quiz.", null: true
63
63
  field :version_number, Int, "Current version number of the quiz.Example: 3", null: true
64
- field :question_types, String, "List of question types in the quiz.Example: multiple_choice, essay", null: true
64
+ field :question_types, [String], "List of question types in the quiz.Example: multiple_choice, essay", null: true
65
65
  field :anonymous_submissions, Boolean, "Whether survey submissions will be kept anonymous (only applicable to 'graded_survey', 'survey' quiz types).", null: true
66
66
 
67
67
  end
@@ -61,7 +61,7 @@ module LMSGraphQL
61
61
  argument :permissions, LMSGraphQL::Types::Canvas::CanvasQuizPermissionInput, "Permissions the user has for the quiz.", required: false
62
62
  argument :all_dates, [LMSGraphQL::Types::Canvas::CanvasAssignmentDateInput], "list of due dates for the quiz.", required: false
63
63
  argument :version_number, Int, "Current version number of the quiz.Example: 3", required: false
64
- argument :question_types, String, "List of question types in the quiz.Example: multiple_choice, essay", required: false
64
+ argument :question_types, [String], "List of question types in the quiz.Example: multiple_choice, essay", required: false
65
65
  argument :anonymous_submissions, Boolean, "Whether survey submissions will be kept anonymous (only applicable to 'graded_survey', 'survey' quiz types).", required: false
66
66
 
67
67
  end
@@ -9,7 +9,7 @@ module LMSGraphQL
9
9
  field :id, ID, "The ID of the QuizQuestion this answer is for..Example: 1", null: true
10
10
  field :flagged, Boolean, "Whether this question is flagged..Example: true", null: true
11
11
  field :answer, String, "The provided answer (if any) for this question. The format of this parameter depends on the type of the question, see the Appendix for more information..", null: true
12
- field :answers, String, "The possible answers for this question when those possible answers are necessary. The presence of this parameter is dependent on permissions..", null: true
12
+ field :answers, [String], "The possible answers for this question when those possible answers are necessary. The presence of this parameter is dependent on permissions..", null: true
13
13
 
14
14
  end
15
15
  end
@@ -9,7 +9,7 @@ module LMSGraphQL
9
9
  argument :id, ID, "The ID of the QuizQuestion this answer is for..Example: 1", required: false
10
10
  argument :flagged, Boolean, "Whether this question is flagged..Example: true", required: false
11
11
  argument :answer, String, "The provided answer (if any) for this question. The format of this parameter depends on the type of the question, see the Appendix for more information..", required: false
12
- argument :answers, String, "The possible answers for this question when those possible answers are necessary. The presence of this parameter is dependent on permissions..", required: false
12
+ argument :answers, [String], "The possible answers for this question when those possible answers are necessary. The presence of this parameter is dependent on permissions..", required: false
13
13
 
14
14
  end
15
15
  end