chore(legacy): relocate v1 dataconnect source
This commit is contained in:
213
legacy/dataconnect-v1/connector/staff/queries/queries.gql
Normal file
213
legacy/dataconnect-v1/connector/staff/queries/queries.gql
Normal file
@@ -0,0 +1,213 @@
|
||||
query listStaff @auth(level: USER) {
|
||||
staffs {
|
||||
id
|
||||
userId
|
||||
fullName
|
||||
level
|
||||
role
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
onTimeRate
|
||||
noShowCount
|
||||
cancellationCount
|
||||
reliabilityScore
|
||||
xp
|
||||
badges
|
||||
isRecommended
|
||||
|
||||
bio
|
||||
skills
|
||||
industries
|
||||
preferredLocations
|
||||
maxDistanceMiles
|
||||
languages
|
||||
itemsAttire
|
||||
|
||||
ownerId
|
||||
createdAt
|
||||
department
|
||||
hubId
|
||||
manager
|
||||
english
|
||||
|
||||
backgroundCheckStatus
|
||||
employmentType
|
||||
initial
|
||||
englishRequired
|
||||
city
|
||||
addres
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffById($id: UUID!) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
userId
|
||||
fullName
|
||||
role
|
||||
level
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
onTimeRate
|
||||
noShowCount
|
||||
cancellationCount
|
||||
reliabilityScore
|
||||
xp
|
||||
badges
|
||||
isRecommended
|
||||
|
||||
bio
|
||||
skills
|
||||
industries
|
||||
preferredLocations
|
||||
maxDistanceMiles
|
||||
languages
|
||||
itemsAttire
|
||||
|
||||
ownerId
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
department
|
||||
hubId
|
||||
manager
|
||||
english
|
||||
|
||||
backgroundCheckStatus
|
||||
employmentType
|
||||
initial
|
||||
englishRequired
|
||||
city
|
||||
addres
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffByUserId($userId: String!) @auth(level: USER) {
|
||||
staffs(where: { userId: { eq: $userId } }) {
|
||||
id
|
||||
userId
|
||||
fullName
|
||||
level
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
|
||||
totalShifts
|
||||
averageRating
|
||||
onTimeRate
|
||||
noShowCount
|
||||
cancellationCount
|
||||
reliabilityScore
|
||||
xp
|
||||
badges
|
||||
isRecommended
|
||||
|
||||
bio
|
||||
skills
|
||||
industries
|
||||
preferredLocations
|
||||
maxDistanceMiles
|
||||
languages
|
||||
itemsAttire
|
||||
|
||||
ownerId
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
department
|
||||
hubId
|
||||
manager
|
||||
english
|
||||
|
||||
backgroundCheckStatus
|
||||
employmentType
|
||||
initial
|
||||
englishRequired
|
||||
city
|
||||
addres
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
}
|
||||
}
|
||||
|
||||
query filterStaff(
|
||||
$ownerId: UUID
|
||||
$fullName: String
|
||||
$level: String
|
||||
$email: String
|
||||
) @auth(level: USER) {
|
||||
staffs(
|
||||
where: {
|
||||
ownerId: { eq: $ownerId }
|
||||
fullName: { eq: $fullName }
|
||||
level: { eq: $level }
|
||||
email: { eq: $email }
|
||||
}
|
||||
) {
|
||||
id
|
||||
userId
|
||||
fullName
|
||||
level
|
||||
phone
|
||||
email
|
||||
photoUrl
|
||||
isProfileVisible
|
||||
averageRating
|
||||
reliabilityScore
|
||||
totalShifts
|
||||
ownerId
|
||||
isRecommended
|
||||
skills
|
||||
industries
|
||||
backgroundCheckStatus
|
||||
employmentType
|
||||
initial
|
||||
englishRequired
|
||||
city
|
||||
addres
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffProfileVisibility($staffId: UUID!) @auth(level: USER) {
|
||||
staff(id: $staffId) {
|
||||
id
|
||||
isProfileVisible
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user