From 25fcea51180e86a512c84987fcc0e04b8be18f35 Mon Sep 17 00:00:00 2001 From: Seth Battis Date: Sun, 19 Jan 2025 10:09:28 -0500 Subject: [PATCH] chore(datadirect): issue tracking --- .../src/api/Assignment2/List/Payload.ts | 6 +++--- .../UserAssignmentDetailsGetAllData/Response.ts | 2 +- .../src/api/Assignment2/crud/Payload.ts | 10 +++++----- .../datadirect/src/api/LtiTool/Edit/Payload.ts | 2 +- .../api/assessment/AssessmentGetSpa/Response.ts | 16 +++++++++------- .../datadirect/common/ContentItem/Assignment.ts | 6 +++--- .../api/gradebook/hydrategradebook/Response.ts | 2 +- .../api/topic/topicassignmentsget/Response.ts | 6 +++--- .../src/api/webapp/context/Response.ts | 4 ++-- 9 files changed, 28 insertions(+), 26 deletions(-) diff --git a/packages/datadirect/src/api/Assignment2/List/Payload.ts b/packages/datadirect/src/api/Assignment2/List/Payload.ts index becfe35..4085a3f 100644 --- a/packages/datadirect/src/api/Assignment2/List/Payload.ts +++ b/packages/datadirect/src/api/Assignment2/List/Payload.ts @@ -59,7 +59,7 @@ type SectionLink = { DropBoxSubmitted: boolean | null; PartialInd: boolean | null; PartialCount: number | null; - UsersList: []; + UsersList: any[]; // TODO Assignment2/List.Payload.SectionLink.UsersList type }; type LinkItem = { @@ -114,8 +114,8 @@ export type Payload = { Factor: number | NumericString; RubricId: number; EvaluationMethod: number; - AssignmentSkills: []; - AssignmentCourses: []; + AssignmentSkills: any[]; // TODO Assignment2/List.Payload.AssignmentSkills type + AssignmentCourses: any[]; // TODO Assignment2/List.Payload.AssignmentCourses type 'inc-rubric': boolean; IncRubric: boolean; gradebook_ind: boolean; diff --git a/packages/datadirect/src/api/Assignment2/UserAssignmentDetailsGetAllData/Response.ts b/packages/datadirect/src/api/Assignment2/UserAssignmentDetailsGetAllData/Response.ts index 1c8fe41..2595780 100644 --- a/packages/datadirect/src/api/Assignment2/UserAssignmentDetailsGetAllData/Response.ts +++ b/packages/datadirect/src/api/Assignment2/UserAssignmentDetailsGetAllData/Response.ts @@ -92,7 +92,7 @@ export type Response = { PartialInd: boolean; LtiProviderId: number; LtiProviderName: string; - Skills: []; + Skills: any[]; // TODO Assignment2/UserAssignmentDetailsGetAllData.Response.Skills type Discussion: { TeacherFirstname: string; TeacherLastname: string; diff --git a/packages/datadirect/src/api/Assignment2/crud/Payload.ts b/packages/datadirect/src/api/Assignment2/crud/Payload.ts index ceb5324..76fdf34 100644 --- a/packages/datadirect/src/api/Assignment2/crud/Payload.ts +++ b/packages/datadirect/src/api/Assignment2/crud/Payload.ts @@ -78,7 +78,7 @@ type SectionLink = { DropBoxSubmitted: boolean; PartialInd: boolean; PartialCount: number; - UsersList: []; + UsersList: any[]; // TODO Assignment2/crud.Payload.SectionLink.UsersList type }; type LinkItem = { @@ -106,8 +106,8 @@ type Assignment = { Factor: number; RubricId: number; EvaluationMethod: number; - AssignmentSkills: []; - AssignmentCourses: []; + AssignmentSkills: any[]; // TODO Assignment2/crud.Payload.AssignmentSkills type + AssignmentCourses: any[]; // TODO Assignment2/crud.Payload.AssignmentCourses type 'inc-rubric': boolean; IncRubric: boolean; gradebook_ind: boolean; @@ -119,8 +119,8 @@ type Assignment = { /** h:i:s A */ DropboxTimeLate: TimeString; SectionLinks: SectionLink[]; - AssignmentUsers: []; - DownloadItems: []; + AssignmentUsers: any[]; // TODO Assignment2/crud.Payload.AssignmentUsers type + DownloadItems: any[]; // TODO Assignment2/crud.Payload.DownloadItems type LinkItems: LinkItem[]; notifBodyControl_ShortDescription: HTMLString; notifBodyControl_LongDescription: HTMLString; diff --git a/packages/datadirect/src/api/LtiTool/Edit/Payload.ts b/packages/datadirect/src/api/LtiTool/Edit/Payload.ts index e9c7f4d..da4850a 100644 --- a/packages/datadirect/src/api/LtiTool/Edit/Payload.ts +++ b/packages/datadirect/src/api/LtiTool/Edit/Payload.ts @@ -23,6 +23,6 @@ export type Payload = { Gradeable: boolean; LtiVersionId: null | any; CredentialsTypeId: number; - Parameters: []; + Parameters: any[]; FieldsToNull: ['LtiVersionId']; }; diff --git a/packages/datadirect/src/api/assessment/AssessmentGetSpa/Response.ts b/packages/datadirect/src/api/assessment/AssessmentGetSpa/Response.ts index 222fb7c..64530b3 100644 --- a/packages/datadirect/src/api/assessment/AssessmentGetSpa/Response.ts +++ b/packages/datadirect/src/api/assessment/AssessmentGetSpa/Response.ts @@ -4,6 +4,8 @@ import { URLString } from '@battis/descriptive-types'; +// TODO assessment/AssessmentGetSpa types + type MultipleChoiceAnswer = { AssessmentQuestionAnswerId: number; AssessmentQuestionId: number; @@ -40,7 +42,7 @@ type MultipleChoice = { AssessmentId: number; RandomizeAnswers: boolean; PartialCredit: boolean; - MatchingAnswers: []; + MatchingAnswers: any[]; AssessmentQuestionSubBankId: number; AssessmentQuestionBankId: number; ModifiedDate: DateTimeString; @@ -84,7 +86,7 @@ type FillInTheBlank = { AssessmentId: number; RandomizeAnswers: boolean; PartialCredit: boolean; - MatchingAnswers: []; + MatchingAnswers: any[]; AssessmentQuestionSubBankId: number; AssessmentQuestionBankId: number; ModifiedDate: DateTimeString; @@ -98,7 +100,7 @@ type Essay = { SortOrder: number; Points: number; Description: HTMLString; - Answers: []; + Answers: any[]; QuestionType: 'Essay'; PossibleAnswers: string; CharacterLimit: number; @@ -115,7 +117,7 @@ type Essay = { AssessmentId: number; RandomizeAnswers: boolean; PartialCredit: boolean; - MatchingAnswers: []; + MatchingAnswers: any[]; AssessmentQuestionSubBankId: number; AssessmentQuestionBankId: number; ModifiedDate: DateTimeString; @@ -159,7 +161,7 @@ type TrueFalse = { AssessmentId: number; RandomizeAnswers: boolean; PartialCredit: boolean; - MatchingAnswers: []; + MatchingAnswers: any[]; AssessmentQuestionSubBankId: number; AssessmentQuestionBankId: number; ModifiedDate: DateTimeString; @@ -250,11 +252,11 @@ type Photo = { photo_alttext: string; hover_alttext: string; LongDescription: HTMLString; // TODO verify Assessment/AssessmentGetSpa/Response.Photo.LongDescription type (may just be string) - TagList: []; + TagList: any[]; FileEdited: boolean; IsHoverPhoto: boolean; PhotoEapEnabled: boolean; - ImageOps: []; + ImageOps: any[]; OriginalFilenameEditedUrl: URLString; LargeFilenameEditedUrl: URLString; ZoomFilenameEditedUrl: URLString; diff --git a/packages/datadirect/src/api/datadirect/common/ContentItem/Assignment.ts b/packages/datadirect/src/api/datadirect/common/ContentItem/Assignment.ts index 76f2388..580b685 100644 --- a/packages/datadirect/src/api/datadirect/common/ContentItem/Assignment.ts +++ b/packages/datadirect/src/api/datadirect/common/ContentItem/Assignment.ts @@ -24,9 +24,9 @@ export type Assignment = { LateInd: number; DropboxTimeLate: TimeString; SchoolId: number; - SectionLinks: []; - DownloadItems: []; - LinkItems: []; + SectionLinks: any[]; // TODO DataDirect/common/ContentItem/Assignment.SectionLinks type + DownloadItems: any[]; // TODO DataDirect/common/ContentItem/Assignment.DownloadItems type + LinkItems: any[]; // TODO DataDirect/common/ContentItem/Assignment.LinkItems type HasGrades: boolean; AssessmentInd: boolean; MaxScore: number; diff --git a/packages/datadirect/src/api/gradebook/hydrategradebook/Response.ts b/packages/datadirect/src/api/gradebook/hydrategradebook/Response.ts index bdaaed2..96cb6e5 100644 --- a/packages/datadirect/src/api/gradebook/hydrategradebook/Response.ts +++ b/packages/datadirect/src/api/gradebook/hydrategradebook/Response.ts @@ -144,7 +144,7 @@ export type DisplayOptions = { DisplayDroppedIndicator: boolean; ShowAssignmentTypePercent: boolean; ShowGradePercent: boolean; - AssignmentTypesFilterList: []; + AssignmentTypesFilterList: any[]; // TODO DataDirect/GradeBookMarkingPeriodList.DusplayOptions.AssignmentTypesFilterList type }; export type AssignmentGrade = { diff --git a/packages/datadirect/src/api/topic/topicassignmentsget/Response.ts b/packages/datadirect/src/api/topic/topicassignmentsget/Response.ts index ed5764b..281fca1 100644 --- a/packages/datadirect/src/api/topic/topicassignmentsget/Response.ts +++ b/packages/datadirect/src/api/topic/topicassignmentsget/Response.ts @@ -28,9 +28,9 @@ export type Item = { LateInd: number; DropboxTimeLate: TimeString; SchoolId: number; - SectionLinks: []; - DownloadItems: []; - LinkItems: []; + SectionLinks: any[]; // TODO DataDirect/topicassignmentsget.Response.SectionLinks type + DownloadItems: any[]; // TODO DataDirect/topicassignmentsget.Response.DownloadItems type + LinkItems: any[]; // TODO DataDirect/topicassignmentsget.Response.LinkItems type HasGrades: boolean; AssessmentInd: boolean; MaxScore: number; diff --git a/packages/datadirect/src/api/webapp/context/Response.ts b/packages/datadirect/src/api/webapp/context/Response.ts index e0971a3..f63dcb9 100644 --- a/packages/datadirect/src/api/webapp/context/Response.ts +++ b/packages/datadirect/src/api/webapp/context/Response.ts @@ -82,8 +82,8 @@ type UserInfo = { MiscBio: HTMLString; ResidentCounty: string; BirthPlace: string; - SpokenLanguages: []; - RaceSelections: []; + SpokenLanguages: any[]; // webapp/context.Response.SpokenLanguages type + RaceSelections: any[]; // webapp/context.Response.RaceSelections type VisaNumber: string; PassportNumber: string; StudentId: string;