Skip to content

Commit

Permalink
feat: Introduce Transmissions (#932)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Related Issue(s)

- #860 

## 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)

---------

Co-authored-by: Knut Haug <154342485+knuhau@users.noreply.github.com>
  • Loading branch information
oskogstad and knuhau authored Jul 30, 2024
1 parent c527c9f commit 3ca495f
Show file tree
Hide file tree
Showing 51 changed files with 4,284 additions and 292 deletions.
38 changes: 38 additions & 0 deletions docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ type Dialog {
apiActions: [ApiAction!]!
activities: [Activity!]!
seenSinceLastUpdate: [SeenLog!]!
transmissions: [Transmission!]!
}

type DialogByIdDeleted implements DialogByIdError {
Expand Down Expand Up @@ -198,6 +199,24 @@ type SeenLog {
isCurrentEndUser: Boolean!
}

type Transmission {
id: UUID!
createdAt: DateTime!
authorizationAttribute: String
isAuthorized: Boolean!
extendedType: String
relatedTransmissionId: UUID
type: TransmissionType!
sender: Actor!
content: TransmissionContent!
attachments: [Attachment!]!
}

type TransmissionContent {
title: ContentValue!
summary: ContentValue!
}

input SearchDialogInput {
"Filter by one or more service owner codes"
org: [String!]
Expand Down Expand Up @@ -293,6 +312,25 @@ enum HttpVerb {
CONNECT
}

enum TransmissionType {
"For general information, not related to any submissions"
INFORMATION
"Feedback\/receipt accepting a previous submission"
ACCEPTANCE
"Feedback\/error message rejecting a previous submission"
REJECTION
"Question\/request for more information"
REQUEST
"Critical information about the process"
ALERT
"Information about a formal decision (\"resolution\")"
DECISION
"A normal submission of some information\/form"
SUBMISSION
"A submission correcting\/overriding some previously submitted information"
CORRECTION
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the authorize directive shall be applied.By default the authorize directives are applied during the validation phase." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on OBJECT | FIELD_DEFINITION

"The `DateTime` scalar represents an ISO-8601 compliant date time type."
Expand Down
Loading

0 comments on commit 3ca495f

Please sign in to comment.