/** * 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 { AccountDetails } from '../model/models'; import { AccountListItem } from '../model/models'; import { Address } from '../model/models'; import { CreateAccountDto } from '../model/models'; import { UpdateAccountDto } from '../model/models'; import { Configuration } from '../configuration'; export declare class EmailAccountsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Add an account alias * @param accountId Unique id of the account * @param address * @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. */ addAccountAlias(accountId: string, address: Address, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; addAccountAlias(accountId: string, address: Address, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; addAccountAlias(accountId: string, address: Address, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * Create a new email account * @param createAccountDto * @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. */ createAccount(createAccountDto: CreateAccountDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; createAccount(createAccountDto: CreateAccountDto, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; createAccount(createAccountDto: CreateAccountDto, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * Delete email account * @param accountId Unique id of the account * @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. */ deleteAccount(accountId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; deleteAccount(accountId: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; deleteAccount(accountId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * Delete an account alias * @param accountId Unique id of the account * @param aliasId Unique id of the alias * @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. */ deleteAccountAlias(accountId: string, aliasId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; deleteAccountAlias(accountId: string, aliasId: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; deleteAccountAlias(accountId: string, aliasId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; /** * Get email account details * @param accountId Unique id of the account * @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. */ getAccountDetails(accountId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getAccountDetails(accountId: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getAccountDetails(accountId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * List email accounts * @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. */ getAccounts(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getAccounts(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>>; getAccounts(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>>; /** * Update existing email account * @param accountId Unique id of the account * @param updateAccountDto * @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. */ updateAccount(accountId: string, updateAccountDto: UpdateAccountDto, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable; updateAccount(accountId: string, updateAccountDto: UpdateAccountDto, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; updateAccount(accountId: string, updateAccountDto: UpdateAccountDto, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; }): Observable>; }