acsi-core 1.2.40 → 1.2.42

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,5 +1,5 @@
1
- export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any, {}>>;
2
- export declare const apiLoginGoogle: (body: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
3
- export declare const apiSendEmailCode: (body: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
4
- export declare const apiCheckEmailCode: (params: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
5
- export declare const apiGetImage: () => Promise<import("axios").AxiosResponse<any, any, {}>>;
1
+ export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const apiLoginGoogle: (body: any) => Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare const apiSendEmailCode: (body: any) => Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare const apiCheckEmailCode: (params: any) => Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare const apiGetImage: () => Promise<import("axios").AxiosResponse<any, any>>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare const historyCore: import("history").History<unknown>;
2
- import { setLoading, setAlert, setTenant, setAddTenant, setTeam, setUser, setMenuCollapse, setIsRefetchSidebar, setLoadingPage, setIsFirstCalendar } from "./redux/commons/action";
2
+ import { setLoading, setAlert, setTenant, setAddTenant, setTeam, setUser, setMenuCollapse, setIsRefetchSidebar, setLoadingPage, setIsFirstCalendar, setStandards } from "./redux/commons/action";
3
3
  import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID } from "./utils/constants";
4
4
  import Login from "./containers/Login/views/Login";
5
5
  import store from "./store";
@@ -32,4 +32,4 @@ import getTimeZoneId from "./utils/getTimeZoneId";
32
32
  import timeSpanToLocalMoment from "./utils/timeSpanToLocalMoment";
33
33
  import timeSpanToUtc from "./utils/timeSpanToUtc";
34
34
  import Cookies from "js-cookie";
35
- export { setLoading, setLoadingPage, setIsFirstCalendar, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID, firstCheckToken, getImageUrl, Login, utcToLocalTime, timeSpanToUtc, getTimeZoneId, timeSpanToLocalMoment, getAccessToken, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, Cookies, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, CoreTooltip, getErrorMessage, MarkdownLatexRender, RichContentRenderer, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
35
+ export { setLoading, setLoadingPage, setIsFirstCalendar, setStandards, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID, firstCheckToken, getImageUrl, Login, utcToLocalTime, timeSpanToUtc, getTimeZoneId, timeSpanToLocalMoment, getAccessToken, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, Cookies, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, CoreTooltip, getErrorMessage, MarkdownLatexRender, RichContentRenderer, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ var setTenant = toolkit.createAction("common/setTenant");
43
43
  var setAddTenant = toolkit.createAction("common/setAddTenant");
44
44
  var setTeam = toolkit.createAction("common/setTeam");
45
45
  var setIsFirstCalendar = toolkit.createAction("common/setIsFirstCalendar");
46
+ var setStandards = toolkit.createAction("common/setStandards");
46
47
 
47
48
  var REQUEST_ORIGIN = process.env.REACT_APP_REQUEST_ORIGIN || "";
48
49
  var ADMIN_ORIGIN = process.env.REACT_APP_ADMIN_ORIGIN || "";
@@ -1767,14 +1768,15 @@ var apiUpload = axios.create({
1767
1768
  });
1768
1769
  });
1769
1770
 
1771
+ var IDP_URL = "" + process.env.REACT_APP_IDP_API_URL;
1770
1772
  var apiLoginGoogle = function apiLoginGoogle(body) {
1771
- return api.post(BASE_URL + "/api/Auth/login", body);
1773
+ return api.post(IDP_URL + "/api/Auth/login", body);
1772
1774
  };
1773
1775
  var apiSendEmailCode = function apiSendEmailCode(body) {
1774
- return api.post(BASE_URL + "/api/Auth/send-code-email", body);
1776
+ return api.post(IDP_URL + "/api/Auth/send-code-email", body);
1775
1777
  };
1776
1778
  var apiCheckEmailCode = function apiCheckEmailCode(params) {
1777
- return api.get(BASE_URL + "/api/Auth/check-code-email", {
1779
+ return api.get(IDP_URL + "/api/Auth/check-code-email", {
1778
1780
  params: params
1779
1781
  });
1780
1782
  };
@@ -2798,7 +2800,8 @@ var initialState = {
2798
2800
  academy: null,
2799
2801
  menuCollapse: false,
2800
2802
  isRefetchSidebar: false,
2801
- isFirstCalendar: false
2803
+ isFirstCalendar: false,
2804
+ standards: []
2802
2805
  };
2803
2806
  var commonReducer = toolkit.createReducer(initialState, function (builder) {
2804
2807
  builder.addCase(setLoading, function (state, action) {
@@ -2825,6 +2828,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
2825
2828
  state.user.currentTeamId = action.payload;
2826
2829
  }).addCase(setIsFirstCalendar, function (state) {
2827
2830
  state.isFirstCalendar = !state.isFirstCalendar;
2831
+ }).addCase(setStandards, function (state, action) {
2832
+ state.standards = action.payload;
2828
2833
  });
2829
2834
  });
2830
2835
 
@@ -3702,6 +3707,7 @@ exports.setIsRefetchSidebar = setIsRefetchSidebar;
3702
3707
  exports.setLoading = setLoading;
3703
3708
  exports.setLoadingPage = setLoadingPage;
3704
3709
  exports.setMenuCollapse = setMenuCollapse;
3710
+ exports.setStandards = setStandards;
3705
3711
  exports.setTeam = setTeam;
3706
3712
  exports.setTenant = setTenant;
3707
3713
  exports.setUser = setUser;