mario-education 2.4.560-feedback → 2.4.561-feedback

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.
@@ -1,6 +1,8 @@
1
1
  import { FC } from "react";
2
+ import { DomainType } from "../configs/types";
2
3
  interface Props {
3
4
  errorImportRest?: string | null;
5
+ type?: DomainType;
4
6
  }
5
7
  declare const ImportOneRoster: FC<Props>;
6
8
  export default ImportOneRoster;
@@ -1,8 +1,9 @@
1
1
  import { FC } from "react";
2
- import { ROSTER_CONFIG } from "../configs/types";
2
+ import { DomainType, ROSTER_CONFIG } from "../configs/types";
3
3
  interface Props {
4
4
  rosterConfig: ROSTER_CONFIG;
5
5
  updateData: Function;
6
+ type?: DomainType;
6
7
  }
7
8
  declare const RosterConfigForm: FC<Props>;
8
9
  export default RosterConfigForm;
@@ -30,3 +30,7 @@ export declare type VERA_CROSS_CONFIG = {
30
30
  clientSecret: string;
31
31
  endPointUrl: string;
32
32
  };
33
+ export declare enum DomainType {
34
+ ClassLink = 0,
35
+ Clever = 1
36
+ }
@@ -7,8 +7,9 @@ interface UploadInfo {
7
7
  rejectedFiles?: string;
8
8
  comment?: string;
9
9
  }
10
- declare const useImportOneRoster: ({ errorImportRest }: {
10
+ declare const useImportOneRoster: ({ errorImportRest, type }: {
11
11
  errorImportRest: any;
12
+ type: any;
12
13
  }) => {
13
14
  inputRef: React.RefObject<HTMLInputElement>;
14
15
  fileProgress: number;
@@ -1,5 +1,5 @@
1
- import { ROSTER_CONFIG } from "../configs/types";
2
- declare const useRosterConfigForm: () => {
1
+ import { DomainType, ROSTER_CONFIG } from "../configs/types";
2
+ declare const useRosterConfigForm: (type: DomainType) => {
3
3
  rosterConfig: ROSTER_CONFIG;
4
4
  errorImportRest: string | null;
5
5
  updateData: (values: any) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ declare const OneRosterClever: () => JSX.Element;
2
+ export default OneRosterClever;