You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 704B

12345678910111213141516171819202122232425262728293031323334353637
  1. // @flow
  2. /**
  3. * An enumeration of support calendar integration types.
  4. *
  5. * @enum {string}
  6. */
  7. export const CALENDAR_TYPE = {
  8. GOOGLE: 'google',
  9. MICROSOFT: 'microsoft'
  10. };
  11. /**
  12. * An enumeration of known errors that can occur while interacting with the
  13. * calendar integration.
  14. *
  15. * @enum {string}
  16. */
  17. export const ERRORS = {
  18. AUTH_FAILED: 'sign_in_failed',
  19. GOOGLE_APP_MISCONFIGURED: 'idpiframe_initialization_failed'
  20. };
  21. /**
  22. * The number of days to fetch.
  23. */
  24. export const FETCH_END_DAYS = 10;
  25. /**
  26. * The number of days to go back when fetching.
  27. */
  28. export const FETCH_START_DAYS = -1;
  29. /**
  30. * The max number of events to fetch from the calendar.
  31. */
  32. export const MAX_LIST_LENGTH = 10;