@gusto/embedded-react-sdk 0.4.0 → 0.5.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{B4MFY5CR-CJdDWm2e.js → B4MFY5CR-CqyfsoVo.js} +1197 -1289
  3. package/dist/{B4MFY5CR-CJdDWm2e.js.map → B4MFY5CR-CqyfsoVo.js.map} +1 -1
  4. package/dist/{Company.AssignSignatory-VsqcZn_d.js → Company.AssignSignatory-CUCZtm6s.js} +8 -8
  5. package/dist/Company.AssignSignatory-CUCZtm6s.js.map +1 -0
  6. package/dist/Company.DocumentList-D-h6c4bI.js +40 -0
  7. package/dist/Company.DocumentList-D-h6c4bI.js.map +1 -0
  8. package/dist/Company.SignatureForm-DC4MsbLt.js +30 -0
  9. package/dist/Company.SignatureForm-DC4MsbLt.js.map +1 -0
  10. package/dist/Employee.DocumentSigner-DgbuxBnJ.js +50 -0
  11. package/dist/Employee.DocumentSigner-DgbuxBnJ.js.map +1 -0
  12. package/dist/{HO4MOOFI-CMQa5qC7.js → HO4MOOFI-2frVA61F.js} +3 -3
  13. package/dist/{HO4MOOFI-CMQa5qC7.js.map → HO4MOOFI-2frVA61F.js.map} +1 -1
  14. package/dist/{HUY7CZI3-CjanxsDV.js → HUY7CZI3-sPAWPtuq.js} +3 -3
  15. package/dist/{HUY7CZI3-CjanxsDV.js.map → HUY7CZI3-sPAWPtuq.js.map} +1 -1
  16. package/dist/{index-CSz8GCO2.js → index-CqZomo0U.js} +23347 -19474
  17. package/dist/index-CqZomo0U.js.map +1 -0
  18. package/dist/index.d.ts +154 -47
  19. package/dist/index.js +1 -1
  20. package/dist/style.css +1 -1
  21. package/package.json +4 -2
  22. package/dist/Company.AssignSignatory-VsqcZn_d.js.map +0 -1
  23. package/dist/Company.DocumentList-CHkbgJsE.js +0 -38
  24. package/dist/Company.DocumentList-CHkbgJsE.js.map +0 -1
  25. package/dist/Employee.DocumentSigner-CQx0yl15.js +0 -48
  26. package/dist/Employee.DocumentSigner-CQx0yl15.js.map +0 -1
  27. package/dist/index-CSz8GCO2.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Actions } from './Actions';
1
2
  import { BodyParams as BodyParams_2 } from '../typeHelpers';
2
3
  import { components } from '../types/schema';
3
4
  import { components as components_3 } from '../../types/schema';
@@ -11,6 +12,7 @@ import { FederalForm } from './FederalForm';
11
12
  import { FederalHead } from './FederalHead';
12
13
  import { FetchOptions } from 'openapi-fetch';
13
14
  import { FetchResponse } from 'openapi-fetch';
15
+ import { Form } from './Form';
14
16
  import { Head } from './Head';
15
17
  import { HTMLAttributes } from 'react';
16
18
  import { i18n } from 'i18next';
@@ -18,6 +20,7 @@ import { JSX } from 'react/jsx-runtime';
18
20
  import { JSX as JSX_2 } from 'react';
19
21
  import { List } from './List';
20
22
  import { ManageSignatories } from './ManageSignatories';
23
+ import { Preview } from './Preview';
21
24
  import { QueryClient } from '@tanstack/react-query';
22
25
  import { ReactElement } from 'react';
23
26
  import { ReactNode } from 'react';
@@ -133,6 +136,8 @@ declare namespace Company {
133
136
  Industry,
134
137
  AssignSignatory,
135
138
  DocumentList_2 as DocumentList,
139
+ SignatureForm_2 as SignatureForm,
140
+ DocumentSigner_3 as DocumentSigner,
136
141
  OnboardingSummary_3 as OnboardingSummary,
137
142
  OnboardingSummaryContextual_2 as OnboardingSummaryContextual
138
143
  }
@@ -224,8 +229,12 @@ export declare const componentEvents: {
224
229
  readonly COMPANY_INVITE_SIGNATORY_DONE: "company/signatory/inviteSignatory/done";
225
230
  readonly COMPANY_ASSIGN_SIGNATORY_MODE_UPDATED: "company/signatory/assignSignatory/modeUpdated";
226
231
  readonly COMPANY_ASSIGN_SIGNATORY_DONE: "company/signatory/assignSignatory/done";
227
- readonly COMPANY_VIEW_FORM_TO_SIGN: "company/forms/view";
228
232
  readonly COMPANY_FORM_EDIT_SIGNATORY: "company/forms/editSignatory";
233
+ readonly COMPANY_FORMS_DONE: "company/forms/done";
234
+ readonly COMPANY_VIEW_FORM_TO_SIGN: "company/forms/view";
235
+ readonly COMPANY_SIGN_FORM: "company/forms/sign/signForm";
236
+ readonly COMPANY_SIGN_FORM_DONE: "company/forms/sign/done";
237
+ readonly COMPANY_SIGN_FORM_BACK: "company/forms/sign/back";
229
238
  readonly EMPLOYEE_CREATE: "employee/create";
230
239
  readonly EMPLOYEE_CREATED: "employee/created";
231
240
  readonly EMPLOYEE_UPDATE: "employee/update";
@@ -340,7 +349,7 @@ declare interface components_2 {
340
349
  /** @description UUID reference to the employee for this work address. */
341
350
  employee_uuid?: string;
342
351
  /** @description The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. */
343
- version?: string;
352
+ version: string;
344
353
  readonly street_1?: string;
345
354
  readonly street_2?: string | null;
346
355
  readonly city?: string;
@@ -469,7 +478,7 @@ declare interface components_2 {
469
478
  title?: string;
470
479
  /** @description String identifier for the onboarding step. */
471
480
  id?: string;
472
- /** @description When true, this step has been completed. */
481
+ /** @description When true, this step is required. */
473
482
  required?: boolean;
474
483
  /** @description When true, this step has been completed. */
475
484
  completed?: boolean;
@@ -592,7 +601,7 @@ declare interface components_2 {
592
601
  */
593
602
  payment_period?: "Every week" | "Every other week" | "Twice per month" | "Monthly";
594
603
  /** @description The FIPS code associated with the state or county agency issuing the child support order. Agency data is available in the `GET /v1/garnishments/child_support` API. */
595
- readonly fips_code?: string;
604
+ fips_code?: string;
596
605
  /** @description Child Support Enforcement Case Number associated with this child support obligation - required for most states. Agency specific requirements are available in the `GET /v1/garnishments/child_support` API. */
597
606
  case_number?: string | null;
598
607
  /** @description Order Identifier or Order ID associated with this child support obligation - required for some states. Agency specific requirements are available in the `GET /v1/garnishments/child_support` API. */
@@ -638,6 +647,12 @@ declare interface components_2 {
638
647
  * @default null
639
648
  */
640
649
  annual_maximum: string | null;
650
+ /**
651
+ * Format: float
652
+ * @description A maximum total deduction for the lifetime of this garnishment. A null value indicates no maximum.
653
+ * @default null
654
+ */
655
+ total_amount: string | null;
641
656
  /**
642
657
  * Format: float
643
658
  * @description The maximum deduction per pay period. A null value indicates no maximum. Represented as a float, e.g. "16.00".
@@ -730,7 +745,7 @@ declare interface components_2 {
730
745
  /** @description The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. */
731
746
  version?: string;
732
747
  /** @description The UUID of the employee to which this termination is attached. */
733
- readonly employee_uuid?: number;
748
+ readonly employee_uuid?: string;
734
749
  /** @description Whether the employee's termination has gone into effect. */
735
750
  readonly active?: boolean;
736
751
  /** @description Whether the employee's termination is cancelable. Cancelable is true if `run_termination_payroll` is false and `effective_date` is in the future. */
@@ -877,6 +892,8 @@ declare interface components_2 {
877
892
  effective_date?: string;
878
893
  }[];
879
894
  };
895
+ /** @description The content type of the associated document. Most forms are PDFs with a content type of `application/pdf`. Some tax file packages will be zip files (containing PDFs) with a content type of `application/zip`. This attribute will be `null` when the document has not been prepared. */
896
+ "Form-Document-Content-Type-Type": string | null;
880
897
  /** Form */
881
898
  Form: {
882
899
  /** @description The UUID of the form */
@@ -895,6 +912,7 @@ declare interface components_2 {
895
912
  readonly quarter?: number | null;
896
913
  /** @description A boolean flag that indicates whether the form needs signing or not. Note that this value will change after the form is signed. */
897
914
  readonly requires_signing?: boolean;
915
+ document_content_type?: components_2["schemas"]["Form-Document-Content-Type-Type"];
898
916
  };
899
917
  /** Form */
900
918
  Form_1099: {
@@ -914,6 +932,7 @@ declare interface components_2 {
914
932
  readonly quarter?: number | null;
915
933
  /** @description A boolean flag that indicates whether the form needs signing or not. Note that this value will change after the form is signed. */
916
934
  readonly requires_signing?: boolean;
935
+ document_content_type?: components_2["schemas"]["Form-Document-Content-Type-Type"];
917
936
  /** @description The contractor UUID */
918
937
  readonly contractor_uuid?: string;
919
938
  };
@@ -922,7 +941,8 @@ declare interface components_2 {
922
941
  /** @description the UUID of the form */
923
942
  readonly uuid: string;
924
943
  /** @description the URL of the form */
925
- document_url?: string;
944
+ document_url?: string | null;
945
+ document_content_type?: components_2["schemas"]["Form-Document-Content-Type-Type"];
926
946
  };
927
947
  /** Document */
928
948
  Document: {
@@ -2087,6 +2107,8 @@ declare interface components_2 {
2087
2107
  "Company-Benefit-With-Employee-Benefits": {
2088
2108
  /** @description The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. */
2089
2109
  version?: string;
2110
+ /** @description The UUID of the company. */
2111
+ readonly company_uuid?: string;
2090
2112
  /** @description The UUID of the company benefit. */
2091
2113
  readonly uuid: string;
2092
2114
  /** @description The type of the benefit to which the company benefit belongs (same as benefit_id). */
@@ -2163,6 +2185,10 @@ declare interface components_2 {
2163
2185
  "Company-Benefit": {
2164
2186
  /** @description The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. */
2165
2187
  version?: string;
2188
+ /** @description The number of employees enrolled in the benefit, only returned when enrollment_count query param is set to true. */
2189
+ readonly enrollment_count?: number;
2190
+ /** @description The UUID of the company. */
2191
+ readonly company_uuid?: string;
2166
2192
  /** @description The UUID of the company benefit. */
2167
2193
  readonly uuid: string;
2168
2194
  /** @description The type of the benefit to which the company benefit belongs. */
@@ -2397,6 +2423,8 @@ declare interface components_2 {
2397
2423
  readonly job_uuid?: string;
2398
2424
  /** @description The amount multiplied by the base rate to calculate total compensation per hour worked. */
2399
2425
  readonly compensation_multiplier?: number;
2426
+ /** @description The FLSA Status of the employee's primary job compensation */
2427
+ readonly flsa_status?: string;
2400
2428
  }[];
2401
2429
  /** @description An array of all paid time off the employee is eligible for this pay period. */
2402
2430
  paid_time_off?: {
@@ -4960,6 +4988,8 @@ declare interface components_2 {
4960
4988
  webhook_subscription_uuid: string;
4961
4989
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
4962
4990
  VersionHeader: "2024-04-01";
4991
+ /** @description Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */
4992
+ IpAddressHeader: string;
4963
4993
  /** @description The notification entity_uuid */
4964
4994
  notification_uuid: string;
4965
4995
  /** @description The month we are calculating the invoice for. Must be in YYYY-MM format */
@@ -5061,6 +5091,7 @@ declare namespace DocumentList_2 {
5061
5091
  var Head: Head;
5062
5092
  var ManageSignatories: ManageSignatories;
5063
5093
  var List: List;
5094
+ var Actions: Actions;
5064
5095
  }
5065
5096
 
5066
5097
  declare interface DocumentListProps {
@@ -5081,6 +5112,8 @@ declare namespace DocumentSigner_2 {
5081
5112
  var SignatureForm: SignatureForm;
5082
5113
  }
5083
5114
 
5115
+ declare const DocumentSigner_3: ({ companyId, signatoryId, onEvent }: DocumentSignerProps_2) => JSX.Element;
5116
+
5084
5117
  declare type DocumentSignerContextType = {
5085
5118
  employeeForms: Schemas['Form'][];
5086
5119
  isPending: boolean;
@@ -5089,7 +5122,7 @@ declare type DocumentSignerContextType = {
5089
5122
  handleContinue: () => void;
5090
5123
  documentListError: Error | null;
5091
5124
  formToSign?: Schemas['Form'];
5092
- pdfUrl?: string;
5125
+ pdfUrl?: string | null;
5093
5126
  handleBack: () => void;
5094
5127
  handleSubmit: (data: SignatureFormInputs) => void;
5095
5128
  };
@@ -5098,6 +5131,11 @@ declare interface DocumentSignerProps extends CommonComponentInterface {
5098
5131
  employeeId: string;
5099
5132
  }
5100
5133
 
5134
+ declare interface DocumentSignerProps_2 extends BaseComponentInterface {
5135
+ companyId: string;
5136
+ signatoryId?: string;
5137
+ }
5138
+
5101
5139
  declare namespace Employee {
5102
5140
  export {
5103
5141
  EmployeeList,
@@ -5286,6 +5324,8 @@ declare interface GThemeCard {
5286
5324
  dividerColor: string
5287
5325
  headerTextColor: string
5288
5326
  contentTextColor: string
5327
+ columnTitleColor: string
5328
+ columnTitleFontSize: string
5289
5329
  }
5290
5330
 
5291
5331
  declare interface GThemeCheckbox {
@@ -5445,7 +5485,7 @@ export declare function GustoApiContextProvider({ children, context, queryClient
5445
5485
  }): JSX.Element;
5446
5486
 
5447
5487
  export declare interface GustoApiProps {
5448
- config?: APIConfig;
5488
+ config: APIConfig;
5449
5489
  dictionary?: Dictionary;
5450
5490
  lng?: string;
5451
5491
  locale?: string;
@@ -5547,7 +5587,9 @@ export declare class GustoClient {
5547
5587
  }>;
5548
5588
  getCompanyOnboardingStatus(company_uuid: string): Promise<FetchResponse< {
5549
5589
  parameters: {
5550
- query?: never;
5590
+ query?: {
5591
+ additional_steps?: string;
5592
+ };
5551
5593
  header?: {
5552
5594
  "X-Gusto-API-Version"?: components["parameters"]["VersionHeader"];
5553
5595
  };
@@ -6101,7 +6143,7 @@ export declare class GustoClient {
6101
6143
  readonly active?: boolean;
6102
6144
  location_uuid?: string;
6103
6145
  employee_uuid?: string;
6104
- version?: string;
6146
+ version: string;
6105
6147
  readonly street_1?: string;
6106
6148
  readonly street_2?: string | null;
6107
6149
  readonly city?: string;
@@ -6144,7 +6186,7 @@ export declare class GustoClient {
6144
6186
  readonly active?: boolean;
6145
6187
  location_uuid?: string;
6146
6188
  employee_uuid?: string;
6147
- version?: string;
6189
+ version: string;
6148
6190
  readonly street_1?: string;
6149
6191
  readonly street_2?: string | null;
6150
6192
  readonly city?: string;
@@ -6257,6 +6299,7 @@ export declare class GustoClient {
6257
6299
  times: number | null;
6258
6300
  recurring: boolean;
6259
6301
  annual_maximum: string | null;
6302
+ total_amount: string | null;
6260
6303
  pay_period_maximum: string | null;
6261
6304
  deduct_as_percentage: boolean;
6262
6305
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -6273,6 +6316,7 @@ export declare class GustoClient {
6273
6316
  times: number | null;
6274
6317
  recurring: boolean;
6275
6318
  annual_maximum: string | null;
6319
+ total_amount: string | null;
6276
6320
  pay_period_maximum: string | null;
6277
6321
  deduct_as_percentage: boolean;
6278
6322
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -6566,6 +6610,8 @@ export declare class GustoClient {
6566
6610
  start_date?: string;
6567
6611
  end_date?: string;
6568
6612
  sort_order?: components["parameters"]["sort_order"];
6613
+ page?: components["parameters"]["pageParam"];
6614
+ per?: components["parameters"]["perParam"];
6569
6615
  };
6570
6616
  header?: {
6571
6617
  "X-Gusto-API-Version"?: components["parameters"]["VersionHeader"];
@@ -6602,6 +6648,8 @@ export declare class GustoClient {
6602
6648
  start_date?: string;
6603
6649
  end_date?: string;
6604
6650
  sort_order?: components["parameters"]["sort_order"];
6651
+ page?: components["parameters"]["pageParam"];
6652
+ per?: components["parameters"]["perParam"];
6605
6653
  };
6606
6654
  header?: {
6607
6655
  "X-Gusto-API-Version"?: components["parameters"]["VersionHeader"];
@@ -6783,10 +6831,12 @@ export declare class GustoClient {
6783
6831
  readonly year?: number | null;
6784
6832
  readonly quarter?: number | null;
6785
6833
  readonly requires_signing?: boolean;
6834
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6786
6835
  }[]>;
6787
6836
  getEmployeeFormPdf(employee_id: string, form_id: string): Promise<{
6788
6837
  readonly uuid: string;
6789
- document_url?: string;
6838
+ document_url?: string | null;
6839
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6790
6840
  }>;
6791
6841
  signEmployeeForm(employee_id: string, form_id: string, body: BodyParams<'/v1/employees/{employee_id}/forms/{form_id}/sign', 'PUT'>): Promise<{
6792
6842
  readonly uuid: string;
@@ -6797,6 +6847,7 @@ export declare class GustoClient {
6797
6847
  readonly year?: number | null;
6798
6848
  readonly quarter?: number | null;
6799
6849
  readonly requires_signing?: boolean;
6850
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6800
6851
  }>;
6801
6852
  getAllCompanyForms(company_id: string): Promise<{
6802
6853
  readonly uuid: string;
@@ -6807,10 +6858,12 @@ export declare class GustoClient {
6807
6858
  readonly year?: number | null;
6808
6859
  readonly quarter?: number | null;
6809
6860
  readonly requires_signing?: boolean;
6861
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6810
6862
  }[]>;
6811
6863
  getCompanyFormPdf(form_id: string): Promise<{
6812
6864
  readonly uuid: string;
6813
- document_url?: string;
6865
+ document_url?: string | null;
6866
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6814
6867
  }>;
6815
6868
  signCompanyForm(form_id: string, body: BodyParams<'/v1/forms/{form_id}/sign', 'PUT'>): Promise<{
6816
6869
  readonly uuid: string;
@@ -6821,6 +6874,7 @@ export declare class GustoClient {
6821
6874
  readonly year?: number | null;
6822
6875
  readonly quarter?: number | null;
6823
6876
  readonly requires_signing?: boolean;
6877
+ document_content_type?: components["schemas"]["Form-Document-Content-Type-Type"];
6824
6878
  }>;
6825
6879
  getPaySchedule(pay_schedule_id: string, company_id: string): Promise<{
6826
6880
  uuid: components["schemas"]["Pay-Schedule-Uuid"];
@@ -7825,7 +7879,10 @@ declare interface operations {
7825
7879
  };
7826
7880
  "get-v1-company-onboarding-status": {
7827
7881
  parameters: {
7828
- query?: never;
7882
+ query?: {
7883
+ /** @description Comma delimited string indicating whether to include any additional steps of onboarding. Currently only supports the value "external_payroll". */
7884
+ additional_steps?: string;
7885
+ };
7829
7886
  header?: {
7830
7887
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
7831
7888
  "X-Gusto-API-Version"?: components_2["parameters"]["VersionHeader"];
@@ -10972,6 +11029,8 @@ declare interface operations {
10972
11029
  parameters: {
10973
11030
  query?: never;
10974
11031
  header?: {
11032
+ /** @description Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */
11033
+ "x-gusto-client-ip"?: components_2["parameters"]["IpAddressHeader"];
10975
11034
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
10976
11035
  "X-Gusto-API-Version"?: components_2["parameters"]["VersionHeader"];
10977
11036
  };
@@ -10993,8 +11052,8 @@ declare interface operations {
10993
11052
  }[];
10994
11053
  /** @description Whether you agree to sign electronically */
10995
11054
  agree: boolean;
10996
- /** @description The IP address of the signatory who signed the form. */
10997
- signed_by_ip_address: string;
11055
+ /** @description The IP address of the signatory who signed the form. You must provide the IP address with either this parameter OR you can leave out this parameter and set the IP address in the request header using the `x-gusto-client-ip` header instead. */
11056
+ signed_by_ip_address?: string;
10998
11057
  };
10999
11058
  };
11000
11059
  };
@@ -11249,6 +11308,10 @@ declare interface operations {
11249
11308
  end_date?: string;
11250
11309
  /** @description A string indicating whether to sort resulting events in ascending (asc) or descending (desc) chronological order. Events are sorted by their `timestamp`. Defaults to asc if left empty. */
11251
11310
  sort_order?: components_2["parameters"]["sort_order"];
11311
+ /** @description The page that is requested. When unspecified, will load all objects unless endpoint forces pagination. */
11312
+ page?: components_2["parameters"]["pageParam"];
11313
+ /** @description Number of objects per page. For majority of endpoints will default to 25 */
11314
+ per?: components_2["parameters"]["perParam"];
11252
11315
  };
11253
11316
  header?: {
11254
11317
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
@@ -12238,6 +12301,8 @@ declare interface operations {
12238
12301
  parameters: {
12239
12302
  query?: never;
12240
12303
  header?: {
12304
+ /** @description Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */
12305
+ "x-gusto-client-ip"?: components_2["parameters"]["IpAddressHeader"];
12241
12306
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
12242
12307
  "X-Gusto-API-Version"?: components_2["parameters"]["VersionHeader"];
12243
12308
  };
@@ -12254,8 +12319,8 @@ declare interface operations {
12254
12319
  signature_text: string;
12255
12320
  /** @description Whether you agree to sign electronically */
12256
12321
  agree: boolean;
12257
- /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. */
12258
- signed_by_ip_address: string;
12322
+ /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. You must provide the IP address with either this parameter OR you can leave out this parameter and set the IP address in the request header using the `x-gusto-client-ip` header instead. */
12323
+ signed_by_ip_address?: string;
12259
12324
  };
12260
12325
  };
12261
12326
  };
@@ -12330,6 +12395,8 @@ declare interface operations {
12330
12395
  parameters: {
12331
12396
  query?: never;
12332
12397
  header?: {
12398
+ /** @description Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */
12399
+ "x-gusto-client-ip"?: components_2["parameters"]["IpAddressHeader"];
12333
12400
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
12334
12401
  "X-Gusto-API-Version"?: components_2["parameters"]["VersionHeader"];
12335
12402
  };
@@ -12348,8 +12415,8 @@ declare interface operations {
12348
12415
  signature_text: string;
12349
12416
  /** @description Whether you agree to sign electronically */
12350
12417
  agree: boolean;
12351
- /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. */
12352
- signed_by_ip_address: string;
12418
+ /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. You must provide the IP address with either this parameter OR you can leave out this parameter and set the IP address in the request header using the `x-gusto-client-ip` header instead. */
12419
+ signed_by_ip_address?: string;
12353
12420
  /** @description Whether there is a preparer */
12354
12421
  preparer?: boolean;
12355
12422
  preparer_first_name?: string;
@@ -12631,6 +12698,8 @@ declare interface operations {
12631
12698
  "get-v1-companies-company_id-company_benefits": {
12632
12699
  parameters: {
12633
12700
  query?: {
12701
+ /** @description Whether the benefit is currently active */
12702
+ active?: boolean;
12634
12703
  /** @description Whether to return employee enrollment count */
12635
12704
  enrollment_count?: boolean;
12636
12705
  };
@@ -13662,6 +13731,8 @@ declare interface operations {
13662
13731
  parameters: {
13663
13732
  query?: never;
13664
13733
  header?: {
13734
+ /** @description Optional header to supply the IP address. This can be used to supply the IP address for signature endpoints instead of the signed_by_ip_address parameter. */
13735
+ "x-gusto-client-ip"?: components_2["parameters"]["IpAddressHeader"];
13665
13736
  /** @description Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */
13666
13737
  "X-Gusto-API-Version"?: components_2["parameters"]["VersionHeader"];
13667
13738
  };
@@ -13678,8 +13749,8 @@ declare interface operations {
13678
13749
  signature_text: string;
13679
13750
  /** @description The signer's job title */
13680
13751
  signer_title: string;
13681
- /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. */
13682
- signed_by_ip_address: string;
13752
+ /** @description The IP address of the signatory who signed the form. Both IPv4 AND IPv6 are supported. You must provide the IP address with either this parameter OR you can leave out this parameter and set the IP address in the request header using the `x-gusto-client-ip` header instead. */
13753
+ signed_by_ip_address?: string;
13683
13754
  /** @description Whether you agree to sign electronically */
13684
13755
  agree: boolean;
13685
13756
  /** @description Any additional notes */
@@ -19475,8 +19546,24 @@ declare type Schemas = components_2["schemas"];
19475
19546
  /**Creating new i18next instance to avoid global clashing */
19476
19547
  export declare const SDKI18next: i18n;
19477
19548
 
19549
+ declare function SignatureForm_2({ form, companyId, children, className, ...props }: SignatureFormProps & BaseComponentInterface): JSX.Element;
19550
+
19551
+ declare namespace SignatureForm_2 {
19552
+ var Head: Head;
19553
+ var Preview: Preview;
19554
+ var Form: Form;
19555
+ var Actions: Actions;
19556
+ }
19557
+
19478
19558
  declare type SignatureFormInputs = v.InferInput<typeof SignatureFormSchema>;
19479
19559
 
19560
+ declare interface SignatureFormProps {
19561
+ form: Schemas['Form'];
19562
+ companyId: string;
19563
+ children?: ReactNode;
19564
+ className?: string;
19565
+ }
19566
+
19480
19567
  declare const SignatureFormSchema: v.ObjectSchema<{
19481
19568
  readonly signature: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
19482
19569
  readonly confirmSignature: v.SchemaWithPipe<[v.ArraySchema<v.LiteralSchema<"agree", undefined>, undefined>, v.MinLengthAction<"agree"[], 1, undefined>]>;
@@ -19563,6 +19650,7 @@ court_ordered?: boolean;
19563
19650
  times: number | null;
19564
19651
  recurring: boolean;
19565
19652
  annual_maximum: string | null;
19653
+ total_amount: string | null;
19566
19654
  pay_period_maximum: string | null;
19567
19655
  deduct_as_percentage: boolean;
19568
19656
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -19580,6 +19668,7 @@ court_ordered?: boolean;
19580
19668
  times: number | null;
19581
19669
  recurring: boolean;
19582
19670
  annual_maximum: string | null;
19671
+ total_amount: string | null;
19583
19672
  pay_period_maximum: string | null;
19584
19673
  deduct_as_percentage: boolean;
19585
19674
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -19628,7 +19717,7 @@ effective_date?: string;
19628
19717
  readonly active?: boolean;
19629
19718
  location_uuid?: string;
19630
19719
  employee_uuid?: string;
19631
- version?: string;
19720
+ version: string;
19632
19721
  readonly street_1?: string;
19633
19722
  readonly street_2?: string | null;
19634
19723
  readonly city?: string;
@@ -19643,7 +19732,7 @@ effective_date?: string;
19643
19732
  readonly active?: boolean;
19644
19733
  location_uuid?: string;
19645
19734
  employee_uuid?: string;
19646
- version?: string;
19735
+ version: string;
19647
19736
  readonly street_1?: string;
19648
19737
  readonly street_2?: string | null;
19649
19738
  readonly city?: string;
@@ -19977,6 +20066,7 @@ readonly draft?: boolean;
19977
20066
  readonly year?: number | null;
19978
20067
  readonly quarter?: number | null;
19979
20068
  readonly requires_signing?: boolean;
20069
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
19980
20070
  }[], Error>;
19981
20071
 
19982
20072
  export declare function useGetAllEmployeeForms(employee_id: string): UseSuspenseQueryResult<{
@@ -19988,6 +20078,7 @@ export declare function useGetAllEmployeeForms(employee_id: string): UseSuspense
19988
20078
  readonly year?: number | null;
19989
20079
  readonly quarter?: number | null;
19990
20080
  readonly requires_signing?: boolean;
20081
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
19991
20082
  }[], Error>;
19992
20083
 
19993
20084
  export declare function useGetAllSignatories(company_id: string): UseSuspenseQueryResult< {
@@ -20096,7 +20187,8 @@ deposit_schedule?: string;
20096
20187
 
20097
20188
  export declare function useGetCompanyFormPdf(form_id: string): UseSuspenseQueryResult< {
20098
20189
  readonly uuid: string;
20099
- document_url?: string;
20190
+ document_url?: string | null;
20191
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20100
20192
  }, Error>;
20101
20193
 
20102
20194
  export declare function useGetCompanyIndustry(company_id: string): UseSuspenseQueryResult< {
@@ -20166,6 +20258,7 @@ export declare function useGetDeduction(garnishment_id: string): UseSuspenseQuer
20166
20258
  times: number | null;
20167
20259
  recurring: boolean;
20168
20260
  annual_maximum: string | null;
20261
+ total_amount: string | null;
20169
20262
  pay_period_maximum: string | null;
20170
20263
  deduct_as_percentage: boolean;
20171
20264
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -20194,6 +20287,7 @@ export declare function useGetEmployeeDeductions(employee_id: string): UseSuspen
20194
20287
  times: number | null;
20195
20288
  recurring: boolean;
20196
20289
  annual_maximum: string | null;
20290
+ total_amount: string | null;
20197
20291
  pay_period_maximum: string | null;
20198
20292
  deduct_as_percentage: boolean;
20199
20293
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -20215,7 +20309,8 @@ export declare function useGetEmployeeFederalTaxes(employee_id: string): UseSusp
20215
20309
 
20216
20310
  export declare function useGetEmployeeFormPdf(employee_id: string): UseMutationResult< {
20217
20311
  readonly uuid: string;
20218
- document_url?: string;
20312
+ document_url?: string | null;
20313
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20219
20314
  }, Error, {
20220
20315
  form_id: string;
20221
20316
  }, unknown>;
@@ -20363,7 +20458,7 @@ export declare function useGetEmployeeWorkAddress(work_address_uuid: string): Us
20363
20458
  readonly active?: boolean;
20364
20459
  location_uuid?: string;
20365
20460
  employee_uuid?: string;
20366
- version?: string;
20461
+ version: string;
20367
20462
  readonly street_1?: string;
20368
20463
  readonly street_2?: string | null;
20369
20464
  readonly city?: string;
@@ -20378,7 +20473,7 @@ export declare function useGetEmployeeWorkAddresses(employee_id: string | undefi
20378
20473
  readonly active?: boolean;
20379
20474
  location_uuid?: string;
20380
20475
  employee_uuid?: string;
20381
- version?: string;
20476
+ version: string;
20382
20477
  readonly street_1?: string;
20383
20478
  readonly street_2?: string | null;
20384
20479
  readonly city?: string;
@@ -20472,6 +20567,7 @@ readonly draft?: boolean;
20472
20567
  readonly year?: number | null;
20473
20568
  readonly quarter?: number | null;
20474
20569
  readonly requires_signing?: boolean;
20570
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20475
20571
  }, unknown, {
20476
20572
  form_id: string;
20477
20573
  body: Parameters<(form_id: string, body: BodyParams_2<"/v1/forms/{form_id}/sign", "PUT">) => Promise<{
@@ -20483,6 +20579,7 @@ readonly draft?: boolean;
20483
20579
  readonly year?: number | null;
20484
20580
  readonly quarter?: number | null;
20485
20581
  readonly requires_signing?: boolean;
20582
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20486
20583
  }>>[1];
20487
20584
  }, unknown>;
20488
20585
 
@@ -20495,6 +20592,7 @@ readonly draft?: boolean;
20495
20592
  readonly year?: number | null;
20496
20593
  readonly quarter?: number | null;
20497
20594
  readonly requires_signing?: boolean;
20595
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20498
20596
  }, Error, {
20499
20597
  form_id: string;
20500
20598
  body: Parameters<(employee_id: string, form_id: string, body: BodyParams_2<"/v1/employees/{employee_id}/forms/{form_id}/sign", "PUT">) => Promise<{
@@ -20506,6 +20604,7 @@ readonly draft?: boolean;
20506
20604
  readonly year?: number | null;
20507
20605
  readonly quarter?: number | null;
20508
20606
  readonly requires_signing?: boolean;
20607
+ document_content_type?: components_3["schemas"]["Form-Document-Content-Type-Type"];
20509
20608
  }>>[2];
20510
20609
  }, unknown>;
20511
20610
 
@@ -20698,6 +20797,7 @@ court_ordered?: boolean;
20698
20797
  times: number | null;
20699
20798
  recurring: boolean;
20700
20799
  annual_maximum: string | null;
20800
+ total_amount: string | null;
20701
20801
  pay_period_maximum: string | null;
20702
20802
  deduct_as_percentage: boolean;
20703
20803
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -20715,6 +20815,7 @@ court_ordered?: boolean;
20715
20815
  times: number | null;
20716
20816
  recurring: boolean;
20717
20817
  annual_maximum: string | null;
20818
+ total_amount: string | null;
20718
20819
  pay_period_maximum: string | null;
20719
20820
  deduct_as_percentage: boolean;
20720
20821
  garnishment_type?: "child_support" | "federal_tax_lien" | "state_tax_lien" | "student_loan" | "creditor_garnishment" | "federal_loan" | "other_garnishment" | null;
@@ -21029,7 +21130,7 @@ effective_date?: string;
21029
21130
  readonly active?: boolean;
21030
21131
  location_uuid?: string;
21031
21132
  employee_uuid?: string;
21032
- version?: string;
21133
+ version: string;
21033
21134
  readonly street_1?: string;
21034
21135
  readonly street_2?: string | null;
21035
21136
  readonly city?: string;
@@ -21044,7 +21145,7 @@ effective_date?: string;
21044
21145
  readonly active?: boolean;
21045
21146
  location_uuid?: string;
21046
21147
  employee_uuid?: string;
21047
- version?: string;
21148
+ version: string;
21048
21149
  readonly street_1?: string;
21049
21150
  readonly street_2?: string | null;
21050
21151
  readonly city?: string;
@@ -21103,18 +21204,6 @@ declare type VAR = `var(${string})`
21103
21204
 
21104
21205
  export { }
21105
21206
 
21106
- declare namespace _default {
21107
- function process(): {
21108
- code: string;
21109
- };
21110
- }
21111
-
21112
- declare namespace _default {
21113
- function process(sourceText: any, sourcePath: any): {
21114
- code: string;
21115
- };
21116
- }
21117
-
21118
21207
 
21119
21208
 
21120
21209
  declare module 'i18next' {
@@ -21180,8 +21269,8 @@ export interface CompanyAssignSignatory{
21180
21269
  "lastName":string;
21181
21270
  }
21182
21271
  "buttons":{
21183
- "submit":string;
21184
- "invite":string;
21272
+ "signDocuments":string;
21273
+ "inviteSignatory":string;
21185
21274
  }
21186
21275
  "validations":{
21187
21276
  "dob":string;
@@ -21203,7 +21292,7 @@ export interface CompanyDocumentList{
21203
21292
  "documentListTitle":string;
21204
21293
  "documentListLabel":string;
21205
21294
  "formColumnLabel":string;
21206
- "statusColumnLabel":string;
21295
+ "actionColumnLabel":string;
21207
21296
  "selfSignatoryTitle":string;
21208
21297
  "otherSignatoryTitle":string;
21209
21298
  "selfSignatorySubtext":string;
@@ -21216,6 +21305,7 @@ export interface CompanyDocumentList{
21216
21305
  "notSigned":string;
21217
21306
  "documentListError":string;
21218
21307
  "emptyTableTitle":string;
21308
+ "continueCta":string;
21219
21309
  };
21220
21310
  export interface CompanyFederalTaxes{
21221
21311
  "pageTitle":string;
@@ -21256,6 +21346,20 @@ export interface CompanyPaySchedule{
21256
21346
  "payday":string;
21257
21347
  "runPayrollBy":string;
21258
21348
  };
21349
+ export interface CompanySignatureForm{
21350
+ "signatureFormTitle":string;
21351
+ "downloadInstructions":string;
21352
+ "viewDocumentCta":string;
21353
+ "signatureLabel":string;
21354
+ "signatureDescription":string;
21355
+ "signatureError":string;
21356
+ "confirmationGroupLabel":string;
21357
+ "confirmationLabel":string;
21358
+ "confirmationError":string;
21359
+ "backCta":string;
21360
+ "submitCta":string;
21361
+ "downloadPrompt":string;
21362
+ };
21259
21363
  export interface EmployeeBankAccount{
21260
21364
  "accountNumberLabel":string;
21261
21365
  "accountTypeChecking":string;
@@ -21372,7 +21476,7 @@ export interface EmployeeDocumentSigner{
21372
21476
  "documentListTitle":string;
21373
21477
  "documentListLabel":string;
21374
21478
  "formColumnLabel":string;
21375
- "statusColumnLabel":string;
21479
+ "actionColumnLabel":string;
21376
21480
  "continueCta":string;
21377
21481
  "signDocumentCta":string;
21378
21482
  "signDocumentComplete":string;
@@ -21384,6 +21488,7 @@ export interface EmployeeDocumentSigner{
21384
21488
  "signatureFieldLabel":string;
21385
21489
  "signatureFieldDescription":string;
21386
21490
  "signatureFieldError":string;
21491
+ "confirmationGroupLabel":string;
21387
21492
  "confirmSignatureCheckboxLabel":string;
21388
21493
  "confirmSignatureError":string;
21389
21494
  "backCta":string;
@@ -21663,6 +21768,8 @@ export interface common{
21663
21768
  "optionalLabel":string;
21664
21769
  "errors":{
21665
21770
  "globalReactError":string;
21771
+ "resetGlobalError":string;
21772
+ "unknownError":string;
21666
21773
  "missingParamsOrContext":string;
21667
21774
  "unhandledEvent":string;
21668
21775
  "unknownEventType":string;
@@ -21794,7 +21901,7 @@ export interface common{
21794
21901
 
21795
21902
  interface CustomTypeOptions {
21796
21903
  defaultNS: 'common';
21797
- resources: { 'Company.AddBank': CompanyAddBank, 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.PaySchedule': CompanyPaySchedule, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'Payroll.PayrollHistoryList': PayrollPayrollHistoryList, 'Payroll.PayrollSchedule': PayrollPayrollSchedule, 'common': common, }
21904
+ resources: { 'Company.AddBank': CompanyAddBank, 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'Payroll.PayrollHistoryList': PayrollPayrollHistoryList, 'Payroll.PayrollSchedule': PayrollPayrollSchedule, 'common': common, }
21798
21905
  };
21799
21906
  }
21800
21907
  declare module 'robot3' {