2025-03-11 16:31:06 +00:00
// Code generated by mockery v2.52.3. DO NOT EDIT.
2025-03-17 18:14:15 +00:00
package queryapimock
2025-03-11 16:31:06 +00:00
import (
context "context"
http "net/http"
io "io"
mock "github.com/stretchr/testify/mock"
2025-03-17 18:14:15 +00:00
queryapi "queryorchestration/pkg/queryAPI"
2025-11-26 19:23:42 +00:00
types "github.com/oapi-codegen/runtime/types"
2025-03-11 16:31:06 +00:00
)
// MockClientInterface is an autogenerated mock type for the ClientInterface type
type MockClientInterface struct {
mock . Mock
}
type MockClientInterface_Expecter struct {
mock * mock . Mock
}
func ( _m * MockClientInterface ) EXPECT ( ) * MockClientInterface_Expecter {
return & MockClientInterface_Expecter { mock : & _m . Mock }
}
2025-11-26 19:23:42 +00:00
// ApplyLabel provides a mock function with given fields: ctx, documentId, body, reqEditors
func ( _m * MockClientInterface ) ApplyLabel ( ctx context . Context , documentId types . UUID , body queryapi . ApplyLabelJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , documentId , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ApplyLabel" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , queryapi . ApplyLabelJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , documentId , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , queryapi . ApplyLabelJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , documentId , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , queryapi . ApplyLabelJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , documentId , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ApplyLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyLabel'
type MockClientInterface_ApplyLabel_Call struct {
* mock . Call
}
// ApplyLabel is a helper method to define mock.On call
// - ctx context.Context
// - documentId types.UUID
// - body queryapi.ApplyLabelJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ApplyLabel ( ctx interface { } , documentId interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_ApplyLabel_Call {
return & MockClientInterface_ApplyLabel_Call { Call : _e . mock . On ( "ApplyLabel" ,
append ( [ ] interface { } { ctx , documentId , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ApplyLabel_Call ) Run ( run func ( ctx context . Context , documentId types . UUID , body queryapi . ApplyLabelJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ApplyLabel_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , args [ 2 ] . ( queryapi . ApplyLabelJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ApplyLabel_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ApplyLabel_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ApplyLabel_Call ) RunAndReturn ( run func ( context . Context , types . UUID , queryapi . ApplyLabelJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ApplyLabel_Call {
_c . Call . Return ( run )
return _c
}
// ApplyLabelWithBody provides a mock function with given fields: ctx, documentId, contentType, body, reqEditors
func ( _m * MockClientInterface ) ApplyLabelWithBody ( ctx context . Context , documentId types . UUID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , documentId , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ApplyLabelWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , documentId , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , documentId , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , documentId , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ApplyLabelWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyLabelWithBody'
type MockClientInterface_ApplyLabelWithBody_Call struct {
* mock . Call
}
// ApplyLabelWithBody is a helper method to define mock.On call
// - ctx context.Context
// - documentId types.UUID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ApplyLabelWithBody ( ctx interface { } , documentId interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_ApplyLabelWithBody_Call {
return & MockClientInterface_ApplyLabelWithBody_Call { Call : _e . mock . On ( "ApplyLabelWithBody" ,
append ( [ ] interface { } { ctx , documentId , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ApplyLabelWithBody_Call ) Run ( run func ( ctx context . Context , documentId types . UUID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ApplyLabelWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
for i , a := range args [ 4 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ApplyLabelWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ApplyLabelWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ApplyLabelWithBody_Call ) RunAndReturn ( run func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ApplyLabelWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// CancelDocumentBatch provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientInterface ) CancelDocumentBatch ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , batchId )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CancelDocumentBatch" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , batchId , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CancelDocumentBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelDocumentBatch'
type MockClientInterface_CancelDocumentBatch_Call struct {
* mock . Call
}
// CancelDocumentBatch is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CancelDocumentBatch ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientInterface_CancelDocumentBatch_Call {
return & MockClientInterface_CancelDocumentBatch_Call { Call : _e . mock . On ( "CancelDocumentBatch" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CancelDocumentBatch_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CancelDocumentBatch_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . BatchID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CancelDocumentBatch_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CancelDocumentBatch_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CancelDocumentBatch_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CancelDocumentBatch_Call {
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// CheckAdminUserExists provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) CheckAdminUserExists ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CheckAdminUserExists" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CheckAdminUserExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAdminUserExists'
type MockClientInterface_CheckAdminUserExists_Call struct {
* mock . Call
}
// CheckAdminUserExists is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CheckAdminUserExists ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_CheckAdminUserExists_Call {
return & MockClientInterface_CheckAdminUserExists_Call { Call : _e . mock . On ( "CheckAdminUserExists" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CheckAdminUserExists_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CheckAdminUserExists_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CheckAdminUserExists_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CheckAdminUserExists_Call {
_c . Call . Return ( run )
return _c
}
// CreateAdminUser provides a mock function with given fields: ctx, body, reqEditors
func ( _m * MockClientInterface ) CreateAdminUser ( ctx context . Context , body queryapi . CreateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAdminUser'
type MockClientInterface_CreateAdminUser_Call struct {
* mock . Call
}
// CreateAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - body queryapi.CreateAdminUserJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateAdminUser ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateAdminUser_Call {
return & MockClientInterface_CreateAdminUser_Call { Call : _e . mock . On ( "CreateAdminUser" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateAdminUser_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateAdminUserJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// CreateAdminUserWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
func ( _m * MockClientInterface ) CreateAdminUserWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAdminUserWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateAdminUserWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAdminUserWithBody'
type MockClientInterface_CreateAdminUserWithBody_Call struct {
* mock . Call
}
// CreateAdminUserWithBody is a helper method to define mock.On call
// - ctx context.Context
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) CreateAdminUserWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateAdminUserWithBody_Call {
return & MockClientInterface_CreateAdminUserWithBody_Call { Call : _e . mock . On ( "CreateAdminUserWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_CreateAdminUserWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateAdminUserWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// CreateClient provides a mock function with given fields: ctx, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) CreateClient ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateClient" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClient'
type MockClientInterface_CreateClient_Call struct {
* mock . Call
}
// CreateClient is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - body queryapi.CreateClientJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) CreateClient ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateClient_Call {
return & MockClientInterface_CreateClient_Call { Call : _e . mock . On ( "CreateClient" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_CreateClient_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateClientJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_CreateClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_CreateClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// CreateClientWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
2025-03-17 18:14:15 +00:00
func ( _m * MockClientInterface ) CreateClientWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateClientWithBody" )
}
var r0 * http . Response
var r1 error
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , contentType , body , reqEditors ... )
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-03-17 18:14:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_CreateClientWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClientWithBody'
type MockClientInterface_CreateClientWithBody_Call struct {
* mock . Call
}
// CreateClientWithBody is a helper method to define mock.On call
// - ctx context.Context
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) CreateClientWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateClientWithBody_Call {
return & MockClientInterface_CreateClientWithBody_Call { Call : _e . mock . On ( "CreateClientWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
2025-03-17 18:14:15 +00:00
func ( _c * MockClientInterface_CreateClientWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateClientWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_CreateClientWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateClientWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-10-23 22:57:15 +00:00
func ( _c * MockClientInterface_CreateClientWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateClientWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// CreateFieldExtraction provides a mock function with given fields: ctx, body, reqEditors
func ( _m * MockClientInterface ) CreateFieldExtraction ( ctx context . Context , body queryapi . CreateFieldExtractionJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-10-23 22:57:15 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for CreateFieldExtraction" )
2025-10-23 22:57:15 +00:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateFieldExtractionJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-10-23 22:57:15 +00:00
return rf ( ctx , body , reqEditors ... )
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateFieldExtractionJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-10-23 22:57:15 +00:00
r0 = rf ( ctx , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateFieldExtractionJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-10-23 22:57:15 +00:00
r1 = rf ( ctx , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_CreateFieldExtraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFieldExtraction'
type MockClientInterface_CreateFieldExtraction_Call struct {
2025-10-23 22:57:15 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// CreateFieldExtraction is a helper method to define mock.On call
2025-10-23 22:57:15 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - body queryapi.CreateFieldExtractionJSONRequestBody
2025-10-23 22:57:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) CreateFieldExtraction ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateFieldExtraction_Call {
return & MockClientInterface_CreateFieldExtraction_Call { Call : _e . mock . On ( "CreateFieldExtraction" ,
2025-10-23 22:57:15 +00:00
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtraction_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateFieldExtractionJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateFieldExtraction_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateFieldExtractionJSONRequestBody ) , variadicArgs ... )
2025-10-23 22:57:15 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtraction_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateFieldExtraction_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtraction_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateFieldExtractionJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateFieldExtraction_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// CreateFieldExtractionWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
func ( _m * MockClientInterface ) CreateFieldExtractionWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-10-23 22:57:15 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for CreateFieldExtractionWithBody" )
2025-10-23 22:57:15 +00:00
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_CreateFieldExtractionWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFieldExtractionWithBody'
type MockClientInterface_CreateFieldExtractionWithBody_Call struct {
2025-10-23 22:57:15 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// CreateFieldExtractionWithBody is a helper method to define mock.On call
2025-10-23 22:57:15 +00:00
// - ctx context.Context
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) CreateFieldExtractionWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateFieldExtractionWithBody_Call {
return & MockClientInterface_CreateFieldExtractionWithBody_Call { Call : _e . mock . On ( "CreateFieldExtractionWithBody" ,
2025-10-23 22:57:15 +00:00
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtractionWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateFieldExtractionWithBody_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtractionWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateFieldExtractionWithBody_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFieldExtractionWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateFieldExtractionWithBody_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// CreateFolder provides a mock function with given fields: ctx, body, reqEditors
func ( _m * MockClientInterface ) CreateFolder ( ctx context . Context , body queryapi . CreateFolderJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-10-23 22:57:15 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , ctx , body )
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for CreateFolder" )
2025-10-23 22:57:15 +00:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateFolderJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . CreateFolderJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . CreateFolderJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_CreateFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFolder'
type MockClientInterface_CreateFolder_Call struct {
2025-10-23 22:57:15 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// CreateFolder is a helper method to define mock.On call
2025-10-23 22:57:15 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - body queryapi.CreateFolderJSONRequestBody
2025-10-23 22:57:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) CreateFolder ( ctx interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateFolder_Call {
return & MockClientInterface_CreateFolder_Call { Call : _e . mock . On ( "CreateFolder" ,
append ( [ ] interface { } { ctx , body } , reqEditors ... ) ... ) }
2025-10-23 22:57:15 +00:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolder_Call ) Run ( run func ( ctx context . Context , body queryapi . CreateFolderJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateFolder_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-11-26 19:23:42 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
2025-10-23 22:57:15 +00:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . CreateFolderJSONRequestBody ) , variadicArgs ... )
2025-10-23 22:57:15 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolder_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateFolder_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolder_Call ) RunAndReturn ( run func ( context . Context , queryapi . CreateFolderJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateFolder_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// CreateFolderWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors
func ( _m * MockClientInterface ) CreateFolderWithBody ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-10-23 22:57:15 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , ctx , contentType , body )
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for CreateFolderWithBody" )
2025-10-23 22:57:15 +00:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , contentType , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , contentType , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , contentType , body , reqEditors ... )
2025-10-23 22:57:15 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_CreateFolderWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFolderWithBody'
type MockClientInterface_CreateFolderWithBody_Call struct {
2025-10-23 22:57:15 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// CreateFolderWithBody is a helper method to define mock.On call
2025-10-23 22:57:15 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - contentType string
// - body io.Reader
2025-10-23 22:57:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) CreateFolderWithBody ( ctx interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_CreateFolderWithBody_Call {
return & MockClientInterface_CreateFolderWithBody_Call { Call : _e . mock . On ( "CreateFolderWithBody" ,
append ( [ ] interface { } { ctx , contentType , body } , reqEditors ... ) ... ) }
2025-10-23 22:57:15 +00:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolderWithBody_Call ) Run ( run func ( ctx context . Context , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_CreateFolderWithBody_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-11-26 19:23:42 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
2025-10-23 22:57:15 +00:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( io . Reader ) , variadicArgs ... )
2025-10-23 22:57:15 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolderWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_CreateFolderWithBody_Call {
2025-10-23 22:57:15 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_CreateFolderWithBody_Call ) RunAndReturn ( run func ( context . Context , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_CreateFolderWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// DeleteAdminUser provides a mock function with given fields: ctx, email, params, reqEditors
func ( _m * MockClientInterface ) DeleteAdminUser ( ctx context . Context , email queryapi . UserEmail , params * queryapi . DeleteAdminUserParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for DeleteAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_DeleteAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAdminUser'
type MockClientInterface_DeleteAdminUser_Call struct {
* mock . Call
}
// DeleteAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - params *queryapi.DeleteAdminUserParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) DeleteAdminUser ( ctx interface { } , email interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_DeleteAdminUser_Call {
return & MockClientInterface_DeleteAdminUser_Call { Call : _e . mock . On ( "DeleteAdminUser" ,
append ( [ ] interface { } { ctx , email , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , params * queryapi . DeleteAdminUserParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_DeleteAdminUser_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , args [ 2 ] . ( * queryapi . DeleteAdminUserParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_DeleteAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_DeleteAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , * queryapi . DeleteAdminUserParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_DeleteAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// DisableAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) DisableAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for DisableAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_DisableAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableAdminUser'
type MockClientInterface_DisableAdminUser_Call struct {
* mock . Call
}
// DisableAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) DisableAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_DisableAdminUser_Call {
return & MockClientInterface_DisableAdminUser_Call { Call : _e . mock . On ( "DisableAdminUser" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_DisableAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_DisableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-10-23 22:57:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
2025-03-11 16:31:06 +00:00
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_DisableAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_DisableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_DisableAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_DisableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// EnableAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) EnableAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-10-23 22:57:15 +00:00
_ca = append ( _ca , ctx , email )
2025-03-11 16:31:06 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for EnableAdminUser" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-10-23 22:57:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_EnableAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableAdminUser'
type MockClientInterface_EnableAdminUser_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// EnableAdminUser is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-10-23 22:57:15 +00:00
// - email queryapi.UserEmail
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) EnableAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_EnableAdminUser_Call {
return & MockClientInterface_EnableAdminUser_Call { Call : _e . mock . On ( "EnableAdminUser" ,
2025-10-23 22:57:15 +00:00
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_EnableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-10-23 22:57:15 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_EnableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_EnableAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_EnableAdminUser_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// ExportState provides a mock function with given fields: ctx, id, reqEditors
func ( _m * MockClientInterface ) ExportState ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for ExportState" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_ExportState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportState'
type MockClientInterface_ExportState_Call struct {
* mock . Call
}
// ExportState is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ExportID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ExportState ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_ExportState_Call {
return & MockClientInterface_ExportState_Call { Call : _e . mock . On ( "ExportState" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ExportState_Call ) Run ( run func ( ctx context . Context , id queryapi . ExportID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ExportState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ExportID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ExportState_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ExportState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ExportState_Call ) RunAndReturn ( run func ( context . Context , queryapi . ExportID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ExportState_Call {
_c . Call . Return ( run )
return _c
}
// GetAdminUser provides a mock function with given fields: ctx, email, reqEditors
func ( _m * MockClientInterface ) GetAdminUser ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAdminUser'
type MockClientInterface_GetAdminUser_Call struct {
* mock . Call
}
// GetAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetAdminUser ( ctx interface { } , email interface { } , reqEditors ... interface { } ) * MockClientInterface_GetAdminUser_Call {
return & MockClientInterface_GetAdminUser_Call { Call : _e . mock . On ( "GetAdminUser" ,
append ( [ ] interface { } { ctx , email } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetAdminUser_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// GetClient provides a mock function with given fields: ctx, id, reqEditors
func ( _m * MockClientInterface ) GetClient ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetClient" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
type MockClientInterface_GetClient_Call struct {
* mock . Call
}
// GetClient is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetClient ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetClient_Call {
return & MockClientInterface_GetClient_Call { Call : _e . mock . On ( "GetClient" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetClient_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetClient_Call {
_c . Call . Return ( run )
return _c
}
// GetCollectorByClientId provides a mock function with given fields: ctx, id, reqEditors
func ( _m * MockClientInterface ) GetCollectorByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetCollectorByClientId" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetCollectorByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectorByClientId'
type MockClientInterface_GetCollectorByClientId_Call struct {
* mock . Call
}
// GetCollectorByClientId is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetCollectorByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetCollectorByClientId_Call {
return & MockClientInterface_GetCollectorByClientId_Call { Call : _e . mock . On ( "GetCollectorByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetCollectorByClientId_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetCollectorByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetCollectorByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetCollectorByClientId_Call {
_c . Call . Return ( run )
return _c
}
// GetCurrentFieldExtraction provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) GetCurrentFieldExtraction ( ctx context . Context , params * queryapi . GetCurrentFieldExtractionParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetCurrentFieldExtraction" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetCurrentFieldExtractionParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetCurrentFieldExtractionParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . GetCurrentFieldExtractionParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetCurrentFieldExtraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentFieldExtraction'
type MockClientInterface_GetCurrentFieldExtraction_Call struct {
* mock . Call
}
// GetCurrentFieldExtraction is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.GetCurrentFieldExtractionParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetCurrentFieldExtraction ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetCurrentFieldExtraction_Call {
return & MockClientInterface_GetCurrentFieldExtraction_Call { Call : _e . mock . On ( "GetCurrentFieldExtraction" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetCurrentFieldExtraction_Call ) Run ( run func ( ctx context . Context , params * queryapi . GetCurrentFieldExtractionParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetCurrentFieldExtraction_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * queryapi . GetCurrentFieldExtractionParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetCurrentFieldExtraction_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetCurrentFieldExtraction_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetCurrentFieldExtraction_Call ) RunAndReturn ( run func ( context . Context , * queryapi . GetCurrentFieldExtractionParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetCurrentFieldExtraction_Call {
_c . Call . Return ( run )
return _c
}
2025-12-11 14:25:51 +00:00
// GetDocument provides a mock function with given fields: ctx, id, params, reqEditors
func ( _m * MockClientInterface ) GetDocument ( ctx context . Context , id queryapi . DocumentID , params * queryapi . GetDocumentParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-11-26 19:23:42 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-12-11 14:25:51 +00:00
_ca = append ( _ca , ctx , id , params )
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetDocument" )
}
var r0 * http . Response
var r1 error
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . DocumentID , * queryapi . GetDocumentParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
}
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . DocumentID , * queryapi . GetDocumentParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . DocumentID , * queryapi . GetDocumentParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetDocument_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocument'
type MockClientInterface_GetDocument_Call struct {
* mock . Call
}
// GetDocument is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.DocumentID
2025-12-11 14:25:51 +00:00
// - params *queryapi.GetDocumentParams
2025-11-26 19:23:42 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-12-11 14:25:51 +00:00
func ( _e * MockClientInterface_Expecter ) GetDocument ( ctx interface { } , id interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocument_Call {
2025-11-26 19:23:42 +00:00
return & MockClientInterface_GetDocument_Call { Call : _e . mock . On ( "GetDocument" ,
2025-12-11 14:25:51 +00:00
append ( [ ] interface { } { ctx , id , params } , reqEditors ... ) ... ) }
2025-11-26 19:23:42 +00:00
}
2025-12-11 14:25:51 +00:00
func ( _c * MockClientInterface_GetDocument_Call ) Run ( run func ( ctx context . Context , id queryapi . DocumentID , params * queryapi . GetDocumentParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocument_Call {
2025-11-26 19:23:42 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-12-11 14:25:51 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
2025-11-26 19:23:42 +00:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-12-11 14:25:51 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . DocumentID ) , args [ 2 ] . ( * queryapi . GetDocumentParams ) , variadicArgs ... )
2025-11-26 19:23:42 +00:00
} )
return _c
}
func ( _c * MockClientInterface_GetDocument_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocument_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-12-11 14:25:51 +00:00
func ( _c * MockClientInterface_GetDocument_Call ) RunAndReturn ( run func ( context . Context , queryapi . DocumentID , * queryapi . GetDocumentParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocument_Call {
2025-11-26 19:23:42 +00:00
_c . Call . Return ( run )
return _c
}
// GetDocumentBatch provides a mock function with given fields: ctx, id, batchId, reqEditors
func ( _m * MockClientInterface ) GetDocumentBatch ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , batchId )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetDocumentBatch" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , batchId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , batchId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , batchId , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetDocumentBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentBatch'
type MockClientInterface_GetDocumentBatch_Call struct {
* mock . Call
}
// GetDocumentBatch is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetDocumentBatch ( ctx interface { } , id interface { } , batchId interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocumentBatch_Call {
return & MockClientInterface_GetDocumentBatch_Call { Call : _e . mock . On ( "GetDocumentBatch" ,
append ( [ ] interface { } { ctx , id , batchId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetDocumentBatch_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , batchId queryapi . BatchID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocumentBatch_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . BatchID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetDocumentBatch_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocumentBatch_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetDocumentBatch_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . BatchID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocumentBatch_Call {
_c . Call . Return ( run )
return _c
}
// GetDocumentLabels provides a mock function with given fields: ctx, documentId, reqEditors
func ( _m * MockClientInterface ) GetDocumentLabels ( ctx context . Context , documentId types . UUID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , documentId )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetDocumentLabels" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , documentId , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , documentId , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , documentId , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetDocumentLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentLabels'
type MockClientInterface_GetDocumentLabels_Call struct {
* mock . Call
}
// GetDocumentLabels is a helper method to define mock.On call
// - ctx context.Context
// - documentId types.UUID
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetDocumentLabels ( ctx interface { } , documentId interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocumentLabels_Call {
return & MockClientInterface_GetDocumentLabels_Call { Call : _e . mock . On ( "GetDocumentLabels" ,
append ( [ ] interface { } { ctx , documentId } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetDocumentLabels_Call ) Run ( run func ( ctx context . Context , documentId types . UUID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocumentLabels_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetDocumentLabels_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocumentLabels_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetDocumentLabels_Call ) RunAndReturn ( run func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocumentLabels_Call {
_c . Call . Return ( run )
return _c
}
// GetDocumentsByLabel provides a mock function with given fields: ctx, labelName, params, reqEditors
func ( _m * MockClientInterface ) GetDocumentsByLabel ( ctx context . Context , labelName string , params * queryapi . GetDocumentsByLabelParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , labelName , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetDocumentsByLabel" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , * queryapi . GetDocumentsByLabelParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , labelName , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string , * queryapi . GetDocumentsByLabelParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , labelName , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , string , * queryapi . GetDocumentsByLabelParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , labelName , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetDocumentsByLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentsByLabel'
type MockClientInterface_GetDocumentsByLabel_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// GetDocumentsByLabel is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - labelName string
// - params *queryapi.GetDocumentsByLabelParams
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) GetDocumentsByLabel ( ctx interface { } , labelName interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetDocumentsByLabel_Call {
return & MockClientInterface_GetDocumentsByLabel_Call { Call : _e . mock . On ( "GetDocumentsByLabel" ,
append ( [ ] interface { } { ctx , labelName , params } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetDocumentsByLabel_Call ) Run ( run func ( ctx context . Context , labelName string , params * queryapi . GetDocumentsByLabelParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetDocumentsByLabel_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-11-26 19:23:42 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
2025-03-11 16:31:06 +00:00
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( string ) , args [ 2 ] . ( * queryapi . GetDocumentsByLabelParams ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetDocumentsByLabel_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetDocumentsByLabel_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetDocumentsByLabel_Call ) RunAndReturn ( run func ( context . Context , string , * queryapi . GetDocumentsByLabelParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetDocumentsByLabel_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-12-02 19:13:08 +00:00
// GetFieldExtractionByVersion provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) GetFieldExtractionByVersion ( ctx context . Context , params * queryapi . GetFieldExtractionByVersionParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetFieldExtractionByVersion" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetFieldExtractionByVersionParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetFieldExtractionByVersionParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . GetFieldExtractionByVersionParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetFieldExtractionByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldExtractionByVersion'
type MockClientInterface_GetFieldExtractionByVersion_Call struct {
* mock . Call
}
// GetFieldExtractionByVersion is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.GetFieldExtractionByVersionParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetFieldExtractionByVersion ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetFieldExtractionByVersion_Call {
return & MockClientInterface_GetFieldExtractionByVersion_Call { Call : _e . mock . On ( "GetFieldExtractionByVersion" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetFieldExtractionByVersion_Call ) Run ( run func ( ctx context . Context , params * queryapi . GetFieldExtractionByVersionParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetFieldExtractionByVersion_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * queryapi . GetFieldExtractionByVersionParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetFieldExtractionByVersion_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetFieldExtractionByVersion_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetFieldExtractionByVersion_Call ) RunAndReturn ( run func ( context . Context , * queryapi . GetFieldExtractionByVersionParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetFieldExtractionByVersion_Call {
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// GetFieldExtractionHistory provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) GetFieldExtractionHistory ( ctx context . Context , params * queryapi . GetFieldExtractionHistoryParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , ctx , params )
2025-03-11 16:31:06 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for GetFieldExtractionHistory" )
2025-03-11 16:31:06 +00:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetFieldExtractionHistoryParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
2025-03-11 16:31:06 +00:00
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . GetFieldExtractionHistoryParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . GetFieldExtractionHistoryParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
2025-03-11 16:31:06 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_GetFieldExtractionHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldExtractionHistory'
type MockClientInterface_GetFieldExtractionHistory_Call struct {
2025-03-11 16:31:06 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// GetFieldExtractionHistory is a helper method to define mock.On call
2025-03-11 16:31:06 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - params *queryapi.GetFieldExtractionHistoryParams
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) GetFieldExtractionHistory ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetFieldExtractionHistory_Call {
return & MockClientInterface_GetFieldExtractionHistory_Call { Call : _e . mock . On ( "GetFieldExtractionHistory" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
2025-03-11 16:31:06 +00:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFieldExtractionHistory_Call ) Run ( run func ( ctx context . Context , params * queryapi . GetFieldExtractionHistoryParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetFieldExtractionHistory_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * queryapi . GetFieldExtractionHistoryParams ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFieldExtractionHistory_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetFieldExtractionHistory_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFieldExtractionHistory_Call ) RunAndReturn ( run func ( context . Context , * queryapi . GetFieldExtractionHistoryParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetFieldExtractionHistory_Call {
2025-03-17 18:14:15 +00:00
_c . Call . Return ( run )
return _c
}
2025-12-11 14:25:51 +00:00
// GetFolderDocuments provides a mock function with given fields: ctx, folderId, params, reqEditors
func ( _m * MockClientInterface ) GetFolderDocuments ( ctx context . Context , folderId types . UUID , params * queryapi . GetFolderDocumentsParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-17 18:14:15 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-12-11 14:25:51 +00:00
_ca = append ( _ca , ctx , folderId , params )
2025-03-17 18:14:15 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for GetFolderDocuments" )
2025-03-17 18:14:15 +00:00
}
var r0 * http . Response
var r1 error
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , * queryapi . GetFolderDocumentsParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , folderId , params , reqEditors ... )
2025-03-17 18:14:15 +00:00
}
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , * queryapi . GetFolderDocumentsParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , folderId , params , reqEditors ... )
2025-03-17 18:14:15 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-12-11 14:25:51 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , * queryapi . GetFolderDocumentsParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , folderId , params , reqEditors ... )
2025-03-17 18:14:15 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_GetFolderDocuments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFolderDocuments'
type MockClientInterface_GetFolderDocuments_Call struct {
2025-03-17 18:14:15 +00:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// GetFolderDocuments is a helper method to define mock.On call
2025-03-17 18:14:15 +00:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - folderId types.UUID
2025-12-11 14:25:51 +00:00
// - params *queryapi.GetFolderDocumentsParams
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-12-11 14:25:51 +00:00
func ( _e * MockClientInterface_Expecter ) GetFolderDocuments ( ctx interface { } , folderId interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_GetFolderDocuments_Call {
2025-11-26 19:23:42 +00:00
return & MockClientInterface_GetFolderDocuments_Call { Call : _e . mock . On ( "GetFolderDocuments" ,
2025-12-11 14:25:51 +00:00
append ( [ ] interface { } { ctx , folderId , params } , reqEditors ... ) ... ) }
2025-03-17 18:14:15 +00:00
}
2025-12-11 14:25:51 +00:00
func ( _c * MockClientInterface_GetFolderDocuments_Call ) Run ( run func ( ctx context . Context , folderId types . UUID , params * queryapi . GetFolderDocumentsParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetFolderDocuments_Call {
2025-03-17 18:14:15 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-12-11 14:25:51 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
2025-03-17 18:14:15 +00:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-12-11 14:25:51 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , args [ 2 ] . ( * queryapi . GetFolderDocumentsParams ) , variadicArgs ... )
2025-03-17 18:14:15 +00:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFolderDocuments_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetFolderDocuments_Call {
2025-03-17 18:14:15 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-12-11 14:25:51 +00:00
func ( _c * MockClientInterface_GetFolderDocuments_Call ) RunAndReturn ( run func ( context . Context , types . UUID , * queryapi . GetFolderDocumentsParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetFolderDocuments_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// GetFolderMetrics provides a mock function with given fields: ctx, folderId, reqEditors
func ( _m * MockClientInterface ) GetFolderMetrics ( ctx context . Context , folderId types . UUID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-08-05 07:03:35 -07:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , ctx , folderId )
2025-08-05 07:03:35 -07:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
2025-11-26 19:23:42 +00:00
panic ( "no return value specified for GetFolderMetrics" )
2025-08-05 07:03:35 -07:00
}
var r0 * http . Response
var r1 error
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , folderId , reqEditors ... )
2025-08-05 07:03:35 -07:00
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , folderId , reqEditors ... )
2025-08-05 07:03:35 -07:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-11-26 19:23:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , folderId , reqEditors ... )
2025-08-05 07:03:35 -07:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2025-11-26 19:23:42 +00:00
// MockClientInterface_GetFolderMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFolderMetrics'
type MockClientInterface_GetFolderMetrics_Call struct {
2025-08-05 07:03:35 -07:00
* mock . Call
}
2025-11-26 19:23:42 +00:00
// GetFolderMetrics is a helper method to define mock.On call
2025-08-05 07:03:35 -07:00
// - ctx context.Context
2025-11-26 19:23:42 +00:00
// - folderId types.UUID
2025-08-05 07:03:35 -07:00
// - reqEditors ...queryapi.RequestEditorFn
2025-11-26 19:23:42 +00:00
func ( _e * MockClientInterface_Expecter ) GetFolderMetrics ( ctx interface { } , folderId interface { } , reqEditors ... interface { } ) * MockClientInterface_GetFolderMetrics_Call {
return & MockClientInterface_GetFolderMetrics_Call { Call : _e . mock . On ( "GetFolderMetrics" ,
append ( [ ] interface { } { ctx , folderId } , reqEditors ... ) ... ) }
2025-08-05 07:03:35 -07:00
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFolderMetrics_Call ) Run ( run func ( ctx context . Context , folderId types . UUID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetFolderMetrics_Call {
2025-08-05 07:03:35 -07:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-11-26 19:23:42 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
2025-08-05 07:03:35 -07:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-11-26 19:23:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , variadicArgs ... )
2025-08-05 07:03:35 -07:00
} )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFolderMetrics_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetFolderMetrics_Call {
2025-08-05 07:03:35 -07:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-11-26 19:23:42 +00:00
func ( _c * MockClientInterface_GetFolderMetrics_Call ) RunAndReturn ( run func ( context . Context , types . UUID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetFolderMetrics_Call {
2025-08-05 07:03:35 -07:00
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// GetHomePage provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) GetHomePage ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetHomePage" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetHomePage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomePage'
type MockClientInterface_GetHomePage_Call struct {
* mock . Call
}
// GetHomePage is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetHomePage ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_GetHomePage_Call {
return & MockClientInterface_GetHomePage_Call { Call : _e . mock . On ( "GetHomePage" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetHomePage_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetHomePage_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
for i , a := range args [ 1 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetHomePage_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetHomePage_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetHomePage_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetHomePage_Call {
_c . Call . Return ( run )
return _c
}
2025-12-16 04:26:06 +00:00
// GetIdentity provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) GetIdentity ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetIdentity" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentity'
type MockClientInterface_GetIdentity_Call struct {
* mock . Call
}
// GetIdentity is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) GetIdentity ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_GetIdentity_Call {
return & MockClientInterface_GetIdentity_Call { Call : _e . mock . On ( "GetIdentity" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_GetIdentity_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetIdentity_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
for i , a := range args [ 1 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_GetIdentity_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetIdentity_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_GetIdentity_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetIdentity_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// GetStatusByClientId provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) GetStatusByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for GetStatusByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_GetStatusByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusByClientId'
type MockClientInterface_GetStatusByClientId_Call struct {
* mock . Call
}
// GetStatusByClientId is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) GetStatusByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_GetStatusByClientId_Call {
return & MockClientInterface_GetStatusByClientId_Call { Call : _e . mock . On ( "GetStatusByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetStatusByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_GetStatusByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_GetStatusByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_GetStatusByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_GetStatusByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_GetStatusByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// ListAdminUsers provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) ListAdminUsers ( ctx context . Context , params * queryapi . ListAdminUsersParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListAdminUsers" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListAdminUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAdminUsers'
type MockClientInterface_ListAdminUsers_Call struct {
* mock . Call
}
// ListAdminUsers is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.ListAdminUsersParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ListAdminUsers ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_ListAdminUsers_Call {
return & MockClientInterface_ListAdminUsers_Call { Call : _e . mock . On ( "ListAdminUsers" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) Run ( run func ( ctx context . Context , params * queryapi . ListAdminUsersParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListAdminUsers_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * queryapi . ListAdminUsersParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListAdminUsers_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ListAdminUsers_Call ) RunAndReturn ( run func ( context . Context , * queryapi . ListAdminUsersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListAdminUsers_Call {
_c . Call . Return ( run )
return _c
}
2025-12-04 22:45:15 +00:00
// ListClientFolders provides a mock function with given fields: ctx, id, params, reqEditors
func ( _m * MockClientInterface ) ListClientFolders ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListClientFoldersParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-11-26 19:23:42 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
2025-12-04 22:45:15 +00:00
_ca = append ( _ca , ctx , id , params )
2025-11-26 19:23:42 +00:00
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListClientFolders" )
}
var r0 * http . Response
var r1 error
2025-12-04 22:45:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListClientFoldersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
}
2025-12-04 22:45:15 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListClientFoldersParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-12-04 22:45:15 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListClientFoldersParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , params , reqEditors ... )
2025-11-26 19:23:42 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListClientFolders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClientFolders'
type MockClientInterface_ListClientFolders_Call struct {
* mock . Call
}
// ListClientFolders is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
2025-12-04 22:45:15 +00:00
// - params *queryapi.ListClientFoldersParams
2025-11-26 19:23:42 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-12-04 22:45:15 +00:00
func ( _e * MockClientInterface_Expecter ) ListClientFolders ( ctx interface { } , id interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_ListClientFolders_Call {
2025-11-26 19:23:42 +00:00
return & MockClientInterface_ListClientFolders_Call { Call : _e . mock . On ( "ListClientFolders" ,
2025-12-04 22:45:15 +00:00
append ( [ ] interface { } { ctx , id , params } , reqEditors ... ) ... ) }
2025-11-26 19:23:42 +00:00
}
2025-12-04 22:45:15 +00:00
func ( _c * MockClientInterface_ListClientFolders_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListClientFoldersParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListClientFolders_Call {
2025-11-26 19:23:42 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-12-04 22:45:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
2025-11-26 19:23:42 +00:00
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
2025-12-04 22:45:15 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( * queryapi . ListClientFoldersParams ) , variadicArgs ... )
2025-11-26 19:23:42 +00:00
} )
return _c
}
func ( _c * MockClientInterface_ListClientFolders_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListClientFolders_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-12-04 22:45:15 +00:00
func ( _c * MockClientInterface_ListClientFolders_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , * queryapi . ListClientFoldersParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListClientFolders_Call {
2025-11-26 19:23:42 +00:00
_c . Call . Return ( run )
return _c
}
2025-12-02 19:13:08 +00:00
// ListClients provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) ListClients ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListClients" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListClients_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClients'
type MockClientInterface_ListClients_Call struct {
* mock . Call
}
// ListClients is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ListClients ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_ListClients_Call {
return & MockClientInterface_ListClients_Call { Call : _e . mock . On ( "ListClients" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ListClients_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListClients_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
for i , a := range args [ 1 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ListClients_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListClients_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ListClients_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListClients_Call {
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// ListDocumentBatches provides a mock function with given fields: ctx, id, params, reqEditors
func ( _m * MockClientInterface ) ListDocumentBatches ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListDocumentBatches" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListDocumentBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentBatches'
type MockClientInterface_ListDocumentBatches_Call struct {
* mock . Call
}
// ListDocumentBatches is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - params *queryapi.ListDocumentBatchesParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) ListDocumentBatches ( ctx interface { } , id interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_ListDocumentBatches_Call {
return & MockClientInterface_ListDocumentBatches_Call { Call : _e . mock . On ( "ListDocumentBatches" ,
append ( [ ] interface { } { ctx , id , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_ListDocumentBatches_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , params * queryapi . ListDocumentBatchesParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListDocumentBatches_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( * queryapi . ListDocumentBatchesParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_ListDocumentBatches_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListDocumentBatches_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_ListDocumentBatches_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , * queryapi . ListDocumentBatchesParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListDocumentBatches_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// ListDocumentsByClientId provides a mock function with given fields: ctx, id, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) ListDocumentsByClientId ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for ListDocumentsByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_ListDocumentsByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentsByClientId'
type MockClientInterface_ListDocumentsByClientId_Call struct {
* mock . Call
}
// ListDocumentsByClientId is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) ListDocumentsByClientId ( ctx interface { } , id interface { } , reqEditors ... interface { } ) * MockClientInterface_ListDocumentsByClientId_Call {
return & MockClientInterface_ListDocumentsByClientId_Call { Call : _e . mock . On ( "ListDocumentsByClientId" ,
append ( [ ] interface { } { ctx , id } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_ListDocumentsByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 2 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_ListDocumentsByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_ListDocumentsByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_ListDocumentsByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-04-07 14:10:39 -07:00
// Login provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) Login ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for Login" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
type MockClientInterface_Login_Call struct {
* mock . Call
}
// Login is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) Login ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_Login_Call {
return & MockClientInterface_Login_Call { Call : _e . mock . On ( "Login" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_Login_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_Login_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
for i , a := range args [ 1 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_Login_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_Login_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_Login_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_Login_Call {
_c . Call . Return ( run )
return _c
}
// LoginCallback provides a mock function with given fields: ctx, params, reqEditors
func ( _m * MockClientInterface ) LoginCallback ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , params )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for LoginCallback" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , params , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , params , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , params , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_LoginCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginCallback'
type MockClientInterface_LoginCallback_Call struct {
* mock . Call
}
// LoginCallback is a helper method to define mock.On call
// - ctx context.Context
// - params *queryapi.LoginCallbackParams
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) LoginCallback ( ctx interface { } , params interface { } , reqEditors ... interface { } ) * MockClientInterface_LoginCallback_Call {
return & MockClientInterface_LoginCallback_Call { Call : _e . mock . On ( "LoginCallback" ,
append ( [ ] interface { } { ctx , params } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_LoginCallback_Call ) Run ( run func ( ctx context . Context , params * queryapi . LoginCallbackParams , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_LoginCallback_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 2 )
for i , a := range args [ 2 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * queryapi . LoginCallbackParams ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_LoginCallback_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_LoginCallback_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_LoginCallback_Call ) RunAndReturn ( run func ( context . Context , * queryapi . LoginCallbackParams , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_LoginCallback_Call {
_c . Call . Return ( run )
return _c
}
// Logout provides a mock function with given fields: ctx, reqEditors
func ( _m * MockClientInterface ) Logout ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for Logout" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
type MockClientInterface_Logout_Call struct {
* mock . Call
}
// Logout is a helper method to define mock.On call
// - ctx context.Context
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) Logout ( ctx interface { } , reqEditors ... interface { } ) * MockClientInterface_Logout_Call {
return & MockClientInterface_Logout_Call { Call : _e . mock . On ( "Logout" ,
append ( [ ] interface { } { ctx } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_Logout_Call ) Run ( run func ( ctx context . Context , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_Logout_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 1 )
for i , a := range args [ 1 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_Logout_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_Logout_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_Logout_Call ) RunAndReturn ( run func ( context . Context , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_Logout_Call {
_c . Call . Return ( run )
return _c
}
2025-11-26 19:23:42 +00:00
// RenameFolder provides a mock function with given fields: ctx, folderId, body, reqEditors
func ( _m * MockClientInterface ) RenameFolder ( ctx context . Context , folderId types . UUID , body queryapi . RenameFolderJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , folderId , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for RenameFolder" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , queryapi . RenameFolderJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , folderId , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , queryapi . RenameFolderJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , folderId , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , queryapi . RenameFolderJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , folderId , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_RenameFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameFolder'
type MockClientInterface_RenameFolder_Call struct {
* mock . Call
}
// RenameFolder is a helper method to define mock.On call
// - ctx context.Context
// - folderId types.UUID
// - body queryapi.RenameFolderJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) RenameFolder ( ctx interface { } , folderId interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_RenameFolder_Call {
return & MockClientInterface_RenameFolder_Call { Call : _e . mock . On ( "RenameFolder" ,
append ( [ ] interface { } { ctx , folderId , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_RenameFolder_Call ) Run ( run func ( ctx context . Context , folderId types . UUID , body queryapi . RenameFolderJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_RenameFolder_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , args [ 2 ] . ( queryapi . RenameFolderJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_RenameFolder_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_RenameFolder_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_RenameFolder_Call ) RunAndReturn ( run func ( context . Context , types . UUID , queryapi . RenameFolderJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_RenameFolder_Call {
_c . Call . Return ( run )
return _c
}
// RenameFolderWithBody provides a mock function with given fields: ctx, folderId, contentType, body, reqEditors
func ( _m * MockClientInterface ) RenameFolderWithBody ( ctx context . Context , folderId types . UUID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , folderId , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for RenameFolderWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , folderId , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , folderId , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , folderId , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_RenameFolderWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameFolderWithBody'
type MockClientInterface_RenameFolderWithBody_Call struct {
* mock . Call
}
// RenameFolderWithBody is a helper method to define mock.On call
// - ctx context.Context
// - folderId types.UUID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) RenameFolderWithBody ( ctx interface { } , folderId interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_RenameFolderWithBody_Call {
return & MockClientInterface_RenameFolderWithBody_Call { Call : _e . mock . On ( "RenameFolderWithBody" ,
append ( [ ] interface { } { ctx , folderId , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_RenameFolderWithBody_Call ) Run ( run func ( ctx context . Context , folderId types . UUID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_RenameFolderWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
for i , a := range args [ 4 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( types . UUID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_RenameFolderWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_RenameFolderWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_RenameFolderWithBody_Call ) RunAndReturn ( run func ( context . Context , types . UUID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_RenameFolderWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// SetCollectorByClientId provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) SetCollectorByClientId ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for SetCollectorByClientId" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_SetCollectorByClientId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientId'
type MockClientInterface_SetCollectorByClientId_Call struct {
* mock . Call
}
// SetCollectorByClientId is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.SetCollectorByClientIdJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) SetCollectorByClientId ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_SetCollectorByClientId_Call {
return & MockClientInterface_SetCollectorByClientId_Call { Call : _e . mock . On ( "SetCollectorByClientId" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . SetCollectorByClientIdJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_SetCollectorByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . SetCollectorByClientIdJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_SetCollectorByClientId_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientId_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . SetCollectorByClientIdJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_SetCollectorByClientId_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// SetCollectorByClientIdWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) SetCollectorByClientIdWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for SetCollectorByClientIdWithBody" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_SetCollectorByClientIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCollectorByClientIdWithBody'
type MockClientInterface_SetCollectorByClientIdWithBody_Call struct {
* mock . Call
}
// SetCollectorByClientIdWithBody is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) SetCollectorByClientIdWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
return & MockClientInterface_SetCollectorByClientIdWithBody_Call { Call : _e . mock . On ( "SetCollectorByClientIdWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_SetCollectorByClientIdWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_SetCollectorByClientIdWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExport provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TriggerExport ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for TriggerExport" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_TriggerExport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExport'
type MockClientInterface_TriggerExport_Call struct {
* mock . Call
}
// TriggerExport is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.TriggerExportJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) TriggerExport ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TriggerExport_Call {
return & MockClientInterface_TriggerExport_Call { Call : _e . mock . On ( "TriggerExport" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExport_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . TriggerExportJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TriggerExport_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . TriggerExportJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_TriggerExport_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TriggerExport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExport_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . TriggerExportJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TriggerExport_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// TriggerExportWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) TriggerExportWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for TriggerExportWithBody" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_TriggerExportWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerExportWithBody'
type MockClientInterface_TriggerExportWithBody_Call struct {
* mock . Call
}
// TriggerExportWithBody is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) TriggerExportWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_TriggerExportWithBody_Call {
return & MockClientInterface_TriggerExportWithBody_Call { Call : _e . mock . On ( "TriggerExportWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_TriggerExportWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_TriggerExportWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_TriggerExportWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_TriggerExportWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-10-23 22:57:15 +00:00
// UpdateAdminUser provides a mock function with given fields: ctx, email, body, reqEditors
func ( _m * MockClientInterface ) UpdateAdminUser ( ctx context . Context , email queryapi . UserEmail , body queryapi . UpdateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateAdminUser" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateAdminUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdminUser'
type MockClientInterface_UpdateAdminUser_Call struct {
* mock . Call
}
// UpdateAdminUser is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - body queryapi.UpdateAdminUserJSONRequestBody
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UpdateAdminUser ( ctx interface { } , email interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateAdminUser_Call {
return & MockClientInterface_UpdateAdminUser_Call { Call : _e . mock . On ( "UpdateAdminUser" ,
append ( [ ] interface { } { ctx , email , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , body queryapi . UpdateAdminUserJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateAdminUser_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
for i , a := range args [ 3 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , args [ 2 ] . ( queryapi . UpdateAdminUserJSONRequestBody ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateAdminUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUser_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , queryapi . UpdateAdminUserJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateAdminUser_Call {
_c . Call . Return ( run )
return _c
}
// UpdateAdminUserWithBody provides a mock function with given fields: ctx, email, contentType, body, reqEditors
func ( _m * MockClientInterface ) UpdateAdminUserWithBody ( ctx context . Context , email queryapi . UserEmail , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , email , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateAdminUserWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , email , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , email , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , email , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateAdminUserWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdminUserWithBody'
type MockClientInterface_UpdateAdminUserWithBody_Call struct {
* mock . Call
}
// UpdateAdminUserWithBody is a helper method to define mock.On call
// - ctx context.Context
// - email queryapi.UserEmail
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UpdateAdminUserWithBody ( ctx interface { } , email interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateAdminUserWithBody_Call {
return & MockClientInterface_UpdateAdminUserWithBody_Call { Call : _e . mock . On ( "UpdateAdminUserWithBody" ,
append ( [ ] interface { } { ctx , email , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) Run ( run func ( ctx context . Context , email queryapi . UserEmail , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateAdminUserWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
for i , a := range args [ 4 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . UserEmail ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateAdminUserWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UpdateAdminUserWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . UserEmail , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateAdminUserWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// UpdateClient provides a mock function with given fields: ctx, id, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateClient ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateClient" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClient'
type MockClientInterface_UpdateClient_Call struct {
* mock . Call
}
// UpdateClient is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
// - body queryapi.UpdateClientJSONRequestBody
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) UpdateClient ( ctx interface { } , id interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateClient_Call {
return & MockClientInterface_UpdateClient_Call { Call : _e . mock . On ( "UpdateClient" ,
append ( [ ] interface { } { ctx , id , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClient_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , body queryapi . UpdateClientJSONRequestBody , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 3 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 3 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( queryapi . UpdateClientJSONRequestBody ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_UpdateClient_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateClient_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClient_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , queryapi . UpdateClientJSONRequestBody , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateClient_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
// UpdateClientWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
2025-05-08 16:04:45 +00:00
func ( _m * MockClientInterface ) UpdateClientWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
2025-03-11 16:31:06 +00:00
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateClientWithBody" )
}
var r0 * http . Response
var r1 error
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
2025-03-11 16:31:06 +00:00
return rf ( ctx , id , contentType , body , reqEditors ... )
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
2025-03-11 16:31:06 +00:00
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
2025-05-08 16:04:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
2025-03-11 16:31:06 +00:00
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UpdateClientWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClientWithBody'
type MockClientInterface_UpdateClientWithBody_Call struct {
* mock . Call
}
// UpdateClientWithBody is a helper method to define mock.On call
// - ctx context.Context
2025-05-08 16:04:45 +00:00
// - id queryapi.ClientID
2025-03-11 16:31:06 +00:00
// - contentType string
// - body io.Reader
2025-03-17 18:14:15 +00:00
// - reqEditors ...queryapi.RequestEditorFn
2025-03-11 16:31:06 +00:00
func ( _e * MockClientInterface_Expecter ) UpdateClientWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UpdateClientWithBody_Call {
return & MockClientInterface_UpdateClientWithBody_Call { Call : _e . mock . On ( "UpdateClientWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UpdateClientWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2025-03-17 18:14:15 +00:00
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
2025-03-11 16:31:06 +00:00
for i , a := range args [ 4 : ] {
if a != nil {
2025-03-17 18:14:15 +00:00
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
2025-03-11 16:31:06 +00:00
}
}
2025-05-08 16:04:45 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
2025-03-11 16:31:06 +00:00
} )
return _c
}
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UpdateClientWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2025-05-08 16:04:45 +00:00
func ( _c * MockClientInterface_UpdateClientWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UpdateClientWithBody_Call {
2025-03-11 16:31:06 +00:00
_c . Call . Return ( run )
return _c
}
2025-08-05 07:03:35 -07:00
// UploadDocumentBatchWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientInterface ) UploadDocumentBatchWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UploadDocumentBatchWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UploadDocumentBatchWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentBatchWithBody'
type MockClientInterface_UploadDocumentBatchWithBody_Call struct {
* mock . Call
}
// UploadDocumentBatchWithBody is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UploadDocumentBatchWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
return & MockClientInterface_UploadDocumentBatchWithBody_Call { Call : _e . mock . On ( "UploadDocumentBatchWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UploadDocumentBatchWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
for i , a := range args [ 4 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UploadDocumentBatchWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UploadDocumentBatchWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UploadDocumentBatchWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-05-27 15:28:46 +00:00
// UploadDocumentWithBody provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func ( _m * MockClientInterface ) UploadDocumentWithBody ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ( * http . Response , error ) {
_va := make ( [ ] interface { } , len ( reqEditors ) )
for _i := range reqEditors {
_va [ _i ] = reqEditors [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , ctx , id , contentType , body )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
if len ( ret ) == 0 {
panic ( "no return value specified for UploadDocumentWithBody" )
}
var r0 * http . Response
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) ; ok {
return rf ( ctx , id , contentType , body , reqEditors ... )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) * http . Response ) ; ok {
r0 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * http . Response )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) error ) ; ok {
r1 = rf ( ctx , id , contentType , body , reqEditors ... )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockClientInterface_UploadDocumentWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentWithBody'
type MockClientInterface_UploadDocumentWithBody_Call struct {
* mock . Call
}
// UploadDocumentWithBody is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - contentType string
// - body io.Reader
// - reqEditors ...queryapi.RequestEditorFn
func ( _e * MockClientInterface_Expecter ) UploadDocumentWithBody ( ctx interface { } , id interface { } , contentType interface { } , body interface { } , reqEditors ... interface { } ) * MockClientInterface_UploadDocumentWithBody_Call {
return & MockClientInterface_UploadDocumentWithBody_Call { Call : _e . mock . On ( "UploadDocumentWithBody" ,
append ( [ ] interface { } { ctx , id , contentType , body } , reqEditors ... ) ... ) }
}
func ( _c * MockClientInterface_UploadDocumentWithBody_Call ) Run ( run func ( ctx context . Context , id queryapi . ClientID , contentType string , body io . Reader , reqEditors ... queryapi . RequestEditorFn ) ) * MockClientInterface_UploadDocumentWithBody_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
variadicArgs := make ( [ ] queryapi . RequestEditorFn , len ( args ) - 4 )
for i , a := range args [ 4 : ] {
if a != nil {
variadicArgs [ i ] = a . ( queryapi . RequestEditorFn )
}
}
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( queryapi . ClientID ) , args [ 2 ] . ( string ) , args [ 3 ] . ( io . Reader ) , variadicArgs ... )
} )
return _c
}
func ( _c * MockClientInterface_UploadDocumentWithBody_Call ) Return ( _a0 * http . Response , _a1 error ) * MockClientInterface_UploadDocumentWithBody_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockClientInterface_UploadDocumentWithBody_Call ) RunAndReturn ( run func ( context . Context , queryapi . ClientID , string , io . Reader , ... queryapi . RequestEditorFn ) ( * http . Response , error ) ) * MockClientInterface_UploadDocumentWithBody_Call {
_c . Call . Return ( run )
return _c
}
2025-03-11 16:31:06 +00:00
// NewMockClientInterface creates a new instance of MockClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockClientInterface ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * MockClientInterface {
mock := & MockClientInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}