import Connection from '../connection'; import { Schema, Record, SoapSchemaDef, SoapSchema } from '../types'; import { LeadConvert, LeadConvertResult, MergeRequest, MergeResult, EmptyRecycleBinResult, UndeleteResult, DescribeTabSetResult, GetServerTimestampResult, GetUserInfoResult, ResetPasswordResult, SaveResult, UpsertResult, DeleteResult } from './soap/schema'; /** * API class for Partner SOAP call */ export declare class SoapApi { _conn: Connection; constructor(conn: Connection); /** * Call SOAP Api (Partner) endpoint * @private */ _invoke(method: string, message: object, schema: SoapSchema | SoapSchemaDef): Promise; /** * Converts a Lead into an Account, Contact, or (optionally) an Opportunity. */ convertLead(leadConverts: Array>): Promise; convertLead(leadConvert: Partial): Promise; convertLead(leadConvert: Partial | Array>): Promise; /** * Merge up to three records into one */ merge(mergeRequests: Array>): Promise; merge(mergeRequest: Partial): Promise; merge(mergeRequest: Partial | Array>): Promise; /** * Delete records from the recycle bin immediately */ emptyRecycleBin(ids: string[]): Promise; /** * Returns information about the standard and custom apps available to the logged-in user */ describeTabs(): Promise; /** * Retrieves the current system timestamp (Coordinated Universal Time (UTC) time zone) from the API */ getServerTimestamp(): Promise; /** * Retrieves personal information for the user associated with the current session */ getUserInfo(): Promise; /** * Sets the specified user’s password to the specified value */ setPassword(userId: string, password: string): Promise; /** * Resets the specified user’s password */ resetPassword(userId: string): Promise; /** * Adds one or more new records to your organization’s data */ create(sObject: Record[]): Promise; create(sObject: Record): Promise; create(sObjects: Record | Record[]): Promise; /** * Updates one or more existing records in your organization’s data. */ update(sObject: Record[]): Promise; update(sObject: Record): Promise; update(sObjects: Record | Record[]): Promise; /** * Creates new records and updates existing records in your organization’s data. */ upsert(externalIdFieldName: string, sObjects: Record[]): Promise; upsert(externalIdFieldName: string, sObject: Record): Promise; upsert(externalIdFieldName: string, sObjects: Record | Record[]): Promise; /** * Deletes one or more records from your organization’s data */ delete(ids: string | string[]): Promise; delete(id: string): Promise; delete(ids: string | string[]): Promise; /** * Undelete records from the recycle bin immediately */ undelete(ids: string[]): Promise; } export default SoapApi;