platformclient/ts/email/classes.letterconnector.ts
2024-02-17 20:24:28 +01:00

20 lines
687 B
TypeScript

import * as plugins from '../plugins.js';
import type { SzPlatformClient } from '../classes.platformclient.js';
export class SzLetterConnector {
public platformClientRef: SzPlatformClient;
constructor(platformClientRefArg: SzPlatformClient) {
this.platformClientRef = platformClientRefArg;
}
public async sendLetter(
optionsArg: plugins.servezoneInterfaces.platformservice.letter.IRequest_SendLetter['request']
) {
const typedRequest =
this.platformClientRef.typedsocket.createTypedRequest<plugins.servezoneInterfaces.platformservice.letter.IRequest_SendLetter>(
'sendLetter'
);
const response = await typedRequest.fire(optionsArg);
}
}