added a lot of canvas data types

This commit is contained in:
2024-08-21 11:19:01 -06:00
parent 56789f6408
commit 9e6fdeb4c7
42 changed files with 8214 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
import { UserDisplayModel } from "../users/userDisplayModel";
import { FileAttachmentModel } from "./canvasFileAttachmentModel";
export interface DiscussionTopicModel {
id: number;
title: string;
message: string;
html_url: string;
read_state: string;
subscription_hold: string;
assignment_id: number;
lock_explanation: string;
user_name: string;
topic_children: number[];
podcast_url: string;
discussion_type: string;
attachments: FileAttachmentModel[];
permissions: { [key: string]: boolean };
author: UserDisplayModel;
unread_count?: number;
subscribed?: boolean;
posted_at?: string; // ISO 8601 date string
last_reply_at?: string; // ISO 8601 date string
require_initial_post?: boolean;
user_can_see_posts?: boolean;
discussion_subentry_count?: number;
delayed_post_at?: string; // ISO 8601 date string
published?: boolean;
lock_at?: string; // ISO 8601 date string
locked?: boolean;
pinned?: boolean;
locked_for_user?: boolean;
lock_info?: any;
group_topic_children?: any;
root_topic_id?: number;
group_category_id?: number;
allow_rating?: boolean;
only_graders_can_rate?: boolean;
sort_by_rating?: boolean;
}