platformclient/ts/email/classes.letterconnector.ts

20 lines
687 B
TypeScript
Raw Normal View History

2024-02-17 19:24:28 +00:00
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);
}
}