herum-types 1.0.13 → 1.0.15-ofir-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HadrachaPage/HadrachaPageResourceSubscription.d.ts +2 -0
- package/HadrachaPage/UserActivityBaseRequest.d.ts +4 -0
- package/HadrachaPage/fileSubmissions/FileSubmissionData.d.ts +10 -0
- package/HadrachaPage/fileSubmissions/FileSubmissionsData.d.ts +5 -0
- package/HadrachaPage/fileSubmissions/FileSubmissionsData.js +1 -0
- package/HadrachaPage/fileSubmissions/SubmissionState.d.ts +1 -0
- package/HadrachaPage/fileSubmissions/SubmissionState.js +1 -0
- package/HadrachaPage/fileSubmissions/UploadSubmissionFileRequest.d.ts +8 -0
- package/HadrachaPage/fileSubmissions/UploadSubmissionFileRequest.js +1 -0
- package/HadrachaPage/fileSubmissions/index.d.ts +7 -0
- package/HadrachaPage/fileSubmissions/index.js +7 -0
- package/HadrachaPage/index.d.ts +2 -0
- package/HadrachaPage/index.js +2 -0
- package/Previews/ResourcePreview.d.ts +1 -0
- package/Resource/Resource.d.ts +1 -0
- package/Shared/{NumericSliderIsValidChange.d.ts → NumericSliderInputsValidationChange.d.ts} +1 -1
- package/Shared/NumericSliderInputsValidationChange.js +1 -0
- package/Shared/index.d.ts +1 -1
- package/Shared/index.js +1 -1
- package/package.json +1 -1
- package/Resource/Quiz/Answer.model.d.ts +0 -8
- package/Resource/Quiz/Answer.model.js +0 -8
- package/Resource/Quiz/Question.model.d.ts +0 -18
- package/Resource/Quiz/Question.model.js +0 -14
- package/Resource/Quiz/Quiz.model.d.ts +0 -9
- package/Resource/Quiz/Quiz.model.js +0 -8
- package/Shared/NumericSliderRangeValidationChange.d.ts +0 -4
- /package/{Shared/NumericSliderIsValidChange.js → HadrachaPage/UserActivityBaseRequest.js} +0 -0
- /package/{Shared/NumericSliderRangeValidationChange.js → HadrachaPage/fileSubmissions/FileSubmissionData.js} +0 -0
|
@@ -2,11 +2,13 @@ import { GradeData } from "../HadrachaPage/GradeData";
|
|
|
2
2
|
import { ResourcePreview } from "../Previews/ResourcePreview";
|
|
3
3
|
import { UserPreview } from "../Previews/UserPreview";
|
|
4
4
|
import { QuizSubscription } from "../User/QuizSubscription/QuizSubscription";
|
|
5
|
+
import { FileSubmissionsData } from './fileSubmissions/FileSubmissionsData';
|
|
5
6
|
export type HadrachaPageResourceSubscription = {
|
|
6
7
|
resourcePreview?: ResourcePreview;
|
|
7
8
|
lastActivityTime?: Date;
|
|
8
9
|
grade?: GradeData;
|
|
9
10
|
quizData?: QuizSubscription;
|
|
11
|
+
fileSubmissions?: FileSubmissionsData | null;
|
|
10
12
|
gradingUser?: UserPreview;
|
|
11
13
|
mediaProgressPercentage?: number;
|
|
12
14
|
lastNotificationTime?: Date;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserPreview } from '../../Previews/UserPreview';
|
|
2
|
+
import { FileData } from '../../Shared/FileData';
|
|
3
|
+
export type FileSubmissionData = {
|
|
4
|
+
id?: string;
|
|
5
|
+
uploadingUser?: UserPreview;
|
|
6
|
+
uploadedFile?: Partial<FileData>;
|
|
7
|
+
isSubmitted?: boolean;
|
|
8
|
+
submissionTime?: Date | null;
|
|
9
|
+
note?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SubmissionState = 'pending' | 'draft' | 'submitted' | 'checked';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserActivityBaseRequest } from '../UserActivityBaseRequest';
|
|
2
|
+
import { FileSubmissionData } from './FileSubmissionData';
|
|
3
|
+
export type UploadSubmissionFileRequest = UserActivityBaseRequest & Partial<FileSubmissionData> & {
|
|
4
|
+
userId?: string;
|
|
5
|
+
note?: string;
|
|
6
|
+
submissionFileId?: string;
|
|
7
|
+
isSubmitted?: boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/HadrachaPage/index.d.ts
CHANGED
package/HadrachaPage/index.js
CHANGED
package/Resource/Resource.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type Resource = Omit<ResourcePreview, 'exercise'> & {
|
|
|
16
16
|
additionalFiles?: ResourceAdditionalFile[];
|
|
17
17
|
text?: string;
|
|
18
18
|
areCommentsEnabled?: boolean;
|
|
19
|
+
enableFileSubmission?: boolean;
|
|
19
20
|
resourceFile?: Partial<FileData>;
|
|
20
21
|
previewImage?: Partial<FileData>;
|
|
21
22
|
displayContentOnHadrachaPage?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Shared/index.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ export * from "./MediaSettings";
|
|
|
21
21
|
export * from "./MenuItem";
|
|
22
22
|
export * from "./ModelInfo";
|
|
23
23
|
export * from "./Note";
|
|
24
|
+
export * from "./NumericSliderInputsValidationChange";
|
|
24
25
|
export * from "./NumericSliderRange";
|
|
25
|
-
export * from "./NumericSliderRangeValidationChange";
|
|
26
26
|
export * from "./PageSection";
|
|
27
27
|
export * from "./Permission";
|
|
28
28
|
export * from "./ProgressOverView";
|
package/Shared/index.js
CHANGED
|
@@ -21,8 +21,8 @@ export * from "./MediaSettings";
|
|
|
21
21
|
export * from "./MenuItem";
|
|
22
22
|
export * from "./ModelInfo";
|
|
23
23
|
export * from "./Note";
|
|
24
|
+
export * from "./NumericSliderInputsValidationChange";
|
|
24
25
|
export * from "./NumericSliderRange";
|
|
25
|
-
export * from "./NumericSliderRangeValidationChange";
|
|
26
26
|
export * from "./PageSection";
|
|
27
27
|
export * from "./Permission";
|
|
28
28
|
export * from "./ProgressOverView";
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FileData } from "../../Shared/FileData";
|
|
2
|
-
import { MatchingQuestionContent } from "../ServerQuizData";
|
|
3
|
-
import { ClosedQuestionContent } from "./ClosedQuestionContent";
|
|
4
|
-
import { FreeAnswerQuestionContent } from "./FreeAnswerQuestionContent";
|
|
5
|
-
export declare class Question {
|
|
6
|
-
id: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
index?: number;
|
|
9
|
-
closedContent?: ClosedQuestionContent;
|
|
10
|
-
freeAnswerContent?: FreeAnswerQuestionContent;
|
|
11
|
-
matchingContent?: MatchingQuestionContent;
|
|
12
|
-
questionType?: string;
|
|
13
|
-
answerNote?: string;
|
|
14
|
-
weight?: number;
|
|
15
|
-
fileData?: Partial<FileData>;
|
|
16
|
-
isSkipped?: boolean;
|
|
17
|
-
isValid?: boolean;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Question } from "./Question.model";
|
|
2
|
-
export declare class Quiz {
|
|
3
|
-
numberOfRequiredQuestions?: number;
|
|
4
|
-
displayName: string;
|
|
5
|
-
questions: Question[];
|
|
6
|
-
hasSubmitted: boolean;
|
|
7
|
-
areQuestionsOrdered: boolean;
|
|
8
|
-
displayCorrectAnswersAfterSubmission?: boolean;
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|