From 28ab75793ebb37317198bb4fa568ee77392ed585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Mon, 7 Oct 2024 16:52:59 +0200 Subject: [PATCH] fx --- docs/schema/V1/swagger.verified.json | 267 +++++++++++++++++- .../SearchDialogTransmissionEndpoint.cs | 2 +- .../SearchDialogTransmissionEndpoint.cs | 2 +- 3 files changed, 261 insertions(+), 10 deletions(-) diff --git a/docs/schema/V1/swagger.verified.json b/docs/schema/V1/swagger.verified.json index 37754ac46..6c096e8a0 100644 --- a/docs/schema/V1/swagger.verified.json +++ b/docs/schema/V1/swagger.verified.json @@ -3428,6 +3428,253 @@ }, "type": "object" }, + "SearchDialogTransmissionAttachmentDto": { + "additionalProperties": false, + "properties": { + "displayName": { + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "id": { + "format": "guid", + "type": "string" + }, + "urls": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentUrlDto" + }, + "type": "array" + } + }, + "type": "object" + }, + "SearchDialogTransmissionAttachmentDtoSO": { + "additionalProperties": false, + "properties": { + "displayName": { + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "id": { + "format": "guid", + "type": "string" + }, + "urls": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentUrlDtoSO" + }, + "type": "array" + } + }, + "type": "object" + }, + "SearchDialogTransmissionAttachmentUrlDto": { + "additionalProperties": false, + "properties": { + "consumerType": { + "$ref": "#/components/schemas/AttachmentUrlConsumerType_Values" + }, + "id": { + "format": "guid", + "type": "string" + }, + "mediaType": { + "nullable": true, + "type": "string" + }, + "url": { + "format": "uri", + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogTransmissionAttachmentUrlDtoSO": { + "additionalProperties": false, + "properties": { + "consumerType": { + "$ref": "#/components/schemas/AttachmentUrlConsumerType_Values" + }, + "id": { + "format": "guid", + "type": "string" + }, + "mediaType": { + "nullable": true, + "type": "string" + }, + "url": { + "format": "uri", + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogTransmissionContentDto": { + "additionalProperties": false, + "properties": { + "summary": { + "$ref": "#/components/schemas/ContentValueDto" + }, + "title": { + "$ref": "#/components/schemas/ContentValueDto" + } + }, + "type": "object" + }, + "SearchDialogTransmissionContentDtoSO": { + "additionalProperties": false, + "properties": { + "summary": { + "$ref": "#/components/schemas/ContentValueDto" + }, + "title": { + "$ref": "#/components/schemas/ContentValueDto" + } + }, + "type": "object" + }, + "SearchDialogTransmissionDto": { + "additionalProperties": false, + "properties": { + "attachments": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentDto" + }, + "type": "array" + }, + "authorizationAttribute": { + "nullable": true, + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/SearchDialogTransmissionContentDto" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "deletedAt": { + "format": "date-time", + "nullable": true, + "type": "string" + }, + "extendedType": { + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + }, + "isAuthorized": { + "type": "boolean" + }, + "relatedTransmissionId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "sender": { + "$ref": "#/components/schemas/SearchDialogTransmissionSenderActorDto" + }, + "type": { + "$ref": "#/components/schemas/DialogTransmissionType_Values" + } + }, + "type": "object" + }, + "SearchDialogTransmissionDtoSO": { + "additionalProperties": false, + "properties": { + "attachments": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentDtoSO" + }, + "type": "array" + }, + "authorizationAttribute": { + "nullable": true, + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/SearchDialogTransmissionContentDtoSO" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "deletedAt": { + "format": "date-time", + "nullable": true, + "type": "string" + }, + "extendedType": { + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + }, + "relatedTransmissionId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "sender": { + "$ref": "#/components/schemas/SearchDialogTransmissionSenderActorDtoSO" + }, + "type": { + "$ref": "#/components/schemas/DialogTransmissionType_Values" + } + }, + "type": "object" + }, + "SearchDialogTransmissionSenderActorDto": { + "additionalProperties": false, + "properties": { + "actorId": { + "type": "string" + }, + "actorName": { + "type": "string" + }, + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" + }, + "id": { + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogTransmissionSenderActorDtoSO": { + "additionalProperties": false, + "properties": { + "actorId": { + "type": "string" + }, + "actorName": { + "type": "string" + }, + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" + }, + "id": { + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, "SearchSeenLogDto": { "additionalProperties": false, "properties": { @@ -4888,10 +5135,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionDto" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog transmission list." @@ -6281,10 +6530,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionDtoSO" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog transmission list." diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs index d2766cc9e..ec110f670 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.EndUser.DialogTransmissions.Search; -public sealed class SearchDialogTransmissionEndpoint : Endpoint +public sealed class SearchDialogTransmissionEndpoint : Endpoint> { private readonly ISender _sender; diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs index a53e288bc..01117f5c1 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.ServiceOwner.DialogTransmissions.Search; -public sealed class SearchDialogTransmissionEndpoint : Endpoint +public sealed class SearchDialogTransmissionEndpoint : Endpoint> { private readonly ISender _sender;