swagger part 1

This commit is contained in:
jay brown
2025-08-05 07:03:35 -07:00
parent 56fb9b4ab6
commit 3de3d0a7b3
27 changed files with 3128 additions and 92 deletions
@@ -24,6 +24,81 @@ func (_m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInt
return &MockClientWithResponsesInterface_Expecter{mock: &_m.Mock}
}
// CancelDocumentBatchWithResponse provides a mock function with given fields: ctx, id, batchId, reqEditors
func (_m *MockClientWithResponsesInterface) CancelDocumentBatchWithResponse(ctx context.Context, id queryapi.ClientID, batchId queryapi.BatchID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CancelDocumentBatchResponse, 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 CancelDocumentBatchWithResponse")
}
var r0 *queryapi.CancelDocumentBatchResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) (*queryapi.CancelDocumentBatchResponse, error)); ok {
return rf(ctx, id, batchId, reqEditors...)
}
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) *queryapi.CancelDocumentBatchResponse); ok {
r0 = rf(ctx, id, batchId, reqEditors...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*queryapi.CancelDocumentBatchResponse)
}
}
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
}
// MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelDocumentBatchWithResponse'
type MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call struct {
*mock.Call
}
// CancelDocumentBatchWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func (_e *MockClientWithResponsesInterface_Expecter) CancelDocumentBatchWithResponse(ctx interface{}, id interface{}, batchId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
return &MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call{Call: _e.mock.On("CancelDocumentBatchWithResponse",
append([]interface{}{ctx, id, batchId}, reqEditors...)...)}
}
func (_c *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call) Run(run func(ctx context.Context, id queryapi.ClientID, batchId queryapi.BatchID, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_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 *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call) Return(_a0 *queryapi.CancelDocumentBatchResponse, _a1 error) *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) (*queryapi.CancelDocumentBatchResponse, error)) *MockClientWithResponsesInterface_CancelDocumentBatchWithResponse_Call {
_c.Call.Return(run)
return _c
}
// CreateClientWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors
func (_m *MockClientWithResponsesInterface) CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.CreateClientResponse, error) {
_va := make([]interface{}, len(reqEditors))
@@ -544,6 +619,81 @@ func (_c *MockClientWithResponsesInterface_GetCollectorByClientIdWithResponse_Ca
return _c
}
// GetDocumentBatchWithResponse provides a mock function with given fields: ctx, id, batchId, reqEditors
func (_m *MockClientWithResponsesInterface) GetDocumentBatchWithResponse(ctx context.Context, id queryapi.ClientID, batchId queryapi.BatchID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetDocumentBatchResponse, 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 GetDocumentBatchWithResponse")
}
var r0 *queryapi.GetDocumentBatchResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) (*queryapi.GetDocumentBatchResponse, error)); ok {
return rf(ctx, id, batchId, reqEditors...)
}
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) *queryapi.GetDocumentBatchResponse); ok {
r0 = rf(ctx, id, batchId, reqEditors...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*queryapi.GetDocumentBatchResponse)
}
}
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
}
// MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocumentBatchWithResponse'
type MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call struct {
*mock.Call
}
// GetDocumentBatchWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - batchId queryapi.BatchID
// - reqEditors ...queryapi.RequestEditorFn
func (_e *MockClientWithResponsesInterface_Expecter) GetDocumentBatchWithResponse(ctx interface{}, id interface{}, batchId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
return &MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call{Call: _e.mock.On("GetDocumentBatchWithResponse",
append([]interface{}{ctx, id, batchId}, reqEditors...)...)}
}
func (_c *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call) Run(run func(ctx context.Context, id queryapi.ClientID, batchId queryapi.BatchID, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_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 *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call) Return(_a0 *queryapi.GetDocumentBatchResponse, _a1 error) *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.ClientID, queryapi.BatchID, ...queryapi.RequestEditorFn) (*queryapi.GetDocumentBatchResponse, error)) *MockClientWithResponsesInterface_GetDocumentBatchWithResponse_Call {
_c.Call.Return(run)
return _c
}
// GetDocumentWithResponse provides a mock function with given fields: ctx, id, reqEditors
func (_m *MockClientWithResponsesInterface) GetDocumentWithResponse(ctx context.Context, id queryapi.DocumentID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.GetDocumentResponse, error) {
_va := make([]interface{}, len(reqEditors))
@@ -839,6 +989,81 @@ func (_c *MockClientWithResponsesInterface_GetStatusByClientIdWithResponse_Call)
return _c
}
// ListDocumentBatchesWithResponse provides a mock function with given fields: ctx, id, params, reqEditors
func (_m *MockClientWithResponsesInterface) ListDocumentBatchesWithResponse(ctx context.Context, id queryapi.ClientID, params *queryapi.ListDocumentBatchesParams, reqEditors ...queryapi.RequestEditorFn) (*queryapi.ListDocumentBatchesResponse, 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 ListDocumentBatchesWithResponse")
}
var r0 *queryapi.ListDocumentBatchesResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, *queryapi.ListDocumentBatchesParams, ...queryapi.RequestEditorFn) (*queryapi.ListDocumentBatchesResponse, error)); ok {
return rf(ctx, id, params, reqEditors...)
}
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, *queryapi.ListDocumentBatchesParams, ...queryapi.RequestEditorFn) *queryapi.ListDocumentBatchesResponse); ok {
r0 = rf(ctx, id, params, reqEditors...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*queryapi.ListDocumentBatchesResponse)
}
}
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
}
// MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDocumentBatchesWithResponse'
type MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call struct {
*mock.Call
}
// ListDocumentBatchesWithResponse is a helper method to define mock.On call
// - ctx context.Context
// - id queryapi.ClientID
// - params *queryapi.ListDocumentBatchesParams
// - reqEditors ...queryapi.RequestEditorFn
func (_e *MockClientWithResponsesInterface_Expecter) ListDocumentBatchesWithResponse(ctx interface{}, id interface{}, params interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
return &MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call{Call: _e.mock.On("ListDocumentBatchesWithResponse",
append([]interface{}{ctx, id, params}, reqEditors...)...)}
}
func (_c *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call) Run(run func(ctx context.Context, id queryapi.ClientID, params *queryapi.ListDocumentBatchesParams, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_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 *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call) Return(_a0 *queryapi.ListDocumentBatchesResponse, _a1 error) *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.ClientID, *queryapi.ListDocumentBatchesParams, ...queryapi.RequestEditorFn) (*queryapi.ListDocumentBatchesResponse, error)) *MockClientWithResponsesInterface_ListDocumentBatchesWithResponse_Call {
_c.Call.Return(run)
return _c
}
// ListDocumentsByClientIdWithResponse provides a mock function with given fields: ctx, id, reqEditors
func (_m *MockClientWithResponsesInterface) ListDocumentsByClientIdWithResponse(ctx context.Context, id queryapi.ClientID, reqEditors ...queryapi.RequestEditorFn) (*queryapi.ListDocumentsByClientIdResponse, error) {
_va := make([]interface{}, len(reqEditors))
@@ -1961,6 +2186,82 @@ func (_c *MockClientWithResponsesInterface_UpdateQueryWithResponse_Call) RunAndR
return _c
}
// UploadDocumentBatchWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func (_m *MockClientWithResponsesInterface) UploadDocumentBatchWithBodyWithResponse(ctx context.Context, id queryapi.ClientID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UploadDocumentBatchResponse, 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 UploadDocumentBatchWithBodyWithResponse")
}
var r0 *queryapi.UploadDocumentBatchResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, queryapi.ClientID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UploadDocumentBatchResponse, 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) *queryapi.UploadDocumentBatchResponse); ok {
r0 = rf(ctx, id, contentType, body, reqEditors...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*queryapi.UploadDocumentBatchResponse)
}
}
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
}
// MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadDocumentBatchWithBodyWithResponse'
type MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call struct {
*mock.Call
}
// UploadDocumentBatchWithBodyWithResponse 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 *MockClientWithResponsesInterface_Expecter) UploadDocumentBatchWithBodyWithResponse(ctx interface{}, id interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
return &MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call{Call: _e.mock.On("UploadDocumentBatchWithBodyWithResponse",
append([]interface{}{ctx, id, contentType, body}, reqEditors...)...)}
}
func (_c *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call) Run(run func(ctx context.Context, id queryapi.ClientID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn)) *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_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 *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call) Return(_a0 *queryapi.UploadDocumentBatchResponse, _a1 error) *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call) RunAndReturn(run func(context.Context, queryapi.ClientID, string, io.Reader, ...queryapi.RequestEditorFn) (*queryapi.UploadDocumentBatchResponse, error)) *MockClientWithResponsesInterface_UploadDocumentBatchWithBodyWithResponse_Call {
_c.Call.Return(run)
return _c
}
// UploadDocumentWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors
func (_m *MockClientWithResponsesInterface) UploadDocumentWithBodyWithResponse(ctx context.Context, id queryapi.ClientID, contentType string, body io.Reader, reqEditors ...queryapi.RequestEditorFn) (*queryapi.UploadDocumentResponse, error) {
_va := make([]interface{}, len(reqEditors))