From fac35ad983412cde3608938401972cfbaaabce22 Mon Sep 17 00:00:00 2001 From: PaulBredl Date: Wed, 5 Jun 2024 17:16:43 +0200 Subject: [PATCH] upgrade meitrex common --- build.gradle | 4 ++-- .../graphql/gamification_engine/event.graphqls | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 1d6cb2e..6f223a5 100644 --- a/build.gradle +++ b/build.gradle @@ -86,8 +86,8 @@ repositories { } dependencies { - implementation 'de.unistuttgart.iste.meitrex:meitrex-common:1.0.4' - implementation 'de.unistuttgart.iste.meitrex:gamification_engine:1.0.4b' + implementation 'de.unistuttgart.iste.meitrex:meitrex-common:1.0.5' + implementation 'de.unistuttgart.iste.meitrex:gamification_engine:1.0.5' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-validation' diff --git a/src/main/resources/graphql/gamification_engine/event.graphqls b/src/main/resources/graphql/gamification_engine/event.graphqls index fa5a0e1..f9d78a5 100644 --- a/src/main/resources/graphql/gamification_engine/event.graphqls +++ b/src/main/resources/graphql/gamification_engine/event.graphqls @@ -34,7 +34,7 @@ interface Event { type DefaultEvent implements Event { id: UUID! - eventType: EventType! + eventType: DefaultEventType! visibility: EventVisibility! userId: UUID visibleToUserIds: [UUID!]! @@ -42,9 +42,9 @@ type DefaultEvent implements Event { timestamp: DateTime! message: String! mostRecentChildTimestamp: DateTime! - parent: Event + parent: DefaultEvent eventData: [DefaultTemplateField!]! - children: [Event!]! @OnDemand + children: [DefaultEvent!]! @OnDemand } input CreateEventInput { @@ -57,6 +57,7 @@ input CreateEventInput { projectId: UUID eventData: [TemplateFieldInput!]! parentId: UUID + visibleToUserIds: [UUID!] = [] } interface EventType { @@ -71,26 +72,26 @@ type DefaultEventType implements EventType { identifier: String! description: String defaultVisibility: EventVisibility! - eventSchema: SchemaDefinition! + eventSchema: DefaultSchemaDefinition! messageTemplate: String! } interface TemplateField { key: String! type: AllowedDataType! - value: String! + value: String } type DefaultTemplateField implements TemplateField { key: String! type: AllowedDataType! - value: String! + value: String } input TemplateFieldInput { key: String! type: AllowedDataType! - value: String! + value: String } interface SchemaDefinition { @@ -98,7 +99,7 @@ interface SchemaDefinition { } type DefaultSchemaDefinition implements SchemaDefinition { - fields: [FieldSchemaDefinition!]! + fields: [DefaultFieldSchemaDefinition!]! } interface FieldSchemaDefinition {