import { HttpStatusCode } from '@shared/models' ; import { ContactForm } from '../../models/server' ; import { AbstractCommand , OverrideCommandOptions } from '../shared' ; export class ContactFormCommand extends AbstractCommand { send ( options ) { const path = '/api/v1/server/contact' ; const body = { fromEmail : options . fromEmail , fromName : options . fromName , subject : options . subject , body : options . body } ; return this . postBodyRequest ( { ... options , path , fields : body , implicitToken : false , defaultExpectedStatus : HttpStatusCode . NO_CONTENT_204 } ) ; } }