/** * DuckyAPI * A customer facing api for WildDuck * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CreateUserDto } from '../model/models'; import { DeleteUserDto } from '../model/models'; import { UpdateUserAdminDto } from '../model/models'; import { User } from '../model/models'; import { Configuration } from '../configuration'; export declare class UsersService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * [Admin only] Create new API user * @param createUserDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createUser(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; createUser(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; createUser(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * [Admin only] Delete API user * @param id Unique id for the user * @param deleteUserDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteUser(id: string, deleteUserDto?: DeleteUserDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; deleteUser(id: string, deleteUserDto?: DeleteUserDto, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; deleteUser(id: string, deleteUserDto?: DeleteUserDto, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * [Admin only] List all users * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getUsers(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getUsers(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>>; getUsers(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>>; /** * [Admin only] Update API user * @param id Unique id for the user * @param updateUserAdminDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ updateUser(id: string, updateUserAdminDto: UpdateUserAdminDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; updateUser(id: string, updateUserAdminDto: UpdateUserAdminDto, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; updateUser(id: string, updateUserAdminDto: UpdateUserAdminDto, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; }