Type Definitions
-
ClassSection
-
Description
Defines a class section in DTPSProperties
Name Type Description titlestring Name of the section idstring Section ID usersArray.<User> Students in this section Details
-
PartialDiscussionThread
-
Description
Defines partial discussion thread objects in DTPS (for threads list)Properties
Name Type Attributes Description titlestring Title of the discussion thread idstring Discussion thread ID lockedboolean <optional> True if posting to the discussion thread is locked Details
-
DiscussionThread
-
Description
Defines discussion thread objects in DTPSProperties
Name Type Attributes Description titlestring Title of the discussion thread idstring Discussion thread ID postsArray.<DiscussionPost> Posts in this thread, with the initial one first. lockedboolean <optional> True if posting to the discussion thread is locked requireInitialPostboolean <optional> True if the user must post before viewing others' posts Details
-
DiscussionPost
-
Description
Defines discussion post objects in DTPSProperties
Name Type Attributes Description idstring Discussion post ID bodystring Discussion post body HTML postedAtDate Date for when the post was posted depthnumber <optional> The depth level this post is authorUser <optional> Discussion post author repliesArray.<DiscussionPost> <optional> Replies to this post. Nested replies (replies to replies) should be after this post in the array with a depth of 1, not in the replies key. replyURLstring <optional> A URL that the user can visit to reply to this post Details
-
PartialPage
-
Description
Defines a partial page object in DTPS (for pages list)Properties
Name Type Description titlestring Page title idstring Page ID Details
-
Page
-
SearchData
-
Description
An object that can represent any type of data to be searched.Properties
Name Type Attributes Description titlestring <optional> Result title bodystring <optional> Result body (can be HTML) urlstring <optional> A URL for opening this result in the LMS locatedInstring Describes where this result was found (as specific as possible) iconstring The icon to use for this result. Should match (and is displayed with) the locatedIn property. infoArray.<Object> <optional> Contains any info (e.g. due dates) for this result. Has an icon property, label property, and info property. iconsArray.<Object> Status icons for this result. Has an "icon" property, for the icon, and a "keywords" property for a string with all of the search keywords for the icon. classnumber The number of the class that this result is from Details
-
Assignment
-
Description
Defines assignments objects in DTPSProperties
Name Type Attributes Description titlestring Title of the assignment bodystring <optional> HTML of the assignment's body idstring Assignment ID classnumber Automatically managed by DTPS. The class number that this assignment belongs to. dueAtDate <optional> Assignment due date urlstring <optional> Assignment URL feedbackArray.<AssignmentFeedback> <optional> Feedback / private comments for this assignment graderUser <optional> Assignment grader turnedInboolean <optional> True if the assignment is turned in lateboolean <optional> True if the assignment is late missingboolean <optional> True if the assignment is missing lockedboolean <optional> True if assignment submissions are locked categorystring <optional> Assignment category publishedAtDate <optional> Date for when the assignment was published gradedAtDate <optional> Date for when the assignment was graded gradenumber <optional> Points earned on this assignment letterstring <optional> Letter grade on this assignment valuenumber <optional> Total amount of points possible for this assignment rubricArray.<RubricItem> <optional> Assignment rubric errorstring <optional> If an error occures when processing this assignment, store an error message here to notify the user that some features/data may be unavailable Details
-
Module
-
Description
Defines module objects in DTPSProperties
Name Type Attributes Description titlestring Title of the module idstring Module ID collapsedboolean <optional> True if the module is collapsed, false otherwise. undefined or null if this module does not support collapsing. itemsArray.<ModuleItem> An array of items for this module. Details
-
ModuleItem
-
Description
Defines module items in DTPSProperties
Name Type Attributes Description typestring Either "assignment", "page", "discussion", "url", "embed", or "header". titlestring <optional> Required for URL and header items, and can be used to override the title of assignment, page, and discussion items. idstring <optional> Required for assignment, page, and discussion items. urlstring <optional> Required for URL and embed items. Required for discussion and page items if the class does not support the pages or discussions feature. indentnumber <optional> Indent level completedboolean <optional> True if the module item has been completed Details
-
Announcement
-
Description
Defines announcement objects in DTPSProperties
Name Type Description titlestring Title of the announcement postedAtDate Date when the announcement was posted bodystring Announcement content urlstring Announcement URL Details
-
AssignmentFeedback
-
Description
Defines assignment feedback objects in DTPSProperties
Name Type Attributes Description commentstring Feedback comment authorUser <optional> Feedback author Details
-
RubricItem
-
Description
Defines rubric item objects in DTPSProperties
Name Type Attributes Description titlestring Title of the rubric item idstring Rubric item ID (only needs to be unique to this assignment) valuenumber Total amount of points possible outcomestring <optional> The ID of the outcome this rubric item is assessing. This is only used for grade calculation. descriptionstring <optional> Rubric item description scorenumber <optional> Rubric assessment score in points scoreNamestring <optional> Rubric assessment score name colorstring <optional> Score color in a CSS color format Details
-
DashboardItem
-
Description
Defines dashboard items in DTPSProperties
Name Type Description namestring Dashbord item name idstring Unique dashboard item ID iconstring Dashboard item icon supportsCompactModeboolean True if this dashboard item supports compact mode sizenumber The approximate size of this dashboard item relative to other dashboard items. Should be no less than 20. defaultSidestring The default side of this dashboard item. Either "right" or "left". compactboolean True if the user has turned on compact mode for this item. Details
-
Date
-
Description
A date string recognized by Date.parse or an actual Date objectDetails
-
User
-
Description
Defines user objects in DTPSProperties
Name Type Attributes Description namestring User name idstring User ID photoURLstring User photo URL urlstring [ONLY FOR DTPSLMS.FETCHUSERS] The URL to this user's profile. Only used when displaying users in the people tab. childrenArray.<User> <optional> [ONLY FOR DTPS.USER] Array of child users. If this is defined, the user is treated as a parent account. Sub-children are not allowed. parentboolean [ONLY FOR DTPS.USER] Automatically managed by DTPS. True if the user is a parent account. Details
-
Class
-
Description
Defines class objects in DTPSProperties
Name Type Attributes Description namestring Name of the class idstring Class ID used by Power+ lmsIDstring Class ID used for LMS API calls userIDstring The ID of the user this class is associated with (from the parameter of dtpsLMS.fetchClasses) numnumber Index of the class in the dtps.classes array subjectstring Class subject usualDueRangeArray.<number> The range of usual due dates for this course [min,max]. Anything outside this range is considered unusual and highlighted if enabled. peopleArray.<ClassSection> | boolean <optional> Users in this class. True if the class supports the "People" tab, but not yet loaded. If this is true dtpsLMS.fetchUsers must be implemented. iconstring <optional> The icon to show with this class groupstring <optional> The name of the group that this class is in periodnumber | string <optional> The period or section the user has this class at startDateDate <optional> The start date for this course. Only used internally for filtering out stale courses. endDateDate <optional> The end date for this course. Only used internally for filtering out stale courses. termStartDateDate <optional> The start date for the term this course is in. Only used internally for filtering out stale courses. termEndDateDate <optional> The end date for the term this course is in. Only used internally for filtering out stale courses. assignmentsArray.<Assignment> Class assignments. Assume assignments are still loading if this is undefined. The class has no assignments if this is an empty array. Loaded in dtps.init. modulesArray.<Module> | boolean <optional> Class modules. Assume this class supports the modules feature, but is not yet loaded, if this is true and that the class has no modules if this is an empty array. For LMSs that do not support modules, either keep it undefined or set it to false. discussionsArray.<DiscussionThread> | boolean <optional> Class discussion threads. Assume this class supports discussions, but not yet loaded, if this is true and that the class has no threads if this is an empty array. For LMSs that do not support discussions, either keep it undefined or set it to false. pagesArray.<Page> | boolean <optional> Class pages. Assume this class supports the pages feature, but not yet loaded, if true and that the class has no pages if this is an empty array. For LMSs that do not support pages, either keep it undefined or set it to false. newDiscussionThreadURLstring <optional> A URL the user can visit to create a new discussion thread in this class homepageboolean <optional> True if the class has a homepage. If a class has a homepage, dtpsLMS.fetchHomepage must be implemented. termstring <optional> Class term colorstring <optional> Class color gradenumber <optional> Current percentage grade in the class (a number from 0 to 100) letterstring <optional> Current letter grade in the class previousLetterstring <optional> Automatically managed by DTPS. The previous letter grade in this class, based on local grade history. imagestring <optional> URL to the class background image teacherUser <optional> Class teacher. If the class has multiple teachers, this is the primary teacher. hasGradebookboolean <optional> Automatically managed by DTPS. True if the class should show the gradebook tab. gradeCalculationobject <optional> Automatically managed by DTPS. If custom grade calculation is implemented, this will be the results from custom grade calculation returned by dtpsLMS.calculateGrade. videoMeetingURLstring <optional> The URL used to join this class' online meeting. If dtpsLMS.fetchMeetingURL is implemented, DTPS will use it to get the meeting URL if this property is undefined. If this property is null, DTPS will not call dtpsLMS.fetchMeeting URL for the class. Details