chore(legacy): relocate v1 dataconnect source
This commit is contained in:
71
legacy/dataconnect-v1/connector/assignment/mutations.gql
Normal file
71
legacy/dataconnect-v1/connector/assignment/mutations.gql
Normal file
@@ -0,0 +1,71 @@
|
||||
mutation CreateAssignment(
|
||||
$workforceId: UUID!
|
||||
$title: String
|
||||
$description: String
|
||||
$instructions: String
|
||||
$status: AssignmentStatus
|
||||
$tipsAvailable: Boolean
|
||||
$travelTime: Boolean
|
||||
$mealProvided: Boolean
|
||||
$parkingAvailable: Boolean
|
||||
$gasCompensation: Boolean
|
||||
$managers: [Any!]
|
||||
$roleId: UUID!
|
||||
$shiftId: UUID!
|
||||
) @auth(level: USER) {
|
||||
assignment_insert(
|
||||
data: {
|
||||
workforceId: $workforceId
|
||||
title: $title
|
||||
description: $description
|
||||
instructions: $instructions
|
||||
status: $status
|
||||
tipsAvailable: $tipsAvailable
|
||||
travelTime: $travelTime
|
||||
mealProvided: $mealProvided
|
||||
parkingAvailable: $parkingAvailable
|
||||
gasCompensation: $gasCompensation
|
||||
managers: $managers
|
||||
roleId: $roleId
|
||||
shiftId: $shiftId
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation UpdateAssignment(
|
||||
$id: UUID!
|
||||
$title: String
|
||||
$description: String
|
||||
$instructions: String
|
||||
$status: AssignmentStatus
|
||||
$tipsAvailable: Boolean
|
||||
$travelTime: Boolean
|
||||
$mealProvided: Boolean
|
||||
$parkingAvailable: Boolean
|
||||
$gasCompensation: Boolean
|
||||
$managers: [Any!]
|
||||
$roleId: UUID!
|
||||
$shiftId: UUID!
|
||||
) @auth(level: USER) {
|
||||
assignment_update(
|
||||
id: $id
|
||||
data: {
|
||||
title: $title
|
||||
description: $description
|
||||
instructions: $instructions
|
||||
status: $status
|
||||
tipsAvailable: $tipsAvailable
|
||||
travelTime: $travelTime
|
||||
mealProvided: $mealProvided
|
||||
parkingAvailable: $parkingAvailable
|
||||
gasCompensation: $gasCompensation
|
||||
managers: $managers
|
||||
roleId: $roleId
|
||||
shiftId: $shiftId
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation DeleteAssignment($id: UUID!) @auth(level: USER) {
|
||||
assignment_delete(id: $id)
|
||||
}
|
||||
Reference in New Issue
Block a user