From 88ea396c317c44de13df7be59f9ca1a81345095a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:43:47 -0500 Subject: [PATCH] adding new fields for address validation of google --- .../connector/business/mutations.gql | 30 ++++++++++++++++++- .../connector/business/queries.gql | 23 +++++++++++++- .../connector/taxForm/mutations.gql | 20 +++++++++++++ .../dataconnect/connector/taxForm/queries.gql | 20 +++++++++++++ .../connector/vendor/mutations.gql | 24 +++++++++++++++ .../dataconnect/connector/vendor/queries.gql | 18 +++++++++++ backend/dataconnect/schema/business.gql | 10 +++++++ backend/dataconnect/schema/taxForm.gql | 8 ++++- backend/dataconnect/schema/vendor.gql | 14 +++++++-- 9 files changed, 162 insertions(+), 5 deletions(-) diff --git a/backend/dataconnect/connector/business/mutations.gql b/backend/dataconnect/connector/business/mutations.gql index 437527d6..b45704bc 100644 --- a/backend/dataconnect/connector/business/mutations.gql +++ b/backend/dataconnect/connector/business/mutations.gql @@ -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) -} \ No newline at end of file +} diff --git a/backend/dataconnect/connector/business/queries.gql b/backend/dataconnect/connector/business/queries.gql index 8484fce0..48a98d76 100644 --- a/backend/dataconnect/connector/business/queries.gql +++ b/backend/dataconnect/connector/business/queries.gql @@ -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 } -} \ No newline at end of file +} diff --git a/backend/dataconnect/connector/taxForm/mutations.gql b/backend/dataconnect/connector/taxForm/mutations.gql index 868ed420..019b69a9 100644 --- a/backend/dataconnect/connector/taxForm/mutations.gql +++ b/backend/dataconnect/connector/taxForm/mutations.gql @@ -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 diff --git a/backend/dataconnect/connector/taxForm/queries.gql b/backend/dataconnect/connector/taxForm/queries.gql index 0581f24f..503d6940 100644 --- a/backend/dataconnect/connector/taxForm/queries.gql +++ b/backend/dataconnect/connector/taxForm/queries.gql @@ -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 diff --git a/backend/dataconnect/connector/vendor/mutations.gql b/backend/dataconnect/connector/vendor/mutations.gql index 5f0b72cf..e4f3b765 100644 --- a/backend/dataconnect/connector/vendor/mutations.gql +++ b/backend/dataconnect/connector/vendor/mutations.gql @@ -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 diff --git a/backend/dataconnect/connector/vendor/queries.gql b/backend/dataconnect/connector/vendor/queries.gql index 76c69b03..1391bf32 100644 --- a/backend/dataconnect/connector/vendor/queries.gql +++ b/backend/dataconnect/connector/vendor/queries.gql @@ -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 diff --git a/backend/dataconnect/schema/business.gql b/backend/dataconnect/schema/business.gql index fcc1df9a..2a35c2b7 100644 --- a/backend/dataconnect/schema/business.gql +++ b/backend/dataconnect/schema/business.gql @@ -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! diff --git a/backend/dataconnect/schema/taxForm.gql b/backend/dataconnect/schema/taxForm.gql index cf110f19..e08fa9b9 100644 --- a/backend/dataconnect/schema/taxForm.gql +++ b/backend/dataconnect/schema/taxForm.gql @@ -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 diff --git a/backend/dataconnect/schema/vendor.gql b/backend/dataconnect/schema/vendor.gql index e9ff82de..7db7738a 100644 --- a/backend/dataconnect/schema/vendor.gql +++ b/backend/dataconnect/schema/vendor.gql @@ -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