summit-registration-lite 3.0.1 → 3.0.2

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 (2) hide show
  1. package/dist/index.js +10 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -378,6 +378,7 @@ const SET_PASSWORDLESS_LENGTH = 'SET_PASSWORDLESS_LENGTH';
378
378
  const SET_PASSWORDLESS_ERROR = 'SET_PASSWORDLESS_ERROR';
379
379
  const GO_TO_LOGIN = 'GO_TO_LOGIN';
380
380
  const GET_MY_INVITATION = 'GET_MY_INVITATION';
381
+ const CLEAR_MY_INVITATION = 'CLEAR_MY_INVITATION';
381
382
  const startWidgetLoading = (0,actions_namespaceObject.createAction)(START_WIDGET_LOADING);
382
383
  const stopWidgetLoading = (0,actions_namespaceObject.createAction)(STOP_WIDGET_LOADING);
383
384
  const loadSession = settings => dispatch => {
@@ -661,7 +662,7 @@ const getMyInvitation = summitId => async (dispatch, getState, {
661
662
  access_token: accessToken
662
663
  };
663
664
  dispatch(startWidgetLoading());
664
- return (0,actions_namespaceObject.getRequest)(null, (0,actions_namespaceObject.createAction)(GET_MY_INVITATION), `${apiBaseUrl}/api/v1/summits/${summitId}/registration-invitations/me`, errorHandler)(params)(dispatch).then(() => {
665
+ return (0,actions_namespaceObject.getRequest)((0,actions_namespaceObject.createAction)(CLEAR_MY_INVITATION), (0,actions_namespaceObject.createAction)(GET_MY_INVITATION), `${apiBaseUrl}/api/v1/summits/${summitId}/registration-invitations/me`, errorHandler)(params)(dispatch).then(() => {
665
666
  dispatch(stopWidgetLoading());
666
667
  });
667
668
  } catch (e) {
@@ -747,6 +748,7 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
747
748
  return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
748
749
  reservation: null,
749
750
  checkout: null,
751
+ invitation: null,
750
752
  passwordless: reducer_objectSpread({}, DEFAULT_STATE.passwordless),
751
753
  settings: reducer_objectSpread(reducer_objectSpread({}, DEFAULT_STATE.settings), {}, {
752
754
  marketingData: marketingData,
@@ -857,6 +859,13 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
857
859
  });
858
860
  }
859
861
 
862
+ case CLEAR_MY_INVITATION:
863
+ {
864
+ return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
865
+ invitation: null
866
+ });
867
+ }
868
+
860
869
  default:
861
870
  {
862
871
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "summit-registration-lite",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Summit Registration Lite",
5
5
  "main": "index.js",
6
6
  "scripts": {