@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.
Files changed (712) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +6 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +50 -6
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/components/Base/Base.d.ts +8 -9
  7. package/dist/components/Base/Base.js +123 -102
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/createCompoundContext.js.map +1 -1
  10. package/dist/components/Base/index.d.ts +1 -1
  11. package/dist/components/Base/useBase.d.ts +3 -7
  12. package/dist/components/Base/useBase.js.map +1 -1
  13. package/dist/components/Base/useBaseSubmit.d.ts +3 -5
  14. package/dist/components/Base/useBaseSubmit.js +27 -50
  15. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  16. package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
  17. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  18. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  19. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
  20. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  21. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  22. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  23. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  24. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  25. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  26. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  27. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  28. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
  29. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  30. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  31. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  32. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  33. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  34. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  35. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
  36. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  37. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  38. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +30 -27
  39. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  40. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  41. package/dist/components/Common/Fields/SelectField/SelectField.js +31 -28
  42. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  43. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  44. package/dist/components/Common/Fields/SwitchField/SwitchField.js +24 -21
  45. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  46. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  47. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  48. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  49. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
  50. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  51. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  52. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  53. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  54. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  55. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  56. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  57. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
  58. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  59. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
  60. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  61. package/dist/components/Common/UI/Button/Button.js +33 -29
  62. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  63. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  64. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  65. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  66. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  67. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  68. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  69. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  70. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  71. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  73. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  74. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
  75. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  76. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
  77. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  78. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  79. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  80. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  81. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  82. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -9
  83. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  84. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
  85. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  86. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  87. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  88. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  89. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  90. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -9
  91. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  92. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  93. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  94. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -11
  95. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  96. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
  97. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  98. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  99. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  100. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -9
  101. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  102. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
  103. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  104. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
  105. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  106. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  107. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  108. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
  109. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  110. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  111. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  112. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -9
  113. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  114. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  115. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  116. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
  117. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  118. package/dist/components/Company/FederalTaxes/Actions.js +8 -11
  119. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  120. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
  121. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  122. package/dist/components/Company/FederalTaxes/Form.js +6 -8
  123. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  124. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -11
  125. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  126. package/dist/components/Company/Industry/Actions.js +8 -11
  127. package/dist/components/Company/Industry/Actions.js.map +1 -1
  128. package/dist/components/Company/Industry/Context.js +11 -12
  129. package/dist/components/Company/Industry/Context.js.map +1 -1
  130. package/dist/components/Company/Industry/Edit.js +10 -14
  131. package/dist/components/Company/Industry/Edit.js.map +1 -1
  132. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
  133. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  134. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  135. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  136. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  137. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  138. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -9
  139. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  140. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
  141. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  142. package/dist/components/Company/Locations/LocationsList/List.js +17 -19
  143. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  144. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  145. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  146. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -9
  147. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  148. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  149. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  150. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  151. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  152. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  153. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  154. package/dist/components/Company/OnboardingOverview/context.js +8 -9
  155. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  156. package/dist/components/Company/PaySchedule/PaySchedule.js +60 -63
  157. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  158. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
  159. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  160. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  161. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  162. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  163. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  164. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  165. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  166. package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -11
  167. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  168. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
  169. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  170. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  171. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -9
  172. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  173. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
  174. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  175. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
  176. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  177. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -9
  178. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  179. package/dist/components/Contractor/Address/Address.js +3 -7
  180. package/dist/components/Contractor/Address/Address.js.map +1 -1
  181. package/dist/components/Contractor/Address/Form.js +6 -8
  182. package/dist/components/Contractor/Address/Form.js.map +1 -1
  183. package/dist/components/Contractor/Address/useAddress.js +10 -11
  184. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  185. package/dist/components/Contractor/ContractorList/index.js +29 -30
  186. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  187. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  188. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  189. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
  190. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  191. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  192. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  193. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  194. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  195. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  196. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
  197. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  198. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  199. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  200. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  201. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  202. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  203. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  204. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  205. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  206. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  207. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  208. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  209. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
  210. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  211. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  212. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -32
  213. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  214. package/dist/components/Contractor/Submit/Submit.js +20 -22
  215. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  216. package/dist/components/Employee/Compensation/Actions.js +12 -14
  217. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  218. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  219. package/dist/components/Employee/Compensation/Edit.js +27 -28
  220. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  221. package/dist/components/Employee/Compensation/List.js +23 -25
  222. package/dist/components/Employee/Compensation/List.js.map +1 -1
  223. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +61 -57
  224. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  225. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +15 -16
  226. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  227. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  228. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +15 -16
  229. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  230. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  231. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  232. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  233. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  234. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
  235. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  236. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  237. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  238. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  239. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  240. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -9
  241. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  242. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  243. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  244. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
  245. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  246. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  247. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  248. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
  249. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  250. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  251. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  252. package/dist/components/Employee/EmployeeList/Actions.js +6 -9
  253. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  254. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
  255. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  256. package/dist/components/Employee/EmployeeList/Head.js +5 -8
  257. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  258. package/dist/components/Employee/EmployeeList/List.js +16 -17
  259. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  260. package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -9
  261. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  262. package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
  263. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  264. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
  265. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  266. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
  267. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  268. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -9
  269. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  270. package/dist/components/Employee/Landing/Landing.js +14 -15
  271. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  272. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  273. package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
  274. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  276. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
  278. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  280. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  281. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  282. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  283. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -11
  284. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  285. package/dist/components/Employee/Profile/Actions.js +8 -11
  286. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  287. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
  288. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  289. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  290. package/dist/components/Employee/Profile/HomeAddress.js +45 -44
  291. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  292. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
  293. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  294. package/dist/components/Employee/Profile/Profile.js +30 -29
  295. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  296. package/dist/components/Employee/Profile/useProfile.js +8 -9
  297. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  298. package/dist/components/Employee/StateTaxes/Actions.js +8 -11
  299. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  300. package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
  301. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  302. package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -9
  303. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  304. package/dist/components/Employee/Taxes/Actions.js +8 -11
  305. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  306. package/dist/components/Employee/Taxes/FederalForm.js +10 -13
  307. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  308. package/dist/components/Employee/Taxes/Taxes.js +53 -53
  309. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  310. package/dist/components/Employee/Taxes/useTaxes.js +8 -9
  311. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  312. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
  313. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
  314. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
  315. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
  316. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +89 -0
  317. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
  318. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
  319. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
  320. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
  321. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +24 -0
  322. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +76 -0
  323. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
  324. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
  325. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +8 -0
  326. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +177 -0
  327. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
  328. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
  329. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
  330. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
  331. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
  332. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
  333. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +100 -0
  334. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
  335. package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
  336. package/dist/components/Employee/Terminations/index.d.ts +8 -0
  337. package/dist/components/Employee/Terminations/types.d.ts +1 -0
  338. package/dist/components/Employee/index.d.ts +7 -0
  339. package/dist/components/Employee/index.js +34 -28
  340. package/dist/components/Employee/index.js.map +1 -1
  341. package/dist/components/Flow/Flow.js +20 -23
  342. package/dist/components/Flow/Flow.js.map +1 -1
  343. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  344. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  345. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  346. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  347. package/dist/components/InformationRequests/InformationRequests.js +34 -35
  348. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  349. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
  350. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  351. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  352. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  353. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  354. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
  355. package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
  356. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
  357. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
  358. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
  359. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
  360. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +7 -0
  361. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +73 -0
  362. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
  363. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
  364. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +50 -0
  365. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
  366. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
  367. package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
  368. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
  369. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
  370. package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
  371. package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
  372. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  373. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +89 -76
  374. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  375. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
  376. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  377. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  378. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +25 -18
  379. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  380. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +5 -0
  381. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +31 -24
  382. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  383. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +78 -75
  384. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  385. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  386. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -68
  387. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  388. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
  389. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
  390. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
  391. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
  392. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  393. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
  394. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +4 -4
  395. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  396. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
  397. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
  398. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  399. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
  400. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  401. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  402. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  403. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  404. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  405. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  406. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +174 -148
  407. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  408. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
  409. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -71
  410. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  411. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
  412. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
  413. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
  414. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
  415. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
  416. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  417. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
  418. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  419. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -3
  420. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +256 -219
  421. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  422. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
  423. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  424. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
  425. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +19 -0
  426. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
  427. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  428. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  429. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
  430. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
  431. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
  432. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  433. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
  434. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  435. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
  436. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  437. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +38 -40
  438. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  439. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
  440. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  441. package/dist/components/Payroll/PayrollList/PayrollList.js +55 -43
  442. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  443. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  444. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -95
  445. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  446. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
  447. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  448. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +15 -15
  449. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  450. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +59 -59
  451. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  452. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  453. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  454. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
  455. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  456. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  457. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  458. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  459. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  460. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  461. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  462. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
  463. package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
  464. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
  465. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
  466. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
  467. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
  468. package/dist/components/Payroll/Transition/index.d.ts +3 -0
  469. package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
  470. package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
  471. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
  472. package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
  473. package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
  474. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
  475. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
  476. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
  477. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +109 -0
  478. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
  479. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
  480. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
  481. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
  482. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
  483. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
  484. package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
  485. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
  486. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
  487. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
  488. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
  489. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
  490. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
  491. package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
  492. package/dist/components/Payroll/helpers.d.ts +6 -1
  493. package/dist/components/Payroll/helpers.js +100 -84
  494. package/dist/components/Payroll/helpers.js.map +1 -1
  495. package/dist/components/Payroll/index.d.ts +6 -0
  496. package/dist/components/Payroll/index.js +32 -26
  497. package/dist/components/Payroll/index.js.map +1 -1
  498. package/dist/components/Payroll/payrollTypes.d.ts +21 -0
  499. package/dist/components/Payroll/payrollTypes.js +27 -0
  500. package/dist/components/Payroll/payrollTypes.js.map +1 -0
  501. package/dist/components/Payroll/usePreparedPayrollData.js +6 -8
  502. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  503. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  504. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  505. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  506. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
  507. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +10 -0
  508. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
  509. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
  510. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  511. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  512. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
  513. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  514. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  515. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  516. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  517. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  518. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  519. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  520. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  521. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  522. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
  523. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  524. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  525. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
  526. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +11 -0
  527. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
  528. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  529. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +11 -0
  530. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
  531. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  532. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -0
  533. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
  534. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  535. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +12 -0
  536. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
  537. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  538. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +12 -0
  539. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
  540. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  541. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +11 -0
  542. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
  543. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  544. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +13 -0
  545. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
  546. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  547. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  548. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  549. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  550. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  551. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  552. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  553. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  554. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  555. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +16 -0
  556. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  557. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
  558. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  559. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  560. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  561. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  562. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
  563. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
  564. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
  565. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
  566. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
  567. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +8 -0
  568. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
  569. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
  570. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  571. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  572. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
  573. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  574. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  575. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  576. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
  577. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  578. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  579. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
  580. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  581. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  582. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  583. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  584. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
  585. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
  586. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
  587. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
  588. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  589. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
  590. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  591. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  592. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  593. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  594. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  595. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  596. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  597. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  598. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  599. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  600. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  601. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  602. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
  603. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  604. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  605. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  606. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  607. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  608. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  609. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  610. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  611. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  612. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  613. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  614. package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
  615. package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
  616. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  617. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  618. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  619. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  620. package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
  621. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  622. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -50
  623. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  624. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  625. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  626. package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
  627. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
  628. package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
  629. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
  630. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
  631. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
  632. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  633. package/dist/helpers/requiredIf.d.ts +13 -0
  634. package/dist/helpers/requiredIf.js +8 -0
  635. package/dist/helpers/requiredIf.js.map +1 -0
  636. package/dist/i18n/I18n.js +7 -7
  637. package/dist/i18n/I18n.js.map +1 -1
  638. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
  639. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  640. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
  641. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  642. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
  643. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  644. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  645. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  646. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  647. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  648. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
  649. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
  650. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
  651. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
  652. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
  653. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
  654. package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
  655. package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
  656. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  657. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  658. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
  659. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
  660. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
  661. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  662. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +31 -25
  663. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  664. package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
  665. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  666. package/dist/i18n/en/Payroll.Transition.json.js +8 -0
  667. package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
  668. package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
  669. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
  670. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
  671. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
  672. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  673. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  674. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  675. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  676. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  677. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  678. package/dist/i18n/en/common.json.d.ts +2 -1
  679. package/dist/i18n/en/common.json.js +9 -9
  680. package/dist/index.d.ts +3 -2
  681. package/dist/index.js +14 -13
  682. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  683. package/dist/models/WA_RISK_CODES.js.map +1 -1
  684. package/dist/shared/constants.d.ts +32 -0
  685. package/dist/shared/constants.js +83 -65
  686. package/dist/shared/constants.js.map +1 -1
  687. package/dist/style.css +1 -1
  688. package/dist/types/i18next.d.ts +707 -1
  689. package/dist/types/observability.d.ts +31 -65
  690. package/dist/types/sdkError.d.ts +97 -0
  691. package/dist/types/sdkError.js +95 -0
  692. package/dist/types/sdkError.js.map +1 -0
  693. package/dist/types/sdkError.test.d.ts +1 -0
  694. package/docs/reference/endpoint-inventory.json +212 -14
  695. package/package.json +17 -17
  696. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
  697. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
  698. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
  699. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
  700. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
  701. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
  702. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
  703. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
  704. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
  705. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
  706. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
  707. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
  708. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
  709. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
  710. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
  711. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
  712. 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
- * Observability hook types for error tracking and performance metrics
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 type ObservabilityErrorType = 'boundary_error' | 'validation_error' | 'internal_error' | 'api_error';
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 original error object. Default: false
66
- * WARNING: Original errors may contain sensitive data from form inputs or API responses
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
- includeOriginalError?: boolean;
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
- * // Create Error from sanitized data (originalError is undefined by default)
100
- * const sentryError = new Error(error.message)
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
- * error_type: error.type,
110
- * component: error.context.componentName,
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
- * includeOriginalError: false, // Default: originalError will be undefined
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 validation fails
132
- * These are errors that prevent a component from rendering or operating correctly
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, includeOriginalError: false }
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.UNSTABLE_PayrollHooks": {
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/:companyUuid/payrolls/blockers"
1835
+ "path": "/v1/companies/:companyId/payrolls/:payrollId"
1638
1836
  },
1639
1837
  {
1640
1838
  "method": "GET",
1641
- "path": "/v1/companies/:companyUuid/recovery_cases"
1839
+ "path": "/v1/companies/:companyUuid/payrolls/blockers"
1642
1840
  },
1643
1841
  {
1644
1842
  "method": "GET",
1645
- "path": "/v1/companies/:companyUuid/information_requests"
1843
+ "path": "/v1/companies/:companyUuid/recovery_cases"
1646
1844
  },
1647
1845
  {
1648
1846
  "method": "GET",
1649
- "path": "/v1/companies/:companyId/payrolls/:payrollId"
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"