chore(legacy): relocate v1 dataconnect source
This commit is contained in:
69
legacy/dataconnect-v1/connector/shiftRole/mutations.gql
Normal file
69
legacy/dataconnect-v1/connector/shiftRole/mutations.gql
Normal file
@@ -0,0 +1,69 @@
|
||||
mutation createShiftRole(
|
||||
$shiftId: UUID!
|
||||
$roleId: UUID!
|
||||
$count: Int!
|
||||
$assigned: Int
|
||||
$startTime: Timestamp
|
||||
$endTime: Timestamp
|
||||
$hours: Float
|
||||
$department: String
|
||||
$uniform: String
|
||||
$breakType: BreakDuration
|
||||
$isBreakPaid: Boolean
|
||||
$totalValue: Float
|
||||
) @auth(level: USER) {
|
||||
shiftRole_insert(
|
||||
data: {
|
||||
shiftId: $shiftId
|
||||
roleId: $roleId
|
||||
count: $count
|
||||
assigned: $assigned
|
||||
startTime: $startTime
|
||||
endTime: $endTime
|
||||
hours: $hours
|
||||
department: $department
|
||||
uniform: $uniform
|
||||
breakType: $breakType
|
||||
isBreakPaid: $isBreakPaid
|
||||
totalValue: $totalValue
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateShiftRole(
|
||||
$shiftId: UUID!
|
||||
$roleId: UUID!
|
||||
$count: Int
|
||||
$assigned: Int
|
||||
$startTime: Timestamp
|
||||
$endTime: Timestamp
|
||||
$hours: Float
|
||||
$department: String
|
||||
$uniform: String
|
||||
$breakType: BreakDuration
|
||||
$isBreakPaid: Boolean
|
||||
$totalValue: Float
|
||||
) @auth(level: USER) {
|
||||
shiftRole_update(
|
||||
key: { shiftId: $shiftId, roleId: $roleId }
|
||||
data: {
|
||||
count: $count
|
||||
assigned: $assigned
|
||||
startTime: $startTime
|
||||
endTime: $endTime
|
||||
hours: $hours
|
||||
department: $department
|
||||
uniform: $uniform
|
||||
breakType: $breakType
|
||||
isBreakPaid: $isBreakPaid
|
||||
totalValue: $totalValue
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteShiftRole(
|
||||
$shiftId: UUID!
|
||||
$roleId: UUID!
|
||||
) @auth(level: USER) {
|
||||
shiftRole_delete(key: { shiftId: $shiftId, roleId: $roleId })
|
||||
}
|
||||
Reference in New Issue
Block a user