@gusto/embedded-react-sdk 0.56.5 → 0.56.7-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -6
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -8
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -6
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -6
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -11
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -9
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -6
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -6
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -6
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.js +39 -0
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialogPresentation.js +54 -0
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialogPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.js +56 -0
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PaySchedule.js +54 -39
- package/dist/components/Company/PaySchedule/management/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js +70 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +30 -32
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +35 -27
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +52 -31
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +106 -66
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +36 -30
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.js +7 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.js +81 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js +48 -32
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +47 -19
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js +74 -32
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -6
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -6
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -6
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +17 -14
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -6
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +27 -16
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +25 -17
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js +13 -13
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js +6 -5
- package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +49 -48
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +55 -57
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +25 -18
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +49 -47
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +7 -10
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +13 -12
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/createSdkQueryClient.js +4 -3
- package/dist/contexts/ApiProvider/createSdkQueryClient.js.map +1 -1
- package/dist/contexts/ApiProvider/payrollDeductionAmountHook.js +36 -0
- package/dist/contexts/ApiProvider/payrollDeductionAmountHook.js.map +1 -0
- package/dist/helpers/validations.js +1 -1
- package/dist/helpers/validations.js.map +1 -1
- package/dist/i18n/I18n.js +1 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.AssignSignatory.json.js +1 -1
- package/dist/i18n/en/Company.Management.AutoPilotDialog.json.js +22 -0
- package/dist/i18n/en/Company.Management.AutoPilotDialog.json.js.map +1 -0
- package/dist/i18n/en/Company.Management.PaySchedule.json.js +24 -14
- package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +12 -10
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/shared/constants.js +18 -15
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialogPresentation.d.ts +17 -0
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.d.ts +22 -0
- package/dist/src/components/Company/PaySchedule/management/PaySchedule.d.ts +17 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.d.ts +15 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +3 -3
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +7 -3
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +20 -4
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.d.ts +3 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +10 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.d.ts +25 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +2 -0
- package/dist/src/components/Company/PaySchedule/management/index.d.ts +1 -1
- package/dist/src/components/Company/exports/companyManagement.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +1 -1
- package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +6 -0
- package/dist/src/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.test.d.ts +1 -0
- package/dist/src/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.test.d.ts +1 -0
- package/dist/src/components/Payroll/PayrollList/__fixtures__/payrollListMocks.d.ts +67 -0
- package/dist/src/contexts/ApiProvider/createSdkQueryClient.d.ts +2 -0
- package/dist/src/contexts/ApiProvider/createSdkQueryClient.test.d.ts +1 -0
- package/dist/src/contexts/ApiProvider/payrollDeductionAmountHook.d.ts +12 -0
- package/dist/src/contexts/ApiProvider/payrollDeductionAmountHook.test.d.ts +1 -0
- package/dist/src/helpers/validations.test.d.ts +1 -0
- package/dist/src/i18n/types.d.ts +119 -2
- package/dist/src/models/external.d.ts +7 -6
- package/dist/src/shared/constants.d.ts +6 -0
- package/docs/guides/endpoint-inventory.json +27 -1
- package/package.json +14 -14
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { HttpHandler, HttpResponseResolver } from 'msw';
|
|
2
|
+
/**
|
|
3
|
+
* Shared, parameterizable mock data + MSW handlers for the PayrollList container tests.
|
|
4
|
+
*
|
|
5
|
+
* All shapes are the snake_case JSON the API returns (the SDK client normalizes
|
|
6
|
+
* to camelCase), so these plug directly into MSW resolvers.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMPANY_ID = "company-123";
|
|
9
|
+
export declare const createListPayroll: (overrides?: Record<string, unknown>) => {
|
|
10
|
+
payroll_uuid: string;
|
|
11
|
+
processed: boolean;
|
|
12
|
+
off_cycle: boolean;
|
|
13
|
+
external: boolean;
|
|
14
|
+
payroll_type: string;
|
|
15
|
+
check_date: string;
|
|
16
|
+
payroll_deadline: string;
|
|
17
|
+
pay_period: {
|
|
18
|
+
start_date: string;
|
|
19
|
+
end_date: string;
|
|
20
|
+
pay_schedule_uuid: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const createOffCyclePayroll: (offCycleReason: string, overrides?: Record<string, unknown>) => {
|
|
24
|
+
payroll_uuid: string;
|
|
25
|
+
processed: boolean;
|
|
26
|
+
off_cycle: boolean;
|
|
27
|
+
external: boolean;
|
|
28
|
+
payroll_type: string;
|
|
29
|
+
check_date: string;
|
|
30
|
+
payroll_deadline: string;
|
|
31
|
+
pay_period: {
|
|
32
|
+
start_date: string;
|
|
33
|
+
end_date: string;
|
|
34
|
+
pay_schedule_uuid: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const createPaySchedule: (overrides?: Record<string, unknown>) => {
|
|
38
|
+
uuid: string;
|
|
39
|
+
frequency: string;
|
|
40
|
+
anchor_pay_date: string;
|
|
41
|
+
anchor_end_of_pay_period: string;
|
|
42
|
+
custom_name: string;
|
|
43
|
+
active: boolean;
|
|
44
|
+
version: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const createTransitionPayPeriod: () => {
|
|
47
|
+
start_date: string;
|
|
48
|
+
end_date: string;
|
|
49
|
+
pay_schedule_uuid: string;
|
|
50
|
+
payroll: {
|
|
51
|
+
processed: boolean;
|
|
52
|
+
payroll_type: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
interface PayrollListHandlerOptions {
|
|
56
|
+
payrolls?: Array<Record<string, unknown>>;
|
|
57
|
+
payrollsHeaders?: Record<string, string>;
|
|
58
|
+
payrollsResolver?: HttpResponseResolver;
|
|
59
|
+
paySchedules?: Array<Record<string, unknown>>;
|
|
60
|
+
blockers?: Array<Record<string, unknown>>;
|
|
61
|
+
wireInRequests?: Array<Record<string, unknown>>;
|
|
62
|
+
payPeriods?: Array<Record<string, unknown>>;
|
|
63
|
+
}
|
|
64
|
+
export declare const buildPayrollListHandlers: ({ payrolls, payrollsHeaders, payrollsResolver, paySchedules, blockers, wireInRequests, payPeriods, }?: PayrollListHandlerOptions) => HttpHandler[];
|
|
65
|
+
export declare const handleSkipPayroll: (resolver: HttpResponseResolver) => HttpHandler;
|
|
66
|
+
export declare const handleDeletePayroll: (resolver: HttpResponseResolver) => HttpHandler;
|
|
67
|
+
export {};
|
|
@@ -5,6 +5,8 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
5
5
|
* @remarks
|
|
6
6
|
* Defaults applied:
|
|
7
7
|
* - `retry: false` on both queries and mutations.
|
|
8
|
+
* - `networkMode: 'always'` on both queries and mutations, so requests made while the browser reports offline fail with an error instead of
|
|
9
|
+
* staying paused (and showing an indefinite loading state) until connectivity returns.
|
|
8
10
|
* - On any successful mutation, every SDK query under the namespace is invalidated so the next read refetches fresh data.
|
|
9
11
|
*
|
|
10
12
|
* {@link ApiProvider} uses this when no `queryClient` prop is supplied, and `GustoTestProvider` uses it so tests faithfully replicate production
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AfterSuccessHook } from '../../types/hooks';
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes string deduction amounts for payroll responses whose generated schema expects numbers.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* API version 2026-06-15 returns decimal strings, including percentage deductions. The generated
|
|
7
|
+
* prepare, update, and off-cycle response schemas still require numbers. Remove this compatibility
|
|
8
|
+
* hook once those schemas match the API. Invalid amounts remain unchanged so validation rejects them.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const payrollDeductionAmountHook: AfterSuccessHook;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/i18n/types.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export interface Resources {
|
|
|
29
29
|
/** */
|
|
30
30
|
'Company.Locations': Translations.CompanyLocations
|
|
31
31
|
/** */
|
|
32
|
+
'Company.Management.AutoPilotDialog': Translations.CompanyManagementAutoPilotDialog
|
|
33
|
+
/** */
|
|
32
34
|
'Company.Management.PaySchedule': Translations.CompanyManagementPaySchedule
|
|
33
35
|
/** */
|
|
34
36
|
'Company.Management.PayScheduleAssignment': Translations.CompanyManagementPayScheduleAssignment
|
|
@@ -375,9 +377,9 @@ export namespace Translations {
|
|
|
375
377
|
email: string
|
|
376
378
|
/** @defaultValue `"Email addresses must match"` */
|
|
377
379
|
emailMismatch: string
|
|
378
|
-
/** @defaultValue `"
|
|
380
|
+
/** @defaultValue `"Enter a valid first name"` */
|
|
379
381
|
firstName: string
|
|
380
|
-
/** @defaultValue `"
|
|
382
|
+
/** @defaultValue `"Enter a valid last name"` */
|
|
381
383
|
lastName: string
|
|
382
384
|
/** @defaultValue `"Phone number must be 10 digits"` */
|
|
383
385
|
phone: string
|
|
@@ -942,25 +944,120 @@ export namespace Translations {
|
|
|
942
944
|
phone: string
|
|
943
945
|
}
|
|
944
946
|
}
|
|
947
|
+
/** Translation keys for the `Company.Management.AutoPilotDialog` i18n namespace. */
|
|
948
|
+
export interface CompanyManagementAutoPilotDialog {
|
|
949
|
+
/** @defaultValue `"AutoPilot — {{scheduleName}}"` */
|
|
950
|
+
title: string
|
|
951
|
+
/** @defaultValue `"AutoPilot takes care of payroll for you. Payrolls are editable until 1 day before your pay deadline and funds are debited on your pay deadline."` */
|
|
952
|
+
description: string
|
|
953
|
+
/** @defaultValue `"Enable AutoPilot"` */
|
|
954
|
+
toggleLabel: string
|
|
955
|
+
/** @defaultValue `"Checking AutoPilot eligibility…"` */
|
|
956
|
+
checkingEligibility: string
|
|
957
|
+
/** @defaultValue `"Save"` */
|
|
958
|
+
saveCta: string
|
|
959
|
+
/** @defaultValue `"Cancel"` */
|
|
960
|
+
cancelCta: string
|
|
961
|
+
saveError: {
|
|
962
|
+
/** @defaultValue `"AutoPilot settings couldn't be saved"` */
|
|
963
|
+
title: string
|
|
964
|
+
/** @defaultValue `"Something went wrong saving your AutoPilot changes. Contact support if this continues."` */
|
|
965
|
+
description: string
|
|
966
|
+
}
|
|
967
|
+
blockers: {
|
|
968
|
+
/** @defaultValue `"AutoPilot isn't available yet"` */
|
|
969
|
+
heading: string
|
|
970
|
+
employees_not_on_direct_deposit: {
|
|
971
|
+
/** @defaultValue `"Some employees aren't on direct deposit"` */
|
|
972
|
+
title: string
|
|
973
|
+
/** @defaultValue `"Every employee on this schedule needs to be set up with direct deposit before AutoPilot can run their payroll automatically."` */
|
|
974
|
+
description: string
|
|
975
|
+
}
|
|
976
|
+
employees_not_salaried: {
|
|
977
|
+
/** @defaultValue `"Some employees aren't salaried"` */
|
|
978
|
+
title: string
|
|
979
|
+
/** @defaultValue `"AutoPilot requires every employee on this schedule to be salaried."` */
|
|
980
|
+
description: string
|
|
981
|
+
}
|
|
982
|
+
missing_state_tax_requirements: {
|
|
983
|
+
/** @defaultValue `"State tax setup is incomplete"` */
|
|
984
|
+
title: string
|
|
985
|
+
/** @defaultValue `"Finish state tax setup for every state this schedule's employees work in before enabling AutoPilot."` */
|
|
986
|
+
description: string
|
|
987
|
+
}
|
|
988
|
+
missing_funding_method: {
|
|
989
|
+
/** @defaultValue `"No funding method on file"` */
|
|
990
|
+
title: string
|
|
991
|
+
/** @defaultValue `"Add a verified bank account to use as the default funding method before enabling AutoPilot."` */
|
|
992
|
+
description: string
|
|
993
|
+
}
|
|
994
|
+
one_day_ach_speed_not_supported: {
|
|
995
|
+
/** @defaultValue `"Payment speed isn't eligible"` */
|
|
996
|
+
title: string
|
|
997
|
+
/** @defaultValue `"AutoPilot isn't available for schedules using next-day ACH."` */
|
|
998
|
+
description: string
|
|
999
|
+
}
|
|
1000
|
+
company_suspended: {
|
|
1001
|
+
/** @defaultValue `"Company is suspended"` */
|
|
1002
|
+
title: string
|
|
1003
|
+
/** @defaultValue `"Resolve your company's suspension before enabling AutoPilot."` */
|
|
1004
|
+
description: string
|
|
1005
|
+
}
|
|
1006
|
+
earned_fast_ach_not_met: {
|
|
1007
|
+
/** @defaultValue `"Fast ACH threshold not met"` */
|
|
1008
|
+
title: string
|
|
1009
|
+
/** @defaultValue `"This company hasn't yet met the funding history needed to qualify for fast ACH payments."` */
|
|
1010
|
+
description: string
|
|
1011
|
+
}
|
|
1012
|
+
hourly_employees_missing_default_hours: {
|
|
1013
|
+
/** @defaultValue `"Some hourly employees are missing default hours"` */
|
|
1014
|
+
title: string
|
|
1015
|
+
/** @defaultValue `"Set default hours for every hourly employee on this schedule before enabling AutoPilot."` */
|
|
1016
|
+
description: string
|
|
1017
|
+
}
|
|
1018
|
+
generic: {
|
|
1019
|
+
/** @defaultValue `"AutoPilot can't be enabled right now"` */
|
|
1020
|
+
title: string
|
|
1021
|
+
/** @defaultValue `"Something is preventing AutoPilot from being enabled for this schedule. Contact support if this continues."` */
|
|
1022
|
+
description: string
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
945
1026
|
/** Translation keys for the `Company.Management.PaySchedule` i18n namespace. */
|
|
946
1027
|
export interface CompanyManagementPaySchedule {
|
|
947
1028
|
/** @defaultValue `"Pay schedule"` */
|
|
948
1029
|
title: string
|
|
949
1030
|
/** @defaultValue `"You have assigned everyone to be on one pay schedule."` */
|
|
950
1031
|
description: string
|
|
1032
|
+
/** @defaultValue `"You have assigned employees to pay schedules by compensation type."` */
|
|
1033
|
+
compensationDescription: string
|
|
1034
|
+
/** @defaultValue `"Pay schedules by compensation type"` */
|
|
1035
|
+
compensationTableLabel: string
|
|
951
1036
|
/** @defaultValue `"Manage"` */
|
|
952
1037
|
manageCta: string
|
|
953
1038
|
/** @defaultValue `"Edit"` */
|
|
954
1039
|
editCta: string
|
|
1040
|
+
/** @defaultValue `"Edit schedule"` */
|
|
1041
|
+
editScheduleCta: string
|
|
955
1042
|
/** @defaultValue `"Edit pay schedule"` */
|
|
956
1043
|
editScheduleAriaLabel: string
|
|
957
1044
|
/** @defaultValue `"Edit AutoPilot"` */
|
|
958
1045
|
editAutoPilotAriaLabel: string
|
|
1046
|
+
/** @defaultValue `"Pay schedule actions"` */
|
|
1047
|
+
rowMenuTriggerLabel: string
|
|
959
1048
|
labels: {
|
|
960
1049
|
/** @defaultValue `"Name"` */
|
|
961
1050
|
name: string
|
|
962
1051
|
/** @defaultValue `"Frequency"` */
|
|
963
1052
|
frequency: string
|
|
1053
|
+
/** @defaultValue `"Schedule"` */
|
|
1054
|
+
schedule: string
|
|
1055
|
+
}
|
|
1056
|
+
compensationTypes: {
|
|
1057
|
+
/** @defaultValue `"Hourly"` */
|
|
1058
|
+
hourly: string
|
|
1059
|
+
/** @defaultValue `"Salaried"` */
|
|
1060
|
+
salaried: string
|
|
964
1061
|
}
|
|
965
1062
|
autoPilot: {
|
|
966
1063
|
/** @defaultValue `"AutoPilot"` */
|
|
@@ -989,6 +1086,12 @@ export namespace Translations {
|
|
|
989
1086
|
/** @defaultValue `"Choose one pay schedule for all your employees"` */
|
|
990
1087
|
description: string
|
|
991
1088
|
}
|
|
1089
|
+
hourlySalaried: {
|
|
1090
|
+
/** @defaultValue `"Separate schedules by compensation type"` */
|
|
1091
|
+
label: string
|
|
1092
|
+
/** @defaultValue `"Choose one pay schedule for hourly employees and another for salaried employees"` */
|
|
1093
|
+
description: string
|
|
1094
|
+
}
|
|
992
1095
|
}
|
|
993
1096
|
}
|
|
994
1097
|
scheduleStep: {
|
|
@@ -1001,6 +1104,20 @@ export namespace Translations {
|
|
|
1001
1104
|
/** @defaultValue `"Add pay schedule"` */
|
|
1002
1105
|
addPayScheduleCta: string
|
|
1003
1106
|
}
|
|
1107
|
+
compensationStep: {
|
|
1108
|
+
/** @defaultValue `"Assign employees"` */
|
|
1109
|
+
heading: string
|
|
1110
|
+
/** @defaultValue `"Hourly employees"` */
|
|
1111
|
+
hourlyPayScheduleLabel: string
|
|
1112
|
+
/** @defaultValue `"The pay schedule to use for hourly employees."` */
|
|
1113
|
+
hourlyPayScheduleDescription: string
|
|
1114
|
+
/** @defaultValue `"Salaried employees"` */
|
|
1115
|
+
salariedPayScheduleLabel: string
|
|
1116
|
+
/** @defaultValue `"The pay schedule to use for salaried employees."` */
|
|
1117
|
+
salariedPayScheduleDescription: string
|
|
1118
|
+
/** @defaultValue `"Add pay schedule"` */
|
|
1119
|
+
addPayScheduleCta: string
|
|
1120
|
+
}
|
|
1004
1121
|
reviewStep: {
|
|
1005
1122
|
/** @defaultValue `"Review changes"` */
|
|
1006
1123
|
heading: string
|
|
@@ -306,14 +306,15 @@ export type { PayrollUpdateReimbursements } from '@gusto/embedded-api/models/com
|
|
|
306
306
|
export type { PayrollUpdateState } from '@gusto/embedded-api/models/components/payrollupdate';
|
|
307
307
|
export type { PayrollUpdateCustomWithholdings, PayrollUpdateDeductions, PayrollUpdateFederal, PayrollUpdateFixedCompensations, PayrollUpdateHourlyCompensations, } from '@gusto/embedded-api/models/components/payrollupdate';
|
|
308
308
|
export { PayrollUpdateAmountType, PayrollUpdateEmployeeCompensationsAmountType, PayrollUpdateEmployeeCompensationsCustomWithholdingsAmountType, PayrollUpdateEmployeeCompensationsOverrideType, PayrollUpdateOverrideType, PayrollUpdatePaymentMethod, } from '@gusto/embedded-api/models/components/payrollupdate';
|
|
309
|
-
/** `
|
|
310
|
-
export
|
|
311
|
-
|
|
312
|
-
export type { PayScheduleAssignmentBody } from '@gusto/embedded-api/models/components/payscheduleassignmentbody';
|
|
313
|
-
/** `PayScheduleAssignmentBodyEmployees` entity from the Gusto Embedded API. */
|
|
314
|
-
export type { PayScheduleAssignmentBodyEmployees } from '@gusto/embedded-api/models/components/payscheduleassignmentbody';
|
|
309
|
+
/** `PayScheduleAssignmentType` entity from the Gusto Embedded API. */
|
|
310
|
+
export { PayScheduleAssignmentType } from '@gusto/embedded-api/models/components/payscheduleassignment';
|
|
311
|
+
export type { PayScheduleAssignment } from '@gusto/embedded-api/models/components/payscheduleassignment';
|
|
315
312
|
/** `PayScheduleAssignmentBodyType` entity from the Gusto Embedded API. */
|
|
316
313
|
export { PayScheduleAssignmentBodyType } from '@gusto/embedded-api/models/components/payscheduleassignmentbody';
|
|
314
|
+
/** `PayScheduleAssignmentDepartment` entity from the Gusto Embedded API. */
|
|
315
|
+
export type { PayScheduleAssignmentDepartment } from '@gusto/embedded-api/models/components/payscheduleassignmentdepartment';
|
|
316
|
+
/** `PayScheduleAssignmentEmployee` entity from the Gusto Embedded API. */
|
|
317
|
+
export type { PayScheduleAssignmentEmployee } from '@gusto/embedded-api/models/components/payscheduleassignmentemployee';
|
|
317
318
|
/** `PayScheduleAssignmentEmployeeChange` entity from the Gusto Embedded API. */
|
|
318
319
|
export type { PayScheduleAssignmentEmployeeChange } from '@gusto/embedded-api/models/components/payscheduleassignmentemployeechange';
|
|
319
320
|
export type { PayScheduleAssignmentPayPeriod } from '@gusto/embedded-api/models/components/payscheduleassignmentpayperiod';
|
|
@@ -322,6 +322,9 @@ export declare const payScheduleEvents: {
|
|
|
322
322
|
readonly PAY_SCHEDULE_DONE: "paySchedule/done";
|
|
323
323
|
readonly PAY_SCHEDULE_MANAGE_ASSIGNMENT: "paySchedule/management/manageAssignment";
|
|
324
324
|
readonly PAY_SCHEDULE_AUTO_PILOT_EDIT: "paySchedule/management/autoPilotEdit";
|
|
325
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_ENABLED: "paySchedule/management/autoPilotEnabled";
|
|
326
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_DISABLED: "paySchedule/management/autoPilotDisabled";
|
|
327
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_DISMISSED: "paySchedule/management/autoPilotDismissed";
|
|
325
328
|
readonly PAY_SCHEDULE_ASSIGNMENT_TYPE_SELECTED: "paySchedule/management/assignment/typeSelected";
|
|
326
329
|
readonly PAY_SCHEDULE_ASSIGNMENT_SCHEDULE_SELECTED: "paySchedule/management/assignment/scheduleSelected";
|
|
327
330
|
readonly PAY_SCHEDULE_ASSIGNMENT_BACK: "paySchedule/management/assignment/back";
|
|
@@ -707,6 +710,9 @@ export declare const componentEvents: {
|
|
|
707
710
|
readonly PAY_SCHEDULE_DONE: "paySchedule/done";
|
|
708
711
|
readonly PAY_SCHEDULE_MANAGE_ASSIGNMENT: "paySchedule/management/manageAssignment";
|
|
709
712
|
readonly PAY_SCHEDULE_AUTO_PILOT_EDIT: "paySchedule/management/autoPilotEdit";
|
|
713
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_ENABLED: "paySchedule/management/autoPilotEnabled";
|
|
714
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_DISABLED: "paySchedule/management/autoPilotDisabled";
|
|
715
|
+
readonly PAY_SCHEDULE_AUTO_PILOT_DISMISSED: "paySchedule/management/autoPilotDismissed";
|
|
710
716
|
readonly PAY_SCHEDULE_ASSIGNMENT_TYPE_SELECTED: "paySchedule/management/assignment/typeSelected";
|
|
711
717
|
readonly PAY_SCHEDULE_ASSIGNMENT_SCHEDULE_SELECTED: "paySchedule/management/assignment/scheduleSelected";
|
|
712
718
|
readonly PAY_SCHEDULE_ASSIGNMENT_BACK: "paySchedule/management/assignment/back";
|
|
@@ -1790,6 +1790,11 @@
|
|
|
1790
1790
|
"path": "/v1/companies/:companyId/pay_schedules/assignment_preview",
|
|
1791
1791
|
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/post-v1-companies-company_id-pay_schedules-assignment_preview"
|
|
1792
1792
|
},
|
|
1793
|
+
{
|
|
1794
|
+
"method": "GET",
|
|
1795
|
+
"path": "/v1/companies/:companyId/pay_schedules/assignments",
|
|
1796
|
+
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/get-v1-companies-company_id-pay_schedules-assignments"
|
|
1797
|
+
},
|
|
1793
1798
|
{
|
|
1794
1799
|
"method": "GET",
|
|
1795
1800
|
"path": "/v1/companies/:companyId/pay_schedules/preview",
|
|
@@ -1986,6 +1991,16 @@
|
|
|
1986
1991
|
"path": "/v1/companies/:companyId/pay_schedules",
|
|
1987
1992
|
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/get-v1-companies-company_id-pay_schedules"
|
|
1988
1993
|
},
|
|
1994
|
+
{
|
|
1995
|
+
"method": "GET",
|
|
1996
|
+
"path": "/v1/companies/:companyId/pay_schedules/:payScheduleId",
|
|
1997
|
+
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/get-v1-companies-company_id-pay_schedules-pay_schedule_id"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"method": "PUT",
|
|
2001
|
+
"path": "/v1/companies/:companyId/pay_schedules/:payScheduleId",
|
|
2002
|
+
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/put-v1-companies-company_id-pay_schedules-pay_schedule_id"
|
|
2003
|
+
},
|
|
1989
2004
|
{
|
|
1990
2005
|
"method": "POST",
|
|
1991
2006
|
"path": "/v1/companies/:companyId/pay_schedules/assign",
|
|
@@ -1995,10 +2010,16 @@
|
|
|
1995
2010
|
"method": "POST",
|
|
1996
2011
|
"path": "/v1/companies/:companyId/pay_schedules/assignment_preview",
|
|
1997
2012
|
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/post-v1-companies-company_id-pay_schedules-assignment_preview"
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
"method": "GET",
|
|
2016
|
+
"path": "/v1/companies/:companyId/pay_schedules/assignments",
|
|
2017
|
+
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/get-v1-companies-company_id-pay_schedules-assignments"
|
|
1998
2018
|
}
|
|
1999
2019
|
],
|
|
2000
2020
|
"variables": [
|
|
2001
|
-
"companyId"
|
|
2021
|
+
"companyId",
|
|
2022
|
+
"payScheduleId"
|
|
2002
2023
|
]
|
|
2003
2024
|
},
|
|
2004
2025
|
"CompanyManagement.PayScheduleAssignment": {
|
|
@@ -2017,6 +2038,11 @@
|
|
|
2017
2038
|
"method": "POST",
|
|
2018
2039
|
"path": "/v1/companies/:companyId/pay_schedules/assignment_preview",
|
|
2019
2040
|
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/post-v1-companies-company_id-pay_schedules-assignment_preview"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"method": "GET",
|
|
2044
|
+
"path": "/v1/companies/:companyId/pay_schedules/assignments",
|
|
2045
|
+
"docsUrl": "https://docs.gusto.com/embedded-payroll/v2026-06-15/reference/get-v1-companies-company_id-pay_schedules-assignments"
|
|
2020
2046
|
}
|
|
2021
2047
|
],
|
|
2022
2048
|
"variables": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.7-rc.1",
|
|
4
4
|
"homepage": "https://github.com/Gusto/embedded-react-sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"pack": "npm run build && npm pack",
|
|
66
66
|
"release": "release-it",
|
|
67
67
|
"postversion": "git push",
|
|
68
|
-
"prepare": "husky",
|
|
68
|
+
"prepare": "husky || true",
|
|
69
69
|
"prepublishOnly": "npm run build",
|
|
70
70
|
"preversion": "npm test",
|
|
71
71
|
"test": "vitest",
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
"@commitlint/config-conventional": "^21.2.2",
|
|
101
101
|
"@eslint/js": "^9.39.5",
|
|
102
102
|
"@microsoft/api-extractor": "^7.59.1",
|
|
103
|
-
"@playwright/test": "^1.
|
|
103
|
+
"@playwright/test": "^1.64.0",
|
|
104
104
|
"@release-it/conventional-changelog": "^12.0.2",
|
|
105
105
|
"@storybook/addon-a11y": "^10.6.0",
|
|
106
106
|
"@storybook/addon-docs": "^10.6.0",
|
|
107
|
-
"@storybook/addon-onboarding": "^10.6.
|
|
107
|
+
"@storybook/addon-onboarding": "^10.6.1",
|
|
108
108
|
"@storybook/react-vite": "^10.6.0",
|
|
109
109
|
"@storybook/test-runner": "^0.24.5",
|
|
110
110
|
"@testing-library/dom": "^10.4.2",
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
"@vitest/coverage-v8": "^5.0.0",
|
|
125
125
|
"ajv": "^8.20.0",
|
|
126
126
|
"axe-core": "^4.13.0",
|
|
127
|
-
"cspell": "^10.3.
|
|
128
|
-
"dotenv": "^18.0.
|
|
127
|
+
"cspell": "^10.3.6",
|
|
128
|
+
"dotenv": "^18.0.3",
|
|
129
129
|
"eslint": "^9.39.5",
|
|
130
130
|
"eslint-plugin-import": "^2.31.0",
|
|
131
131
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
134
134
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
135
135
|
"eslint-plugin-storybook": "^10.6.0",
|
|
136
|
-
"eslint-plugin-tsdoc": "^0.5.
|
|
136
|
+
"eslint-plugin-tsdoc": "^0.5.4",
|
|
137
137
|
"fuse.js": "^7.5.0",
|
|
138
138
|
"globals": "^17.12.0",
|
|
139
139
|
"husky": "^9.1.7",
|
|
@@ -147,18 +147,18 @@
|
|
|
147
147
|
"npm-run-all": "^4.1.5",
|
|
148
148
|
"pixelmatch": "^7.2.0",
|
|
149
149
|
"pngjs": "^7.0.0",
|
|
150
|
-
"prettier": "^3.9.
|
|
150
|
+
"prettier": "^3.9.9",
|
|
151
151
|
"prism-react-renderer": "^2.4.1",
|
|
152
152
|
"react-dnd": "^16.0.1",
|
|
153
153
|
"react-dnd-html5-backend": "^16.0.1",
|
|
154
154
|
"react-router-dom": "^7.18.4",
|
|
155
|
-
"release-it": "^21.1.
|
|
156
|
-
"sass-embedded": "^1.
|
|
155
|
+
"release-it": "^21.1.1",
|
|
156
|
+
"sass-embedded": "^1.105.0",
|
|
157
157
|
"storybook": "^10.5.5",
|
|
158
158
|
"stylelint-config-standard": "^40.0.0",
|
|
159
159
|
"ts-morph": "^28.0.0",
|
|
160
160
|
"tsx": "^4.23.15",
|
|
161
|
-
"typescript-eslint": "^8.70.
|
|
161
|
+
"typescript-eslint": "^8.70.1",
|
|
162
162
|
"vite": "^6.4.3",
|
|
163
163
|
"vite-plugin-checker": "^0.14.5",
|
|
164
164
|
"vite-plugin-circular-dependency": "^0.6.0",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"js-yaml": "^4.3.2",
|
|
181
181
|
"uuid": "^11.1.1",
|
|
182
182
|
"@babel/core": "^7.29.6",
|
|
183
|
-
"markdown-it": "^14.2
|
|
183
|
+
"markdown-it": "^14.3.2",
|
|
184
184
|
"conventional-commits-parser": "^7.1.0",
|
|
185
185
|
"conventional-commits-filter": "^5.0.0"
|
|
186
186
|
},
|
|
@@ -189,10 +189,10 @@
|
|
|
189
189
|
"@hookform/error-message": "^2.0.1",
|
|
190
190
|
"@hookform/resolvers": "^5.9.1",
|
|
191
191
|
"@internationalized/date": "^3.12.4",
|
|
192
|
-
"@internationalized/number": "^3.6.
|
|
192
|
+
"@internationalized/number": "^3.6.9",
|
|
193
193
|
"classnames": "^2.5.1",
|
|
194
194
|
"deepmerge": "^4.3.1",
|
|
195
|
-
"dompurify": "^3.4.
|
|
195
|
+
"dompurify": "^3.4.16",
|
|
196
196
|
"i18next": "^26.4.2",
|
|
197
197
|
"react-aria": "^3.47.0",
|
|
198
198
|
"react-aria-components": "1.16.0",
|