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