ministry-platform-provider
Version:
TypeScript client library for Ministry Platform API integration
17 lines (16 loc) • 796 B
TypeScript
import { MinistryPlatformClient } from "../core/ministryPlatformClient.js";
import { CommunicationInfo, Communication, MessageInfo } from "../Interfaces/mpProviderInterfaces.js";
export declare class CommunicationService {
private client;
constructor(client: MinistryPlatformClient);
/**
* Creates a new communication, immediately renders it and schedules for delivery.
*/
createCommunication(communication: CommunicationInfo, attachments?: File[]): Promise<Communication>;
/**
* Creates email messages from the provided information and immediately schedules them for delivery.
*/
sendMessage(message: MessageInfo, attachments?: File[]): Promise<Communication>;
private createCommunicationWithAttachments;
private sendMessageWithAttachments;
}