@gusto/embedded-react-sdk 0.2.0 → 0.3.0
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 +7 -0
- package/README.md +27 -7
- package/dist/{B4MFY5CR-ywPOMS0V.js → B4MFY5CR-RHxbAGPw.js} +2 -2
- package/dist/{B4MFY5CR-ywPOMS0V.js.map → B4MFY5CR-RHxbAGPw.js.map} +1 -1
- package/dist/{Employee.Compensation-OoWTM-1y.js → Employee.Compensation-DuC80CPQ.js} +43 -39
- package/dist/Employee.Compensation-DuC80CPQ.js.map +1 -0
- package/dist/Employee.EmployeeList-BGB23n1N.js +40 -0
- package/dist/Employee.EmployeeList-BGB23n1N.js.map +1 -0
- package/dist/Employee.OnboardingSummary-CmxhPw5V.js +54 -0
- package/dist/Employee.OnboardingSummary-CmxhPw5V.js.map +1 -0
- package/dist/{HO4MOOFI-DGIpvOUi.js → HO4MOOFI-DBInOzFW.js} +3 -3
- package/dist/{HO4MOOFI-DGIpvOUi.js.map → HO4MOOFI-DBInOzFW.js.map} +1 -1
- package/dist/{HUY7CZI3-qCsnO8ul.js → HUY7CZI3-Cmo4LpRl.js} +3 -3
- package/dist/{HUY7CZI3-qCsnO8ul.js.map → HUY7CZI3-Cmo4LpRl.js.map} +1 -1
- package/dist/{index-X8BvPT33.js → index-BoRPBFU_.js} +11896 -11250
- package/dist/index-BoRPBFU_.js.map +1 -0
- package/dist/index.d.ts +182 -83
- package/dist/index.js +16 -15
- package/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/Employee.Compensation-OoWTM-1y.js.map +0 -1
- package/dist/Employee.EmployeeList-Bh2iUvGI.js +0 -36
- package/dist/Employee.EmployeeList-Bh2iUvGI.js.map +0 -1
- package/dist/Employee.OnboardingSummary-BLQS8GZz.js +0 -36
- package/dist/Employee.OnboardingSummary-BLQS8GZz.js.map +0 -1
- package/dist/index-X8BvPT33.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ declare type CompensationContextType = {
|
|
|
140
140
|
|
|
141
141
|
declare const CompensationContextual: () => JSX.Element;
|
|
142
142
|
|
|
143
|
+
declare type CompensationDefaultValues = RequireAtLeastOne<Partial<Pick<Schemas['Job'], 'rate' | 'title' | 'payment_unit'>>>;
|
|
144
|
+
|
|
143
145
|
declare type CompensationInputs = v.InferInput<typeof CompensationSchema>;
|
|
144
146
|
|
|
145
147
|
declare type CompensationOutputs = v.InferOutput<typeof CompensationSchema>;
|
|
@@ -147,27 +149,28 @@ declare type CompensationOutputs = v.InferOutput<typeof CompensationSchema>;
|
|
|
147
149
|
declare interface CompensationProps extends CommonComponentInterface {
|
|
148
150
|
employeeId: string;
|
|
149
151
|
startDate: string;
|
|
150
|
-
defaultValues?:
|
|
152
|
+
defaultValues?: CompensationDefaultValues;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
declare const CompensationSchema: v.IntersectSchema<[v.ObjectSchema<{
|
|
154
156
|
readonly job_title: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
|
|
157
|
+
readonly adjust_for_minimum_wage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
155
158
|
}, undefined>, v.VariantSchema<"flsa_status", [v.SchemaWithPipe<[v.ObjectSchema<{
|
|
156
159
|
readonly flsa_status: v.UnionSchema<[v.LiteralSchema<"Exempt", undefined>, v.LiteralSchema<"Salaried Nonexempt", undefined>, v.LiteralSchema<"Nonexempt", undefined>], undefined>;
|
|
157
160
|
readonly payment_unit: v.UnionSchema<[v.LiteralSchema<"Hour", undefined>, v.LiteralSchema<"Week", undefined>, v.LiteralSchema<"Month", undefined>, v.LiteralSchema<"Year", undefined>], undefined>;
|
|
158
161
|
readonly rate: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.TransformAction<any, string>]>;
|
|
159
162
|
}, undefined>, v.BaseValidation<{
|
|
160
163
|
rate: string;
|
|
161
|
-
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
162
164
|
payment_unit: "Hour" | "Week" | "Month" | "Year";
|
|
165
|
+
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
163
166
|
}, {
|
|
164
167
|
rate: string;
|
|
165
|
-
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
166
168
|
payment_unit: "Hour" | "Week" | "Month" | "Year";
|
|
169
|
+
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
167
170
|
}, v.CheckIssue<{
|
|
168
171
|
rate: string;
|
|
169
|
-
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
170
172
|
payment_unit: "Hour" | "Week" | "Month" | "Year";
|
|
173
|
+
flsa_status: "Exempt" | "Salaried Nonexempt" | "Nonexempt";
|
|
171
174
|
}>>]>, v.ObjectSchema<{
|
|
172
175
|
readonly flsa_status: v.LiteralSchema<"Owner", undefined>;
|
|
173
176
|
readonly payment_unit: v.LiteralSchema<"Paycheck", undefined>;
|
|
@@ -226,6 +229,7 @@ export declare const componentEvents: {
|
|
|
226
229
|
readonly EMPLOYEE_VIEW_FORM_TO_SIGN: "employee/forms/view";
|
|
227
230
|
readonly EMPLOYEE_SIGN_FORM: "employee/forms/sign";
|
|
228
231
|
readonly EMPLOYEE_FORMS_DONE: "employee/forms/done";
|
|
232
|
+
readonly EMPLOYEE_ONBOARDING_STATUS_UPDATED: "employee/onboardingStatus/updated";
|
|
229
233
|
readonly SUCCESS: "SUCCESS";
|
|
230
234
|
readonly ERROR: "ERROR";
|
|
231
235
|
readonly CANCEL: "CANCEL";
|
|
@@ -4854,9 +4858,11 @@ declare namespace Employee {
|
|
|
4854
4858
|
OnboardingSummary_2 as OnboardingSummary,
|
|
4855
4859
|
OnboardingSummaryContextual,
|
|
4856
4860
|
Profile_2 as Profile,
|
|
4861
|
+
ProfileDefaultValues,
|
|
4857
4862
|
useProfile,
|
|
4858
4863
|
ProfileContextual,
|
|
4859
4864
|
Compensation,
|
|
4865
|
+
CompensationDefaultValues,
|
|
4860
4866
|
useCompensation,
|
|
4861
4867
|
CompensationInputs,
|
|
4862
4868
|
CompensationOutputs,
|
|
@@ -4884,9 +4890,18 @@ declare namespace EmployeeList {
|
|
|
4884
4890
|
}
|
|
4885
4891
|
|
|
4886
4892
|
declare type EmployeeListContextType = {
|
|
4887
|
-
handleEdit: (uuid: string) => void;
|
|
4893
|
+
handleEdit: (uuid: string, onboardingStatus?: string) => void;
|
|
4888
4894
|
handleDelete: (uuid: string) => Promise<void>;
|
|
4895
|
+
handleCancelSelfOnboarding: (employeeId: string) => Promise<void>;
|
|
4896
|
+
handleReview: (employeeId: string) => Promise<void>;
|
|
4889
4897
|
handleNew: () => void;
|
|
4898
|
+
handleFirstPage: () => void;
|
|
4899
|
+
handlePreviousPage: () => void;
|
|
4900
|
+
handleNextPage: () => void;
|
|
4901
|
+
handleLastPage: () => void;
|
|
4902
|
+
handleItemsPerPageChange: (newCount: number) => void;
|
|
4903
|
+
currentPage: number;
|
|
4904
|
+
totalPages: number;
|
|
4890
4905
|
employees: Schemas['Employee'][];
|
|
4891
4906
|
};
|
|
4892
4907
|
|
|
@@ -4903,16 +4918,35 @@ export declare interface EmployeeOnboardingContextInterface extends FlowContextI
|
|
|
4903
4918
|
companyId: string;
|
|
4904
4919
|
employeeId?: string;
|
|
4905
4920
|
isAdmin?: boolean;
|
|
4921
|
+
onboardingStatus?: (typeof EmployeeOnboardingStatus)[keyof typeof EmployeeOnboardingStatus];
|
|
4906
4922
|
startDate?: string;
|
|
4907
4923
|
paymentMethod?: Schemas['Employee-Payment-Method'];
|
|
4924
|
+
defaultValues?: EmployeeOnboardingDefaultValues;
|
|
4908
4925
|
}
|
|
4909
4926
|
|
|
4910
|
-
|
|
4927
|
+
declare type EmployeeOnboardingDefaultValues = RequireAtLeastOne<{
|
|
4928
|
+
profile?: ProfileDefaultValues;
|
|
4929
|
+
compensation?: CompensationDefaultValues;
|
|
4930
|
+
}>;
|
|
4931
|
+
|
|
4932
|
+
export declare const EmployeeOnboardingFlow: ({ companyId, onEvent, defaultValues, }: EmployeeOnboardingFlowProps) => JSX.Element;
|
|
4911
4933
|
|
|
4912
4934
|
export declare interface EmployeeOnboardingFlowProps extends BaseComponentInterface {
|
|
4913
4935
|
companyId: string;
|
|
4936
|
+
defaultValues?: RequireAtLeastOne<EmployeeOnboardingDefaultValues>;
|
|
4914
4937
|
}
|
|
4915
4938
|
|
|
4939
|
+
declare const EmployeeOnboardingStatus: {
|
|
4940
|
+
readonly ADMIN_ONBOARDING_INCOMPLETE: "admin_onboarding_incomplete";
|
|
4941
|
+
readonly SELF_ONBOARDING_PENDING_INVITE: "self_onboarding_pending_invite";
|
|
4942
|
+
readonly SELF_ONBOARDING_INVITED: "self_onboarding_invited";
|
|
4943
|
+
readonly SELF_ONBOARDING_INVITED_STARTED: "self_onboarding_invited_started";
|
|
4944
|
+
readonly SELF_ONBOARDING_INVITED_OVERDUE: "self_onboarding_invited_overdue";
|
|
4945
|
+
readonly SELF_ONBOARDING_COMPLETED_BY_EMPLOYEE: "self_onboarding_completed_by_employee";
|
|
4946
|
+
readonly SELF_ONBOARDING_AWAITING_ADMIN_REVIEW: "self_onboarding_awaiting_admin_review";
|
|
4947
|
+
readonly ONBOARDING_COMPLETED: "onboarding_completed";
|
|
4948
|
+
};
|
|
4949
|
+
|
|
4916
4950
|
export declare interface EmployeeSelfOnboardingContextInterface extends FlowContextInterface {
|
|
4917
4951
|
companyId: string;
|
|
4918
4952
|
employeeId: string;
|
|
@@ -4932,6 +4966,7 @@ export declare interface FlowContextInterface {
|
|
|
4932
4966
|
component: React.ComponentType | null;
|
|
4933
4967
|
onEvent: OnEventType<EventType, unknown>;
|
|
4934
4968
|
title?: string;
|
|
4969
|
+
defaultValues?: Record<string, unknown>;
|
|
4935
4970
|
}
|
|
4936
4971
|
|
|
4937
4972
|
declare interface GTheme {
|
|
@@ -4940,6 +4975,7 @@ declare interface GTheme {
|
|
|
4940
4975
|
focus: GThemeFocus
|
|
4941
4976
|
shadow: GThemeShadow
|
|
4942
4977
|
spacing: GThemeSpacing
|
|
4978
|
+
radius: GThemeRadius
|
|
4943
4979
|
typography: GThemeTypography
|
|
4944
4980
|
input: GThemeInput
|
|
4945
4981
|
button: GThemeButton
|
|
@@ -4995,18 +5031,6 @@ declare interface GThemeCheckbox {
|
|
|
4995
5031
|
}
|
|
4996
5032
|
|
|
4997
5033
|
declare interface GThemeColors {
|
|
4998
|
-
primary: {
|
|
4999
|
-
100: ThemeColor
|
|
5000
|
-
200: ThemeColor
|
|
5001
|
-
300: ThemeColor
|
|
5002
|
-
400: ThemeColor
|
|
5003
|
-
500: ThemeColor
|
|
5004
|
-
600: ThemeColor
|
|
5005
|
-
700: ThemeColor
|
|
5006
|
-
800: ThemeColor
|
|
5007
|
-
900: ThemeColor
|
|
5008
|
-
1000: ThemeColor
|
|
5009
|
-
}
|
|
5010
5034
|
gray: {
|
|
5011
5035
|
100: ThemeColor
|
|
5012
5036
|
200: ThemeColor
|
|
@@ -5088,6 +5112,8 @@ declare interface GThemeRadio {
|
|
|
5088
5112
|
borderWidth: string
|
|
5089
5113
|
}
|
|
5090
5114
|
|
|
5115
|
+
declare type GThemeRadius = string
|
|
5116
|
+
|
|
5091
5117
|
declare interface GThemeShadow {
|
|
5092
5118
|
100: string
|
|
5093
5119
|
200: string
|
|
@@ -5102,7 +5128,8 @@ declare interface GThemeSpacing {
|
|
|
5102
5128
|
24: string
|
|
5103
5129
|
28: string
|
|
5104
5130
|
32: string
|
|
5105
|
-
|
|
5131
|
+
36: string
|
|
5132
|
+
40: string
|
|
5106
5133
|
}
|
|
5107
5134
|
|
|
5108
5135
|
declare interface GThemeTable {
|
|
@@ -5122,7 +5149,7 @@ declare interface GThemeTable {
|
|
|
5122
5149
|
declare interface GThemeTypography {
|
|
5123
5150
|
font: string
|
|
5124
5151
|
textColor: ThemeColor
|
|
5125
|
-
|
|
5152
|
+
datePickerErrorTextColor: ThemeColor
|
|
5126
5153
|
defaultLineHeight: string
|
|
5127
5154
|
fontSize: {
|
|
5128
5155
|
small: string
|
|
@@ -5328,6 +5355,17 @@ export declare class GustoClient {
|
|
|
5328
5355
|
work_email?: string | null;
|
|
5329
5356
|
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
5330
5357
|
}>;
|
|
5358
|
+
updateEmployeeOnboardingStatus(employee_id: string, body: BodyParams<'/v1/employees/{employee_id}/onboarding_status', 'PUT'>): Promise<{
|
|
5359
|
+
uuid: string;
|
|
5360
|
+
onboarding_status?: string;
|
|
5361
|
+
onboarding_steps?: {
|
|
5362
|
+
title?: string;
|
|
5363
|
+
id?: string;
|
|
5364
|
+
required?: boolean;
|
|
5365
|
+
completed?: boolean;
|
|
5366
|
+
requirements?: string[];
|
|
5367
|
+
}[];
|
|
5368
|
+
}>;
|
|
5331
5369
|
getCompanyAddresses(company_id: string): Promise<{
|
|
5332
5370
|
readonly uuid: string;
|
|
5333
5371
|
version?: string;
|
|
@@ -5345,39 +5383,41 @@ export declare class GustoClient {
|
|
|
5345
5383
|
created_at?: string;
|
|
5346
5384
|
updated_at?: string;
|
|
5347
5385
|
}[]>;
|
|
5348
|
-
getCompanyEmployees(company_id: string): Promise<
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5386
|
+
getCompanyEmployees(company_id: string, per: number, page: number): Promise<{
|
|
5387
|
+
items: {
|
|
5388
|
+
readonly uuid: string;
|
|
5389
|
+
first_name: string;
|
|
5390
|
+
middle_initial?: string | null;
|
|
5391
|
+
last_name: string;
|
|
5392
|
+
email?: string | null;
|
|
5393
|
+
readonly company_uuid?: string;
|
|
5394
|
+
readonly manager_uuid?: string | null;
|
|
5395
|
+
readonly version?: string;
|
|
5396
|
+
readonly department?: string | null;
|
|
5397
|
+
readonly terminated?: boolean;
|
|
5398
|
+
two_percent_shareholder?: boolean | null;
|
|
5399
|
+
readonly onboarded?: boolean;
|
|
5400
|
+
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";
|
|
5401
|
+
jobs?: components["schemas"]["Job"][];
|
|
5402
|
+
eligible_paid_time_off?: components["schemas"]["Paid-Time-Off"][];
|
|
5403
|
+
terminations?: components["schemas"]["Termination"][];
|
|
5404
|
+
garnishments?: components["schemas"]["Garnishment"][];
|
|
5405
|
+
custom_fields?: components["schemas"]["Employee-Custom-Field"][];
|
|
5406
|
+
readonly date_of_birth?: string | null;
|
|
5407
|
+
has_ssn?: boolean;
|
|
5408
|
+
ssn?: string;
|
|
5409
|
+
phone?: string | null;
|
|
5410
|
+
preferred_first_name?: string | null;
|
|
5411
|
+
payment_method: "Direct Deposit" | "Check";
|
|
5412
|
+
work_email?: string | null;
|
|
5413
|
+
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
5414
|
+
}[] | undefined;
|
|
5415
|
+
pagination: {
|
|
5416
|
+
count: string | null;
|
|
5417
|
+
page: string | null;
|
|
5418
|
+
totalPages: string | null;
|
|
5419
|
+
};
|
|
5420
|
+
}>;
|
|
5381
5421
|
updateEmployee(employee_id: string, body: BodyParams<'/v1/employees/{employee_id}', 'PUT'>): Promise<{
|
|
5382
5422
|
readonly uuid: string;
|
|
5383
5423
|
first_name: string;
|
|
@@ -6631,8 +6671,6 @@ declare type MODE_3 = 'ADD' | 'LIST' | 'SPLIT' | 'INITIAL';
|
|
|
6631
6671
|
|
|
6632
6672
|
declare type MODE_4 = 'LIST' | 'SIGN';
|
|
6633
6673
|
|
|
6634
|
-
declare type OnboardingFlow = 'self' | 'admin'
|
|
6635
|
-
|
|
6636
6674
|
export declare function OnboardingSummary(): JSX.Element;
|
|
6637
6675
|
|
|
6638
6676
|
declare function OnboardingSummary_2(props: SummaryProps & BaseComponentInterface): JSX.Element;
|
|
@@ -18458,7 +18496,7 @@ declare namespace Profile_2 {
|
|
|
18458
18496
|
var Actions: () => JSX.Element;
|
|
18459
18497
|
var AdminPersonalDetails: () => JSX.Element | null;
|
|
18460
18498
|
var SelfPersonalDetails: () => JSX.Element | null;
|
|
18461
|
-
var HomeAddress: () => JSX.Element;
|
|
18499
|
+
var HomeAddress: () => JSX.Element | null;
|
|
18462
18500
|
var WorkAddress: WorkAddress;
|
|
18463
18501
|
}
|
|
18464
18502
|
|
|
@@ -18466,33 +18504,36 @@ declare type ProfileContextType = {
|
|
|
18466
18504
|
companyLocations: Schemas['Location'][];
|
|
18467
18505
|
workAddresses: Schemas['Employee-Work-Address'][] | null;
|
|
18468
18506
|
employee?: Schemas['Employee'];
|
|
18507
|
+
isSelfOnboardingIntended?: boolean;
|
|
18469
18508
|
isPending: boolean;
|
|
18509
|
+
isAdmin: boolean;
|
|
18470
18510
|
handleCancel: () => void;
|
|
18471
|
-
flow: OnboardingFlow;
|
|
18472
18511
|
};
|
|
18473
18512
|
|
|
18474
18513
|
declare const ProfileContextual: () => JSX.Element;
|
|
18475
18514
|
|
|
18515
|
+
declare type ProfileDefaultValues = RequireAtLeastOne<{
|
|
18516
|
+
employee?: RequireAtLeastOne<{
|
|
18517
|
+
first_name?: string;
|
|
18518
|
+
middle_initial?: string;
|
|
18519
|
+
last_name?: string;
|
|
18520
|
+
email?: string;
|
|
18521
|
+
date_of_birth?: string;
|
|
18522
|
+
}>;
|
|
18523
|
+
homeAddress?: RequireAtLeastOne<{
|
|
18524
|
+
street_1?: string;
|
|
18525
|
+
street_2?: string;
|
|
18526
|
+
city?: string;
|
|
18527
|
+
state?: string;
|
|
18528
|
+
zip?: string;
|
|
18529
|
+
}>;
|
|
18530
|
+
}>;
|
|
18531
|
+
|
|
18476
18532
|
declare interface ProfileProps extends CommonComponentInterface {
|
|
18477
18533
|
employeeId?: string;
|
|
18478
18534
|
companyId: string;
|
|
18479
|
-
defaultValues?:
|
|
18480
|
-
|
|
18481
|
-
first_name?: string;
|
|
18482
|
-
middle_initial?: string;
|
|
18483
|
-
last_name?: string;
|
|
18484
|
-
email?: string;
|
|
18485
|
-
date_of_birth?: string;
|
|
18486
|
-
};
|
|
18487
|
-
homeAddress?: {
|
|
18488
|
-
street_1?: string;
|
|
18489
|
-
street_2?: string;
|
|
18490
|
-
city?: string;
|
|
18491
|
-
state?: string;
|
|
18492
|
-
zip?: string;
|
|
18493
|
-
};
|
|
18494
|
-
};
|
|
18495
|
-
flow?: OnboardingFlow;
|
|
18535
|
+
defaultValues?: ProfileDefaultValues;
|
|
18536
|
+
isAdmin?: boolean;
|
|
18496
18537
|
}
|
|
18497
18538
|
|
|
18498
18539
|
declare type QueryParams<Path extends keyof paths> = _QueryParams<Path> extends {
|
|
@@ -18520,6 +18561,10 @@ declare interface ReorderableListProps {
|
|
|
18520
18561
|
onReorder?: (itemOrder: number[]) => void;
|
|
18521
18562
|
}
|
|
18522
18563
|
|
|
18564
|
+
declare type RequireAtLeastOne<T> = {
|
|
18565
|
+
[K in keyof T]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<keyof T, K>>>
|
|
18566
|
+
}[keyof T]
|
|
18567
|
+
|
|
18523
18568
|
declare type Resources = CustomTypeOptions['resources'];
|
|
18524
18569
|
|
|
18525
18570
|
declare type RGB = `rgb(${string})`
|
|
@@ -18535,7 +18580,7 @@ export declare const SDKI18next: i18n;
|
|
|
18535
18580
|
|
|
18536
18581
|
declare interface SummaryProps extends CommonComponentInterface {
|
|
18537
18582
|
employeeId: string;
|
|
18538
|
-
|
|
18583
|
+
isAdmin?: boolean;
|
|
18539
18584
|
}
|
|
18540
18585
|
|
|
18541
18586
|
declare interface SummaryProps_2 extends CommonComponentInterface {
|
|
@@ -19281,7 +19326,12 @@ export declare function useGetEmployeePaymentMethod(employee_id: string): UseSus
|
|
|
19281
19326
|
splits?: components_3["schemas"]["Payment-Method-Bank-Account"][] | null;
|
|
19282
19327
|
}, Error>;
|
|
19283
19328
|
|
|
19284
|
-
export declare function useGetEmployeesByCompany(company_id
|
|
19329
|
+
export declare function useGetEmployeesByCompany({ company_id, per, page, }: {
|
|
19330
|
+
company_id: string;
|
|
19331
|
+
per?: number;
|
|
19332
|
+
page?: number;
|
|
19333
|
+
}): UseSuspenseQueryResult< {
|
|
19334
|
+
items: {
|
|
19285
19335
|
readonly uuid: string;
|
|
19286
19336
|
first_name: string;
|
|
19287
19337
|
middle_initial?: string | null;
|
|
@@ -19308,7 +19358,13 @@ preferred_first_name?: string | null;
|
|
|
19308
19358
|
payment_method: "Direct Deposit" | "Check";
|
|
19309
19359
|
work_email?: string | null;
|
|
19310
19360
|
readonly current_employment_status?: "full_time" | "part_time_under_twenty_hours" | "part_time_twenty_plus_hours" | "variable" | "seasonal" | null;
|
|
19311
|
-
}[]
|
|
19361
|
+
}[] | undefined;
|
|
19362
|
+
pagination: {
|
|
19363
|
+
count: string | null;
|
|
19364
|
+
page: string | null;
|
|
19365
|
+
totalPages: string | null;
|
|
19366
|
+
};
|
|
19367
|
+
}, Error>;
|
|
19312
19368
|
|
|
19313
19369
|
export declare function useGetEmployeeStateTaxes(employee_id: string): UseSuspenseQueryResult<{
|
|
19314
19370
|
employee_uuid: string;
|
|
@@ -19878,6 +19934,31 @@ readonly compensations?: components_3["schemas"]["Compensation"][];
|
|
|
19878
19934
|
}>>[1];
|
|
19879
19935
|
}, unknown>;
|
|
19880
19936
|
|
|
19937
|
+
export declare function useUpdateEmployeeOnboardingStatus(companyId?: string, opts?: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): UseMutationResult< {
|
|
19938
|
+
uuid: string;
|
|
19939
|
+
onboarding_status?: string;
|
|
19940
|
+
onboarding_steps?: {
|
|
19941
|
+
title?: string;
|
|
19942
|
+
id?: string;
|
|
19943
|
+
required?: boolean;
|
|
19944
|
+
completed?: boolean;
|
|
19945
|
+
requirements?: string[];
|
|
19946
|
+
}[];
|
|
19947
|
+
}, Error, {
|
|
19948
|
+
employeeId: string;
|
|
19949
|
+
body: Parameters<(employee_id: string, body: BodyParams_2<"/v1/employees/{employee_id}/onboarding_status", "PUT">) => Promise<{
|
|
19950
|
+
uuid: string;
|
|
19951
|
+
onboarding_status?: string;
|
|
19952
|
+
onboarding_steps?: {
|
|
19953
|
+
title?: string;
|
|
19954
|
+
id?: string;
|
|
19955
|
+
required?: boolean;
|
|
19956
|
+
completed?: boolean;
|
|
19957
|
+
requirements?: string[];
|
|
19958
|
+
}[];
|
|
19959
|
+
}>>[1];
|
|
19960
|
+
}, unknown>;
|
|
19961
|
+
|
|
19881
19962
|
export declare function useUpdateEmployeePaymentMethod(employee_id: string, opts?: Omit<Parameters<typeof useMutation>[0], 'mutationFn'>): UseMutationResult< {
|
|
19882
19963
|
version?: string;
|
|
19883
19964
|
type?: "Direct Deposit" | "Check";
|
|
@@ -20035,6 +20116,8 @@ export interface EmployeeBankAccount{
|
|
|
20035
20116
|
};
|
|
20036
20117
|
export interface EmployeeCompensation{
|
|
20037
20118
|
"addAnotherJobCta":string;
|
|
20119
|
+
"adjustForMinimumWage":string;
|
|
20120
|
+
"adjustForMinimumWageDescription":string;
|
|
20038
20121
|
"allCompensations":{
|
|
20039
20122
|
"actionColumn":string;
|
|
20040
20123
|
"amountColumn":string;
|
|
@@ -20150,6 +20233,8 @@ export interface EmployeeEmployeeList{
|
|
|
20150
20233
|
"deductionsCta":string;
|
|
20151
20234
|
"deleteCta":string;
|
|
20152
20235
|
"editCta":string;
|
|
20236
|
+
"cancelSelfOnboardingCta":string;
|
|
20237
|
+
"reviewCta":string;
|
|
20153
20238
|
"employeeListLabel":string;
|
|
20154
20239
|
"emptyTableDescription":string;
|
|
20155
20240
|
"emptyTableTitle":string;
|
|
@@ -20205,6 +20290,8 @@ export interface EmployeeOnboardingSummary{
|
|
|
20205
20290
|
"returnToEmployeeListCta":string;
|
|
20206
20291
|
"addAnotherCta":string;
|
|
20207
20292
|
"newHireReportCta":string;
|
|
20293
|
+
"missingRequirementsSubtitle":string;
|
|
20294
|
+
"missingRequirementsDescription":string;
|
|
20208
20295
|
"steps":{
|
|
20209
20296
|
"personal_details":string;
|
|
20210
20297
|
"compensation_details":string;
|
|
@@ -20215,6 +20302,19 @@ export interface EmployeeOnboardingSummary{
|
|
|
20215
20302
|
"direct_deposit_setup":string;
|
|
20216
20303
|
"employee_form_signing":string;
|
|
20217
20304
|
"file_new_hire_report":string;
|
|
20305
|
+
"admin_review":string;
|
|
20306
|
+
}
|
|
20307
|
+
"stepsDescriptions":{
|
|
20308
|
+
"personal_details":string;
|
|
20309
|
+
"compensation_details":string;
|
|
20310
|
+
"add_work_address":string;
|
|
20311
|
+
"add_home_address":string;
|
|
20312
|
+
"federal_tax_setup":string;
|
|
20313
|
+
"state_tax_setup":string;
|
|
20314
|
+
"direct_deposit_setup":string;
|
|
20315
|
+
"employee_form_signing":string;
|
|
20316
|
+
"file_new_hire_report":string;
|
|
20317
|
+
"admin_review":string;
|
|
20218
20318
|
}
|
|
20219
20319
|
};
|
|
20220
20320
|
export interface EmployeePaySchedules{
|
|
@@ -20407,6 +20507,10 @@ export interface common{
|
|
|
20407
20507
|
"nextMonth":string;
|
|
20408
20508
|
"previousMonth":string;
|
|
20409
20509
|
"magnifyingGlass":string;
|
|
20510
|
+
"paginationFirst":string;
|
|
20511
|
+
"paginationPrev":string;
|
|
20512
|
+
"paginationNext":string;
|
|
20513
|
+
"paginationLast":string;
|
|
20410
20514
|
}
|
|
20411
20515
|
"flows":{
|
|
20412
20516
|
"employeeOnboarding":{
|
|
@@ -20426,12 +20530,7 @@ export interface common{
|
|
|
20426
20530
|
"labels":{
|
|
20427
20531
|
"draggableLabel":string;
|
|
20428
20532
|
"draggablePosition":string;
|
|
20429
|
-
"
|
|
20430
|
-
"saveContinue":string;
|
|
20431
|
-
"submit":string;
|
|
20432
|
-
"name":string;
|
|
20433
|
-
"yes":string;
|
|
20434
|
-
"no":string;
|
|
20533
|
+
"paginationControllCountLabel":string;
|
|
20435
20534
|
}
|
|
20436
20535
|
"onboardingStatus":{
|
|
20437
20536
|
"undefined":string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aX as s, aZ as o, b2 as t, aY as u, b0 as m, b1 as p, W as d, ba as l, Y as n, b3 as y, b4 as r, b5 as E, b6 as i, a$ as G, a_ as b, b9 as C, b7 as c, bb as A, bc as P, X as S, aW as U, ay as x, aw as D, am as T, ar as g, a8 as h, a7 as k, a2 as F, aI as B, aF as H, ag as L, a3 as O, aA as W, an as v, aH as J, as as f, b8 as w, aQ as I, Z as R, a0 as M, aa as q, ac as K, a5 as X, a4 as Y, _ as Z, au as _, ah as j, ax as z, at as N, aK as Q, aR as V, ak as $, aj as ee, aE as ae, aD as se, aO as oe, aB as te, aM as ue, ap as me, ao as pe, a1 as de, aU as le, af as ne, aV as ye, aT as re, ae as Ee, a9 as ie, aS as Ge, bd as be, ab as Ce, ad as ce, a6 as Ae, av as Pe, ai as Se, az as Ue, aJ as xe, aL as De, al as Te, aG as ge, aP as he, aC as ke, aN as Fe, aq as Be } from "./index-BoRPBFU_.js";
|
|
2
2
|
export {
|
|
3
3
|
s as ApiError,
|
|
4
4
|
o as Company,
|
|
@@ -8,8 +8,8 @@ export {
|
|
|
8
8
|
p as EmployeeSelfOnboardingFlow,
|
|
9
9
|
d as GustoApiContextProvider,
|
|
10
10
|
l as GustoApiProvider,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
n as GustoClient,
|
|
12
|
+
y as Landing,
|
|
13
13
|
r as OnboardingSummary,
|
|
14
14
|
E as PaymentMethod,
|
|
15
15
|
i as Profile,
|
|
@@ -24,17 +24,17 @@ export {
|
|
|
24
24
|
x as useAddEmployeeBankAccount,
|
|
25
25
|
D as useAddEmployeeDeduction,
|
|
26
26
|
T as useAddEmployeeHomeAddress,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
g as useAddEmployeeWorkAddress,
|
|
28
|
+
h as useCreateCompanyBankAccount,
|
|
29
|
+
k as useCreateCompanyLocation,
|
|
30
|
+
F as useCreateEmployee,
|
|
31
31
|
B as useCreateEmployeeCompensation,
|
|
32
32
|
H as useCreateEmployeeJob,
|
|
33
33
|
L as useCreatePaySchedule,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
O as useDeleteEmployee,
|
|
35
|
+
W as useDeleteEmployeeBankAccount,
|
|
36
|
+
v as useDeleteEmployeeHomeAddress,
|
|
37
|
+
J as useDeleteEmployeeJob,
|
|
38
38
|
f as useDeleteEmployeeWorkAddress,
|
|
39
39
|
w as useFlow,
|
|
40
40
|
I as useGetAllEmployeeForms,
|
|
@@ -62,8 +62,8 @@ export {
|
|
|
62
62
|
pe as useGetEmployeeWorkAddresses,
|
|
63
63
|
de as useGetEmployeesByCompany,
|
|
64
64
|
le as useGetHistoricalPayrolls,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
ne as useGetPaySchedulesByCompany,
|
|
66
|
+
ye as useGetPayroll,
|
|
67
67
|
re as useGetPendingPayrolls,
|
|
68
68
|
Ee as useGetStateTaxRequirements,
|
|
69
69
|
ie as usePaySchedulePreview,
|
|
@@ -78,9 +78,10 @@ export {
|
|
|
78
78
|
xe as useUpdateEmployeeCompensation,
|
|
79
79
|
De as useUpdateEmployeeFederalTaxes,
|
|
80
80
|
Te as useUpdateEmployeeHomeAddress,
|
|
81
|
-
|
|
81
|
+
ge as useUpdateEmployeeJob,
|
|
82
|
+
he as useUpdateEmployeeOnboardingStatus,
|
|
82
83
|
ke as useUpdateEmployeePaymentMethod,
|
|
83
84
|
Fe as useUpdateEmployeeStateTaxes,
|
|
84
|
-
|
|
85
|
+
Be as useUpdateEmployeeWorkAddress
|
|
85
86
|
};
|
|
86
87
|
//# sourceMappingURL=index.js.map
|