25 lines
871 B
TypeScript
25 lines
871 B
TypeScript
import type { SzPlatformClient } from '../classes.platformclient.js';
|
|
import * as plugins from '../plugins.js';
|
|
|
|
export class SzEmailConnector {
|
|
public platformClientRef: SzPlatformClient;
|
|
|
|
constructor(platformClientRefArg: SzPlatformClient) {
|
|
this.platformClientRef = platformClientRefArg;
|
|
}
|
|
|
|
public async sendEmail(
|
|
optionsArg: plugins.servezoneInterfaces.platformservice.mta.IRequest_SendEmail['request']
|
|
) {
|
|
const typedRequest =
|
|
this.platformClientRef.typedsocket.createTypedRequest<plugins.servezoneInterfaces.platformservice.mta.IRequest_SendEmail>(
|
|
'sendEmail'
|
|
);
|
|
const response = await typedRequest.fire(optionsArg);
|
|
}
|
|
|
|
public async sendNotification(optionsArg: { toArg: string; subject: string; text: string }) {}
|
|
|
|
public async sendActionLink(optionsArg: { toArg: string; subject: string; text: string }) {}
|
|
}
|