chore(legacy): relocate v1 dataconnect source
This commit is contained in:
86
legacy/dataconnect-v1/connector/business/queries.gql
Normal file
86
legacy/dataconnect-v1/connector/business/queries.gql
Normal file
@@ -0,0 +1,86 @@
|
||||
query listBusinesses @auth(level: USER) {
|
||||
businesses {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
userId
|
||||
companyLogoUrl
|
||||
phone
|
||||
email
|
||||
hubBuilding
|
||||
address
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
city
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
area
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
notes
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
query getBusinessesByUserId($userId: String!) @auth(level: USER) {
|
||||
businesses(where: { userId: { eq: $userId } }) {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
userId
|
||||
companyLogoUrl
|
||||
phone
|
||||
email
|
||||
hubBuilding
|
||||
address
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
city
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
area
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
notes
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
query getBusinessById($id: UUID!) @auth(level: USER) {
|
||||
business(id: $id) {
|
||||
id
|
||||
businessName
|
||||
contactName
|
||||
userId
|
||||
companyLogoUrl
|
||||
phone
|
||||
email
|
||||
hubBuilding
|
||||
address
|
||||
placeId
|
||||
latitude
|
||||
longitude
|
||||
city
|
||||
state
|
||||
street
|
||||
country
|
||||
zipCode
|
||||
area
|
||||
sector
|
||||
rateGroup
|
||||
status
|
||||
notes
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user