feat: add associated entities to anomalies
This commit is contained in:
@@ -55,6 +55,22 @@ enum ApprovalState {
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
type AssociatedEntities {
|
||||
attendanceRegistration: [AttendanceRegistration!]
|
||||
employee: [Employee!]
|
||||
plannedTime: [PlannedTime!]
|
||||
tour: [Tour!]
|
||||
workTime: [WorkTime!]
|
||||
}
|
||||
|
||||
type AttendanceRegistration {
|
||||
attendanceRegistrationId: Int!
|
||||
dateTime: DateTime!
|
||||
employeeId: Int!
|
||||
event: String!
|
||||
personnelNumber: String!
|
||||
}
|
||||
|
||||
"""
|
||||
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
||||
"""
|
||||
@@ -65,6 +81,16 @@ type DocumentInfo {
|
||||
tdLocation: String
|
||||
}
|
||||
|
||||
type Employee {
|
||||
id: String!
|
||||
name: String!
|
||||
occuptationalHealthExamination: DateTime
|
||||
personTransportCertificate: DateTime
|
||||
personnelNumber: String!
|
||||
qualification: String
|
||||
surname: String!
|
||||
}
|
||||
|
||||
type HomeDashboardKPIs {
|
||||
anomalyCount: Int!
|
||||
billableTourCount: Int!
|
||||
@@ -148,12 +174,26 @@ type PaginatedTour {
|
||||
totalCount: Int!
|
||||
}
|
||||
|
||||
type PlannedTime {
|
||||
department: String!
|
||||
duration: Int!
|
||||
endDate: DateTime!
|
||||
firstname: String!
|
||||
id: String!
|
||||
note: String
|
||||
pause: Int!
|
||||
startDate: DateTime!
|
||||
surname: String!
|
||||
userId: String!
|
||||
}
|
||||
|
||||
type Query {
|
||||
accountingStateMeta(state: AccountingState!): TourStateMeta!
|
||||
accountingTours(cursor: String, filters: AccountingFilterArgs, state: AccountingState!, take: Int! = 10): PaginatedTour!
|
||||
anomalies(cursor: String, take: Int! = 10): PaginatedAnomaly!
|
||||
anomaliesProto: [Anomaly!]!
|
||||
anomaly(id: String!): Anomaly!
|
||||
associatedEntities(id: String!): AssociatedEntities!
|
||||
groupedAnomalies(cursor: String, take: Int! = 10): PaginatedAnomalyGroup!
|
||||
homeDashboardKpis: HomeDashboardKPIs!
|
||||
managerKpi(ordinanceType: String!): KpiInfo!
|
||||
@@ -337,4 +377,16 @@ type TourStateMeta {
|
||||
negativeRevenueDeviation: Float
|
||||
positiveRevenueDeviation: Float
|
||||
revenueSum: Float
|
||||
}
|
||||
|
||||
type WorkTime {
|
||||
department: String!
|
||||
duration: Int!
|
||||
endDate: DateTime!
|
||||
firstname: String!
|
||||
id: String!
|
||||
pause: Int!
|
||||
startDate: DateTime!
|
||||
surname: String!
|
||||
userId: String!
|
||||
}
|
||||
@@ -48,6 +48,7 @@ export type Anomaly = {
|
||||
description: string;
|
||||
groupKey: string;
|
||||
groupDescription: string;
|
||||
associatedEntities: Generated<unknown | null>;
|
||||
workedOnBy: string;
|
||||
sleepTimer: number;
|
||||
sleepSince: Timestamp | null;
|
||||
|
||||
Reference in New Issue
Block a user