<?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 QueryBase implements JsonSerializable
{
public function __construct(
// @DataMember(Order=1)
/** @var int|null */
public ?int $skip=null,
// @DataMember(Order=2)
/** @var int|null */
public ?int $take=null,
// @DataMember(Order=3)
/** @var string|null */
public ?string $orderBy=null,
// @DataMember(Order=4)
/** @var string|null */
public ?string $orderByDesc=null,
// @DataMember(Order=5)
/** @var string|null */
public ?string $include=null,
// @DataMember(Order=6)
/** @var string|null */
public ?string $fields=null,
// @DataMember(Order=7)
/** @var array<string,string>|null */
public ?array $meta=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['skip'])) $this->skip = $o['skip'];
if (isset($o['take'])) $this->take = $o['take'];
if (isset($o['orderBy'])) $this->orderBy = $o['orderBy'];
if (isset($o['orderByDesc'])) $this->orderByDesc = $o['orderByDesc'];
if (isset($o['include'])) $this->include = $o['include'];
if (isset($o['fields'])) $this->fields = $o['fields'];
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->skip)) $o['skip'] = $this->skip;
if (isset($this->take)) $o['take'] = $this->take;
if (isset($this->orderBy)) $o['orderBy'] = $this->orderBy;
if (isset($this->orderByDesc)) $o['orderByDesc'] = $this->orderByDesc;
if (isset($this->include)) $o['include'] = $this->include;
if (isset($this->fields)) $o['fields'] = $this->fields;
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
return empty($o) ? new class(){} : $o;
}
}
/**
* @template T
*/
class QueryDb extends QueryBase implements JsonSerializable
{
public array $genericArgs = [];
public static function create(array $genericArgs=[]): QueryDb {
$to = new QueryDb();
$to->genericArgs = $genericArgs;
return $to;
}
/**
* @param int|null $skip
* @param int|null $take
* @param string|null $orderBy
* @param string|null $orderByDesc
* @param string|null $include
* @param string|null $fields
* @param array<string,string>|null $meta
*/
public function __construct(
mixed $skip=null,
mixed $take=null,
mixed $orderBy=null,
mixed $orderByDesc=null,
mixed $include=null,
mixed $fields=null,
mixed $meta=null
) {
parent::__construct($skip,$take,$orderBy,$orderByDesc,$include,$fields,$meta);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
return empty($o) ? new class(){} : $o;
}
}
// @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 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;
}
}
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;
}
}
/**
* @template QueryDb of JobApplication
*/
class QueryJobApplications extends QueryDb implements JsonSerializable
{
/**
* @param int|null $skip
* @param int|null $take
* @param string|null $orderBy
* @param string|null $orderByDesc
* @param string|null $include
* @param string|null $fields
* @param array<string,string>|null $meta
*/
public function __construct(
?int $skip=null,
?int $take=null,
?string $orderBy=null,
?string $orderByDesc=null,
?string $include=null,
?string $fields=null,
?array $meta=null,
/** @var int|null */
public ?int $id=null,
/** @var array<int>|null */
public ?array $ids=null,
/** @var int|null */
public ?int $jobId=null
) {
parent::__construct($skip,$take,$orderBy,$orderByDesc,$include,$fields,$meta);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['ids'])) $this->ids = JsonConverters::fromArray('int', $o['ids']);
if (isset($o['jobId'])) $this->jobId = $o['jobId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->ids)) $o['ids'] = JsonConverters::toArray('int', $this->ids);
if (isset($this->jobId)) $o['jobId'] = $this->jobId;
return empty($o) ? new class(){} : $o;
}
}
class Todo implements JsonSerializable
{
public function __construct(
/** @var int */
public int $id=0,
/** @var string */
public string $text='',
/** @var bool|null */
public ?bool $isFinished=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['text'])) $this->text = $o['text'];
if (isset($o['isFinished'])) $this->isFinished = $o['isFinished'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->text)) $o['text'] = $this->text;
if (isset($this->isFinished)) $o['isFinished'] = $this->isFinished;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
/**
* @template T
*/
class QueryResponse implements JsonSerializable
{
public array $genericArgs = [];
public static function create(array $genericArgs=[]): QueryResponse {
$to = new QueryResponse();
$to->genericArgs = $genericArgs;
return $to;
}
public function __construct(
// @DataMember(Order=1)
/** @var int */
public mixed $offset=0,
// @DataMember(Order=2)
/** @var int */
public mixed $total=0,
// @DataMember(Order=3)
/** @var array<Todo>|null */
public mixed $results=null,
// @DataMember(Order=4)
/** @var array<string,string>|null */
public mixed $meta=null,
// @DataMember(Order=5)
/** @var ResponseStatus|null */
public mixed $responseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['offset'])) $this->offset = $o['offset'];
if (isset($o['total'])) $this->total = $o['total'];
if (isset($o['results'])) $this->results = JsonConverters::fromArray('Todo', $o['results']);
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->offset)) $o['offset'] = $this->offset;
if (isset($this->total)) $o['total'] = $this->total;
if (isset($this->results)) $o['results'] = JsonConverters::toArray('Todo', $this->results);
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/QueryJobApplications HTTP/1.1
Host: blazor-gallery.servicestack.net
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":0,"ids":[0],"jobId":0,"skip":0,"take":0,"orderBy":"String","orderByDesc":"String","include":"String","fields":"String","meta":{"String":"String"}}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"offset":0,"total":0,"results":[{"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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}}],"closing":"0001-01-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}}],"closing":"0001-01-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}}],"closing":"0001-01-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}],"appliedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"},"interview":{"id":0,"bookingTime":"0001-01-01T00:00:00","jobApplicationId":0,"appUserId":"String","appUser":{"id":"String","firstName":"String","lastName":"String","displayName":"String","profileUrl":"String"},"applicationStatus":"Applied","notes":"String","createdDate":"0001-01-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","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-01T00:00:00","createdBy":"String","modifiedDate":"0001-01-01T00:00:00","modifiedBy":"String","deletedDate":"0001-01-01T00:00:00","deletedBy":"String"}}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}