adding new fields for address validation of google
This commit is contained in:
@@ -7,7 +7,14 @@ mutation createBusiness(
|
|||||||
$email: String,
|
$email: String,
|
||||||
$hubBuilding: String,
|
$hubBuilding: String,
|
||||||
$address: String,
|
$address: String,
|
||||||
|
$placeId: String,
|
||||||
|
$latitude: Float,
|
||||||
|
$longitude: Float,
|
||||||
$city: String,
|
$city: String,
|
||||||
|
$state: String,
|
||||||
|
$street: String,
|
||||||
|
$country: String,
|
||||||
|
$zipCode: String,
|
||||||
$area: BusinessArea,
|
$area: BusinessArea,
|
||||||
$sector: BusinessSector,
|
$sector: BusinessSector,
|
||||||
$rateGroup: BusinessRateGroup!,
|
$rateGroup: BusinessRateGroup!,
|
||||||
@@ -24,7 +31,14 @@ mutation createBusiness(
|
|||||||
email: $email,
|
email: $email,
|
||||||
hubBuilding: $hubBuilding,
|
hubBuilding: $hubBuilding,
|
||||||
address: $address,
|
address: $address,
|
||||||
|
placeId: $placeId,
|
||||||
|
latitude: $latitude,
|
||||||
|
longitude: $longitude,
|
||||||
city: $city,
|
city: $city,
|
||||||
|
state: $state,
|
||||||
|
street: $street,
|
||||||
|
country: $country,
|
||||||
|
zipCode: $zipCode,
|
||||||
area: $area,
|
area: $area,
|
||||||
sector: $sector,
|
sector: $sector,
|
||||||
rateGroup: $rateGroup,
|
rateGroup: $rateGroup,
|
||||||
@@ -43,7 +57,14 @@ mutation updateBusiness(
|
|||||||
$email: String,
|
$email: String,
|
||||||
$hubBuilding: String,
|
$hubBuilding: String,
|
||||||
$address: String,
|
$address: String,
|
||||||
|
$placeId: String,
|
||||||
|
$latitude: Float,
|
||||||
|
$longitude: Float,
|
||||||
$city: String,
|
$city: String,
|
||||||
|
$state: String,
|
||||||
|
$street: String,
|
||||||
|
$country: String,
|
||||||
|
$zipCode: String,
|
||||||
$area: BusinessArea,
|
$area: BusinessArea,
|
||||||
$sector: BusinessSector,
|
$sector: BusinessSector,
|
||||||
$rateGroup: BusinessRateGroup,
|
$rateGroup: BusinessRateGroup,
|
||||||
@@ -60,7 +81,14 @@ mutation updateBusiness(
|
|||||||
email: $email,
|
email: $email,
|
||||||
hubBuilding: $hubBuilding,
|
hubBuilding: $hubBuilding,
|
||||||
address: $address,
|
address: $address,
|
||||||
|
placeId: $placeId,
|
||||||
|
latitude: $latitude,
|
||||||
|
longitude: $longitude,
|
||||||
city: $city,
|
city: $city,
|
||||||
|
state: $state,
|
||||||
|
street: $street,
|
||||||
|
country: $country,
|
||||||
|
zipCode: $zipCode,
|
||||||
area: $area,
|
area: $area,
|
||||||
sector: $sector,
|
sector: $sector,
|
||||||
rateGroup: $rateGroup,
|
rateGroup: $rateGroup,
|
||||||
@@ -72,4 +100,4 @@ mutation updateBusiness(
|
|||||||
|
|
||||||
mutation deleteBusiness($id: UUID!) @auth(level: USER) {
|
mutation deleteBusiness($id: UUID!) @auth(level: USER) {
|
||||||
business_delete(id: $id)
|
business_delete(id: $id)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,14 @@ query listBusinesses @auth(level: USER) {
|
|||||||
email
|
email
|
||||||
hubBuilding
|
hubBuilding
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
state
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
area
|
area
|
||||||
sector
|
sector
|
||||||
rateGroup
|
rateGroup
|
||||||
@@ -31,7 +38,14 @@ query getBusinessesByUserId($userId: String!) @auth(level: USER) {
|
|||||||
email
|
email
|
||||||
hubBuilding
|
hubBuilding
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
state
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
area
|
area
|
||||||
sector
|
sector
|
||||||
rateGroup
|
rateGroup
|
||||||
@@ -53,7 +67,14 @@ query getBusinessById($id: UUID!) @auth(level: USER) {
|
|||||||
email
|
email
|
||||||
hubBuilding
|
hubBuilding
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
state
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
area
|
area
|
||||||
sector
|
sector
|
||||||
rateGroup
|
rateGroup
|
||||||
@@ -62,4 +83,4 @@ query getBusinessById($id: UUID!) @auth(level: USER) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,14 @@ mutation createTaxForm(
|
|||||||
$email: String
|
$email: String
|
||||||
$phone: String
|
$phone: String
|
||||||
$address: String!
|
$address: String!
|
||||||
|
$placeId: String
|
||||||
|
$latitude: Float
|
||||||
|
$longitude: Float
|
||||||
$city: String
|
$city: String
|
||||||
$apt: String
|
$apt: String
|
||||||
$state: String
|
$state: String
|
||||||
|
$street: String
|
||||||
|
$country: String
|
||||||
$zipCode: String
|
$zipCode: String
|
||||||
|
|
||||||
# W-4
|
# W-4
|
||||||
@@ -51,9 +56,14 @@ mutation createTaxForm(
|
|||||||
email: $email
|
email: $email
|
||||||
phone: $phone
|
phone: $phone
|
||||||
address: $address
|
address: $address
|
||||||
|
placeId: $placeId
|
||||||
|
latitude: $latitude
|
||||||
|
longitude: $longitude
|
||||||
city: $city
|
city: $city
|
||||||
apt: $apt
|
apt: $apt
|
||||||
state: $state
|
state: $state
|
||||||
|
street: $street
|
||||||
|
country: $country
|
||||||
zipCode: $zipCode
|
zipCode: $zipCode
|
||||||
|
|
||||||
marital: $marital
|
marital: $marital
|
||||||
@@ -94,9 +104,14 @@ mutation updateTaxForm(
|
|||||||
$email: String
|
$email: String
|
||||||
$phone: String
|
$phone: String
|
||||||
$address: String
|
$address: String
|
||||||
|
$placeId: String
|
||||||
|
$latitude: Float
|
||||||
|
$longitude: Float
|
||||||
$city: String
|
$city: String
|
||||||
$apt: String
|
$apt: String
|
||||||
$state: String
|
$state: String
|
||||||
|
$street: String
|
||||||
|
$country: String
|
||||||
$zipCode: String
|
$zipCode: String
|
||||||
|
|
||||||
# W-4
|
# W-4
|
||||||
@@ -136,9 +151,14 @@ mutation updateTaxForm(
|
|||||||
email: $email
|
email: $email
|
||||||
phone: $phone
|
phone: $phone
|
||||||
address: $address
|
address: $address
|
||||||
|
placeId: $placeId
|
||||||
|
latitude: $latitude
|
||||||
|
longitude: $longitude
|
||||||
city: $city
|
city: $city
|
||||||
apt: $apt
|
apt: $apt
|
||||||
state: $state
|
state: $state
|
||||||
|
street: $street
|
||||||
|
country: $country
|
||||||
zipCode: $zipCode
|
zipCode: $zipCode
|
||||||
|
|
||||||
marital: $marital
|
marital: $marital
|
||||||
|
|||||||
@@ -17,7 +17,12 @@ query listTaxForms($offset: Int, $limit: Int) @auth(level: USER) {
|
|||||||
email
|
email
|
||||||
phone
|
phone
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
street
|
||||||
|
country
|
||||||
apt
|
apt
|
||||||
state
|
state
|
||||||
zipCode
|
zipCode
|
||||||
@@ -61,7 +66,12 @@ query getTaxFormById($id: UUID!) @auth(level: USER) {
|
|||||||
email
|
email
|
||||||
phone
|
phone
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
street
|
||||||
|
country
|
||||||
apt
|
apt
|
||||||
state
|
state
|
||||||
zipCode
|
zipCode
|
||||||
@@ -114,7 +124,12 @@ query getTaxFormsByStaffId(
|
|||||||
email
|
email
|
||||||
phone
|
phone
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
street
|
||||||
|
country
|
||||||
apt
|
apt
|
||||||
state
|
state
|
||||||
zipCode
|
zipCode
|
||||||
@@ -173,7 +188,12 @@ query listTaxFormsWhere(
|
|||||||
email
|
email
|
||||||
phone
|
phone
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
city
|
city
|
||||||
|
street
|
||||||
|
country
|
||||||
apt
|
apt
|
||||||
state
|
state
|
||||||
zipCode
|
zipCode
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ mutation createVendor(
|
|||||||
$phone: String
|
$phone: String
|
||||||
$photoUrl: String
|
$photoUrl: String
|
||||||
$address: String
|
$address: String
|
||||||
|
$placeId: String
|
||||||
|
$latitude: Float
|
||||||
|
$longitude: Float
|
||||||
|
$street: String
|
||||||
|
$country: String
|
||||||
|
$zipCode: String
|
||||||
$billingAddress: String
|
$billingAddress: String
|
||||||
$timezone: String
|
$timezone: String
|
||||||
$legalName: String
|
$legalName: String
|
||||||
@@ -28,6 +34,12 @@ mutation createVendor(
|
|||||||
phone: $phone
|
phone: $phone
|
||||||
photoUrl: $photoUrl
|
photoUrl: $photoUrl
|
||||||
address: $address
|
address: $address
|
||||||
|
placeId: $placeId
|
||||||
|
latitude: $latitude
|
||||||
|
longitude: $longitude
|
||||||
|
street: $street
|
||||||
|
country: $country
|
||||||
|
zipCode: $zipCode
|
||||||
billingAddress: $billingAddress
|
billingAddress: $billingAddress
|
||||||
timezone: $timezone
|
timezone: $timezone
|
||||||
legalName: $legalName
|
legalName: $legalName
|
||||||
@@ -53,6 +65,12 @@ mutation updateVendor(
|
|||||||
$phone: String
|
$phone: String
|
||||||
$photoUrl: String
|
$photoUrl: String
|
||||||
$address: String
|
$address: String
|
||||||
|
$placeId: String
|
||||||
|
$latitude: Float
|
||||||
|
$longitude: Float
|
||||||
|
$street: String
|
||||||
|
$country: String
|
||||||
|
$zipCode: String
|
||||||
$billingAddress: String
|
$billingAddress: String
|
||||||
$timezone: String
|
$timezone: String
|
||||||
$legalName: String
|
$legalName: String
|
||||||
@@ -76,6 +94,12 @@ mutation updateVendor(
|
|||||||
phone: $phone
|
phone: $phone
|
||||||
photoUrl: $photoUrl
|
photoUrl: $photoUrl
|
||||||
address: $address
|
address: $address
|
||||||
|
placeId: $placeId
|
||||||
|
latitude: $latitude
|
||||||
|
longitude: $longitude
|
||||||
|
street: $street
|
||||||
|
country: $country
|
||||||
|
zipCode: $zipCode
|
||||||
billingAddress: $billingAddress
|
billingAddress: $billingAddress
|
||||||
timezone: $timezone
|
timezone: $timezone
|
||||||
legalName: $legalName
|
legalName: $legalName
|
||||||
|
|||||||
18
backend/dataconnect/connector/vendor/queries.gql
vendored
18
backend/dataconnect/connector/vendor/queries.gql
vendored
@@ -7,6 +7,12 @@ query getVendorById($id: UUID!) @auth(level: USER) {
|
|||||||
phone
|
phone
|
||||||
photoUrl
|
photoUrl
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
billingAddress
|
billingAddress
|
||||||
timezone
|
timezone
|
||||||
legalName
|
legalName
|
||||||
@@ -36,6 +42,12 @@ query getVendorByUserId($userId: String!) @auth(level: USER) {
|
|||||||
phone
|
phone
|
||||||
photoUrl
|
photoUrl
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
billingAddress
|
billingAddress
|
||||||
timezone
|
timezone
|
||||||
legalName
|
legalName
|
||||||
@@ -65,6 +77,12 @@ query listVendors @auth(level: USER) {
|
|||||||
phone
|
phone
|
||||||
photoUrl
|
photoUrl
|
||||||
address
|
address
|
||||||
|
placeId
|
||||||
|
latitude
|
||||||
|
longitude
|
||||||
|
street
|
||||||
|
country
|
||||||
|
zipCode
|
||||||
billingAddress
|
billingAddress
|
||||||
timezone
|
timezone
|
||||||
legalName
|
legalName
|
||||||
|
|||||||
@@ -38,8 +38,18 @@ type Business @table(name: "businesses") {
|
|||||||
phone: String
|
phone: String
|
||||||
email: String
|
email: String
|
||||||
hubBuilding: String
|
hubBuilding: String
|
||||||
|
|
||||||
address: String
|
address: String
|
||||||
|
placeId: String
|
||||||
|
latitude: Float
|
||||||
|
longitude: Float
|
||||||
city: String
|
city: String
|
||||||
|
state: String
|
||||||
|
street: String
|
||||||
|
country: String
|
||||||
|
zipCode: String
|
||||||
|
|
||||||
|
|
||||||
area: BusinessArea
|
area: BusinessArea
|
||||||
sector: BusinessSector
|
sector: BusinessSector
|
||||||
rateGroup: BusinessRateGroup!
|
rateGroup: BusinessRateGroup!
|
||||||
|
|||||||
@@ -36,11 +36,17 @@ type TaxForm @table(name: "tax_forms") {
|
|||||||
socialSN: Int!
|
socialSN: Int!
|
||||||
email: String
|
email: String
|
||||||
phone: String
|
phone: String
|
||||||
|
|
||||||
address: String!
|
address: String!
|
||||||
|
placeId: String
|
||||||
|
latitude: Float
|
||||||
|
longitude: Float
|
||||||
city: String
|
city: String
|
||||||
apt: String
|
|
||||||
state: String
|
state: String
|
||||||
|
street: String
|
||||||
|
country: String
|
||||||
zipCode: String
|
zipCode: String
|
||||||
|
apt: String
|
||||||
|
|
||||||
# form W-4
|
# form W-4
|
||||||
marital: MaritalStatus
|
marital: MaritalStatus
|
||||||
|
|||||||
@@ -18,14 +18,24 @@ type Vendor @table(name: "vendors") {
|
|||||||
email: String
|
email: String
|
||||||
phone: String
|
phone: String
|
||||||
photoUrl: String
|
photoUrl: String
|
||||||
|
|
||||||
address: String
|
address: String
|
||||||
|
placeId: String
|
||||||
|
latitude: Float
|
||||||
|
longitude: Float
|
||||||
|
city: String
|
||||||
|
state: String
|
||||||
|
street: String
|
||||||
|
country: String
|
||||||
|
zipCode: String
|
||||||
|
|
||||||
billingAddress: String
|
billingAddress: String
|
||||||
timezone: String @default(expr: "'UTC'")
|
timezone: String @default(expr: "'UTC'")
|
||||||
legalName: String
|
legalName: String
|
||||||
doingBusinessAs: String
|
doingBusinessAs: String
|
||||||
region: String
|
region: String
|
||||||
state: String
|
#state: String
|
||||||
city: String
|
#city: String
|
||||||
serviceSpecialty: String
|
serviceSpecialty: String
|
||||||
approvalStatus: ApprovalStatus
|
approvalStatus: ApprovalStatus
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user