Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce Transmissions #932

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading