* Prevent cloud limited installations from restoring teams when at or above the teams limit * Code clean up * fix i18n * Actually fix i18n * updates for govet * Update model/client4.go Co-authored-by: Vishal <vish9812@gmail.com> * [MM-44397] Restrict team creation based on subscription limits (#20282) * restrict team creation based on limits * Update api4/team.go Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> * Fix tests Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com> * Add additional field to teamsusage * Fix * remove useless test * Fix error for team creation * Remove apostrophe Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Vishal <vish9812@gmail.com> Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
35 строки
805 B
Go
35 строки
805 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
type PostsUsage struct {
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type TeamsUsage struct {
|
|
Active int64 `json:"active"`
|
|
CloudArchived int64 `json:"cloud_archived"`
|
|
}
|
|
|
|
type IntegrationsUsage struct {
|
|
Enabled int `json:"enabled"`
|
|
}
|
|
|
|
var InstalledIntegrationsIgnoredPlugins = map[string]struct{}{
|
|
PluginIdPlaybooks: {},
|
|
PluginIdFocalboard: {},
|
|
PluginIdApps: {},
|
|
PluginIdCalls: {},
|
|
PluginIdNPS: {},
|
|
PluginIdChannelExport: {},
|
|
}
|
|
|
|
type InstalledIntegration struct {
|
|
Type string `json:"type"` // "plugin" or "app"
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
Enabled bool `json:"enabled"`
|
|
}
|