-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…candidate Feat/#1039 edit experience for candidate
- Loading branch information
Showing
33 changed files
with
633 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
apps/api/src/app/candidate-experience/candidate-experience.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Controller } from '@nestjs/common'; | ||
import { ApiTags } from '@nestjs/swagger'; | ||
import { CrudController } from '../core/crud/crud.controller'; | ||
import { CandidateExperienceService } from './candidate-experience.service'; | ||
import { CandidateExperience } from './candidate-experience.entity'; | ||
|
||
@ApiTags('candidate_experience') | ||
@Controller() | ||
export class CandidateExperienceController extends CrudController< | ||
CandidateExperience | ||
> { | ||
constructor( | ||
private readonly candidateExperienceService: CandidateExperienceService | ||
) { | ||
super(candidateExperienceService); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
apps/api/src/app/candidate-experience/candidate-experience.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Column, Entity } from 'typeorm'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Base } from '../core/entities/base'; | ||
import { IsString, IsNotEmpty } from 'class-validator'; | ||
import { IExperience } from '@gauzy/models'; | ||
|
||
@Entity('candidate_experience') | ||
export class CandidateExperience extends Base implements IExperience { | ||
@ApiProperty({ type: String }) | ||
@Column() | ||
occupation: string; | ||
|
||
@ApiProperty({ type: String }) | ||
@Column() | ||
organization: string; | ||
|
||
@ApiProperty({ type: String }) | ||
@Column() | ||
duration: string; | ||
|
||
@ApiProperty({ type: String }) | ||
@Column({ nullable: true }) | ||
description?: string; | ||
|
||
@ApiProperty({ type: String }) | ||
@IsString() | ||
@IsNotEmpty() | ||
@Column() | ||
candidateId?: string; | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/api/src/app/candidate-experience/candidate-experience.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { CandidateExperience } from './candidate-experience.entity'; | ||
import { CandidateExperienceService } from './candidate-experience.service'; | ||
import { CandidateExperienceController } from './candidate-experience.controller'; | ||
|
||
@Module({ | ||
imports: [TypeOrmModule.forFeature([CandidateExperience])], | ||
providers: [CandidateExperienceService], | ||
controllers: [CandidateExperienceController], | ||
exports: [CandidateExperienceService] | ||
}) | ||
export class CandidateExperienceModule {} |
Empty file.
19 changes: 19 additions & 0 deletions
19
apps/api/src/app/candidate-experience/candidate-experience.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { InjectRepository } from '@nestjs/typeorm'; | ||
import { Repository } from 'typeorm'; | ||
import { CrudService } from '../core/crud/crud.service'; | ||
import { CandidateExperience } from './candidate-experience.entity'; | ||
|
||
@Injectable() | ||
export class CandidateExperienceService extends CrudService< | ||
CandidateExperience | ||
> { | ||
constructor( | ||
@InjectRepository(CandidateExperience) | ||
private readonly candidateExperienceRepository: Repository< | ||
CandidateExperience | ||
> | ||
) { | ||
super(candidateExperienceRepository); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/api/src/app/candidate-skill/candidate-skill.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Controller } from '@nestjs/common'; | ||
import { ApiTags } from '@nestjs/swagger'; | ||
import { CrudController } from '../core/crud/crud.controller'; | ||
import { CandidateSkill } from './candidate-skill.entity'; | ||
import { CandidateSkillService } from './candidate-skill.service'; | ||
|
||
@ApiTags('candidate_skills') | ||
@Controller() | ||
export class CandidateSkillController extends CrudController<CandidateSkill> { | ||
constructor(private readonly candidateSkillService: CandidateSkillService) { | ||
super(candidateSkillService); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
apps/api/src/app/candidate-skill/candidate-skill.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Column, Entity } from 'typeorm'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Base } from '../core/entities/base'; | ||
import { IsString, IsNotEmpty } from 'class-validator'; | ||
import { ISkill } from '@gauzy/models'; | ||
|
||
@Entity('candidate_skills') | ||
export class CandidateSkill extends Base implements ISkill { | ||
@ApiProperty({ type: String }) | ||
@Column() | ||
name: string; | ||
|
||
@ApiProperty({ type: String }) | ||
@IsString() | ||
@IsNotEmpty() | ||
@Column() | ||
candidateId?: string; | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/api/src/app/candidate-skill/candidate-skill.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { CandidateSkill } from './candidate-skill.entity'; | ||
import { CandidateSkillService } from './candidate-skill.service'; | ||
import { CandidateSkillController } from './candidate-skill.controller'; | ||
|
||
@Module({ | ||
imports: [TypeOrmModule.forFeature([CandidateSkill])], | ||
providers: [CandidateSkillService], | ||
controllers: [CandidateSkillController], | ||
exports: [CandidateSkillService] | ||
}) | ||
export class CandidateSkillModule {} |
Empty file.
15 changes: 15 additions & 0 deletions
15
apps/api/src/app/candidate-skill/candidate-skill.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { InjectRepository } from '@nestjs/typeorm'; | ||
import { Repository } from 'typeorm'; | ||
import { CrudService } from '../core/crud/crud.service'; | ||
import { CandidateSkill } from './candidate-skill.entity'; | ||
|
||
@Injectable() | ||
export class CandidateSkillService extends CrudService<CandidateSkill> { | ||
constructor( | ||
@InjectRepository(CandidateSkill) | ||
private readonly candidateSkillRepository: Repository<CandidateSkill> | ||
) { | ||
super(candidateSkillRepository); | ||
} | ||
} |
Oops, something went wrong.