import { RetryOptions } from '../lib/retriable-executor'; import { CredentialsType } from '../enums'; export interface Credentials { type: CredentialsType; } export interface ServiceConfig { enabled?: boolean; retryOptions?: RetryOptions; } export interface RestServiceConfig extends ServiceConfig { url: string; auth?: { username: string; password: string; }; data?: object; headers?: object; credentials?: Credentials; method?: string; params?: any; timeout?: any; returnRequestTime?: boolean; } export interface SoapServiceConfig extends ServiceConfig { wsdl: string; security: { type: string; username?: string; password?: string; passphrase?: string; certificate?: string; key?: string; options?: object; }; extra_options?: {}; extraHeaders?: {}; soapHeaders?: { headers: {}; namespace: {}; }; options?: {}; username?: string; password?: string; }