interfaces/ts/platformservice/mta.ts

40 lines
910 B
TypeScript
Raw Normal View History

2024-02-14 13:04:47 +00:00
import * as plugins from '../plugins.js';
export type TTemplates = 'default' | 'linkaction' | 'notification';
2024-02-15 17:59:23 +00:00
export interface IRequest_SendEmail extends plugins.typedrequestInterfaces.implementsTR<
2024-02-14 13:04:47 +00:00
plugins.typedrequestInterfaces.ITypedRequest,
2024-02-15 17:59:23 +00:00
IRequest_SendEmail
2024-02-14 13:04:47 +00:00
> {
method: 'sendEmail';
request: {
title: string;
from: string;
to: string;
body: string;
attachments?: Array<{
name: string;
binaryAttachmentString: string;
}>
};
response: {
/**
* the response id allows for handling of responses to that email
*/
responseId: string;
};
}
export interface IRequestRegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequestRegisterRecipient
> {
method: 'registerRecepient';
request: {
emailAddress: string;
};
response: {
status: 'ok' | 'not ok';
};
}