From 972870d53b9752ecd391b07773e72ea6d08b2082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Thu, 10 Oct 2024 10:16:45 +0200 Subject: [PATCH] fix: Add missing return types for Transmissions and Activities in OpenAPI spec (#1244) ## Description ## Related Issue(s) - #1239 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) ## Summary by CodeRabbit - **New Features** - Introduced multiple new schemas for dialog activity and transmission handling, enhancing metadata management. - Updated API endpoints to return detailed lists of dialog activities and their attachments. - Enhanced data structures with new properties for better clarity and functionality in dialog activities and transmissions. - Improved Swagger configurations for better documentation clarity and specificity for dialog activity and transmission endpoints. - Added support for notification conditions in the API, improving the handling of related queries. - **Bug Fixes** - Improved response structure of dialog activity and transmission endpoints to ensure accurate data retrieval. --- docs/schema/V1/swagger.verified.json | 1161 ++++++++++++++--- .../Queries/Get/GetDialogTransmissionDto.cs | 96 ++ .../Dialogs/Queries/Get/GetDialogDto.cs | 8 +- .../Dialogs/Queries/Get/MappingProfile.cs | 4 +- .../Queries/Get/GetDialogTransmissionDto.cs | 91 ++ .../Dialogs/Queries/Get/GetDialogDto.cs | 8 +- .../Dialogs/Queries/Get/MappingProfile.cs | 4 +- .../EndUser/DialogById/MappingProfile.cs | 4 +- .../Get/GetDialogActivityEndpoint.cs | 2 +- .../Get/GetDialogActivitySwaggerConfig.cs | 3 +- .../Search/SearchDialogActivityEndpoint.cs | 2 +- .../Get/GetDialogTransmissionSwaggerConfig.cs | 5 +- .../SearchDialogTransmissionEndpoint.cs | 2 +- .../SearchDialogTransmissionSwaggerConfig.cs | 2 +- .../Get/GetDialogActivitySwaggerConfig.cs | 3 +- .../NotificationConditionEndpoint.cs | 2 +- .../NotificationConditionSwaggerConfig.cs | 1 + .../Search/SearchDialogActivityEndpoint.cs | 2 +- .../Get/GetDialogTransmissionSwaggerConfig.cs | 3 +- .../SearchDialogTransmissionEndpoint.cs | 2 +- 20 files changed, 1223 insertions(+), 182 deletions(-) diff --git a/docs/schema/V1/swagger.verified.json b/docs/schema/V1/swagger.verified.json index 5493bb968..f8d874223 100644 --- a/docs/schema/V1/swagger.verified.json +++ b/docs/schema/V1/swagger.verified.json @@ -939,6 +939,137 @@ "Correction" ] }, + "GetDialogActivityDto": { + "additionalProperties": false, + "properties": { + "createdAt": { + "format": "date-time", + "nullable": true, + "type": "string" + }, + "description": { + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "extendedType": { + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + }, + "performedBy": { + "$ref": "#/components/schemas/GetDialogActivityPerformedByActorDto" + }, + "relatedActivityId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "transmissionId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/DialogActivityType_Values" + } + }, + "type": "object" + }, + "GetDialogActivityDtoSO": { + "additionalProperties": false, + "properties": { + "createdAt": { + "format": "date-time", + "nullable": true, + "type": "string" + }, + "deletedAt": { + "format": "date-time", + "nullable": true, + "type": "string" + }, + "description": { + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "extendedType": { + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + }, + "performedBy": { + "$ref": "#/components/schemas/GetDialogActivityPerformedByActorDtoSO" + }, + "relatedActivityId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "transmissionId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/DialogActivityType_Values" + } + }, + "type": "object" + }, + "GetDialogActivityPerformedByActorDto": { + "additionalProperties": false, + "properties": { + "actorId": { + "nullable": true, + "type": "string" + }, + "actorName": { + "nullable": true, + "type": "string" + }, + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" + }, + "id": { + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, + "GetDialogActivityPerformedByActorDtoSO": { + "additionalProperties": false, + "properties": { + "actorId": { + "nullable": true, + "type": "string" + }, + "actorName": { + "nullable": true, + "type": "string" + }, + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" + }, + "id": { + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, "GetDialogContentDto": { "additionalProperties": false, "properties": { @@ -1741,6 +1872,108 @@ }, "type": "object" }, + "GetDialogDialogTransmissionAttachmentDto": { + "additionalProperties": false, + "properties": { + "displayName": { + "description": "The display name of the attachment that should be used in GUIs.", + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "id": { + "description": "The unique identifier for the attachment in UUIDv7 format.", + "format": "guid", + "type": "string" + }, + "urls": { + "description": "The URLs associated with the attachment, each referring to a different representation of the attachment.", + "items": { + "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentUrlDto" + }, + "type": "array" + } + }, + "type": "object" + }, + "GetDialogDialogTransmissionAttachmentDtoSO": { + "additionalProperties": false, + "properties": { + "displayName": { + "description": "The display name of the attachment that should be used in GUIs.", + "items": { + "$ref": "#/components/schemas/LocalizationDto" + }, + "type": "array" + }, + "id": { + "description": "The unique identifier for the attachment in UUIDv7 format.", + "format": "guid", + "type": "string" + }, + "urls": { + "description": "The URLs associated with the attachment, each referring to a different representation of the attachment.", + "items": { + "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentUrlDtoSO" + }, + "type": "array" + } + }, + "type": "object" + }, + "GetDialogDialogTransmissionAttachmentUrlDto": { + "additionalProperties": false, + "properties": { + "consumerType": { + "description": "The type of consumer the URL is intended for.", + "oneOf": [ + { + "$ref": "#/components/schemas/AttachmentUrlConsumerType_Values" + } + ] + }, + "mediaType": { + "description": "The media type of the attachment.", + "example": "application/pdf\napplication/zip", + "nullable": true, + "type": "string" + }, + "url": { + "description": "The fully qualified URL of the attachment. Will be set to \u0022urn:dialogporten:unauthorized\u0022 if the user is\nnot authorized to access the transmission.", + "example": "https://someendpoint.com/someattachment.pdf\nurn:dialogporten:unauthorized", + "format": "uri", + "type": "string" + } + }, + "type": "object" + }, + "GetDialogDialogTransmissionAttachmentUrlDtoSO": { + "additionalProperties": false, + "properties": { + "consumerType": { + "description": "The type of consumer the URL is intended for.", + "oneOf": [ + { + "$ref": "#/components/schemas/AttachmentUrlConsumerType_Values" + } + ] + }, + "mediaType": { + "description": "The media type of the attachment.", + "example": "application/pdf\napplication/zip", + "nullable": true, + "type": "string" + }, + "url": { + "description": "The fully qualified URL of the attachment. Will be set to \u0022urn:dialogporten:unauthorized\u0022 if the user is\nnot authorized to access the transmission.", + "example": "https://someendpoint.com/someattachment.pdf\nurn:dialogporten:unauthorized", + "format": "uri", + "type": "string" + } + }, + "type": "object" + }, "GetDialogDialogTransmissionContentDto": { "additionalProperties": false, "properties": { @@ -1791,7 +2024,7 @@ "attachments": { "description": "The transmission-level attachments", "items": { - "$ref": "#/components/schemas/GetDialogTransmissionAttachmentDto" + "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentDto" }, "type": "array" }, @@ -1860,7 +2093,7 @@ "attachments": { "description": "The transmission-level attachments", "items": { - "$ref": "#/components/schemas/GetDialogTransmissionAttachmentDtoSO" + "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentDtoSO" }, "type": "array" }, @@ -2455,6 +2688,11 @@ } ] }, + "id": { + "description": "The unique identifier for the attachment URL in UUIDv7 format.", + "format": "guid", + "type": "string" + }, "mediaType": { "description": "The media type of the attachment.", "example": "application/pdf\napplication/zip", @@ -2481,6 +2719,11 @@ } ] }, + "id": { + "description": "The unique identifier for the attachment URL in UUIDv7 format.", + "format": "guid", + "type": "string" + }, "mediaType": { "description": "The media type of the attachment.", "example": "application/pdf\napplication/zip", @@ -2496,28 +2739,270 @@ }, "type": "object" }, - "GetJwksDto": { + "GetDialogTransmissionContentDto": { "additionalProperties": false, "properties": { - "keys": { - "items": { - "$ref": "#/components/schemas/Jwk" - }, - "type": "array" + "summary": { + "description": "The summary of the content.", + "oneOf": [ + { + "$ref": "#/components/schemas/ContentValueDto" + } + ] + }, + "title": { + "description": "The title of the content.", + "oneOf": [ + { + "$ref": "#/components/schemas/ContentValueDto" + } + ] } }, "type": "object" }, - "GetOauthAuthorizationServerDto": { + "GetDialogTransmissionContentDtoSO": { "additionalProperties": false, "properties": { - "issuer": { - "type": "string" - }, - "jwks_uri": { - "type": "string" - } - }, + "summary": { + "description": "The summary of the content.", + "oneOf": [ + { + "$ref": "#/components/schemas/ContentValueDto" + } + ] + }, + "title": { + "description": "The title of the content.", + "oneOf": [ + { + "$ref": "#/components/schemas/ContentValueDto" + } + ] + } + }, + "type": "object" + }, + "GetDialogTransmissionDto": { + "additionalProperties": false, + "properties": { + "attachments": { + "description": "The attachments associated with the transmission.", + "items": { + "$ref": "#/components/schemas/GetDialogTransmissionAttachmentDto" + }, + "type": "array" + }, + "authorizationAttribute": { + "description": "The authorization attribute associated with the transmission.", + "nullable": true, + "type": "string" + }, + "content": { + "description": "The content of the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/GetDialogTransmissionContentDto" + } + ] + }, + "createdAt": { + "description": "The date and time when the transmission was created.", + "format": "date-time", + "type": "string" + }, + "deletedAt": { + "description": "The date and time when the transmission was deleted, if applicable.", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "extendedType": { + "description": "The extended type URI for the transmission.", + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "description": "The unique identifier for the transmission in UUIDv7 format.", + "format": "guid", + "type": "string" + }, + "isAuthorized": { + "description": "Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and\nthe attachments will not be available", + "type": "boolean" + }, + "relatedTransmissionId": { + "description": "The unique identifier for the related transmission, if any.", + "format": "guid", + "nullable": true, + "type": "string" + }, + "sender": { + "description": "The sender actor information for the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/GetDialogTransmissionSenderActorDto" + } + ] + }, + "type": { + "description": "The type of the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/DialogTransmissionType_Values" + } + ] + } + }, + "type": "object" + }, + "GetDialogTransmissionDtoSO": { + "additionalProperties": false, + "properties": { + "attachments": { + "description": "The attachments associated with the transmission.", + "items": { + "$ref": "#/components/schemas/GetDialogTransmissionAttachmentDtoSO" + }, + "type": "array" + }, + "authorizationAttribute": { + "description": "The authorization attribute associated with the transmission.", + "nullable": true, + "type": "string" + }, + "content": { + "description": "The content of the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/GetDialogTransmissionContentDtoSO" + } + ] + }, + "createdAt": { + "description": "The date and time when the transmission was created.", + "format": "date-time", + "type": "string" + }, + "deletedAt": { + "description": "The date and time when the transmission was deleted, if applicable.", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "extendedType": { + "description": "The extended type URI for the transmission.", + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "description": "The unique identifier for the transmission in UUIDv7 format.", + "format": "guid", + "type": "string" + }, + "relatedTransmissionId": { + "description": "The unique identifier for the related transmission, if any.", + "format": "guid", + "nullable": true, + "type": "string" + }, + "sender": { + "description": "The sender actor information for the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/GetDialogTransmissionSenderActorDtoSO" + } + ] + }, + "type": { + "description": "The type of the transmission.", + "oneOf": [ + { + "$ref": "#/components/schemas/DialogTransmissionType_Values" + } + ] + } + }, + "type": "object" + }, + "GetDialogTransmissionSenderActorDto": { + "additionalProperties": false, + "properties": { + "actorId": { + "description": "The identifier of the actor.", + "type": "string" + }, + "actorName": { + "description": "The name of the actor.", + "type": "string" + }, + "actorType": { + "description": "The type of the actor.", + "oneOf": [ + { + "$ref": "#/components/schemas/ActorType_Values" + } + ] + }, + "id": { + "description": "The unique identifier for the sender actor in UUIDv7 format.", + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, + "GetDialogTransmissionSenderActorDtoSO": { + "additionalProperties": false, + "properties": { + "actorId": { + "description": "The identifier of the actor.", + "type": "string" + }, + "actorName": { + "description": "The name of the actor.", + "type": "string" + }, + "actorType": { + "description": "The type of the actor.", + "oneOf": [ + { + "$ref": "#/components/schemas/ActorType_Values" + } + ] + }, + "id": { + "description": "The unique identifier for the sender actor in UUIDv7 format.", + "format": "guid", + "type": "string" + } + }, + "type": "object" + }, + "GetJwksDto": { + "additionalProperties": false, + "properties": { + "keys": { + "items": { + "$ref": "#/components/schemas/Jwk" + }, + "type": "array" + } + }, + "type": "object" + }, + "GetOauthAuthorizationServerDto": { + "additionalProperties": false, + "properties": { + "issuer": { + "type": "string" + }, + "jwks_uri": { + "type": "string" + } + }, "type": "object" }, "GetPartiesDto": { @@ -2609,6 +3094,15 @@ }, "type": "object" }, + "NotificationConditionDto": { + "additionalProperties": false, + "properties": { + "sendNotification": { + "type": "boolean" + } + }, + "type": "object" + }, "NotificationConditionType": { "description": "", "enum": [ @@ -2772,13 +3266,86 @@ "default": "Error or field name", "type": "string" }, - "reason": { - "default": "Error reason", + "reason": { + "default": "Error reason", + "type": "string" + }, + "severity": { + "nullable": true, + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogActivityDto": { + "additionalProperties": false, + "properties": { + "createdAt": { + "format": "date-time", + "type": "string" + }, + "extendedType": { + "format": "uri", + "nullable": true, + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + }, + "relatedActivityId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "seenByEndUserIdHash": { + "nullable": true, + "type": "string" + }, + "transmissionId": { + "format": "guid", + "nullable": true, + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/DialogActivityType_Values" + } + }, + "type": "object" + }, + "SearchDialogActivityDtoSO": { + "additionalProperties": false, + "properties": { + "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" + }, + "relatedActivityId": { + "format": "guid", + "nullable": true, "type": "string" }, - "severity": { + "transmissionId": { + "format": "guid", "nullable": true, "type": "string" + }, + "type": { + "$ref": "#/components/schemas/DialogActivityType_Values" } }, "type": "object" @@ -3231,187 +3798,431 @@ } ] }, - "updatedAt": { - "description": "The date and time when the dialog was last updated.", - "example": "2022-12-31T23:59:59Z", - "format": "date-time", + "updatedAt": { + "description": "The date and time when the dialog was last updated.", + "example": "2022-12-31T23:59:59Z", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogDtoSO": { + "additionalProperties": false, + "properties": { + "content": { + "description": "The content of the dialog in search results", + "oneOf": [ + { + "$ref": "#/components/schemas/SearchDialogContentDtoSO" + } + ] + }, + "createdAt": { + "description": "The date and time when the dialog was created.", + "example": "2022-12-31T23:59:59Z", + "format": "date-time", + "type": "string" + }, + "dueAt": { + "description": "The due date for the dialog. This is the last date when the dialog is expected to be completed.", + "example": "2022-12-31T23:59:59Z", + "format": "date-time", + "nullable": true, + "type": "string" + }, + "extendedStatus": { + "description": "Arbitrary string with a service-specific indicator of status, typically used to indicate a fine-grained state of\nthe dialog to further specify the \u0022status\u0022 enum.\n \nRefer to the service-specific documentation provided by the service owner for details on the possible values (if\nin use).", + "nullable": true, + "type": "string" + }, + "guiAttachmentCount": { + "description": "The number of attachments in the dialog made available for browser-based frontends.", + "format": "int32", + "nullable": true, + "type": "integer" + }, + "id": { + "description": "The unique identifier for the dialog in UUIDv7 format.", + "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d", + "format": "guid", + "type": "string" + }, + "latestActivity": { + "description": "The latest entry in the dialog\u0027s activity log.", + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/SearchDialogDialogActivityDtoSO" + } + ] + }, + "org": { + "description": "The service owner code representing the organization (service owner) related to this dialog.", + "example": "ske", + "type": "string" + }, + "party": { + "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678", + "type": "string" + }, + "precedingProcess": { + "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.", + "nullable": true, + "type": "string" + }, + "process": { + "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "nullable": true, + "type": "string" + }, + "progress": { + "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).", + "format": "int32", + "nullable": true, + "type": "integer" + }, + "revision": { + "description": "The unique identifier for the revision in UUIDv4 format.", + "example": "a312cb9c-7632-43c2-aa38-69b06aed56ca", + "format": "guid", + "type": "string" + }, + "seenSinceLastUpdate": { + "description": "The list of seen log entries for the dialog newer than the dialog ChangedAt date.", + "items": { + "$ref": "#/components/schemas/SearchDialogDialogSeenLogDtoSO" + }, + "type": "array" + }, + "serviceResource": { + "description": "The service identifier for the service that the dialog is related to in URN-format.\nThis corresponds to a service resource in the Altinn Resource Registry.", + "example": "urn:altinn:resource:some-service-identifier", + "type": "string" + }, + "serviceResourceType": { + "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "type": "string" + }, + "status": { + "description": "The aggregated status of the dialog.", + "oneOf": [ + { + "$ref": "#/components/schemas/DialogStatus_Values" + } + ] + }, + "systemLabel": { + "description": "Current display state.", + "oneOf": [ + { + "$ref": "#/components/schemas/SystemLabel_Values" + } + ] + }, + "updatedAt": { + "description": "The date and time when the dialog was last updated.", + "example": "2022-12-31T23:59:59Z", + "format": "date-time", + "type": "string" + }, + "visibleFrom": { + "description": "The timestamp when the dialog will be made visible for authorized end users.", + "format": "date-time", + "nullable": true, + "type": "string" + } + }, + "type": "object" + }, + "SearchDialogLabelAssignmentLogDto": { + "additionalProperties": false, + "properties": { + "action": { + "type": "string" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "performedBy": { + "$ref": "#/components/schemas/LabelAssignmentLogActorDto" + } + }, + "type": "object" + }, + "SearchDialogSeenLogDto": { + "additionalProperties": false, + "properties": { + "id": { + "format": "guid", + "type": "string" + }, + "isCurrentEndUser": { + "type": "boolean" + }, + "isViaServiceOwner": { + "type": "boolean" + }, + "seenAt": { + "format": "date-time", + "type": "string" + }, + "seenBy": { + "$ref": "#/components/schemas/SearchDialogSeenLogSeenByActorDto" + } + }, + "type": "object" + }, + "SearchDialogSeenLogSeenByActorDto": { + "additionalProperties": false, + "properties": { + "actorId": { + "type": "string" + }, + "actorName": { + "type": "string" + }, + "id": { + "format": "guid", + "type": "string" + } + }, + "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" }, - "SearchDialogDtoSO": { + "SearchDialogTransmissionAttachmentUrlDtoSO": { "additionalProperties": false, "properties": { - "content": { - "description": "The content of the dialog in search results", - "oneOf": [ - { - "$ref": "#/components/schemas/SearchDialogContentDtoSO" - } - ] + "consumerType": { + "$ref": "#/components/schemas/AttachmentUrlConsumerType_Values" }, - "createdAt": { - "description": "The date and time when the dialog was created.", - "example": "2022-12-31T23:59:59Z", - "format": "date-time", + "id": { + "format": "guid", "type": "string" }, - "dueAt": { - "description": "The due date for the dialog. This is the last date when the dialog is expected to be completed.", - "example": "2022-12-31T23:59:59Z", - "format": "date-time", + "mediaType": { "nullable": true, "type": "string" }, - "extendedStatus": { - "description": "Arbitrary string with a service-specific indicator of status, typically used to indicate a fine-grained state of\nthe dialog to further specify the \u0022status\u0022 enum.\n \nRefer to the service-specific documentation provided by the service owner for details on the possible values (if\nin use).", - "nullable": true, + "url": { + "format": "uri", "type": "string" + } + }, + "type": "object" + }, + "SearchDialogTransmissionContentDto": { + "additionalProperties": false, + "properties": { + "summary": { + "$ref": "#/components/schemas/ContentValueDto" }, - "guiAttachmentCount": { - "description": "The number of attachments in the dialog made available for browser-based frontends.", - "format": "int32", - "nullable": true, - "type": "integer" + "title": { + "$ref": "#/components/schemas/ContentValueDto" + } + }, + "type": "object" + }, + "SearchDialogTransmissionContentDtoSO": { + "additionalProperties": false, + "properties": { + "summary": { + "$ref": "#/components/schemas/ContentValueDto" }, - "id": { - "description": "The unique identifier for the dialog in UUIDv7 format.", - "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d", - "format": "guid", - "type": "string" + "title": { + "$ref": "#/components/schemas/ContentValueDto" + } + }, + "type": "object" + }, + "SearchDialogTransmissionDto": { + "additionalProperties": false, + "properties": { + "attachments": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentDto" + }, + "type": "array" }, - "latestActivity": { - "description": "The latest entry in the dialog\u0027s activity log.", + "authorizationAttribute": { "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/SearchDialogDialogActivityDtoSO" - } - ] - }, - "org": { - "description": "The service owner code representing the organization (service owner) related to this dialog.", - "example": "ske", "type": "string" }, - "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", - "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678", + "content": { + "$ref": "#/components/schemas/SearchDialogTransmissionContentDto" + }, + "createdAt": { + "format": "date-time", "type": "string" }, - "precedingProcess": { - "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.", + "deletedAt": { + "format": "date-time", "nullable": true, "type": "string" }, - "process": { - "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "extendedType": { + "format": "uri", "nullable": true, "type": "string" }, - "progress": { - "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).", - "format": "int32", - "nullable": true, - "type": "integer" + "id": { + "format": "guid", + "type": "string" }, - "revision": { - "description": "The unique identifier for the revision in UUIDv4 format.", - "example": "a312cb9c-7632-43c2-aa38-69b06aed56ca", + "isAuthorized": { + "type": "boolean" + }, + "relatedTransmissionId": { "format": "guid", + "nullable": true, "type": "string" }, - "seenSinceLastUpdate": { - "description": "The list of seen log entries for the dialog newer than the dialog ChangedAt date.", + "sender": { + "$ref": "#/components/schemas/SearchDialogTransmissionSenderActorDto" + }, + "type": { + "$ref": "#/components/schemas/DialogTransmissionType_Values" + } + }, + "type": "object" + }, + "SearchDialogTransmissionDtoSO": { + "additionalProperties": false, + "properties": { + "attachments": { "items": { - "$ref": "#/components/schemas/SearchDialogDialogSeenLogDtoSO" + "$ref": "#/components/schemas/SearchDialogTransmissionAttachmentDtoSO" }, "type": "array" }, - "serviceResource": { - "description": "The service identifier for the service that the dialog is related to in URN-format.\nThis corresponds to a service resource in the Altinn Resource Registry.", - "example": "urn:altinn:resource:some-service-identifier", - "type": "string" - }, - "serviceResourceType": { - "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "authorizationAttribute": { + "nullable": true, "type": "string" }, - "status": { - "description": "The aggregated status of the dialog.", - "oneOf": [ - { - "$ref": "#/components/schemas/DialogStatus_Values" - } - ] - }, - "systemLabel": { - "description": "Current display state.", - "oneOf": [ - { - "$ref": "#/components/schemas/SystemLabel_Values" - } - ] + "content": { + "$ref": "#/components/schemas/SearchDialogTransmissionContentDtoSO" }, - "updatedAt": { - "description": "The date and time when the dialog was last updated.", - "example": "2022-12-31T23:59:59Z", + "createdAt": { "format": "date-time", "type": "string" }, - "visibleFrom": { - "description": "The timestamp when the dialog will be made visible for authorized end users.", + "deletedAt": { "format": "date-time", "nullable": true, "type": "string" - } - }, - "type": "object" - }, - "SearchDialogLabelAssignmentLogDto": { - "additionalProperties": false, - "properties": { - "action": { + }, + "extendedType": { + "format": "uri", + "nullable": true, "type": "string" }, - "createdAt": { - "format": "date-time", + "id": { + "format": "guid", "type": "string" }, - "name": { + "relatedTransmissionId": { + "format": "guid", + "nullable": true, "type": "string" }, - "performedBy": { - "$ref": "#/components/schemas/LabelAssignmentLogActorDto" + "sender": { + "$ref": "#/components/schemas/SearchDialogTransmissionSenderActorDtoSO" + }, + "type": { + "$ref": "#/components/schemas/DialogTransmissionType_Values" } }, "type": "object" }, - "SearchDialogSeenLogDto": { + "SearchDialogTransmissionSenderActorDto": { "additionalProperties": false, "properties": { - "id": { - "format": "guid", + "actorId": { "type": "string" }, - "isCurrentEndUser": { - "type": "boolean" + "actorName": { + "type": "string" }, - "isViaServiceOwner": { - "type": "boolean" + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" }, - "seenAt": { - "format": "date-time", + "id": { + "format": "guid", "type": "string" - }, - "seenBy": { - "$ref": "#/components/schemas/SearchDialogSeenLogSeenByActorDto" } }, "type": "object" }, - "SearchDialogSeenLogSeenByActorDto": { + "SearchDialogTransmissionSenderActorDtoSO": { "additionalProperties": false, "properties": { "actorId": { @@ -3420,6 +4231,9 @@ "actorName": { "type": "string" }, + "actorType": { + "$ref": "#/components/schemas/ActorType_Values" + }, "id": { "format": "guid", "type": "string" @@ -4517,10 +5331,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogActivityDto" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog activity list." @@ -4569,6 +5385,13 @@ ], "responses": { "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDialogActivityDto" + } + } + }, "description": "Successfully returned the dialog activity." }, "401": { @@ -4871,7 +5694,7 @@ "/api/v1/enduser/dialogs/{dialogId}/transmissions": { "get": { "description": "Gets the list of transmissions belonging to a dialog", - "operationId": "GetDialogTransmissionListEU", + "operationId": "GetDialogTransmissionList", "parameters": [ { "in": "path", @@ -4887,10 +5710,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionDto" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog transmission list." @@ -4916,7 +5741,7 @@ "/api/v1/enduser/dialogs/{dialogId}/transmissions/{transmissionId}": { "get": { "description": "Gets a single transmission belonging to a dialog. For more information see the documentation (link TBD).", - "operationId": "GetDialogTransmissionEU", + "operationId": "GetDialogTransmission", "parameters": [ { "in": "path", @@ -4939,6 +5764,13 @@ ], "responses": { "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDialogTransmissionDto" + } + } + }, "description": "Successfully returned the dialog transmission." }, "401": { @@ -5909,10 +6741,9 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/NotificationConditionDto" + } } }, "description": "Successfully returned the notification determination." @@ -5954,10 +6785,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogActivityDtoSO" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog activity list." @@ -6111,6 +6944,13 @@ ], "responses": { "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDialogActivityDtoSO" + } + } + }, "description": "Successfully returned the dialog activity." }, "401": { @@ -6280,10 +7120,12 @@ "200": { "content": { "application/json": { - "schema": {} - }, - "text/plain": { - "schema": {} + "schema": { + "items": { + "$ref": "#/components/schemas/SearchDialogTransmissionDtoSO" + }, + "type": "array" + } } }, "description": "Successfully returned the dialog transmission list." @@ -6437,6 +7279,13 @@ ], "responses": { "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDialogTransmissionDtoSO" + } + } + }, "description": "Successfully returned the dialog transmission." }, "401": { diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs index 295af2c14..9d451166e 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs @@ -8,49 +8,145 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.EndUser.DialogTrans public sealed class GetDialogTransmissionDto { + /// + /// The unique identifier for the transmission in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The date and time when the transmission was created. + /// public DateTimeOffset CreatedAt { get; set; } + + /// + /// The authorization attribute associated with the transmission. + /// public string? AuthorizationAttribute { get; set; } + + /// + /// Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and + /// the attachments will not be available + /// public bool IsAuthorized { get; set; } + + /// + /// The extended type URI for the transmission. + /// public Uri? ExtendedType { get; set; } + + /// + /// The unique identifier for the related transmission, if any. + /// public Guid? RelatedTransmissionId { get; set; } + + /// + /// The date and time when the transmission was deleted, if applicable. + /// public DateTimeOffset? DeletedAt { get; set; } + /// + /// The type of the transmission. + /// public DialogTransmissionType.Values Type { get; set; } + /// + /// The sender actor information for the transmission. + /// public GetDialogTransmissionSenderActorDto Sender { get; set; } = null!; + /// + /// The content of the transmission. + /// public GetDialogTransmissionContentDto Content { get; set; } = null!; + + /// + /// The attachments associated with the transmission. + /// public List Attachments { get; set; } = []; } public sealed class GetDialogTransmissionSenderActorDto { + /// + /// The unique identifier for the sender actor in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The type of the actor. + /// public ActorType.Values ActorType { get; set; } + + /// + /// The name of the actor. + /// public string ActorName { get; set; } = null!; + + /// + /// The identifier of the actor. + /// public string ActorId { get; set; } = null!; } public sealed class GetDialogTransmissionContentDto { + /// + /// The title of the content. + /// public ContentValueDto Title { get; set; } = null!; + + /// + /// The summary of the content. + /// public ContentValueDto Summary { get; set; } = null!; } public sealed class GetDialogTransmissionAttachmentDto { + /// + /// The unique identifier for the attachment in UUIDv7 format. + /// public Guid Id { get; set; } + /// + /// The display name of the attachment that should be used in GUIs. + /// public List DisplayName { get; set; } = []; + + /// + /// The URLs associated with the attachment, each referring to a different representation of the attachment. + /// public List Urls { get; set; } = []; } public sealed class GetDialogTransmissionAttachmentUrlDto { + /// + /// The unique identifier for the attachment URL in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The fully qualified URL of the attachment. Will be set to "urn:dialogporten:unauthorized" if the user is + /// not authorized to access the transmission. + /// + /// + /// https://someendpoint.com/someattachment.pdf + /// urn:dialogporten:unauthorized + /// public Uri Url { get; set; } = null!; + + /// + /// The media type of the attachment. + /// + /// + /// application/pdf + /// application/zip + /// public string? MediaType { get; set; } = null!; + /// + /// The type of consumer the URL is intended for. + /// public AttachmentUrlConsumerType.Values ConsumerType { get; set; } } diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs index fd30852b2..646478654 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs @@ -227,7 +227,7 @@ public sealed class GetDialogDialogTransmissionDto /// /// The transmission-level attachments /// - public List Attachments { get; set; } = []; + public List Attachments { get; set; } = []; } public sealed class GetDialogDialogSeenLogDto @@ -629,7 +629,7 @@ public sealed class GetDialogDialogAttachmentUrlDto public AttachmentUrlConsumerType.Values ConsumerType { get; set; } } -public sealed class GetDialogTransmissionAttachmentDto +public sealed class GetDialogDialogTransmissionAttachmentDto { /// /// The unique identifier for the attachment in UUIDv7 format. @@ -644,10 +644,10 @@ public sealed class GetDialogTransmissionAttachmentDto /// /// The URLs associated with the attachment, each referring to a different representation of the attachment. /// - public List Urls { get; set; } = []; + public List Urls { get; set; } = []; } -public sealed class GetDialogTransmissionAttachmentUrlDto +public sealed class GetDialogDialogTransmissionAttachmentUrlDto { /// /// The fully qualified URL of the attachment. Will be set to "urn:dialogporten:unauthorized" if the user is diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs index 68601c43e..5fca629ec 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs @@ -61,8 +61,8 @@ public MappingProfile() CreateMap() .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.TypeId)); - CreateMap(); - CreateMap() + CreateMap(); + CreateMap() .ForMember(dest => dest.ConsumerType, opt => opt.MapFrom(src => src.ConsumerTypeId)); } diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs index 1b39be050..659e15130 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/DialogTransmissions/Queries/Get/GetDialogTransmissionDto.cs @@ -8,48 +8,139 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.Dialog public sealed class GetDialogTransmissionDto { + /// + /// The unique identifier for the transmission in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The date and time when the transmission was created. + /// public DateTimeOffset CreatedAt { get; set; } + + /// + /// The authorization attribute associated with the transmission. + /// public string? AuthorizationAttribute { get; set; } + + /// + /// The extended type URI for the transmission. + /// public Uri? ExtendedType { get; set; } + + /// + /// The unique identifier for the related transmission, if any. + /// public Guid? RelatedTransmissionId { get; set; } + + /// + /// The date and time when the transmission was deleted, if applicable. + /// public DateTimeOffset? DeletedAt { get; set; } + /// + /// The type of the transmission. + /// public DialogTransmissionType.Values Type { get; set; } + /// + /// The sender actor information for the transmission. + /// public GetDialogTransmissionSenderActorDto Sender { get; set; } = null!; + /// + /// The content of the transmission. + /// public GetDialogTransmissionContentDto Content { get; set; } = null!; + + /// + /// The attachments associated with the transmission. + /// public List Attachments { get; set; } = []; } public sealed class GetDialogTransmissionSenderActorDto { + /// + /// The unique identifier for the sender actor in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The type of the actor. + /// public ActorType.Values ActorType { get; set; } + + /// + /// The name of the actor. + /// public string ActorName { get; set; } = null!; + + /// + /// The identifier of the actor. + /// public string ActorId { get; set; } = null!; } public sealed class GetDialogTransmissionContentDto { + /// + /// The title of the content. + /// public ContentValueDto Title { get; set; } = null!; + + /// + /// The summary of the content. + /// public ContentValueDto Summary { get; set; } = null!; } public sealed class GetDialogTransmissionAttachmentDto { + /// + /// The unique identifier for the attachment in UUIDv7 format. + /// public Guid Id { get; set; } + /// + /// The display name of the attachment that should be used in GUIs. + /// public List DisplayName { get; set; } = []; + + /// + /// The URLs associated with the attachment, each referring to a different representation of the attachment. + /// public List Urls { get; set; } = []; } public sealed class GetDialogTransmissionAttachmentUrlDto { + /// + /// The unique identifier for the attachment URL in UUIDv7 format. + /// public Guid Id { get; set; } + + /// + /// The fully qualified URL of the attachment. Will be set to "urn:dialogporten:unauthorized" if the user is + /// not authorized to access the transmission. + /// + /// + /// https://someendpoint.com/someattachment.pdf + /// urn:dialogporten:unauthorized + /// public Uri Url { get; set; } = null!; + + /// + /// The media type of the attachment. + /// + /// + /// application/pdf + /// application/zip + /// public string? MediaType { get; set; } = null!; + /// + /// The type of consumer the URL is intended for. + /// public AttachmentUrlConsumerType.Values ConsumerType { get; set; } } diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs index 454dfa9df..f05c025be 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/GetDialogDto.cs @@ -237,7 +237,7 @@ public sealed class GetDialogDialogTransmissionDto /// /// The transmission-level attachments /// - public List Attachments { get; set; } = []; + public List Attachments { get; set; } = []; } public sealed class GetDialogDialogSeenLogDto @@ -636,7 +636,7 @@ public sealed class GetDialogDialogAttachmentUrlDto public AttachmentUrlConsumerType.Values ConsumerType { get; set; } } -public sealed class GetDialogTransmissionAttachmentDto +public sealed class GetDialogDialogTransmissionAttachmentDto { /// /// The unique identifier for the attachment in UUIDv7 format. @@ -651,10 +651,10 @@ public sealed class GetDialogTransmissionAttachmentDto /// /// The URLs associated with the attachment, each referring to a different representation of the attachment. /// - public List Urls { get; set; } = []; + public List Urls { get; set; } = []; } -public sealed class GetDialogTransmissionAttachmentUrlDto +public sealed class GetDialogDialogTransmissionAttachmentUrlDto { /// /// The fully qualified URL of the attachment. Will be set to "urn:dialogporten:unauthorized" if the user is diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/MappingProfile.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/MappingProfile.cs index 9bd4a98d7..933866943 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/MappingProfile.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Get/MappingProfile.cs @@ -54,8 +54,8 @@ public MappingProfile() CreateMap() .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.TypeId)); - CreateMap(); - CreateMap() + CreateMap(); + CreateMap() .ForMember(dest => dest.ConsumerType, opt => opt.MapFrom(src => src.ConsumerTypeId)); } } diff --git a/src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/MappingProfile.cs b/src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/MappingProfile.cs index 9cf6bda6b..856b24d2e 100644 --- a/src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/MappingProfile.cs +++ b/src/Digdir.Domain.Dialogporten.GraphQL/EndUser/DialogById/MappingProfile.cs @@ -29,8 +29,8 @@ public MappingProfile() CreateMap() .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.Type)); CreateMap(); - CreateMap(); - CreateMap() + CreateMap(); + CreateMap() .ForMember(dest => dest.ConsumerType, opt => opt.MapFrom(src => src.ConsumerType)); CreateMap(); } diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivityEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivityEndpoint.cs index 7ace3e618..ab14dce1d 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivityEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivityEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.EndUser.DialogActivities.Get; -public sealed class GetDialogActivityEndpoint : Endpoint +public sealed class GetDialogActivityEndpoint : Endpoint { private readonly ISender _sender; diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs index 4a69d270d..01d931c08 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs @@ -1,3 +1,4 @@ +using Digdir.Domain.Dialogporten.Application.Features.V1.EndUser.DialogActivities.Queries.Get; using Digdir.Domain.Dialogporten.WebApi.Common; using Digdir.Domain.Dialogporten.WebApi.Common.Extensions; using Digdir.Domain.Dialogporten.WebApi.Common.Swagger; @@ -12,7 +13,7 @@ public sealed class GetDialogActivitySwaggerConfig : ISwaggerConfig public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId) - .ProducesOneOf( + .ProducesOneOf( StatusCodes.Status200OK, StatusCodes.Status404NotFound); diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Search/SearchDialogActivityEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Search/SearchDialogActivityEndpoint.cs index 85ac86422..bbbbb170f 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Search/SearchDialogActivityEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogActivities/Search/SearchDialogActivityEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.EndUser.DialogActivities.Search; -public sealed class SearchDialogActivityEndpoint : Endpoint +public sealed class SearchDialogActivityEndpoint : Endpoint> { private readonly ISender _sender; diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs index c86975f0b..14e6d64eb 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs @@ -1,3 +1,4 @@ +using Digdir.Domain.Dialogporten.Application.Features.V1.EndUser.DialogTransmissions.Queries.Get; using Digdir.Domain.Dialogporten.WebApi.Common; using Digdir.Domain.Dialogporten.WebApi.Common.Authorization; using Digdir.Domain.Dialogporten.WebApi.Common.Extensions; @@ -9,11 +10,11 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.EndUser.DialogTransmiss public sealed class GetDialogTransmissionSwaggerConfig : ISwaggerConfig { - public static string OperationId => "GetDialogTransmissionEU"; + public static string OperationId => "GetDialogTransmission"; public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId) - .ProducesOneOf( + .ProducesOneOf( StatusCodes.Status200OK, StatusCodes.Status404NotFound); 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/EndUser/DialogTransmissions/Search/SearchDialogTransmissionSwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionSwaggerConfig.cs index c94c8b0ab..7da6f7ca7 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionSwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/EndUser/DialogTransmissions/Search/SearchDialogTransmissionSwaggerConfig.cs @@ -10,7 +10,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.EndUser.DialogTransmiss public sealed class SearchDialogTransmissionSwaggerConfig : ISwaggerConfig { - public static string OperationId => "GetDialogTransmissionListEU"; + public static string OperationId => "GetDialogTransmissionList"; public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId); diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs index 6f4455f3f..ec793a0f1 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Get/GetDialogActivitySwaggerConfig.cs @@ -1,3 +1,4 @@ +using Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.DialogActivities.Queries.Get; using Digdir.Domain.Dialogporten.WebApi.Common; using Digdir.Domain.Dialogporten.WebApi.Common.Authorization; using Digdir.Domain.Dialogporten.WebApi.Common.Extensions; @@ -13,7 +14,7 @@ public sealed class GetDialogActivitySwaggerConfig : ISwaggerConfig public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId) - .ProducesOneOf( + .ProducesOneOf( StatusCodes.Status200OK, StatusCodes.Status404NotFound); diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionEndpoint.cs index ec4efa3e4..1c47a4cdd 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.ServiceOwner.DialogActivities.NotificationCondition; -public sealed class NotificationConditionEndpoint : Endpoint +public sealed class NotificationConditionEndpoint : Endpoint { private readonly ISender _sender; diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionSwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionSwaggerConfig.cs index 6dd97abd6..adc8f6b06 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionSwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionSwaggerConfig.cs @@ -12,6 +12,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.ServiceOwner.DialogActi public sealed class NotificationConditionSwaggerConfig : ISwaggerConfig { public static string OperationId => "GetDialogActivityNotificationConditionSO"; + public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId); diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Search/SearchDialogActivityEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Search/SearchDialogActivityEndpoint.cs index 8382cced6..4b4f54b6e 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Search/SearchDialogActivityEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/Search/SearchDialogActivityEndpoint.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.WebApi.Endpoints.V1.ServiceOwner.DialogActivities.Search; -public sealed class SearchDialogActivityEndpoint : Endpoint +public sealed class SearchDialogActivityEndpoint : Endpoint> { private readonly ISender _sender; diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs index e2fdb9f18..30975dc37 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Get/GetDialogTransmissionSwaggerConfig.cs @@ -1,3 +1,4 @@ +using Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.DialogTransmissions.Queries.Get; using Digdir.Domain.Dialogporten.WebApi.Common; using Digdir.Domain.Dialogporten.WebApi.Common.Authorization; using Digdir.Domain.Dialogporten.WebApi.Common.Extensions; @@ -13,7 +14,7 @@ public sealed class GetDialogTransmissionSwaggerConfig : ISwaggerConfig public static RouteHandlerBuilder SetDescription(RouteHandlerBuilder builder) => builder.OperationId(OperationId) - .ProducesOneOf( + .ProducesOneOf( StatusCodes.Status200OK, StatusCodes.Status404NotFound); 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;