2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package sqlstore
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import (
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									"context"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									"github.com/grafana/grafana/pkg/models"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								type Store interface {
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-05 00:53:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetAdminStats(ctx context.Context, query *models.GetAdminStatsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-11 21:04:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetAlertNotifiersUsageStats(ctx context.Context, query *models.GetAlertNotifierUsageStatsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDataSourceStats(ctx context.Context, query *models.GetDataSourceStatsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDataSourceAccessStats(ctx context.Context, query *models.GetDataSourceAccessStatsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetSystemStats(ctx context.Context, query *models.GetSystemStatsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteExpiredSnapshots(ctx context.Context, cmd *models.DeleteExpiredSnapshotsCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateDashboardSnapshot(ctx context.Context, cmd *models.CreateDashboardSnapshotCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteDashboardSnapshot(ctx context.Context, cmd *models.DeleteDashboardSnapshotCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-21 20:20:47 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetDashboardSnapshot(ctx context.Context, query *models.GetDashboardSnapshotQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-04 01:22:21 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									HasEditPermissionInFolders(ctx context.Context, query *models.HasEditPermissionInFoldersQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-21 20:20:47 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									SearchDashboardSnapshots(ctx context.Context, query *models.GetDashboardSnapshotsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrgByName(name string) (*models.Org, error)
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-26 01:07:11 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CreateOrg(ctx context.Context, cmd *models.CreateOrgCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateOrgWithMember(name string, userID int64) (models.Org, error)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateOrg(ctx context.Context, cmd *models.UpdateOrgCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateOrgAddress(ctx context.Context, cmd *models.UpdateOrgAddressCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteOrg(ctx context.Context, cmd *models.DeleteOrgCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-23 18:12:37 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetOrgById(context.Context, *models.GetOrgByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrgByNameHandler(ctx context.Context, query *models.GetOrgByNameQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateLoginAttempt(ctx context.Context, cmd *models.CreateLoginAttemptCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-05 19:07:27 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetUserLoginAttemptCount(ctx context.Context, query *models.GetUserLoginAttemptCountQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteOldLoginAttempts(ctx context.Context, cmd *models.DeleteOldLoginAttemptsCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateUser(ctx context.Context, cmd models.CreateUserCommand) (*models.User, error)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserById(ctx context.Context, query *models.GetUserByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserByLogin(ctx context.Context, query *models.GetUserByLoginQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserByEmail(ctx context.Context, query *models.GetUserByEmailQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateUser(ctx context.Context, cmd *models.UpdateUserCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									ChangeUserPassword(ctx context.Context, cmd *models.ChangeUserPasswordCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateUserLastSeenAt(ctx context.Context, cmd *models.UpdateUserLastSeenAtCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SetUsingOrg(ctx context.Context, cmd *models.SetUsingOrgCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserProfile(ctx context.Context, query *models.GetUserProfileQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserOrgList(ctx context.Context, query *models.GetUserOrgListQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetSignedInUserWithCacheCtx(ctx context.Context, query *models.GetSignedInUserQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetSignedInUser(ctx context.Context, query *models.GetSignedInUserQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-02 18:05:31 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									SearchUsers(ctx context.Context, query *models.SearchUsersQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-05 02:45:42 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									DisableUser(ctx context.Context, cmd *models.DisableUserCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									BatchDisableUsers(ctx context.Context, cmd *models.BatchDisableUsersCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteUser(ctx context.Context, cmd *models.DeleteUserCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateUserPermissions(userID int64, isAdmin bool) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SetUserHelpFlag(ctx context.Context, cmd *models.SetUserHelpFlagCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateTeam(name, email string, orgID int64) (models.Team, error)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateTeam(ctx context.Context, cmd *models.UpdateTeamCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteTeam(ctx context.Context, cmd *models.DeleteTeamCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SearchTeams(ctx context.Context, query *models.SearchTeamsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetTeamById(ctx context.Context, query *models.GetTeamByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetTeamsByUser(ctx context.Context, query *models.GetTeamsByUserQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									AddTeamMember(userID, orgID, teamID int64, isExternal bool, permission models.PermissionType) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateTeamMember(ctx context.Context, cmd *models.UpdateTeamMemberCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									RemoveTeamMember(ctx context.Context, cmd *models.RemoveTeamMemberCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-10 00:46:37 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*models.TeamMemberDTO, error)
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetTeamMembers(ctx context.Context, query *models.GetTeamMembersQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									NewSession(ctx context.Context) *DBSession
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									WithDbSession(ctx context.Context, callback DBTransactionFunc) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-19 03:49:13 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetPluginSettings(ctx context.Context, orgID int64) ([]*models.PluginSetting, error)
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetPluginSettingById(ctx context.Context, query *models.GetPluginSettingByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdatePluginSetting(ctx context.Context, cmd *models.UpdatePluginSettingCmd) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdatePluginSettingVersion(ctx context.Context, cmd *models.UpdatePluginSettingVersionCmd) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrgQuotaByTarget(ctx context.Context, query *models.GetOrgQuotaByTargetQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrgQuotas(ctx context.Context, query *models.GetOrgQuotasQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateOrgQuota(ctx context.Context, cmd *models.UpdateOrgQuotaCmd) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserQuotaByTarget(ctx context.Context, query *models.GetUserQuotaByTargetQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetUserQuotas(ctx context.Context, query *models.GetUserQuotasQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateUserQuota(ctx context.Context, cmd *models.UpdateUserQuotaCmd) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetGlobalQuotaByTarget(ctx context.Context, query *models.GetGlobalQuotaByTargetQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									WithTransactionalDbSession(ctx context.Context, callback DBTransactionFunc) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									InTransaction(ctx context.Context, fn func(ctx context.Context) error) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDashboardVersion(ctx context.Context, query *models.GetDashboardVersionQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDashboardVersions(ctx context.Context, query *models.GetDashboardVersionsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteExpiredVersions(ctx context.Context, cmd *models.DeleteExpiredVersionsCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDashboardAclInfoList(ctx context.Context, query *models.GetDashboardAclInfoListQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreatePlaylist(ctx context.Context, cmd *models.CreatePlaylistCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdatePlaylist(ctx context.Context, cmd *models.UpdatePlaylistCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetPlaylist(ctx context.Context, query *models.GetPlaylistByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeletePlaylist(ctx context.Context, cmd *models.DeletePlaylistCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SearchPlaylists(ctx context.Context, query *models.GetPlaylistsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetPlaylistItem(ctx context.Context, query *models.GetPlaylistItemsByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertById(ctx context.Context, query *models.GetAlertByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAllAlertQueryHandler(ctx context.Context, query *models.GetAllAlertsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									HandleAlertsQuery(ctx context.Context, query *models.GetAlertsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SetAlertState(ctx context.Context, cmd *models.SetAlertStateCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									PauseAlert(ctx context.Context, cmd *models.PauseAlertCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									PauseAllAlerts(ctx context.Context, cmd *models.PauseAllAlertCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertStatesForDashboard(ctx context.Context, query *models.GetAlertStatesForDashboardQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									AddOrgUser(ctx context.Context, cmd *models.AddOrgUserCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateOrgUser(ctx context.Context, cmd *models.UpdateOrgUserCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrgUsers(ctx context.Context, query *models.GetOrgUsersQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SearchOrgUsers(ctx context.Context, query *models.SearchOrgUsersQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									RemoveOrgUser(ctx context.Context, cmd *models.RemoveOrgUserCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-07 19:43:43 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetDashboardTags(ctx context.Context, query *models.GetDashboardTagsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 23:54:30 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									SearchDashboards(ctx context.Context, query *models.FindPersistedDashboardsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDataSource(ctx context.Context, query *models.GetDataSourceQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDataSources(ctx context.Context, query *models.GetDataSourcesQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDataSourcesByType(ctx context.Context, query *models.GetDataSourcesByTypeQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetDefaultDataSource(ctx context.Context, query *models.GetDefaultDataSourceQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteDataSource(ctx context.Context, cmd *models.DeleteDataSourceCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									AddDataSource(ctx context.Context, cmd *models.AddDataSourceCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateDataSource(ctx context.Context, cmd *models.UpdateDataSourceCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-16 00:54:27 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Migrate(bool) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Sync() error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Reset() error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Quote(value string) string
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteAlertNotification(ctx context.Context, cmd *models.DeleteAlertNotificationCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteAlertNotificationWithUid(ctx context.Context, cmd *models.DeleteAlertNotificationWithUidCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertNotifications(ctx context.Context, query *models.GetAlertNotificationsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertNotificationUidWithId(ctx context.Context, query *models.GetAlertNotificationUidQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertNotificationsWithUid(ctx context.Context, query *models.GetAlertNotificationsWithUidQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAllAlertNotifications(ctx context.Context, query *models.GetAllAlertNotificationsQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAlertNotificationsWithUidToSend(ctx context.Context, query *models.GetAlertNotificationsWithUidToSendQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateAlertNotificationCommand(ctx context.Context, cmd *models.CreateAlertNotificationCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateAlertNotification(ctx context.Context, cmd *models.UpdateAlertNotificationCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateAlertNotificationWithUid(ctx context.Context, cmd *models.UpdateAlertNotificationWithUidCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SetAlertNotificationStateToCompleteCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToCompleteCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									SetAlertNotificationStateToPendingCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToPendingCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetOrCreateAlertNotificationState(ctx context.Context, cmd *models.GetOrCreateNotificationStateQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetAPIKeys(ctx context.Context, query *models.GetApiKeysQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-15 01:24:07 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetAllOrgsAPIKeys(ctx context.Context) []*models.ApiKey
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DeleteApiKey(ctx context.Context, cmd *models.DeleteApiKeyCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									AddAPIKey(ctx context.Context, cmd *models.AddApiKeyCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetApiKeyById(ctx context.Context, query *models.GetApiKeyByIdQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetApiKeyByName(ctx context.Context, query *models.GetApiKeyByNameQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-05-23 19:14:38 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetAPIKeyByHash(ctx context.Context, hash string) (*models.ApiKey, error)
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateTempUserStatus(ctx context.Context, cmd *models.UpdateTempUserStatusCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreateTempUser(ctx context.Context, cmd *models.CreateTempUserCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdateTempUserWithEmailSent(ctx context.Context, cmd *models.UpdateTempUserWithEmailSentCommand) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetTempUsersQuery(ctx context.Context, query *models.GetTempUsersQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									GetTempUserByCode(ctx context.Context, query *models.GetTempUserByCodeQuery) error
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									ExpireOldUserInvites(ctx context.Context, cmd *models.ExpireTempUsersCommand) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-04 21:33:35 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetDBHealthQuery(ctx context.Context, query *models.GetDBHealthQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-09 18:45:31 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									SearchOrgs(ctx context.Context, query *models.SearchOrgsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-17 23:59:09 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									HasAdminPermissionInFolders(ctx context.Context, query *models.HasAdminPermissionInFoldersQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 16:37:49 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									GetDashboardPermissionsForUser(ctx context.Context, query *models.GetDashboardPermissionsForUserQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-21 03:11:37 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									IsAdminOfTeams(ctx context.Context, query *models.IsAdminOfTeamsQuery) error
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-01 21:51:22 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |