Merge pull request #425 from Oloodi/worker_visibility_settings
Worker visibility settings
This commit is contained in:
@@ -554,6 +554,7 @@ query listAcceptedApplicationsByBusinessForDay(
|
||||
applications(
|
||||
where: {
|
||||
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
||||
staff: { isProfileVisible: { eq: true } }
|
||||
shift: {
|
||||
date: { ge: $dayStart, le: $dayEnd }
|
||||
order: { businessId: { eq: $businessId } }
|
||||
@@ -584,6 +585,7 @@ query listStaffsApplicationsByBusinessForDay(
|
||||
applications(
|
||||
where: {
|
||||
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
|
||||
staff: { isProfileVisible: { eq: true } }
|
||||
shift: {
|
||||
date: { ge: $dayStart, le: $dayEnd }
|
||||
order: { businessId: { eq: $businessId } }
|
||||
|
||||
@@ -38,6 +38,7 @@ mutation CreateStaff(
|
||||
$employmentType: EmploymentType
|
||||
$initial: String
|
||||
$englishRequired: Boolean
|
||||
$isProfileVisible: Boolean
|
||||
$city: String
|
||||
$addres: String
|
||||
$placeId: String
|
||||
@@ -87,6 +88,7 @@ mutation CreateStaff(
|
||||
employmentType: $employmentType
|
||||
initial: $initial
|
||||
englishRequired: $englishRequired
|
||||
isProfileVisible: $isProfileVisible
|
||||
city: $city
|
||||
addres: $addres
|
||||
placeId: $placeId
|
||||
@@ -143,6 +145,7 @@ mutation UpdateStaff(
|
||||
$employmentType: EmploymentType
|
||||
$initial: String
|
||||
$englishRequired: Boolean
|
||||
$isProfileVisible: Boolean
|
||||
$city: String
|
||||
$addres: String
|
||||
$placeId: String
|
||||
@@ -193,6 +196,7 @@ mutation UpdateStaff(
|
||||
employmentType: $employmentType
|
||||
initial: $initial
|
||||
englishRequired: $englishRequired
|
||||
isProfileVisible: $isProfileVisible
|
||||
city: $city
|
||||
addres: $addres
|
||||
placeId: $placeId
|
||||
|
||||
@@ -8,6 +8,7 @@ query listStaff @auth(level: USER) {
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
@@ -60,6 +61,7 @@ query getStaffById($id: UUID!) @auth(level: USER) {
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
@@ -113,6 +115,7 @@ query getStaffByUserId($userId: String!) @auth(level: USER) {
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
@@ -178,6 +181,7 @@ query filterStaff(
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
averageRating
|
||||
reliabilityScore
|
||||
totalShifts
|
||||
|
||||
@@ -85,6 +85,8 @@ type Staff @table(name: "staffs") {
|
||||
initial: String
|
||||
englishRequired: Boolean @default(expr: "false")
|
||||
|
||||
isProfileVisible: Boolean @default(expr: "true")
|
||||
|
||||
addres: String
|
||||
placeId: String
|
||||
latitude: Float
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user