From d5420658a5dd21f0be8b92832d604e585f132059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 25 Oct 2024 14:44:00 +0200 Subject: [PATCH 1/4] remove usings --- src/Digdir.Domain.Dialogporten.GraphQL/Program.cs | 1 - .../Altinn/Authorization/AltinnAuthorizationClient.cs | 1 - .../HealthChecks/RedisHealthCheck.cs | 3 --- src/Digdir.Domain.Dialogporten.Service/Program.cs | 1 - 4 files changed, 6 deletions(-) diff --git a/src/Digdir.Domain.Dialogporten.GraphQL/Program.cs b/src/Digdir.Domain.Dialogporten.GraphQL/Program.cs index 10040bcad..fab99b9b2 100644 --- a/src/Digdir.Domain.Dialogporten.GraphQL/Program.cs +++ b/src/Digdir.Domain.Dialogporten.GraphQL/Program.cs @@ -6,7 +6,6 @@ using Digdir.Domain.Dialogporten.GraphQL.Common; using Digdir.Domain.Dialogporten.GraphQL.Common.Authentication; using Digdir.Domain.Dialogporten.GraphQL.Common.Authorization; -using Digdir.Domain.Dialogporten.GraphQL.Common.Extensions; using Digdir.Domain.Dialogporten.Infrastructure; using Digdir.Domain.Dialogporten.Application.Common.Extensions.OptionExtensions; using Digdir.Domain.Dialogporten.GraphQL; diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs index 3d127348e..b676e36c9 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using System.Security.Claims; using System.Text.Json; using System.Text.Json.Serialization; using Altinn.Authorization.ABAC.Xacml.JsonProfile; diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs index 4e88b8be6..71983e8e7 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/RedisHealthCheck.cs @@ -1,6 +1,3 @@ -using System; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Diagnostics.HealthChecks; using StackExchange.Redis; using Microsoft.Extensions.Options; diff --git a/src/Digdir.Domain.Dialogporten.Service/Program.cs b/src/Digdir.Domain.Dialogporten.Service/Program.cs index 8844ecd8a..836a3d3e4 100644 --- a/src/Digdir.Domain.Dialogporten.Service/Program.cs +++ b/src/Digdir.Domain.Dialogporten.Service/Program.cs @@ -6,7 +6,6 @@ using Serilog; using Digdir.Domain.Dialogporten.Application.Externals.Presentation; using Digdir.Domain.Dialogporten.Domain; -using Digdir.Domain.Dialogporten.Domain.Common.EventPublisher; using Digdir.Domain.Dialogporten.Service; using Digdir.Domain.Dialogporten.Service.Consumers; using Digdir.Library.Utils.AspNet; From 6b776960a967a88c4ea9284ad521dc28a54d40ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 25 Oct 2024 14:48:49 +0200 Subject: [PATCH 2/4] Collection expression --- .../Extensions/ClaimsPrincipalExtensionsTests.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs b/tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs index 8c2204bdc..42ff00431 100644 --- a/tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs +++ b/tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Features/V1/Common/Extensions/ClaimsPrincipalExtensionsTests.cs @@ -9,10 +9,9 @@ public class ClaimsPrincipalExtensionsTests public void TryGetAuthenticationLevel_Should_Parse_Idporten_Acr_Claim_For_Level3() { // Arrange - var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(new[] - { + var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity([ new Claim("acr", "idporten-loa-substantial") - })); + ])); // Act var result = claimsPrincipal.TryGetAuthenticationLevel(out var authenticationLevel); @@ -26,10 +25,9 @@ public void TryGetAuthenticationLevel_Should_Parse_Idporten_Acr_Claim_For_Level3 public void TryGetAuthenticationLevel_Should_Parse_Idporten_Acr_Claim_For_Level4() { // Arrange - var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(new[] - { + var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity([ new Claim("acr", "idporten-loa-high") - })); + ])); // Act var result = claimsPrincipal.TryGetAuthenticationLevel(out var authenticationLevel); @@ -43,11 +41,10 @@ public void TryGetAuthenticationLevel_Should_Parse_Idporten_Acr_Claim_For_Level4 public void TryGetAuthenticationLevel_Should_Parse_Altinn_Authlevel_First() { // Arrange - var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(new[] - { + var claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity([ new Claim("acr", "idporten-loa-high"), new Claim("urn:altinn:authlevel", "5") - })); + ])); // Act var result = claimsPrincipal.TryGetAuthenticationLevel(out var authenticationLevel); From c89d329b811e718106c20a8b475b4be6c7f3e577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 25 Oct 2024 15:23:01 +0200 Subject: [PATCH 3/4] dot dot dot --- .../V1/Common/Content/ContentValueDto.cs | 2 +- .../Content/DialogContentInputConverter.cs | 2 +- .../TransmissionContentInputConverter.cs | 2 +- .../Common/Localizations/LocalizationDto.cs | 4 +-- .../Queries/Get/GetDialogTransmissionDto.cs | 2 +- .../Search/SearchDialogTransmissionDto.cs | 2 +- .../Dialogs/Queries/Get/GetDialogDto.cs | 28 ++++++++-------- .../Dialogs/Queries/Search/SearchDialogDto.cs | 6 ++-- .../Queries/Search/SearchDialogDtoBase.cs | 12 +++---- .../Commands/Create/CreateDialogDto.cs | 32 +++++++++---------- .../Commands/Update/UpdateDialogDto.cs | 12 +++---- .../Dialogs/Queries/Get/GetDialogDto.cs | 26 +++++++-------- .../Dialogs/Queries/Search/SearchDialogDto.cs | 8 ++--- .../Queries/Search/SearchDialogDtoBase.cs | 10 +++--- 14 files changed, 74 insertions(+), 74 deletions(-) diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs index 2c6a9f77a..c3db7d6a5 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs @@ -6,7 +6,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.Common.Content; public sealed class ContentValueDto { /// - /// A list of localizations for the content + /// A list of localizations for the content. /// public List Value { get; set; } = []; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs index 8235923ab..6c4333073 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/DialogContentInputConverter.cs @@ -11,7 +11,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.Common.Content; /// /// TODO: Discuss this with the team later. It works for now -/// This class is used to map bewteen the incoming dto object and the internal dialog content structure. +/// This class is used to map between the incoming dto object and the internal dialog content structure. /// Value needs to be mapped from a list of LocalizationDto in order for merging to work. /// internal sealed class IntermediateDialogContent diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs index 44dd6698b..346cac394 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/TransmissionContentInputConverter.cs @@ -11,7 +11,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.Common.Content; /// /// TODO: Discuss this with the team later. It works for now -/// This class is used to map bewteen the incoming dto object and the internal transmission content structure. +/// This class is used to map between the incoming dto object and the internal transmission content structure. /// Value needs to be mapped from a list of LocalizationDto in order for merging to work. /// /// We might want to consider combining this class with DialogContentInputConverter later. diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs index ce209d973..d7d08dc54 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Localizations/LocalizationDto.cs @@ -7,12 +7,12 @@ public sealed class LocalizationDto private readonly string _languageCode = null!; /// - /// The localized text or URI reference + /// The localized text or URI reference. /// public required string Value { get; init; } /// - /// The language code of the localization in ISO 639-1 format + /// The language code of the localization in ISO 639-1 format. /// /// nb public required string LanguageCode 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 527df6efa..0beb4312f 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 @@ -25,7 +25,7 @@ public sealed class GetDialogTransmissionDto /// /// Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and - /// the attachments will not be available + /// the attachments will not be available. /// public bool IsAuthorized { get; set; } diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs index 2725078c3..eac474d0b 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/DialogTransmissions/Queries/Search/SearchDialogTransmissionDto.cs @@ -25,7 +25,7 @@ public sealed class SearchDialogTransmissionDto /// /// Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and - /// the attachments will not be available + /// the attachments will not be available. /// public bool IsAuthorized { 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 a588a0c2a..40ab0988f 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 @@ -39,12 +39,12 @@ public sealed class GetDialogDto public string ServiceResource { get; set; } = null!; /// - /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType) + /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType). /// public string ServiceResourceType { get; set; } = null!; /// - /// The party code representing the organization or person that the dialog belongs to in URN format + /// The party code representing the organization or person that the dialog belongs to in URN format. /// /// /// urn:altinn:person:identifier-no:01125512345 @@ -59,7 +59,7 @@ public sealed class GetDialogDto public int? Progress { get; set; } /// - /// Optional process identifier used to indicate a business process this dialog belongs to + /// Optional process identifier used to indicate a business process this dialog belongs to. /// public string? Process { get; set; } @@ -122,23 +122,23 @@ public sealed class GetDialogDto public SystemLabel.Values SystemLabel { get; set; } /// - /// The dialog unstructured text content + /// The dialog unstructured text content. /// public GetDialogContentDto Content { get; set; } = null!; /// /// The dialog token. May be used (if supported) against external URLs referred to in this dialog's apiActions, - /// transmissions or attachments. Should also be used for front-channel embeds. + /// transmissions or attachments. It should also be used for front-channel embeds. /// public string? DialogToken { get; set; } /// - /// The attachments associated with the dialog (on an aggregate level) + /// The attachments associated with the dialog (on an aggregate level). /// public List Attachments { get; set; } = []; /// - /// The immutable list of transmissions associated with the dialog + /// The immutable list of transmissions associated with the dialog. /// public List Transmissions { get; set; } = []; @@ -193,7 +193,7 @@ public sealed class GetDialogDialogTransmissionDto /// /// Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and - /// the attachments will not be available + /// the attachments will not be available. /// public bool IsAuthorized { get; set; } @@ -220,12 +220,12 @@ public sealed class GetDialogDialogTransmissionDto public GetDialogDialogTransmissionSenderActorDto Sender { get; set; } = null!; /// - /// The transmission unstructured text content + /// The transmission unstructured text content. /// public GetDialogDialogTransmissionContentDto Content { get; set; } = null!; /// - /// The transmission-level attachments + /// The transmission-level attachments. /// public List Attachments { get; set; } = []; } @@ -238,12 +238,12 @@ public sealed class GetDialogDialogSeenLogDto public Guid Id { get; set; } /// - /// The timestamp when the dialog revision was seen + /// The timestamp when the dialog revision was seen. /// public DateTimeOffset SeenAt { get; set; } /// - /// The actor that saw the dialog revision + /// The actor that saw the dialog revision. /// public GetDialogDialogSeenLogSeenByActorDto SeenBy { get; set; } = null!; @@ -418,7 +418,7 @@ public sealed class GetDialogDialogApiActionDto /// /// String identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, - /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog + /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog. /// /// write public string Action { get; set; } = null!; @@ -518,7 +518,7 @@ public sealed class GetDialogDialogGuiActionDto public Guid Id { get; set; } /// - /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, + /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy. /// public string Action { get; set; } = null!; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs index ea9abc59d..f4c2a854d 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs @@ -7,7 +7,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.EndUser.Dialogs.Que public sealed class SearchDialogDto : SearchDialogDtoBase { /// - /// The content of the dialog in search results + /// The content of the dialog in search results. /// [JsonPropertyOrder(100)] // ILU MAGNUS public SearchDialogContentDto Content { get; set; } = null!; @@ -37,8 +37,8 @@ public sealed class SearchDialogContentDto } /// -/// TOOD: Discuss this with the team later. It works for now -/// This class is used in order to keep using ProjectTo and existing PaginationList code. +/// TODO: Discuss this with the team later. It works for now +/// This class is used to keep using ProjectTo and existing PaginationList code. /// We first map to this using ProjectTo, then map to the new DialogContent structure /// in the SearchDialog handlers, after EF core is done loading the data. /// Then we create a new PaginatedList with the outwards facing dto diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs index ee7f9f9f3..92d14120a 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDtoBase.cs @@ -28,12 +28,12 @@ public class SearchDialogDtoBase public string ServiceResource { get; set; } = null!; /// - /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType) + /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType). /// public string ServiceResourceType { get; set; } = null!; /// - /// The party code representing the organization or person that the dialog belongs to in URN format + /// The party code representing the organization or person that the dialog belongs to in URN format. /// /// /// urn:altinn:person:identifier-no:01125512345 @@ -48,12 +48,12 @@ public class SearchDialogDtoBase public int? Progress { get; set; } /// - /// Optional process identifier used to indicate a business process this dialog belongs to + /// Optional process identifier used to indicate a business process this dialog belongs to. /// public string? Process { get; set; } /// - /// Optional preceding process identifier to indicate the business process that preceded the process indicated in the "Process" field. Cannot be set without also "Process" being set. + /// Optional preceding process identifier to indicate the business process that preceded the process indicated in the "Process" field. Cannot be set without also "Process" being set. /// public string? PrecedingProcess { get; set; } @@ -117,12 +117,12 @@ public sealed class SearchDialogDialogSeenLogDto public Guid Id { get; set; } /// - /// The timestamp when the dialog revision was seen + /// The timestamp when the dialog revision was seen. /// public DateTimeOffset SeenAt { get; set; } /// - /// The actor that saw the dialog revision + /// The actor that saw the dialog revision. /// public SearchDialogDialogSeenLogSeenByActorDto SeenBy { get; set; } = null!; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs index d49e66524..d7e75b329 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogDto.cs @@ -14,7 +14,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.Dialog public class CreateDialogDto { /// - /// A self-defined UUIDv7 may be provided in order to support idempotent creation of dialogs. If not provided, a new UUIDv7 will be generated. + /// A self-defined UUIDv7 may be provided to support idempotent creation of dialogs. If not provided, a new UUIDv7 will be generated. /// /// 01913cd5-784f-7d3b-abef-4c77b1f0972d public Guid? Id { get; set; } @@ -28,7 +28,7 @@ public class CreateDialogDto public string ServiceResource { get; set; } = null!; /// - /// The party code representing the organization or person that the dialog belongs to in URN format + /// The party code representing the organization or person that the dialog belongs to in URN format. /// /// /// urn:altinn:person:identifier-no:01125512345 @@ -67,7 +67,7 @@ public class CreateDialogDto public DateTimeOffset? DueAt { get; set; } /// - /// Optional process identifier used to indicate a business process this dialog belongs to + /// Optional process identifier used to indicate a business process this dialog belongs to. /// public string? Process { get; set; } /// @@ -85,14 +85,14 @@ public class CreateDialogDto public DateTimeOffset? ExpiresAt { get; set; } /// - /// If set, will override the date and time when the dialog is set as created + /// If set, will override the date and time when the dialog is set as created. /// If not supplied, the current date /time will be used. /// /// 2022-12-31T23:59:59Z public DateTimeOffset CreatedAt { get; set; } /// - /// If set, will override the date and time when the dialog is set as last updated + /// If set, will override the date and time when the dialog is set as last updated. /// If not supplied, the current date /time will be used. /// /// 2022-12-31T23:59:59Z @@ -104,11 +104,11 @@ public class CreateDialogDto public DialogStatus.Values Status { get; set; } /// - /// Set the system label of the dialog Migration purposes + /// Set the system label of the dialog Migration purposes. /// public SystemLabel.Values? SystemLabel { get; set; } /// - /// The dialog unstructured text content + /// The dialog unstructured text content. /// public CreateDialogContentDto Content { get; set; } = null!; @@ -118,12 +118,12 @@ public class CreateDialogDto public List SearchTags { get; set; } = []; /// - /// The attachments associated with the dialog (on an aggregate level) + /// The attachments associated with the dialog (on an aggregate level). /// public List Attachments { get; set; } = []; /// - /// The immutable list of transmissions associated with the dialog + /// The immutable list of transmissions associated with the dialog. /// public List Transmissions { get; set; } = []; @@ -146,13 +146,13 @@ public class CreateDialogDto public sealed class CreateDialogDialogTransmissionDto { /// - /// A self-defined UUIDv7 may be provided in order to support idempotent creation of transmissions. If not provided, a new UUIDv7 will be generated. + /// A self-defined UUIDv7 may be provided to support idempotent creation of transmissions. If not provided, a new UUIDv7 will be generated. /// /// 01913cd5-784f-7d3b-abef-4c77b1f0972d public Guid? Id { get; set; } /// - /// If supplied, overrides the creating date and time for the transmission + /// If supplied, overrides the creating date and time for the transmission. /// If not supplied, the current date /time will be used. /// public DateTimeOffset CreatedAt { get; set; } @@ -196,12 +196,12 @@ public sealed class CreateDialogDialogTransmissionDto public CreateDialogDialogTransmissionSenderActorDto Sender { get; set; } = null!; /// - /// The transmission unstructured text content + /// The transmission unstructured text content. /// public CreateDialogDialogTransmissionContentDto Content { get; set; } = null!; /// - /// The transmission-level attachments + /// The transmission-level attachments. /// public List Attachments { get; set; } = []; } @@ -275,7 +275,7 @@ public sealed class CreateDialogSearchTagDto public sealed class CreateDialogDialogActivityDto { /// - /// A self-defined UUIDv7 may be provided in order to support idempotent creation of activities. If not provided, a new UUIDv7 will be generated. + /// A self-defined UUIDv7 may be provided to support idempotent creation of activities. If not provided, a new UUIDv7 will be generated. /// /// 01913cd5-784f-7d3b-abef-4c77b1f0972d public Guid? Id { get; set; } @@ -361,7 +361,7 @@ public sealed class CreateDialogDialogApiActionDto { /// /// String identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, - /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog + /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog. /// /// write public string Action { get; set; } = null!; @@ -438,7 +438,7 @@ public sealed class CreateDialogDialogApiActionEndpointDto public sealed class CreateDialogDialogGuiActionDto { /// - /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, + /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy. /// public string Action { get; set; } = null!; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs index 5dfe1ab24..fb3cdd3d6 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Update/UpdateDialogDto.cs @@ -57,7 +57,7 @@ public sealed class UpdateDialogDto public DialogStatus.Values Status { get; set; } /// - /// The dialog unstructured text content + /// The dialog unstructured text content. /// public UpdateDialogContentDto Content { get; set; } = null!; @@ -67,7 +67,7 @@ public sealed class UpdateDialogDto public List SearchTags { get; set; } = []; /// - /// The attachments associated with the dialog (on an aggregate level) + /// The attachments associated with the dialog (on an aggregate level). /// public List Attachments { get; set; } = []; @@ -148,12 +148,12 @@ public class UpdateDialogDialogTransmissionDto public UpdateDialogDialogTransmissionSenderActorDto Sender { get; set; } = null!; /// - /// The transmission unstructured text content + /// The transmission unstructured text content. /// public UpdateDialogDialogTransmissionContentDto Content { get; set; } = null!; /// - /// The transmission-level attachments + /// The transmission-level attachments. /// public List Attachments { get; set; } = []; } @@ -314,7 +314,7 @@ public sealed class UpdateDialogDialogApiActionDto /// /// String identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, - /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog + /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog. /// /// write public string Action { get; set; } = null!; @@ -403,7 +403,7 @@ public sealed class UpdateDialogDialogGuiActionDto public Guid? Id { get; set; } /// - /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, + /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy. /// public string Action { get; set; } = null!; 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 2d9469214..8b067b71f 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 @@ -39,12 +39,12 @@ public sealed class GetDialogDto public string ServiceResource { get; set; } = null!; /// - /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType) + /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType). /// public string ServiceResourceType { get; set; } = null!; /// - /// The party code representing the organization or person that the dialog belongs to in URN format + /// The party code representing the organization or person that the dialog belongs to in URN format. /// /// /// urn:altinn:person:identifier-no:01125512345 @@ -59,7 +59,7 @@ public sealed class GetDialogDto public int? Progress { get; set; } /// - /// Optional process identifier used to indicate a business process this dialog belongs to + /// Optional process identifier used to indicate a business process this dialog belongs to. /// public string? Process { get; set; } @@ -134,7 +134,7 @@ public sealed class GetDialogDto public SystemLabel.Values SystemLabel { get; set; } /// - /// The dialog unstructured text content + /// The dialog unstructured text content. /// public GetDialogContentDto Content { get; set; } = null!; @@ -144,12 +144,12 @@ public sealed class GetDialogDto public List? SearchTags { get; set; } /// - /// The attachments associated with the dialog (on an aggregate level) + /// The attachments associated with the dialog (on an aggregate level). /// public List Attachments { get; set; } = []; /// - /// The immutable list of transmissions associated with the dialog + /// The immutable list of transmissions associated with the dialog. /// public List Transmissions { get; set; } = []; @@ -230,12 +230,12 @@ public sealed class GetDialogDialogTransmissionDto public GetDialogDialogTransmissionSenderActorDto Sender { get; set; } = null!; /// - /// The transmission unstructured text content + /// The transmission unstructured text content. /// public GetDialogDialogTransmissionContentDto Content { get; set; } = null!; /// - /// The transmission-level attachments + /// The transmission-level attachments. /// public List Attachments { get; set; } = []; } @@ -248,12 +248,12 @@ public sealed class GetDialogDialogSeenLogDto public Guid Id { get; set; } /// - /// The timestamp when the dialog revision was seen + /// The timestamp when the dialog revision was seen. /// public DateTimeOffset SeenAt { get; set; } /// - /// The actor that saw the dialog revision + /// The actor that saw the dialog revision. /// public GetDialogDialogSeenLogSeenByActorDto SeenBy { get; set; } = null!; @@ -265,7 +265,7 @@ public sealed class GetDialogDialogSeenLogDto public bool? IsViaServiceOwner { get; set; } /// - /// Flag indicating whether the seen log entry was created by the current end user, if provided in the query + /// Flag indicating whether the seen log entry was created by the current end user, if provided in the query. /// public bool IsCurrentEndUser { get; set; } } @@ -437,7 +437,7 @@ public sealed class GetDialogDialogApiActionDto /// /// String identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, - /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog + /// which by default is the policy belonging to the service referred to by "serviceResource" in the dialog. /// /// write public string Action { get; set; } = null!; @@ -531,7 +531,7 @@ public sealed class GetDialogDialogGuiActionDto public Guid Id { get; set; } /// - /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy, + /// The action identifier for the action, corresponding to the "action" attributeId used in the XACML service policy. /// public string Action { get; set; } = null!; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs index 3be09c6eb..398b6cb02 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDto.cs @@ -7,7 +7,7 @@ namespace Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.Dialog public sealed class SearchDialogDto : SearchDialogDtoBase { /// - /// The content of the dialog in search results + /// The content of the dialog in search results. /// [JsonPropertyOrder(100)] // ILU MAGNUS public SearchDialogContentDto Content { get; set; } = null!; @@ -37,11 +37,11 @@ public sealed class SearchDialogContentDto } /// -/// TOOD: Discuss this with the team later. It works for now -/// This class is used in order to keep using ProjectTo and existing PaginationList code. +/// TODO: Discuss this with the team later. It works for now +/// This class is used to keep using ProjectTo and existing PaginationList code. /// We first map to this using ProjectTo, then map to the new DialogContent structure /// in the SearchDialog handlers, after EF core is done loading the data. -/// Then we create a new PaginatedList with the outwards facing dto +/// Then we create a new PaginatedList with the outwards facing dto. /// public sealed class IntermediateSearchDialogDto : SearchDialogDtoBase { diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs index ddde4c035..e2620a405 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/SearchDialogDtoBase.cs @@ -34,12 +34,12 @@ public class SearchDialogDtoBase public string ServiceResource { get; set; } = null!; /// - /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType) + /// The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType). /// public string ServiceResourceType { get; set; } = null!; /// - /// The party code representing the organization or person that the dialog belongs to in URN format + /// The party code representing the organization or person that the dialog belongs to in URN format. /// /// /// urn:altinn:person:identifier-no:01125512345 @@ -54,7 +54,7 @@ public class SearchDialogDtoBase public int? Progress { get; set; } /// - /// Optional process identifier used to indicate a business process this dialog belongs to + /// Optional process identifier used to indicate a business process this dialog belongs to. /// public string? Process { get; set; } @@ -129,12 +129,12 @@ public sealed class SearchDialogDialogSeenLogDto public Guid Id { get; set; } /// - /// The timestamp when the dialog revision was seen + /// The timestamp when the dialog revision was seen. /// public DateTimeOffset SeenAt { get; set; } /// - /// The actor that saw the dialog revision + /// The actor that saw the dialog revision. /// public SearchDialogDialogSeenLogSeenByActorDto SeenBy { get; set; } = null!; From 21d398d29e80d363d74314041715573f0abdd7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Fri, 25 Oct 2024 15:28:18 +0200 Subject: [PATCH 4/4] swag --- docs/schema/V1/swagger.verified.json | 140 +++++++++++++-------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/docs/schema/V1/swagger.verified.json b/docs/schema/V1/swagger.verified.json index 6e52b17d8..c13d2b9e3 100644 --- a/docs/schema/V1/swagger.verified.json +++ b/docs/schema/V1/swagger.verified.json @@ -73,7 +73,7 @@ "type": "string" }, "value": { - "description": "A list of localizations for the content", + "description": "A list of localizations for the content.", "items": { "$ref": "#/components/schemas/LocalizationDto" }, @@ -155,14 +155,14 @@ "type": "array" }, "attachments": { - "description": "The attachments associated with the dialog (on an aggregate level)", + "description": "The attachments associated with the dialog (on an aggregate level).", "items": { "$ref": "#/components/schemas/CreateDialogDialogAttachmentDto" }, "type": "array" }, "content": { - "description": "The dialog unstructured text content", + "description": "The dialog unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/CreateDialogContentDto" @@ -170,7 +170,7 @@ ] }, "createdAt": { - "description": "If set, will override the date and time when the dialog is set as created\nIf not supplied, the current date /time will be used.", + "description": "If set, will override the date and time when the dialog is set as created.\nIf not supplied, the current date /time will be used.", "example": "2022-12-31T23:59:59Z", "format": "date-time", "type": "string" @@ -207,14 +207,14 @@ "type": "array" }, "id": { - "description": "A self-defined UUIDv7 may be provided in order to support idempotent creation of dialogs. If not provided, a new UUIDv7 will be generated.", + "description": "A self-defined UUIDv7 may be provided to support idempotent creation of dialogs. If not provided, a new UUIDv7 will be generated.", "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d", "format": "guid", "nullable": true, "type": "string" }, "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "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" }, @@ -224,7 +224,7 @@ "type": "string" }, "process": { - "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "description": "Optional process identifier used to indicate a business process this dialog belongs to.", "nullable": true, "type": "string" }, @@ -255,7 +255,7 @@ ] }, "systemLabel": { - "description": "Set the system label of the dialog Migration purposes", + "description": "Set the system label of the dialog Migration purposes.", "nullable": true, "oneOf": [ { @@ -264,14 +264,14 @@ ] }, "transmissions": { - "description": "The immutable list of transmissions associated with the dialog", + "description": "The immutable list of transmissions associated with the dialog.", "items": { "$ref": "#/components/schemas/CreateDialogDialogTransmissionDto" }, "type": "array" }, "updatedAt": { - "description": "If set, will override the date and time when the dialog is set as last updated\nIf not supplied, the current date /time will be used.", + "description": "If set, will override the date and time when the dialog is set as last updated.\nIf not supplied, the current date /time will be used.", "example": "2022-12-31T23:59:59Z", "format": "date-time", "type": "string" @@ -367,7 +367,7 @@ "type": "string" }, "id": { - "description": "A self-defined UUIDv7 may be provided in order to support idempotent creation of activities. If not provided, a new UUIDv7 will be generated.", + "description": "A self-defined UUIDv7 may be provided to support idempotent creation of activities. If not provided, a new UUIDv7 will be generated.", "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d", "format": "guid", "nullable": true, @@ -428,7 +428,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog", + "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog.", "example": "write", "type": "string" }, @@ -549,7 +549,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,", + "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy.", "type": "string" }, "authorizationAttribute": { @@ -638,7 +638,7 @@ "additionalProperties": false, "properties": { "attachments": { - "description": "The transmission-level attachments", + "description": "The transmission-level attachments.", "items": { "$ref": "#/components/schemas/CreateDialogTransmissionAttachmentDto" }, @@ -651,7 +651,7 @@ "type": "string" }, "content": { - "description": "The transmission unstructured text content", + "description": "The transmission unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/CreateDialogDialogTransmissionContentDto" @@ -659,7 +659,7 @@ ] }, "createdAt": { - "description": "If supplied, overrides the creating date and time for the transmission\nIf not supplied, the current date /time will be used.", + "description": "If supplied, overrides the creating date and time for the transmission.\nIf not supplied, the current date /time will be used.", "format": "date-time", "type": "string" }, @@ -670,7 +670,7 @@ "type": "string" }, "id": { - "description": "A self-defined UUIDv7 may be provided in order to support idempotent creation of transmissions. If not provided, a new UUIDv7 will be generated.", + "description": "A self-defined UUIDv7 may be provided to support idempotent creation of transmissions. If not provided, a new UUIDv7 will be generated.", "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d", "format": "guid", "nullable": true, @@ -793,7 +793,7 @@ "additionalProperties": false, "properties": { "attachments": { - "description": "The transmission-level attachments", + "description": "The transmission-level attachments.", "items": { "$ref": "#/components/schemas/UpdateDialogTransmissionAttachmentDto" }, @@ -806,7 +806,7 @@ "type": "string" }, "content": { - "description": "The transmission unstructured text content", + "description": "The transmission unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/UpdateDialogDialogTransmissionContentDto" @@ -1329,7 +1329,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog", + "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog.", "example": "write", "type": "string" }, @@ -1362,7 +1362,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog", + "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog.", "example": "write", "type": "string" }, @@ -1623,7 +1623,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,", + "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy.", "type": "string" }, "authorizationAttribute": { @@ -1689,7 +1689,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,", + "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy.", "type": "string" }, "authorizationAttribute": { @@ -1769,12 +1769,12 @@ "type": "boolean" }, "seenAt": { - "description": "The timestamp when the dialog revision was seen", + "description": "The timestamp when the dialog revision was seen.", "format": "date-time", "type": "string" }, "seenBy": { - "description": "The actor that saw the dialog revision", + "description": "The actor that saw the dialog revision.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogDialogSeenLogSeenByActorDto" @@ -1793,7 +1793,7 @@ "type": "string" }, "isCurrentEndUser": { - "description": "Flag indicating whether the seen log entry was created by the current end user, if provided in the query", + "description": "Flag indicating whether the seen log entry was created by the current end user, if provided in the query.", "type": "boolean" }, "isViaServiceOwner": { @@ -1802,12 +1802,12 @@ "type": "boolean" }, "seenAt": { - "description": "The timestamp when the dialog revision was seen", + "description": "The timestamp when the dialog revision was seen.", "format": "date-time", "type": "string" }, "seenBy": { - "description": "The actor that saw the dialog revision", + "description": "The actor that saw the dialog revision.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogDialogSeenLogSeenByActorDtoSO" @@ -2015,7 +2015,7 @@ "additionalProperties": false, "properties": { "attachments": { - "description": "The transmission-level attachments", + "description": "The transmission-level attachments.", "items": { "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentDto" }, @@ -2028,7 +2028,7 @@ "type": "string" }, "content": { - "description": "The transmission unstructured text content", + "description": "The transmission unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogDialogTransmissionContentDto" @@ -2052,7 +2052,7 @@ "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", + "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": { @@ -2084,7 +2084,7 @@ "additionalProperties": false, "properties": { "attachments": { - "description": "The transmission-level attachments", + "description": "The transmission-level attachments.", "items": { "$ref": "#/components/schemas/GetDialogDialogTransmissionAttachmentDtoSO" }, @@ -2097,7 +2097,7 @@ "type": "string" }, "content": { - "description": "The transmission unstructured text content", + "description": "The transmission unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogDialogTransmissionContentDtoSO" @@ -2216,14 +2216,14 @@ "type": "array" }, "attachments": { - "description": "The attachments associated with the dialog (on an aggregate level)", + "description": "The attachments associated with the dialog (on an aggregate level).", "items": { "$ref": "#/components/schemas/GetDialogDialogAttachmentDto" }, "type": "array" }, "content": { - "description": "The dialog unstructured text content", + "description": "The dialog unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogContentDto" @@ -2237,7 +2237,7 @@ "type": "string" }, "dialogToken": { - "description": "The dialog token. May be used (if supported) against external URLs referred to in this dialog\u0027s apiActions,\ntransmissions or attachments. Should also be used for front-channel embeds.", + "description": "The dialog token. May be used (if supported) against external URLs referred to in this dialog\u0027s apiActions,\ntransmissions or attachments. It should also be used for front-channel embeds.", "nullable": true, "type": "string" }, @@ -2284,7 +2284,7 @@ "type": "string" }, "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "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" }, @@ -2294,7 +2294,7 @@ "type": "string" }, "process": { - "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "description": "Optional process identifier used to indicate a business process this dialog belongs to.", "nullable": true, "type": "string" }, @@ -2323,7 +2323,7 @@ "type": "string" }, "serviceResourceType": { - "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType).", "type": "string" }, "status": { @@ -2343,7 +2343,7 @@ ] }, "transmissions": { - "description": "The immutable list of transmissions associated with the dialog", + "description": "The immutable list of transmissions associated with the dialog.", "items": { "$ref": "#/components/schemas/GetDialogDialogTransmissionDto" }, @@ -2376,14 +2376,14 @@ "type": "array" }, "attachments": { - "description": "The attachments associated with the dialog (on an aggregate level)", + "description": "The attachments associated with the dialog (on an aggregate level).", "items": { "$ref": "#/components/schemas/GetDialogDialogAttachmentDtoSO" }, "type": "array" }, "content": { - "description": "The dialog unstructured text content", + "description": "The dialog unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/GetDialogContentDtoSO" @@ -2445,7 +2445,7 @@ "type": "string" }, "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "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" }, @@ -2455,7 +2455,7 @@ "type": "string" }, "process": { - "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "description": "Optional process identifier used to indicate a business process this dialog belongs to.", "nullable": true, "type": "string" }, @@ -2492,7 +2492,7 @@ "type": "string" }, "serviceResourceType": { - "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType).", "type": "string" }, "status": { @@ -2512,7 +2512,7 @@ ] }, "transmissions": { - "description": "The immutable list of transmissions associated with the dialog", + "description": "The immutable list of transmissions associated with the dialog.", "items": { "$ref": "#/components/schemas/GetDialogDialogTransmissionDtoSO" }, @@ -2840,7 +2840,7 @@ "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", + "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": { @@ -3094,12 +3094,12 @@ "additionalProperties": false, "properties": { "languageCode": { - "description": "The language code of the localization in ISO 639-1 format", + "description": "The language code of the localization in ISO 639-1 format.", "example": "nb", "type": "string" }, "value": { - "description": "The localized text or URI reference", + "description": "The localized text or URI reference.", "type": "string" } }, @@ -3601,12 +3601,12 @@ "type": "boolean" }, "seenAt": { - "description": "The timestamp when the dialog revision was seen", + "description": "The timestamp when the dialog revision was seen.", "format": "date-time", "type": "string" }, "seenBy": { - "description": "The actor that saw the dialog revision", + "description": "The actor that saw the dialog revision.", "oneOf": [ { "$ref": "#/components/schemas/SearchDialogDialogSeenLogSeenByActorDto" @@ -3634,12 +3634,12 @@ "type": "boolean" }, "seenAt": { - "description": "The timestamp when the dialog revision was seen", + "description": "The timestamp when the dialog revision was seen.", "format": "date-time", "type": "string" }, "seenBy": { - "description": "The actor that saw the dialog revision", + "description": "The actor that saw the dialog revision.", "oneOf": [ { "$ref": "#/components/schemas/SearchDialogDialogSeenLogSeenByActorDtoSO" @@ -3683,7 +3683,7 @@ "additionalProperties": false, "properties": { "content": { - "description": "The content of the dialog in search results", + "description": "The content of the dialog in search results.", "oneOf": [ { "$ref": "#/components/schemas/SearchDialogContentDto" @@ -3735,17 +3735,17 @@ "type": "string" }, "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "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. ", + "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 ", + "description": "Optional process identifier used to indicate a business process this dialog belongs to.", "nullable": true, "type": "string" }, @@ -3768,7 +3768,7 @@ "type": "string" }, "serviceResourceType": { - "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType).", "type": "string" }, "status": { @@ -3800,7 +3800,7 @@ "additionalProperties": false, "properties": { "content": { - "description": "The content of the dialog in search results", + "description": "The content of the dialog in search results.", "oneOf": [ { "$ref": "#/components/schemas/SearchDialogContentDtoSO" @@ -3852,7 +3852,7 @@ "type": "string" }, "party": { - "description": "The party code representing the organization or person that the dialog belongs to in URN format", + "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" }, @@ -3862,7 +3862,7 @@ "type": "string" }, "process": { - "description": "Optional process identifier used to indicate a business process this dialog belongs to", + "description": "Optional process identifier used to indicate a business process this dialog belongs to.", "nullable": true, "type": "string" }, @@ -3891,7 +3891,7 @@ "type": "string" }, "serviceResourceType": { - "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType)", + "description": "The ServiceResource type, as defined in Altinn Resource Registry (see ResourceType).", "type": "string" }, "status": { @@ -4203,7 +4203,7 @@ "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", + "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": { @@ -4562,7 +4562,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog", + "description": "String identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,\nwhich by default is the policy belonging to the service referred to by \u0022serviceResource\u0022 in the dialog.", "example": "write", "type": "string" }, @@ -4711,7 +4711,7 @@ "additionalProperties": false, "properties": { "action": { - "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy,", + "description": "The action identifier for the action, corresponding to the \u0022action\u0022 attributeId used in the XACML service policy.", "type": "string" }, "authorizationAttribute": { @@ -4807,7 +4807,7 @@ "additionalProperties": false, "properties": { "attachments": { - "description": "The transmission-level attachments", + "description": "The transmission-level attachments.", "items": { "$ref": "#/components/schemas/UpdateDialogTransmissionAttachmentDto" }, @@ -4820,7 +4820,7 @@ "type": "string" }, "content": { - "description": "The transmission unstructured text content", + "description": "The transmission unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/UpdateDialogDialogTransmissionContentDto" @@ -4914,14 +4914,14 @@ "type": "array" }, "attachments": { - "description": "The attachments associated with the dialog (on an aggregate level)", + "description": "The attachments associated with the dialog (on an aggregate level).", "items": { "$ref": "#/components/schemas/UpdateDialogDialogAttachmentDto" }, "type": "array" }, "content": { - "description": "The dialog unstructured text content", + "description": "The dialog unstructured text content.", "oneOf": [ { "$ref": "#/components/schemas/UpdateDialogContentDto" @@ -7438,4 +7438,4 @@ "url": "https://altinn-dev-api.azure-api.net/dialogporten" } ] -} +} \ No newline at end of file