value modications from front
This commit is contained in:
@@ -3,7 +3,9 @@ mutation CreateActivityLog(
|
||||
$description: String!,
|
||||
$activityType: ActivityType!,
|
||||
$userId: String!,
|
||||
$isRead: Boolean
|
||||
$isRead: Boolean,
|
||||
$iconType: String,
|
||||
$iconColor: String
|
||||
) @auth(level: USER) {
|
||||
activityLog_insert(
|
||||
data: {
|
||||
@@ -12,6 +14,8 @@ mutation CreateActivityLog(
|
||||
activityType: $activityType
|
||||
userId: $userId
|
||||
isRead: $isRead
|
||||
iconType: $iconType
|
||||
iconColor: $iconColor
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -22,7 +26,9 @@ mutation UpdateActivityLog(
|
||||
$description: String,
|
||||
$activityType: ActivityType,
|
||||
$userId: String,
|
||||
$isRead: Boolean
|
||||
$isRead: Boolean,
|
||||
$iconType: String,
|
||||
$iconColor: String
|
||||
) @auth(level: USER) {
|
||||
activityLog_update(
|
||||
id: $id,
|
||||
@@ -32,6 +38,8 @@ mutation UpdateActivityLog(
|
||||
activityType: $activityType
|
||||
userId: $userId
|
||||
isRead: $isRead
|
||||
iconType: $iconType
|
||||
iconColor: $iconColor
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ query listActivityLog @auth(level: USER) {
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +21,8 @@ query getActivityLogById(
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,5 +44,7 @@ query filterActivityLog(
|
||||
activityType
|
||||
userId
|
||||
isRead
|
||||
iconType
|
||||
iconColor
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ query listEvents (
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
events(
|
||||
orderBy: {
|
||||
date: $orderByDate
|
||||
createdDate: $orderByCreatedDate
|
||||
}
|
||||
orderBy: [
|
||||
{ date: $orderByDate }
|
||||
{ createdDate: $orderByCreatedDate }
|
||||
]
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
|
||||
@@ -15,6 +15,8 @@ type ActivityLog @table(name: "activity_logs") {
|
||||
activityType: ActivityType!
|
||||
userId: String! # user_id (FK lógica a User.id)
|
||||
isRead: Boolean @default(expr: "false")
|
||||
iconType: String
|
||||
iconColor: String
|
||||
createdDate: Timestamp @default(expr: "request.time")
|
||||
updatedDate: Timestamp @default(expr: "request.time")
|
||||
createdBy: String @default(expr: "auth.uid")
|
||||
|
||||
@@ -7,6 +7,10 @@ enum EventStatus {
|
||||
CONFIRMED
|
||||
COMPLETED
|
||||
CANCELED
|
||||
PARTIAL
|
||||
PARTIAL_STAFFED
|
||||
FULLY_STAFFED
|
||||
EVENT_CREATED
|
||||
}
|
||||
|
||||
enum RecurrenceType {
|
||||
|
||||
Reference in New Issue
Block a user