305 lines
4.0 KiB
GraphQL
305 lines
4.0 KiB
GraphQL
query listApplications @auth(level: USER) {
|
|
applications {
|
|
id
|
|
shiftId
|
|
staffId
|
|
status
|
|
appliedAt
|
|
checkInTime
|
|
checkOutTime
|
|
origin
|
|
createdAt
|
|
|
|
shift {
|
|
id
|
|
title
|
|
date
|
|
startTime
|
|
endTime
|
|
location
|
|
status
|
|
|
|
order {
|
|
id
|
|
eventName
|
|
location
|
|
business {
|
|
id
|
|
businessName
|
|
email
|
|
contactName
|
|
}
|
|
vendor {
|
|
id
|
|
companyName
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
shiftRole {
|
|
id
|
|
roleId
|
|
count
|
|
assigned
|
|
startTime
|
|
endTime
|
|
hours
|
|
totalValue
|
|
role {
|
|
id
|
|
name
|
|
costPerHour
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getApplicationById($id: UUID!) @auth(level: USER) {
|
|
application(id: $id) {
|
|
id
|
|
shiftId
|
|
staffId
|
|
status
|
|
appliedAt
|
|
checkInTime
|
|
checkOutTime
|
|
origin
|
|
createdAt
|
|
shift {
|
|
id
|
|
title
|
|
date
|
|
startTime
|
|
endTime
|
|
location
|
|
status
|
|
|
|
order {
|
|
id
|
|
eventName
|
|
location
|
|
business {
|
|
id
|
|
businessName
|
|
email
|
|
contactName
|
|
}
|
|
vendor {
|
|
id
|
|
companyName
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
shiftRole {
|
|
id
|
|
roleId
|
|
count
|
|
assigned
|
|
startTime
|
|
endTime
|
|
hours
|
|
totalValue
|
|
role {
|
|
id
|
|
name
|
|
costPerHour
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getApplicationsByShiftId($shiftId: UUID!) @auth(level: USER) {
|
|
applications(where: { shiftId: { eq: $shiftId } }) {
|
|
id
|
|
shiftId
|
|
staffId
|
|
status
|
|
appliedAt
|
|
checkInTime
|
|
checkOutTime
|
|
origin
|
|
createdAt
|
|
|
|
shift {
|
|
id
|
|
title
|
|
date
|
|
startTime
|
|
endTime
|
|
location
|
|
status
|
|
|
|
order {
|
|
id
|
|
eventName
|
|
location
|
|
business {
|
|
id
|
|
businessName
|
|
email
|
|
contactName
|
|
}
|
|
vendor {
|
|
id
|
|
companyName
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
shiftRole {
|
|
id
|
|
roleId
|
|
count
|
|
assigned
|
|
startTime
|
|
endTime
|
|
hours
|
|
totalValue
|
|
role {
|
|
id
|
|
name
|
|
costPerHour
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
query getApplicationsByShiftIdAndStatus(
|
|
$shiftId: UUID!
|
|
$status: ApplicationStatus!
|
|
$offset: Int
|
|
$limit: Int
|
|
) @auth(level: USER) {
|
|
applications(
|
|
where: {
|
|
shiftId: { eq: $shiftId }
|
|
status: { eq: $status }
|
|
}
|
|
offset: $offset
|
|
limit: $limit
|
|
) {
|
|
id
|
|
shiftId
|
|
staffId
|
|
status
|
|
appliedAt
|
|
checkInTime
|
|
checkOutTime
|
|
origin
|
|
createdAt
|
|
|
|
shift {
|
|
id
|
|
title
|
|
date
|
|
startTime
|
|
endTime
|
|
location
|
|
status
|
|
|
|
order {
|
|
id
|
|
eventName
|
|
location
|
|
business {
|
|
id
|
|
businessName
|
|
email
|
|
contactName
|
|
}
|
|
vendor {
|
|
id
|
|
companyName
|
|
}
|
|
}
|
|
}
|
|
|
|
shiftRole {
|
|
id
|
|
roleId
|
|
count
|
|
assigned
|
|
startTime
|
|
endTime
|
|
hours
|
|
totalValue
|
|
role {
|
|
id
|
|
name
|
|
costPerHour
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getApplicationsByStaffId(
|
|
$staffId: UUID!
|
|
$offset: Int
|
|
$limit: Int
|
|
) @auth(level: USER) {
|
|
applications(
|
|
where: { staffId: { eq: $staffId } }
|
|
offset: $offset
|
|
limit: $limit
|
|
) {
|
|
id
|
|
shiftId
|
|
staffId
|
|
status
|
|
appliedAt
|
|
checkInTime
|
|
checkOutTime
|
|
origin
|
|
createdAt
|
|
|
|
shift {
|
|
id
|
|
title
|
|
date
|
|
startTime
|
|
endTime
|
|
location
|
|
status
|
|
|
|
order {
|
|
id
|
|
eventName
|
|
location
|
|
business {
|
|
id
|
|
businessName
|
|
email
|
|
contactName
|
|
}
|
|
vendor {
|
|
id
|
|
companyName
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
shiftRole {
|
|
id
|
|
roleId
|
|
count
|
|
assigned
|
|
startTime
|
|
endTime
|
|
hours
|
|
totalValue
|
|
role {
|
|
id
|
|
name
|
|
costPerHour
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|