lms-graphql-api 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -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 :user_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,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasGroupMembership], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :group_id, ID, required: true
|
|
10
|
-
argument :filter_states, String, required: false
|
|
10
|
+
argument :filter_states, [String], required: false
|
|
11
11
|
def resolve(group_id:, filter_states: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_GROUP_MEMBERSHIPS").proxy(
|
|
13
13
|
"LIST_GROUP_MEMBERSHIPS",
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :group_id, ID, required: true
|
|
10
10
|
argument :search_term, String, required: false
|
|
11
|
-
argument :include, String, required: false
|
|
11
|
+
argument :include, [String], required: false
|
|
12
12
|
argument :exclude_inactive, Boolean, required: false
|
|
13
13
|
def resolve(group_id:, search_term: nil, include: nil, exclude_inactive: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("LIST_GROUP_S_USERS").proxy(
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :account_id, ID, required: true
|
|
10
10
|
argument :only_own_groups, Boolean, required: false
|
|
11
|
-
argument :include, String, required: false
|
|
11
|
+
argument :include, [String], required: false
|
|
12
12
|
def resolve(account_id:, only_own_groups: nil, include: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_GROUPS_AVAILABLE_IN_CONTEXT_ACCOUNTS").proxy(
|
|
14
14
|
"LIST_GROUPS_AVAILABLE_IN_CONTEXT_ACCOUNTS",
|
|
@@ -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 :only_own_groups, Boolean, required: false
|
|
11
|
-
argument :include, String, required: false
|
|
11
|
+
argument :include, [String], required: false
|
|
12
12
|
def resolve(course_id:, only_own_groups: nil, include: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_GROUPS_AVAILABLE_IN_CONTEXT_COURSES").proxy(
|
|
14
14
|
"LIST_GROUPS_AVAILABLE_IN_CONTEXT_COURSES",
|
|
@@ -9,7 +9,7 @@ module LMSGraphQL
|
|
|
9
9
|
argument :course_id, ID, required: true
|
|
10
10
|
argument :sort, String, required: false
|
|
11
11
|
argument :order, String, required: false
|
|
12
|
-
argument :exclude, String, required: false
|
|
12
|
+
argument :exclude, [String], required: false
|
|
13
13
|
def resolve(course_id:, sort: nil, order: nil, exclude: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("LIST_MEDIA_OBJECTS_COURSES").proxy(
|
|
15
15
|
"LIST_MEDIA_OBJECTS_COURSES",
|
|
@@ -9,7 +9,7 @@ module LMSGraphQL
|
|
|
9
9
|
argument :group_id, ID, required: true
|
|
10
10
|
argument :sort, String, required: false
|
|
11
11
|
argument :order, String, required: false
|
|
12
|
-
argument :exclude, String, required: false
|
|
12
|
+
argument :exclude, [String], required: false
|
|
13
13
|
def resolve(group_id:, sort: nil, order: nil, exclude: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("LIST_MEDIA_OBJECTS_GROUPS").proxy(
|
|
15
15
|
"LIST_MEDIA_OBJECTS_GROUPS",
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :sort, String, required: false
|
|
10
10
|
argument :order, String, required: false
|
|
11
|
-
argument :exclude, String, required: false
|
|
11
|
+
argument :exclude, [String], required: false
|
|
12
12
|
def resolve(sort: nil, order: nil, exclude: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_MEDIA_OBJECTS_MEDIA_OBJECTS").proxy(
|
|
14
14
|
"LIST_MEDIA_OBJECTS_MEDIA_OBJECTS",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasMediaTrack], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :media_object_id, ID, required: true
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
def resolve(media_object_id:, include: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_MEDIA_TRACKS_FOR_MEDIA_OBJECT").proxy(
|
|
13
13
|
"LIST_MEDIA_TRACKS_FOR_MEDIA_OBJECT",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasCollaborator], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :id, ID, required: true
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
def resolve(id:, include: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_MEMBERS_OF_COLLABORATION").proxy(
|
|
13
13
|
"LIST_MEMBERS_OF_COLLABORATION",
|
|
@@ -7,8 +7,8 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasAssignment], 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 :filter, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
|
+
argument :filter, [String], required: false
|
|
12
12
|
argument :course_ids, [ID], required: false
|
|
13
13
|
def resolve(user_id:, include: nil, filter: nil, course_ids: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("LIST_MISSING_SUBMISSIONS").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 :module_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 :student_id, ID, required: false
|
|
14
14
|
def resolve(course_id:, module_id:, include: nil, search_term: nil, student_id: nil, get_all: false)
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasModule], 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 :student_id, ID, required: false
|
|
13
13
|
def resolve(course_id:, include: nil, search_term: nil, student_id: nil, get_all: false)
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasUser], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :user_id, ID, required: true
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
def resolve(user_id:, include: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_OBSERVEES").proxy(
|
|
13
13
|
"LIST_OBSERVEES",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasUser], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :user_id, ID, required: true
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
def resolve(user_id:, include: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_OBSERVERS").proxy(
|
|
13
13
|
"LIST_OBSERVERS",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type Boolean, null: false
|
|
8
8
|
argument :start_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
9
9
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
10
|
-
argument :context_codes, String, required: false
|
|
10
|
+
argument :context_codes, [String], required: false
|
|
11
11
|
argument :filter, String, required: false
|
|
12
12
|
def resolve(start_date: nil, end_date: nil, context_codes: nil, filter: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_PLANNER_ITEMS_PLANNER").proxy(
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :user_id, ID, required: true
|
|
9
9
|
argument :start_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
10
10
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
11
|
-
argument :context_codes, String, required: false
|
|
11
|
+
argument :context_codes, [String], required: false
|
|
12
12
|
argument :filter, String, required: false
|
|
13
13
|
def resolve(user_id:, start_date: nil, end_date: nil, context_codes: nil, filter: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("LIST_PLANNER_ITEMS_USERS").proxy(
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :start_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
10
10
|
argument :end_date, LMSGraphQL::Types::DateTimeType, required: false
|
|
11
|
-
argument :context_codes, String, required: false
|
|
11
|
+
argument :context_codes, [String], required: false
|
|
12
12
|
def resolve(start_date: nil, end_date: nil, context_codes: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_PLANNER_NOTES").proxy(
|
|
14
14
|
"LIST_PLANNER_NOTES",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasRole], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :account_id, ID, required: true
|
|
10
|
-
argument :state, String, required: false
|
|
10
|
+
argument :state, [String], required: false
|
|
11
11
|
argument :show_inherited, Boolean, required: false
|
|
12
12
|
def resolve(account_id:, state: nil, show_inherited: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("LIST_ROLES").proxy(
|
|
@@ -18,7 +18,7 @@ module LMSGraphQL
|
|
|
18
18
|
argument :state_based_on_date, Boolean, required: false
|
|
19
19
|
argument :order, String, required: false
|
|
20
20
|
argument :order_direction, String, required: false
|
|
21
|
-
argument :include, String, required: false
|
|
21
|
+
argument :include, [String], required: false
|
|
22
22
|
def resolve(course_id:, student_ids: nil, assignment_ids: nil, grouped: nil, post_to_sis: nil, submitted_since: nil, graded_since: nil, grading_period_id: nil, workflow_state: nil, enrollment_state: nil, state_based_on_date: nil, order: nil, order_direction: nil, include: nil, get_all: false)
|
|
23
23
|
result = context[:canvas_api].call("LIST_SUBMISSIONS_FOR_MULTIPLE_ASSIGNMENTS_COURSES").proxy(
|
|
24
24
|
"LIST_SUBMISSIONS_FOR_MULTIPLE_ASSIGNMENTS_COURSES",
|
|
@@ -18,7 +18,7 @@ module LMSGraphQL
|
|
|
18
18
|
argument :state_based_on_date, Boolean, required: false
|
|
19
19
|
argument :order, String, required: false
|
|
20
20
|
argument :order_direction, String, required: false
|
|
21
|
-
argument :include, String, required: false
|
|
21
|
+
argument :include, [String], required: false
|
|
22
22
|
def resolve(section_id:, student_ids: nil, assignment_ids: nil, grouped: nil, post_to_sis: nil, submitted_since: nil, graded_since: nil, grading_period_id: nil, workflow_state: nil, enrollment_state: nil, state_based_on_date: nil, order: nil, order_direction: nil, include: nil, get_all: false)
|
|
23
23
|
result = context[:canvas_api].call("LIST_SUBMISSIONS_FOR_MULTIPLE_ASSIGNMENTS_SECTIONS").proxy(
|
|
24
24
|
"LIST_SUBMISSIONS_FOR_MULTIPLE_ASSIGNMENTS_SECTIONS",
|
|
@@ -5,7 +5,7 @@ module LMSGraphQL
|
|
|
5
5
|
module Canvas
|
|
6
6
|
class ListTodoItem < 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_TODO_ITEMS").proxy(
|
|
11
11
|
"LIST_TODO_ITEMS",
|
|
@@ -9,13 +9,13 @@ module LMSGraphQL
|
|
|
9
9
|
argument :course_id, ID, required: true
|
|
10
10
|
argument :search_term, String, required: false
|
|
11
11
|
argument :sort, String, required: false
|
|
12
|
-
argument :enrollment_type, String, required: false
|
|
12
|
+
argument :enrollment_type, [String], required: false
|
|
13
13
|
argument :enrollment_role, String, required: false
|
|
14
14
|
argument :enrollment_role_id, ID, required: false
|
|
15
|
-
argument :include, String, required: false
|
|
15
|
+
argument :include, [String], required: false
|
|
16
16
|
argument :user_id, ID, required: false
|
|
17
17
|
argument :user_ids, [ID], required: false
|
|
18
|
-
argument :enrollment_state, String, required: false
|
|
18
|
+
argument :enrollment_state, [String], required: false
|
|
19
19
|
def resolve(course_id:, search_term: nil, sort: nil, enrollment_type: nil, enrollment_role: nil, enrollment_role_id: nil, include: nil, user_id: nil, user_ids: nil, enrollment_state: nil, get_all: false)
|
|
20
20
|
result = context[:canvas_api].call("LIST_USERS_IN_COURSE_SEARCH_USERS").proxy(
|
|
21
21
|
"LIST_USERS_IN_COURSE_SEARCH_USERS",
|
|
@@ -9,13 +9,13 @@ module LMSGraphQL
|
|
|
9
9
|
argument :course_id, ID, required: true
|
|
10
10
|
argument :search_term, String, required: false
|
|
11
11
|
argument :sort, String, required: false
|
|
12
|
-
argument :enrollment_type, String, required: false
|
|
12
|
+
argument :enrollment_type, [String], required: false
|
|
13
13
|
argument :enrollment_role, String, required: false
|
|
14
14
|
argument :enrollment_role_id, ID, required: false
|
|
15
|
-
argument :include, String, required: false
|
|
15
|
+
argument :include, [String], required: false
|
|
16
16
|
argument :user_id, ID, required: false
|
|
17
17
|
argument :user_ids, [ID], required: false
|
|
18
|
-
argument :enrollment_state, String, required: false
|
|
18
|
+
argument :enrollment_state, [String], required: false
|
|
19
19
|
def resolve(course_id:, search_term: nil, sort: nil, enrollment_type: nil, enrollment_role: nil, enrollment_role_id: nil, include: nil, user_id: nil, user_ids: nil, enrollment_state: nil, get_all: false)
|
|
20
20
|
result = context[:canvas_api].call("LIST_USERS_IN_COURSE_USERS").proxy(
|
|
21
21
|
"LIST_USERS_IN_COURSE_USERS",
|
|
@@ -11,8 +11,8 @@ module LMSGraphQL
|
|
|
11
11
|
argument :enrollment_role_id, ID, required: false
|
|
12
12
|
argument :enrollment_state, String, required: false
|
|
13
13
|
argument :exclude_blueprint_courses, Boolean, required: false
|
|
14
|
-
argument :include, String, required: false
|
|
15
|
-
argument :state, String, required: false
|
|
14
|
+
argument :include, [String], required: false
|
|
15
|
+
argument :state, [String], required: false
|
|
16
16
|
def resolve(enrollment_type: nil, enrollment_role: nil, enrollment_role_id: nil, enrollment_state: nil, exclude_blueprint_courses: nil, include: nil, state: nil, get_all: false)
|
|
17
17
|
result = context[:canvas_api].call("LIST_YOUR_COURSES").proxy(
|
|
18
18
|
"LIST_YOUR_COURSES",
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type [LMSGraphQL::Types::Canvas::CanvasGroup], null: false
|
|
8
8
|
argument :get_all, Boolean, required: false
|
|
9
9
|
argument :context_type, String, required: false
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
def resolve(context_type: nil, include: nil, get_all: false)
|
|
12
12
|
result = context[:canvas_api].call("LIST_YOUR_GROUPS").proxy(
|
|
13
13
|
"LIST_YOUR_GROUPS",
|
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
|
6
6
|
class Permission < CanvasBaseResolver
|
|
7
7
|
type Boolean, null: false
|
|
8
8
|
argument :account_id, ID, required: true
|
|
9
|
-
argument :permissions, String, required: false
|
|
9
|
+
argument :permissions, [String], required: false
|
|
10
10
|
def resolve(account_id:, permissions: nil, get_all: false)
|
|
11
11
|
result = context[:canvas_api].call("PERMISSIONS").proxy(
|
|
12
12
|
"PERMISSIONS",
|
data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_classic_quizzes.rb
CHANGED
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
|
6
6
|
class RetrieveAssignmentOverriddenDatesForClassicQuiz < CanvasBaseResolver
|
|
7
7
|
type LMSGraphQL::Types::Canvas::CanvasQuizAssignmentOverrideSetContainer, null: false
|
|
8
8
|
argument :course_id, ID, required: true
|
|
9
|
-
argument :quiz_assignment_overrides_0_quiz_ids, Int, required: false
|
|
9
|
+
argument :quiz_assignment_overrides_0_quiz_ids, [Int], required: false
|
|
10
10
|
def resolve(course_id:, quiz_assignment_overrides_0_quiz_ids: nil, get_all: false)
|
|
11
11
|
result = context[:canvas_api].call("RETRIEVE_ASSIGNMENT_OVERRIDDEN_DATES_FOR_CLASSIC_QUIZZES").proxy(
|
|
12
12
|
"RETRIEVE_ASSIGNMENT_OVERRIDDEN_DATES_FOR_CLASSIC_QUIZZES",
|
data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_new_quizzes.rb
CHANGED
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
|
6
6
|
class RetrieveAssignmentOverriddenDatesForNewQuiz < CanvasBaseResolver
|
|
7
7
|
type LMSGraphQL::Types::Canvas::CanvasQuizAssignmentOverrideSetContainer, null: false
|
|
8
8
|
argument :course_id, ID, required: true
|
|
9
|
-
argument :quiz_assignment_overrides_0_quiz_ids, Int, required: false
|
|
9
|
+
argument :quiz_assignment_overrides_0_quiz_ids, [Int], required: false
|
|
10
10
|
def resolve(course_id:, quiz_assignment_overrides_0_quiz_ids: nil, get_all: false)
|
|
11
11
|
result = context[:canvas_api].call("RETRIEVE_ASSIGNMENT_OVERRIDDEN_DATES_FOR_NEW_QUIZZES").proxy(
|
|
12
12
|
"RETRIEVE_ASSIGNMENT_OVERRIDDEN_DATES_FOR_NEW_QUIZZES",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require_relative "../canvas_base_resolver"
|
|
2
|
+
|
|
3
|
+
module LMSGraphQL
|
|
4
|
+
module Resolvers
|
|
5
|
+
module Canvas
|
|
6
|
+
class Setting < CanvasBaseResolver
|
|
7
|
+
type Boolean, null: false
|
|
8
|
+
argument :account_id, ID, required: true
|
|
9
|
+
def resolve(account_id:, get_all: false)
|
|
10
|
+
result = context[:canvas_api].call("SETTINGS").proxy(
|
|
11
|
+
"SETTINGS",
|
|
12
|
+
{
|
|
13
|
+
"account_id": account_id },
|
|
14
|
+
nil,
|
|
15
|
+
get_all,
|
|
16
|
+
)
|
|
17
|
+
get_all ? result : result.parsed_response
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -7,7 +7,7 @@ module LMSGraphQL
|
|
|
7
7
|
type LMSGraphQL::Types::Canvas::CanvasModule, null: false
|
|
8
8
|
argument :course_id, ID, required: true
|
|
9
9
|
argument :id, ID, required: true
|
|
10
|
-
argument :include, String, required: false
|
|
10
|
+
argument :include, [String], required: false
|
|
11
11
|
argument :student_id, ID, required: false
|
|
12
12
|
def resolve(course_id:, id:, include: nil, student_id: nil, get_all: false)
|
|
13
13
|
result = context[:canvas_api].call("SHOW_MODULE").proxy(
|
|
@@ -8,7 +8,7 @@ module LMSGraphQL
|
|
|
8
8
|
argument :course_id, ID, required: true
|
|
9
9
|
argument :module_id, ID, required: true
|
|
10
10
|
argument :id, ID, required: true
|
|
11
|
-
argument :include, String, required: false
|
|
11
|
+
argument :include, [String], required: false
|
|
12
12
|
argument :student_id, ID, required: false
|
|
13
13
|
def resolve(course_id:, module_id:, id:, include: nil, student_id: nil, get_all: false)
|
|
14
14
|
result = context[:canvas_api].call("SHOW_MODULE_ITEM").proxy(
|
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
|
6
6
|
class ShowUserDetail < CanvasBaseResolver
|
|
7
7
|
type LMSGraphQL::Types::Canvas::CanvasUser, null: false
|
|
8
8
|
argument :id, ID, required: true
|
|
9
|
-
argument :include, String, required: false
|
|
9
|
+
argument :include, [String], required: false
|
|
10
10
|
def resolve(id:, include: nil, get_all: false)
|
|
11
11
|
result = context[:canvas_api].call("SHOW_USER_DETAILS").proxy(
|
|
12
12
|
"SHOW_USER_DETAILS",
|
|
@@ -7,16 +7,22 @@ module LMSGraphQL
|
|
|
7
7
|
type Boolean, null: false
|
|
8
8
|
argument :id, ID, required: true
|
|
9
9
|
argument :manual_mark_as_read, Boolean, required: false
|
|
10
|
+
argument :release_notes_badge_disabled, Boolean, required: false
|
|
10
11
|
argument :collapse_global_nav, Boolean, required: false
|
|
11
12
|
argument :hide_dashcard_color_overlays, Boolean, required: false
|
|
12
|
-
|
|
13
|
+
argument :comment_library_suggestions_enabled, Boolean, required: false
|
|
14
|
+
argument :elementary_dashboard_disabled, Boolean, required: false
|
|
15
|
+
def resolve(id:, manual_mark_as_read: nil, release_notes_badge_disabled: nil, collapse_global_nav: nil, hide_dashcard_color_overlays: nil, comment_library_suggestions_enabled: nil, elementary_dashboard_disabled: nil, get_all: false)
|
|
13
16
|
result = context[:canvas_api].call("UPDATE_USER_SETTINGS").proxy(
|
|
14
17
|
"UPDATE_USER_SETTINGS",
|
|
15
18
|
{
|
|
16
19
|
"id": id,
|
|
17
20
|
"manual_mark_as_read": manual_mark_as_read,
|
|
21
|
+
"release_notes_badge_disabled": release_notes_badge_disabled,
|
|
18
22
|
"collapse_global_nav": collapse_global_nav,
|
|
19
|
-
"hide_dashcard_color_overlays": hide_dashcard_color_overlays
|
|
23
|
+
"hide_dashcard_color_overlays": hide_dashcard_color_overlays,
|
|
24
|
+
"comment_library_suggestions_enabled": comment_library_suggestions_enabled,
|
|
25
|
+
"elementary_dashboard_disabled": elementary_dashboard_disabled },
|
|
20
26
|
nil,
|
|
21
27
|
get_all,
|
|
22
28
|
)
|
|
@@ -18,7 +18,7 @@ module LMSGraphQL
|
|
|
18
18
|
field :start_at, LMSGraphQL::Types::DateTimeType, "When to send out the notification..Example: 2013-08-28T23:59:00-06:00", null: true
|
|
19
19
|
field :end_at, LMSGraphQL::Types::DateTimeType, "When to expire the notification..Example: 2013-08-29T23:59:00-06:00", null: true
|
|
20
20
|
field :icon, AccountNotificationIconEnum, "The icon to display with the message. Defaults to warning..Example: information", null: true
|
|
21
|
-
field :roles, String, "(Deprecated) The roles to send the notification to. If roles is not passed it defaults to all roles.Example: StudentEnrollment", null: true
|
|
21
|
+
field :roles, [String], "(Deprecated) The roles to send the notification to. If roles is not passed it defaults to all roles.Example: StudentEnrollment", null: true
|
|
22
22
|
field :role_ids, [ID], "The roles to send the notification to. If roles is not passed it defaults to all roles.Example: 1", null: true
|
|
23
23
|
|
|
24
24
|
end
|
|
@@ -18,7 +18,7 @@ module LMSGraphQL
|
|
|
18
18
|
argument :start_at, LMSGraphQL::Types::DateTimeType, "When to send out the notification..Example: 2013-08-28T23:59:00-06:00", required: false
|
|
19
19
|
argument :end_at, LMSGraphQL::Types::DateTimeType, "When to expire the notification..Example: 2013-08-29T23:59:00-06:00", required: false
|
|
20
20
|
argument :icon, AccountNotificationIconEnum, "The icon to display with the message. Defaults to warning..Example: information", required: false
|
|
21
|
-
argument :roles, String, "(Deprecated) The roles to send the notification to. If roles is not passed it defaults to all roles.Example: StudentEnrollment", required: false
|
|
21
|
+
argument :roles, [String], "(Deprecated) The roles to send the notification to. If roles is not passed it defaults to all roles.Example: StudentEnrollment", required: false
|
|
22
22
|
argument :role_ids, [ID], "The roles to send the notification to. If roles is not passed it defaults to all roles.Example: 1", required: false
|
|
23
23
|
|
|
24
24
|
end
|
|
@@ -32,8 +32,8 @@ module LMSGraphQL
|
|
|
32
32
|
field :location_address, String, "The address of the appointment group's location.Example: Room 234", null: true
|
|
33
33
|
field :participant_count, Int, "The number of participant who have reserved slots (see include[] argument).Example: 2", null: true
|
|
34
34
|
field :reserved_times, [LMSGraphQL::Types::Canvas::CanvasAppointment], "The start and end times of slots reserved by the current user as well as the id of the calendar event for the reservation (see include[] argument).Example: {'id'=>987, 'start_at'=>'2012-07-20T15:00:00-06:00', 'end_at'=>'2012-07-20T15:00:00-06:00'}", null: true
|
|
35
|
-
field :context_codes, String, "The context codes (i.e. courses) this appointment group belongs to. Only people in these courses will be eligible to sign up..Example: course_123", null: true
|
|
36
|
-
field :sub_context_codes, Int, "The sub-context codes (i.e. course sections and group categories) this appointment group is restricted to.Example: course_section_234", null: true
|
|
35
|
+
field :context_codes, [String], "The context codes (i.e. courses) this appointment group belongs to. Only people in these courses will be eligible to sign up..Example: course_123", null: true
|
|
36
|
+
field :sub_context_codes, [Int], "The sub-context codes (i.e. course sections and group categories) this appointment group is restricted to.Example: course_section_234", null: true
|
|
37
37
|
field :workflow_state, AppointmentGroupWorkflowStateEnum, "Current state of the appointment group ('pending', 'active' or 'deleted'). 'pending' indicates that it has not been published yet and is invisible to participants..Example: active", null: true
|
|
38
38
|
field :requiring_action, Boolean, "Boolean indicating whether the current user needs to sign up for this appointment group (i.e. it's reservable and the min_appointments_per_participant limit has not been met by this user)..Example: true", null: true
|
|
39
39
|
field :appointments_count, Int, "Number of time slots in this appointment group.Example: 2", null: true
|
|
@@ -32,8 +32,8 @@ module LMSGraphQL
|
|
|
32
32
|
argument :location_address, String, "The address of the appointment group's location.Example: Room 234", required: false
|
|
33
33
|
argument :participant_count, Int, "The number of participant who have reserved slots (see include[] argument).Example: 2", required: false
|
|
34
34
|
argument :reserved_times, [LMSGraphQL::Types::Canvas::CanvasAppointmentInput], "The start and end times of slots reserved by the current user as well as the id of the calendar event for the reservation (see include[] argument).Example: {'id'=>987, 'start_at'=>'2012-07-20T15:00:00-06:00', 'end_at'=>'2012-07-20T15:00:00-06:00'}", required: false
|
|
35
|
-
argument :context_codes, String, "The context codes (i.e. courses) this appointment group belongs to. Only people in these courses will be eligible to sign up..Example: course_123", required: false
|
|
36
|
-
argument :sub_context_codes, Int, "The sub-context codes (i.e. course sections and group categories) this appointment group is restricted to.Example: course_section_234", required: false
|
|
35
|
+
argument :context_codes, [String], "The context codes (i.e. courses) this appointment group belongs to. Only people in these courses will be eligible to sign up..Example: course_123", required: false
|
|
36
|
+
argument :sub_context_codes, [Int], "The sub-context codes (i.e. course sections and group categories) this appointment group is restricted to.Example: course_section_234", required: false
|
|
37
37
|
argument :workflow_state, AppointmentGroupWorkflowStateEnum, "Current state of the appointment group ('pending', 'active' or 'deleted'). 'pending' indicates that it has not been published yet and is invisible to participants..Example: active", required: false
|
|
38
38
|
argument :requiring_action, Boolean, "Boolean indicating whether the current user needs to sign up for this appointment group (i.e. it's reservable and the min_appointments_per_participant limit has not been met by this user)..Example: true", required: false
|
|
39
39
|
argument :appointments_count, Int, "Number of time slots in this appointment group.Example: 2", required: false
|