adding new fields for address validation of google

This commit is contained in:
José Salazar
2026-02-11 15:43:47 -05:00
parent 8a84117871
commit 88ea396c31
9 changed files with 162 additions and 5 deletions

View File

@@ -7,7 +7,14 @@ mutation createBusiness(
$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!,
@@ -24,7 +31,14 @@ mutation createBusiness(
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,
@@ -43,7 +57,14 @@ mutation updateBusiness(
$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,
@@ -60,7 +81,14 @@ mutation updateBusiness(
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,
@@ -72,4 +100,4 @@ mutation updateBusiness(
mutation deleteBusiness($id: UUID!) @auth(level: USER) {
business_delete(id: $id)
}
}

View File

@@ -9,7 +9,14 @@ query listBusinesses @auth(level: USER) {
email
hubBuilding
address
placeId
latitude
longitude
city
state
street
country
zipCode
area
sector
rateGroup
@@ -31,7 +38,14 @@ query getBusinessesByUserId($userId: String!) @auth(level: USER) {
email
hubBuilding
address
placeId
latitude
longitude
city
state
street
country
zipCode
area
sector
rateGroup
@@ -53,7 +67,14 @@ query getBusinessById($id: UUID!) @auth(level: USER) {
email
hubBuilding
address
placeId
latitude
longitude
city
state
street
country
zipCode
area
sector
rateGroup
@@ -62,4 +83,4 @@ query getBusinessById($id: UUID!) @auth(level: USER) {
createdAt
updatedAt
}
}
}

View File

@@ -9,9 +9,14 @@ mutation createTaxForm(
$email: String
$phone: String
$address: String!
$placeId: String
$latitude: Float
$longitude: Float
$city: String
$apt: String
$state: String
$street: String
$country: String
$zipCode: String
# W-4
@@ -51,9 +56,14 @@ mutation createTaxForm(
email: $email
phone: $phone
address: $address
placeId: $placeId
latitude: $latitude
longitude: $longitude
city: $city
apt: $apt
state: $state
street: $street
country: $country
zipCode: $zipCode
marital: $marital
@@ -94,9 +104,14 @@ mutation updateTaxForm(
$email: String
$phone: String
$address: String
$placeId: String
$latitude: Float
$longitude: Float
$city: String
$apt: String
$state: String
$street: String
$country: String
$zipCode: String
# W-4
@@ -136,9 +151,14 @@ mutation updateTaxForm(
email: $email
phone: $phone
address: $address
placeId: $placeId
latitude: $latitude
longitude: $longitude
city: $city
apt: $apt
state: $state
street: $street
country: $country
zipCode: $zipCode
marital: $marital

View File

@@ -17,7 +17,12 @@ query listTaxForms($offset: Int, $limit: Int) @auth(level: USER) {
email
phone
address
placeId
latitude
longitude
city
street
country
apt
state
zipCode
@@ -61,7 +66,12 @@ query getTaxFormById($id: UUID!) @auth(level: USER) {
email
phone
address
placeId
latitude
longitude
city
street
country
apt
state
zipCode
@@ -114,7 +124,12 @@ query getTaxFormsByStaffId(
email
phone
address
placeId
latitude
longitude
city
street
country
apt
state
zipCode
@@ -173,7 +188,12 @@ query listTaxFormsWhere(
email
phone
address
placeId
latitude
longitude
city
street
country
apt
state
zipCode

View File

@@ -5,6 +5,12 @@ mutation createVendor(
$phone: String
$photoUrl: String
$address: String
$placeId: String
$latitude: Float
$longitude: Float
$street: String
$country: String
$zipCode: String
$billingAddress: String
$timezone: String
$legalName: String
@@ -28,6 +34,12 @@ mutation createVendor(
phone: $phone
photoUrl: $photoUrl
address: $address
placeId: $placeId
latitude: $latitude
longitude: $longitude
street: $street
country: $country
zipCode: $zipCode
billingAddress: $billingAddress
timezone: $timezone
legalName: $legalName
@@ -53,6 +65,12 @@ mutation updateVendor(
$phone: String
$photoUrl: String
$address: String
$placeId: String
$latitude: Float
$longitude: Float
$street: String
$country: String
$zipCode: String
$billingAddress: String
$timezone: String
$legalName: String
@@ -76,6 +94,12 @@ mutation updateVendor(
phone: $phone
photoUrl: $photoUrl
address: $address
placeId: $placeId
latitude: $latitude
longitude: $longitude
street: $street
country: $country
zipCode: $zipCode
billingAddress: $billingAddress
timezone: $timezone
legalName: $legalName

View File

@@ -7,6 +7,12 @@ query getVendorById($id: UUID!) @auth(level: USER) {
phone
photoUrl
address
placeId
latitude
longitude
street
country
zipCode
billingAddress
timezone
legalName
@@ -36,6 +42,12 @@ query getVendorByUserId($userId: String!) @auth(level: USER) {
phone
photoUrl
address
placeId
latitude
longitude
street
country
zipCode
billingAddress
timezone
legalName
@@ -65,6 +77,12 @@ query listVendors @auth(level: USER) {
phone
photoUrl
address
placeId
latitude
longitude
street
country
zipCode
billingAddress
timezone
legalName

View File

@@ -38,8 +38,18 @@ type Business @table(name: "businesses") {
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!

View File

@@ -36,11 +36,17 @@ type TaxForm @table(name: "tax_forms") {
socialSN: Int!
email: String
phone: String
address: String!
placeId: String
latitude: Float
longitude: Float
city: String
apt: String
state: String
street: String
country: String
zipCode: String
apt: String
# form W-4
marital: MaritalStatus

View File

@@ -18,14 +18,24 @@ type Vendor @table(name: "vendors") {
email: String
phone: String
photoUrl: String
address: String
placeId: String
latitude: Float
longitude: Float
city: String
state: String
street: String
country: String
zipCode: String
billingAddress: String
timezone: String @default(expr: "'UTC'")
legalName: String
doingBusinessAs: String
region: String
state: String
city: String
#state: String
#city: String
serviceSpecialty: String
approvalStatus: ApprovalStatus
isActive: Boolean