diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 38b010c4..c5089f57 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.551.0 +speakeasyVersion: 1.554.1 sources: GustoEmbedded-OAS: sourceNamespace: gusto-embedded-oas - sourceRevisionDigest: sha256:af3919c9fea3c5dcd03aba6ea1bfde955089fcc667ece7e7b3ee41a2352859cb - sourceBlobDigest: sha256:58bac3b0a66b3771214f68c2c08660af8b65c369f4f599bbde1323d94f240b52 + sourceRevisionDigest: sha256:c8d373f765bf6bd77d8f5d3a92753dfa7cf291e418c9c7321a9201b2351f981f + sourceBlobDigest: sha256:edd119442f06a6d6c8080b20d9142b5e057bedaec9f9139f82c95af7d0ef1b13 tags: - latest - - speakeasy-sdk-regen-1747440846 + - speakeasy-sdk-regen-1748391275 - "2024-04-01" targets: gusto-embedded: source: GustoEmbedded-OAS sourceNamespace: gusto-embedded-oas - sourceRevisionDigest: sha256:af3919c9fea3c5dcd03aba6ea1bfde955089fcc667ece7e7b3ee41a2352859cb - sourceBlobDigest: sha256:58bac3b0a66b3771214f68c2c08660af8b65c369f4f599bbde1323d94f240b52 + sourceRevisionDigest: sha256:c8d373f765bf6bd77d8f5d3a92753dfa7cf291e418c9c7321a9201b2351f981f + sourceBlobDigest: sha256:edd119442f06a6d6c8080b20d9142b5e057bedaec9f9139f82c95af7d0ef1b13 codeSamplesNamespace: gusto-embedded-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:f110229c4d5faed5321fcd68ab07601376b92a6035ccf97d456a0071e826144c + codeSamplesRevisionDigest: sha256:545efedf848cf614e2d70272108198a96f4727ab2a739a6b458703576f2e2a85 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/gusto_embedded/.speakeasy/gen.lock b/gusto_embedded/.speakeasy/gen.lock index d7457f0c..a39371be 100644 --- a/gusto_embedded/.speakeasy/gen.lock +++ b/gusto_embedded/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: f0264e24-cbe2-4074-b157-7a6ba8979508 management: - docChecksum: 7eac40dba18b3c0535b527dad6f3db70 + docChecksum: e6e881a9e27c20ab7153bdaf8462d3de docVersion: "2024-04-01" - speakeasyVersion: 1.551.0 - generationVersion: 2.610.0 - releaseVersion: 0.5.15 - configChecksum: c7dcf64519a8be64f36ba36034e942df + speakeasyVersion: 1.554.1 + generationVersion: 2.616.1 + releaseVersion: 0.6.0 + configChecksum: 627955de549f6b0ae3d104c1e4f07980 repoURL: https://github.com/Gusto/gusto-typescript-client.git repoSubDirectory: gusto_embedded installationURL: https://gitpkg.now.sh/Gusto/gusto-typescript-client/gusto_embedded @@ -35,7 +35,7 @@ features: reactQueryHooks: 0.2.3 responseFormat: 0.2.3 retries: 2.83.0 - sdkHooks: 0.2.0 + sdkHooks: 0.3.0 serverIDs: 2.81.2 unions: 2.85.8 uploadStreams: 0.1.0 @@ -467,6 +467,7 @@ generatedFiles: - docs/models/operations/deletev1employeesemployeeidterminationsresponse.md - docs/models/operations/deletev1externalpayrollrequest.md - docs/models/operations/deletev1externalpayrollresponse.md + - docs/models/operations/deletev1homeaddresseshomeaddressuuidheaderxgustoapiversion.md - docs/models/operations/deletev1homeaddresseshomeaddressuuidrequest.md - docs/models/operations/deletev1homeaddresseshomeaddressuuidresponse.md - docs/models/operations/deletev1jobsjobidrequest.md @@ -674,6 +675,7 @@ generatedFiles: - docs/models/operations/getv1employeesemployeeidfederaltaxesresponse.md - docs/models/operations/getv1employeesemployeeidgarnishmentsrequest.md - docs/models/operations/getv1employeesemployeeidgarnishmentsresponse.md + - docs/models/operations/getv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md - docs/models/operations/getv1employeesemployeeidhomeaddressesrequest.md - docs/models/operations/getv1employeesemployeeidhomeaddressesresponse.md - docs/models/operations/getv1employeesemployeeidi9authorizationdocumentoptionsrequest.md @@ -715,6 +717,7 @@ generatedFiles: - docs/models/operations/getv1garnishmentsgarnishmentidresponse.md - docs/models/operations/getv1generateddocumentsdocumenttyperequestuuidrequest.md - docs/models/operations/getv1generateddocumentsdocumenttyperequestuuidresponse.md + - docs/models/operations/getv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md - docs/models/operations/getv1homeaddresseshomeaddressuuidrequest.md - docs/models/operations/getv1homeaddresseshomeaddressuuidresponse.md - docs/models/operations/getv1jobsjobidcompensationsqueryparaminclude.md @@ -891,6 +894,7 @@ generatedFiles: - docs/models/operations/postv1employeesemployeeidgarnishmentsrequest.md - docs/models/operations/postv1employeesemployeeidgarnishmentsrequestbody.md - docs/models/operations/postv1employeesemployeeidgarnishmentsresponse.md + - docs/models/operations/postv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md - docs/models/operations/postv1employeesemployeeidhomeaddressesrequest.md - docs/models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md - docs/models/operations/postv1employeesemployeeidhomeaddressesresponse.md @@ -995,6 +999,7 @@ generatedFiles: - docs/models/operations/putv1companiescompanyidpayrollspayrollidcalculaterequest.md - docs/models/operations/putv1companiescompanyidpayrollspayrollidcalculateresponse.md - docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequest.md + - docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequestbody.md - docs/models/operations/putv1companiescompanyidpayrollspayrollidprepareresponse.md - docs/models/operations/putv1companiescompanyidpayrollspayrollidsubmitrequest.md - docs/models/operations/putv1companiescompanyidpayrollspayrollidsubmitrequestbody.md @@ -1114,6 +1119,7 @@ generatedFiles: - docs/models/operations/putv1historicalemployeesrequest.md - docs/models/operations/putv1historicalemployeesrequestbody.md - docs/models/operations/putv1historicalemployeesresponse.md + - docs/models/operations/putv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md - docs/models/operations/putv1homeaddresseshomeaddressuuidrequest.md - docs/models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md - docs/models/operations/putv1homeaddresseshomeaddressuuidresponse.md @@ -3170,7 +3176,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: {"uuid": "d79baec2-1bfd-41ad-bd7f-fefc9f4cdb29", "version": "ddcd087920c1f969e25153a9e3fe9d13", "company_uuid": "a0f11a60-0ec0-4f1b-9694-8c6fa7ffedce", "phone_number": "4721978147", "street_1": "58092 Mosciski Spring", "street_2": "Suite 680", "city": "Archie", "state": "LA", "zip": "71343", "country": "USA", "mailing_address": true, "filing_address": false, "created_at": "2025-05-16T09:41:49.000-07:00", "updated_at": "2025-05-16T09:41:49.000-07:00", "active": true} + application/json: {"uuid": "c979ab0c-3664-464f-bd52-bdbb37d35d92", "version": "c706c1ed27a84346ab92bd7bebd2e1f4", "company_uuid": "fbd42c3b-38bf-4b6f-982a-c6a107d770fb", "phone_number": "3243915644", "street_1": "64556 Thompson Springs", "street_2": "Suite 956", "city": "Denver", "state": "CO", "zip": "80024", "country": "USA", "mailing_address": true, "filing_address": false, "created_at": "2025-05-26T15:08:27.000-07:00", "updated_at": "2025-05-26T15:08:27.000-07:00", "active": true} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} put-v1-locations-location_id: @@ -3181,7 +3187,7 @@ examples: header: X-Gusto-API-Version: "2024-04-01" requestBody: - application/json: {"version": "14302448d61342a1a25072fcb59df0b3", "phone_number": "8009360383", "street_1": "300 3rd Street", "street_2": "Apartment 318", "city": "San Francisco", "zip": "94107", "filing_address": true} + application/json: {"version": "756aee0bdbf26def096673bb7f9a7b97", "phone_number": "8009360383", "street_1": "300 3rd Street", "street_2": "Apartment 318", "city": "San Francisco", "zip": "94107", "filing_address": true} responses: "200": application/json: {"uuid": "ced517c9-1c22-4468-88f7-bea752987d03", "country": "USA"} @@ -3197,7 +3203,7 @@ examples: application/json: {"version": ""} responses: "200": - application/json: {"uuid": "6982ef7e-a318-4a40-b0b6-1d95c52c8263", "version": "226dc9377faecceeb3ec7f6cef066f40", "company_uuid": "07c1ab76-8e02-40a9-9cec-cfe3b8b20b6b", "phone_number": "8009360383", "street_1": "300 3rd Street", "street_2": "Apartment 318", "city": "San Francisco", "state": "MD", "zip": "94107", "country": "USA", "mailing_address": true, "filing_address": true, "created_at": "2025-05-16T09:41:51.000-07:00", "updated_at": "2025-05-16T09:41:51.000-07:00", "active": true} + application/json: {"uuid": "71739fbf-670e-4040-b6e8-8ee36fc4f89a", "version": "41ebe90f35f0a25ef35538289afbbd2e", "company_uuid": "cc588d80-a878-4970-b454-bdde1fea01ec", "phone_number": "8009360383", "street_1": "300 3rd Street", "street_2": "Apartment 318", "city": "San Francisco", "state": "VT", "zip": "94107", "country": "USA", "mailing_address": true, "filing_address": true, "created_at": "2025-05-26T15:08:30.000-07:00", "updated_at": "2025-05-26T15:08:31.000-07:00", "active": true} "404": application/json: {"errors": [{"error_key": "state", "category": "invalid_attribute_value", "message": "State is in the wrong format"}]} get-v1-locations-location_uuid-minimum_wages: @@ -3224,7 +3230,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: [{"uuid": "ae7ee6b1-1c17-4d4f-a9c5-c5d588d8882d", "wage": "15.0", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "City", "notes": "large companies"}, {"uuid": "4f9e53f1-89ba-43e1-a5af-d5ada47c814f", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "City", "notes": "large companies"}, {"uuid": "4633fce7-f1df-4938-bd67-642ee10174c7", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "State", "notes": "large companies"}, {"uuid": "4db78a28-1561-4fe7-8daf-627abd7e437d", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "Federal", "notes": "large companies"}] + application/json: [{"uuid": "dcb964c8-052b-4a0c-b77a-6060987c4f2c", "wage": "15.0", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "City", "notes": "large companies"}, {"uuid": "24d67955-70b6-4865-8486-cc295fcba448", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "City", "notes": "large companies"}, {"uuid": "295cf6dd-9297-49c5-a14c-628210f66cfa", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "State", "notes": "large companies"}, {"uuid": "31f9216b-14e9-4d80-a375-9631a1100b00", "wage": "10.5", "wage_type": "Regular", "effective_date": "2017-01-01", "authority": "Federal", "notes": "large companies"}] "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} post-v1-companies-company_id-bank-accounts: @@ -3912,7 +3918,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: [{"uuid": "de2e7947-7ecc-44a5-bec0-1a5510c59c6e", "first_name": "Boaty", "middle_initial": null, "last_name": "Stracke", "email": "kenisha_kozey@marks.info", "company_uuid": "0bf81e9e-d92b-49f2-ac0a-2c4a5b870a58", "manager_uuid": null, "version": "88eee0db8ad79bda9eb546418ca98e90", "department": null, "terminated": false, "two_percent_shareholder": false, "onboarded": true, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "b5bee54d-2fe8-4552-bb99-fd1584e39622", "version": "e9e474cc8e549f1799c0a88fe1e08948", "employee_uuid": "de2e7947-7ecc-44a5-bec0-1a5510c59c6e", "hire_date": "2024-05-16", "title": "", "primary": true, "rate": "80000.00", "payment_unit": "Year", "current_compensation_uuid": "5bf6f514-cb90-4a18-a9ab-a2175d97eea5", "two_percent_shareholder": false, "state_wc_covered": null, "state_wc_class_code": null, "compensations": [{"uuid": "5bf6f514-cb90-4a18-a9ab-a2175d97eea5", "version": "901df6d3e289216ac2e9aac8ea8f0973", "job_uuid": "b5bee54d-2fe8-4552-bb99-fd1584e39622", "employee_uuid": "de2e7947-7ecc-44a5-bec0-1a5510c59c6e", "rate": "80000.00", "payment_unit": "Year", "flsa_status": "Exempt", "effective_date": "2025-05-16", "adjust_for_minimum_wage": false, "minimum_wages": []}]}], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": "2005-05-16", "has_ssn": true, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Direct Deposit", "work_email": null, "current_employment_status": "full_time", "historical": false, "employee_code": "76ee96", "department_uuid": null}, {"uuid": "33b06016-1ed9-4c64-8fc4-5863e1a8c18f", "first_name": "Kari", "middle_initial": null, "last_name": "Ward", "email": "thelma_rath@schuster.co.uk", "company_uuid": "0bf81e9e-d92b-49f2-ac0a-2c4a5b870a58", "manager_uuid": null, "version": "62a52bbf56d4619ac2f45755bb832e5d", "department": null, "terminated": false, "two_percent_shareholder": false, "onboarded": true, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "5465f758-21aa-4748-8c39-437d21a02295", "version": "e9e474cc8e549f1799c0a88fe1e08948", "employee_uuid": "33b06016-1ed9-4c64-8fc4-5863e1a8c18f", "hire_date": "2024-05-16", "title": "", "primary": true, "rate": "80000.00", "payment_unit": "Year", "current_compensation_uuid": "e1f91158-9f89-4824-8103-9303faa2316e", "two_percent_shareholder": false, "state_wc_covered": null, "state_wc_class_code": null, "compensations": [{"uuid": "e1f91158-9f89-4824-8103-9303faa2316e", "version": "901df6d3e289216ac2e9aac8ea8f0973", "job_uuid": "5465f758-21aa-4748-8c39-437d21a02295", "employee_uuid": "33b06016-1ed9-4c64-8fc4-5863e1a8c18f", "rate": "80000.00", "payment_unit": "Year", "flsa_status": "Exempt", "effective_date": "2025-05-16", "adjust_for_minimum_wage": false, "minimum_wages": []}]}], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": "2005-05-16", "has_ssn": true, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Direct Deposit", "work_email": null, "current_employment_status": "full_time", "historical": false, "employee_code": "19f85c", "department_uuid": null}] + application/json: [{"uuid": "fffef268-ac17-4957-ba45-151a5b94ff6c", "first_name": "Boaty", "middle_initial": null, "last_name": "Fadel", "email": "roni.osinski@ernser.info", "company_uuid": "0d1f3486-8084-4792-aada-2a24b3849227", "manager_uuid": null, "version": "2fcf3c1cb920262a7f1aae5152ece734", "department": null, "terminated": false, "two_percent_shareholder": false, "onboarded": true, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "81e381a8-92f4-4c26-a581-a146dca48f3b", "version": "1229f1ec34fceee62b41e96848d516a8", "employee_uuid": "fffef268-ac17-4957-ba45-151a5b94ff6c", "hire_date": "2024-05-26", "title": "", "primary": true, "rate": "80000.00", "payment_unit": "Year", "current_compensation_uuid": "a7d89a5a-35a2-4122-ba41-d05766d1fc88", "two_percent_shareholder": false, "state_wc_covered": null, "state_wc_class_code": null, "compensations": [{"uuid": "a7d89a5a-35a2-4122-ba41-d05766d1fc88", "version": "926b8f058ad4106d6ef95989a146f92e", "job_uuid": "81e381a8-92f4-4c26-a581-a146dca48f3b", "employee_uuid": "fffef268-ac17-4957-ba45-151a5b94ff6c", "rate": "80000.00", "payment_unit": "Year", "flsa_status": "Exempt", "effective_date": "2025-05-26", "adjust_for_minimum_wage": false, "minimum_wages": []}]}], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": "2005-05-26", "has_ssn": true, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Direct Deposit", "work_email": null, "current_employment_status": "full_time", "historical": false, "employee_code": "d389ff", "department_uuid": null}, {"uuid": "4820e71e-c504-4041-8b41-191899c96751", "first_name": "Ulrike", "middle_initial": null, "last_name": "Hansen", "email": "annmarie_oga@aufderhar.com", "company_uuid": "0d1f3486-8084-4792-aada-2a24b3849227", "manager_uuid": null, "version": "c326c63691a709e384175b04cfa28aa4", "department": null, "terminated": false, "two_percent_shareholder": false, "onboarded": true, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "c7ef80b7-f547-4ae6-8d33-4faff24e9430", "version": "1229f1ec34fceee62b41e96848d516a8", "employee_uuid": "4820e71e-c504-4041-8b41-191899c96751", "hire_date": "2024-05-26", "title": "", "primary": true, "rate": "80000.00", "payment_unit": "Year", "current_compensation_uuid": "e493e465-e1c5-4bef-8e69-3bad20e6ebc5", "two_percent_shareholder": false, "state_wc_covered": null, "state_wc_class_code": null, "compensations": [{"uuid": "e493e465-e1c5-4bef-8e69-3bad20e6ebc5", "version": "926b8f058ad4106d6ef95989a146f92e", "job_uuid": "c7ef80b7-f547-4ae6-8d33-4faff24e9430", "employee_uuid": "4820e71e-c504-4041-8b41-191899c96751", "rate": "80000.00", "payment_unit": "Year", "flsa_status": "Exempt", "effective_date": "2025-05-26", "adjust_for_minimum_wage": false, "minimum_wages": []}]}], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": "2005-05-26", "has_ssn": true, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Direct Deposit", "work_email": null, "current_employment_status": "full_time", "historical": false, "employee_code": "3f9cc0", "department_uuid": null}] "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} post-v1-employees: @@ -3937,7 +3943,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "201": - application/json: {"uuid": "461ec6e0-9e5b-4582-a13f-5498479bdc0f", "first_name": "Karl", "middle_initial": null, "last_name": "The Fog", "email": null, "company_uuid": "1b5bc024-aac4-4bcc-8aa7-36a935750c32", "manager_uuid": null, "version": "5211ee9bb08e51634431a18eff0afc64", "department": null, "terminated": false, "two_percent_shareholder": null, "onboarded": false, "onboarding_status": "admin_onboarding_incomplete", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": null, "has_ssn": false, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Check", "work_email": null, "current_employment_status": null, "historical": false, "employee_code": "b93a2f", "department_uuid": null} + application/json: {"uuid": "90ee8908-4f38-4a09-9657-de7bc36314c6", "first_name": "Karl", "middle_initial": null, "last_name": "The Fog", "email": null, "company_uuid": "5fef604c-3b7e-44b9-a116-2a3572176dad", "manager_uuid": null, "version": "5211ee9bb08e51634431a18eff0afc64", "department": null, "terminated": false, "two_percent_shareholder": null, "onboarded": false, "onboarding_status": "admin_onboarding_incomplete", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [], "eligible_paid_time_off": [], "terminations": [], "garnishments": [], "date_of_birth": null, "has_ssn": false, "ssn": "", "phone": null, "preferred_first_name": null, "payment_method": "Check", "work_email": null, "current_employment_status": null, "historical": false, "employee_code": "60100000", "department_uuid": null} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} post-v1-historical_employees: @@ -4007,14 +4013,14 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: {"uuid": "d59f0776-107e-4c43-a148-564a14c8cdbf", "first_name": "Kurtis", "middle_initial": null, "last_name": "McKenzie", "email": "jonie@oconner.com", "company_uuid": "cc82c11f-d4ba-4f55-aace-2fb7b1fefa1f", "version": "2929199b9321e6eb9e84c673667971bd", "department": "Renaissance 1", "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "ea980264-f301-4ac2-bbed-169be7b96457", "employee_uuid": "d59f0776-107e-4c43-a148-564a14c8cdbf", "hire_date": "2024-05-16", "title": "Engineer", "primary": true, "two_percent_shareholder": false, "location_uuid": "3ee20a56-8931-47f4-94c7-e637dda8cf74", "location": {"uuid": "3ee20a56-8931-47f4-94c7-e637dda8cf74", "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "inactive": false}}], "date_of_birth": "2005-05-16", "has_ssn": true, "preferred_first_name": null, "payment_method": "Check", "employee_code": "ca217a", "department_uuid": "a52c025f-acb3-43ac-b342-31cfdcac636f", "title": "Engineer", "hired_at": "2024-05-16", "hidden_ssn": "", "flsa_status": "Exempt", "applicable_tax_ids": [3, 7, 6, 2, 1, 4, 5, 109, 107, 108, 106]} + application/json: {"uuid": "12ed8290-72d5-4602-811c-2b5d8155c365", "first_name": "Garnet", "middle_initial": null, "last_name": "Flatley", "email": "hilda_gutmann@jakubowski.com", "company_uuid": "33c44cd8-f730-493d-a072-7d283306694f", "version": "fa86fadae65de9d5eb244d0b2d94f645", "department": "Civil War 1", "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "4fbe4e5a-f9f4-4aa2-ac91-4f3be6555a22", "employee_uuid": "12ed8290-72d5-4602-811c-2b5d8155c365", "hire_date": "2024-05-26", "title": "Engineer", "primary": true, "two_percent_shareholder": false, "location_uuid": "87214194-bf78-425c-bfa3-f3d5b01c3a8c", "location": {"uuid": "87214194-bf78-425c-bfa3-f3d5b01c3a8c", "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "inactive": false}}], "date_of_birth": "2005-05-26", "has_ssn": true, "preferred_first_name": null, "payment_method": "Check", "employee_code": "f3ef5c", "department_uuid": "389b09b2-30b9-43b0-8e95-b32fc8b50cb3", "title": "Engineer", "hired_at": "2024-05-26", "hidden_ssn": "", "flsa_status": "Exempt", "applicable_tax_ids": [3, 7, 6, 2, 1, 4, 5, 109, 107, 108, 106]} put-v1-employees: request_example_1: parameters: path: employee_id: "" requestBody: - application/json: {"version": "9294130ed6ff0c1735ef7b4148c1f320", "first_name": "Weezy", "middle_initial": "F", "last_name": "Baby", "email": "tunechi@cashmoneyrecords.com", "date_of_birth": "1991-01-31", "ssn": "824920233"} + application/json: {"version": "6da9085f86ecc01e0000a5655c2dfdba", "first_name": "Weezy", "middle_initial": "F", "last_name": "Baby", "email": "tunechi@cashmoneyrecords.com", "date_of_birth": "1991-01-31", "ssn": "824920233"} responses: "200": application/json: {"uuid": "2953c680-3178-4466-8441-8947dce42145", "first_name": "Pearl", "last_name": "Volkman", "eligible_paid_time_off": [{"accrual_unit": "Hour", "accrual_method": "unlimited", "accrual_period": "Year"}], "payment_method": "Check"} @@ -4028,7 +4034,7 @@ examples: application/json: {"version": ""} responses: "200": - application/json: {"uuid": "5612ac40-0609-4138-a77a-d320a8bdb619", "first_name": "Weezy", "middle_initial": "F", "last_name": "Baby", "email": "tunechi@cashmoneyrecords.com", "company_uuid": "7ef5be90-60c9-4a3c-817c-2d96bbf2dc42", "version": "4eff5441d8f8ecc08f53a88ded36f13e", "department": null, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "62a9d759-aba8-4107-b170-f29ecf10a9b5", "employee_uuid": "5612ac40-0609-4138-a77a-d320a8bdb619", "hire_date": "2024-05-16", "title": "", "primary": true, "two_percent_shareholder": false, "location_uuid": "368609b9-cab0-440c-ae3d-690b3d7fbaba", "location": {"uuid": "368609b9-cab0-440c-ae3d-690b3d7fbaba", "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "inactive": false}}], "date_of_birth": "1991-01-31", "has_ssn": true, "preferred_first_name": null, "payment_method": "Check", "employee_code": "f62dc1", "department_uuid": null, "title": "", "hired_at": "2024-05-16", "hidden_ssn": "", "flsa_status": "Exempt", "applicable_tax_ids": [3, 7, 6, 2, 1, 4, 5, 109, 107, 108, 106]} + application/json: {"uuid": "9423c23d-19f9-455f-976d-5cb4c1f9e2a0", "first_name": "Weezy", "middle_initial": "F", "last_name": "Baby", "email": "tunechi@cashmoneyrecords.com", "company_uuid": "a5dfb9ef-07cf-4923-9c4e-3b5e9cee33be", "version": "4eff5441d8f8ecc08f53a88ded36f13e", "department": null, "onboarding_status": "onboarding_completed", "onboarding_documents_config": {"uuid": null, "i9_document": false}, "jobs": [{"uuid": "ed0d6c9e-bf34-4a5d-8937-1632c17b88af", "employee_uuid": "9423c23d-19f9-455f-976d-5cb4c1f9e2a0", "hire_date": "2024-05-26", "title": "", "primary": true, "two_percent_shareholder": false, "location_uuid": "e7a5683e-2858-4160-b61a-1d9a1c68b2dd", "location": {"uuid": "e7a5683e-2858-4160-b61a-1d9a1c68b2dd", "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "inactive": false}}], "date_of_birth": "1991-01-31", "has_ssn": true, "preferred_first_name": null, "payment_method": "Check", "employee_code": "d3738d", "department_uuid": null, "title": "", "hired_at": "2024-05-26", "hidden_ssn": "", "flsa_status": "Exempt", "applicable_tax_ids": [3, 7, 6, 2, 1, 4, 5, 109, 107, 108, 106]} "404": application/json: {"errors": [{"error_key": "base", "category": "invalid_resource_version", "message": "You are attempting to update a resource using an out-of-date version."}]} delete-v1-employee: @@ -4069,7 +4075,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: {"uuid": "a2675884-9d15-447e-95db-394db473512d", "onboarding_status": "onboarding_completed", "onboarding_steps": [{"title": "Personal details", "id": "personal_details", "required": true, "completed": true, "requirements": []}, {"title": "Enter compensation details", "id": "compensation_details", "required": true, "completed": true, "requirements": []}, {"title": "Add work address", "id": "add_work_address", "required": true, "completed": true, "requirements": []}, {"title": "Add home address", "id": "add_home_address", "required": true, "completed": true, "requirements": []}, {"title": "Enter federal tax withholdings", "id": "federal_tax_setup", "required": true, "completed": true, "requirements": []}, {"title": "Enter state tax information", "id": "state_tax_setup", "required": true, "completed": false, "requirements": ["add_work_address", "add_home_address"]}, {"title": "Direct deposit setup", "id": "direct_deposit_setup", "required": false, "completed": true, "requirements": []}, {"title": "Employee form signing", "id": "employee_form_signing", "required": true, "completed": false, "requirements": ["federal_tax_setup", "state_tax_setup"]}, {"title": "File new hire report", "id": "file_new_hire_report", "required": true, "completed": false, "requirements": ["add_work_address"]}]} + application/json: {"uuid": "7dc59103-8e04-43c3-ae3e-9a279b0c381a", "onboarding_status": "onboarding_completed", "onboarding_steps": [{"title": "Personal details", "id": "personal_details", "required": true, "completed": true, "requirements": []}, {"title": "Enter compensation details", "id": "compensation_details", "required": true, "completed": true, "requirements": []}, {"title": "Add work address", "id": "add_work_address", "required": true, "completed": true, "requirements": []}, {"title": "Add home address", "id": "add_home_address", "required": true, "completed": true, "requirements": []}, {"title": "Enter federal tax withholdings", "id": "federal_tax_setup", "required": true, "completed": true, "requirements": []}, {"title": "Enter state tax information", "id": "state_tax_setup", "required": true, "completed": false, "requirements": ["add_work_address", "add_home_address"]}, {"title": "Direct deposit setup", "id": "direct_deposit_setup", "required": false, "completed": true, "requirements": []}, {"title": "Employee form signing", "id": "employee_form_signing", "required": true, "completed": false, "requirements": ["federal_tax_setup", "state_tax_setup"]}, {"title": "File new hire report", "id": "file_new_hire_report", "required": true, "completed": false, "requirements": ["add_work_address"]}]} put-v1-employees-employee_id-onboarding_status: request_example_1: parameters: @@ -4094,7 +4100,7 @@ examples: application/json: {"onboarding_status": "self_onboarding_invited"} responses: "200": - application/json: {"uuid": "ea6f3457-7eb4-4a11-beea-2e6b67808f96", "onboarding_status": "admin_onboarding_incomplete", "onboarding_steps": [{"title": "Personal details", "id": "personal_details", "required": true, "completed": false, "requirements": []}, {"title": "Enter compensation details", "id": "compensation_details", "required": true, "completed": true, "requirements": []}, {"title": "Add work address", "id": "add_work_address", "required": true, "completed": false, "requirements": []}, {"title": "Add home address", "id": "add_home_address", "required": true, "completed": false, "requirements": []}, {"title": "Enter federal tax withholdings", "id": "federal_tax_setup", "required": true, "completed": false, "requirements": []}, {"title": "Enter state tax information", "id": "state_tax_setup", "required": true, "completed": false, "requirements": ["add_work_address", "add_home_address"]}, {"title": "Direct deposit setup", "id": "direct_deposit_setup", "required": false, "completed": false, "requirements": []}, {"title": "Employee form signing", "id": "employee_form_signing", "required": true, "completed": false, "requirements": ["federal_tax_setup", "state_tax_setup"]}, {"title": "File new hire report", "id": "file_new_hire_report", "required": true, "completed": false, "requirements": ["add_work_address"]}]} + application/json: {"uuid": "f494f6c5-c791-4dce-9bab-773a2434a253", "onboarding_status": "admin_onboarding_incomplete", "onboarding_steps": [{"title": "Personal details", "id": "personal_details", "required": true, "completed": false, "requirements": []}, {"title": "Enter compensation details", "id": "compensation_details", "required": true, "completed": true, "requirements": []}, {"title": "Add work address", "id": "add_work_address", "required": true, "completed": false, "requirements": []}, {"title": "Add home address", "id": "add_home_address", "required": true, "completed": false, "requirements": []}, {"title": "Enter federal tax withholdings", "id": "federal_tax_setup", "required": true, "completed": false, "requirements": []}, {"title": "Enter state tax information", "id": "state_tax_setup", "required": true, "completed": false, "requirements": ["add_work_address", "add_home_address"]}, {"title": "Direct deposit setup", "id": "direct_deposit_setup", "required": false, "completed": false, "requirements": []}, {"title": "Employee form signing", "id": "employee_form_signing", "required": true, "completed": false, "requirements": ["federal_tax_setup", "state_tax_setup"]}, {"title": "File new hire report", "id": "file_new_hire_report", "required": true, "completed": false, "requirements": ["add_work_address"]}]} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} get-version-employees-time_off_activities: @@ -4527,7 +4533,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: [{"hire_date": "2015-05-16", "termination_date": "2025-04-16", "file_new_hire_report": false, "two_percent_shareholder": false, "employment_status": "full_time"}] + application/json: [{"hire_date": "2015-05-26", "termination_date": "2025-04-26", "file_new_hire_report": false, "two_percent_shareholder": false, "employment_status": "full_time"}] "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} get-v1-employees-employee_id-home_addresses: @@ -4540,6 +4546,17 @@ examples: responses: "200": application/json: [{"street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA", "active": false, "uuid": "56260b3d-c375-415c-b77a-75d99f717193", "employee_uuid": "7087a288-8349-4632-b92e-bc94fb79f29e", "effective_date": "2021-01-01", "courtesy_withholding": true}, {"street_1": "100 5th Ave", "street_2": "Suite 555", "city": "New York", "state": "NY", "zip": "10001", "country": "USA", "active": true, "uuid": "d9f74049-8769-4fba-8e0f-eceef2da4e6b", "employee_uuid": "7087a288-8349-4632-b92e-bc94fb79f29e", "effective_date": "2022-03-03", "courtesy_withholding": true}] + test_example: + parameters: + path: + employee_id: "" + header: + X-Gusto-API-Version: "2024-04-01" + responses: + "200": + application/json: [{"uuid": "405b7c6f-a874-427c-84dc-a7beaf8a5908", "employee_uuid": "ca060f65-d41c-484b-92af-25af650ccf3f", "effective_date": "2024-05-26", "courtesy_withholding": false, "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "active": false, "version": "1c4450baec9dfa3838d4f75710785ed1"}, {"uuid": "df3cffc0-eb5e-4a0d-847b-b6c8d62f1cea", "employee_uuid": "ca060f65-d41c-484b-92af-25af650ccf3f", "effective_date": "2025-05-12", "courtesy_withholding": false, "street_1": "3624 Victoria Ln", "street_2": "", "city": "Cincinnati", "state": "OH", "zip": "45208", "country": "USA", "active": true, "version": "02ad1b65e7d2f030c99559b5bf94edd3"}, {"uuid": "8fd72d8e-d634-497e-b731-8b4814a31bea", "employee_uuid": "ca060f65-d41c-484b-92af-25af650ccf3f", "effective_date": "2025-06-26", "courtesy_withholding": false, "street_1": "Main st.", "street_2": "", "city": "New York", "state": "NY", "zip": "10011", "country": "USA", "active": false, "version": "d87cc64e22340337fe0ce108ca4b3eac"}] + "404": + application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} post-v1-employees-employee_id-home_addresses: Example: parameters: @@ -4585,6 +4602,32 @@ examples: responses: "422": application/json: {"errors": [{"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "72ae4617-daa9-4ed7-85e0-18ed5d0ee835"}, "errors": [{"error_key": "hours", "category": "invalid_attribute_value", "message": "Ella Fitzgerald is paid fixed wage and hours cannot be set on a contractor payment"}]}, {"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "2d7bf62c-babf-4a12-8292-340e2d9cab28"}, "errors": [{"error_key": "wage", "category": "invalid_attribute_value", "message": "Isaiah Berlin is paid hourly and wage cannot be set on a contractor payment"}]}]} + request_example_1: + parameters: + path: + employee_id: "" + header: + X-Gusto-API-Version: "2024-04-01" + requestBody: + application/json: {"street_1": "500 3rd Street", "city": "San Francisco", "state": "CA", "zip": "94107"} + responses: + "201": + application/json: {"uuid": "b552472e-2d5c-4e19-bf31-49aeeb888b6e", "country": "USA", "version": ""} + "404": + application/json: {"errors": [{"error_key": "", "category": ""}, {"error_key": "", "category": ""}]} + test_example: + parameters: + path: + employee_id: "" + header: + X-Gusto-API-Version: "2024-04-01" + requestBody: + application/json: {"street_1": "300 3rd Street", "city": "San Francisco", "state": "CA", "zip": "94107", "effective_date": "2022-01-31"} + responses: + "201": + application/json: {"uuid": "38c40128-5fa5-42dc-b871-05eacdcf6712", "employee_uuid": "16360798-66b0-4dd6-bdf2-9688e4e3980c", "effective_date": "2025-03-26", "courtesy_withholding": false, "street_1": "500 3rd Street", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "active": true, "version": "80dbf9c4c6d5d8f7d4c282e336856b87"} + "404": + application/json: {"errors": [{"error_key": "street_1", "category": "invalid_attribute_value", "message": "Must include a street address"}]} get-v1-home_addresses-home_address_uuid: Example: parameters: @@ -4595,6 +4638,17 @@ examples: responses: "200": application/json: {"street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA", "active": false, "uuid": "56260b3d-c375-415c-b77a-75d99f717193", "effective_date": "2021-01-01", "courtesy_withholding": true} + test_example: + parameters: + path: + home_address_uuid: "" + header: + X-Gusto-API-Version: "2024-04-01" + responses: + "200": + application/json: {"uuid": "33fb0dfd-0003-430c-970e-b70ff9047bc0", "employee_uuid": "c77cc8aa-2817-488a-a1fb-e6331f832d85", "effective_date": "1970-01-01", "courtesy_withholding": false, "street_1": "3121 Milky Way", "street_2": "", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA", "active": true, "version": "6c3c23e4cc840bd3f1416f72b5380eff"} + "404": + application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} put-v1-home_addresses-home_address_uuid: Example: parameters: @@ -4640,6 +4694,32 @@ examples: responses: "422": application/json: {"errors": [{"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "72ae4617-daa9-4ed7-85e0-18ed5d0ee835"}, "errors": [{"error_key": "hours", "category": "invalid_attribute_value", "message": "Ella Fitzgerald is paid fixed wage and hours cannot be set on a contractor payment"}]}, {"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "2d7bf62c-babf-4a12-8292-340e2d9cab28"}, "errors": [{"error_key": "wage", "category": "invalid_attribute_value", "message": "Isaiah Berlin is paid hourly and wage cannot be set on a contractor payment"}]}]} + request_example_1: + parameters: + path: + home_address_uuid: "" + header: + X-Gusto-API-Version: "2024-04-01" + requestBody: + application/json: {"version": "6c3c23e4cc840bd3f1416f72b5380eff", "street_1": "600 4th Street", "city": "Miami", "state": "FL", "zip": "33173"} + responses: + "200": + application/json: {"uuid": "d9fd058f-e693-4c4a-905f-3b5654a55589", "country": "USA", "version": ""} + "404": + application/json: {"errors": [{"error_key": "", "category": ""}, {"error_key": "", "category": ""}, {"error_key": "", "category": ""}]} + test_example: + parameters: + path: + home_address_uuid: "" + header: + X-Gusto-API-Version: "2024-04-01" + requestBody: + application/json: {"version": ""} + responses: + "200": + application/json: {"uuid": "c40ad97d-7012-4f7c-ab8a-f14a344004a6", "employee_uuid": "552147a4-4070-4d73-9b2f-e02edd663a64", "effective_date": "1970-01-01", "courtesy_withholding": false, "street_1": "600 4th Street", "street_2": "", "city": "Miami", "state": "FL", "zip": "33173", "country": "USA", "active": true, "version": "92676c3c5a3c0f26911388a55633b31a"} + "404": + application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} delete-v1-home_addresses-home_address_uuid: Basic: parameters: @@ -4668,6 +4748,12 @@ examples: responses: "422": application/json: {"errors": [{"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "72ae4617-daa9-4ed7-85e0-18ed5d0ee835"}, "errors": [{"error_key": "hours", "category": "invalid_attribute_value", "message": "Ella Fitzgerald is paid fixed wage and hours cannot be set on a contractor payment"}]}, {"error_key": "contractor_payments", "category": "nested_errors", "metadata": {"contractor_uuid": "2d7bf62c-babf-4a12-8292-340e2d9cab28"}, "errors": [{"error_key": "wage", "category": "invalid_attribute_value", "message": "Isaiah Berlin is paid hourly and wage cannot be set on a contractor payment"}]}]} + speakeasy-default-delete-v1-home-addresses-home-address-uuid: + parameters: + path: + home_address_uuid: "" + header: + X-Gusto-API-Version: "2024-04-01" get-v1-employees-employee_id-work_addresses: test_example: parameters: @@ -4677,7 +4763,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: [{"uuid": "de083b69-1265-49d1-9148-0e45ad81584a", "effective_date": "2021-01-01", "active": false, "location_uuid": "ee498dcd-ad3f-421a-acaf-fccfba7a54b7", "employee_uuid": "db9bdb62-7a02-4dbf-9599-c68375f46117", "version": "2bf1afa0988905127810578fa8f7096f", "street_1": "91678 Farrell Meadow", "street_2": "Apt. 835", "city": "Phoenix", "state": "AZ", "zip": "85016", "country": "USA"}, {"uuid": "855b87c6-b049-4334-be6e-a5e8d53016fb", "effective_date": "2022-01-01", "active": false, "location_uuid": "69c0fcad-9d5a-4f21-ac59-d3a06c1566ed", "employee_uuid": "db9bdb62-7a02-4dbf-9599-c68375f46117", "version": "e4450ac4a8b4f362f315edc55c9ea784", "street_1": "800 Adolfo Gardens", "street_2": "Suite 419", "city": "Bremen", "state": "AL", "zip": "35033", "country": "USA"}, {"uuid": "ff95bce2-11e6-47a7-9635-fa0e3a768b31", "effective_date": "2023-01-01", "active": true, "location_uuid": "6294b652-92ca-474f-9e3e-7961205f728c", "employee_uuid": "db9bdb62-7a02-4dbf-9599-c68375f46117", "version": "dbb907f6fca92b01c14f3b367d4f0b25", "street_1": "2216 Icie Villages", "street_2": "Apt. 798", "city": "Big Delta", "state": "AK", "zip": "99737", "country": "USA"}] + application/json: [{"uuid": "2d29abd9-875c-4703-aaa4-c1d963d8dc57", "effective_date": "2021-01-01", "active": false, "location_uuid": "8aecc99c-fed1-48c0-a345-64ed6935377a", "employee_uuid": "800387a7-171b-4e0d-add2-61b0b1e11a03", "version": "3ad8599cd498f29e2515cedbd6c0bff5", "street_1": "91678 Farrell Meadow", "street_2": "Apt. 835", "city": "Phoenix", "state": "AZ", "zip": "85016", "country": "USA"}, {"uuid": "d1e003ec-2615-4432-adb2-16efeb5c1567", "effective_date": "2022-01-01", "active": false, "location_uuid": "a9e975f9-82d6-49a9-a053-3893f9a5f549", "employee_uuid": "800387a7-171b-4e0d-add2-61b0b1e11a03", "version": "7e781fe24aa40c64e6d9902260695501", "street_1": "800 Adolfo Gardens", "street_2": "Suite 419", "city": "Bremen", "state": "AL", "zip": "35033", "country": "USA"}, {"uuid": "aeb37390-194c-47c2-aa03-61dda3086b07", "effective_date": "2023-01-01", "active": true, "location_uuid": "e3cd52ca-15fe-4f26-bf56-67f338640cec", "employee_uuid": "800387a7-171b-4e0d-add2-61b0b1e11a03", "version": "5c3f417bdbe5940d0a99def2689ac2b4", "street_1": "2216 Icie Villages", "street_2": "Apt. 798", "city": "Big Delta", "state": "AK", "zip": "99737", "country": "USA"}] "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} post-v1-employees-employee_id-work_addresses: @@ -4688,7 +4774,7 @@ examples: header: X-Gusto-API-Version: "2024-04-01" requestBody: - application/json: {"location_uuid": "f3ce2f31-cba6-4f18-b66b-291de5d52ca2", "effective_date": "2020-01-31"} + application/json: {"location_uuid": "4484345c-ddb7-4d68-ae92-f3e8b931cb63", "effective_date": "2020-01-31"} responses: "201": application/json: {"uuid": "e02ec014-1e6b-41a8-ba57-7e102baa2d06", "version": "", "country": "USA"} @@ -4704,7 +4790,7 @@ examples: application/json: {"location_uuid": "6a119be7-b4b0-4e27-aaa0-89d5f2524635", "effective_date": "2023-05-15"} responses: "201": - application/json: {"uuid": "ec995b22-ef41-47eb-b601-fa7ec7b60a62", "effective_date": "2020-01-31", "active": true, "location_uuid": "f3ce2f31-cba6-4f18-b66b-291de5d52ca2", "employee_uuid": "ebdaa937-3574-472d-b383-a5c3c977496e", "version": "5a5318a71ec6f40cffa014e3ff504b8b", "street_1": "977 Marks Viaduct", "street_2": "Apt. 958", "city": "Pink Hill", "state": "NC", "zip": "28572", "country": "USA"} + application/json: {"uuid": "2398e86b-9ff8-4294-b370-ba650c7af041", "effective_date": "2020-01-31", "active": true, "location_uuid": "4484345c-ddb7-4d68-ae92-f3e8b931cb63", "employee_uuid": "acd127f2-c985-43ac-94f3-e439f6192a2e", "version": "a38dd0afeb9ce4e976078cba5e692e02", "street_1": "977 Marks Viaduct", "street_2": "Apt. 958", "city": "Pink Hill", "state": "NC", "zip": "28572", "country": "USA"} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} get-v1-work_addresses-work_address_uuid: @@ -4716,7 +4802,7 @@ examples: X-Gusto-API-Version: "2024-04-01" responses: "200": - application/json: {"uuid": "a0de01ec-a4ce-46bc-8f4a-56b04d885c87", "effective_date": "2023-01-01", "active": true, "location_uuid": "e08560ad-bfbd-4d07-b6e9-43867e7adffa", "employee_uuid": "b5d23454-3e50-4902-8c3f-90c7a07dfb26", "version": "774485f09e6e1d6021426262af246fa1", "street_1": "229 Virgil Mission", "street_2": "Apt. 360", "city": "Yatesville", "state": "GA", "zip": "31097", "country": "USA"} + application/json: {"uuid": "20b9d424-2b79-4026-997c-cf078c510a5c", "effective_date": "2023-01-01", "active": true, "location_uuid": "3359710d-4dfc-4e6a-8353-5b329351c80b", "employee_uuid": "3dac86a4-e126-4a78-9a92-3a0416b3c102", "version": "95c6e324b64b0bbc49945332f8ee65aa", "street_1": "229 Virgil Mission", "street_2": "Apt. 360", "city": "Yatesville", "state": "GA", "zip": "31097", "country": "USA"} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} put-v1-work_addresses-work_address_uuid: @@ -4727,7 +4813,7 @@ examples: header: X-Gusto-API-Version: "2024-04-01" requestBody: - application/json: {"version": "cd2e396aff8925367ff773e771e40488", "location_uuid": "333eb008-db81-4003-9e91-1ad257226518"} + application/json: {"version": "078763b58cf7cd508790581843078419", "location_uuid": "b02a39f8-086b-44e3-babf-35cf7f2ea173"} responses: "200": application/json: {"uuid": "27c58f85-7f90-4597-bc74-193b0a8d024d", "version": "", "country": "USA"} @@ -4743,7 +4829,7 @@ examples: application/json: {"version": "", "location_uuid": "6a119be7-b4b0-4e27-aaa0-89d5f2524635", "effective_date": "2023-05-15"} responses: "200": - application/json: {"uuid": "7e40de75-4345-41dc-a187-d8960e853298", "effective_date": "2022-01-01", "active": false, "location_uuid": "333eb008-db81-4003-9e91-1ad257226518", "employee_uuid": "020cb03f-2301-40f5-9d21-bf4a9ca21dd7", "version": "68f2fd4efda1e5ef8072071e49af35e7", "street_1": "5467 Ward Radial", "street_2": "Suite 251", "city": "Holualoa", "state": "HI", "zip": "96725", "country": "USA"} + application/json: {"uuid": "4b34572b-cc66-4ba1-ae89-82f8d187ebf0", "effective_date": "2022-01-01", "active": false, "location_uuid": "b02a39f8-086b-44e3-babf-35cf7f2ea173", "employee_uuid": "b8c70b1b-2fe3-4a34-8357-aabf146cfa31", "version": "518a97e30441eea5008c2e9e5725c4a1", "street_1": "5467 Ward Radial", "street_2": "Suite 251", "city": "Holualoa", "state": "HI", "zip": "96725", "country": "USA"} "404": application/json: {"errors": [{"error_key": "request", "category": "not_found", "message": "The requested resource was not found."}]} delete-v1-work_addresses-work_address_uuid: diff --git a/gusto_embedded/.speakeasy/gen.yaml b/gusto_embedded/.speakeasy/gen.yaml index ee9c88cf..22dc4820 100644 --- a/gusto_embedded/.speakeasy/gen.yaml +++ b/gusto_embedded/.speakeasy/gen.yaml @@ -7,6 +7,7 @@ generation: maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true @@ -19,7 +20,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true typescript: - version: 0.5.15 + version: 0.6.0 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/gusto_embedded/RELEASES.md b/gusto_embedded/RELEASES.md index afcde246..d216e106 100644 --- a/gusto_embedded/RELEASES.md +++ b/gusto_embedded/RELEASES.md @@ -238,4 +238,14 @@ Based on: ### Generated - [typescript v0.5.15] gusto_embedded ### Releases -- [NPM v0.5.15] https://www.npmjs.com/package/@gusto/embedded-api/v/0.5.15 - gusto_embedded \ No newline at end of file +- [NPM v0.5.15] https://www.npmjs.com/package/@gusto/embedded-api/v/0.5.15 - gusto_embedded + +## 2025-05-30 20:29:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.554.1 (2.616.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.6.0] gusto_embedded +### Releases +- [NPM v0.6.0] https://www.npmjs.com/package/@gusto/embedded-api/v/0.6.0 - gusto_embedded \ No newline at end of file diff --git a/gusto_embedded/docs/models/components/employeeaddress.md b/gusto_embedded/docs/models/components/employeeaddress.md index 34fab90b..3980883d 100644 --- a/gusto_embedded/docs/models/components/employeeaddress.md +++ b/gusto_embedded/docs/models/components/employeeaddress.md @@ -6,12 +6,8 @@ import { EmployeeAddress } from "@gusto/embedded-api/models/components/employeeaddress.js"; let value: EmployeeAddress = { - street1: "412 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, + uuid: "28f8f1f5-e4f3-423b-a903-d902bd2f36b2", + version: "", }; ``` @@ -19,7 +15,10 @@ let value: EmployeeAddress = { | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `version` | *string* | :heavy_minus_sign: | 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. | +| `uuid` | *string* | :heavy_check_mark: | The UUID of the employee address | +| `employeeUuid` | *string* | :heavy_minus_sign: | The UUID of the employee | +| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | The date the employee started living at the address. | +| `courtesyWithholding` | *boolean* | :heavy_minus_sign: | Determines if home taxes should be withheld and paid for employee. | | `street1` | *string* | :heavy_minus_sign: | N/A | | `street2` | *string* | :heavy_minus_sign: | N/A | | `city` | *string* | :heavy_minus_sign: | N/A | @@ -27,7 +26,4 @@ let value: EmployeeAddress = { | `zip` | *string* | :heavy_minus_sign: | N/A | | `country` | *string* | :heavy_minus_sign: | N/A | | `active` | *boolean* | :heavy_minus_sign: | The status of the location. Inactive locations have been deleted, but may still have historical data associated with them. | -| `uuid` | *string* | :heavy_minus_sign: | The UUID of the employee address | -| `employeeUuid` | *string* | :heavy_minus_sign: | The UUID of the employee | -| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | The date the employee started living at the address. | -| `courtesyWithholding` | *boolean* | :heavy_minus_sign: | Determines if home taxes should be withheld and paid for employee. | \ No newline at end of file +| `version` | *string* | :heavy_check_mark: | 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. | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidheaderxgustoapiversion.md b/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidheaderxgustoapiversion.md new file mode 100644 index 00000000..70a8a2ef --- /dev/null +++ b/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidheaderxgustoapiversion.md @@ -0,0 +1,18 @@ +# DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + +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. + +## Example Usage + +```typescript +import { DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion } from "@gusto/embedded-api/models/operations/deletev1homeaddresseshomeaddressuuid.js"; + +let value: DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + "2024-04-01"; +``` + +## Values + +```typescript +"2024-04-01" +``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidrequest.md b/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidrequest.md index 5c4e7b61..c8570a20 100644 --- a/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidrequest.md +++ b/gusto_embedded/docs/models/operations/deletev1homeaddresseshomeaddressuuidrequest.md @@ -14,5 +14,5 @@ let value: DeleteV1HomeAddressesHomeAddressUuidRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `homeAddressUuid` | *string* | :heavy_check_mark: | The UUID of the home address | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | \ No newline at end of file +| `xGustoAPIVersion` | [operations.DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion](../../models/operations/deletev1homeaddresseshomeaddressuuidheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | +| `homeAddressUuid` | *string* | :heavy_check_mark: | The UUID of the home address | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/filetype.md b/gusto_embedded/docs/models/operations/filetype.md index 288328ff..62ef36ac 100644 --- a/gusto_embedded/docs/models/operations/filetype.md +++ b/gusto_embedded/docs/models/operations/filetype.md @@ -7,11 +7,11 @@ The type of file to generate ```typescript import { FileType } from "@gusto/embedded-api/models/operations/postcompaniescompanyuuidreports.js"; -let value: FileType = "json"; +let value: FileType = "pdf"; ``` ## Values ```typescript -"csv" | "json" +"csv" | "json" | "pdf" ``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1companiescompanyidemployeesrequest.md b/gusto_embedded/docs/models/operations/getv1companiescompanyidemployeesrequest.md index 31527902..595d29fd 100644 --- a/gusto_embedded/docs/models/operations/getv1companiescompanyidemployeesrequest.md +++ b/gusto_embedded/docs/models/operations/getv1companiescompanyidemployeesrequest.md @@ -15,8 +15,9 @@ let value: GetV1CompaniesCompanyIdEmployeesRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `xGustoAPIVersion` | [operations.GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion](../../models/operations/getv1companiescompanyidemployeesheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | -| `companyId` | *string* | :heavy_check_mark: | The UUID of the company | | `searchTerm` | *string* | :heavy_minus_sign: | A string to search for in the object's names | +| `companyId` | *string* | :heavy_check_mark: | The UUID of the company | +| `uuids` | *string*[] | :heavy_minus_sign: | N/A | | `include` | [operations.Include](../../models/operations/include.md)[] | :heavy_minus_sign: | Include the requested attribute(s) in each employee response, multiple options are comma separated. Available options:
- all_compensations: Include all effective dated compensations for each job instead of only the current compensation
- custom_fields: Include employees' custom fields
| | `terminated` | *boolean* | :heavy_minus_sign: | Filters employees by the provided boolean | | `page` | *number* | :heavy_minus_sign: | The page that is requested. When unspecified, will load all objects unless endpoint forces pagination. | diff --git a/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md new file mode 100644 index 00000000..44464fa1 --- /dev/null +++ b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md @@ -0,0 +1,18 @@ +# GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + +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. + +## Example Usage + +```typescript +import { GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion } from "@gusto/embedded-api/models/operations/getv1employeesemployeeidhomeaddresses.js"; + +let value: GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = + "2024-04-01"; +``` + +## Values + +```typescript +"2024-04-01" +``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesrequest.md b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesrequest.md index 386f89a9..3ded1602 100644 --- a/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesrequest.md +++ b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesrequest.md @@ -15,4 +15,4 @@ let value: GetV1EmployeesEmployeeIdHomeAddressesRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `employeeId` | *string* | :heavy_check_mark: | The UUID of the employee | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | \ No newline at end of file +| `xGustoAPIVersion` | [operations.GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion](../../models/operations/getv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesresponse.md b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesresponse.md index 54bd3b34..86f3263e 100644 --- a/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesresponse.md +++ b/gusto_embedded/docs/models/operations/getv1employeesemployeeidhomeaddressesresponse.md @@ -4,7 +4,6 @@ ```typescript import { GetV1EmployeesEmployeeIdHomeAddressesResponse } from "@gusto/embedded-api/models/operations/getv1employeesemployeeidhomeaddresses.js"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; let value: GetV1EmployeesEmployeeIdHomeAddressesResponse = { httpMeta: { @@ -13,28 +12,6 @@ let value: GetV1EmployeesEmployeeIdHomeAddressesResponse = { }), request: new Request("https://example.com"), }, - employeeAddressList: [ - { - street1: "412 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, - }, - { - street1: "333 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, - uuid: "9557fe01-f8f8-4c14-a61c-ca6221a9f118", - employeeUuid: "da441196-43a9-4d23-ad5d-f37ce6bb99c0", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, - }, - ], }; ``` @@ -43,4 +20,4 @@ let value: GetV1EmployeesEmployeeIdHomeAddressesResponse = { | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `employeeAddressList` | [components.EmployeeAddress](../../models/components/employeeaddress.md)[] | :heavy_minus_sign: | List of employee addresses | \ No newline at end of file +| `employeeAddressList` | [components.EmployeeAddress](../../models/components/employeeaddress.md)[] | :heavy_minus_sign: | successful | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md new file mode 100644 index 00000000..2487d235 --- /dev/null +++ b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md @@ -0,0 +1,18 @@ +# GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + +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. + +## Example Usage + +```typescript +import { GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion } from "@gusto/embedded-api/models/operations/getv1homeaddresseshomeaddressuuid.js"; + +let value: GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + "2024-04-01"; +``` + +## Values + +```typescript +"2024-04-01" +``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidrequest.md b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidrequest.md index 5e2ecfa2..e66387d2 100644 --- a/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidrequest.md +++ b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidrequest.md @@ -15,4 +15,4 @@ let value: GetV1HomeAddressesHomeAddressUuidRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `homeAddressUuid` | *string* | :heavy_check_mark: | The UUID of the home address | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | \ No newline at end of file +| `xGustoAPIVersion` | [operations.GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion](../../models/operations/getv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidresponse.md b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidresponse.md index 7aaf19d7..0c714271 100644 --- a/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidresponse.md +++ b/gusto_embedded/docs/models/operations/getv1homeaddresseshomeaddressuuidresponse.md @@ -12,20 +12,12 @@ let value: GetV1HomeAddressesHomeAddressUuidResponse = { }), request: new Request("https://example.com"), }, - employeeAddress: { - street1: "412 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, - }, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | | -| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | Example response | {
"street_1": "412 Kiera Stravenue",
"street_2": "Suite 391",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "USA",
"active": true
} | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | successful | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequest.md b/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequest.md index 6a735c38..da605293 100644 --- a/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequest.md +++ b/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequest.md @@ -15,7 +15,7 @@ let value: PostCompaniesCompanyUuidReportsRequest = { groupings: [ "payroll", ], - fileType: "json", + fileType: "pdf", startDate: new RFCDate("2024-01-01"), endDate: new RFCDate("2024-04-01"), dismissedStartDate: new RFCDate("2024-01-01"), diff --git a/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequestbody.md b/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequestbody.md index e7aee624..44540fb7 100644 --- a/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequestbody.md +++ b/gusto_embedded/docs/models/operations/postcompaniescompanyuuidreportsrequestbody.md @@ -13,7 +13,7 @@ let value: PostCompaniesCompanyUuidReportsRequestBody = { groupings: [ "employee", ], - fileType: "json", + fileType: "pdf", startDate: new RFCDate("2024-01-01"), endDate: new RFCDate("2024-04-01"), dismissedStartDate: new RFCDate("2024-01-01"), diff --git a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md new file mode 100644 index 00000000..8bc5d511 --- /dev/null +++ b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md @@ -0,0 +1,18 @@ +# PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + +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. + +## Example Usage + +```typescript +import { PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion } from "@gusto/embedded-api/models/operations/postv1employeesemployeeidhomeaddresses.js"; + +let value: PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = + "2024-04-01"; +``` + +## Values + +```typescript +"2024-04-01" +``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequest.md b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequest.md index f7259fb1..16acd6c1 100644 --- a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequest.md +++ b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequest.md @@ -4,10 +4,17 @@ ```typescript import { PostV1EmployeesEmployeeIdHomeAddressesRequest } from "@gusto/embedded-api/models/operations/postv1employeesemployeeidhomeaddresses.js"; +import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; let value: PostV1EmployeesEmployeeIdHomeAddressesRequest = { employeeId: "", - requestBody: {}, + requestBody: { + street1: "300 3rd Street", + city: "San Francisco", + state: "CA", + zip: "94107", + effectiveDate: new RFCDate("2022-01-31"), + }, }; ``` @@ -16,5 +23,5 @@ let value: PostV1EmployeesEmployeeIdHomeAddressesRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `employeeId` | *string* | :heavy_check_mark: | The UUID of the employee | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | +| `xGustoAPIVersion` | [operations.PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion](../../models/operations/postv1employeesemployeeidhomeaddressesheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | | `requestBody` | [operations.PostV1EmployeesEmployeeIdHomeAddressesRequestBody](../../models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md index 4cebdf9c..1a3aeed3 100644 --- a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md +++ b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesrequestbody.md @@ -4,18 +4,25 @@ ```typescript import { PostV1EmployeesEmployeeIdHomeAddressesRequestBody } from "@gusto/embedded-api/models/operations/postv1employeesemployeeidhomeaddresses.js"; +import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; -let value: PostV1EmployeesEmployeeIdHomeAddressesRequestBody = {}; +let value: PostV1EmployeesEmployeeIdHomeAddressesRequestBody = { + street1: "300 3rd Street", + city: "San Francisco", + state: "CA", + zip: "94107", + effectiveDate: new RFCDate("2022-01-31"), +}; ``` ## Fields -| Field | Type | Required | Description | -| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | -| `street1` | *string* | :heavy_minus_sign: | N/A | -| `street2` | *string* | :heavy_minus_sign: | N/A | -| `city` | *string* | :heavy_minus_sign: | N/A | -| `state` | *string* | :heavy_minus_sign: | N/A | -| `zip` | *string* | :heavy_minus_sign: | N/A | -| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | N/A | -| `courtesyWithholding` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `street1` | *string* | :heavy_minus_sign: | N/A | 300 3rd Street | +| `street2` | *string* | :heavy_minus_sign: | N/A | | +| `city` | *string* | :heavy_minus_sign: | N/A | San Francisco | +| `state` | *string* | :heavy_minus_sign: | N/A | CA | +| `zip` | *string* | :heavy_minus_sign: | N/A | 94107 | +| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-01-31 | +| `courtesyWithholding` | *boolean* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesresponse.md b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesresponse.md index 6cdbb8c6..7329e2ab 100644 --- a/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesresponse.md +++ b/gusto_embedded/docs/models/operations/postv1employeesemployeeidhomeaddressesresponse.md @@ -12,20 +12,12 @@ let value: PostV1EmployeesEmployeeIdHomeAddressesResponse = { }), request: new Request("https://example.com"), }, - employeeAddress: { - street1: "412 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, - }, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | | -| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | Example response | {
"street_1": "412 Kiera Stravenue",
"street_2": "Suite 391",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "USA",
"active": true
} | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | created | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequest.md b/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequest.md index 6dae52bd..36ced660 100644 --- a/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequest.md +++ b/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequest.md @@ -17,4 +17,5 @@ let value: PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest = { | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `companyId` | *string* | :heavy_check_mark: | The UUID of the company | | `payrollId` | *string* | :heavy_check_mark: | The UUID of the payroll | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | \ No newline at end of file +| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | +| `requestBody` | [operations.PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody](../../models/operations/putv1companiescompanyidpayrollspayrollidpreparerequestbody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequestbody.md b/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequestbody.md new file mode 100644 index 00000000..d6063aad --- /dev/null +++ b/gusto_embedded/docs/models/operations/putv1companiescompanyidpayrollspayrollidpreparerequestbody.md @@ -0,0 +1,15 @@ +# PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody + +## Example Usage + +```typescript +import { PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody } from "@gusto/embedded-api/models/operations/putv1companiescompanyidpayrollspayrollidprepare.js"; + +let value: PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `employeeUuids` | *string*[] | :heavy_minus_sign: | An array of employee UUIDs. If passed, only those employees payroll items will be prepared. | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md new file mode 100644 index 00000000..d46baf98 --- /dev/null +++ b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md @@ -0,0 +1,18 @@ +# PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + +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. + +## Example Usage + +```typescript +import { PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion } from "@gusto/embedded-api/models/operations/putv1homeaddresseshomeaddressuuid.js"; + +let value: PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + "2024-04-01"; +``` + +## Values + +```typescript +"2024-04-01" +``` \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequest.md b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequest.md index c6147467..72dd54af 100644 --- a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequest.md +++ b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequest.md @@ -17,6 +17,6 @@ let value: PutV1HomeAddressesHomeAddressUuidRequest = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `xGustoAPIVersion` | [operations.PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion](../../models/operations/putv1homeaddresseshomeaddressuuidheaderxgustoapiversion.md) | :heavy_minus_sign: | 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. | | `homeAddressUuid` | *string* | :heavy_check_mark: | The UUID of the home address | -| `xGustoAPIVersion` | [components.VersionHeader](../../models/components/versionheader.md) | :heavy_minus_sign: | 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. | | `requestBody` | [operations.PutV1HomeAddressesHomeAddressUuidRequestBody](../../models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md index af235879..126ea894 100644 --- a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md +++ b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidrequestbody.md @@ -12,13 +12,12 @@ let value: PutV1HomeAddressesHomeAddressUuidRequestBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `version` | *string* | :heavy_check_mark: | The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/versioning#object-layer) for information on how to use this field. | -| `street1` | *string* | :heavy_minus_sign: | N/A | -| `street2` | *string* | :heavy_minus_sign: | N/A | -| `city` | *string* | :heavy_minus_sign: | N/A | -| `state` | *string* | :heavy_minus_sign: | N/A | -| `zip` | *string* | :heavy_minus_sign: | N/A | -| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | N/A | -| `courtesyWithholding` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `version` | *string* | :heavy_check_mark: | 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. | +| `street1` | *string* | :heavy_minus_sign: | N/A | +| `street2` | *string* | :heavy_minus_sign: | N/A | +| `city` | *string* | :heavy_minus_sign: | N/A | +| `state` | *string* | :heavy_minus_sign: | N/A | +| `zip` | *string* | :heavy_minus_sign: | N/A | +| `effectiveDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidresponse.md b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidresponse.md index 7d0da316..2eb0a389 100644 --- a/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidresponse.md +++ b/gusto_embedded/docs/models/operations/putv1homeaddresseshomeaddressuuidresponse.md @@ -4,7 +4,6 @@ ```typescript import { PutV1HomeAddressesHomeAddressUuidResponse } from "@gusto/embedded-api/models/operations/putv1homeaddresseshomeaddressuuid.js"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; let value: PutV1HomeAddressesHomeAddressUuidResponse = { httpMeta: { @@ -13,24 +12,12 @@ let value: PutV1HomeAddressesHomeAddressUuidResponse = { }), request: new Request("https://example.com"), }, - employeeAddress: { - street1: "333 Kiera Stravenue", - street2: "Suite 391", - city: "San Francisco", - state: "CA", - zip: "94107", - active: true, - uuid: "9557fe01-f8f8-4c14-a61c-ca6221a9f118", - employeeUuid: "da441196-43a9-4d23-ad5d-f37ce6bb99c0", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, - }, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | | -| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | Example response | {
"street_1": "412 Kiera Stravenue",
"street_2": "Suite 391",
"city": "San Francisco",
"state": "CA",
"zip": "94107",
"country": "USA",
"active": true
} | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `employeeAddress` | [components.EmployeeAddress](../../models/components/employeeaddress.md) | :heavy_minus_sign: | successful | \ No newline at end of file diff --git a/gusto_embedded/docs/sdks/employeeaddresses/README.md b/gusto_embedded/docs/sdks/employeeaddresses/README.md index 4511fe18..b50ed5f2 100644 --- a/gusto_embedded/docs/sdks/employeeaddresses/README.md +++ b/gusto_embedded/docs/sdks/employeeaddresses/README.md @@ -24,6 +24,7 @@ Supports home address effective dating and courtesy withholding. scope: `employees:read` + ### Example Usage ```typescript @@ -120,9 +121,10 @@ import { ### Errors -| Error Type | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.APIError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.UnprocessableEntityErrorObject | 404 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | ## create @@ -132,11 +134,11 @@ Supports home address effective dating and courtesy withholding. scope: `employees:write` + ### Example Usage ```typescript import { GustoEmbedded } from "@gusto/embedded-api"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; const gustoEmbedded = new GustoEmbedded({ companyAccessAuth: process.env["GUSTOEMBEDDED_COMPANY_ACCESS_AUTH"] ?? "", @@ -146,13 +148,10 @@ async function run() { const result = await gustoEmbedded.employeeAddresses.create({ employeeId: "", requestBody: { - street1: "300 3rd Street", - street2: null, + street1: "500 3rd Street", city: "San Francisco", state: "CA", zip: "94107", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, }, }); @@ -170,7 +169,6 @@ The standalone function version of this method: ```typescript import { GustoEmbeddedCore } from "@gusto/embedded-api/core.js"; import { employeeAddressesCreate } from "@gusto/embedded-api/funcs/employeeAddressesCreate.js"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; // Use `GustoEmbeddedCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -182,13 +180,10 @@ async function run() { const res = await employeeAddressesCreate(gustoEmbedded, { employeeId: "", requestBody: { - street1: "300 3rd Street", - street2: null, + street1: "500 3rd Street", city: "San Francisco", state: "CA", zip: "94107", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, }, }); @@ -239,7 +234,7 @@ import { | Error Type | Status Code | Content Type | | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.UnprocessableEntityErrorObject | 422 | application/json | +| errors.UnprocessableEntityErrorObject | 404, 422 | application/json | | errors.APIError | 4XX, 5XX | \*/\* | ## retrieveHomeAddress @@ -250,6 +245,7 @@ Supports home address effective dating and courtesy withholding. scope: `employees:read` + ### Example Usage ```typescript @@ -346,9 +342,10 @@ import { ### Errors -| Error Type | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.APIError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.UnprocessableEntityErrorObject | 404 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | ## update @@ -358,11 +355,11 @@ Supports home address effective dating and courtesy withholding. scope: `employees:write` + ### Example Usage ```typescript import { GustoEmbedded } from "@gusto/embedded-api"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; const gustoEmbedded = new GustoEmbedded({ companyAccessAuth: process.env["GUSTOEMBEDDED_COMPANY_ACCESS_AUTH"] ?? "", @@ -372,14 +369,11 @@ async function run() { const result = await gustoEmbedded.employeeAddresses.update({ homeAddressUuid: "", requestBody: { - version: "fe75bd065ff48b91c35fe8ff842f986c", - street1: "300 3rd Street", - street2: null, - city: "San Francisco", - state: "CA", - zip: "94107", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, + version: "6c3c23e4cc840bd3f1416f72b5380eff", + street1: "600 4th Street", + city: "Miami", + state: "FL", + zip: "33173", }, }); @@ -397,7 +391,6 @@ The standalone function version of this method: ```typescript import { GustoEmbeddedCore } from "@gusto/embedded-api/core.js"; import { employeeAddressesUpdate } from "@gusto/embedded-api/funcs/employeeAddressesUpdate.js"; -import { RFCDate } from "@gusto/embedded-api/types/rfcdate.js"; // Use `GustoEmbeddedCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -409,14 +402,11 @@ async function run() { const res = await employeeAddressesUpdate(gustoEmbedded, { homeAddressUuid: "", requestBody: { - version: "fe75bd065ff48b91c35fe8ff842f986c", - street1: "300 3rd Street", - street2: null, - city: "San Francisco", - state: "CA", - zip: "94107", - effectiveDate: new RFCDate("2021-01-01"), - courtesyWithholding: true, + version: "6c3c23e4cc840bd3f1416f72b5380eff", + street1: "600 4th Street", + city: "Miami", + state: "FL", + zip: "33173", }, }); @@ -467,15 +457,16 @@ import { | Error Type | Status Code | Content Type | | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.UnprocessableEntityErrorObject | 422 | application/json | +| errors.UnprocessableEntityErrorObject | 404, 422 | application/json | | errors.APIError | 4XX, 5XX | \*/\* | ## delete -Used for deleting an employee's home address. Cannot delete the employee's active home address. +Used for deleting an employee's home address. Cannot delete the employee's active home address. scope: `employees:write` + ### Example Usage ```typescript @@ -561,10 +552,9 @@ import { ### Errors -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.UnprocessableEntityErrorObject | 422 | application/json | -| errors.APIError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | ## getWorkAddresses @@ -696,7 +686,7 @@ async function run() { const result = await gustoEmbedded.employeeAddresses.createWorkAddress({ employeeId: "", requestBody: { - locationUuid: "f3ce2f31-cba6-4f18-b66b-291de5d52ca2", + locationUuid: "4484345c-ddb7-4d68-ae92-f3e8b931cb63", effectiveDate: new RFCDate("2020-01-31"), }, }); @@ -727,7 +717,7 @@ async function run() { const res = await employeeAddressesCreateWorkAddress(gustoEmbedded, { employeeId: "", requestBody: { - locationUuid: "f3ce2f31-cba6-4f18-b66b-291de5d52ca2", + locationUuid: "4484345c-ddb7-4d68-ae92-f3e8b931cb63", effectiveDate: new RFCDate("2020-01-31"), }, }); @@ -910,8 +900,8 @@ async function run() { const result = await gustoEmbedded.employeeAddresses.updateWorkAddress({ workAddressUuid: "", requestBody: { - version: "cd2e396aff8925367ff773e771e40488", - locationUuid: "333eb008-db81-4003-9e91-1ad257226518", + version: "078763b58cf7cd508790581843078419", + locationUuid: "b02a39f8-086b-44e3-babf-35cf7f2ea173", }, }); @@ -940,8 +930,8 @@ async function run() { const res = await employeeAddressesUpdateWorkAddress(gustoEmbedded, { workAddressUuid: "", requestBody: { - version: "cd2e396aff8925367ff773e771e40488", - locationUuid: "333eb008-db81-4003-9e91-1ad257226518", + version: "078763b58cf7cd508790581843078419", + locationUuid: "b02a39f8-086b-44e3-babf-35cf7f2ea173", }, }); diff --git a/gusto_embedded/docs/sdks/employees/README.md b/gusto_embedded/docs/sdks/employees/README.md index d78c5622..7f31cc13 100644 --- a/gusto_embedded/docs/sdks/employees/README.md +++ b/gusto_embedded/docs/sdks/employees/README.md @@ -511,7 +511,7 @@ async function run() { const result = await gustoEmbedded.employees.update({ employeeId: "", requestBody: { - version: "9294130ed6ff0c1735ef7b4148c1f320", + version: "6da9085f86ecc01e0000a5655c2dfdba", firstName: "Weezy", middleInitial: "F", lastName: "Baby", @@ -546,7 +546,7 @@ async function run() { const res = await employeesUpdate(gustoEmbedded, { employeeId: "", requestBody: { - version: "9294130ed6ff0c1735ef7b4148c1f320", + version: "6da9085f86ecc01e0000a5655c2dfdba", firstName: "Weezy", middleInitial: "F", lastName: "Baby", diff --git a/gusto_embedded/docs/sdks/locations/README.md b/gusto_embedded/docs/sdks/locations/README.md index 38f461f6..53dba3c3 100644 --- a/gusto_embedded/docs/sdks/locations/README.md +++ b/gusto_embedded/docs/sdks/locations/README.md @@ -361,7 +361,7 @@ async function run() { const result = await gustoEmbedded.locations.update({ locationId: "", requestBody: { - version: "14302448d61342a1a25072fcb59df0b3", + version: "756aee0bdbf26def096673bb7f9a7b97", phoneNumber: "8009360383", street1: "300 3rd Street", street2: "Apartment 318", @@ -396,7 +396,7 @@ async function run() { const res = await locationsUpdate(gustoEmbedded, { locationId: "", requestBody: { - version: "14302448d61342a1a25072fcb59df0b3", + version: "756aee0bdbf26def096673bb7f9a7b97", phoneNumber: "8009360383", street1: "300 3rd Street", street2: "Apartment 318", diff --git a/gusto_embedded/jsr.json b/gusto_embedded/jsr.json index 4e8cc8bd..f3cae8f9 100644 --- a/gusto_embedded/jsr.json +++ b/gusto_embedded/jsr.json @@ -2,7 +2,7 @@ { "name": "@gusto/embedded-api", - "version": "0.5.15", + "version": "0.6.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/gusto_embedded/package-lock.json b/gusto_embedded/package-lock.json index cd817fd3..db562695 100644 --- a/gusto_embedded/package-lock.json +++ b/gusto_embedded/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gusto/embedded-api", - "version": "0.5.15", + "version": "0.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gusto/embedded-api", - "version": "0.5.15", + "version": "0.6.0", "devDependencies": { "@eslint/js": "^9.19.0", "@tanstack/react-query": "^5.61.4", diff --git a/gusto_embedded/package.json b/gusto_embedded/package.json index 5aea6888..7a52a798 100644 --- a/gusto_embedded/package.json +++ b/gusto_embedded/package.json @@ -1,6 +1,6 @@ { "name": "@gusto/embedded-api", - "version": "0.5.15", + "version": "0.6.0", "author": "Speakeasy", "type": "module", "main": "./esm/index.js", diff --git a/gusto_embedded/src/funcs/achTransactionsGetAll.ts b/gusto_embedded/src/funcs/achTransactionsGetAll.ts index 30037c48..bd72db07 100644 --- a/gusto_embedded/src/funcs/achTransactionsGetAll.ts +++ b/gusto_embedded/src/funcs/achTransactionsGetAll.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-ach-transactions", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/bankAccountsCreate.ts b/gusto_embedded/src/funcs/bankAccountsCreate.ts index 97a0380b..60c2f206 100644 --- a/gusto_embedded/src/funcs/bankAccountsCreate.ts +++ b/gusto_embedded/src/funcs/bankAccountsCreate.ts @@ -133,6 +133,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-bank-accounts", oAuth2Scopes: [], @@ -153,6 +154,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/bankAccountsCreateFromPlaidToken.ts b/gusto_embedded/src/funcs/bankAccountsCreateFromPlaidToken.ts index a89f40e5..23c7a40d 100644 --- a/gusto_embedded/src/funcs/bankAccountsCreateFromPlaidToken.ts +++ b/gusto_embedded/src/funcs/bankAccountsCreateFromPlaidToken.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-plaid-processor_token", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/bankAccountsGet.ts b/gusto_embedded/src/funcs/bankAccountsGet.ts index 599b6aa9..5e9cbf29 100644 --- a/gusto_embedded/src/funcs/bankAccountsGet.ts +++ b/gusto_embedded/src/funcs/bankAccountsGet.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-bank-accounts", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/bankAccountsVerify.ts b/gusto_embedded/src/funcs/bankAccountsVerify.ts index 133aebc2..a8b62a1c 100644 --- a/gusto_embedded/src/funcs/bankAccountsVerify.ts +++ b/gusto_embedded/src/funcs/bankAccountsVerify.ts @@ -144,6 +144,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-bank-accounts-verify", oAuth2Scopes: [], @@ -164,6 +165,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesAcceptTermsOfService.ts b/gusto_embedded/src/funcs/companiesAcceptTermsOfService.ts index 9a8b5294..8ea9a63b 100644 --- a/gusto_embedded/src/funcs/companiesAcceptTermsOfService.ts +++ b/gusto_embedded/src/funcs/companiesAcceptTermsOfService.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-partner-managed-companies-company_uuid-accept_terms_of_service", @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesCreateAdmin.ts b/gusto_embedded/src/funcs/companiesCreateAdmin.ts index 353be6b2..cdd9f2ad 100644 --- a/gusto_embedded/src/funcs/companiesCreateAdmin.ts +++ b/gusto_embedded/src/funcs/companiesCreateAdmin.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-admins", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesCreatePartnerManaged.ts b/gusto_embedded/src/funcs/companiesCreatePartnerManaged.ts index 73ccebf4..61756fa3 100644 --- a/gusto_embedded/src/funcs/companiesCreatePartnerManaged.ts +++ b/gusto_embedded/src/funcs/companiesCreatePartnerManaged.ts @@ -131,6 +131,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-partner-managed-companies", oAuth2Scopes: null, @@ -151,6 +152,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesFinishOnboarding.ts b/gusto_embedded/src/funcs/companiesFinishOnboarding.ts index 91dc3c2a..f65a92b1 100644 --- a/gusto_embedded/src/funcs/companiesFinishOnboarding.ts +++ b/gusto_embedded/src/funcs/companiesFinishOnboarding.ts @@ -134,6 +134,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-finish-onboarding", oAuth2Scopes: [], @@ -154,6 +155,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesGet.ts b/gusto_embedded/src/funcs/companiesGet.ts index e108f919..01e1fac4 100644 --- a/gusto_embedded/src/funcs/companiesGet.ts +++ b/gusto_embedded/src/funcs/companiesGet.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesGetCustomFields.ts b/gusto_embedded/src/funcs/companiesGetCustomFields.ts index f3ba05d7..1c0dbf87 100644 --- a/gusto_embedded/src/funcs/companiesGetCustomFields.ts +++ b/gusto_embedded/src/funcs/companiesGetCustomFields.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-custom_fields", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesGetOnboardingStatus.ts b/gusto_embedded/src/funcs/companiesGetOnboardingStatus.ts index e37986f3..a1834fe0 100644 --- a/gusto_embedded/src/funcs/companiesGetOnboardingStatus.ts +++ b/gusto_embedded/src/funcs/companiesGetOnboardingStatus.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-onboarding-status", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesListAdmins.ts b/gusto_embedded/src/funcs/companiesListAdmins.ts index a4a272ae..8b9cf7e4 100644 --- a/gusto_embedded/src/funcs/companiesListAdmins.ts +++ b/gusto_embedded/src/funcs/companiesListAdmins.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-admins", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesMigrate.ts b/gusto_embedded/src/funcs/companiesMigrate.ts index 2a0a4d0a..e070c0b9 100644 --- a/gusto_embedded/src/funcs/companiesMigrate.ts +++ b/gusto_embedded/src/funcs/companiesMigrate.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-partner-managed-companies-company-uuid-migrate", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesRetrieveTermsOfService.ts b/gusto_embedded/src/funcs/companiesRetrieveTermsOfService.ts index c360e688..bd53e9db 100644 --- a/gusto_embedded/src/funcs/companiesRetrieveTermsOfService.ts +++ b/gusto_embedded/src/funcs/companiesRetrieveTermsOfService.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-partner-managed-companies-company_uuid-retrieve_terms_of_service", @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesSuspensionsGet.ts b/gusto_embedded/src/funcs/companiesSuspensionsGet.ts index 69dbd3f1..ed2bc0bb 100644 --- a/gusto_embedded/src/funcs/companiesSuspensionsGet.ts +++ b/gusto_embedded/src/funcs/companiesSuspensionsGet.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-company_uuid-suspensions", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesSuspensionsSuspend.ts b/gusto_embedded/src/funcs/companiesSuspensionsSuspend.ts index 2ff081dd..0e39d255 100644 --- a/gusto_embedded/src/funcs/companiesSuspensionsSuspend.ts +++ b/gusto_embedded/src/funcs/companiesSuspensionsSuspend.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-companies-company_uuid-suspensions", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companiesUpdate.ts b/gusto_embedded/src/funcs/companiesUpdate.ts index 8d1c0915..1b5c6c0a 100644 --- a/gusto_embedded/src/funcs/companiesUpdate.ts +++ b/gusto_embedded/src/funcs/companiesUpdate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyAttachmentGetDownloadUrl.ts b/gusto_embedded/src/funcs/companyAttachmentGetDownloadUrl.ts index c96e1219..d3ef69b7 100644 --- a/gusto_embedded/src/funcs/companyAttachmentGetDownloadUrl.ts +++ b/gusto_embedded/src/funcs/companyAttachmentGetDownloadUrl.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-attachment-url", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyAttachmentsCreate.ts b/gusto_embedded/src/funcs/companyAttachmentsCreate.ts index 5a703ad7..ccf06f39 100644 --- a/gusto_embedded/src/funcs/companyAttachmentsCreate.ts +++ b/gusto_embedded/src/funcs/companyAttachmentsCreate.ts @@ -145,6 +145,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-attachment", oAuth2Scopes: [], @@ -165,6 +166,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyAttachmentsGetDetails.ts b/gusto_embedded/src/funcs/companyAttachmentsGetDetails.ts index 279ca569..79b9c3ac 100644 --- a/gusto_embedded/src/funcs/companyAttachmentsGetDetails.ts +++ b/gusto_embedded/src/funcs/companyAttachmentsGetDetails.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-attachment", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyAttachmentsGetList.ts b/gusto_embedded/src/funcs/companyAttachmentsGetList.ts index 47b3d246..5a1bf634 100644 --- a/gusto_embedded/src/funcs/companyAttachmentsGetList.ts +++ b/gusto_embedded/src/funcs/companyAttachmentsGetList.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-attachments", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsCreate.ts b/gusto_embedded/src/funcs/companyBenefitsCreate.ts index 7e9e3b36..3beb4730 100644 --- a/gusto_embedded/src/funcs/companyBenefitsCreate.ts +++ b/gusto_embedded/src/funcs/companyBenefitsCreate.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-company_benefits", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsDelete.ts b/gusto_embedded/src/funcs/companyBenefitsDelete.ts index 1c0595ef..ae5edb59 100644 --- a/gusto_embedded/src/funcs/companyBenefitsDelete.ts +++ b/gusto_embedded/src/funcs/companyBenefitsDelete.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-company_benefits-company_benefit_id", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGet.ts b/gusto_embedded/src/funcs/companyBenefitsGet.ts index d7a19e03..0e2a26e4 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGet.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGet.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company_benefits-company_benefit_id", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGetAll.ts b/gusto_embedded/src/funcs/companyBenefitsGetAll.ts index c32fc23b..a22fbe34 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGetAll.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGetAll.ts @@ -109,6 +109,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-benefits", oAuth2Scopes: [], @@ -129,6 +130,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGetEmployeeBenefits.ts b/gusto_embedded/src/funcs/companyBenefitsGetEmployeeBenefits.ts index 59df172a..c051b089 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGetEmployeeBenefits.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGetEmployeeBenefits.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company_benefits-company_benefit_id-employee_benefits", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGetRequirements.ts b/gusto_embedded/src/funcs/companyBenefitsGetRequirements.ts index 9c348be8..166c9103 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGetRequirements.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGetRequirements.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-benefits-benefits_id-requirements", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGetSummary.ts b/gusto_embedded/src/funcs/companyBenefitsGetSummary.ts index 608d3480..bbb311e0 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGetSummary.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGetSummary.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-benefits-company_benefit_id-summary", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsGetSupported.ts b/gusto_embedded/src/funcs/companyBenefitsGetSupported.ts index 81d7278c..5e859eed 100644 --- a/gusto_embedded/src/funcs/companyBenefitsGetSupported.ts +++ b/gusto_embedded/src/funcs/companyBenefitsGetSupported.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-benefits-benefit_id", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsList.ts b/gusto_embedded/src/funcs/companyBenefitsList.ts index 5b3ca06d..b5b48e4a 100644 --- a/gusto_embedded/src/funcs/companyBenefitsList.ts +++ b/gusto_embedded/src/funcs/companyBenefitsList.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-company_benefits", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsUpdate.ts b/gusto_embedded/src/funcs/companyBenefitsUpdate.ts index 1ef5fa9b..4c966d90 100644 --- a/gusto_embedded/src/funcs/companyBenefitsUpdate.ts +++ b/gusto_embedded/src/funcs/companyBenefitsUpdate.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-company_benefits-company_benefit_id", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyBenefitsUpdateEmployeeBenefits.ts b/gusto_embedded/src/funcs/companyBenefitsUpdateEmployeeBenefits.ts index 7000b620..3b6d3379 100644 --- a/gusto_embedded/src/funcs/companyBenefitsUpdateEmployeeBenefits.ts +++ b/gusto_embedded/src/funcs/companyBenefitsUpdateEmployeeBenefits.ts @@ -130,6 +130,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-company_benefits-company_benefit_id-employee_benefits", oAuth2Scopes: [], @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyFormsGet.ts b/gusto_embedded/src/funcs/companyFormsGet.ts index 7bfd8eea..b676a2bd 100644 --- a/gusto_embedded/src/funcs/companyFormsGet.ts +++ b/gusto_embedded/src/funcs/companyFormsGet.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-form", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyFormsGetAll.ts b/gusto_embedded/src/funcs/companyFormsGetAll.ts index f1d08bd0..9ad35a8d 100644 --- a/gusto_embedded/src/funcs/companyFormsGetAll.ts +++ b/gusto_embedded/src/funcs/companyFormsGetAll.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-forms", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyFormsGetPdf.ts b/gusto_embedded/src/funcs/companyFormsGetPdf.ts index e25e0207..5a44ceaa 100644 --- a/gusto_embedded/src/funcs/companyFormsGetPdf.ts +++ b/gusto_embedded/src/funcs/companyFormsGetPdf.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-form-pdf", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/companyFormsSign.ts b/gusto_embedded/src/funcs/companyFormsSign.ts index 50fb17a5..74ef0bb9 100644 --- a/gusto_embedded/src/funcs/companyFormsSign.ts +++ b/gusto_embedded/src/funcs/companyFormsSign.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-company-form-sign", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorDocumentsGet.ts b/gusto_embedded/src/funcs/contractorDocumentsGet.ts index 2ff14762..5006a903 100644 --- a/gusto_embedded/src/funcs/contractorDocumentsGet.ts +++ b/gusto_embedded/src/funcs/contractorDocumentsGet.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-document", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorDocumentsGetAll.ts b/gusto_embedded/src/funcs/contractorDocumentsGetAll.ts index a9a807b0..8a1dd0a7 100644 --- a/gusto_embedded/src/funcs/contractorDocumentsGetAll.ts +++ b/gusto_embedded/src/funcs/contractorDocumentsGetAll.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-documents", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorDocumentsGetPdf.ts b/gusto_embedded/src/funcs/contractorDocumentsGetPdf.ts index b54a27df..5b15ccbe 100644 --- a/gusto_embedded/src/funcs/contractorDocumentsGetPdf.ts +++ b/gusto_embedded/src/funcs/contractorDocumentsGetPdf.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-document-pdf", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorDocumentsSign.ts b/gusto_embedded/src/funcs/contractorDocumentsSign.ts index b0ab6936..c5411073 100644 --- a/gusto_embedded/src/funcs/contractorDocumentsSign.ts +++ b/gusto_embedded/src/funcs/contractorDocumentsSign.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractor-document-sign", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorFormsGenerate1099.ts b/gusto_embedded/src/funcs/contractorFormsGenerate1099.ts index 314227fc..1bdbb65a 100644 --- a/gusto_embedded/src/funcs/contractorFormsGenerate1099.ts +++ b/gusto_embedded/src/funcs/contractorFormsGenerate1099.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-sandbox-generate_1099", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorFormsGet.ts b/gusto_embedded/src/funcs/contractorFormsGet.ts index 9f630673..2b2cb8c5 100644 --- a/gusto_embedded/src/funcs/contractorFormsGet.ts +++ b/gusto_embedded/src/funcs/contractorFormsGet.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-form", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorFormsGetPdf.ts b/gusto_embedded/src/funcs/contractorFormsGetPdf.ts index 4bd48ecd..e764e168 100644 --- a/gusto_embedded/src/funcs/contractorFormsGetPdf.ts +++ b/gusto_embedded/src/funcs/contractorFormsGetPdf.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-form-pdf", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorFormsList.ts b/gusto_embedded/src/funcs/contractorFormsList.ts index 96b6deeb..29b55d4e 100644 --- a/gusto_embedded/src/funcs/contractorFormsList.ts +++ b/gusto_embedded/src/funcs/contractorFormsList.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor-forms", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsCreate.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsCreate.ts index 6f52a61f..c1423459 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsCreate.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsCreate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-contractor_payment_groups", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsDelete.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsDelete.ts index 3e708e4e..7e1993b3 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsDelete.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsDelete.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-contractor_payment_groups-contractor_payment_group_id", @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsFund.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsFund.ts index 69b809a8..74218865 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsFund.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsFund.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractor_payment_groups-contractor_payment_group_id-fund", @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsGet.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsGet.ts index 31c9f579..a74f7a3d 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsGet.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsGet.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor_payment_groups-contractor_payment_group_id", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsGetList.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsGetList.ts index c0969bf0..03551e86 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsGetList.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsGetList.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-contractor_payment_groups", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentGroupsPreview.ts b/gusto_embedded/src/funcs/contractorPaymentGroupsPreview.ts index d6da8eef..53c8ad9e 100644 --- a/gusto_embedded/src/funcs/contractorPaymentGroupsPreview.ts +++ b/gusto_embedded/src/funcs/contractorPaymentGroupsPreview.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-contractor_payment_groups-preview", @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentMethodGet.ts b/gusto_embedded/src/funcs/contractorPaymentMethodGet.ts index 7f4ee50f..16a17791 100644 --- a/gusto_embedded/src/funcs/contractorPaymentMethodGet.ts +++ b/gusto_embedded/src/funcs/contractorPaymentMethodGet.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractors-contractor_uuid-payment_method", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentMethodGetBankAccounts.ts b/gusto_embedded/src/funcs/contractorPaymentMethodGetBankAccounts.ts index c83b26af..bbd9344c 100644 --- a/gusto_embedded/src/funcs/contractorPaymentMethodGetBankAccounts.ts +++ b/gusto_embedded/src/funcs/contractorPaymentMethodGetBankAccounts.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractors-contractor_uuid-bank_accounts", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentMethodUpdate.ts b/gusto_embedded/src/funcs/contractorPaymentMethodUpdate.ts index 7c3239ef..eb270bae 100644 --- a/gusto_embedded/src/funcs/contractorPaymentMethodUpdate.ts +++ b/gusto_embedded/src/funcs/contractorPaymentMethodUpdate.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractors-contractor_id-payment_method", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentMethodsCreateBankAccount.ts b/gusto_embedded/src/funcs/contractorPaymentMethodsCreateBankAccount.ts index 5d7abdb6..a2a159c9 100644 --- a/gusto_embedded/src/funcs/contractorPaymentMethodsCreateBankAccount.ts +++ b/gusto_embedded/src/funcs/contractorPaymentMethodsCreateBankAccount.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-contractors-contractor_uuid-bank_accounts", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsCreate.ts b/gusto_embedded/src/funcs/contractorPaymentsCreate.ts index fe246fc8..833084d4 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsCreate.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-contractor_payments", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsDelete.ts b/gusto_embedded/src/funcs/contractorPaymentsDelete.ts index cac0d8e4..0fab8a73 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsDelete.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsDelete.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-companies-company_id-contractor_payment-contractor-payment", @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsFund.ts b/gusto_embedded/src/funcs/contractorPaymentsFund.ts index 7964ab96..0e913e99 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsFund.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsFund.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor_payments-contractor_payment_uuid-fund", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsGet.ts b/gusto_embedded/src/funcs/contractorPaymentsGet.ts index 3facfe8c..ced59107 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsGet.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsGet.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-contractor_payment-contractor-payment", @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsGetReceipt.ts b/gusto_embedded/src/funcs/contractorPaymentsGetReceipt.ts index 05c85940..21a249ad 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsGetReceipt.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsGetReceipt.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractor_payments-contractor_payment_uuid-receipt", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorPaymentsList.ts b/gusto_embedded/src/funcs/contractorPaymentsList.ts index 99fa65f9..e6d946d0 100644 --- a/gusto_embedded/src/funcs/contractorPaymentsList.ts +++ b/gusto_embedded/src/funcs/contractorPaymentsList.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-contractor_payments", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsCreate.ts b/gusto_embedded/src/funcs/contractorsCreate.ts index a3b96fdf..9ca82744 100644 --- a/gusto_embedded/src/funcs/contractorsCreate.ts +++ b/gusto_embedded/src/funcs/contractorsCreate.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_uuid-contractors", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsDelete.ts b/gusto_embedded/src/funcs/contractorsDelete.ts index 578a293c..11619b8c 100644 --- a/gusto_embedded/src/funcs/contractorsDelete.ts +++ b/gusto_embedded/src/funcs/contractorsDelete.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-contractors-contractor_uuid", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsGet.ts b/gusto_embedded/src/funcs/contractorsGet.ts index c34c589f..715d414f 100644 --- a/gusto_embedded/src/funcs/contractorsGet.ts +++ b/gusto_embedded/src/funcs/contractorsGet.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractors-contractor_uuid", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsGetAddress.ts b/gusto_embedded/src/funcs/contractorsGetAddress.ts index 68ac4e0f..8869fc84 100644 --- a/gusto_embedded/src/funcs/contractorsGetAddress.ts +++ b/gusto_embedded/src/funcs/contractorsGetAddress.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractors-contractor_uuid-address", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsGetOnboardingStatus.ts b/gusto_embedded/src/funcs/contractorsGetOnboardingStatus.ts index 789bebcc..de690242 100644 --- a/gusto_embedded/src/funcs/contractorsGetOnboardingStatus.ts +++ b/gusto_embedded/src/funcs/contractorsGetOnboardingStatus.ts @@ -149,6 +149,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-contractors-contractor_uuid-onboarding_status", oAuth2Scopes: [], @@ -169,6 +170,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsList.ts b/gusto_embedded/src/funcs/contractorsList.ts index 26caa828..4be2c810 100644 --- a/gusto_embedded/src/funcs/contractorsList.ts +++ b/gusto_embedded/src/funcs/contractorsList.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_uuid-contractors", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsUpdate.ts b/gusto_embedded/src/funcs/contractorsUpdate.ts index b651497b..3c713165 100644 --- a/gusto_embedded/src/funcs/contractorsUpdate.ts +++ b/gusto_embedded/src/funcs/contractorsUpdate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractors-contractor_uuid", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsUpdateAddress.ts b/gusto_embedded/src/funcs/contractorsUpdateAddress.ts index a95276f6..ce3cc02f 100644 --- a/gusto_embedded/src/funcs/contractorsUpdateAddress.ts +++ b/gusto_embedded/src/funcs/contractorsUpdateAddress.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractors-contractor_uuid-address", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/contractorsUpdateOnboardingStatus.ts b/gusto_embedded/src/funcs/contractorsUpdateOnboardingStatus.ts index ab8f4e16..4edf4e6b 100644 --- a/gusto_embedded/src/funcs/contractorsUpdateOnboardingStatus.ts +++ b/gusto_embedded/src/funcs/contractorsUpdateOnboardingStatus.ts @@ -135,6 +135,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-contractors-contractor_uuid-onboarding_status", oAuth2Scopes: [], @@ -155,6 +156,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsAddPeople.ts b/gusto_embedded/src/funcs/departmentsAddPeople.ts index 887343de..c23cd2d6 100644 --- a/gusto_embedded/src/funcs/departmentsAddPeople.ts +++ b/gusto_embedded/src/funcs/departmentsAddPeople.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-add-people-to-department", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsCreate.ts b/gusto_embedded/src/funcs/departmentsCreate.ts index b12b0d08..d37c4d32 100644 --- a/gusto_embedded/src/funcs/departmentsCreate.ts +++ b/gusto_embedded/src/funcs/departmentsCreate.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-departments", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsDelete.ts b/gusto_embedded/src/funcs/departmentsDelete.ts index 06b0576b..383afa6e 100644 --- a/gusto_embedded/src/funcs/departmentsDelete.ts +++ b/gusto_embedded/src/funcs/departmentsDelete.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-department", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsGet.ts b/gusto_embedded/src/funcs/departmentsGet.ts index 9b0f890c..a4e8134a 100644 --- a/gusto_embedded/src/funcs/departmentsGet.ts +++ b/gusto_embedded/src/funcs/departmentsGet.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-department", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsGetAll.ts b/gusto_embedded/src/funcs/departmentsGetAll.ts index d1f99e0f..b0c36e8c 100644 --- a/gusto_embedded/src/funcs/departmentsGetAll.ts +++ b/gusto_embedded/src/funcs/departmentsGetAll.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-departments", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsRemovePeople.ts b/gusto_embedded/src/funcs/departmentsRemovePeople.ts index a1d0eb6b..325330cc 100644 --- a/gusto_embedded/src/funcs/departmentsRemovePeople.ts +++ b/gusto_embedded/src/funcs/departmentsRemovePeople.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-remove-people-from-department", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/departmentsUpdate.ts b/gusto_embedded/src/funcs/departmentsUpdate.ts index 25072efd..53890a0a 100644 --- a/gusto_embedded/src/funcs/departmentsUpdate.ts +++ b/gusto_embedded/src/funcs/departmentsUpdate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-departments", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/earningTypesCreate.ts b/gusto_embedded/src/funcs/earningTypesCreate.ts index 3cee706e..9b146d5a 100644 --- a/gusto_embedded/src/funcs/earningTypesCreate.ts +++ b/gusto_embedded/src/funcs/earningTypesCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-earning_types", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/earningTypesDelete.ts b/gusto_embedded/src/funcs/earningTypesDelete.ts index b15cf352..2aa0248d 100644 --- a/gusto_embedded/src/funcs/earningTypesDelete.ts +++ b/gusto_embedded/src/funcs/earningTypesDelete.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-companies-company_id-earning_types-earning_type_uuid", @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/earningTypesList.ts b/gusto_embedded/src/funcs/earningTypesList.ts index bf137012..0cc75765 100644 --- a/gusto_embedded/src/funcs/earningTypesList.ts +++ b/gusto_embedded/src/funcs/earningTypesList.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-earning_types", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/earningTypesUpdate.ts b/gusto_embedded/src/funcs/earningTypesUpdate.ts index 64a8f148..a1282a23 100644 --- a/gusto_embedded/src/funcs/earningTypesUpdate.ts +++ b/gusto_embedded/src/funcs/earningTypesUpdate.ts @@ -130,6 +130,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-earning_types-earning_type_uuid", oAuth2Scopes: [], @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesCreate.ts b/gusto_embedded/src/funcs/employeeAddressesCreate.ts index 3c95f400..6705c31f 100644 --- a/gusto_embedded/src/funcs/employeeAddressesCreate.ts +++ b/gusto_embedded/src/funcs/employeeAddressesCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-home_addresses", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { @@ -182,8 +184,8 @@ async function $do( M.json(201, PostV1EmployeesEmployeeIdHomeAddressesResponse$inboundSchema, { key: "Employee-Address", }), - M.jsonErr(422, UnprocessableEntityErrorObject$inboundSchema), - M.fail([404, "4XX"]), + M.jsonErr([404, 422], UnprocessableEntityErrorObject$inboundSchema), + M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesCreateWorkAddress.ts b/gusto_embedded/src/funcs/employeeAddressesCreateWorkAddress.ts index 5b1fbfbc..4cbc0ae5 100644 --- a/gusto_embedded/src/funcs/employeeAddressesCreateWorkAddress.ts +++ b/gusto_embedded/src/funcs/employeeAddressesCreateWorkAddress.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-work_addresses", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesDelete.ts b/gusto_embedded/src/funcs/employeeAddressesDelete.ts index 5d97d1b8..8070df03 100644 --- a/gusto_embedded/src/funcs/employeeAddressesDelete.ts +++ b/gusto_embedded/src/funcs/employeeAddressesDelete.ts @@ -19,10 +19,6 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { - UnprocessableEntityErrorObject, - UnprocessableEntityErrorObject$inboundSchema, -} from "../models/errors/unprocessableentityerrorobject.js"; import { DeleteV1HomeAddressesHomeAddressUuidRequest, DeleteV1HomeAddressesHomeAddressUuidRequest$outboundSchema, @@ -36,7 +32,7 @@ import { Result } from "../types/fp.js"; * Delete an employee's home address * * @remarks - * Used for deleting an employee's home address. Cannot delete the employee's active home address. + * Used for deleting an employee's home address. Cannot delete the employee's active home address. * * scope: `employees:write` */ @@ -47,7 +43,6 @@ export function employeeAddressesDelete( ): APIPromise< Result< DeleteV1HomeAddressesHomeAddressUuidResponse, - | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -72,7 +67,6 @@ async function $do( [ Result< DeleteV1HomeAddressesHomeAddressUuidResponse, - | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -107,7 +101,7 @@ async function $do( const path = pathToFunc("/v1/home_addresses/{home_address_uuid}")(pathParams); const headers = new Headers(compactMap({ - Accept: "application/json", + Accept: "*/*", "X-Gusto-API-Version": encodeSimple( "X-Gusto-API-Version", payload["X-Gusto-API-Version"], @@ -122,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-home_addresses-home_address_uuid", oAuth2Scopes: [], @@ -142,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { @@ -166,7 +162,6 @@ async function $do( const [result] = await M.match< DeleteV1HomeAddressesHomeAddressUuidResponse, - | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -176,8 +171,7 @@ async function $do( | ConnectionError >( M.nil(204, DeleteV1HomeAddressesHomeAddressUuidResponse$inboundSchema), - M.jsonErr(422, UnprocessableEntityErrorObject$inboundSchema), - M.fail([404, "4XX"]), + M.fail([404, 422, "4XX"]), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesDeleteWorkAddress.ts b/gusto_embedded/src/funcs/employeeAddressesDeleteWorkAddress.ts index e10d74bb..c7feb67a 100644 --- a/gusto_embedded/src/funcs/employeeAddressesDeleteWorkAddress.ts +++ b/gusto_embedded/src/funcs/employeeAddressesDeleteWorkAddress.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-work_addresses-work_address_uuid", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesGet.ts b/gusto_embedded/src/funcs/employeeAddressesGet.ts index d9ac9b38..eb5cdffa 100644 --- a/gusto_embedded/src/funcs/employeeAddressesGet.ts +++ b/gusto_embedded/src/funcs/employeeAddressesGet.ts @@ -19,6 +19,10 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { + UnprocessableEntityErrorObject, + UnprocessableEntityErrorObject$inboundSchema, +} from "../models/errors/unprocessableentityerrorobject.js"; import { GetV1EmployeesEmployeeIdHomeAddressesRequest, GetV1EmployeesEmployeeIdHomeAddressesRequest$outboundSchema, @@ -45,6 +49,7 @@ export function employeeAddressesGet( ): APIPromise< Result< GetV1EmployeesEmployeeIdHomeAddressesResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -69,6 +74,7 @@ async function $do( [ Result< GetV1EmployeesEmployeeIdHomeAddressesResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -119,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-home_addresses", oAuth2Scopes: [], @@ -139,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { @@ -163,6 +171,7 @@ async function $do( const [result] = await M.match< GetV1EmployeesEmployeeIdHomeAddressesResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -174,7 +183,8 @@ async function $do( M.json(200, GetV1EmployeesEmployeeIdHomeAddressesResponse$inboundSchema, { key: "Employee-Address-List", }), - M.fail([404, "4XX"]), + M.jsonErr(404, UnprocessableEntityErrorObject$inboundSchema), + M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesGetWorkAddresses.ts b/gusto_embedded/src/funcs/employeeAddressesGetWorkAddresses.ts index ba5e9b49..6bccc17c 100644 --- a/gusto_embedded/src/funcs/employeeAddressesGetWorkAddresses.ts +++ b/gusto_embedded/src/funcs/employeeAddressesGetWorkAddresses.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-work_addresses", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesRetrieveHomeAddress.ts b/gusto_embedded/src/funcs/employeeAddressesRetrieveHomeAddress.ts index a7e92655..bf8b89fa 100644 --- a/gusto_embedded/src/funcs/employeeAddressesRetrieveHomeAddress.ts +++ b/gusto_embedded/src/funcs/employeeAddressesRetrieveHomeAddress.ts @@ -19,6 +19,10 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { + UnprocessableEntityErrorObject, + UnprocessableEntityErrorObject$inboundSchema, +} from "../models/errors/unprocessableentityerrorobject.js"; import { GetV1HomeAddressesHomeAddressUuidRequest, GetV1HomeAddressesHomeAddressUuidRequest$outboundSchema, @@ -45,6 +49,7 @@ export function employeeAddressesRetrieveHomeAddress( ): APIPromise< Result< GetV1HomeAddressesHomeAddressUuidResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -69,6 +74,7 @@ async function $do( [ Result< GetV1HomeAddressesHomeAddressUuidResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -118,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-home_addresses-home_address_uuid", oAuth2Scopes: [], @@ -138,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { @@ -162,6 +170,7 @@ async function $do( const [result] = await M.match< GetV1HomeAddressesHomeAddressUuidResponse, + | UnprocessableEntityErrorObject | APIError | SDKValidationError | UnexpectedClientError @@ -173,7 +182,8 @@ async function $do( M.json(200, GetV1HomeAddressesHomeAddressUuidResponse$inboundSchema, { key: "Employee-Address", }), - M.fail([404, "4XX"]), + M.jsonErr(404, UnprocessableEntityErrorObject$inboundSchema), + M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesRetrieveWorkAddress.ts b/gusto_embedded/src/funcs/employeeAddressesRetrieveWorkAddress.ts index db972919..004a1a82 100644 --- a/gusto_embedded/src/funcs/employeeAddressesRetrieveWorkAddress.ts +++ b/gusto_embedded/src/funcs/employeeAddressesRetrieveWorkAddress.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-work_addresses-work_address_uuid", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesUpdate.ts b/gusto_embedded/src/funcs/employeeAddressesUpdate.ts index d3d1cec3..536dead8 100644 --- a/gusto_embedded/src/funcs/employeeAddressesUpdate.ts +++ b/gusto_embedded/src/funcs/employeeAddressesUpdate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-home_addresses-home_address_uuid", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { @@ -181,8 +183,8 @@ async function $do( M.json(200, PutV1HomeAddressesHomeAddressUuidResponse$inboundSchema, { key: "Employee-Address", }), - M.jsonErr(422, UnprocessableEntityErrorObject$inboundSchema), - M.fail([404, "4XX"]), + M.jsonErr([404, 422], UnprocessableEntityErrorObject$inboundSchema), + M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/gusto_embedded/src/funcs/employeeAddressesUpdateWorkAddress.ts b/gusto_embedded/src/funcs/employeeAddressesUpdateWorkAddress.ts index 6e0599e4..a7bbc8f1 100644 --- a/gusto_embedded/src/funcs/employeeAddressesUpdateWorkAddress.ts +++ b/gusto_embedded/src/funcs/employeeAddressesUpdateWorkAddress.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-work_addresses-work_address_uuid", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsCreate.ts b/gusto_embedded/src/funcs/employeeBenefitsCreate.ts index 649feddd..8f3f21d9 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsCreate.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-employee_benefits", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsCreateYtdBenefitAmountsFromDifferentCompany.ts b/gusto_embedded/src/funcs/employeeBenefitsCreateYtdBenefitAmountsFromDifferentCompany.ts index 03962b80..6630d27e 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsCreateYtdBenefitAmountsFromDifferentCompany.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsCreateYtdBenefitAmountsFromDifferentCompany.ts @@ -131,6 +131,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-employee-ytd-benefit-amounts-from-different-company", oAuth2Scopes: [], @@ -151,6 +152,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsDelete.ts b/gusto_embedded/src/funcs/employeeBenefitsDelete.ts index 16767c09..ede1f0a6 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsDelete.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsDelete.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employee_benefits-employee_benefit_id", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsGet.ts b/gusto_embedded/src/funcs/employeeBenefitsGet.ts index ad8cb344..b9ade6a3 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsGet.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsGet.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-employee_benefits", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsGetYtdBenefitAmountsFromDifferentCompany.ts b/gusto_embedded/src/funcs/employeeBenefitsGetYtdBenefitAmountsFromDifferentCompany.ts index 051d2343..b4dd83fb 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsGetYtdBenefitAmountsFromDifferentCompany.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsGetYtdBenefitAmountsFromDifferentCompany.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-employee-ytd-benefit-amounts-from-different-company", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsRetrieve.ts b/gusto_embedded/src/funcs/employeeBenefitsRetrieve.ts index 382d7427..5c9b7cd7 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsRetrieve.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsRetrieve.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employee_benefits-employee_benefit_id", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeBenefitsUpdate.ts b/gusto_embedded/src/funcs/employeeBenefitsUpdate.ts index 429e6a3d..2af66da8 100644 --- a/gusto_embedded/src/funcs/employeeBenefitsUpdate.ts +++ b/gusto_embedded/src/funcs/employeeBenefitsUpdate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employee_benefits-employee_benefit_id", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsCreateRehire.ts b/gusto_embedded/src/funcs/employeeEmploymentsCreateRehire.ts index d54b70eb..7b910ca3 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsCreateRehire.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsCreateRehire.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-rehire", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsCreateTermination.ts b/gusto_embedded/src/funcs/employeeEmploymentsCreateTermination.ts index 4ee6da77..a9aa0e04 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsCreateTermination.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsCreateTermination.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-terminations", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsDeleteRehire.ts b/gusto_embedded/src/funcs/employeeEmploymentsDeleteRehire.ts index a2950e50..070e804b 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsDeleteRehire.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsDeleteRehire.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employees-employee_id-rehire", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsDeleteTermination.ts b/gusto_embedded/src/funcs/employeeEmploymentsDeleteTermination.ts index d334cf12..0c8b8e0c 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsDeleteTermination.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsDeleteTermination.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employees-employee_id-terminations", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsGetHistory.ts b/gusto_embedded/src/funcs/employeeEmploymentsGetHistory.ts index 07d536b0..e0dc7859 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsGetHistory.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsGetHistory.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-employment_history", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsGetRehire.ts b/gusto_embedded/src/funcs/employeeEmploymentsGetRehire.ts index 269fb5c1..a504d93d 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsGetRehire.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsGetRehire.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-rehire", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsGetTerminations.ts b/gusto_embedded/src/funcs/employeeEmploymentsGetTerminations.ts index afdaa511..b853f385 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsGetTerminations.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsGetTerminations.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-terminations", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsRehire.ts b/gusto_embedded/src/funcs/employeeEmploymentsRehire.ts index 2c5bb728..d5240bcd 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsRehire.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsRehire.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-rehire", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeEmploymentsUpdateTermination.ts b/gusto_embedded/src/funcs/employeeEmploymentsUpdateTermination.ts index e1a82474..ce77656f 100644 --- a/gusto_embedded/src/funcs/employeeEmploymentsUpdateTermination.ts +++ b/gusto_embedded/src/funcs/employeeEmploymentsUpdateTermination.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-terminations-employee_id", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeFormsGenerateW2.ts b/gusto_embedded/src/funcs/employeeFormsGenerateW2.ts index f06ddb13..501a17ba 100644 --- a/gusto_embedded/src/funcs/employeeFormsGenerateW2.ts +++ b/gusto_embedded/src/funcs/employeeFormsGenerateW2.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-sandbox-generate_w2", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeFormsGet.ts b/gusto_embedded/src/funcs/employeeFormsGet.ts index 55e48ebf..9af0be9e 100644 --- a/gusto_embedded/src/funcs/employeeFormsGet.ts +++ b/gusto_embedded/src/funcs/employeeFormsGet.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employee-form", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeFormsGetPdf.ts b/gusto_embedded/src/funcs/employeeFormsGetPdf.ts index 861bba48..e8788218 100644 --- a/gusto_embedded/src/funcs/employeeFormsGetPdf.ts +++ b/gusto_embedded/src/funcs/employeeFormsGetPdf.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employee-form-pdf", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeFormsList.ts b/gusto_embedded/src/funcs/employeeFormsList.ts index aae921e4..a48bad95 100644 --- a/gusto_embedded/src/funcs/employeeFormsList.ts +++ b/gusto_embedded/src/funcs/employeeFormsList.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employee-forms", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeFormsSign.ts b/gusto_embedded/src/funcs/employeeFormsSign.ts index 00650a23..b378eb48 100644 --- a/gusto_embedded/src/funcs/employeeFormsSign.ts +++ b/gusto_embedded/src/funcs/employeeFormsSign.ts @@ -135,6 +135,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employee-form-sign", oAuth2Scopes: [], @@ -155,6 +156,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodCreate.ts b/gusto_embedded/src/funcs/employeePaymentMethodCreate.ts index b6f5a7f6..a8e31c46 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodCreate.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-bank_accounts", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodDeleteBankAccount.ts b/gusto_embedded/src/funcs/employeePaymentMethodDeleteBankAccount.ts index 4a7a4dd8..e75af10a 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodDeleteBankAccount.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodDeleteBankAccount.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employees-employee_id-bank_accounts-bank_account_id", @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodGet.ts b/gusto_embedded/src/funcs/employeePaymentMethodGet.ts index b8f63499..7a5b23b9 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodGet.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodGet.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-payment_method", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodUpdate.ts b/gusto_embedded/src/funcs/employeePaymentMethodUpdate.ts index 2a8e205f..68bb4e96 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodUpdate.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodUpdate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-payment_method", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodUpdateBankAccount.ts b/gusto_embedded/src/funcs/employeePaymentMethodUpdateBankAccount.ts index 5e5884fd..4f4a53a5 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodUpdateBankAccount.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodUpdateBankAccount.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-bank_accounts", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeePaymentMethodsGetBankAccounts.ts b/gusto_embedded/src/funcs/employeePaymentMethodsGetBankAccounts.ts index c243773b..650ec1b3 100644 --- a/gusto_embedded/src/funcs/employeePaymentMethodsGetBankAccounts.ts +++ b/gusto_embedded/src/funcs/employeePaymentMethodsGetBankAccounts.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-bank_accounts", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeTaxSetupGetFederalTaxes.ts b/gusto_embedded/src/funcs/employeeTaxSetupGetFederalTaxes.ts index b272246b..24df9c17 100644 --- a/gusto_embedded/src/funcs/employeeTaxSetupGetFederalTaxes.ts +++ b/gusto_embedded/src/funcs/employeeTaxSetupGetFederalTaxes.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-federal_taxes", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeTaxSetupGetStateTaxes.ts b/gusto_embedded/src/funcs/employeeTaxSetupGetStateTaxes.ts index 4316cd2b..82b177eb 100644 --- a/gusto_embedded/src/funcs/employeeTaxSetupGetStateTaxes.ts +++ b/gusto_embedded/src/funcs/employeeTaxSetupGetStateTaxes.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-state_taxes", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeTaxSetupUpdateFederalTaxes.ts b/gusto_embedded/src/funcs/employeeTaxSetupUpdateFederalTaxes.ts index f47db2ef..c44f8633 100644 --- a/gusto_embedded/src/funcs/employeeTaxSetupUpdateFederalTaxes.ts +++ b/gusto_embedded/src/funcs/employeeTaxSetupUpdateFederalTaxes.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-federal_taxes", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeeTaxSetupUpdateStateTaxes.ts b/gusto_embedded/src/funcs/employeeTaxSetupUpdateStateTaxes.ts index 3f4137e5..e1e3cb82 100644 --- a/gusto_embedded/src/funcs/employeeTaxSetupUpdateStateTaxes.ts +++ b/gusto_embedded/src/funcs/employeeTaxSetupUpdateStateTaxes.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-state_taxes", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesCreate.ts b/gusto_embedded/src/funcs/employeesCreate.ts index e7c9e9bb..4c8434e9 100644 --- a/gusto_embedded/src/funcs/employeesCreate.ts +++ b/gusto_embedded/src/funcs/employeesCreate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesCreateHistorical.ts b/gusto_embedded/src/funcs/employeesCreateHistorical.ts index d21a49df..3c903fad 100644 --- a/gusto_embedded/src/funcs/employeesCreateHistorical.ts +++ b/gusto_embedded/src/funcs/employeesCreateHistorical.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-historical_employees", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesDelete.ts b/gusto_embedded/src/funcs/employeesDelete.ts index 7ca5c268..9e054199 100644 --- a/gusto_embedded/src/funcs/employeesDelete.ts +++ b/gusto_embedded/src/funcs/employeesDelete.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employee", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesGet.ts b/gusto_embedded/src/funcs/employeesGet.ts index 42c12887..2564b517 100644 --- a/gusto_embedded/src/funcs/employeesGet.ts +++ b/gusto_embedded/src/funcs/employeesGet.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesGetCustomFields.ts b/gusto_embedded/src/funcs/employeesGetCustomFields.ts index f5c18506..d473c5fa 100644 --- a/gusto_embedded/src/funcs/employeesGetCustomFields.ts +++ b/gusto_embedded/src/funcs/employeesGetCustomFields.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-custom_fields", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesGetOnboardingStatus.ts b/gusto_embedded/src/funcs/employeesGetOnboardingStatus.ts index 9cd1fe61..6d51b989 100644 --- a/gusto_embedded/src/funcs/employeesGetOnboardingStatus.ts +++ b/gusto_embedded/src/funcs/employeesGetOnboardingStatus.ts @@ -155,6 +155,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-onboarding_status", oAuth2Scopes: [], @@ -175,6 +176,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesGetTimeOffActivities.ts b/gusto_embedded/src/funcs/employeesGetTimeOffActivities.ts index 5b8fa1a7..2d9c4b1c 100644 --- a/gusto_embedded/src/funcs/employeesGetTimeOffActivities.ts +++ b/gusto_embedded/src/funcs/employeesGetTimeOffActivities.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-version-employees-time_off_activities", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesList.ts b/gusto_embedded/src/funcs/employeesList.ts index 1252734d..4d1ab451 100644 --- a/gusto_embedded/src/funcs/employeesList.ts +++ b/gusto_embedded/src/funcs/employeesList.ts @@ -114,6 +114,7 @@ async function $do( "per": payload.per, "search_term": payload.search_term, "terminated": payload.terminated, + "uuids": payload.uuids, }), ); @@ -133,6 +134,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-employees", oAuth2Scopes: [], @@ -154,6 +156,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesUpdate.ts b/gusto_embedded/src/funcs/employeesUpdate.ts index e289519d..8e210136 100644 --- a/gusto_embedded/src/funcs/employeesUpdate.ts +++ b/gusto_embedded/src/funcs/employeesUpdate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesUpdateOnboardingDocumentsConfig.ts b/gusto_embedded/src/funcs/employeesUpdateOnboardingDocumentsConfig.ts index e37e7d45..1409a93d 100644 --- a/gusto_embedded/src/funcs/employeesUpdateOnboardingDocumentsConfig.ts +++ b/gusto_embedded/src/funcs/employeesUpdateOnboardingDocumentsConfig.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-onboarding_documents_config", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/employeesUpdateOnboardingStatus.ts b/gusto_embedded/src/funcs/employeesUpdateOnboardingStatus.ts index 44f21dfa..3a923f68 100644 --- a/gusto_embedded/src/funcs/employeesUpdateOnboardingStatus.ts +++ b/gusto_embedded/src/funcs/employeesUpdateOnboardingStatus.ts @@ -135,6 +135,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-onboarding_status", oAuth2Scopes: [], @@ -155,6 +156,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/eventsGet.ts b/gusto_embedded/src/funcs/eventsGet.ts index e65fe10a..21e22d73 100644 --- a/gusto_embedded/src/funcs/eventsGet.ts +++ b/gusto_embedded/src/funcs/eventsGet.ts @@ -127,6 +127,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-events", oAuth2Scopes: null, @@ -148,6 +149,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsCalculateTaxes.ts b/gusto_embedded/src/funcs/externalPayrollsCalculateTaxes.ts index 5533a834..1b31071c 100644 --- a/gusto_embedded/src/funcs/externalPayrollsCalculateTaxes.ts +++ b/gusto_embedded/src/funcs/externalPayrollsCalculateTaxes.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-external-payroll-calculate-taxes", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsCreate.ts b/gusto_embedded/src/funcs/externalPayrollsCreate.ts index 734ca833..97009ac7 100644 --- a/gusto_embedded/src/funcs/externalPayrollsCreate.ts +++ b/gusto_embedded/src/funcs/externalPayrollsCreate.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-external-payroll", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsDelete.ts b/gusto_embedded/src/funcs/externalPayrollsDelete.ts index d73f213c..87d8f817 100644 --- a/gusto_embedded/src/funcs/externalPayrollsDelete.ts +++ b/gusto_embedded/src/funcs/externalPayrollsDelete.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-external-payroll", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsFinalizeTaxLiabilities.ts b/gusto_embedded/src/funcs/externalPayrollsFinalizeTaxLiabilities.ts index 9dbb6826..66a9f298 100644 --- a/gusto_embedded/src/funcs/externalPayrollsFinalizeTaxLiabilities.ts +++ b/gusto_embedded/src/funcs/externalPayrollsFinalizeTaxLiabilities.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-tax-liabilities-finish", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsGet.ts b/gusto_embedded/src/funcs/externalPayrollsGet.ts index fdca61ff..b7cbf82e 100644 --- a/gusto_embedded/src/funcs/externalPayrollsGet.ts +++ b/gusto_embedded/src/funcs/externalPayrollsGet.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-external-payrolls", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsListTaxLiabilities.ts b/gusto_embedded/src/funcs/externalPayrollsListTaxLiabilities.ts index 983c40be..b06b45d6 100644 --- a/gusto_embedded/src/funcs/externalPayrollsListTaxLiabilities.ts +++ b/gusto_embedded/src/funcs/externalPayrollsListTaxLiabilities.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-tax-liabilities", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsRetrieve.ts b/gusto_embedded/src/funcs/externalPayrollsRetrieve.ts index 678a57b1..7dd84e4c 100644 --- a/gusto_embedded/src/funcs/externalPayrollsRetrieve.ts +++ b/gusto_embedded/src/funcs/externalPayrollsRetrieve.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-external-payroll", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsUpdate.ts b/gusto_embedded/src/funcs/externalPayrollsUpdate.ts index f711f136..494d78b6 100644 --- a/gusto_embedded/src/funcs/externalPayrollsUpdate.ts +++ b/gusto_embedded/src/funcs/externalPayrollsUpdate.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-external-payroll", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/externalPayrollsUpdateTaxLiabilities.ts b/gusto_embedded/src/funcs/externalPayrollsUpdateTaxLiabilities.ts index 10dd2a5f..79a2ffd7 100644 --- a/gusto_embedded/src/funcs/externalPayrollsUpdateTaxLiabilities.ts +++ b/gusto_embedded/src/funcs/externalPayrollsUpdateTaxLiabilities.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-tax-liabilities", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/federalTaxDetailsGet.ts b/gusto_embedded/src/funcs/federalTaxDetailsGet.ts index 96b9901d..55ffad0f 100644 --- a/gusto_embedded/src/funcs/federalTaxDetailsGet.ts +++ b/gusto_embedded/src/funcs/federalTaxDetailsGet.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-federal_tax_details", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/federalTaxDetailsUpdate.ts b/gusto_embedded/src/funcs/federalTaxDetailsUpdate.ts index 42ce5146..a7e43234 100644 --- a/gusto_embedded/src/funcs/federalTaxDetailsUpdate.ts +++ b/gusto_embedded/src/funcs/federalTaxDetailsUpdate.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-federal_tax_details", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/flowsCreate.ts b/gusto_embedded/src/funcs/flowsCreate.ts index b8eabfd4..dd42e33a 100644 --- a/gusto_embedded/src/funcs/flowsCreate.ts +++ b/gusto_embedded/src/funcs/flowsCreate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-company-flows", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/garnishmentsCreate.ts b/gusto_embedded/src/funcs/garnishmentsCreate.ts index 0ce1af3c..7fe5d860 100644 --- a/gusto_embedded/src/funcs/garnishmentsCreate.ts +++ b/gusto_embedded/src/funcs/garnishmentsCreate.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-employees-employee_id-garnishments", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/garnishmentsGet.ts b/gusto_embedded/src/funcs/garnishmentsGet.ts index 7970f8c0..1220a3b8 100644 --- a/gusto_embedded/src/funcs/garnishmentsGet.ts +++ b/gusto_embedded/src/funcs/garnishmentsGet.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-garnishments-garnishment_id", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/garnishmentsGetChildSupportData.ts b/gusto_embedded/src/funcs/garnishmentsGetChildSupportData.ts index 327a5d6b..7ad063e4 100644 --- a/gusto_embedded/src/funcs/garnishmentsGetChildSupportData.ts +++ b/gusto_embedded/src/funcs/garnishmentsGetChildSupportData.ts @@ -107,6 +107,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-garnishments-child_support", oAuth2Scopes: [], @@ -127,6 +128,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/garnishmentsList.ts b/gusto_embedded/src/funcs/garnishmentsList.ts index a325accf..e0a2c422 100644 --- a/gusto_embedded/src/funcs/garnishmentsList.ts +++ b/gusto_embedded/src/funcs/garnishmentsList.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-garnishments", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/garnishmentsUpdate.ts b/gusto_embedded/src/funcs/garnishmentsUpdate.ts index 58804d8f..f77dd53c 100644 --- a/gusto_embedded/src/funcs/garnishmentsUpdate.ts +++ b/gusto_embedded/src/funcs/garnishmentsUpdate.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-garnishments-garnishment_id", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/generatedDocumentsGet.ts b/gusto_embedded/src/funcs/generatedDocumentsGet.ts index c41c664f..1a0538bd 100644 --- a/gusto_embedded/src/funcs/generatedDocumentsGet.ts +++ b/gusto_embedded/src/funcs/generatedDocumentsGet.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-generated_documents-document_type-request_uuid", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/historicalEmployeesUpdate.ts b/gusto_embedded/src/funcs/historicalEmployeesUpdate.ts index cf470165..8953a271 100644 --- a/gusto_embedded/src/funcs/historicalEmployeesUpdate.ts +++ b/gusto_embedded/src/funcs/historicalEmployeesUpdate.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-historical_employees", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesAddEmployees.ts b/gusto_embedded/src/funcs/holidayPayPoliciesAddEmployees.ts index b8c62bc9..01c81932 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesAddEmployees.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesAddEmployees.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-companies-company_uuid-holiday_pay_policy-add", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesCreate.ts b/gusto_embedded/src/funcs/holidayPayPoliciesCreate.ts index a4994320..8845a0a3 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesCreate.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-companies-company_uuid-holiday_pay_policy", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesDelete.ts b/gusto_embedded/src/funcs/holidayPayPoliciesDelete.ts index 62a435ca..907a9910 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesDelete.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesDelete.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-companies-company_uuid-holiday_pay_policy", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesGet.ts b/gusto_embedded/src/funcs/holidayPayPoliciesGet.ts index 0ab9b190..4cf1c1af 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesGet.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesGet.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-company_uuid-holiday_pay_policy", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesRemoveEmployees.ts b/gusto_embedded/src/funcs/holidayPayPoliciesRemoveEmployees.ts index ff53118e..1a5e59fa 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesRemoveEmployees.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesRemoveEmployees.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-companies-company_uuid-holiday_pay_policy-remove", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/holidayPayPoliciesUpdate.ts b/gusto_embedded/src/funcs/holidayPayPoliciesUpdate.ts index becf40dc..aa9c67f3 100644 --- a/gusto_embedded/src/funcs/holidayPayPoliciesUpdate.ts +++ b/gusto_embedded/src/funcs/holidayPayPoliciesUpdate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-companies-company_uuid-holiday_pay_policy", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationCreateDocuments.ts b/gusto_embedded/src/funcs/i9VerificationCreateDocuments.ts index 22022751..87c44205 100644 --- a/gusto_embedded/src/funcs/i9VerificationCreateDocuments.ts +++ b/gusto_embedded/src/funcs/i9VerificationCreateDocuments.ts @@ -131,6 +131,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-i9_authorization-documents", oAuth2Scopes: [], @@ -151,6 +152,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationDeleteDocument.ts b/gusto_embedded/src/funcs/i9VerificationDeleteDocument.ts index 8c26cfd2..7d30954a 100644 --- a/gusto_embedded/src/funcs/i9VerificationDeleteDocument.ts +++ b/gusto_embedded/src/funcs/i9VerificationDeleteDocument.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-employees-employee_id-i9_authorization-documents-document_id", @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationEmployerSign.ts b/gusto_embedded/src/funcs/i9VerificationEmployerSign.ts index 25550c0c..70f3c60a 100644 --- a/gusto_embedded/src/funcs/i9VerificationEmployerSign.ts +++ b/gusto_embedded/src/funcs/i9VerificationEmployerSign.ts @@ -130,6 +130,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-i9_authorization-employer_sign", oAuth2Scopes: [], @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationGetAuthorization.ts b/gusto_embedded/src/funcs/i9VerificationGetAuthorization.ts index 513d3748..29fb504f 100644 --- a/gusto_embedded/src/funcs/i9VerificationGetAuthorization.ts +++ b/gusto_embedded/src/funcs/i9VerificationGetAuthorization.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-i9_authorization", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationGetDocumentOptions.ts b/gusto_embedded/src/funcs/i9VerificationGetDocumentOptions.ts index 23bb4b24..15de7233 100644 --- a/gusto_embedded/src/funcs/i9VerificationGetDocumentOptions.ts +++ b/gusto_embedded/src/funcs/i9VerificationGetDocumentOptions.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-i9_authorization-document_options", @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationGetDocuments.ts b/gusto_embedded/src/funcs/i9VerificationGetDocuments.ts index d5789ac3..e47c853c 100644 --- a/gusto_embedded/src/funcs/i9VerificationGetDocuments.ts +++ b/gusto_embedded/src/funcs/i9VerificationGetDocuments.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-i9_authorization-documents", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/i9VerificationUpdate.ts b/gusto_embedded/src/funcs/i9VerificationUpdate.ts index 521b2227..d0ced4a0 100644 --- a/gusto_embedded/src/funcs/i9VerificationUpdate.ts +++ b/gusto_embedded/src/funcs/i9VerificationUpdate.ts @@ -143,6 +143,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-employees-employee_id-i9_authorization", oAuth2Scopes: [], @@ -163,6 +164,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/industrySelectionGet.ts b/gusto_embedded/src/funcs/industrySelectionGet.ts index 5297726d..b56bee94 100644 --- a/gusto_embedded/src/funcs/industrySelectionGet.ts +++ b/gusto_embedded/src/funcs/industrySelectionGet.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-industry", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/industrySelectionUpdate.ts b/gusto_embedded/src/funcs/industrySelectionUpdate.ts index 139117bd..24822ea6 100644 --- a/gusto_embedded/src/funcs/industrySelectionUpdate.ts +++ b/gusto_embedded/src/funcs/industrySelectionUpdate.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-company-industry", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/informationRequestsGetInformationRequests.ts b/gusto_embedded/src/funcs/informationRequestsGetInformationRequests.ts index 974d6121..8c84c154 100644 --- a/gusto_embedded/src/funcs/informationRequestsGetInformationRequests.ts +++ b/gusto_embedded/src/funcs/informationRequestsGetInformationRequests.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-information-requests", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/introspectionGetInfo.ts b/gusto_embedded/src/funcs/introspectionGetInfo.ts index ce063772..9e57e1f2 100644 --- a/gusto_embedded/src/funcs/introspectionGetInfo.ts +++ b/gusto_embedded/src/funcs/introspectionGetInfo.ts @@ -105,6 +105,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-token-info", oAuth2Scopes: [], @@ -125,6 +126,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/introspectionRefreshToken.ts b/gusto_embedded/src/funcs/introspectionRefreshToken.ts index a9c4c13a..2ada78af 100644 --- a/gusto_embedded/src/funcs/introspectionRefreshToken.ts +++ b/gusto_embedded/src/funcs/introspectionRefreshToken.ts @@ -110,6 +110,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "refresh-access-token", oAuth2Scopes: [], @@ -130,6 +131,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/invoicesGet.ts b/gusto_embedded/src/funcs/invoicesGet.ts index 437035b4..f8c1be32 100644 --- a/gusto_embedded/src/funcs/invoicesGet.ts +++ b/gusto_embedded/src/funcs/invoicesGet.ts @@ -138,6 +138,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-invoices-invoice-period", oAuth2Scopes: null, @@ -159,6 +160,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsCreateCompensation.ts b/gusto_embedded/src/funcs/jobsAndCompensationsCreateCompensation.ts index 6eab6ecf..1767802e 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsCreateCompensation.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsCreateCompensation.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-compensations-compensation_id", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsCreateJob.ts b/gusto_embedded/src/funcs/jobsAndCompensationsCreateJob.ts index ee21c263..765bc431 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsCreateJob.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsCreateJob.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-jobs-job_id", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsDelete.ts b/gusto_embedded/src/funcs/jobsAndCompensationsDelete.ts index a86f918f..0681cd42 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsDelete.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsDelete.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-jobs-job_id", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsDeleteCompensation.ts b/gusto_embedded/src/funcs/jobsAndCompensationsDeleteCompensation.ts index 0e6b4584..da5f9c1d 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsDeleteCompensation.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsDeleteCompensation.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-compensations-compensation_id", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensation.ts b/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensation.ts index 3d803ec5..e3299b65 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensation.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensation.ts @@ -115,6 +115,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-compensations-compensation_id", oAuth2Scopes: [], @@ -135,6 +136,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensations.ts b/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensations.ts index 12d32c37..ea53eb82 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensations.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsGetCompensations.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-jobs-job_id-compensations", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsGetJob.ts b/gusto_embedded/src/funcs/jobsAndCompensationsGetJob.ts index 9ad5fac7..c755fedd 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsGetJob.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsGetJob.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-jobs-job_id", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsGetJobs.ts b/gusto_embedded/src/funcs/jobsAndCompensationsGetJobs.ts index 252afa3f..a6bd691a 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsGetJobs.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsGetJobs.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_id-jobs", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsUpdate.ts b/gusto_embedded/src/funcs/jobsAndCompensationsUpdate.ts index e5888ca2..1c209df8 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsUpdate.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsUpdate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-jobs-job_id", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/jobsAndCompensationsUpdateCompensation.ts b/gusto_embedded/src/funcs/jobsAndCompensationsUpdateCompensation.ts index 060e1db6..2cb60fce 100644 --- a/gusto_embedded/src/funcs/jobsAndCompensationsUpdateCompensation.ts +++ b/gusto_embedded/src/funcs/jobsAndCompensationsUpdateCompensation.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-compensations-compensation_id", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/locationsCreate.ts b/gusto_embedded/src/funcs/locationsCreate.ts index 93675101..16c979f0 100644 --- a/gusto_embedded/src/funcs/locationsCreate.ts +++ b/gusto_embedded/src/funcs/locationsCreate.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-locations", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/locationsGet.ts b/gusto_embedded/src/funcs/locationsGet.ts index 1faa982e..ed26ba93 100644 --- a/gusto_embedded/src/funcs/locationsGet.ts +++ b/gusto_embedded/src/funcs/locationsGet.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-locations", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/locationsGetMinimumWages.ts b/gusto_embedded/src/funcs/locationsGetMinimumWages.ts index 3d03dfd9..7bb6d666 100644 --- a/gusto_embedded/src/funcs/locationsGetMinimumWages.ts +++ b/gusto_embedded/src/funcs/locationsGetMinimumWages.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-locations-location_uuid-minimum_wages", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/locationsRetrieve.ts b/gusto_embedded/src/funcs/locationsRetrieve.ts index 594dbd63..21877610 100644 --- a/gusto_embedded/src/funcs/locationsRetrieve.ts +++ b/gusto_embedded/src/funcs/locationsRetrieve.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-locations-location_id", oAuth2Scopes: [], @@ -140,6 +141,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/locationsUpdate.ts b/gusto_embedded/src/funcs/locationsUpdate.ts index 4a4fa04c..e6fb0e73 100644 --- a/gusto_embedded/src/funcs/locationsUpdate.ts +++ b/gusto_embedded/src/funcs/locationsUpdate.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-locations-location_id", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/notificationsGetDetails.ts b/gusto_embedded/src/funcs/notificationsGetDetails.ts index 05945c7c..4010908a 100644 --- a/gusto_embedded/src/funcs/notificationsGetDetails.ts +++ b/gusto_embedded/src/funcs/notificationsGetDetails.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-notifications-notification_uuid", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesAssign.ts b/gusto_embedded/src/funcs/paySchedulesAssign.ts index ca326887..3bc33e06 100644 --- a/gusto_embedded/src/funcs/paySchedulesAssign.ts +++ b/gusto_embedded/src/funcs/paySchedulesAssign.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-pay_schedules-assign", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesCreate.ts b/gusto_embedded/src/funcs/paySchedulesCreate.ts index d60f9e0e..854586f5 100644 --- a/gusto_embedded/src/funcs/paySchedulesCreate.ts +++ b/gusto_embedded/src/funcs/paySchedulesCreate.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-pay_schedules", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGet.ts b/gusto_embedded/src/funcs/paySchedulesGet.ts index 5285b6a1..fc9d0327 100644 --- a/gusto_embedded/src/funcs/paySchedulesGet.ts +++ b/gusto_embedded/src/funcs/paySchedulesGet.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-pay_schedules-pay_schedule_id", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGetAll.ts b/gusto_embedded/src/funcs/paySchedulesGetAll.ts index 635caac3..3544d19e 100644 --- a/gusto_embedded/src/funcs/paySchedulesGetAll.ts +++ b/gusto_embedded/src/funcs/paySchedulesGetAll.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-pay_schedules", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGetAssignments.ts b/gusto_embedded/src/funcs/paySchedulesGetAssignments.ts index 774a02d7..2202fda6 100644 --- a/gusto_embedded/src/funcs/paySchedulesGetAssignments.ts +++ b/gusto_embedded/src/funcs/paySchedulesGetAssignments.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-pay_schedules-assignments", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGetPayPeriods.ts b/gusto_embedded/src/funcs/paySchedulesGetPayPeriods.ts index 0ff5587b..3d827cfd 100644 --- a/gusto_embedded/src/funcs/paySchedulesGetPayPeriods.ts +++ b/gusto_embedded/src/funcs/paySchedulesGetPayPeriods.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-pay_periods", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGetPreview.ts b/gusto_embedded/src/funcs/paySchedulesGetPreview.ts index 03aebdd8..5aba718f 100644 --- a/gusto_embedded/src/funcs/paySchedulesGetPreview.ts +++ b/gusto_embedded/src/funcs/paySchedulesGetPreview.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-pay_schedules-preview", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesGetUnprocessedTerminationPeriods.ts b/gusto_embedded/src/funcs/paySchedulesGetUnprocessedTerminationPeriods.ts index 6d1072ef..748d2d32 100644 --- a/gusto_embedded/src/funcs/paySchedulesGetUnprocessedTerminationPeriods.ts +++ b/gusto_embedded/src/funcs/paySchedulesGetUnprocessedTerminationPeriods.ts @@ -120,6 +120,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-unprocessed_termination_pay_periods", @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesPreviewAssignment.ts b/gusto_embedded/src/funcs/paySchedulesPreviewAssignment.ts index ebd028c8..747e2865 100644 --- a/gusto_embedded/src/funcs/paySchedulesPreviewAssignment.ts +++ b/gusto_embedded/src/funcs/paySchedulesPreviewAssignment.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-pay_schedules-assignment_preview", @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paySchedulesUpdate.ts b/gusto_embedded/src/funcs/paySchedulesUpdate.ts index 3df8861a..8da9bd09 100644 --- a/gusto_embedded/src/funcs/paySchedulesUpdate.ts +++ b/gusto_embedded/src/funcs/paySchedulesUpdate.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-pay_schedules-pay_schedule_id", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paymentConfigsGet.ts b/gusto_embedded/src/funcs/paymentConfigsGet.ts index e4e5baec..4f5b1cea 100644 --- a/gusto_embedded/src/funcs/paymentConfigsGet.ts +++ b/gusto_embedded/src/funcs/paymentConfigsGet.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-company-payment-configs", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/paymentConfigsUpdate.ts b/gusto_embedded/src/funcs/paymentConfigsUpdate.ts index 6e9d115a..f9c5157e 100644 --- a/gusto_embedded/src/funcs/paymentConfigsUpdate.ts +++ b/gusto_embedded/src/funcs/paymentConfigsUpdate.ts @@ -123,6 +123,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-company-payment-configs", oAuth2Scopes: [], @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsCalculate.ts b/gusto_embedded/src/funcs/payrollsCalculate.ts index aa290695..aba266a7 100644 --- a/gusto_embedded/src/funcs/payrollsCalculate.ts +++ b/gusto_embedded/src/funcs/payrollsCalculate.ts @@ -131,6 +131,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-payrolls-payroll_id-calculate", oAuth2Scopes: [], @@ -151,6 +152,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsCalculateGrossUp.ts b/gusto_embedded/src/funcs/payrollsCalculateGrossUp.ts index 7d282632..9a25c1d1 100644 --- a/gusto_embedded/src/funcs/payrollsCalculateGrossUp.ts +++ b/gusto_embedded/src/funcs/payrollsCalculateGrossUp.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-payrolls-gross-up-payroll_uuid", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsCancel.ts b/gusto_embedded/src/funcs/payrollsCancel.ts index 8cf3872d..44c8a7ee 100644 --- a/gusto_embedded/src/funcs/payrollsCancel.ts +++ b/gusto_embedded/src/funcs/payrollsCancel.ts @@ -130,6 +130,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-api-v1-companies-company_id-payrolls-payroll_id-cancel", oAuth2Scopes: [], @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsCreateOffCycle.ts b/gusto_embedded/src/funcs/payrollsCreateOffCycle.ts index 76fe8075..9749fa2a 100644 --- a/gusto_embedded/src/funcs/payrollsCreateOffCycle.ts +++ b/gusto_embedded/src/funcs/payrollsCreateOffCycle.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_id-payrolls", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsDelete.ts b/gusto_embedded/src/funcs/payrollsDelete.ts index 3af66727..afd05cf7 100644 --- a/gusto_embedded/src/funcs/payrollsDelete.ts +++ b/gusto_embedded/src/funcs/payrollsDelete.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-companies-company_id-payrolls", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGeneratePrintableChecks.ts b/gusto_embedded/src/funcs/payrollsGeneratePrintableChecks.ts index 7f7fcb51..89921f94 100644 --- a/gusto_embedded/src/funcs/payrollsGeneratePrintableChecks.ts +++ b/gusto_embedded/src/funcs/payrollsGeneratePrintableChecks.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-payrolls-payroll_uuid-generated_documents-printable_payroll_checks", @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGet.ts b/gusto_embedded/src/funcs/payrollsGet.ts index 85809dac..3201d391 100644 --- a/gusto_embedded/src/funcs/payrollsGet.ts +++ b/gusto_embedded/src/funcs/payrollsGet.ts @@ -134,6 +134,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-payrolls-payroll_id", oAuth2Scopes: [], @@ -155,6 +156,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGetApprovedReversals.ts b/gusto_embedded/src/funcs/payrollsGetApprovedReversals.ts index d3471f39..665ab55e 100644 --- a/gusto_embedded/src/funcs/payrollsGetApprovedReversals.ts +++ b/gusto_embedded/src/funcs/payrollsGetApprovedReversals.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-payroll_reversals", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGetBlockers.ts b/gusto_embedded/src/funcs/payrollsGetBlockers.ts index 7ae3d1ed..9761f5f1 100644 --- a/gusto_embedded/src/funcs/payrollsGetBlockers.ts +++ b/gusto_embedded/src/funcs/payrollsGetBlockers.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-payroll-blockers-company_uuid", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGetPayStub.ts b/gusto_embedded/src/funcs/payrollsGetPayStub.ts index bd40a94d..cd5a484f 100644 --- a/gusto_embedded/src/funcs/payrollsGetPayStub.ts +++ b/gusto_embedded/src/funcs/payrollsGetPayStub.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-payrolls-payroll_uuid-employees-employee_uuid-pay_stub", @@ -143,6 +144,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGetPayStubs.ts b/gusto_embedded/src/funcs/payrollsGetPayStubs.ts index f96fa63c..fbfb967e 100644 --- a/gusto_embedded/src/funcs/payrollsGetPayStubs.ts +++ b/gusto_embedded/src/funcs/payrollsGetPayStubs.ts @@ -121,6 +121,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-employees-employee_uuid-pay_stubs", oAuth2Scopes: [], @@ -141,6 +142,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsGetReceipt.ts b/gusto_embedded/src/funcs/payrollsGetReceipt.ts index a800b8d4..b5f18d9d 100644 --- a/gusto_embedded/src/funcs/payrollsGetReceipt.ts +++ b/gusto_embedded/src/funcs/payrollsGetReceipt.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-payment-receipts-payrolls-payroll_uuid", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsList.ts b/gusto_embedded/src/funcs/payrollsList.ts index 70bcab04..6a3622ea 100644 --- a/gusto_embedded/src/funcs/payrollsList.ts +++ b/gusto_embedded/src/funcs/payrollsList.ts @@ -136,6 +136,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_id-payrolls", oAuth2Scopes: [], @@ -157,6 +158,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsPrepare.ts b/gusto_embedded/src/funcs/payrollsPrepare.ts index 4ccbfc4d..66905163 100644 --- a/gusto_embedded/src/funcs/payrollsPrepare.ts +++ b/gusto_embedded/src/funcs/payrollsPrepare.ts @@ -3,7 +3,7 @@ */ import { GustoEmbeddedCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -93,7 +93,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = null; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); const pathParams = { company_id: encodeSimple("company_id", payload.company_id, { @@ -111,6 +111,7 @@ async function $do( )(pathParams); const headers = new Headers(compactMap({ + "Content-Type": "application/json", Accept: "application/json", "X-Gusto-API-Version": encodeSimple( "X-Gusto-API-Version", @@ -126,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-payrolls-payroll_id-prepare", oAuth2Scopes: [], @@ -146,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsSkip.ts b/gusto_embedded/src/funcs/payrollsSkip.ts index 1ce47bed..da3f17a1 100644 --- a/gusto_embedded/src/funcs/payrollsSkip.ts +++ b/gusto_embedded/src/funcs/payrollsSkip.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-companies-payroll-skip-company_uuid", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsSubmit.ts b/gusto_embedded/src/funcs/payrollsSubmit.ts index c7197a32..15aec72d 100644 --- a/gusto_embedded/src/funcs/payrollsSubmit.ts +++ b/gusto_embedded/src/funcs/payrollsSubmit.ts @@ -133,6 +133,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-payrolls-payroll_id-submit", oAuth2Scopes: [], @@ -153,6 +154,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/payrollsUpdate.ts b/gusto_embedded/src/funcs/payrollsUpdate.ts index 7179545c..5f91f961 100644 --- a/gusto_embedded/src/funcs/payrollsUpdate.ts +++ b/gusto_embedded/src/funcs/payrollsUpdate.ts @@ -131,6 +131,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_id-payrolls", oAuth2Scopes: [], @@ -151,6 +152,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/recoveryCasesGet.ts b/gusto_embedded/src/funcs/recoveryCasesGet.ts index 07244bae..95d38314 100644 --- a/gusto_embedded/src/funcs/recoveryCasesGet.ts +++ b/gusto_embedded/src/funcs/recoveryCasesGet.ts @@ -116,6 +116,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-recovery-cases", oAuth2Scopes: [], @@ -136,6 +137,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/recoveryCasesRedebit.ts b/gusto_embedded/src/funcs/recoveryCasesRedebit.ts index 57593c77..a4709dd9 100644 --- a/gusto_embedded/src/funcs/recoveryCasesRedebit.ts +++ b/gusto_embedded/src/funcs/recoveryCasesRedebit.ts @@ -127,6 +127,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "redebit-recovery-case", oAuth2Scopes: [], @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/reportsCreateCustom.ts b/gusto_embedded/src/funcs/reportsCreateCustom.ts index 9e199ef9..992b1f4c 100644 --- a/gusto_embedded/src/funcs/reportsCreateCustom.ts +++ b/gusto_embedded/src/funcs/reportsCreateCustom.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-companies-company_uuid-reports", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/reportsGetReportsRequestUuid.ts b/gusto_embedded/src/funcs/reportsGetReportsRequestUuid.ts index b13d9412..426d1576 100644 --- a/gusto_embedded/src/funcs/reportsGetReportsRequestUuid.ts +++ b/gusto_embedded/src/funcs/reportsGetReportsRequestUuid.ts @@ -114,6 +114,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-reports-request_uuid", oAuth2Scopes: [], @@ -134,6 +135,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/reportsGetTemplate.ts b/gusto_embedded/src/funcs/reportsGetTemplate.ts index 58747737..7b39a134 100644 --- a/gusto_embedded/src/funcs/reportsGetTemplate.ts +++ b/gusto_embedded/src/funcs/reportsGetTemplate.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-company_uuid-report-templates-report_type", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/reportsPostPayrollsPayrollUuidReportsGeneralLedger.ts b/gusto_embedded/src/funcs/reportsPostPayrollsPayrollUuidReportsGeneralLedger.ts index 70c5f33d..b91e5a76 100644 --- a/gusto_embedded/src/funcs/reportsPostPayrollsPayrollUuidReportsGeneralLedger.ts +++ b/gusto_embedded/src/funcs/reportsPostPayrollsPayrollUuidReportsGeneralLedger.ts @@ -128,6 +128,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-payrolls-payroll_uuid-reports-general_ledger", oAuth2Scopes: [], @@ -148,6 +149,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/signatoriesCreate.ts b/gusto_embedded/src/funcs/signatoriesCreate.ts index 108a9b5b..567ad9b3 100644 --- a/gusto_embedded/src/funcs/signatoriesCreate.ts +++ b/gusto_embedded/src/funcs/signatoriesCreate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-company-signatories", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/signatoriesDelete.ts b/gusto_embedded/src/funcs/signatoriesDelete.ts index 4dc61a72..c6eae4b9 100644 --- a/gusto_embedded/src/funcs/signatoriesDelete.ts +++ b/gusto_embedded/src/funcs/signatoriesDelete.ts @@ -122,6 +122,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-companies-company_uuid-signatories-signatory_uuid", oAuth2Scopes: [], @@ -142,6 +143,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/signatoriesInvite.ts b/gusto_embedded/src/funcs/signatoriesInvite.ts index ab140ba2..1fe0c7c1 100644 --- a/gusto_embedded/src/funcs/signatoriesInvite.ts +++ b/gusto_embedded/src/funcs/signatoriesInvite.ts @@ -124,6 +124,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-companies-company_uuid-signatories-invite", oAuth2Scopes: [], @@ -144,6 +145,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/signatoriesList.ts b/gusto_embedded/src/funcs/signatoriesList.ts index bd609340..63c465d1 100644 --- a/gusto_embedded/src/funcs/signatoriesList.ts +++ b/gusto_embedded/src/funcs/signatoriesList.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_uuid-signatories", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/signatoriesUpdate.ts b/gusto_embedded/src/funcs/signatoriesUpdate.ts index e9f8f4d5..b35dca06 100644 --- a/gusto_embedded/src/funcs/signatoriesUpdate.ts +++ b/gusto_embedded/src/funcs/signatoriesUpdate.ts @@ -129,6 +129,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_uuid-signatories-signatory_uuid", oAuth2Scopes: [], @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/taxRequirementsGet.ts b/gusto_embedded/src/funcs/taxRequirementsGet.ts index 72391c7a..2a51597b 100644 --- a/gusto_embedded/src/funcs/taxRequirementsGet.ts +++ b/gusto_embedded/src/funcs/taxRequirementsGet.ts @@ -166,6 +166,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_uuid-tax_requirements-state", oAuth2Scopes: [], @@ -187,6 +188,7 @@ async function $do( headers: headers, query: query, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/taxRequirementsGetAll.ts b/gusto_embedded/src/funcs/taxRequirementsGetAll.ts index cef71b03..13e7d494 100644 --- a/gusto_embedded/src/funcs/taxRequirementsGetAll.ts +++ b/gusto_embedded/src/funcs/taxRequirementsGetAll.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-companies-company_uuid-tax_requirements", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/taxRequirementsUpdateState.ts b/gusto_embedded/src/funcs/taxRequirementsUpdateState.ts index 67a51e0e..d3cd6339 100644 --- a/gusto_embedded/src/funcs/taxRequirementsUpdateState.ts +++ b/gusto_embedded/src/funcs/taxRequirementsUpdateState.ts @@ -130,6 +130,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-companies-company_uuid-tax_requirements-state", oAuth2Scopes: [], @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesAddEmployees.ts b/gusto_embedded/src/funcs/timeOffPoliciesAddEmployees.ts index 7761daaa..1fd8ceab 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesAddEmployees.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesAddEmployees.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-version-time_off_policies-time_off_policy_uuid-add_employees", @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesCalculateAccruingTimeOffHours.ts b/gusto_embedded/src/funcs/timeOffPoliciesCalculateAccruingTimeOffHours.ts index bd712149..f691ee4c 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesCalculateAccruingTimeOffHours.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesCalculateAccruingTimeOffHours.ts @@ -137,6 +137,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-payrolls-payroll_id-calculate_accruing_time_off_hours", @@ -158,6 +159,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesCreate.ts b/gusto_embedded/src/funcs/timeOffPoliciesCreate.ts index 7706da62..56b50346 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesCreate.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesCreate.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-companies-company_uuid-time_off_policies", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesDeactivate.ts b/gusto_embedded/src/funcs/timeOffPoliciesDeactivate.ts index 15a948e6..ec2b604c 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesDeactivate.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesDeactivate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-time_off_policies-time_off_policy_uuid-deactivate", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesGet.ts b/gusto_embedded/src/funcs/timeOffPoliciesGet.ts index 98a5fa37..47ea257b 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesGet.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesGet.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-time_off_policies-time_off_policy_uuid", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesGetAll.ts b/gusto_embedded/src/funcs/timeOffPoliciesGetAll.ts index 7733da51..779d58a2 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesGetAll.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesGetAll.ts @@ -117,6 +117,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-company_uuid-time_off_policies", oAuth2Scopes: [], @@ -137,6 +138,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesRemoveEmployees.ts b/gusto_embedded/src/funcs/timeOffPoliciesRemoveEmployees.ts index 798938ba..55a2785f 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesRemoveEmployees.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesRemoveEmployees.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-time_off_policies-time_off_policy_uuid-remove_employees", @@ -147,6 +148,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesUpdate.ts b/gusto_embedded/src/funcs/timeOffPoliciesUpdate.ts index a7af8b72..373db7cc 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesUpdate.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesUpdate.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-time_off_policies-time_off_policy_uuid", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/timeOffPoliciesUpdateBalance.ts b/gusto_embedded/src/funcs/timeOffPoliciesUpdateBalance.ts index 68394515..31bca5b6 100644 --- a/gusto_embedded/src/funcs/timeOffPoliciesUpdateBalance.ts +++ b/gusto_embedded/src/funcs/timeOffPoliciesUpdateBalance.ts @@ -126,6 +126,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-version-time_off_policies-time_off_policy_uuid-balance", oAuth2Scopes: [], @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksCreateSubscription.ts b/gusto_embedded/src/funcs/webhooksCreateSubscription.ts index 624a29f2..cce92be5 100644 --- a/gusto_embedded/src/funcs/webhooksCreateSubscription.ts +++ b/gusto_embedded/src/funcs/webhooksCreateSubscription.ts @@ -126,6 +126,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "post-v1-webhook-subscription", oAuth2Scopes: null, @@ -146,6 +147,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksDeleteSubscription.ts b/gusto_embedded/src/funcs/webhooksDeleteSubscription.ts index ef61d837..c95be55b 100644 --- a/gusto_embedded/src/funcs/webhooksDeleteSubscription.ts +++ b/gusto_embedded/src/funcs/webhooksDeleteSubscription.ts @@ -130,6 +130,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete-v1-webhook-subscription-uuid", oAuth2Scopes: null, @@ -150,6 +151,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksGetSubscription.ts b/gusto_embedded/src/funcs/webhooksGetSubscription.ts index a3582de9..7a0f22f6 100644 --- a/gusto_embedded/src/funcs/webhooksGetSubscription.ts +++ b/gusto_embedded/src/funcs/webhooksGetSubscription.ts @@ -129,6 +129,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-webhook-subscription-uuid", oAuth2Scopes: null, @@ -149,6 +150,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksListSubscriptions.ts b/gusto_embedded/src/funcs/webhooksListSubscriptions.ts index 564c337d..6521b06b 100644 --- a/gusto_embedded/src/funcs/webhooksListSubscriptions.ts +++ b/gusto_embedded/src/funcs/webhooksListSubscriptions.ts @@ -119,6 +119,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-webhook-subscriptions", oAuth2Scopes: null, @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksRequestVerificationToken.ts b/gusto_embedded/src/funcs/webhooksRequestVerificationToken.ts index fbc43d16..33899f01 100644 --- a/gusto_embedded/src/funcs/webhooksRequestVerificationToken.ts +++ b/gusto_embedded/src/funcs/webhooksRequestVerificationToken.ts @@ -132,6 +132,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-v1-webhook-subscription-verification-token-uuid", oAuth2Scopes: null, @@ -152,6 +153,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksUpdateSubscription.ts b/gusto_embedded/src/funcs/webhooksUpdateSubscription.ts index 3726a2da..761d1ad7 100644 --- a/gusto_embedded/src/funcs/webhooksUpdateSubscription.ts +++ b/gusto_embedded/src/funcs/webhooksUpdateSubscription.ts @@ -136,6 +136,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-webhook-subscription-uuid", oAuth2Scopes: null, @@ -156,6 +157,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/webhooksVerify.ts b/gusto_embedded/src/funcs/webhooksVerify.ts index cb777c56..eac56a50 100644 --- a/gusto_embedded/src/funcs/webhooksVerify.ts +++ b/gusto_embedded/src/funcs/webhooksVerify.ts @@ -139,6 +139,7 @@ async function $do( ); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-v1-verify-webhook-subscription-uuid", oAuth2Scopes: null, @@ -159,6 +160,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/wireInRequestsGet.ts b/gusto_embedded/src/funcs/wireInRequestsGet.ts index 695e1e4b..31e23cc2 100644 --- a/gusto_embedded/src/funcs/wireInRequestsGet.ts +++ b/gusto_embedded/src/funcs/wireInRequestsGet.ts @@ -118,6 +118,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-wire_in_requests-wire_in_request_uuid", oAuth2Scopes: [], @@ -138,6 +139,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/wireInRequestsList.ts b/gusto_embedded/src/funcs/wireInRequestsList.ts index 1b6656ba..a108269c 100644 --- a/gusto_embedded/src/funcs/wireInRequestsList.ts +++ b/gusto_embedded/src/funcs/wireInRequestsList.ts @@ -119,6 +119,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get-companies-company_uuid-wire_in_request_uuid", oAuth2Scopes: [], @@ -139,6 +140,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/funcs/wireInRequestsSubmit.ts b/gusto_embedded/src/funcs/wireInRequestsSubmit.ts index 4a246546..c2f7f31f 100644 --- a/gusto_embedded/src/funcs/wireInRequestsSubmit.ts +++ b/gusto_embedded/src/funcs/wireInRequestsSubmit.ts @@ -125,6 +125,7 @@ async function $do( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { + options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "put-wire_in_requests-wire_in_request_uuid", oAuth2Scopes: [], @@ -145,6 +146,7 @@ async function $do( path: path, headers: headers, body: body, + userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); if (!requestRes.ok) { diff --git a/gusto_embedded/src/hooks/types.ts b/gusto_embedded/src/hooks/types.ts index 1d56c6f2..8bfe4fe8 100644 --- a/gusto_embedded/src/hooks/types.ts +++ b/gusto_embedded/src/hooks/types.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { SDKOptions } from "../lib/config.js"; import { HTTPClient, RequestInput } from "../lib/http.js"; import { RetryConfig } from "../lib/retries.js"; import { SecurityState } from "../lib/security.js"; @@ -13,6 +14,7 @@ export type HookContext = { securitySource?: any | (() => Promise); retryConfig: RetryConfig; resolvedSecurity: SecurityState | null; + options: SDKOptions; }; export type Awaitable = T | Promise; diff --git a/gusto_embedded/src/lib/config.ts b/gusto_embedded/src/lib/config.ts index f42b5162..26b68052 100644 --- a/gusto_embedded/src/lib/config.ts +++ b/gusto_embedded/src/lib/config.ts @@ -35,6 +35,10 @@ export type SDKOptions = { * Allows overriding the default server URL used by the SDK */ serverURL?: string | undefined; + /** + * Allows overriding the default user agent used by the SDK + */ + userAgent?: string | undefined; /** * Allows overriding the default retry config used by the SDK */ @@ -60,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "2024-04-01", - sdkVersion: "0.5.15", - genVersion: "2.610.0", + sdkVersion: "0.6.0", + genVersion: "2.616.1", userAgent: - "speakeasy-sdk/typescript 0.5.15 2.610.0 2024-04-01 @gusto/embedded-api", + "speakeasy-sdk/typescript 0.6.0 2.616.1 2024-04-01 @gusto/embedded-api", } as const; diff --git a/gusto_embedded/src/lib/sdks.ts b/gusto_embedded/src/lib/sdks.ts index dda6a5cb..1a0a80f3 100644 --- a/gusto_embedded/src/lib/sdks.ts +++ b/gusto_embedded/src/lib/sdks.ts @@ -65,6 +65,7 @@ type RequestConfig = { headers?: HeadersInit; security?: SecurityState | null; uaHeader?: string; + userAgent?: string | undefined; timeoutMs?: number; }; @@ -96,19 +97,21 @@ export class ClientSDK { } else { this.#hooks = new SDKHooks(); } - this._options = { ...options, hooks: this.#hooks }; - const url = serverURLFromOptions(options); if (url) { url.pathname = url.pathname.replace(/\/+$/, "") + "/"; } + const { baseURL, client } = this.#hooks.sdkInit({ baseURL: url, client: options.httpClient || new HTTPClient(), }); this._baseURL = baseURL; this.#httpClient = client; - this.#logger = options.debugLogger; + + this._options = { ...options, hooks: this.#hooks }; + + this.#logger = this._options.debugLogger; if (!this.#logger && env().GUSTOEMBEDDED_DEBUG) { this.#logger = console; } @@ -184,7 +187,10 @@ export class ClientSDK { // Only set user agent header in non-browser-like environments since CORS // policy disallows setting it in browsers e.g. Chrome throws an error. if (!isBrowserLike) { - headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent); + headers.set( + conf.uaHeader ?? "user-agent", + conf.userAgent ?? SDK_METADATA.userAgent, + ); } const fetchOptions: Omit = { diff --git a/gusto_embedded/src/models/components/contractoraddress.ts b/gusto_embedded/src/models/components/contractoraddress.ts index beddad1c..4cf2b255 100644 --- a/gusto_embedded/src/models/components/contractoraddress.ts +++ b/gusto_embedded/src/models/components/contractoraddress.ts @@ -13,12 +13,12 @@ export type ContractorAddress = { * 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. */ version?: string | undefined; - street1?: string | undefined; + street1?: string | null | undefined; street2?: string | null | undefined; - city?: string | undefined; - state?: string | undefined; - zip?: string | undefined; - country?: string | undefined; + city?: string | null | undefined; + state?: string | null | undefined; + zip?: string | null | undefined; + country?: string | null | undefined; /** * The status of the location. Inactive locations have been deleted, but may still have historical data associated with them. */ @@ -36,12 +36,12 @@ export const ContractorAddress$inboundSchema: z.ZodType< unknown > = z.object({ version: z.string().optional(), - street_1: z.string().optional(), + street_1: z.nullable(z.string()).optional(), street_2: z.nullable(z.string()).optional(), - city: z.string().optional(), - state: z.string().optional(), - zip: z.string().optional(), - country: z.string().default("USA"), + city: z.nullable(z.string()).optional(), + state: z.nullable(z.string()).optional(), + zip: z.nullable(z.string()).optional(), + country: z.nullable(z.string().default("USA")), active: z.boolean().optional(), contractor_uuid: z.string().optional(), }).transform((v) => { @@ -55,12 +55,12 @@ export const ContractorAddress$inboundSchema: z.ZodType< /** @internal */ export type ContractorAddress$Outbound = { version?: string | undefined; - street_1?: string | undefined; + street_1?: string | null | undefined; street_2?: string | null | undefined; - city?: string | undefined; - state?: string | undefined; - zip?: string | undefined; - country: string; + city?: string | null | undefined; + state?: string | null | undefined; + zip?: string | null | undefined; + country: string | null; active?: boolean | undefined; contractor_uuid?: string | undefined; }; @@ -72,12 +72,12 @@ export const ContractorAddress$outboundSchema: z.ZodType< ContractorAddress > = z.object({ version: z.string().optional(), - street1: z.string().optional(), + street1: z.nullable(z.string()).optional(), street2: z.nullable(z.string()).optional(), - city: z.string().optional(), - state: z.string().optional(), - zip: z.string().optional(), - country: z.string().default("USA"), + city: z.nullable(z.string()).optional(), + state: z.nullable(z.string()).optional(), + zip: z.nullable(z.string()).optional(), + country: z.nullable(z.string().default("USA")), active: z.boolean().optional(), contractorUuid: z.string().optional(), }).transform((v) => { diff --git a/gusto_embedded/src/models/components/employeeaddress.ts b/gusto_embedded/src/models/components/employeeaddress.ts index b5b2677b..bf7c5b61 100644 --- a/gusto_embedded/src/models/components/employeeaddress.ts +++ b/gusto_embedded/src/models/components/employeeaddress.ts @@ -10,24 +10,10 @@ import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type EmployeeAddress = { - /** - * 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. - */ - version?: string | undefined; - street1?: string | undefined; - street2?: string | null | undefined; - city?: string | undefined; - state?: string | undefined; - zip?: string | undefined; - country?: string | undefined; - /** - * The status of the location. Inactive locations have been deleted, but may still have historical data associated with them. - */ - active?: boolean | undefined; /** * The UUID of the employee address */ - uuid?: string | undefined; + uuid: string; /** * The UUID of the employee */ @@ -40,6 +26,20 @@ export type EmployeeAddress = { * Determines if home taxes should be withheld and paid for employee. */ courtesyWithholding?: boolean | undefined; + street1?: string | undefined; + street2?: string | null | undefined; + city?: string | undefined; + state?: string | undefined; + zip?: string | undefined; + country?: string | undefined; + /** + * The status of the location. Inactive locations have been deleted, but may still have historical data associated with them. + */ + active?: boolean | undefined; + /** + * 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. + */ + version: string; }; /** @internal */ @@ -48,7 +48,10 @@ export const EmployeeAddress$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - version: z.string().optional(), + uuid: z.string(), + employee_uuid: z.string().optional(), + effective_date: z.string().transform(v => new RFCDate(v)).optional(), + courtesy_withholding: z.boolean().optional(), street_1: z.string().optional(), street_2: z.nullable(z.string()).optional(), city: z.string().optional(), @@ -56,23 +59,23 @@ export const EmployeeAddress$inboundSchema: z.ZodType< zip: z.string().optional(), country: z.string().default("USA"), active: z.boolean().optional(), - uuid: z.string().optional(), - employee_uuid: z.string().optional(), - effective_date: z.string().transform(v => new RFCDate(v)).optional(), - courtesy_withholding: z.boolean().optional(), + version: z.string(), }).transform((v) => { return remap$(v, { - "street_1": "street1", - "street_2": "street2", "employee_uuid": "employeeUuid", "effective_date": "effectiveDate", "courtesy_withholding": "courtesyWithholding", + "street_1": "street1", + "street_2": "street2", }); }); /** @internal */ export type EmployeeAddress$Outbound = { - version?: string | undefined; + uuid: string; + employee_uuid?: string | undefined; + effective_date?: string | undefined; + courtesy_withholding?: boolean | undefined; street_1?: string | undefined; street_2?: string | null | undefined; city?: string | undefined; @@ -80,10 +83,7 @@ export type EmployeeAddress$Outbound = { zip?: string | undefined; country: string; active?: boolean | undefined; - uuid?: string | undefined; - employee_uuid?: string | undefined; - effective_date?: string | undefined; - courtesy_withholding?: boolean | undefined; + version: string; }; /** @internal */ @@ -92,7 +92,10 @@ export const EmployeeAddress$outboundSchema: z.ZodType< z.ZodTypeDef, EmployeeAddress > = z.object({ - version: z.string().optional(), + uuid: z.string(), + employeeUuid: z.string().optional(), + effectiveDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), + courtesyWithholding: z.boolean().optional(), street1: z.string().optional(), street2: z.nullable(z.string()).optional(), city: z.string().optional(), @@ -100,17 +103,14 @@ export const EmployeeAddress$outboundSchema: z.ZodType< zip: z.string().optional(), country: z.string().default("USA"), active: z.boolean().optional(), - uuid: z.string().optional(), - employeeUuid: z.string().optional(), - effectiveDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), - courtesyWithholding: z.boolean().optional(), + version: z.string(), }).transform((v) => { return remap$(v, { - street1: "street_1", - street2: "street_2", employeeUuid: "employee_uuid", effectiveDate: "effective_date", courtesyWithholding: "courtesy_withholding", + street1: "street_1", + street2: "street_2", }); }); diff --git a/gusto_embedded/src/models/operations/deletev1homeaddresseshomeaddressuuid.ts b/gusto_embedded/src/models/operations/deletev1homeaddresseshomeaddressuuid.ts index 889bc53a..b4e808ff 100644 --- a/gusto_embedded/src/models/operations/deletev1homeaddresseshomeaddressuuid.ts +++ b/gusto_embedded/src/models/operations/deletev1homeaddresseshomeaddressuuid.ts @@ -5,6 +5,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { HTTPMetadata, @@ -12,28 +13,62 @@ import { HTTPMetadata$Outbound, HTTPMetadata$outboundSchema, } from "../components/httpmetadata.js"; -import { - VersionHeader, - VersionHeader$inboundSchema, - VersionHeader$outboundSchema, -} from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * 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. + */ +export const DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = { + TwoThousandAndTwentyFourMinus04Minus01: "2024-04-01", +} as const; +/** + * 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. + */ +export type DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + ClosedEnum; + export type DeleteV1HomeAddressesHomeAddressUuidRequest = { /** - * The UUID of the home address + * 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. */ - homeAddressUuid: string; + xGustoAPIVersion?: + | DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; /** - * 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. + * The UUID of the home address */ - xGustoAPIVersion?: VersionHeader | undefined; + homeAddressUuid: string; }; export type DeleteV1HomeAddressesHomeAddressUuidResponse = { httpMeta: HTTPMetadata; }; +/** @internal */ +export const DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema: + z.ZodNativeEnum< + typeof DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = z.nativeEnum(DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion); + +/** @internal */ +export const DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema: + z.ZodNativeEnum< + typeof DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$ { + /** @deprecated use `DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema` instead. */ + export const inboundSchema = + DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + /** @deprecated use `DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema` instead. */ + export const outboundSchema = + DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema; +} + /** @internal */ export const DeleteV1HomeAddressesHomeAddressUuidRequest$inboundSchema: z.ZodType< @@ -41,19 +76,21 @@ export const DeleteV1HomeAddressesHomeAddressUuidRequest$inboundSchema: z.ZodTypeDef, unknown > = z.object({ + "X-Gusto-API-Version": + DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema + .default("2024-04-01"), home_address_uuid: z.string(), - "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), }).transform((v) => { return remap$(v, { - "home_address_uuid": "homeAddressUuid", "X-Gusto-API-Version": "xGustoAPIVersion", + "home_address_uuid": "homeAddressUuid", }); }); /** @internal */ export type DeleteV1HomeAddressesHomeAddressUuidRequest$Outbound = { - home_address_uuid: string; "X-Gusto-API-Version": string; + home_address_uuid: string; }; /** @internal */ @@ -63,12 +100,14 @@ export const DeleteV1HomeAddressesHomeAddressUuidRequest$outboundSchema: z.ZodTypeDef, DeleteV1HomeAddressesHomeAddressUuidRequest > = z.object({ + xGustoAPIVersion: + DeleteV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema + .default("2024-04-01"), homeAddressUuid: z.string(), - xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), }).transform((v) => { return remap$(v, { - homeAddressUuid: "home_address_uuid", xGustoAPIVersion: "X-Gusto-API-Version", + homeAddressUuid: "home_address_uuid", }); }); diff --git a/gusto_embedded/src/models/operations/getv1companiescompanyidemployees.ts b/gusto_embedded/src/models/operations/getv1companiescompanyidemployees.ts index adadab36..b3177c4f 100644 --- a/gusto_embedded/src/models/operations/getv1companiescompanyidemployees.ts +++ b/gusto_embedded/src/models/operations/getv1companiescompanyidemployees.ts @@ -48,14 +48,15 @@ export type GetV1CompaniesCompanyIdEmployeesRequest = { xGustoAPIVersion?: | GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion | undefined; - /** - * The UUID of the company - */ - companyId: string; /** * A string to search for in the object's names */ searchTerm?: string | undefined; + /** + * The UUID of the company + */ + companyId: string; + uuids?: Array | undefined; /** * Include the requested attribute(s) in each employee response, multiple options are comma separated. Available options: * @@ -139,8 +140,9 @@ export const GetV1CompaniesCompanyIdEmployeesRequest$inboundSchema: z.ZodType< "X-Gusto-API-Version": GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion$inboundSchema .default("2024-04-01"), - company_id: z.string(), search_term: z.string().optional(), + company_id: z.string(), + uuids: z.array(z.string()).optional(), include: z.array(Include$inboundSchema).optional(), terminated: z.boolean().optional(), page: z.number().int().optional(), @@ -148,16 +150,17 @@ export const GetV1CompaniesCompanyIdEmployeesRequest$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "X-Gusto-API-Version": "xGustoAPIVersion", - "company_id": "companyId", "search_term": "searchTerm", + "company_id": "companyId", }); }); /** @internal */ export type GetV1CompaniesCompanyIdEmployeesRequest$Outbound = { "X-Gusto-API-Version": string; - company_id: string; search_term?: string | undefined; + company_id: string; + uuids?: Array | undefined; include?: Array | undefined; terminated?: boolean | undefined; page?: number | undefined; @@ -173,8 +176,9 @@ export const GetV1CompaniesCompanyIdEmployeesRequest$outboundSchema: z.ZodType< xGustoAPIVersion: GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion$outboundSchema .default("2024-04-01"), - companyId: z.string(), searchTerm: z.string().optional(), + companyId: z.string(), + uuids: z.array(z.string()).optional(), include: z.array(Include$outboundSchema).optional(), terminated: z.boolean().optional(), page: z.number().int().optional(), @@ -182,8 +186,8 @@ export const GetV1CompaniesCompanyIdEmployeesRequest$outboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { xGustoAPIVersion: "X-Gusto-API-Version", - companyId: "company_id", searchTerm: "search_term", + companyId: "company_id", }); }); diff --git a/gusto_embedded/src/models/operations/getv1employeesemployeeidhomeaddresses.ts b/gusto_embedded/src/models/operations/getv1employeesemployeeidhomeaddresses.ts index 187c73c1..569a899f 100644 --- a/gusto_embedded/src/models/operations/getv1employeesemployeeidhomeaddresses.ts +++ b/gusto_embedded/src/models/operations/getv1employeesemployeeidhomeaddresses.ts @@ -5,6 +5,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EmployeeAddress, @@ -18,13 +19,22 @@ import { HTTPMetadata$Outbound, HTTPMetadata$outboundSchema, } from "../components/httpmetadata.js"; -import { - VersionHeader, - VersionHeader$inboundSchema, - VersionHeader$outboundSchema, -} from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * 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. + */ +export const GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = { + TwoThousandAndTwentyFourMinus04Minus01: "2024-04-01", +} as const; +/** + * 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. + */ +export type GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = + ClosedEnum< + typeof GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + >; + export type GetV1EmployeesEmployeeIdHomeAddressesRequest = { /** * The UUID of the employee @@ -33,17 +43,44 @@ export type GetV1EmployeesEmployeeIdHomeAddressesRequest = { /** * 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. */ - xGustoAPIVersion?: VersionHeader | undefined; + xGustoAPIVersion?: + | GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + | undefined; }; export type GetV1EmployeesEmployeeIdHomeAddressesResponse = { httpMeta: HTTPMetadata; /** - * List of employee addresses + * successful */ employeeAddressList?: Array | undefined; }; +/** @internal */ +export const GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema: + z.ZodNativeEnum< + typeof GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + > = z.nativeEnum(GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion); + +/** @internal */ +export const GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema: + z.ZodNativeEnum< + typeof GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + > = GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$ { + /** @deprecated use `GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema` instead. */ + export const inboundSchema = + GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema; + /** @deprecated use `GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema` instead. */ + export const outboundSchema = + GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema; +} + /** @internal */ export const GetV1EmployeesEmployeeIdHomeAddressesRequest$inboundSchema: z.ZodType< @@ -52,7 +89,9 @@ export const GetV1EmployeesEmployeeIdHomeAddressesRequest$inboundSchema: unknown > = z.object({ employee_id: z.string(), - "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), + "X-Gusto-API-Version": + GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema + .default("2024-04-01"), }).transform((v) => { return remap$(v, { "employee_id": "employeeId", @@ -74,7 +113,9 @@ export const GetV1EmployeesEmployeeIdHomeAddressesRequest$outboundSchema: GetV1EmployeesEmployeeIdHomeAddressesRequest > = z.object({ employeeId: z.string(), - xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), + xGustoAPIVersion: + GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema + .default("2024-04-01"), }).transform((v) => { return remap$(v, { employeeId: "employee_id", diff --git a/gusto_embedded/src/models/operations/getv1homeaddresseshomeaddressuuid.ts b/gusto_embedded/src/models/operations/getv1homeaddresseshomeaddressuuid.ts index 7bafba7a..5ec4efd6 100644 --- a/gusto_embedded/src/models/operations/getv1homeaddresseshomeaddressuuid.ts +++ b/gusto_embedded/src/models/operations/getv1homeaddresseshomeaddressuuid.ts @@ -5,6 +5,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EmployeeAddress, @@ -18,13 +19,20 @@ import { HTTPMetadata$Outbound, HTTPMetadata$outboundSchema, } from "../components/httpmetadata.js"; -import { - VersionHeader, - VersionHeader$inboundSchema, - VersionHeader$outboundSchema, -} from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * 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. + */ +export const GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = { + TwoThousandAndTwentyFourMinus04Minus01: "2024-04-01", +} as const; +/** + * 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. + */ +export type GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + ClosedEnum; + export type GetV1HomeAddressesHomeAddressUuidRequest = { /** * The UUID of the home address @@ -33,17 +41,44 @@ export type GetV1HomeAddressesHomeAddressUuidRequest = { /** * 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. */ - xGustoAPIVersion?: VersionHeader | undefined; + xGustoAPIVersion?: + | GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; }; export type GetV1HomeAddressesHomeAddressUuidResponse = { httpMeta: HTTPMetadata; /** - * Example response + * successful */ employeeAddress?: EmployeeAddress | undefined; }; +/** @internal */ +export const GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema: + z.ZodNativeEnum< + typeof GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = z.nativeEnum(GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion); + +/** @internal */ +export const GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema: + z.ZodNativeEnum< + typeof GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$ { + /** @deprecated use `GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema` instead. */ + export const inboundSchema = + GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + /** @deprecated use `GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema` instead. */ + export const outboundSchema = + GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema; +} + /** @internal */ export const GetV1HomeAddressesHomeAddressUuidRequest$inboundSchema: z.ZodType< GetV1HomeAddressesHomeAddressUuidRequest, @@ -51,7 +86,9 @@ export const GetV1HomeAddressesHomeAddressUuidRequest$inboundSchema: z.ZodType< unknown > = z.object({ home_address_uuid: z.string(), - "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), + "X-Gusto-API-Version": + GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema + .default("2024-04-01"), }).transform((v) => { return remap$(v, { "home_address_uuid": "homeAddressUuid", @@ -72,7 +109,9 @@ export const GetV1HomeAddressesHomeAddressUuidRequest$outboundSchema: z.ZodType< GetV1HomeAddressesHomeAddressUuidRequest > = z.object({ homeAddressUuid: z.string(), - xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), + xGustoAPIVersion: + GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema + .default("2024-04-01"), }).transform((v) => { return remap$(v, { homeAddressUuid: "home_address_uuid", diff --git a/gusto_embedded/src/models/operations/postcompaniescompanyuuidreports.ts b/gusto_embedded/src/models/operations/postcompaniescompanyuuidreports.ts index b09da171..af6fb09c 100644 --- a/gusto_embedded/src/models/operations/postcompaniescompanyuuidreports.ts +++ b/gusto_embedded/src/models/operations/postcompaniescompanyuuidreports.ts @@ -127,6 +127,7 @@ export type Groupings = ClosedEnum; export const FileType = { Csv: "csv", Json: "json", + Pdf: "pdf", } as const; /** * The type of file to generate diff --git a/gusto_embedded/src/models/operations/postv1employeesemployeeidhomeaddresses.ts b/gusto_embedded/src/models/operations/postv1employeesemployeeidhomeaddresses.ts index 4fa703dd..42b98ee1 100644 --- a/gusto_embedded/src/models/operations/postv1employeesemployeeidhomeaddresses.ts +++ b/gusto_embedded/src/models/operations/postv1employeesemployeeidhomeaddresses.ts @@ -5,6 +5,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { @@ -19,20 +20,29 @@ import { HTTPMetadata$Outbound, HTTPMetadata$outboundSchema, } from "../components/httpmetadata.js"; -import { - VersionHeader, - VersionHeader$inboundSchema, - VersionHeader$outboundSchema, -} from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * 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. + */ +export const PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = { + TwoThousandAndTwentyFourMinus04Minus01: "2024-04-01", +} as const; +/** + * 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. + */ +export type PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion = + ClosedEnum< + typeof PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + >; + export type PostV1EmployeesEmployeeIdHomeAddressesRequestBody = { street1?: string | undefined; street2?: string | null | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; - effectiveDate?: RFCDate | undefined; + effectiveDate?: RFCDate | null | undefined; courtesyWithholding?: boolean | undefined; }; @@ -44,18 +54,48 @@ export type PostV1EmployeesEmployeeIdHomeAddressesRequest = { /** * 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. */ - xGustoAPIVersion?: VersionHeader | undefined; + xGustoAPIVersion?: + | PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + | undefined; requestBody: PostV1EmployeesEmployeeIdHomeAddressesRequestBody; }; export type PostV1EmployeesEmployeeIdHomeAddressesResponse = { httpMeta: HTTPMetadata; /** - * Example response + * created */ employeeAddress?: EmployeeAddress | undefined; }; +/** @internal */ +export const PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema: + z.ZodNativeEnum< + typeof PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + > = z.nativeEnum( + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion, + ); + +/** @internal */ +export const PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema: + z.ZodNativeEnum< + typeof PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + > = + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$ { + /** @deprecated use `PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema` instead. */ + export const inboundSchema = + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema; + /** @deprecated use `PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema` instead. */ + export const outboundSchema = + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema; +} + /** @internal */ export const PostV1EmployeesEmployeeIdHomeAddressesRequestBody$inboundSchema: z.ZodType< @@ -68,7 +108,8 @@ export const PostV1EmployeesEmployeeIdHomeAddressesRequestBody$inboundSchema: city: z.string().optional(), state: z.string().optional(), zip: z.string().optional(), - effective_date: z.string().transform(v => new RFCDate(v)).optional(), + effective_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), courtesy_withholding: z.boolean().optional(), }).transform((v) => { return remap$(v, { @@ -86,7 +127,7 @@ export type PostV1EmployeesEmployeeIdHomeAddressesRequestBody$Outbound = { city?: string | undefined; state?: string | undefined; zip?: string | undefined; - effective_date?: string | undefined; + effective_date?: string | null | undefined; courtesy_withholding?: boolean | undefined; }; @@ -102,8 +143,9 @@ export const PostV1EmployeesEmployeeIdHomeAddressesRequestBody$outboundSchema: city: z.string().optional(), state: z.string().optional(), zip: z.string().optional(), - effectiveDate: z.instanceof(RFCDate).transform(v => v.toString()) - .optional(), + effectiveDate: z.nullable( + z.instanceof(RFCDate).transform(v => v.toString()), + ).optional(), courtesyWithholding: z.boolean().optional(), }).transform((v) => { return remap$(v, { @@ -165,7 +207,9 @@ export const PostV1EmployeesEmployeeIdHomeAddressesRequest$inboundSchema: unknown > = z.object({ employee_id: z.string(), - "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), + "X-Gusto-API-Version": + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$inboundSchema + .default("2024-04-01"), RequestBody: z.lazy(() => PostV1EmployeesEmployeeIdHomeAddressesRequestBody$inboundSchema ), @@ -192,7 +236,9 @@ export const PostV1EmployeesEmployeeIdHomeAddressesRequest$outboundSchema: PostV1EmployeesEmployeeIdHomeAddressesRequest > = z.object({ employeeId: z.string(), - xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), + xGustoAPIVersion: + PostV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion$outboundSchema + .default("2024-04-01"), requestBody: z.lazy(() => PostV1EmployeesEmployeeIdHomeAddressesRequestBody$outboundSchema ), diff --git a/gusto_embedded/src/models/operations/putv1companiescompanyidpayrollspayrollidprepare.ts b/gusto_embedded/src/models/operations/putv1companiescompanyidpayrollspayrollidprepare.ts index 149152be..f2fc1377 100644 --- a/gusto_embedded/src/models/operations/putv1companiescompanyidpayrollspayrollidprepare.ts +++ b/gusto_embedded/src/models/operations/putv1companiescompanyidpayrollspayrollidprepare.ts @@ -25,6 +25,13 @@ import { } from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody = { + /** + * An array of employee UUIDs. If passed, only those employees payroll items will be prepared. + */ + employeeUuids?: Array | undefined; +}; + export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest = { /** * The UUID of the company @@ -38,6 +45,9 @@ export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest = { * 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. */ xGustoAPIVersion?: VersionHeader | undefined; + requestBody?: + | PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody + | undefined; }; export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareResponse = { @@ -48,6 +58,81 @@ export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareResponse = { payrollPrepared?: PayrollPrepared | undefined; }; +/** @internal */ +export const PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$inboundSchema: + z.ZodType< + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody, + z.ZodTypeDef, + unknown + > = z.object({ + employee_uuids: z.array(z.string()).optional(), + }).transform((v) => { + return remap$(v, { + "employee_uuids": "employeeUuids", + }); + }); + +/** @internal */ +export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$Outbound = + { + employee_uuids?: Array | undefined; + }; + +/** @internal */ +export const PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$outboundSchema: + z.ZodType< + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$Outbound, + z.ZodTypeDef, + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody + > = z.object({ + employeeUuids: z.array(z.string()).optional(), + }).transform((v) => { + return remap$(v, { + employeeUuids: "employee_uuids", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$ { + /** @deprecated use `PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$inboundSchema` instead. */ + export const inboundSchema = + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$inboundSchema; + /** @deprecated use `PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$outboundSchema` instead. */ + export const outboundSchema = + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$outboundSchema; + /** @deprecated use `PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$Outbound` instead. */ + export type Outbound = + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$Outbound; +} + +export function putV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBodyToJSON( + putV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody: + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody, +): string { + return JSON.stringify( + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$outboundSchema + .parse(putV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody), + ); +} + +export function putV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBodyFromJSON( + jsonString: string, +): SafeParseResult< + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody' from JSON`, + ); +} + /** @internal */ export const PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest$inboundSchema: z.ZodType< @@ -58,11 +143,15 @@ export const PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest$inboundSchem company_id: z.string(), payroll_id: z.string(), "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), + RequestBody: z.lazy(() => + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$inboundSchema + ).optional(), }).transform((v) => { return remap$(v, { "company_id": "companyId", "payroll_id": "payrollId", "X-Gusto-API-Version": "xGustoAPIVersion", + "RequestBody": "requestBody", }); }); @@ -71,6 +160,9 @@ export type PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest$Outbound = { company_id: string; payroll_id: string; "X-Gusto-API-Version": string; + RequestBody?: + | PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$Outbound + | undefined; }; /** @internal */ @@ -83,11 +175,15 @@ export const PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequest$outboundSche companyId: z.string(), payrollId: z.string(), xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), + requestBody: z.lazy(() => + PutV1CompaniesCompanyIdPayrollsPayrollIdPrepareRequestBody$outboundSchema + ).optional(), }).transform((v) => { return remap$(v, { companyId: "company_id", payrollId: "payroll_id", xGustoAPIVersion: "X-Gusto-API-Version", + requestBody: "RequestBody", }); }); diff --git a/gusto_embedded/src/models/operations/putv1homeaddresseshomeaddressuuid.ts b/gusto_embedded/src/models/operations/putv1homeaddresseshomeaddressuuid.ts index 03941456..890e9d67 100644 --- a/gusto_embedded/src/models/operations/putv1homeaddresseshomeaddressuuid.ts +++ b/gusto_embedded/src/models/operations/putv1homeaddresseshomeaddressuuid.ts @@ -5,6 +5,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { @@ -19,16 +20,23 @@ import { HTTPMetadata$Outbound, HTTPMetadata$outboundSchema, } from "../components/httpmetadata.js"; -import { - VersionHeader, - VersionHeader$inboundSchema, - VersionHeader$outboundSchema, -} from "../components/versionheader.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +/** + * 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. + */ +export const PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = { + TwoThousandAndTwentyFourMinus04Minus01: "2024-04-01", +} as const; +/** + * 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. + */ +export type PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion = + ClosedEnum; + export type PutV1HomeAddressesHomeAddressUuidRequestBody = { /** - * The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/versioning#object-layer) for information on how to use this field. + * 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. */ version: string; street1?: string | undefined; @@ -36,30 +44,56 @@ export type PutV1HomeAddressesHomeAddressUuidRequestBody = { city?: string | undefined; state?: string | undefined; zip?: string | undefined; - effectiveDate?: RFCDate | undefined; - courtesyWithholding?: boolean | undefined; + effectiveDate?: RFCDate | null | undefined; }; export type PutV1HomeAddressesHomeAddressUuidRequest = { /** - * The UUID of the home address + * 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. */ - homeAddressUuid: string; + xGustoAPIVersion?: + | PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; /** - * 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. + * The UUID of the home address */ - xGustoAPIVersion?: VersionHeader | undefined; + homeAddressUuid: string; requestBody: PutV1HomeAddressesHomeAddressUuidRequestBody; }; export type PutV1HomeAddressesHomeAddressUuidResponse = { httpMeta: HTTPMetadata; /** - * Example response + * successful */ employeeAddress?: EmployeeAddress | undefined; }; +/** @internal */ +export const PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema: + z.ZodNativeEnum< + typeof PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = z.nativeEnum(PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion); + +/** @internal */ +export const PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema: + z.ZodNativeEnum< + typeof PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + > = PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$ { + /** @deprecated use `PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema` instead. */ + export const inboundSchema = + PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema; + /** @deprecated use `PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema` instead. */ + export const outboundSchema = + PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema; +} + /** @internal */ export const PutV1HomeAddressesHomeAddressUuidRequestBody$inboundSchema: z.ZodType< @@ -73,14 +107,13 @@ export const PutV1HomeAddressesHomeAddressUuidRequestBody$inboundSchema: city: z.string().optional(), state: z.string().optional(), zip: z.string().optional(), - effective_date: z.string().transform(v => new RFCDate(v)).optional(), - courtesy_withholding: z.boolean().optional(), + effective_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), }).transform((v) => { return remap$(v, { "street_1": "street1", "street_2": "street2", "effective_date": "effectiveDate", - "courtesy_withholding": "courtesyWithholding", }); }); @@ -92,8 +125,7 @@ export type PutV1HomeAddressesHomeAddressUuidRequestBody$Outbound = { city?: string | undefined; state?: string | undefined; zip?: string | undefined; - effective_date?: string | undefined; - courtesy_withholding?: boolean | undefined; + effective_date?: string | null | undefined; }; /** @internal */ @@ -109,15 +141,14 @@ export const PutV1HomeAddressesHomeAddressUuidRequestBody$outboundSchema: city: z.string().optional(), state: z.string().optional(), zip: z.string().optional(), - effectiveDate: z.instanceof(RFCDate).transform(v => v.toString()) - .optional(), - courtesyWithholding: z.boolean().optional(), + effectiveDate: z.nullable( + z.instanceof(RFCDate).transform(v => v.toString()), + ).optional(), }).transform((v) => { return remap$(v, { street1: "street_1", street2: "street_2", effectiveDate: "effective_date", - courtesyWithholding: "courtesy_withholding", }); }); @@ -169,23 +200,25 @@ export const PutV1HomeAddressesHomeAddressUuidRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + "X-Gusto-API-Version": + PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$inboundSchema + .default("2024-04-01"), home_address_uuid: z.string(), - "X-Gusto-API-Version": VersionHeader$inboundSchema.default("2024-04-01"), RequestBody: z.lazy(() => PutV1HomeAddressesHomeAddressUuidRequestBody$inboundSchema ), }).transform((v) => { return remap$(v, { - "home_address_uuid": "homeAddressUuid", "X-Gusto-API-Version": "xGustoAPIVersion", + "home_address_uuid": "homeAddressUuid", "RequestBody": "requestBody", }); }); /** @internal */ export type PutV1HomeAddressesHomeAddressUuidRequest$Outbound = { - home_address_uuid: string; "X-Gusto-API-Version": string; + home_address_uuid: string; RequestBody: PutV1HomeAddressesHomeAddressUuidRequestBody$Outbound; }; @@ -195,15 +228,17 @@ export const PutV1HomeAddressesHomeAddressUuidRequest$outboundSchema: z.ZodType< z.ZodTypeDef, PutV1HomeAddressesHomeAddressUuidRequest > = z.object({ + xGustoAPIVersion: + PutV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion$outboundSchema + .default("2024-04-01"), homeAddressUuid: z.string(), - xGustoAPIVersion: VersionHeader$outboundSchema.default("2024-04-01"), requestBody: z.lazy(() => PutV1HomeAddressesHomeAddressUuidRequestBody$outboundSchema ), }).transform((v) => { return remap$(v, { - homeAddressUuid: "home_address_uuid", xGustoAPIVersion: "X-Gusto-API-Version", + homeAddressUuid: "home_address_uuid", requestBody: "RequestBody", }); }); diff --git a/gusto_embedded/src/react-query/employeeAddressesDelete.ts b/gusto_embedded/src/react-query/employeeAddressesDelete.ts index 66ae1f2f..28bb05a2 100644 --- a/gusto_embedded/src/react-query/employeeAddressesDelete.ts +++ b/gusto_embedded/src/react-query/employeeAddressesDelete.ts @@ -31,7 +31,7 @@ export type EmployeeAddressesDeleteMutationData = * Delete an employee's home address * * @remarks - * Used for deleting an employee's home address. Cannot delete the employee's active home address. + * Used for deleting an employee's home address. Cannot delete the employee's active home address. * * scope: `employees:write` */ diff --git a/gusto_embedded/src/react-query/employeeAddressesGet.ts b/gusto_embedded/src/react-query/employeeAddressesGet.ts index c3e385e2..ebccb85c 100644 --- a/gusto_embedded/src/react-query/employeeAddressesGet.ts +++ b/gusto_embedded/src/react-query/employeeAddressesGet.ts @@ -16,8 +16,8 @@ import { GustoEmbeddedCore } from "../core.js"; import { employeeAddressesGet } from "../funcs/employeeAddressesGet.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { VersionHeader } from "../models/components/versionheader.js"; import { + GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion, GetV1EmployeesEmployeeIdHomeAddressesRequest, GetV1EmployeesEmployeeIdHomeAddressesResponse, } from "../models/operations/getv1employeesemployeeidhomeaddresses.js"; @@ -99,7 +99,11 @@ export function setEmployeeAddressesGetData( client: QueryClient, queryKeyBase: [ employeeId: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + | undefined; + }, ], data: EmployeeAddressesGetQueryData, ): EmployeeAddressesGetQueryData | undefined { @@ -113,7 +117,11 @@ export function invalidateEmployeeAddressesGet( queryKeyBase: TupleToPrefixes< [ employeeId: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + | undefined; + }, ] >, filters?: Omit, @@ -173,7 +181,11 @@ export function buildEmployeeAddressesGetQuery( export function queryKeyEmployeeAddressesGet( employeeId: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1EmployeesEmployeeIdHomeAddressesHeaderXGustoAPIVersion + | undefined; + }, ): QueryKey { return [ "@gusto/embedded-api", diff --git a/gusto_embedded/src/react-query/employeeAddressesRetrieveHomeAddress.ts b/gusto_embedded/src/react-query/employeeAddressesRetrieveHomeAddress.ts index 925f9a02..38ef58e2 100644 --- a/gusto_embedded/src/react-query/employeeAddressesRetrieveHomeAddress.ts +++ b/gusto_embedded/src/react-query/employeeAddressesRetrieveHomeAddress.ts @@ -16,8 +16,8 @@ import { GustoEmbeddedCore } from "../core.js"; import { employeeAddressesRetrieveHomeAddress } from "../funcs/employeeAddressesRetrieveHomeAddress.js"; import { combineSignals } from "../lib/primitives.js"; import { RequestOptions } from "../lib/sdks.js"; -import { VersionHeader } from "../models/components/versionheader.js"; import { + GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion, GetV1HomeAddressesHomeAddressUuidRequest, GetV1HomeAddressesHomeAddressUuidResponse, } from "../models/operations/getv1homeaddresseshomeaddressuuid.js"; @@ -104,7 +104,11 @@ export function setEmployeeAddressesRetrieveHomeAddressData( client: QueryClient, queryKeyBase: [ homeAddressUuid: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; + }, ], data: EmployeeAddressesRetrieveHomeAddressQueryData, ): EmployeeAddressesRetrieveHomeAddressQueryData | undefined { @@ -121,7 +125,11 @@ export function invalidateEmployeeAddressesRetrieveHomeAddress( queryKeyBase: TupleToPrefixes< [ homeAddressUuid: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; + }, ] >, filters?: Omit, @@ -186,7 +194,11 @@ export function buildEmployeeAddressesRetrieveHomeAddressQuery( export function queryKeyEmployeeAddressesRetrieveHomeAddress( homeAddressUuid: string, - parameters: { xGustoAPIVersion?: VersionHeader | undefined }, + parameters: { + xGustoAPIVersion?: + | GetV1HomeAddressesHomeAddressUuidHeaderXGustoAPIVersion + | undefined; + }, ): QueryKey { return [ "@gusto/embedded-api", diff --git a/gusto_embedded/src/react-query/employeesList.ts b/gusto_embedded/src/react-query/employeesList.ts index a997f013..eeab6625 100644 --- a/gusto_embedded/src/react-query/employeesList.ts +++ b/gusto_embedded/src/react-query/employeesList.ts @@ -100,6 +100,7 @@ export function setEmployeesListData( | GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion | undefined; searchTerm?: string | undefined; + uuids?: Array | undefined; include?: Array | undefined; terminated?: boolean | undefined; page?: number | undefined; @@ -123,6 +124,7 @@ export function invalidateEmployeesList( | GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion | undefined; searchTerm?: string | undefined; + uuids?: Array | undefined; include?: Array | undefined; terminated?: boolean | undefined; page?: number | undefined; @@ -160,6 +162,7 @@ export function buildEmployeesListQuery( queryKey: queryKeyEmployeesList(request.companyId, { xGustoAPIVersion: request.xGustoAPIVersion, searchTerm: request.searchTerm, + uuids: request.uuids, include: request.include, terminated: request.terminated, page: request.page, @@ -190,6 +193,7 @@ export function queryKeyEmployeesList( | GetV1CompaniesCompanyIdEmployeesHeaderXGustoAPIVersion | undefined; searchTerm?: string | undefined; + uuids?: Array | undefined; include?: Array | undefined; terminated?: boolean | undefined; page?: number | undefined; diff --git a/gusto_embedded/src/sdk/employeeaddresses.ts b/gusto_embedded/src/sdk/employeeaddresses.ts index bb29f11e..45768fe9 100644 --- a/gusto_embedded/src/sdk/employeeaddresses.ts +++ b/gusto_embedded/src/sdk/employeeaddresses.ts @@ -144,7 +144,7 @@ export class EmployeeAddresses extends ClientSDK { * Delete an employee's home address * * @remarks - * Used for deleting an employee's home address. Cannot delete the employee's active home address. + * Used for deleting an employee's home address. Cannot delete the employee's active home address. * * scope: `employees:write` */