diff --git a/src/shared/entities/job-list-result.entity.ts b/src/shared/entities/job-list-result.entity.ts index d8961fcc..ba69e157 100644 --- a/src/shared/entities/job-list-result.entity.ts +++ b/src/shared/entities/job-list-result.entity.ts @@ -31,6 +31,8 @@ export class JobListResultEntity { offersTokenAllocation: jobpost?.offersTokenAllocation ?? null, url: notStringOrNull(jobpost?.url), title: notStringOrNull(jobpost?.title), + summary: notStringOrNull(jobpost?.summary), + description: notStringOrNull(jobpost?.description), organization: { ...organization, docs: notStringOrNull(organization?.docs), diff --git a/src/shared/interfaces/structured-jobpost.interface.ts b/src/shared/interfaces/structured-jobpost.interface.ts index 7a6d0ce1..ac10bc5c 100644 --- a/src/shared/interfaces/structured-jobpost.interface.ts +++ b/src/shared/interfaces/structured-jobpost.interface.ts @@ -17,6 +17,7 @@ export class StructuredJobpost { salary: t.union([t.number, t.null]), payRate: t.union([t.number, t.null]), summary: t.union([t.string, t.null]), + description: t.union([t.string, t.null]), culture: t.union([t.string, t.null]), location: t.union([t.string, t.null]), seniority: t.union([t.string, t.null]), @@ -41,6 +42,9 @@ export class StructuredJobpost { @ApiPropertyOptional() summary: string | null; + @ApiPropertyOptional() + description: string | null; + @ApiPropertyOptional() payRate: number | null; @@ -104,6 +108,7 @@ export class StructuredJobpost { culture, location, summary, + description, benefits, shortUUID, seniority, @@ -130,6 +135,7 @@ export class StructuredJobpost { this.benefits = benefits; this.shortUUID = shortUUID; this.seniority = seniority; + this.description = description; this.requirements = requirements; this.paysInCrypto = paysInCrypto; this.minimumSalary = minimumSalary; diff --git a/src/shared/models/structured-jobpost.model.ts b/src/shared/models/structured-jobpost.model.ts index 2643498e..c4d78646 100644 --- a/src/shared/models/structured-jobpost.model.ts +++ b/src/shared/models/structured-jobpost.model.ts @@ -116,6 +116,11 @@ export const StructuredJobposts = ( allowEmpty: true, required: false, }, + description: { + type: "string", + allowEmpty: true, + required: false, + }, benefits: { type: "array", allowEmpty: true,