From a47e75ee64dbc3f2625d8cb95c7b8581a9e69d6a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 24 Jun 2026 09:47:36 -0700 Subject: [PATCH 1/2] feat!: bump @gusto/embedded-api to v2026-02-01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical version-string sweep across src/, sdk-app/, docs/, build/, e2e/, and instruction files. package.json swap + lockfile regeneration. Type fixups required for the bump to compile: - src/components/Payroll/usePreparedPayrollData.ts: removed `QueryParamSortBy` import (no longer exported from putv1companiescompanyidpayrollspayrollidprepare op; collapsed to plain `string` in v2026-02-01). Critical runtime sweep: - src/contexts/ApiProvider/apiVersionHook.ts: flipped `CURRENT_API_VERSION = '2026-02-01'` (the bare-date X-Gusto-API-Version header constant). Without this flip the upgrade would be a runtime no-op — types claim the new version but the SDK would still send the old version on every request. Test assertions in apiVersionHook.test.ts (3 sites) and ApiProvider.test.tsx (1 site) updated to match. Drive-by: added language tags (`text`/`bash`) to 4 fenced code blocks in AGENTS.md and 2 in src/CLAUDE.md to satisfy markdownlint MD040, surfaced by the version-string touch on those files. See base PR description for the full breaking-change matrix and verification trail. Co-Authored-By: Claude Opus 4.7 (1M context) --- AGENTS.md | 26 +++++++++---------- CLAUDE.md | 18 ++++++------- build/deriveEndpointInventory.ts | 16 ++++++------ docs/appendix/jobs-and-compensations.md | 4 +-- docs/hooks/hooks.md | 12 ++++----- docs/hooks/useEmployeeStateTaxesForm.md | 2 +- docs/reference/index.md | 8 +++--- docs/reference/utilities.md | 6 ++--- e2e/utils/validationErrorCollector.test.ts | 2 +- package-lock.json | 10 +++---- package.json | 2 +- .../ContractorAddress/ContractorAddress.tsx | 2 +- .../ContractorAddressForm.tsx | 2 +- .../ContractorDetails/ContractorDetails.tsx | 2 +- .../ContractorDetailsConfigurations.tsx | 2 +- .../ContractorDetailsStates.tsx | 2 +- .../ContractorDetailsForm.tsx | 2 +- .../ContractorDismissalForm.tsx | 2 +- .../ContractorDismissalFormConfigurations.tsx | 2 +- .../ContractorDismissalFormStates.tsx | 2 +- .../ContractorDocuments.tsx | 4 +-- .../ContractorList/ContractorList.tsx | 2 +- .../ContractorListConfigurations.tsx | 2 +- .../ContractorList/ContractorListStates.tsx | 2 +- .../ContractorPay/ContractorPay.tsx | 2 +- .../ContractorPayForm/ContractorPayForm.tsx | 2 +- .../ContractorPaymentMethod.tsx | 2 +- .../ContractorPaymentMethodForm.tsx | 2 +- .../ContractorRehireForm.tsx | 2 +- .../ContractorDocumentList.tsx | 2 +- .../ContractorDocumentListConfigurations.tsx | 2 +- .../ContractorDocumentListStates.tsx | 2 +- .../ProfileDetailsForm/ProfileDetailsForm.tsx | 2 +- .../ProfileDetailsFormConfigurations.tsx | 2 +- .../ProfileDetailsFormStates.tsx | 2 +- .../contractor/shared/contractorName.ts | 2 +- .../CompensationHistory.test.tsx | 4 +-- .../CompensationHistory.tsx | 4 +-- .../CompensationHistoryConfigurations.tsx | 4 +-- .../CompensationHistoryStates.tsx | 2 +- .../management/EmployeeList/EmployeeList.tsx | 6 ++--- .../EmployeeListConfigurations.tsx | 2 +- .../EmployeeList/EmployeeListStates.tsx | 2 +- .../RehireEmployeeForm/RehireEmployeeForm.tsx | 6 ++--- .../RehireEmployeeFormConfigurations.tsx | 2 +- .../RehireEmployeeFormStates.tsx | 4 +-- ...PayrollConfigurationRropConfigurations.tsx | 10 +++---- .../PayrollConfigurationRropPresentation.tsx | 10 +++---- .../PayrollConfigurationRropStates.tsx | 10 +++---- .../PayrollEditEmployeeConfigurations.tsx | 10 +++---- .../PayrollEditEmployeePresentation.tsx | 10 +++---- .../PayrollEditEmployeeStates.tsx | 8 +++--- .../PayrollEditEmployee/TimeOffField.tsx | 4 +-- .../PayrollSpreadsheet/PayrollSpreadsheet.tsx | 8 +++--- .../AddContractor/AddContractorWizard.tsx | 2 +- .../AddContractor/ContractorAddress.tsx | 6 ++--- .../AddContractor/ContractorNewHireReport.tsx | 4 +-- .../ContractorOnboardingOverview.tsx | 2 +- .../AddContractor/ContractorPaymentMethod.tsx | 10 +++---- .../AddContractor/ContractorProfile.tsx | 12 ++++----- .../AddContractor/ContractorSubmit.tsx | 6 ++--- .../AddContractor/index.tsx | 2 +- .../ContractorDismiss.tsx | 4 +-- .../contractor-management/ContractorList.tsx | 16 ++++++------ .../ContractorProfileComponents.tsx | 24 ++++++++--------- .../ContractorRehire.tsx | 4 +-- .../CreateHistoricalPayment.tsx | 8 +++--- .../CreateHistoricalPayment/states.tsx | 2 +- .../ContractorDocumentSigner.tsx | 4 +-- .../ContractorLanding.tsx | 4 +-- .../ContractorSelfAddressForm.tsx | 6 ++--- .../ContractorSelfPaymentMethodForm.tsx | 10 +++---- .../ContractorSelfProfile.tsx | 8 +++--- .../ContractorSignatureForm.tsx | 6 ++--- .../CompensationHistory.tsx | 4 +-- .../EmployeeManagement/EmployeeList.tsx | 4 +-- .../EmployeeManagement/RehireEmployee.tsx | 16 ++++++------ .../regular-rate-of-pay/RegularRateOfPay.tsx | 18 ++++++------- src/CLAUDE.md | 24 ++++++++--------- src/components/Base/useBaseSubmit.test.tsx | 8 +++--- src/components/Base/useBaseSubmit.ts | 8 +++--- .../Common/OnboardingStatusBadge/index.tsx | 4 +-- src/components/Common/TaxInputs/TaxInputs.tsx | 4 +-- .../CreateSignatory/CreateSignatory.tsx | 10 +++---- .../CreateSignatory/useCreateSignatory.ts | 2 +- .../InviteSignatory/InviteSignatory.tsx | 6 ++--- .../InviteSignatory/useInviteSignatory.ts | 2 +- .../Company/BankAccount/BankAccount.tsx | 2 +- .../BankAccount/BankAccountComponents.tsx | 2 +- .../BankAccountForm/BankAccountForm.tsx | 2 +- .../BankAccountList/BankAccountList.tsx | 2 +- .../BankAccount/BankAccountList/context.ts | 2 +- .../BankAccountVerify/BankAccountVerify.tsx | 2 +- .../DocumentList/DocumentList.tsx | 6 ++--- .../DocumentList/useDocumentList.ts | 4 +-- .../Company/DocumentSigner/DocumentSigner.tsx | 2 +- .../documentSignerStateMachine.tsx | 4 +-- .../useSignCompanyForm/useSignCompanyForm.tsx | 8 +++--- .../Company/FederalTaxes/FederalTaxes.tsx | 6 ++--- src/components/Company/FederalTaxes/Form.tsx | 2 +- .../Company/FederalTaxes/useFederalTaxes.ts | 4 +-- src/components/Company/Industry/Industry.tsx | 4 +-- .../Locations/LocationForm/LocationForm.tsx | 10 +++---- .../Locations/LocationsList/LocationsList.tsx | 2 +- .../LocationsList/useLocationsList.ts | 2 +- .../OnboardingOverview/OnboardingOverview.tsx | 2 +- .../Company/OnboardingOverview/context.ts | 2 +- .../Company/PaySchedule/PaySchedule.tsx | 2 +- .../Company/PaySchedule/PayScheduleList.tsx | 2 +- .../usePayScheduleForm/usePayScheduleForm.tsx | 16 ++++++------ .../StateTaxesForm/StateTaxesForm.tsx | 4 +-- .../StateTaxes/StateTaxesForm/context.ts | 2 +- .../StateTaxes/StateTaxesList/List.tsx | 2 +- .../StateTaxesList/StateTaxesList.tsx | 2 +- .../StateTaxes/StateTaxesList/context.ts | 2 +- src/components/Contractor/Address/Address.tsx | 6 ++--- .../Contractor/Address/useAddress.ts | 4 +-- .../Contractor/ContractorList/index.tsx | 4 +-- .../ContractorList/useContractorList.ts | 2 +- .../NewHireReport/NewHireReport.tsx | 4 +-- .../PaymentMethod/PaymentMethod.tsx | 12 ++++----- .../Contractor/PaymentMethod/types.ts | 2 +- .../Payments/CreatePayment/CreatePayment.tsx | 14 +++++----- .../CreatePaymentPresentation.stories.tsx | 4 +-- .../CreatePaymentPresentation.tsx | 4 +-- .../FastAchSubmissionBlockerBanner.tsx | 4 +-- .../Payments/CreatePayment/GenericBlocker.tsx | 2 +- .../CreatePayment/PreviewPresentation.tsx | 10 +++---- .../Payments/CreatePayment/helpers.ts | 2 +- .../PaymentFlow/paymentStateMachine.ts | 6 ++--- .../PaymentHistory/PaymentHistory.tsx | 6 ++--- .../PaymentHistoryPresentation.tsx | 6 ++--- .../PaymentStatement/PaymentStatement.tsx | 8 +++--- .../PaymentStatementPresentation.tsx | 6 ++--- .../PaymentSummary/PaymentSummary.tsx | 8 +++--- .../PaymentSummaryPresentation.stories.tsx | 4 +-- .../PaymentSummaryPresentation.tsx | 8 +++--- .../Payments/PaymentsList/PaymentsList.tsx | 6 ++--- .../PaymentsList/PaymentsListPresentation.tsx | 2 +- .../Profile/ContractorProfile.stories.tsx | 2 +- .../Contractor/Profile/ContractorProfile.tsx | 4 +-- .../Profile/ContractorProfileForm.tsx | 2 +- .../Profile/useContractorProfile.test.tsx | 2 +- .../Profile/useContractorProfile.ts | 10 +++---- src/components/Contractor/Submit/Submit.tsx | 6 ++--- .../CompensationCard/CompensationCard.tsx | 4 +-- .../CompensationEditForm.tsx | 2 +- .../CompensationEditJobForm.tsx | 2 +- .../ManagementCompensationFormBody.tsx | 6 ++--- .../Compensation/onboarding/Compensation.tsx | 6 ++--- .../onboarding/CompensationFlowComponents.tsx | 4 +-- .../onboarding/JobsList/JobsList.tsx | 4 +-- .../JobsList/JobsListPresentation.test.tsx | 2 +- .../JobsList/JobsListPresentation.tsx | 2 +- .../shared/AddCompensationFormBody.tsx | 6 ++--- .../shared/derivePrimaryFlsaStatus.test.ts | 2 +- .../shared/derivePrimaryFlsaStatus.ts | 2 +- .../getPendingCompensationChanges.test.ts | 4 +-- .../shared/getPendingCompensationChanges.ts | 6 ++--- .../shared/useCompensationForm/fields.tsx | 6 ++--- .../useCompensationForm.test.tsx | 2 +- .../useCompensationForm.tsx | 22 ++++++++-------- .../useCompensationManagement.tsx | 10 +++---- .../shared/useJobForm/useJobForm.tsx | 20 +++++++------- .../Employee/Dashboard/Dashboard.test.tsx | 2 +- .../Employee/Dashboard/Dashboard.tsx | 2 +- .../Dashboard/dashboardStateMachine.ts | 2 +- .../DeductionsCard/DeductionsCard.tsx | 2 +- .../management/deductionsStateMachine.ts | 2 +- .../DeductionsList/DeductionsList.test.tsx | 2 +- .../DeductionsList/DeductionsList.tsx | 2 +- .../deductionsContextualComponents.tsx | 2 +- .../DeductionsForm/ChildSupportFormView.tsx | 4 +-- .../shared/DeductionsForm/DeductionsForm.tsx | 2 +- .../DeductionsForm/StandardDeductionForm.tsx | 2 +- .../shared/DeleteDeductionDialog.tsx | 2 +- .../shared/formatDeductionAmount.test.ts | 2 +- .../shared/formatDeductionAmount.ts | 2 +- .../childSupportGarnishmentFormSchema.ts | 4 +-- .../useChildSupportGarnishmentForm/fields.tsx | 2 +- .../useChildSupportGarnishmentForm.tsx | 14 +++++----- .../useDeductionForm/deductionFormSchema.ts | 2 +- .../shared/useDeductionForm/fields.tsx | 2 +- .../useDeductionForm/useDeductionForm.tsx | 8 +++--- .../shared/useDeductionsList.test.tsx | 2 +- .../Deductions/shared/useDeductionsList.tsx | 6 ++--- .../Deductions/shared/useDeleteDeduction.ts | 2 +- .../Documents/management/DocumentManager.tsx | 4 +-- .../DocumentsCard/DocumentsCard.tsx | 2 +- .../DocumentList/DocumentList.tsx | 4 +-- .../DocumentList/useDocumentList.ts | 2 +- .../DocumentSigner/DocumentSigner.tsx | 4 +-- .../EmploymentEligibility.tsx | 6 ++--- .../EmploymentEligibilityPresentation.tsx | 2 +- .../EmploymentEligibilitySchema.ts | 2 +- .../I9SignatureForm/I9SignatureForm.tsx | 4 +-- .../documentSignerStateMachine.tsx | 2 +- .../EmployeeDocuments/EmployeeDocuments.tsx | 4 +-- .../useDocumentsList/useDocumentsList.tsx | 4 +-- .../useSignEmployeeForm.tsx | 8 +++--- .../EmployeeList/onboarding/EmployeeList.tsx | 2 +- .../onboarding/EmployeeListView.tsx | 2 +- .../EmployeeList/shared/useEmployeeList.tsx | 12 ++++----- .../useFederalTaxesForm/federalTaxesSchema.ts | 2 +- .../useFederalTaxesForm.tsx | 10 +++---- .../useFederalTaxesSummary.tsx | 4 +-- .../management/HomeAddressEditForm.tsx | 2 +- .../management/HomeAddressView.tsx | 2 +- .../getPendingFutureHomeAddress.test.ts | 4 +-- .../management/getPendingFutureHomeAddress.ts | 2 +- .../management/useHomeAddressManagement.tsx | 8 +++--- .../useHomeAddressSummary.tsx | 4 +-- src/components/Employee/Landing/Landing.tsx | 4 +-- .../OnboardingExecutionFlowComponents.tsx | 2 +- .../OnboardingSummary/OnboardingSummary.tsx | 4 +-- .../shared/BankFormBody/BankFormBody.tsx | 2 +- .../SplitPaymentsFormBody.tsx | 2 +- .../shared/useBankForm/useBankForm.tsx | 4 +-- .../usePaymentMethodForm.tsx | 6 ++--- .../shared/usePaymentMethodList.ts | 12 ++++----- .../useSplitPaymentsForm.tsx | 10 +++---- .../shared/usePaystubsList/usePaystubsList.ts | 8 +++--- .../Profile/onboarding/AdminProfile.tsx | 2 +- .../Profile/onboarding/EmployeeProfile.tsx | 2 +- .../useEmployeeDetailsForm.tsx | 12 ++++----- .../useEmployeeProfileSummary.tsx | 4 +-- .../useCurrentHomeAddressForm.tsx | 2 +- .../useHomeAddressForm/useHomeAddressForm.tsx | 10 +++---- .../shared/useWorkAddressForm/fields.tsx | 2 +- .../useCurrentWorkAddressForm.tsx | 2 +- .../useWorkAddressForm/useWorkAddressForm.tsx | 14 +++++----- .../SelfOnboardingComponents.tsx | 2 +- .../StateTaxesCard/StateTaxesCard.tsx | 2 +- .../__fixtures__/stateTaxesFixtures.ts | 2 +- .../__fixtures__/toWireFormat.ts | 2 +- .../employeeStateTaxesSchema.ts | 2 +- .../useEmployeeStateTaxesForm/fieldMapping.ts | 2 +- .../useEmployeeStateTaxesForm/fields.tsx | 2 +- .../useEmployeeStateTaxesForm.tsx | 8 +++--- .../useStateTaxesSummary.tsx | 4 +-- .../TerminateEmployee.stories.tsx | 2 +- .../TerminateEmployee/TerminateEmployee.tsx | 18 ++++++------- .../TerminateEmployeePresentation.tsx | 2 +- .../TerminationSummary/TerminationSummary.tsx | 8 +++--- .../management/WorkAddressEditForm.tsx | 2 +- .../management/WorkAddressView.tsx | 4 +-- .../management/getPendingFutureWorkAddress.ts | 4 +-- .../management/useWorkAddressManagement.tsx | 8 +++--- .../useEmployeeWorkAddressSummary.tsx | 4 +-- .../InformationRequestForm.tsx | 10 +++---- .../InformationRequestList.tsx | 6 ++--- .../ConfirmWireDetails/ConfirmWireDetails.tsx | 2 +- .../ConfirmWireDetailsBanner.tsx | 4 +-- .../ConfirmWireDetailsForm.tsx | 8 +++--- .../WireInstructions/WireInstructions.tsx | 4 +-- .../Dismissal/DismissalFlowComponents.tsx | 2 +- .../DismissalPayPeriodSelection.test.tsx | 4 +-- .../DismissalPayPeriodSelection.tsx | 10 +++---- .../OffCycle/OffCycleFlowComponents.tsx | 2 +- .../OffCycleCreation.stories.tsx | 2 +- .../OffCycleCreation.test.tsx | 4 +-- .../OffCycleCreation/OffCycleCreation.tsx | 8 +++--- .../OffCycleTaxWithholdingModal.stories.tsx | 2 +- .../OffCycleTaxWithholdingModal.tsx | 2 +- .../OffCycleTaxWithholdingTable.stories.tsx | 2 +- .../OffCycleTaxWithholdingTable.test.tsx | 2 +- .../OffCycleTaxWithholdingTableTypes.ts | 2 +- .../components/PayrollBlockerList.tsx | 8 +++--- .../PayrollBlocker/payrollHelpers.test.ts | 2 +- .../Payroll/PayrollBlocker/payrollHelpers.ts | 4 +-- .../PayrollConfiguration.tsx | 22 ++++++++-------- .../PayrollConfigurationPresentation.test.tsx | 6 ++--- .../PayrollConfigurationPresentation.tsx | 10 +++---- .../usePayrollConfigurationData.ts | 18 ++++++------- .../PayrollEditEmployee.stories.tsx | 4 +-- .../PayrollEditEmployee.tsx | 10 +++---- .../PayrollEditEmployeePresentation.test.tsx | 10 +++---- .../PayrollEditEmployeePresentation.tsx | 10 +++---- .../PayrollEditEmployee/TimeOffField.test.tsx | 4 +-- .../PayrollEditEmployee/TimeOffField.tsx | 4 +-- .../PayrollExecutionFlow.tsx | 2 +- .../payrollExecutionMachine.ts | 2 +- .../PayrollExecutionFlowContextual.tsx | 2 +- .../PayrollFlow/PayrollFlowComponents.tsx | 2 +- .../PayrollFlow/TransitionFlowContextual.tsx | 4 +-- .../PayrollFlow/payrollStateMachine.ts | 2 +- .../PayrollHistory/PayrollHistory.stories.tsx | 4 +-- .../Payroll/PayrollHistory/PayrollHistory.tsx | 10 +++---- .../PayrollHistoryPresentation.tsx | 4 +-- .../PayrollLandingFlowComponents.tsx | 4 +-- .../Payroll/PayrollList/PayrollList.tsx | 18 ++++++------- .../PayrollListPresentation.test.tsx | 6 ++--- .../PayrollList/PayrollListPresentation.tsx | 8 +++--- .../PayrollStatusShowcase.stories.tsx | 4 +-- .../PayrollOverview/PayrollOverview.test.tsx | 18 ++++++------- .../PayrollOverview/PayrollOverview.tsx | 18 ++++++------- .../PayrollOverviewPresentation.test.tsx | 4 +-- .../PayrollOverviewPresentation.tsx | 10 +++---- .../FastAchSubmissionBlockerBanner.tsx | 4 +-- .../SubmissionBlockers/GenericBlocker.tsx | 2 +- .../PayrollReceipts.stories.tsx | 2 +- .../PayrollReceipts/PayrollReceipts.tsx | 2 +- .../PayrollReceiptsPresentation.test.tsx | 2 +- .../PayrollReceiptsPresentation.tsx | 2 +- .../payrollStatusConfig.ts | 4 +-- .../usePayrollStatusBadges.test.ts | 2 +- .../RecoveryCasesList/RecoveryCasesList.tsx | 4 +-- .../RecoveryCasesResubmit.tsx | 4 +-- .../Transition/TransitionFlowComponents.tsx | 2 +- .../TransitionCreation.stories.tsx | 2 +- .../TransitionCreation/TransitionCreation.tsx | 8 +++--- .../TransitionPayrollAlert.stories.tsx | 2 +- .../TransitionPayrollAlert.tsx | 8 +++--- ...ransitionPayrollAlertPresentation.test.tsx | 2 +- .../TransitionPayrollAlertPresentation.tsx | 2 +- src/components/Payroll/helpers.test.ts | 22 ++++++++-------- src/components/Payroll/helpers.ts | 18 ++++++------- src/components/Payroll/payrollTypes.ts | 2 +- .../Payroll/usePreparedPayrollData.ts | 13 +++++----- .../useUnprocessedTransitionPayPeriods.ts | 8 +++--- .../HolidayPolicyDetail.tsx | 6 ++--- .../HolidaySelectionForm.test.tsx | 2 +- .../HolidaySelectionForm.tsx | 8 +++--- .../TimeOff/PolicyList/PolicyList.tsx | 14 +++++----- .../PolicySettings/PolicySettings.test.tsx | 8 +++--- .../TimeOff/PolicySettings/PolicySettings.tsx | 12 ++++----- .../PolicyTypeSelector/PolicyTypeSelector.tsx | 2 +- .../TimeOff/TimeOffFlow/timeOffPolicyTypes.ts | 2 +- .../PolicyConfigurationForm.test.tsx | 6 ++--- .../PolicyConfigurationForm.tsx | 14 +++++----- .../SelectEmployeesHoliday.test.tsx | 8 +++--- .../SelectEmployeesHoliday.tsx | 6 ++--- .../SelectEmployeesPresentationTypes.ts | 2 +- .../SelectEmployeesTimeOff.test.tsx | 8 +++--- .../SelectEmployeesTimeOff.tsx | 10 +++---- .../useSelectEmployeesData.multiPage.test.tsx | 12 ++++----- ...useSelectEmployeesData.pagination.test.tsx | 6 ++--- .../SelectEmployees/useSelectEmployeesData.ts | 8 +++--- .../TimeOffPolicyDetail.test.tsx | 8 +++--- .../TimeOffPolicyDetail.tsx | 14 +++++----- src/contexts/ApiProvider/ApiProvider.test.tsx | 12 ++++----- src/contexts/ApiProvider/ApiProvider.tsx | 12 ++++----- .../ApiProvider/apiVersionHook.test.ts | 6 ++--- src/contexts/ApiProvider/apiVersionHook.ts | 2 +- .../ApiProvider/createSdkQueryClient.ts | 8 +++--- src/helpers/apiErrorToList.tsx | 2 +- src/helpers/formattedStrings.ts | 4 +-- src/hooks/useCompanyPaymentSpeed.ts | 4 +-- src/partner-hook-utils/composeErrorHandler.ts | 4 +-- .../form/composeSubmitHandler.ts | 2 +- src/shared/constants.ts | 4 +-- src/test/factories/jobsAndCompensations.ts | 10 +++---- src/test/mocks/apis/company_bank_accounts.ts | 6 ++--- src/test/mocks/apis/company_federal_taxes.ts | 4 +-- src/test/mocks/apis/company_forms.ts | 6 ++--- src/test/mocks/apis/company_locations.ts | 4 +-- src/test/mocks/apis/company_signatories.ts | 10 +++---- src/test/mocks/apis/compensations.ts | 2 +- src/test/mocks/apis/contractor_address.ts | 6 ++--- .../mocks/apis/contractor_new_hire_report.ts | 2 +- .../mocks/apis/contractor_payment_method.ts | 8 +++--- src/test/mocks/apis/contractors.ts | 6 ++--- src/test/mocks/apis/employee_federal_taxes.ts | 4 +-- .../mocks/apis/employee_home_addresses.ts | 10 +++---- src/test/mocks/apis/employee_state_taxes.ts | 4 +-- .../mocks/apis/employee_work_addresses.ts | 10 +++---- src/test/mocks/apis/employees.ts | 24 ++++++++--------- src/test/mocks/apis/employeesBankAccounts.ts | 10 +++---- src/test/mocks/apis/i9_authorization.ts | 4 +-- src/test/mocks/apis/payrolls.ts | 8 +++--- src/test/mocks/apis/payschedule.ts | 8 +++--- src/test/mocks/apis/tokens.ts | 2 +- src/test/mocks/apis/wire_in_requests.ts | 2 +- src/types/hooks.ts | 4 +-- src/types/sdkError.test.ts | 8 +++--- src/types/sdkError.ts | 8 +++--- 376 files changed, 1028 insertions(+), 1029 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6907f4cde..da9fcc789 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,7 +24,7 @@ npm run sdk-app # Dev build with HMR Or for a production SDK build: -``` +```bash npm run sdk-app-prod # Production build (uses built dist/) ``` @@ -64,7 +64,7 @@ Use Field components from `src/components/Common/Fields/` inside `FormProvider`. ### Component Organization -``` +```text src/components/ ├── Common/ # Shared UI primitives and Field components │ ├── Fields/ # Form-connected Field components (use for forms) @@ -76,33 +76,33 @@ src/components/ └── Flow/ # Multi-step flow orchestration ``` -### API Layer (`@gusto/embedded-api-v-2025-11-15`) +### API Layer (`@gusto/embedded-api-v-2026-02-01`) -All API calls go through `@gusto/embedded-api-v-2025-11-15` with React Query hooks and Zod schema validation. +All API calls go through `@gusto/embedded-api-v-2026-02-01` with React Query hooks and Zod schema validation. Import paths: -- `@gusto/embedded-api-v-2025-11-15/react-query/` — React Query hooks -- `@gusto/embedded-api-v-2025-11-15/models/components/` — Entity types -- `@gusto/embedded-api-v-2025-11-15/models/operations/` — Request/response types -- `@gusto/embedded-api-v-2025-11-15/models/errors/` — Error types +- `@gusto/embedded-api-v-2026-02-01/react-query/` — React Query hooks +- `@gusto/embedded-api-v-2026-02-01/models/components/` — Entity types +- `@gusto/embedded-api-v-2026-02-01/models/operations/` — Request/response types +- `@gusto/embedded-api-v-2026-02-01/models/errors/` — Error types Hook naming: `useSuspense` (queries), `useMutation` (mutations) #### Auto-invalidation on mutation success -The `QueryClient` produced by `createSdkQueryClient` (in `src/contexts/ApiProvider/createSdkQueryClient.ts`) sets a global mutation default: on any successful mutation under the `['@gusto/embedded-api-v-2025-11-15']` key, it invalidates **every** SDK query. Both `ApiProvider` (production) and `GustoTestProvider` (tests) use this factory, so the behavior is identical in both environments. +The `QueryClient` produced by `createSdkQueryClient` (in `src/contexts/ApiProvider/createSdkQueryClient.ts`) sets a global mutation default: on any successful mutation under the `['@gusto/embedded-api-v-2026-02-01']` key, it invalidates **every** SDK query. Both `ApiProvider` (production) and `GustoTestProvider` (tests) use this factory, so the behavior is identical in both environments. Implications when writing SDK code: -- **Do not call `queryClient.invalidateQueries(...)` after a successful `@gusto/embedded-api-v-2025-11-15` mutation.** It's redundant — the global `onSuccess` already invalidated the entire SDK namespace. Just `await mutateAsync(...)` and the next render's queries refetch automatically. +- **Do not call `queryClient.invalidateQueries(...)` after a successful `@gusto/embedded-api-v-2026-02-01` mutation.** It's redundant — the global `onSuccess` already invalidated the entire SDK namespace. Just `await mutateAsync(...)` and the next render's queries refetch automatically. - This is why `usePaymentMethodList`, `useEmployeeCompensation`, etc. don't manually invalidate after their delete/update mutations. - If a partner brings their own `QueryClient` to `ApiProvider`, the defaults are **not** applied to it — they're responsible for matching the contract if they want this behavior. Don't paper over that with manual invalidation in hooks; treat it as their responsibility. - If you need to invalidate _more narrowly_ (e.g. you only want one query to refetch, not the whole namespace), that's a code smell — most likely the global invalidate is already doing what you want. ### Provider Stack -``` +```text GustoProvider → ComponentsProvider → ThemeProvider → LocaleProvider / I18nextProvider → ApiProvider → {children} ``` @@ -112,7 +112,7 @@ All user-facing text uses i18next. Run `npm run i18n:generate` after changing tr ### Partner hooks (`composeErrorHandler` / `composeSubmitHandler`) -Exported headless hooks build `errorHandling` with **`composeErrorHandler`** (not a React hook). For multi-form screens, **`composeSubmitHandler`** coordinates validation + ordered submits and returns `{ handleSubmit, errorHandling }` aggregated across those forms. The result plugs back into `composeErrorHandler` when partners need extra `@gusto/embedded-api-v-2025-11-15` queries or screen-level submit state in the same error surface — see [docs/hooks/hooks.md](docs/hooks/hooks.md). +Exported headless hooks build `errorHandling` with **`composeErrorHandler`** (not a React hook). For multi-form screens, **`composeSubmitHandler`** coordinates validation + ordered submits and returns `{ handleSubmit, errorHandling }` aggregated across those forms. The result plugs back into `composeErrorHandler` when partners need extra `@gusto/embedded-api-v-2026-02-01` queries or screen-level submit state in the same error surface — see [docs/hooks/hooks.md](docs/hooks/hooks.md). ### Component & Feature Conventions @@ -136,7 +136,7 @@ Durable conventions that apply SDK-wide to any component or feature: Three-repo architecture with sibling directories: -``` +```text ~/workspace/ ├── zenpayroll/ # Core Rails app ├── gws-flows/ # Rails API proxy for local SDK testing diff --git a/CLAUDE.md b/CLAUDE.md index 272ee98cc..91251f2a7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -78,26 +78,26 @@ src/components/ └── Flow/ # Multi-step flow orchestration ``` -### API Layer (`@gusto/embedded-api-v-2025-11-15`) +### API Layer (`@gusto/embedded-api-v-2026-02-01`) -All API calls go through `@gusto/embedded-api-v-2025-11-15` with React Query hooks and Zod schema validation. +All API calls go through `@gusto/embedded-api-v-2026-02-01` with React Query hooks and Zod schema validation. Import paths: -- `@gusto/embedded-api-v-2025-11-15/react-query/` — React Query hooks -- `@gusto/embedded-api-v-2025-11-15/models/components/` — Entity types -- `@gusto/embedded-api-v-2025-11-15/models/operations/` — Request/response types -- `@gusto/embedded-api-v-2025-11-15/models/errors/` — Error types +- `@gusto/embedded-api-v-2026-02-01/react-query/` — React Query hooks +- `@gusto/embedded-api-v-2026-02-01/models/components/` — Entity types +- `@gusto/embedded-api-v-2026-02-01/models/operations/` — Request/response types +- `@gusto/embedded-api-v-2026-02-01/models/errors/` — Error types Hook naming: `useSuspense` (queries), `useMutation` (mutations) #### Auto-invalidation on mutation success -The `QueryClient` produced by `createSdkQueryClient` (in `src/contexts/ApiProvider/createSdkQueryClient.ts`) sets a global mutation default: on any successful mutation under the `['@gusto/embedded-api-v-2025-11-15']` key, it invalidates **every** SDK query. Both `ApiProvider` (production) and `GustoTestProvider` (tests) use this factory, so the behavior is identical in both environments. +The `QueryClient` produced by `createSdkQueryClient` (in `src/contexts/ApiProvider/createSdkQueryClient.ts`) sets a global mutation default: on any successful mutation under the `['@gusto/embedded-api-v-2026-02-01']` key, it invalidates **every** SDK query. Both `ApiProvider` (production) and `GustoTestProvider` (tests) use this factory, so the behavior is identical in both environments. Implications when writing SDK code: -- **Do not call `queryClient.invalidateQueries(...)` after a successful `@gusto/embedded-api-v-2025-11-15` mutation.** It's redundant — the global `onSuccess` already invalidated the entire SDK namespace. Just `await mutateAsync(...)` and the next render's queries refetch automatically. +- **Do not call `queryClient.invalidateQueries(...)` after a successful `@gusto/embedded-api-v-2026-02-01` mutation.** It's redundant — the global `onSuccess` already invalidated the entire SDK namespace. Just `await mutateAsync(...)` and the next render's queries refetch automatically. - This is why `usePaymentMethodList`, `useEmployeeCompensation`, etc. don't manually invalidate after their delete/update mutations. - If a partner brings their own `QueryClient` to `ApiProvider`, the defaults are **not** applied to it — they're responsible for matching the contract if they want this behavior. Don't paper over that with manual invalidation in hooks; treat it as their responsibility. - If you need to invalidate _more narrowly_ (e.g. you only want one query to refetch, not the whole namespace), that's a code smell — most likely the global invalidate is already doing what you want. @@ -114,7 +114,7 @@ All user-facing text uses i18next. Run `npm run i18n:generate` after changing tr ### Partner hooks (`composeErrorHandler` / `composeSubmitHandler`) -Exported headless hooks build `errorHandling` with **`composeErrorHandler`** (not a React hook). For multi-form screens, **`composeSubmitHandler`** coordinates validation + ordered submits and returns `{ handleSubmit, errorHandling }` aggregated across those forms. The result plugs back into `composeErrorHandler` when partners need extra `@gusto/embedded-api-v-2025-11-15` queries or screen-level submit state in the same error surface — see [docs/hooks/hooks.md](docs/hooks/hooks.md). +Exported headless hooks build `errorHandling` with **`composeErrorHandler`** (not a React hook). For multi-form screens, **`composeSubmitHandler`** coordinates validation + ordered submits and returns `{ handleSubmit, errorHandling }` aggregated across those forms. The result plugs back into `composeErrorHandler` when partners need extra `@gusto/embedded-api-v-2026-02-01` queries or screen-level submit state in the same error surface — see [docs/hooks/hooks.md](docs/hooks/hooks.md). ### Component & Feature Conventions diff --git a/build/deriveEndpointInventory.ts b/build/deriveEndpointInventory.ts index 46d127685..2d0bef7af 100644 --- a/build/deriveEndpointInventory.ts +++ b/build/deriveEndpointInventory.ts @@ -17,8 +17,8 @@ const __dirname = dirname(__filename) const ROOT = join(__dirname, '..') const SRC_DIR = join(ROOT, 'src') -const FUNCS_DIR = join(ROOT, 'node_modules/@gusto/embedded-api-v-2025-11-15/src/funcs') -const OPS_DIR = join(ROOT, 'node_modules/@gusto/embedded-api-v-2025-11-15/src/models/operations') +const FUNCS_DIR = join(ROOT, 'node_modules/@gusto/embedded-api-v-2026-02-01/src/funcs') +const OPS_DIR = join(ROOT, 'node_modules/@gusto/embedded-api-v-2026-02-01/src/models/operations') const COMPONENTS_DIR = join(ROOT, 'src/components') const JSON_OUTPUT_PATH = join(ROOT, 'docs/appendix/endpoint-inventory.json') const MD_OUTPUT_PATH = join(ROOT, 'docs/appendix/endpoint-reference.md') @@ -208,11 +208,11 @@ function collectTransitiveApiImports( const funcNames = new Set() function followSpec(spec: string, getResolved: () => SourceFile | undefined) { - if (spec.startsWith('@gusto/embedded-api-v-2025-11-15/react-query/')) { - const name = spec.slice('@gusto/embedded-api-v-2025-11-15/react-query/'.length) + if (spec.startsWith('@gusto/embedded-api-v-2026-02-01/react-query/')) { + const name = spec.slice('@gusto/embedded-api-v-2026-02-01/react-query/'.length) if (!name.startsWith('_')) funcNames.add(name) - } else if (spec.startsWith('@gusto/embedded-api-v-2025-11-15/funcs/')) { - funcNames.add(spec.slice('@gusto/embedded-api-v-2025-11-15/funcs/'.length)) + } else if (spec.startsWith('@gusto/embedded-api-v-2026-02-01/funcs/')) { + funcNames.add(spec.slice('@gusto/embedded-api-v-2026-02-01/funcs/'.length)) } else if (spec.startsWith('.') || spec.startsWith('@/hooks/')) { // Follow relative imports (catches ../shared/ hooks) and cross-cutting utility hooks. // Deliberately skip @/components/, @/contexts/, @/helpers/ etc. to avoid @@ -708,7 +708,7 @@ function validateEndpoints( if (invalid.length > 0) { console.error( - 'WARNING: Some inventory endpoints were not found in @gusto/embedded-api-v-2025-11-15:', + 'WARNING: Some inventory endpoints were not found in @gusto/embedded-api-v-2026-02-01:', ) for (const ep of invalid) console.error(` ${ep}`) console.error('') @@ -781,7 +781,7 @@ function verify() { console.error('This can happen when:') console.error(' - A component added or removed an API hook/function import') console.error(' - A flow added or removed a block component') - console.error(' - The @gusto/embedded-api-v-2025-11-15 package was updated') + console.error(' - The @gusto/embedded-api-v-2026-02-01 package was updated') console.error('') if (committedJson !== freshJson) printDiff(JSON_OUTPUT_PATH, freshJson) if (committedMd !== freshMd) printDiff(MD_OUTPUT_PATH, freshMd) diff --git a/docs/appendix/jobs-and-compensations.md b/docs/appendix/jobs-and-compensations.md index 9792b0b11..3ad36551a 100644 --- a/docs/appendix/jobs-and-compensations.md +++ b/docs/appendix/jobs-and-compensations.md @@ -9,7 +9,7 @@ A consolidated reference for the Embedded API's `Job` and `Compensation` resourc All items in this doc are tied to verified behavior in: -- **`@gusto/embedded-api-v-2025-11-15`** generated types (`JobsCreateRequestBody`, `JobsUpdateRequestBody`, `CompensationsRequestBody`, `CompensationsUpdateRequestBody`, `Job`, `Compensation`) +- **`@gusto/embedded-api-v-2026-02-01`** generated types (`JobsCreateRequestBody`, `JobsUpdateRequestBody`, `CompensationsRequestBody`, `CompensationsUpdateRequestBody`, `Job`, `Compensation`) - **gws-flows** Rails controllers, Stimulus controllers, and ERB form views - **zenpayroll** model code, validators, and partner facades (`JobFacade`, `CompensationFacade`) @@ -47,7 +47,7 @@ Key consequences: ## 2. Endpoint reference -All hooks live under `@gusto/embedded-api-v-2025-11-15/react-query/`. Mapping: +All hooks live under `@gusto/embedded-api-v-2026-02-01/react-query/`. Mapping: | HTTP / Path | Purpose | React Query hook | | ---------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | diff --git a/docs/hooks/hooks.md b/docs/hooks/hooks.md index 13412a301..4216c4d6a 100644 --- a/docs/hooks/hooks.md +++ b/docs/hooks/hooks.md @@ -382,7 +382,7 @@ interface HookErrorHandling { ### Multi-hook screens -When a screen pulls from more than one SDK hook (or mixes SDK hooks with additional `@gusto/embedded-api-v-2025-11-15` queries), combine their error state into one banner and one retry/dismiss flow using `composeErrorHandler` / `composeSubmitHandler`. See [Composing Multiple Hooks](#composing-multiple-hooks). +When a screen pulls from more than one SDK hook (or mixes SDK hooks with additional `@gusto/embedded-api-v-2026-02-01` queries), combine their error state into one banner and one retry/dismiss flow using `composeErrorHandler` / `composeSubmitHandler`. See [Composing Multiple Hooks](#composing-multiple-hooks). ### SDKError shape @@ -561,7 +561,7 @@ Error codes for each hook are exported alongside the hook: ## Composing Multiple Hooks -A screen that combines multiple SDK hooks, or mixes SDK hooks with additional `@gusto/embedded-api-v-2025-11-15` queries, produces multiple `errorHandling` objects and (for form screens) multiple submit flows. Two small helpers stitch them together: +A screen that combines multiple SDK hooks, or mixes SDK hooks with additional `@gusto/embedded-api-v-2026-02-01` queries, produces multiple `errorHandling` objects and (for form screens) multiple submit flows. Two small helpers stitch them together: - **`composeErrorHandler([sources])`** — merges many error sources into a single `HookErrorHandling`. - **`composeSubmitHandler([forms], onAllValid)`** — coordinates validation and ordered submits across forms, and returns `{ handleSubmit, errorHandling }` where `errorHandling` is built from those forms via `composeErrorHandler` under the hood. @@ -571,11 +571,11 @@ A screen that combines multiple SDK hooks, or mixes SDK hooks with additional `@ Use `composeErrorHandler` to produce a single `errorHandling` bag for any screen that reads from multiple sources. It accepts any mix of: - **SDK hook results** — objects with an `errorHandling` property (e.g., `useEmployeeDetailsForm`, `useCompensationForm`, or the return value of `composeSubmitHandler`). -- **`@gusto/embedded-api-v-2025-11-15` React Query results** — objects with `error` and `refetch` properties. +- **`@gusto/embedded-api-v-2026-02-01` React Query results** — objects with `error` and `refetch` properties. ```tsx import { composeErrorHandler, useEmployeeDetailsForm } from '@gusto/embedded-react-sdk' -import { useEmployeeFormsList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' +import { useEmployeeFormsList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' function EmployeeProfileView({ companyId, employeeId }: { companyId: string; employeeId: string }) { const employeeDetails = useEmployeeDetailsForm({ companyId, employeeId }) @@ -598,7 +598,7 @@ function EmployeeProfileView({ companyId, employeeId }: { companyId: string; emp } ``` -`employeeDetails` is an SDK hook result (its `errorHandling` is delegated into), while `formsListQuery` is a raw `@gusto/embedded-api-v-2025-11-15` query (its `error` is normalized and its `refetch` is wired into `retryQueries`). The same call works for any combination of the two shapes. +`employeeDetails` is an SDK hook result (its `errorHandling` is delegated into), while `formsListQuery` is a raw `@gusto/embedded-api-v-2026-02-01` query (its `error` is normalized and its `refetch` is wired into `retryQueries`). The same call works for any combination of the two shapes. The returned `errorHandling` has the same shape as any SDK hook's `errorHandling`: @@ -623,7 +623,7 @@ const { handleSubmit, errorHandling } = composeSubmitHandler( ) ``` -If the same screen also has extra `@gusto/embedded-api-v-2025-11-15` queries that should feed the same error banner, pass the `composeSubmitHandler` result back into `composeErrorHandler` alongside those queries — the result already satisfies `composeErrorHandler`'s input shape: +If the same screen also has extra `@gusto/embedded-api-v-2026-02-01` queries that should feed the same error banner, pass the `composeSubmitHandler` result back into `composeErrorHandler` alongside those queries — the result already satisfies `composeErrorHandler`'s input shape: ```tsx const submitResult = composeSubmitHandler([employeeDetails, compensation], onAllValid) diff --git a/docs/hooks/useEmployeeStateTaxesForm.md b/docs/hooks/useEmployeeStateTaxesForm.md index 6c70bdd08..2ca1b2b14 100644 --- a/docs/hooks/useEmployeeStateTaxesForm.md +++ b/docs/hooks/useEmployeeStateTaxesForm.md @@ -72,7 +72,7 @@ The non-primitive types in the Ready state are all re-exported from `@gusto/embe | Type | What it is | | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `UseEmployeeStateTaxesFormReady` | The full Ready-state object (the discriminated `isLoading: false` branch). Use this as the prop type for components that receive a ready form, so you don't have to repeat the `Extract<...>` narrowing. | -| `EmployeeStateTaxesList` | API record for one state's tax answers, re-exported from `@gusto/embedded-api-v-2025-11-15`. Each entry in `data.employeeStateTaxes` is one of these. | +| `EmployeeStateTaxesList` | API record for one state's tax answers, re-exported from `@gusto/embedded-api-v-2026-02-01`. Each entry in `data.employeeStateTaxes` is one of these. | | `StateTaxFieldsGroup` | One state's render-ready bundle: `{ state, questions: StateTaxQuestionFieldEntry[] }`. The full shape is documented under [Fields shape](#fields-shape). | | `StateTaxQuestionFieldEntry` | The discriminated entry for a single question — `type` + metadata + bound `Field` component. See [Fields shape](#fields-shape). | | `EmployeeStateTaxesFieldsMetadata` | Static field metadata keyed by full form path (`states..`), with `isRequired` / `isDisabled` / option lists. Same shape as other SDK form hooks' `fieldsMetadata`. | diff --git a/docs/reference/index.md b/docs/reference/index.md index b3a6b01e8..1cfd3a290 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -31,7 +31,7 @@ custom_edit_url: null ### ApiProvider -Wires the `@gusto/embedded-api-v-2025-11-15` client and a React Query client into the React tree. +Wires the `@gusto/embedded-api-v-2026-02-01` client and a React Query client into the React tree. #### ApiProviderProps @@ -42,7 +42,7 @@ Props for [ApiProvider](#apiprovider). | Property | Type | Description | | ------ | ------ | ------ | | `children` | `ReactNode` | Subtree that renders inside the API + React Query providers. | -| `url` | `string` | Base URL the SDK uses for all `@gusto/embedded-api-v-2025-11-15` requests. | +| `url` | `string` | Base URL the SDK uses for all `@gusto/embedded-api-v-2026-02-01` requests. | | `headers?` | `HeadersInit` | Default headers applied to every SDK request, in addition to the `X-Gusto-API-Version` header set automatically. | | `hooks?` | [`SDKHooks`](#sdkhooks) | Lifecycle hooks for intercepting and modifying SDK requests and responses. | | `queryClient?` | `QueryClient` | Optional React Query client. When omitted, a client is created with the SDK's defaults (auto-invalidation on mutation success). | @@ -52,7 +52,7 @@ Props for [ApiProvider](#apiprovider). Registers the SDK's `X-Gusto-API-Version` header on every request, applies any default `headers`, and registers user-supplied lifecycle hooks (`beforeCreateRequest`, `beforeRequest`, `afterSuccess`, `afterError`). When no `queryClient` is supplied, one is created with the SDK's defaults so -successful mutations under the `['@gusto/embedded-api-v-2025-11-15']` key invalidate every SDK +successful mutations under the `['@gusto/embedded-api-v-2026-02-01']` key invalidate every SDK query automatically. Partners who supply their own `QueryClient` are responsible for matching that contract. @@ -722,7 +722,7 @@ Request interceptors for customizing HTTP requests and responses. Pass an instance of this interface to [GustoProvider](#gustoprovider) via `config.hooks` to inspect or modify requests and responses across the four lifecycle stages. Each entry is an array of objects implementing the corresponding hook type -from `@gusto/embedded-api-v-2025-11-15/hooks/types`. +from `@gusto/embedded-api-v-2026-02-01/hooks/types`. | Stage | When it runs | | ----- | ------------ | diff --git a/docs/reference/utilities.md b/docs/reference/utilities.md index 936424b11..149bc2832 100644 --- a/docs/reference/utilities.md +++ b/docs/reference/utilities.md @@ -82,7 +82,7 @@ A single `HookErrorHandling` covering every source. #### Remarks -Accepts any mix of `@gusto/embedded-api-v-2025-11-15` React Query results and SDK hook +Accepts any mix of `@gusto/embedded-api-v-2026-02-01` React Query results and SDK hook results that already expose an `errorHandling` object (including the value returned by [composeSubmitHandler](#composesubmithandler)). Query errors are normalized to `SDKError`, nested hook errors are flattened in, and an optional submit-state argument adds a submit error to @@ -99,7 +99,7 @@ recovery, not a submit callback. ```tsx import { composeErrorHandler, useEmployeeDetailsForm } from '@gusto/embedded-react-sdk' -import { useEmployeeFormsList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' +import { useEmployeeFormsList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' function EmployeeProfileView({ companyId, employeeId }: { companyId: string; employeeId: string }) { const employeeDetails = useEmployeeDetailsForm({ companyId, employeeId }) @@ -167,7 +167,7 @@ cross-form focus instead. The returned `errorHandling` is the same shape every SDK hook returns, so the whole result can be passed back into [composeErrorHandler](#composeerrorhandler) when you need to add extra -`@gusto/embedded-api-v-2025-11-15` queries or screen-level submit state. +`@gusto/embedded-api-v-2026-02-01` queries or screen-level submit state. #### Example diff --git a/e2e/utils/validationErrorCollector.test.ts b/e2e/utils/validationErrorCollector.test.ts index 396f74592..77c172a67 100644 --- a/e2e/utils/validationErrorCollector.test.ts +++ b/e2e/utils/validationErrorCollector.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest' -import { SDKValidationError } from '@gusto/embedded-api-v-2025-11-15/models/errors/sdkvalidationerror' +import { SDKValidationError } from '@gusto/embedded-api-v-2026-02-01/models/errors/sdkvalidationerror' import { z } from 'zod/v3' import { createValidationErrorCollector, diff --git a/package-lock.json b/package-lock.json index c576a296a..0e19becd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.48.3", "license": "MIT", "dependencies": { - "@gusto/embedded-api-v-2025-11-15": "^0.0.2", + "@gusto/embedded-api-v-2026-02-01": "^0.0.1", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "^5.4.0", "@internationalized/date": "^3.12.2", @@ -2648,10 +2648,10 @@ "tslib": "^2.8.0" } }, - "node_modules/@gusto/embedded-api-v-2025-11-15": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@gusto/embedded-api-v-2025-11-15/-/embedded-api-v-2025-11-15-0.0.2.tgz", - "integrity": "sha512-wVoE9mPddkPzQUwog6EfA4Si7NdjOve5l1IQReuvP+E6Xd+1RzaWFY7X6A05zM6Fyc4DC1e6tR1x9KnrNMeNPw==", + "node_modules/@gusto/embedded-api-v-2026-02-01": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@gusto/embedded-api-v-2026-02-01/-/embedded-api-v-2026-02-01-0.0.1.tgz", + "integrity": "sha512-tO7USfhZRFchMq/tfIJYeH5TR9GA7HVd1qGmQXt+FU0Emow32202wnWKBfPJR3bjr54OsnsGTWTlS/mkWfljkA==", "license": "MIT", "dependencies": { "zod": "^3.25.0 || ^4.0.0" diff --git a/package.json b/package.json index 918b106a5..92bd437d3 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "markdown-it": "^14.2.0" }, "dependencies": { - "@gusto/embedded-api-v-2025-11-15": "^0.0.2", + "@gusto/embedded-api-v-2026-02-01": "^0.0.1", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "^5.4.0", "@internationalized/date": "^3.12.2", diff --git a/sdk-app/src/design/components/contractor/management/ContractorAddress/ContractorAddress.tsx b/sdk-app/src/design/components/contractor/management/ContractorAddress/ContractorAddress.tsx index ad809b18b..25c33f1e2 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorAddress/ContractorAddress.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorAddress/ContractorAddress.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/contractor/management/ContractorAddressForm/ContractorAddressForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorAddressForm/ContractorAddressForm.tsx index 10b389173..1d9c8681f 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorAddressForm/ContractorAddressForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorAddressForm/ContractorAddressForm.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { AddressForm, type AddressFormValues } from '../../shared/AddressForm/AddressForm' import { contractorName } from '../../shared/contractorName' import { useBase } from '@/components/Base/useBase' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetails.tsx b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetails.tsx index 3629818c8..660f49d4b 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetails.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetails.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { CONTRACTOR_TYPE } from '@/shared/constants' import { Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsConfigurations.tsx b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsConfigurations.tsx index a4ddc7850..8e3647f29 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsConfigurations.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { ContractorDetailsDemo } from './ContractorDetailsStates' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsStates.tsx b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsStates.tsx index 959db7054..e0c1fddb0 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsStates.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDetails/ContractorDetailsStates.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { ContractorDetails } from './ContractorDetails' export interface ContractorDetailsDemoProps { diff --git a/sdk-app/src/design/components/contractor/management/ContractorDetailsForm/ContractorDetailsForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorDetailsForm/ContractorDetailsForm.tsx index 01c067a3d..41524e834 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDetailsForm/ContractorDetailsForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDetailsForm/ContractorDetailsForm.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { ProfileDetailsForm, type ProfileDetailsFormValues, diff --git a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalForm.tsx index 8ae60eedb..3b9fe173d 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalForm.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormConfigurations.tsx b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormConfigurations.tsx index 35678e8c1..2f49c3455 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormConfigurations.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { ContractorDismissalFormDemo } from './ContractorDismissalFormStates' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormStates.tsx b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormStates.tsx index c6e16ac84..076d3aa38 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormStates.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDismissalForm/ContractorDismissalFormStates.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { ContractorDismissalForm } from './ContractorDismissalForm' import { BaseComponent } from '@/components/Base' diff --git a/sdk-app/src/design/components/contractor/management/ContractorDocuments/ContractorDocuments.tsx b/sdk-app/src/design/components/contractor/management/ContractorDocuments/ContractorDocuments.tsx index 92d4ecb76..3962b68ed 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorDocuments/ContractorDocuments.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorDocuments/ContractorDocuments.tsx @@ -1,6 +1,6 @@ import { useCallback } from 'react' -import type { Document } from '@gusto/embedded-api-v-2025-11-15/models/components/document' -import { useContractorDocumentsGetPdf } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsGetPdf' +import type { Document } from '@gusto/embedded-api-v-2026-02-01/models/components/document' +import { useContractorDocumentsGetPdf } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsGetPdf' import { DataView, useDataView } from '@/components/Common/DataView' import { EmptyData } from '@/components/Common/EmptyData/EmptyData' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorList.tsx b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorList.tsx index 6a5acc48d..0365181d9 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorList.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorList.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { contractorName } from '../../shared/contractorName' import { Skeleton } from '../../../common/Skeleton' import { SkeletonDataView } from './SkeletonDataView' diff --git a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListConfigurations.tsx b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListConfigurations.tsx index 742361e3e..32fda7415 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListConfigurations.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { ContractorListDemo } from './ContractorListStates' diff --git a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListStates.tsx b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListStates.tsx index 43432e153..64169d5cf 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListStates.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorList/ContractorListStates.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { ContractorList, type ContractorListTab } from './ContractorList' export interface ContractorTabFixtures { diff --git a/sdk-app/src/design/components/contractor/management/ContractorPay/ContractorPay.tsx b/sdk-app/src/design/components/contractor/management/ContractorPay/ContractorPay.tsx index dc850ea9f..d1dee49f8 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorPay/ContractorPay.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorPay/ContractorPay.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/contractor/management/ContractorPayForm/ContractorPayForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorPayForm/ContractorPayForm.tsx index 8da53cb5b..d0ab24dc5 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorPayForm/ContractorPayForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorPayForm/ContractorPayForm.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' diff --git a/sdk-app/src/design/components/contractor/management/ContractorPaymentMethod/ContractorPaymentMethod.tsx b/sdk-app/src/design/components/contractor/management/ContractorPaymentMethod/ContractorPaymentMethod.tsx index 8cfd8026e..655777a91 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorPaymentMethod/ContractorPaymentMethod.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorPaymentMethod/ContractorPaymentMethod.tsx @@ -1,4 +1,4 @@ -import type { ContractorBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorbankaccount' +import type { ContractorBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorbankaccount' import { Skeleton } from '../../../common/Skeleton' import { DataView, Flex, useDataView } from '@/components/Common' import { HamburgerMenu } from '@/components/Common/HamburgerMenu/HamburgerMenu' diff --git a/sdk-app/src/design/components/contractor/management/ContractorPaymentMethodForm/ContractorPaymentMethodForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorPaymentMethodForm/ContractorPaymentMethodForm.tsx index c41f051f2..66c811de7 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorPaymentMethodForm/ContractorPaymentMethodForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorPaymentMethodForm/ContractorPaymentMethodForm.tsx @@ -1,4 +1,4 @@ -import type { ContractorBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorbankaccount' +import type { ContractorBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorbankaccount' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' diff --git a/sdk-app/src/design/components/contractor/management/ContractorRehireForm/ContractorRehireForm.tsx b/sdk-app/src/design/components/contractor/management/ContractorRehireForm/ContractorRehireForm.tsx index 2f20ba2c5..873654690 100644 --- a/sdk-app/src/design/components/contractor/management/ContractorRehireForm/ContractorRehireForm.tsx +++ b/sdk-app/src/design/components/contractor/management/ContractorRehireForm/ContractorRehireForm.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' diff --git a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentList.tsx b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentList.tsx index 7841a554e..979b0fb54 100644 --- a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentList.tsx +++ b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentList.tsx @@ -1,4 +1,4 @@ -import type { Document } from '@gusto/embedded-api-v-2025-11-15/models/components/document' +import type { Document } from '@gusto/embedded-api-v-2026-02-01/models/components/document' import { ActionsLayout, DataView, Flex, useDataView } from '@/components/Common' import { EmptyData } from '@/components/Common/EmptyData/EmptyData' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListConfigurations.tsx b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListConfigurations.tsx index 9ad7b1366..40821a091 100644 --- a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListConfigurations.tsx +++ b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Document } from '@gusto/embedded-api-v-2025-11-15/models/components/document' +import type { Document } from '@gusto/embedded-api-v-2026-02-01/models/components/document' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { ContractorDocumentListDemo } from './ContractorDocumentListStates' diff --git a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListStates.tsx b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListStates.tsx index e1bda19ce..b6cc5ec83 100644 --- a/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListStates.tsx +++ b/sdk-app/src/design/components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentListStates.tsx @@ -1,4 +1,4 @@ -import type { Document } from '@gusto/embedded-api-v-2025-11-15/models/components/document' +import type { Document } from '@gusto/embedded-api-v-2026-02-01/models/components/document' import { ContractorDocumentList } from './ContractorDocumentList' export interface ContractorDocumentListDemoProps { diff --git a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsForm.tsx b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsForm.tsx index 875ec9060..38f3515af 100644 --- a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsForm.tsx +++ b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsForm.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { FormProvider, useForm } from 'react-hook-form' import styles from './LockedField.module.scss' import { normalizeSSN } from '@/helpers/ssn' diff --git a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormConfigurations.tsx b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormConfigurations.tsx index 1fbc3b6bb..52643d4f5 100644 --- a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormConfigurations.tsx +++ b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { ProfileDetailsFormDemo } from './ProfileDetailsFormStates' import { CONTRACTOR_TYPE } from '@/shared/constants' diff --git a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormStates.tsx b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormStates.tsx index 8ae775101..8d9c61f6b 100644 --- a/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormStates.tsx +++ b/sdk-app/src/design/components/contractor/shared/ProfileDetailsForm/ProfileDetailsFormStates.tsx @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { ProfileDetailsForm } from './ProfileDetailsForm' export interface ProfileDetailsFormDemoProps { diff --git a/sdk-app/src/design/components/contractor/shared/contractorName.ts b/sdk-app/src/design/components/contractor/shared/contractorName.ts index 28002fa14..1031c6762 100644 --- a/sdk-app/src/design/components/contractor/shared/contractorName.ts +++ b/sdk-app/src/design/components/contractor/shared/contractorName.ts @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { CONTRACTOR_TYPE } from '@/shared/constants' import { firstLastName } from '@/helpers/formattedStrings' diff --git a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.test.tsx b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.test.tsx index 1b99cb983..00de9b7ae 100644 --- a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.test.tsx +++ b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.test.tsx @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest' import { screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' import { CompensationHistory } from './CompensationHistory' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.tsx b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.tsx index 722558bb6..3f924df5f 100644 --- a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.tsx +++ b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistory.tsx @@ -1,6 +1,6 @@ import { useRef, useState } from 'react' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' import style from './CompensationHistory.module.scss' import { ActionsLayout, DataView, Flex, useDataView } from '@/components/Common' import useContainerBreakpoints from '@/hooks/useContainerBreakpoints/useContainerBreakpoints' diff --git a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryConfigurations.tsx b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryConfigurations.tsx index 4e0ffaa71..17e0a8bb7 100644 --- a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryConfigurations.tsx +++ b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryConfigurations.tsx @@ -1,5 +1,5 @@ -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { CompensationHistoryDemo } from './CompensationHistoryStates' diff --git a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryStates.tsx b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryStates.tsx index d2822e196..94a0640ae 100644 --- a/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryStates.tsx +++ b/sdk-app/src/design/components/employee/management/CompensationHistory/CompensationHistoryStates.tsx @@ -1,4 +1,4 @@ -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { CompensationHistory } from './CompensationHistory' export interface CompensationHistoryDemoProps { diff --git a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeList.tsx b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeList.tsx index 00c19935a..290992bad 100644 --- a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeList.tsx +++ b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeList.tsx @@ -1,6 +1,6 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import { useEmployeeEmploymentsGetRehire } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsGetRehire' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import { useEmployeeEmploymentsGetRehire } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsGetRehire' import { Skeleton } from '../../../common/Skeleton' import { DataView, EmptyData, Flex, useDataView } from '@/components/Common' import { HamburgerMenu } from '@/components/Common/HamburgerMenu/HamburgerMenu' diff --git a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListConfigurations.tsx b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListConfigurations.tsx index 545f5efbd..f7154af10 100644 --- a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListConfigurations.tsx +++ b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { EmployeeListDemo } from './EmployeeListStates' diff --git a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListStates.tsx b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListStates.tsx index 0a2c020e1..c37270124 100644 --- a/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListStates.tsx +++ b/sdk-app/src/design/components/employee/management/EmployeeList/EmployeeListStates.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import { EmployeeList, type EmployeeListTab } from './EmployeeList' export function EmployeeListDemo({ diff --git a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeForm.tsx b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeForm.tsx index cfe32ea90..13201fb45 100644 --- a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeForm.tsx +++ b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeForm.tsx @@ -2,9 +2,9 @@ import { useEffect } from 'react' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' -import type { Rehire } from '@gusto/embedded-api-v-2025-11-15/models/components/rehire' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' +import type { Rehire } from '@gusto/embedded-api-v-2026-02-01/models/components/rehire' import { Flex } from '@/components/Common/Flex' import { Form } from '@/components/Common/Form' import { Grid } from '@/components/Common/Grid/Grid' diff --git a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormConfigurations.tsx b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormConfigurations.tsx index 30b4fe4d1..a795d34e0 100644 --- a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormConfigurations.tsx +++ b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormConfigurations.tsx @@ -1,4 +1,4 @@ -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' import type { PrototypeConfiguration } from '../../../../prototypes/prototypeTypes' import { RehireEmployeeFormDemo } from './RehireEmployeeFormStates' diff --git a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormStates.tsx b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormStates.tsx index 236e33aa5..57defdaea 100644 --- a/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormStates.tsx +++ b/sdk-app/src/design/components/employee/management/RehireEmployeeForm/RehireEmployeeFormStates.tsx @@ -1,5 +1,5 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' import { RehireEmployeeForm } from './RehireEmployeeForm' export interface RehireEmployeeFormDemoProps { diff --git a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropConfigurations.tsx b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropConfigurations.tsx index f1febcbb1..b00c0b3f7 100644 --- a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropConfigurations.tsx +++ b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropConfigurations.tsx @@ -1,8 +1,8 @@ -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' import type { PrototypeConfiguration } from '../../../prototypes/prototypeTypes' import { PayrollConfigurationRropDemo } from './PayrollConfigurationRropStates' diff --git a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropPresentation.tsx b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropPresentation.tsx index f96499cca..78c5c2885 100644 --- a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropPresentation.tsx +++ b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropPresentation.tsx @@ -1,10 +1,10 @@ import type { ReactNode } from 'react' import { useRef } from 'react' -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' import { Trans, useTranslation } from 'react-i18next' import { PayrollSpreadsheet } from '../PayrollSpreadsheet/PayrollSpreadsheet' import styles from './PayrollConfigurationRropPresentation.module.scss' diff --git a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropStates.tsx b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropStates.tsx index 0e92b220f..a8aefe994 100644 --- a/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropStates.tsx +++ b/sdk-app/src/design/components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropStates.tsx @@ -1,8 +1,8 @@ -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' import { PayrollConfigurationRropPresentation } from './PayrollConfigurationRropPresentation' import { PayrollCategory } from '@/components/Payroll/payrollTypes' diff --git a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeConfigurations.tsx b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeConfigurations.tsx index 10435c202..58458ba0e 100644 --- a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeConfigurations.tsx +++ b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeConfigurations.tsx @@ -1,14 +1,14 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import type { PayrollEmployeeCompensationsType, PayrollEmployeeCompensationsTypePaidTimeOff, PayrollEmployeeCompensationsTypeFixedCompensations, PayrollEmployeeCompensationsTypeHourlyCompensations, PayrollEmployeeCompensationsTypeReimbursements, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import type { PrototypeConfiguration } from '../../../prototypes/prototypeTypes' import type { WorkweekRange } from './PayrollEditEmployeePresentation' import { PayrollEditEmployeeDemo } from './PayrollEditEmployeeStates' diff --git a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx index 88797862e..ed737a58c 100644 --- a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx +++ b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx @@ -1,15 +1,15 @@ import { FormProvider, useFieldArray, useForm, useWatch } from 'react-hook-form' import { useMemo, useRef, useState } from 'react' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import type { PayrollEmployeeCompensationsTypeFixedCompensations as FixedCompensations, PayrollEmployeeCompensationsType, PayrollEmployeeCompensationsTypePaidTimeOff, PayrollEmployeeCompensationsTypeReimbursements as Reimbursement, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import { useTranslation } from 'react-i18next' import { z } from 'zod' import { zodResolver } from '@hookform/resolvers/zod' diff --git a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeStates.tsx b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeStates.tsx index f823d90a0..6d979c6fd 100644 --- a/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeStates.tsx +++ b/sdk-app/src/design/components/payroll/PayrollEditEmployee/PayrollEditEmployeeStates.tsx @@ -1,7 +1,7 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import { PayrollEditEmployeePresentation, type WorkweekRange, diff --git a/sdk-app/src/design/components/payroll/PayrollEditEmployee/TimeOffField.tsx b/sdk-app/src/design/components/payroll/PayrollEditEmployee/TimeOffField.tsx index 7d73ac052..27387ee34 100644 --- a/sdk-app/src/design/components/payroll/PayrollEditEmployee/TimeOffField.tsx +++ b/sdk-app/src/design/components/payroll/PayrollEditEmployee/TimeOffField.tsx @@ -1,7 +1,7 @@ import { useWatch, useFormContext } from 'react-hook-form' import { useTranslation } from 'react-i18next' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' import type { PayrollEditEmployeeFormValues } from './PayrollEditEmployeePresentation' import { Flex, TextInputField } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/components/payroll/PayrollSpreadsheet/PayrollSpreadsheet.tsx b/sdk-app/src/design/components/payroll/PayrollSpreadsheet/PayrollSpreadsheet.tsx index ce2c5bc25..64beec72f 100644 --- a/sdk-app/src/design/components/payroll/PayrollSpreadsheet/PayrollSpreadsheet.tsx +++ b/sdk-app/src/design/components/payroll/PayrollSpreadsheet/PayrollSpreadsheet.tsx @@ -1,8 +1,8 @@ import { useEffect, useMemo, useRef, useState, type FocusEvent } from 'react' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import { Skeleton } from '../../common/Skeleton' import styles from './PayrollSpreadsheet.module.scss' import { firstLastName } from '@/helpers/formattedStrings' diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/AddContractorWizard.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/AddContractorWizard.tsx index b02a07042..a116bdfc7 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/AddContractorWizard.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/AddContractorWizard.tsx @@ -84,7 +84,7 @@ export function AddContractorWizard({ case componentEvents.CONTRACTOR_SUBMIT_DONE: { const payload = data as { message?: string } | undefined const message = payload?.message ?? 'Contractor added successfully' - queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'] }) + queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'] }) void navigate(`..?success=${encodeURIComponent(message)}`, { replace: true }) break } diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorAddress.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorAddress.tsx index d42ebcf83..e7fc05b48 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorAddress.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorAddress.tsx @@ -1,6 +1,6 @@ -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetAddress' -import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateAddress' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetAddress' +import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateAddress' import { AddressForm, type AddressFormValues, diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorNewHireReport.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorNewHireReport.tsx index 0baf56966..fc4350a6a 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorNewHireReport.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorNewHireReport.tsx @@ -2,8 +2,8 @@ import { useMemo } from 'react' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import z from 'zod' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' import { BaseComponent, useBase } from '@/components/Base' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { Form } from '@/components/Common/Form' diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorOnboardingOverview.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorOnboardingOverview.tsx index b47bad897..3ac04f23f 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorOnboardingOverview.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorOnboardingOverview.tsx @@ -1,5 +1,5 @@ import classNames from 'classnames' -import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetOnboardingStatus' +import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetOnboardingStatus' import type { WizardStep } from './AddContractorWizard' import { ActionsLayout, Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorPaymentMethod.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorPaymentMethod.tsx index 22af893a9..92416a015 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorPaymentMethod.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorPaymentMethod.tsx @@ -2,11 +2,11 @@ import { useMemo, useState } from 'react' import { useContractorPaymentMethodGetSuspense, buildContractorPaymentMethodGetQuery, -} from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGet' -import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGetBankAccounts' -import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodsCreateBankAccount' -import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodUpdate' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +} from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGet' +import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGetBankAccounts' +import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodsCreateBankAccount' +import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodUpdate' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import { useQueryClient } from '@tanstack/react-query' import { PaymentMethodForm, diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorProfile.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorProfile.tsx index 49e9384f9..06f349f55 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorProfile.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorProfile.tsx @@ -2,16 +2,16 @@ import { useMemo } from 'react' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsCreate' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsCreate' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' import { WageType, ContractorType, type Contractor, -} from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorcreaterequestbody' -import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorupdaterequestbody' +} from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorcreaterequestbody' +import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorupdaterequestbody' import { BaseComponent, useBase } from '@/components/Base' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { Form } from '@/components/Common/Form' diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorSubmit.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorSubmit.tsx index b5cca69ad..aa2606835 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorSubmit.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/ContractorSubmit.tsx @@ -1,6 +1,6 @@ -import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateOnboardingStatus' -import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetOnboardingStatus' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' +import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateOnboardingStatus' +import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetOnboardingStatus' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' import { BaseComponent, useBase } from '@/components/Base' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { ActionsLayout, Flex, FlexItem } from '@/components/Common' diff --git a/sdk-app/src/design/prototypes/contractor-management/AddContractor/index.tsx b/sdk-app/src/design/prototypes/contractor-management/AddContractor/index.tsx index 9145ad059..4b69e363c 100644 --- a/sdk-app/src/design/prototypes/contractor-management/AddContractor/index.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/AddContractor/index.tsx @@ -60,7 +60,7 @@ export function AddContractor() { variant="secondary" onClick={() => { queryClient.removeQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors', 'list'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors', 'list'], }) void navigate('..') }} diff --git a/sdk-app/src/design/prototypes/contractor-management/ContractorDismiss.tsx b/sdk-app/src/design/prototypes/contractor-management/ContractorDismiss.tsx index 9b266c3e3..c26f43804 100644 --- a/sdk-app/src/design/prototypes/contractor-management/ContractorDismiss.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/ContractorDismiss.tsx @@ -1,7 +1,7 @@ import { Suspense, useState } from 'react' import { useNavigate, useParams } from 'react-router-dom' import { useQueryClient } from '@tanstack/react-query' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' import { ContractorDismissalForm } from '../../components/contractor/management/ContractorDismissalForm/ContractorDismissalForm' import { contractorName } from '../../components/contractor/shared/contractorName' import { Skeleton } from '../../components/common/Skeleton' @@ -47,7 +47,7 @@ function ContractorDismissContent() { const today = new Date().toISOString().slice(0, 10) const message = endDate <= today ? `${name} has been dismissed` : `Dismissal scheduled for ${name}` - queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'] }) + queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'] }) void navigate(`..?success=${encodeURIComponent(message)}`, { replace: true, }) diff --git a/sdk-app/src/design/prototypes/contractor-management/ContractorList.tsx b/sdk-app/src/design/prototypes/contractor-management/ContractorList.tsx index 1d237f791..d3abd6a79 100644 --- a/sdk-app/src/design/prototypes/contractor-management/ContractorList.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/ContractorList.tsx @@ -1,9 +1,9 @@ import { useEffect, useMemo, useState } from 'react' import { useNavigate, useOutletContext, useSearchParams } from 'react-router-dom' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import { useContractorsList } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useContractorsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsDelete' -import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateOnboardingStatus' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import { useContractorsList } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useContractorsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsDelete' +import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateOnboardingStatus' import { useQueryClient } from '@tanstack/react-query' import type { EntityIds } from '../../../useEntities' import { contractorName } from '../../components/contractor/shared/contractorName' @@ -29,7 +29,7 @@ export function ContractorList() { if (msg) { setSuccessMessage(msg) setSearchParams({}, { replace: true }) - queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'] }) + queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'] }) } }, []) // eslint-disable-line react-hooks/exhaustive-deps @@ -91,7 +91,7 @@ export function ContractorList() { ? `Rehire cancelled for ${contractorName(contractor)}` : `Dismissal cancelled for ${contractorName(contractor)}`, ) - queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'] }) + queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'] }) } catch (error) { setErrorMessage( error instanceof Error @@ -146,7 +146,7 @@ export function ContractorList() { await deleteContractor({ request: { contractorUuid: contractor.uuid } }) setSuccessMessage(`${contractorName(contractor)} has been removed`) queryClient.removeQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'], }) } catch (error) { setErrorMessage( @@ -167,7 +167,7 @@ export function ContractorList() { }) setSuccessMessage(`Self-onboarding cancelled for ${contractorName(contractor)}`) queryClient.removeQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'], }) } catch (error) { setErrorMessage( diff --git a/sdk-app/src/design/prototypes/contractor-management/ContractorProfile/ContractorProfileComponents.tsx b/sdk-app/src/design/prototypes/contractor-management/ContractorProfile/ContractorProfileComponents.tsx index dab27c615..868f3880f 100644 --- a/sdk-app/src/design/prototypes/contractor-management/ContractorProfile/ContractorProfileComponents.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/ContractorProfile/ContractorProfileComponents.tsx @@ -1,20 +1,20 @@ import { Suspense, useRef, useState } from 'react' import { useNavigate, useParams } from 'react-router-dom' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGetBankAccounts' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGetBankAccounts' import { useContractorPaymentMethodGetSuspense, buildContractorPaymentMethodGetQuery, -} from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGet' -import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodUpdate' -import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodsCreateBankAccount' -import { useContractorDocumentsGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsGetAll' -import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetAddress' -import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateAddress' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' -import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateOnboardingStatus' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +} from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGet' +import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodUpdate' +import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodsCreateBankAccount' +import { useContractorDocumentsGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsGetAll' +import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetAddress' +import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateAddress' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' +import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateOnboardingStatus' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import { useQueryClient } from '@tanstack/react-query' import { contractorName } from '../../../components/contractor/shared/contractorName' import { ContractorAddress } from '../../../components/contractor/management/ContractorAddress/ContractorAddress' diff --git a/sdk-app/src/design/prototypes/contractor-management/ContractorRehire.tsx b/sdk-app/src/design/prototypes/contractor-management/ContractorRehire.tsx index de3105c3d..efd5ecc71 100644 --- a/sdk-app/src/design/prototypes/contractor-management/ContractorRehire.tsx +++ b/sdk-app/src/design/prototypes/contractor-management/ContractorRehire.tsx @@ -1,7 +1,7 @@ import { Suspense, useState } from 'react' import { useNavigate, useParams } from 'react-router-dom' import { useQueryClient } from '@tanstack/react-query' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' import { contractorName } from '../../components/contractor/shared/contractorName' import { ContractorRehireForm } from '../../components/contractor/management/ContractorRehireForm/ContractorRehireForm' import { Skeleton } from '../../components/common/Skeleton' @@ -44,7 +44,7 @@ function ContractorRehireContent() { } const name = contractorName(contractor) - queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Contractors'] }) + queryClient.removeQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Contractors'] }) void navigate(`..?success=${encodeURIComponent(`Rehire scheduled for ${name}`)}`, { replace: true, }) diff --git a/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/CreateHistoricalPayment.tsx b/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/CreateHistoricalPayment.tsx index e1e4435c9..7caecee1b 100644 --- a/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/CreateHistoricalPayment.tsx +++ b/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/CreateHistoricalPayment.tsx @@ -1,8 +1,8 @@ import { Suspense, useMemo, useState } from 'react' -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useContractorPaymentGroupsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsCreate' -import { useContractorPaymentGroupsPreviewMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsPreview' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useContractorPaymentGroupsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsCreate' +import { useContractorPaymentGroupsPreviewMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsPreview' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { SelectContractors } from '../../../components/contractor/payments/SelectContractors/SelectContractors' import { HistoricalPaymentConfiguration } from '../../../components/contractor/payments/HistoricalPaymentConfiguration/HistoricalPaymentConfiguration' import { HistoricalPaymentSummary } from '../../../components/contractor/payments/HistoricalPaymentSummary/HistoricalPaymentSummary' diff --git a/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/states.tsx b/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/states.tsx index 01dd78343..e153a8de9 100644 --- a/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/states.tsx +++ b/sdk-app/src/design/prototypes/contractor-payments/CreateHistoricalPayment/states.tsx @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { HistoricalPaymentSummary } from '../../../components/contractor/payments/HistoricalPaymentSummary/HistoricalPaymentSummary' import { emptyPaymentFor, diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorDocumentSigner.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorDocumentSigner.tsx index 5b03e065c..41ef0fcd1 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorDocumentSigner.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorDocumentSigner.tsx @@ -2,9 +2,9 @@ import { Suspense, useState } from 'react' import { useContractorDocumentsGetAllSuspense, invalidateContractorDocumentsGetAll, -} from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsGetAll' +} from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsGetAll' import { useQueryClient } from '@tanstack/react-query' -import type { Document } from '@gusto/embedded-api-v-2025-11-15/models/components/document' +import type { Document } from '@gusto/embedded-api-v-2026-02-01/models/components/document' import { ContractorDocumentList } from '../../components/contractor/self-onboarding/ContractorDocumentList/ContractorDocumentList' import { ContractorSignatureForm } from './ContractorSignatureForm' import { contractorSelfOnboardingEvents } from './events' diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorLanding.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorLanding.tsx index 3514a79d1..474e4439b 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorLanding.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorLanding.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useCompaniesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/companiesGet' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useCompaniesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/companiesGet' import DOMPurify from 'dompurify' import { ContractorWelcome } from '../../components/contractor/self-onboarding/ContractorWelcome/ContractorWelcome' import { contractorSelfOnboardingEvents } from './events' diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfAddressForm.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfAddressForm.tsx index 8ba7fe88e..7d7f2b7f1 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfAddressForm.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfAddressForm.tsx @@ -1,6 +1,6 @@ -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetAddress' -import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateAddress' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetAddress' +import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateAddress' import { AddressForm, type AddressFormValues, diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfPaymentMethodForm.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfPaymentMethodForm.tsx index 7f7e6524a..b9a1a3972 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfPaymentMethodForm.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfPaymentMethodForm.tsx @@ -2,11 +2,11 @@ import { useMemo, useState } from 'react' import { useContractorPaymentMethodGetSuspense, buildContractorPaymentMethodGetQuery, -} from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGet' -import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGetBankAccounts' -import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodsCreateBankAccount' -import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodUpdate' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +} from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGet' +import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGetBankAccounts' +import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodsCreateBankAccount' +import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodUpdate' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import { useQueryClient } from '@tanstack/react-query' import { PaymentMethodForm, diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfProfile.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfProfile.tsx index d58c74e97..1acfe4888 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfProfile.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSelfProfile.tsx @@ -1,7 +1,7 @@ -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' -import { ContractorType as ApiContractorType } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorupdaterequestbody' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' +import { ContractorType as ApiContractorType } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorupdaterequestbody' import { ProfileDetailsForm, type ProfileDetailsFormValues, diff --git a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSignatureForm.tsx b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSignatureForm.tsx index d668f62b7..c76d8082e 100644 --- a/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSignatureForm.tsx +++ b/sdk-app/src/design/prototypes/contractor-self-onboarding/ContractorSignatureForm.tsx @@ -1,6 +1,6 @@ -import { useContractorDocumentsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsGet' -import { useContractorDocumentsGetPdfSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsGetPdf' -import { useContractorDocumentsSignMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorDocumentsSign' +import { useContractorDocumentsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsGet' +import { useContractorDocumentsGetPdfSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsGetPdf' +import { useContractorDocumentsSignMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorDocumentsSign' import { ContractorDocumentSignature, type ContractorDocumentSignatureValues, diff --git a/sdk-app/src/design/prototypes/employee-management/CompensationHistory/CompensationHistory.tsx b/sdk-app/src/design/prototypes/employee-management/CompensationHistory/CompensationHistory.tsx index 8ab7f05eb..8d7165b69 100644 --- a/sdk-app/src/design/prototypes/employee-management/CompensationHistory/CompensationHistory.tsx +++ b/sdk-app/src/design/prototypes/employee-management/CompensationHistory/CompensationHistory.tsx @@ -1,5 +1,5 @@ -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidjobs' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidjobs' import { CompensationHistory as CompensationHistoryView } from '../../../components/employee/management/CompensationHistory/CompensationHistory' import { BaseBoundaries, BaseLayout } from '@/components/Base' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' diff --git a/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/EmployeeList.tsx b/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/EmployeeList.tsx index 66a2a9087..07c881c3f 100644 --- a/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/EmployeeList.tsx +++ b/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/EmployeeList.tsx @@ -1,7 +1,7 @@ import { useEffect, useMemo, useState } from 'react' import { useNavigate, useOutletContext, useSearchParams } from 'react-router-dom' -import { useEmployeesList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' -import { useEmployeeEmploymentsDeleteRehireMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsDeleteRehire' +import { useEmployeesList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' +import { useEmployeeEmploymentsDeleteRehireMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsDeleteRehire' import type { EntityIds } from '../../../../useEntities' import { EmployeeList as EmployeeListView, diff --git a/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/RehireEmployee.tsx b/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/RehireEmployee.tsx index 5d64f08d7..82ee45d87 100644 --- a/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/RehireEmployee.tsx +++ b/sdk-app/src/design/prototypes/employee-management/EmployeeManagement/RehireEmployee.tsx @@ -1,13 +1,13 @@ import { Suspense, useState } from 'react' import { useNavigate, useOutletContext, useParams } from 'react-router-dom' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' -import type { EntityErrorObject } from '@gusto/embedded-api-v-2025-11-15/models/components/entityerrorobject' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useLocationsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsGet' -import { useEmployeeEmploymentsGetRehire } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsGetRehire' -import { useEmployeeEmploymentsCreateRehireMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsCreateRehire' -import { useEmployeeEmploymentsRehireMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsRehire' -import { RehireBodyEmploymentStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/rehirebody' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' +import type { EntityErrorObject } from '@gusto/embedded-api-v-2026-02-01/models/components/entityerrorobject' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useLocationsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsGet' +import { useEmployeeEmploymentsGetRehire } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsGetRehire' +import { useEmployeeEmploymentsCreateRehireMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsCreateRehire' +import { useEmployeeEmploymentsRehireMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsRehire' +import { RehireBodyEmploymentStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/rehirebody' import type { EntityIds } from '../../../../useEntities' import { RehireEmployeeForm, diff --git a/sdk-app/src/design/prototypes/regular-rate-of-pay/RegularRateOfPay.tsx b/sdk-app/src/design/prototypes/regular-rate-of-pay/RegularRateOfPay.tsx index f39bb1bac..7e81e7eff 100644 --- a/sdk-app/src/design/prototypes/regular-rate-of-pay/RegularRateOfPay.tsx +++ b/sdk-app/src/design/prototypes/regular-rate-of-pay/RegularRateOfPay.tsx @@ -1,20 +1,20 @@ import { Suspense, useEffect, useMemo, useRef, useState, type ReactNode } from 'react' import { useQueryClient } from '@tanstack/react-query' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' -import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsUpdate' -import { usePayrollsCalculateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCalculate' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' +import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsUpdate' +import { usePayrollsCalculateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCalculate' import type { EmployeeCompensations, PayrollPrepared, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import { APIError } from '@gusto/embedded-api-v-2025-11-15/models/errors/apierror' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' -import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollprocessingrequest' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import { APIError } from '@gusto/embedded-api-v-2026-02-01/models/errors/apierror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' +import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollprocessingrequest' import { ProcessingStatuses, QueryParamPayrollTypes, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrolls' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrolls' import { PayrollConfigurationRropPresentation } from '../../components/payroll/PayrollConfigurationRrop/PayrollConfigurationRropPresentation' import { BaseComponent } from '@/components/Base' import { Flex } from '@/components/Common' diff --git a/src/CLAUDE.md b/src/CLAUDE.md index 9d2cee46e..d771233a1 100644 --- a/src/CLAUDE.md +++ b/src/CLAUDE.md @@ -40,7 +40,7 @@ return ( ## Component Organization -``` +```text src/components/ ├── Common/ # Shared UI primitives and Field components │ ├── Fields/ # Form-connected Field components (use these for forms) @@ -52,23 +52,23 @@ src/components/ └── Flow/ # Multi-step flow orchestration ``` -## API Layer (`@gusto/embedded-api-v-2025-11-15`) +## API Layer (`@gusto/embedded-api-v-2026-02-01`) -All API calls go through the `@gusto/embedded-api-v-2025-11-15` package, which provides React Query hooks with Zod schema validation. +All API calls go through the `@gusto/embedded-api-v-2026-02-01` package, which provides React Query hooks with Zod schema validation. ### Import Paths ```tsx -import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' -import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsUpdate' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { APIError } from '@gusto/embedded-api-v-2025-11-15/models/errors/apierror' +import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' +import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsUpdate' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { APIError } from '@gusto/embedded-api-v-2026-02-01/models/errors/apierror' ``` -- `@gusto/embedded-api-v-2025-11-15/react-query/` -- React Query hooks -- `@gusto/embedded-api-v-2025-11-15/models/components/` -- Component/entity types -- `@gusto/embedded-api-v-2025-11-15/models/operations/` -- Operation request/response types -- `@gusto/embedded-api-v-2025-11-15/models/errors/` -- Error types (`APIError`, `SDKValidationError`, `UnprocessableEntityError`) +- `@gusto/embedded-api-v-2026-02-01/react-query/` -- React Query hooks +- `@gusto/embedded-api-v-2026-02-01/models/components/` -- Component/entity types +- `@gusto/embedded-api-v-2026-02-01/models/operations/` -- Operation request/response types +- `@gusto/embedded-api-v-2026-02-01/models/errors/` -- Error types (`APIError`, `SDKValidationError`, `UnprocessableEntityError`) ### Hook Naming Convention @@ -118,7 +118,7 @@ All user-facing text uses i18next. Translation types are generated via `npm run ## Provider Stack -``` +```text GustoProvider → ComponentsProvider (UI component map) → ThemeProvider diff --git a/src/components/Base/useBaseSubmit.test.tsx b/src/components/Base/useBaseSubmit.test.tsx index 46746053b..5494efb11 100644 --- a/src/components/Base/useBaseSubmit.test.tsx +++ b/src/components/Base/useBaseSubmit.test.tsx @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest' import { renderHook, act } from '@testing-library/react' -import { NotFoundErrorObject } from '@gusto/embedded-api-v-2025-11-15/models/errors/notfounderrorobject' -import { APIError } from '@gusto/embedded-api-v-2025-11-15/models/errors/apierror' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' -import { GustoEmbeddedError } from '@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror' +import { NotFoundErrorObject } from '@gusto/embedded-api-v-2026-02-01/models/errors/notfounderrorobject' +import { APIError } from '@gusto/embedded-api-v-2026-02-01/models/errors/apierror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' +import { GustoEmbeddedError } from '@gusto/embedded-api-v-2026-02-01/models/errors/gustoembeddederror' import { useBaseSubmit } from './useBaseSubmit' const createMockHttpMeta = () => ({ diff --git a/src/components/Base/useBaseSubmit.ts b/src/components/Base/useBaseSubmit.ts index 1c402fca3..3bf11aae9 100644 --- a/src/components/Base/useBaseSubmit.ts +++ b/src/components/Base/useBaseSubmit.ts @@ -1,8 +1,8 @@ import { useState, useCallback } from 'react' -import { APIError } from '@gusto/embedded-api-v-2025-11-15/models/errors/apierror' -import { GustoEmbeddedError } from '@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror' -import { SDKValidationError } from '@gusto/embedded-api-v-2025-11-15/models/errors/sdkvalidationerror' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { APIError } from '@gusto/embedded-api-v-2026-02-01/models/errors/apierror' +import { GustoEmbeddedError } from '@gusto/embedded-api-v-2026-02-01/models/errors/gustoembeddederror' +import { SDKValidationError } from '@gusto/embedded-api-v-2026-02-01/models/errors/sdkvalidationerror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { useAsyncError } from '@/hooks/useAsyncError' import { useObservability } from '@/contexts/ObservabilityProvider/useObservability' import { type SDKError, SDKInternalError, normalizeToSDKError } from '@/types/sdkError' diff --git a/src/components/Common/OnboardingStatusBadge/index.tsx b/src/components/Common/OnboardingStatusBadge/index.tsx index fad8c775d..1349db90d 100644 --- a/src/components/Common/OnboardingStatusBadge/index.tsx +++ b/src/components/Common/OnboardingStatusBadge/index.tsx @@ -1,5 +1,5 @@ -import type { ContractorOnboardingStatus1 } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { OnboardingStatus } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidonboardingstatus' +import type { ContractorOnboardingStatus1 } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { OnboardingStatus } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidonboardingstatus' import { useTranslation } from 'react-i18next' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Common/TaxInputs/TaxInputs.tsx b/src/components/Common/TaxInputs/TaxInputs.tsx index 244a9bd0c..8ed790cbb 100644 --- a/src/components/Common/TaxInputs/TaxInputs.tsx +++ b/src/components/Common/TaxInputs/TaxInputs.tsx @@ -1,6 +1,6 @@ import DOMPurify from 'dompurify' -import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxquestion' -import { type TaxRequirement } from '@gusto/embedded-api-v-2025-11-15/models/components/taxrequirement' +import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxquestion' +import { type TaxRequirement } from '@gusto/embedded-api-v-2026-02-01/models/components/taxrequirement' import { useTranslation } from 'react-i18next' import { SelectField } from '../Fields/SelectField/SelectField' import { TextInputField } from '../Fields/TextInputField/TextInputField' diff --git a/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.tsx b/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.tsx index e6b6e8c4b..1d7bcb6f9 100644 --- a/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.tsx +++ b/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.tsx @@ -1,11 +1,11 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import classNames from 'classnames' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' -import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesList' -import { useSignatoriesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesCreate' -import { useSignatoriesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesUpdate' -import { useSignatoriesDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesDelete' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' +import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesList' +import { useSignatoriesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesCreate' +import { useSignatoriesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesUpdate' +import { useSignatoriesDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesDelete' import { type CreateSignatoryInputs } from './CreateSignatoryForm' import { CreateSignatoryForm } from './CreateSignatoryForm' import { Actions } from './Actions' diff --git a/src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts b/src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts index 944cb8808..523567b27 100644 --- a/src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts +++ b/src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts @@ -1,4 +1,4 @@ -import { type Signatory } from '@gusto/embedded-api-v-2025-11-15/models/components/signatory' +import { type Signatory } from '@gusto/embedded-api-v-2026-02-01/models/components/signatory' import { createCompoundContext } from '@/components/Base' import type { RequireAtLeastOne } from '@/types/Helpers' diff --git a/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.tsx b/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.tsx index ab81fa107..ad57477e4 100644 --- a/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.tsx +++ b/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.tsx @@ -1,9 +1,9 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import classNames from 'classnames' -import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesList' -import { useSignatoriesInviteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesInvite' -import { useSignatoriesDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesDelete' +import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesList' +import { useSignatoriesInviteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesInvite' +import { useSignatoriesDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesDelete' import { type InviteSignatoryInputs, InviteSignatorySchema } from './InviteSignatoryForm' import { InviteSignatoryForm } from './InviteSignatoryForm' import { Actions } from './Actions' diff --git a/src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts b/src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts index 3fc1caf77..13dc05e23 100644 --- a/src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts +++ b/src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts @@ -1,4 +1,4 @@ -import { type Signatory } from '@gusto/embedded-api-v-2025-11-15/models/components/signatory' +import { type Signatory } from '@gusto/embedded-api-v-2026-02-01/models/components/signatory' import { createCompoundContext } from '@/components/Base' import type { RequireAtLeastOne } from '@/types/Helpers' diff --git a/src/components/Company/BankAccount/BankAccount.tsx b/src/components/Company/BankAccount/BankAccount.tsx index e14d4f976..1e2853451 100644 --- a/src/components/Company/BankAccount/BankAccount.tsx +++ b/src/components/Company/BankAccount/BankAccount.tsx @@ -1,6 +1,6 @@ import { createMachine } from 'robot3' import { useMemo } from 'react' -import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet' +import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet' import { BankAccountFormContextual, type BankAccountContextInterface, diff --git a/src/components/Company/BankAccount/BankAccountComponents.tsx b/src/components/Company/BankAccount/BankAccountComponents.tsx index 8c7d93dbf..dcc3afe71 100644 --- a/src/components/Company/BankAccount/BankAccountComponents.tsx +++ b/src/components/Company/BankAccount/BankAccountComponents.tsx @@ -1,4 +1,4 @@ -import type { CompanyBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccount' +import type { CompanyBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccount' import { BankAccountList } from './BankAccountList/BankAccountList' import { BankAccountForm } from './BankAccountForm/BankAccountForm' import { BankAccountVerify } from './BankAccountVerify/BankAccountVerify' diff --git a/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.tsx b/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.tsx index 5d538288a..1666c9fa2 100644 --- a/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.tsx +++ b/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.tsx @@ -1,4 +1,4 @@ -import { useBankAccountsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsCreate' +import { useBankAccountsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsCreate' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { Head } from './Head' diff --git a/src/components/Company/BankAccount/BankAccountList/BankAccountList.tsx b/src/components/Company/BankAccount/BankAccountList/BankAccountList.tsx index c015be4cc..dc873c98c 100644 --- a/src/components/Company/BankAccount/BankAccountList/BankAccountList.tsx +++ b/src/components/Company/BankAccount/BankAccountList/BankAccountList.tsx @@ -1,4 +1,4 @@ -import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet' +import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet' import { Head } from './Head' import { AccountView } from './AccountView' import { BankAccountProvider } from './context' diff --git a/src/components/Company/BankAccount/BankAccountList/context.ts b/src/components/Company/BankAccount/BankAccountList/context.ts index c91c5b7ad..e40e1b51f 100644 --- a/src/components/Company/BankAccount/BankAccountList/context.ts +++ b/src/components/Company/BankAccount/BankAccountList/context.ts @@ -1,4 +1,4 @@ -import type { CompanyBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccount' +import type { CompanyBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccount' import { createCompoundContext } from '@/components/Base/createCompoundContext' type BankAccountListContextType = { bankAccount: CompanyBankAccount | null diff --git a/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.tsx b/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.tsx index 8014c58b5..664dadbf8 100644 --- a/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.tsx +++ b/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.tsx @@ -1,6 +1,6 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import { useBankAccountsVerifyMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsVerify' +import { useBankAccountsVerifyMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsVerify' import { Head } from './Head' import { BankAccountVerifyProvider } from './context' import type { BankAccountVerifyInputs } from './Form' diff --git a/src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx b/src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx index 97152439e..85a0cedd7 100644 --- a/src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx +++ b/src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx @@ -1,6 +1,6 @@ -import { type Form as FormSchema } from '@gusto/embedded-api-v-2025-11-15/models/components/form' -import { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/companyFormsGetAll' -import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesList' +import { type Form as FormSchema } from '@gusto/embedded-api-v-2026-02-01/models/components/form' +import { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/companyFormsGetAll' +import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesList' import { Head } from './Head' import { List } from './List' import { ManageSignatories } from './ManageSignatories' diff --git a/src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts b/src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts index cfa63cf02..f41c0f48a 100644 --- a/src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts +++ b/src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts @@ -1,5 +1,5 @@ -import { type Signatory } from '@gusto/embedded-api-v-2025-11-15/models/components/signatory' -import { type Form as FormSchema } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import { type Signatory } from '@gusto/embedded-api-v-2026-02-01/models/components/signatory' +import { type Form as FormSchema } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { createCompoundContext } from '@/components/Base' type DocumentListContextType = { diff --git a/src/components/Company/DocumentSigner/DocumentSigner.tsx b/src/components/Company/DocumentSigner/DocumentSigner.tsx index 6762073e8..a265db117 100644 --- a/src/components/Company/DocumentSigner/DocumentSigner.tsx +++ b/src/components/Company/DocumentSigner/DocumentSigner.tsx @@ -1,5 +1,5 @@ import { createMachine } from 'robot3' -import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/signatoriesList' +import { useSignatoriesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/signatoriesList' import { useMemo } from 'react' import { AssignSignatory, DocumentList } from './documentSignerStateMachine' import { documentSignerMachine } from './stateMachine' diff --git a/src/components/Company/DocumentSigner/documentSignerStateMachine.tsx b/src/components/Company/DocumentSigner/documentSignerStateMachine.tsx index a98cba6ca..42a33bbb2 100644 --- a/src/components/Company/DocumentSigner/documentSignerStateMachine.tsx +++ b/src/components/Company/DocumentSigner/documentSignerStateMachine.tsx @@ -1,5 +1,5 @@ -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' -import type { Signatory } from '@gusto/embedded-api-v-2025-11-15/models/components/signatory' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' +import type { Signatory } from '@gusto/embedded-api-v-2026-02-01/models/components/signatory' import { AssignSignatory as BlockAssignSignatory } from '../AssignSignatory' import { DocumentList as BlockDocumentList } from './DocumentList' import { SignatureForm as BlockSignatureForm } from './SignatureForm' diff --git a/src/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.tsx b/src/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.tsx index 97b60ad31..028f147d7 100644 --- a/src/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.tsx +++ b/src/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.tsx @@ -2,10 +2,10 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' -import { useCompanyFormsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/companyFormsGet' -import { useCompanyFormsGetPdf } from '@gusto/embedded-api-v-2025-11-15/react-query/companyFormsGetPdf' -import { useCompanyFormsSignMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/companyFormsSign' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' +import { useCompanyFormsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/companyFormsGet' +import { useCompanyFormsGetPdf } from '@gusto/embedded-api-v-2026-02-01/react-query/companyFormsGetPdf' +import { useCompanyFormsSignMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/companyFormsSign' import { createSignCompanyFormSchema, type SignCompanyFormOptionalFieldsToRequire, diff --git a/src/components/Company/FederalTaxes/FederalTaxes.tsx b/src/components/Company/FederalTaxes/FederalTaxes.tsx index 1b6cdb693..2d89b6a80 100644 --- a/src/components/Company/FederalTaxes/FederalTaxes.tsx +++ b/src/components/Company/FederalTaxes/FederalTaxes.tsx @@ -1,9 +1,9 @@ -import { useFederalTaxDetailsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/federalTaxDetailsUpdate' -import { useFederalTaxDetailsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/federalTaxDetailsGet' +import { useFederalTaxDetailsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/federalTaxDetailsUpdate' +import { useFederalTaxDetailsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/federalTaxDetailsGet' import type { FilingForm, TaxPayerType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/federaltaxdetails' +} from '@gusto/embedded-api-v-2026-02-01/models/components/federaltaxdetails' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { diff --git a/src/components/Company/FederalTaxes/Form.tsx b/src/components/Company/FederalTaxes/Form.tsx index a4d9fcfcc..6bed7c104 100644 --- a/src/components/Company/FederalTaxes/Form.tsx +++ b/src/components/Company/FederalTaxes/Form.tsx @@ -3,7 +3,7 @@ import { useTranslation, Trans } from 'react-i18next' import { TaxPayerType, FilingForm, -} from '@gusto/embedded-api-v-2025-11-15/models/components/federaltaxdetails' +} from '@gusto/embedded-api-v-2026-02-01/models/components/federaltaxdetails' import { useFederalTaxes } from './useFederalTaxes' import { TextInputField, SelectField, Flex } from '@/components/Common' import { usePlaceholderEin, normalizeEin } from '@/helpers/federalEin' diff --git a/src/components/Company/FederalTaxes/useFederalTaxes.ts b/src/components/Company/FederalTaxes/useFederalTaxes.ts index ab6d8f185..e65baf32c 100644 --- a/src/components/Company/FederalTaxes/useFederalTaxes.ts +++ b/src/components/Company/FederalTaxes/useFederalTaxes.ts @@ -1,9 +1,9 @@ import { z } from 'zod' -import type { FederalTaxDetails } from '@gusto/embedded-api-v-2025-11-15/models/components/federaltaxdetails' +import type { FederalTaxDetails } from '@gusto/embedded-api-v-2026-02-01/models/components/federaltaxdetails' import { FilingForm, TaxPayerType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/federaltaxdetails' +} from '@gusto/embedded-api-v-2026-02-01/models/components/federaltaxdetails' import { createCompoundContext } from '@/components/Base' import type { RequireAtLeastOne } from '@/types/Helpers' diff --git a/src/components/Company/Industry/Industry.tsx b/src/components/Company/Industry/Industry.tsx index f00127e03..a67a8601c 100644 --- a/src/components/Company/Industry/Industry.tsx +++ b/src/components/Company/Industry/Industry.tsx @@ -1,6 +1,6 @@ import { useCallback } from 'react' -import { useIndustrySelectionGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/industrySelectionGet' -import { useIndustrySelectionUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/industrySelectionUpdate' +import { useIndustrySelectionGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/industrySelectionGet' +import { useIndustrySelectionUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/industrySelectionUpdate' import type { IndustryFormFields } from './Edit' import { IndustryApiStateProvider } from './Context' import { IndustrySelect } from './IndustrySelect' diff --git a/src/components/Company/Locations/LocationForm/LocationForm.tsx b/src/components/Company/Locations/LocationForm/LocationForm.tsx index 54172d954..7c7e08878 100644 --- a/src/components/Company/Locations/LocationForm/LocationForm.tsx +++ b/src/components/Company/Locations/LocationForm/LocationForm.tsx @@ -1,9 +1,9 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import { useLocationsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsUpdate' -import { useLocationsRetrieveSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsRetrieve' -import { useLocationsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsCreate' -import { type Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' +import { useLocationsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsUpdate' +import { useLocationsRetrieveSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsRetrieve' +import { useLocationsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsCreate' +import { type Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' import { useQueryClient } from '@tanstack/react-query' import { Head } from './Head' import type { LocationFormInputs } from './Form' @@ -98,7 +98,7 @@ function Root({ // and the form seeds with a stale addressType on first open. const refreshLocationsCache = () => queryClient.invalidateQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'Locations'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'Locations'], refetchType: 'all', }) diff --git a/src/components/Company/Locations/LocationsList/LocationsList.tsx b/src/components/Company/Locations/LocationsList/LocationsList.tsx index 521bc2ee8..6398e914f 100644 --- a/src/components/Company/Locations/LocationsList/LocationsList.tsx +++ b/src/components/Company/Locations/LocationsList/LocationsList.tsx @@ -1,4 +1,4 @@ -import { useLocationsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsGet' +import { useLocationsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsGet' import { Head } from './Head' import { List } from './List' import { Actions } from './Actions' diff --git a/src/components/Company/Locations/LocationsList/useLocationsList.ts b/src/components/Company/Locations/LocationsList/useLocationsList.ts index 5df9e6031..cd266c99b 100644 --- a/src/components/Company/Locations/LocationsList/useLocationsList.ts +++ b/src/components/Company/Locations/LocationsList/useLocationsList.ts @@ -1,4 +1,4 @@ -import { type Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' +import { type Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' import { createCompoundContext } from '@/components/Base' import type { PaginationItemsPerPage } from '@/components/Common/PaginationControl/PaginationControlTypes' diff --git a/src/components/Company/OnboardingOverview/OnboardingOverview.tsx b/src/components/Company/OnboardingOverview/OnboardingOverview.tsx index 6d120ba8b..054b5c403 100644 --- a/src/components/Company/OnboardingOverview/OnboardingOverview.tsx +++ b/src/components/Company/OnboardingOverview/OnboardingOverview.tsx @@ -1,4 +1,4 @@ -import { useCompaniesGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/companiesGetOnboardingStatus' +import { useCompaniesGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/companiesGetOnboardingStatus' import { OnboardingOverviewProvider } from './context' import { MissingRequirements } from './MissingRequirements' import { Completed } from './Completed' diff --git a/src/components/Company/OnboardingOverview/context.ts b/src/components/Company/OnboardingOverview/context.ts index 35e217d50..3c49942be 100644 --- a/src/components/Company/OnboardingOverview/context.ts +++ b/src/components/Company/OnboardingOverview/context.ts @@ -1,4 +1,4 @@ -import type { OnboardingStep } from '@gusto/embedded-api-v-2025-11-15/models/components/companyonboardingstatus' +import type { OnboardingStep } from '@gusto/embedded-api-v-2026-02-01/models/components/companyonboardingstatus' import { createCompoundContext } from '@/components/Base' type OnboardingOverviewContextType = { diff --git a/src/components/Company/PaySchedule/PaySchedule.tsx b/src/components/Company/PaySchedule/PaySchedule.tsx index 8c9ed0cc0..9599eb66e 100644 --- a/src/components/Company/PaySchedule/PaySchedule.tsx +++ b/src/components/Company/PaySchedule/PaySchedule.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react' import { createMachine } from 'robot3' -import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetAll' +import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetAll' import { payScheduleStateMachine } from './payScheduleStateMachine' import type { PayScheduleContextInterface } from './PayScheduleComponents' import { PayScheduleFormContextual, PayScheduleListContextual } from './PayScheduleComponents' diff --git a/src/components/Company/PaySchedule/PayScheduleList.tsx b/src/components/Company/PaySchedule/PayScheduleList.tsx index 351424e21..0aae12db5 100644 --- a/src/components/Company/PaySchedule/PayScheduleList.tsx +++ b/src/components/Company/PaySchedule/PayScheduleList.tsx @@ -1,5 +1,5 @@ import { Trans, useTranslation } from 'react-i18next' -import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetAll' +import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetAll' import styles from './PayScheduleList.module.scss' import { useDataView, DataView, Flex, VisuallyHidden, ActionsLayout } from '@/components/Common' import PencilSvg from '@/assets/icons/pencil.svg?react' diff --git a/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.tsx b/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.tsx index 05c8b4e57..c3eb769e6 100644 --- a/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.tsx +++ b/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.tsx @@ -2,14 +2,14 @@ import { useEffect, useMemo } from 'react' import { useForm, useWatch } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payschedulepreviewpayperiod' -import { usePaySchedulesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGet' -import { usePaySchedulesGetPreview } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetPreview' -import { usePaySchedulesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesCreate' -import { usePaySchedulesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesUpdate' -import { usePaymentConfigsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/paymentConfigsGet' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import type { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payschedulepreviewpayperiod' +import { usePaySchedulesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGet' +import { usePaySchedulesGetPreview } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetPreview' +import { usePaySchedulesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesCreate' +import { usePaySchedulesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesUpdate' +import { usePaymentConfigsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/paymentConfigsGet' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { createPayScheduleSchema, type PayScheduleOptionalFieldsToRequire, diff --git a/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.tsx b/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.tsx index 20b79c669..04344d2b4 100644 --- a/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.tsx +++ b/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.tsx @@ -1,7 +1,7 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import { useTaxRequirementsUpdateStateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/taxRequirementsUpdateState' -import { useTaxRequirementsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/taxRequirementsGet' +import { useTaxRequirementsUpdateStateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/taxRequirementsUpdateState' +import { useTaxRequirementsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/taxRequirementsGet' import { z } from 'zod' import { useMemo } from 'react' import { useTranslation } from 'react-i18next' diff --git a/src/components/Company/StateTaxes/StateTaxesForm/context.ts b/src/components/Company/StateTaxes/StateTaxesForm/context.ts index bed344484..70c13f27e 100644 --- a/src/components/Company/StateTaxes/StateTaxesForm/context.ts +++ b/src/components/Company/StateTaxes/StateTaxesForm/context.ts @@ -1,4 +1,4 @@ -import type { TaxRequirementsState } from '@gusto/embedded-api-v-2025-11-15/models/components/taxrequirementsstate' +import type { TaxRequirementsState } from '@gusto/embedded-api-v-2026-02-01/models/components/taxrequirementsstate' import { createCompoundContext } from '@/components/Base' interface StateTaxFormContext { diff --git a/src/components/Company/StateTaxes/StateTaxesList/List.tsx b/src/components/Company/StateTaxes/StateTaxesList/List.tsx index bc0c249cc..016fa7499 100644 --- a/src/components/Company/StateTaxes/StateTaxesList/List.tsx +++ b/src/components/Company/StateTaxes/StateTaxesList/List.tsx @@ -2,7 +2,7 @@ import { useTranslation } from 'react-i18next' import { SetupStatus, type TaxRequirementStatesList, -} from '@gusto/embedded-api-v-2025-11-15/models/components/taxrequirementstateslist' +} from '@gusto/embedded-api-v-2026-02-01/models/components/taxrequirementstateslist' import { useStateTaxesList } from './context' import { DataView, EmptyData, Flex, useDataView } from '@/components/Common' import type { STATES_ABBR } from '@/shared/constants' diff --git a/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.tsx b/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.tsx index dcf96a5bd..505bca60b 100644 --- a/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.tsx +++ b/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.tsx @@ -1,4 +1,4 @@ -import { useTaxRequirementsGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/taxRequirementsGetAll' +import { useTaxRequirementsGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/taxRequirementsGetAll' import { Head } from './Head' import { StateTaxesListProvider } from './context' import { Actions } from './Actions' diff --git a/src/components/Company/StateTaxes/StateTaxesList/context.ts b/src/components/Company/StateTaxes/StateTaxesList/context.ts index e9f2cfdb2..31be2363a 100644 --- a/src/components/Company/StateTaxes/StateTaxesList/context.ts +++ b/src/components/Company/StateTaxes/StateTaxesList/context.ts @@ -1,4 +1,4 @@ -import type { TaxRequirementStatesList } from '@gusto/embedded-api-v-2025-11-15/models/components/taxrequirementstateslist' +import type { TaxRequirementStatesList } from '@gusto/embedded-api-v-2026-02-01/models/components/taxrequirementstateslist' import { createCompoundContext } from '@/components/Base' type StateTaxesListContextType = { diff --git a/src/components/Contractor/Address/Address.tsx b/src/components/Contractor/Address/Address.tsx index 75663ad1c..fae3f4395 100644 --- a/src/components/Contractor/Address/Address.tsx +++ b/src/components/Contractor/Address/Address.tsx @@ -1,7 +1,7 @@ import type { ReactNode } from 'react' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetAddress' -import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateAddress' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsGetAddressSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetAddress' +import { useContractorsUpdateAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateAddress' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { AddressFormSchema, AddressProvider } from './useAddress' diff --git a/src/components/Contractor/Address/useAddress.ts b/src/components/Contractor/Address/useAddress.ts index ca8ebf38f..e2110a44e 100644 --- a/src/components/Contractor/Address/useAddress.ts +++ b/src/components/Contractor/Address/useAddress.ts @@ -1,8 +1,8 @@ import type { Contractor, ContractorType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { ContractorAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/contractoraddress' +} from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { ContractorAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/contractoraddress' import { z } from 'zod' import { createCompoundContext } from '@/components/Base' import type { RequireAtLeastOne } from '@/types/Helpers' diff --git a/src/components/Contractor/ContractorList/index.tsx b/src/components/Contractor/ContractorList/index.tsx index 546cc0cee..b0df15f52 100644 --- a/src/components/Contractor/ContractorList/index.tsx +++ b/src/components/Contractor/ContractorList/index.tsx @@ -1,6 +1,6 @@ -import { type Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import { type Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { useTranslation } from 'react-i18next' -import { useContractorsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsDelete' +import { useContractorsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsDelete' import { useContractors } from './useContractorList' import { ActionsLayout, DataView, EmptyData, Flex, useDataView } from '@/components/Common' import { firstLastName } from '@/helpers/formattedStrings' diff --git a/src/components/Contractor/ContractorList/useContractorList.ts b/src/components/Contractor/ContractorList/useContractorList.ts index 01fdcc53c..3fc33d795 100644 --- a/src/components/Contractor/ContractorList/useContractorList.ts +++ b/src/components/Contractor/ContractorList/useContractorList.ts @@ -1,4 +1,4 @@ -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' import { usePagination } from '@/hooks/usePagination/usePagination' /** @internal */ diff --git a/src/components/Contractor/NewHireReport/NewHireReport.tsx b/src/components/Contractor/NewHireReport/NewHireReport.tsx index a55cbe3f0..2006b3516 100644 --- a/src/components/Contractor/NewHireReport/NewHireReport.tsx +++ b/src/components/Contractor/NewHireReport/NewHireReport.tsx @@ -4,8 +4,8 @@ import { FormProvider, useForm, useWatch } from 'react-hook-form' import { useMemo } from 'react' import z from 'zod' import { zodResolver } from '@hookform/resolvers/zod' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' import type { NewHireReportProps } from './types' import { useI18n } from '@/i18n' import { BaseComponent, useBase } from '@/components/Base' diff --git a/src/components/Contractor/PaymentMethod/PaymentMethod.tsx b/src/components/Contractor/PaymentMethod/PaymentMethod.tsx index c3587992d..e61291c4b 100644 --- a/src/components/Contractor/PaymentMethod/PaymentMethod.tsx +++ b/src/components/Contractor/PaymentMethod/PaymentMethod.tsx @@ -1,16 +1,16 @@ import { useTranslation } from 'react-i18next' import type { SubmitHandler } from 'react-hook-form' import { FormProvider, useForm, useWatch } from 'react-hook-form' -import { useContractorPaymentMethodGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGet' -import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGetBankAccounts' -import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodsCreateBankAccount' +import { useContractorPaymentMethodGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGet' +import { useContractorPaymentMethodGetBankAccountsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGetBankAccounts' +import { useContractorPaymentMethodsCreateBankAccountMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodsCreateBankAccount' import { useMemo, useState } from 'react' import z from 'zod' import { zodResolver } from '@hookform/resolvers/zod' -import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodUpdate' +import { useContractorPaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodUpdate' import { useQueryClient } from '@tanstack/react-query' -import { buildContractorPaymentMethodGetQuery } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentMethodGet' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +import { buildContractorPaymentMethodGetQuery } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentMethodGet' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import type { PaymentMethodProps } from './types' import { BankAccountForm } from './BankAccountForm' import { PaymentTypeForm } from './PaymentTypeForm' diff --git a/src/components/Contractor/PaymentMethod/types.ts b/src/components/Contractor/PaymentMethod/types.ts index 8ddad3b5e..2da5ee7bc 100644 --- a/src/components/Contractor/PaymentMethod/types.ts +++ b/src/components/Contractor/PaymentMethod/types.ts @@ -1,4 +1,4 @@ -import type { ContractorBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorbankaccount' +import type { ContractorBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorbankaccount' import type { BaseComponentInterface } from '@/components/Base' /** diff --git a/src/components/Contractor/Payments/CreatePayment/CreatePayment.tsx b/src/components/Contractor/Payments/CreatePayment/CreatePayment.tsx index 24e21f015..2dcc27239 100644 --- a/src/components/Contractor/Payments/CreatePayment/CreatePayment.tsx +++ b/src/components/Contractor/Payments/CreatePayment/CreatePayment.tsx @@ -1,19 +1,19 @@ -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useContractorPaymentGroupsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsCreate' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useContractorPaymentGroupsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsCreate' import type { ContractorPayments, PostV1CompaniesCompanyIdContractorPaymentGroupsRequestBody, SubmissionBlockers, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidcontractorpaymentgroups' -import { useContractorPaymentGroupsPreviewMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsPreview' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidcontractorpaymentgroups' +import { useContractorPaymentGroupsPreviewMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsPreview' import { useEffect, useMemo, useRef, useState } from 'react' import DOMPurify from 'dompurify' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { useTranslation } from 'react-i18next' -import type { ContractorPaymentGroupPreview } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgrouppreview' -import { useBankAccountsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet' +import type { ContractorPaymentGroupPreview } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgrouppreview' +import { useBankAccountsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet' import type { InternalAlert } from '../types' import { CreatePaymentPresentation } from './CreatePaymentPresentation' import { EditContractorPaymentPresentation } from './EditContractorPaymentPresentation' diff --git a/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.stories.tsx b/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.stories.tsx index e89b64618..79dc47be9 100644 --- a/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.stories.tsx +++ b/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.stories.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' import { fn } from 'storybook/test' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { ContractorPayments } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidcontractorpaymentgroups' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { ContractorPayments } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidcontractorpaymentgroups' import { CreatePaymentPresentation } from './CreatePaymentPresentation' import { GustoTestProvider } from '@/test/GustoTestApiProvider' diff --git a/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.tsx b/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.tsx index 1f631fc56..be9823901 100644 --- a/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.tsx +++ b/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { ContractorPayments } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidcontractorpaymentgroups' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { ContractorPayments } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidcontractorpaymentgroups' import { useMemo } from 'react' import type { InternalAlert } from '../types' import { getContractorDisplayName } from './helpers' diff --git a/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.tsx b/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.tsx index 9cc3b750e..cae0f9c9d 100644 --- a/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.tsx +++ b/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' -import type { PaymentSpeed } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentconfigs' +import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' +import type { PaymentSpeed } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentconfigs' import { Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { useDateFormatter } from '@/hooks/useDateFormatter' diff --git a/src/components/Contractor/Payments/CreatePayment/GenericBlocker.tsx b/src/components/Contractor/Payments/CreatePayment/GenericBlocker.tsx index 0464148b6..90904c1c1 100644 --- a/src/components/Contractor/Payments/CreatePayment/GenericBlocker.tsx +++ b/src/components/Contractor/Payments/CreatePayment/GenericBlocker.tsx @@ -1,4 +1,4 @@ -import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' +import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' import { useTranslation } from 'react-i18next' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.tsx b/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.tsx index 137c3104f..0b5e73227 100644 --- a/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.tsx +++ b/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.tsx @@ -1,10 +1,10 @@ import { useTranslation } from 'react-i18next' -import type { ContractorPaymentGroupPreview } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgrouppreview' -import type { ContractorPaymentForGroupPreview } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentforgrouppreview' +import type { ContractorPaymentGroupPreview } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgrouppreview' +import type { ContractorPaymentForGroupPreview } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentforgrouppreview' import { useMemo } from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { CompanyBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccount' -import type { PaymentSpeed } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentconfigs' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { CompanyBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccount' +import type { PaymentSpeed } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentconfigs' import { getContractorDisplayName } from './helpers' import { FastAchSubmissionBlockerBanner } from './FastAchSubmissionBlockerBanner' import { GenericBlocker } from './GenericBlocker' diff --git a/src/components/Contractor/Payments/CreatePayment/helpers.ts b/src/components/Contractor/Payments/CreatePayment/helpers.ts index b9e11c927..e7ed63f07 100644 --- a/src/components/Contractor/Payments/CreatePayment/helpers.ts +++ b/src/components/Contractor/Payments/CreatePayment/helpers.ts @@ -1,4 +1,4 @@ -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { firstLastName } from '@/helpers/formattedStrings' /** @internal */ diff --git a/src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts b/src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts index 549893ab7..789f48923 100644 --- a/src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts +++ b/src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts @@ -1,7 +1,7 @@ import { reduce, state, transition } from 'robot3' -import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgroup' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { WireInRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgroup' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { WireInRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { getContractorDisplayName } from '../CreatePayment/helpers' import { CreatePaymentContextual, diff --git a/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx b/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx index 4e58a8283..a5dd7ec2d 100644 --- a/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx +++ b/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx @@ -1,6 +1,6 @@ -import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsGet' -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useContractorPaymentsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentsDelete' +import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsGet' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useContractorPaymentsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentsDelete' import { useTranslation } from 'react-i18next' import { PaymentHistoryPresentation } from './PaymentHistoryPresentation' import { useComponentDictionary } from '@/i18n' diff --git a/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.tsx b/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.tsx index f04afae14..f1c58af70 100644 --- a/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.tsx +++ b/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.tsx @@ -1,7 +1,7 @@ import { Trans, useTranslation } from 'react-i18next' -import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgroup' -import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentforgroup' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgroup' +import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentforgroup' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { getContractorDisplayName } from '../CreatePayment/helpers' import styles from './PaymentHistoryPresentation.module.scss' import { DataView, Flex, EmptyData } from '@/components/Common' diff --git a/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.tsx b/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.tsx index 4a434c655..a40653e76 100644 --- a/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.tsx +++ b/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.tsx @@ -1,7 +1,7 @@ -import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsGet' -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useContractorPaymentsGetReceipt } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentsGetReceipt' -import { GustoEmbeddedError } from '@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror' +import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsGet' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useContractorPaymentsGetReceipt } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentsGetReceipt' +import { GustoEmbeddedError } from '@gusto/embedded-api-v-2026-02-01/models/errors/gustoembeddederror' import { useTranslation } from 'react-i18next' import { PaymentStatementPresentation } from './PaymentStatementPresentation' import { useComponentDictionary } from '@/i18n' diff --git a/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.tsx b/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.tsx index cf4840ea4..2e8dfecec 100644 --- a/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.tsx +++ b/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.tsx @@ -1,8 +1,8 @@ import { Trans, useTranslation } from 'react-i18next' -import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentforgroup' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentforgroup' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { useMemo } from 'react' -import type { ContractorPaymentReceipt } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentreceipt' +import type { ContractorPaymentReceipt } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentreceipt' import { getContractorDisplayName } from '../CreatePayment/helpers' import styles from './PaymentStatementPresentation.module.scss' import { DataView, Flex } from '@/components/Common' diff --git a/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.tsx b/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.tsx index 1ed3a76e9..50f1a6979 100644 --- a/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.tsx +++ b/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.tsx @@ -1,7 +1,7 @@ -import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsGet' -import { useContractorsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsList' -import { useBankAccountsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet' -import type { PayrollCreditBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollcreditblockertype' +import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsGet' +import { useContractorsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsList' +import { useBankAccountsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet' +import type { PayrollCreditBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollcreditblockertype' import type { InternalAlert } from '../types' import { PaymentSummaryPresentation } from './PaymentSummaryPresentation' import { useI18n } from '@/i18n' diff --git a/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.stories.tsx b/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.stories.tsx index 6c1298ff4..e3af5a2fe 100644 --- a/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.stories.tsx +++ b/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.stories.tsx @@ -1,6 +1,6 @@ import { fn } from 'storybook/test' -import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgroup' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgroup' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { PaymentSummaryPresentation } from './PaymentSummaryPresentation' import { GustoTestProvider } from '@/test/GustoTestApiProvider' diff --git a/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.tsx b/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.tsx index efdcdfcbd..7428525de 100644 --- a/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.tsx +++ b/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.tsx @@ -1,9 +1,9 @@ import { useTranslation } from 'react-i18next' -import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgroup' -import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentforgroup' +import type { ContractorPaymentGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgroup' +import type { ContractorPaymentForGroup } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentforgroup' import { useMemo } from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' -import type { CompanyBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccount' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' +import type { CompanyBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccount' import type { InternalAlert } from '../types' import { getContractorDisplayName } from '../CreatePayment/helpers' import { DataView, Flex } from '@/components/Common' diff --git a/src/components/Contractor/Payments/PaymentsList/PaymentsList.tsx b/src/components/Contractor/Payments/PaymentsList/PaymentsList.tsx index 9766dba96..aace05de1 100644 --- a/src/components/Contractor/Payments/PaymentsList/PaymentsList.tsx +++ b/src/components/Contractor/Payments/PaymentsList/PaymentsList.tsx @@ -1,7 +1,7 @@ import { useState, useMemo, useCallback } from 'react' -import { useContractorPaymentGroupsGetListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorPaymentGroupsGetList' -import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests' -import { InformationRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' +import { useContractorPaymentGroupsGetListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorPaymentGroupsGetList' +import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/informationRequestsGetInformationRequests' +import { InformationRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' import type { InternalAlert } from '../types' import { PaymentsListPresentation } from './PaymentsListPresentation' import { useComponentDictionary } from '@/i18n' diff --git a/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.tsx b/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.tsx index 2ae3c7dbd..84b9142ea 100644 --- a/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.tsx +++ b/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { ContractorPaymentGroupWithBlockers } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorpaymentgroupwithblockers' +import type { ContractorPaymentGroupWithBlockers } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorpaymentgroupwithblockers' import type { InternalAlert } from '../types' import styles from './PaymentsListPresentation.module.scss' import { DataView, Flex, EmptyData, ActionsLayout, useDataView } from '@/components/Common' diff --git a/src/components/Contractor/Profile/ContractorProfile.stories.tsx b/src/components/Contractor/Profile/ContractorProfile.stories.tsx index ca46e14c7..6bfd660dd 100644 --- a/src/components/Contractor/Profile/ContractorProfile.stories.tsx +++ b/src/components/Contractor/Profile/ContractorProfile.stories.tsx @@ -1,5 +1,5 @@ import { fn } from 'storybook/test' -import { type Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import { type Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { MockBaseProvider } from '../../../../.storybook/helpers/MockBaseProvider' import { ContractorProfileForm } from './ContractorProfileForm' import { ContractorType, WageType, useContractorProfile } from './useContractorProfile' diff --git a/src/components/Contractor/Profile/ContractorProfile.tsx b/src/components/Contractor/Profile/ContractorProfile.tsx index 0077c0b49..7590c1fac 100644 --- a/src/components/Contractor/Profile/ContractorProfile.tsx +++ b/src/components/Contractor/Profile/ContractorProfile.tsx @@ -1,5 +1,5 @@ -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { ContractorProfileFormData } from './useContractorProfile' import { useContractorProfile } from './useContractorProfile' import { ContractorProfileForm } from './ContractorProfileForm' diff --git a/src/components/Contractor/Profile/ContractorProfileForm.tsx b/src/components/Contractor/Profile/ContractorProfileForm.tsx index da9478cd0..508b4d66a 100644 --- a/src/components/Contractor/Profile/ContractorProfileForm.tsx +++ b/src/components/Contractor/Profile/ContractorProfileForm.tsx @@ -1,6 +1,6 @@ import { FormProvider } from 'react-hook-form' import { useTranslation } from 'react-i18next' -import { type Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import { type Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import type { useContractorProfile } from './useContractorProfile' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { useI18n } from '@/i18n' diff --git a/src/components/Contractor/Profile/useContractorProfile.test.tsx b/src/components/Contractor/Profile/useContractorProfile.test.tsx index be4671ec4..d0f1f5563 100644 --- a/src/components/Contractor/Profile/useContractorProfile.test.tsx +++ b/src/components/Contractor/Profile/useContractorProfile.test.tsx @@ -3,7 +3,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest' import { HttpResponse } from 'msw' import { useForm, FormProvider } from 'react-hook-form' import React from 'react' -import type { Contractor } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import type { Contractor } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { useContractorProfile, ContractorType, diff --git a/src/components/Contractor/Profile/useContractorProfile.ts b/src/components/Contractor/Profile/useContractorProfile.ts index a7bef593d..16e57ba2d 100644 --- a/src/components/Contractor/Profile/useContractorProfile.ts +++ b/src/components/Contractor/Profile/useContractorProfile.ts @@ -4,15 +4,15 @@ import { zodResolver } from '@hookform/resolvers/zod' import type { SubmitHandler } from 'react-hook-form' import { useForm, useWatch } from 'react-hook-form' import { z } from 'zod' -import { useContractorsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsCreate' -import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdate' -import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorcreaterequestbody' -import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorupdaterequestbody' +import { useContractorsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsCreate' +import { useContractorsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdate' +import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorcreaterequestbody' +import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorupdaterequestbody' import { WageType as ApiWageType, ContractorType as ApiContractorType, type Contractor, -} from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +} from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' import { useBase } from '@/components/Base' import { useI18n } from '@/i18n' import { diff --git a/src/components/Contractor/Submit/Submit.tsx b/src/components/Contractor/Submit/Submit.tsx index 063ed7414..663deee42 100644 --- a/src/components/Contractor/Submit/Submit.tsx +++ b/src/components/Contractor/Submit/Submit.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next' -import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsUpdateOnboardingStatus' -import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGetOnboardingStatus' -import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/contractorsGet' +import { useContractorsUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsUpdateOnboardingStatus' +import { useContractorsGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGetOnboardingStatus' +import { useContractorsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/contractorsGet' import { SubmitDone } from './SubmitDone' import { ActionsLayout, Flex, FlexItem } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.tsx b/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.tsx index da7471157..d45666435 100644 --- a/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.tsx +++ b/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.tsx @@ -1,7 +1,7 @@ import { useCallback, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' -import { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsDelete' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsDelete' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { useCompensationManagement, type UseCompensationManagementReady, diff --git a/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx b/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx index 12f268362..723e3398f 100644 --- a/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx +++ b/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx @@ -1,4 +1,4 @@ -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' import { getPendingCompensationChanges } from '../../shared/getPendingCompensationChanges' import { CompensationEditJobForm } from '../CompensationEditJobForm/CompensationEditJobForm' import { CompensationEditPendingJobForm } from '../CompensationEditPendingJobForm/CompensationEditPendingJobForm' diff --git a/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx b/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx index f74565849..d873635ee 100644 --- a/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx +++ b/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx @@ -1,6 +1,6 @@ import classNames from 'classnames' import { useTranslation } from 'react-i18next' -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' import { useJobForm } from '../../shared/useJobForm' import { useCompensationForm, type CompensationFormData } from '../../shared/useCompensationForm' import { ManagementCompensationFormBody } from '../ManagementCompensationFormBody' diff --git a/src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx b/src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx index 20fee369f..2ca1e4aa2 100644 --- a/src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx +++ b/src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx @@ -1,7 +1,7 @@ import { Trans, useTranslation } from 'react-i18next' -import type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage' +import type { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage' import type { UseJobFormReady } from '../shared/useJobForm' import type { UseCompensationFormReady } from '../shared/useCompensationForm' import { ActionsLayout, Flex } from '@/components/Common' diff --git a/src/components/Employee/Compensation/onboarding/Compensation.tsx b/src/components/Employee/Compensation/onboarding/Compensation.tsx index bc7b78716..a86ec0b5a 100644 --- a/src/components/Employee/Compensation/onboarding/Compensation.tsx +++ b/src/components/Employee/Compensation/onboarding/Compensation.tsx @@ -1,9 +1,9 @@ import { useMemo, useState } from 'react' import { createMachine } from 'robot3' import { useTranslation } from 'react-i18next' -import { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { type Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' +import { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { type Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' import type { OnboardingContextInterface } from '../../OnboardingFlow/OnboardingFlowComponents' import { InitialEditCompensationContextual, diff --git a/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx b/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx index f0b5af526..89bb91faf 100644 --- a/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx +++ b/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' import type { CompensationDefaultValues } from './Compensation' import { JobsList } from './JobsList' import { EditCompensation } from './EditCompensation' diff --git a/src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx b/src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx index 1211805f9..7edb3105c 100644 --- a/src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx +++ b/src/components/Employee/Compensation/onboarding/JobsList/JobsList.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react' -import { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsDelete' +import { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { useJobsAndCompensationsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsDelete' import { derivePrimaryFlsaStatus } from '../../shared/derivePrimaryFlsaStatus' import { JobsListPresentation } from './JobsListPresentation' import { BaseComponent, type BaseComponentInterface, useBase } from '@/components/Base' diff --git a/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.test.tsx b/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.test.tsx index ec80f5859..ed8e7aee4 100644 --- a/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.test.tsx +++ b/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.test.tsx @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' import { screen, within } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { JobsListPresentation } from './JobsListPresentation' import { FlsaStatus } from '@/shared/constants' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx b/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx index 82800474a..d2394be36 100644 --- a/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx +++ b/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import { type Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import { type Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import PencilSvg from '@/assets/icons/pencil.svg?react' import TrashCanSvg from '@/assets/icons/trashcan.svg?react' import { ActionsLayout, DataView, Flex, useDataView } from '@/components/Common' diff --git a/src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx b/src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx index d6efc7b6f..b554e12e0 100644 --- a/src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx +++ b/src/components/Employee/Compensation/shared/AddCompensationFormBody.tsx @@ -1,7 +1,7 @@ import { Trans, useTranslation } from 'react-i18next' -import type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage' +import type { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage' import type { UseJobFormReady } from './useJobForm' import type { UseCompensationFormReady } from './useCompensationForm' import { ActionsLayout, Flex } from '@/components/Common' diff --git a/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.test.ts b/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.test.ts index 127b44ec7..17ce1a1ea 100644 --- a/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.test.ts +++ b/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { derivePrimaryFlsaStatus } from './derivePrimaryFlsaStatus' function makeJob(overrides: Partial = {}): Job { diff --git a/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts b/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts index 55b28aeb5..7a9f104b5 100644 --- a/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts +++ b/src/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.ts @@ -1,4 +1,4 @@ -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' /** * Returns the FLSA status of the employee's primary job's current compensation, diff --git a/src/components/Employee/Compensation/shared/getPendingCompensationChanges.test.ts b/src/components/Employee/Compensation/shared/getPendingCompensationChanges.test.ts index fd06eafc9..57b89f72c 100644 --- a/src/components/Employee/Compensation/shared/getPendingCompensationChanges.test.ts +++ b/src/components/Employee/Compensation/shared/getPendingCompensationChanges.test.ts @@ -1,5 +1,5 @@ -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { describe, expect, it } from 'vitest' import { getPendingCompensationChanges } from './getPendingCompensationChanges' import { FlsaStatus } from '@/shared/constants' diff --git a/src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts b/src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts index 91869baee..89337c5d6 100644 --- a/src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts +++ b/src/components/Employee/Compensation/shared/getPendingCompensationChanges.ts @@ -1,6 +1,6 @@ -import type { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import type { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { normalizeToDate } from '@/helpers/dateFormatting' /** @internal */ diff --git a/src/components/Employee/Compensation/shared/useCompensationForm/fields.tsx b/src/components/Employee/Compensation/shared/useCompensationForm/fields.tsx index a93385a12..65c7e9d94 100644 --- a/src/components/Employee/Compensation/shared/useCompensationForm/fields.tsx +++ b/src/components/Employee/Compensation/shared/useCompensationForm/fields.tsx @@ -1,6 +1,6 @@ -import type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' +import type { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' import type { CompensationErrorCodes } from './compensationSchema' import type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField' import type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField' diff --git a/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.test.tsx b/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.test.tsx index eaed56b16..b45b65b48 100644 --- a/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.test.tsx +++ b/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.test.tsx @@ -2,7 +2,7 @@ import { renderHook, act, waitFor } from '@testing-library/react' import { describe, it, expect, beforeEach, assertType, vi } from 'vitest' import { http, HttpResponse, type HttpResponseResolver } from 'msw' import { QueryClient } from '@tanstack/react-query' -import { invalidateAllJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' +import { invalidateAllJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' import { useCompensationForm } from './useCompensationForm' import type { UseCompensationFormResult } from './useCompensationForm' import { diff --git a/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.tsx b/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.tsx index 3739dcb97..f5860b2e0 100644 --- a/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.tsx +++ b/src/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.tsx @@ -5,17 +5,17 @@ import { zodResolver } from '@hookform/resolvers/zod' import type { Compensation, PaymentUnit, -} from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage' -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidjobs' -import { useJobsAndCompensationsCreateCompensationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsCreateCompensation' -import { useJobsAndCompensationsUpdateCompensationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsUpdateCompensation' -import { useLocationsGetMinimumWages } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsGetMinimumWages' -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +} from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidjobs' +import { useJobsAndCompensationsCreateCompensationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsCreateCompensation' +import { useJobsAndCompensationsUpdateCompensationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsUpdateCompensation' +import { useLocationsGetMinimumWages } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsGetMinimumWages' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import { createCompensationSchema, type CompensationOptionalFieldsToRequire, diff --git a/src/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.tsx b/src/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.tsx index 5db78e65b..e9d4ffe85 100644 --- a/src/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.tsx +++ b/src/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.tsx @@ -1,9 +1,9 @@ import { useCallback, useMemo } from 'react' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidjobs' -import { useJobsAndCompensationsDeleteCompensationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsDeleteCompensation' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { GetV1EmployeesEmployeeIdJobsQueryParamInclude } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidjobs' +import { useJobsAndCompensationsDeleteCompensationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsDeleteCompensation' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' import { getPendingCompensationChanges, type PendingCompensationChange, diff --git a/src/components/Employee/Compensation/shared/useJobForm/useJobForm.tsx b/src/components/Employee/Compensation/shared/useJobForm/useJobForm.tsx index 64b9d1327..95b1651a0 100644 --- a/src/components/Employee/Compensation/shared/useJobForm/useJobForm.tsx +++ b/src/components/Employee/Compensation/shared/useJobForm/useJobForm.tsx @@ -2,16 +2,16 @@ import { useMemo, useState } from 'react' import { useForm, useWatch } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' -import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs' -import { useJobsAndCompensationsCreateJobMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsCreateJob' -import { useJobsAndCompensationsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsUpdate' -import { useJobsAndCompensationsUpdateCompensationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsUpdateCompensation' -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useFederalTaxDetailsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/federalTaxDetailsGet' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' +import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsGetJobs' +import { useJobsAndCompensationsCreateJobMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsCreateJob' +import { useJobsAndCompensationsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsUpdate' +import { useJobsAndCompensationsUpdateCompensationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/jobsAndCompensationsUpdateCompensation' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useFederalTaxDetailsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/federalTaxDetailsGet' import { createJobSchema, type JobOptionalFieldsToRequire, diff --git a/src/components/Employee/Dashboard/Dashboard.test.tsx b/src/components/Employee/Dashboard/Dashboard.test.tsx index 41d05320c..7674a6169 100644 --- a/src/components/Employee/Dashboard/Dashboard.test.tsx +++ b/src/components/Employee/Dashboard/Dashboard.test.tsx @@ -5,7 +5,7 @@ import { http, HttpResponse, type HttpResponseResolver, type PathParams } from ' import type { DeleteV1JobsJobIdRequest, DeleteV1JobsJobIdResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1jobsjobid' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1jobsjobid' import { Dashboard, type DashboardProps } from './Dashboard' import { DashboardFlow } from './DashboardFlow' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Employee/Dashboard/Dashboard.tsx b/src/components/Employee/Dashboard/Dashboard.tsx index 743f3f551..d7f6e61b7 100644 --- a/src/components/Employee/Dashboard/Dashboard.tsx +++ b/src/components/Employee/Dashboard/Dashboard.tsx @@ -1,6 +1,6 @@ import { Suspense, useState } from 'react' import { useTranslation } from 'react-i18next' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import { BasicDetailsView } from './BasicDetailsView' import { JobAndPayView } from './JobAndPayView' import { TaxesViewWithData } from './TaxesView' diff --git a/src/components/Employee/Dashboard/dashboardStateMachine.ts b/src/components/Employee/Dashboard/dashboardStateMachine.ts index 3fa8e8240..3ef8ed0a7 100644 --- a/src/components/Employee/Dashboard/dashboardStateMachine.ts +++ b/src/components/Employee/Dashboard/dashboardStateMachine.ts @@ -1,5 +1,5 @@ import { transition, reduce, state } from 'robot3' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { DashboardTab } from './Dashboard' import { DashboardViewContextual, diff --git a/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.tsx b/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.tsx index 2796503e4..275e3e477 100644 --- a/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.tsx +++ b/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { useDeductionsList } from '../../shared/useDeductionsList' import { useDeleteDeduction } from '../../shared/useDeleteDeduction' import { DeleteDeductionDialog } from '../../shared/DeleteDeductionDialog' diff --git a/src/components/Employee/Deductions/management/deductionsStateMachine.ts b/src/components/Employee/Deductions/management/deductionsStateMachine.ts index 238ab0c82..0c1884347 100644 --- a/src/components/Employee/Deductions/management/deductionsStateMachine.ts +++ b/src/components/Employee/Deductions/management/deductionsStateMachine.ts @@ -1,6 +1,6 @@ import { reduce, state, transition } from 'robot3' import type { ComponentType } from 'react' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { DeductionsContextInterface } from './DeductionsComponents' import { DeductionsCardContextual, DeductionsEditFormContextual } from './DeductionsComponents' import { componentEvents } from '@/shared/constants' diff --git a/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.test.tsx b/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.test.tsx index d7afeea21..368b48c03 100644 --- a/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.test.tsx +++ b/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.test.tsx @@ -1,7 +1,7 @@ import { describe, expect, it, vi } from 'vitest' import { screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { UseDeductionsListReady } from '../../shared/useDeductionsList' import { DeductionsList } from './DeductionsList' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.tsx b/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.tsx index 4f38dd7d9..4101daed9 100644 --- a/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.tsx +++ b/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { UseDeductionsListReady } from '../../shared/useDeductionsList' import { formatDeductionAmount } from '../../shared/formatDeductionAmount' import { useDataView, DataView } from '@/components/Common' diff --git a/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.tsx b/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.tsx index bccbf94ab..dfaf140f3 100644 --- a/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.tsx +++ b/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.tsx @@ -1,4 +1,4 @@ -import { type Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import { type Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { useDeductionsList } from '../shared/useDeductionsList' import { DeductionsForm } from '../shared/DeductionsForm' import { DeductionsList } from './DeductionsList/DeductionsList' diff --git a/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.tsx b/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.tsx index ee0c47716..3c9a30741 100644 --- a/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.tsx +++ b/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' -import type { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' +import type { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport' import { useChildSupportGarnishmentForm } from '../useChildSupportGarnishmentForm' import type { StateFieldEntry, CountyEntry } from '../useChildSupportGarnishmentForm' import { Form } from '@/components/Common/Form' diff --git a/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx b/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx index e5422eb35..6d316581f 100644 --- a/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx +++ b/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.tsx @@ -3,7 +3,7 @@ import { useMemo, useState } from 'react' import type { Garnishment, GarnishmentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { StandardDeductionForm } from './StandardDeductionForm' import { ChildSupportFormView } from './ChildSupportFormView' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx b/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx index ba83ee92c..545a6946b 100644 --- a/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx +++ b/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.tsx @@ -3,7 +3,7 @@ import { useWatch } from 'react-hook-form' import type { Garnishment, GarnishmentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { Control } from 'react-hook-form' import { useDeductionForm } from '../useDeductionForm' import type { DeductionFormData } from '../useDeductionForm' diff --git a/src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx b/src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx index 74059c9cc..356c38636 100644 --- a/src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx +++ b/src/components/Employee/Deductions/shared/DeleteDeductionDialog.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from 'react' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' /** diff --git a/src/components/Employee/Deductions/shared/formatDeductionAmount.test.ts b/src/components/Employee/Deductions/shared/formatDeductionAmount.test.ts index 4f3574b0f..06adf8c9c 100644 --- a/src/components/Employee/Deductions/shared/formatDeductionAmount.test.ts +++ b/src/components/Employee/Deductions/shared/formatDeductionAmount.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it, vi } from 'vitest' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { formatDeductionAmount } from './formatDeductionAmount' const formatters = { diff --git a/src/components/Employee/Deductions/shared/formatDeductionAmount.ts b/src/components/Employee/Deductions/shared/formatDeductionAmount.ts index 6f8470c93..8136f5447 100644 --- a/src/components/Employee/Deductions/shared/formatDeductionAmount.ts +++ b/src/components/Employee/Deductions/shared/formatDeductionAmount.ts @@ -1,4 +1,4 @@ -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' /** @internal */ export interface DeductionAmountFormatters { diff --git a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts index 7da74b657..8a80c1ba9 100644 --- a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts +++ b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.ts @@ -1,6 +1,6 @@ import { z } from 'zod' -import { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport' -import type { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata' +import { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport' +import type { Agencies } from '@gusto/embedded-api-v-2026-02-01/models/components/childsupportdata' import { buildFormSchema, type RequiredFieldConfig, diff --git a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx index 1bd1530d7..66b677d6e 100644 --- a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx +++ b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.tsx @@ -1,4 +1,4 @@ -import type { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport' +import type { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport' import type { ChildSupportGarnishmentFormErrorCodes } from './childSupportGarnishmentFormSchema' import type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField' import type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField' diff --git a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx index 6601cdf26..2b2ff8bd8 100644 --- a/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx +++ b/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.tsx @@ -5,13 +5,13 @@ import { zodResolver } from '@hookform/resolvers/zod' import { type Garnishment, type GarnishmentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' -import type { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata' -import { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport' -import { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsCreate' -import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsUpdate' -import { useGarnishmentsList } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList' -import { useGarnishmentsGetChildSupportData } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsGetChildSupportData' +} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' +import type { Agencies } from '@gusto/embedded-api-v-2026-02-01/models/components/childsupportdata' +import { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport' +import { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsCreate' +import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsUpdate' +import { useGarnishmentsList } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsList' +import { useGarnishmentsGetChildSupportData } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsGetChildSupportData' import { createChildSupportGarnishmentFormSchema, getRequiredAttrKeys, diff --git a/src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts b/src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts index 073e15685..8dcb8d358 100644 --- a/src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts +++ b/src/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import { GarnishmentType } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { buildFormSchema, type RequiredFieldConfig, diff --git a/src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx b/src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx index f9fe06b3e..3a2e0119c 100644 --- a/src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx +++ b/src/components/Employee/Deductions/shared/useDeductionForm/fields.tsx @@ -1,4 +1,4 @@ -import type { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { GarnishmentType } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import type { DeductionFormErrorCodes } from './deductionFormSchema' import type { TextInputHookFieldProps } from '@/partner-hook-utils/form/fields/TextInputHookField' import type { NumberInputHookFieldProps } from '@/partner-hook-utils/form/fields/NumberInputHookField' diff --git a/src/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.tsx b/src/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.tsx index 5664394f0..912bc4e1f 100644 --- a/src/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.tsx +++ b/src/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.tsx @@ -5,10 +5,10 @@ import { zodResolver } from '@hookform/resolvers/zod' import { type Garnishment, type GarnishmentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' -import { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsCreate' -import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsUpdate' -import { useGarnishmentsList } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList' +} from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' +import { useGarnishmentsCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsCreate' +import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsUpdate' +import { useGarnishmentsList } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsList' import { createDeductionFormSchema, type DeductionFormData, diff --git a/src/components/Employee/Deductions/shared/useDeductionsList.test.tsx b/src/components/Employee/Deductions/shared/useDeductionsList.test.tsx index 773ca2fd1..613e7feb6 100644 --- a/src/components/Employee/Deductions/shared/useDeductionsList.test.tsx +++ b/src/components/Employee/Deductions/shared/useDeductionsList.test.tsx @@ -1,7 +1,7 @@ import { renderHook, act, waitFor } from '@testing-library/react' import { describe, it, expect, beforeEach, vi } from 'vitest' import { http, HttpResponse, type HttpResponseResolver } from 'msw' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { useDeductionsList, type UseDeductionsListResult } from './useDeductionsList' import { server } from '@/test/mocks/server' import { setupApiTestMocks } from '@/test/mocks/apiServer' diff --git a/src/components/Employee/Deductions/shared/useDeductionsList.tsx b/src/components/Employee/Deductions/shared/useDeductionsList.tsx index 34068ed27..d8a354438 100644 --- a/src/components/Employee/Deductions/shared/useDeductionsList.tsx +++ b/src/components/Employee/Deductions/shared/useDeductionsList.tsx @@ -1,6 +1,6 @@ -import { useGarnishmentsList } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsList' -import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/garnishmentsUpdate' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import { useGarnishmentsList } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsList' +import { useGarnishmentsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/garnishmentsUpdate' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' import { useBaseSubmit } from '@/components/Base/useBaseSubmit' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult, HookSubmitResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/Deductions/shared/useDeleteDeduction.ts b/src/components/Employee/Deductions/shared/useDeleteDeduction.ts index 2b46c5684..37b453a7e 100644 --- a/src/components/Employee/Deductions/shared/useDeleteDeduction.ts +++ b/src/components/Employee/Deductions/shared/useDeleteDeduction.ts @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment' +import type { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment' /** * Pending-state + confirm-handler companion for `DeleteDeductionDialog`. diff --git a/src/components/Employee/Documents/management/DocumentManager.tsx b/src/components/Employee/Documents/management/DocumentManager.tsx index ebc3d13a8..081d2427e 100644 --- a/src/components/Employee/Documents/management/DocumentManager.tsx +++ b/src/components/Employee/Documents/management/DocumentManager.tsx @@ -1,6 +1,6 @@ import { Trans, useTranslation } from 'react-i18next' -import { useEmployeeFormsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsGet' -import { useEmployeeFormsGetPdfSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsGetPdf' +import { useEmployeeFormsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsGet' +import { useEmployeeFormsGetPdfSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsGetPdf' import { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base' import type { BaseComponentKeys } from '@/components/Base/Base' import { ActionsLayout, Flex } from '@/components/Common' diff --git a/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.tsx b/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.tsx index 0fa5838d5..3527ecd11 100644 --- a/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.tsx +++ b/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { useDocumentsList } from '../../shared/useDocumentsList' import { DataView, useDataView, EmptyData, Loading } from '@/components/Common' import { BaseBoundaries, BaseLayout } from '@/components/Base/Base' diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.tsx index 7557dc826..8660458ec 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.tsx @@ -1,5 +1,5 @@ -import { useEmployeeFormsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' -import { type Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import { useEmployeeFormsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' +import { type Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { Head } from './Head' import { List } from './List' import { Actions } from './Actions' diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.ts b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.ts index d9c495ea6..45983e81f 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.ts +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.ts @@ -1,4 +1,4 @@ -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { createCompoundContext } from '@/components/Base' type DocumentListContextType = { diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.tsx index 90113292f..75878ed3e 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.tsx @@ -1,7 +1,7 @@ import { createMachine } from 'robot3' import { useMemo } from 'react' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useEmployeeFormsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useEmployeeFormsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' import { DocumentListContextual, EmploymentEligibilityContextual, diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.tsx index 4d9f0d849..7b87c85dd 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.tsx @@ -1,6 +1,6 @@ -import { GustoEmbeddedError } from '@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror' -import { useI9VerificationGetAuthorization } from '@gusto/embedded-api-v-2025-11-15/react-query/i9VerificationGetAuthorization' -import { useI9VerificationUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/i9VerificationUpdate' +import { GustoEmbeddedError } from '@gusto/embedded-api-v-2026-02-01/models/errors/gustoembeddederror' +import { useI9VerificationGetAuthorization } from '@gusto/embedded-api-v-2026-02-01/react-query/i9VerificationGetAuthorization' +import { useI9VerificationUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/i9VerificationUpdate' import { EmploymentEligibilityPresentation } from './EmploymentEligibilityPresentation' import type { EmploymentEligibilityInputs, diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx index 77e4fbd8e..4c3c7af12 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx @@ -5,7 +5,7 @@ import { zodResolver } from '@hookform/resolvers/zod' import { AuthorizationStatus, DocumentType as I9AuthorizationDocumentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/i9authorization' +} from '@gusto/embedded-api-v-2026-02-01/models/components/i9authorization' import { generateEmploymentEligibilitySchema, type EmploymentEligibilityInputs, diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts index 869dc5161..73bacfec3 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts @@ -2,7 +2,7 @@ import { z } from 'zod' import { AuthorizationStatus, DocumentType as I9AuthorizationDocumentType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/i9authorization' +} from '@gusto/embedded-api-v-2026-02-01/models/components/i9authorization' const isValidUscisNumber = (value: string) => /^[Aa]?\d{7,9}$/.test(value) const isValidI94Number = (value: string) => /^\d{9} ?[A-Za-z\d]\d$/.test(value) diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.tsx index e631dc61c..94493c1ac 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.tsx @@ -1,6 +1,6 @@ import { useTranslation, Trans } from 'react-i18next' -import type { AuthorizationStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/i9authorization' -import { useI9VerificationGetAuthorization } from '@gusto/embedded-api-v-2025-11-15/react-query/i9VerificationGetAuthorization' +import type { AuthorizationStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/i9authorization' +import { useI9VerificationGetAuthorization } from '@gusto/embedded-api-v-2026-02-01/react-query/i9VerificationGetAuthorization' import { useSignEmployeeForm, type PreparerFieldGroup } from '../../../shared/useSignEmployeeForm' import styles from './I9SignatureForm.module.scss' import { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base' diff --git a/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.tsx b/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.tsx index 33236faf9..ce13780ca 100644 --- a/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.tsx +++ b/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.tsx @@ -1,4 +1,4 @@ -import { type Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import { type Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { SignatureForm } from '../../shared/SignatureForm/SignatureForm' import { EmploymentEligibility } from './EmploymentEligibility' import { I9SignatureForm } from './I9SignatureForm/I9SignatureForm' diff --git a/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.tsx b/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.tsx index 203c42e1a..948441c42 100644 --- a/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.tsx +++ b/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.tsx @@ -1,9 +1,9 @@ import { useIsMutating } from '@tanstack/react-query' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import { useEmployeesUpdateOnboardingDocumentsConfigMutation, mutationKeyEmployeesUpdateOnboardingDocumentsConfig, -} from '@gusto/embedded-api-v-2025-11-15/react-query/employeesUpdateOnboardingDocumentsConfig' +} from '@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdateOnboardingDocumentsConfig' import { EmployeeDocumentsPresentation, type EmployeeDocumentsFormValues, diff --git a/src/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.tsx b/src/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.tsx index b9c2eeca3..966b9178c 100644 --- a/src/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.tsx +++ b/src/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.tsx @@ -1,5 +1,5 @@ -import { useEmployeeFormsList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' +import { useEmployeeFormsList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.tsx b/src/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.tsx index d69f00ccf..7c0820f5e 100644 --- a/src/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.tsx +++ b/src/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.tsx @@ -2,10 +2,10 @@ import type { JSX } from 'react' import { useMemo, useCallback, useState, useEffect } from 'react' import { useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form' -import { useEmployeeFormsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsGet' -import { useEmployeeFormsGetPdf } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsGetPdf' -import { useEmployeeFormsSignMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsSign' +import type { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form' +import { useEmployeeFormsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsGet' +import { useEmployeeFormsGetPdf } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsGetPdf' +import { useEmployeeFormsSignMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsSign' import { createSignEmployeeFormSchema, MAX_PREPARERS, diff --git a/src/components/Employee/EmployeeList/onboarding/EmployeeList.tsx b/src/components/Employee/EmployeeList/onboarding/EmployeeList.tsx index 9f5d5d525..2c0ad75ca 100644 --- a/src/components/Employee/EmployeeList/onboarding/EmployeeList.tsx +++ b/src/components/Employee/EmployeeList/onboarding/EmployeeList.tsx @@ -1,4 +1,4 @@ -import type { OnboardingStatus } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidonboardingstatus' +import type { OnboardingStatus } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidonboardingstatus' import { useEmployeeList } from '../shared/useEmployeeList' import { EmployeeListView } from './EmployeeListView' import { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base/Base' diff --git a/src/components/Employee/EmployeeList/onboarding/EmployeeListView.tsx b/src/components/Employee/EmployeeList/onboarding/EmployeeListView.tsx index 4bd0084c6..a9cde34e9 100644 --- a/src/components/Employee/EmployeeList/onboarding/EmployeeListView.tsx +++ b/src/components/Employee/EmployeeList/onboarding/EmployeeListView.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' import { useTranslation } from 'react-i18next' -import type { OnboardingStatus } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidonboardingstatus' +import type { OnboardingStatus } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidonboardingstatus' import type { UseEmployeeListResult, EmployeeWithActions } from '../shared/useEmployeeList' import { DataView, EmptyData, ActionsLayout, useDataView, Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Employee/EmployeeList/shared/useEmployeeList.tsx b/src/components/Employee/EmployeeList/shared/useEmployeeList.tsx index d48915bac..585ae2564 100644 --- a/src/components/Employee/EmployeeList/shared/useEmployeeList.tsx +++ b/src/components/Employee/EmployeeList/shared/useEmployeeList.tsx @@ -1,10 +1,10 @@ import { useMemo } from 'react' -import { useEmployeesList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job' -import type { EmployeeOnboardingStatus as EmployeeOnboardingStatusEntity } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeonboardingstatus' -import { useEmployeesDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesDelete' -import { useEmployeesUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesUpdateOnboardingStatus' +import { useEmployeesList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job' +import type { EmployeeOnboardingStatus as EmployeeOnboardingStatusEntity } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeonboardingstatus' +import { useEmployeesDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesDelete' +import { useEmployeesUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdateOnboardingStatus' import { keepPreviousData } from '@tanstack/react-query' import { usePagination } from '@/hooks/usePagination/usePagination' import type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes' diff --git a/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.ts b/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.ts index 101830c2c..5082b1946 100644 --- a/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.ts +++ b/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import { FilingStatus } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidfederaltaxes' +import { FilingStatus } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidfederaltaxes' import { buildFormSchema, type RequiredFieldConfig, diff --git a/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.tsx b/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.tsx index 894c74eb4..d4a7123ac 100644 --- a/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.tsx +++ b/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.tsx @@ -2,14 +2,14 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeeFederalTax } from '@gusto/embedded-api-v-2025-11-15/models/components/employeefederaltax' -import type { EmployeeFederalTaxRev2020 } from '@gusto/embedded-api-v-2025-11-15/models/components/employeefederaltaxrev2020' -import { useEmployeeTaxSetupGetFederalTaxes } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupGetFederalTaxes' -import { useEmployeeTaxSetupUpdateFederalTaxesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupUpdateFederalTaxes' +import type { EmployeeFederalTax } from '@gusto/embedded-api-v-2026-02-01/models/components/employeefederaltax' +import type { EmployeeFederalTaxRev2020 } from '@gusto/embedded-api-v-2026-02-01/models/components/employeefederaltaxrev2020' +import { useEmployeeTaxSetupGetFederalTaxes } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupGetFederalTaxes' +import { useEmployeeTaxSetupUpdateFederalTaxesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupUpdateFederalTaxes' import type { FilingStatus, PutV1EmployeesEmployeeIdFederalTaxesRequestBody, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidfederaltaxes' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidfederaltaxes' import { createFederalTaxesSchema, FILING_STATUS_VALUES, diff --git a/src/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.tsx b/src/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.tsx index 0a72b6335..ae84fcebd 100644 --- a/src/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.tsx +++ b/src/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.tsx @@ -1,5 +1,5 @@ -import { useEmployeeTaxSetupGetFederalTaxes } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupGetFederalTaxes' -import type { GetV1EmployeesEmployeeIdFederalTaxesResponse } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidfederaltaxes' +import { useEmployeeTaxSetupGetFederalTaxes } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupGetFederalTaxes' +import type { GetV1EmployeesEmployeeIdFederalTaxesResponse } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidfederaltaxes' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/HomeAddress/management/HomeAddressEditForm.tsx b/src/components/Employee/HomeAddress/management/HomeAddressEditForm.tsx index 7eb4af49f..b7b2aa011 100644 --- a/src/components/Employee/HomeAddress/management/HomeAddressEditForm.tsx +++ b/src/components/Employee/HomeAddress/management/HomeAddressEditForm.tsx @@ -1,4 +1,4 @@ -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' import { HomeAddressView } from './HomeAddressView' import { isUseHomeAddressManagementSuccess, diff --git a/src/components/Employee/HomeAddress/management/HomeAddressView.tsx b/src/components/Employee/HomeAddress/management/HomeAddressView.tsx index 6cfc1e7fb..ba7d12d8e 100644 --- a/src/components/Employee/HomeAddress/management/HomeAddressView.tsx +++ b/src/components/Employee/HomeAddress/management/HomeAddressView.tsx @@ -1,7 +1,7 @@ import { useLayoutEffect, useMemo, useRef, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import { useWatch } from 'react-hook-form' -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' import type { TFunction } from 'i18next' import { formatPendingHomeAddressLine, diff --git a/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.ts b/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.ts index 84d830480..3ebe24248 100644 --- a/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.ts +++ b/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest' -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { formatPendingHomeAddressLine, getPendingFutureHomeAddress, diff --git a/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.ts b/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.ts index d2dceec21..8dceaa851 100644 --- a/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.ts +++ b/src/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.ts @@ -1,4 +1,4 @@ -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' import { normalizeToDate } from '@/helpers/dateFormatting' const startOfLocalDay = (d: Date) => new Date(d.getFullYear(), d.getMonth(), d.getDate()) diff --git a/src/components/Employee/HomeAddress/management/useHomeAddressManagement.tsx b/src/components/Employee/HomeAddress/management/useHomeAddressManagement.tsx index e4d80babf..4c9eb07d9 100644 --- a/src/components/Employee/HomeAddress/management/useHomeAddressManagement.tsx +++ b/src/components/Employee/HomeAddress/management/useHomeAddressManagement.tsx @@ -1,8 +1,8 @@ import { useMemo, useState } from 'react' -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' -import { useEmployeeAddressesDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesDelete' -import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGet' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' +import { useEmployeeAddressesDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesDelete' +import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGet' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import type { OnEventType } from '@/components/Base/useBase' import { useBaseSubmit } from '@/components/Base/useBaseSubmit' import { useHomeAddressForm } from '@/components/Employee/Profile/shared/useHomeAddressForm' diff --git a/src/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.tsx b/src/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.tsx index 97de519fb..d88f9a5d9 100644 --- a/src/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.tsx +++ b/src/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.tsx @@ -1,5 +1,5 @@ -import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGet' -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' +import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGet' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/Landing/Landing.tsx b/src/components/Employee/Landing/Landing.tsx index 9a7d78c8c..a590ff159 100644 --- a/src/components/Employee/Landing/Landing.tsx +++ b/src/components/Employee/Landing/Landing.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useCompaniesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/companiesGet' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useCompaniesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/companiesGet' import DOMPurify from 'dompurify' import { useMemo } from 'react' import { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.tsx b/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.tsx index 3c02b25dc..c5913e4ae 100644 --- a/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.tsx +++ b/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.tsx @@ -1,4 +1,4 @@ -import type { PaymentMethodBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentmethodbankaccount' +import type { PaymentMethodBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentmethodbankaccount' import { Deductions } from '../Deductions/onboarding/Deductions' import { FederalTaxes } from '../FederalTaxes/onboarding/FederalTaxes' import { StateTaxes } from '../StateTaxes/onboarding/StateTaxes' diff --git a/src/components/Employee/OnboardingSummary/OnboardingSummary.tsx b/src/components/Employee/OnboardingSummary/OnboardingSummary.tsx index e9f0b699f..3399cd654 100644 --- a/src/components/Employee/OnboardingSummary/OnboardingSummary.tsx +++ b/src/components/Employee/OnboardingSummary/OnboardingSummary.tsx @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next' import classNames from 'classnames' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useEmployeesGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGetOnboardingStatus' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useEmployeesGetOnboardingStatusSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGetOnboardingStatus' import DOMPurify from 'dompurify' import { useMemo } from 'react' import type { OnboardingContextInterface } from '../OnboardingFlow/OnboardingFlowComponents' diff --git a/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.tsx b/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.tsx index ecc0f3106..59c6be2f4 100644 --- a/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.tsx +++ b/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccount' +import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccount' import { useBankForm, type AccountType, type UseBankFormProps } from '../useBankForm' import { ActionsLayout } from '@/components/Common' import { Form } from '@/components/Common/Form' diff --git a/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.tsx b/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.tsx index b56856160..aeeff82d1 100644 --- a/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.tsx +++ b/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.tsx @@ -1,6 +1,6 @@ import { Trans, useTranslation } from 'react-i18next' import DOMPurify from 'dompurify' -import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/employeepaymentmethod' +import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/employeepaymentmethod' import { useSplitPaymentsForm, type SplitByValue, diff --git a/src/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.tsx b/src/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.tsx index 2c7e3298b..67f390aeb 100644 --- a/src/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.tsx +++ b/src/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.tsx @@ -2,8 +2,8 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccount' -import { useEmployeePaymentMethodCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodCreate' +import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccount' +import { useEmployeePaymentMethodCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodCreate' import { ACCOUNT_TYPES, type AccountType, diff --git a/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.tsx b/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.tsx index ea234bd65..a1a978b0e 100644 --- a/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.tsx +++ b/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.tsx @@ -2,9 +2,9 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/employeepaymentmethod' -import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodGet' -import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodUpdate' +import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/employeepaymentmethod' +import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodGet' +import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodUpdate' import { PAYMENT_METHOD_TYPES, type PaymentMethodFormData, diff --git a/src/components/Employee/PaymentMethod/shared/usePaymentMethodList.ts b/src/components/Employee/PaymentMethod/shared/usePaymentMethodList.ts index d6ea3f64a..d445d45c7 100644 --- a/src/components/Employee/PaymentMethod/shared/usePaymentMethodList.ts +++ b/src/components/Employee/PaymentMethod/shared/usePaymentMethodList.ts @@ -1,9 +1,9 @@ -import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccount' -import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/employeepaymentmethod' -import { useEmployeePaymentMethodDeleteBankAccountMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodDeleteBankAccount' -import { useEmployeePaymentMethodsGetBankAccounts } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodsGetBankAccounts' -import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodGet' -import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodUpdate' +import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccount' +import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/employeepaymentmethod' +import { useEmployeePaymentMethodDeleteBankAccountMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodDeleteBankAccount' +import { useEmployeePaymentMethodsGetBankAccounts } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodsGetBankAccounts' +import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodGet' +import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodUpdate' import { useEffect, useRef } from 'react' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import { useBaseSubmit } from '@/components/Base/useBaseSubmit' diff --git a/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.tsx b/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.tsx index 8c0367416..10b841738 100644 --- a/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.tsx +++ b/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.tsx @@ -3,11 +3,11 @@ import { useCallback, useEffect, useMemo, useRef } from 'react' import { useForm, useFormState, useWatch } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccount' -import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/employeepaymentmethod' -import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodGet' -import { useEmployeePaymentMethodsGetBankAccounts } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodsGetBankAccounts' -import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodUpdate' +import type { EmployeeBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccount' +import type { EmployeePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/employeepaymentmethod' +import { useEmployeePaymentMethodGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodGet' +import { useEmployeePaymentMethodsGetBankAccounts } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodsGetBankAccounts' +import { useEmployeePaymentMethodUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodUpdate' import { PERCENTAGE_TOTAL_PATH, SPLIT_BY_VALUES, diff --git a/src/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.ts b/src/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.ts index 1317255fe..e01827b91 100644 --- a/src/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.ts +++ b/src/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.ts @@ -1,8 +1,8 @@ -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' -import { usePayrollsGetPayStubs } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetPayStubs' -import { payrollsGetPayStub } from '@gusto/embedded-api-v-2025-11-15/funcs/payrollsGetPayStub' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' +import { usePayrollsGetPayStubs } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetPayStubs' +import { payrollsGetPayStub } from '@gusto/embedded-api-v-2026-02-01/funcs/payrollsGetPayStub' import { useCallback, useMemo } from 'react' -import type { GetV1EmployeesEmployeeUuidPayStubsResponse } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeuuidpaystubs' +import type { GetV1EmployeesEmployeeUuidPayStubsResponse } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeuuidpaystubs' import { useBaseSubmit } from '@/components/Base/useBaseSubmit' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import { readableStreamToBlob } from '@/helpers/readableStreamToBlob' diff --git a/src/components/Employee/Profile/onboarding/AdminProfile.tsx b/src/components/Employee/Profile/onboarding/AdminProfile.tsx index 7bcd067b3..ab7493646 100644 --- a/src/components/Employee/Profile/onboarding/AdminProfile.tsx +++ b/src/components/Employee/Profile/onboarding/AdminProfile.tsx @@ -2,7 +2,7 @@ import { useState, useMemo, useEffect } from 'react' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { Trans, useTranslation } from 'react-i18next' import classNames from 'classnames' -import { type Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import { type Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import { useEmployeeDetailsForm } from '../shared/useEmployeeDetailsForm' import type { EmployeeDetailsOptionalFieldsToRequire } from '../shared/useEmployeeDetailsForm' import { useCurrentHomeAddressForm } from '../shared/useHomeAddressForm' diff --git a/src/components/Employee/Profile/onboarding/EmployeeProfile.tsx b/src/components/Employee/Profile/onboarding/EmployeeProfile.tsx index 8529d2ff5..e9a065b93 100644 --- a/src/components/Employee/Profile/onboarding/EmployeeProfile.tsx +++ b/src/components/Employee/Profile/onboarding/EmployeeProfile.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' import { useTranslation } from 'react-i18next' import classNames from 'classnames' -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' import { useEmployeeDetailsForm } from '../shared/useEmployeeDetailsForm' import type { EmployeeDetailsOptionalFieldsToRequire } from '../shared/useEmployeeDetailsForm' import { useCurrentHomeAddressForm } from '../shared/useHomeAddressForm' diff --git a/src/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.tsx b/src/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.tsx index 85eafd4f9..cc4427a01 100644 --- a/src/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.tsx +++ b/src/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.tsx @@ -2,12 +2,12 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useEmployeesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesCreate' -import { useEmployeesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesUpdate' -import { useEmployeesUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesUpdateOnboardingStatus' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useEmployeesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesCreate' +import { useEmployeesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdate' +import { useEmployeesUpdateOnboardingStatusMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesUpdateOnboardingStatus' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { createEmployeeDetailsSchema, type EmployeeDetailsOptionalFieldsToRequire, diff --git a/src/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.tsx b/src/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.tsx index ba1c7d773..04604acc5 100644 --- a/src/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.tsx +++ b/src/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.tsx @@ -1,5 +1,5 @@ -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.tsx b/src/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.tsx index e776f810a..8e12e45e8 100644 --- a/src/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.tsx +++ b/src/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.tsx @@ -1,4 +1,4 @@ -import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGet' +import { useEmployeeAddressesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGet' import { useHomeAddressForm } from './useHomeAddressForm' import type { UseHomeAddressFormProps, UseHomeAddressFormResult } from './useHomeAddressForm' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' diff --git a/src/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.tsx b/src/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.tsx index eb107d9a2..3a6363145 100644 --- a/src/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.tsx +++ b/src/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.tsx @@ -2,11 +2,11 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' -import { useEmployeeAddressesRetrieveHomeAddress } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesRetrieveHomeAddress' -import { useEmployeeAddressesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesCreate' -import { useEmployeeAddressesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesUpdate' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' +import { useEmployeeAddressesRetrieveHomeAddress } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesRetrieveHomeAddress' +import { useEmployeeAddressesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesCreate' +import { useEmployeeAddressesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesUpdate' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { createHomeAddressSchema, type HomeAddressOptionalFieldsToRequire, diff --git a/src/components/Employee/Profile/shared/useWorkAddressForm/fields.tsx b/src/components/Employee/Profile/shared/useWorkAddressForm/fields.tsx index cf59f6fbc..514f38701 100644 --- a/src/components/Employee/Profile/shared/useWorkAddressForm/fields.tsx +++ b/src/components/Employee/Profile/shared/useWorkAddressForm/fields.tsx @@ -1,4 +1,4 @@ -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' import type { WorkAddressErrorCodes } from './workAddressSchema' import type { SelectHookFieldProps } from '@/partner-hook-utils/form/fields/SelectHookField' import type { DatePickerHookFieldProps } from '@/partner-hook-utils/form/fields/DatePickerHookField' diff --git a/src/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.tsx b/src/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.tsx index 78e71618b..a5822e373 100644 --- a/src/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.tsx +++ b/src/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.tsx @@ -1,4 +1,4 @@ -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' import { useWorkAddressForm } from './useWorkAddressForm' import type { UseWorkAddressFormProps, UseWorkAddressFormResult } from './useWorkAddressForm' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' diff --git a/src/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.tsx b/src/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.tsx index 86fa9b33e..af434ac84 100644 --- a/src/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.tsx +++ b/src/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.tsx @@ -2,13 +2,13 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' -import { useLocationsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/locationsGet' -import { useEmployeeAddressesRetrieveWorkAddress } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesRetrieveWorkAddress' -import { useEmployeeAddressesCreateWorkAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesCreateWorkAddress' -import { useEmployeeAddressesUpdateWorkAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesUpdateWorkAddress' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' +import { useLocationsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/locationsGet' +import { useEmployeeAddressesRetrieveWorkAddress } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesRetrieveWorkAddress' +import { useEmployeeAddressesCreateWorkAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesCreateWorkAddress' +import { useEmployeeAddressesUpdateWorkAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesUpdateWorkAddress' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { createWorkAddressSchema, type WorkAddressOptionalFieldsToRequire, diff --git a/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.tsx b/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.tsx index 047be99d3..e2d353379 100644 --- a/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.tsx +++ b/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.tsx @@ -1,4 +1,4 @@ -import type { PaymentMethodBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentmethodbankaccount' +import type { PaymentMethodBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentmethodbankaccount' import { ensureRequired } from '@/helpers/ensureRequired' import type { FlowContextInterface } from '@/components/Flow/useFlow' import { useFlow } from '@/components/Flow/useFlow' diff --git a/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.tsx b/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.tsx index 978798d1a..7d9760faa 100644 --- a/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.tsx +++ b/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next' -import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxquestion' +import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxquestion' import { useStateTaxesSummary } from '../../shared/useStateTaxesSummary' import { Flex } from '@/components/Common/Flex/Flex' import { Loading } from '@/components/Common' diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.ts b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.ts index 67683e882..ae811fcc8 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.ts +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.ts @@ -1,4 +1,4 @@ -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' export const caEmployeeStateTaxes: EmployeeStateTaxesList[] = [ { diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.ts b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.ts index cf0c4bdcc..16073b4b2 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.ts +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.ts @@ -1,4 +1,4 @@ -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' interface WireAnswer { value: unknown diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.ts b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.ts index 675305dd2..79e4b158d 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.ts +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' import { getQuestionVariant, type StateTaxQuestionVariant } from './fieldMapping' import { snakeCaseToCamelCase } from '@/helpers/formattedStrings' import type { diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.ts b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.ts index 6afc4011d..4583e4483 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.ts +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.ts @@ -1,4 +1,4 @@ -import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxquestion' +import type { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxquestion' /** * UI input variant for a state-tax question — determines which field type renders for a given question from the employee state-taxes API. diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.tsx b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.tsx index 6079d4370..4f10b1008 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.tsx +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.tsx @@ -1,6 +1,6 @@ import type { ComponentType } from 'react' import { useMemo } from 'react' -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' import { getQuestionVariant, type StateTaxQuestionVariant } from './fieldMapping' import { CurrencyStateTaxField, diff --git a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.tsx b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.tsx index 6ebb6f940..3e308e902 100644 --- a/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.tsx +++ b/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.tsx @@ -2,13 +2,13 @@ import { useMemo } from 'react' import { useForm } from 'react-hook-form' import type { UseFormProps } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' import type { EmployeeStateTaxesRequest, States as EmployeeStateTaxesRequestState, -} from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxesrequest' -import { useEmployeeTaxSetupGetStateTaxes } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupGetStateTaxes' -import { useEmployeeTaxSetupUpdateStateTaxesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupUpdateStateTaxes' +} from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxesrequest' +import { useEmployeeTaxSetupGetStateTaxes } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupGetStateTaxes' +import { useEmployeeTaxSetupUpdateStateTaxesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupUpdateStateTaxes' import { createEmployeeStateTaxesSchema, type EmployeeStateTaxesFormData, diff --git a/src/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.tsx b/src/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.tsx index 57f6e920e..6dfc0b0fa 100644 --- a/src/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.tsx +++ b/src/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.tsx @@ -1,5 +1,5 @@ -import { useEmployeeTaxSetupGetStateTaxes } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeTaxSetupGetStateTaxes' -import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist' +import { useEmployeeTaxSetupGetStateTaxes } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeTaxSetupGetStateTaxes' +import type { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.stories.tsx b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.stories.tsx index ab8138e2d..541b9487c 100644 --- a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.stories.tsx +++ b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.stories.tsx @@ -1,6 +1,6 @@ import { Suspense } from 'react' import { fn } from 'storybook/test' -import type { Termination } from '@gusto/embedded-api-v-2025-11-15/models/components/termination' +import type { Termination } from '@gusto/embedded-api-v-2026-02-01/models/components/termination' import { TerminateEmployeePresentation } from './TerminateEmployeePresentation' import { useI18n } from '@/i18n' diff --git a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.tsx b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.tsx index 4627b1fe7..801c21532 100644 --- a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.tsx +++ b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.tsx @@ -1,19 +1,19 @@ import { useQueryClient } from '@tanstack/react-query' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import { useEmployeeEmploymentsGetTerminationsSuspense, invalidateAllEmployeeEmploymentsGetTerminations, -} from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsGetTerminations' -import { useEmployeeEmploymentsCreateTerminationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsCreateTermination' -import { useEmployeeEmploymentsUpdateTerminationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsUpdateTermination' -import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle' +} from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsGetTerminations' +import { useEmployeeEmploymentsCreateTerminationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsCreateTermination' +import { useEmployeeEmploymentsUpdateTerminationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsUpdateTermination' +import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle' import { usePaySchedulesGetUnprocessedTerminationPeriods, invalidateAllPaySchedulesGetUnprocessedTerminationPeriods, -} from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetUnprocessedTerminationPeriods' -import { invalidateAllPayrollsList } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' -import { OffCycleReason } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +} from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetUnprocessedTerminationPeriods' +import { invalidateAllPayrollsList } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' +import { OffCycleReason } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import type { PayrollOption } from '../types' import { TerminateEmployeePresentation } from './TerminateEmployeePresentation' import type { BaseComponentInterface } from '@/components/Base/Base' diff --git a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx index 67d7110fb..d65b98395 100644 --- a/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx +++ b/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.tsx @@ -2,7 +2,7 @@ import { useTranslation } from 'react-i18next' import z from 'zod' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' -import type { Termination } from '@gusto/embedded-api-v-2025-11-15/models/components/termination' +import type { Termination } from '@gusto/embedded-api-v-2026-02-01/models/components/termination' import type { PayrollOption } from '../types' import type { TerminateEmployeeFormData } from './TerminateEmployee' import { Flex, ActionsLayout, DatePickerField, RadioGroupField } from '@/components/Common' diff --git a/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.tsx b/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.tsx index d501127ac..2a590221f 100644 --- a/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.tsx +++ b/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.tsx @@ -1,12 +1,12 @@ import { useState } from 'react' import { useQueryClient } from '@tanstack/react-query' -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import { useEmployeeEmploymentsGetTerminationsSuspense, invalidateAllEmployeeEmploymentsGetTerminations, -} from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsGetTerminations' -import { useEmployeeEmploymentsDeleteTerminationMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeEmploymentsDeleteTermination' -import { invalidateAllEmployeesList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' +} from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsGetTerminations' +import { useEmployeeEmploymentsDeleteTerminationMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeEmploymentsDeleteTermination' +import { invalidateAllEmployeesList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' import type { PayrollOption } from '../types' import { TerminationSummaryPresentation } from './TerminationSummaryPresentation' import { normalizeToDate } from '@/helpers/dateFormatting' diff --git a/src/components/Employee/WorkAddress/management/WorkAddressEditForm.tsx b/src/components/Employee/WorkAddress/management/WorkAddressEditForm.tsx index f6191b3ad..f635c3592 100644 --- a/src/components/Employee/WorkAddress/management/WorkAddressEditForm.tsx +++ b/src/components/Employee/WorkAddress/management/WorkAddressEditForm.tsx @@ -1,4 +1,4 @@ -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' import { WorkAddressView } from './WorkAddressView' import { isUseWorkAddressManagementSuccess, diff --git a/src/components/Employee/WorkAddress/management/WorkAddressView.tsx b/src/components/Employee/WorkAddress/management/WorkAddressView.tsx index 1bb49a949..76c353a81 100644 --- a/src/components/Employee/WorkAddress/management/WorkAddressView.tsx +++ b/src/components/Employee/WorkAddress/management/WorkAddressView.tsx @@ -1,7 +1,7 @@ import { useLayoutEffect, useMemo, useRef, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' import { formatPendingWorkAddressLine, getPendingFutureWorkAddress, diff --git a/src/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.ts b/src/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.ts index 13333bb8c..2b8ecf846 100644 --- a/src/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.ts +++ b/src/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.ts @@ -1,5 +1,5 @@ -import type { Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' +import type { Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' import { normalizeToDate } from '@/helpers/dateFormatting' import { addressInline } from '@/helpers/formattedStrings' diff --git a/src/components/Employee/WorkAddress/management/useWorkAddressManagement.tsx b/src/components/Employee/WorkAddress/management/useWorkAddressManagement.tsx index 06f1672e2..94a848559 100644 --- a/src/components/Employee/WorkAddress/management/useWorkAddressManagement.tsx +++ b/src/components/Employee/WorkAddress/management/useWorkAddressManagement.tsx @@ -1,8 +1,8 @@ import { useMemo, useState } from 'react' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' -import { useEmployeeAddressesDeleteWorkAddressMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesDeleteWorkAddress' -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' -import { useEmployeesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' +import { useEmployeeAddressesDeleteWorkAddressMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesDeleteWorkAddress' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' +import { useEmployeesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' import type { OnEventType } from '@/components/Base/useBase' import { useBaseSubmit } from '@/components/Base/useBaseSubmit' import { useWorkAddressForm } from '@/components/Employee/Profile/shared/useWorkAddressForm' diff --git a/src/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.tsx b/src/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.tsx index 94e2f2e2d..edc1fd09c 100644 --- a/src/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.tsx +++ b/src/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.tsx @@ -1,5 +1,5 @@ -import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeAddressesGetWorkAddresses' -import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress' +import { useEmployeeAddressesGetWorkAddresses } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeAddressesGetWorkAddresses' +import type { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress' import { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler' import type { BaseHookReady, HookLoadingResult } from '@/partner-hook-utils/types' diff --git a/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.tsx b/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.tsx index 62ff18630..709e5a7ab 100644 --- a/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.tsx +++ b/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.tsx @@ -4,14 +4,14 @@ import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' import { useIsMutating } from '@tanstack/react-query' -import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests' +import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/informationRequestsGetInformationRequests' import { useInformationRequestsSubmitMutation, mutationKeyInformationRequestsSubmit, -} from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsSubmit' -import type { RequiredQuestions } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' -import { ResponseType } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' -import { ResponseType as SubmitResponseType } from '@gusto/embedded-api-v-2025-11-15/models/operations/submitinformationrequest' +} from '@gusto/embedded-api-v-2026-02-01/react-query/informationRequestsSubmit' +import type { RequiredQuestions } from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' +import { ResponseType } from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' +import { ResponseType as SubmitResponseType } from '@gusto/embedded-api-v-2026-02-01/models/operations/submitinformationrequest' import type { InformationRequestsContextInterface } from '../InformationRequestsComponents' import styles from './InformationRequestForm.module.scss' import { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/InformationRequests/InformationRequestList/InformationRequestList.tsx b/src/components/InformationRequests/InformationRequestList/InformationRequestList.tsx index 9429e73ba..0505dbd33 100644 --- a/src/components/InformationRequests/InformationRequestList/InformationRequestList.tsx +++ b/src/components/InformationRequests/InformationRequestList/InformationRequestList.tsx @@ -1,10 +1,10 @@ import { useTranslation } from 'react-i18next' -import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests' -import type { InformationRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' +import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/informationRequestsGetInformationRequests' +import type { InformationRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' import { InformationRequestStatus, InformationRequestType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' +} from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { useComponentDictionary, useI18n } from '@/i18n' diff --git a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.tsx b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.tsx index 48935d0f0..47b34a40f 100644 --- a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.tsx +++ b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.tsx @@ -1,7 +1,7 @@ import { createMachine } from 'robot3' import { useMachine } from 'react-robot' import { Suspense, useMemo, useRef, useState } from 'react' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' import { ConfirmWireDetailsBanner } from './ConfirmWireDetailsBanner' import { confirmWireDetailsMachine } from './confirmWireDetailsStateMachine' import { type ConfirmWireDetailsContextInterface } from './ConfirmWireDetailsComponents' diff --git a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.tsx b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.tsx index 2c7281d0d..f4cee7948 100644 --- a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.tsx +++ b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' import { useState, useEffect } from 'react' import type { ConfirmationAlert } from '../types' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx index 9814eaee3..3faa208f2 100644 --- a/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx +++ b/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx @@ -6,10 +6,10 @@ import { useIsMutating } from '@tanstack/react-query' import { useWireInRequestsSubmitMutation, mutationKeyWireInRequestsSubmit, -} from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsSubmit' -import { useWireInRequestsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsGet' -import type { PutWireInRequestsWireInRequestUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/putwireinrequestswireinrequestuuid' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' +} from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsSubmit' +import { useWireInRequestsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsGet' +import type { PutWireInRequestsWireInRequestUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/putwireinrequestswireinrequestuuid' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' import styles from './ConfirmWireDetailsForm.module.scss' import { Form as HtmlForm } from '@/components/Common/Form' import { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.tsx b/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.tsx index d2d80f6be..1e9559444 100644 --- a/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.tsx +++ b/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.tsx @@ -1,7 +1,7 @@ import { useMemo } from 'react' import { useTranslation } from 'react-i18next' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' import type { ConfirmWireDetailsContextInterface } from '../ConfirmWireDetailsComponents' import styles from './WireInstructions.module.scss' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Payroll/Dismissal/DismissalFlowComponents.tsx b/src/components/Payroll/Dismissal/DismissalFlowComponents.tsx index 39fbd9395..c6101df73 100644 --- a/src/components/Payroll/Dismissal/DismissalFlowComponents.tsx +++ b/src/components/Payroll/Dismissal/DismissalFlowComponents.tsx @@ -1,5 +1,5 @@ import { useMemo } from 'react' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' import { PayrollExecutionFlow, type PayrollExecutionFlowProps, diff --git a/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.test.tsx b/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.test.tsx index 93be663b2..3a1db8ad5 100644 --- a/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.test.tsx +++ b/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.test.tsx @@ -39,7 +39,7 @@ let mockPayPeriods: | Array> = defaultPayPeriods vi.mock( - '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetUnprocessedTerminationPeriods', + '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetUnprocessedTerminationPeriods', () => ({ usePaySchedulesGetUnprocessedTerminationPeriodsSuspense: () => ({ data: { @@ -49,7 +49,7 @@ vi.mock( }), ) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle', () => ({ usePayrollsCreateOffCycleMutation: () => ({ mutateAsync: mockCreateOffCyclePayroll, isPending: false, diff --git a/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.tsx b/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.tsx index 189e296b4..6d96845e7 100644 --- a/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.tsx +++ b/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.tsx @@ -1,9 +1,9 @@ import { useEffect, useMemo, useState } from 'react' -import { usePaySchedulesGetUnprocessedTerminationPeriodsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetUnprocessedTerminationPeriods' -import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle' -import type { UnprocessedTerminationPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/unprocessedterminationpayperiod' -import { OffCycleReason } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import { usePaySchedulesGetUnprocessedTerminationPeriodsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetUnprocessedTerminationPeriods' +import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle' +import type { UnprocessedTerminationPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/unprocessedterminationpayperiod' +import { OffCycleReason } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { useTranslation } from 'react-i18next' import { DismissalPayPeriodSelectionPresentation } from './DismissalPayPeriodSelectionPresentation' import { BaseComponent } from '@/components/Base/Base' diff --git a/src/components/Payroll/OffCycle/OffCycleFlowComponents.tsx b/src/components/Payroll/OffCycle/OffCycleFlowComponents.tsx index 2d1d94a47..c72df4270 100644 --- a/src/components/Payroll/OffCycle/OffCycleFlowComponents.tsx +++ b/src/components/Payroll/OffCycle/OffCycleFlowComponents.tsx @@ -1,5 +1,5 @@ import { useMemo } from 'react' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' import { OffCycleCreation } from '../OffCycleCreation' import { PayrollExecutionFlow, diff --git a/src/components/Payroll/OffCycleCreation/OffCycleCreation.stories.tsx b/src/components/Payroll/OffCycleCreation/OffCycleCreation.stories.tsx index 304f2b80b..ef1cd092e 100644 --- a/src/components/Payroll/OffCycleCreation/OffCycleCreation.stories.tsx +++ b/src/components/Payroll/OffCycleCreation/OffCycleCreation.stories.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { FormWrapper } from '../../../../.storybook/helpers/FormWrapper' import type { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import { OffCycleCreationPresentation } from './OffCycleCreationPresentation' diff --git a/src/components/Payroll/OffCycleCreation/OffCycleCreation.test.tsx b/src/components/Payroll/OffCycleCreation/OffCycleCreation.test.tsx index edac4c030..c980b752f 100644 --- a/src/components/Payroll/OffCycleCreation/OffCycleCreation.test.tsx +++ b/src/components/Payroll/OffCycleCreation/OffCycleCreation.test.tsx @@ -7,7 +7,7 @@ import { renderWithProviders } from '@/test-utils/renderWithProviders' const mockCreateOffCyclePayroll = vi.fn() -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: () => ({ data: { showEmployees: [ @@ -21,7 +21,7 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle', () => ({ usePayrollsCreateOffCycleMutation: () => ({ mutateAsync: mockCreateOffCyclePayroll, isPending: false, diff --git a/src/components/Payroll/OffCycleCreation/OffCycleCreation.tsx b/src/components/Payroll/OffCycleCreation/OffCycleCreation.tsx index 9f8c4d201..eab63f53e 100644 --- a/src/components/Payroll/OffCycleCreation/OffCycleCreation.tsx +++ b/src/components/Payroll/OffCycleCreation/OffCycleCreation.tsx @@ -3,13 +3,13 @@ import { FormProvider, useForm, type Resolver } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { z } from 'zod' import { useTranslation } from 'react-i18next' -import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle' +import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle' import { OffCycleReason as ApiOffCycleReason, WithholdingPayPeriod, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' -import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' +import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' import { OFF_CYCLE_REASON_DEFAULTS, type OffCycleReason } from '../OffCycleReasonSelection' import { createOffCyclePayPeriodDateFormSchema, diff --git a/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.stories.tsx b/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.stories.tsx index 5799a482c..477890c4e 100644 --- a/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.stories.tsx +++ b/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.stories.tsx @@ -1,5 +1,5 @@ import { Suspense, useState } from 'react' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import type { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import { OffCycleTaxWithholdingModal } from './OffCycleTaxWithholdingModal' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.tsx b/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.tsx index a3dd46b04..a9b35d442 100644 --- a/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.tsx +++ b/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.tsx @@ -1,7 +1,7 @@ import { useMemo, useRef } from 'react' import { FormProvider, useForm, useWatch } from 'react-hook-form' import { useTranslation } from 'react-i18next' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { WITHHOLDING_PAY_PERIOD_I18N_KEY } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import type { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import styles from './OffCycleTaxWithholdingModal.module.scss' diff --git a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.stories.tsx b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.stories.tsx index 98a6d310d..aacea3b08 100644 --- a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.stories.tsx +++ b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.stories.tsx @@ -1,5 +1,5 @@ import { Suspense, useState } from 'react' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { OffCycleTaxWithholdingModal } from '../OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal' import { OffCycleTaxWithholdingTable } from './OffCycleTaxWithholdingTable' import type { diff --git a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.test.tsx b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.test.tsx index 64d33fa7f..0c58b4a83 100644 --- a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.test.tsx +++ b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.test.tsx @@ -1,6 +1,6 @@ import { describe, expect, it, vi } from 'vitest' import { screen, waitFor } from '@testing-library/react' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { OffCycleTaxWithholdingTable } from './OffCycleTaxWithholdingTable' import type { OffCycleTaxWithholdingConfig, diff --git a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.ts b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.ts index be793b94f..fd0f1e54a 100644 --- a/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.ts +++ b/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.ts @@ -1,4 +1,4 @@ -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import type { WithholdingType } from '@/components/Payroll/OffCycleReasonSelection' /** @internal */ diff --git a/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx b/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx index 0199012fa..88222a843 100644 --- a/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx +++ b/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx @@ -1,10 +1,10 @@ import { useState, useCallback } from 'react' import { useTranslation } from 'react-i18next' import classNames from 'classnames' -import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers' -import { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesGet' -import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests' -import { InformationRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest' +import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetBlockers' +import { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/recoveryCasesGet' +import { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/informationRequestsGetInformationRequests' +import { InformationRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/informationrequest' import { getBlockerTranslationKeys } from '../payrollHelpers' import styles from './PayrollBlockerList.module.scss' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Payroll/PayrollBlocker/payrollHelpers.test.ts b/src/components/Payroll/PayrollBlocker/payrollHelpers.test.ts index 846a47138..76e8713f6 100644 --- a/src/components/Payroll/PayrollBlocker/payrollHelpers.test.ts +++ b/src/components/Payroll/PayrollBlocker/payrollHelpers.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { payrollSubmitHandler, parsePayrollBlockersFromError, diff --git a/src/components/Payroll/PayrollBlocker/payrollHelpers.ts b/src/components/Payroll/PayrollBlocker/payrollHelpers.ts index e6e1736d1..64fb4efac 100644 --- a/src/components/Payroll/PayrollBlocker/payrollHelpers.ts +++ b/src/components/Payroll/PayrollBlocker/payrollHelpers.ts @@ -1,5 +1,5 @@ -import { PayrollBlockersError } from '@gusto/embedded-api-v-2025-11-15/models/errors/payrollblockerserror' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { PayrollBlockersError } from '@gusto/embedded-api-v-2026-02-01/models/errors/payrollblockerserror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' function hasMetadataKey(metadata: unknown): metadata is { key: string } { return ( diff --git a/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.tsx b/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.tsx index 95d7b2f72..efd1c0cb4 100644 --- a/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.tsx +++ b/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.tsx @@ -1,16 +1,16 @@ import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' -import { payrollsCalculate } from '@gusto/embedded-api-v-2025-11-15/funcs/payrollsCalculate' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' -import type { PayrollProcessingRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollprocessingrequest' -import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollprocessingrequest' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' +import { payrollsCalculate } from '@gusto/embedded-api-v-2026-02-01/funcs/payrollsCalculate' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' +import type { PayrollProcessingRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollprocessingrequest' +import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollprocessingrequest' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import { useTranslation } from 'react-i18next' -import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsUpdate' -import { usePayrollsCalculateGrossUpMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCalculateGrossUp' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollUpdateEmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollupdate' -import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers' +import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsUpdate' +import { usePayrollsCalculateGrossUpMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCalculateGrossUp' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollUpdateEmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollupdate' +import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetBlockers' import { payrollSubmitHandler, type ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers' import { hasDirectDepositEmployees } from '../helpers' import { GrossUpModal } from '../GrossUpModal' diff --git a/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.test.tsx b/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.test.tsx index 24f873aab..2f5698787 100644 --- a/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.test.tsx +++ b/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.test.tsx @@ -1,11 +1,11 @@ import { expect, describe, it, vi } from 'vitest' import { screen, waitFor } from '@testing-library/react' -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import { type Employee, EmployeePaymentMethod1, -} from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import userEvent from '@testing-library/user-event' import type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers' import { PayrollCategory } from '../payrollTypes' diff --git a/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.tsx b/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.tsx index f466c2cbb..2e440ef9e 100644 --- a/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.tsx +++ b/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.tsx @@ -1,11 +1,11 @@ import type { ReactNode } from 'react' import { useRef } from 'react' -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import { Trans, useTranslation } from 'react-i18next' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' import { useFormatEmployeePayRate, getRegularHours, diff --git a/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.ts b/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.ts index 3abf74e70..b1c08d20d 100644 --- a/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.ts +++ b/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.ts @@ -1,14 +1,14 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' -import { useEmployeesList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' +import { useEmployeesList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' import { keepPreviousData, useQuery, useQueryClient } from '@tanstack/react-query' -import { usePaySchedulesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGet' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' -import { payrollsPrepare } from '@gusto/embedded-api-v-2025-11-15/funcs/payrollsPrepare' -import { employeesGet } from '@gusto/embedded-api-v-2025-11-15/funcs/employeesGet' -import type { EmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +import { usePaySchedulesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGet' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' +import { payrollsPrepare } from '@gusto/embedded-api-v-2026-02-01/funcs/payrollsPrepare' +import { employeesGet } from '@gusto/embedded-api-v-2026-02-01/funcs/employeesGet' +import type { EmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import type { PayrollCategory } from '../payrollTypes' import { derivePayrollCategory } from '../payrollTypes' import type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes' diff --git a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.stories.tsx b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.stories.tsx index fcd7521f4..486f8cd3b 100644 --- a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.stories.tsx +++ b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.stories.tsx @@ -1,6 +1,6 @@ import { fn } from 'storybook/test' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' import { PayrollEditEmployeePresentation } from './PayrollEditEmployeePresentation' export default { diff --git a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.tsx b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.tsx index 544d33a42..3ecb63ba2 100644 --- a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.tsx +++ b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.tsx @@ -1,8 +1,8 @@ -import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesGet' -import { useEmployeePaymentMethodsGetBankAccountsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeePaymentMethodsGetBankAccounts' -import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsUpdate' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollUpdateEmployeeCompensations } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollupdate' +import { useEmployeesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesGet' +import { useEmployeePaymentMethodsGetBankAccountsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeePaymentMethodsGetBankAccounts' +import { usePayrollsUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsUpdate' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollUpdateEmployeeCompensations } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollupdate' import { useMemo } from 'react' import { useQueryClient } from '@tanstack/react-query' import { usePreparedPayrollData } from '../usePreparedPayrollData' diff --git a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.test.tsx b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.test.tsx index 73d67310d..f7126fbb5 100644 --- a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.test.tsx +++ b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.test.tsx @@ -3,12 +3,12 @@ import { screen, waitFor } from '@testing-library/react' import { type Employee, EmployeePaymentMethod1, -} from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import { PayrollEmployeeCompensationsTypePaymentMethod as PaymentMethods } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import { PayrollEmployeeCompensationsTypePaymentMethod as PaymentMethods } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' import userEvent from '@testing-library/user-event' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import { PayrollEditEmployeePresentation } from './PayrollEditEmployeePresentation' import { PayrollCategory } from '@/components/Payroll/payrollTypes' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx index b12381d5e..6f37cbeae 100644 --- a/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx +++ b/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.tsx @@ -1,15 +1,15 @@ import { FormProvider, useFieldArray, useForm, useWatch } from 'react-hook-form' import { useMemo, useRef, useState } from 'react' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import type { PayrollEmployeeCompensationsTypeFixedCompensations as FixedCompensations, PayrollEmployeeCompensationsType, PayrollEmployeeCompensationsTypePaidTimeOff, PayrollEmployeeCompensationsTypeReimbursements as Reimbursement, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import { PayrollEmployeeCompensationsTypePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import { useTranslation } from 'react-i18next' import { z } from 'zod' import { zodResolver } from '@hookform/resolvers/zod' diff --git a/src/components/Payroll/PayrollEditEmployee/TimeOffField.test.tsx b/src/components/Payroll/PayrollEditEmployee/TimeOffField.test.tsx index dd1c03ecd..7a64761dc 100644 --- a/src/components/Payroll/PayrollEditEmployee/TimeOffField.test.tsx +++ b/src/components/Payroll/PayrollEditEmployee/TimeOffField.test.tsx @@ -5,8 +5,8 @@ import { Suspense } from 'react' import { type Employee, EmployeePaymentMethod1, -} from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' import { TimeOffField } from './TimeOffField' import type { PayrollEditEmployeeFormValues } from './PayrollEditEmployeePresentation' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Payroll/PayrollEditEmployee/TimeOffField.tsx b/src/components/Payroll/PayrollEditEmployee/TimeOffField.tsx index 3f9bda9f5..9d9a3f81c 100644 --- a/src/components/Payroll/PayrollEditEmployee/TimeOffField.tsx +++ b/src/components/Payroll/PayrollEditEmployee/TimeOffField.tsx @@ -1,8 +1,8 @@ import { useId } from 'react' import { useWatch, useFormContext } from 'react-hook-form' import { useTranslation } from 'react-i18next' -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { PayrollEmployeeCompensationsTypePaidTimeOff } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' import type { PayrollEditEmployeeFormValues } from './PayrollEditEmployeePresentation' import { Flex, TextInputField } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.tsx b/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.tsx index 730c99d14..a284bef8e 100644 --- a/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.tsx +++ b/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react' import { createMachine } from 'robot3' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import type { ConfirmWireDetailsComponentType } from '../ConfirmWireDetails/ConfirmWireDetails' import { PayrollConfigurationContextual, diff --git a/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.ts b/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.ts index f46d76a33..7e1919198 100644 --- a/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.ts +++ b/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.ts @@ -1,5 +1,5 @@ import { transition, reduce, state, guard } from 'robot3' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import type { PayrollFlowAlert } from '../PayrollFlow/PayrollFlowComponents' import { PayrollConfigurationContextual, diff --git a/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.tsx b/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.tsx index b1c89ccaa..9ee7e7421 100644 --- a/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.tsx +++ b/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.tsx @@ -1,5 +1,5 @@ import { Suspense } from 'react' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' import { PayrollExecutionFlow } from '../PayrollExecutionFlow/PayrollExecutionFlow' import { isDismissalPayroll } from '../helpers' import type { PayrollFlowContextInterface } from './PayrollFlowComponents' diff --git a/src/components/Payroll/PayrollFlow/PayrollFlowComponents.tsx b/src/components/Payroll/PayrollFlow/PayrollFlowComponents.tsx index 87802439a..f7cc8208d 100644 --- a/src/components/Payroll/PayrollFlow/PayrollFlowComponents.tsx +++ b/src/components/Payroll/PayrollFlow/PayrollFlowComponents.tsx @@ -1,6 +1,6 @@ import type { ReactNode } from 'react' import { useTranslation } from 'react-i18next' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import { PayrollLanding } from '../PayrollLanding/PayrollLanding' import { PayrollConfiguration } from '../PayrollConfiguration/PayrollConfiguration' import { PayrollOverview } from '../PayrollOverview/PayrollOverview' diff --git a/src/components/Payroll/PayrollFlow/TransitionFlowContextual.tsx b/src/components/Payroll/PayrollFlow/TransitionFlowContextual.tsx index 36fbc310a..d258cc4c5 100644 --- a/src/components/Payroll/PayrollFlow/TransitionFlowContextual.tsx +++ b/src/components/Payroll/PayrollFlow/TransitionFlowContextual.tsx @@ -1,9 +1,9 @@ import { useMemo, useRef } from 'react' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' import { ProcessingStatuses, QueryParamPayrollTypes, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrolls' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrolls' import { TransitionFlow } from '../Transition/TransitionFlow' import type { PayrollFlowContextInterface } from './PayrollFlowComponents' import { useFlow } from '@/components/Flow/useFlow' diff --git a/src/components/Payroll/PayrollFlow/payrollStateMachine.ts b/src/components/Payroll/PayrollFlow/payrollStateMachine.ts index 823c87cfc..383ed4f8f 100644 --- a/src/components/Payroll/PayrollFlow/payrollStateMachine.ts +++ b/src/components/Payroll/PayrollFlow/payrollStateMachine.ts @@ -1,5 +1,5 @@ import { state, transition, reduce, guard } from 'robot3' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' import type { PayrollExecutionInitialState } from '../PayrollExecutionFlow' import { PayrollLandingContextual, diff --git a/src/components/Payroll/PayrollHistory/PayrollHistory.stories.tsx b/src/components/Payroll/PayrollHistory/PayrollHistory.stories.tsx index a35f3294e..b253d0b27 100644 --- a/src/components/Payroll/PayrollHistory/PayrollHistory.stories.tsx +++ b/src/components/Payroll/PayrollHistory/PayrollHistory.stories.tsx @@ -1,7 +1,7 @@ import { useState, useCallback } from 'react' import { fn } from 'storybook/test' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { WireInRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { WireInRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { PayrollHistoryPresentation } from './PayrollHistoryPresentation' import type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes' import type { UseDateRangeFilterResult } from '@/hooks/useDateRangeFilter/useDateRangeFilter' diff --git a/src/components/Payroll/PayrollHistory/PayrollHistory.tsx b/src/components/Payroll/PayrollHistory/PayrollHistory.tsx index e6a5d0981..ab4ba6d50 100644 --- a/src/components/Payroll/PayrollHistory/PayrollHistory.tsx +++ b/src/components/Payroll/PayrollHistory/PayrollHistory.tsx @@ -1,14 +1,14 @@ import { useState, useCallback } from 'react' -import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' -import { usePayrollsCancelMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCancel' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' +import { usePayrollsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' +import { usePayrollsCancelMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCancel' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' import { DateFilterBy, ProcessingStatuses, QueryParamPayrollTypes, SortOrder, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrolls' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrolls' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import { PayrollHistoryPresentation } from './PayrollHistoryPresentation' import type { BaseComponentInterface } from '@/components/Base/Base' import { BaseComponent } from '@/components/Base/Base' diff --git a/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.tsx b/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.tsx index c568878d4..c9dd23e3b 100644 --- a/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.tsx +++ b/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.tsx @@ -1,6 +1,6 @@ import { useTranslation } from 'react-i18next' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { WireInRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { WireInRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { PayrollStatusBadges } from '../PayrollStatusBadges' import { getPayrollTypeLabel, calculateTotalPayroll, canCancelPayroll } from '../helpers' import type { MenuItem } from '@/components/Common/UI/Menu/MenuTypes' diff --git a/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.tsx b/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.tsx index 7558985f6..bf4968bff 100644 --- a/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.tsx +++ b/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' import { useTranslation } from 'react-i18next' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' -import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' +import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetBlockers' import { PayrollHistory } from '../PayrollHistory/PayrollHistory' import { PayrollList } from '../PayrollList/PayrollList' import { PayrollOverview } from '../PayrollOverview/PayrollOverview' diff --git a/src/components/Payroll/PayrollList/PayrollList.tsx b/src/components/Payroll/PayrollList/PayrollList.tsx index ebb34de0e..3e67885a4 100644 --- a/src/components/Payroll/PayrollList/PayrollList.tsx +++ b/src/components/Payroll/PayrollList/PayrollList.tsx @@ -3,18 +3,18 @@ import { useQueryClient } from '@tanstack/react-query' import { usePayrollsListSuspense, invalidateAllPayrollsList, -} from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsList' -import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetAll' -import { usePayrollsSkipMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsSkip' -import { usePayrollsDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsDelete' -import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers' -import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsList' -import { PayrollType } from '@gusto/embedded-api-v-2025-11-15/models/operations/postcompaniespayrollskipcompanyuuid' +} from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsList' +import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetAll' +import { usePayrollsSkipMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsSkip' +import { usePayrollsDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsDelete' +import { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetBlockers' +import { useWireInRequestsListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsList' +import { PayrollType } from '@gusto/embedded-api-v-2026-02-01/models/operations/postcompaniespayrollskipcompanyuuid' import { ProcessingStatuses, QueryParamPayrollTypes, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrolls' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrolls' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers' import { useUnprocessedTransitionPayPeriods } from '../useUnprocessedTransitionPayPeriods' import { PayrollListPresentation } from './PayrollListPresentation' diff --git a/src/components/Payroll/PayrollList/PayrollListPresentation.test.tsx b/src/components/Payroll/PayrollList/PayrollListPresentation.test.tsx index b1ea00ee7..de0fbf302 100644 --- a/src/components/Payroll/PayrollList/PayrollListPresentation.test.tsx +++ b/src/components/Payroll/PayrollList/PayrollListPresentation.test.tsx @@ -1,9 +1,9 @@ import { describe, expect, it, vi } from 'vitest' import { screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers' import type { PayrollType } from './types' import { PayrollListPresentation } from './PayrollListPresentation' diff --git a/src/components/Payroll/PayrollList/PayrollListPresentation.tsx b/src/components/Payroll/PayrollList/PayrollListPresentation.tsx index 446618ac6..4c11b967c 100644 --- a/src/components/Payroll/PayrollList/PayrollListPresentation.tsx +++ b/src/components/Payroll/PayrollList/PayrollListPresentation.tsx @@ -1,7 +1,7 @@ -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import { OffCycleReasonType } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { WireInRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import { OffCycleReasonType } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import type { WireInRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { useState, useRef, useMemo } from 'react' import { useTranslation } from 'react-i18next' import type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers' diff --git a/src/components/Payroll/PayrollList/PayrollStatusShowcase.stories.tsx b/src/components/Payroll/PayrollList/PayrollStatusShowcase.stories.tsx index c185fed6a..c90527c63 100644 --- a/src/components/Payroll/PayrollList/PayrollStatusShowcase.stories.tsx +++ b/src/components/Payroll/PayrollList/PayrollStatusShowcase.stories.tsx @@ -1,6 +1,6 @@ import { fn } from 'storybook/test' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { WireInRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { WireInRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { PayrollListPresentation } from './PayrollListPresentation' import type { UseDateRangeFilterResult } from '@/hooks/useDateRangeFilter/useDateRangeFilter' diff --git a/src/components/Payroll/PayrollOverview/PayrollOverview.test.tsx b/src/components/Payroll/PayrollOverview/PayrollOverview.test.tsx index 4d6763a64..b9b9c612d 100644 --- a/src/components/Payroll/PayrollOverview/PayrollOverview.test.tsx +++ b/src/components/Payroll/PayrollOverview/PayrollOverview.test.tsx @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' import { screen, waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { PayrollShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import { OffCycleReasonType } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +import type { PayrollShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import { OffCycleReasonType } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import { PayrollOverview } from './PayrollOverview' import { componentEvents } from '@/shared/constants' import { renderWithProviders } from '@/test-utils/renderWithProviders' @@ -64,7 +64,7 @@ const basePayrollData: PayrollShow = { let mockPayrollData = { ...basePayrollData } -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet', () => ({ usePayrollsGet: () => ({ data: { payrollShow: mockPayrollData, @@ -78,27 +78,27 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet', () => ({ }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsSubmit', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/payrollsSubmit', () => ({ usePayrollsSubmitMutation: () => ({ mutateAsync: mockSubmitPayroll, isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/payrollsCancel', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/payrollsCancel', () => ({ usePayrollsCancelMutation: () => ({ mutateAsync: vi.fn(), isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet', () => ({ useBankAccountsGetSuspense: () => ({ data: { companyBankAccounts: [{ hiddenAccountNumber: '****1234' }] }, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsGet', () => ({ useWireInRequestsGet: () => ({ data: undefined }), })) @@ -109,7 +109,7 @@ vi.mock('@/hooks/useCompanyPaymentSpeed', () => ({ }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/_context', async importOriginal => { +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/_context', async importOriginal => { const actual = await importOriginal() return { ...(actual as Record), @@ -117,7 +117,7 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/_context', async importOri } }) -vi.mock('@gusto/embedded-api-v-2025-11-15/funcs/payrollsGetPayStub', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/funcs/payrollsGetPayStub', () => ({ payrollsGetPayStub: vi.fn(), })) diff --git a/src/components/Payroll/PayrollOverview/PayrollOverview.tsx b/src/components/Payroll/PayrollOverview/PayrollOverview.tsx index 3ef260fcb..90827e980 100644 --- a/src/components/Payroll/PayrollOverview/PayrollOverview.tsx +++ b/src/components/Payroll/PayrollOverview/PayrollOverview.tsx @@ -1,19 +1,19 @@ -import { usePayrollsSubmitMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsSubmit' -import { usePayrollsCancelMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCancel' -import { usePayrollsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' +import { usePayrollsSubmitMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsSubmit' +import { usePayrollsCancelMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCancel' +import { usePayrollsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' import { keepPreviousData } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' -import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/bankAccountsGet' -import { useWireInRequestsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/wireInRequestsGet' +import { useBankAccountsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/bankAccountsGet' +import { useWireInRequestsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/wireInRequestsGet' import { useEffect, useState } from 'react' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' -import { payrollsGetPayStub } from '@gusto/embedded-api-v-2025-11-15/funcs/payrollsGetPayStub' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' +import { payrollsGetPayStub } from '@gusto/embedded-api-v-2026-02-01/funcs/payrollsGetPayStub' import { useErrorBoundary } from 'react-error-boundary' -import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' +import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' import type { PayrollCreditBlockerType, PayrollCreditBlockerTypeUnblockOptions, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollcreditblockertype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollcreditblockertype' import type { PayrollFlowAlert } from '../PayrollFlow/PayrollFlowComponents' import { ConfirmWireDetails, diff --git a/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.test.tsx b/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.test.tsx index a8d25d39c..3e967b690 100644 --- a/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.test.tsx +++ b/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.test.tsx @@ -4,8 +4,8 @@ import userEvent from '@testing-library/user-event' import { type PayrollShow, OffCycleReasonType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' import { PayrollOverviewPresentation } from './PayrollOverviewPresentation' import { PayrollOverviewStatus } from './PayrollOverviewTypes' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.tsx b/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.tsx index bc352b259..f554e6a75 100644 --- a/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.tsx +++ b/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.tsx @@ -2,15 +2,15 @@ import { Trans, useTranslation } from 'react-i18next' import type { EmployeeCompensations, PayrollShow, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype' -import type { CompanyBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccount' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype' +import type { CompanyBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccount' import { useState, useRef } from 'react' import type { PayrollSubmissionBlockerType, UnblockOptions, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' -import type { PaymentSpeed } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentconfigs' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' +import type { PaymentSpeed } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentconfigs' import type { PayrollFlowAlert } from '../PayrollFlow/PayrollFlowComponents' import { calculateTotalPayroll, diff --git a/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.tsx b/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.tsx index 3c6a1c8d0..66f7a8019 100644 --- a/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.tsx +++ b/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.tsx @@ -2,8 +2,8 @@ import { useTranslation } from 'react-i18next' import type { PayrollSubmissionBlockerType, UnblockOptions, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' -import type { PaymentSpeed } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentconfigs' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' +import type { PaymentSpeed } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentconfigs' import { Flex } from '@/components/Common' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { useDateFormatter } from '@/hooks/useDateFormatter' diff --git a/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.tsx b/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.tsx index 0226e2aa8..b4e33de51 100644 --- a/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.tsx +++ b/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.tsx @@ -1,4 +1,4 @@ -import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollsubmissionblockertype' +import type { PayrollSubmissionBlockerType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollsubmissionblockertype' import { useTranslation } from 'react-i18next' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' diff --git a/src/components/Payroll/PayrollReceipts/PayrollReceipts.stories.tsx b/src/components/Payroll/PayrollReceipts/PayrollReceipts.stories.tsx index 7e2040e2f..15a49d178 100644 --- a/src/components/Payroll/PayrollReceipts/PayrollReceipts.stories.tsx +++ b/src/components/Payroll/PayrollReceipts/PayrollReceipts.stories.tsx @@ -1,4 +1,4 @@ -import type { PayrollReceipt } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollreceipt' +import type { PayrollReceipt } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollreceipt' import { PayrollReceiptsPresentation } from './PayrollReceiptsPresentation' export default { diff --git a/src/components/Payroll/PayrollReceipts/PayrollReceipts.tsx b/src/components/Payroll/PayrollReceipts/PayrollReceipts.tsx index c2928ddb9..fb8b9a7b0 100644 --- a/src/components/Payroll/PayrollReceipts/PayrollReceipts.tsx +++ b/src/components/Payroll/PayrollReceipts/PayrollReceipts.tsx @@ -1,4 +1,4 @@ -import { usePayrollsGetReceiptSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetReceipt' +import { usePayrollsGetReceiptSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGetReceipt' import { PayrollReceiptsPresentation } from './PayrollReceiptsPresentation' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' import { useComponentDictionary, useI18n } from '@/i18n' diff --git a/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.test.tsx b/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.test.tsx index 4709fa6cc..4df4ffd04 100644 --- a/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.test.tsx +++ b/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.test.tsx @@ -1,7 +1,7 @@ import { Suspense } from 'react' import { expect, describe, it } from 'vitest' import { screen, waitFor } from '@testing-library/react' -import type { PayrollReceipt } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollreceipt' +import type { PayrollReceipt } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollreceipt' import { PayrollReceiptsPresentation } from './PayrollReceiptsPresentation' import { renderWithProviders } from '@/test-utils/renderWithProviders' import { mockUseContainerBreakpoints } from '@/test/setup' diff --git a/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.tsx b/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.tsx index f9245391d..f918fff07 100644 --- a/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.tsx +++ b/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.tsx @@ -5,7 +5,7 @@ import type { PayrollReceipt, Taxes as TaxBreakdownItem, PayrollReceiptEmployeeCompensations as EmployeeBreakdownItem, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollreceipt' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollreceipt' import styles from './PayrollReceiptsPresentation.module.scss' import { DataView, DataTable, Flex } from '@/components/Common' import type { DescriptionListItem } from '@/components/Common/UI/DescriptionList/DescriptionListTypes' diff --git a/src/components/Payroll/PayrollStatusBadges/payrollStatusConfig.ts b/src/components/Payroll/PayrollStatusBadges/payrollStatusConfig.ts index e5eeaae26..711768b26 100644 --- a/src/components/Payroll/PayrollStatusBadges/payrollStatusConfig.ts +++ b/src/components/Payroll/PayrollStatusBadges/payrollStatusConfig.ts @@ -1,5 +1,5 @@ -import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollprocessingrequest' -import { WireInRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/wireinrequest' +import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollprocessingrequest' +import { WireInRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/wireinrequest' import { normalizeToDate, getHoursUntil, getDaysUntil } from '@/helpers/dateFormatting' /** @internal */ diff --git a/src/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.ts b/src/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.ts index 2176592d2..c7c6c0ed9 100644 --- a/src/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.ts +++ b/src/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.ts @@ -1,6 +1,6 @@ import { expect, describe, it } from 'vitest' import { getPayrollStatusBadges } from './usePayrollStatusBadges' -import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollprocessingrequest' +import { PayrollProcessingRequestStatus } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollprocessingrequest' describe('usePayrollStatusBadges', () => { describe('processing request statuses (highest priority)', () => { diff --git a/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx b/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx index 5c00d6edb..1e48becad 100644 --- a/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx +++ b/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx @@ -2,8 +2,8 @@ import { useTranslation } from 'react-i18next' import type { RecoveryCase, RecoveryCaseStatus, -} from '@gusto/embedded-api-v-2025-11-15/models/components/recoverycase' -import { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesGet' +} from '@gusto/embedded-api-v-2026-02-01/models/components/recoverycase' +import { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/recoveryCasesGet' import { useRecoveryCaseErrorCode } from '../useRecoveryCaseErrorCode' import styles from './RecoveryCasesList.module.scss' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx b/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx index 9f7371490..ecc3e30cd 100644 --- a/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx +++ b/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx @@ -3,8 +3,8 @@ import { useIsMutating } from '@tanstack/react-query' import { useRecoveryCasesRedebitMutation, mutationKeyRecoveryCasesRedebit, -} from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesRedebit' -import { useRecoveryCasesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesGet' +} from '@gusto/embedded-api-v-2026-02-01/react-query/recoveryCasesRedebit' +import { useRecoveryCasesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/recoveryCasesGet' import type { RecoveryCasesContextInterface } from '../RecoveryCasesComponents' import { useRecoveryCaseErrorCode } from '../useRecoveryCaseErrorCode' import { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/Payroll/Transition/TransitionFlowComponents.tsx b/src/components/Payroll/Transition/TransitionFlowComponents.tsx index 2aebc07b7..a331fd39c 100644 --- a/src/components/Payroll/Transition/TransitionFlowComponents.tsx +++ b/src/components/Payroll/Transition/TransitionFlowComponents.tsx @@ -1,5 +1,5 @@ import { useMemo } from 'react' -import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGet' +import { usePayrollsGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsGet' import { PayrollExecutionFlow, type PayrollExecutionFlowProps, diff --git a/src/components/Payroll/TransitionCreation/TransitionCreation.stories.tsx b/src/components/Payroll/TransitionCreation/TransitionCreation.stories.tsx index 324ff86ed..38d5464c0 100644 --- a/src/components/Payroll/TransitionCreation/TransitionCreation.stories.tsx +++ b/src/components/Payroll/TransitionCreation/TransitionCreation.stories.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +import { WithholdingPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { FormWrapper } from '../../../../.storybook/helpers/FormWrapper' import type { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import { TransitionCreationPresentation } from './TransitionCreationPresentation' diff --git a/src/components/Payroll/TransitionCreation/TransitionCreation.tsx b/src/components/Payroll/TransitionCreation/TransitionCreation.tsx index d8f83aa3b..3da0c817c 100644 --- a/src/components/Payroll/TransitionCreation/TransitionCreation.tsx +++ b/src/components/Payroll/TransitionCreation/TransitionCreation.tsx @@ -2,13 +2,13 @@ import { useCallback, useMemo, useState } from 'react' import { FormProvider, useForm } from 'react-hook-form' import { zodResolver } from '@hookform/resolvers/zod' import { useTranslation } from 'react-i18next' -import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsCreateOffCycle' +import { usePayrollsCreateOffCycleMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsCreateOffCycle' import { OffCycleReason, WithholdingPayPeriod, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' -import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetAll' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' +import { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetAll' import { useOffCyclePayPeriodDateValidation } from '../OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation' import type { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes' import type { TransitionCreationProps, TransitionCreationFormData } from './TransitionCreationTypes' diff --git a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.stories.tsx b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.stories.tsx index 9b144023a..f793d720f 100644 --- a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.stories.tsx +++ b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.stories.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' import { fn } from 'storybook/test' -import type { PayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payperiod' +import type { PayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payperiod' import { TransitionPayrollAlertPresentation } from './TransitionPayrollAlertPresentation' import { useI18n } from '@/i18n' diff --git a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.tsx b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.tsx index 18bdbeb77..f2f04a833 100644 --- a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.tsx +++ b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.tsx @@ -1,8 +1,8 @@ import { useMemo, useState, useCallback, useEffect } from 'react' -import { usePaySchedulesGetAll } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetAll' -import { usePayrollsSkipMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsSkip' -import { PayrollType } from '@gusto/embedded-api-v-2025-11-15/models/operations/postcompaniespayrollskipcompanyuuid' -import type { PayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payperiod' +import { usePaySchedulesGetAll } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetAll' +import { usePayrollsSkipMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsSkip' +import { PayrollType } from '@gusto/embedded-api-v-2026-02-01/models/operations/postcompaniespayrollskipcompanyuuid' +import type { PayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payperiod' import { useUnprocessedTransitionPayPeriods } from '../useUnprocessedTransitionPayPeriods' import { TransitionPayrollAlertPresentation, diff --git a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.test.tsx b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.test.tsx index 29a4c0d55..8f7b3b795 100644 --- a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.test.tsx +++ b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.test.tsx @@ -2,7 +2,7 @@ import { Suspense } from 'react' import { describe, expect, it, vi } from 'vitest' import { screen } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import type { PayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payperiod' +import type { PayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payperiod' import { TransitionPayrollAlertPresentation } from './TransitionPayrollAlertPresentation' import { renderWithProviders } from '@/test-utils/renderWithProviders' diff --git a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.tsx b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.tsx index 79f740e13..d53186bfb 100644 --- a/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.tsx +++ b/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' import { useTranslation } from 'react-i18next' -import type { PayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payperiod' +import type { PayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payperiod' import { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext' import { Flex } from '@/components/Common/Flex/Flex' import { useI18n } from '@/i18n' diff --git a/src/components/Payroll/helpers.test.ts b/src/components/Payroll/helpers.test.ts index 4647b0268..3fa402504 100644 --- a/src/components/Payroll/helpers.test.ts +++ b/src/components/Payroll/helpers.test.ts @@ -17,24 +17,24 @@ import { PayrollCategory } from './payrollTypes' import { type Employee, EmployeePaymentMethod1, -} from '@gusto/embedded-api-v-2025-11-15/models/components/employee' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +} from '@gusto/embedded-api-v-2026-02-01/models/components/employee' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import type { EmployeeCompensations, PayrollShowPaidTimeOff, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' -import { PayScheduleFrequency } from '@gusto/embedded-api-v-2025-11-15/models/components/payschedulefrequency' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' +import { PayScheduleFrequency } from '@gusto/embedded-api-v-2026-02-01/models/components/payschedulefrequency' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' import type { TFunction } from 'i18next' -import { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job.js' +import { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job.js' import { type PayrollEmployeeCompensationsTypeFixedCompensations as FixedCompensations, type PayrollEmployeeCompensationsTypeHourlyCompensations as HourlyCompensations, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype.js' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype.js' describe('Payroll helpers', () => { describe('formatEmployeePayRate', () => { diff --git a/src/components/Payroll/helpers.ts b/src/components/Payroll/helpers.ts index a9e14975a..1769f387a 100644 --- a/src/components/Payroll/helpers.ts +++ b/src/components/Payroll/helpers.ts @@ -1,24 +1,24 @@ -import type { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee' +import type { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee' import { type PayrollShowFixedCompensations, OffCycleReasonType, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import type { PayrollEmployeeCompensationsTypeFixedCompensations as FixedCompensations, PayrollEmployeeCompensationsTypeReimbursements as Reimbursement, -} from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { PayrollUpdateReimbursements } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollupdate' -import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollfixedcompensationtypestype' +} from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { PayrollUpdateReimbursements } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollupdate' +import type { PayrollFixedCompensationTypesType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollfixedcompensationtypestype' import { useCallback } from 'react' import type { TFunction } from 'i18next' import { useTranslation } from 'react-i18next' -import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' +import type { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' import type { Compensation, MinimumWages, -} from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollemployeecompensationstype' -import type { Payroll } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +} from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import type { PayrollEmployeeCompensationsType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollemployeecompensationstype' +import type { Payroll } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' import type { PayrollType } from './PayrollList/types' import { PayrollCategory, isOffCyclePayroll } from './payrollTypes' import { formatPayRate } from '@/helpers/formattedStrings' diff --git a/src/components/Payroll/payrollTypes.ts b/src/components/Payroll/payrollTypes.ts index 25bc14c2e..d67089741 100644 --- a/src/components/Payroll/payrollTypes.ts +++ b/src/components/Payroll/payrollTypes.ts @@ -1,4 +1,4 @@ -import { OffCycleReasonType } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' +import { OffCycleReasonType } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' /** * Enum-like map of payroll categories combining `Regular`, `External`, and every off-cycle reason. diff --git a/src/components/Payroll/usePreparedPayrollData.ts b/src/components/Payroll/usePreparedPayrollData.ts index 300900fe8..091042b3c 100644 --- a/src/components/Payroll/usePreparedPayrollData.ts +++ b/src/components/Payroll/usePreparedPayrollData.ts @@ -1,10 +1,9 @@ import { useState, useEffect, useCallback, useRef, useMemo } from 'react' -import { usePayrollsPrepareMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsPrepare' -import { usePaySchedulesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGet' -import type { PayrollPrepared } from '@gusto/embedded-api-v-2025-11-15/models/components/payroll' -import type { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow' -import type { QueryParamSortBy } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1companiescompanyidpayrollspayrollidprepare' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { usePayrollsPrepareMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/payrollsPrepare' +import { usePaySchedulesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGet' +import type { PayrollPrepared } from '@gusto/embedded-api-v-2026-02-01/models/components/payroll' +import type { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { useBase } from '../Base' import { retryAsync } from '@/helpers/retryAsync' @@ -12,7 +11,7 @@ interface UsePreparedPayrollDataParams { companyId: string payrollId: string employeeUuids?: string[] - sortBy?: QueryParamSortBy + sortBy?: string onDataReady?: (preparedPayroll: PayrollPrepared) => void } diff --git a/src/components/Payroll/useUnprocessedTransitionPayPeriods.ts b/src/components/Payroll/useUnprocessedTransitionPayPeriods.ts index 8e9d95291..208a9464c 100644 --- a/src/components/Payroll/useUnprocessedTransitionPayPeriods.ts +++ b/src/components/Payroll/useUnprocessedTransitionPayPeriods.ts @@ -1,8 +1,8 @@ import { useMemo } from 'react' -import { usePaySchedulesGetPayPeriodsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/paySchedulesGetPayPeriods' -import { PayrollTypes } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayperiods' -import type { PayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payperiod' -import { RFCDate } from '@gusto/embedded-api-v-2025-11-15/types/rfcdate' +import { usePaySchedulesGetPayPeriodsSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/paySchedulesGetPayPeriods' +import { PayrollTypes } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayperiods' +import type { PayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payperiod' +import { RFCDate } from '@gusto/embedded-api-v-2026-02-01/types/rfcdate' const LOOK_AHEAD_DAYS = 90 diff --git a/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.tsx b/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.tsx index 89cdf69ba..8f4029ac8 100644 --- a/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.tsx +++ b/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.tsx @@ -4,9 +4,9 @@ import { useQueryClient } from '@tanstack/react-query' import { useHolidayPayPoliciesGetSuspense, invalidateAllHolidayPayPoliciesGet, -} from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' -import { useHolidayPayPoliciesRemoveEmployeesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesRemoveEmployees' -import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' +} from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' +import { useHolidayPayPoliciesRemoveEmployeesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesRemoveEmployees' +import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' import { getDefaultHolidayItems } from '../shared/holidayHelpers' import { HolidayPolicyDetailPresentation } from './HolidayPolicyDetailPresentation' import type { HolidayPolicyDetailEmployee } from './HolidayPolicyDetailTypes' diff --git a/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.test.tsx b/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.test.tsx index a00b99a5f..5490ac087 100644 --- a/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.test.tsx +++ b/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.test.tsx @@ -3,7 +3,7 @@ import { render, screen, waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' import { http, HttpResponse } from 'msw' import { QueryClient } from '@tanstack/react-query' -import { queryKeyHolidayPayPoliciesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' +import { queryKeyHolidayPayPoliciesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' import { HolidaySelectionForm } from './HolidaySelectionForm' import { server } from '@/test/mocks/server' import { componentEvents } from '@/shared/constants' diff --git a/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.tsx b/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.tsx index f557930d5..4c3fdce30 100644 --- a/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.tsx +++ b/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.tsx @@ -1,15 +1,15 @@ import { useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { useQueryClient } from '@tanstack/react-query' -import { useHolidayPayPoliciesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesCreate' +import { useHolidayPayPoliciesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesCreate' import { useHolidayPayPoliciesGetSuspense, queryKeyHolidayPayPoliciesGet, invalidateAllHolidayPayPoliciesGet, type HolidayPayPoliciesGetQueryData, -} from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' -import { useHolidayPayPoliciesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesUpdate' -import type { HolidayPayPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/holidaypaypolicy' +} from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' +import { useHolidayPayPoliciesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesUpdate' +import type { HolidayPayPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/holidaypaypolicy' import { getDefaultHolidayItems, buildFederalHolidaysPayload, diff --git a/src/components/TimeOff/PolicyList/PolicyList.tsx b/src/components/TimeOff/PolicyList/PolicyList.tsx index c208b01e2..9ce86a748 100644 --- a/src/components/TimeOff/PolicyList/PolicyList.tsx +++ b/src/components/TimeOff/PolicyList/PolicyList.tsx @@ -4,16 +4,16 @@ import { useQueryClient } from '@tanstack/react-query' import { useTimeOffPoliciesGetAllSuspense, invalidateAllTimeOffPoliciesGetAll, -} from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGetAll' -import { useTimeOffPoliciesDeactivateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesDeactivate' -import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' +} from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGetAll' +import { useTimeOffPoliciesDeactivateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesDeactivate' +import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' import { useHolidayPayPoliciesGet, invalidateAllHolidayPayPoliciesGet, -} from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' -import { useHolidayPayPoliciesDeleteMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesDelete' -import type { TimeOffPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +} from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' +import { useHolidayPayPoliciesDeleteMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesDelete' +import type { TimeOffPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { PolicyListPresentation } from './PolicyListPresentation' import type { PolicyListItem } from './PolicyListTypes' import { isListedTimeOffPolicyType } from '@/components/TimeOff/TimeOffFlow/timeOffPolicyTypes' diff --git a/src/components/TimeOff/PolicySettings/PolicySettings.test.tsx b/src/components/TimeOff/PolicySettings/PolicySettings.test.tsx index dc5fa358b..b3b084549 100644 --- a/src/components/TimeOff/PolicySettings/PolicySettings.test.tsx +++ b/src/components/TimeOff/PolicySettings/PolicySettings.test.tsx @@ -1,7 +1,7 @@ import { describe, expect, it, vi, beforeEach } from 'vitest' import { screen, waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { PolicySettings } from './PolicySettings' import { renderWithProviders } from '@/test-utils/renderWithProviders' import { componentEvents } from '@/shared/constants' @@ -21,13 +21,13 @@ const basePolicyData: Record = { let mockPolicyData: Record = { ...basePolicyData } -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet', () => ({ useTimeOffPoliciesGetSuspense: () => ({ data: { timeOffPolicy: mockPolicyData }, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate', () => ({ useTimeOffPoliciesUpdateMutation: () => ({ mutateAsync: mockUpdateTimeOffPolicy, isPending: false, @@ -294,7 +294,7 @@ describe('PolicySettings container', () => { mockPolicyData = { ...basePolicyData, accrualMethod: 'per_calendar_year' } const { UnprocessableEntityError } = - await import('@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror') + await import('@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror') const duplicateMessage = 'Balance must be less than or equal to max balance (10.0)' const apiError = new UnprocessableEntityError( diff --git a/src/components/TimeOff/PolicySettings/PolicySettings.tsx b/src/components/TimeOff/PolicySettings/PolicySettings.tsx index 7c705e56d..649b52437 100644 --- a/src/components/TimeOff/PolicySettings/PolicySettings.tsx +++ b/src/components/TimeOff/PolicySettings/PolicySettings.tsx @@ -1,8 +1,8 @@ -import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet' -import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate' -import type { PutV1TimeOffPoliciesTimeOffPolicyUuidRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1timeoffpoliciestimeoffpolicyuuid' -import type { TimeOffPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet' +import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate' +import type { PutV1TimeOffPoliciesTimeOffPolicyUuidRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1timeoffpoliciestimeoffpolicyuuid' +import type { TimeOffPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { useQueryClient } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' import { PolicySettingsPresentation } from './PolicySettingsPresentation' @@ -151,7 +151,7 @@ function Root({ policyId, mode }: PolicySettingsProps) { }) void queryClient.invalidateQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'timeOffPolicies', 'get'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'timeOffPolicies', 'get'], }) onEvent(componentEvents.TIME_OFF_POLICY_SETTINGS_DONE, timeOffPolicy) } catch (err) { diff --git a/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.tsx b/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.tsx index f4b116a96..e28f73968 100644 --- a/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.tsx +++ b/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.tsx @@ -1,4 +1,4 @@ -import { useHolidayPayPoliciesGet } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' +import { useHolidayPayPoliciesGet } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' import { PolicyTypeSelectorPresentation } from './PolicyTypeSelectorPresentation' import type { PolicyType } from './PolicyTypeSelectorTypes' import { BaseComponent, type BaseComponentInterface } from '@/components/Base' diff --git a/src/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.ts b/src/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.ts index 5761f809f..60952ede0 100644 --- a/src/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.ts +++ b/src/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.ts @@ -1,4 +1,4 @@ -import type { PolicyType } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy' +import type { PolicyType } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy' /** * Time off policy types that can be created through the time off policy management workflow. diff --git a/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.test.tsx b/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.test.tsx index b5939a656..d9667dc93 100644 --- a/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.test.tsx +++ b/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.test.tsx @@ -10,21 +10,21 @@ const mockCreateTimeOffPolicy = vi.fn() const mockUpdateTimeOffPolicy = vi.fn() let mockGetPolicyResponse: { timeOffPolicy: Record } | undefined -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesCreate', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesCreate', () => ({ useTimeOffPoliciesCreateMutation: () => ({ mutateAsync: mockCreateTimeOffPolicy, isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate', () => ({ useTimeOffPoliciesUpdateMutation: () => ({ mutateAsync: mockUpdateTimeOffPolicy, isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet', () => ({ useTimeOffPoliciesGetSuspense: () => ({ data: mockGetPolicyResponse ?? { timeOffPolicy: undefined }, }), diff --git a/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.tsx b/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.tsx index 61184025a..c55d6ecb6 100644 --- a/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.tsx +++ b/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.tsx @@ -1,10 +1,10 @@ import { useCallback } from 'react' -import { useTimeOffPoliciesCreateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesCreate' -import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate' -import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet' -import type { TimeOffPolicyRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicyrequest' -import type { TimeOffPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy' -import type { PutV1TimeOffPoliciesTimeOffPolicyUuidRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1timeoffpoliciestimeoffpolicyuuid' +import { useTimeOffPoliciesCreateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesCreate' +import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate' +import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet' +import type { TimeOffPolicyRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicyrequest' +import type { TimeOffPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy' +import type { PutV1TimeOffPoliciesTimeOffPolicyUuidRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1timeoffpoliciestimeoffpolicyuuid' import { useQueryClient } from '@tanstack/react-query' import { PolicyConfigurationFormPresentation } from './PolicyConfigurationFormPresentation' import type { PolicyConfigurationFormData } from './PolicyConfigurationFormTypes' @@ -329,7 +329,7 @@ function EditRoot({ companyId, policyType, policyId, defaultValues }: EditRootPr }) void queryClient.invalidateQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'timeOffPolicies', 'get'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'timeOffPolicies', 'get'], }) onEvent(componentEvents.TIME_OFF_POLICY_DETAILS_DONE, { diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.test.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.test.tsx index d5087db53..e7a45bb67 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.test.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.test.tsx @@ -29,7 +29,7 @@ const mockEmployees = [ }, ] -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: (request: { searchTerm?: string }) => { const filtered = request.searchTerm ? mockEmployees.filter(e => @@ -48,7 +48,7 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ const mockHolidayPolicyEmployees: Array<{ uuid: string }> = [] -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet', () => ({ useHolidayPayPoliciesGetSuspense: () => ({ data: { holidayPayPolicy: { version: 'abc123', employees: mockHolidayPolicyEmployees }, @@ -56,14 +56,14 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet', () }), invalidateAllHolidayPayPoliciesGet: vi.fn(), queryKeyHolidayPayPoliciesGet: (companyUuid: string) => [ - '@gusto/embedded-api-v-2025-11-15', + '@gusto/embedded-api-v-2026-02-01', 'holidayPayPolicies', 'get', companyUuid, ], })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesAddEmployees', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesAddEmployees', () => ({ useHolidayPayPoliciesAddEmployeesMutation: () => ({ mutateAsync: mockAddEmployees, isPending: false, diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.tsx index ddc8b4d24..d9863f629 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.tsx @@ -1,13 +1,13 @@ import { useCallback, useMemo } from 'react' import { useQueryClient } from '@tanstack/react-query' -import { useHolidayPayPoliciesAddEmployeesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesAddEmployees' +import { useHolidayPayPoliciesAddEmployeesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesAddEmployees' import { useHolidayPayPoliciesGetSuspense, queryKeyHolidayPayPoliciesGet, invalidateAllHolidayPayPoliciesGet, type HolidayPayPoliciesGetQueryData, -} from '@gusto/embedded-api-v-2025-11-15/react-query/holidayPayPoliciesGet' -import type { HolidayPayPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/holidaypaypolicy' +} from '@gusto/embedded-api-v-2026-02-01/react-query/holidayPayPoliciesGet' +import type { HolidayPayPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/holidaypaypolicy' import { SelectEmployeesPresentation } from './SelectEmployeesPresentation' import { useSelectEmployeesData } from './useSelectEmployeesData' import { useBase } from '@/components/Base/useBase' diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.ts b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.ts index 2cc161a73..c10de052d 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.ts +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.ts @@ -1,4 +1,4 @@ -import type { PaidTimeOff } from '@gusto/embedded-api-v-2025-11-15/models/components/paidtimeoff' +import type { PaidTimeOff } from '@gusto/embedded-api-v-2026-02-01/models/components/paidtimeoff' import type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes' /** @internal */ diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.test.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.test.tsx index 7905cd7cd..c6bd9638d 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.test.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.test.tsx @@ -65,7 +65,7 @@ const mockEmployees = [ }, ] -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: (request: { searchTerm?: string }) => { const filtered = request.searchTerm ? mockEmployees.filter(e => @@ -82,21 +82,21 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ }, })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesAddEmployees', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesAddEmployees', () => ({ useTimeOffPoliciesAddEmployeesMutation: () => ({ mutateAsync: mockAddEmployees, isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate', () => ({ useTimeOffPoliciesUpdateMutation: () => ({ mutateAsync: vi.fn().mockResolvedValue({ timeOffPolicy: { uuid: 'policy-456' } }), isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet', () => ({ useTimeOffPoliciesGetSuspense: () => ({ data: { timeOffPolicy: { diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.tsx index 439d7e926..a07de74de 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.tsx @@ -1,8 +1,8 @@ import { useCallback, useMemo, useRef, useState } from 'react' -import { useTimeOffPoliciesAddEmployeesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesAddEmployees' -import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet' -import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { useTimeOffPoliciesAddEmployeesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesAddEmployees' +import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet' +import { useTimeOffPoliciesUpdateMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { useQueryClient } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' import type { CreatableTimeOffPolicyType } from '../../TimeOffFlow/timeOffPolicyTypes' @@ -229,7 +229,7 @@ function SelectEmployeesTimeOffInner({ } } void queryClient.invalidateQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'timeOffPolicies', 'get'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'timeOffPolicies', 'get'], }) onEvent(componentEvents.TIME_OFF_ADD_EMPLOYEES_DONE, policyResult) }) diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.multiPage.test.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.multiPage.test.tsx index d25658e91..40211324a 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.multiPage.test.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.multiPage.test.tsx @@ -1,7 +1,7 @@ import { screen, waitFor } from '@testing-library/react' import { beforeEach, describe, expect, test, vi } from 'vitest' import type * as ReactQuery from '@tanstack/react-query' -import type * as GustoContext from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +import type * as GustoContext from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import { SelectEmployeesTimeOff } from './SelectEmployeesTimeOff' import { renderWithProviders } from '@/test-utils/renderWithProviders' @@ -39,7 +39,7 @@ const page2Employees = [ let mockTotalPages = 1 const buildEmployeesListQueryMock = vi.fn() -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: () => ({ data: { showEmployees: page1Employees, @@ -63,7 +63,7 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ }, })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/_context', async importOriginal => { +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/_context', async importOriginal => { const actual = await importOriginal() return { ...actual, @@ -84,21 +84,21 @@ vi.mock('@tanstack/react-query', async importActual => { } }) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesAddEmployees', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesAddEmployees', () => ({ useTimeOffPoliciesAddEmployeesMutation: () => ({ mutateAsync: vi.fn(), isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdate', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdate', () => ({ useTimeOffPoliciesUpdateMutation: () => ({ mutateAsync: vi.fn(), isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet', () => ({ useTimeOffPoliciesGetSuspense: () => ({ data: { timeOffPolicy: { uuid: 'policy-456', employees: [] } }, }), diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.pagination.test.tsx b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.pagination.test.tsx index 4d3699b1f..e54d3cb1c 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.pagination.test.tsx +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.pagination.test.tsx @@ -1,7 +1,7 @@ import { act, renderHook } from '@testing-library/react' import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest' import type * as ReactQuery from '@tanstack/react-query' -import type * as GustoContext from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +import type * as GustoContext from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import type { ReactNode } from 'react' import { Suspense } from 'react' import { useSelectEmployeesData } from './useSelectEmployeesData' @@ -39,7 +39,7 @@ function makeEmployee(index: number) { // 52 employees fits cleanly into "25 per page" → 3 pages (25/25/2). const employees = Array.from({ length: 52 }, (_, i) => makeEmployee(i)) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: () => ({ data: { showEmployees: employees, @@ -53,7 +53,7 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/_context', async importOriginal => { +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/_context', async importOriginal => { const actual = await importOriginal() return { ...actual, diff --git a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.ts b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.ts index 98cac1017..ff609d68e 100644 --- a/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.ts +++ b/src/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.ts @@ -2,11 +2,11 @@ import { useCallback, useMemo, useState } from 'react' import { buildEmployeesListQuery, useEmployeesListSuspense, -} from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' -import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' +} from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' +import { useGustoEmbeddedContext } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' import { useSuspenseQueries } from '@tanstack/react-query' -import { Include } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidemployees' -import type { PaidTimeOff } from '@gusto/embedded-api-v-2025-11-15/models/components/paidtimeoff' +import { Include } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidemployees' +import type { PaidTimeOff } from '@gusto/embedded-api-v-2026-02-01/models/components/paidtimeoff' import type { EmployeeItem } from './SelectEmployeesPresentationTypes' import { useClientPagination } from '@/hooks/useClientPagination/useClientPagination' diff --git a/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.test.tsx b/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.test.tsx index ee333e051..45f9f53f6 100644 --- a/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.test.tsx +++ b/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.test.tsx @@ -35,13 +35,13 @@ const basePolicyData = { let mockPolicyData = { ...basePolicyData } -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet', () => ({ useTimeOffPoliciesGetSuspense: () => ({ data: { timeOffPolicy: mockPolicyData }, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/employeesList', () => ({ useEmployeesListSuspense: () => ({ data: { showEmployees: [ @@ -63,14 +63,14 @@ vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/employeesList', () => ({ }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesRemoveEmployees', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesRemoveEmployees', () => ({ useTimeOffPoliciesRemoveEmployeesMutation: () => ({ mutateAsync: mockRemoveEmployees, isPending: false, }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdateBalance', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdateBalance', () => ({ useTimeOffPoliciesUpdateBalanceMutation: () => ({ mutateAsync: mockUpdateBalance, isPending: false, diff --git a/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.tsx b/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.tsx index c3a6999c0..1828bde12 100644 --- a/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.tsx +++ b/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.tsx @@ -1,11 +1,11 @@ import { useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' -import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesGet' -import { useTimeOffPoliciesRemoveEmployeesMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesRemoveEmployees' -import { useTimeOffPoliciesUpdateBalanceMutation } from '@gusto/embedded-api-v-2025-11-15/react-query/timeOffPoliciesUpdateBalance' -import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/employeesList' -import type { TimeOffPolicy } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { useTimeOffPoliciesGetSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesGet' +import { useTimeOffPoliciesRemoveEmployeesMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesRemoveEmployees' +import { useTimeOffPoliciesUpdateBalanceMutation } from '@gusto/embedded-api-v-2026-02-01/react-query/timeOffPoliciesUpdateBalance' +import { useEmployeesListSuspense } from '@gusto/embedded-api-v-2026-02-01/react-query/employeesList' +import type { TimeOffPolicy } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { useQueryClient } from '@tanstack/react-query' import { TimeOffPolicyDetailPresentation } from './TimeOffPolicyDetailPresentation' import { EditEmployeeBalanceModal } from './EditEmployeeBalanceModal' @@ -211,7 +211,7 @@ function Root({ policyId }: TimeOffPolicyDetailProps) { const invalidatePolicy = useCallback(() => { void queryClient.invalidateQueries({ - queryKey: ['@gusto/embedded-api-v-2025-11-15', 'timeOffPolicies', 'get'], + queryKey: ['@gusto/embedded-api-v-2026-02-01', 'timeOffPolicies', 'get'], }) }, [queryClient]) diff --git a/src/contexts/ApiProvider/ApiProvider.test.tsx b/src/contexts/ApiProvider/ApiProvider.test.tsx index d02093e01..1d99a6cd4 100644 --- a/src/contexts/ApiProvider/ApiProvider.test.tsx +++ b/src/contexts/ApiProvider/ApiProvider.test.tsx @@ -10,19 +10,19 @@ const mockSDKHooksInstance = { registerAfterErrorHook: vi.fn(), } -vi.mock('@gusto/embedded-api-v-2025-11-15/core', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/core', () => ({ GustoEmbeddedCore: vi.fn().mockImplementation(function (config: Record) { return { _options: { hooks: null }, config } }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/hooks/hooks', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/hooks/hooks', () => ({ SDKHooks: vi.fn().mockImplementation(function () { return mockSDKHooksInstance }), })) -vi.mock('@gusto/embedded-api-v-2025-11-15/react-query/_context', () => ({ +vi.mock('@gusto/embedded-api-v-2026-02-01/react-query/_context', () => ({ GustoEmbeddedProvider: ({ children }: { children: React.ReactNode }) => (
{children}
), @@ -42,7 +42,7 @@ describe('ApiProvider', () => { }) test('registers hooks with SDK when provided', async () => { - const { GustoEmbeddedCore } = await import('@gusto/embedded-api-v-2025-11-15/core') + const { GustoEmbeddedCore } = await import('@gusto/embedded-api-v-2026-02-01/core') const mockHooks: SDKHooks = { beforeCreateRequest: [{ beforeCreateRequest: vi.fn() }], @@ -138,7 +138,7 @@ describe('ApiProvider', () => { }) test('works without hooks or headers', async () => { - const { GustoEmbeddedCore } = await import('@gusto/embedded-api-v-2025-11-15/core') + const { GustoEmbeddedCore } = await import('@gusto/embedded-api-v-2026-02-01/core') render( @@ -170,6 +170,6 @@ describe('ApiProvider', () => { const modifiedRequest = apiVersionHook.beforeRequest(mockContext, mockRequest) - expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2025-11-15') + expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2026-02-01') }) }) diff --git a/src/contexts/ApiProvider/ApiProvider.tsx b/src/contexts/ApiProvider/ApiProvider.tsx index 25dcaeca5..cda652724 100644 --- a/src/contexts/ApiProvider/ApiProvider.tsx +++ b/src/contexts/ApiProvider/ApiProvider.tsx @@ -1,7 +1,7 @@ import { QueryClientProvider, type QueryClient } from '@tanstack/react-query' -import { GustoEmbeddedProvider } from '@gusto/embedded-api-v-2025-11-15/react-query/_context' -import { GustoEmbeddedCore } from '@gusto/embedded-api-v-2025-11-15/core' -import { SDKHooks as NativeSDKHooks } from '@gusto/embedded-api-v-2025-11-15/hooks/hooks' +import { GustoEmbeddedProvider } from '@gusto/embedded-api-v-2026-02-01/react-query/_context' +import { GustoEmbeddedCore } from '@gusto/embedded-api-v-2026-02-01/core' +import { SDKHooks as NativeSDKHooks } from '@gusto/embedded-api-v-2026-02-01/hooks/hooks' import { useMemo } from 'react' import { apiVersionHook } from './apiVersionHook' import { createSdkQueryClient } from './createSdkQueryClient' @@ -13,7 +13,7 @@ import type { SDKHooks, BeforeRequestHook } from '@/types/hooks' * @public */ export interface ApiProviderProps { - /** Base URL the SDK uses for all `@gusto/embedded-api-v-2025-11-15` requests. */ + /** Base URL the SDK uses for all `@gusto/embedded-api-v-2026-02-01` requests. */ url: string /** Default headers applied to every SDK request, in addition to the `X-Gusto-API-Version` header set automatically. */ headers?: HeadersInit @@ -26,13 +26,13 @@ export interface ApiProviderProps { } /** - * Wires the `@gusto/embedded-api-v-2025-11-15` client and a React Query client into the React tree. + * Wires the `@gusto/embedded-api-v-2026-02-01` client and a React Query client into the React tree. * * @remarks * Registers the SDK's `X-Gusto-API-Version` header on every request, applies any default `headers`, * and registers user-supplied lifecycle hooks (`beforeCreateRequest`, `beforeRequest`, `afterSuccess`, * `afterError`). When no `queryClient` is supplied, one is created with the SDK's defaults so - * successful mutations under the `['@gusto/embedded-api-v-2025-11-15']` key invalidate every SDK + * successful mutations under the `['@gusto/embedded-api-v-2026-02-01']` key invalidate every SDK * query automatically. Partners who supply their own `QueryClient` are responsible for matching that * contract. * diff --git a/src/contexts/ApiProvider/apiVersionHook.test.ts b/src/contexts/ApiProvider/apiVersionHook.test.ts index eaf6cbad5..53bba5ffc 100644 --- a/src/contexts/ApiProvider/apiVersionHook.test.ts +++ b/src/contexts/ApiProvider/apiVersionHook.test.ts @@ -8,7 +8,7 @@ describe('apiVersionHook', () => { const modifiedRequest = apiVersionHook.beforeRequest(mockContext, mockRequest) as Request - expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2025-11-15') + expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2026-02-01') }) test('overrides existing X-Gusto-API-Version header', () => { @@ -21,7 +21,7 @@ describe('apiVersionHook', () => { const modifiedRequest = apiVersionHook.beforeRequest(mockContext, mockRequest) as Request - expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2025-11-15') + expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2026-02-01') }) test('preserves other headers', () => { @@ -37,7 +37,7 @@ describe('apiVersionHook', () => { expect(modifiedRequest.headers.get('Authorization')).toBe('Bearer test-token') expect(modifiedRequest.headers.get('Content-Type')).toBe('application/json') - expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2025-11-15') + expect(modifiedRequest.headers.get('X-Gusto-API-Version')).toBe('2026-02-01') }) test('returns the same request object', () => { diff --git a/src/contexts/ApiProvider/apiVersionHook.ts b/src/contexts/ApiProvider/apiVersionHook.ts index b9afe3f75..14077f718 100644 --- a/src/contexts/ApiProvider/apiVersionHook.ts +++ b/src/contexts/ApiProvider/apiVersionHook.ts @@ -1,6 +1,6 @@ import type { BeforeRequestHook } from '@/types/hooks' -const CURRENT_API_VERSION = '2025-11-15' +const CURRENT_API_VERSION = '2026-02-01' /** @internal */ export const apiVersionHook: BeforeRequestHook = { diff --git a/src/contexts/ApiProvider/createSdkQueryClient.ts b/src/contexts/ApiProvider/createSdkQueryClient.ts index e07b245d5..377a97cca 100644 --- a/src/contexts/ApiProvider/createSdkQueryClient.ts +++ b/src/contexts/ApiProvider/createSdkQueryClient.ts @@ -1,7 +1,7 @@ import { QueryClient } from '@tanstack/react-query' /** - * Creates a `QueryClient` pre-configured with the SDK's defaults for queries and mutations under the `['@gusto/embedded-api-v-2025-11-15']` key. + * Creates a `QueryClient` pre-configured with the SDK's defaults for queries and mutations under the `['@gusto/embedded-api-v-2026-02-01']` key. * * @remarks * Defaults applied: @@ -17,11 +17,11 @@ import { QueryClient } from '@tanstack/react-query' */ export function createSdkQueryClient(): QueryClient { const client = new QueryClient() - client.setQueryDefaults(['@gusto/embedded-api-v-2025-11-15'], { retry: false }) - client.setMutationDefaults(['@gusto/embedded-api-v-2025-11-15'], { + client.setQueryDefaults(['@gusto/embedded-api-v-2026-02-01'], { retry: false }) + client.setMutationDefaults(['@gusto/embedded-api-v-2026-02-01'], { retry: false, onSuccess: async () => { - await client.invalidateQueries({ queryKey: ['@gusto/embedded-api-v-2025-11-15'] }) + await client.invalidateQueries({ queryKey: ['@gusto/embedded-api-v-2026-02-01'] }) }, }) return client diff --git a/src/helpers/apiErrorToList.tsx b/src/helpers/apiErrorToList.tsx index aad6a4afc..c2e51757f 100644 --- a/src/helpers/apiErrorToList.tsx +++ b/src/helpers/apiErrorToList.tsx @@ -1,4 +1,4 @@ -import type { EntityErrorObject } from '@gusto/embedded-api-v-2025-11-15/models/components/entityerrorobject' +import type { EntityErrorObject } from '@gusto/embedded-api-v-2026-02-01/models/components/entityerrorobject' import { snakeCaseToCamelCase } from './formattedStrings' /** diff --git a/src/helpers/formattedStrings.ts b/src/helpers/formattedStrings.ts index bd438e3f5..e24c8ee99 100644 --- a/src/helpers/formattedStrings.ts +++ b/src/helpers/formattedStrings.ts @@ -1,6 +1,6 @@ import DOMPurify from 'dompurify' -import { type Location } from '@gusto/embedded-api-v-2025-11-15/models/components/location' -import { type EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress' +import { type Location } from '@gusto/embedded-api-v-2026-02-01/models/components/location' +import { type EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress' import { type TFunction } from 'i18next' import { useTranslation } from 'react-i18next' import { useCallback } from 'react' diff --git a/src/hooks/useCompanyPaymentSpeed.ts b/src/hooks/useCompanyPaymentSpeed.ts index 3c094785b..69b0b87c4 100644 --- a/src/hooks/useCompanyPaymentSpeed.ts +++ b/src/hooks/useCompanyPaymentSpeed.ts @@ -1,5 +1,5 @@ -import { usePaymentConfigsGet } from '@gusto/embedded-api-v-2025-11-15/react-query/paymentConfigsGet' -import type { PaymentSpeed } from '@gusto/embedded-api-v-2025-11-15/models/components/paymentconfigs' +import { usePaymentConfigsGet } from '@gusto/embedded-api-v-2026-02-01/react-query/paymentConfigsGet' +import type { PaymentSpeed } from '@gusto/embedded-api-v-2026-02-01/models/components/paymentconfigs' const DEFAULT_PAYMENT_SPEED_DAYS = 2 diff --git a/src/partner-hook-utils/composeErrorHandler.ts b/src/partner-hook-utils/composeErrorHandler.ts index 1e4a4dd03..b404ae47c 100644 --- a/src/partner-hook-utils/composeErrorHandler.ts +++ b/src/partner-hook-utils/composeErrorHandler.ts @@ -41,7 +41,7 @@ function isHookResultWithErrorHandling( * Merges multiple error sources into a single {@link HookErrorHandling}. * * @remarks - * Accepts any mix of `@gusto/embedded-api-v-2025-11-15` React Query results and SDK hook + * Accepts any mix of `@gusto/embedded-api-v-2026-02-01` React Query results and SDK hook * results that already expose an `errorHandling` object (including the value returned by * {@link composeSubmitHandler}). Query errors are normalized to `SDKError`, nested hook * errors are flattened in, and an optional submit-state argument adds a submit error to @@ -63,7 +63,7 @@ function isHookResultWithErrorHandling( * @example * ```tsx * import { composeErrorHandler, useEmployeeDetailsForm } from '@gusto/embedded-react-sdk' - * import { useEmployeeFormsList } from '@gusto/embedded-api-v-2025-11-15/react-query/employeeFormsList' + * import { useEmployeeFormsList } from '@gusto/embedded-api-v-2026-02-01/react-query/employeeFormsList' * * function EmployeeProfileView({ companyId, employeeId }: { companyId: string; employeeId: string }) { * const employeeDetails = useEmployeeDetailsForm({ companyId, employeeId }) diff --git a/src/partner-hook-utils/form/composeSubmitHandler.ts b/src/partner-hook-utils/form/composeSubmitHandler.ts index cffaabe73..350baa89d 100644 --- a/src/partner-hook-utils/form/composeSubmitHandler.ts +++ b/src/partner-hook-utils/form/composeSubmitHandler.ts @@ -150,7 +150,7 @@ function focusFirstInvalidAcrossForms(results: FormValidationResult[]): void { * * The returned `errorHandling` is the same shape every SDK hook returns, so the whole result * can be passed back into {@link composeErrorHandler} when you need to add extra - * `@gusto/embedded-api-v-2025-11-15` queries or screen-level submit state. + * `@gusto/embedded-api-v-2026-02-01` queries or screen-level submit state. * * @typeParam TForms - Tuple of form value shapes, one per slot of `forms`. * @param forms - Form hook results and/or raw `UseFormReturn` instances to coordinate. diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 291a8c956..76a57810a 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -1,5 +1,5 @@ -import { OnboardingStatus } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidonboardingstatus' -import { ContractorOnboardingStatus1 } from '@gusto/embedded-api-v-2025-11-15/models/components/contractor' +import { OnboardingStatus } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidonboardingstatus' +import { ContractorOnboardingStatus1 } from '@gusto/embedded-api-v-2026-02-01/models/components/contractor' /** * Event keys emitted by employee-related components. diff --git a/src/test/factories/jobsAndCompensations.ts b/src/test/factories/jobsAndCompensations.ts index e68964a7e..a73b90bdf 100644 --- a/src/test/factories/jobsAndCompensations.ts +++ b/src/test/factories/jobsAndCompensations.ts @@ -6,13 +6,13 @@ * The Speakeasy SDK transforms these into camelCase for the React Query layer. * * Each builder validates its output against the SDK's public `*FromJSON` - * parser so any drift between our fixtures and the `@gusto/embedded-api-v-2025-11-15` wire + * parser so any drift between our fixtures and the `@gusto/embedded-api-v-2026-02-01` wire * schema fails loudly at the call site instead of producing silently-wrong * camelCase data inside hooks under test. */ -import { compensationFromJSON } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation' -import { jobFromJSON } from '@gusto/embedded-api-v-2025-11-15/models/components/job' +import { compensationFromJSON } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation' +import { jobFromJSON } from '@gusto/embedded-api-v-2026-02-01/models/components/job' export type CompensationFixture = { uuid: string @@ -47,7 +47,7 @@ function assertValidCompensation(fixture: CompensationFixture): CompensationFixt const result = compensationFromJSON(JSON.stringify(fixture)) if (!result.ok) { throw new Error( - `buildCompensation produced a fixture that does not match @gusto/embedded-api-v-2025-11-15 Compensation schema: ${result.error.message}`, + `buildCompensation produced a fixture that does not match @gusto/embedded-api-v-2026-02-01 Compensation schema: ${result.error.message}`, ) } return fixture @@ -57,7 +57,7 @@ function assertValidJob(fixture: JobFixture): JobFixture { const result = jobFromJSON(JSON.stringify(fixture)) if (!result.ok) { throw new Error( - `buildJob produced a fixture that does not match @gusto/embedded-api-v-2025-11-15 Job schema: ${result.error.message}`, + `buildJob produced a fixture that does not match @gusto/embedded-api-v-2026-02-01 Job schema: ${result.error.message}`, ) } return fixture diff --git a/src/test/mocks/apis/company_bank_accounts.ts b/src/test/mocks/apis/company_bank_accounts.ts index c6f0f79f2..af0b4f233 100644 --- a/src/test/mocks/apis/company_bank_accounts.ts +++ b/src/test/mocks/apis/company_bank_accounts.ts @@ -1,8 +1,8 @@ import type { HttpResponseResolver } from 'msw' import { http, HttpResponse, type PathParams } from 'msw' -import type { GetV1CompaniesCompanyIdBankAccountsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidbankaccounts' -import type { PostV1CompaniesCompanyIdBankAccountsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidbankaccounts' -import type { CompanyBankAccountVerifyRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/companybankaccountverifyrequest' +import type { GetV1CompaniesCompanyIdBankAccountsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidbankaccounts' +import type { PostV1CompaniesCompanyIdBankAccountsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidbankaccounts' +import type { CompanyBankAccountVerifyRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/companybankaccountverifyrequest' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/company_federal_taxes.ts b/src/test/mocks/apis/company_federal_taxes.ts index 21abcc21e..704537627 100644 --- a/src/test/mocks/apis/company_federal_taxes.ts +++ b/src/test/mocks/apis/company_federal_taxes.ts @@ -1,7 +1,7 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompaniesCompanyIdFederalTaxDetailsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidfederaltaxdetails' -import type { FederalTaxDetailsUpdate } from '@gusto/embedded-api-v-2025-11-15/models/components/federaltaxdetailsupdate' +import type { GetV1CompaniesCompanyIdFederalTaxDetailsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidfederaltaxdetails' +import type { FederalTaxDetailsUpdate } from '@gusto/embedded-api-v-2026-02-01/models/components/federaltaxdetailsupdate' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/company_forms.ts b/src/test/mocks/apis/company_forms.ts index e7f2df0d7..44b797f3f 100644 --- a/src/test/mocks/apis/company_forms.ts +++ b/src/test/mocks/apis/company_forms.ts @@ -1,11 +1,11 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompanyFormsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companyforms' +import type { GetV1CompanyFormsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companyforms' import type { GetV1CompanyFormRequest, GetV1CompanyFormResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companyform' -import type { PutV1CompanyFormSignRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1companyformsign' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companyform' +import type { PutV1CompanyFormSignRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1companyformsign' import { API_BASE_URL } from '@/test/constants' const basicForm = { diff --git a/src/test/mocks/apis/company_locations.ts b/src/test/mocks/apis/company_locations.ts index e8fbab73d..778cf45b1 100644 --- a/src/test/mocks/apis/company_locations.ts +++ b/src/test/mocks/apis/company_locations.ts @@ -1,6 +1,6 @@ import { http, HttpResponse, type PathParams } from 'msw' -import type { CompanyLocationRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/companylocationrequest' -import type { PutV1LocationsLocationIdRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1locationslocationid' +import type { CompanyLocationRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/companylocationrequest' +import type { PutV1LocationsLocationIdRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1locationslocationid' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/company_signatories.ts b/src/test/mocks/apis/company_signatories.ts index bdd162c71..0da690947 100644 --- a/src/test/mocks/apis/company_signatories.ts +++ b/src/test/mocks/apis/company_signatories.ts @@ -1,13 +1,13 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompaniesCompanyUuidSignatoriesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyuuidsignatories' -import type { SignatoryCreateRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/signatorycreaterequest' -import type { SignatoryUpdateRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/signatoryupdaterequest' -import type { SignatoryInviteRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/signatoryinviterequest' +import type { GetV1CompaniesCompanyUuidSignatoriesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyuuidsignatories' +import type { SignatoryCreateRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/signatorycreaterequest' +import type { SignatoryUpdateRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/signatoryupdaterequest' +import type { SignatoryInviteRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/signatoryinviterequest' import type { DeleteV1CompaniesCompanyUuidSignatoriesSignatoryUuidRequest, DeleteV1CompaniesCompanyUuidSignatoriesSignatoryUuidResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1companiescompanyuuidsignatoriessignatoryuuid' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1companiescompanyuuidsignatoriessignatoryuuid' import { API_BASE_URL } from '@/test/constants' const basicSignatory = { diff --git a/src/test/mocks/apis/compensations.ts b/src/test/mocks/apis/compensations.ts index 1c85103ac..7467b7a97 100644 --- a/src/test/mocks/apis/compensations.ts +++ b/src/test/mocks/apis/compensations.ts @@ -1,5 +1,5 @@ import { http, HttpResponse, type HttpResponseResolver, type PathParams } from 'msw' -import type { CompensationsRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/compensationsrequestbody' +import type { CompensationsRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/compensationsrequestbody' import { API_BASE_URL } from '@/test/constants' export function handleCreateCompensation( diff --git a/src/test/mocks/apis/contractor_address.ts b/src/test/mocks/apis/contractor_address.ts index 9b3cdeed9..9590b3378 100644 --- a/src/test/mocks/apis/contractor_address.ts +++ b/src/test/mocks/apis/contractor_address.ts @@ -1,8 +1,8 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1contractorscontractoruuid' -import type { GetV1ContractorsContractorUuidAddressRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1contractorscontractoruuidaddress' -import type { ContractorAddressUpdateBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractoraddressupdatebody' +import type { GetV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1contractorscontractoruuid' +import type { GetV1ContractorsContractorUuidAddressRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1contractorscontractoruuidaddress' +import type { ContractorAddressUpdateBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractoraddressupdatebody' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/contractor_new_hire_report.ts b/src/test/mocks/apis/contractor_new_hire_report.ts index 44b2029e9..86b577f03 100644 --- a/src/test/mocks/apis/contractor_new_hire_report.ts +++ b/src/test/mocks/apis/contractor_new_hire_report.ts @@ -1,6 +1,6 @@ import type { PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { PutV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1contractorscontractoruuid' +import type { PutV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1contractorscontractoruuid' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/contractor_payment_method.ts b/src/test/mocks/apis/contractor_payment_method.ts index d29008a7a..f9ed5e905 100644 --- a/src/test/mocks/apis/contractor_payment_method.ts +++ b/src/test/mocks/apis/contractor_payment_method.ts @@ -1,9 +1,9 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1ContractorsContractorUuidPaymentMethodRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1contractorscontractoruuidpaymentmethod' -import type { GetV1ContractorsContractorUuidBankAccountsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1contractorscontractoruuidbankaccounts' -import type { PutV1ContractorsContractorIdPaymentMethodType } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1contractorscontractoridpaymentmethod' -import type { ContractorBankAccountCreateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorbankaccountcreaterequestbody' +import type { GetV1ContractorsContractorUuidPaymentMethodRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1contractorscontractoruuidpaymentmethod' +import type { GetV1ContractorsContractorUuidBankAccountsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1contractorscontractoruuidbankaccounts' +import type { PutV1ContractorsContractorIdPaymentMethodType } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1contractorscontractoridpaymentmethod' +import type { ContractorBankAccountCreateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorbankaccountcreaterequestbody' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/contractors.ts b/src/test/mocks/apis/contractors.ts index f44674e04..61a428b7d 100644 --- a/src/test/mocks/apis/contractors.ts +++ b/src/test/mocks/apis/contractors.ts @@ -1,8 +1,8 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1contractorscontractoruuid' -import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorcreaterequestbody' -import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/contractorupdaterequestbody' +import type { GetV1ContractorsContractorUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1contractorscontractoruuid' +import type { ContractorCreateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorcreaterequestbody' +import type { ContractorUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/contractorupdaterequestbody' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employee_federal_taxes.ts b/src/test/mocks/apis/employee_federal_taxes.ts index db244f5d8..befaeb0ba 100644 --- a/src/test/mocks/apis/employee_federal_taxes.ts +++ b/src/test/mocks/apis/employee_federal_taxes.ts @@ -1,7 +1,7 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1EmployeesEmployeeIdFederalTaxesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidfederaltaxes' -import type { PutV1EmployeesEmployeeIdFederalTaxesRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidfederaltaxes' +import type { GetV1EmployeesEmployeeIdFederalTaxesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidfederaltaxes' +import type { PutV1EmployeesEmployeeIdFederalTaxesRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidfederaltaxes' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employee_home_addresses.ts b/src/test/mocks/apis/employee_home_addresses.ts index 41a2095cc..8272dc400 100644 --- a/src/test/mocks/apis/employee_home_addresses.ts +++ b/src/test/mocks/apis/employee_home_addresses.ts @@ -3,17 +3,17 @@ import { http, HttpResponse } from 'msw' import type { GetV1EmployeesEmployeeIdHomeAddressesRequest, GetV1EmployeesEmployeeIdHomeAddressesResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidhomeaddresses' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidhomeaddresses' import type { GetV1HomeAddressesHomeAddressUuidRequest, GetV1HomeAddressesHomeAddressUuidResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1homeaddresseshomeaddressuuid' -import type { PostV1EmployeesEmployeeIdHomeAddressesRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1employeesemployeeidhomeaddresses' -import type { PutV1HomeAddressesHomeAddressUuidRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1homeaddresseshomeaddressuuid' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1homeaddresseshomeaddressuuid' +import type { PostV1EmployeesEmployeeIdHomeAddressesRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1employeesemployeeidhomeaddresses' +import type { PutV1HomeAddressesHomeAddressUuidRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1homeaddresseshomeaddressuuid' import type { DeleteV1HomeAddressesHomeAddressUuidRequest, DeleteV1HomeAddressesHomeAddressUuidResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1homeaddresseshomeaddressuuid' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1homeaddresseshomeaddressuuid' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employee_state_taxes.ts b/src/test/mocks/apis/employee_state_taxes.ts index a7db96326..9a47176c3 100644 --- a/src/test/mocks/apis/employee_state_taxes.ts +++ b/src/test/mocks/apis/employee_state_taxes.ts @@ -1,7 +1,7 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1EmployeesEmployeeIdStateTaxesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidstatetaxes' -import type { PutV1EmployeesEmployeeIdStateTaxesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidstatetaxes' +import type { GetV1EmployeesEmployeeIdStateTaxesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidstatetaxes' +import type { PutV1EmployeesEmployeeIdStateTaxesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidstatetaxes' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employee_work_addresses.ts b/src/test/mocks/apis/employee_work_addresses.ts index 1f1dcf972..528b32ed1 100644 --- a/src/test/mocks/apis/employee_work_addresses.ts +++ b/src/test/mocks/apis/employee_work_addresses.ts @@ -1,13 +1,13 @@ import type { PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1EmployeesEmployeeIdWorkAddressesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidworkaddresses' -import type { GetV1WorkAddressesWorkAddressUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1workaddressesworkaddressuuid' +import type { GetV1EmployeesEmployeeIdWorkAddressesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidworkaddresses' +import type { GetV1WorkAddressesWorkAddressUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1workaddressesworkaddressuuid' import type { DeleteV1WorkAddressesWorkAddressUuidRequest, DeleteV1WorkAddressesWorkAddressUuidResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1workaddressesworkaddressuuid' -import type { PutV1WorkAddressesWorkAddressUuidRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1workaddressesworkaddressuuid' -import type { PostV1EmployeesEmployeeIdWorkAddressesRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1employeesemployeeidworkaddresses' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1workaddressesworkaddressuuid' +import type { PutV1WorkAddressesWorkAddressUuidRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1workaddressesworkaddressuuid' +import type { PostV1EmployeesEmployeeIdWorkAddressesRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1employeesemployeeidworkaddresses' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employees.ts b/src/test/mocks/apis/employees.ts index 5a69c0183..309964a54 100644 --- a/src/test/mocks/apis/employees.ts +++ b/src/test/mocks/apis/employees.ts @@ -1,23 +1,23 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompaniesCompanyIdEmployeesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidemployees' -import type { GetV1EmployeesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employees' -import type { PostV1EmployeesRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1employees' -import type { PutV1EmployeesRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employees' +import type { GetV1CompaniesCompanyIdEmployeesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidemployees' +import type { GetV1EmployeesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employees' +import type { PostV1EmployeesRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1employees' +import type { PutV1EmployeesRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employees' import type { DeleteV1EmployeeRequest, DeleteV1EmployeeResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1employee' -import type { GetV1EmployeesEmployeeIdOnboardingStatusRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidonboardingstatus' -import type { PutV1EmployeesEmployeeIdOnboardingStatusRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidonboardingstatus' -import type { GetV1EmployeesEmployeeIdJobsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidjobs' -import type { JobsCreateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/jobscreaterequestbody' -import type { CompensationsUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/compensationsupdaterequestbody' -import type { JobsUpdateRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/jobsupdaterequestbody' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1employee' +import type { GetV1EmployeesEmployeeIdOnboardingStatusRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidonboardingstatus' +import type { PutV1EmployeesEmployeeIdOnboardingStatusRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidonboardingstatus' +import type { GetV1EmployeesEmployeeIdJobsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidjobs' +import type { JobsCreateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/jobscreaterequestbody' +import type { CompensationsUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/compensationsupdaterequestbody' +import type { JobsUpdateRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/jobsupdaterequestbody' import type { DeleteV1JobsJobIdRequest, DeleteV1JobsJobIdResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1jobsjobid' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1jobsjobid' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/employeesBankAccounts.ts b/src/test/mocks/apis/employeesBankAccounts.ts index 5cd611536..0ad3b83f2 100644 --- a/src/test/mocks/apis/employeesBankAccounts.ts +++ b/src/test/mocks/apis/employeesBankAccounts.ts @@ -1,13 +1,13 @@ import type { PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1EmployeesEmployeeIdBankAccountsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidbankaccounts' -import type { EmployeeBankAccountRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccountrequest' +import type { GetV1EmployeesEmployeeIdBankAccountsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidbankaccounts' +import type { EmployeeBankAccountRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccountrequest' import type { DeleteV1EmployeesEmployeeIdBankAccountsBankAccountIdRequest, DeleteV1EmployeesEmployeeIdBankAccountsBankAccountIdResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/deletev1employeesemployeeidbankaccountsbankaccountid' -import type { GetV1EmployeesEmployeeIdPaymentMethodRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidpaymentmethod' -import type { PutV1EmployeesEmployeeIdPaymentMethodRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1employeesemployeeidpaymentmethod' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/deletev1employeesemployeeidbankaccountsbankaccountid' +import type { GetV1EmployeesEmployeeIdPaymentMethodRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidpaymentmethod' +import type { PutV1EmployeesEmployeeIdPaymentMethodRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1employeesemployeeidpaymentmethod' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/i9_authorization.ts b/src/test/mocks/apis/i9_authorization.ts index a176724dc..bf3e849ff 100644 --- a/src/test/mocks/apis/i9_authorization.ts +++ b/src/test/mocks/apis/i9_authorization.ts @@ -1,7 +1,7 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1EmployeesEmployeeIdI9AuthorizationRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1employeesemployeeidi9authorization' -import type { I9AuthorizationRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/components/i9authorizationrequestbody' +import type { GetV1EmployeesEmployeeIdI9AuthorizationRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1employeesemployeeidi9authorization' +import type { I9AuthorizationRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/components/i9authorizationrequestbody' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/payrolls.ts b/src/test/mocks/apis/payrolls.ts index c457e2c22..5f3dba1fd 100644 --- a/src/test/mocks/apis/payrolls.ts +++ b/src/test/mocks/apis/payrolls.ts @@ -1,12 +1,12 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompaniesCompanyIdPayrollsRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrolls' +import type { GetV1CompaniesCompanyIdPayrollsRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrolls' import type { GetV1CompaniesCompanyIdPayrollsPayrollIdRequest, GetV1CompaniesCompanyIdPayrollsPayrollIdResponse, -} from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayrollspayrollid' -import type { PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody } from '@gusto/embedded-api-v-2025-11-15/models/operations/putv1companiescompanyidpayrollspayrollidprepare' -import { OffCycleReason } from '@gusto/embedded-api-v-2025-11-15/models/operations/postv1companiescompanyidpayrolls' +} from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayrollspayrollid' +import type { PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody } from '@gusto/embedded-api-v-2026-02-01/models/operations/putv1companiescompanyidpayrollspayrollidprepare' +import { OffCycleReason } from '@gusto/embedded-api-v-2026-02-01/models/operations/postv1companiescompanyidpayrolls' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/payschedule.ts b/src/test/mocks/apis/payschedule.ts index 3d93f5f61..c9a6ef1d9 100644 --- a/src/test/mocks/apis/payschedule.ts +++ b/src/test/mocks/apis/payschedule.ts @@ -1,9 +1,9 @@ import type { PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1CompaniesCompanyIdPaySchedulesRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayschedules' -import type { PayScheduleCreateRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/payschedulecreaterequest' -import type { PayScheduleUpdateRequest } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleupdaterequest' -import type { GetV1CompaniesCompanyIdPaySchedulesPreviewRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1companiescompanyidpayschedulespreview' +import type { GetV1CompaniesCompanyIdPaySchedulesRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayschedules' +import type { PayScheduleCreateRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/payschedulecreaterequest' +import type { PayScheduleUpdateRequest } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleupdaterequest' +import type { GetV1CompaniesCompanyIdPaySchedulesPreviewRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1companiescompanyidpayschedulespreview' import { getFixture } from '../fixtures/getFixture' import { API_BASE_URL } from '@/test/constants' diff --git a/src/test/mocks/apis/tokens.ts b/src/test/mocks/apis/tokens.ts index a03a4904c..f3d22bdc9 100644 --- a/src/test/mocks/apis/tokens.ts +++ b/src/test/mocks/apis/tokens.ts @@ -1,6 +1,6 @@ import type { PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetV1TokenInfoRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getv1tokeninfo' +import type { GetV1TokenInfoRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getv1tokeninfo' import { API_BASE_URL } from '@/test/constants' const getTokenInfo = http.get( diff --git a/src/test/mocks/apis/wire_in_requests.ts b/src/test/mocks/apis/wire_in_requests.ts index 7f371e889..8cecf2e3b 100644 --- a/src/test/mocks/apis/wire_in_requests.ts +++ b/src/test/mocks/apis/wire_in_requests.ts @@ -1,6 +1,6 @@ import type { HttpResponseResolver, PathParams } from 'msw' import { http, HttpResponse } from 'msw' -import type { GetCompaniesCompanyUuidWireInRequestUuidRequest } from '@gusto/embedded-api-v-2025-11-15/models/operations/getcompaniescompanyuuidwireinrequestuuid' +import type { GetCompaniesCompanyUuidWireInRequestUuidRequest } from '@gusto/embedded-api-v-2026-02-01/models/operations/getcompaniescompanyuuidwireinrequestuuid' import { API_BASE_URL } from '@/test/constants' export const createWireInRequest = (overrides: Record = {}) => ({ diff --git a/src/types/hooks.ts b/src/types/hooks.ts index 2b15a5a3d..9292c412f 100644 --- a/src/types/hooks.ts +++ b/src/types/hooks.ts @@ -10,7 +10,7 @@ import type { BeforeRequestContext, AfterSuccessContext, AfterErrorContext, -} from '@gusto/embedded-api-v-2025-11-15/hooks/types' +} from '@gusto/embedded-api-v-2026-02-01/hooks/types' // Re-export hook types and contexts for consumer use export type { @@ -31,7 +31,7 @@ export type { * Pass an instance of this interface to {@link GustoProvider} via `config.hooks` to * inspect or modify requests and responses across the four lifecycle stages. * Each entry is an array of objects implementing the corresponding hook type - * from `@gusto/embedded-api-v-2025-11-15/hooks/types`. + * from `@gusto/embedded-api-v-2026-02-01/hooks/types`. * * | Stage | When it runs | * | ----- | ------------ | diff --git a/src/types/sdkError.test.ts b/src/types/sdkError.test.ts index e098bc27a..a21aba2a4 100644 --- a/src/types/sdkError.test.ts +++ b/src/types/sdkError.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest' -import { APIError } from '@gusto/embedded-api-v-2025-11-15/models/errors/apierror' -import { HTTPClientError } from '@gusto/embedded-api-v-2025-11-15/models/errors/httpclienterrors' -import { SDKValidationError } from '@gusto/embedded-api-v-2025-11-15/models/errors/sdkvalidationerror' -import { UnprocessableEntityError } from '@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror' +import { APIError } from '@gusto/embedded-api-v-2026-02-01/models/errors/apierror' +import { HTTPClientError } from '@gusto/embedded-api-v-2026-02-01/models/errors/httpclienterrors' +import { SDKValidationError } from '@gusto/embedded-api-v-2026-02-01/models/errors/sdkvalidationerror' +import { UnprocessableEntityError } from '@gusto/embedded-api-v-2026-02-01/models/errors/unprocessableentityerror' import { normalizeToSDKError, SDKInternalError } from './sdkError' function createHttpMeta(status: number, body: string) { diff --git a/src/types/sdkError.ts b/src/types/sdkError.ts index e5c378594..b4b4b40d4 100644 --- a/src/types/sdkError.ts +++ b/src/types/sdkError.ts @@ -1,7 +1,7 @@ -import type { EntityErrorObject } from '@gusto/embedded-api-v-2025-11-15/models/components/entityerrorobject' -import { GustoEmbeddedError } from '@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror' -import { HTTPClientError } from '@gusto/embedded-api-v-2025-11-15/models/errors/httpclienterrors' -import { SDKValidationError } from '@gusto/embedded-api-v-2025-11-15/models/errors/sdkvalidationerror' +import type { EntityErrorObject } from '@gusto/embedded-api-v-2026-02-01/models/components/entityerrorobject' +import { GustoEmbeddedError } from '@gusto/embedded-api-v-2026-02-01/models/errors/gustoembeddederror' +import { HTTPClientError } from '@gusto/embedded-api-v-2026-02-01/models/errors/httpclienterrors' +import { SDKValidationError } from '@gusto/embedded-api-v-2026-02-01/models/errors/sdkvalidationerror' import { getFieldErrors } from '@/helpers/apiErrorToList' /** From a471b3ce1f57d1144458403aadeaf3bb223f97ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 24 Jun 2026 16:52:17 +0000 Subject: [PATCH 2/2] chore: update derived files --- .reports/embedded-react-sdk.api.md | 68 +++++++++++++++--------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.reports/embedded-react-sdk.api.md b/.reports/embedded-react-sdk.api.md index 8b6b6b2fa..3089816a3 100644 --- a/.reports/embedded-react-sdk.api.md +++ b/.reports/embedded-react-sdk.api.md @@ -4,62 +4,62 @@ ```ts -import { AfterErrorContext } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { AfterErrorHook } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { AfterSuccessContext } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { AfterSuccessHook } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { Agencies } from '@gusto/embedded-api-v-2025-11-15/models/components/childsupportdata'; +import { AfterErrorContext } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { AfterErrorHook } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { AfterSuccessContext } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { AfterSuccessHook } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { Agencies } from '@gusto/embedded-api-v-2026-02-01/models/components/childsupportdata'; import { AnchorHTMLAttributes } from 'react'; import { AriaAttributes } from 'react'; -import { BeforeCreateRequestContext } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { BeforeCreateRequestHook } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { BeforeRequestContext } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; -import { BeforeRequestHook } from '@gusto/embedded-api-v-2025-11-15/hooks/types'; +import { BeforeCreateRequestContext } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { BeforeCreateRequestHook } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { BeforeRequestContext } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; +import { BeforeRequestHook } from '@gusto/embedded-api-v-2026-02-01/hooks/types'; import { ButtonHTMLAttributes } from 'react'; -import { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'; +import { Compensation } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation'; import { ComponentType } from 'react'; -import { ContractorAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/contractoraddress'; +import { ContractorAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/contractoraddress'; import { Control } from 'react-hook-form'; import { CustomTypeOptions } from 'i18next'; import { default as default_2 } from 'react'; -import { Employee } from '@gusto/embedded-api-v-2025-11-15/models/components/employee'; -import { EmployeeAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeaddress'; -import { EmployeeBankAccount } from '@gusto/embedded-api-v-2025-11-15/models/components/employeebankaccount'; -import { EmployeeFederalTax } from '@gusto/embedded-api-v-2025-11-15/models/components/employeefederaltax'; -import { EmployeeOnboardingStatus as EmployeeOnboardingStatus_2 } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeonboardingstatus'; -import { EmployeePaymentMethod } from '@gusto/embedded-api-v-2025-11-15/models/components/employeepaymentmethod'; -import { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxeslist'; -import { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2025-11-15/models/components/employeestatetaxquestion'; -import { EmployeeWorkAddress } from '@gusto/embedded-api-v-2025-11-15/models/components/employeeworkaddress'; +import { Employee } from '@gusto/embedded-api-v-2026-02-01/models/components/employee'; +import { EmployeeAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeaddress'; +import { EmployeeBankAccount } from '@gusto/embedded-api-v-2026-02-01/models/components/employeebankaccount'; +import { EmployeeFederalTax } from '@gusto/embedded-api-v-2026-02-01/models/components/employeefederaltax'; +import { EmployeeOnboardingStatus as EmployeeOnboardingStatus_2 } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeonboardingstatus'; +import { EmployeePaymentMethod } from '@gusto/embedded-api-v-2026-02-01/models/components/employeepaymentmethod'; +import { EmployeeStateTaxesList } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxeslist'; +import { EmployeeStateTaxQuestion } from '@gusto/embedded-api-v-2026-02-01/models/components/employeestatetaxquestion'; +import { EmployeeWorkAddress } from '@gusto/embedded-api-v-2026-02-01/models/components/employeeworkaddress'; import { FallbackProps } from 'react-error-boundary'; import { FieldsetHTMLAttributes } from 'react'; import { FieldValues } from 'react-hook-form'; -import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'; +import { FlsaStatusType } from '@gusto/embedded-api-v-2026-02-01/models/components/flsastatustype'; import { FocusEvent as FocusEvent_2 } from 'react'; -import { Form } from '@gusto/embedded-api-v-2025-11-15/models/components/form'; +import { Form } from '@gusto/embedded-api-v-2026-02-01/models/components/form'; import { FunctionComponent } from 'react'; -import { Garnishment } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'; -import { GarnishmentType } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishment'; +import { Garnishment } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'; +import { GarnishmentType } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishment'; import { HTMLAttributes } from 'react'; import { InputHTMLAttributes } from 'react'; -import { Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'; +import { Job } from '@gusto/embedded-api-v-2026-02-01/models/components/job'; import { JSX } from 'react'; import { JSXElementConstructor } from 'react'; -import { Location as Location_2 } from '@gusto/embedded-api-v-2025-11-15/models/components/location'; -import { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage'; -import { PaymentPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/garnishmentchildsupport'; -import { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'; -import { PayrollPayPeriodType } from '@gusto/embedded-api-v-2025-11-15/models/components/payrollpayperiodtype'; -import { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api-v-2025-11-15/models/components/payschedulepreviewpayperiod'; -import { PayScheduleShow } from '@gusto/embedded-api-v-2025-11-15/models/components/payscheduleshow'; -import { PolicyType as PolicyType_2 } from '@gusto/embedded-api-v-2025-11-15/models/components/timeoffpolicy'; +import { Location as Location_2 } from '@gusto/embedded-api-v-2026-02-01/models/components/location'; +import { MinimumWage } from '@gusto/embedded-api-v-2026-02-01/models/components/minimumwage'; +import { PaymentPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/garnishmentchildsupport'; +import { PaymentUnit } from '@gusto/embedded-api-v-2026-02-01/models/components/compensation'; +import { PayrollPayPeriodType } from '@gusto/embedded-api-v-2026-02-01/models/components/payrollpayperiodtype'; +import { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api-v-2026-02-01/models/components/payschedulepreviewpayperiod'; +import { PayScheduleShow } from '@gusto/embedded-api-v-2026-02-01/models/components/payscheduleshow'; +import { PolicyType as PolicyType_2 } from '@gusto/embedded-api-v-2026-02-01/models/components/timeoffpolicy'; import { QueryClient } from '@tanstack/react-query'; import { ReactElement } from 'react'; import { ReactNode } from 'react'; import { Ref } from 'react'; import { RefObject } from 'react'; import { SelectHTMLAttributes } from 'react'; -import { Signatory } from '@gusto/embedded-api-v-2025-11-15/models/components/signatory'; +import { Signatory } from '@gusto/embedded-api-v-2026-02-01/models/components/signatory'; import { SyntheticEvent } from 'react'; import { TableHTMLAttributes } from 'react'; import { TextareaHTMLAttributes } from 'react';