From 10b3cc8a0dd90a34eff17c778661bed803e52775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Wed, 28 Jan 2026 20:19:39 -0500 Subject: [PATCH] mutations of taxt form --- .../connector/taxForm/mutations.gql | 164 +++++++++++++++--- 1 file changed, 144 insertions(+), 20 deletions(-) diff --git a/backend/dataconnect/connector/taxForm/mutations.gql b/backend/dataconnect/connector/taxForm/mutations.gql index d7798b35..868ed420 100644 --- a/backend/dataconnect/connector/taxForm/mutations.gql +++ b/backend/dataconnect/connector/taxForm/mutations.gql @@ -1,45 +1,169 @@ mutation createTaxForm( $formType: TaxFormType! - $title: String! - $subtitle: String - $description: String - $status: TaxFormStatus + $firstName: String! + $lastName: String! + $mInitial: String + $oLastName: String + $dob: Timestamp + $socialSN: Int! + $email: String + $phone: String + $address: String! + $city: String + $apt: String + $state: String + $zipCode: String + + # W-4 + $marital: MaritalStatus + $multipleJob: Boolean + $childrens: Int + $otherDeps: Int + $totalCredits: Float + $otherInconme: Float + $deductions: Float + $extraWithholding: Float + + # I-9 + $citizen: CitizenshipStatus + $uscis: String + $passportNumber: String + $countryIssue: String + $prepartorOrTranslator: Boolean + + # both + $signature: String + $date: Timestamp + + $status: TaxFormStatus! $staffId: UUID! - $formData: Any + $createdBy: String ) @auth(level: USER) { taxForm_insert( data: { formType: $formType - title: $title - subtitle: $subtitle - description: $description + firstName: $firstName + lastName: $lastName + mInitial: $mInitial + oLastName: $oLastName + dob: $dob + socialSN: $socialSN + email: $email + phone: $phone + address: $address + city: $city + apt: $apt + state: $state + zipCode: $zipCode + + marital: $marital + multipleJob: $multipleJob + childrens: $childrens + otherDeps: $otherDeps + totalCredits: $totalCredits + otherInconme: $otherInconme + deductions: $deductions + extraWithholding: $extraWithholding + + citizen: $citizen + uscis: $uscis + passportNumber: $passportNumber + countryIssue: $countryIssue + prepartorOrTranslator: $prepartorOrTranslator + + signature: $signature + date: $date + status: $status staffId: $staffId - formData: $formData + createdBy: $createdBy } - ) + ) } mutation updateTaxForm( $id: UUID! + + $formType: TaxFormType + $firstName: String + $lastName: String + $mInitial: String + $oLastName: String + $dob: Timestamp + $socialSN: Int + $email: String + $phone: String + $address: String + $city: String + $apt: String + $state: String + $zipCode: String + + # W-4 + $marital: MaritalStatus + $multipleJob: Boolean + $childrens: Int + $otherDeps: Int + $totalCredits: Float + $otherInconme: Float + $deductions: Float + $extraWithholding: Float + + # I-9 + $citizen: CitizenshipStatus + $uscis: String + $passportNumber: String + $countryIssue: String + $prepartorOrTranslator: Boolean + + # both + $signature: String + $date: Timestamp + $status: TaxFormStatus - $formData: Any - $title: String - $subtitle: String - $description: String + ) @auth(level: USER) { taxForm_update( id: $id data: { + formType: $formType + firstName: $firstName + lastName: $lastName + mInitial: $mInitial + oLastName: $oLastName + dob: $dob + socialSN: $socialSN + email: $email + phone: $phone + address: $address + city: $city + apt: $apt + state: $state + zipCode: $zipCode + + marital: $marital + multipleJob: $multipleJob + childrens: $childrens + otherDeps: $otherDeps + totalCredits: $totalCredits + otherInconme: $otherInconme + deductions: $deductions + extraWithholding: $extraWithholding + + citizen: $citizen + uscis: $uscis + passportNumber: $passportNumber + countryIssue: $countryIssue + prepartorOrTranslator: $prepartorOrTranslator + + signature: $signature + date: $date + status: $status - formData: $formData - title: $title - subtitle: $subtitle - description: $description } - ) + ) } mutation deleteTaxForm($id: UUID!) @auth(level: USER) { - taxForm_delete(id: $id) + taxForm_delete(id: $id) }