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.
- checksums.yaml +4 -4
- data/lib/lms_graphql/mutations/canvas/add_message.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/add_recipients.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/copy_course_content.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_appointment_group.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_assignment.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_assignment_override.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_conversation.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_global_notification.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_instid.rb +22 -0
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_accounts.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_accounts_outcome_id.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_courses_outcome_id.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_global.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_link_outcome_global_outcome_id.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_module.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_new_course.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_new_grading_standard_accounts.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_new_grading_standard_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_or_update_events_directly_for_course_timetable.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_question_group.rb +4 -4
- data/lib/lms_graphql/mutations/canvas/create_single_poll.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_single_poll_choice.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_single_poll_session.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_single_poll_submission.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_update_proficiency_ratings_accounts.rb +4 -4
- data/lib/lms_graphql/mutations/canvas/create_update_proficiency_ratings_courses.rb +4 -4
- data/lib/lms_graphql/mutations/canvas/delete_message.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/edit_assignment.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/edit_conversation.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/edit_group.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_courses_assignments.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_courses_submissions.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_sections_assignments.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_multiple_submissions_sections_submissions.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_courses.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_sections.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/import_sis_data.rb +5 -1
- data/lib/lms_graphql/mutations/canvas/invite_others_to_group.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/mutations.rb +1 -0
- data/lib/lms_graphql/mutations/canvas/quiz_extensions_set_extensions_for_student_quiz_submissions.rb +6 -6
- data/lib/lms_graphql/mutations/canvas/reorder_custom_columns.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/reorder_pinned_topics_courses.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/reorder_pinned_topics_groups.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/reorder_question_groups.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/reorder_quiz_items.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/set_course_timetable.rb +4 -4
- data/lib/lms_graphql/mutations/canvas/set_extensions_for_student_assignment_submissions.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/submit_assignment_courses.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/submit_assignment_sections.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_account.rb +11 -1
- data/lib/lms_graphql/mutations/canvas/update_appointment_group.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_assignment_override.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_course.rb +8 -4
- data/lib/lms_graphql/mutations/canvas/update_global_notification.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_media_tracks.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_module.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_outcome.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_question_group.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_single_grading_period.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_single_poll.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_single_poll_choice.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_single_poll_session.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_student_question_scores_and_comments.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/batch_retrieve_overrides_in_course.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/courses_permissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/find_recipients_conversations.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/find_recipients_search.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/get_accounts_that_admins_can_manage.rb +23 -0
- data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_courses_peer_reviews.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_courses_submissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_sections_peer_reviews.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_all_peer_reviews_sections_submissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_all_quiz_submission_questions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_all_quiz_submissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_assignment_group.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_file_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_file_files.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_file_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_file_users.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_outcome_result_rollups.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/get_outcome_results.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_quiz_submission.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_section_information_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_section_information_sections.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_appointment_group.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_assignment.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_conversation.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_course_accounts.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_course_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_group.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_quiz_submission.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_rubric_accounts.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_rubric_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_submission_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_submission_sections.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_topic_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_single_topic_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_sis_import_list.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/get_users_most_recently_graded_submissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/get_visible_course_navigation_tools.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/get_visible_course_navigation_tools_for_single_course.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/groups_permissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_accounts.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_active_courses_in_account.rb +9 -7
- data/lib/lms_graphql/resolvers/canvas/list_announcements.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_appointment_groups.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_assignment_groups.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_assignment_submissions_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_assignment_submissions_sections.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_assignments_assignment_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_assignments_assignments.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_accounts.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_courses.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_groups.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_users.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_calendar_events.rb +5 -3
- data/lib/lms_graphql/resolvers/canvas/list_calendar_events_for_user.rb +5 -3
- data/lib/lms_graphql/resolvers/canvas/list_conversations.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_counts_for_todo_items.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_course_sections.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_courses_for_user.rb +6 -4
- data/lib/lms_graphql/resolvers/canvas/list_discussion_topics_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_discussion_topics_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_enrollment_terms.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_enrollments_courses.rb +9 -9
- data/lib/lms_graphql/resolvers/canvas/list_enrollments_sections.rb +9 -9
- data/lib/lms_graphql/resolvers/canvas/list_enrollments_users.rb +9 -9
- data/lib/lms_graphql/resolvers/canvas/list_entries_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_entries_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_files_courses.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_files_folders.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_files_groups.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_files_users.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_group_memberships.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_group_s_users.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_groups_available_in_context_accounts.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_groups_available_in_context_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_media_objects_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_media_objects_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_media_objects_media_objects.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_media_tracks_for_media_object.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_members_of_collaboration.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_missing_submissions.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_module_items.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_modules.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_observees.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_observers.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_planner_items_planner.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_planner_items_users.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_planner_notes.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_roles.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_courses.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_sections.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_todo_items.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/list_users_in_course_search_users.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_users_in_course_users.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_your_courses.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_your_groups.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/permissions.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_classic_quizzes.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_new_quizzes.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/settings.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/show_module.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/show_module_item.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/show_user_details.rb +1 -1
- data/lib/lms_graphql/resolvers/canvas/update_user_settings.rb +8 -2
- data/lib/lms_graphql/types/canvas/account_notification.rb +1 -1
- data/lib/lms_graphql/types/canvas/account_notification_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/appointment_group.rb +2 -2
- data/lib/lms_graphql/types/canvas/appointment_group_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/assignment.rb +4 -4
- data/lib/lms_graphql/types/canvas/assignment_event.rb +1 -0
- data/lib/lms_graphql/types/canvas/assignment_event_input.rb +1 -0
- data/lib/lms_graphql/types/canvas/assignment_group.rb +1 -1
- data/lib/lms_graphql/types/canvas/assignment_group_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/assignment_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/authentication_provider.rb +1 -0
- data/lib/lms_graphql/types/canvas/authentication_provider_input.rb +1 -0
- data/lib/lms_graphql/types/canvas/calendar_event.rb +2 -1
- data/lib/lms_graphql/types/canvas/calendar_event_input.rb +2 -1
- data/lib/lms_graphql/types/canvas/conference.rb +1 -1
- data/lib/lms_graphql/types/canvas/conference_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/conversation.rb +3 -3
- data/lib/lms_graphql/types/canvas/conversation_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/created_event_datum.rb +4 -4
- data/lib/lms_graphql/types/canvas/created_event_datum_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/discussion_topic.rb +1 -1
- data/lib/lms_graphql/types/canvas/discussion_topic_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/grader.rb +1 -1
- data/lib/lms_graphql/types/canvas/grader_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/grading_rule.rb +1 -1
- data/lib/lms_graphql/types/canvas/grading_rule_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/inst_id.rb +14 -0
- data/lib/lms_graphql/types/canvas/inst_id_input.rb +14 -0
- data/lib/lms_graphql/types/canvas/migrator.rb +1 -1
- data/lib/lms_graphql/types/canvas/migrator_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/profile.rb +1 -0
- data/lib/lms_graphql/types/canvas/profile_input.rb +1 -0
- data/lib/lms_graphql/types/canvas/query_type.rb +13 -1
- data/lib/lms_graphql/types/canvas/quiz.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_submission_question.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_submission_question_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/report_parameter.rb +1 -1
- data/lib/lms_graphql/types/canvas/report_parameter_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/rubric_assessment.rb +1 -1
- data/lib/lms_graphql/types/canvas/rubric_assessment_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/sis_import_datum.rb +1 -1
- data/lib/lms_graphql/types/canvas/sis_import_datum_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/submission.rb +6 -0
- data/lib/lms_graphql/types/canvas/submission_input.rb +6 -0
- data/lib/lms_graphql/types/canvas/updated_event_datum.rb +4 -4
- data/lib/lms_graphql/types/canvas/updated_event_datum_input.rb +4 -4
- data/lib/lms_graphql/types/canvas_forward_declarations.rb +2 -0
- data/lib/lms_graphql/version.rb +1 -1
- metadata +8 -2
@@ -6,12 +6,13 @@ module LMSGraphQL
|
|
6
6
|
class ListAnnouncement < CanvasBaseResolver
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasDiscussionTopic], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
|
-
argument :context_codes, String, required: true
|
9
|
+
argument :context_codes, [String], required: true
|
10
10
|
argument :start_date, LMSGraphQL::Types::DateTimeType, required: false
|
11
11
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
12
12
|
argument :active_only, Boolean, required: false
|
13
|
+
argument :latest_only, Boolean, required: false
|
13
14
|
argument :include, String, required: false
|
14
|
-
def resolve(context_codes:, start_date: nil, end_date: nil, active_only: nil, include: nil, get_all: false)
|
15
|
+
def resolve(context_codes:, start_date: nil, end_date: nil, active_only: nil, latest_only: nil, include: nil, get_all: false)
|
15
16
|
result = context[:canvas_api].call("LIST_ANNOUNCEMENTS").proxy(
|
16
17
|
"LIST_ANNOUNCEMENTS",
|
17
18
|
{
|
@@ -19,6 +20,7 @@ module LMSGraphQL
|
|
19
20
|
"start_date": start_date,
|
20
21
|
"end_date": end_date,
|
21
22
|
"active_only": active_only,
|
23
|
+
"latest_only": latest_only,
|
22
24
|
"include": include },
|
23
25
|
nil,
|
24
26
|
get_all,
|
@@ -6,9 +6,9 @@ module LMSGraphQL
|
|
6
6
|
class ListAppointmentGroup < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :scope, String, required: false
|
9
|
-
argument :context_codes, String, required: false
|
9
|
+
argument :context_codes, [String], required: false
|
10
10
|
argument :include_past_appointments, Boolean, required: false
|
11
|
-
argument :include, String, required: false
|
11
|
+
argument :include, [String], required: false
|
12
12
|
def resolve(scope: nil, context_codes: nil, include_past_appointments: nil, include: nil, get_all: false)
|
13
13
|
result = context[:canvas_api].call("LIST_APPOINTMENT_GROUPS").proxy(
|
14
14
|
"LIST_APPOINTMENT_GROUPS",
|
@@ -7,9 +7,9 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasAssignmentGroup], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
argument :assignment_ids, [ID], required: false
|
12
|
-
argument :exclude_assignment_submission_types, String, required: false
|
12
|
+
argument :exclude_assignment_submission_types, [String], required: false
|
13
13
|
argument :override_assignment_dates, Boolean, required: false
|
14
14
|
argument :grading_period_id, ID, required: false
|
15
15
|
argument :scope_assignments_to_student, Boolean, required: false
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
10
|
argument :assignment_id, ID, required: true
|
11
|
-
argument :include, String, required: false
|
11
|
+
argument :include, [String], required: false
|
12
12
|
argument :grouped, Boolean, required: false
|
13
13
|
def resolve(course_id:, assignment_id:, include: nil, grouped: nil, get_all: false)
|
14
14
|
result = context[:canvas_api].call("LIST_ASSIGNMENT_SUBMISSIONS_COURSES").proxy(
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :section_id, ID, required: true
|
10
10
|
argument :assignment_id, ID, required: true
|
11
|
-
argument :include, String, required: false
|
11
|
+
argument :include, [String], required: false
|
12
12
|
argument :grouped, Boolean, required: false
|
13
13
|
def resolve(section_id:, assignment_id:, include: nil, grouped: nil, get_all: false)
|
14
14
|
result = context[:canvas_api].call("LIST_ASSIGNMENT_SUBMISSIONS_SECTIONS").proxy(
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
10
|
argument :assignment_group_id, ID, required: true
|
11
|
-
argument :include, String, required: false
|
11
|
+
argument :include, [String], required: false
|
12
12
|
argument :search_term, String, required: false
|
13
13
|
argument :override_assignment_dates, Boolean, required: false
|
14
14
|
argument :needs_grading_count_by_section, Boolean, required: false
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasAssignment], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
argument :search_term, String, required: false
|
12
12
|
argument :override_assignment_dates, Boolean, required: false
|
13
13
|
argument :needs_grading_count_by_section, Boolean, required: false
|
@@ -6,11 +6,13 @@ module LMSGraphQL
|
|
6
6
|
class ListAvailableTabsForCourseOrGroupAccount < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :account_id, ID, required: true
|
9
|
-
|
9
|
+
argument :include, [String], required: false
|
10
|
+
def resolve(account_id:, include: nil, get_all: false)
|
10
11
|
result = context[:canvas_api].call("LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_ACCOUNTS").proxy(
|
11
12
|
"LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_ACCOUNTS",
|
12
13
|
{
|
13
|
-
"account_id": account_id
|
14
|
+
"account_id": account_id,
|
15
|
+
"include": include },
|
14
16
|
nil,
|
15
17
|
get_all,
|
16
18
|
)
|
@@ -6,11 +6,13 @@ module LMSGraphQL
|
|
6
6
|
class ListAvailableTabsForCourseOrGroupCourse < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :course_id, ID, required: true
|
9
|
-
|
9
|
+
argument :include, [String], required: false
|
10
|
+
def resolve(course_id:, include: nil, get_all: false)
|
10
11
|
result = context[:canvas_api].call("LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_COURSES").proxy(
|
11
12
|
"LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_COURSES",
|
12
13
|
{
|
13
|
-
"course_id": course_id
|
14
|
+
"course_id": course_id,
|
15
|
+
"include": include },
|
14
16
|
nil,
|
15
17
|
get_all,
|
16
18
|
)
|
@@ -6,11 +6,13 @@ module LMSGraphQL
|
|
6
6
|
class ListAvailableTabsForCourseOrGroupGroup < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :group_id, ID, required: true
|
9
|
-
|
9
|
+
argument :include, [String], required: false
|
10
|
+
def resolve(group_id:, include: nil, get_all: false)
|
10
11
|
result = context[:canvas_api].call("LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_GROUPS").proxy(
|
11
12
|
"LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_GROUPS",
|
12
13
|
{
|
13
|
-
"group_id": group_id
|
14
|
+
"group_id": group_id,
|
15
|
+
"include": include },
|
14
16
|
nil,
|
15
17
|
get_all,
|
16
18
|
)
|
@@ -6,11 +6,13 @@ module LMSGraphQL
|
|
6
6
|
class ListAvailableTabsForCourseOrGroupUser < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :user_id, ID, required: true
|
9
|
-
|
9
|
+
argument :include, [String], required: false
|
10
|
+
def resolve(user_id:, include: nil, get_all: false)
|
10
11
|
result = context[:canvas_api].call("LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_USERS").proxy(
|
11
12
|
"LIST_AVAILABLE_TABS_FOR_COURSE_OR_GROUP_USERS",
|
12
13
|
{
|
13
|
-
"user_id": user_id
|
14
|
+
"user_id": user_id,
|
15
|
+
"include": include },
|
14
16
|
nil,
|
15
17
|
get_all,
|
16
18
|
)
|
@@ -11,9 +11,10 @@ module LMSGraphQL
|
|
11
11
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
12
12
|
argument :undated, Boolean, required: false
|
13
13
|
argument :all_events, Boolean, required: false
|
14
|
-
argument :context_codes, String, required: false
|
14
|
+
argument :context_codes, [String], required: false
|
15
15
|
argument :excludes, [String], required: false
|
16
|
-
|
16
|
+
argument :important_dates, Boolean, required: false
|
17
|
+
def resolve(type: nil, start_date: nil, end_date: nil, undated: nil, all_events: nil, context_codes: nil, excludes: nil, important_dates: nil, get_all: false)
|
17
18
|
result = context[:canvas_api].call("LIST_CALENDAR_EVENTS").proxy(
|
18
19
|
"LIST_CALENDAR_EVENTS",
|
19
20
|
{
|
@@ -23,7 +24,8 @@ module LMSGraphQL
|
|
23
24
|
"undated": undated,
|
24
25
|
"all_events": all_events,
|
25
26
|
"context_codes": context_codes,
|
26
|
-
"excludes": excludes
|
27
|
+
"excludes": excludes,
|
28
|
+
"important_dates": important_dates },
|
27
29
|
nil,
|
28
30
|
get_all,
|
29
31
|
)
|
@@ -12,11 +12,12 @@ module LMSGraphQL
|
|
12
12
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
13
13
|
argument :undated, Boolean, required: false
|
14
14
|
argument :all_events, Boolean, required: false
|
15
|
-
argument :context_codes, String, required: false
|
15
|
+
argument :context_codes, [String], required: false
|
16
16
|
argument :excludes, [String], required: false
|
17
17
|
argument :submission_types, [String], required: false
|
18
18
|
argument :exclude_submission_types, [String], required: false
|
19
|
-
|
19
|
+
argument :important_dates, Boolean, required: false
|
20
|
+
def resolve(user_id:, type: nil, start_date: nil, end_date: nil, undated: nil, all_events: nil, context_codes: nil, excludes: nil, submission_types: nil, exclude_submission_types: nil, important_dates: nil, get_all: false)
|
20
21
|
result = context[:canvas_api].call("LIST_CALENDAR_EVENTS_FOR_USER").proxy(
|
21
22
|
"LIST_CALENDAR_EVENTS_FOR_USER",
|
22
23
|
{
|
@@ -29,7 +30,8 @@ module LMSGraphQL
|
|
29
30
|
"context_codes": context_codes,
|
30
31
|
"excludes": excludes,
|
31
32
|
"submission_types": submission_types,
|
32
|
-
"exclude_submission_types": exclude_submission_types
|
33
|
+
"exclude_submission_types": exclude_submission_types,
|
34
|
+
"important_dates": important_dates },
|
33
35
|
nil,
|
34
36
|
get_all,
|
35
37
|
)
|
@@ -7,11 +7,11 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasConversation], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :scope, String, required: false
|
10
|
-
argument :filter, String, required: false
|
10
|
+
argument :filter, [String], required: false
|
11
11
|
argument :filter_mode, String, required: false
|
12
12
|
argument :interleave_submissions, Boolean, required: false
|
13
13
|
argument :include_all_conversation_ids, [ID], required: false
|
14
|
-
argument :include, String, required: false
|
14
|
+
argument :include, [String], required: false
|
15
15
|
def resolve(scope: nil, filter: nil, filter_mode: nil, interleave_submissions: nil, include_all_conversation_ids: nil, include: nil, get_all: false)
|
16
16
|
result = context[:canvas_api].call("LIST_CONVERSATIONS").proxy(
|
17
17
|
"LIST_CONVERSATIONS",
|
@@ -5,7 +5,7 @@ module LMSGraphQL
|
|
5
5
|
module Canvas
|
6
6
|
class ListCountsForTodoItem < CanvasBaseResolver
|
7
7
|
type Boolean, null: false
|
8
|
-
argument :include, String, required: false
|
8
|
+
argument :include, [String], required: false
|
9
9
|
def resolve(include: nil, get_all: false)
|
10
10
|
result = context[:canvas_api].call("LIST_COUNTS_FOR_TODO_ITEMS").proxy(
|
11
11
|
"LIST_COUNTS_FOR_TODO_ITEMS",
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasSection], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
def resolve(course_id:, include: nil, get_all: false)
|
12
12
|
result = context[:canvas_api].call("LIST_COURSE_SECTIONS").proxy(
|
13
13
|
"LIST_COURSE_SECTIONS",
|
@@ -7,17 +7,19 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasCourse], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :user_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
11
|
-
argument :state, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
|
+
argument :state, [String], required: false
|
12
12
|
argument :enrollment_state, String, required: false
|
13
|
-
|
13
|
+
argument :homeroom, Boolean, required: false
|
14
|
+
def resolve(user_id:, include: nil, state: nil, enrollment_state: nil, homeroom: nil, get_all: false)
|
14
15
|
result = context[:canvas_api].call("LIST_COURSES_FOR_USER").proxy(
|
15
16
|
"LIST_COURSES_FOR_USER",
|
16
17
|
{
|
17
18
|
"user_id": user_id,
|
18
19
|
"include": include,
|
19
20
|
"state": state,
|
20
|
-
"enrollment_state": enrollment_state
|
21
|
+
"enrollment_state": enrollment_state,
|
22
|
+
"homeroom": homeroom },
|
21
23
|
nil,
|
22
24
|
get_all,
|
23
25
|
)
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasDiscussionTopic], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
argument :order_by, String, required: false
|
12
12
|
argument :scope, String, required: false
|
13
13
|
argument :only_announcements, Boolean, required: false
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasDiscussionTopic], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :group_id, ID, required: true
|
10
|
-
argument :include, String, required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
argument :order_by, String, required: false
|
12
12
|
argument :scope, String, required: false
|
13
13
|
argument :only_announcements, Boolean, required: false
|
@@ -6,8 +6,8 @@ module LMSGraphQL
|
|
6
6
|
class ListEnrollmentTerm < CanvasBaseResolver
|
7
7
|
type LMSGraphQL::Types::Canvas::CanvasEnrollmentTermsList, null: false
|
8
8
|
argument :account_id, ID, required: true
|
9
|
-
argument :workflow_state, String, required: false
|
10
|
-
argument :include, String, required: false
|
9
|
+
argument :workflow_state, [String], required: false
|
10
|
+
argument :include, [String], required: false
|
11
11
|
def resolve(account_id:, workflow_state: nil, include: nil, get_all: false)
|
12
12
|
result = context[:canvas_api].call("LIST_ENROLLMENT_TERMS").proxy(
|
13
13
|
"LIST_ENROLLMENT_TERMS",
|
@@ -7,18 +7,18 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasEnrollment], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :type, String, required: false
|
11
|
-
argument :role, String, required: false
|
12
|
-
argument :state, String, required: false
|
13
|
-
argument :include, String, required: false
|
10
|
+
argument :type, [String], required: false
|
11
|
+
argument :role, [String], required: false
|
12
|
+
argument :state, [String], required: false
|
13
|
+
argument :include, [String], required: false
|
14
14
|
argument :user_id, ID, required: false
|
15
15
|
argument :grading_period_id, ID, required: false
|
16
16
|
argument :enrollment_term_id, ID, required: false
|
17
|
-
argument :sis_account_id, ID, required: false
|
18
|
-
argument :sis_course_id, ID, required: false
|
19
|
-
argument :sis_section_id, ID, required: false
|
20
|
-
argument :sis_user_id, ID, required: false
|
21
|
-
argument :created_for_sis_id, ID, required: false
|
17
|
+
argument :sis_account_id, [ID], required: false
|
18
|
+
argument :sis_course_id, [ID], required: false
|
19
|
+
argument :sis_section_id, [ID], required: false
|
20
|
+
argument :sis_user_id, [ID], required: false
|
21
|
+
argument :created_for_sis_id, [ID], required: false
|
22
22
|
def resolve(course_id:, type: nil, role: nil, state: nil, include: nil, user_id: nil, grading_period_id: nil, enrollment_term_id: nil, sis_account_id: nil, sis_course_id: nil, sis_section_id: nil, sis_user_id: nil, created_for_sis_id: nil, get_all: false)
|
23
23
|
result = context[:canvas_api].call("LIST_ENROLLMENTS_COURSES").proxy(
|
24
24
|
"LIST_ENROLLMENTS_COURSES",
|
@@ -7,18 +7,18 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasEnrollment], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :section_id, ID, required: true
|
10
|
-
argument :type, String, required: false
|
11
|
-
argument :role, String, required: false
|
12
|
-
argument :state, String, required: false
|
13
|
-
argument :include, String, required: false
|
10
|
+
argument :type, [String], required: false
|
11
|
+
argument :role, [String], required: false
|
12
|
+
argument :state, [String], required: false
|
13
|
+
argument :include, [String], required: false
|
14
14
|
argument :user_id, ID, required: false
|
15
15
|
argument :grading_period_id, ID, required: false
|
16
16
|
argument :enrollment_term_id, ID, required: false
|
17
|
-
argument :sis_account_id, ID, required: false
|
18
|
-
argument :sis_course_id, ID, required: false
|
19
|
-
argument :sis_section_id, ID, required: false
|
20
|
-
argument :sis_user_id, ID, required: false
|
21
|
-
argument :created_for_sis_id, ID, required: false
|
17
|
+
argument :sis_account_id, [ID], required: false
|
18
|
+
argument :sis_course_id, [ID], required: false
|
19
|
+
argument :sis_section_id, [ID], required: false
|
20
|
+
argument :sis_user_id, [ID], required: false
|
21
|
+
argument :created_for_sis_id, [ID], required: false
|
22
22
|
def resolve(section_id:, type: nil, role: nil, state: nil, include: nil, user_id: nil, grading_period_id: nil, enrollment_term_id: nil, sis_account_id: nil, sis_course_id: nil, sis_section_id: nil, sis_user_id: nil, created_for_sis_id: nil, get_all: false)
|
23
23
|
result = context[:canvas_api].call("LIST_ENROLLMENTS_SECTIONS").proxy(
|
24
24
|
"LIST_ENROLLMENTS_SECTIONS",
|
@@ -6,18 +6,18 @@ module LMSGraphQL
|
|
6
6
|
class ListEnrollmentsUser < CanvasBaseResolver
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasEnrollment], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
|
-
argument :type, String, required: false
|
10
|
-
argument :role, String, required: false
|
11
|
-
argument :state, String, required: false
|
12
|
-
argument :include, String, required: false
|
9
|
+
argument :type, [String], required: false
|
10
|
+
argument :role, [String], required: false
|
11
|
+
argument :state, [String], required: false
|
12
|
+
argument :include, [String], required: false
|
13
13
|
argument :user_id, ID, required: true
|
14
14
|
argument :grading_period_id, ID, required: false
|
15
15
|
argument :enrollment_term_id, ID, required: false
|
16
|
-
argument :sis_account_id, ID, required: false
|
17
|
-
argument :sis_course_id, ID, required: false
|
18
|
-
argument :sis_section_id, ID, required: false
|
19
|
-
argument :sis_user_id, ID, required: false
|
20
|
-
argument :created_for_sis_id, ID, required: false
|
16
|
+
argument :sis_account_id, [ID], required: false
|
17
|
+
argument :sis_course_id, [ID], required: false
|
18
|
+
argument :sis_section_id, [ID], required: false
|
19
|
+
argument :sis_user_id, [ID], required: false
|
20
|
+
argument :created_for_sis_id, [ID], required: false
|
21
21
|
def resolve(type: nil, role: nil, state: nil, include: nil, user_id:, grading_period_id: nil, enrollment_term_id: nil, sis_account_id: nil, sis_course_id: nil, sis_section_id: nil, sis_user_id: nil, created_for_sis_id: nil, get_all: false)
|
22
22
|
result = context[:canvas_api].call("LIST_ENROLLMENTS_USERS").proxy(
|
23
23
|
"LIST_ENROLLMENTS_USERS",
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :course_id, ID, required: true
|
9
9
|
argument :topic_id, ID, required: true
|
10
|
-
argument :ids, String, required: false
|
10
|
+
argument :ids, [String], required: false
|
11
11
|
def resolve(course_id:, topic_id:, ids: nil, get_all: false)
|
12
12
|
result = context[:canvas_api].call("LIST_ENTRIES_COURSES").proxy(
|
13
13
|
"LIST_ENTRIES_COURSES",
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
7
7
|
type Boolean, null: false
|
8
8
|
argument :group_id, ID, required: true
|
9
9
|
argument :topic_id, ID, required: true
|
10
|
-
argument :ids, String, required: false
|
10
|
+
argument :ids, [String], required: false
|
11
11
|
def resolve(group_id:, topic_id:, ids: nil, get_all: false)
|
12
12
|
result = context[:canvas_api].call("LIST_ENTRIES_GROUPS").proxy(
|
13
13
|
"LIST_ENTRIES_GROUPS",
|
@@ -7,10 +7,10 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasFile], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :course_id, ID, required: true
|
10
|
-
argument :content_types, String, required: false
|
11
|
-
argument :exclude_content_types, String, required: false
|
10
|
+
argument :content_types, [String], required: false
|
11
|
+
argument :exclude_content_types, [String], required: false
|
12
12
|
argument :search_term, String, required: false
|
13
|
-
argument :include, String, required: false
|
13
|
+
argument :include, [String], required: false
|
14
14
|
argument :only, [String], required: false
|
15
15
|
argument :sort, String, required: false
|
16
16
|
argument :order, String, required: false
|
@@ -7,10 +7,10 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasFile], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :id, ID, required: true
|
10
|
-
argument :content_types, String, required: false
|
11
|
-
argument :exclude_content_types, String, required: false
|
10
|
+
argument :content_types, [String], required: false
|
11
|
+
argument :exclude_content_types, [String], required: false
|
12
12
|
argument :search_term, String, required: false
|
13
|
-
argument :include, String, required: false
|
13
|
+
argument :include, [String], required: false
|
14
14
|
argument :only, [String], required: false
|
15
15
|
argument :sort, String, required: false
|
16
16
|
argument :order, String, required: false
|
@@ -7,10 +7,10 @@ module LMSGraphQL
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasFile], null: false
|
8
8
|
argument :get_all, Boolean, required: false
|
9
9
|
argument :group_id, ID, required: true
|
10
|
-
argument :content_types, String, required: false
|
11
|
-
argument :exclude_content_types, String, required: false
|
10
|
+
argument :content_types, [String], required: false
|
11
|
+
argument :exclude_content_types, [String], required: false
|
12
12
|
argument :search_term, String, required: false
|
13
|
-
argument :include, String, required: false
|
13
|
+
argument :include, [String], required: false
|
14
14
|
argument :only, [String], required: false
|
15
15
|
argument :sort, String, required: false
|
16
16
|
argument :order, String, required: false
|