adding isProfileVisible for the staff
This commit is contained in:
@@ -551,6 +551,7 @@ query listAcceptedApplicationsByBusinessForDay(
|
|||||||
applications(
|
applications(
|
||||||
where: {
|
where: {
|
||||||
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
||||||
|
staff: { isProfileVisible: { eq: true } }
|
||||||
shift: {
|
shift: {
|
||||||
date: { ge: $dayStart, le: $dayEnd }
|
date: { ge: $dayStart, le: $dayEnd }
|
||||||
order: { businessId: { eq: $businessId } }
|
order: { businessId: { eq: $businessId } }
|
||||||
@@ -581,6 +582,7 @@ query listStaffsApplicationsByBusinessForDay(
|
|||||||
applications(
|
applications(
|
||||||
where: {
|
where: {
|
||||||
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
|
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
|
||||||
|
staff: { isProfileVisible: { eq: true } }
|
||||||
shift: {
|
shift: {
|
||||||
date: { ge: $dayStart, le: $dayEnd }
|
date: { ge: $dayStart, le: $dayEnd }
|
||||||
order: { businessId: { eq: $businessId } }
|
order: { businessId: { eq: $businessId } }
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ mutation CreateStaff(
|
|||||||
$employmentType: EmploymentType
|
$employmentType: EmploymentType
|
||||||
$initial: String
|
$initial: String
|
||||||
$englishRequired: Boolean
|
$englishRequired: Boolean
|
||||||
|
$isProfileVisible: Boolean
|
||||||
$city: String
|
$city: String
|
||||||
$addres: String
|
$addres: String
|
||||||
$placeId: String
|
$placeId: String
|
||||||
@@ -87,6 +88,7 @@ mutation CreateStaff(
|
|||||||
employmentType: $employmentType
|
employmentType: $employmentType
|
||||||
initial: $initial
|
initial: $initial
|
||||||
englishRequired: $englishRequired
|
englishRequired: $englishRequired
|
||||||
|
isProfileVisible: $isProfileVisible
|
||||||
city: $city
|
city: $city
|
||||||
addres: $addres
|
addres: $addres
|
||||||
placeId: $placeId
|
placeId: $placeId
|
||||||
@@ -143,6 +145,7 @@ mutation UpdateStaff(
|
|||||||
$employmentType: EmploymentType
|
$employmentType: EmploymentType
|
||||||
$initial: String
|
$initial: String
|
||||||
$englishRequired: Boolean
|
$englishRequired: Boolean
|
||||||
|
$isProfileVisible: Boolean
|
||||||
$city: String
|
$city: String
|
||||||
$addres: String
|
$addres: String
|
||||||
$placeId: String
|
$placeId: String
|
||||||
@@ -193,6 +196,7 @@ mutation UpdateStaff(
|
|||||||
employmentType: $employmentType
|
employmentType: $employmentType
|
||||||
initial: $initial
|
initial: $initial
|
||||||
englishRequired: $englishRequired
|
englishRequired: $englishRequired
|
||||||
|
isProfileVisible: $isProfileVisible
|
||||||
city: $city
|
city: $city
|
||||||
addres: $addres
|
addres: $addres
|
||||||
placeId: $placeId
|
placeId: $placeId
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ type Staff @table(name: "staffs") {
|
|||||||
initial: String
|
initial: String
|
||||||
englishRequired: Boolean @default(expr: "false")
|
englishRequired: Boolean @default(expr: "false")
|
||||||
|
|
||||||
|
isProfileVisible: Boolean @default(expr: "true")
|
||||||
|
|
||||||
addres: String
|
addres: String
|
||||||
placeId: String
|
placeId: String
|
||||||
latitude: Float
|
latitude: Float
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user