lms-graphql-api 1.1.1 → 1.2.1

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.
Files changed (173) hide show
  1. checksums.yaml +5 -5
  2. data/lib/lms_graphql/mutations/canvas/add_allowed_domain_to_account.rb +24 -0
  3. data/lib/lms_graphql/mutations/canvas/add_multiple_allowed_domains_to_account.rb +24 -0
  4. data/lib/lms_graphql/mutations/canvas/add_users_to_content_share.rb +26 -0
  5. data/lib/lms_graphql/mutations/canvas/begin_migration_to_push_to_associated_courses.rb +4 -2
  6. data/lib/lms_graphql/mutations/canvas/bulk_update_assignment_dates.rb +21 -0
  7. data/lib/lms_graphql/mutations/canvas/confirm_image_selection.rb +21 -0
  8. data/lib/lms_graphql/mutations/canvas/create_assignment.rb +13 -3
  9. data/lib/lms_graphql/mutations/canvas/create_content_migration_accounts.rb +16 -2
  10. data/lib/lms_graphql/mutations/canvas/create_content_migration_courses.rb +16 -2
  11. data/lib/lms_graphql/mutations/canvas/create_content_migration_groups.rb +16 -2
  12. data/lib/lms_graphql/mutations/canvas/create_content_migration_users.rb +16 -2
  13. data/lib/lms_graphql/mutations/canvas/create_content_share.rb +28 -0
  14. data/lib/lms_graphql/mutations/canvas/create_external_tool_accounts.rb +6 -2
  15. data/lib/lms_graphql/mutations/canvas/create_external_tool_courses.rb +6 -2
  16. data/lib/lms_graphql/mutations/canvas/create_line_item.rb +34 -0
  17. data/lib/lms_graphql/mutations/canvas/create_new_course.rb +3 -1
  18. data/lib/lms_graphql/mutations/canvas/create_observer_pairing_code.rb +21 -0
  19. data/lib/lms_graphql/mutations/canvas/create_originality_report.rb +6 -2
  20. data/lib/lms_graphql/mutations/canvas/create_rubricassociation.rb +38 -0
  21. data/lib/lms_graphql/mutations/canvas/create_score.rb +40 -0
  22. data/lib/lms_graphql/mutations/canvas/create_single_rubric_assessment.rb +32 -0
  23. data/lib/lms_graphql/mutations/canvas/create_user.rb +6 -2
  24. data/lib/lms_graphql/mutations/canvas/create_webhook_subscription.rb +3 -3
  25. data/lib/lms_graphql/mutations/canvas/delete_line_item.rb +23 -0
  26. data/lib/lms_graphql/mutations/canvas/delete_rubricassociation.rb +23 -0
  27. data/lib/lms_graphql/mutations/canvas/delete_single_rubric.rb +23 -0
  28. data/lib/lms_graphql/mutations/canvas/delete_single_rubric_assessment.rb +25 -0
  29. data/lib/lms_graphql/mutations/canvas/deprecated_self_register_user.rb +42 -0
  30. data/lib/lms_graphql/mutations/canvas/edit_assignment.rb +15 -3
  31. data/lib/lms_graphql/mutations/canvas/edit_originality_report_files.rb +4 -2
  32. data/lib/lms_graphql/mutations/canvas/edit_originality_report_submissions.rb +4 -2
  33. data/lib/lms_graphql/mutations/canvas/edit_user_login.rb +4 -2
  34. data/lib/lms_graphql/mutations/canvas/enroll_user_courses.rb +5 -1
  35. data/lib/lms_graphql/mutations/canvas/enroll_user_sections.rb +5 -1
  36. data/lib/lms_graphql/mutations/canvas/import_sis_data.rb +4 -2
  37. data/lib/lms_graphql/mutations/canvas/lock_or_unlock_current_csp_settings_for_sub_accounts_and_courses.rb +24 -0
  38. data/lib/lms_graphql/mutations/canvas/mutations.rb +27 -4
  39. data/lib/lms_graphql/mutations/canvas/remove_content_share.rb +23 -0
  40. data/lib/lms_graphql/mutations/canvas/remove_domain_from_account.rb +23 -0
  41. data/lib/lms_graphql/mutations/canvas/reset_link_verifier.rb +21 -0
  42. data/lib/lms_graphql/mutations/canvas/submit_assignment_courses.rb +6 -2
  43. data/lib/lms_graphql/mutations/canvas/submit_assignment_sections.rb +6 -2
  44. data/lib/lms_graphql/mutations/canvas/update_account.rb +5 -1
  45. data/lib/lms_graphql/mutations/canvas/update_content_share.rb +26 -0
  46. data/lib/lms_graphql/mutations/canvas/update_course.rb +5 -1
  47. data/lib/lms_graphql/mutations/canvas/update_course_settings.rb +10 -2
  48. data/lib/lms_graphql/mutations/canvas/update_line_item.rb +32 -0
  49. data/lib/lms_graphql/mutations/canvas/update_media_object.rb +24 -0
  50. data/lib/lms_graphql/mutations/canvas/update_media_tracks.rb +24 -0
  51. data/lib/lms_graphql/mutations/canvas/update_public_jwk.rb +21 -0
  52. data/lib/lms_graphql/mutations/canvas/update_rubricassociation.rb +40 -0
  53. data/lib/lms_graphql/mutations/canvas/update_single_rubric_assessment.rb +34 -0
  54. data/lib/lms_graphql/resolvers/canvas/course_audit_log_query_by_account.rb +27 -0
  55. data/lib/lms_graphql/resolvers/canvas/find_images.rb +22 -0
  56. data/lib/lms_graphql/resolvers/canvas/get_account.rb +22 -0
  57. data/lib/lms_graphql/resolvers/canvas/get_content_share.rb +24 -0
  58. data/lib/lms_graphql/resolvers/canvas/get_unread_shares_count.rb +22 -0
  59. data/lib/lms_graphql/resolvers/canvas/get_uploaded_media_folder_for_user_courses.rb +22 -0
  60. data/lib/lms_graphql/resolvers/canvas/get_uploaded_media_folder_for_user_groups.rb +22 -0
  61. data/lib/lms_graphql/resolvers/canvas/get_users_most_recently_graded_submissions.rb +29 -0
  62. data/lib/lms_graphql/resolvers/canvas/index_of_active_global_notification_for_user.rb +4 -2
  63. data/lib/lms_graphql/resolvers/canvas/list_active_courses_in_account.rb +6 -2
  64. data/lib/lms_graphql/resolvers/canvas/list_assignments_assignment_groups.rb +4 -2
  65. data/lib/lms_graphql/resolvers/canvas/list_assignments_assignments.rb +4 -2
  66. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_accounts.rb +22 -0
  67. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_courses.rb +2 -4
  68. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_groups.rb +2 -4
  69. data/lib/lms_graphql/resolvers/canvas/list_available_tabs_for_course_or_group_users.rb +22 -0
  70. data/lib/lms_graphql/resolvers/canvas/list_calendar_events_for_user.rb +6 -2
  71. data/lib/lms_graphql/resolvers/canvas/list_conferences_for_current_user.rb +23 -0
  72. data/lib/lms_graphql/resolvers/canvas/list_content_shares_received.rb +23 -0
  73. data/lib/lms_graphql/resolvers/canvas/list_content_shares_sent.rb +23 -0
  74. data/lib/lms_graphql/resolvers/canvas/list_course_memberships.rb +28 -0
  75. data/lib/lms_graphql/resolvers/canvas/list_enrollment_terms.rb +2 -3
  76. data/lib/lms_graphql/resolvers/canvas/list_enrollments_courses.rb +4 -2
  77. data/lib/lms_graphql/resolvers/canvas/list_enrollments_sections.rb +4 -2
  78. data/lib/lms_graphql/resolvers/canvas/list_enrollments_users.rb +4 -2
  79. data/lib/lms_graphql/resolvers/canvas/list_files_courses.rb +3 -1
  80. data/lib/lms_graphql/resolvers/canvas/list_files_folders.rb +3 -1
  81. data/lib/lms_graphql/resolvers/canvas/list_files_groups.rb +3 -1
  82. data/lib/lms_graphql/resolvers/canvas/list_files_users.rb +3 -1
  83. data/lib/lms_graphql/resolvers/canvas/list_group_s_users.rb +4 -2
  84. data/lib/lms_graphql/resolvers/canvas/list_items_for_selective_import_accounts.rb +26 -0
  85. data/lib/lms_graphql/resolvers/canvas/list_items_for_selective_import_courses.rb +26 -0
  86. data/lib/lms_graphql/resolvers/canvas/list_items_for_selective_import_groups.rb +26 -0
  87. data/lib/lms_graphql/resolvers/canvas/list_items_for_selective_import_users.rb +26 -0
  88. data/lib/lms_graphql/resolvers/canvas/list_line_items.rb +30 -0
  89. data/lib/lms_graphql/resolvers/canvas/list_media_objects_courses.rb +29 -0
  90. data/lib/lms_graphql/resolvers/canvas/list_media_objects_media_objects.rb +27 -0
  91. data/lib/lms_graphql/resolvers/canvas/list_media_tracks_for_media_object.rb +25 -0
  92. data/lib/lms_graphql/resolvers/canvas/list_observers.rb +25 -0
  93. data/lib/lms_graphql/resolvers/canvas/list_planner_items_planner.rb +28 -0
  94. data/lib/lms_graphql/resolvers/canvas/list_planner_items_users.rb +30 -0
  95. data/lib/lms_graphql/resolvers/canvas/list_users_in_account.rb +3 -1
  96. data/lib/lms_graphql/resolvers/canvas/list_users_in_course_search_users.rb +3 -1
  97. data/lib/lms_graphql/resolvers/canvas/list_users_in_course_users.rb +3 -1
  98. data/lib/lms_graphql/resolvers/canvas/names_and_role_list_group_memberships.rb +28 -0
  99. data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_classic_quizzes.rb +24 -0
  100. data/lib/lms_graphql/resolvers/canvas/retrieve_assignment_overridden_dates_for_new_quizzes.rb +24 -0
  101. data/lib/lms_graphql/resolvers/canvas/retrieve_enrollment_term.rb +24 -0
  102. data/lib/lms_graphql/resolvers/canvas/retrieve_reported_csp_violations_for_account.rb +22 -0
  103. data/lib/lms_graphql/resolvers/canvas/return_test_student_for_course.rb +22 -0
  104. data/lib/lms_graphql/resolvers/canvas/search_for_content_share_users.rb +25 -0
  105. data/lib/lms_graphql/resolvers/canvas/show_collection_of_results.rb +24 -0
  106. data/lib/lms_graphql/resolvers/canvas/show_line_item.rb +24 -0
  107. data/lib/lms_graphql/resolvers/canvas/show_observer.rb +24 -0
  108. data/lib/lms_graphql/resolvers/canvas/show_result.rb +26 -0
  109. data/lib/lms_graphql/resolvers/canvas/show_user_details.rb +4 -2
  110. data/lib/lms_graphql/resolvers/canvas/update_user_settings.rb +4 -2
  111. data/lib/lms_graphql/types/canvas/account.rb +1 -9
  112. data/lib/lms_graphql/types/canvas/account_input.rb +1 -9
  113. data/lib/lms_graphql/types/canvas/assignment.rb +4 -3
  114. data/lib/lms_graphql/types/canvas/assignment_input.rb +4 -3
  115. data/lib/lms_graphql/types/canvas/assignment_override.rb +1 -1
  116. data/lib/lms_graphql/types/canvas/assignment_override_input.rb +1 -1
  117. data/lib/lms_graphql/types/canvas/blueprint_template.rb +1 -1
  118. data/lib/lms_graphql/types/canvas/blueprint_template_input.rb +1 -1
  119. data/lib/lms_graphql/types/canvas/calendar_event.rb +1 -0
  120. data/lib/lms_graphql/types/canvas/calendar_event_input.rb +1 -0
  121. data/lib/lms_graphql/types/canvas/conference.rb +2 -0
  122. data/lib/lms_graphql/types/canvas/conference_input.rb +2 -0
  123. data/lib/lms_graphql/types/canvas/content_share.rb +24 -0
  124. data/lib/lms_graphql/types/canvas/content_share_input.rb +24 -0
  125. data/lib/lms_graphql/types/canvas/course.rb +2 -1
  126. data/lib/lms_graphql/types/canvas/course_input.rb +2 -1
  127. data/lib/lms_graphql/types/canvas/developer_key.rb +34 -0
  128. data/lib/lms_graphql/types/canvas/developer_key_input.rb +34 -0
  129. data/lib/lms_graphql/types/canvas/enrollment_terms_list.rb +14 -0
  130. data/lib/lms_graphql/types/canvas/enrollment_terms_list_input.rb +14 -0
  131. data/lib/lms_graphql/types/canvas/feature.rb +1 -1
  132. data/lib/lms_graphql/types/canvas/feature_input.rb +1 -1
  133. data/lib/lms_graphql/types/canvas/grade.rb +2 -0
  134. data/lib/lms_graphql/types/canvas/grade_input.rb +2 -0
  135. data/lib/lms_graphql/types/canvas/help_link.rb +2 -2
  136. data/lib/lms_graphql/types/canvas/help_link_input.rb +2 -2
  137. data/lib/lms_graphql/types/canvas/line_item.rb +20 -0
  138. data/lib/lms_graphql/types/canvas/line_item_input.rb +20 -0
  139. data/lib/lms_graphql/types/canvas/media_object.rb +20 -0
  140. data/lib/lms_graphql/types/canvas/media_object_input.rb +20 -0
  141. data/lib/lms_graphql/types/canvas/media_track.rb +22 -0
  142. data/lib/lms_graphql/types/canvas/media_track_input.rb +22 -0
  143. data/lib/lms_graphql/types/canvas/names_and_role_context.rb +16 -0
  144. data/lib/lms_graphql/types/canvas/names_and_role_context_input.rb +16 -0
  145. data/lib/lms_graphql/types/canvas/names_and_role_membership.rb +17 -0
  146. data/lib/lms_graphql/types/canvas/names_and_role_membership_input.rb +17 -0
  147. data/lib/lms_graphql/types/canvas/names_and_role_message.rb +18 -0
  148. data/lib/lms_graphql/types/canvas/names_and_role_message_input.rb +18 -0
  149. data/lib/lms_graphql/types/canvas/originality_report.rb +4 -1
  150. data/lib/lms_graphql/types/canvas/originality_report_input.rb +4 -1
  151. data/lib/lms_graphql/types/canvas/outcome_alignment.rb +2 -1
  152. data/lib/lms_graphql/types/canvas/outcome_alignment_input.rb +2 -1
  153. data/lib/lms_graphql/types/canvas/pairing_code.rb +17 -0
  154. data/lib/lms_graphql/types/canvas/pairing_code_input.rb +17 -0
  155. data/lib/lms_graphql/types/canvas/query_type.rb +148 -12
  156. data/lib/lms_graphql/types/canvas/result.rb +8 -6
  157. data/lib/lms_graphql/types/canvas/result_input.rb +8 -6
  158. data/lib/lms_graphql/types/canvas/rubric.rb +4 -0
  159. data/lib/lms_graphql/types/canvas/rubric_association.rb +23 -0
  160. data/lib/lms_graphql/types/canvas/rubric_association_input.rb +23 -0
  161. data/lib/lms_graphql/types/canvas/rubric_criterion.rb +19 -0
  162. data/lib/lms_graphql/types/canvas/rubric_criterion_input.rb +19 -0
  163. data/lib/lms_graphql/types/canvas/rubric_input.rb +4 -0
  164. data/lib/lms_graphql/types/canvas/rubric_rating.rb +6 -5
  165. data/lib/lms_graphql/types/canvas/rubric_rating_input.rb +6 -5
  166. data/lib/lms_graphql/types/canvas/score.rb +20 -0
  167. data/lib/lms_graphql/types/canvas/score_input.rb +20 -0
  168. data/lib/lms_graphql/types/canvas/submission.rb +7 -3
  169. data/lib/lms_graphql/types/canvas/submission_input.rb +7 -3
  170. data/lib/lms_graphql/types/canvas_forward_declarations.rb +34 -0
  171. data/lib/lms_graphql/types/date_time_type.rb +8 -5
  172. data/lib/lms_graphql/version.rb +1 -1
  173. metadata +92 -4
@@ -15,6 +15,7 @@ module LMSGraphQL
15
15
  field :location_address, String, "The address where the event is taking place.Example: Greendale, Colorado", null: true
16
16
  field :context_code, String, "the context code of the calendar this event belongs to (course, user or group).Example: course_123", null: true
17
17
  field :effective_context_code, String, "if specified, it indicates which calendar this event should be displayed on. for example, a section-level event would have the course's context code here, while the section's context code would be returned above).", null: true
18
+ field :context_name, String, "the context name of the calendar this event belongs to (course, user or group).Example: Chemistry 101", null: true
18
19
  field :all_context_codes, String, "a comma-separated list of all calendar contexts this event is part of.Example: course_123,course_456", null: true
19
20
  field :workflow_state, String, "Current state of the event ('active', 'locked' or 'deleted') 'locked' indicates that start_at/end_at cannot be changed (though the event could be deleted). Normally only reservations or time slots with reservations are locked (see the Appointment Groups API).Example: active", null: true
20
21
  field :hidden, Boolean, "Whether this event should be displayed on the calendar. Only true for course-level events with section-level child events..", null: true
@@ -15,6 +15,7 @@ module LMSGraphQL
15
15
  argument :location_address, String, "The address where the event is taking place.Example: Greendale, Colorado", required: false
16
16
  argument :context_code, String, "the context code of the calendar this event belongs to (course, user or group).Example: course_123", required: false
17
17
  argument :effective_context_code, String, "if specified, it indicates which calendar this event should be displayed on. for example, a section-level event would have the course's context code here, while the section's context code would be returned above).", required: false
18
+ argument :context_name, String, "the context name of the calendar this event belongs to (course, user or group).Example: Chemistry 101", required: false
18
19
  argument :all_context_codes, String, "a comma-separated list of all calendar contexts this event is part of.Example: course_123,course_456", required: false
19
20
  argument :workflow_state, String, "Current state of the event ('active', 'locked' or 'deleted') 'locked' indicates that start_at/end_at cannot be changed (though the event could be deleted). Normally only reservations or time slots with reservations are locked (see the Appointment Groups API).Example: active", required: false
20
21
  argument :hidden, Boolean, "Whether this event should be displayed on the calendar. Only true for course-level events with section-level child events..", required: false
@@ -21,6 +21,8 @@ module LMSGraphQL
21
21
  field :recordings, [LMSGraphQL::Types::Canvas::CanvasConferenceRecording], "A List of recordings for the conference.", null: true
22
22
  field :url, String, "URL for the conference, may be null if the conference type doesn't set it.", null: true
23
23
  field :join_url, String, "URL to join the conference, may be null if the conference type doesn't set it.", null: true
24
+ field :context_type, String, "The type of this conference's context, typically 'Course' or 'Group'..", null: true
25
+ field :context_id, ID, "The ID of this conference's context..", null: true
24
26
 
25
27
  end
26
28
  end
@@ -21,6 +21,8 @@ module LMSGraphQL
21
21
  argument :recordings, [LMSGraphQL::Types::Canvas::CanvasConferenceRecordingInput], "A List of recordings for the conference.", required: false
22
22
  argument :url, String, "URL for the conference, may be null if the conference type doesn't set it.", required: false
23
23
  argument :join_url, String, "URL to join the conference, may be null if the conference type doesn't set it.", required: false
24
+ argument :context_type, String, "The type of this conference's context, typically 'Course' or 'Group'..", required: false
25
+ argument :context_id, ID, "The ID of this conference's context..", required: false
24
26
 
25
27
  end
26
28
  end
@@ -0,0 +1,24 @@
1
+ require_relative "../canvas_base_type"
2
+ require_relative "content_export"
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasContentShare < BaseType
8
+ description "Content Shares. API Docs: https://canvas.instructure.com/doc/api/content_shares.html"
9
+ field :id, ID, "The id of the content share for the current user.Example: 1", null: true
10
+ field :name, String, "The name of the shared content.Example: War of 1812 homework", null: true
11
+ field :content_type, String, "The type of content that was shared. Can be assignment, discussion_topic, page, quiz, module, or module_item..Example: assignment", null: true
12
+ field :created_at, LMSGraphQL::Types::DateTimeType, "The datetime the content was shared with this user..Example: 2017-05-09T10:12:00Z", null: true
13
+ field :updated_at, LMSGraphQL::Types::DateTimeType, "The datetime the content was updated..Example: 2017-05-09T10:12:00Z", null: true
14
+ field :user_id, ID, "The id of the user who sent or received the content share..Example: 1578941", null: true
15
+ field :sender, String, "The user who shared the content. This field is provided only to receivers; it is not populated in the sender's list of sent content shares..Example: 1, Matilda Vargas, http://localhost:3000/image_url, http://localhost:3000/users/1", null: true
16
+ field :receivers, String, "An Array of users the content is shared with. This field is provided only to senders; an empty array will be returned for the receiving users..Example: {'id'=>1, 'display_name'=>'Jon Snow', 'avatar_image_url'=>'http://localhost:3000/image_url2', 'html_url'=>'http://localhost:3000/users/2'}", null: true
17
+ field :source_course, String, "The course the content was originally shared from..Example: 787, History 105", null: true
18
+ field :read_state, String, "Whether the recipient has viewed the content share..Example: read", null: true
19
+ field :content_export, LMSGraphQL::Types::Canvas::CanvasContentExport, "The content export record associated with this content share.Example: 42", null: true
20
+
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ require_relative "../canvas_base_input_type"
2
+ require_relative "content_export"
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasContentShareInput < BaseInputObject
8
+ description "Content Shares. API Docs: https://canvas.instructure.com/doc/api/content_shares.html"
9
+ argument :id, ID, "The id of the content share for the current user.Example: 1", required: false
10
+ argument :name, String, "The name of the shared content.Example: War of 1812 homework", required: false
11
+ argument :content_type, String, "The type of content that was shared. Can be assignment, discussion_topic, page, quiz, module, or module_item..Example: assignment", required: false
12
+ argument :created_at, LMSGraphQL::Types::DateTimeType, "The datetime the content was shared with this user..Example: 2017-05-09T10:12:00Z", required: false
13
+ argument :updated_at, LMSGraphQL::Types::DateTimeType, "The datetime the content was updated..Example: 2017-05-09T10:12:00Z", required: false
14
+ argument :user_id, ID, "The id of the user who sent or received the content share..Example: 1578941", required: false
15
+ argument :sender, String, "The user who shared the content. This field is provided only to receivers; it is not populated in the sender's list of sent content shares..Example: 1, Matilda Vargas, http://localhost:3000/image_url, http://localhost:3000/users/1", required: false
16
+ argument :receivers, String, "An Array of users the content is shared with. This field is provided only to senders; an empty array will be returned for the receiving users..Example: {'id'=>1, 'display_name'=>'Jon Snow', 'avatar_image_url'=>'http://localhost:3000/image_url2', 'html_url'=>'http://localhost:3000/users/2'}", required: false
17
+ argument :source_course, String, "The course the content was originally shared from..Example: 787, History 105", required: false
18
+ argument :read_state, String, "Whether the recipient has viewed the content share..Example: read", required: false
19
+ argument :content_export, LMSGraphQL::Types::Canvas::CanvasContentExportInput, "The content export record associated with this content share.Example: 42", required: false
20
+
21
+ end
22
+ end
23
+ end
24
+ end
@@ -35,6 +35,7 @@ module LMSGraphQL
35
35
  field :root_account_id, ID, "the root account associated with the course.Example: 81259", null: true
36
36
  field :enrollment_term_id, ID, "the enrollment term associated with the course.Example: 34", null: true
37
37
  field :grading_standard_id, ID, "the grading standard associated with the course.Example: 25", null: true
38
+ field :grade_passback_setting, String, "the grade_passback_setting set on the course.Example: nightly_sync", null: true
38
39
  field :created_at, LMSGraphQL::Types::DateTimeType, "the date the course was created..Example: 2012-05-01T00:00:00-06:00", null: true
39
40
  field :start_at, LMSGraphQL::Types::DateTimeType, "the start date for the course, if applicable.Example: 2012-06-01T00:00:00-06:00", null: true
40
41
  field :end_at, LMSGraphQL::Types::DateTimeType, "the end date for the course, if applicable.Example: 2012-09-01T00:00:00-06:00", null: true
@@ -46,7 +47,7 @@ module LMSGraphQL
46
47
  field :syllabus_body, String, "optional: user-generated HTML for the course syllabus.Example: <p>syllabus html goes here</p>", null: true
47
48
  field :needs_grading_count, Int, "optional: the number of submissions needing grading returned only if the current user has grading rights and include[]=needs_grading_count.Example: 17", null: true
48
49
  field :term, LMSGraphQL::Types::Canvas::CanvasTerm, "optional: the enrollment term object for the course returned only if include[]=term.", null: true
49
- field :course_progress, LMSGraphQL::Types::Canvas::CanvasCourseProgress, "optional (beta): information on progress through the course returned only if include[]=course_progress.", null: true
50
+ field :course_progress, LMSGraphQL::Types::Canvas::CanvasCourseProgress, "optional: information on progress through the course returned only if include[]=course_progress.", null: true
50
51
  field :apply_assignment_group_weights, Boolean, "weight final grade based on assignment group percentages.Example: true", null: true
51
52
  field :permissions, String, "optional: the permissions the user has for the course. returned only for a single course and include[]=permissions.Example: true, true", null: true
52
53
  field :is_public, Boolean, "Example: true", null: true
@@ -35,6 +35,7 @@ module LMSGraphQL
35
35
  argument :root_account_id, ID, "the root account associated with the course.Example: 81259", required: false
36
36
  argument :enrollment_term_id, ID, "the enrollment term associated with the course.Example: 34", required: false
37
37
  argument :grading_standard_id, ID, "the grading standard associated with the course.Example: 25", required: false
38
+ argument :grade_passback_setting, String, "the grade_passback_setting set on the course.Example: nightly_sync", required: false
38
39
  argument :created_at, LMSGraphQL::Types::DateTimeType, "the date the course was created..Example: 2012-05-01T00:00:00-06:00", required: false
39
40
  argument :start_at, LMSGraphQL::Types::DateTimeType, "the start date for the course, if applicable.Example: 2012-06-01T00:00:00-06:00", required: false
40
41
  argument :end_at, LMSGraphQL::Types::DateTimeType, "the end date for the course, if applicable.Example: 2012-09-01T00:00:00-06:00", required: false
@@ -46,7 +47,7 @@ module LMSGraphQL
46
47
  argument :syllabus_body, String, "optional: user-generated HTML for the course syllabus.Example: <p>syllabus html goes here</p>", required: false
47
48
  argument :needs_grading_count, Int, "optional: the number of submissions needing grading returned only if the current user has grading rights and include[]=needs_grading_count.Example: 17", required: false
48
49
  argument :term, LMSGraphQL::Types::Canvas::CanvasTermInput, "optional: the enrollment term object for the course returned only if include[]=term.", required: false
49
- argument :course_progress, LMSGraphQL::Types::Canvas::CanvasCourseProgressInput, "optional (beta): information on progress through the course returned only if include[]=course_progress.", required: false
50
+ argument :course_progress, LMSGraphQL::Types::Canvas::CanvasCourseProgressInput, "optional: information on progress through the course returned only if include[]=course_progress.", required: false
50
51
  argument :apply_assignment_group_weights, Boolean, "weight final grade based on assignment group percentages.Example: true", required: false
51
52
  argument :permissions, String, "optional: the permissions the user has for the course. returned only for a single course and include[]=permissions.Example: true, true", required: false
52
53
  argument :is_public, Boolean, "Example: true", required: false
@@ -0,0 +1,34 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasDeveloperKey < BaseType
8
+ description "Public JWK. API Docs: https://canvas.instructure.com/doc/api/public_jwk.html"
9
+ field :id, ID, "The ID should match the Developer Key ID in canvas.Example: 1000000000040", null: true
10
+ field :is_lti_key, Boolean, "true the tool is a lti key, null is not a lti key.Example: true", null: true
11
+ field :visible, Boolean, "Controls if the tool is visable.Example: true", null: true
12
+ field :account_name, String, "The name of the account associated with the tool.Example: The Academy", null: true
13
+ field :public_jwk, String, "The public key in jwk format.Example: { 'kty':'RSA', 'e':'AQAB', 'n':'ufmgt156hs168mgdhy168jrsydt168ju816rtahesuvdbmnrtd87t7h8ser', 'alg':'RS256', 'use':'sig', 'kid':'Se68gr16s6tj_87sdr98g489dsfjy-547a6eht1', }", null: true
14
+ field :vendor_code, String, "The code of the vendor managing the tool.Example: fi5689s9avewr68", null: true
15
+ field :last_used_at, LMSGraphQL::Types::DateTimeType, "The date and time the tool was last used.Example: 2019-06-07T20:34:33Z", null: true
16
+ field :access_token_count, Float, "The number of active access tokens associated with the tool.Example: 0", null: true
17
+ field :redirect_uris, String, "redirect uris description.Example: https://redirect.to.here.com", null: true
18
+ field :redirect_uri, String, "redirect uri description.Example: https://redirect.to.here.com", null: true
19
+ field :api_key, String, "Api key for api access for the tool.Example: sd45fg648sr546tgh15S15df5se56r4xdf45asef456", null: true
20
+ field :notes, String, "Notes for use specifications for the tool.Example: Used for sorting graded assignments", null: true
21
+ field :name, String, "Display name of the tool.Example: Tool 1", null: true
22
+ field :user_id, ID, "ID of the user associated with the tool.Example: tu816dnrs6zdsg148918dmu", null: true
23
+ field :created_at, LMSGraphQL::Types::DateTimeType, "The time the jwk was created.Example: 2019-06-07T20:34:33Z", null: true
24
+ field :user_name, String, "The user name of the tool creator.Example: johnsmith", null: true
25
+ field :email, String, "Email associated with the tool owner.Example: johnsmith@instructure.com", null: true
26
+ field :require_scopes, Boolean, "True if the tool has required permissions, null if there are no needed permissions.Example: true", null: true
27
+ field :icon_url, String, "Icon to be displayed with the name of the tool.Example: null", null: true
28
+ field :scopes, String, "Specified permissions for the tool.Example: https://canvas.instructure.com/lti/public_jwk/scope/update", null: true
29
+ field :workflow_state, String, "The current state of the tool.Example: active", null: true
30
+
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ require_relative "../canvas_base_input_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasDeveloperKeyInput < BaseInputObject
8
+ description "Public JWK. API Docs: https://canvas.instructure.com/doc/api/public_jwk.html"
9
+ argument :id, ID, "The ID should match the Developer Key ID in canvas.Example: 1000000000040", required: false
10
+ argument :is_lti_key, Boolean, "true the tool is a lti key, null is not a lti key.Example: true", required: false
11
+ argument :visible, Boolean, "Controls if the tool is visable.Example: true", required: false
12
+ argument :account_name, String, "The name of the account associated with the tool.Example: The Academy", required: false
13
+ argument :public_jwk, String, "The public key in jwk format.Example: { 'kty':'RSA', 'e':'AQAB', 'n':'ufmgt156hs168mgdhy168jrsydt168ju816rtahesuvdbmnrtd87t7h8ser', 'alg':'RS256', 'use':'sig', 'kid':'Se68gr16s6tj_87sdr98g489dsfjy-547a6eht1', }", required: false
14
+ argument :vendor_code, String, "The code of the vendor managing the tool.Example: fi5689s9avewr68", required: false
15
+ argument :last_used_at, LMSGraphQL::Types::DateTimeType, "The date and time the tool was last used.Example: 2019-06-07T20:34:33Z", required: false
16
+ argument :access_token_count, Float, "The number of active access tokens associated with the tool.Example: 0", required: false
17
+ argument :redirect_uris, String, "redirect uris description.Example: https://redirect.to.here.com", required: false
18
+ argument :redirect_uri, String, "redirect uri description.Example: https://redirect.to.here.com", required: false
19
+ argument :api_key, String, "Api key for api access for the tool.Example: sd45fg648sr546tgh15S15df5se56r4xdf45asef456", required: false
20
+ argument :notes, String, "Notes for use specifications for the tool.Example: Used for sorting graded assignments", required: false
21
+ argument :name, String, "Display name of the tool.Example: Tool 1", required: false
22
+ argument :user_id, ID, "ID of the user associated with the tool.Example: tu816dnrs6zdsg148918dmu", required: false
23
+ argument :created_at, LMSGraphQL::Types::DateTimeType, "The time the jwk was created.Example: 2019-06-07T20:34:33Z", required: false
24
+ argument :user_name, String, "The user name of the tool creator.Example: johnsmith", required: false
25
+ argument :email, String, "Email associated with the tool owner.Example: johnsmith@instructure.com", required: false
26
+ argument :require_scopes, Boolean, "True if the tool has required permissions, null if there are no needed permissions.Example: true", required: false
27
+ argument :icon_url, String, "Icon to be displayed with the name of the tool.Example: null", required: false
28
+ argument :scopes, String, "Specified permissions for the tool.Example: https://canvas.instructure.com/lti/public_jwk/scope/update", required: false
29
+ argument :workflow_state, String, "The current state of the tool.Example: active", required: false
30
+
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,14 @@
1
+ require_relative "../canvas_base_type"
2
+ require_relative "enrollment_term"
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasEnrollmentTermsList < BaseType
8
+ description "Enrollment Terms. API Docs: https://canvas.instructure.com/doc/api/enrollment_terms.html"
9
+ field :enrollment_terms, [LMSGraphQL::Types::Canvas::CanvasEnrollmentTerm], "a paginated list of all terms in the account.", null: true
10
+
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require_relative "../canvas_base_input_type"
2
+ require_relative "enrollment_term"
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasEnrollmentTermsListInput < BaseInputObject
8
+ description "Enrollment Terms. API Docs: https://canvas.instructure.com/doc/api/enrollment_terms.html"
9
+ argument :enrollment_terms, [LMSGraphQL::Types::Canvas::CanvasEnrollmentTermInput], "a paginated list of all terms in the account.", required: false
10
+
11
+ end
12
+ end
13
+ end
14
+ end
@@ -12,7 +12,7 @@ module LMSGraphQL
12
12
  end
13
13
  class CanvasFeature < BaseType
14
14
  description "Feature Flags. API Docs: https://canvas.instructure.com/doc/api/feature_flags.html"
15
- field :name, String, "The symbolic name of the feature, used in FeatureFlags.Example: fancy_wickets", null: true
15
+ field :feature, String, "The symbolic name of the feature, used in FeatureFlags.Example: fancy_wickets", null: true
16
16
  field :display_name, String, "The user-visible name of the feature.Example: Fancy Wickets", null: true
17
17
  field :applies_to, FeatureAppliesToEnum, "The type of object the feature applies to (RootAccount, Account, Course, or User):
18
18
  * RootAccount features may only be controlled by flags on root accounts.
@@ -12,7 +12,7 @@ module LMSGraphQL
12
12
  end
13
13
  class CanvasFeatureInput < BaseInputObject
14
14
  description "Feature Flags. API Docs: https://canvas.instructure.com/doc/api/feature_flags.html"
15
- argument :name, String, "The symbolic name of the feature, used in FeatureFlags.Example: fancy_wickets", required: false
15
+ argument :feature, String, "The symbolic name of the feature, used in FeatureFlags.Example: fancy_wickets", required: false
16
16
  argument :display_name, String, "The user-visible name of the feature.Example: Fancy Wickets", required: false
17
17
  argument :applies_to, FeatureAppliesToEnum, "The type of object the feature applies to (RootAccount, Account, Course, or User):
18
18
  * RootAccount features may only be controlled by flags on root accounts.
@@ -11,10 +11,12 @@ module LMSGraphQL
11
11
  field :final_grade, String, "The user's final grade for the class. Only included if user has permissions to view this grade..", null: true
12
12
  field :current_score, String, "The user's current score in the class. Only included if user has permissions to view this score..", null: true
13
13
  field :final_score, String, "The user's final score for the class. Only included if user has permissions to view this score..", null: true
14
+ field :current_points, Int, "The total points the user has earned in the class. Only included if user has permissions to view this score and 'current_points' is passed in the request's 'include' parameter..Example: 150", null: true
14
15
  field :unposted_current_grade, String, "The user's current grade in the class including muted/unposted assignments. Only included if user has permissions to view this grade, typically teachers, TAs, and admins..", null: true
15
16
  field :unposted_final_grade, String, "The user's final grade for the class including muted/unposted assignments. Only included if user has permissions to view this grade, typically teachers, TAs, and admins...", null: true
16
17
  field :unposted_current_score, String, "The user's current score in the class including muted/unposted assignments. Only included if user has permissions to view this score, typically teachers, TAs, and admins...", null: true
17
18
  field :unposted_final_score, String, "The user's final score for the class including muted/unposted assignments. Only included if user has permissions to view this score, typically teachers, TAs, and admins...", null: true
19
+ field :unposted_current_points, Int, "The total points the user has earned in the class, including muted/unposted assignments. Only included if user has permissions to view this score (typically teachers, TAs, and admins) and 'current_points' is passed in the request's 'include' parameter..Example: 150", null: true
18
20
 
19
21
  end
20
22
  end
@@ -11,10 +11,12 @@ module LMSGraphQL
11
11
  argument :final_grade, String, "The user's final grade for the class. Only included if user has permissions to view this grade..", required: false
12
12
  argument :current_score, String, "The user's current score in the class. Only included if user has permissions to view this score..", required: false
13
13
  argument :final_score, String, "The user's final score for the class. Only included if user has permissions to view this score..", required: false
14
+ argument :current_points, Int, "The total points the user has earned in the class. Only included if user has permissions to view this score and 'current_points' is passed in the request's 'include' parameter..Example: 150", required: false
14
15
  argument :unposted_current_grade, String, "The user's current grade in the class including muted/unposted assignments. Only included if user has permissions to view this grade, typically teachers, TAs, and admins..", required: false
15
16
  argument :unposted_final_grade, String, "The user's final grade for the class including muted/unposted assignments. Only included if user has permissions to view this grade, typically teachers, TAs, and admins...", required: false
16
17
  argument :unposted_current_score, String, "The user's current score in the class including muted/unposted assignments. Only included if user has permissions to view this score, typically teachers, TAs, and admins...", required: false
17
18
  argument :unposted_final_score, String, "The user's final score for the class including muted/unposted assignments. Only included if user has permissions to view this score, typically teachers, TAs, and admins...", required: false
19
+ argument :unposted_current_points, Int, "The total points the user has earned in the class, including muted/unposted assignments. Only included if user has permissions to view this score (typically teachers, TAs, and admins) and 'current_points' is passed in the request's 'include' parameter..Example: 150", required: false
18
20
 
19
21
  end
20
22
  end
@@ -9,8 +9,8 @@ module LMSGraphQL
9
9
  description "Accounts. API Docs: https://canvas.instructure.com/doc/api/accounts.html"
10
10
  field :help_link_name, String, "Help link button title.Example: Help And Policies", null: true
11
11
  field :help_link_icon, String, "Help link button icon.Example: help", null: true
12
- field :custom_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLink], "Help links defined by the account. Could include default help links..Example: {'id'=>'link1', 'text'=>'Custom Link!', 'subtext'=>'Something something.', 'url'=>'https://google.com', 'type'=>'custom', 'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled']}", null: true
13
- field :default_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLink], "Default help links provided when account has not set help links of their own..Example: {'available_to'=>['student'], 'text'=>'Ask Your Instructor a Question', 'subtext'=>'Questions are submitted to your instructor', 'url'=>'#teacher_feedback', 'type'=>'default', 'id'=>'instructor_question'}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Search the Canvas Guides', 'subtext'=>'Find answers to common questions', 'url'=>'http://community.canvaslms.com/community/answers/guides', 'type'=>'default', 'id'=>'search_the_canvas_guides'}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Report a Problem', 'subtext'=>'If Canvas misbehaves, tell us about it', 'url'=>'#create_ticket', 'type'=>'default', 'id'=>'report_a_problem'}", null: true
12
+ field :custom_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLink], "Help links defined by the account. Could include default help links..Example: {'id'=>'link1', 'text'=>'Custom Link!', 'subtext'=>'Something something.', 'url'=>'https://google.com', 'type'=>'custom', 'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'is_featured'=>true, 'is_new'=>false, 'feature_headline'=>'Check this out!'}", null: true
13
+ field :default_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLink], "Default help links provided when account has not set help links of their own..Example: {'available_to'=>['student'], 'text'=>'Ask Your Instructor a Question', 'subtext'=>'Questions are submitted to your instructor', 'url'=>'#teacher_feedback', 'type'=>'default', 'id'=>'instructor_question', 'is_featured'=>false, 'is_new'=>true, 'feature_headline'=>''}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Search the Canvas Guides', 'subtext'=>'Find answers to common questions', 'url'=>'http://community.canvaslms.com/community/answers/guides', 'type'=>'default', 'id'=>'search_the_canvas_guides', 'is_featured'=>false, 'is_new'=>false, 'feature_headline'=>''}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Report a Problem', 'subtext'=>'If Canvas misbehaves, tell us about it', 'url'=>'#create_ticket', 'type'=>'default', 'id'=>'report_a_problem', 'is_featured'=>false, 'is_new'=>false, 'feature_headline'=>''}", null: true
14
14
 
15
15
  end
16
16
  end
@@ -9,8 +9,8 @@ module LMSGraphQL
9
9
  description "Accounts. API Docs: https://canvas.instructure.com/doc/api/accounts.html"
10
10
  argument :help_link_name, String, "Help link button title.Example: Help And Policies", required: false
11
11
  argument :help_link_icon, String, "Help link button icon.Example: help", required: false
12
- argument :custom_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLinkInput], "Help links defined by the account. Could include default help links..Example: {'id'=>'link1', 'text'=>'Custom Link!', 'subtext'=>'Something something.', 'url'=>'https://google.com', 'type'=>'custom', 'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled']}", required: false
13
- argument :default_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLinkInput], "Default help links provided when account has not set help links of their own..Example: {'available_to'=>['student'], 'text'=>'Ask Your Instructor a Question', 'subtext'=>'Questions are submitted to your instructor', 'url'=>'#teacher_feedback', 'type'=>'default', 'id'=>'instructor_question'}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Search the Canvas Guides', 'subtext'=>'Find answers to common questions', 'url'=>'http://community.canvaslms.com/community/answers/guides', 'type'=>'default', 'id'=>'search_the_canvas_guides'}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Report a Problem', 'subtext'=>'If Canvas misbehaves, tell us about it', 'url'=>'#create_ticket', 'type'=>'default', 'id'=>'report_a_problem'}", required: false
12
+ argument :custom_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLinkInput], "Help links defined by the account. Could include default help links..Example: {'id'=>'link1', 'text'=>'Custom Link!', 'subtext'=>'Something something.', 'url'=>'https://google.com', 'type'=>'custom', 'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'is_featured'=>true, 'is_new'=>false, 'feature_headline'=>'Check this out!'}", required: false
13
+ argument :default_help_links, [LMSGraphQL::Types::Canvas::CanvasHelpLinkInput], "Default help links provided when account has not set help links of their own..Example: {'available_to'=>['student'], 'text'=>'Ask Your Instructor a Question', 'subtext'=>'Questions are submitted to your instructor', 'url'=>'#teacher_feedback', 'type'=>'default', 'id'=>'instructor_question', 'is_featured'=>false, 'is_new'=>true, 'feature_headline'=>''}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Search the Canvas Guides', 'subtext'=>'Find answers to common questions', 'url'=>'http://community.canvaslms.com/community/answers/guides', 'type'=>'default', 'id'=>'search_the_canvas_guides', 'is_featured'=>false, 'is_new'=>false, 'feature_headline'=>''}, {'available_to'=>['user', 'student', 'teacher', 'admin', 'observer', 'unenrolled'], 'text'=>'Report a Problem', 'subtext'=>'If Canvas misbehaves, tell us about it', 'url'=>'#create_ticket', 'type'=>'default', 'id'=>'report_a_problem', 'is_featured'=>false, 'is_new'=>false, 'feature_headline'=>''}", required: false
14
14
 
15
15
  end
16
16
  end
@@ -0,0 +1,20 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasLineItem < BaseType
8
+ description "Line Items. API Docs: https://canvas.instructure.com/doc/api/line_items.html"
9
+ field :id, ID, "The fully qualified URL for showing, updating, and deleting the Line Item.Example: http://institution.canvas.com/api/lti/courses/5/line_items/2", null: true
10
+ field :score_maximum, Float, "The maximum score of the Line Item.Example: 50", null: true
11
+ field :label, String, "The label of the Line Item..Example: 50", null: true
12
+ field :tag, String, "Tag used to qualify a line Item beyond its ids.Example: 50", null: true
13
+ field :resource_id, String, "A Tool Provider specified id for the Line Item. Multiple line items can share the same resourceId within a given context.Example: 50", null: true
14
+ field :resource_link_id, String, "The resource link id the Line Item is attached to.Example: 50", null: true
15
+ field :https://canvas.instructure.com/lti/submission_type, String, "The extension that defines the submission_type of the line_item. Only returns if set through the line_item create endpoint..Example: { 'type':'external_tool', 'external_tool_url':'https://my.launch.url', }", null: true
16
+
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require_relative "../canvas_base_input_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasLineItemInput < BaseInputObject
8
+ description "Line Items. API Docs: https://canvas.instructure.com/doc/api/line_items.html"
9
+ argument :id, ID, "The fully qualified URL for showing, updating, and deleting the Line Item.Example: http://institution.canvas.com/api/lti/courses/5/line_items/2", required: false
10
+ argument :score_maximum, Float, "The maximum score of the Line Item.Example: 50", required: false
11
+ argument :label, String, "The label of the Line Item..Example: 50", required: false
12
+ argument :tag, String, "Tag used to qualify a line Item beyond its ids.Example: 50", required: false
13
+ argument :resource_id, String, "A Tool Provider specified id for the Line Item. Multiple line items can share the same resourceId within a given context.Example: 50", required: false
14
+ argument :resource_link_id, String, "The resource link id the Line Item is attached to.Example: 50", required: false
15
+ argument :https://canvas.instructure.com/lti/submission_type, String, "The extension that defines the submission_type of the line_item. Only returns if set through the line_item create endpoint..Example: { 'type':'external_tool', 'external_tool_url':'https://my.launch.url', }", required: false
16
+
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasMediaObject < BaseType
8
+ description "Media Objects. API Docs: https://canvas.instructure.com/doc/api/media_objects.html"
9
+ field :can_add_captions, Boolean, "", null: true
10
+ field :user_entered_title, String, "", null: true
11
+ field :title, String, "", null: true
12
+ field :media_id, ID, "", null: true
13
+ field :media_type, String, "", null: true
14
+ field :media_tracks, String, "", null: true
15
+ field :media_sources, String, "", null: true
16
+
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require_relative "../canvas_base_input_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasMediaObjectInput < BaseInputObject
8
+ description "Media Objects. API Docs: https://canvas.instructure.com/doc/api/media_objects.html"
9
+ argument :can_add_captions, Boolean, "", required: false
10
+ argument :user_entered_title, String, "", required: false
11
+ argument :title, String, "", required: false
12
+ argument :media_id, ID, "", required: false
13
+ argument :media_type, String, "", required: false
14
+ argument :media_tracks, String, "", required: false
15
+ argument :media_sources, String, "", required: false
16
+
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,22 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasMediaTrack < BaseType
8
+ description "Media Objects. API Docs: https://canvas.instructure.com/doc/api/media_objects.html"
9
+ field :id, ID, "", null: true
10
+ field :user_id, ID, "", null: true
11
+ field :media_object_id, ID, "", null: true
12
+ field :kind, String, "", null: true
13
+ field :locale, String, "", null: true
14
+ field :content, String, "", null: true
15
+ field :created_at, String, "", null: true
16
+ field :updated_at, String, "", null: true
17
+ field :webvtt_content, String, "", null: true
18
+
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ require_relative "../canvas_base_input_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasMediaTrackInput < BaseInputObject
8
+ description "Media Objects. API Docs: https://canvas.instructure.com/doc/api/media_objects.html"
9
+ argument :id, ID, "", required: false
10
+ argument :user_id, ID, "", required: false
11
+ argument :media_object_id, ID, "", required: false
12
+ argument :kind, String, "", required: false
13
+ argument :locale, String, "", required: false
14
+ argument :content, String, "", required: false
15
+ argument :created_at, String, "", required: false
16
+ argument :updated_at, String, "", required: false
17
+ argument :webvtt_content, String, "", required: false
18
+
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../canvas_base_type"
2
+
3
+
4
+ module LMSGraphQL
5
+ module Types
6
+ module Canvas
7
+ class CanvasNamesAndRoleContext < BaseType
8
+ description "Names and Role. API Docs: https://canvas.instructure.com/doc/api/names_and_role.html"
9
+ field :id, ID, "LTI Context unique identifier.Example: 4dde05e8ca1973bcca9bffc13e1548820eee93a3", null: true
10
+ field :label, String, "LTI Context short name or code.Example: CS-101", null: true
11
+ field :title, String, "LTI Context full name.Example: Computer Science 101", null: true
12
+
13
+ end
14
+ end
15
+ end
16
+ end