Skip to content

Commit

Permalink
Fix audit logs and config persistence for Cloud Teams
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Nov 17, 2023
1 parent 1924d4a commit 9d82e7c
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 32 deletions.
2 changes: 1 addition & 1 deletion internal/remote/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewBotPlatform(s string) *BotPlatform {
platform = BotPlatformMattermost
case "TEAMS":
fallthrough
case "MS_TEAMS":
case "MS_TEAMS", "CLOUDTEAMS":
platform = BotPlatformMsTeams
default:
platform = BotPlatformUnknown
Expand Down
20 changes: 20 additions & 0 deletions internal/remote/graphql/connected_platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,24 @@ type OrganizationConnectedPlatforms struct {
OrganizationID string `graphql:"-"`
Slacks []*SlackWorkspace `json:"slacks"`
Slack *SlackWorkspace `json:"slack"`

TeamsOrganizations []*TeamsOrganization `json:"teamsOrganizations"`
TeamsOrganization *TeamsOrganization `json:"teamsOrganization"`
}

type TeamsOrganization struct {
ID string `json:"id"`
TenantID string `json:"tenantId"`
ConsentGiven bool `json:"consentGiven"`
IsReConsentingRequired bool `json:"isReConsentingRequired"`

// All internal, ignored fields are removed
}

type TeamsOrganizationTeam struct {
ID string `json:"id"`
AADGroupID string `json:"aadGroupId"`
DefaultConversationID string `json:"defaultConversationId"`

// All internal, ignored fields are removed
}
Loading

0 comments on commit 9d82e7c

Please sign in to comment.