"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7305/react/features/calendar-sync/actionTypes.ts" (26 May 2023, 2266 Bytes) of package /linux/misc/jitsi-meet-7305.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "actionTypes.ts": jitsi-meet_8319_vs_jitsi-meet_8615.

    1 /**
    2  * Resets the state of calendar integration so stored events and selected
    3  * calendar type are cleared.
    4  *
    5  * {
    6  *     type: CLEAR_CALENDAR_INTEGRATION
    7  * }
    8  */
    9 export const CLEAR_CALENDAR_INTEGRATION = 'CLEAR_CALENDAR_INTEGRATION';
   10 
   11 /**
   12  * Action to refresh (re-fetch) the entry list.
   13  *
   14  * {
   15  *     type: REFRESH_CALENDAR,
   16  *     forcePermission: boolean,
   17  *     isInteractive: boolean
   18  * }
   19  */
   20 export const REFRESH_CALENDAR = 'REFRESH_CALENDAR';
   21 
   22 /**
   23  * Action to signal that calendar access has already been requested since the
   24  * app started, so no new request should be done unless the user explicitly
   25  * tries to refresh the calendar view.
   26  *
   27  * {
   28  *     type: SET_CALENDAR_AUTHORIZATION,
   29  *     authorization: ?string
   30  * }
   31  */
   32 export const SET_CALENDAR_AUTHORIZATION = 'SET_CALENDAR_AUTHORIZATION';
   33 
   34 /**
   35  * Action to update the last error that occurred while trying to authenticate
   36  * with or fetch data from the calendar integration.
   37  *
   38  * {
   39  *     type: SET_CALENDAR_ERROR,
   40  *     error: ?Object
   41  * }
   42  */
   43 export const SET_CALENDAR_ERROR = 'SET_CALENDAR_ERROR';
   44 
   45 /**
   46  * Action to update the current calendar entry list in the store.
   47  *
   48  * {
   49  *     type: SET_CALENDAR_EVENTS,
   50  *     events: Array<Object>
   51  * }
   52  */
   53 export const SET_CALENDAR_EVENTS = 'SET_CALENDAR_EVENTS';
   54 
   55 /**
   56  * Action to update calendar type to be used for web.
   57  *
   58  * {
   59  *     type: SET_CALENDAR_INTEGRATION,
   60  *     integrationReady: boolean,
   61  *     integrationType: string
   62  * }
   63  */
   64 export const SET_CALENDAR_INTEGRATION = 'SET_CALENDAR_INTEGRATION';
   65 
   66 /**
   67  * The type of Redux action which changes Calendar API auth state.
   68  *
   69  * {
   70  *     type: SET_CALENDAR_AUTH_STATE
   71  * }
   72  * @public
   73  */
   74 export const SET_CALENDAR_AUTH_STATE = 'SET_CALENDAR_AUTH_STATE';
   75 
   76 /**
   77  * The type of Redux action which changes Calendar Profile email state.
   78  *
   79  * {
   80  *     type: SET_CALENDAR_PROFILE_EMAIL,
   81  *     email: string
   82  * }
   83  * @public
   84  */
   85 export const SET_CALENDAR_PROFILE_EMAIL = 'SET_CALENDAR_PROFILE_EMAIL';
   86 
   87 /**
   88  * The type of Redux action which denotes whether a request is in flight to get
   89  * updated calendar events.
   90  *
   91  * {
   92  *     type: SET_LOADING_CALENDAR_EVENTS,
   93  *     isLoadingEvents: string
   94  * }
   95  * @public
   96  */
   97 export const SET_LOADING_CALENDAR_EVENTS
   98     = 'SET_LOADING_CALENDAR_EVENTS';