Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLM-8516 Documentation for New GraphQL endpoint to reset course progress #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions definition-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,16 @@ const MUTATIONS = {
"The type of thread, based on the thread's location, e.g. discussion board, assignment, widget thread etc.",
},
},
CurrentUserResetCourseProgress: {
metadescription:
"Resets progress for a specific learner and a specific course.",
args: {
revokeAccess:
"When set to true, learner access to the content item is also revoked",
slug: "The slug identifier of the course you want to reset progress for.",
userId: "The user ID you want to reset progress for.",
},
},
RemoveCommentLike: {
metadescription:
'Removed a like from a comment. The results of this mutation can be affected by providing an authToken header to set a user for the operation.',
Expand Down
101 changes: 101 additions & 0 deletions graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3421,6 +3421,18 @@
"name": "Assignment",
"description": null,
"fields": [
{
"name": "description",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "The ID of the Assignment.",
Expand Down Expand Up @@ -9511,6 +9523,12 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "shareToLinkedIn",
"description": "Link to Add Certificate to LinkedIn",
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "textLabel",
"description": "Short Text",
Expand Down Expand Up @@ -14510,6 +14528,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "freeWithRegistration",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "hasChildren",
"description": null,
Expand Down Expand Up @@ -34298,6 +34328,67 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CurrentUserResetCourseProgress",
"description": "Resets progress for a specific learner and a specific course.",
"args": [
{
"name": "revokeAccess",
"description": "When set to true, learner access to the content item is also revoked",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "slug",
"description": "The slug identifier of the course you want to reset progress for.",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "userId",
"description": "The user ID you want to reset progress for.",
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "DestroyBookmark",
"description": "The results of this mutation can be affected by providing an authToken header to set a user for the operation.",
Expand Down Expand Up @@ -53242,6 +53333,16 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "UUID",
"description": "A field whose value is a UUID.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "User",
Expand Down
Loading