rawFilterContactsByWithHttpInfo method

Future<Response> rawFilterContactsByWithHttpInfo(
  1. FilterChain<ContactDto> filterChainContact, {
  2. String? startDocumentId,
  3. int? limit,
})

List contacts for the current user (HcParty) or the given hcparty in the filter

Returns a list of contacts along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawFilterContactsByWithHttpInfo(FilterChain<ContactDto> filterChainContact, { String? startDocumentId, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/contact/filter';

  // ignore: prefer_final_locals
  Object? postBody = filterChainContact;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (startDocumentId != null) {
    queryParams.addAll(_queryParams('', 'startDocumentId', startDocumentId));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}