@gusto/embedded-react-sdk 0.36.0 → 0.37.0-rc.2
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 -102
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/createCompoundContext.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/DataView/DataCards/DataCards.js +42 -36
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
- package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
- 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 +30 -27
- 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 +31 -28
- 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 +24 -21
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
- package/dist/components/Common/Fields/hooks/useField.js +37 -33
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.js +33 -29
- package/dist/components/Common/UI/Button/Button.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
- package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
- package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -9
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -11
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -9
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +8 -11
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +6 -8
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -11
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +8 -11
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +11 -12
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +10 -14
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -9
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +17 -19
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -9
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +8 -9
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +60 -63
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -11
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -9
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -9
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +3 -7
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +6 -8
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +10 -11
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +29 -30
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +33 -32
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +20 -22
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +12 -14
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +27 -28
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +23 -25
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +61 -57
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +15 -16
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +15 -16
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +6 -9
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -8
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +16 -17
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -9
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
- package/dist/components/Employee/FederalTaxes/FederalForm.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 -9
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +14 -15
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +9 -10
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -11
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +8 -11
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
- package/dist/components/Employee/Profile/HomeAddress.js +45 -44
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
- package/dist/components/Employee/Profile/PersonalDetailsInputs.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 -9
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +8 -11
- package/dist/components/Employee/StateTaxes/Actions.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 -9
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -11
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +10 -13
- package/dist/components/Employee/Taxes/FederalForm.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 -9
- 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 +89 -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 +24 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +76 -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 +8 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +177 -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 +100 -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/Flow/Flow.js +20 -23
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequests.js +34 -35
- 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/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.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 +7 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +73 -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 +50 -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.d.ts +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +89 -76
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
- package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +25 -18
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +5 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +31 -24
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +78 -75
- 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 -68
- 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.js +18 -26
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +4 -4
- 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/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +174 -148
- 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 +71 -71
- 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 +5 -3
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +256 -219
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +19 -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 +38 -40
- 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 +55 -43
- 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 -95
- 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/PayrollOverview/PayrollOverview.js +15 -15
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +59 -59
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.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 +109 -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 +6 -1
- package/dist/components/Payroll/helpers.js +100 -84
- 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 +6 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- 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 +10 -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 +11 -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 +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -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 +12 -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 +12 -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 +11 -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 +13 -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 +16 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -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 +8 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.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 +149 -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 +112 -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 +69 -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 -50
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.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/contexts/ThemeProvider/useTheme.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 +7 -7
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
- 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.GrossUpModal.json.js +16 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- 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.OffCycleTaxWithholding.json.js +5 -5
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +31 -25
- 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 +707 -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 +17 -17
- 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
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkError.js","sources":["../../src/types/sdkError.ts"],"sourcesContent":["import type { EntityErrorObject } from '@gusto/embedded-api/models/components/entityerrorobject'\nimport { GustoEmbeddedError } from '@gusto/embedded-api/models/errors/gustoembeddederror'\nimport { HTTPClientError } from '@gusto/embedded-api/models/errors/httpclienterrors'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { getFieldErrors } from '@/helpers/apiErrorToList'\n\n/**\n * High-level classification of where/how the error originated.\n *\n * - `api_error` — HTTP error response from the Gusto API (422, 404, 409, 500, etc.)\n * - `validation_error` — Client-side Zod schema validation before the request was sent\n * - `network_error` — Network connectivity failure (connection refused, timeout, abort)\n * - `internal_error` — Unexpected runtime error (unhandled exception, initialization failure)\n */\nexport const SDKErrorCategories = {\n API_ERROR: 'api_error',\n VALIDATION_ERROR: 'validation_error',\n NETWORK_ERROR: 'network_error',\n INTERNAL_ERROR: 'internal_error',\n} as const\n\nexport type SDKErrorCategory = (typeof SDKErrorCategories)[keyof typeof SDKErrorCategories]\n\n/**\n * An error thrown by internal SDK logic that should be caught and normalized\n * by `baseSubmitHandler` rather than propagating to the ErrorBoundary.\n *\n * Use this for guard clauses and data integrity checks inside submit handler\n * callbacks where the error should surface as an inline banner, not a crash.\n *\n * @example\n * ```typescript\n * await baseSubmitHandler(data, async () => {\n * const response = await createPayroll({ ... })\n * if (!response.payrollId) {\n * throw new SDKInternalError('Missing payroll ID in response')\n * }\n * })\n * ```\n */\nexport class SDKInternalError extends Error {\n readonly category: SDKErrorCategory\n\n constructor(message: string, category: SDKErrorCategory = 'internal_error') {\n super(message)\n this.name = 'SDKInternalError'\n this.category = category\n }\n}\n\n/**\n * A flattened, field-level error extracted from an API response.\n *\n * For API errors with `errors[]`, nested structures are recursively flattened\n * into leaf entries. The `field` property is the dot-separated camelCase path\n * (e.g. `\"states.CA.filingStatus.value\"`).\n */\nexport interface SDKFieldError {\n /** Dot-separated camelCase field path (e.g. \"firstName\", \"states.CA.filingStatus.value\") */\n field: string\n /** API error category (e.g. \"invalid_attribute_value\", \"invalid_operation\", \"payroll_blocker\") */\n category: string\n /** Human-readable error message from the API */\n message: string\n /** Additional metadata from the API (e.g. `{ key: \"missing_bank_info\" }` for payroll blockers) */\n metadata?: Record<string, unknown>\n}\n\n/**\n * The unified SDK error type for all error scenarios.\n *\n * This is the core error shape exposed through partner-facing hooks. For\n * observability telemetry (which includes component context), see\n * `ObservabilityError` in `@/types/observability`.\n *\n * @example\n * ```tsx\n * const { error } = useEmployeeForm({ employeeId })\n *\n * if (error) {\n * console.log(error.category) // 'api_error'\n * console.log(error.httpStatus) // 422\n * console.log(error.fieldErrors) // [{ field: 'firstName', ... }]\n * }\n * ```\n */\nexport interface SDKError {\n /** High-level error classification */\n category: SDKErrorCategory\n\n /** Human-readable error summary */\n message: string\n\n /** HTTP status code (undefined for non-HTTP errors like network or validation) */\n httpStatus?: number\n\n /** Flattened field-level errors from API responses. Empty array for non-field errors. */\n fieldErrors: SDKFieldError[]\n\n /**\n * The original error object for advanced use cases.\n * May be stripped by sanitization (controlled by `sanitization.includeRawError`).\n */\n raw?: unknown\n}\n\ninterface ErrorWithErrors {\n errors: EntityErrorObject[]\n}\n\nfunction hasErrorsArray(error: unknown): error is ErrorWithErrors {\n return (\n error !== null &&\n typeof error === 'object' &&\n 'errors' in error &&\n Array.isArray((error as ErrorWithErrors).errors)\n )\n}\n\nfunction toSDKFieldError(entityError: EntityErrorObject): SDKFieldError {\n return {\n field: entityError.errorKey,\n message: entityError.message ?? '',\n category: entityError.category,\n metadata: entityError.metadata as Record<string, unknown> | undefined,\n }\n}\n\n/**\n * Extracts and flattens field errors from an API error's `errors[]` array.\n *\n * Uses the existing `getFieldErrors` recursive traversal for nested errors,\n * with a fallback for errors in categories that `getFieldErrors` doesn't handle.\n */\nfunction extractFieldErrors(errors: EntityErrorObject[]): SDKFieldError[] {\n const flattened = errors.flatMap(err => getFieldErrors(err))\n if (flattened.length > 0) {\n return flattened.map(toSDKFieldError)\n }\n\n return errors.filter(err => err.message).map(toSDKFieldError)\n}\n\ninterface RawAPIFieldError {\n error_key?: string\n errorKey?: string\n category: string\n message?: string\n metadata?: Record<string, unknown>\n}\n\nfunction rawToEntityError(raw: RawAPIFieldError): EntityErrorObject {\n return {\n errorKey: raw.errorKey ?? raw.error_key ?? '',\n category: raw.category,\n message: raw.message,\n metadata: raw.metadata,\n }\n}\n\nfunction tryExtractFieldErrorsFromBody(body: string | undefined): SDKFieldError[] {\n if (!body) return []\n try {\n const parsed: unknown = JSON.parse(body)\n if (\n parsed !== null &&\n typeof parsed === 'object' &&\n 'errors' in parsed &&\n Array.isArray((parsed as { errors: unknown }).errors)\n ) {\n const errors = (parsed as { errors: RawAPIFieldError[] }).errors\n return errors\n .filter(err => err.message)\n .map(rawToEntityError)\n .map(toSDKFieldError)\n }\n } catch {\n // Body isn't valid JSON\n }\n return []\n}\n\nfunction buildApiErrorMessage(fieldErrors: SDKFieldError[], fallbackMessage: string): string {\n if (fieldErrors.length === 0) {\n return fallbackMessage\n }\n return fieldErrors.length === 1\n ? '1 field has issues'\n : `${fieldErrors.length} fields have issues`\n}\n\n/**\n * Normalizes any caught error into a unified `SDKError`.\n *\n * Classification is based purely on the error type:\n * - `SDKInternalError` → uses the error's own `category` (default: `internal_error`)\n * - `GustoEmbeddedError` subclasses → `api_error`\n * - `SDKValidationError` → `validation_error`\n * - `HTTPClientError` subclasses → `network_error`\n * - Everything else → `internal_error`\n */\nexport function normalizeToSDKError(error: unknown): SDKError {\n if (error instanceof SDKInternalError) {\n return {\n category: error.category,\n message: error.message,\n fieldErrors: [],\n raw: error,\n }\n }\n\n if (error instanceof SDKValidationError) {\n return {\n category: 'validation_error',\n message: typeof error.rawMessage === 'string' ? error.rawMessage : error.message,\n fieldErrors: [],\n raw: error,\n }\n }\n\n if (error instanceof HTTPClientError) {\n return {\n category: 'network_error',\n message: error.message,\n fieldErrors: [],\n raw: error,\n }\n }\n\n if (error instanceof GustoEmbeddedError) {\n const httpStatus = error.httpMeta.response.status\n const fieldErrors = hasErrorsArray(error)\n ? extractFieldErrors(error.errors)\n : tryExtractFieldErrorsFromBody(error.httpMeta.body)\n\n return {\n category: 'api_error',\n message: buildApiErrorMessage(fieldErrors, error.message),\n httpStatus,\n fieldErrors,\n raw: error,\n }\n }\n\n if (error instanceof Error) {\n return {\n category: 'internal_error',\n message: error.message,\n fieldErrors: [],\n raw: error,\n }\n }\n\n return {\n category: 'internal_error',\n message: 'An unknown error occurred',\n fieldErrors: [],\n raw: error,\n }\n}\n"],"names":["SDKInternalError","message","category","hasErrorsArray","error","toSDKFieldError","entityError","extractFieldErrors","errors","flattened","err","getFieldErrors","rawToEntityError","raw","tryExtractFieldErrorsFromBody","body","parsed","buildApiErrorMessage","fieldErrors","fallbackMessage","normalizeToSDKError","SDKValidationError","HTTPClientError","GustoEmbeddedError","httpStatus"],"mappings":";;;;AAwCO,MAAMA,UAAyB,MAAM;AAAA,EACjC;AAAA,EAET,YAAYC,GAAiBC,IAA6B,kBAAkB;AAC1E,UAAMD,CAAO,GACb,KAAK,OAAO,oBACZ,KAAK,WAAWC;AAAA,EAClB;AACF;AA8DA,SAASC,EAAeC,GAA0C;AAChE,SACEA,MAAU,QACV,OAAOA,KAAU,YACjB,YAAYA,KACZ,MAAM,QAASA,EAA0B,MAAM;AAEnD;AAEA,SAASC,EAAgBC,GAA+C;AACtE,SAAO;AAAA,IACL,OAAOA,EAAY;AAAA,IACnB,SAASA,EAAY,WAAW;AAAA,IAChC,UAAUA,EAAY;AAAA,IACtB,UAAUA,EAAY;AAAA,EAAA;AAE1B;AAQA,SAASC,EAAmBC,GAA8C;AACxE,QAAMC,IAAYD,EAAO,QAAQ,CAAAE,MAAOC,EAAeD,CAAG,CAAC;AAC3D,SAAID,EAAU,SAAS,IACdA,EAAU,IAAIJ,CAAe,IAG/BG,EAAO,OAAO,CAAAE,MAAOA,EAAI,OAAO,EAAE,IAAIL,CAAe;AAC9D;AAUA,SAASO,EAAiBC,GAA0C;AAClE,SAAO;AAAA,IACL,UAAUA,EAAI,YAAYA,EAAI,aAAa;AAAA,IAC3C,UAAUA,EAAI;AAAA,IACd,SAASA,EAAI;AAAA,IACb,UAAUA,EAAI;AAAA,EAAA;AAElB;AAEA,SAASC,EAA8BC,GAA2C;AAChF,MAAI,CAACA,EAAM,QAAO,CAAA;AAClB,MAAI;AACF,UAAMC,IAAkB,KAAK,MAAMD,CAAI;AACvC,QACEC,MAAW,QACX,OAAOA,KAAW,YAClB,YAAYA,KACZ,MAAM,QAASA,EAA+B,MAAM;AAGpD,aADgBA,EAA0C,OAEvD,OAAO,CAAAN,MAAOA,EAAI,OAAO,EACzB,IAAIE,CAAgB,EACpB,IAAIP,CAAe;AAAA,EAE1B,QAAQ;AAAA,EAER;AACA,SAAO,CAAA;AACT;AAEA,SAASY,EAAqBC,GAA8BC,GAAiC;AAC3F,SAAID,EAAY,WAAW,IAClBC,IAEFD,EAAY,WAAW,IAC1B,uBACA,GAAGA,EAAY,MAAM;AAC3B;AAYO,SAASE,EAAoBhB,GAA0B;AAC5D,MAAIA,aAAiBJ;AACnB,WAAO;AAAA,MACL,UAAUI,EAAM;AAAA,MAChB,SAASA,EAAM;AAAA,MACf,aAAa,CAAA;AAAA,MACb,KAAKA;AAAA,IAAA;AAIT,MAAIA,aAAiBiB;AACnB,WAAO;AAAA,MACL,UAAU;AAAA,MACV,SAAS,OAAOjB,EAAM,cAAe,WAAWA,EAAM,aAAaA,EAAM;AAAA,MACzE,aAAa,CAAA;AAAA,MACb,KAAKA;AAAA,IAAA;AAIT,MAAIA,aAAiBkB;AACnB,WAAO;AAAA,MACL,UAAU;AAAA,MACV,SAASlB,EAAM;AAAA,MACf,aAAa,CAAA;AAAA,MACb,KAAKA;AAAA,IAAA;AAIT,MAAIA,aAAiBmB,GAAoB;AACvC,UAAMC,IAAapB,EAAM,SAAS,SAAS,QACrCc,IAAcf,EAAeC,CAAK,IACpCG,EAAmBH,EAAM,MAAM,IAC/BU,EAA8BV,EAAM,SAAS,IAAI;AAErD,WAAO;AAAA,MACL,UAAU;AAAA,MACV,SAASa,EAAqBC,GAAad,EAAM,OAAO;AAAA,MACxD,YAAAoB;AAAA,MACA,aAAAN;AAAA,MACA,KAAKd;AAAA,IAAA;AAAA,EAET;AAEA,SAAIA,aAAiB,QACZ;AAAA,IACL,UAAU;AAAA,IACV,SAASA,EAAM;AAAA,IACf,aAAa,CAAA;AAAA,IACb,KAAKA;AAAA,EAAA,IAIF;AAAA,IACL,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa,CAAA;AAAA,IACb,KAAKA;AAAA,EAAA;AAET;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -718,6 +718,55 @@
|
|
|
718
718
|
"employeeUuid"
|
|
719
719
|
]
|
|
720
720
|
},
|
|
721
|
+
"Employee.TerminationFlow": {
|
|
722
|
+
"endpoints": [
|
|
723
|
+
{
|
|
724
|
+
"method": "GET",
|
|
725
|
+
"path": "/v1/employees/:employeeId"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"method": "GET",
|
|
729
|
+
"path": "/v1/employees/:employeeId/terminations"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"method": "POST",
|
|
733
|
+
"path": "/v1/employees/:employeeId/terminations"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"method": "PUT",
|
|
737
|
+
"path": "/v1/terminations/:employeeId"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"method": "POST",
|
|
741
|
+
"path": "/v1/companies/:companyId/payrolls"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"method": "GET",
|
|
745
|
+
"path": "/v1/companies/:companyId/pay_periods/unprocessed_termination_pay_periods"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"method": "GET",
|
|
749
|
+
"path": "/v1/companies/:companyId/payrolls"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"method": "DELETE",
|
|
753
|
+
"path": "/v1/employees/:employeeId/terminations"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"method": "GET",
|
|
757
|
+
"path": "/v1/companies/:companyId/employees"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"method": "PUT",
|
|
761
|
+
"path": "/v1/companies/:companyId/payrolls/:payrollId/prepare"
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
"variables": [
|
|
765
|
+
"companyId",
|
|
766
|
+
"employeeId",
|
|
767
|
+
"payrollId"
|
|
768
|
+
]
|
|
769
|
+
},
|
|
721
770
|
"InformationRequests": {
|
|
722
771
|
"endpoints": [
|
|
723
772
|
{
|
|
@@ -759,6 +808,26 @@
|
|
|
759
808
|
"wireInRequestUuid"
|
|
760
809
|
]
|
|
761
810
|
},
|
|
811
|
+
"Payroll.DismissalFlow": {
|
|
812
|
+
"endpoints": [
|
|
813
|
+
{
|
|
814
|
+
"method": "GET",
|
|
815
|
+
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"method": "GET",
|
|
819
|
+
"path": "/v1/companies/:companyId/pay_periods/unprocessed_termination_pay_periods"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"method": "POST",
|
|
823
|
+
"path": "/v1/companies/:companyId/payrolls"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"variables": [
|
|
827
|
+
"companyId",
|
|
828
|
+
"payrollId"
|
|
829
|
+
]
|
|
830
|
+
},
|
|
762
831
|
"Payroll.OffCycleFlow": {
|
|
763
832
|
"endpoints": [
|
|
764
833
|
{
|
|
@@ -811,10 +880,6 @@
|
|
|
811
880
|
"method": "GET",
|
|
812
881
|
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
813
882
|
},
|
|
814
|
-
{
|
|
815
|
-
"method": "PUT",
|
|
816
|
-
"path": "/v1/companies/:companyId/payrolls/:payrollId/calculate"
|
|
817
|
-
},
|
|
818
883
|
{
|
|
819
884
|
"method": "PUT",
|
|
820
885
|
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
@@ -827,6 +892,10 @@
|
|
|
827
892
|
"method": "GET",
|
|
828
893
|
"path": "/v1/companies/:companyUuid/payrolls/blockers"
|
|
829
894
|
},
|
|
895
|
+
{
|
|
896
|
+
"method": "PUT",
|
|
897
|
+
"path": "/v1/companies/:companyId/payrolls/:payrollId/calculate"
|
|
898
|
+
},
|
|
830
899
|
{
|
|
831
900
|
"method": "GET",
|
|
832
901
|
"path": "/v1/companies/:companyId/employees"
|
|
@@ -1003,7 +1072,7 @@
|
|
|
1003
1072
|
"recoveryCaseUuid"
|
|
1004
1073
|
]
|
|
1005
1074
|
},
|
|
1006
|
-
"Payroll.
|
|
1075
|
+
"Payroll.TransitionFlow": {
|
|
1007
1076
|
"endpoints": [
|
|
1008
1077
|
{
|
|
1009
1078
|
"method": "GET",
|
|
@@ -1014,6 +1083,133 @@
|
|
|
1014
1083
|
"companyId",
|
|
1015
1084
|
"payrollId"
|
|
1016
1085
|
]
|
|
1086
|
+
},
|
|
1087
|
+
"Payroll.TransitionCreation": {
|
|
1088
|
+
"endpoints": [
|
|
1089
|
+
{
|
|
1090
|
+
"method": "POST",
|
|
1091
|
+
"path": "/v1/companies/:companyId/payrolls"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"method": "GET",
|
|
1095
|
+
"path": "/v1/companies/:companyId/pay_schedules"
|
|
1096
|
+
}
|
|
1097
|
+
],
|
|
1098
|
+
"variables": [
|
|
1099
|
+
"companyId"
|
|
1100
|
+
]
|
|
1101
|
+
},
|
|
1102
|
+
"Payroll.TransitionPayrollAlert": {
|
|
1103
|
+
"endpoints": [
|
|
1104
|
+
{
|
|
1105
|
+
"method": "GET",
|
|
1106
|
+
"path": "/v1/companies/:companyId/pay_periods"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"method": "GET",
|
|
1110
|
+
"path": "/v1/companies/:companyId/pay_schedules"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"method": "POST",
|
|
1114
|
+
"path": "/v1/companies/:companyUuid/payrolls/skip"
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"variables": [
|
|
1118
|
+
"companyId",
|
|
1119
|
+
"companyUuid"
|
|
1120
|
+
]
|
|
1121
|
+
},
|
|
1122
|
+
"UNSTABLE_Hooks.hooks.useCompensationForm": {
|
|
1123
|
+
"endpoints": [
|
|
1124
|
+
{
|
|
1125
|
+
"method": "GET",
|
|
1126
|
+
"path": "/v1/employees/:employeeId/jobs"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"method": "POST",
|
|
1130
|
+
"path": "/v1/employees/:employeeId/jobs"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"method": "PUT",
|
|
1134
|
+
"path": "/v1/jobs/:jobId"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"method": "PUT",
|
|
1138
|
+
"path": "/v1/compensations/:compensationId"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"method": "GET",
|
|
1142
|
+
"path": "/v1/locations/:locationUuid/minimum_wages"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"method": "GET",
|
|
1146
|
+
"path": "/v1/employees/:employeeId/work_addresses"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"method": "GET",
|
|
1150
|
+
"path": "/v1/employees/:employeeId"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"method": "GET",
|
|
1154
|
+
"path": "/v1/companies/:companyId/federal_tax_details"
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"variables": [
|
|
1158
|
+
"companyId",
|
|
1159
|
+
"compensationId",
|
|
1160
|
+
"employeeId",
|
|
1161
|
+
"jobId",
|
|
1162
|
+
"locationUuid"
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
"UNSTABLE_Hooks.hooks.useEmployeeDetailsForm": {
|
|
1166
|
+
"endpoints": [
|
|
1167
|
+
{
|
|
1168
|
+
"method": "GET",
|
|
1169
|
+
"path": "/v1/employees/:employeeId"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"method": "POST",
|
|
1173
|
+
"path": "/v1/companies/:companyId/employees"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"method": "PUT",
|
|
1177
|
+
"path": "/v1/employees/:employeeId"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"method": "PUT",
|
|
1181
|
+
"path": "/v1/employees/:employeeId/onboarding_status"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"variables": [
|
|
1185
|
+
"companyId",
|
|
1186
|
+
"employeeId"
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
"UNSTABLE_Hooks.hooks.useWorkAddressForm": {
|
|
1190
|
+
"endpoints": [
|
|
1191
|
+
{
|
|
1192
|
+
"method": "GET",
|
|
1193
|
+
"path": "/v1/companies/:companyId/locations"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"method": "GET",
|
|
1197
|
+
"path": "/v1/employees/:employeeId/work_addresses"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"method": "POST",
|
|
1201
|
+
"path": "/v1/employees/:employeeId/work_addresses"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"method": "PUT",
|
|
1205
|
+
"path": "/v1/work_addresses/:workAddressUuid"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"variables": [
|
|
1209
|
+
"companyId",
|
|
1210
|
+
"employeeId",
|
|
1211
|
+
"workAddressUuid"
|
|
1212
|
+
]
|
|
1017
1213
|
}
|
|
1018
1214
|
},
|
|
1019
1215
|
"flows": {
|
|
@@ -1608,12 +1804,14 @@
|
|
|
1608
1804
|
"Payroll.PayrollFlow": {
|
|
1609
1805
|
"blocks": [
|
|
1610
1806
|
"Payroll.ConfirmWireDetails",
|
|
1807
|
+
"Payroll.OffCycleFlow",
|
|
1611
1808
|
"Payroll.PayrollBlocker",
|
|
1612
1809
|
"Payroll.PayrollConfiguration",
|
|
1613
1810
|
"Payroll.PayrollEditEmployee",
|
|
1614
1811
|
"Payroll.PayrollLanding",
|
|
1615
1812
|
"Payroll.PayrollOverview",
|
|
1616
|
-
"Payroll.PayrollReceipts"
|
|
1813
|
+
"Payroll.PayrollReceipts",
|
|
1814
|
+
"Payroll.TransitionFlow"
|
|
1617
1815
|
],
|
|
1618
1816
|
"endpoints": [
|
|
1619
1817
|
{
|
|
@@ -1634,23 +1832,19 @@
|
|
|
1634
1832
|
},
|
|
1635
1833
|
{
|
|
1636
1834
|
"method": "GET",
|
|
1637
|
-
"path": "/v1/companies/:
|
|
1835
|
+
"path": "/v1/companies/:companyId/payrolls/:payrollId"
|
|
1638
1836
|
},
|
|
1639
1837
|
{
|
|
1640
1838
|
"method": "GET",
|
|
1641
|
-
"path": "/v1/companies/:companyUuid/
|
|
1839
|
+
"path": "/v1/companies/:companyUuid/payrolls/blockers"
|
|
1642
1840
|
},
|
|
1643
1841
|
{
|
|
1644
1842
|
"method": "GET",
|
|
1645
|
-
"path": "/v1/companies/:companyUuid/
|
|
1843
|
+
"path": "/v1/companies/:companyUuid/recovery_cases"
|
|
1646
1844
|
},
|
|
1647
1845
|
{
|
|
1648
1846
|
"method": "GET",
|
|
1649
|
-
"path": "/v1/companies/:
|
|
1650
|
-
},
|
|
1651
|
-
{
|
|
1652
|
-
"method": "PUT",
|
|
1653
|
-
"path": "/v1/companies/:companyId/payrolls/:payrollId/calculate"
|
|
1847
|
+
"path": "/v1/companies/:companyUuid/information_requests"
|
|
1654
1848
|
},
|
|
1655
1849
|
{
|
|
1656
1850
|
"method": "PUT",
|
|
@@ -1660,6 +1854,10 @@
|
|
|
1660
1854
|
"method": "POST",
|
|
1661
1855
|
"path": "/v1/payrolls/:payrollUuid/gross_up"
|
|
1662
1856
|
},
|
|
1857
|
+
{
|
|
1858
|
+
"method": "PUT",
|
|
1859
|
+
"path": "/v1/companies/:companyId/payrolls/:payrollId/calculate"
|
|
1860
|
+
},
|
|
1663
1861
|
{
|
|
1664
1862
|
"method": "GET",
|
|
1665
1863
|
"path": "/v1/companies/:companyId/employees"
|