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.
Files changed (19) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +6 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +8 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/Rostering.d.ts +6 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +28 -0
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useRostering.d.ts +23 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +7 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +2 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +5 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +3 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/hooks/useGetUserList.d.ts +13 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/hooks/useResendMail.d.ts +5 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/OneRosterSystem/views/WelcomeEmailResend.d.ts +3 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/services/roster.d.ts +4 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/services/sandbox.d.ts +1 -1
  15. package/dist/index.js +7 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +7 -3
  18. package/dist/index.modern.js.map +1 -1
  19. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ errorImportRest?: string | null;
4
+ }
5
+ declare const ImportOneRoster: FC<Props>;
6
+ export default ImportOneRoster;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { ROSTER_CONFIG } from "../utils/types";
3
+ interface Props {
4
+ rosterConfig: ROSTER_CONFIG;
5
+ updateData: Function;
6
+ }
7
+ declare const RosterConfigForm: FC<Props>;
8
+ export default RosterConfigForm;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ disabledImportRest: boolean;
4
+ }
5
+ declare const Rostering: FC<Props>;
6
+ export default Rostering;
@@ -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;
@@ -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,7 @@
1
+ import { ROSTER_CONFIG } from "../utils/types";
2
+ declare const useRosterConfigForm: () => {
3
+ rosterConfig: ROSTER_CONFIG;
4
+ errorImportRest: string | null;
5
+ updateData: (values: any) => Promise<void>;
6
+ };
7
+ export default useRosterConfigForm;
@@ -0,0 +1,2 @@
1
+ export declare const CSV_FILE_NAMES: string[];
2
+ export declare const INVALID_CLIENT_ROSTER_CONFIG = "Response status code does not indicate success: 403 ().";
@@ -0,0 +1,5 @@
1
+ export declare type ROSTER_CONFIG = {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ endPointUrl: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OneRoster: () => JSX.Element;
3
+ export default OneRoster;
@@ -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,5 @@
1
+ declare const useResendMail: () => {
2
+ handleSendMultiUsers: (listUserIds: any) => void;
3
+ handleSendSingleUser: (userId: string) => void;
4
+ };
5
+ export default useResendMail;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const WelcomeEmailResend: () => JSX.Element;
3
+ export default WelcomeEmailResend;
@@ -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;