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.
Files changed (29) hide show
  1. package/HadrachaPage/HadrachaPageResourceSubscription.d.ts +2 -0
  2. package/HadrachaPage/UserActivityBaseRequest.d.ts +4 -0
  3. package/HadrachaPage/fileSubmissions/FileSubmissionData.d.ts +10 -0
  4. package/HadrachaPage/fileSubmissions/FileSubmissionsData.d.ts +5 -0
  5. package/HadrachaPage/fileSubmissions/FileSubmissionsData.js +1 -0
  6. package/HadrachaPage/fileSubmissions/SubmissionState.d.ts +1 -0
  7. package/HadrachaPage/fileSubmissions/SubmissionState.js +1 -0
  8. package/HadrachaPage/fileSubmissions/UploadSubmissionFileRequest.d.ts +8 -0
  9. package/HadrachaPage/fileSubmissions/UploadSubmissionFileRequest.js +1 -0
  10. package/HadrachaPage/fileSubmissions/index.d.ts +7 -0
  11. package/HadrachaPage/fileSubmissions/index.js +7 -0
  12. package/HadrachaPage/index.d.ts +2 -0
  13. package/HadrachaPage/index.js +2 -0
  14. package/Previews/ResourcePreview.d.ts +1 -0
  15. package/Resource/Resource.d.ts +1 -0
  16. package/Shared/{NumericSliderIsValidChange.d.ts → NumericSliderInputsValidationChange.d.ts} +1 -1
  17. package/Shared/NumericSliderInputsValidationChange.js +1 -0
  18. package/Shared/index.d.ts +1 -1
  19. package/Shared/index.js +1 -1
  20. package/package.json +1 -1
  21. package/Resource/Quiz/Answer.model.d.ts +0 -8
  22. package/Resource/Quiz/Answer.model.js +0 -8
  23. package/Resource/Quiz/Question.model.d.ts +0 -18
  24. package/Resource/Quiz/Question.model.js +0 -14
  25. package/Resource/Quiz/Quiz.model.d.ts +0 -9
  26. package/Resource/Quiz/Quiz.model.js +0 -8
  27. package/Shared/NumericSliderRangeValidationChange.d.ts +0 -4
  28. /package/{Shared/NumericSliderIsValidChange.js → HadrachaPage/UserActivityBaseRequest.js} +0 -0
  29. /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,4 @@
1
+ export type UserActivityBaseRequest = {
2
+ hadrachaPageId: string;
3
+ resourceId: string;
4
+ };
@@ -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,5 @@
1
+ import { FileSubmissionData } from './FileSubmissionData';
2
+ export type FileSubmissionsData = {
3
+ teacherFeedbacks?: FileSubmissionData[] | null;
4
+ studentSubmissions?: FileSubmissionData[] | null;
5
+ };
@@ -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,7 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./FileSubmissionData";
5
+ export * from "./FileSubmissionsData";
6
+ export * from "./SubmissionState";
7
+ export * from "./UploadSubmissionFileRequest";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./FileSubmissionData";
5
+ export * from "./FileSubmissionsData";
6
+ export * from "./SubmissionState";
7
+ export * from "./UploadSubmissionFileRequest";
@@ -15,3 +15,5 @@ export * from "./HadrachaPageStylePatch";
15
15
  export * from "./HadrachaPageUserSubscription";
16
16
  export * from "./HadrachaViewStyle";
17
17
  export * from "./HadrachaViewStylePatch";
18
+ export * from "./UserActivityBaseRequest";
19
+ export * from "./fileSubmissions/index";
@@ -15,3 +15,5 @@ export * from "./HadrachaPageStylePatch";
15
15
  export * from "./HadrachaPageUserSubscription";
16
16
  export * from "./HadrachaViewStyle";
17
17
  export * from "./HadrachaViewStylePatch";
18
+ export * from "./UserActivityBaseRequest";
19
+ export * from "./fileSubmissions/index";
@@ -12,5 +12,6 @@ export type ResourcePreview = {
12
12
  lengthInMinutes?: number;
13
13
  text?: string;
14
14
  displayContentOnHadrachaPage?: boolean;
15
+ enableFileSubmission?: boolean;
15
16
  gradingMethodData?: GradingMethodData;
16
17
  };
@@ -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;
@@ -1,4 +1,4 @@
1
- export type NumericSliderIsValidChange = {
1
+ export type NumericSliderInputsValidationChange = {
2
2
  isMinInputValid: boolean;
3
3
  isMaxInputValid: boolean;
4
4
  };
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "herum-types",
3
- "version": "1.0.13",
3
+ "version": "1.0.15-ofir-beta",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -1,8 +0,0 @@
1
- export declare class Answer {
2
- index?: number;
3
- content?: string;
4
- isCorrect?: boolean;
5
- note?: string;
6
- id: string;
7
- isCollapsed?: boolean;
8
- }
@@ -1,8 +0,0 @@
1
- export class Answer {
2
- index;
3
- content;
4
- isCorrect;
5
- note;
6
- id;
7
- isCollapsed;
8
- }
@@ -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,14 +0,0 @@
1
- export class Question {
2
- id;
3
- text;
4
- index;
5
- closedContent;
6
- freeAnswerContent;
7
- matchingContent;
8
- questionType;
9
- answerNote;
10
- weight;
11
- fileData;
12
- isSkipped;
13
- isValid;
14
- }
@@ -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
- }
@@ -1,8 +0,0 @@
1
- export class Quiz {
2
- numberOfRequiredQuestions;
3
- displayName;
4
- questions;
5
- hasSubmitted;
6
- areQuestionsOrdered;
7
- displayCorrectAnswersAfterSubmission;
8
- }
@@ -1,4 +0,0 @@
1
- export type NumericSliderRangeValidationChange = {
2
- isMinInputValid: boolean;
3
- isMaxInputValid: boolean;
4
- };