MyApp

<back to all web services

UpdateJob

Talent
Requires Authentication
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


// @DataContract
class AuditBase implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=1)
        /** @var DateTime */
        public DateTime $createdDate=new DateTime(),

        // @DataMember(Order=2)
        // @Required()
        /** @var string */
        public string $createdBy='',

        // @DataMember(Order=3)
        /** @var DateTime */
        public DateTime $modifiedDate=new DateTime(),

        // @DataMember(Order=4)
        // @Required()
        /** @var string */
        public string $modifiedBy='',

        // @DataMember(Order=5)
        /** @var DateTime|null */
        public ?DateTime $deletedDate=null,

        // @DataMember(Order=6)
        /** @var string|null */
        public ?string $deletedBy=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['createdDate'])) $this->createdDate = JsonConverters::from('DateTime', $o['createdDate']);
        if (isset($o['createdBy'])) $this->createdBy = $o['createdBy'];
        if (isset($o['modifiedDate'])) $this->modifiedDate = JsonConverters::from('DateTime', $o['modifiedDate']);
        if (isset($o['modifiedBy'])) $this->modifiedBy = $o['modifiedBy'];
        if (isset($o['deletedDate'])) $this->deletedDate = JsonConverters::from('DateTime', $o['deletedDate']);
        if (isset($o['deletedBy'])) $this->deletedBy = $o['deletedBy'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->createdDate)) $o['createdDate'] = JsonConverters::to('DateTime', $this->createdDate);
        if (isset($this->createdBy)) $o['createdBy'] = $this->createdBy;
        if (isset($this->modifiedDate)) $o['modifiedDate'] = JsonConverters::to('DateTime', $this->modifiedDate);
        if (isset($this->modifiedBy)) $o['modifiedBy'] = $this->modifiedBy;
        if (isset($this->deletedDate)) $o['deletedDate'] = JsonConverters::to('DateTime', $this->deletedDate);
        if (isset($this->deletedBy)) $o['deletedBy'] = $this->deletedBy;
        return empty($o) ? new class(){} : $o;
    }
}

enum EmploymentType : string
{
    case FullTime = 'FullTime';
    case PartTime = 'PartTime';
    case Casual = 'Casual';
    case Contract = 'Contract';
}

class Contact implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        // @Computed()
        /** @var string */
        public string $displayName='',

        /** @var string */
        public string $profileUrl='',
        /** @var string */
        public string $firstName='',
        /** @var string */
        public string $lastName='',
        /** @var int|null */
        public ?int $salaryExpectation=null,
        /** @var string */
        public string $jobType='',
        /** @var int */
        public int $availabilityWeeks=0,
        /** @var EmploymentType|null */
        public ?EmploymentType $preferredWorkType=null,
        /** @var string */
        public string $preferredLocation='',
        /** @var string */
        public string $email='',
        /** @var string */
        public string $phone='',
        /** @var array<string>|null */
        public ?array $skills=null,
        /** @var string */
        public string $about='',
        /** @var array<JobApplication>|null */
        public ?array $applications=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['displayName'])) $this->displayName = $o['displayName'];
        if (isset($o['profileUrl'])) $this->profileUrl = $o['profileUrl'];
        if (isset($o['firstName'])) $this->firstName = $o['firstName'];
        if (isset($o['lastName'])) $this->lastName = $o['lastName'];
        if (isset($o['salaryExpectation'])) $this->salaryExpectation = $o['salaryExpectation'];
        if (isset($o['jobType'])) $this->jobType = $o['jobType'];
        if (isset($o['availabilityWeeks'])) $this->availabilityWeeks = $o['availabilityWeeks'];
        if (isset($o['preferredWorkType'])) $this->preferredWorkType = JsonConverters::from('EmploymentType', $o['preferredWorkType']);
        if (isset($o['preferredLocation'])) $this->preferredLocation = $o['preferredLocation'];
        if (isset($o['email'])) $this->email = $o['email'];
        if (isset($o['phone'])) $this->phone = $o['phone'];
        if (isset($o['skills'])) $this->skills = JsonConverters::fromArray('string', $o['skills']);
        if (isset($o['about'])) $this->about = $o['about'];
        if (isset($o['applications'])) $this->applications = JsonConverters::fromArray('JobApplication', $o['applications']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->displayName)) $o['displayName'] = $this->displayName;
        if (isset($this->profileUrl)) $o['profileUrl'] = $this->profileUrl;
        if (isset($this->firstName)) $o['firstName'] = $this->firstName;
        if (isset($this->lastName)) $o['lastName'] = $this->lastName;
        if (isset($this->salaryExpectation)) $o['salaryExpectation'] = $this->salaryExpectation;
        if (isset($this->jobType)) $o['jobType'] = $this->jobType;
        if (isset($this->availabilityWeeks)) $o['availabilityWeeks'] = $this->availabilityWeeks;
        if (isset($this->preferredWorkType)) $o['preferredWorkType'] = JsonConverters::to('EmploymentType', $this->preferredWorkType);
        if (isset($this->preferredLocation)) $o['preferredLocation'] = $this->preferredLocation;
        if (isset($this->email)) $o['email'] = $this->email;
        if (isset($this->phone)) $o['phone'] = $this->phone;
        if (isset($this->skills)) $o['skills'] = JsonConverters::toArray('string', $this->skills);
        if (isset($this->about)) $o['about'] = $this->about;
        if (isset($this->applications)) $o['applications'] = JsonConverters::toArray('JobApplication', $this->applications);
        return empty($o) ? new class(){} : $o;
    }
}

class AppUser implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $id='',
        /** @var string|null */
        public ?string $firstName=null,
        /** @var string|null */
        public ?string $lastName=null,
        /** @var string|null */
        public ?string $displayName=null,
        /** @var string|null */
        public ?string $profileUrl=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['firstName'])) $this->firstName = $o['firstName'];
        if (isset($o['lastName'])) $this->lastName = $o['lastName'];
        if (isset($o['displayName'])) $this->displayName = $o['displayName'];
        if (isset($o['profileUrl'])) $this->profileUrl = $o['profileUrl'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->firstName)) $o['firstName'] = $this->firstName;
        if (isset($this->lastName)) $o['lastName'] = $this->lastName;
        if (isset($this->displayName)) $o['displayName'] = $this->displayName;
        if (isset($this->profileUrl)) $o['profileUrl'] = $this->profileUrl;
        return empty($o) ? new class(){} : $o;
    }
}

class JobApplicationComment extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        // @References("typeof(MyApp.ServiceModel.AppUser)")
        /** @var string */
        public string $appUserId='',

        /** @var AppUser|null */
        public ?AppUser $appUser=null,
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        /** @var string */
        public string $comment=''
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['appUserId'])) $this->appUserId = $o['appUserId'];
        if (isset($o['appUser'])) $this->appUser = JsonConverters::from('AppUser', $o['appUser']);
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['comment'])) $this->comment = $o['comment'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->appUserId)) $o['appUserId'] = $this->appUserId;
        if (isset($this->appUser)) $o['appUser'] = JsonConverters::to('AppUser', $this->appUser);
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->comment)) $o['comment'] = $this->comment;
        return empty($o) ? new class(){} : $o;
    }
}

enum JobApplicationStatus : string
{
    case Applied = 'Applied';
    case PhoneScreening = 'PhoneScreening';
    case PhoneScreeningCompleted = 'PhoneScreeningCompleted';
    case Interview = 'Interview';
    case InterviewCompleted = 'InterviewCompleted';
    case Offer = 'Offer';
    case Disqualified = 'Disqualified';
}

class JobApplicationAttachment implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        /** @var string */
        public string $fileName='',
        /** @var string */
        public string $filePath='',
        /** @var string */
        public string $contentType='',
        /** @var int */
        public int $contentLength=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['fileName'])) $this->fileName = $o['fileName'];
        if (isset($o['filePath'])) $this->filePath = $o['filePath'];
        if (isset($o['contentType'])) $this->contentType = $o['contentType'];
        if (isset($o['contentLength'])) $this->contentLength = $o['contentLength'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->fileName)) $o['fileName'] = $this->fileName;
        if (isset($this->filePath)) $o['filePath'] = $this->filePath;
        if (isset($this->contentType)) $o['contentType'] = $this->contentType;
        if (isset($this->contentLength)) $o['contentLength'] = $this->contentLength;
        return empty($o) ? new class(){} : $o;
    }
}

class JobApplicationEvent extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        // @References("typeof(MyApp.ServiceModel.AppUser)")
        /** @var string */
        public string $appUserId='',

        /** @var AppUser|null */
        public ?AppUser $appUser=null,
        /** @var string */
        public string $description='',
        /** @var JobApplicationStatus|null */
        public ?JobApplicationStatus $status=null,
        /** @var DateTime */
        public DateTime $eventDate=new DateTime()
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['appUserId'])) $this->appUserId = $o['appUserId'];
        if (isset($o['appUser'])) $this->appUser = JsonConverters::from('AppUser', $o['appUser']);
        if (isset($o['description'])) $this->description = $o['description'];
        if (isset($o['status'])) $this->status = JsonConverters::from('JobApplicationStatus', $o['status']);
        if (isset($o['eventDate'])) $this->eventDate = JsonConverters::from('DateTime', $o['eventDate']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->appUserId)) $o['appUserId'] = $this->appUserId;
        if (isset($this->appUser)) $o['appUser'] = JsonConverters::to('AppUser', $this->appUser);
        if (isset($this->description)) $o['description'] = $this->description;
        if (isset($this->status)) $o['status'] = JsonConverters::to('JobApplicationStatus', $this->status);
        if (isset($this->eventDate)) $o['eventDate'] = JsonConverters::to('DateTime', $this->eventDate);
        return empty($o) ? new class(){} : $o;
    }
}

class PhoneScreen extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        // @References("typeof(MyApp.ServiceModel.AppUser)")
        /** @var string */
        public string $appUserId='',

        /** @var AppUser|null */
        public ?AppUser $appUser=null,
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        /** @var JobApplicationStatus|null */
        public ?JobApplicationStatus $applicationStatus=null,
        /** @var string */
        public string $notes=''
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['appUserId'])) $this->appUserId = $o['appUserId'];
        if (isset($o['appUser'])) $this->appUser = JsonConverters::from('AppUser', $o['appUser']);
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['applicationStatus'])) $this->applicationStatus = JsonConverters::from('JobApplicationStatus', $o['applicationStatus']);
        if (isset($o['notes'])) $this->notes = $o['notes'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->appUserId)) $o['appUserId'] = $this->appUserId;
        if (isset($this->appUser)) $o['appUser'] = JsonConverters::to('AppUser', $this->appUser);
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->applicationStatus)) $o['applicationStatus'] = JsonConverters::to('JobApplicationStatus', $this->applicationStatus);
        if (isset($this->notes)) $o['notes'] = $this->notes;
        return empty($o) ? new class(){} : $o;
    }
}

class Interview extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        /** @var DateTime */
        public DateTime $bookingTime=new DateTime(),
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        // @References("typeof(MyApp.ServiceModel.AppUser)")
        /** @var string */
        public string $appUserId='',

        /** @var AppUser|null */
        public ?AppUser $appUser=null,
        /** @var JobApplicationStatus|null */
        public ?JobApplicationStatus $applicationStatus=null,
        /** @var string */
        public string $notes=''
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['bookingTime'])) $this->bookingTime = JsonConverters::from('DateTime', $o['bookingTime']);
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['appUserId'])) $this->appUserId = $o['appUserId'];
        if (isset($o['appUser'])) $this->appUser = JsonConverters::from('AppUser', $o['appUser']);
        if (isset($o['applicationStatus'])) $this->applicationStatus = JsonConverters::from('JobApplicationStatus', $o['applicationStatus']);
        if (isset($o['notes'])) $this->notes = $o['notes'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->bookingTime)) $o['bookingTime'] = JsonConverters::to('DateTime', $this->bookingTime);
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->appUserId)) $o['appUserId'] = $this->appUserId;
        if (isset($this->appUser)) $o['appUser'] = JsonConverters::to('AppUser', $this->appUser);
        if (isset($this->applicationStatus)) $o['applicationStatus'] = JsonConverters::to('JobApplicationStatus', $this->applicationStatus);
        if (isset($this->notes)) $o['notes'] = $this->notes;
        return empty($o) ? new class(){} : $o;
    }
}

class JobOffer extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        /** @var int */
        public int $salaryOffer=0,
        /** @var string */
        public string $currency='',
        // @References("typeof(MyApp.ServiceModel.JobApplication)")
        /** @var int */
        public int $jobApplicationId=0,

        // @References("typeof(MyApp.ServiceModel.AppUser)")
        /** @var string */
        public string $appUserId='',

        /** @var AppUser|null */
        public ?AppUser $appUser=null,
        /** @var string */
        public string $notes=''
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['salaryOffer'])) $this->salaryOffer = $o['salaryOffer'];
        if (isset($o['currency'])) $this->currency = $o['currency'];
        if (isset($o['jobApplicationId'])) $this->jobApplicationId = $o['jobApplicationId'];
        if (isset($o['appUserId'])) $this->appUserId = $o['appUserId'];
        if (isset($o['appUser'])) $this->appUser = JsonConverters::from('AppUser', $o['appUser']);
        if (isset($o['notes'])) $this->notes = $o['notes'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->salaryOffer)) $o['salaryOffer'] = $this->salaryOffer;
        if (isset($this->currency)) $o['currency'] = $this->currency;
        if (isset($this->jobApplicationId)) $o['jobApplicationId'] = $this->jobApplicationId;
        if (isset($this->appUserId)) $o['appUserId'] = $this->appUserId;
        if (isset($this->appUser)) $o['appUser'] = JsonConverters::to('AppUser', $this->appUser);
        if (isset($this->notes)) $o['notes'] = $this->notes;
        return empty($o) ? new class(){} : $o;
    }
}

class JobApplication implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        // @References("typeof(MyApp.ServiceModel.Job)")
        /** @var int */
        public int $jobId=0,

        // @References("typeof(MyApp.ServiceModel.Contact)")
        /** @var int */
        public int $contactId=0,

        /** @var Job|null */
        public ?Job $position=null,
        /** @var Contact|null */
        public ?Contact $applicant=null,
        /** @var array<JobApplicationComment>|null */
        public ?array $comments=null,
        /** @var DateTime */
        public DateTime $appliedDate=new DateTime(),
        /** @var JobApplicationStatus|null */
        public ?JobApplicationStatus $applicationStatus=null,
        /** @var array<JobApplicationAttachment>|null */
        public ?array $attachments=null,
        /** @var array<JobApplicationEvent>|null */
        public ?array $events=null,
        /** @var PhoneScreen|null */
        public ?PhoneScreen $phoneScreen=null,
        /** @var Interview|null */
        public ?Interview $interview=null,
        /** @var JobOffer|null */
        public ?JobOffer $jobOffer=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['jobId'])) $this->jobId = $o['jobId'];
        if (isset($o['contactId'])) $this->contactId = $o['contactId'];
        if (isset($o['position'])) $this->position = JsonConverters::from('Job', $o['position']);
        if (isset($o['applicant'])) $this->applicant = JsonConverters::from('Contact', $o['applicant']);
        if (isset($o['comments'])) $this->comments = JsonConverters::fromArray('JobApplicationComment', $o['comments']);
        if (isset($o['appliedDate'])) $this->appliedDate = JsonConverters::from('DateTime', $o['appliedDate']);
        if (isset($o['applicationStatus'])) $this->applicationStatus = JsonConverters::from('JobApplicationStatus', $o['applicationStatus']);
        if (isset($o['attachments'])) $this->attachments = JsonConverters::fromArray('JobApplicationAttachment', $o['attachments']);
        if (isset($o['events'])) $this->events = JsonConverters::fromArray('JobApplicationEvent', $o['events']);
        if (isset($o['phoneScreen'])) $this->phoneScreen = JsonConverters::from('PhoneScreen', $o['phoneScreen']);
        if (isset($o['interview'])) $this->interview = JsonConverters::from('Interview', $o['interview']);
        if (isset($o['jobOffer'])) $this->jobOffer = JsonConverters::from('JobOffer', $o['jobOffer']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->jobId)) $o['jobId'] = $this->jobId;
        if (isset($this->contactId)) $o['contactId'] = $this->contactId;
        if (isset($this->position)) $o['position'] = JsonConverters::to('Job', $this->position);
        if (isset($this->applicant)) $o['applicant'] = JsonConverters::to('Contact', $this->applicant);
        if (isset($this->comments)) $o['comments'] = JsonConverters::toArray('JobApplicationComment', $this->comments);
        if (isset($this->appliedDate)) $o['appliedDate'] = JsonConverters::to('DateTime', $this->appliedDate);
        if (isset($this->applicationStatus)) $o['applicationStatus'] = JsonConverters::to('JobApplicationStatus', $this->applicationStatus);
        if (isset($this->attachments)) $o['attachments'] = JsonConverters::toArray('JobApplicationAttachment', $this->attachments);
        if (isset($this->events)) $o['events'] = JsonConverters::toArray('JobApplicationEvent', $this->events);
        if (isset($this->phoneScreen)) $o['phoneScreen'] = JsonConverters::to('PhoneScreen', $this->phoneScreen);
        if (isset($this->interview)) $o['interview'] = JsonConverters::to('Interview', $this->interview);
        if (isset($this->jobOffer)) $o['jobOffer'] = JsonConverters::to('JobOffer', $this->jobOffer);
        return empty($o) ? new class(){} : $o;
    }
}

class Job extends AuditBase implements JsonSerializable
{
    /**
     * @param DateTime $createdDate
     * @param string $createdBy
     * @param DateTime $modifiedDate
     * @param string $modifiedBy
     * @param DateTime|null $deletedDate
     * @param string|null $deletedBy
     */
    public function __construct(
        DateTime $createdDate=new DateTime(),
        string $createdBy='',
        DateTime $modifiedDate=new DateTime(),
        string $modifiedBy='',
        ?DateTime $deletedDate=null,
        ?string $deletedBy=null,
        /** @var int */
        public int $id=0,
        /** @var string */
        public string $title='',
        /** @var EmploymentType|null */
        public ?EmploymentType $employmentType=null,
        /** @var string */
        public string $company='',
        /** @var string */
        public string $location='',
        /** @var int */
        public int $salaryRangeLower=0,
        /** @var int */
        public int $salaryRangeUpper=0,
        /** @var string */
        public string $description='',
        /** @var array<JobApplication>|null */
        public ?array $applications=null,
        /** @var DateTime */
        public DateTime $closing=new DateTime()
    ) {
        parent::__construct($createdDate,$createdBy,$modifiedDate,$modifiedBy,$deletedDate,$deletedBy);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['title'])) $this->title = $o['title'];
        if (isset($o['employmentType'])) $this->employmentType = JsonConverters::from('EmploymentType', $o['employmentType']);
        if (isset($o['company'])) $this->company = $o['company'];
        if (isset($o['location'])) $this->location = $o['location'];
        if (isset($o['salaryRangeLower'])) $this->salaryRangeLower = $o['salaryRangeLower'];
        if (isset($o['salaryRangeUpper'])) $this->salaryRangeUpper = $o['salaryRangeUpper'];
        if (isset($o['description'])) $this->description = $o['description'];
        if (isset($o['applications'])) $this->applications = JsonConverters::fromArray('JobApplication', $o['applications']);
        if (isset($o['closing'])) $this->closing = JsonConverters::from('DateTime', $o['closing']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->title)) $o['title'] = $this->title;
        if (isset($this->employmentType)) $o['employmentType'] = JsonConverters::to('EmploymentType', $this->employmentType);
        if (isset($this->company)) $o['company'] = $this->company;
        if (isset($this->location)) $o['location'] = $this->location;
        if (isset($this->salaryRangeLower)) $o['salaryRangeLower'] = $this->salaryRangeLower;
        if (isset($this->salaryRangeUpper)) $o['salaryRangeUpper'] = $this->salaryRangeUpper;
        if (isset($this->description)) $o['description'] = $this->description;
        if (isset($this->applications)) $o['applications'] = JsonConverters::toArray('JobApplication', $this->applications);
        if (isset($this->closing)) $o['closing'] = JsonConverters::to('DateTime', $this->closing);
        return empty($o) ? new class(){} : $o;
    }
}

// @ValidateRequest(Validator="IsAuthenticated")
/**
 * @template IPatchDb of Job
 */
class UpdateJob implements IPatchDb, JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        /** @var string|null */
        public ?string $title=null,
        /** @var int|null */
        public ?int $salaryRangeLower=null,
        /** @var int|null */
        public ?int $salaryRangeUpper=null,
        /** @var string|null */
        public ?string $description=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['title'])) $this->title = $o['title'];
        if (isset($o['salaryRangeLower'])) $this->salaryRangeLower = $o['salaryRangeLower'];
        if (isset($o['salaryRangeUpper'])) $this->salaryRangeUpper = $o['salaryRangeUpper'];
        if (isset($o['description'])) $this->description = $o['description'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->title)) $o['title'] = $this->title;
        if (isset($this->salaryRangeLower)) $o['salaryRangeLower'] = $this->salaryRangeLower;
        if (isset($this->salaryRangeUpper)) $o['salaryRangeUpper'] = $this->salaryRangeUpper;
        if (isset($this->description)) $o['description'] = $this->description;
        return empty($o) ? new class(){} : $o;
    }
}

PHP UpdateJob DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/UpdateJob HTTP/1.1 
Host: blazor-gallery.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	title: String,
	salaryRangeLower: 0,
	salaryRangeUpper: 0,
	description: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	title: String,
	employmentType: FullTime,
	company: String,
	location: String,
	salaryRangeLower: 0,
	salaryRangeUpper: 0,
	description: String,
	applications: 
	[
		{
			id: 0,
			jobId: 0,
			contactId: 0,
			position: 
			{
				id: 0,
				title: String,
				employmentType: FullTime,
				company: String,
				location: String,
				salaryRangeLower: 0,
				salaryRangeUpper: 0,
				description: String,
				applications: 
				[
					{
						id: 0,
						jobId: 0,
						contactId: 0,
						position: 
						{
							id: 0,
							title: String,
							employmentType: FullTime,
							company: String,
							location: String,
							salaryRangeLower: 0,
							salaryRangeUpper: 0,
							description: String,
							applications: 
							[
								{
									id: 0,
									jobId: 0,
									contactId: 0,
									position: 
									{
										id: 0,
										title: String,
										employmentType: FullTime,
										company: String,
										location: String,
										salaryRangeLower: 0,
										salaryRangeUpper: 0,
										description: String,
										closing: 0001-01-01,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									applicant: 
									{
										id: 0,
										displayName: String String,
										profileUrl: String,
										firstName: String,
										lastName: String,
										salaryExpectation: 0,
										jobType: String,
										availabilityWeeks: 0,
										preferredWorkType: FullTime,
										preferredLocation: String,
										email: String,
										phone: String,
										skills: 
										[
											String
										],
										about: String
									},
									comments: 
									[
										{
											id: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											jobApplicationId: 0,
											comment: String,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									appliedDate: 0001-01-01,
									applicationStatus: Applied,
									attachments: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											fileName: String,
											filePath: String,
											contentType: String,
											contentLength: 0
										}
									],
									events: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											description: String,
											status: Applied,
											eventDate: 0001-01-01,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									phoneScreen: 
									{
										id: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										jobApplicationId: 0,
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									interview: 
									{
										id: 0,
										bookingTime: 0001-01-01,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									jobOffer: 
									{
										id: 0,
										salaryOffer: 0,
										currency: String,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									}
								}
							],
							closing: 0001-01-01,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						applicant: 
						{
							id: 0,
							displayName: String String,
							profileUrl: String,
							firstName: String,
							lastName: String,
							salaryExpectation: 0,
							jobType: String,
							availabilityWeeks: 0,
							preferredWorkType: FullTime,
							preferredLocation: String,
							email: String,
							phone: String,
							skills: 
							[
								String
							],
							about: String,
							applications: 
							[
								{
									id: 0,
									jobId: 0,
									contactId: 0,
									position: 
									{
										id: 0,
										title: String,
										employmentType: FullTime,
										company: String,
										location: String,
										salaryRangeLower: 0,
										salaryRangeUpper: 0,
										description: String,
										closing: 0001-01-01,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									applicant: 
									{
										id: 0,
										displayName: String String,
										profileUrl: String,
										firstName: String,
										lastName: String,
										salaryExpectation: 0,
										jobType: String,
										availabilityWeeks: 0,
										preferredWorkType: FullTime,
										preferredLocation: String,
										email: String,
										phone: String,
										skills: 
										[
											String
										],
										about: String
									},
									comments: 
									[
										{
											id: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											jobApplicationId: 0,
											comment: String,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									appliedDate: 0001-01-01,
									applicationStatus: Applied,
									attachments: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											fileName: String,
											filePath: String,
											contentType: String,
											contentLength: 0
										}
									],
									events: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											description: String,
											status: Applied,
											eventDate: 0001-01-01,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									phoneScreen: 
									{
										id: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										jobApplicationId: 0,
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									interview: 
									{
										id: 0,
										bookingTime: 0001-01-01,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									jobOffer: 
									{
										id: 0,
										salaryOffer: 0,
										currency: String,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									}
								}
							]
						},
						comments: 
						[
							{
								id: 0,
								appUserId: String,
								appUser: 
								{
									id: String,
									firstName: String,
									lastName: String,
									displayName: String,
									profileUrl: String
								},
								jobApplicationId: 0,
								comment: String,
								createdDate: 0001-01-01,
								createdBy: String,
								modifiedDate: 0001-01-01,
								modifiedBy: String,
								deletedDate: 0001-01-01,
								deletedBy: String
							}
						],
						appliedDate: 0001-01-01,
						applicationStatus: Applied,
						attachments: 
						[
							{
								id: 0,
								jobApplicationId: 0,
								fileName: String,
								filePath: String,
								contentType: String,
								contentLength: 0
							}
						],
						events: 
						[
							{
								id: 0,
								jobApplicationId: 0,
								appUserId: String,
								appUser: 
								{
									id: String,
									firstName: String,
									lastName: String,
									displayName: String,
									profileUrl: String
								},
								description: String,
								status: Applied,
								eventDate: 0001-01-01,
								createdDate: 0001-01-01,
								createdBy: String,
								modifiedDate: 0001-01-01,
								modifiedBy: String,
								deletedDate: 0001-01-01,
								deletedBy: String
							}
						],
						phoneScreen: 
						{
							id: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							jobApplicationId: 0,
							applicationStatus: Applied,
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						interview: 
						{
							id: 0,
							bookingTime: 0001-01-01,
							jobApplicationId: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							applicationStatus: Applied,
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						jobOffer: 
						{
							id: 0,
							salaryOffer: 0,
							currency: String,
							jobApplicationId: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						}
					}
				],
				closing: 0001-01-01,
				createdDate: 0001-01-01,
				createdBy: String,
				modifiedDate: 0001-01-01,
				modifiedBy: String,
				deletedDate: 0001-01-01,
				deletedBy: String
			},
			applicant: 
			{
				id: 0,
				displayName: String String,
				profileUrl: String,
				firstName: String,
				lastName: String,
				salaryExpectation: 0,
				jobType: String,
				availabilityWeeks: 0,
				preferredWorkType: FullTime,
				preferredLocation: String,
				email: String,
				phone: String,
				skills: 
				[
					String
				],
				about: String,
				applications: 
				[
					{
						id: 0,
						jobId: 0,
						contactId: 0,
						position: 
						{
							id: 0,
							title: String,
							employmentType: FullTime,
							company: String,
							location: String,
							salaryRangeLower: 0,
							salaryRangeUpper: 0,
							description: String,
							applications: 
							[
								{
									id: 0,
									jobId: 0,
									contactId: 0,
									position: 
									{
										id: 0,
										title: String,
										employmentType: FullTime,
										company: String,
										location: String,
										salaryRangeLower: 0,
										salaryRangeUpper: 0,
										description: String,
										closing: 0001-01-01,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									applicant: 
									{
										id: 0,
										displayName: String String,
										profileUrl: String,
										firstName: String,
										lastName: String,
										salaryExpectation: 0,
										jobType: String,
										availabilityWeeks: 0,
										preferredWorkType: FullTime,
										preferredLocation: String,
										email: String,
										phone: String,
										skills: 
										[
											String
										],
										about: String
									},
									comments: 
									[
										{
											id: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											jobApplicationId: 0,
											comment: String,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									appliedDate: 0001-01-01,
									applicationStatus: Applied,
									attachments: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											fileName: String,
											filePath: String,
											contentType: String,
											contentLength: 0
										}
									],
									events: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											description: String,
											status: Applied,
											eventDate: 0001-01-01,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									phoneScreen: 
									{
										id: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										jobApplicationId: 0,
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									interview: 
									{
										id: 0,
										bookingTime: 0001-01-01,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									jobOffer: 
									{
										id: 0,
										salaryOffer: 0,
										currency: String,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									}
								}
							],
							closing: 0001-01-01,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						applicant: 
						{
							id: 0,
							displayName: String String,
							profileUrl: String,
							firstName: String,
							lastName: String,
							salaryExpectation: 0,
							jobType: String,
							availabilityWeeks: 0,
							preferredWorkType: FullTime,
							preferredLocation: String,
							email: String,
							phone: String,
							skills: 
							[
								String
							],
							about: String,
							applications: 
							[
								{
									id: 0,
									jobId: 0,
									contactId: 0,
									position: 
									{
										id: 0,
										title: String,
										employmentType: FullTime,
										company: String,
										location: String,
										salaryRangeLower: 0,
										salaryRangeUpper: 0,
										description: String,
										closing: 0001-01-01,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									applicant: 
									{
										id: 0,
										displayName: String String,
										profileUrl: String,
										firstName: String,
										lastName: String,
										salaryExpectation: 0,
										jobType: String,
										availabilityWeeks: 0,
										preferredWorkType: FullTime,
										preferredLocation: String,
										email: String,
										phone: String,
										skills: 
										[
											String
										],
										about: String
									},
									comments: 
									[
										{
											id: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											jobApplicationId: 0,
											comment: String,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									appliedDate: 0001-01-01,
									applicationStatus: Applied,
									attachments: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											fileName: String,
											filePath: String,
											contentType: String,
											contentLength: 0
										}
									],
									events: 
									[
										{
											id: 0,
											jobApplicationId: 0,
											appUserId: String,
											appUser: 
											{
												id: String,
												firstName: String,
												lastName: String,
												displayName: String,
												profileUrl: String
											},
											description: String,
											status: Applied,
											eventDate: 0001-01-01,
											createdDate: 0001-01-01,
											createdBy: String,
											modifiedDate: 0001-01-01,
											modifiedBy: String,
											deletedDate: 0001-01-01,
											deletedBy: String
										}
									],
									phoneScreen: 
									{
										id: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										jobApplicationId: 0,
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									interview: 
									{
										id: 0,
										bookingTime: 0001-01-01,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										applicationStatus: Applied,
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									},
									jobOffer: 
									{
										id: 0,
										salaryOffer: 0,
										currency: String,
										jobApplicationId: 0,
										appUserId: String,
										appUser: 
										{
											id: String,
											firstName: String,
											lastName: String,
											displayName: String,
											profileUrl: String
										},
										notes: String,
										createdDate: 0001-01-01,
										createdBy: String,
										modifiedDate: 0001-01-01,
										modifiedBy: String,
										deletedDate: 0001-01-01,
										deletedBy: String
									}
								}
							]
						},
						comments: 
						[
							{
								id: 0,
								appUserId: String,
								appUser: 
								{
									id: String,
									firstName: String,
									lastName: String,
									displayName: String,
									profileUrl: String
								},
								jobApplicationId: 0,
								comment: String,
								createdDate: 0001-01-01,
								createdBy: String,
								modifiedDate: 0001-01-01,
								modifiedBy: String,
								deletedDate: 0001-01-01,
								deletedBy: String
							}
						],
						appliedDate: 0001-01-01,
						applicationStatus: Applied,
						attachments: 
						[
							{
								id: 0,
								jobApplicationId: 0,
								fileName: String,
								filePath: String,
								contentType: String,
								contentLength: 0
							}
						],
						events: 
						[
							{
								id: 0,
								jobApplicationId: 0,
								appUserId: String,
								appUser: 
								{
									id: String,
									firstName: String,
									lastName: String,
									displayName: String,
									profileUrl: String
								},
								description: String,
								status: Applied,
								eventDate: 0001-01-01,
								createdDate: 0001-01-01,
								createdBy: String,
								modifiedDate: 0001-01-01,
								modifiedBy: String,
								deletedDate: 0001-01-01,
								deletedBy: String
							}
						],
						phoneScreen: 
						{
							id: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							jobApplicationId: 0,
							applicationStatus: Applied,
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						interview: 
						{
							id: 0,
							bookingTime: 0001-01-01,
							jobApplicationId: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							applicationStatus: Applied,
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						},
						jobOffer: 
						{
							id: 0,
							salaryOffer: 0,
							currency: String,
							jobApplicationId: 0,
							appUserId: String,
							appUser: 
							{
								id: String,
								firstName: String,
								lastName: String,
								displayName: String,
								profileUrl: String
							},
							notes: String,
							createdDate: 0001-01-01,
							createdBy: String,
							modifiedDate: 0001-01-01,
							modifiedBy: String,
							deletedDate: 0001-01-01,
							deletedBy: String
						}
					}
				]
			},
			comments: 
			[
				{
					id: 0,
					appUserId: String,
					appUser: 
					{
						id: String,
						firstName: String,
						lastName: String,
						displayName: String,
						profileUrl: String
					},
					jobApplicationId: 0,
					comment: String,
					createdDate: 0001-01-01,
					createdBy: String,
					modifiedDate: 0001-01-01,
					modifiedBy: String,
					deletedDate: 0001-01-01,
					deletedBy: String
				}
			],
			appliedDate: 0001-01-01,
			applicationStatus: Applied,
			attachments: 
			[
				{
					id: 0,
					jobApplicationId: 0,
					fileName: String,
					filePath: String,
					contentType: String,
					contentLength: 0
				}
			],
			events: 
			[
				{
					id: 0,
					jobApplicationId: 0,
					appUserId: String,
					appUser: 
					{
						id: String,
						firstName: String,
						lastName: String,
						displayName: String,
						profileUrl: String
					},
					description: String,
					status: Applied,
					eventDate: 0001-01-01,
					createdDate: 0001-01-01,
					createdBy: String,
					modifiedDate: 0001-01-01,
					modifiedBy: String,
					deletedDate: 0001-01-01,
					deletedBy: String
				}
			],
			phoneScreen: 
			{
				id: 0,
				appUserId: String,
				appUser: 
				{
					id: String,
					firstName: String,
					lastName: String,
					displayName: String,
					profileUrl: String
				},
				jobApplicationId: 0,
				applicationStatus: Applied,
				notes: String,
				createdDate: 0001-01-01,
				createdBy: String,
				modifiedDate: 0001-01-01,
				modifiedBy: String,
				deletedDate: 0001-01-01,
				deletedBy: String
			},
			interview: 
			{
				id: 0,
				bookingTime: 0001-01-01,
				jobApplicationId: 0,
				appUserId: String,
				appUser: 
				{
					id: String,
					firstName: String,
					lastName: String,
					displayName: String,
					profileUrl: String
				},
				applicationStatus: Applied,
				notes: String,
				createdDate: 0001-01-01,
				createdBy: String,
				modifiedDate: 0001-01-01,
				modifiedBy: String,
				deletedDate: 0001-01-01,
				deletedBy: String
			},
			jobOffer: 
			{
				id: 0,
				salaryOffer: 0,
				currency: String,
				jobApplicationId: 0,
				appUserId: String,
				appUser: 
				{
					id: String,
					firstName: String,
					lastName: String,
					displayName: String,
					profileUrl: String
				},
				notes: String,
				createdDate: 0001-01-01,
				createdBy: String,
				modifiedDate: 0001-01-01,
				modifiedBy: String,
				deletedDate: 0001-01-01,
				deletedBy: String
			}
		}
	],
	closing: 0001-01-01,
	createdDate: 0001-01-01,
	createdBy: String,
	modifiedDate: 0001-01-01,
	modifiedBy: String,
	deletedDate: 0001-01-01,
	deletedBy: String
}