mario-education 2.4.231-release → 2.4.232-release
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/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +8 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/Rostering.d.ts +6 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +28 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts +23 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +7 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/hooks/useGetUserList.d.ts +13 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/hooks/useResendMail.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/views/WelcomeEmailResend.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/roster.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/sandbox.d.ts +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadInfo {
|
|
3
|
+
error?: string;
|
|
4
|
+
success?: boolean;
|
|
5
|
+
isUploading?: boolean;
|
|
6
|
+
importedFiles?: string;
|
|
7
|
+
rejectedFiles?: string;
|
|
8
|
+
comment?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const useImportOneRoster: ({ errorImportRest }: {
|
|
11
|
+
errorImportRest: any;
|
|
12
|
+
}) => {
|
|
13
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
14
|
+
fileProgress: number;
|
|
15
|
+
uploadInfo: UploadInfo | undefined;
|
|
16
|
+
uploadIcon: JSX.Element | undefined;
|
|
17
|
+
uploadMessage: JSX.Element | undefined;
|
|
18
|
+
importIcon: JSX.Element | undefined;
|
|
19
|
+
importMessage: JSX.Element | undefined;
|
|
20
|
+
restApiInfo: object | undefined;
|
|
21
|
+
restApiProgress: JSX.Element[] | undefined;
|
|
22
|
+
setFileProgress: React.Dispatch<React.SetStateAction<number>>;
|
|
23
|
+
handleFileChange: () => Promise<void>;
|
|
24
|
+
importRosterZipFile: (file: File) => Promise<void>;
|
|
25
|
+
handleChooseZipFile: () => void;
|
|
26
|
+
handleImportFromRestfulApi: () => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
export default useImportOneRoster;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadInfo {
|
|
3
|
+
error?: string;
|
|
4
|
+
success?: string;
|
|
5
|
+
isUploading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const useRostering: () => {
|
|
8
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
fileProgress: number;
|
|
10
|
+
uploadInfo: UploadInfo | undefined;
|
|
11
|
+
uploadIcon: JSX.Element | undefined;
|
|
12
|
+
uploadMessage: JSX.Element | undefined;
|
|
13
|
+
importIcon: JSX.Element | undefined;
|
|
14
|
+
importMessage: JSX.Element | undefined;
|
|
15
|
+
restApiInfo: object | undefined;
|
|
16
|
+
restApiProgress: JSX.Element[] | undefined;
|
|
17
|
+
setFileProgress: React.Dispatch<React.SetStateAction<number>>;
|
|
18
|
+
handleFileChange: () => Promise<void>;
|
|
19
|
+
importRosterZipFile: (file: File) => Promise<void>;
|
|
20
|
+
handleChooseZipFile: () => void;
|
|
21
|
+
handleImportFromRestfulApi: () => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export default useRostering;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FilterTypes } from "../configs/constants";
|
|
2
|
+
declare const useGetUserList: () => {
|
|
3
|
+
handleSyncRosterUsers: () => Promise<void>;
|
|
4
|
+
totalItem: number;
|
|
5
|
+
userList: never[];
|
|
6
|
+
filters: FilterTypes;
|
|
7
|
+
changeFilters: (updatedFilters: any) => void;
|
|
8
|
+
handleSelectAll: () => void;
|
|
9
|
+
handleClickCheck: (e: any) => void;
|
|
10
|
+
isCheckAll: boolean;
|
|
11
|
+
isCheck: any;
|
|
12
|
+
};
|
|
13
|
+
export default useGetUserList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getRosterConfig: () => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const updateRosterConfig: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const importRosterFromFile: (body: FormData, cb?: ((progressEvent: ProgressEvent) => void) | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const importRosterFromRestfulApi: (fileName: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const switchSandboxApi: () => Promise<import("axios").AxiosResponse<any>>;
|
|
1
|
+
export declare const switchSandboxApi: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
2
|
export declare const restoreSandboxApi: () => Promise<import("axios").AxiosResponse<any>>;
|
|
3
3
|
export declare const migrateSandboxApi: () => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/index.js
CHANGED
|
@@ -43479,8 +43479,12 @@ var OneRosterContainer = function OneRosterContainer() {
|
|
|
43479
43479
|
};
|
|
43480
43480
|
|
|
43481
43481
|
var SANDBOX_URL = marioCore.BASE_URL + "/api/sandbox";
|
|
43482
|
-
var switchSandboxApi = function switchSandboxApi() {
|
|
43483
|
-
return marioCore.api.post(SANDBOX_URL + "/switch"
|
|
43482
|
+
var switchSandboxApi = function switchSandboxApi(isAdmin) {
|
|
43483
|
+
return marioCore.api.post(SANDBOX_URL + "/switch", null, {
|
|
43484
|
+
params: {
|
|
43485
|
+
isAdmin: isAdmin
|
|
43486
|
+
}
|
|
43487
|
+
});
|
|
43484
43488
|
};
|
|
43485
43489
|
var restoreSandboxApi = function restoreSandboxApi() {
|
|
43486
43490
|
return marioCore.api.post(SANDBOX_URL + "/restore");
|
|
@@ -43512,7 +43516,7 @@ var useSandbox = function useSandbox() {
|
|
|
43512
43516
|
dispatch(marioCore.setLoading(true));
|
|
43513
43517
|
|
|
43514
43518
|
var _temp4 = _catch(function () {
|
|
43515
|
-
return Promise.resolve(switchSandboxApi()).then(function (res) {
|
|
43519
|
+
return Promise.resolve(switchSandboxApi(true)).then(function (res) {
|
|
43516
43520
|
var _res$data = res.data,
|
|
43517
43521
|
isSandboxMode = _res$data.isSandboxMode,
|
|
43518
43522
|
userId = _res$data.userId;
|