Explorar el Código

task note contact type

master
Daniel hace 1 año
padre
commit
931acbb825
Se han modificado 5 ficheros con 37 adiciones y 7 borrados
  1. +1
    -1
      export/openapi.json
  2. +33
    -3
      export/openapi.yaml
  3. +1
    -1
      src/ApiResource/TaskNoteApi.php
  4. +1
    -1
      src/Mapper/TaskNoteApiToEntityMapper.php
  5. +1
    -1
      src/Mapper/TaskNoteEntityToApiMapper.php

+ 1
- 1
export/openapi.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 33
- 3
export/openapi.yaml Ver fichero

@@ -6338,7 +6338,6 @@ components:
deprecated: false
required:
- headline
- description
- assignedToIri
- dueAt
- productIri
@@ -6429,7 +6428,6 @@ components:
deprecated: false
required:
- headline
- description
- assignedToIri
- dueAt
- productIri
@@ -6529,7 +6527,6 @@ components:
deprecated: false
required:
- headline
- description
- assignedToIri
- dueAt
- productIri
@@ -6644,6 +6641,7 @@ components:
required:
- message
- taskIri
- contactType
properties:
message:
type:
@@ -6659,6 +6657,12 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
contactType:
type: string
enum:
- personal
- phone
- email
createdAt:
readOnly: true
type:
@@ -6672,6 +6676,7 @@ components:
required:
- message
- taskIri
- contactType
properties:
_links:
type: object
@@ -6696,6 +6701,12 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
contactType:
type: string
enum:
- personal
- phone
- email
createdAt:
readOnly: true
type:
@@ -6709,6 +6720,7 @@ components:
required:
- message
- taskIri
- contactType
properties:
'@context':
readOnly: true
@@ -6747,6 +6759,12 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
contactType:
type: string
enum:
- personal
- phone
- email
createdAt:
readOnly: true
type:
@@ -6777,6 +6795,10 @@ components:
type:
- string
- 'null'
goals:
type:
- string
- 'null'
image:
type:
- string
@@ -6840,6 +6862,10 @@ components:
type:
- string
- 'null'
goals:
type:
- string
- 'null'
image:
type:
- string
@@ -6917,6 +6943,10 @@ components:
type:
- string
- 'null'
goals:
type:
- string
- 'null'
image:
type:
- string


+ 1
- 1
src/ApiResource/TaskNoteApi.php Ver fichero

@@ -77,7 +77,7 @@ class TaskNoteApi implements OwnerInterface
public ?TaskApi $taskIri = null;

#[NotBlank]
public TaskNoteContactType $type;
public TaskNoteContactType $contactType;

#[ApiProperty(writable: false)]
public ?\DateTimeImmutable $createdAt = null;


+ 1
- 1
src/Mapper/TaskNoteApiToEntityMapper.php Ver fichero

@@ -58,7 +58,7 @@ class TaskNoteApiToEntityMapper implements MapperInterface
$entity = $to;
assert($entity instanceof TaskNote);
$entity->setMessage($dto->message);
$entity->setType($dto->type);
$entity->setType($dto->contactType);

return $entity;
}


+ 1
- 1
src/Mapper/TaskNoteEntityToApiMapper.php Ver fichero

@@ -46,7 +46,7 @@ class TaskNoteEntityToApiMapper implements MapperInterface
MicroMapperInterface::MAX_DEPTH => 1,
]);

$dto->type = $entity->getType();
$dto->contactType = $entity->getType();

$dto->createdAt = $entity->getCreatedAt();



Cargando…
Cancelar
Guardar