Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wermarter committed Jan 26, 2024
1 parent 4bc65b7 commit f96acc1
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ import { ValidateNested } from 'class-validator'

import { BioProductCreateRequestDto } from './create.request-dto'
import { Branch, exampleBioProduct } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'
import { BranchUnpopulatedResponseDto } from '../../branch/dto/response-dto'

export class BioProductUnpopulatedResponse extends IntersectionType(
export class BioProductUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
BioProductCreateRequestDto,
) {}

export class BioProductResponseDto extends BioProductUnpopulatedResponse {
export class BioProductResponseDto extends BioProductUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleBioProduct.branch, type: () => BranchResponseDto })
@ApiProperty({
...exampleBioProduct.branch,
type: () => BranchUnpopulatedResponseDto,
})
@ValidateNested({ each: true })
@Type(() => BranchResponseDto)
@Type(() => BranchUnpopulatedResponseDto)
branch?: Branch
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { IsArray, ValidateNested } from 'class-validator'
import { BranchCreateRequestDto } from './create.request-dto'
import { Branch, exampleBranch } from 'src/domain'

export class BranchUnpopulatedResponse extends IntersectionType(
export class BranchUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
BranchCreateRequestDto,
) {}

export class BranchResponseDto extends BranchUnpopulatedResponse {
export class BranchResponseDto extends BranchUnpopulatedResponseDto {
@Expose()
@ApiProperty({
...exampleBranch.sampleOrigins,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { DiagnosisCreateRequestDto } from './create.request-dto'
import { Branch, exampleDiagnosis } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class DiagnosisUnpopulatedResponse extends IntersectionType(
export class DiagnosisUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
DiagnosisCreateRequestDto,
) {}

export class DiagnosisResponseDto extends DiagnosisUnpopulatedResponse {
export class DiagnosisResponseDto extends DiagnosisUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleDiagnosis.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { DoctorCreateRequestDto } from './create.request-dto'
import { Branch, exampleDoctor } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class DoctorUnpopulatedResponse extends IntersectionType(
export class DoctorUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
DoctorCreateRequestDto,
) {}

export class DoctorResponseDto extends DoctorUnpopulatedResponse {
export class DoctorResponseDto extends DoctorUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleDoctor.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { InstrumentCreateRequestDto } from './create.request-dto'
import { Branch, exampleInstrument } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class InstrumentUnpopulatedResponse extends IntersectionType(
export class InstrumentUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
InstrumentCreateRequestDto,
) {}

export class InstrumentResponseDto extends InstrumentUnpopulatedResponse {
export class InstrumentResponseDto extends InstrumentUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleInstrument.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { PatientTypeCreateRequestDto } from './create.request-dto'
import { Branch, examplePatientType } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class PatientTypeUnpopulatedResponse extends IntersectionType(
export class PatientTypeUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
PatientTypeCreateRequestDto,
) {}

export class PatientTypeResponseDto extends PatientTypeUnpopulatedResponse {
export class PatientTypeResponseDto extends PatientTypeUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...examplePatientType.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { PatientCreateRequestDto } from './create.request-dto'
import { Branch, examplePatient } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class PatientUnpopulatedResponse extends IntersectionType(
export class PatientUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
PatientCreateRequestDto,
) {}

export class PatientResponseDto extends PatientUnpopulatedResponse {
export class PatientResponseDto extends PatientUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...examplePatient.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { PrintFormCreateRequestDto } from './create.request-dto'
import { Branch, examplePrintForm } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class PrintFormUnpopulatedResponse extends IntersectionType(
export class PrintFormUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
PrintFormCreateRequestDto,
) {}

export class PrintFormResponseDto extends PrintFormUnpopulatedResponse {
export class PrintFormResponseDto extends PrintFormUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...examplePrintForm.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { RoleCreateRequestDto } from './create.request-dto'
import { Branch, exampleRole } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class RoleUnpopulatedResponse extends IntersectionType(
export class RoleUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
RoleCreateRequestDto,
) {}

export class RoleResponseDto extends RoleUnpopulatedResponse {
export class RoleResponseDto extends RoleUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleRole.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { SampleTypeCreateRequestDto } from './create.request-dto'
import { Branch, exampleSampleType } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class SampleTypeUnpopulatedResponse extends IntersectionType(
export class SampleTypeUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
SampleTypeCreateRequestDto,
) {}

export class SampleTypeResponseDto extends SampleTypeUnpopulatedResponse {
export class SampleTypeResponseDto extends SampleTypeUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleSampleType.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { TestCategoryCreateRequestDto } from './create.request-dto'
import { Branch, exampleTestCategory } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'

export class TestCategoryUnpopulatedResponse extends IntersectionType(
export class TestCategoryUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
TestCategoryCreateRequestDto,
) {}

export class TestCategoryResponseDto extends TestCategoryUnpopulatedResponse {
export class TestCategoryResponseDto extends TestCategoryUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleTestCategory.branch, type: () => BranchResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { Branch, Test, exampleTestCombo } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'
import { TestResponseDto } from '../../test/dto/response-dto'

export class TestComboUnpopulatedResponse extends IntersectionType(
export class TestComboUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
TestComboCreateRequestDto,
) {}

export class TestComboResponseDto extends TestComboUnpopulatedResponse {
export class TestComboResponseDto extends TestComboUnpopulatedResponseDto {
@Expose()
@ApiProperty({
...exampleTestCombo.tests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { exampleTestElement } from 'src/domain'
import { BranchResponseDto } from '../../branch/dto/response-dto'
import { TestResponseDto } from '../../test/dto/response-dto'

export class TestElementUnpopulatedResponse extends IntersectionType(
export class TestElementUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
TestElementCreateRequestDto,
) {}

export class TestElementResponseDto extends TestElementUnpopulatedResponse {
export class TestElementResponseDto extends TestElementUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleTestElement.test, type: () => TestResponseDto })
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import { SampleTypeResponseDto } from '../../sample-type/dto/response-dto'
import { TestCategoryResponseDto } from '../../test-category/dto/response-dto'
import { PrintFormResponseDto } from '../../print-form/dto/response-dto'

export class TestUnpopulatedResponse extends IntersectionType(
export class TestUnpopulatedResponseDto extends IntersectionType(
BaseResourceResponseDto,
TestCreateRequestDto,
) {}

export class TestResponseDto extends TestUnpopulatedResponse {
export class TestResponseDto extends TestUnpopulatedResponseDto {
@Expose()
@ApiProperty({ ...exampleTest.bioProduct, type: () => BioProductResponseDto })
@ValidateNested({ each: true })
Expand Down

0 comments on commit f96acc1

Please sign in to comment.