@gusto/embedded-react-sdk 0.0.3 → 0.0.5
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/README.md +6 -0
- package/dist/{COOQDZLH-B5iac4ID.js → BMGNQTAT-BdHbew7H.js} +3 -3
- package/dist/{COOQDZLH-B5iac4ID.js.map → BMGNQTAT-BdHbew7H.js.map} +1 -1
- package/dist/Employee.Compensation-k6cvnqx0.js +69 -0
- package/dist/Employee.Compensation-k6cvnqx0.js.map +1 -0
- package/dist/Employee.Deductions-BKQWMJnY.js +75 -0
- package/dist/Employee.Deductions-BKQWMJnY.js.map +1 -0
- package/dist/Employee.EmployeeList-Bh2iUvGI.js +36 -0
- package/dist/Employee.EmployeeList-Bh2iUvGI.js.map +1 -0
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js +32 -0
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js.map +1 -0
- package/dist/Employee.PaymentMethod-B1tieS6Y.js +96 -0
- package/dist/Employee.PaymentMethod-B1tieS6Y.js.map +1 -0
- package/dist/Employee.Profile-D0IZW-HV.js +53 -0
- package/dist/Employee.Profile-D0IZW-HV.js.map +1 -0
- package/dist/Employee.Taxes-DnOVtPmd.js +53 -0
- package/dist/Employee.Taxes-DnOVtPmd.js.map +1 -0
- package/dist/{VREWMQAW-BCWuoH6G.js → STCWXWCR-C2HWmWAx.js} +4 -4
- package/dist/{VREWMQAW-BCWuoH6G.js.map → STCWXWCR-C2HWmWAx.js.map} +1 -1
- package/dist/{MU7WGUJF-D3o-8MpJ.js → UODQIBEW-3KqHTTDo.js} +3 -3
- package/dist/{MU7WGUJF-D3o-8MpJ.js.map → UODQIBEW-3KqHTTDo.js.map} +1 -1
- package/dist/index-CYu59Yku.js +33097 -0
- package/dist/index-CYu59Yku.js.map +1 -0
- package/dist/{src/generated/schema.d.ts → index.d.ts} +18917 -15295
- package/dist/index.js +39 -38
- package/dist/style.css +1 -1
- package/package.json +10 -4
- package/README.internal.md +0 -28
- package/dist/Employee.Compensation-BwQ0aU6j.js +0 -69
- package/dist/Employee.Compensation-BwQ0aU6j.js.map +0 -1
- package/dist/Employee.Deductions-v07AzjHC.js +0 -52
- package/dist/Employee.Deductions-v07AzjHC.js.map +0 -1
- package/dist/Employee.EmployeeList-ezoiz5mY.js +0 -34
- package/dist/Employee.EmployeeList-ezoiz5mY.js.map +0 -1
- package/dist/Employee.OnboardingSummary-CX_vCaZK.js +0 -34
- package/dist/Employee.OnboardingSummary-CX_vCaZK.js.map +0 -1
- package/dist/Employee.PaymentMethod-lPeUXCVJ.js +0 -56
- package/dist/Employee.PaymentMethod-lPeUXCVJ.js.map +0 -1
- package/dist/Employee.Profile-B_wp6Ee2.js +0 -53
- package/dist/Employee.Profile-B_wp6Ee2.js.map +0 -1
- package/dist/Employee.Taxes-DrKjSqOM.js +0 -48
- package/dist/Employee.Taxes-DrKjSqOM.js.map +0 -1
- package/dist/index-G-nwCZPb.js +0 -32491
- package/dist/index-G-nwCZPb.js.map +0 -1
- package/dist/src/api/client.d.ts +0 -1361
- package/dist/src/api/constants.d.ts +0 -1
- package/dist/src/api/context.d.ts +0 -14
- package/dist/src/api/queries/company.d.ts +0 -267
- package/dist/src/api/queries/employee.d.ts +0 -586
- package/dist/src/api/queries/helpers.d.ts +0 -19
- package/dist/src/api/queries/index.d.ts +0 -3
- package/dist/src/api/queries/payroll.d.ts +0 -26
- package/dist/src/api/typeHelpers.d.ts +0 -18
- package/dist/src/components/Base/Base.d.ts +0 -25
- package/dist/src/components/Base/index.d.ts +0 -1
- package/dist/src/components/Common/Alert/Alert.d.ts +0 -6
- package/dist/src/components/Common/Button/Button.d.ts +0 -8
- package/dist/src/components/Common/Checkbox/Checkbox.d.ts +0 -7
- package/dist/src/components/Common/DateField/DateField.d.ts +0 -8
- package/dist/src/components/Common/EmptyData/EmptyData.d.ts +0 -6
- package/dist/src/components/Common/Flex/Flex.d.ts +0 -12
- package/dist/src/components/Common/Hamburger/Hamburger.d.ts +0 -10
- package/dist/src/components/Common/InternalError/InternalError.d.ts +0 -2
- package/dist/src/components/Common/Loading/Loading.d.ts +0 -1
- package/dist/src/components/Common/NumberField/NumberField.d.ts +0 -9
- package/dist/src/components/Common/Select/Select.d.ts +0 -17
- package/dist/src/components/Common/TaxInputs/TaxInputs.d.ts +0 -21
- package/dist/src/components/Common/TaxInputs/index.d.ts +0 -1
- package/dist/src/components/Common/Toast/Toast.d.ts +0 -4
- package/dist/src/components/Common/hooks/useAsyncError.d.ts +0 -5
- package/dist/src/components/Common/index.d.ts +0 -14
- package/dist/src/components/Company/Addresses.d.ts +0 -7
- package/dist/src/components/Company/BankAccount.d.ts +0 -6
- package/dist/src/components/Company/FederalTaxes.d.ts +0 -7
- package/dist/src/components/Company/Industry.d.ts +0 -12
- package/dist/src/components/Company/Overview.d.ts +0 -7
- package/dist/src/components/Company/StateTaxes.d.ts +0 -6
- package/dist/src/components/Company/index.d.ts +0 -5
- package/dist/src/components/Employee/BankAccount.d.ts +0 -15
- package/dist/src/components/Employee/Compensation/Actions.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/Compensation.d.ts +0 -60
- package/dist/src/components/Employee/Compensation/Edit.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/Head.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/List.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/index.d.ts +0 -1
- package/dist/src/components/Employee/Deductions.d.ts +0 -7
- package/dist/src/components/Employee/EditDeduction.d.ts +0 -23
- package/dist/src/components/Employee/EmployeeList.d.ts +0 -22
- package/dist/src/components/Employee/FederalTaxes.d.ts +0 -1
- package/dist/src/components/Employee/OnboardingSummary.d.ts +0 -7
- package/dist/src/components/Employee/PaySchedules.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethod.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/Actions.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/BankAccountEdit.d.ts +0 -9
- package/dist/src/components/Employee/PaymentMethodCombo/BankAccountsList.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/Head.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/PaymentMethod.d.ts +0 -22
- package/dist/src/components/Employee/PaymentMethodCombo/PaymentTypeForm.d.ts +0 -11
- package/dist/src/components/Employee/PaymentMethodCombo/Split.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/index.d.ts +0 -1
- package/dist/src/components/Employee/Profile/Actions.d.ts +0 -1
- package/dist/src/components/Employee/Profile/HomeAddress.d.ts +0 -12
- package/dist/src/components/Employee/Profile/PersonalDetails.d.ts +0 -40
- package/dist/src/components/Employee/Profile/Profile.d.ts +0 -37
- package/dist/src/components/Employee/Profile/index.d.ts +0 -1
- package/dist/src/components/Employee/SplitPaycheck.d.ts +0 -9
- package/dist/src/components/Employee/StateTaxes.d.ts +0 -7
- package/dist/src/components/Employee/TaxesCombo/Actions.d.ts +0 -1
- package/dist/src/components/Employee/TaxesCombo/FederalForm.d.ts +0 -13
- package/dist/src/components/Employee/TaxesCombo/FederalHead.d.ts +0 -1
- package/dist/src/components/Employee/TaxesCombo/StateForm.d.ts +0 -6
- package/dist/src/components/Employee/TaxesCombo/Taxes.d.ts +0 -20
- package/dist/src/components/Employee/TaxesCombo/index.d.ts +0 -1
- package/dist/src/components/Employee/index.d.ts +0 -9
- package/dist/src/components/Flow/CompanyOnboardingFlow.d.ts +0 -10
- package/dist/src/components/Flow/EmployeeOnboardingFlow.d.ts +0 -12
- package/dist/src/components/Flow/Flow.d.ts +0 -14
- package/dist/src/components/Flow/FlowNav.d.ts +0 -1
- package/dist/src/components/Flow/StateMachines/companyOnboarding.d.ts +0 -5
- package/dist/src/components/Flow/StateMachines/employeeOnboarding.d.ts +0 -12
- package/dist/src/components/Flow/StateMachines/index.d.ts +0 -2
- package/dist/src/components/Flow/index.d.ts +0 -3
- package/dist/src/components/Payroll/PayrollHistoryList.d.ts +0 -1
- package/dist/src/components/Payroll/index.d.ts +0 -1
- package/dist/src/components/PayrollSchedule/SetupPayrollSchedule.d.ts +0 -6
- package/dist/src/components/PayrollSchedule/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -4
- package/dist/src/components/sample/PaymentMethodSDK.d.ts +0 -1
- package/dist/src/contexts/GustoApiProvider/GustoApiProvider.d.ts +0 -15
- package/dist/src/contexts/GustoApiProvider/index.d.ts +0 -1
- package/dist/src/contexts/LocaleProvider/LocaleProvider.d.ts +0 -8
- package/dist/src/contexts/LocaleProvider/index.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/DefaultTheme.d.ts +0 -150
- package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +0 -12
- package/dist/src/contexts/ThemeProvider/ThemeProvider.test.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/index.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/test-utils.d.ts +0 -5
- package/dist/src/contexts/index.d.ts +0 -2
- package/dist/src/helpers/LRUCache.d.ts +0 -7
- package/dist/src/helpers/formattedStrings.d.ts +0 -7
- package/dist/src/helpers/formatters.d.ts +0 -2
- package/dist/src/helpers/normalizeSSN.d.ts +0 -1
- package/dist/src/helpers/payRateCalculator.d.ts +0 -2
- package/dist/src/i18n/I18n.d.ts +0 -8
- package/dist/src/i18n/en/common.json.d.ts +0 -99
- package/dist/src/i18n/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/models/PayPeriod.d.ts +0 -18
- package/dist/src/models/Payroll.d.ts +0 -40
- package/dist/src/models/PayrollTotals.d.ts +0 -24
- package/dist/src/shared/constants.d.ts +0 -124
- package/dist/src/types.d.ts +0 -10
- package/dist/test/api/client.test.d.ts +0 -1
- package/dist/test/api/companyFederalTaxes.test.d.ts +0 -1
- package/dist/test/api/employeeBankAccounts.test.d.ts +0 -1
- package/dist/test/api/payrolls.test.d.ts +0 -1
- package/dist/test/mocks/apis/company_federal_taxes.d.ts +0 -2
- package/dist/test/mocks/apis/company_locations.d.ts +0 -2
- package/dist/test/mocks/apis/compensations.d.ts +0 -2
- package/dist/test/mocks/apis/employees.d.ts +0 -2
- package/dist/test/mocks/apis/employeesBankAccounts.d.ts +0 -2
- package/dist/test/mocks/apis/homeAddresses.d.ts +0 -2
- package/dist/test/mocks/apis/payrolls.d.ts +0 -2
- package/dist/test/mocks/apis/tokens.d.ts +0 -2
- package/dist/test/mocks/apis/typeHelpers.d.ts +0 -10
- package/dist/test/mocks/apis/workAddresses.d.ts +0 -2
- package/dist/test/mocks/fileMock.d.ts +0 -6
- package/dist/test/mocks/fixtures/company_location.d.ts +0 -11
- package/dist/test/mocks/fixtures/getFixture.d.ts +0 -1
- package/dist/test/mocks/handlers.d.ts +0 -1
- package/dist/test/mocks/server.d.ts +0 -1
- package/dist/test/mocks/styleMock.d.ts +0 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const API_BASE_URL = "https://api.gusto.com";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { GustoClient } from './client';
|
|
3
|
-
export declare const queryClient: QueryClient;
|
|
4
|
-
type GustoApiContextType = {
|
|
5
|
-
GustoClient: GustoClient;
|
|
6
|
-
};
|
|
7
|
-
export declare function GustoApiContextProvider({ children, context, }: {
|
|
8
|
-
context: {
|
|
9
|
-
GustoClient: GustoClient;
|
|
10
|
-
};
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const useGustoApi: () => GustoApiContextType;
|
|
14
|
-
export {};
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import { OnError } from '../typeHelpers';
|
|
3
|
-
import { Operations } from '../../types';
|
|
4
|
-
export declare function useGetCompanyOnboardingStatus(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
5
|
-
uuid: string;
|
|
6
|
-
onboarding_completed?: boolean;
|
|
7
|
-
onboarding_steps?: {
|
|
8
|
-
title?: string;
|
|
9
|
-
id?: string;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
completed?: boolean;
|
|
12
|
-
skippable?: boolean;
|
|
13
|
-
requirements?: string[];
|
|
14
|
-
}[];
|
|
15
|
-
}, Error>;
|
|
16
|
-
export declare function useGetCompanyAddresses(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
17
|
-
readonly uuid: string;
|
|
18
|
-
version?: string;
|
|
19
|
-
readonly company_uuid?: string;
|
|
20
|
-
phone_number?: string;
|
|
21
|
-
street_1?: string;
|
|
22
|
-
street_2?: string | null;
|
|
23
|
-
city?: string;
|
|
24
|
-
state?: string;
|
|
25
|
-
zip?: string;
|
|
26
|
-
country: string;
|
|
27
|
-
readonly active?: boolean;
|
|
28
|
-
mailing_address?: boolean | null;
|
|
29
|
-
filing_address?: boolean | null;
|
|
30
|
-
created_at?: string;
|
|
31
|
-
updated_at?: string;
|
|
32
|
-
}[], Error>;
|
|
33
|
-
export declare function useGetEmployeesByCompany(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
34
|
-
readonly uuid: string;
|
|
35
|
-
first_name: string;
|
|
36
|
-
middle_initial?: string | null;
|
|
37
|
-
last_name: string;
|
|
38
|
-
email?: string | null;
|
|
39
|
-
readonly company_uuid?: string;
|
|
40
|
-
readonly manager_uuid?: string;
|
|
41
|
-
readonly version?: string;
|
|
42
|
-
readonly department?: string | null;
|
|
43
|
-
readonly terminated?: boolean;
|
|
44
|
-
two_percent_shareholder?: boolean;
|
|
45
|
-
readonly onboarded?: boolean;
|
|
46
|
-
readonly onboarding_status?: "onboarding_completed" | "admin_onboarding_incomplete" | "self_onboarding_pending_invite" | "self_onboarding_invited" | "self_onboarding_invited_started" | "self_onboarding_invited_overdue" | "self_onboarding_completed_by_employee" | "self_onboarding_awaiting_admin_review";
|
|
47
|
-
jobs?: import('../../generated/schema').components["schemas"]["Job"][];
|
|
48
|
-
eligible_paid_time_off?: import('../../generated/schema').components["schemas"]["Paid-Time-Off"][];
|
|
49
|
-
terminations?: import('../../generated/schema').components["schemas"]["Termination"][];
|
|
50
|
-
garnishments?: import('../../generated/schema').components["schemas"]["Garnishment"][];
|
|
51
|
-
custom_fields?: import('../../generated/schema').components["schemas"]["Employee-Custom-Field"][];
|
|
52
|
-
readonly date_of_birth?: string | null;
|
|
53
|
-
has_ssn?: boolean;
|
|
54
|
-
ssn?: string;
|
|
55
|
-
phone?: string;
|
|
56
|
-
preferred_first_name?: string;
|
|
57
|
-
payment_method: "Direct Deposit" | "Check";
|
|
58
|
-
work_email?: string | null;
|
|
59
|
-
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
60
|
-
}[], Error>;
|
|
61
|
-
export declare function useCreateEmployee(opts?: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<{
|
|
62
|
-
readonly uuid: string;
|
|
63
|
-
first_name: string;
|
|
64
|
-
middle_initial?: string | null;
|
|
65
|
-
last_name: string;
|
|
66
|
-
email?: string | null;
|
|
67
|
-
readonly company_uuid?: string;
|
|
68
|
-
readonly manager_uuid?: string;
|
|
69
|
-
readonly version?: string;
|
|
70
|
-
readonly department?: string | null;
|
|
71
|
-
readonly terminated?: boolean;
|
|
72
|
-
two_percent_shareholder?: boolean;
|
|
73
|
-
readonly onboarded?: boolean;
|
|
74
|
-
readonly onboarding_status?: "onboarding_completed" | "admin_onboarding_incomplete" | "self_onboarding_pending_invite" | "self_onboarding_invited" | "self_onboarding_invited_started" | "self_onboarding_invited_overdue" | "self_onboarding_completed_by_employee" | "self_onboarding_awaiting_admin_review";
|
|
75
|
-
jobs?: import('../../generated/schema').components["schemas"]["Job"][];
|
|
76
|
-
eligible_paid_time_off?: import('../../generated/schema').components["schemas"]["Paid-Time-Off"][];
|
|
77
|
-
terminations?: import('../../generated/schema').components["schemas"]["Termination"][];
|
|
78
|
-
garnishments?: import('../../generated/schema').components["schemas"]["Garnishment"][];
|
|
79
|
-
custom_fields?: import('../../generated/schema').components["schemas"]["Employee-Custom-Field"][];
|
|
80
|
-
readonly date_of_birth?: string | null;
|
|
81
|
-
has_ssn?: boolean;
|
|
82
|
-
ssn?: string;
|
|
83
|
-
phone?: string;
|
|
84
|
-
preferred_first_name?: string;
|
|
85
|
-
payment_method: "Direct Deposit" | "Check";
|
|
86
|
-
work_email?: string | null;
|
|
87
|
-
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
88
|
-
}, Error, {
|
|
89
|
-
company_id: string;
|
|
90
|
-
body: Parameters<(company_id: string, body: import('../typeHelpers').BodyParams<"/v1/companies/{company_id}/employees", "POST">) => Promise<{
|
|
91
|
-
readonly uuid: string;
|
|
92
|
-
first_name: string;
|
|
93
|
-
middle_initial?: string | null;
|
|
94
|
-
last_name: string;
|
|
95
|
-
email?: string | null;
|
|
96
|
-
readonly company_uuid?: string;
|
|
97
|
-
readonly manager_uuid?: string;
|
|
98
|
-
readonly version?: string;
|
|
99
|
-
readonly department?: string | null;
|
|
100
|
-
readonly terminated?: boolean;
|
|
101
|
-
two_percent_shareholder?: boolean;
|
|
102
|
-
readonly onboarded?: boolean;
|
|
103
|
-
readonly onboarding_status?: "onboarding_completed" | "admin_onboarding_incomplete" | "self_onboarding_pending_invite" | "self_onboarding_invited" | "self_onboarding_invited_started" | "self_onboarding_invited_overdue" | "self_onboarding_completed_by_employee" | "self_onboarding_awaiting_admin_review";
|
|
104
|
-
jobs?: import('../../generated/schema').components["schemas"]["Job"][];
|
|
105
|
-
eligible_paid_time_off?: import('../../generated/schema').components["schemas"]["Paid-Time-Off"][];
|
|
106
|
-
terminations?: import('../../generated/schema').components["schemas"]["Termination"][];
|
|
107
|
-
garnishments?: import('../../generated/schema').components["schemas"]["Garnishment"][];
|
|
108
|
-
custom_fields?: import('../../generated/schema').components["schemas"]["Employee-Custom-Field"][];
|
|
109
|
-
readonly date_of_birth?: string | null;
|
|
110
|
-
has_ssn?: boolean;
|
|
111
|
-
ssn?: string;
|
|
112
|
-
phone?: string;
|
|
113
|
-
preferred_first_name?: string;
|
|
114
|
-
payment_method: "Direct Deposit" | "Check";
|
|
115
|
-
work_email?: string | null;
|
|
116
|
-
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
117
|
-
}>>[1];
|
|
118
|
-
}, unknown>;
|
|
119
|
-
export declare function useDeleteEmployee(companyId: string, opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<import('openapi-fetch').FetchResponse<{
|
|
120
|
-
parameters: {
|
|
121
|
-
query?: never;
|
|
122
|
-
header?: {
|
|
123
|
-
"X-Gusto-API-Version"?: import('../../generated/schema').components["parameters"]["VersionHeader"];
|
|
124
|
-
};
|
|
125
|
-
path: {
|
|
126
|
-
employee_id: import('../../generated/schema').components["parameters"]["employee_id"];
|
|
127
|
-
};
|
|
128
|
-
cookie?: never;
|
|
129
|
-
};
|
|
130
|
-
requestBody?: never;
|
|
131
|
-
responses: {
|
|
132
|
-
204: {
|
|
133
|
-
headers: {
|
|
134
|
-
[name: string]: unknown;
|
|
135
|
-
};
|
|
136
|
-
content?: never;
|
|
137
|
-
};
|
|
138
|
-
404: import('../../generated/schema').components["responses"]["Not-Found-Error-Object"];
|
|
139
|
-
422: import('../../generated/schema').components["responses"]["Unprocessable-Entity-Error-Object"];
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
params: {
|
|
143
|
-
path: {
|
|
144
|
-
employee_id: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
}, `${string}/${string}`>, Error, string, unknown>;
|
|
148
|
-
export declare function useGetCompanyLocations(company_uuid: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
149
|
-
readonly uuid: string;
|
|
150
|
-
version?: string;
|
|
151
|
-
readonly company_uuid?: string;
|
|
152
|
-
phone_number?: string;
|
|
153
|
-
street_1?: string;
|
|
154
|
-
street_2?: string | null;
|
|
155
|
-
city?: string;
|
|
156
|
-
state?: string;
|
|
157
|
-
zip?: string;
|
|
158
|
-
country: string;
|
|
159
|
-
readonly active?: boolean;
|
|
160
|
-
mailing_address?: boolean | null;
|
|
161
|
-
filing_address?: boolean | null;
|
|
162
|
-
created_at?: string;
|
|
163
|
-
updated_at?: string;
|
|
164
|
-
}[], Error>;
|
|
165
|
-
export declare function useGetCompanyLocation(location_uuid: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
166
|
-
readonly uuid: string;
|
|
167
|
-
version?: string;
|
|
168
|
-
readonly company_uuid?: string;
|
|
169
|
-
phone_number?: string;
|
|
170
|
-
street_1?: string;
|
|
171
|
-
street_2?: string | null;
|
|
172
|
-
city?: string;
|
|
173
|
-
state?: string;
|
|
174
|
-
zip?: string;
|
|
175
|
-
country: string;
|
|
176
|
-
readonly active?: boolean;
|
|
177
|
-
mailing_address?: boolean | null;
|
|
178
|
-
filing_address?: boolean | null;
|
|
179
|
-
created_at?: string;
|
|
180
|
-
updated_at?: string;
|
|
181
|
-
}, Error>;
|
|
182
|
-
export declare function useUpdateCompanyLocation(opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<unknown, unknown, unknown, unknown>;
|
|
183
|
-
export declare function useCreateCompanyLocation(opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<{
|
|
184
|
-
readonly uuid: string;
|
|
185
|
-
version?: string;
|
|
186
|
-
readonly company_uuid?: string;
|
|
187
|
-
phone_number?: string;
|
|
188
|
-
street_1?: string;
|
|
189
|
-
street_2?: string | null;
|
|
190
|
-
city?: string;
|
|
191
|
-
state?: string;
|
|
192
|
-
zip?: string;
|
|
193
|
-
country: string;
|
|
194
|
-
readonly active?: boolean;
|
|
195
|
-
mailing_address?: boolean | null;
|
|
196
|
-
filing_address?: boolean | null;
|
|
197
|
-
created_at?: string;
|
|
198
|
-
updated_at?: string;
|
|
199
|
-
}, Error, {
|
|
200
|
-
companyId: string;
|
|
201
|
-
body: Parameters<(company_id: string, body: import('../typeHelpers').BodyParams<"/v1/companies/{company_id}/locations", "POST">) => Promise<{
|
|
202
|
-
readonly uuid: string;
|
|
203
|
-
version?: string;
|
|
204
|
-
readonly company_uuid?: string;
|
|
205
|
-
phone_number?: string;
|
|
206
|
-
street_1?: string;
|
|
207
|
-
street_2?: string | null;
|
|
208
|
-
city?: string;
|
|
209
|
-
state?: string;
|
|
210
|
-
zip?: string;
|
|
211
|
-
country: string;
|
|
212
|
-
readonly active?: boolean;
|
|
213
|
-
mailing_address?: boolean | null;
|
|
214
|
-
filing_address?: boolean | null;
|
|
215
|
-
created_at?: string;
|
|
216
|
-
updated_at?: string;
|
|
217
|
-
}>>[1];
|
|
218
|
-
}, unknown>;
|
|
219
|
-
export declare function useCreateCompanyBankAccount(companyId: string, opts: {
|
|
220
|
-
onError: OnError;
|
|
221
|
-
} & Omit<Parameters<typeof useMutation>[0], 'mutationFn' | 'onError'>): import('@tanstack/react-query').UseMutationResult<unknown, unknown, unknown, unknown>;
|
|
222
|
-
type UsePaySchedulePreviewParams = Operations['get-v1-companies-company_id-pay_schedules-preview']['parameters']['query'];
|
|
223
|
-
export declare function usePaySchedulePreview(companyId: string, params: UsePaySchedulePreviewParams | null): import('@tanstack/react-query').UseQueryResult<{
|
|
224
|
-
pay_periods?: {
|
|
225
|
-
check_date?: string;
|
|
226
|
-
run_payroll_by?: string;
|
|
227
|
-
start_date?: string;
|
|
228
|
-
end_date?: string;
|
|
229
|
-
}[];
|
|
230
|
-
holidays?: string[];
|
|
231
|
-
}, Error>;
|
|
232
|
-
export declare function useGetCompanyFederalTaxes(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
233
|
-
version?: string;
|
|
234
|
-
tax_payer_type?: string;
|
|
235
|
-
taxable_as_scorp?: boolean;
|
|
236
|
-
filing_form?: string;
|
|
237
|
-
has_ein?: boolean;
|
|
238
|
-
ein_verified?: boolean;
|
|
239
|
-
legal_name?: string;
|
|
240
|
-
}, Error>;
|
|
241
|
-
export declare function useUpdateCompanyFederalTaxes(opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<unknown, unknown, unknown, unknown>;
|
|
242
|
-
export declare function useGetCompanyIndustry(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
243
|
-
readonly company_uuid?: string;
|
|
244
|
-
readonly naics_code?: string;
|
|
245
|
-
readonly sic_codes?: string[];
|
|
246
|
-
readonly title?: string;
|
|
247
|
-
}, Error>;
|
|
248
|
-
export declare function useUpdateCompanyIndustry(opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<unknown, unknown, unknown, unknown>;
|
|
249
|
-
export declare function useGetStateTaxRequirements(company_uuid: string, state: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
250
|
-
company_uuid?: string;
|
|
251
|
-
state?: import('../../generated/schema').components["schemas"]["State"];
|
|
252
|
-
requirement_sets?: import('../../generated/schema').components["schemas"]["Tax-Requirement-Set"][];
|
|
253
|
-
}, Error>;
|
|
254
|
-
export declare function useGetPaySchedulesByCompany(company_id: string): import('@tanstack/react-query').UseSuspenseQueryResult<{
|
|
255
|
-
readonly uuid: string;
|
|
256
|
-
readonly frequency?: "Every week" | "Every other week" | "Twice per month" | "Monthly" | "Quarterly" | "Annually";
|
|
257
|
-
readonly anchor_pay_date?: string;
|
|
258
|
-
readonly anchor_end_of_pay_period?: string;
|
|
259
|
-
readonly day_1?: number | null;
|
|
260
|
-
readonly day_2?: number | null;
|
|
261
|
-
readonly name?: string | null;
|
|
262
|
-
readonly custom_name?: string;
|
|
263
|
-
auto_pilot?: boolean;
|
|
264
|
-
readonly active?: boolean;
|
|
265
|
-
}[], Error>;
|
|
266
|
-
export declare function useCreatePaySchedule(company_id: string, opts: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): import('@tanstack/react-query').UseMutationResult<unknown, unknown, unknown, unknown>;
|
|
267
|
-
export {};
|