Copyright | (c) Naoto Shimazaki 2017 |
---|---|
License | MIT (see the file LICENSE) |
Maintainer | https://github.com/nshimaza |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Network.WebexTeams.Types
Description
This module defines most of types and records used in webex-teams-api package. Records used for REST communications are designed to be converted from / to JSON using Aeson package. Those records are also designed to allow create lenses by Control.Lens.TH.makeFields.
Following example creates overloaded accessors for Person
, Room
and Team
.
makeFields ''Person makeFields ''Room makeFields ''Team
You can access personId
, roomId
and teamId
via overloaded accessor function id
like this.
let yourPersonId = yourPerson ^. id yourRoomId = yourRoom ^. id yourTeamId = yourTeam ^. id
This package doesn't pre-generate those lenses for you because it is so easy. Please create them by yourself as needed.
Synopsis
- peoplePath :: ByteString
- roomsPath :: ByteString
- membershipsPath :: ByteString
- messagesPath :: ByteString
- teamsPath :: ByteString
- teamMembershipsPath :: ByteString
- organizationsPath :: ByteString
- licensesPath :: ByteString
- rolesPath :: ByteString
- webhooksPath :: ByteString
- class FromJSON (ToList i) => WebexTeamsListItem i where
- class WebexTeamsApiPath a where
- apiPath :: a -> ByteString
- class FromJSON (ToResponse a) => WebexTeamsResponse a where
- type ToResponse a
- class (WebexTeamsApiPath a, WebexTeamsResponse a) => WebexTeamsDetail a where
- class (WebexTeamsApiPath a, WebexTeamsResponse a) => WebexTeamsFilter a where
- toFilterList :: a -> [(ByteString, Maybe ByteString)]
- class (WebexTeamsApiPath a, WebexTeamsResponse a, ToJSON a) => WebexTeamsCreate a
- class (WebexTeamsApiPath a, WebexTeamsResponse a, ToJSON a) => WebexTeamsUpdate a
- newtype Timestamp = Timestamp Text
- newtype ErrorCode = ErrorCode Text
- data ErrorTitle = ErrorTitle {}
- newtype Errors = Errors {}
- newtype PersonId = PersonId Text
- newtype Email = Email Text
- newtype DisplayName = DisplayName Text
- newtype NickName = NickName Text
- newtype FirstName = FirstName Text
- newtype LastName = LastName Text
- newtype AvatarUrl = AvatarUrl Text
- newtype OrganizationId = OrganizationId Text
- newtype RoleId = RoleId Text
- newtype LicenseId = LicenseId Text
- newtype Timezone = Timezone Text
- data PersonStatus
- data PersonType
- data Person = Person {
- personId :: PersonId
- personErrors :: Maybe Errors
- personEmails :: Maybe [Email]
- personDisplayName :: Maybe DisplayName
- personNickName :: Maybe NickName
- personFirstName :: Maybe FirstName
- personLastName :: Maybe LastName
- personAvatar :: Maybe AvatarUrl
- personOrgId :: Maybe OrganizationId
- personRoles :: Maybe [RoleId]
- personLicenses :: Maybe [LicenseId]
- personCreated :: Maybe Timestamp
- personTimezone :: Maybe Timezone
- personLastActivity :: Maybe Timestamp
- personStatus :: Maybe PersonStatus
- personInvitePending :: Maybe Bool
- personLoginEnabled :: Maybe Bool
- personType :: Maybe PersonType
- newtype PersonList = PersonList {
- personListItems :: [Person]
- data PersonFilter = PersonFilter {}
- data CreatePerson = CreatePerson {
- createPersonEmails :: Maybe [Email]
- createPersonDisplayName :: Maybe DisplayName
- createPersonFirstName :: Maybe FirstName
- createPersonLastName :: Maybe LastName
- createPersonAvatar :: Maybe AvatarUrl
- createPersonOrgId :: Maybe OrganizationId
- createPersonRoles :: Maybe [RoleId]
- createPersonLicenses :: Maybe [LicenseId]
- data UpdatePerson = UpdatePerson {}
- newtype TeamId = TeamId Text
- newtype TeamName = TeamName Text
- data Team = Team {}
- newtype TeamList = TeamList {
- teamListItems :: [Team]
- newtype CreateTeam = CreateTeam {}
- newtype UpdateTeam = UpdateTeam {}
- newtype TeamMembershipId = TeamMembershipId Text
- data TeamMembership = TeamMembership {
- teamMembershipId :: TeamMembershipId
- teamMembershipErrors :: Maybe Errors
- teamMembershipTeamId :: Maybe TeamId
- teamMembershipPersonId :: Maybe PersonId
- teamMembershipPersonEmail :: Maybe Email
- teamMembershipPersonDisplayName :: Maybe DisplayName
- teamMembershipPersonOrgId :: Maybe OrganizationId
- teamMembershipIsModerator :: Maybe Bool
- teamMembershipCreated :: Maybe Timestamp
- newtype TeamMembershipList = TeamMembershipList {}
- newtype TeamMembershipFilter = TeamMembershipFilter {}
- defaultTeamMembershipFilter :: TeamId -> TeamMembershipFilter
- data CreateTeamMembership = CreateTeamMembership {}
- newtype UpdateTeamMembership = UpdateTeamMembership {}
- newtype RoomId = RoomId Text
- newtype RoomTitle = RoomTitle Text
- newtype SipAddr = SipAddr Text
- data RoomType
- data Room = Room {}
- newtype RoomList = RoomList {
- roomListItems :: [Room]
- data RoomFilterSortBy
- data RoomFilter = RoomFilter {}
- roomTypeToFilterString :: RoomType -> ByteString
- roomFilterSortByToFilterString :: RoomFilterSortBy -> ByteString
- data CreateRoom = CreateRoom {}
- newtype UpdateRoom = UpdateRoom {}
- newtype MembershipId = MembershipId Text
- data Membership = Membership {
- membershipId :: MembershipId
- membershipErrors :: Maybe Errors
- membershipRoomId :: Maybe RoomId
- membershipPersonId :: Maybe PersonId
- membershipPersonEmail :: Maybe Email
- membershipPersonDisplayName :: Maybe DisplayName
- membershipPersonOrgId :: Maybe OrganizationId
- membershipIsModerator :: Maybe Bool
- membershipIsMonitor :: Maybe Bool
- membershipCreated :: Maybe Timestamp
- newtype MembershipList = MembershipList {}
- data MembershipFilter = MembershipFilter {}
- data CreateMembership = CreateMembership {}
- newtype UpdateMembership = UpdateMembership {}
- newtype MessageId = MessageId Text
- newtype MessageText = MessageText Text
- newtype MessageHtml = MessageHtml Text
- newtype MessageMarkdown = MessageMarkdown Text
- newtype FileUrl = FileUrl Text
- data Message = Message {
- messageId :: MessageId
- messageErrors :: Maybe Errors
- messageRoomId :: Maybe RoomId
- messageRoomType :: Maybe RoomType
- messageToPersonId :: Maybe PersonId
- messageToPersonEmail :: Maybe Email
- messageText :: Maybe MessageText
- messageHtml :: Maybe MessageHtml
- messageFiles :: Maybe [FileUrl]
- messagePersonId :: Maybe PersonId
- messagePersonEmail :: Maybe Email
- messageCreated :: Maybe Timestamp
- messageMentionedPeople :: Maybe [PersonId]
- newtype MessageList = MessageList {
- messageListItems :: [Message]
- data MentionedPeople
- data MessageFilter = MessageFilter {}
- defaultMessageFilter :: RoomId -> MessageFilter
- mentionedPeopleToFilterString :: MentionedPeople -> ByteString
- data CreateMessage = CreateMessage {}
- newtype OrganizationDisplayName = OrganizationDisplayName Text
- data Organization = Organization {}
- newtype OrganizationList = OrganizationList {}
- newtype LicenseName = LicenseName Text
- newtype LicenseUnit = LicenseUnit Integer
- data License = License {}
- newtype LicenseList = LicenseList {
- licenseListItems :: [License]
- newtype LicenseFilter = LicenseFilter {}
- newtype RoleName = RoleName Text
- data Role = Role {}
- newtype RoleList = RoleList {
- roleListItems :: [Role]
- newtype WebhookId = WebhookId Text
- newtype WebhookName = WebhookName Text
- newtype WebhookUrl = WebhookUrl Text
- newtype WebhookFilter = WebhookFilter Text
- newtype WebhookSecret = WebhookSecret Text
- data WebhookResource
- data WebhookEvent
- data Webhook = Webhook {}
- newtype WebhookList = WebhookList {
- webhookListItems :: [Webhook]
- data CreateWebhook = CreateWebhook {}
- data UpdateWebhook = UpdateWebhook {}
- data WebhookMembershipFilter = WebhookMembershipFilter {}
- data WebhookMessageFilter = WebhookMessageFilter {}
- data WebhookRoomFilter = WebhookRoomFilter {}
- newtype AppId = AppId Text
- data WebhookNotifyOwnedBy
- data WebhookNotifyStatus
- data WebhookNotify = WebhookNotify {
- webhookNotifyId :: WebhookId
- webhookNotifyName :: WebhookName
- webhookNotifyResource :: WebhookResource
- webhookNotifyEvent :: WebhookEvent
- webhookNotifyFilter :: WebhookFilter
- webhookNotifyOrgId :: Organization
- webhookNotifyCreatedBy :: PersonId
- webhookNotifyAppId :: AppId
- webhookNotifyOwnedBy :: WebhookNotifyOwnedBy
- webhookNotifyStatus :: WebhookNotifyStatus
- webhookNotifyActorId :: PersonId
- newtype WebhookNotifyMembership = WebhookNotifyMembership {}
- newtype WebhookNotifyMessage = WebhookNotifyMessage {}
- newtype WebhookNotifyRoom = WebhookNotifyRoom {}
Documentation
peoplePath :: ByteString Source #
URL path for people API.
roomsPath :: ByteString Source #
URL path for rooms API.
membershipsPath :: ByteString Source #
URL path for memberships API.
messagesPath :: ByteString Source #
URL path for messages API.
teamsPath :: ByteString Source #
URL path for teams API.
teamMembershipsPath :: ByteString Source #
URL path for team memberships API.
organizationsPath :: ByteString Source #
URL path for organizations API.
licensesPath :: ByteString Source #
URL path for licenes API.
rolesPath :: ByteString Source #
URL path for roles API.
webhooksPath :: ByteString Source #
URL path for webhooks API.
class FromJSON (ToList i) => WebexTeamsListItem i where Source #
WebexTeamsListItem is a type class grouping types with following common usage.
- It is used for return value of get-detail APIs.
- It is used for element of return value of list APIs.
WebexTeamsListItem also associates the above type to wrapping list type (e.g. associates Person
to PersonList
).
Wrapping type (PersonList in this case) is necessary for parsing JSON from REST API but what we are
interested in is bare list such like [Person]. Type family association defined in this class
is used for type translation from type of items to type of wrapper.
Methods
unwrap :: ToList i -> [i] Source #
Get bare list from wrapped type which can be parsed directly from JSON.
Instances
class WebexTeamsApiPath a where Source #
Type class for getting URL path of API category from given type of value.
Methods
apiPath :: a -> ByteString Source #
Instances
WebexTeamsApiPath CreateMembership Source # | Create membership API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreateMembership -> ByteString Source # | |
WebexTeamsApiPath CreateMessage Source # | Create message API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreateMessage -> ByteString Source # | |
WebexTeamsApiPath CreatePerson Source # | Create person API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreatePerson -> ByteString Source # | |
WebexTeamsApiPath CreateRoom Source # | Create room API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreateRoom -> ByteString Source # | |
WebexTeamsApiPath CreateTeam Source # | Create team API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreateTeam -> ByteString Source # | |
WebexTeamsApiPath CreateTeamMembership Source # | Create teamMembership API uses |
Defined in Network.WebexTeams.Types Methods | |
WebexTeamsApiPath CreateWebhook Source # | Create webhook API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: CreateWebhook -> ByteString Source # | |
WebexTeamsApiPath LicenseFilter Source # | List licenses API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: LicenseFilter -> ByteString Source # | |
WebexTeamsApiPath LicenseId Source # | Get detail for license API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: LicenseId -> ByteString Source # | |
WebexTeamsApiPath MembershipFilter Source # | List memberships API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: MembershipFilter -> ByteString Source # | |
WebexTeamsApiPath MembershipId Source # | Get detail for a membership API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: MembershipId -> ByteString Source # | |
WebexTeamsApiPath MessageFilter Source # | List messages API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: MessageFilter -> ByteString Source # | |
WebexTeamsApiPath MessageId Source # | Get detail for message API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: MessageId -> ByteString Source # | |
WebexTeamsApiPath OrganizationId Source # | Get detail for organization API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: OrganizationId -> ByteString Source # | |
WebexTeamsApiPath PersonFilter Source # | List people API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: PersonFilter -> ByteString Source # | |
WebexTeamsApiPath PersonId Source # | Get detail for a person API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: PersonId -> ByteString Source # | |
WebexTeamsApiPath RoleId Source # | Get detail for role API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: RoleId -> ByteString Source # | |
WebexTeamsApiPath RoomFilter Source # | List rooms API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: RoomFilter -> ByteString Source # | |
WebexTeamsApiPath RoomId Source # | Get detail for a room API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: RoomId -> ByteString Source # | |
WebexTeamsApiPath TeamId Source # | Get detail for a team API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: TeamId -> ByteString Source # | |
WebexTeamsApiPath TeamMembershipFilter Source # | List team memberships API uses |
Defined in Network.WebexTeams.Types Methods | |
WebexTeamsApiPath TeamMembershipId Source # | Get detail for a team membership API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: TeamMembershipId -> ByteString Source # | |
WebexTeamsApiPath UpdateMembership Source # | Update membership API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateMembership -> ByteString Source # | |
WebexTeamsApiPath UpdatePerson Source # | Update person API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: UpdatePerson -> ByteString Source # | |
WebexTeamsApiPath UpdateRoom Source # | Update room API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateRoom -> ByteString Source # | |
WebexTeamsApiPath UpdateTeam Source # | Update team API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateTeam -> ByteString Source # | |
WebexTeamsApiPath UpdateTeamMembership Source # | Update teamMembership API uses |
Defined in Network.WebexTeams.Types Methods | |
WebexTeamsApiPath UpdateWebhook Source # | Update webhook API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateWebhook -> ByteString Source # | |
WebexTeamsApiPath WebhookId Source # | Get detail for webhook API uses |
Defined in Network.WebexTeams.Types Methods apiPath :: WebhookId -> ByteString Source # | |
WebexTeamsApiPath WebhookMembershipFilter Source # | Create webhook API accepts |
Defined in Network.WebexTeams.Types Methods | |
WebexTeamsApiPath WebhookMessageFilter Source # | Create webhook API accepts |
Defined in Network.WebexTeams.Types Methods | |
WebexTeamsApiPath WebhookRoomFilter Source # | Create webhook API accepts |
Defined in Network.WebexTeams.Types Methods |
class FromJSON (ToResponse a) => WebexTeamsResponse a Source #
Type family to associate a type appears in an argument to response type.
Associated Types
type ToResponse a Source #
Associate response type to input parameter type such as filter criteria, entity key or create / update parameters.
Instances
WebexTeamsResponse CreateMembership Source # | Create membership API uses "CreateMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreateMessage Source # | Create message API uses "CreateMessage' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreatePerson Source # | Create person API uses "CreatePerson' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreateRoom Source # | Create room API uses "CreateRoom' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreateTeam Source # | Create team API uses "CreateTeam' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreateTeamMembership Source # | Create teamMembership API uses "CreateTeamMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse CreateWebhook Source # | Create webhook API uses "CreateWebhook' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse LicenseFilter Source # | List licenses API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse LicenseId Source # | Get detail for a license API uses "LicenseId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse MembershipFilter Source # | List memberships API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse MembershipId Source # | Get detail for a membership API uses "MembershipId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse MessageFilter Source # | List messages API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse MessageId Source # | Get detail for a message API uses "MessageId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse OrganizationId Source # | Get detail for a organization API uses "OrganizationId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse PersonFilter Source # | List people API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse PersonId Source # | Get detail for a person API uses "PersonId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse RoleId Source # | Get detail for a role API uses "RoleId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse RoomFilter Source # | List rooms API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse RoomId Source # | Get detail for a room API uses "RoomId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse TeamId Source # | Get detail for a team API uses "TeamId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse TeamMembershipFilter Source # | List team memberships API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse TeamMembershipId Source # | Get detail for a team membership API uses "TeamMembershipId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdateMembership Source # | Update membership API uses "UpdateMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdatePerson Source # | Update person API uses "UpdatePerson' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdateRoom Source # | Update room API uses "UpdateRoom' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdateTeam Source # | Update team API uses "UpdateTeam' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdateTeamMembership Source # | Update teamMembership API uses "UpdateTeamMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse UpdateWebhook Source # | Update webhook API uses "UpdateWebhook' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse WebhookId Source # | Get detail for a webhook API uses "WebhookId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse WebhookMembershipFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse WebhookMessageFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsResponse WebhookRoomFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
|
class (WebexTeamsApiPath a, WebexTeamsResponse a) => WebexTeamsDetail a where Source #
Extract containing entity ID string from given type of value.
Instances
WebexTeamsDetail LicenseId Source # | User can get detail of a license. |
WebexTeamsDetail MembershipId Source # | User can get detail of a membership. |
Defined in Network.WebexTeams.Types Methods toIdStr :: MembershipId -> Text Source # | |
WebexTeamsDetail MessageId Source # | User can get detail of a message. |
WebexTeamsDetail OrganizationId Source # | User can get detail of a organization. |
Defined in Network.WebexTeams.Types Methods toIdStr :: OrganizationId -> Text Source # | |
WebexTeamsDetail PersonId Source # | User can get detail of a person. |
WebexTeamsDetail RoleId Source # | User can get detail of a role. |
WebexTeamsDetail RoomId Source # | User can get detail of a room. |
WebexTeamsDetail TeamId Source # | User can get detail of a team. |
WebexTeamsDetail TeamMembershipId Source # | User can get detail of a team membership. |
Defined in Network.WebexTeams.Types Methods toIdStr :: TeamMembershipId -> Text Source # | |
WebexTeamsDetail WebhookId Source # | User can get detail of a webhook. |
class (WebexTeamsApiPath a, WebexTeamsResponse a) => WebexTeamsFilter a where Source #
Convert given filter condition parameter in a concrete type to HTTP query strings.
Methods
toFilterList :: a -> [(ByteString, Maybe ByteString)] Source #
Instances
WebexTeamsFilter LicenseFilter Source # | User can list licenses with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: LicenseFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter MembershipFilter Source # | User can list memberships with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: MembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter MessageFilter Source # | User can list messages with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: MessageFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter PersonFilter Source # | User can list people with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: PersonFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter RoomFilter Source # | User can list rooms with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: RoomFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter TeamMembershipFilter Source # | User can list team membership with filter parameter. |
Defined in Network.WebexTeams.Types Methods toFilterList :: TeamMembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter WebhookMembershipFilter Source # | User can filter Webhook events from membership. |
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookMembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter WebhookMessageFilter Source # | User can filter Webhook events from message. |
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookMessageFilter -> [(ByteString, Maybe ByteString)] Source # | |
WebexTeamsFilter WebhookRoomFilter Source # | User can filter Webhook events from room. |
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookRoomFilter -> [(ByteString, Maybe ByteString)] Source # |
class (WebexTeamsApiPath a, WebexTeamsResponse a, ToJSON a) => WebexTeamsCreate a Source #
Type class for parameter type for create entity API.
Instances
WebexTeamsCreate CreateMembership Source # | User can create a membership. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreateMessage Source # | User can create a message. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreatePerson Source # | User can create a person. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreateRoom Source # | User can create a room. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreateTeam Source # | User can create a team. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreateTeamMembership Source # | User can create a teamMembership. |
Defined in Network.WebexTeams.Types | |
WebexTeamsCreate CreateWebhook Source # | User can create a webhook. |
Defined in Network.WebexTeams.Types |
class (WebexTeamsApiPath a, WebexTeamsResponse a, ToJSON a) => WebexTeamsUpdate a Source #
Type class for parameter type for update entity API.
Instances
WebexTeamsUpdate UpdateMembership Source # | User can update a membership. |
Defined in Network.WebexTeams.Types | |
WebexTeamsUpdate UpdatePerson Source # | User can update a person. |
Defined in Network.WebexTeams.Types | |
WebexTeamsUpdate UpdateRoom Source # | User can update a room. |
Defined in Network.WebexTeams.Types | |
WebexTeamsUpdate UpdateTeam Source # | User can update a team. |
Defined in Network.WebexTeams.Types | |
WebexTeamsUpdate UpdateTeamMembership Source # | User can update a teamMembership. |
Defined in Network.WebexTeams.Types | |
WebexTeamsUpdate UpdateWebhook Source # | User can update a webhook. |
Defined in Network.WebexTeams.Types |
Type representing timestamp. For now, it is just copied from API response JSON.
Instances
FromJSON Timestamp Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Timestamp Source # | |||||
Generic Timestamp Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show Timestamp Source # | |||||
Eq Timestamp Source # | |||||
type Rep Timestamp Source # | |||||
Defined in Network.WebexTeams.Types |
Error code for element level error potentially contained in List API responses.
Instances
FromJSON ErrorCode Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON ErrorCode Source # | |||||
Generic ErrorCode Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show ErrorCode Source # | |||||
Eq ErrorCode Source # | |||||
type Rep ErrorCode Source # | |||||
Defined in Network.WebexTeams.Types |
data ErrorTitle Source #
ErrorTitle
represent concrete error code and reason. It appears in Errors
.
Constructors
ErrorTitle | |
Fields
|
Instances
FromJSON ErrorTitle Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON ErrorTitle Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: ErrorTitle -> Value # toEncoding :: ErrorTitle -> Encoding # toJSONList :: [ErrorTitle] -> Value # toEncodingList :: [ErrorTitle] -> Encoding # omitField :: ErrorTitle -> Bool # | |
Show ErrorTitle Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> ErrorTitle -> ShowS # show :: ErrorTitle -> String # showList :: [ErrorTitle] -> ShowS # | |
Eq ErrorTitle Source # | |
Defined in Network.WebexTeams.Types |
Errors
is used for element level error in List API.
When list API failed to retrieve an element, it returns this object for the element
and response API status as successful instead of failing entire API request.
Refer to API Document for more detail.
Constructors
Errors | |
Fields |
Identifying Person
describing detail of Webex Teams user or bot.
Instances
FromJSON PersonId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON PersonId Source # | |||||
Generic PersonId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show PersonId Source # | |||||
Eq PersonId Source # | |||||
WebexTeamsApiPath PersonId Source # | Get detail for a person API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: PersonId -> ByteString Source # | |||||
WebexTeamsDetail PersonId Source # | User can get detail of a person. | ||||
WebexTeamsResponse PersonId Source # | Get detail for a person API uses "PersonId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep PersonId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse PersonId Source # | |||||
Defined in Network.WebexTeams.Types |
Email address of user.
Instances
FromJSON Email Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Email Source # | |||||
Generic Email Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show Email Source # | |||||
Eq Email Source # | |||||
type Rep Email Source # | |||||
Defined in Network.WebexTeams.Types |
newtype DisplayName Source #
Display name of user.
Constructors
DisplayName Text |
Instances
FromJSON DisplayName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON DisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: DisplayName -> Value # toEncoding :: DisplayName -> Encoding # toJSONList :: [DisplayName] -> Value # toEncodingList :: [DisplayName] -> Encoding # omitField :: DisplayName -> Bool # | |||||
Generic DisplayName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show DisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> DisplayName -> ShowS # show :: DisplayName -> String # showList :: [DisplayName] -> ShowS # | |||||
Eq DisplayName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep DisplayName Source # | |||||
Defined in Network.WebexTeams.Types type Rep DisplayName = D1 ('MetaData "DisplayName" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "DisplayName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
Nickname of user.
Instances
FromJSON NickName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON NickName Source # | |||||
Generic NickName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show NickName Source # | |||||
Eq NickName Source # | |||||
type Rep NickName Source # | |||||
Defined in Network.WebexTeams.Types |
First name of user.
Instances
FromJSON FirstName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON FirstName Source # | |||||
Generic FirstName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show FirstName Source # | |||||
Eq FirstName Source # | |||||
type Rep FirstName Source # | |||||
Defined in Network.WebexTeams.Types |
Last name of user.
Instances
FromJSON LastName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON LastName Source # | |||||
Generic LastName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show LastName Source # | |||||
Eq LastName Source # | |||||
type Rep LastName Source # | |||||
Defined in Network.WebexTeams.Types |
URL pointing to image file of Avatar.
Instances
FromJSON AvatarUrl Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON AvatarUrl Source # | |||||
Generic AvatarUrl Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show AvatarUrl Source # | |||||
Eq AvatarUrl Source # | |||||
type Rep AvatarUrl Source # | |||||
Defined in Network.WebexTeams.Types |
newtype OrganizationId Source #
Organization
identifier which user or team belongs to.
Constructors
OrganizationId Text |
Instances
FromJSON OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser OrganizationId # parseJSONList :: Value -> Parser [OrganizationId] # | |||||
ToJSON OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: OrganizationId -> Value # toEncoding :: OrganizationId -> Encoding # toJSONList :: [OrganizationId] -> Value # toEncodingList :: [OrganizationId] -> Encoding # omitField :: OrganizationId -> Bool # | |||||
Generic OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods from :: OrganizationId -> Rep OrganizationId x # to :: Rep OrganizationId x -> OrganizationId # | |||||
Show OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> OrganizationId -> ShowS # show :: OrganizationId -> String # showList :: [OrganizationId] -> ShowS # | |||||
Eq OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: OrganizationId -> OrganizationId -> Bool # (/=) :: OrganizationId -> OrganizationId -> Bool # | |||||
WebexTeamsApiPath OrganizationId Source # | Get detail for organization API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: OrganizationId -> ByteString Source # | |||||
WebexTeamsDetail OrganizationId Source # | User can get detail of a organization. | ||||
Defined in Network.WebexTeams.Types Methods toIdStr :: OrganizationId -> Text Source # | |||||
WebexTeamsResponse OrganizationId Source # | Get detail for a organization API uses "OrganizationId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types type Rep OrganizationId = D1 ('MetaData "OrganizationId" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "OrganizationId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
type ToResponse OrganizationId Source # | |||||
Defined in Network.WebexTeams.Types |
Role
identifier which can be assigned to user. See Role
too.
Instances
FromJSON RoleId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON RoleId Source # | |||||
Generic RoleId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show RoleId Source # | |||||
Eq RoleId Source # | |||||
WebexTeamsApiPath RoleId Source # | Get detail for role API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: RoleId -> ByteString Source # | |||||
WebexTeamsDetail RoleId Source # | User can get detail of a role. | ||||
WebexTeamsResponse RoleId Source # | Get detail for a role API uses "RoleId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep RoleId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse RoleId Source # | |||||
Defined in Network.WebexTeams.Types |
License
identifier which can be enabled on user. See License
too.
Instances
FromJSON LicenseId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON LicenseId Source # | |||||
Generic LicenseId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show LicenseId Source # | |||||
Eq LicenseId Source # | |||||
WebexTeamsApiPath LicenseId Source # | Get detail for license API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: LicenseId -> ByteString Source # | |||||
WebexTeamsDetail LicenseId Source # | User can get detail of a license. | ||||
WebexTeamsResponse LicenseId Source # | Get detail for a license API uses "LicenseId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep LicenseId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse LicenseId Source # | |||||
Defined in Network.WebexTeams.Types |
Timezone in timezone name.
Instances
FromJSON Timezone Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Timezone Source # | |||||
Generic Timezone Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show Timezone Source # | |||||
Eq Timezone Source # | |||||
type Rep Timezone Source # | |||||
Defined in Network.WebexTeams.Types |
data PersonStatus Source #
Current status of Person
.
It can be updated automatically by recent activity or explicitly updated by user's operation
or propagated from vacation setting on email system.
Constructors
PersonStatusActive | The |
PersonStatusInactive | The |
PersonStatusOutOfOffice | Email system of the |
PersonStatusDoNotDisturb | The |
PersonStatusUnknown | The status of the |
Instances
FromJSON PersonStatus Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON PersonStatus Source # |
| ||||
Defined in Network.WebexTeams.Types Methods toJSON :: PersonStatus -> Value # toEncoding :: PersonStatus -> Encoding # toJSONList :: [PersonStatus] -> Value # toEncodingList :: [PersonStatus] -> Encoding # omitField :: PersonStatus -> Bool # | |||||
Generic PersonStatus Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show PersonStatus Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> PersonStatus -> ShowS # show :: PersonStatus -> String # showList :: [PersonStatus] -> ShowS # | |||||
Eq PersonStatus Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep PersonStatus Source # | |||||
Defined in Network.WebexTeams.Types type Rep PersonStatus = D1 ('MetaData "PersonStatus" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'False) ((C1 ('MetaCons "PersonStatusActive" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PersonStatusInactive" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PersonStatusOutOfOffice" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PersonStatusDoNotDisturb" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PersonStatusUnknown" 'PrefixI 'False) (U1 :: Type -> Type)))) |
data PersonType Source #
PersonType
indicates whether the Person is real human or bot.
Constructors
PersonTypePerson | The |
PersonTypeBot | The |
Instances
FromJSON PersonType Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON PersonType Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: PersonType -> Value # toEncoding :: PersonType -> Encoding # toJSONList :: [PersonType] -> Value # toEncodingList :: [PersonType] -> Encoding # omitField :: PersonType -> Bool # | |
Show PersonType Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> PersonType -> ShowS # show :: PersonType -> String # showList :: [PersonType] -> ShowS # | |
Eq PersonType Source # | |
Defined in Network.WebexTeams.Types |
Person
is detail description of Webex Teams user or bot.
Person is decoded from response JSON of Get Person Details REST call.
It is also element type of response of List People call.
Constructors
Person | |
Fields
|
Instances
FromJSON Person Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Person Source # | |||||
Show Person Source # | |||||
Eq Person Source # | |||||
WebexTeamsListItem Person Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToList Person Source # | |||||
Defined in Network.WebexTeams.Types |
newtype PersonList Source #
PersonList
is decoded from response JSON of List People REST call. It is list of Person
.
Constructors
PersonList | |
Fields
|
Instances
FromJSON PersonList Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON PersonList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: PersonList -> Value # toEncoding :: PersonList -> Encoding # toJSONList :: [PersonList] -> Value # toEncodingList :: [PersonList] -> Encoding # omitField :: PersonList -> Bool # | |
Show PersonList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> PersonList -> ShowS # show :: PersonList -> String # showList :: [PersonList] -> ShowS # | |
Eq PersonList Source # | |
Defined in Network.WebexTeams.Types |
data PersonFilter Source #
Optional query strings for people list API.
Constructors
PersonFilter | |
Fields
|
Instances
Generic PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> PersonFilter -> ShowS # show :: PersonFilter -> String # showList :: [PersonFilter] -> ShowS # | |||||
Default PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods def :: PersonFilter # | |||||
Eq PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath PersonFilter Source # | List people API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: PersonFilter -> ByteString Source # | |||||
WebexTeamsFilter PersonFilter Source # | User can list people with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: PersonFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse PersonFilter Source # | List people API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types type Rep PersonFilter = D1 ('MetaData "PersonFilter" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'False) (C1 ('MetaCons "PersonFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "personFilterEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Email)) :*: (S1 ('MetaSel ('Just "personFilterDisplayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DisplayName)) :*: S1 ('MetaSel ('Just "personFilterOrgId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OrganizationId))))) | |||||
type ToResponse PersonFilter Source # | |||||
Defined in Network.WebexTeams.Types |
data CreatePerson Source #
CreatePerson
is encoded to request body JSON of Create a Person REST call.
Constructors
CreatePerson | |
Fields
|
Instances
FromJSON CreatePerson Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON CreatePerson Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreatePerson -> Value # toEncoding :: CreatePerson -> Encoding # toJSONList :: [CreatePerson] -> Value # toEncodingList :: [CreatePerson] -> Encoding # omitField :: CreatePerson -> Bool # | |||||
Show CreatePerson Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreatePerson -> ShowS # show :: CreatePerson -> String # showList :: [CreatePerson] -> ShowS # | |||||
Eq CreatePerson Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath CreatePerson Source # | Create person API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreatePerson -> ByteString Source # | |||||
WebexTeamsCreate CreatePerson Source # | User can create a person. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreatePerson Source # | Create person API uses "CreatePerson' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreatePerson Source # | |||||
Defined in Network.WebexTeams.Types |
data UpdatePerson Source #
UpdatePerson
is encoded to request body JSON of Update a Person REST call.
Constructors
UpdatePerson | |
Fields
|
Instances
FromJSON UpdatePerson Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON UpdatePerson Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdatePerson -> Value # toEncoding :: UpdatePerson -> Encoding # toJSONList :: [UpdatePerson] -> Value # toEncodingList :: [UpdatePerson] -> Encoding # omitField :: UpdatePerson -> Bool # | |||||
Show UpdatePerson Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdatePerson -> ShowS # show :: UpdatePerson -> String # showList :: [UpdatePerson] -> ShowS # | |||||
Eq UpdatePerson Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath UpdatePerson Source # | Update person API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: UpdatePerson -> ByteString Source # | |||||
WebexTeamsResponse UpdatePerson Source # | Update person API uses "UpdatePerson' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdatePerson Source # | User can update a person. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdatePerson Source # | |||||
Defined in Network.WebexTeams.Types |
Identifying Team.
Instances
FromJSON TeamId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON TeamId Source # | |||||
Generic TeamId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show TeamId Source # | |||||
Eq TeamId Source # | |||||
WebexTeamsApiPath TeamId Source # | Get detail for a team API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: TeamId -> ByteString Source # | |||||
WebexTeamsDetail TeamId Source # | User can get detail of a team. | ||||
WebexTeamsResponse TeamId Source # | Get detail for a team API uses "TeamId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep TeamId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse TeamId Source # | |||||
Defined in Network.WebexTeams.Types |
Name of Team
Instances
FromJSON TeamName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON TeamName Source # | |||||
Generic TeamName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show TeamName Source # | |||||
Eq TeamName Source # | |||||
type Rep TeamName Source # | |||||
Defined in Network.WebexTeams.Types |
Team
is group of Person
and group of Room
.
A Person can belong to multiple Team but a Room can belong to at most one Team.
Team is decoded from response JSON of Get Team Details REST call.
It is also element type of response of List Teams call.
Constructors
Team | |
Fields
|
Constructors
TeamList | |
Fields
|
newtype CreateTeam Source #
CreateTeam
is encoded to request body JSON of Create a Team REST call.
Constructors
CreateTeam | |
Fields |
Instances
FromJSON CreateTeam Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON CreateTeam Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateTeam -> Value # toEncoding :: CreateTeam -> Encoding # toJSONList :: [CreateTeam] -> Value # toEncodingList :: [CreateTeam] -> Encoding # omitField :: CreateTeam -> Bool # | |||||
Show CreateTeam Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateTeam -> ShowS # show :: CreateTeam -> String # showList :: [CreateTeam] -> ShowS # | |||||
Eq CreateTeam Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath CreateTeam Source # | Create team API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreateTeam -> ByteString Source # | |||||
WebexTeamsCreate CreateTeam Source # | User can create a team. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateTeam Source # | Create team API uses "CreateTeam' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateTeam Source # | |||||
Defined in Network.WebexTeams.Types |
newtype UpdateTeam Source #
UpdateTeam
is encoded to request body JSON of Update a Team REST call.
Constructors
UpdateTeam | |
Fields |
Instances
FromJSON UpdateTeam Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON UpdateTeam Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdateTeam -> Value # toEncoding :: UpdateTeam -> Encoding # toJSONList :: [UpdateTeam] -> Value # toEncodingList :: [UpdateTeam] -> Encoding # omitField :: UpdateTeam -> Bool # | |||||
Show UpdateTeam Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdateTeam -> ShowS # show :: UpdateTeam -> String # showList :: [UpdateTeam] -> ShowS # | |||||
Eq UpdateTeam Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath UpdateTeam Source # | Update team API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateTeam -> ByteString Source # | |||||
WebexTeamsResponse UpdateTeam Source # | Update team API uses "UpdateTeam' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdateTeam Source # | User can update a team. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdateTeam Source # | |||||
Defined in Network.WebexTeams.Types |
newtype TeamMembershipId Source #
Identifying TeamMembership.
Constructors
TeamMembershipId Text |
Instances
FromJSON TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser TeamMembershipId # parseJSONList :: Value -> Parser [TeamMembershipId] # | |||||
ToJSON TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: TeamMembershipId -> Value # toEncoding :: TeamMembershipId -> Encoding # toJSONList :: [TeamMembershipId] -> Value # toEncodingList :: [TeamMembershipId] -> Encoding # omitField :: TeamMembershipId -> Bool # | |||||
Generic TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods from :: TeamMembershipId -> Rep TeamMembershipId x # to :: Rep TeamMembershipId x -> TeamMembershipId # | |||||
Show TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> TeamMembershipId -> ShowS # show :: TeamMembershipId -> String # showList :: [TeamMembershipId] -> ShowS # | |||||
Eq TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: TeamMembershipId -> TeamMembershipId -> Bool # (/=) :: TeamMembershipId -> TeamMembershipId -> Bool # | |||||
WebexTeamsApiPath TeamMembershipId Source # | Get detail for a team membership API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: TeamMembershipId -> ByteString Source # | |||||
WebexTeamsDetail TeamMembershipId Source # | User can get detail of a team membership. | ||||
Defined in Network.WebexTeams.Types Methods toIdStr :: TeamMembershipId -> Text Source # | |||||
WebexTeamsResponse TeamMembershipId Source # | Get detail for a team membership API uses "TeamMembershipId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types type Rep TeamMembershipId = D1 ('MetaData "TeamMembershipId" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "TeamMembershipId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
type ToResponse TeamMembershipId Source # | |||||
Defined in Network.WebexTeams.Types |
data TeamMembership Source #
TeamMembership
is association between Team
and Person
.
It can be N:N relation. A Person can belong to multiple Team.
TeamMembership is decoded from response JSON of Get Team Membership Details REST call.
It is also element type of response of List Team Memberships call.
Constructors
TeamMembership | |
Fields
|
Instances
FromJSON TeamMembership Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser TeamMembership # parseJSONList :: Value -> Parser [TeamMembership] # | |||||
ToJSON TeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: TeamMembership -> Value # toEncoding :: TeamMembership -> Encoding # toJSONList :: [TeamMembership] -> Value # toEncodingList :: [TeamMembership] -> Encoding # omitField :: TeamMembership -> Bool # | |||||
Show TeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> TeamMembership -> ShowS # show :: TeamMembership -> String # showList :: [TeamMembership] -> ShowS # | |||||
Eq TeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: TeamMembership -> TeamMembership -> Bool # (/=) :: TeamMembership -> TeamMembership -> Bool # | |||||
WebexTeamsListItem TeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods unwrap :: ToList TeamMembership -> [TeamMembership] Source # | |||||
type ToList TeamMembership Source # | |||||
Defined in Network.WebexTeams.Types |
newtype TeamMembershipList Source #
TeamMembershipList
is decoded from response JSON of List Team Memberships REST call. It is list of TeamMembership
.
Constructors
TeamMembershipList | |
Fields |
Instances
FromJSON TeamMembershipList Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser TeamMembershipList # parseJSONList :: Value -> Parser [TeamMembershipList] # | |
ToJSON TeamMembershipList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: TeamMembershipList -> Value # toEncoding :: TeamMembershipList -> Encoding # toJSONList :: [TeamMembershipList] -> Value # toEncodingList :: [TeamMembershipList] -> Encoding # omitField :: TeamMembershipList -> Bool # | |
Show TeamMembershipList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> TeamMembershipList -> ShowS # show :: TeamMembershipList -> String # showList :: [TeamMembershipList] -> ShowS # | |
Eq TeamMembershipList Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: TeamMembershipList -> TeamMembershipList -> Bool # (/=) :: TeamMembershipList -> TeamMembershipList -> Bool # |
newtype TeamMembershipFilter Source #
Optional query strings for team membership list API
Constructors
TeamMembershipFilter | |
Fields
|
Instances
Show TeamMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> TeamMembershipFilter -> ShowS # show :: TeamMembershipFilter -> String # showList :: [TeamMembershipFilter] -> ShowS # | |||||
Eq TeamMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: TeamMembershipFilter -> TeamMembershipFilter -> Bool # (/=) :: TeamMembershipFilter -> TeamMembershipFilter -> Bool # | |||||
WebexTeamsApiPath TeamMembershipFilter Source # | List team memberships API uses | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsFilter TeamMembershipFilter Source # | User can list team membership with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: TeamMembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse TeamMembershipFilter Source # | List team memberships API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse TeamMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types |
defaultTeamMembershipFilter :: TeamId -> TeamMembershipFilter Source #
Default value of query strings for team membership list API.
Because TeamId
is mandatory, user have to supply it in order to get rest of defaults.
As of writing, there is no filter parameter other than TeamId but TeamMembershipFilter
is
used for providing consistent API like streamEntityWithFilter
.
data CreateTeamMembership Source #
CreateTeamMembership
is encoded to request body JSON of Create a Team Membership REST call.
Constructors
CreateTeamMembership | |
Fields
|
Instances
FromJSON CreateTeamMembership Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser CreateTeamMembership # parseJSONList :: Value -> Parser [CreateTeamMembership] # | |||||
ToJSON CreateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateTeamMembership -> Value # toEncoding :: CreateTeamMembership -> Encoding # toJSONList :: [CreateTeamMembership] -> Value # toEncodingList :: [CreateTeamMembership] -> Encoding # omitField :: CreateTeamMembership -> Bool # | |||||
Show CreateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateTeamMembership -> ShowS # show :: CreateTeamMembership -> String # showList :: [CreateTeamMembership] -> ShowS # | |||||
Eq CreateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: CreateTeamMembership -> CreateTeamMembership -> Bool # (/=) :: CreateTeamMembership -> CreateTeamMembership -> Bool # | |||||
WebexTeamsApiPath CreateTeamMembership Source # | Create teamMembership API uses | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsCreate CreateTeamMembership Source # | User can create a teamMembership. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateTeamMembership Source # | Create teamMembership API uses "CreateTeamMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types |
newtype UpdateTeamMembership Source #
UpdateTeamMembership
is encoded to request body JSON of Update a Team Membership REST call.
Constructors
UpdateTeamMembership | |
Fields |
Instances
FromJSON UpdateTeamMembership Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser UpdateTeamMembership # parseJSONList :: Value -> Parser [UpdateTeamMembership] # | |||||
ToJSON UpdateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdateTeamMembership -> Value # toEncoding :: UpdateTeamMembership -> Encoding # toJSONList :: [UpdateTeamMembership] -> Value # toEncodingList :: [UpdateTeamMembership] -> Encoding # omitField :: UpdateTeamMembership -> Bool # | |||||
Show UpdateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdateTeamMembership -> ShowS # show :: UpdateTeamMembership -> String # showList :: [UpdateTeamMembership] -> ShowS # | |||||
Eq UpdateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: UpdateTeamMembership -> UpdateTeamMembership -> Bool # (/=) :: UpdateTeamMembership -> UpdateTeamMembership -> Bool # | |||||
WebexTeamsApiPath UpdateTeamMembership Source # | Update teamMembership API uses | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsResponse UpdateTeamMembership Source # | Update teamMembership API uses "UpdateTeamMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdateTeamMembership Source # | User can update a teamMembership. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdateTeamMembership Source # | |||||
Defined in Network.WebexTeams.Types |
Identifying Room
.
Instances
FromJSON RoomId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON RoomId Source # | |||||
Generic RoomId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show RoomId Source # | |||||
Eq RoomId Source # | |||||
WebexTeamsApiPath RoomId Source # | Get detail for a room API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: RoomId -> ByteString Source # | |||||
WebexTeamsDetail RoomId Source # | User can get detail of a room. | ||||
WebexTeamsResponse RoomId Source # | Get detail for a room API uses "RoomId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep RoomId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse RoomId Source # | |||||
Defined in Network.WebexTeams.Types |
Title text of Room
.
Instances
FromJSON RoomTitle Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON RoomTitle Source # | |||||
Generic RoomTitle Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show RoomTitle Source # | |||||
Eq RoomTitle Source # | |||||
type Rep RoomTitle Source # | |||||
Defined in Network.WebexTeams.Types |
SIP address.
Instances
FromJSON SipAddr Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON SipAddr Source # | |||||
Generic SipAddr Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show SipAddr Source # | |||||
Eq SipAddr Source # | |||||
type Rep SipAddr Source # | |||||
Defined in Network.WebexTeams.Types |
RoomType
indicates if the Room
is for 1:1 user or group of users.
Constructors
RoomTypeDirect | The Room is for 1:1. Decoded from "direct". |
RoomTypeGroup | The Room is for group. Decoded from "group". |
Room
is communication space in Webex Teams and called "Space" on UI.
Historically it was called Room on UI too but UI has been changed to "Space" in order to avoid
confusion with the concept "Room" associated to hardware facility of video conferencing on Webex Teams.
The name of Room is kept unchanged for backward compatibility.
Room is decoded from response JSON of Get Room Details REST call. It is also element type of response of List Rooms call.
Constructors
Room | |
Fields
|
Constructors
RoomList | |
Fields
|
data RoomFilterSortBy Source #
Sorting option for room list API.
Instances
Show RoomFilterSortBy Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> RoomFilterSortBy -> ShowS # show :: RoomFilterSortBy -> String # showList :: [RoomFilterSortBy] -> ShowS # | |
Eq RoomFilterSortBy Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: RoomFilterSortBy -> RoomFilterSortBy -> Bool # (/=) :: RoomFilterSortBy -> RoomFilterSortBy -> Bool # |
data RoomFilter Source #
Optional query strings for room list API
Constructors
RoomFilter | |
Fields
|
Instances
Generic RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> RoomFilter -> ShowS # show :: RoomFilter -> String # showList :: [RoomFilter] -> ShowS # | |||||
Default RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods def :: RoomFilter # | |||||
Eq RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath RoomFilter Source # | List rooms API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: RoomFilter -> ByteString Source # | |||||
WebexTeamsFilter RoomFilter Source # | User can list rooms with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: RoomFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse RoomFilter Source # | List rooms API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types type Rep RoomFilter = D1 ('MetaData "RoomFilter" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'False) (C1 ('MetaCons "RoomFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "roomFilterTeamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TeamId)) :*: (S1 ('MetaSel ('Just "roomFilterRoomType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RoomType)) :*: S1 ('MetaSel ('Just "roomFilterSortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RoomFilterSortBy))))) | |||||
type ToResponse RoomFilter Source # | |||||
Defined in Network.WebexTeams.Types |
roomTypeToFilterString :: RoomType -> ByteString Source #
Sum type to ByteString converter for RoomType
.
roomFilterSortByToFilterString :: RoomFilterSortBy -> ByteString Source #
Sum type to ByteString converter for RoomFilterSortBy
.
data CreateRoom Source #
CreateRoom
is encoded to request body JSON of Create a Room REST call.
Constructors
CreateRoom | |
Fields
|
Instances
FromJSON CreateRoom Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON CreateRoom Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateRoom -> Value # toEncoding :: CreateRoom -> Encoding # toJSONList :: [CreateRoom] -> Value # toEncodingList :: [CreateRoom] -> Encoding # omitField :: CreateRoom -> Bool # | |||||
Show CreateRoom Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateRoom -> ShowS # show :: CreateRoom -> String # showList :: [CreateRoom] -> ShowS # | |||||
Eq CreateRoom Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath CreateRoom Source # | Create room API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreateRoom -> ByteString Source # | |||||
WebexTeamsCreate CreateRoom Source # | User can create a room. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateRoom Source # | Create room API uses "CreateRoom' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateRoom Source # | |||||
Defined in Network.WebexTeams.Types |
newtype UpdateRoom Source #
UpdateRoom
is encoded to request body JSON of Update a Room REST call.
Constructors
UpdateRoom | |
Fields |
Instances
FromJSON UpdateRoom Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON UpdateRoom Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdateRoom -> Value # toEncoding :: UpdateRoom -> Encoding # toJSONList :: [UpdateRoom] -> Value # toEncodingList :: [UpdateRoom] -> Encoding # omitField :: UpdateRoom -> Bool # | |||||
Show UpdateRoom Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdateRoom -> ShowS # show :: UpdateRoom -> String # showList :: [UpdateRoom] -> ShowS # | |||||
Eq UpdateRoom Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath UpdateRoom Source # | Update room API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateRoom -> ByteString Source # | |||||
WebexTeamsResponse UpdateRoom Source # | Update room API uses "UpdateRoom' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdateRoom Source # | User can update a room. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdateRoom Source # | |||||
Defined in Network.WebexTeams.Types |
newtype MembershipId Source #
Identifying Membership
.
Constructors
MembershipId Text |
Instances
FromJSON MembershipId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON MembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: MembershipId -> Value # toEncoding :: MembershipId -> Encoding # toJSONList :: [MembershipId] -> Value # toEncodingList :: [MembershipId] -> Encoding # omitField :: MembershipId -> Bool # | |||||
Generic MembershipId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show MembershipId Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MembershipId -> ShowS # show :: MembershipId -> String # showList :: [MembershipId] -> ShowS # | |||||
Eq MembershipId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsApiPath MembershipId Source # | Get detail for a membership API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: MembershipId -> ByteString Source # | |||||
WebexTeamsDetail MembershipId Source # | User can get detail of a membership. | ||||
Defined in Network.WebexTeams.Types Methods toIdStr :: MembershipId -> Text Source # | |||||
WebexTeamsResponse MembershipId Source # | Get detail for a membership API uses "MembershipId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep MembershipId Source # | |||||
Defined in Network.WebexTeams.Types type Rep MembershipId = D1 ('MetaData "MembershipId" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "MembershipId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
type ToResponse MembershipId Source # | |||||
Defined in Network.WebexTeams.Types |
data Membership Source #
Membership
is association between Room
and Person
.
It can be N:N relation. A Person can belong to multiple Room.
Membership is decoded from response JSON of Get Membership Details REST call.
It is also element type of response of List Memberships call.
Constructors
Membership | |
Fields
|
Instances
FromJSON Membership Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Membership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: Membership -> Value # toEncoding :: Membership -> Encoding # toJSONList :: [Membership] -> Value # toEncodingList :: [Membership] -> Encoding # omitField :: Membership -> Bool # | |||||
Show Membership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> Membership -> ShowS # show :: Membership -> String # showList :: [Membership] -> ShowS # | |||||
Eq Membership Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsListItem Membership Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
Methods unwrap :: ToList Membership -> [Membership] Source # | |||||
type ToList Membership Source # | |||||
Defined in Network.WebexTeams.Types |
newtype MembershipList Source #
MembershipList
is decoded from response JSON of List Memberships REST call. It is list of Membership
.
Constructors
MembershipList | |
Fields |
Instances
FromJSON MembershipList Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser MembershipList # parseJSONList :: Value -> Parser [MembershipList] # | |
ToJSON MembershipList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: MembershipList -> Value # toEncoding :: MembershipList -> Encoding # toJSONList :: [MembershipList] -> Value # toEncodingList :: [MembershipList] -> Encoding # omitField :: MembershipList -> Bool # | |
Show MembershipList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MembershipList -> ShowS # show :: MembershipList -> String # showList :: [MembershipList] -> ShowS # | |
Eq MembershipList Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: MembershipList -> MembershipList -> Bool # (/=) :: MembershipList -> MembershipList -> Bool # |
data MembershipFilter Source #
Optional query strings for room membership list API
Constructors
MembershipFilter | |
Fields
|
Instances
Generic MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods from :: MembershipFilter -> Rep MembershipFilter x # to :: Rep MembershipFilter x -> MembershipFilter # | |||||
Show MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MembershipFilter -> ShowS # show :: MembershipFilter -> String # showList :: [MembershipFilter] -> ShowS # | |||||
Default MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods def :: MembershipFilter # | |||||
Eq MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: MembershipFilter -> MembershipFilter -> Bool # (/=) :: MembershipFilter -> MembershipFilter -> Bool # | |||||
WebexTeamsApiPath MembershipFilter Source # | List memberships API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: MembershipFilter -> ByteString Source # | |||||
WebexTeamsFilter MembershipFilter Source # | User can list memberships with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: MembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse MembershipFilter Source # | List memberships API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types type Rep MembershipFilter = D1 ('MetaData "MembershipFilter" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'False) (C1 ('MetaCons "MembershipFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "membershipFilterRoomId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RoomId)) :*: (S1 ('MetaSel ('Just "membershipFilterPersonId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PersonId)) :*: S1 ('MetaSel ('Just "membershipFilterPersonEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Email))))) | |||||
type ToResponse MembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types |
data CreateMembership Source #
CreateMembership
is encoded to request body JSON of Create a Membership REST call.
Constructors
CreateMembership | |
Fields
|
Instances
FromJSON CreateMembership Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser CreateMembership # parseJSONList :: Value -> Parser [CreateMembership] # | |||||
ToJSON CreateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateMembership -> Value # toEncoding :: CreateMembership -> Encoding # toJSONList :: [CreateMembership] -> Value # toEncodingList :: [CreateMembership] -> Encoding # omitField :: CreateMembership -> Bool # | |||||
Show CreateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateMembership -> ShowS # show :: CreateMembership -> String # showList :: [CreateMembership] -> ShowS # | |||||
Eq CreateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: CreateMembership -> CreateMembership -> Bool # (/=) :: CreateMembership -> CreateMembership -> Bool # | |||||
WebexTeamsApiPath CreateMembership Source # | Create membership API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreateMembership -> ByteString Source # | |||||
WebexTeamsCreate CreateMembership Source # | User can create a membership. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateMembership Source # | Create membership API uses "CreateMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateMembership Source # | |||||
Defined in Network.WebexTeams.Types |
newtype UpdateMembership Source #
UpdateMembership
is encoded to request body JSON of Update a Membership REST call.
Constructors
UpdateMembership | |
Fields |
Instances
FromJSON UpdateMembership Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser UpdateMembership # parseJSONList :: Value -> Parser [UpdateMembership] # | |||||
ToJSON UpdateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdateMembership -> Value # toEncoding :: UpdateMembership -> Encoding # toJSONList :: [UpdateMembership] -> Value # toEncodingList :: [UpdateMembership] -> Encoding # omitField :: UpdateMembership -> Bool # | |||||
Show UpdateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdateMembership -> ShowS # show :: UpdateMembership -> String # showList :: [UpdateMembership] -> ShowS # | |||||
Eq UpdateMembership Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: UpdateMembership -> UpdateMembership -> Bool # (/=) :: UpdateMembership -> UpdateMembership -> Bool # | |||||
WebexTeamsApiPath UpdateMembership Source # | Update membership API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateMembership -> ByteString Source # | |||||
WebexTeamsResponse UpdateMembership Source # | Update membership API uses "UpdateMembership' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdateMembership Source # | User can update a membership. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdateMembership Source # | |||||
Defined in Network.WebexTeams.Types |
Identifying Message
.
Instances
FromJSON MessageId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON MessageId Source # | |||||
Generic MessageId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show MessageId Source # | |||||
Eq MessageId Source # | |||||
WebexTeamsApiPath MessageId Source # | Get detail for message API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: MessageId -> ByteString Source # | |||||
WebexTeamsDetail MessageId Source # | User can get detail of a message. | ||||
WebexTeamsResponse MessageId Source # | Get detail for a message API uses "MessageId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep MessageId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse MessageId Source # | |||||
Defined in Network.WebexTeams.Types |
newtype MessageText Source #
Body of message in plain text.
Constructors
MessageText Text |
Instances
FromJSON MessageText Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON MessageText Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: MessageText -> Value # toEncoding :: MessageText -> Encoding # toJSONList :: [MessageText] -> Value # toEncodingList :: [MessageText] -> Encoding # omitField :: MessageText -> Bool # | |||||
Generic MessageText Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show MessageText Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MessageText -> ShowS # show :: MessageText -> String # showList :: [MessageText] -> ShowS # | |||||
Eq MessageText Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep MessageText Source # | |||||
Defined in Network.WebexTeams.Types type Rep MessageText = D1 ('MetaData "MessageText" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "MessageText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype MessageHtml Source #
Body of message in html.
Constructors
MessageHtml Text |
Instances
FromJSON MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: MessageHtml -> Value # toEncoding :: MessageHtml -> Encoding # toJSONList :: [MessageHtml] -> Value # toEncodingList :: [MessageHtml] -> Encoding # omitField :: MessageHtml -> Bool # | |||||
Generic MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MessageHtml -> ShowS # show :: MessageHtml -> String # showList :: [MessageHtml] -> ShowS # | |||||
Eq MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep MessageHtml Source # | |||||
Defined in Network.WebexTeams.Types type Rep MessageHtml = D1 ('MetaData "MessageHtml" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "MessageHtml" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype MessageMarkdown Source #
Body of message in markdown.
Constructors
MessageMarkdown Text |
Instances
FromJSON MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser MessageMarkdown # parseJSONList :: Value -> Parser [MessageMarkdown] # | |||||
ToJSON MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: MessageMarkdown -> Value # toEncoding :: MessageMarkdown -> Encoding # toJSONList :: [MessageMarkdown] -> Value # toEncodingList :: [MessageMarkdown] -> Encoding # omitField :: MessageMarkdown -> Bool # | |||||
Generic MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods from :: MessageMarkdown -> Rep MessageMarkdown x # to :: Rep MessageMarkdown x -> MessageMarkdown # | |||||
Show MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MessageMarkdown -> ShowS # show :: MessageMarkdown -> String # showList :: [MessageMarkdown] -> ShowS # | |||||
Eq MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: MessageMarkdown -> MessageMarkdown -> Bool # (/=) :: MessageMarkdown -> MessageMarkdown -> Bool # | |||||
type Rep MessageMarkdown Source # | |||||
Defined in Network.WebexTeams.Types type Rep MessageMarkdown = D1 ('MetaData "MessageMarkdown" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "MessageMarkdown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
URL pointing attached file of message.
Instances
FromJSON FileUrl Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON FileUrl Source # | |||||
Generic FileUrl Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show FileUrl Source # | |||||
Eq FileUrl Source # | |||||
type Rep FileUrl Source # | |||||
Defined in Network.WebexTeams.Types |
Message
is a message posted to a Room
by some Person
.
Room is decoded from response JSON of Get Message Details REST call.
It is also element type of response of List Messages call.
Constructors
Message | |
Fields
|
Instances
FromJSON Message Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Message Source # | |||||
Show Message Source # | |||||
Eq Message Source # | |||||
WebexTeamsListItem Message Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToList Message Source # | |||||
Defined in Network.WebexTeams.Types |
newtype MessageList Source #
MessageList
is decoded from response JSON of List Messages REST call. It is list of Message
.
Constructors
MessageList | |
Fields
|
Instances
FromJSON MessageList Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON MessageList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: MessageList -> Value # toEncoding :: MessageList -> Encoding # toJSONList :: [MessageList] -> Value # toEncodingList :: [MessageList] -> Encoding # omitField :: MessageList -> Bool # | |
Show MessageList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MessageList -> ShowS # show :: MessageList -> String # showList :: [MessageList] -> ShowS # | |
Eq MessageList Source # | |
Defined in Network.WebexTeams.Types |
data MentionedPeople Source #
Sum type for mentionedPeople query string. It can be "me" or PersonId
.
Constructors
MentionedPeopleMe | |
MentionedPeople PersonId |
Instances
Show MentionedPeople Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MentionedPeople -> ShowS # show :: MentionedPeople -> String # showList :: [MentionedPeople] -> ShowS # | |
Eq MentionedPeople Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: MentionedPeople -> MentionedPeople -> Bool # (/=) :: MentionedPeople -> MentionedPeople -> Bool # |
data MessageFilter Source #
Optional query strings for message list API
Constructors
MessageFilter | |
Fields
|
Instances
Show MessageFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> MessageFilter -> ShowS # show :: MessageFilter -> String # showList :: [MessageFilter] -> ShowS # | |||||
Eq MessageFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: MessageFilter -> MessageFilter -> Bool # (/=) :: MessageFilter -> MessageFilter -> Bool # | |||||
WebexTeamsApiPath MessageFilter Source # | List messages API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: MessageFilter -> ByteString Source # | |||||
WebexTeamsFilter MessageFilter Source # | User can list messages with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: MessageFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse MessageFilter Source # | List messages API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse MessageFilter Source # | |||||
Defined in Network.WebexTeams.Types |
defaultMessageFilter :: RoomId -> MessageFilter Source #
Default value of query strings for message list API.
Because RoomId
is mandatory, user have to supply it in order to get rest of defaults.
mentionedPeopleToFilterString :: MentionedPeople -> ByteString Source #
Sum type to ByteString converter for mentionedPeople query string.
data CreateMessage Source #
CreateMessage
is encoded to request body JSON of Create a Message REST call.
Constructors
CreateMessage | |
Fields
|
Instances
FromJSON CreateMessage Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser CreateMessage # parseJSONList :: Value -> Parser [CreateMessage] # | |||||
ToJSON CreateMessage Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateMessage -> Value # toEncoding :: CreateMessage -> Encoding # toJSONList :: [CreateMessage] -> Value # toEncodingList :: [CreateMessage] -> Encoding # omitField :: CreateMessage -> Bool # | |||||
Show CreateMessage Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateMessage -> ShowS # show :: CreateMessage -> String # showList :: [CreateMessage] -> ShowS # | |||||
Eq CreateMessage Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: CreateMessage -> CreateMessage -> Bool # (/=) :: CreateMessage -> CreateMessage -> Bool # | |||||
WebexTeamsApiPath CreateMessage Source # | Create message API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreateMessage -> ByteString Source # | |||||
WebexTeamsCreate CreateMessage Source # | User can create a message. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateMessage Source # | Create message API uses "CreateMessage' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateMessage Source # | |||||
Defined in Network.WebexTeams.Types |
newtype OrganizationDisplayName Source #
Display name of Organization
Constructors
OrganizationDisplayName Text |
Instances
FromJSON OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser OrganizationDisplayName # parseJSONList :: Value -> Parser [OrganizationDisplayName] # | |||||
ToJSON OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: OrganizationDisplayName -> Value # toEncoding :: OrganizationDisplayName -> Encoding # toJSONList :: [OrganizationDisplayName] -> Value # | |||||
Generic OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
Methods from :: OrganizationDisplayName -> Rep OrganizationDisplayName x # to :: Rep OrganizationDisplayName x -> OrganizationDisplayName # | |||||
Show OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> OrganizationDisplayName -> ShowS # show :: OrganizationDisplayName -> String # showList :: [OrganizationDisplayName] -> ShowS # | |||||
Eq OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: OrganizationDisplayName -> OrganizationDisplayName -> Bool # (/=) :: OrganizationDisplayName -> OrganizationDisplayName -> Bool # | |||||
type Rep OrganizationDisplayName Source # | |||||
Defined in Network.WebexTeams.Types type Rep OrganizationDisplayName = D1 ('MetaData "OrganizationDisplayName" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "OrganizationDisplayName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data Organization Source #
Organization
is an administrative group of Webex Teams users.
Each Person
belongs to one Organization.
Organization is decoded from response JSON of Get Organization Details REST call.
It is also element type of response of List Organizations call.
Constructors
Organization | |
Fields
|
Instances
FromJSON Organization Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Organization Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: Organization -> Value # toEncoding :: Organization -> Encoding # toJSONList :: [Organization] -> Value # toEncodingList :: [Organization] -> Encoding # omitField :: Organization -> Bool # | |||||
Show Organization Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> Organization -> ShowS # show :: Organization -> String # showList :: [Organization] -> ShowS # | |||||
Eq Organization Source # | |||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsListItem Organization Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
Methods unwrap :: ToList Organization -> [Organization] Source # | |||||
type ToList Organization Source # | |||||
Defined in Network.WebexTeams.Types |
newtype OrganizationList Source #
OrganizationList
is decoded from response JSON of List Organizations REST call. It is list of Organization
.
Constructors
OrganizationList | |
Fields |
Instances
FromJSON OrganizationList Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser OrganizationList # parseJSONList :: Value -> Parser [OrganizationList] # | |
ToJSON OrganizationList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: OrganizationList -> Value # toEncoding :: OrganizationList -> Encoding # toJSONList :: [OrganizationList] -> Value # toEncodingList :: [OrganizationList] -> Encoding # omitField :: OrganizationList -> Bool # | |
Show OrganizationList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> OrganizationList -> ShowS # show :: OrganizationList -> String # showList :: [OrganizationList] -> ShowS # | |
Eq OrganizationList Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: OrganizationList -> OrganizationList -> Bool # (/=) :: OrganizationList -> OrganizationList -> Bool # |
newtype LicenseName Source #
Display name of License
Constructors
LicenseName Text |
Instances
FromJSON LicenseName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON LicenseName Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: LicenseName -> Value # toEncoding :: LicenseName -> Encoding # toJSONList :: [LicenseName] -> Value # toEncodingList :: [LicenseName] -> Encoding # omitField :: LicenseName -> Bool # | |||||
Generic LicenseName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show LicenseName Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> LicenseName -> ShowS # show :: LicenseName -> String # showList :: [LicenseName] -> ShowS # | |||||
Eq LicenseName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep LicenseName Source # | |||||
Defined in Network.WebexTeams.Types type Rep LicenseName = D1 ('MetaData "LicenseName" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "LicenseName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype LicenseUnit Source #
Counting number of granted or consumed License
Constructors
LicenseUnit Integer |
Instances
FromJSON LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: LicenseUnit -> Value # toEncoding :: LicenseUnit -> Encoding # toJSONList :: [LicenseUnit] -> Value # toEncodingList :: [LicenseUnit] -> Encoding # omitField :: LicenseUnit -> Bool # | |||||
Generic LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> LicenseUnit -> ShowS # show :: LicenseUnit -> String # showList :: [LicenseUnit] -> ShowS # | |||||
Eq LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep LicenseUnit Source # | |||||
Defined in Network.WebexTeams.Types type Rep LicenseUnit = D1 ('MetaData "LicenseUnit" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "LicenseUnit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) |
License
is allowance for features and services of Webex Teams subscription.
License is decoded from response JSON of Get License Details REST call.
It is also element type of response of List Licenses call.
Constructors
License | |
Fields
|
Instances
FromJSON License Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON License Source # | |||||
Show License Source # | |||||
Eq License Source # | |||||
WebexTeamsListItem License Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToList License Source # | |||||
Defined in Network.WebexTeams.Types |
newtype LicenseList Source #
LicenseList
is decoded from response JSON of List Licenses REST call. It is list of License
.
Constructors
LicenseList | |
Fields
|
Instances
FromJSON LicenseList Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON LicenseList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: LicenseList -> Value # toEncoding :: LicenseList -> Encoding # toJSONList :: [LicenseList] -> Value # toEncodingList :: [LicenseList] -> Encoding # omitField :: LicenseList -> Bool # | |
Show LicenseList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> LicenseList -> ShowS # show :: LicenseList -> String # showList :: [LicenseList] -> ShowS # | |
Eq LicenseList Source # | |
Defined in Network.WebexTeams.Types |
newtype LicenseFilter Source #
Optional query strings for license list API
Constructors
LicenseFilter | |
Fields
|
Instances
Generic LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> LicenseFilter -> ShowS # show :: LicenseFilter -> String # showList :: [LicenseFilter] -> ShowS # | |||||
Default LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods def :: LicenseFilter # | |||||
Eq LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: LicenseFilter -> LicenseFilter -> Bool # (/=) :: LicenseFilter -> LicenseFilter -> Bool # | |||||
WebexTeamsApiPath LicenseFilter Source # | List licenses API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: LicenseFilter -> ByteString Source # | |||||
WebexTeamsFilter LicenseFilter Source # | User can list licenses with filter parameter. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: LicenseFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse LicenseFilter Source # | List licenses API uses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types type Rep LicenseFilter = D1 ('MetaData "LicenseFilter" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "LicenseFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "licenseFilterOrgId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OrganizationId)))) | |||||
type ToResponse LicenseFilter Source # | |||||
Defined in Network.WebexTeams.Types |
Name of Role
.
Instances
FromJSON RoleName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON RoleName Source # | |||||
Generic RoleName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show RoleName Source # | |||||
Eq RoleName Source # | |||||
type Rep RoleName Source # | |||||
Defined in Network.WebexTeams.Types |
A persona for an authenticated user, corresponding to a set of privileges within an organization. Role is decoded from response JSON of Get Role Details REST call. It is also element type of response of List Roles call.
Constructors
Role | |
Constructors
RoleList | |
Fields
|
Webhook
identifier which can be assigned to user. See Webhook
too.
Instances
FromJSON WebhookId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON WebhookId Source # | |||||
Generic WebhookId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show WebhookId Source # | |||||
Eq WebhookId Source # | |||||
WebexTeamsApiPath WebhookId Source # | Get detail for webhook API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: WebhookId -> ByteString Source # | |||||
WebexTeamsDetail WebhookId Source # | User can get detail of a webhook. | ||||
WebexTeamsResponse WebhookId Source # | Get detail for a webhook API uses "WebhookId' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type Rep WebhookId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse WebhookId Source # | |||||
Defined in Network.WebexTeams.Types |
newtype WebhookName Source #
Name of Webhook
.
Constructors
WebhookName Text |
Instances
FromJSON WebhookName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON WebhookName Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookName -> Value # toEncoding :: WebhookName -> Encoding # toJSONList :: [WebhookName] -> Value # toEncodingList :: [WebhookName] -> Encoding # omitField :: WebhookName -> Bool # | |||||
Generic WebhookName Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show WebhookName Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookName -> ShowS # show :: WebhookName -> String # showList :: [WebhookName] -> ShowS # | |||||
Eq WebhookName Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep WebhookName Source # | |||||
Defined in Network.WebexTeams.Types type Rep WebhookName = D1 ('MetaData "WebhookName" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "WebhookName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype WebhookUrl Source #
URL pointing to webhook target.
Constructors
WebhookUrl Text |
Instances
FromJSON WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookUrl -> Value # toEncoding :: WebhookUrl -> Encoding # toJSONList :: [WebhookUrl] -> Value # toEncodingList :: [WebhookUrl] -> Encoding # omitField :: WebhookUrl -> Bool # | |||||
Generic WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookUrl -> ShowS # show :: WebhookUrl -> String # showList :: [WebhookUrl] -> ShowS # | |||||
Eq WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types | |||||
type Rep WebhookUrl Source # | |||||
Defined in Network.WebexTeams.Types type Rep WebhookUrl = D1 ('MetaData "WebhookUrl" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "WebhookUrl" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype WebhookFilter Source #
URL-encoded set of webhook filtering criteria.
Constructors
WebhookFilter Text |
Instances
FromJSON WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookFilter # parseJSONList :: Value -> Parser [WebhookFilter] # | |||||
ToJSON WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookFilter -> Value # toEncoding :: WebhookFilter -> Encoding # toJSONList :: [WebhookFilter] -> Value # toEncodingList :: [WebhookFilter] -> Encoding # omitField :: WebhookFilter -> Bool # | |||||
Generic WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookFilter -> ShowS # show :: WebhookFilter -> String # showList :: [WebhookFilter] -> ShowS # | |||||
Eq WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: WebhookFilter -> WebhookFilter -> Bool # (/=) :: WebhookFilter -> WebhookFilter -> Bool # | |||||
type Rep WebhookFilter Source # | |||||
Defined in Network.WebexTeams.Types type Rep WebhookFilter = D1 ('MetaData "WebhookFilter" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "WebhookFilter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
newtype WebhookSecret Source #
Shared secret supplied by user to authenticate Webex Cloud by webhook receiver.
Constructors
WebhookSecret Text |
Instances
FromJSON WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookSecret # parseJSONList :: Value -> Parser [WebhookSecret] # | |||||
ToJSON WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookSecret -> Value # toEncoding :: WebhookSecret -> Encoding # toJSONList :: [WebhookSecret] -> Value # toEncodingList :: [WebhookSecret] -> Encoding # omitField :: WebhookSecret -> Bool # | |||||
Generic WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookSecret -> ShowS # show :: WebhookSecret -> String # showList :: [WebhookSecret] -> ShowS # | |||||
Eq WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: WebhookSecret -> WebhookSecret -> Bool # (/=) :: WebhookSecret -> WebhookSecret -> Bool # | |||||
type Rep WebhookSecret Source # | |||||
Defined in Network.WebexTeams.Types type Rep WebhookSecret = D1 ('MetaData "WebhookSecret" "Network.WebexTeams.Types" "webex-teams-api-0.2.0.1-EttafTwtv8x3lIZw6by9WG" 'True) (C1 ('MetaCons "WebhookSecret" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data WebhookResource Source #
WebhookResource
indicates source of event which triggered webhook access.
Constructors
WebhookResourceAll | |
WebhookResourceTeams | |
WebhookResourceMemberships | |
WebhookResourceMessages | |
WebhookResourceRooms |
Instances
FromJSON WebhookResource Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookResource # parseJSONList :: Value -> Parser [WebhookResource] # | |
ToJSON WebhookResource Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookResource -> Value # toEncoding :: WebhookResource -> Encoding # toJSONList :: [WebhookResource] -> Value # toEncodingList :: [WebhookResource] -> Encoding # omitField :: WebhookResource -> Bool # | |
Show WebhookResource Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookResource -> ShowS # show :: WebhookResource -> String # showList :: [WebhookResource] -> ShowS # | |
Eq WebhookResource Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookResource -> WebhookResource -> Bool # (/=) :: WebhookResource -> WebhookResource -> Bool # |
data WebhookEvent Source #
WebhookEvent indicates which event triggered Webhook access.
Instances
FromJSON WebhookEvent Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON WebhookEvent Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookEvent -> Value # toEncoding :: WebhookEvent -> Encoding # toJSONList :: [WebhookEvent] -> Value # toEncodingList :: [WebhookEvent] -> Encoding # omitField :: WebhookEvent -> Bool # | |
Show WebhookEvent Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookEvent -> ShowS # show :: WebhookEvent -> String # showList :: [WebhookEvent] -> ShowS # | |
Eq WebhookEvent Source # | |
Defined in Network.WebexTeams.Types |
Webhook
allow your app to be notified via HTTP when a specific event occurs on Webex Teams. For example,
your app can register a webhook to be notified when a new message is posted into a specific room.
Constructors
Webhook | |
Fields
|
Instances
FromJSON Webhook Source # |
| ||||
Defined in Network.WebexTeams.Types | |||||
ToJSON Webhook Source # | |||||
Show Webhook Source # | |||||
Eq Webhook Source # | |||||
WebexTeamsListItem Webhook Source # |
| ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToList Webhook Source # | |||||
Defined in Network.WebexTeams.Types |
newtype WebhookList Source #
WebhookList
is decoded from response JSON of List Webhook REST call. It is list of Webhook
.
Constructors
WebhookList | |
Fields
|
Instances
FromJSON WebhookList Source # |
|
Defined in Network.WebexTeams.Types | |
ToJSON WebhookList Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookList -> Value # toEncoding :: WebhookList -> Encoding # toJSONList :: [WebhookList] -> Value # toEncodingList :: [WebhookList] -> Encoding # omitField :: WebhookList -> Bool # | |
Show WebhookList Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookList -> ShowS # show :: WebhookList -> String # showList :: [WebhookList] -> ShowS # | |
Eq WebhookList Source # | |
Defined in Network.WebexTeams.Types |
data CreateWebhook Source #
CreateWebhook
is encoded to request body JSON of Create a Webhook REST call.
Constructors
CreateWebhook | |
Fields
|
Instances
FromJSON CreateWebhook Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser CreateWebhook # parseJSONList :: Value -> Parser [CreateWebhook] # | |||||
ToJSON CreateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: CreateWebhook -> Value # toEncoding :: CreateWebhook -> Encoding # toJSONList :: [CreateWebhook] -> Value # toEncodingList :: [CreateWebhook] -> Encoding # omitField :: CreateWebhook -> Bool # | |||||
Show CreateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> CreateWebhook -> ShowS # show :: CreateWebhook -> String # showList :: [CreateWebhook] -> ShowS # | |||||
Eq CreateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: CreateWebhook -> CreateWebhook -> Bool # (/=) :: CreateWebhook -> CreateWebhook -> Bool # | |||||
WebexTeamsApiPath CreateWebhook Source # | Create webhook API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: CreateWebhook -> ByteString Source # | |||||
WebexTeamsCreate CreateWebhook Source # | User can create a webhook. | ||||
Defined in Network.WebexTeams.Types | |||||
WebexTeamsResponse CreateWebhook Source # | Create webhook API uses "CreateWebhook' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse CreateWebhook Source # | |||||
Defined in Network.WebexTeams.Types |
data UpdateWebhook Source #
UpdateWebhook
is encoded to request body JSON of Update a Webhook REST call.
Constructors
UpdateWebhook | |
Fields
|
Instances
FromJSON UpdateWebhook Source # |
| ||||
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser UpdateWebhook # parseJSONList :: Value -> Parser [UpdateWebhook] # | |||||
ToJSON UpdateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods toJSON :: UpdateWebhook -> Value # toEncoding :: UpdateWebhook -> Encoding # toJSONList :: [UpdateWebhook] -> Value # toEncodingList :: [UpdateWebhook] -> Encoding # omitField :: UpdateWebhook -> Bool # | |||||
Show UpdateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> UpdateWebhook -> ShowS # show :: UpdateWebhook -> String # showList :: [UpdateWebhook] -> ShowS # | |||||
Eq UpdateWebhook Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: UpdateWebhook -> UpdateWebhook -> Bool # (/=) :: UpdateWebhook -> UpdateWebhook -> Bool # | |||||
WebexTeamsApiPath UpdateWebhook Source # | Update webhook API uses | ||||
Defined in Network.WebexTeams.Types Methods apiPath :: UpdateWebhook -> ByteString Source # | |||||
WebexTeamsResponse UpdateWebhook Source # | Update webhook API uses "UpdateWebhook' and responses | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
WebexTeamsUpdate UpdateWebhook Source # | User can update a webhook. | ||||
Defined in Network.WebexTeams.Types | |||||
type ToResponse UpdateWebhook Source # | |||||
Defined in Network.WebexTeams.Types |
data WebhookMembershipFilter Source #
Optional query strings for membership event.
Constructors
WebhookMembershipFilter | |
Fields
|
Instances
Show WebhookMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookMembershipFilter -> ShowS # show :: WebhookMembershipFilter -> String # showList :: [WebhookMembershipFilter] -> ShowS # | |||||
Eq WebhookMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: WebhookMembershipFilter -> WebhookMembershipFilter -> Bool # (/=) :: WebhookMembershipFilter -> WebhookMembershipFilter -> Bool # | |||||
WebexTeamsApiPath WebhookMembershipFilter Source # | Create webhook API accepts | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsFilter WebhookMembershipFilter Source # | User can filter Webhook events from membership. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookMembershipFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse WebhookMembershipFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse WebhookMembershipFilter Source # | |||||
Defined in Network.WebexTeams.Types |
data WebhookMessageFilter Source #
Optional query strings for message event.
Constructors
WebhookMessageFilter | |
Fields
|
Instances
Show WebhookMessageFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookMessageFilter -> ShowS # show :: WebhookMessageFilter -> String # showList :: [WebhookMessageFilter] -> ShowS # | |||||
Eq WebhookMessageFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: WebhookMessageFilter -> WebhookMessageFilter -> Bool # (/=) :: WebhookMessageFilter -> WebhookMessageFilter -> Bool # | |||||
WebexTeamsApiPath WebhookMessageFilter Source # | Create webhook API accepts | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsFilter WebhookMessageFilter Source # | User can filter Webhook events from message. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookMessageFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse WebhookMessageFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse WebhookMessageFilter Source # | |||||
Defined in Network.WebexTeams.Types |
data WebhookRoomFilter Source #
Optional query strings for room event.
Constructors
WebhookRoomFilter | |
Fields
|
Instances
Show WebhookRoomFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookRoomFilter -> ShowS # show :: WebhookRoomFilter -> String # showList :: [WebhookRoomFilter] -> ShowS # | |||||
Eq WebhookRoomFilter Source # | |||||
Defined in Network.WebexTeams.Types Methods (==) :: WebhookRoomFilter -> WebhookRoomFilter -> Bool # (/=) :: WebhookRoomFilter -> WebhookRoomFilter -> Bool # | |||||
WebexTeamsApiPath WebhookRoomFilter Source # | Create webhook API accepts | ||||
Defined in Network.WebexTeams.Types Methods | |||||
WebexTeamsFilter WebhookRoomFilter Source # | User can filter Webhook events from room. | ||||
Defined in Network.WebexTeams.Types Methods toFilterList :: WebhookRoomFilter -> [(ByteString, Maybe ByteString)] Source # | |||||
WebexTeamsResponse WebhookRoomFilter Source # | List team memberships API accepts | ||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
type ToResponse WebhookRoomFilter Source # | |||||
Defined in Network.WebexTeams.Types |
Identifier of app.
Instances
FromJSON AppId Source # | |||||
Defined in Network.WebexTeams.Types | |||||
ToJSON AppId Source # | |||||
Generic AppId Source # | |||||
Defined in Network.WebexTeams.Types Associated Types
| |||||
Show AppId Source # | |||||
Eq AppId Source # | |||||
type Rep AppId Source # | |||||
Defined in Network.WebexTeams.Types |
data WebhookNotifyOwnedBy Source #
WebhookNotifyOwnedBy
indicates if the webhook is owned by the org or the creator.
Constructors
WebhookNotifyOwnedByOrg | |
WebhookNotifyOwnedByCreator |
Instances
FromJSON WebhookNotifyOwnedBy Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotifyOwnedBy # parseJSONList :: Value -> Parser [WebhookNotifyOwnedBy] # | |
ToJSON WebhookNotifyOwnedBy Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotifyOwnedBy -> Value # toEncoding :: WebhookNotifyOwnedBy -> Encoding # toJSONList :: [WebhookNotifyOwnedBy] -> Value # toEncodingList :: [WebhookNotifyOwnedBy] -> Encoding # omitField :: WebhookNotifyOwnedBy -> Bool # | |
Show WebhookNotifyOwnedBy Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotifyOwnedBy -> ShowS # show :: WebhookNotifyOwnedBy -> String # showList :: [WebhookNotifyOwnedBy] -> ShowS # | |
Eq WebhookNotifyOwnedBy Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotifyOwnedBy -> WebhookNotifyOwnedBy -> Bool # (/=) :: WebhookNotifyOwnedBy -> WebhookNotifyOwnedBy -> Bool # |
data WebhookNotifyStatus Source #
WebhookNotifyStatus
indicates if the webhook is active.
Constructors
WebhookNotifyStatusActive | |
WebhookNotifyStatusDesabled |
Instances
FromJSON WebhookNotifyStatus Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotifyStatus # parseJSONList :: Value -> Parser [WebhookNotifyStatus] # | |
ToJSON WebhookNotifyStatus Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotifyStatus -> Value # toEncoding :: WebhookNotifyStatus -> Encoding # toJSONList :: [WebhookNotifyStatus] -> Value # toEncodingList :: [WebhookNotifyStatus] -> Encoding # omitField :: WebhookNotifyStatus -> Bool # | |
Show WebhookNotifyStatus Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotifyStatus -> ShowS # show :: WebhookNotifyStatus -> String # showList :: [WebhookNotifyStatus] -> ShowS # | |
Eq WebhookNotifyStatus Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotifyStatus -> WebhookNotifyStatus -> Bool # (/=) :: WebhookNotifyStatus -> WebhookNotifyStatus -> Bool # |
data WebhookNotify Source #
Webhook
decodes webhook notification from Webex Cloud except data field.
Data field can be one of Membership
, Message
or Room
. Type of data field is
shown as value of resource field.
Constructors
WebhookNotify | |
Fields
|
Instances
FromJSON WebhookNotify Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotify # parseJSONList :: Value -> Parser [WebhookNotify] # | |
ToJSON WebhookNotify Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotify -> Value # toEncoding :: WebhookNotify -> Encoding # toJSONList :: [WebhookNotify] -> Value # toEncodingList :: [WebhookNotify] -> Encoding # omitField :: WebhookNotify -> Bool # | |
Show WebhookNotify Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotify -> ShowS # show :: WebhookNotify -> String # showList :: [WebhookNotify] -> ShowS # | |
Eq WebhookNotify Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotify -> WebhookNotify -> Bool # (/=) :: WebhookNotify -> WebhookNotify -> Bool # |
newtype WebhookNotifyMembership Source #
Data part of webhook notification is decoded to Membership
when resource field value is "memberships".
Constructors
WebhookNotifyMembership | |
Fields |
Instances
FromJSON WebhookNotifyMembership Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotifyMembership # parseJSONList :: Value -> Parser [WebhookNotifyMembership] # | |
ToJSON WebhookNotifyMembership Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotifyMembership -> Value # toEncoding :: WebhookNotifyMembership -> Encoding # toJSONList :: [WebhookNotifyMembership] -> Value # | |
Show WebhookNotifyMembership Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotifyMembership -> ShowS # show :: WebhookNotifyMembership -> String # showList :: [WebhookNotifyMembership] -> ShowS # | |
Eq WebhookNotifyMembership Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotifyMembership -> WebhookNotifyMembership -> Bool # (/=) :: WebhookNotifyMembership -> WebhookNotifyMembership -> Bool # |
newtype WebhookNotifyMessage Source #
Data part of webhook notification is decoded to Message
when resource field value is "messages".
Constructors
WebhookNotifyMessage | |
Fields |
Instances
FromJSON WebhookNotifyMessage Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotifyMessage # parseJSONList :: Value -> Parser [WebhookNotifyMessage] # | |
ToJSON WebhookNotifyMessage Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotifyMessage -> Value # toEncoding :: WebhookNotifyMessage -> Encoding # toJSONList :: [WebhookNotifyMessage] -> Value # toEncodingList :: [WebhookNotifyMessage] -> Encoding # omitField :: WebhookNotifyMessage -> Bool # | |
Show WebhookNotifyMessage Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotifyMessage -> ShowS # show :: WebhookNotifyMessage -> String # showList :: [WebhookNotifyMessage] -> ShowS # | |
Eq WebhookNotifyMessage Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotifyMessage -> WebhookNotifyMessage -> Bool # (/=) :: WebhookNotifyMessage -> WebhookNotifyMessage -> Bool # |
newtype WebhookNotifyRoom Source #
Data part of webhook notification is decoded to Room
when resource field value is "rooms".
Constructors
WebhookNotifyRoom | |
Fields |
Instances
FromJSON WebhookNotifyRoom Source # |
|
Defined in Network.WebexTeams.Types Methods parseJSON :: Value -> Parser WebhookNotifyRoom # parseJSONList :: Value -> Parser [WebhookNotifyRoom] # | |
ToJSON WebhookNotifyRoom Source # | |
Defined in Network.WebexTeams.Types Methods toJSON :: WebhookNotifyRoom -> Value # toEncoding :: WebhookNotifyRoom -> Encoding # toJSONList :: [WebhookNotifyRoom] -> Value # toEncodingList :: [WebhookNotifyRoom] -> Encoding # omitField :: WebhookNotifyRoom -> Bool # | |
Show WebhookNotifyRoom Source # | |
Defined in Network.WebexTeams.Types Methods showsPrec :: Int -> WebhookNotifyRoom -> ShowS # show :: WebhookNotifyRoom -> String # showList :: [WebhookNotifyRoom] -> ShowS # | |
Eq WebhookNotifyRoom Source # | |
Defined in Network.WebexTeams.Types Methods (==) :: WebhookNotifyRoom -> WebhookNotifyRoom -> Bool # (/=) :: WebhookNotifyRoom -> WebhookNotifyRoom -> Bool # |