feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
86
backend/dataconnect/example/vendor/queries.gql
vendored
Normal file
86
backend/dataconnect/example/vendor/queries.gql
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
query getVendorById($id: UUID!) @auth(level: USER) {
|
||||
vendor(id: $id) {
|
||||
id
|
||||
userId
|
||||
companyName
|
||||
email
|
||||
phone
|
||||
photoUrl
|
||||
address
|
||||
billingAddress
|
||||
timezone
|
||||
legalName
|
||||
doingBusinessAs
|
||||
region
|
||||
state
|
||||
city
|
||||
serviceSpecialty
|
||||
approvalStatus
|
||||
isActive
|
||||
markup
|
||||
fee
|
||||
csat
|
||||
tier
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query getVendorByUserId($userId: String!) @auth(level: USER) {
|
||||
vendors(where: { userId: { eq: $userId } }) {
|
||||
id
|
||||
userId
|
||||
companyName
|
||||
email
|
||||
phone
|
||||
photoUrl
|
||||
address
|
||||
billingAddress
|
||||
timezone
|
||||
legalName
|
||||
doingBusinessAs
|
||||
region
|
||||
state
|
||||
city
|
||||
serviceSpecialty
|
||||
approvalStatus
|
||||
isActive
|
||||
markup
|
||||
fee
|
||||
csat
|
||||
tier
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query listVendors @auth(level: USER) {
|
||||
vendors {
|
||||
id
|
||||
userId
|
||||
companyName
|
||||
email
|
||||
phone
|
||||
photoUrl
|
||||
address
|
||||
billingAddress
|
||||
timezone
|
||||
legalName
|
||||
doingBusinessAs
|
||||
region
|
||||
state
|
||||
city
|
||||
serviceSpecialty
|
||||
approvalStatus
|
||||
isActive
|
||||
markup
|
||||
fee
|
||||
csat
|
||||
tier
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user