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 925B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // @flow
  2. /**
  3. * The Google API scopes to request access for streaming and calendar.
  4. *
  5. * @type {Array<string>}
  6. */
  7. export const GOOGLE_API_SCOPES = [
  8. 'https://www.googleapis.com/auth/youtube.readonly',
  9. 'https://www.googleapis.com/auth/calendar'
  10. ];
  11. /**
  12. * Array of API discovery doc URLs for APIs used by the googleApi.
  13. *
  14. * @type {string[]}
  15. */
  16. export const DISCOVERY_DOCS
  17. = [ 'https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest' ];
  18. /**
  19. * An enumeration of the different states the Google API can be in.
  20. *
  21. * @private
  22. * @type {Object}
  23. */
  24. export const GOOGLE_API_STATES = {
  25. /**
  26. * The state in which the Google API still needs to be loaded.
  27. */
  28. NEEDS_LOADING: 0,
  29. /**
  30. * The state in which the Google API is loaded and ready for use.
  31. */
  32. LOADED: 1,
  33. /**
  34. * The state in which a user has been logged in through the Google API.
  35. */
  36. SIGNED_IN: 2
  37. };