chore(legacy): relocate v1 dataconnect source
This commit is contained in:
103
legacy/dataconnect-v1/connector/business/mutations.gql
Normal file
103
legacy/dataconnect-v1/connector/business/mutations.gql
Normal file
@@ -0,0 +1,103 @@
|
||||
mutation createBusiness(
|
||||
$businessName: String!,
|
||||
$contactName: String,
|
||||
$userId: String!,
|
||||
$companyLogoUrl: String,
|
||||
$phone: String,
|
||||
$email: String,
|
||||
$hubBuilding: String,
|
||||
$address: String,
|
||||
$placeId: String,
|
||||
$latitude: Float,
|
||||
$longitude: Float,
|
||||
$city: String,
|
||||
$state: String,
|
||||
$street: String,
|
||||
$country: String,
|
||||
$zipCode: String,
|
||||
$area: BusinessArea,
|
||||
$sector: BusinessSector,
|
||||
$rateGroup: BusinessRateGroup!,
|
||||
$status: BusinessStatus!,
|
||||
$notes: String
|
||||
) @auth(level: USER) {
|
||||
business_insert(
|
||||
data: {
|
||||
businessName: $businessName,
|
||||
contactName: $contactName,
|
||||
userId: $userId,
|
||||
companyLogoUrl: $companyLogoUrl,
|
||||
phone: $phone,
|
||||
email: $email,
|
||||
hubBuilding: $hubBuilding,
|
||||
address: $address,
|
||||
placeId: $placeId,
|
||||
latitude: $latitude,
|
||||
longitude: $longitude,
|
||||
city: $city,
|
||||
state: $state,
|
||||
street: $street,
|
||||
country: $country,
|
||||
zipCode: $zipCode,
|
||||
area: $area,
|
||||
sector: $sector,
|
||||
rateGroup: $rateGroup,
|
||||
status: $status,
|
||||
notes: $notes
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateBusiness(
|
||||
$id: UUID!,
|
||||
$businessName: String,
|
||||
$contactName: String,
|
||||
$companyLogoUrl: String,
|
||||
$phone: String,
|
||||
$email: String,
|
||||
$hubBuilding: String,
|
||||
$address: String,
|
||||
$placeId: String,
|
||||
$latitude: Float,
|
||||
$longitude: Float,
|
||||
$city: String,
|
||||
$state: String,
|
||||
$street: String,
|
||||
$country: String,
|
||||
$zipCode: String,
|
||||
$area: BusinessArea,
|
||||
$sector: BusinessSector,
|
||||
$rateGroup: BusinessRateGroup,
|
||||
$status: BusinessStatus,
|
||||
$notes: String
|
||||
) @auth(level: USER) {
|
||||
business_update(
|
||||
id: $id,
|
||||
data: {
|
||||
businessName: $businessName,
|
||||
contactName: $contactName,
|
||||
companyLogoUrl: $companyLogoUrl,
|
||||
phone: $phone,
|
||||
email: $email,
|
||||
hubBuilding: $hubBuilding,
|
||||
address: $address,
|
||||
placeId: $placeId,
|
||||
latitude: $latitude,
|
||||
longitude: $longitude,
|
||||
city: $city,
|
||||
state: $state,
|
||||
street: $street,
|
||||
country: $country,
|
||||
zipCode: $zipCode,
|
||||
area: $area,
|
||||
sector: $sector,
|
||||
rateGroup: $rateGroup,
|
||||
status: $status,
|
||||
notes: $notes
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteBusiness($id: UUID!) @auth(level: USER) {
|
||||
business_delete(id: $id)
|
||||
}
|
||||
Reference in New Issue
Block a user