lms-graphql-api 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a58ae9ee707b6d878e454edb4a68c965ce858c48ae0e3c262bb5ecf4e131853
4
- data.tar.gz: 95198edf2ed4b0ba3b5dd255a243efdba923de6dad543c44bd3f90255d166cc4
3
+ metadata.gz: 358fa627a924534a860031a908602ea74777b16fabf1265cb830fc57ea37c71e
4
+ data.tar.gz: 2730860baf62f49c92ea1dfe38224814dd6f97d686d174ade80362850e69555d
5
5
  SHA512:
6
- metadata.gz: 520f0a04ed182af8fd4efdea4c8416f7731027e0b4785c7af07abee26533aba5eb9777a817451383a92ffb05bd4a2b079f9e144f530d5fa33682183d87491a87
7
- data.tar.gz: fc5af6de6a628fc675cfb574f29a4d2717571b1cfde0e5743c70a661add50ba8d36cf4cc7df4f25e2d38084563827e1c40b96e68831d017bd5186ea0b0ffd22a
6
+ metadata.gz: 9a6a89db9a705c54b67607b8cf45e165ed9264a24381c32ade27cb1104ad8d7f8f018c80a48f665fe4151bd711b36d771aa3d626424bc1a83180dbc2c4aca1e3
7
+ data.tar.gz: c795e70c13d93188d5d6bae5f8175340fb419364ddead2ac0fd9f332ce358e5961ed3e191e4a806a290fefb47c338fc3bb678cc2d347eacfb4815d4d0c912df2
@@ -10,7 +10,6 @@ module LMSGraphQL
10
10
  argument :user_sortable_name, String, required: false
11
11
  argument :user_time_zone, String, required: false
12
12
  argument :user_locale, String, required: false
13
- argument :user_birthdate, LMSGraphQL::Types::DateTimeType, required: false
14
13
  argument :user_terms_of_use, Boolean, required: false
15
14
  argument :user_skip_registration, Boolean, required: false
16
15
  argument :pseudonym_unique_id, String, required: true
@@ -30,7 +29,7 @@ module LMSGraphQL
30
29
  argument :initial_enrollment_type, String, required: false
31
30
  argument :pairing_code_code, String, required: false
32
31
  field :user, LMSGraphQL::Types::Canvas::CanvasUser, null: false
33
- def resolve(account_id:, user_name: nil, user_short_name: nil, user_sortable_name: nil, user_time_zone: nil, user_locale: nil, user_birthdate: nil, user_terms_of_use: nil, user_skip_registration: nil, pseudonym_unique_id:, pseudonym_password: nil, pseudonym_sis_user_id: nil, pseudonym_integration_id: nil, pseudonym_send_confirmation: nil, pseudonym_force_self_registration: nil, pseudonym_authentication_provider_id: nil, communication_channel_type: nil, communication_channel_address: nil, communication_channel_confirmation_url: nil, communication_channel_skip_confirmation: nil, force_validations: nil, enable_sis_reactivation: nil, destination: nil, initial_enrollment_type: nil, pairing_code_code: nil)
32
+ def resolve(account_id:, user_name: nil, user_short_name: nil, user_sortable_name: nil, user_time_zone: nil, user_locale: nil, user_terms_of_use: nil, user_skip_registration: nil, pseudonym_unique_id:, pseudonym_password: nil, pseudonym_sis_user_id: nil, pseudonym_integration_id: nil, pseudonym_send_confirmation: nil, pseudonym_force_self_registration: nil, pseudonym_authentication_provider_id: nil, communication_channel_type: nil, communication_channel_address: nil, communication_channel_confirmation_url: nil, communication_channel_skip_confirmation: nil, force_validations: nil, enable_sis_reactivation: nil, destination: nil, initial_enrollment_type: nil, pairing_code_code: nil)
34
33
  context[:canvas_api].call("CREATE_USER").proxy(
35
34
  "CREATE_USER",
36
35
  {
@@ -42,7 +41,6 @@ module LMSGraphQL
42
41
  "user[sortable_name]": user_sortable_name,
43
42
  "user[time_zone]": user_time_zone,
44
43
  "user[locale]": user_locale,
45
- "user[birthdate]": user_birthdate,
46
44
  "user[terms_of_use]": user_terms_of_use,
47
45
  "user[skip_registration]": user_skip_registration,
48
46
  "pseudonym[unique_id]": pseudonym_unique_id,
@@ -10,13 +10,12 @@ module LMSGraphQL
10
10
  argument :user_sortable_name, String, required: false
11
11
  argument :user_time_zone, String, required: false
12
12
  argument :user_locale, String, required: false
13
- argument :user_birthdate, LMSGraphQL::Types::DateTimeType, required: false
14
13
  argument :user_terms_of_use, Boolean, required: true
15
14
  argument :pseudonym_unique_id, String, required: true
16
15
  argument :communication_channel_type, String, required: false
17
16
  argument :communication_channel_address, String, required: false
18
17
  field :user, LMSGraphQL::Types::Canvas::CanvasUser, null: false
19
- def resolve(account_id:, user_name:, user_short_name: nil, user_sortable_name: nil, user_time_zone: nil, user_locale: nil, user_birthdate: nil, user_terms_of_use:, pseudonym_unique_id:, communication_channel_type: nil, communication_channel_address: nil)
18
+ def resolve(account_id:, user_name:, user_short_name: nil, user_sortable_name: nil, user_time_zone: nil, user_locale: nil, user_terms_of_use:, pseudonym_unique_id:, communication_channel_type: nil, communication_channel_address: nil)
20
19
  context[:canvas_api].call("DEPRECATED_SELF_REGISTER_USER").proxy(
21
20
  "DEPRECATED_SELF_REGISTER_USER",
22
21
  {
@@ -28,7 +27,6 @@ module LMSGraphQL
28
27
  "user[sortable_name]": user_sortable_name,
29
28
  "user[time_zone]": user_time_zone,
30
29
  "user[locale]": user_locale,
31
- "user[birthdate]": user_birthdate,
32
30
  "user[terms_of_use]": user_terms_of_use,
33
31
  "pseudonym[unique_id]": pseudonym_unique_id,
34
32
  "communication_channel[type]": communication_channel_type,
@@ -21,9 +21,13 @@ module LMSGraphQL
21
21
  argument :account_settings_usage_rights_required_locked, Boolean, required: false
22
22
  argument :account_settings_restrict_student_future_listing_value, Boolean, required: false
23
23
  argument :account_settings_restrict_student_future_listing_locked, Boolean, required: false
24
+ argument :account_settings_lock_outcome_proficiency_value, Boolean, required: false
25
+ argument :account_lock_outcome_proficiency_locked, Boolean, required: false
26
+ argument :account_settings_lock_proficiency_calculation_value, Boolean, required: false
27
+ argument :account_lock_proficiency_calculation_locked, Boolean, required: false
24
28
  argument :account_services, String, required: false
25
29
  field :account, LMSGraphQL::Types::Canvas::CanvasAccount, null: false
26
- def resolve(id:, account_name: nil, account_sis_account_id: nil, account_default_time_zone: nil, account_default_storage_quota_mb: nil, account_default_user_storage_quota_mb: nil, account_default_group_storage_quota_mb: nil, account_settings_restrict_student_past_view_value: nil, account_settings_restrict_student_past_view_locked: nil, account_settings_restrict_student_future_view_value: nil, account_settings_restrict_student_future_view_locked: nil, account_settings_lock_all_announcements_value: nil, account_settings_lock_all_announcements_locked: nil, account_settings_usage_rights_required_value: nil, account_settings_usage_rights_required_locked: nil, account_settings_restrict_student_future_listing_value: nil, account_settings_restrict_student_future_listing_locked: nil, account_services: nil)
30
+ def resolve(id:, account_name: nil, account_sis_account_id: nil, account_default_time_zone: nil, account_default_storage_quota_mb: nil, account_default_user_storage_quota_mb: nil, account_default_group_storage_quota_mb: nil, account_settings_restrict_student_past_view_value: nil, account_settings_restrict_student_past_view_locked: nil, account_settings_restrict_student_future_view_value: nil, account_settings_restrict_student_future_view_locked: nil, account_settings_lock_all_announcements_value: nil, account_settings_lock_all_announcements_locked: nil, account_settings_usage_rights_required_value: nil, account_settings_usage_rights_required_locked: nil, account_settings_restrict_student_future_listing_value: nil, account_settings_restrict_student_future_listing_locked: nil, account_settings_lock_outcome_proficiency_value: nil, account_lock_outcome_proficiency_locked: nil, account_settings_lock_proficiency_calculation_value: nil, account_lock_proficiency_calculation_locked: nil, account_services: nil)
27
31
  context[:canvas_api].call("UPDATE_ACCOUNT").proxy(
28
32
  "UPDATE_ACCOUNT",
29
33
  {
@@ -46,6 +50,10 @@ module LMSGraphQL
46
50
  "account[settings][usage_rights_required][locked]": account_settings_usage_rights_required_locked,
47
51
  "account[settings][restrict_student_future_listing][value]": account_settings_restrict_student_future_listing_value,
48
52
  "account[settings][restrict_student_future_listing][locked]": account_settings_restrict_student_future_listing_locked,
53
+ "account[settings][lock_outcome_proficiency][value]": account_settings_lock_outcome_proficiency_value,
54
+ "account[lock_outcome_proficiency][locked]": account_lock_outcome_proficiency_locked,
55
+ "account[settings][lock_proficiency_calculation][value]": account_settings_lock_proficiency_calculation_value,
56
+ "account[lock_proficiency_calculation][locked]": account_lock_proficiency_calculation_locked,
49
57
  "account[services]": account_services
50
58
  },
51
59
  ).parsed_response
@@ -68,7 +68,6 @@ module LMSGraphQL
68
68
  field :post_to_sis, Boolean, "(optional, present if Sync Grades to SIS feature is enabled).Example: true", null: true
69
69
  field :integration_id, ID, "(optional, Third Party unique identifier for Assignment).Example: 12341234", null: true
70
70
  field :integration_data, String, "(optional, Third Party integration data for assignment).Example: 0954", null: true
71
- field :muted, Boolean, "For courses using Old Gradebook, indicates whether the assignment is muted. For courses using New Gradebook, true if the assignment has any unposted submissions, otherwise false. To see the posted status of submissions, check the 'posted_attribute' on Submission..", null: true
72
71
  field :points_possible, Float, "the maximum points possible for the assignment.Example: 12.0", null: true
73
72
  field :submission_types, AssignmentSubmissionTypeEnum, "the types of submissions allowed for this assignment list containing one or more of the following: 'discussion_topic', 'online_quiz', 'on_paper', 'none', 'external_tool', 'online_text_entry', 'online_url', 'online_upload' 'media_recording'.Example: online_text_entry", null: true
74
73
  field :has_submitted_submissions, Boolean, "If true, the assignment has been submitted to by at least one student.Example: true", null: true
@@ -68,7 +68,6 @@ module LMSGraphQL
68
68
  argument :post_to_sis, Boolean, "(optional, present if Sync Grades to SIS feature is enabled).Example: true", required: false
69
69
  argument :integration_id, ID, "(optional, Third Party unique identifier for Assignment).Example: 12341234", required: false
70
70
  argument :integration_data, String, "(optional, Third Party integration data for assignment).Example: 0954", required: false
71
- argument :muted, Boolean, "For courses using Old Gradebook, indicates whether the assignment is muted. For courses using New Gradebook, true if the assignment has any unposted submissions, otherwise false. To see the posted status of submissions, check the 'posted_attribute' on Submission..", required: false
72
71
  argument :points_possible, Float, "the maximum points possible for the assignment.Example: 12.0", required: false
73
72
  argument :submission_types, AssignmentSubmissionTypeEnum, "the types of submissions allowed for this assignment list containing one or more of the following: 'discussion_topic', 'online_quiz', 'on_paper', 'none', 'external_tool', 'online_text_entry', 'online_url', 'online_upload' 'media_recording'.Example: online_text_entry", required: false
74
73
  argument :has_submitted_submissions, Boolean, "If true, the assignment has been submitted to by at least one student.Example: true", required: false
@@ -9,6 +9,7 @@ module LMSGraphQL
9
9
  value "must_submit"
10
10
  value "must_contribute"
11
11
  value "min_score"
12
+ value "must_mark_done"
12
13
  end
13
14
  class CanvasCompletionRequirement < BaseType
14
15
  description "Modules. API Docs: https://canvas.instructure.com/doc/api/modules.html"
@@ -9,6 +9,7 @@ module LMSGraphQL
9
9
  value "must_submit"
10
10
  value "must_contribute"
11
11
  value "min_score"
12
+ value "must_mark_done"
12
13
  end
13
14
  class CanvasCompletionRequirementInput < BaseInputObject
14
15
  description "Modules. API Docs: https://canvas.instructure.com/doc/api/modules.html"
@@ -10,7 +10,7 @@ module LMSGraphQL
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
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
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'=>'https://community.canvaslms.com/t5/Guides/ct-p/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
@@ -10,7 +10,7 @@ module LMSGraphQL
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
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
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'=>'https://community.canvaslms.com/t5/Guides/ct-p/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
@@ -1029,11 +1029,11 @@ module LMSGraphQL
1029
1029
 
1030
1030
  field :list_media_objects_media_objects,
1031
1031
  resolver: LMSGraphQL::Resolvers::Canvas::ListMediaObjectsMediaObject,
1032
- description: "List Media Objects. Returns Media Objects created by the user making the request. When using the second version, returns only those Media Objects associated with the given course."
1032
+ description: "List Media Objects. Returns media objects created by the user making the request. When using the second version, returns media objects associated with the given course."
1033
1033
 
1034
1034
  field :list_media_objects_courses,
1035
1035
  resolver: LMSGraphQL::Resolvers::Canvas::ListMediaObjectsCourse,
1036
- description: "List Media Objects. Returns Media Objects created by the user making the request. When using the second version, returns only those Media Objects associated with the given course."
1036
+ description: "List Media Objects. Returns media objects created by the user making the request. When using the second version, returns media objects associated with the given course."
1037
1037
 
1038
1038
  field :list_students_selected_for_moderation,
1039
1039
  resolver: LMSGraphQL::Resolvers::Canvas::ListStudentsSelectedForModeration,
@@ -1,3 +1,3 @@
1
1
  module LMSGraphQL
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.4.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lms-graphql-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atomic Jolt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-21 00:00:00.000000000 Z
12
+ date: 2020-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql