packages feed

gogol-apps-activity 0.3.0 → 0.4.0

raw patch · 6 files changed

+15/−39 lines, 6 filesdep ~gogol-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: gogol-core

API changes (from Hackage documentation)

- Network.Google.AppsActivity: driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"]
- Network.Google.AppsActivity: driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"]
- Network.Google.AppsActivity: driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]
- Network.Google.AppsActivity: driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]
- Network.Google.AppsActivity.Types: driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"]
- Network.Google.AppsActivity.Types: driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"]
- Network.Google.AppsActivity.Types: driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]
- Network.Google.AppsActivity.Types: driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]
+ Network.Google.AppsActivity: PublishedReader :: PermissionRole
+ Network.Google.AppsActivity.Types: PublishedReader :: PermissionRole
- Network.Google.Resource.AppsActivity.Activities.List: type ActivitiesListResource = "appsactivity" :> ("v1" :> ("activities" :> (QueryParam "drive.fileId" Text :> (QueryParam "drive.ancestorId" Text :> (QueryParam "groupingStrategy" ActivitiesListGroupingStrategy :> (QueryParam "userId" Text :> (QueryParam "source" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ListActivitiesResponse))))))))))
+ Network.Google.Resource.AppsActivity.Activities.List: type ActivitiesListResource = "appsactivity" :> "v1" :> "activities" :> QueryParam "drive.fileId" Text :> QueryParam "drive.ancestorId" Text :> QueryParam "groupingStrategy" ActivitiesListGroupingStrategy :> QueryParam "userId" Text :> QueryParam "source" Text :> QueryParam "pageToken" Text :> QueryParam "pageSize" (Textual Int32) :> QueryParam "alt" AltJSON :> Get '[JSON] ListActivitiesResponse

Files

README.md view
@@ -13,7 +13,7 @@  ## Description -A client library for the Google Apps Activity.+A client library for the Google Drive Activity.   ## Contribute
gen/Network/Google/AppsActivity.hs view
@@ -15,18 +15,14 @@ -- -- Provides a historical view of activity. ----- /See:/ <https://developers.google.com/google-apps/activity/ Google Apps Activity API Reference>+-- /See:/ <https://developers.google.com/google-apps/activity/ Drive Activity API Reference> module Network.Google.AppsActivity     (     -- * Service Configuration       appsActivityService      -- * OAuth Scopes-    , driveMetadataReadOnlyScope     , activityScope-    , driveReadOnlyScope-    , driveScope-    , driveMetadataScope      -- * API Declaration     , AppsActivityAPI@@ -143,5 +139,5 @@ TODO -} --- | Represents the entirety of the methods and resources available for the Google Apps Activity API service.+-- | Represents the entirety of the methods and resources available for the Drive Activity API service. type AppsActivityAPI = ActivitiesListResource
gen/Network/Google/AppsActivity/Types.hs view
@@ -20,11 +20,7 @@       appsActivityService      -- * OAuth Scopes-    , driveMetadataReadOnlyScope     , activityScope-    , driveReadOnlyScope-    , driveScope-    , driveMetadataScope      -- * Parent     , Parent@@ -127,28 +123,12 @@ import           Network.Google.AppsActivity.Types.Sum import           Network.Google.Prelude --- | Default request referring to version 'v1' of the Google Apps Activity API. This contains the host and root path used as a starting point for constructing service requests.+-- | Default request referring to version 'v1' of the Drive Activity API. This contains the host and root path used as a starting point for constructing service requests. appsActivityService :: ServiceConfig appsActivityService   = defaultService (ServiceId "appsactivity:v1")       "www.googleapis.com" --- | View metadata for files in your Google Drive-driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"]-driveMetadataReadOnlyScope = Proxy;---- | View the activity history of your Google Apps+-- | View the activity history of your Google apps activityScope :: Proxy '["https://www.googleapis.com/auth/activity"] activityScope = Proxy;---- | View the files in your Google Drive-driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]-driveReadOnlyScope = Proxy;---- | View and manage the files in your Google Drive-driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]-driveScope = Proxy;---- | View and manage metadata of files in your Google Drive-driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"]-driveMetadataScope = Proxy;
gen/Network/Google/AppsActivity/Types/Sum.hs view
@@ -16,7 +16,7 @@ -- module Network.Google.AppsActivity.Types.Sum where -import           Network.Google.Prelude+import           Network.Google.Prelude hiding (Bytes)  -- | The main type of event that occurred. data EventPrimaryEventType@@ -88,6 +88,8 @@       -- ^ @commenter@     | Owner       -- ^ @owner@+    | PublishedReader+      -- ^ @publishedReader@     | Reader       -- ^ @reader@     | Writer@@ -100,6 +102,7 @@     parseQueryParam = \case         "commenter" -> Right Commenter         "owner" -> Right Owner+        "publishedReader" -> Right PublishedReader         "reader" -> Right Reader         "writer" -> Right Writer         x -> Left ("Unable to parse PermissionRole from: " <> x)@@ -108,6 +111,7 @@     toQueryParam = \case         Commenter -> "commenter"         Owner -> "owner"+        PublishedReader -> "publishedReader"         Reader -> "reader"         Writer -> "writer" 
gen/Network/Google/Resource/AppsActivity/Activities/List.hs view
@@ -27,7 +27,7 @@ -- similar. A request is scoped to activities from a given Google service -- using the source parameter. ----- /See:/ <https://developers.google.com/google-apps/activity/ Google Apps Activity API Reference> for @appsactivity.activities.list@.+-- /See:/ <https://developers.google.com/google-apps/activity/ Drive Activity API Reference> for @appsactivity.activities.list@. module Network.Google.Resource.AppsActivity.Activities.List     (     -- * REST Resource@@ -161,11 +161,7 @@ instance GoogleRequest ActivitiesList where         type Rs ActivitiesList = ListActivitiesResponse         type Scopes ActivitiesList =-             '["https://www.googleapis.com/auth/activity",-               "https://www.googleapis.com/auth/drive",-               "https://www.googleapis.com/auth/drive.metadata",-               "https://www.googleapis.com/auth/drive.metadata.readonly",-               "https://www.googleapis.com/auth/drive.readonly"]+             '["https://www.googleapis.com/auth/activity"]         requestClient ActivitiesList'{..}           = go _alDriveFileId _alDriveAncestorId               (Just _alGroupingStrategy)
gogol-apps-activity.cabal view
@@ -1,6 +1,6 @@ name:                  gogol-apps-activity-version:               0.3.0-synopsis:              Google Apps Activity SDK.+version:               0.4.0+synopsis:              Google Drive Activity SDK. homepage:              https://github.com/brendanhay/gogol bug-reports:           https://github.com/brendanhay/gogol/issues license:               OtherLicense@@ -42,5 +42,5 @@         , Network.Google.AppsActivity.Types.Sum      build-depends:-          gogol-core == 0.3.0.*+          gogol-core == 0.4.0.*         , base       >= 4.7 && < 5