mario-core 2.9.166-level → 2.9.166-survey

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 (34) hide show
  1. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  2. package/dist/containers/Login/constant/type.d.ts +5 -0
  3. package/dist/containers/Login/constant/types.d.ts +7 -0
  4. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  5. package/dist/containers/Login/hooks/useForgotPassword.d.ts +2 -0
  6. package/dist/containers/Login/views/Login.d.ts +1 -0
  7. package/dist/containers/Login/views/ModelSelectRole.d.ts +4 -0
  8. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  9. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  10. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  11. package/dist/containers/User/constants/constants.d.ts +2 -1
  12. package/dist/containers/User/constants/types.d.ts +79 -0
  13. package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
  14. package/dist/containers/User/hooks/useAssignStudentList.d.ts +14 -0
  15. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  16. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  17. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  18. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  19. package/dist/containers/User/hooks/useUserDetail.d.ts +1 -0
  20. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  21. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  22. package/dist/index.css +34 -25
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +23212 -5556
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.modern.js +23213 -5558
  27. package/dist/index.modern.js.map +1 -1
  28. package/dist/services/accountService.d.ts +3 -0
  29. package/dist/services/userService.d.ts +9 -1
  30. package/dist/types/user.d.ts +3 -0
  31. package/dist/utils/amplitude.d.ts +1 -0
  32. package/package.json +101 -101
  33. package/dist/components/Buttons/SyncButtonIcon.d.ts +0 -7
  34. package/dist/layouts/TheLayoutAdmin.d.ts +0 -4
@@ -1,7 +1,9 @@
1
+ import { ICreatePassword } from "../containers/Login/constant/types";
1
2
  export declare const logIn: (data: any) => Promise<import("axios").AxiosResponse<any>>;
2
3
  export declare const checkToken: (token: string) => Promise<import("axios").AxiosResponse<any>>;
3
4
  export declare const getInfo: () => Promise<import("axios").AxiosResponse<any>>;
4
5
  export declare const forgotPassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const getUserNewPassword: (userId: string) => Promise<import("axios").AxiosResponse<any>>;
5
7
  export declare const checkResetToken: (token: string) => Promise<import("axios").AxiosResponse<any>>;
6
8
  export declare const resetPassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
7
9
  export declare const getStudentProfile: () => Promise<import("axios").AxiosResponse<any>>;
@@ -10,3 +12,4 @@ export declare const checkUserGoogle: (body: any) => Promise<import("axios").Axi
10
12
  export declare const getAllLoginTeacher: (param: any) => Promise<import("axios").AxiosResponse<any>>;
11
13
  export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any>>;
12
14
  export declare const registerUserStudent: (body: any) => Promise<import("axios").AxiosResponse<any>>;
15
+ export declare const createPassword: (data: ICreatePassword) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,5 +1,6 @@
1
1
  import { Filter, UserRosterFilter } from "../types/Filter";
2
- import { UserFilter, UserFilterField } from "../containers/User/constants/types";
2
+ import { ResetPasswordDto } from "../types/user";
3
+ import { AssignStudentDto, StudentFilter, UserFilter, UserFilterField } from "../containers/User/constants/types";
3
4
  export declare const get: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
4
5
  export declare const getRosterUser: (filter: UserFilter) => Promise<import("axios").AxiosResponse<any>>;
5
6
  export declare const getFilterRosterUser: (filter: UserFilterField) => Promise<import("axios").AxiosResponse<any>>;
@@ -15,3 +16,10 @@ export declare const switchAccountUser: (id: string) => Promise<import("axios").
15
16
  export declare const getRosterUsersApi: (filter: UserRosterFilter) => Promise<import("axios").AxiosResponse<any>>;
16
17
  export declare const getRosterUserBySourcedIdApi: (sourcedId: string) => Promise<import("axios").AxiosResponse<any>>;
17
18
  export declare const syncRosterUsersApi: () => Promise<import("axios").AxiosResponse<any>>;
19
+ export declare const resetPasswordForAdmin: (data: ResetPasswordDto) => Promise<import("axios").AxiosResponse<any>>;
20
+ export declare const getAssignStudentApi: (filter: StudentFilter) => Promise<import("axios").AxiosResponse<any>>;
21
+ export declare const getCounselors: () => Promise<import("axios").AxiosResponse<any>>;
22
+ export declare const getAssistants: () => Promise<import("axios").AxiosResponse<any>>;
23
+ export declare const getSecondaryTeachers: () => Promise<import("axios").AxiosResponse<any>>;
24
+ export declare const getTeachers: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
25
+ export declare const assignStudentsApi: (data?: AssignStudentDto[] | undefined) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,3 @@
1
+ export interface ResetPasswordDto {
2
+ userId: string;
3
+ }
@@ -0,0 +1 @@
1
+ export declare const initAmplitude: () => void;
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "mario-core",
3
- "version": "2.9.166-level",
4
- "description": "Contains core components && functions for Mario project",
5
- "author": "brss",
6
- "license": "MIT",
7
- "repository": "brss/mario-core",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.tsx",
11
- "engines": {
12
- "node": ">=10"
13
- },
14
- "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
16
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
- "prepare": "run-s build",
18
- "test": "run-s test:unit test:lint test:build",
19
- "test:build": "run-s build",
20
- "test:lint": "eslint .",
21
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
- "test:watch": "react-scripts test --env=jsdom"
23
- },
24
- "peerDependencies": {
25
- "react": "^16.0.0",
26
- "react-dom": "*",
27
- "react-router-dom": "*",
28
- "react-redux": "*"
29
- },
30
- "devDependencies": {
31
- "@rollup/plugin-commonjs": "11.0.2",
32
- "@testing-library/jest-dom": "^4.2.4",
33
- "@testing-library/react": "^9.5.0",
34
- "@testing-library/user-event": "^7.2.1",
35
- "@types/date-fns": "^2.6.0",
36
- "@types/jest": "^25.1.4",
37
- "@types/node": "^12.12.38",
38
- "@types/react": "^16.9.27",
39
- "@types/react-datepicker": "^3.1.7",
40
- "@types/react-dom": "^16.9.7",
41
- "@types/react-redux": "^7.1.16",
42
- "@types/react-router-dom": "^5.1.7",
43
- "@types/react-select": "^4.0.13",
44
- "@types/redux-logger": "^3.0.8",
45
- "@types/yup": "^0.29.11",
46
- "@typescript-eslint/eslint-plugin": "^2.26.0",
47
- "@typescript-eslint/parser": "^2.26.0",
48
- "babel-eslint": "^10.0.3",
49
- "cross-env": "^7.0.2",
50
- "eslint": "^6.8.0",
51
- "eslint-config-prettier": "^6.7.0",
52
- "eslint-config-standard": "^14.1.0",
53
- "eslint-config-standard-react": "^9.2.0",
54
- "eslint-plugin-import": "^2.18.2",
55
- "eslint-plugin-node": "^11.0.0",
56
- "eslint-plugin-prettier": "^3.3.1",
57
- "eslint-plugin-promise": "^4.2.1",
58
- "eslint-plugin-react": "^7.17.0",
59
- "eslint-plugin-standard": "^4.0.1",
60
- "gh-pages": "^2.2.0",
61
- "microbundle-crl": "^0.13.10",
62
- "npm-run-all": "^4.1.5",
63
- "prettier": "^2.0.4",
64
- "react-scripts": "^3.4.1",
65
- "redux-logger": "^3.0.6",
66
- "typescript": "^3.7.5"
67
- },
68
- "files": [
69
- "dist"
70
- ],
71
- "dependencies": {
72
- "@coreui/icons": "2.0.0-rc.0",
73
- "@coreui/icons-react": "1.0.2",
74
- "@coreui/react": "3.4.0",
75
- "@reduxjs/toolkit": "^1.5.0",
76
- "@tinymce/tinymce-react": "^3.9.0",
77
- "@types/amplitude-js": "^8.16.2",
78
- "@types/react-notifications-component": "2.4.0",
79
- "amplitude-js": "^8.18.5",
80
- "axios": "^0.21.1",
81
- "bootstrap": "^4.6.0",
82
- "date-fns": "^2.19.0",
83
- "formik": "^2.2.6",
84
- "i18next": "^19.8.7",
85
- "link": "^1.5.1",
86
- "moment": "^2.29.1",
87
- "node-sass": "^5.0.0",
88
- "pusher-js": "^7.0.3",
89
- "react-datepicker": "^3.6.0",
90
- "react-google-login": "^5.2.2",
91
- "react-google-recaptcha-v3": "^1.9.3",
92
- "react-i18next": "^11.8.5",
93
- "react-icons": "^4.2.0",
94
- "react-notifications-component": "3.0.4",
95
- "react-select": "^4.1.0",
96
- "reactstrap": "^8.9.0",
97
- "redux-thunk": "^2.3.0",
98
- "symbol-observable": "^4.0.0",
99
- "yup": "^0.32.9"
100
- }
101
- }
1
+ {
2
+ "name": "mario-core",
3
+ "version": "2.9.166-survey",
4
+ "description": "Contains core components && functions for Mario project",
5
+ "author": "brss",
6
+ "license": "MIT",
7
+ "repository": "brss/mario-core",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.tsx",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "scripts": {
15
+ "build": "microbundle-crl --no-compress --format modern,cjs",
16
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
+ "prepare": "run-s build",
18
+ "test": "run-s test:unit test:lint test:build",
19
+ "test:build": "run-s build",
20
+ "test:lint": "eslint .",
21
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
+ "test:watch": "react-scripts test --env=jsdom"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^16.0.0",
26
+ "react-dom": "*",
27
+ "react-router-dom": "*",
28
+ "react-redux": "*"
29
+ },
30
+ "devDependencies": {
31
+ "@rollup/plugin-commonjs": "11.0.2",
32
+ "@testing-library/jest-dom": "^4.2.4",
33
+ "@testing-library/react": "^9.5.0",
34
+ "@testing-library/user-event": "^7.2.1",
35
+ "@types/date-fns": "^2.6.0",
36
+ "@types/jest": "^25.1.4",
37
+ "@types/node": "^12.12.38",
38
+ "@types/react": "^16.9.27",
39
+ "@types/react-datepicker": "^3.1.7",
40
+ "@types/react-dom": "^16.9.7",
41
+ "@types/react-redux": "^7.1.16",
42
+ "@types/react-router-dom": "^5.1.7",
43
+ "@types/react-select": "^4.0.13",
44
+ "@types/redux-logger": "^3.0.8",
45
+ "@types/yup": "^0.29.11",
46
+ "@typescript-eslint/eslint-plugin": "^2.26.0",
47
+ "@typescript-eslint/parser": "^2.26.0",
48
+ "babel-eslint": "^10.0.3",
49
+ "cross-env": "^7.0.2",
50
+ "eslint": "^6.8.0",
51
+ "eslint-config-prettier": "^6.7.0",
52
+ "eslint-config-standard": "^14.1.0",
53
+ "eslint-config-standard-react": "^9.2.0",
54
+ "eslint-plugin-import": "^2.18.2",
55
+ "eslint-plugin-node": "^11.0.0",
56
+ "eslint-plugin-prettier": "^3.3.1",
57
+ "eslint-plugin-promise": "^4.2.1",
58
+ "eslint-plugin-react": "^7.17.0",
59
+ "eslint-plugin-standard": "^4.0.1",
60
+ "gh-pages": "^2.2.0",
61
+ "microbundle-crl": "^0.13.10",
62
+ "npm-run-all": "^4.1.5",
63
+ "prettier": "^2.0.4",
64
+ "react-scripts": "^3.4.1",
65
+ "redux-logger": "^3.0.6",
66
+ "typescript": "^3.7.5"
67
+ },
68
+ "files": [
69
+ "dist"
70
+ ],
71
+ "dependencies": {
72
+ "@coreui/icons": "2.0.0-rc.0",
73
+ "@coreui/icons-react": "1.0.2",
74
+ "@coreui/react": "3.4.0",
75
+ "@reduxjs/toolkit": "^1.5.0",
76
+ "@tinymce/tinymce-react": "^3.9.0",
77
+ "@types/amplitude-js": "^8.16.2",
78
+ "@types/react-notifications-component": "2.4.0",
79
+ "amplitude-js": "^8.18.5",
80
+ "axios": "^0.21.1",
81
+ "bootstrap": "^4.6.0",
82
+ "date-fns": "^2.19.0",
83
+ "formik": "^2.2.6",
84
+ "i18next": "^19.8.7",
85
+ "link": "^1.5.1",
86
+ "moment": "^2.29.1",
87
+ "node-sass": "^5.0.0",
88
+ "pusher-js": "^7.0.3",
89
+ "react-datepicker": "^3.6.0",
90
+ "react-google-login": "^5.2.2",
91
+ "react-google-recaptcha-v3": "^1.9.3",
92
+ "react-i18next": "^11.8.5",
93
+ "react-icons": "^4.2.0",
94
+ "react-notifications-component": "3.0.4",
95
+ "react-select": "^4.1.0",
96
+ "reactstrap": "^8.9.0",
97
+ "redux-thunk": "^2.3.0",
98
+ "symbol-observable": "^4.0.0",
99
+ "yup": "^0.32.9"
100
+ }
101
+ }
@@ -1,7 +0,0 @@
1
- import React, { FC } from "react";
2
- interface Props {
3
- onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
4
- className?: string;
5
- }
6
- declare const SyncButtonIcon: FC<Props>;
7
- export default SyncButtonIcon;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "../i18n";
3
- declare const TheLayoutAdmin: ({ routes, navigation }: any) => React.JSX.Element;
4
- export default TheLayoutAdmin;