@gusto/embedded-react-sdk 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/README.md +6 -0
- package/dist/UNSTABLE_Hooks.d.ts +1 -1
- package/dist/UNSTABLE_Hooks.js +50 -6
- package/dist/UNSTABLE_Hooks.js.map +1 -1
- package/dist/components/Base/Base.d.ts +8 -9
- package/dist/components/Base/Base.js +123 -101
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/index.d.ts +1 -1
- package/dist/components/Base/useBase.d.ts +3 -7
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Base/useBaseSubmit.d.ts +3 -5
- package/dist/components/Base/useBaseSubmit.js +27 -50
- package/dist/components/Base/useBaseSubmit.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +17 -16
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +46 -36
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +21 -20
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +20 -19
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
- package/dist/components/Common/Fields/SelectField/SelectField.js +19 -18
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +19 -18
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +10 -9
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -7
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -7
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -9
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -7
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -7
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +13 -12
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +11 -10
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -7
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -7
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +8 -7
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +60 -60
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -9
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -7
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -7
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +10 -9
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +41 -38
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +7 -6
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +14 -13
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +7 -6
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -7
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -7
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -9
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
- package/dist/components/Employee/Profile/HomeAddress.js +38 -36
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +30 -29
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +8 -7
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
- package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -7
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +53 -53
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +8 -7
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +92 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +23 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +72 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +7 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +165 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +103 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
- package/dist/components/Employee/Terminations/index.d.ts +8 -0
- package/dist/components/Employee/Terminations/types.d.ts +1 -0
- package/dist/components/Employee/index.d.ts +7 -0
- package/dist/components/Employee/index.js +34 -28
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequests.js +31 -31
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +6 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +69 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +53 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +18 -15
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +19 -18
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +32 -24
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +45 -45
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -66
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +186 -159
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -196
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +12 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +8 -8
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +40 -32
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -93
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Transition/index.d.ts +3 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +111 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
- package/dist/components/Payroll/helpers.d.ts +2 -1
- package/dist/components/Payroll/helpers.js +98 -87
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +6 -0
- package/dist/components/Payroll/index.js +32 -26
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/payrollTypes.d.ts +21 -0
- package/dist/components/Payroll/payrollTypes.js +27 -0
- package/dist/components/Payroll/payrollTypes.js.map +1 -0
- package/dist/components/Payroll/usePreparedPayrollData.js +4 -4
- package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +29 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +12 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/index.d.ts +14 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +9 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +151 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +114 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +71 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
- package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -47
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
- package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
- package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
- package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
- package/dist/helpers/requiredIf.d.ts +13 -0
- package/dist/helpers/requiredIf.js +8 -0
- package/dist/helpers/requiredIf.js.map +1 -0
- package/dist/i18n/I18n.js +13 -13
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.Transition.json.js +8 -0
- package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +2 -1
- package/dist/i18n/en/common.json.js +9 -9
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14 -13
- package/dist/models/WA_RISK_CODES.d.ts +5 -2866
- package/dist/models/WA_RISK_CODES.js.map +1 -1
- package/dist/shared/constants.d.ts +32 -0
- package/dist/shared/constants.js +83 -65
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +279 -1
- package/dist/types/observability.d.ts +31 -65
- package/dist/types/sdkError.d.ts +97 -0
- package/dist/types/sdkError.js +95 -0
- package/dist/types/sdkError.js.map +1 -0
- package/dist/types/sdkError.test.d.ts +1 -0
- package/docs/reference/endpoint-inventory.json +212 -14
- package/package.json +16 -16
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
- package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +0 -1
package/dist/types/i18next.d.ts
CHANGED
|
@@ -1353,6 +1353,112 @@ export interface EmployeeTaxes{
|
|
|
1353
1353
|
"federalTwoJobs":string;
|
|
1354
1354
|
};
|
|
1355
1355
|
};
|
|
1356
|
+
export interface EmployeeTerminationsTerminateEmployee{
|
|
1357
|
+
"title":string;
|
|
1358
|
+
"subtitle":string;
|
|
1359
|
+
"form":{
|
|
1360
|
+
"lastDayOfEmployment":{
|
|
1361
|
+
"label":string;
|
|
1362
|
+
"description":string;
|
|
1363
|
+
};
|
|
1364
|
+
"payrollOption":{
|
|
1365
|
+
"label":string;
|
|
1366
|
+
"description":string;
|
|
1367
|
+
"options":{
|
|
1368
|
+
"dismissalPayroll":{
|
|
1369
|
+
"label":string;
|
|
1370
|
+
"description":string;
|
|
1371
|
+
};
|
|
1372
|
+
"regularPayroll":{
|
|
1373
|
+
"label":string;
|
|
1374
|
+
"description":string;
|
|
1375
|
+
};
|
|
1376
|
+
"anotherWay":{
|
|
1377
|
+
"label":string;
|
|
1378
|
+
"description":string;
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
"alert":{
|
|
1384
|
+
"dismissalPayroll":{
|
|
1385
|
+
"label":string;
|
|
1386
|
+
"text":string;
|
|
1387
|
+
};
|
|
1388
|
+
"regularPayroll":{
|
|
1389
|
+
"label":string;
|
|
1390
|
+
"text":string;
|
|
1391
|
+
};
|
|
1392
|
+
"anotherWay":{
|
|
1393
|
+
"label":string;
|
|
1394
|
+
"text":string;
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
"actions":{
|
|
1398
|
+
"submit":string;
|
|
1399
|
+
"cancel":string;
|
|
1400
|
+
};
|
|
1401
|
+
"validation":{
|
|
1402
|
+
"lastDayRequired":string;
|
|
1403
|
+
"payrollOptionRequired":string;
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
export interface EmployeeTerminationsTerminationFlow{
|
|
1407
|
+
"cancelSuccess":string;
|
|
1408
|
+
"breadcrumbs":{
|
|
1409
|
+
"form":string;
|
|
1410
|
+
"summary":string;
|
|
1411
|
+
"dismissal":string;
|
|
1412
|
+
};
|
|
1413
|
+
"offCycleCreation":{
|
|
1414
|
+
"loading":string;
|
|
1415
|
+
"error":string;
|
|
1416
|
+
"noPeriodsError":string;
|
|
1417
|
+
"retry":string;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
export interface EmployeeTerminationsTerminationSummary{
|
|
1421
|
+
"title":string;
|
|
1422
|
+
"subtitle":string;
|
|
1423
|
+
"alert":{
|
|
1424
|
+
"success":{
|
|
1425
|
+
"label":string;
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
"dates":{
|
|
1429
|
+
"today":string;
|
|
1430
|
+
"dismissed":string;
|
|
1431
|
+
"lastDayOfWork":string;
|
|
1432
|
+
"lastPayDay":string;
|
|
1433
|
+
};
|
|
1434
|
+
"offboarding":{
|
|
1435
|
+
"title":string;
|
|
1436
|
+
"runPayroll":{
|
|
1437
|
+
"title":string;
|
|
1438
|
+
"description":string;
|
|
1439
|
+
};
|
|
1440
|
+
"taxForms":{
|
|
1441
|
+
"title":string;
|
|
1442
|
+
"description":string;
|
|
1443
|
+
};
|
|
1444
|
+
"disconnectAccounts":{
|
|
1445
|
+
"title":string;
|
|
1446
|
+
"description":string;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
"actions":{
|
|
1450
|
+
"cancelTermination":string;
|
|
1451
|
+
"editDismissal":string;
|
|
1452
|
+
"runDismissalPayroll":string;
|
|
1453
|
+
"runOffCyclePayroll":string;
|
|
1454
|
+
};
|
|
1455
|
+
"cancelDialog":{
|
|
1456
|
+
"title":string;
|
|
1457
|
+
"body":string;
|
|
1458
|
+
"confirm":string;
|
|
1459
|
+
"cancel":string;
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1356
1462
|
export interface InformationRequestsInformationRequestForm{
|
|
1357
1463
|
"title":string;
|
|
1358
1464
|
"blockingAlert":{
|
|
@@ -1490,6 +1596,20 @@ export interface PayrollConfirmWireDetailsForm{
|
|
|
1490
1596
|
"content":string;
|
|
1491
1597
|
};
|
|
1492
1598
|
};
|
|
1599
|
+
export interface PayrollDismissal{
|
|
1600
|
+
"breadcrumbLabel":string;
|
|
1601
|
+
"pageTitle":string;
|
|
1602
|
+
"pageDescription":string;
|
|
1603
|
+
"selectLabel":string;
|
|
1604
|
+
"selectPlaceholder":string;
|
|
1605
|
+
"continueCta":string;
|
|
1606
|
+
"emptyState":string;
|
|
1607
|
+
"errors":{
|
|
1608
|
+
"missingPayrollId":string;
|
|
1609
|
+
"noPayPeriodSelected":string;
|
|
1610
|
+
"invalidPayPeriod":string;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1493
1613
|
export interface PayrollEmployeeSelection{
|
|
1494
1614
|
"sectionTitle":string;
|
|
1495
1615
|
"searchPlaceholder":string;
|
|
@@ -1513,6 +1633,8 @@ export interface PayrollOffCycle{
|
|
|
1513
1633
|
export interface PayrollOffCycleCreation{
|
|
1514
1634
|
"pageTitle":string;
|
|
1515
1635
|
"pageDescription":string;
|
|
1636
|
+
"payPeriodSectionTitle":string;
|
|
1637
|
+
"payPeriodSectionDescription":string;
|
|
1516
1638
|
"continueCta":string;
|
|
1517
1639
|
"includeAllEmployeesLabel":string;
|
|
1518
1640
|
"errors":{
|
|
@@ -1545,6 +1667,7 @@ export interface PayrollOffCyclePayPeriodDateForm{
|
|
|
1545
1667
|
"endDateAfterStart":string;
|
|
1546
1668
|
"startDateNotFuture":string;
|
|
1547
1669
|
"checkDateAchLeadTime":string;
|
|
1670
|
+
"checkDateNotPast":string;
|
|
1548
1671
|
};
|
|
1549
1672
|
};
|
|
1550
1673
|
export interface PayrollOffCycleReasonSelection{
|
|
@@ -1836,6 +1959,7 @@ export interface PayrollPayrollEditEmployee{
|
|
|
1836
1959
|
"doubleOvertime":string;
|
|
1837
1960
|
};
|
|
1838
1961
|
"timeOffTitle":string;
|
|
1962
|
+
"finalPayoutTitle":string;
|
|
1839
1963
|
"timeOffBalance":{
|
|
1840
1964
|
"remaining":string;
|
|
1841
1965
|
};
|
|
@@ -1947,6 +2071,11 @@ export interface PayrollPayrollList{
|
|
|
1947
2071
|
"3":string;
|
|
1948
2072
|
"4":string;
|
|
1949
2073
|
};
|
|
2074
|
+
"offCycleCta":{
|
|
2075
|
+
"title":string;
|
|
2076
|
+
"description":string;
|
|
2077
|
+
"button":string;
|
|
2078
|
+
};
|
|
1950
2079
|
};
|
|
1951
2080
|
export interface PayrollPayrollOverview{
|
|
1952
2081
|
"breadcrumbLabel":string;
|
|
@@ -2186,6 +2315,38 @@ export interface PayrollRecoveryCasesResubmit{
|
|
|
2186
2315
|
};
|
|
2187
2316
|
};
|
|
2188
2317
|
};
|
|
2318
|
+
export interface PayrollTransition{
|
|
2319
|
+
"breadcrumbLabel":string;
|
|
2320
|
+
};
|
|
2321
|
+
export interface PayrollTransitionCreation{
|
|
2322
|
+
"breadcrumbLabel":string;
|
|
2323
|
+
"pageTitle":string;
|
|
2324
|
+
"pageDescription":string;
|
|
2325
|
+
"transitionExplanation":string;
|
|
2326
|
+
"detailsHeading":string;
|
|
2327
|
+
"payPeriodLabel":string;
|
|
2328
|
+
"payScheduleLabel":string;
|
|
2329
|
+
"checkDateLabel":string;
|
|
2330
|
+
"continueCta":string;
|
|
2331
|
+
"errors":{
|
|
2332
|
+
"missingPayrollId":string;
|
|
2333
|
+
"checkDateRequired":string;
|
|
2334
|
+
"checkDateAchLeadTime":string;
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
export interface PayrollTransitionPayrollAlert{
|
|
2338
|
+
"alertTitle":string;
|
|
2339
|
+
"alertDescription":string;
|
|
2340
|
+
"runPayroll":string;
|
|
2341
|
+
"skipPayroll":string;
|
|
2342
|
+
"skipSuccessAlert":string;
|
|
2343
|
+
"skipDialog":{
|
|
2344
|
+
"title":string;
|
|
2345
|
+
"body":string;
|
|
2346
|
+
"confirmCta":string;
|
|
2347
|
+
"cancelCta":string;
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
2189
2350
|
export interface PayrollWireInstructions{
|
|
2190
2351
|
"title":string;
|
|
2191
2352
|
"subtitle":string;
|
|
@@ -2223,12 +2384,129 @@ export interface PayrollWireInstructions{
|
|
|
2223
2384
|
"confirm":string;
|
|
2224
2385
|
};
|
|
2225
2386
|
};
|
|
2387
|
+
export interface UNSTABLECompensationForm{
|
|
2388
|
+
"title":string;
|
|
2389
|
+
"editTitle":string;
|
|
2390
|
+
"addTitle":string;
|
|
2391
|
+
"jobTitle":string;
|
|
2392
|
+
"employeeClassification":string;
|
|
2393
|
+
"classificationLink":string;
|
|
2394
|
+
"amount":string;
|
|
2395
|
+
"paymentUnitLabel":string;
|
|
2396
|
+
"paymentUnitDescription":string;
|
|
2397
|
+
"adjustForMinimumWage":string;
|
|
2398
|
+
"adjustForMinimumWageDescription":string;
|
|
2399
|
+
"minimumWageLabel":string;
|
|
2400
|
+
"minimumWageDescription":string;
|
|
2401
|
+
"twoPercentStakeholderLabel":string;
|
|
2402
|
+
"stateWcCoveredLabel":string;
|
|
2403
|
+
"stateWcCoveredDescription":string;
|
|
2404
|
+
"stateWcCoveredYes":string;
|
|
2405
|
+
"stateWcCoveredNo":string;
|
|
2406
|
+
"stateWcClassCodeLabel":string;
|
|
2407
|
+
"stateWcClassCodeDescription":string;
|
|
2408
|
+
"submitCta":string;
|
|
2409
|
+
"saveNewJobCta":string;
|
|
2410
|
+
"flsaStatusLabels":{
|
|
2411
|
+
"Commission Only Exempt":string;
|
|
2412
|
+
"Commission Only Nonexempt":string;
|
|
2413
|
+
"Exempt":string;
|
|
2414
|
+
"Nonexempt":string;
|
|
2415
|
+
"Owner":string;
|
|
2416
|
+
"Salaried Nonexempt":string;
|
|
2417
|
+
};
|
|
2418
|
+
"paymentUnitOptions":{
|
|
2419
|
+
"Hour":string;
|
|
2420
|
+
"Month":string;
|
|
2421
|
+
"Paycheck":string;
|
|
2422
|
+
"Week":string;
|
|
2423
|
+
"Year":string;
|
|
2424
|
+
};
|
|
2425
|
+
"startDateLabel":string;
|
|
2426
|
+
"fieldValidations":{
|
|
2427
|
+
"startDate":{
|
|
2428
|
+
"REQUIRED":string;
|
|
2429
|
+
};
|
|
2430
|
+
"jobTitle":{
|
|
2431
|
+
"REQUIRED":string;
|
|
2432
|
+
};
|
|
2433
|
+
"flsaStatus":{
|
|
2434
|
+
"REQUIRED":string;
|
|
2435
|
+
};
|
|
2436
|
+
"rate":{
|
|
2437
|
+
"REQUIRED":string;
|
|
2438
|
+
"RATE_MINIMUM":string;
|
|
2439
|
+
"RATE_EXEMPT_THRESHOLD":string;
|
|
2440
|
+
};
|
|
2441
|
+
"paymentUnit":{
|
|
2442
|
+
"REQUIRED":string;
|
|
2443
|
+
};
|
|
2444
|
+
"minimumWageId":{
|
|
2445
|
+
"REQUIRED":string;
|
|
2446
|
+
};
|
|
2447
|
+
"stateWcClassCode":{
|
|
2448
|
+
"REQUIRED":string;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
export interface UNSTABLEEmployeeDetailsForm{
|
|
2453
|
+
"addTitle":string;
|
|
2454
|
+
"editTitle":string;
|
|
2455
|
+
"firstNameLabel":string;
|
|
2456
|
+
"middleInitialLabel":string;
|
|
2457
|
+
"lastNameLabel":string;
|
|
2458
|
+
"emailLabel":string;
|
|
2459
|
+
"emailDescription":string;
|
|
2460
|
+
"dateOfBirthLabel":string;
|
|
2461
|
+
"ssnLabel":string;
|
|
2462
|
+
"selfOnboardingLabel":string;
|
|
2463
|
+
"selfOnboardingDescription":string;
|
|
2464
|
+
"createCta":string;
|
|
2465
|
+
"updateCta":string;
|
|
2466
|
+
"fieldValidations":{
|
|
2467
|
+
"firstName":{
|
|
2468
|
+
"REQUIRED":string;
|
|
2469
|
+
"INVALID_NAME":string;
|
|
2470
|
+
};
|
|
2471
|
+
"lastName":{
|
|
2472
|
+
"REQUIRED":string;
|
|
2473
|
+
"INVALID_NAME":string;
|
|
2474
|
+
};
|
|
2475
|
+
"email":{
|
|
2476
|
+
"REQUIRED":string;
|
|
2477
|
+
"INVALID_EMAIL":string;
|
|
2478
|
+
"EMAIL_REQUIRED_FOR_SELF_ONBOARDING":string;
|
|
2479
|
+
};
|
|
2480
|
+
"ssn":{
|
|
2481
|
+
"INVALID_SSN":string;
|
|
2482
|
+
};
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
export interface UNSTABLEWorkAddressForm{
|
|
2486
|
+
"addTitle":string;
|
|
2487
|
+
"editTitle":string;
|
|
2488
|
+
"locationLabel":string;
|
|
2489
|
+
"locationDescription":string;
|
|
2490
|
+
"effectiveDateLabel":string;
|
|
2491
|
+
"effectiveDateDescription":string;
|
|
2492
|
+
"createCta":string;
|
|
2493
|
+
"updateCta":string;
|
|
2494
|
+
"fieldValidations":{
|
|
2495
|
+
"locationUuid":{
|
|
2496
|
+
"REQUIRED":string;
|
|
2497
|
+
};
|
|
2498
|
+
"effectiveDate":{
|
|
2499
|
+
"REQUIRED":string;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2226
2503
|
export interface common{
|
|
2227
2504
|
"status":{
|
|
2228
2505
|
"loading":string;
|
|
2229
2506
|
"loadingOptions":string;
|
|
2230
2507
|
"requiredField":string;
|
|
2231
2508
|
"errorEncountered":string;
|
|
2509
|
+
"multipleErrorsEncountered":string;
|
|
2232
2510
|
};
|
|
2233
2511
|
"optionalLabel":string;
|
|
2234
2512
|
"progressBarLabel":string;
|
|
@@ -2408,6 +2686,6 @@ export interface common{
|
|
|
2408
2686
|
|
|
2409
2687
|
interface CustomTypeOptions {
|
|
2410
2688
|
defaultNS: 'common';
|
|
2411
|
-
resources: { 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Contractor.ContractorList': ContractorContractorList, 'Contractor.NewHireReport': ContractorNewHireReport, 'Contractor.PaymentMethod': ContractorPaymentMethod, 'Contractor.Payments.CreatePayment': ContractorPaymentsCreatePayment, 'Contractor.Payments.PaymentHistory': ContractorPaymentsPaymentHistory, 'Contractor.Payments.PaymentStatement': ContractorPaymentsPaymentStatement, 'Contractor.Payments.PaymentSummary': ContractorPaymentsPaymentSummary, 'Contractor.Payments.PaymentsList': ContractorPaymentsPaymentsList, 'Contractor.Profile': ContractorProfile, 'Contractor.Submit': ContractorSubmit, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeDocuments': EmployeeEmployeeDocuments, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.EmploymentEligibility': EmployeeEmploymentEligibility, 'Employee.FederalTaxes': EmployeeFederalTaxes, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.I9SignatureForm': EmployeeI9SignatureForm, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'InformationRequests.InformationRequestForm': InformationRequestsInformationRequestForm, 'InformationRequests.InformationRequestList': InformationRequestsInformationRequestList, 'InformationRequests': InformationRequests, 'Payroll.Common': PayrollCommon, 'Payroll.ConfirmWireDetailsBanner': PayrollConfirmWireDetailsBanner, 'Payroll.ConfirmWireDetailsForm': PayrollConfirmWireDetailsForm, 'Payroll.EmployeeSelection': PayrollEmployeeSelection, 'Payroll.GrossUpModal': PayrollGrossUpModal, 'Payroll.OffCycle': PayrollOffCycle, 'Payroll.OffCycleCreation': PayrollOffCycleCreation, 'Payroll.OffCycleDeductionsSetting': PayrollOffCycleDeductionsSetting, 'Payroll.OffCyclePayPeriodDateForm': PayrollOffCyclePayPeriodDateForm, 'Payroll.OffCycleReasonSelection': PayrollOffCycleReasonSelection, 'Payroll.OffCycleTaxWithholding': PayrollOffCycleTaxWithholding, 'Payroll.PayrollBlocker': PayrollPayrollBlocker, 'Payroll.PayrollConfiguration': PayrollPayrollConfiguration, 'Payroll.PayrollEditEmployee': PayrollPayrollEditEmployee, 'Payroll.PayrollFlow': PayrollPayrollFlow, 'Payroll.PayrollHistory': PayrollPayrollHistory, 'Payroll.PayrollLanding': PayrollPayrollLanding, 'Payroll.PayrollList': PayrollPayrollList, 'Payroll.PayrollOverview': PayrollPayrollOverview, 'Payroll.PayrollReceipts': PayrollPayrollReceipts, 'Payroll.RecoveryCasesList': PayrollRecoveryCasesList, 'Payroll.RecoveryCasesResubmit': PayrollRecoveryCasesResubmit, 'Payroll.WireInstructions': PayrollWireInstructions, 'common': common, }
|
|
2689
|
+
resources: { 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Contractor.ContractorList': ContractorContractorList, 'Contractor.NewHireReport': ContractorNewHireReport, 'Contractor.PaymentMethod': ContractorPaymentMethod, 'Contractor.Payments.CreatePayment': ContractorPaymentsCreatePayment, 'Contractor.Payments.PaymentHistory': ContractorPaymentsPaymentHistory, 'Contractor.Payments.PaymentStatement': ContractorPaymentsPaymentStatement, 'Contractor.Payments.PaymentSummary': ContractorPaymentsPaymentSummary, 'Contractor.Payments.PaymentsList': ContractorPaymentsPaymentsList, 'Contractor.Profile': ContractorProfile, 'Contractor.Submit': ContractorSubmit, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeDocuments': EmployeeEmployeeDocuments, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.EmploymentEligibility': EmployeeEmploymentEligibility, 'Employee.FederalTaxes': EmployeeFederalTaxes, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.I9SignatureForm': EmployeeI9SignatureForm, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'Employee.Terminations.TerminateEmployee': EmployeeTerminationsTerminateEmployee, 'Employee.Terminations.TerminationFlow': EmployeeTerminationsTerminationFlow, 'Employee.Terminations.TerminationSummary': EmployeeTerminationsTerminationSummary, 'InformationRequests.InformationRequestForm': InformationRequestsInformationRequestForm, 'InformationRequests.InformationRequestList': InformationRequestsInformationRequestList, 'InformationRequests': InformationRequests, 'Payroll.Common': PayrollCommon, 'Payroll.ConfirmWireDetailsBanner': PayrollConfirmWireDetailsBanner, 'Payroll.ConfirmWireDetailsForm': PayrollConfirmWireDetailsForm, 'Payroll.Dismissal': PayrollDismissal, 'Payroll.EmployeeSelection': PayrollEmployeeSelection, 'Payroll.GrossUpModal': PayrollGrossUpModal, 'Payroll.OffCycle': PayrollOffCycle, 'Payroll.OffCycleCreation': PayrollOffCycleCreation, 'Payroll.OffCycleDeductionsSetting': PayrollOffCycleDeductionsSetting, 'Payroll.OffCyclePayPeriodDateForm': PayrollOffCyclePayPeriodDateForm, 'Payroll.OffCycleReasonSelection': PayrollOffCycleReasonSelection, 'Payroll.OffCycleTaxWithholding': PayrollOffCycleTaxWithholding, 'Payroll.PayrollBlocker': PayrollPayrollBlocker, 'Payroll.PayrollConfiguration': PayrollPayrollConfiguration, 'Payroll.PayrollEditEmployee': PayrollPayrollEditEmployee, 'Payroll.PayrollFlow': PayrollPayrollFlow, 'Payroll.PayrollHistory': PayrollPayrollHistory, 'Payroll.PayrollLanding': PayrollPayrollLanding, 'Payroll.PayrollList': PayrollPayrollList, 'Payroll.PayrollOverview': PayrollPayrollOverview, 'Payroll.PayrollReceipts': PayrollPayrollReceipts, 'Payroll.RecoveryCasesList': PayrollRecoveryCasesList, 'Payroll.RecoveryCasesResubmit': PayrollRecoveryCasesResubmit, 'Payroll.Transition': PayrollTransition, 'Payroll.TransitionCreation': PayrollTransitionCreation, 'Payroll.TransitionPayrollAlert': PayrollTransitionPayrollAlert, 'Payroll.WireInstructions': PayrollWireInstructions, 'UNSTABLE.CompensationForm': UNSTABLECompensationForm, 'UNSTABLE.EmployeeDetailsForm': UNSTABLEEmployeeDetailsForm, 'UNSTABLE.WorkAddressForm': UNSTABLEWorkAddressForm, 'common': common, }
|
|
2412
2690
|
};
|
|
2413
2691
|
}
|
|
@@ -1,45 +1,22 @@
|
|
|
1
|
+
import { SDKError } from './sdkError';
|
|
2
|
+
export type ObservabilityMetricUnit = 'ms' | 'count' | 'bytes' | 'percent';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
4
|
+
* An `SDKError` enriched with internal component context for observability telemetry.
|
|
5
|
+
*
|
|
6
|
+
* Partners receive this type through `ObservabilityHook.onError`. It extends the
|
|
7
|
+
* core `SDKError` with `timestamp`, `componentName`, and `componentStack` so that
|
|
8
|
+
* error-tracking tools (e.g. Sentry) can correlate and group errors.
|
|
9
|
+
*
|
|
10
|
+
* The base `SDKError` (without these fields) is the type used in partner-facing
|
|
11
|
+
* hooks like `useEmployeeForm`, keeping the public API clean.
|
|
3
12
|
*/
|
|
4
|
-
export
|
|
5
|
-
export type ObservabilityMetricUnit = 'ms' | 'count' | 'bytes' | 'percent';
|
|
6
|
-
export interface ObservabilityErrorContext {
|
|
7
|
-
/** Name of the component where error occurred */
|
|
8
|
-
componentName?: string;
|
|
9
|
-
/** Props passed to the component (sanitized, no sensitive data) */
|
|
10
|
-
componentProps?: Record<string, unknown>;
|
|
11
|
-
/** For validation errors, the schema that failed */
|
|
12
|
-
validationSchema?: string;
|
|
13
|
-
/** React component stack trace */
|
|
14
|
-
componentStack?: string;
|
|
15
|
-
/** Operation ID for API-related errors */
|
|
16
|
-
operationId?: string;
|
|
17
|
-
/** HTTP status code for API errors */
|
|
18
|
-
statusCode?: number;
|
|
19
|
-
/** Request details for API errors */
|
|
20
|
-
request?: {
|
|
21
|
-
url: string;
|
|
22
|
-
method: string;
|
|
23
|
-
};
|
|
24
|
-
/** Any additional context */
|
|
25
|
-
metadata?: Record<string, unknown>;
|
|
26
|
-
}
|
|
27
|
-
export interface ObservabilityError {
|
|
28
|
-
/** Type of error that occurred */
|
|
29
|
-
type: ObservabilityErrorType;
|
|
30
|
-
/** Human-readable error message */
|
|
31
|
-
message: string;
|
|
32
|
-
/** Error stack trace if available */
|
|
33
|
-
stack?: string;
|
|
34
|
-
/** Context about where/how the error occurred */
|
|
35
|
-
context: ObservabilityErrorContext;
|
|
36
|
-
/**
|
|
37
|
-
* The original error object (may be undefined when sanitization.includeOriginalError is false)
|
|
38
|
-
* Default sanitization removes this to prevent PII leakage
|
|
39
|
-
*/
|
|
40
|
-
originalError?: unknown;
|
|
13
|
+
export interface ObservabilityError extends SDKError {
|
|
41
14
|
/** When the error occurred (Unix timestamp in milliseconds) */
|
|
42
15
|
timestamp: number;
|
|
16
|
+
/** SDK component where the error occurred (e.g. "Employee.Profile") */
|
|
17
|
+
componentName?: string;
|
|
18
|
+
/** React component stack trace (present only for errors caught by ErrorBoundary) */
|
|
19
|
+
componentStack?: string;
|
|
43
20
|
}
|
|
44
21
|
export interface ObservabilityMetric {
|
|
45
22
|
/** Metric name (e.g., 'sdk.form.submit_duration', 'sdk.component.loading_duration') */
|
|
@@ -62,10 +39,10 @@ export interface SanitizationConfig {
|
|
|
62
39
|
*/
|
|
63
40
|
enabled?: boolean;
|
|
64
41
|
/**
|
|
65
|
-
* Whether to include the
|
|
66
|
-
* WARNING:
|
|
42
|
+
* Whether to include the raw error object on SDKError. Default: false
|
|
43
|
+
* WARNING: Raw errors may contain sensitive data from form inputs or API responses
|
|
67
44
|
*/
|
|
68
|
-
|
|
45
|
+
includeRawError?: boolean;
|
|
69
46
|
/**
|
|
70
47
|
* Custom sanitization function for errors
|
|
71
48
|
*/
|
|
@@ -82,10 +59,6 @@ export interface SanitizationConfig {
|
|
|
82
59
|
/**
|
|
83
60
|
* Observability hook interface for SDK consumers to implement
|
|
84
61
|
*
|
|
85
|
-
* This hook enables error tracking and performance monitoring for the SDK.
|
|
86
|
-
* Errors caught by error boundaries and validation failures will be reported through onError.
|
|
87
|
-
* Performance metrics for forms, components, and flows will be reported through onMetric.
|
|
88
|
-
*
|
|
89
62
|
* @example
|
|
90
63
|
* ```tsx
|
|
91
64
|
* import * as Sentry from '@sentry/react'
|
|
@@ -95,29 +68,22 @@ export interface SanitizationConfig {
|
|
|
95
68
|
* config={{
|
|
96
69
|
* baseUrl: '/api/',
|
|
97
70
|
* observability: {
|
|
98
|
-
* onError: (error) => {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* sentryError.name = error.type
|
|
102
|
-
* if (error.stack) {
|
|
103
|
-
* sentryError.stack = error.stack
|
|
104
|
-
* }
|
|
105
|
-
*
|
|
106
|
-
* Sentry.captureException(sentryError, {
|
|
107
|
-
* level: error.type === 'validation_error' ? 'warning' : 'error',
|
|
71
|
+
* onError: (error: ObservabilityError) => {
|
|
72
|
+
* Sentry.captureException(error.raw, {
|
|
73
|
+
* level: error.category === 'validation_error' ? 'warning' : 'error',
|
|
108
74
|
* tags: {
|
|
109
|
-
*
|
|
110
|
-
* component: error.
|
|
75
|
+
* error_category: error.category,
|
|
76
|
+
* component: error.componentName ?? 'unknown',
|
|
77
|
+
* http_status: String(error.httpStatus ?? ''),
|
|
111
78
|
* },
|
|
112
79
|
* })
|
|
113
80
|
* },
|
|
114
81
|
* onMetric: (metric) => {
|
|
115
|
-
* // Send to your metrics service
|
|
116
82
|
* console.log(`[Metric] ${metric.name}: ${metric.value}${metric.unit}`)
|
|
117
83
|
* },
|
|
118
84
|
* sanitization: {
|
|
119
85
|
* enabled: true,
|
|
120
|
-
*
|
|
86
|
+
* includeRawError: false,
|
|
121
87
|
* }
|
|
122
88
|
* }
|
|
123
89
|
* }}
|
|
@@ -128,18 +94,18 @@ export interface SanitizationConfig {
|
|
|
128
94
|
*/
|
|
129
95
|
export interface ObservabilityHook {
|
|
130
96
|
/**
|
|
131
|
-
* Called when an error is caught by error boundaries or
|
|
132
|
-
*
|
|
97
|
+
* Called when an error is caught by error boundaries or form submission fails.
|
|
98
|
+
* Receives an `ObservabilityError` — an `SDKError` enriched with `componentName`
|
|
99
|
+
* and (for boundary errors) `componentStack`.
|
|
133
100
|
*/
|
|
134
101
|
onError?: (error: ObservabilityError) => void;
|
|
135
102
|
/**
|
|
136
|
-
* Called to track performance metrics for component operations
|
|
137
|
-
* Optional - can be used for tracking render times, flow completions, etc.
|
|
103
|
+
* Called to track performance metrics for component operations.
|
|
138
104
|
*/
|
|
139
105
|
onMetric?: (metric: ObservabilityMetric) => void;
|
|
140
106
|
/**
|
|
141
|
-
* Configuration for sanitizing data before sending to observability tools
|
|
142
|
-
* Default: { enabled: true,
|
|
107
|
+
* Configuration for sanitizing data before sending to observability tools.
|
|
108
|
+
* Default: { enabled: true, includeRawError: false }
|
|
143
109
|
*/
|
|
144
110
|
sanitization?: SanitizationConfig;
|
|
145
111
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* High-level classification of where/how the error originated.
|
|
3
|
+
*
|
|
4
|
+
* - `api_error` — HTTP error response from the Gusto API (422, 404, 409, 500, etc.)
|
|
5
|
+
* - `validation_error` — Client-side Zod schema validation before the request was sent
|
|
6
|
+
* - `network_error` — Network connectivity failure (connection refused, timeout, abort)
|
|
7
|
+
* - `internal_error` — Unexpected runtime error (unhandled exception, initialization failure)
|
|
8
|
+
*/
|
|
9
|
+
export declare const SDKErrorCategories: {
|
|
10
|
+
readonly API_ERROR: "api_error";
|
|
11
|
+
readonly VALIDATION_ERROR: "validation_error";
|
|
12
|
+
readonly NETWORK_ERROR: "network_error";
|
|
13
|
+
readonly INTERNAL_ERROR: "internal_error";
|
|
14
|
+
};
|
|
15
|
+
export type SDKErrorCategory = (typeof SDKErrorCategories)[keyof typeof SDKErrorCategories];
|
|
16
|
+
/**
|
|
17
|
+
* An error thrown by internal SDK logic that should be caught and normalized
|
|
18
|
+
* by `baseSubmitHandler` rather than propagating to the ErrorBoundary.
|
|
19
|
+
*
|
|
20
|
+
* Use this for guard clauses and data integrity checks inside submit handler
|
|
21
|
+
* callbacks where the error should surface as an inline banner, not a crash.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* await baseSubmitHandler(data, async () => {
|
|
26
|
+
* const response = await createPayroll({ ... })
|
|
27
|
+
* if (!response.payrollId) {
|
|
28
|
+
* throw new SDKInternalError('Missing payroll ID in response')
|
|
29
|
+
* }
|
|
30
|
+
* })
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class SDKInternalError extends Error {
|
|
34
|
+
readonly category: SDKErrorCategory;
|
|
35
|
+
constructor(message: string, category?: SDKErrorCategory);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A flattened, field-level error extracted from an API response.
|
|
39
|
+
*
|
|
40
|
+
* For API errors with `errors[]`, nested structures are recursively flattened
|
|
41
|
+
* into leaf entries. The `field` property is the dot-separated camelCase path
|
|
42
|
+
* (e.g. `"states.CA.filingStatus.value"`).
|
|
43
|
+
*/
|
|
44
|
+
export interface SDKFieldError {
|
|
45
|
+
/** Dot-separated camelCase field path (e.g. "firstName", "states.CA.filingStatus.value") */
|
|
46
|
+
field: string;
|
|
47
|
+
/** API error category (e.g. "invalid_attribute_value", "invalid_operation", "payroll_blocker") */
|
|
48
|
+
category: string;
|
|
49
|
+
/** Human-readable error message from the API */
|
|
50
|
+
message: string;
|
|
51
|
+
/** Additional metadata from the API (e.g. `{ key: "missing_bank_info" }` for payroll blockers) */
|
|
52
|
+
metadata?: Record<string, unknown>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The unified SDK error type for all error scenarios.
|
|
56
|
+
*
|
|
57
|
+
* This is the core error shape exposed through partner-facing hooks. For
|
|
58
|
+
* observability telemetry (which includes component context), see
|
|
59
|
+
* `ObservabilityError` in `@/types/observability`.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* const { error } = useEmployeeForm({ employeeId })
|
|
64
|
+
*
|
|
65
|
+
* if (error) {
|
|
66
|
+
* console.log(error.category) // 'api_error'
|
|
67
|
+
* console.log(error.httpStatus) // 422
|
|
68
|
+
* console.log(error.fieldErrors) // [{ field: 'firstName', ... }]
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export interface SDKError {
|
|
73
|
+
/** High-level error classification */
|
|
74
|
+
category: SDKErrorCategory;
|
|
75
|
+
/** Human-readable error summary */
|
|
76
|
+
message: string;
|
|
77
|
+
/** HTTP status code (undefined for non-HTTP errors like network or validation) */
|
|
78
|
+
httpStatus?: number;
|
|
79
|
+
/** Flattened field-level errors from API responses. Empty array for non-field errors. */
|
|
80
|
+
fieldErrors: SDKFieldError[];
|
|
81
|
+
/**
|
|
82
|
+
* The original error object for advanced use cases.
|
|
83
|
+
* May be stripped by sanitization (controlled by `sanitization.includeRawError`).
|
|
84
|
+
*/
|
|
85
|
+
raw?: unknown;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Normalizes any caught error into a unified `SDKError`.
|
|
89
|
+
*
|
|
90
|
+
* Classification is based purely on the error type:
|
|
91
|
+
* - `SDKInternalError` → uses the error's own `category` (default: `internal_error`)
|
|
92
|
+
* - `GustoEmbeddedError` subclasses → `api_error`
|
|
93
|
+
* - `SDKValidationError` → `validation_error`
|
|
94
|
+
* - `HTTPClientError` subclasses → `network_error`
|
|
95
|
+
* - Everything else → `internal_error`
|
|
96
|
+
*/
|
|
97
|
+
export declare function normalizeToSDKError(error: unknown): SDKError;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { GustoEmbeddedError as n } from "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
2
|
+
import { HTTPClientError as o } from "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
3
|
+
import { SDKValidationError as i } from "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
4
|
+
import { getFieldErrors as c } from "../helpers/apiErrorToList.js";
|
|
5
|
+
class f extends Error {
|
|
6
|
+
category;
|
|
7
|
+
constructor(r, t = "internal_error") {
|
|
8
|
+
super(r), this.name = "SDKInternalError", this.category = t;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function g(e) {
|
|
12
|
+
return e !== null && typeof e == "object" && "errors" in e && Array.isArray(e.errors);
|
|
13
|
+
}
|
|
14
|
+
function a(e) {
|
|
15
|
+
return {
|
|
16
|
+
field: e.errorKey,
|
|
17
|
+
message: e.message ?? "",
|
|
18
|
+
category: e.category,
|
|
19
|
+
metadata: e.metadata
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function m(e) {
|
|
23
|
+
const r = e.flatMap((t) => c(t));
|
|
24
|
+
return r.length > 0 ? r.map(a) : e.filter((t) => t.message).map(a);
|
|
25
|
+
}
|
|
26
|
+
function u(e) {
|
|
27
|
+
return {
|
|
28
|
+
errorKey: e.errorKey ?? e.error_key ?? "",
|
|
29
|
+
category: e.category,
|
|
30
|
+
message: e.message,
|
|
31
|
+
metadata: e.metadata
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function l(e) {
|
|
35
|
+
if (!e) return [];
|
|
36
|
+
try {
|
|
37
|
+
const r = JSON.parse(e);
|
|
38
|
+
if (r !== null && typeof r == "object" && "errors" in r && Array.isArray(r.errors))
|
|
39
|
+
return r.errors.filter((s) => s.message).map(u).map(a);
|
|
40
|
+
} catch {
|
|
41
|
+
}
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
function d(e, r) {
|
|
45
|
+
return e.length === 0 ? r : e.length === 1 ? "1 field has issues" : `${e.length} fields have issues`;
|
|
46
|
+
}
|
|
47
|
+
function K(e) {
|
|
48
|
+
if (e instanceof f)
|
|
49
|
+
return {
|
|
50
|
+
category: e.category,
|
|
51
|
+
message: e.message,
|
|
52
|
+
fieldErrors: [],
|
|
53
|
+
raw: e
|
|
54
|
+
};
|
|
55
|
+
if (e instanceof i)
|
|
56
|
+
return {
|
|
57
|
+
category: "validation_error",
|
|
58
|
+
message: typeof e.rawMessage == "string" ? e.rawMessage : e.message,
|
|
59
|
+
fieldErrors: [],
|
|
60
|
+
raw: e
|
|
61
|
+
};
|
|
62
|
+
if (e instanceof o)
|
|
63
|
+
return {
|
|
64
|
+
category: "network_error",
|
|
65
|
+
message: e.message,
|
|
66
|
+
fieldErrors: [],
|
|
67
|
+
raw: e
|
|
68
|
+
};
|
|
69
|
+
if (e instanceof n) {
|
|
70
|
+
const r = e.httpMeta.response.status, t = g(e) ? m(e.errors) : l(e.httpMeta.body);
|
|
71
|
+
return {
|
|
72
|
+
category: "api_error",
|
|
73
|
+
message: d(t, e.message),
|
|
74
|
+
httpStatus: r,
|
|
75
|
+
fieldErrors: t,
|
|
76
|
+
raw: e
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
return e instanceof Error ? {
|
|
80
|
+
category: "internal_error",
|
|
81
|
+
message: e.message,
|
|
82
|
+
fieldErrors: [],
|
|
83
|
+
raw: e
|
|
84
|
+
} : {
|
|
85
|
+
category: "internal_error",
|
|
86
|
+
message: "An unknown error occurred",
|
|
87
|
+
fieldErrors: [],
|
|
88
|
+
raw: e
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
f as SDKInternalError,
|
|
93
|
+
K as normalizeToSDKError
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=sdkError.js.map
|