@gusto/embedded-react-sdk 0.57.2 → 0.57.3

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 (183) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +32 -32
  3. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  4. package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
  5. package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.js.map +1 -1
  6. package/dist/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.js.map +1 -1
  7. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js +34 -14
  8. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js.map +1 -1
  9. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js +106 -0
  10. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js.map +1 -0
  11. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js +136 -0
  12. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js.map +1 -0
  13. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +38 -20
  14. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -1
  15. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +78 -44
  16. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -1
  17. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +45 -37
  18. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -1
  19. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +244 -95
  20. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -1
  21. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js +22 -0
  22. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js.map +1 -0
  23. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js +13 -0
  24. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js.map +1 -0
  25. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +48 -43
  26. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -1
  27. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.js.map +1 -1
  28. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js +57 -0
  29. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js.map +1 -0
  30. package/dist/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.js.map +1 -1
  31. package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js +83 -0
  32. package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js.map +1 -0
  33. package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js +84 -0
  34. package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js.map +1 -0
  35. package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -1
  36. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +109 -39
  37. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -1
  38. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -1
  39. package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -1
  40. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  41. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js +5 -5
  42. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js.map +1 -1
  43. package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js +1 -1
  44. package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js.map +1 -1
  45. package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js +4 -4
  46. package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js.map +1 -1
  47. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js +3 -3
  48. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js.map +1 -1
  49. package/dist/components/Contractor/ContractorList/shared/useContractorList.js +6 -6
  50. package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
  51. package/dist/components/Contractor/Dashboard/Dashboard.js +20 -20
  52. package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
  53. package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js +10 -10
  54. package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js.map +1 -1
  55. package/dist/components/Contractor/Landing/Landing.js +43 -39
  56. package/dist/components/Contractor/Landing/Landing.js.map +1 -1
  57. package/dist/components/Contractor/NewHireReport/NewHireReport.js +3 -3
  58. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  59. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +1 -1
  60. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
  61. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +10 -10
  62. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  63. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +4 -4
  64. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
  65. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +8 -8
  66. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  67. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +5 -5
  68. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  69. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +3 -3
  70. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
  71. package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js +1 -1
  72. package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js.map +1 -1
  73. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +1 -1
  74. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
  75. package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js +1 -1
  76. package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js.map +1 -1
  77. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js +2 -9
  78. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  79. package/dist/components/Contractor/Submit/Submit.js +18 -18
  80. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  81. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js +6 -6
  82. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js.map +1 -1
  83. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +25 -25
  84. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  85. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js +15 -15
  86. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  87. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +1 -1
  88. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  89. package/dist/components/Employee/Dashboard/Dashboard.js +25 -25
  90. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  91. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +7 -7
  92. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  93. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +1 -1
  94. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  95. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +6 -6
  96. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  97. package/dist/components/Employee/Landing/Landing.js +37 -33
  98. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  99. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +27 -27
  100. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  101. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +6 -6
  102. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  103. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js +1 -1
  104. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  105. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +8 -15
  106. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  107. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  108. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  109. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +12 -12
  110. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  111. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +26 -26
  112. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  113. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +66 -64
  114. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  115. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  116. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  117. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +6 -6
  118. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  119. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  120. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +1 -1
  121. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
  122. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  123. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +6 -6
  124. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  125. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  126. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +9 -9
  127. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  128. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  129. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  130. package/dist/components/Payroll/helpers.js +1 -1
  131. package/dist/components/Payroll/helpers.js.map +1 -1
  132. package/dist/components/Payroll/payrollTypes.js +1 -1
  133. package/dist/components/Payroll/payrollTypes.js.map +1 -1
  134. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  135. package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js +1 -1
  136. package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js.map +1 -1
  137. package/dist/i18n/en/Company.Management.PaySchedule.json.js +31 -13
  138. package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -1
  139. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +20 -12
  140. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -1
  141. package/dist/i18n/en/Payroll.PayrollHistory.json.js +1 -1
  142. package/dist/i18n/en/Payroll.PayrollList.json.js +5 -5
  143. package/dist/package.json.js +1 -1
  144. package/dist/shared/constants.js +5 -5
  145. package/dist/shared/constants.js.map +1 -1
  146. package/dist/src/components/Common/DateRangeFilter/DateRangeFilter.d.ts +2 -2
  147. package/dist/src/components/Common/OnboardingStatusBadge/index.d.ts +1 -1
  148. package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.d.ts +1 -1
  149. package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.d.ts +1 -1
  150. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.d.ts +10 -3
  151. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.d.ts +21 -0
  152. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.d.ts +34 -0
  153. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +9 -3
  154. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +5 -1
  155. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +10 -10
  156. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +12 -4
  157. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.d.ts +19 -0
  158. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.d.ts +17 -0
  159. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.d.ts +1 -1
  160. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.d.ts +34 -0
  161. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +16 -3
  162. package/dist/src/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.d.ts +1 -1
  163. package/dist/src/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.d.ts +23 -0
  164. package/dist/src/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.d.ts +25 -0
  165. package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +1 -1
  166. package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +1 -1
  167. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +1 -1
  168. package/dist/src/components/Contractor/Landing/Landing.d.ts +5 -2
  169. package/dist/src/components/Employee/Landing/Landing.d.ts +5 -2
  170. package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  171. package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -1
  172. package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  173. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.d.ts +2 -2
  174. package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
  175. package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  176. package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
  177. package/dist/src/components/Payroll/helpers.d.ts +2 -2
  178. package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  179. package/dist/src/i18n/types.d.ts +82 -4
  180. package/dist/src/models/external.d.ts +63 -48
  181. package/dist/src/shared/constants.d.ts +1 -1
  182. package/docs/guides/endpoint-inventory.json +33 -13
  183. package/package.json +18 -18
@@ -10,10 +10,10 @@ interface DateRangeFilterProps {
10
10
  cancelLabel: string;
11
11
  resetLabel: string;
12
12
  selectDatesLabel: string;
13
- triggerLabel: string;
13
+ getTriggerLabel: (selection: string) => string;
14
14
  maxEndDate?: Date;
15
15
  minStartDate?: Date;
16
16
  }
17
17
  /** @internal */
18
- export declare const DateRangeFilter: ({ startDate, endDate, onStartDateChange, onEndDateChange, onClear, startDateLabel, endDateLabel, applyLabel, cancelLabel, resetLabel, selectDatesLabel, triggerLabel, maxEndDate, minStartDate, }: DateRangeFilterProps) => import('react').JSX.Element;
18
+ export declare const DateRangeFilter: ({ startDate, endDate, onStartDateChange, onEndDateChange, onClear, startDateLabel, endDateLabel, applyLabel, cancelLabel, resetLabel, selectDatesLabel, getTriggerLabel, maxEndDate, minStartDate, }: DateRangeFilterProps) => import('react').JSX.Element;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { OnboardingStatus as ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor';
1
+ import { ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor';
2
2
  import { OnboardingStatus } from '@gusto/embedded-api/models/operations/putv1employeesemployeeidonboardingstatus';
3
3
  type OnboardingStatuses = ContractorOnboardingStatus1 | OnboardingStatus;
4
4
  interface OnboardingStatusBadgeProps<T extends OnboardingStatuses> {
@@ -1,4 +1,4 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  import { EventType } from '../../../../../shared/constants';
3
3
  import { OnEventType } from '../../../../Base/useBase';
4
4
  interface AutoPilotDialogProps {
@@ -1,4 +1,4 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  import { EventType } from '../../../../../shared/constants';
3
3
  import { OnEventType } from '../../../../Base/useBase';
4
4
  interface UseAutoPilotDialogProps {
@@ -1,15 +1,22 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { z } from 'zod';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
3
  /** @internal */
3
4
  export interface AssignmentCompensationStepPresentationProps {
4
5
  schedules: PayScheduleShow[];
5
6
  hourlyPayScheduleUuid?: string;
6
7
  salariedPayScheduleUuid?: string;
7
- onBack: () => void;
8
- onAddPaySchedule: () => void;
8
+ onBack: (selection: CompensationStepInputs) => void;
9
+ onAddPaySchedule: (selection: CompensationStepInputs) => void;
9
10
  onContinue: (selection: {
10
11
  hourlyPayScheduleUuid: string;
11
12
  salariedPayScheduleUuid: string;
12
13
  }) => void;
13
14
  }
15
+ declare const CompensationStepSchema: z.ZodObject<{
16
+ hourlyPayScheduleUuid: z.ZodString;
17
+ salariedPayScheduleUuid: z.ZodString;
18
+ }, z.core.$strip>;
19
+ type CompensationStepInputs = z.infer<typeof CompensationStepSchema>;
14
20
  /** @internal */
15
21
  export declare function AssignmentCompensationStepPresentation({ schedules, hourlyPayScheduleUuid, salariedPayScheduleUuid, onBack, onAddPaySchedule, onContinue, }: AssignmentCompensationStepPresentationProps): import('react').JSX.Element;
22
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Department } from '@gusto/embedded-api/models/components/department';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
+ /** @internal */
4
+ export type DepartmentSelection = {
5
+ defaultPayScheduleUuid: string;
6
+ departments: {
7
+ departmentUuid: string;
8
+ payScheduleUuid: string;
9
+ }[];
10
+ };
11
+ /** @internal */
12
+ export interface AssignmentDepartmentStepPresentationProps {
13
+ departments: Department[];
14
+ schedules: PayScheduleShow[];
15
+ selection: DepartmentSelection;
16
+ onBack: (selection: DepartmentSelection) => void;
17
+ onAddPaySchedule: (selection: DepartmentSelection) => void;
18
+ onContinue: (selection: DepartmentSelection) => void;
19
+ }
20
+ /** @internal */
21
+ export declare function AssignmentDepartmentStepPresentation({ departments, schedules, selection, onBack, onAddPaySchedule, onContinue, }: AssignmentDepartmentStepPresentationProps): import('react').JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { ShowEmployees } from '@gusto/embedded-api/models/components/showemployees';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
+ /**
4
+ * Employee UUIDs and their selected schedules.
5
+ *
6
+ * @internal
7
+ */
8
+ export type EmployeeSelection = {
9
+ employees: {
10
+ employeeUuid: string;
11
+ payScheduleUuid: string;
12
+ }[];
13
+ };
14
+ /**
15
+ * Props for the paginated employee assignment picker.
16
+ *
17
+ * @internal
18
+ */
19
+ export interface AssignmentEmployeeStepPresentationProps {
20
+ employees: ShowEmployees[];
21
+ schedules: PayScheduleShow[];
22
+ selection: EmployeeSelection;
23
+ onBack: (selection: EmployeeSelection) => void;
24
+ onAddPaySchedule: (selection: EmployeeSelection) => void;
25
+ onContinue: (selection: EmployeeSelection) => void;
26
+ }
27
+ /**
28
+ * Renders a schedule picker for every employee, retaining choices across pages.
29
+ *
30
+ * @param props - Employee roster, schedule choices, draft, and navigation callbacks.
31
+ * @returns The paginated employee assignment step.
32
+ * @internal
33
+ */
34
+ export declare function AssignmentEmployeeStepPresentation({ employees, schedules, selection, onBack, onAddPaySchedule, onContinue, }: AssignmentEmployeeStepPresentationProps): import('react').JSX.Element;
@@ -1,11 +1,17 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { z } from 'zod';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
3
  /** @internal */
3
4
  export interface AssignmentScheduleStepPresentationProps {
4
5
  schedules: PayScheduleShow[];
5
6
  defaultPayScheduleUuid?: string;
6
- onBack: () => void;
7
- onAddPaySchedule: () => void;
7
+ onBack: (selection: ScheduleStepInputs) => void;
8
+ onAddPaySchedule: (selection: ScheduleStepInputs) => void;
8
9
  onContinue: (defaultPayScheduleUuid: string) => void;
9
10
  }
11
+ declare const ScheduleStepSchema: z.ZodObject<{
12
+ defaultPayScheduleUuid: z.ZodString;
13
+ }, z.core.$strip>;
14
+ type ScheduleStepInputs = z.infer<typeof ScheduleStepSchema>;
10
15
  /** @internal */
11
16
  export declare function AssignmentScheduleStepPresentation({ schedules, defaultPayScheduleUuid, onBack, onAddPaySchedule, onContinue, }: AssignmentScheduleStepPresentationProps): import('react').JSX.Element;
17
+ export {};
@@ -2,8 +2,12 @@ import { SupportedAssignmentType } from './usePayScheduleAssignment';
2
2
  /** @internal */
3
3
  export interface AssignmentTypeStepPresentationProps {
4
4
  defaultType?: SupportedAssignmentType;
5
+ hasEmployees?: boolean;
6
+ employeeAccessDenied?: boolean;
7
+ hasDepartments?: boolean;
8
+ departmentAccessDenied?: boolean;
5
9
  onBack: () => void;
6
10
  onContinue: (type: SupportedAssignmentType) => void;
7
11
  }
8
12
  /** @internal */
9
- export declare function AssignmentTypeStepPresentation({ defaultType, onBack, onContinue, }: AssignmentTypeStepPresentationProps): import('react').JSX.Element;
13
+ export declare function AssignmentTypeStepPresentation({ defaultType, hasDepartments, hasEmployees, employeeAccessDenied, departmentAccessDenied, onBack, onContinue, }: AssignmentTypeStepPresentationProps): import('react').JSX.Element;
@@ -15,24 +15,24 @@ export interface PayScheduleAssignmentProps extends BaseComponentInterface<'Comp
15
15
  * Walks through choosing an assignment type, picking (or creating) a pay schedule, and reviewing
16
16
  * the employees and transition payrolls affected before submitting. Opens on the company's
17
17
  * current assignment, so submitting without changing anything is a no-op rather than a
18
- * reassignment. Two assignment types are
19
- * supported: one schedule for everyone (`single`), or separate schedules for hourly and salaried
20
- * employees (`hourly_salaried`). Picking the same schedule for both compensation types is
21
- * submitted as `single`. Can be mounted directly or launched from
18
+ * reassignment. Supports one schedule for everyone (`single`), separate schedules for hourly
19
+ * and salaried employees (`hourly_salaried`), or schedules by department (`by_department`),
20
+ * including a default for employees without a department, or individually (`by_employee`).
21
+ * Employee assignment requires employee and compensation read access and excludes terminated,
22
+ * historical, incomplete-onboarding, and missing-compensation employees. Selecting one schedule for every
23
+ * group is submitted as `single`. Can be mounted directly or launched from
22
24
  * `CompanyManagement.PaySchedule`'s Manage action.
23
25
  *
24
- * The internal step-to-step selection events (assignment type chosen, schedule picked) also
25
- * bubble through `onEvent` as a side effect of how the underlying `Flow` re-emits every event —
26
- * they carry no information a host needs mid-flow, since `assigned` reports the final outcome,
27
- * so they're intentionally left out of the table below.
26
+ * Step selection events also bubble through `onEvent`; the `assigned` event reports the
27
+ * final outcome. Adding a pay schedule can include the current selections in its event payload.
28
28
  *
29
29
  * @events
30
30
  * | Event | Description | Data |
31
31
  * | ----- | ----------- | ---- |
32
- * | `paySchedule/create` | The user chose to add a new pay schedule from the picker step | — |
32
+ * | `paySchedule/create` | The user chose to add a new pay schedule from the picker step | Optional current selections: `{ defaultPayScheduleUuid?: string; hourlyPayScheduleUuid?: string; salariedPayScheduleUuid?: string; departments?: { departmentUuid: string; payScheduleUuid: string }[]; employees?: { employeeUuid: string; payScheduleUuid: string }[] }` |
33
33
  * | `paySchedule/created` | A new pay schedule was created from the picker step | `{ paySchedule: PayScheduleShow }` |
34
34
  * | `paySchedule/management/assignment/cancel` | The user backed out of the flow entirely, from the first step | — |
35
- * | `paySchedule/management/assignment/assigned` | The assignment was submitted successfully | `{ employeeChanges: PayScheduleAssignmentEmployeeChange[] }` plus either `{ type: 'single'; defaultPayScheduleUuid: string }` or `{ type: 'hourly_salaried'; hourlyPayScheduleUuid: string; salariedPayScheduleUuid: string }` |
35
+ * | `paySchedule/management/assignment/assigned` | The assignment was submitted successfully | `{ employeeChanges: PayScheduleAssignmentEmployeeChange[] }` plus either `{ type: 'single'; defaultPayScheduleUuid: string }` or `{ type: 'hourly_salaried'; hourlyPayScheduleUuid: string; salariedPayScheduleUuid: string }` or `{ type: 'by_department'; defaultPayScheduleUuid: string; departments: { departmentUuid: string; payScheduleUuid: string }[] }` or `{ type: 'by_employee'; employees: { employeeUuid: string; payScheduleUuid: string }[] }` |
36
36
  *
37
37
  * @alpha
38
38
  */
@@ -1,7 +1,9 @@
1
1
  import { PayScheduleAssignmentBodyType } from '@gusto/embedded-api/models/components/payscheduleassignmentbody';
2
2
  import { PayScheduleAssignmentEmployeeChange } from '@gusto/embedded-api/models/components/payscheduleassignmentemployeechange';
3
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
4
- import { SupportedAssignmentType } from './usePayScheduleAssignment';
3
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
4
+ import { EmployeeSelection } from './AssignmentEmployeeStepPresentation';
5
+ import { DepartmentSelection } from './AssignmentDepartmentStepPresentation';
6
+ import { AssignmentDraft, SupportedAssignmentType } from './usePayScheduleAssignment';
5
7
  import { componentEvents } from '../../../../../shared/constants';
6
8
  /**
7
9
  * The assignment the user built, already collapsed to the type that actually gets submitted.
@@ -16,7 +18,11 @@ export type AssignmentSelection = {
16
18
  type: typeof PayScheduleAssignmentBodyType.HourlySalaried;
17
19
  hourlyPayScheduleUuid: string;
18
20
  salariedPayScheduleUuid: string;
19
- };
21
+ } | ({
22
+ type: typeof PayScheduleAssignmentBodyType.ByDepartment;
23
+ } & DepartmentSelection) | ({
24
+ type: typeof PayScheduleAssignmentBodyType.ByEmployee;
25
+ } & EmployeeSelection);
20
26
  /** @internal */
21
27
  export type EventPayloads = {
22
28
  [componentEvents.PAY_SCHEDULE_ASSIGNMENT_TYPE_SELECTED]: {
@@ -27,7 +33,9 @@ export type EventPayloads = {
27
33
  } | {
28
34
  hourlyPayScheduleUuid: string;
29
35
  salariedPayScheduleUuid: string;
30
- };
36
+ } | DepartmentSelection | EmployeeSelection;
37
+ [componentEvents.PAY_SCHEDULE_CREATE]: AssignmentDraft | undefined;
38
+ [componentEvents.PAY_SCHEDULE_ASSIGNMENT_BACK]: AssignmentDraft | undefined;
31
39
  [componentEvents.PAY_SCHEDULE_CREATED]: {
32
40
  paySchedule: PayScheduleShow;
33
41
  };
@@ -0,0 +1,19 @@
1
+ import { Department } from '@gusto/embedded-api/models/components/department';
2
+ /**
3
+ * Narrows department responses to entries that can be assigned a schedule.
4
+ *
5
+ * @param departments - Departments returned by the API.
6
+ * @returns Departments with a usable UUID.
7
+ * @internal
8
+ */
9
+ export declare function getCompanyDepartments(departments: Department[] | undefined): (Department & {
10
+ uuid: string;
11
+ })[];
12
+ /**
13
+ * Identifies an assignment data request rejected for missing OAuth scopes.
14
+ *
15
+ * @param error - Assignment query error.
16
+ * @returns Whether access is unavailable because a required scope is missing.
17
+ * @internal
18
+ */
19
+ export declare function isAssignmentAccessDenied(error: unknown): boolean;
@@ -0,0 +1,17 @@
1
+ import { ShowEmployees } from '@gusto/embedded-api/models/components/showemployees';
2
+ /**
3
+ * Finds the primary job, falling back to the first job for older responses.
4
+ *
5
+ * @param employee - Employee whose job is needed.
6
+ * @returns The primary job, or undefined when no jobs exist.
7
+ * @internal
8
+ */
9
+ export declare function getPrimaryJob(employee: Pick<ShowEmployees, 'jobs'>): import('@gusto/embedded-api/models/components/job.js').Job | undefined;
10
+ /**
11
+ * Finds the primary job's current compensation without depending on array order.
12
+ *
13
+ * @param employee - Employee whose compensation is needed.
14
+ * @returns The named current compensation, or the first record when no pointer is supplied.
15
+ * @internal
16
+ */
17
+ export declare function getPrimaryCompensation(employee: Pick<ShowEmployees, 'jobs'>): import('@gusto/embedded-api/models/components/compensation.js').Compensation | undefined;
@@ -1,3 +1,3 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  /** @internal */
3
3
  export declare function scheduleLabel(schedule: PayScheduleShow): string;
@@ -0,0 +1,34 @@
1
+ import { ShowEmployees } from '@gusto/embedded-api/models/components/showemployees';
2
+ /**
3
+ * Checks the employee eligibility rules used by pay schedule assignment.
4
+ *
5
+ * @param employee - Employee returned by the list endpoint.
6
+ * @returns Whether the employee is onboarded, current, and has compensation data.
7
+ * @internal
8
+ */
9
+ export declare function isAssignableEmployee(employee: ShowEmployees): boolean;
10
+ /**
11
+ * Loads every employee page before exposing the assignable roster.
12
+ *
13
+ * @param companyId - Company whose employees are being assigned.
14
+ * @returns Loading state or the complete roster and any missing access or compensation data.
15
+ * @internal
16
+ */
17
+ export declare function useAssignableEmployees(companyId: string): {
18
+ status: "loading";
19
+ } | {
20
+ employees: ShowEmployees[];
21
+ accessDenied: boolean;
22
+ status: "ready";
23
+ };
24
+ /**
25
+ * Loads the complete assignable roster, suspending until every employee page is ready.
26
+ *
27
+ * @param companyId - Company whose employees are being assigned.
28
+ * @returns The complete roster and any missing compensation data.
29
+ * @internal
30
+ */
31
+ export declare function useAssignableEmployeesSuspense(companyId: string): {
32
+ employees: ShowEmployees[];
33
+ accessDenied: boolean;
34
+ };
@@ -1,12 +1,23 @@
1
1
  import { PayScheduleAssignmentBodyType } from '@gusto/embedded-api/models/components/payscheduleassignmentbody';
2
+ import { EmployeeSelection } from './AssignmentEmployeeStepPresentation';
3
+ import { DepartmentSelection } from './AssignmentDepartmentStepPresentation';
2
4
  import { FlowContextInterface } from '../../../../Flow/useFlow';
3
5
  /**
4
- * The assignment types this flow supports. `by_employee` and `by_department` exist in the API
5
- * but have no step implementations, so they're unrepresentable here.
6
+ * The assignment types supported by the management flow.
6
7
  *
7
8
  * @internal
8
9
  */
9
- export type SupportedAssignmentType = Extract<PayScheduleAssignmentBodyType, 'single' | 'hourly_salaried'>;
10
+ export type SupportedAssignmentType = Extract<PayScheduleAssignmentBodyType, 'single' | 'hourly_salaried' | 'by_department' | 'by_employee'>;
11
+ /**
12
+ * Draft selections retained when moving between assignment steps.
13
+ *
14
+ * @internal
15
+ */
16
+ export type AssignmentDraft = Partial<DepartmentSelection & EmployeeSelection> & {
17
+ assignmentType?: SupportedAssignmentType;
18
+ hourlyPayScheduleUuid?: string;
19
+ salariedPayScheduleUuid?: string;
20
+ };
10
21
  /** @internal */
11
22
  export interface PayScheduleAssignmentContextInterface extends FlowContextInterface {
12
23
  companyId: string;
@@ -14,5 +25,7 @@ export interface PayScheduleAssignmentContextInterface extends FlowContextInterf
14
25
  defaultPayScheduleUuid?: string;
15
26
  hourlyPayScheduleUuid?: string;
16
27
  salariedPayScheduleUuid?: string;
28
+ departments?: DepartmentSelection['departments'];
29
+ employees?: EmployeeSelection['employees'];
17
30
  component: React.ComponentType | null;
18
31
  }
@@ -1,4 +1,4 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  /** @internal */
3
3
  export type CompensationType = 'hourly' | 'salaried';
4
4
  /** @internal */
@@ -0,0 +1,23 @@
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
+ /** @internal */
3
+ export interface PayScheduleDepartmentRow {
4
+ departmentName: string;
5
+ schedule: PayScheduleShow;
6
+ }
7
+ /** @internal */
8
+ export interface PayScheduleDepartmentOverviewPresentationProps {
9
+ /** One row per department, including employees without a department. */
10
+ rows: PayScheduleDepartmentRow[];
11
+ /** Shows the AutoPilot column and its row action when `true`. */
12
+ enableAutoPilot?: boolean;
13
+ /** Shows the Manage action when `true`. */
14
+ enableMultipleSchedules?: boolean;
15
+ /** Fired when the user chooses Edit schedule from a row menu. */
16
+ onEditSchedule: (schedule: PayScheduleShow) => void;
17
+ /** Fired when the user clicks Manage. */
18
+ onManageAssignment: () => void;
19
+ /** Fired when the user chooses AutoPilot from a row menu. */
20
+ onEditAutoPilot: (schedule: PayScheduleShow) => void;
21
+ }
22
+ /** @internal */
23
+ export declare function PayScheduleDepartmentOverviewPresentation({ rows, enableAutoPilot, enableMultipleSchedules, onEditSchedule, onManageAssignment, onEditAutoPilot, }: PayScheduleDepartmentOverviewPresentationProps): import('react').JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
+ /** @internal */
3
+ export interface PayScheduleEmployeeRow {
4
+ employeeCount: number;
5
+ schedule: PayScheduleShow;
6
+ }
7
+ /** @internal */
8
+ export interface PayScheduleEmployeeOverviewPresentationProps {
9
+ /** One row per assigned pay schedule. */
10
+ rows: PayScheduleEmployeeRow[];
11
+ /** Replaces the table with a warning while preserving management actions. */
12
+ accessDenied?: boolean;
13
+ /** Shows the AutoPilot column and its row action when `true`. */
14
+ enableAutoPilot?: boolean;
15
+ /** Shows the Manage action when `true`. */
16
+ enableMultipleSchedules?: boolean;
17
+ /** Fired when the user chooses Edit schedule from a row menu. */
18
+ onEditSchedule: (schedule: PayScheduleShow) => void;
19
+ /** Fired when the user clicks Manage. */
20
+ onManageAssignment: () => void;
21
+ /** Fired when the user chooses AutoPilot from a row menu. */
22
+ onEditAutoPilot: (schedule: PayScheduleShow) => void;
23
+ }
24
+ /** @internal */
25
+ export declare function PayScheduleEmployeeOverviewPresentation({ rows, accessDenied, enableAutoPilot, enableMultipleSchedules, onEditSchedule, onManageAssignment, onEditAutoPilot, }: PayScheduleEmployeeOverviewPresentationProps): import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  import { PayScheduleDefaultValues } from '../PaySchedule';
3
3
  import { FlowContextInterface } from '../../../Flow/useFlow';
4
4
  /** @internal */
@@ -1,4 +1,4 @@
1
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
2
2
  /** @internal */
3
3
  export interface PayScheduleOverviewPresentationProps {
4
4
  /** The company's single pay schedule. */
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from 'react';
2
2
  import { UseFormProps } from 'react-hook-form';
3
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
3
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
4
4
  import { PaySchedulePreviewPayPeriod } from '@gusto/embedded-api/models/components/payschedulepreviewpayperiod';
5
5
  import { WorkweekStartDay } from '@gusto/embedded-api/models/components/payschedulecreaterequest';
6
6
  import { PayScheduleOptionalFieldsToRequire, PayScheduleFormData } from './payScheduleSchema';
@@ -7,8 +7,11 @@ import { BaseComponentInterface } from '../../Base';
7
7
  export interface LandingProps extends BaseComponentInterface<'Contractor.Landing'> {
8
8
  /** UUID of the contractor entering the self-onboarding flow. */
9
9
  contractorId: string;
10
- /** UUID of the company the contractor belongs to. */
11
- companyId: string;
10
+ /**
11
+ * @deprecated
12
+ * UUID of the company the contractor belongs to.
13
+ */
14
+ companyId?: string;
12
15
  }
13
16
  /**
14
17
  * Landing page for the contractor self-onboarding flow. Displays a welcome
@@ -7,8 +7,11 @@ import { BaseComponentInterface } from '../../Base';
7
7
  export interface LandingProps extends BaseComponentInterface<'Employee.Landing'> {
8
8
  /** UUID of the employee entering the self-onboarding flow. */
9
9
  employeeId: string;
10
- /** UUID of the company the employee belongs to. */
11
- companyId: string;
10
+ /**
11
+ * @deprecated
12
+ * UUID of the company the employee belongs to.
13
+ */
14
+ companyId?: string;
12
15
  }
13
16
  /**
14
17
  * Landing page for the employee self-onboarding flow. Displays a welcome
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { PayrollEmployeeCompensationsType } from '@gusto/embedded-api/models/components/payrollemployeecompensationstype';
3
3
  import { Employee } from '@gusto/embedded-api/models/components/employee';
4
4
  import { PayrollPayPeriodType } from '@gusto/embedded-api/models/components/payrollpayperiodtype';
5
- import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleshow';
5
+ import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payschedulelistitem';
6
6
  import { PayrollCategory } from '../payrollTypes';
7
7
  import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
8
8
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
@@ -1,7 +1,7 @@
1
1
  import { PayrollEmployeeCompensationsType } from '@gusto/embedded-api/models/components/payrollemployeecompensationstype';
2
2
  import { Employee } from '@gusto/embedded-api/models/components/employee';
3
3
  import { PayrollPayPeriodType } from '@gusto/embedded-api/models/components/payrollpayperiodtype';
4
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
4
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
5
5
  import { PayrollCategory } from '../payrollTypes';
6
6
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
7
7
  interface UsePayrollConfigurationDataParams {
@@ -1,7 +1,7 @@
1
1
  import { Employee } from '@gusto/embedded-api/models/components/employee';
2
2
  import { PayrollEmployeeCompensationsType } from '@gusto/embedded-api/models/components/payrollemployeecompensationstype';
3
3
  import { PayrollFixedCompensationTypesType } from '@gusto/embedded-api/models/components/payrollfixedcompensationtypestype';
4
- import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleshow';
4
+ import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payschedulelistitem';
5
5
  import { z } from 'zod';
6
6
  import { PayrollCategory } from '../payrollTypes';
7
7
  interface PayrollEditEmployeeProps {
@@ -1,8 +1,8 @@
1
1
  import { UseFormProps } from 'react-hook-form';
2
2
  import { Employee } from '@gusto/embedded-api/models/components/employee';
3
3
  import { PayrollEmployeeCompensationsType } from '@gusto/embedded-api/models/components/payrollemployeecompensationstype';
4
- import { PayrollPrepared } from '@gusto/embedded-api/models/components/payrollshow';
5
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
4
+ import { PayrollPrepared } from '@gusto/embedded-api/models/components/unprocessedpayroll';
5
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
6
6
  import { PayrollEditEmployeeFormData } from './payrollEditEmployeeSchema';
7
7
  import { NormalizedWorkweek } from './payrollEditEmployeeHelpers';
8
8
  import { PayrollEditEmployeeErrorMessages, PayrollEditEmployeeFields, ReimbursementRow } from './fields';
@@ -1,4 +1,4 @@
1
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
1
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
2
  import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
3
3
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
4
4
  import { UseDateRangeFilterResult } from '../../../hooks/useDateRangeFilter/useDateRangeFilter';
@@ -1,5 +1,5 @@
1
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
2
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
3
  import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
4
4
  import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
5
5
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
@@ -1,4 +1,4 @@
1
- import { PayrollShow } from '@gusto/embedded-api/models/components/payrollshow';
1
+ import { PayrollShow } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
2
  import { CompanyBankAccount } from '@gusto/embedded-api/models/components/companybankaccount';
3
3
  import { PayrollSubmissionBlockerType } from '@gusto/embedded-api/models/components/payrollsubmissionblockertype';
4
4
  import { PaymentSpeed } from '@gusto/embedded-api/models/components/paymentconfigs';
@@ -3,8 +3,8 @@ import { FixedCompensations, Reimbursements as Reimbursement, PayrollEmployeeCom
3
3
  import { PayrollUpdateReimbursements } from '@gusto/embedded-api/models/components/payrollupdate';
4
4
  import { PayrollFixedCompensationTypesType } from '@gusto/embedded-api/models/components/payrollfixedcompensationtypestype';
5
5
  import { TFunction } from 'i18next';
6
- import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleshow';
7
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
6
+ import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payschedulelistitem';
7
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
8
8
  import { PayrollType } from './PayrollList/types';
9
9
  import { PayrollCategory } from './payrollTypes';
10
10
  import { useDateFormatter } from '../../hooks/useDateFormatter';
@@ -1,5 +1,5 @@
1
- import { PayrollPrepared } from '@gusto/embedded-api/models/components/payrollshow';
2
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayrollPrepared } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
3
  interface UsePreparedPayrollDataParams {
4
4
  companyId: string;
5
5
  payrollId: string;