2023-10-10 13:20:53 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/zitadel/zitadel/internal/notification/handlers (interfaces: Queries)
|
2023-11-22 10:56:43 +00:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -package mock -destination ./mock/queries.mock.go github.com/zitadel/zitadel/internal/notification/handlers Queries
|
|
|
|
//
|
2023-10-10 13:20:53 +00:00
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2023-11-21 12:11:38 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2023-10-10 13:20:53 +00:00
|
|
|
domain "github.com/zitadel/zitadel/internal/domain"
|
|
|
|
query "github.com/zitadel/zitadel/internal/query"
|
2023-11-22 10:56:43 +00:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
2023-10-10 13:20:53 +00:00
|
|
|
language "golang.org/x/text/language"
|
|
|
|
)
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// MockQueries is a mock of Queries interface.
|
2023-10-10 13:20:53 +00:00
|
|
|
type MockQueries struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockQueriesMockRecorder
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// MockQueriesMockRecorder is the mock recorder for MockQueries.
|
2023-10-10 13:20:53 +00:00
|
|
|
type MockQueriesMockRecorder struct {
|
|
|
|
mock *MockQueries
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// NewMockQueries creates a new mock instance.
|
2023-10-10 13:20:53 +00:00
|
|
|
func NewMockQueries(ctrl *gomock.Controller) *MockQueries {
|
|
|
|
mock := &MockQueries{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockQueriesMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) EXPECT() *MockQueriesMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// ActiveLabelPolicyByOrg mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) ActiveLabelPolicyByOrg(arg0 context.Context, arg1 string, arg2 bool) (*query.LabelPolicy, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ActiveLabelPolicyByOrg", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*query.LabelPolicy)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// ActiveLabelPolicyByOrg indicates an expected call of ActiveLabelPolicyByOrg.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) ActiveLabelPolicyByOrg(arg0, arg1, arg2 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActiveLabelPolicyByOrg", reflect.TypeOf((*MockQueries)(nil).ActiveLabelPolicyByOrg), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// CustomTextListByTemplate mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) CustomTextListByTemplate(arg0 context.Context, arg1, arg2 string, arg3 bool) (*query.CustomTexts, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CustomTextListByTemplate", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*query.CustomTexts)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// CustomTextListByTemplate indicates an expected call of CustomTextListByTemplate.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) CustomTextListByTemplate(arg0, arg1, arg2, arg3 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CustomTextListByTemplate", reflect.TypeOf((*MockQueries)(nil).CustomTextListByTemplate), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// GetDefaultLanguage mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) GetDefaultLanguage(arg0 context.Context) language.Tag {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetDefaultLanguage", arg0)
|
|
|
|
ret0, _ := ret[0].(language.Tag)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// GetDefaultLanguage indicates an expected call of GetDefaultLanguage.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) GetDefaultLanguage(arg0 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultLanguage", reflect.TypeOf((*MockQueries)(nil).GetDefaultLanguage), arg0)
|
|
|
|
}
|
|
|
|
|
2023-12-05 11:12:01 +00:00
|
|
|
// GetInstanceRestrictions mocks base method.
|
|
|
|
func (m *MockQueries) GetInstanceRestrictions(arg0 context.Context) (query.Restrictions, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetInstanceRestrictions", arg0)
|
|
|
|
ret0, _ := ret[0].(query.Restrictions)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetInstanceRestrictions indicates an expected call of GetInstanceRestrictions.
|
|
|
|
func (mr *MockQueriesMockRecorder) GetInstanceRestrictions(arg0 any) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceRestrictions", reflect.TypeOf((*MockQueries)(nil).GetInstanceRestrictions), arg0)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// GetNotifyUserByID mocks base method.
|
2023-12-08 12:14:22 +00:00
|
|
|
func (m *MockQueries) GetNotifyUserByID(arg0 context.Context, arg1 bool, arg2 string) (*query.NotifyUser, error) {
|
2023-10-10 13:20:53 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-12-08 12:14:22 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetNotifyUserByID", arg0, arg1, arg2)
|
2023-10-10 13:20:53 +00:00
|
|
|
ret0, _ := ret[0].(*query.NotifyUser)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// GetNotifyUserByID indicates an expected call of GetNotifyUserByID.
|
2023-12-08 12:14:22 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) GetNotifyUserByID(arg0, arg1, arg2 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-12-08 12:14:22 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotifyUserByID", reflect.TypeOf((*MockQueries)(nil).GetNotifyUserByID), arg0, arg1, arg2)
|
2023-10-10 13:20:53 +00:00
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// MailTemplateByOrg mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) MailTemplateByOrg(arg0 context.Context, arg1 string, arg2 bool) (*query.MailTemplate, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "MailTemplateByOrg", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*query.MailTemplate)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// MailTemplateByOrg indicates an expected call of MailTemplateByOrg.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) MailTemplateByOrg(arg0, arg1, arg2 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MailTemplateByOrg", reflect.TypeOf((*MockQueries)(nil).MailTemplateByOrg), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// NotificationPolicyByOrg mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) NotificationPolicyByOrg(arg0 context.Context, arg1 bool, arg2 string, arg3 bool) (*query.NotificationPolicy, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "NotificationPolicyByOrg", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*query.NotificationPolicy)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// NotificationPolicyByOrg indicates an expected call of NotificationPolicyByOrg.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) NotificationPolicyByOrg(arg0, arg1, arg2, arg3 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationPolicyByOrg", reflect.TypeOf((*MockQueries)(nil).NotificationPolicyByOrg), arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// NotificationProviderByIDAndType mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) NotificationProviderByIDAndType(arg0 context.Context, arg1 string, arg2 domain.NotificationProviderType) (*query.DebugNotificationProvider, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "NotificationProviderByIDAndType", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*query.DebugNotificationProvider)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// NotificationProviderByIDAndType indicates an expected call of NotificationProviderByIDAndType.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) NotificationProviderByIDAndType(arg0, arg1, arg2 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotificationProviderByIDAndType", reflect.TypeOf((*MockQueries)(nil).NotificationProviderByIDAndType), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SMSProviderConfig mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) SMSProviderConfig(arg0 context.Context, arg1 ...query.SearchQuery) (*query.SMSConfig, error) {
|
|
|
|
m.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
varargs := []any{arg0}
|
2023-10-10 13:20:53 +00:00
|
|
|
for _, a := range arg1 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "SMSProviderConfig", varargs...)
|
|
|
|
ret0, _ := ret[0].(*query.SMSConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SMSProviderConfig indicates an expected call of SMSProviderConfig.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) SMSProviderConfig(arg0 any, arg1 ...any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
varargs := append([]any{arg0}, arg1...)
|
2023-10-10 13:20:53 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SMSProviderConfig", reflect.TypeOf((*MockQueries)(nil).SMSProviderConfig), varargs...)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SMTPConfigByAggregateID mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) SMTPConfigByAggregateID(arg0 context.Context, arg1 string) (*query.SMTPConfig, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SMTPConfigByAggregateID", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*query.SMTPConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SMTPConfigByAggregateID indicates an expected call of SMTPConfigByAggregateID.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) SMTPConfigByAggregateID(arg0, arg1 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SMTPConfigByAggregateID", reflect.TypeOf((*MockQueries)(nil).SMTPConfigByAggregateID), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SearchInstanceDomains mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) SearchInstanceDomains(arg0 context.Context, arg1 *query.InstanceDomainSearchQueries) (*query.InstanceDomains, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SearchInstanceDomains", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*query.InstanceDomains)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SearchInstanceDomains indicates an expected call of SearchInstanceDomains.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) SearchInstanceDomains(arg0, arg1 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchInstanceDomains", reflect.TypeOf((*MockQueries)(nil).SearchInstanceDomains), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SearchMilestones mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) SearchMilestones(arg0 context.Context, arg1 []string, arg2 *query.MilestonesSearchQueries) (*query.Milestones, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SearchMilestones", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(*query.Milestones)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SearchMilestones indicates an expected call of SearchMilestones.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) SearchMilestones(arg0, arg1, arg2 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchMilestones", reflect.TypeOf((*MockQueries)(nil).SearchMilestones), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SessionByID mocks base method.
|
2023-10-10 13:20:53 +00:00
|
|
|
func (m *MockQueries) SessionByID(arg0 context.Context, arg1 bool, arg2, arg3 string) (*query.Session, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SessionByID", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*query.Session)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-21 12:11:38 +00:00
|
|
|
// SessionByID indicates an expected call of SessionByID.
|
2023-11-22 10:56:43 +00:00
|
|
|
func (mr *MockQueriesMockRecorder) SessionByID(arg0, arg1, arg2, arg3 any) *gomock.Call {
|
2023-10-10 13:20:53 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SessionByID", reflect.TypeOf((*MockQueries)(nil).SessionByID), arg0, arg1, arg2, arg3)
|
|
|
|
}
|