1 import { HttpStatusCode } from '@shared/models'
2 import { ContactForm } from '../../models/server'
3 import { AbstractCommand, OverrideCommandOptions } from '../shared'
5 export class ContactFormCommand extends AbstractCommand {
7 send (options: OverrideCommandOptions & {
13 const path = '/api/v1/server/contact'
15 const body: ContactForm = {
16 fromEmail: options.fromEmail,
17 fromName: options.fromName,
18 subject: options.subject,
22 return this.postBodyRequest({
28 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204