104 lines
2.2 KiB
GraphQL
104 lines
2.2 KiB
GraphQL
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)
|
|
}
|