chore(legacy): relocate v1 dataconnect source
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
|
||||
mutation createStaffAvailability(
|
||||
$staffId: UUID!
|
||||
$day: DayOfWeek!
|
||||
$slot: AvailabilitySlot!
|
||||
$status: AvailabilityStatus
|
||||
$notes: String
|
||||
) @auth(level: USER) {
|
||||
staffAvailability_insert(
|
||||
data: {
|
||||
staffId: $staffId
|
||||
day: $day
|
||||
slot: $slot
|
||||
status: $status
|
||||
notes: $notes
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateStaffAvailability(
|
||||
$staffId: UUID!
|
||||
$day: DayOfWeek!
|
||||
$slot: AvailabilitySlot!
|
||||
$status: AvailabilityStatus
|
||||
$notes: String
|
||||
) @auth(level: USER) {
|
||||
staffAvailability_update(
|
||||
key: { staffId: $staffId, day: $day, slot: $slot }
|
||||
data: {
|
||||
status: $status
|
||||
notes: $notes
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteStaffAvailability(
|
||||
$staffId: UUID!
|
||||
$day: DayOfWeek!
|
||||
$slot: AvailabilitySlot!
|
||||
) @auth(level: USER) {
|
||||
staffAvailability_delete(
|
||||
key: { staffId: $staffId, day: $day, slot: $slot }
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user