lms-graphql-api 2.0.0 → 2.1.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/create_assignment.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_assignment_override.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/create_blackout_date_accounts.rb +31 -0
- data/lib/lms_graphql/mutations/canvas/create_blackout_date_courses.rb +31 -0
- data/lib/lms_graphql/mutations/canvas/create_calendar_event.rb +10 -6
- data/lib/lms_graphql/mutations/canvas/create_content_migration_accounts.rb +7 -5
- data/lib/lms_graphql/mutations/canvas/create_content_migration_courses.rb +7 -5
- data/lib/lms_graphql/mutations/canvas/create_content_migration_groups.rb +7 -5
- data/lib/lms_graphql/mutations/canvas/create_content_migration_users.rb +7 -5
- data/lib/lms_graphql/mutations/canvas/create_course_section.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_enrollment_term.rb +4 -4
- data/lib/lms_graphql/mutations/canvas/create_folder_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_folder_folders.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_folder_groups.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_folder_users.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_global_notification.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_jwt.rb +8 -2
- data/lib/lms_graphql/mutations/canvas/create_line_item.rb +5 -3
- data/lib/lms_graphql/mutations/canvas/create_module.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_module_item.rb +6 -2
- data/lib/lms_graphql/mutations/canvas/create_new_course.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_new_discussion_topic_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_new_discussion_topic_groups.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_or_update_events_directly_for_course_timetable.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/create_planner_note.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/create_quiz.rb +5 -5
- data/lib/lms_graphql/mutations/canvas/create_score.rb +15 -3
- data/lib/lms_graphql/mutations/canvas/cross_list_section.rb +5 -2
- data/lib/lms_graphql/mutations/canvas/de_cross_list_section.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/delete_blackout_date_accounts.rb +26 -0
- data/lib/lms_graphql/mutations/canvas/delete_blackout_date_courses.rb +26 -0
- data/lib/lms_graphql/mutations/canvas/delete_calendar_event.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/delete_page_courses.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/delete_page_groups.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/duplicate_page.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/edit_assignment.rb +7 -5
- data/lib/lms_graphql/mutations/canvas/edit_group.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/edit_section.rb +6 -4
- data/lib/lms_graphql/mutations/canvas/edit_user.rb +6 -2
- data/lib/lms_graphql/mutations/canvas/edit_user_BACKUP_72590.rb +53 -0
- data/lib/lms_graphql/mutations/canvas/edit_user_BASE_72590.rb +47 -0
- data/lib/lms_graphql/mutations/canvas/edit_user_LOCAL_72590.rb +53 -0
- data/lib/lms_graphql/mutations/canvas/edit_user_REMOTE_72590.rb +49 -0
- data/lib/lms_graphql/mutations/canvas/edit_user_login.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/enroll_user_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/enroll_user_sections.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_courses.rb +5 -1
- data/lib/lms_graphql/mutations/canvas/grade_or_comment_on_submission_sections.rb +5 -1
- data/lib/lms_graphql/mutations/canvas/mark_rubric_assessments_as_read_courses_rubric_assessments.rb +28 -0
- data/lib/lms_graphql/mutations/canvas/mark_rubric_assessments_as_read_courses_rubric_comments.rb +28 -0
- data/lib/lms_graphql/mutations/canvas/mark_rubric_assessments_as_read_sections_rubric_assessments.rb +28 -0
- data/lib/lms_graphql/mutations/canvas/mark_rubric_assessments_as_read_sections_rubric_comments.rb +28 -0
- data/lib/lms_graphql/mutations/canvas/mutations.rb +15 -2
- data/lib/lms_graphql/mutations/canvas/remove_quiz_migration_alert.rb +24 -0
- data/lib/lms_graphql/mutations/canvas/revert_to_revision_courses.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/revert_to_revision_groups.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/save_enabled_account_calendars.rb +22 -0
- data/lib/lms_graphql/mutations/canvas/self_register_user.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/start_report.rb +3 -1
- 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 +7 -1
- data/lib/lms_graphql/mutations/canvas/update_assignment_override.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_blackout_date_accounts.rb +33 -0
- data/lib/lms_graphql/mutations/canvas/update_blackout_date_courses.rb +33 -0
- data/lib/lms_graphql/mutations/canvas/update_calendar_event.rb +12 -6
- data/lib/lms_graphql/mutations/canvas/update_calendar_s_visibility.rb +27 -0
- data/lib/lms_graphql/mutations/canvas/update_course.rb +9 -5
- data/lib/lms_graphql/mutations/canvas/update_course_settings.rb +8 -2
- data/lib/lms_graphql/mutations/canvas/update_create_page_courses.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_create_page_groups.rb +3 -3
- data/lib/lms_graphql/mutations/canvas/update_enrollment_term.rb +8 -6
- data/lib/lms_graphql/mutations/canvas/update_file.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_folder.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_global_notification.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_line_item.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/update_list_of_blackout_dates.rb +27 -0
- data/lib/lms_graphql/mutations/canvas/update_many_calendars_visibility.rb +24 -0
- data/lib/lms_graphql/mutations/canvas/update_module.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_outcome.rb +4 -2
- data/lib/lms_graphql/mutations/canvas/update_planner_note.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_plannernote.rb +1 -1
- data/lib/lms_graphql/mutations/canvas/update_single_grading_period.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_topic_courses.rb +2 -2
- data/lib/lms_graphql/mutations/canvas/update_topic_groups.rb +2 -2
- data/lib/lms_graphql/mutations/canvas_base_mutation.rb +0 -1
- data/lib/lms_graphql/resolvers/canvas/advanced_query.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/count_of_all_visible_account_calendars.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/course_audit_log_query_by_account.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/course_audit_log_query_by_course.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/get_bulk_user_progress.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/get_file_courses.rb +6 -2
- data/lib/lms_graphql/resolvers/canvas/get_file_files.rb +6 -2
- data/lib/lms_graphql/resolvers/canvas/get_file_groups.rb +6 -2
- data/lib/lms_graphql/resolvers/canvas/get_file_users.rb +6 -2
- data/lib/lms_graphql/resolvers/canvas/get_ids_of_outcome_groups_created_after_successful_import_accounts.rb +24 -0
- data/lib/lms_graphql/resolvers/canvas/get_ids_of_outcome_groups_created_after_successful_import_courses.rb +24 -0
- data/lib/lms_graphql/resolvers/canvas/get_outcome_result_rollups.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/get_rubric_assessments_read_state_courses_rubric_assessments.rb +26 -0
- data/lib/lms_graphql/resolvers/canvas/get_rubric_assessments_read_state_courses_rubric_comments.rb +26 -0
- data/lib/lms_graphql/resolvers/canvas/get_rubric_assessments_read_state_sections_rubric_assessments.rb +26 -0
- data/lib/lms_graphql/resolvers/canvas/get_rubric_assessments_read_state_sections_rubric_comments.rb +26 -0
- data/lib/lms_graphql/resolvers/canvas/get_single_account_calendar.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/get_single_blackout_date_accounts.rb +24 -0
- data/lib/lms_graphql/resolvers/canvas/get_single_blackout_date_courses.rb +24 -0
- data/lib/lms_graphql/resolvers/canvas/get_sis_import_list.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/grade_change_log_query_by_course.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_active_courses_in_account.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_all_account_calendars.rb +27 -0
- data/lib/lms_graphql/resolvers/canvas/list_announcements.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_available_account_calendars.rb +23 -0
- data/lib/lms_graphql/resolvers/canvas/list_blackout_dates_accounts.rb +23 -0
- data/lib/lms_graphql/resolvers/canvas/list_blackout_dates_courses.rb +23 -0
- data/lib/lms_graphql/resolvers/canvas/list_calendar_events.rb +8 -4
- data/lib/lms_graphql/resolvers/canvas/list_calendar_events_for_user.rb +8 -4
- data/lib/lms_graphql/resolvers/canvas/list_line_items.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/list_of_commmessages_for_user.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_planner_items.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_planner_items_planner.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_planner_items_users.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_planner_notes.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_revisions_courses.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_revisions_groups.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_courses.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_submissions_for_multiple_assignments_sections.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/list_user_page_views.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/new_blackout_date_accounts.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/new_blackout_date_courses.rb +22 -0
- data/lib/lms_graphql/resolvers/canvas/query_by_account.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/query_by_assignment.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/query_by_grader.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/query_by_login.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/query_by_student.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/query_by_user.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/retrieve_assignments_enabled_for_grade_export_to_sis_accounts.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/retrieve_assignments_enabled_for_grade_export_to_sis_courses.rb +2 -2
- data/lib/lms_graphql/resolvers/canvas/show_line_item.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/show_outcome.rb +4 -2
- data/lib/lms_graphql/resolvers/canvas/show_page_courses.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/show_page_groups.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/show_revision_courses_latest.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/show_revision_courses_revision_id.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/show_revision_groups_latest.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/show_revision_groups_revision_id.rb +3 -3
- data/lib/lms_graphql/resolvers/canvas/translate_file_reference.rb +24 -0
- data/lib/lms_graphql/resolvers/canvas/update_user_settings.rb +3 -1
- data/lib/lms_graphql/resolvers/canvas_base_resolver.rb +0 -1
- data/lib/lms_graphql/types/canvas/account_calendar.rb +19 -0
- data/lib/lms_graphql/types/canvas/account_calendar_input.rb +19 -0
- data/lib/lms_graphql/types/canvas/account_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/account_notification.rb +2 -2
- data/lib/lms_graphql/types/canvas/account_notification_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/admin_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/anonymous_user_display.rb +1 -0
- data/lib/lms_graphql/types/canvas/anonymous_user_display_input.rb +3 -2
- data/lib/lms_graphql/types/canvas/answer_input.rb +16 -16
- data/lib/lms_graphql/types/canvas/appointment.rb +2 -2
- data/lib/lms_graphql/types/canvas/appointment_group.rb +4 -4
- data/lib/lms_graphql/types/canvas/appointment_group_input.rb +25 -25
- data/lib/lms_graphql/types/canvas/appointment_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/assessment_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/assignment.rb +10 -6
- data/lib/lms_graphql/types/canvas/assignment_date.rb +3 -3
- data/lib/lms_graphql/types/canvas/assignment_date_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/assignment_event.rb +6 -6
- data/lib/lms_graphql/types/canvas/assignment_event_input.rb +16 -16
- data/lib/lms_graphql/types/canvas/assignment_extension_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/assignment_group_attribute_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/assignment_group_input.rb +8 -8
- data/lib/lms_graphql/types/canvas/assignment_input.rb +74 -70
- data/lib/lms_graphql/types/canvas/assignment_override.rb +4 -4
- data/lib/lms_graphql/types/canvas/assignment_override_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/authentication_event.rb +1 -1
- data/lib/lms_graphql/types/canvas/authentication_event_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/authentication_provider_input.rb +20 -20
- data/lib/lms_graphql/types/canvas/avatar_input.rb +8 -8
- data/lib/lms_graphql/types/canvas/blackout_date.rb +19 -0
- data/lib/lms_graphql/types/canvas/blackout_date_input.rb +19 -0
- data/lib/lms_graphql/types/canvas/blueprint_migration.rb +4 -4
- data/lib/lms_graphql/types/canvas/blueprint_migration_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/blueprint_restriction_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/blueprint_subscription_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/blueprint_template.rb +1 -1
- data/lib/lms_graphql/types/canvas/blueprint_template_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/bookmark_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/calendar_event.rb +10 -6
- data/lib/lms_graphql/types/canvas/calendar_event_input.rb +37 -33
- data/lib/lms_graphql/types/canvas/calendar_link_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/change_record_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/collaboration.rb +2 -2
- data/lib/lms_graphql/types/canvas/collaboration_input.rb +14 -14
- data/lib/lms_graphql/types/canvas/collaborator_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/column_datum_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/comm_message.rb +2 -2
- data/lib/lms_graphql/types/canvas/comm_message_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/communication_channel_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/completion_requirement_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/conference.rb +2 -2
- data/lib/lms_graphql/types/canvas/conference_input.rb +17 -17
- data/lib/lms_graphql/types/canvas/conference_recording.rb +2 -2
- data/lib/lms_graphql/types/canvas/conference_recording_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/content_detail.rb +3 -3
- data/lib/lms_graphql/types/canvas/content_detail_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/content_export.rb +1 -1
- data/lib/lms_graphql/types/canvas/content_export_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/content_migration.rb +2 -2
- data/lib/lms_graphql/types/canvas/content_migration_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/content_share.rb +2 -2
- data/lib/lms_graphql/types/canvas/content_share_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/conversation.rb +1 -1
- data/lib/lms_graphql/types/canvas/conversation_input.rb +16 -16
- data/lib/lms_graphql/types/canvas/conversation_participant_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/course.rb +5 -4
- data/lib/lms_graphql/types/canvas/course_attribute_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/course_epub_export_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/course_event.rb +1 -1
- data/lib/lms_graphql/types/canvas/course_event_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/course_event_link_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/course_input.rb +51 -50
- data/lib/lms_graphql/types/canvas/course_nickname_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/course_progress.rb +1 -1
- data/lib/lms_graphql/types/canvas/course_progress_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/course_quiz_extension_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/created_event_datum.rb +2 -2
- data/lib/lms_graphql/types/canvas/created_event_datum_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/custom_column_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/day.rb +1 -1
- data/lib/lms_graphql/types/canvas/day_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/developer_key.rb +2 -2
- data/lib/lms_graphql/types/canvas/developer_key_input.rb +21 -21
- data/lib/lms_graphql/types/canvas/discussion_topic.rb +4 -4
- data/lib/lms_graphql/types/canvas/discussion_topic_input.rb +34 -34
- data/lib/lms_graphql/types/canvas/e_portfolio.rb +3 -3
- data/lib/lms_graphql/types/canvas/e_portfolio_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/e_portfolio_page.rb +2 -2
- data/lib/lms_graphql/types/canvas/e_portfolio_page_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/enrollment.rb +6 -6
- data/lib/lms_graphql/types/canvas/enrollment_input.rb +44 -44
- data/lib/lms_graphql/types/canvas/enrollment_term.rb +3 -2
- data/lib/lms_graphql/types/canvas/enrollment_term_input.rb +9 -8
- data/lib/lms_graphql/types/canvas/enrollment_terms_list_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/epub_export.rb +1 -1
- data/lib/lms_graphql/types/canvas/epub_export_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/error_report_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/exception_record_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/external_feed.rb +1 -1
- data/lib/lms_graphql/types/canvas/external_feed_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/external_tool_tag_attribute_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/favorite_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/feature.rb +1 -3
- data/lib/lms_graphql/types/canvas/feature_flag_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/feature_input.rb +8 -10
- data/lib/lms_graphql/types/canvas/federated_attribute_config_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/federated_attributes_config_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/file.rb +2 -2
- data/lib/lms_graphql/types/canvas/file_attachment_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/file_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/folder.rb +4 -4
- data/lib/lms_graphql/types/canvas/folder_input.rb +20 -20
- data/lib/lms_graphql/types/canvas/grade_change_event.rb +1 -1
- data/lib/lms_graphql/types/canvas/grade_change_event_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/grade_change_event_link_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/grade_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/grader_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/grading_period_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/grading_rule_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/grading_scheme_entry_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/grading_standard_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/group_category_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/group_input.rb +17 -17
- data/lib/lms_graphql/types/canvas/group_membership_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/help_link_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/history_entry.rb +1 -1
- data/lib/lms_graphql/types/canvas/history_entry_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/inst_access_token_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/jsonapi_pagination_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/jwt_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/late_policy.rb +2 -2
- data/lib/lms_graphql/types/canvas/late_policy_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/license_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/line_item.rb +2 -1
- data/lib/lms_graphql/types/canvas/line_item_input.rb +8 -7
- data/lib/lms_graphql/types/canvas/lock_info.rb +2 -2
- data/lib/lms_graphql/types/canvas/lock_info_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/lti_assignment.rb +1 -1
- data/lib/lms_graphql/types/canvas/lti_assignment_input.rb +8 -8
- data/lib/lms_graphql/types/canvas/media_comment_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/media_object_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/media_track_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/migration_issue.rb +2 -2
- data/lib/lms_graphql/types/canvas/migration_issue_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/migrator_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/module.rb +2 -2
- data/lib/lms_graphql/types/canvas/module_input.rb +14 -14
- data/lib/lms_graphql/types/canvas/module_item_input.rb +15 -15
- data/lib/lms_graphql/types/canvas/module_item_sequence_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/module_item_sequence_node_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/names_and_role_context_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/names_and_role_membership_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/names_and_role_message.rb +2 -2
- data/lib/lms_graphql/types/canvas/names_and_role_message_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/needs_grading_count_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/notification_preference_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/originality_report.rb +1 -1
- data/lib/lms_graphql/types/canvas/originality_report_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/outcome.rb +1 -0
- data/lib/lms_graphql/types/canvas/outcome_alignment_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/outcome_group_input.rb +12 -12
- data/lib/lms_graphql/types/canvas/outcome_import.rb +3 -3
- data/lib/lms_graphql/types/canvas/outcome_import_datum_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/outcome_import_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/outcome_input.rb +18 -17
- data/lib/lms_graphql/types/canvas/outcome_link_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/outcome_path_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/outcome_path_part_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/outcome_result.rb +1 -1
- data/lib/lms_graphql/types/canvas/outcome_result_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/outcome_rollup_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/outcome_rollup_link_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/outcome_rollup_score_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/outcome_rollup_score_link_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/page.rb +3 -2
- data/lib/lms_graphql/types/canvas/page_input.rb +14 -13
- data/lib/lms_graphql/types/canvas/page_revision.rb +1 -1
- data/lib/lms_graphql/types/canvas/page_revision_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/page_view.rb +1 -1
- data/lib/lms_graphql/types/canvas/page_view_input.rb +17 -17
- data/lib/lms_graphql/types/canvas/page_view_link_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/pairing_code_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/peer_review_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/planner_note.rb +1 -1
- data/lib/lms_graphql/types/canvas/planner_note_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/planner_override.rb +3 -3
- data/lib/lms_graphql/types/canvas/planner_override_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/poll_choice_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/poll_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/poll_session_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/poll_submission_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/proficiency_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/proficiency_rating_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/profile_input.rb +15 -15
- data/lib/lms_graphql/types/canvas/progress.rb +2 -2
- data/lib/lms_graphql/types/canvas/progress_input.rb +12 -12
- data/lib/lms_graphql/types/canvas/provisional_grade.rb +1 -1
- data/lib/lms_graphql/types/canvas/provisional_grade_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/query_type.rb +69 -9
- data/lib/lms_graphql/types/canvas/quiz.rb +5 -5
- data/lib/lms_graphql/types/canvas/quiz_assignment_override.rb +3 -3
- data/lib/lms_graphql/types/canvas/quiz_assignment_override_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/quiz_assignment_override_set_container_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_assignment_override_set_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/quiz_extension_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/quiz_group_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/quiz_input.rb +39 -39
- data/lib/lms_graphql/types/canvas/quiz_ip_filter_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/quiz_permission_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/quiz_question_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/quiz_report.rb +2 -2
- data/lib/lms_graphql/types/canvas/quiz_report_input.rb +13 -13
- data/lib/lms_graphql/types/canvas/quiz_statistic.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_statistic_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/quiz_statistics_answer_point_biserial_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/quiz_statistics_answer_statistic_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/quiz_statistics_link_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_statistics_question_statistic_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/quiz_statistics_submission_statistic_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/quiz_submission_event.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_submission_event_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/quiz_submission_input.rb +19 -19
- data/lib/lms_graphql/types/canvas/quiz_submission_question_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/quiz_submission_user_list_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/quiz_submission_user_list_metum_input.rb +1 -1
- data/lib/lms_graphql/types/canvas/report.rb +3 -3
- data/lib/lms_graphql/types/canvas/report_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/report_parameter.rb +2 -2
- data/lib/lms_graphql/types/canvas/report_parameter_input.rb +18 -18
- data/lib/lms_graphql/types/canvas/result_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/result_link_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/role_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/role_permission_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/rubric_assessment_input.rb +11 -11
- data/lib/lms_graphql/types/canvas/rubric_association_input.rb +10 -10
- data/lib/lms_graphql/types/canvas/rubric_criterion_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/rubric_criterium_input.rb +9 -9
- data/lib/lms_graphql/types/canvas/rubric_input.rb +12 -12
- data/lib/lms_graphql/types/canvas/rubric_rating_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/scope_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/score_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/score_statistic.rb +3 -0
- data/lib/lms_graphql/types/canvas/score_statistic_input.rb +6 -3
- data/lib/lms_graphql/types/canvas/section.rb +2 -2
- data/lib/lms_graphql/types/canvas/section_assignment_override_attribute.rb +3 -3
- data/lib/lms_graphql/types/canvas/section_assignment_override_attribute_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/section_attribute_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/section_input.rb +12 -12
- data/lib/lms_graphql/types/canvas/shared_brand_config.rb +2 -2
- data/lib/lms_graphql/types/canvas/shared_brand_config_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/sis_assignment.rb +4 -4
- data/lib/lms_graphql/types/canvas/sis_assignment_input.rb +15 -15
- data/lib/lms_graphql/types/canvas/sis_import.rb +5 -3
- data/lib/lms_graphql/types/canvas/sis_import_count_input.rb +16 -16
- data/lib/lms_graphql/types/canvas/sis_import_datum_input.rb +3 -3
- data/lib/lms_graphql/types/canvas/sis_import_error_input.rb +5 -5
- data/lib/lms_graphql/types/canvas/sis_import_input.rb +24 -22
- data/lib/lms_graphql/types/canvas/sis_import_statistic_input.rb +14 -14
- data/lib/lms_graphql/types/canvas/sso_setting_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/student_attribute_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/submission.rb +5 -4
- data/lib/lms_graphql/types/canvas/submission_comment.rb +2 -2
- data/lib/lms_graphql/types/canvas/submission_comment_input.rb +8 -8
- data/lib/lms_graphql/types/canvas/submission_history_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/submission_input.rb +31 -30
- data/lib/lms_graphql/types/canvas/submission_version.rb +4 -4
- data/lib/lms_graphql/types/canvas/submission_version_input.rb +23 -23
- data/lib/lms_graphql/types/canvas/tab_input.rb +7 -7
- data/lib/lms_graphql/types/canvas/term.rb +2 -2
- data/lib/lms_graphql/types/canvas/term_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/terms_of_service_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/tool_setting_input.rb +2 -2
- data/lib/lms_graphql/types/canvas/turnitin_setting_input.rb +8 -8
- data/lib/lms_graphql/types/canvas/updated_event_datum.rb +2 -2
- data/lib/lms_graphql/types/canvas/updated_event_datum_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/usage_right_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/user.rb +1 -0
- data/lib/lms_graphql/types/canvas/user_assignment_override_attribute.rb +3 -3
- data/lib/lms_graphql/types/canvas/user_assignment_override_attribute_input.rb +6 -6
- data/lib/lms_graphql/types/canvas/user_display_input.rb +4 -4
- data/lib/lms_graphql/types/canvas/user_input.rb +18 -17
- data/lib/lms_graphql/types/canvas_base_type.rb +0 -1
- data/lib/lms_graphql/types/canvas_bespoke/canvas_module_progress.rb +15 -0
- data/lib/lms_graphql/types/canvas_bespoke/canvas_module_user.rb +20 -0
- data/lib/lms_graphql/types/canvas_forward_declarations.rb +4 -0
- data/lib/lms_graphql/version.rb +1 -1
- metadata +47 -6
- data/lib/lms_graphql/types/date_time_type.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86246e6e5c63b95f1a88a147919a66876633e2a5d478a32e0eeb728c62591f18
|
4
|
+
data.tar.gz: cf3ae762f9d8d5cd5e636b500216cf41640a0005bd92413f6d554151b1635654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124486992a9fa618ca9ce641f776b061a6f07047ec908958f986fa072332a6fb178b1e4020f0d33c5403fcedf8745d48ecc4bc46be4863c59d80098b14b85b0c
|
7
|
+
data.tar.gz: 6658da40d266406642854a085d8c54f704986cec4089d6d6b1455377390eead59152b1fa07c33f4b67f87ec1ba13de5f3e72f0d8ca90c3214b33774d52c02796
|
@@ -22,9 +22,9 @@ module LMSGraphQL
|
|
22
22
|
argument :assignment_external_tool_tag_attributes, String, required: false
|
23
23
|
argument :assignment_points_possible, Float, required: false
|
24
24
|
argument :assignment_grading_type, String, required: false
|
25
|
-
argument :assignment_due_at,
|
26
|
-
argument :assignment_lock_at,
|
27
|
-
argument :assignment_unlock_at,
|
25
|
+
argument :assignment_due_at, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :assignment_lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :assignment_unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
28
28
|
argument :assignment_description, String, required: false
|
29
29
|
argument :assignment_assignment_group_id, Int, required: false
|
30
30
|
argument :assignment_assignment_overrides, [LMSGraphQL::Types::Canvas::CanvasAssignmentOverrideInput], required: false
|
@@ -10,9 +10,9 @@ module LMSGraphQL
|
|
10
10
|
argument :assignment_override_title, String, required: false
|
11
11
|
argument :assignment_override_group_id, Int, required: false
|
12
12
|
argument :assignment_override_course_section_id, Int, required: false
|
13
|
-
argument :assignment_override_due_at,
|
14
|
-
argument :assignment_override_unlock_at,
|
15
|
-
argument :assignment_override_lock_at,
|
13
|
+
argument :assignment_override_due_at, GraphQL::Types::ISO8601DateTime, required: false
|
14
|
+
argument :assignment_override_unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
15
|
+
argument :assignment_override_lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
16
16
|
|
17
17
|
|
18
18
|
field :assignment_override, LMSGraphQL::Types::Canvas::CanvasAssignmentOverride, null: false
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative "../canvas_base_mutation"
|
2
|
+
require_relative "../../types/canvas/blackout_date"
|
3
|
+
module LMSGraphQL
|
4
|
+
module Mutations
|
5
|
+
module Canvas
|
6
|
+
class CreateBlackoutDateAccount < BaseMutation
|
7
|
+
argument :account_id, ID, required: true
|
8
|
+
argument :start_date, GraphQL::Types::ISO8601DateTime, required: false
|
9
|
+
argument :end_date, GraphQL::Types::ISO8601DateTime, required: false
|
10
|
+
argument :event_title, String, required: false
|
11
|
+
|
12
|
+
|
13
|
+
field :blackout_date, LMSGraphQL::Types::Canvas::CanvasBlackoutDate, null: false
|
14
|
+
|
15
|
+
def resolve(account_id:, start_date: nil, end_date: nil, event_title: nil)
|
16
|
+
context[:canvas_api].call("CREATE_BLACKOUT_DATE_ACCOUNTS").proxy(
|
17
|
+
"CREATE_BLACKOUT_DATE_ACCOUNTS",
|
18
|
+
{
|
19
|
+
"account_id": account_id
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"start_date": start_date,
|
23
|
+
"end_date": end_date,
|
24
|
+
"event_title": event_title
|
25
|
+
},
|
26
|
+
).parsed_response
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative "../canvas_base_mutation"
|
2
|
+
require_relative "../../types/canvas/blackout_date"
|
3
|
+
module LMSGraphQL
|
4
|
+
module Mutations
|
5
|
+
module Canvas
|
6
|
+
class CreateBlackoutDateCourse < BaseMutation
|
7
|
+
argument :course_id, ID, required: true
|
8
|
+
argument :start_date, GraphQL::Types::ISO8601DateTime, required: false
|
9
|
+
argument :end_date, GraphQL::Types::ISO8601DateTime, required: false
|
10
|
+
argument :event_title, String, required: false
|
11
|
+
|
12
|
+
|
13
|
+
field :blackout_date, LMSGraphQL::Types::Canvas::CanvasBlackoutDate, null: false
|
14
|
+
|
15
|
+
def resolve(course_id:, start_date: nil, end_date: nil, event_title: nil)
|
16
|
+
context[:canvas_api].call("CREATE_BLACKOUT_DATE_COURSES").proxy(
|
17
|
+
"CREATE_BLACKOUT_DATE_COURSES",
|
18
|
+
{
|
19
|
+
"course_id": course_id
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"start_date": start_date,
|
23
|
+
"end_date": end_date,
|
24
|
+
"event_title": event_title
|
25
|
+
},
|
26
|
+
).parsed_response
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -7,24 +7,26 @@ module LMSGraphQL
|
|
7
7
|
argument :calendar_event_context_code, String, required: true
|
8
8
|
argument :calendar_event_title, String, required: false
|
9
9
|
argument :calendar_event_description, String, required: false
|
10
|
-
argument :calendar_event_start_at,
|
11
|
-
argument :calendar_event_end_at,
|
10
|
+
argument :calendar_event_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
11
|
+
argument :calendar_event_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
12
|
argument :calendar_event_location_name, String, required: false
|
13
13
|
argument :calendar_event_location_address, String, required: false
|
14
14
|
argument :calendar_event_time_zone_edited, String, required: false
|
15
15
|
argument :calendar_event_all_day, Boolean, required: false
|
16
|
-
argument :calendar_event_child_event_data_X_start_at,
|
17
|
-
argument :calendar_event_child_event_data_X_end_at,
|
16
|
+
argument :calendar_event_child_event_data_X_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
17
|
+
argument :calendar_event_child_event_data_X_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
18
18
|
argument :calendar_event_child_event_data_X_context_code, String, required: false
|
19
19
|
argument :calendar_event_duplicate_count, Float, required: false
|
20
20
|
argument :calendar_event_duplicate_interval, Float, required: false
|
21
21
|
argument :calendar_event_duplicate_frequency, String, required: false
|
22
22
|
argument :calendar_event_duplicate_append_iterator, Boolean, required: false
|
23
|
+
argument :calendar_event_rrule, String, required: false
|
24
|
+
argument :calendar_event_blackout_date, Boolean, required: false
|
23
25
|
|
24
26
|
|
25
27
|
field :return_value, Boolean, null: false
|
26
28
|
|
27
|
-
def resolve(calendar_event_context_code:, calendar_event_title: nil, calendar_event_description: nil, calendar_event_start_at: nil, calendar_event_end_at: nil, calendar_event_location_name: nil, calendar_event_location_address: nil, calendar_event_time_zone_edited: nil, calendar_event_all_day: nil, calendar_event_child_event_data_X_start_at: nil, calendar_event_child_event_data_X_end_at: nil, calendar_event_child_event_data_X_context_code: nil, calendar_event_duplicate_count: nil, calendar_event_duplicate_interval: nil, calendar_event_duplicate_frequency: nil, calendar_event_duplicate_append_iterator: nil)
|
29
|
+
def resolve(calendar_event_context_code:, calendar_event_title: nil, calendar_event_description: nil, calendar_event_start_at: nil, calendar_event_end_at: nil, calendar_event_location_name: nil, calendar_event_location_address: nil, calendar_event_time_zone_edited: nil, calendar_event_all_day: nil, calendar_event_child_event_data_X_start_at: nil, calendar_event_child_event_data_X_end_at: nil, calendar_event_child_event_data_X_context_code: nil, calendar_event_duplicate_count: nil, calendar_event_duplicate_interval: nil, calendar_event_duplicate_frequency: nil, calendar_event_duplicate_append_iterator: nil, calendar_event_rrule: nil, calendar_event_blackout_date: nil)
|
28
30
|
context[:canvas_api].call("CREATE_CALENDAR_EVENT").proxy(
|
29
31
|
"CREATE_CALENDAR_EVENT",
|
30
32
|
{},
|
@@ -44,7 +46,9 @@ module LMSGraphQL
|
|
44
46
|
"calendar_event[duplicate][count]": calendar_event_duplicate_count,
|
45
47
|
"calendar_event[duplicate][interval]": calendar_event_duplicate_interval,
|
46
48
|
"calendar_event[duplicate][frequency]": calendar_event_duplicate_frequency,
|
47
|
-
"calendar_event[duplicate][append_iterator]": calendar_event_duplicate_append_iterator
|
49
|
+
"calendar_event[duplicate][append_iterator]": calendar_event_duplicate_append_iterator,
|
50
|
+
"calendar_event[rrule]": calendar_event_rrule,
|
51
|
+
"calendar_event[blackout_date]": calendar_event_blackout_date
|
48
52
|
},
|
49
53
|
).parsed_response
|
50
54
|
end
|
@@ -19,11 +19,12 @@ module LMSGraphQL
|
|
19
19
|
argument :settings_insert_into_module_type, String, required: false
|
20
20
|
argument :settings_insert_into_module_position, Int, required: false
|
21
21
|
argument :settings_move_to_assignment_group_id, Int, required: false
|
22
|
+
argument :settings_importer_skips, [String], required: false
|
22
23
|
argument :date_shift_options_shift_dates, Boolean, required: false
|
23
|
-
argument :date_shift_options_old_start_date,
|
24
|
-
argument :date_shift_options_old_end_date,
|
25
|
-
argument :date_shift_options_new_start_date,
|
26
|
-
argument :date_shift_options_new_end_date,
|
24
|
+
argument :date_shift_options_old_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
25
|
+
argument :date_shift_options_old_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :date_shift_options_new_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :date_shift_options_new_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
28
|
argument :date_shift_options_day_substitutions_X, Int, required: false
|
28
29
|
argument :date_shift_options_remove_dates, Boolean, required: false
|
29
30
|
argument :selective_import, Boolean, required: false
|
@@ -32,7 +33,7 @@ module LMSGraphQL
|
|
32
33
|
|
33
34
|
field :content_migration, LMSGraphQL::Types::Canvas::CanvasContentMigration, null: false
|
34
35
|
|
35
|
-
def resolve(account_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
|
+
def resolve(account_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, settings_importer_skips: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
37
|
context[:canvas_api].call("CREATE_CONTENT_MIGRATION_ACCOUNTS").proxy(
|
37
38
|
"CREATE_CONTENT_MIGRATION_ACCOUNTS",
|
38
39
|
{
|
@@ -53,6 +54,7 @@ module LMSGraphQL
|
|
53
54
|
"settings[insert_into_module_type]": settings_insert_into_module_type,
|
54
55
|
"settings[insert_into_module_position]": settings_insert_into_module_position,
|
55
56
|
"settings[move_to_assignment_group_id]": settings_move_to_assignment_group_id,
|
57
|
+
"settings[importer_skips]": settings_importer_skips,
|
56
58
|
"date_shift_options[shift_dates]": date_shift_options_shift_dates,
|
57
59
|
"date_shift_options[old_start_date]": date_shift_options_old_start_date,
|
58
60
|
"date_shift_options[old_end_date]": date_shift_options_old_end_date,
|
@@ -19,11 +19,12 @@ module LMSGraphQL
|
|
19
19
|
argument :settings_insert_into_module_type, String, required: false
|
20
20
|
argument :settings_insert_into_module_position, Int, required: false
|
21
21
|
argument :settings_move_to_assignment_group_id, Int, required: false
|
22
|
+
argument :settings_importer_skips, [String], required: false
|
22
23
|
argument :date_shift_options_shift_dates, Boolean, required: false
|
23
|
-
argument :date_shift_options_old_start_date,
|
24
|
-
argument :date_shift_options_old_end_date,
|
25
|
-
argument :date_shift_options_new_start_date,
|
26
|
-
argument :date_shift_options_new_end_date,
|
24
|
+
argument :date_shift_options_old_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
25
|
+
argument :date_shift_options_old_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :date_shift_options_new_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :date_shift_options_new_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
28
|
argument :date_shift_options_day_substitutions_X, Int, required: false
|
28
29
|
argument :date_shift_options_remove_dates, Boolean, required: false
|
29
30
|
argument :selective_import, Boolean, required: false
|
@@ -32,7 +33,7 @@ module LMSGraphQL
|
|
32
33
|
|
33
34
|
field :content_migration, LMSGraphQL::Types::Canvas::CanvasContentMigration, null: false
|
34
35
|
|
35
|
-
def resolve(course_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
|
+
def resolve(course_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, settings_importer_skips: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
37
|
context[:canvas_api].call("CREATE_CONTENT_MIGRATION_COURSES").proxy(
|
37
38
|
"CREATE_CONTENT_MIGRATION_COURSES",
|
38
39
|
{
|
@@ -53,6 +54,7 @@ module LMSGraphQL
|
|
53
54
|
"settings[insert_into_module_type]": settings_insert_into_module_type,
|
54
55
|
"settings[insert_into_module_position]": settings_insert_into_module_position,
|
55
56
|
"settings[move_to_assignment_group_id]": settings_move_to_assignment_group_id,
|
57
|
+
"settings[importer_skips]": settings_importer_skips,
|
56
58
|
"date_shift_options[shift_dates]": date_shift_options_shift_dates,
|
57
59
|
"date_shift_options[old_start_date]": date_shift_options_old_start_date,
|
58
60
|
"date_shift_options[old_end_date]": date_shift_options_old_end_date,
|
@@ -19,11 +19,12 @@ module LMSGraphQL
|
|
19
19
|
argument :settings_insert_into_module_type, String, required: false
|
20
20
|
argument :settings_insert_into_module_position, Int, required: false
|
21
21
|
argument :settings_move_to_assignment_group_id, Int, required: false
|
22
|
+
argument :settings_importer_skips, [String], required: false
|
22
23
|
argument :date_shift_options_shift_dates, Boolean, required: false
|
23
|
-
argument :date_shift_options_old_start_date,
|
24
|
-
argument :date_shift_options_old_end_date,
|
25
|
-
argument :date_shift_options_new_start_date,
|
26
|
-
argument :date_shift_options_new_end_date,
|
24
|
+
argument :date_shift_options_old_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
25
|
+
argument :date_shift_options_old_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :date_shift_options_new_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :date_shift_options_new_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
28
|
argument :date_shift_options_day_substitutions_X, Int, required: false
|
28
29
|
argument :date_shift_options_remove_dates, Boolean, required: false
|
29
30
|
argument :selective_import, Boolean, required: false
|
@@ -32,7 +33,7 @@ module LMSGraphQL
|
|
32
33
|
|
33
34
|
field :content_migration, LMSGraphQL::Types::Canvas::CanvasContentMigration, null: false
|
34
35
|
|
35
|
-
def resolve(group_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
|
+
def resolve(group_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, settings_importer_skips: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
37
|
context[:canvas_api].call("CREATE_CONTENT_MIGRATION_GROUPS").proxy(
|
37
38
|
"CREATE_CONTENT_MIGRATION_GROUPS",
|
38
39
|
{
|
@@ -53,6 +54,7 @@ module LMSGraphQL
|
|
53
54
|
"settings[insert_into_module_type]": settings_insert_into_module_type,
|
54
55
|
"settings[insert_into_module_position]": settings_insert_into_module_position,
|
55
56
|
"settings[move_to_assignment_group_id]": settings_move_to_assignment_group_id,
|
57
|
+
"settings[importer_skips]": settings_importer_skips,
|
56
58
|
"date_shift_options[shift_dates]": date_shift_options_shift_dates,
|
57
59
|
"date_shift_options[old_start_date]": date_shift_options_old_start_date,
|
58
60
|
"date_shift_options[old_end_date]": date_shift_options_old_end_date,
|
@@ -19,11 +19,12 @@ module LMSGraphQL
|
|
19
19
|
argument :settings_insert_into_module_type, String, required: false
|
20
20
|
argument :settings_insert_into_module_position, Int, required: false
|
21
21
|
argument :settings_move_to_assignment_group_id, Int, required: false
|
22
|
+
argument :settings_importer_skips, [String], required: false
|
22
23
|
argument :date_shift_options_shift_dates, Boolean, required: false
|
23
|
-
argument :date_shift_options_old_start_date,
|
24
|
-
argument :date_shift_options_old_end_date,
|
25
|
-
argument :date_shift_options_new_start_date,
|
26
|
-
argument :date_shift_options_new_end_date,
|
24
|
+
argument :date_shift_options_old_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
25
|
+
argument :date_shift_options_old_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :date_shift_options_new_start_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :date_shift_options_new_end_date, GraphQL::Types::ISO8601DateTime, required: false
|
27
28
|
argument :date_shift_options_day_substitutions_X, Int, required: false
|
28
29
|
argument :date_shift_options_remove_dates, Boolean, required: false
|
29
30
|
argument :selective_import, Boolean, required: false
|
@@ -32,7 +33,7 @@ module LMSGraphQL
|
|
32
33
|
|
33
34
|
field :content_migration, LMSGraphQL::Types::Canvas::CanvasContentMigration, null: false
|
34
35
|
|
35
|
-
def resolve(user_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
|
+
def resolve(user_id:, migration_type:, pre_attachment_name: nil, pre_attachment_star: nil, settings_file_url: nil, settings_content_export_id: nil, settings_source_course_id: nil, settings_folder_id: nil, settings_overwrite_quizzes: nil, settings_question_bank_id: nil, settings_question_bank_name: nil, settings_insert_into_module_id: nil, settings_insert_into_module_type: nil, settings_insert_into_module_position: nil, settings_move_to_assignment_group_id: nil, settings_importer_skips: nil, date_shift_options_shift_dates: nil, date_shift_options_old_start_date: nil, date_shift_options_old_end_date: nil, date_shift_options_new_start_date: nil, date_shift_options_new_end_date: nil, date_shift_options_day_substitutions_X: nil, date_shift_options_remove_dates: nil, selective_import: nil, select: nil)
|
36
37
|
context[:canvas_api].call("CREATE_CONTENT_MIGRATION_USERS").proxy(
|
37
38
|
"CREATE_CONTENT_MIGRATION_USERS",
|
38
39
|
{
|
@@ -53,6 +54,7 @@ module LMSGraphQL
|
|
53
54
|
"settings[insert_into_module_type]": settings_insert_into_module_type,
|
54
55
|
"settings[insert_into_module_position]": settings_insert_into_module_position,
|
55
56
|
"settings[move_to_assignment_group_id]": settings_move_to_assignment_group_id,
|
57
|
+
"settings[importer_skips]": settings_importer_skips,
|
56
58
|
"date_shift_options[shift_dates]": date_shift_options_shift_dates,
|
57
59
|
"date_shift_options[old_start_date]": date_shift_options_old_start_date,
|
58
60
|
"date_shift_options[old_end_date]": date_shift_options_old_end_date,
|
@@ -8,8 +8,8 @@ module LMSGraphQL
|
|
8
8
|
argument :course_section_name, String, required: false
|
9
9
|
argument :course_section_sis_section_id, String, required: false
|
10
10
|
argument :course_section_integration_id, String, required: false
|
11
|
-
argument :course_section_start_at,
|
12
|
-
argument :course_section_end_at,
|
11
|
+
argument :course_section_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
|
+
argument :course_section_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :course_section_restrict_enrollments_to_section_dates, Boolean, required: false
|
14
14
|
argument :enable_sis_reactivation, Boolean, required: false
|
15
15
|
|
@@ -6,11 +6,11 @@ module LMSGraphQL
|
|
6
6
|
class CreateEnrollmentTerm < BaseMutation
|
7
7
|
argument :account_id, ID, required: true
|
8
8
|
argument :enrollment_term_name, String, required: false
|
9
|
-
argument :enrollment_term_start_at,
|
10
|
-
argument :enrollment_term_end_at,
|
9
|
+
argument :enrollment_term_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
10
|
+
argument :enrollment_term_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
11
11
|
argument :enrollment_term_sis_term_id, String, required: false
|
12
|
-
argument :enrollment_term_overrides_enrollment_type_start_at,
|
13
|
-
argument :enrollment_term_overrides_enrollment_type_end_at,
|
12
|
+
argument :enrollment_term_overrides_enrollment_type_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
|
+
argument :enrollment_term_overrides_enrollment_type_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
14
14
|
|
15
15
|
|
16
16
|
field :enrollment_term, LMSGraphQL::Types::Canvas::CanvasEnrollmentTerm, null: false
|
@@ -8,8 +8,8 @@ module LMSGraphQL
|
|
8
8
|
argument :name, String, required: true
|
9
9
|
argument :parent_folder_id, ID, required: false
|
10
10
|
argument :parent_folder_path, String, required: false
|
11
|
-
argument :lock_at,
|
12
|
-
argument :unlock_at,
|
11
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
|
+
argument :unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :locked, Boolean, required: false
|
14
14
|
argument :hidden, Boolean, required: false
|
15
15
|
argument :position, Int, required: false
|
@@ -8,8 +8,8 @@ module LMSGraphQL
|
|
8
8
|
argument :name, String, required: true
|
9
9
|
argument :parent_folder_id, ID, required: false
|
10
10
|
argument :parent_folder_path, String, required: false
|
11
|
-
argument :lock_at,
|
12
|
-
argument :unlock_at,
|
11
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
|
+
argument :unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :locked, Boolean, required: false
|
14
14
|
argument :hidden, Boolean, required: false
|
15
15
|
argument :position, Int, required: false
|
@@ -8,8 +8,8 @@ module LMSGraphQL
|
|
8
8
|
argument :name, String, required: true
|
9
9
|
argument :parent_folder_id, ID, required: false
|
10
10
|
argument :parent_folder_path, String, required: false
|
11
|
-
argument :lock_at,
|
12
|
-
argument :unlock_at,
|
11
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
|
+
argument :unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :locked, Boolean, required: false
|
14
14
|
argument :hidden, Boolean, required: false
|
15
15
|
argument :position, Int, required: false
|
@@ -8,8 +8,8 @@ module LMSGraphQL
|
|
8
8
|
argument :name, String, required: true
|
9
9
|
argument :parent_folder_id, ID, required: false
|
10
10
|
argument :parent_folder_path, String, required: false
|
11
|
-
argument :lock_at,
|
12
|
-
argument :unlock_at,
|
11
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
|
+
argument :unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :locked, Boolean, required: false
|
14
14
|
argument :hidden, Boolean, required: false
|
15
15
|
argument :position, Int, required: false
|
@@ -7,8 +7,8 @@ module LMSGraphQL
|
|
7
7
|
argument :account_id, ID, required: true
|
8
8
|
argument :account_notification_subject, String, required: true
|
9
9
|
argument :account_notification_message, String, required: true
|
10
|
-
argument :account_notification_start_at,
|
11
|
-
argument :account_notification_end_at,
|
10
|
+
argument :account_notification_start_at, GraphQL::Types::ISO8601DateTime, required: true
|
11
|
+
argument :account_notification_end_at, GraphQL::Types::ISO8601DateTime, required: true
|
12
12
|
argument :account_notification_icon, String, required: false
|
13
13
|
argument :account_notification_roles, [String], required: false
|
14
14
|
|
@@ -5,16 +5,22 @@ module LMSGraphQL
|
|
5
5
|
module Canvas
|
6
6
|
class CreateJwt < BaseMutation
|
7
7
|
argument :workflows, [String], required: false
|
8
|
+
argument :context_type, String, required: false
|
9
|
+
argument :context_id, ID, required: false
|
10
|
+
argument :context_uuid, String, required: false
|
8
11
|
|
9
12
|
|
10
13
|
field :jwt, LMSGraphQL::Types::Canvas::CanvasJWT, null: false
|
11
14
|
|
12
|
-
def resolve(workflows: nil)
|
15
|
+
def resolve(workflows: nil, context_type: nil, context_id: nil, context_uuid: nil)
|
13
16
|
context[:canvas_api].call("CREATE_JWT").proxy(
|
14
17
|
"CREATE_JWT",
|
15
18
|
{},
|
16
19
|
{
|
17
|
-
"workflows": workflows
|
20
|
+
"workflows": workflows,
|
21
|
+
"context_type": context_type,
|
22
|
+
"context_id": context_id,
|
23
|
+
"context_uuid": context_uuid
|
18
24
|
},
|
19
25
|
).parsed_response
|
20
26
|
end
|
@@ -10,12 +10,13 @@ module LMSGraphQL
|
|
10
10
|
argument :resourceId, String, required: false
|
11
11
|
argument :tag, String, required: false
|
12
12
|
argument :resourceLinkId, String, required: false
|
13
|
-
argument :
|
13
|
+
argument :endDateTime, String, required: false
|
14
|
+
argument :lti_submission_type, String, required: false
|
14
15
|
|
15
16
|
|
16
17
|
field :line_item, LMSGraphQL::Types::Canvas::CanvasLineItem, null: false
|
17
18
|
|
18
|
-
def resolve(course_id:, scoreMaximum:, label:, resourceId: nil, tag: nil, resourceLinkId: nil,
|
19
|
+
def resolve(course_id:, scoreMaximum:, label:, resourceId: nil, tag: nil, resourceLinkId: nil, endDateTime: nil, lti_submission_type: nil)
|
19
20
|
context[:canvas_api].call("CREATE_LINE_ITEM").proxy(
|
20
21
|
"CREATE_LINE_ITEM",
|
21
22
|
{
|
@@ -27,7 +28,8 @@ module LMSGraphQL
|
|
27
28
|
"resourceId": resourceId,
|
28
29
|
"tag": tag,
|
29
30
|
"resourceLinkId": resourceLinkId,
|
30
|
-
"
|
31
|
+
"endDateTime": endDateTime,
|
32
|
+
"https://canvas.instructure.com/lti/submission_type": lti_submission_type
|
31
33
|
},
|
32
34
|
).parsed_response
|
33
35
|
end
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
6
6
|
class CreateModule < BaseMutation
|
7
7
|
argument :course_id, ID, required: true
|
8
8
|
argument :module_name, String, required: true
|
9
|
-
argument :module_unlock_at,
|
9
|
+
argument :module_unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
10
10
|
argument :module_position, Int, required: false
|
11
11
|
argument :module_require_sequential_progress, Boolean, required: false
|
12
12
|
argument :module_prerequisite_module_ids, [String], required: false
|
@@ -16,11 +16,13 @@ module LMSGraphQL
|
|
16
16
|
argument :module_item_new_tab, Boolean, required: false
|
17
17
|
argument :module_item_completion_requirement_type, String, required: false
|
18
18
|
argument :module_item_completion_requirement_min_score, Int, required: false
|
19
|
+
argument :module_item_iframe_width, Int, required: false
|
20
|
+
argument :module_item_iframe_height, Int, required: false
|
19
21
|
|
20
22
|
|
21
23
|
field :module_item, LMSGraphQL::Types::Canvas::CanvasModuleItem, null: false
|
22
24
|
|
23
|
-
def resolve(course_id:, module_id:, module_item_title: nil, module_item_type:, module_item_content_id:, module_item_position: nil, module_item_indent: nil, module_item_page_url: nil, module_item_external_url: nil, module_item_new_tab: nil, module_item_completion_requirement_type: nil, module_item_completion_requirement_min_score: nil)
|
25
|
+
def resolve(course_id:, module_id:, module_item_title: nil, module_item_type:, module_item_content_id:, module_item_position: nil, module_item_indent: nil, module_item_page_url: nil, module_item_external_url: nil, module_item_new_tab: nil, module_item_completion_requirement_type: nil, module_item_completion_requirement_min_score: nil, module_item_iframe_width: nil, module_item_iframe_height: nil)
|
24
26
|
context[:canvas_api].call("CREATE_MODULE_ITEM").proxy(
|
25
27
|
"CREATE_MODULE_ITEM",
|
26
28
|
{
|
@@ -37,7 +39,9 @@ module LMSGraphQL
|
|
37
39
|
"module_item[external_url]": module_item_external_url,
|
38
40
|
"module_item[new_tab]": module_item_new_tab,
|
39
41
|
"module_item[completion_requirement][type]": module_item_completion_requirement_type,
|
40
|
-
"module_item[completion_requirement][min_score]": module_item_completion_requirement_min_score
|
42
|
+
"module_item[completion_requirement][min_score]": module_item_completion_requirement_min_score,
|
43
|
+
"module_item[iframe][width]": module_item_iframe_width,
|
44
|
+
"module_item[iframe][height]": module_item_iframe_height
|
41
45
|
},
|
42
46
|
).parsed_response
|
43
47
|
end
|
@@ -7,8 +7,8 @@ module LMSGraphQL
|
|
7
7
|
argument :account_id, ID, required: true
|
8
8
|
argument :course_name, String, required: false
|
9
9
|
argument :course_course_code, String, required: false
|
10
|
-
argument :course_start_at,
|
11
|
-
argument :course_end_at,
|
10
|
+
argument :course_start_at, GraphQL::Types::ISO8601DateTime, required: false
|
11
|
+
argument :course_end_at, GraphQL::Types::ISO8601DateTime, required: false
|
12
12
|
argument :course_license, String, required: false
|
13
13
|
argument :course_is_public, Boolean, required: false
|
14
14
|
argument :course_is_public_to_auth_users, Boolean, required: false
|
@@ -9,9 +9,9 @@ module LMSGraphQL
|
|
9
9
|
argument :message, String, required: false
|
10
10
|
argument :discussion_type, String, required: false
|
11
11
|
argument :published, Boolean, required: false
|
12
|
-
argument :delayed_post_at,
|
12
|
+
argument :delayed_post_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :allow_rating, Boolean, required: false
|
14
|
-
argument :lock_at,
|
14
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
15
15
|
argument :podcast_enabled, Boolean, required: false
|
16
16
|
argument :podcast_has_student_posts, Boolean, required: false
|
17
17
|
argument :require_initial_post, Boolean, required: false
|
@@ -9,9 +9,9 @@ module LMSGraphQL
|
|
9
9
|
argument :message, String, required: false
|
10
10
|
argument :discussion_type, String, required: false
|
11
11
|
argument :published, Boolean, required: false
|
12
|
-
argument :delayed_post_at,
|
12
|
+
argument :delayed_post_at, GraphQL::Types::ISO8601DateTime, required: false
|
13
13
|
argument :allow_rating, Boolean, required: false
|
14
|
-
argument :lock_at,
|
14
|
+
argument :lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
15
15
|
argument :podcast_enabled, Boolean, required: false
|
16
16
|
argument :podcast_has_student_posts, Boolean, required: false
|
17
17
|
argument :require_initial_post, Boolean, required: false
|
data/lib/lms_graphql/mutations/canvas/create_or_update_events_directly_for_course_timetable.rb
CHANGED
@@ -7,8 +7,8 @@ module LMSGraphQL
|
|
7
7
|
argument :course_id, ID, required: true
|
8
8
|
argument :course_section_id, ID, required: false
|
9
9
|
argument :events, [String], required: false
|
10
|
-
argument :events_start_at, [
|
11
|
-
argument :events_end_at, [
|
10
|
+
argument :events_start_at, [GraphQL::Types::ISO8601DateTime], required: false
|
11
|
+
argument :events_end_at, [GraphQL::Types::ISO8601DateTime], required: false
|
12
12
|
argument :events_location_name, [String], required: false
|
13
13
|
argument :events_code, [String], required: false
|
14
14
|
argument :events_title, [String], required: false
|
@@ -6,7 +6,7 @@ module LMSGraphQL
|
|
6
6
|
class CreatePlannerNote < BaseMutation
|
7
7
|
argument :title, String, required: false
|
8
8
|
argument :details, String, required: false
|
9
|
-
argument :todo_date,
|
9
|
+
argument :todo_date, GraphQL::Types::ISO8601DateTime, required: false
|
10
10
|
argument :course_id, ID, required: false
|
11
11
|
argument :linked_object_type, String, required: false
|
12
12
|
argument :linked_object_id, ID, required: false
|
@@ -14,17 +14,17 @@ module LMSGraphQL
|
|
14
14
|
argument :quiz_hide_results, String, required: false
|
15
15
|
argument :quiz_show_correct_answers, Boolean, required: false
|
16
16
|
argument :quiz_show_correct_answers_last_attempt, Boolean, required: false
|
17
|
-
argument :quiz_show_correct_answers_at,
|
18
|
-
argument :quiz_hide_correct_answers_at,
|
17
|
+
argument :quiz_show_correct_answers_at, GraphQL::Types::ISO8601DateTime, required: false
|
18
|
+
argument :quiz_hide_correct_answers_at, GraphQL::Types::ISO8601DateTime, required: false
|
19
19
|
argument :quiz_allowed_attempts, Int, required: false
|
20
20
|
argument :quiz_scoring_policy, String, required: false
|
21
21
|
argument :quiz_one_question_at_a_time, Boolean, required: false
|
22
22
|
argument :quiz_cant_go_back, Boolean, required: false
|
23
23
|
argument :quiz_access_code, String, required: false
|
24
24
|
argument :quiz_ip_filter, String, required: false
|
25
|
-
argument :quiz_due_at,
|
26
|
-
argument :quiz_lock_at,
|
27
|
-
argument :quiz_unlock_at,
|
25
|
+
argument :quiz_due_at, GraphQL::Types::ISO8601DateTime, required: false
|
26
|
+
argument :quiz_lock_at, GraphQL::Types::ISO8601DateTime, required: false
|
27
|
+
argument :quiz_unlock_at, GraphQL::Types::ISO8601DateTime, required: false
|
28
28
|
argument :quiz_published, Boolean, required: false
|
29
29
|
argument :quiz_one_time_results, Boolean, required: false
|
30
30
|
argument :quiz_only_visible_to_overrides, Boolean, required: false
|
@@ -13,12 +13,18 @@ module LMSGraphQL
|
|
13
13
|
argument :scoreGiven, Float, required: false
|
14
14
|
argument :scoreMaximum, Float, required: false
|
15
15
|
argument :comment, String, required: false
|
16
|
-
argument :
|
16
|
+
argument :lti_submission, String, required: false
|
17
|
+
argument :lti_submission_new_submission, Boolean, required: false
|
18
|
+
argument :lti_submission_prioritize_non_tool_grade, Boolean, required: false
|
19
|
+
argument :lti_submission_submission_type, String, required: false
|
20
|
+
argument :lti_submission_submission_data, String, required: false
|
21
|
+
argument :lti_submission_submitted_at, String, required: false
|
22
|
+
argument :lti_submission_content_items, [String], required: false
|
17
23
|
|
18
24
|
|
19
25
|
field :return_value, String, null: false
|
20
26
|
|
21
|
-
def resolve(course_id:, line_item_id:, userId:, activityProgress:, gradingProgress:, timestamp:, scoreGiven: nil, scoreMaximum: nil, comment: nil,
|
27
|
+
def resolve(course_id:, line_item_id:, userId:, activityProgress:, gradingProgress:, timestamp:, scoreGiven: nil, scoreMaximum: nil, comment: nil, lti_submission: nil, lti_submission_new_submission: nil, lti_submission_prioritize_non_tool_grade: nil, lti_submission_submission_type: nil, lti_submission_submission_data: nil, lti_submission_submitted_at: nil, lti_submission_content_items: nil)
|
22
28
|
context[:canvas_api].call("CREATE_SCORE").proxy(
|
23
29
|
"CREATE_SCORE",
|
24
30
|
{
|
@@ -33,7 +39,13 @@ module LMSGraphQL
|
|
33
39
|
"scoreGiven": scoreGiven,
|
34
40
|
"scoreMaximum": scoreMaximum,
|
35
41
|
"comment": comment,
|
36
|
-
"https://canvas.instructure.com/lti/submission":
|
42
|
+
"https://canvas.instructure.com/lti/submission": lti_submission,
|
43
|
+
"https://canvas.instructure.com/lti/submission[new_submission]": lti_submission_new_submission,
|
44
|
+
"https://canvas.instructure.com/lti/submission[prioritize_non_tool_grade]": lti_submission_prioritize_non_tool_grade,
|
45
|
+
"https://canvas.instructure.com/lti/submission[submission_type]": lti_submission_submission_type,
|
46
|
+
"https://canvas.instructure.com/lti/submission[submission_data]": lti_submission_submission_data,
|
47
|
+
"https://canvas.instructure.com/lti/submission[submitted_at]": lti_submission_submitted_at,
|
48
|
+
"https://canvas.instructure.com/lti/submission[content_items]": lti_submission_content_items
|
37
49
|
},
|
38
50
|
).parsed_response
|
39
51
|
end
|