From 4e5bc91441b74af1d309d4a5a189cc230c1f976d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 10 Nov 2025 12:40:16 +0000 Subject: [PATCH] ## Typescript SDK Changes Detected: * `kombo.ats.createCandidate()`: * `request.remoteFields.piloga` **Added** * `kombo.ats.createApplication()`: * `request.body.remoteFields.piloga` **Added** --- .speakeasy/gen.lock | 23 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 19 +- RELEASES.md | 12 +- ...leteatscandidatescandidateidtagsrequest.md | 4 +- .../deletehrisabsencesabsenceidrequest.md | 4 +- .../deleteintegrationsintegrationidrequest.md | 4 +- .../operations/getatsapplicationsrequest.md | 26 +- .../getatsapplicationstagesrequest.md | 16 +- .../operations/getatscandidatesrequest.md | 24 +- .../operations/getatsinterviewsrequest.md | 18 +- docs/models/operations/getatsjobsrequest.md | 30 +- docs/models/operations/getatsoffersrequest.md | 16 +- .../getatsrejectionreasonsrequest.md | 16 +- docs/models/operations/getatstagsrequest.md | 16 +- docs/models/operations/getatsusersrequest.md | 18 +- .../operations/gethrisabsencesrequest.md | 24 +- .../operations/gethrisabsencetypesrequest.md | 16 +- ...ethrisemployeedocumentcategoriesrequest.md | 16 +- .../operations/gethrisemployeesrequest.md | 2 +- .../operations/gethrisemploymentsrequest.md | 16 +- .../models/operations/gethrisgroupsrequest.md | 20 +- .../operations/gethrislegalentitiesrequest.md | 18 +- .../operations/gethrislocationsrequest.md | 18 +- .../gethrisperformancereviewcyclesrequest.md | 16 +- .../gethrisperformancereviewsrequest.md | 22 +- .../gethristimeoffbalancesrequest.md | 18 +- .../operations/gethristimesheetsrequest.md | 26 +- ...egrationfieldsintegrationfieldidrequest.md | 9 +- ...icationsapplicationidattachmentsrequest.md | 4 +- ...tsapplicationsapplicationidnotesrequest.md | 4 +- ...sapplicationsapplicationidrejectrequest.md | 4 +- ...icationsapplicationidresultlinksrequest.md | 4 +- ...candidatescandidateidattachmentsrequest.md | 4 +- ...candidatescandidateidresultlinksrequest.md | 4 +- ...postatscandidatescandidateidtagsrequest.md | 4 +- .../postatsjobsjobidapplicationsrequest.md | 4 +- ...hrisemployeesemployeeiddocumentsrequest.md | 4 +- ...tintegrationsintegrationidrelinkrequest.md | 4 +- .../postpassthroughtoolapirequest.md | 4 +- ...entordersassessmentorderidresultrequest.md | 4 +- ...tsapplicationsapplicationidstagerequest.md | 4 +- ...ationidcustomfieldscustomfieldidrequest.md | 4 +- .../postatscandidatesrequestbodypiloga.md | 17 + ...atscandidatesrequestbodypilogacandidate.md | 17 + ...ostatscandidatesrequestbodyremotefields.md | 3 +- ...sjobsjobidapplicationsrequestbodypiloga.md | 17 + ...dapplicationsrequestbodypilogacandidate.md | 17 + ...obidapplicationsrequestbodyremotefields.md | 3 +- ...smentorderreceivedwebhookpayloadrequest.md | 4 +- ...nnectionflowfailedwebhookpayloadrequest.md | 4 +- ...webhookdatachangedwebhookpayloadrequest.md | 4 +- ...smentorderreceivedwebhookpayloadrequest.md | 4 +- ...integrationcreatedwebhookpayloadrequest.md | 4 +- ...integrationdeletedwebhookpayloadrequest.md | 4 +- ...rationstatechangedwebhookpayloadrequest.md | 4 +- ...ebhooksyncfinishedwebhookpayloadrequest.md | 4 +- docs/sdks/assessment/README.md | 4 +- docs/sdks/ats/README.md | 40 +- docs/sdks/general/README.md | 20 +- docs/sdks/hris/README.md | 8 +- examples/package-lock.json | 3 +- jsr.json | 2 +- package-lock.json | 5 +- package.json | 4 +- src/funcs/assessmentUpdateOrderResult.ts | 6 +- src/funcs/atsAddApplicationAttachment.ts | 6 +- src/funcs/atsAddApplicationNote.ts | 6 +- src/funcs/atsAddApplicationResultLink.ts | 6 +- src/funcs/atsAddCandidateAttachment.ts | 6 +- src/funcs/atsAddCandidateResultLink.ts | 6 +- src/funcs/atsAddCandidateTag.ts | 6 +- src/funcs/atsCreateApplication.ts | 6 +- src/funcs/atsMoveApplicationToStage.ts | 6 +- src/funcs/atsRejectApplication.ts | 6 +- src/funcs/atsRemoveCandidateTag.ts | 6 +- src/funcs/generalCreateReconnectionLink.ts | 6 +- src/funcs/generalDeleteIntegration.ts | 6 +- src/funcs/generalSendPassthroughRequest.ts | 4 +- src/funcs/generalUpdateCustomFieldMapping.ts | 6 +- src/funcs/generalUpdateIntegrationField.ts | 7 +- src/funcs/hrisAddEmployeeDocument.ts | 6 +- src/funcs/hrisDeleteAbsence.ts | 6 +- src/lib/config.ts | 10 +- .../assessmentorderreceivedwebhookpayload.ts | 164 - .../connectionflowfailedwebhookpayload.ts | 78 - src/models/datachangedwebhookpayload.ts | 83 - ...ndidatescandidateidtagspositiveresponse.ts | 135 - ...atscandidatescandidateidtagsrequestbody.ts | 267 -- ...tehrisabsencesabsenceidpositiveresponse.ts | 218 +- .../deletehrisabsencesabsenceidrequestbody.ts | 126 - ...tegrationsintegrationidpositiveresponse.ts | 84 - ...eteintegrationsintegrationidrequestbody.ts | 39 - src/models/errors/komboatserror.ts | 31 - src/models/errors/kombogeneralerror.ts | 31 - src/models/errors/kombohriserror.ts | 31 - ...getassessmentordersopenpositiveresponse.ts | 423 --- .../getassessmentpackagespositiveresponse.ts | 151 - ...pplicationidattachmentspositiveresponse.ts | 222 -- .../getatsapplicationspositiveresponse.ts | 1768 +-------- ...getatsapplicationstagespositiveresponse.ts | 140 - ...scandidateidattachmentspositiveresponse.ts | 224 -- .../getatscandidatespositiveresponse.ts | 589 --- .../getatsinterviewspositiveresponse.ts | 460 --- src/models/getatsjobspositiveresponse.ts | 1137 +----- src/models/getatsofferspositiveresponse.ts | 338 -- .../getatsrejectionreasonspositiveresponse.ts | 136 - src/models/getatstagspositiveresponse.ts | 123 - src/models/getatsuserspositiveresponse.ts | 149 - src/models/getcheckapikeypositiveresponse.ts | 77 - ...integrationbytokentokenpositiveresponse.ts | 119 - src/models/gethrisabsencespositiveresponse.ts | 275 +- .../gethrisabsencetypespositiveresponse.ts | 158 - ...loyeedocumentcategoriespositiveresponse.ts | 145 - .../gethrisemployeesformpositiveresponse.ts | 1307 +------ .../gethrisemployeespositiveresponse.ts | 969 +---- .../gethrisemploymentspositiveresponse.ts | 232 +- src/models/gethrisgroupspositiveresponse.ts | 149 - .../gethrislegalentitiespositiveresponse.ts | 194 - .../gethrislocationspositiveresponse.ts | 188 - ...performancereviewcyclespositiveresponse.ts | 148 - ...thrisperformancereviewspositiveresponse.ts | 422 --- .../gethristimeoffbalancespositiveresponse.ts | 263 -- .../gethristimesheetspositiveresponse.ts | 186 - ...tegrationidcustomfieldspositiveresponse.ts | 225 -- ...tionidintegrationfieldspositiveresponse.ts | 174 - ...tegrationsintegrationidpositiveresponse.ts | 482 --- .../gettoolscategoryparametercategory.ts | 19 +- .../gettoolscategorypositiveresponse.ts | 438 --- ...neassessmentorderreceivedwebhookpayload.ts | 167 - .../integrationcreatedwebhookpayload.ts | 77 - .../integrationdeletedwebhookpayload.ts | 77 - .../integrationstatechangedwebhookpayload.ts | 103 - src/models/komboatserror.ts | 73 - src/models/kombogeneralerror.ts | 73 - src/models/kombohriserror.ts | 73 - .../deleteatscandidatescandidateidtags.ts | 131 +- .../operations/deletehrisabsencesabsenceid.ts | 117 +- .../deleteintegrationsintegrationid.ts | 60 +- .../operations/getassessmentordersopen.ts | 130 - .../operations/getassessmentpackages.ts | 89 - src/models/operations/getatsapplications.ts | 147 +- ...atsapplicationsapplicationidattachments.ts | 113 - .../operations/getatsapplicationstages.ts | 144 +- src/models/operations/getatscandidates.ts | 144 +- .../getatscandidatescandidateidattachments.ts | 111 - src/models/operations/getatsinterviews.ts | 141 +- src/models/operations/getatsjobs.ts | 149 +- src/models/operations/getatsoffers.ts | 140 +- .../operations/getatsrejectionreasons.ts | 144 +- src/models/operations/getatstags.ts | 140 +- src/models/operations/getatsusers.ts | 141 +- .../getconnectintegrationbytokentoken.ts | 43 - src/models/operations/gethrisabsences.ts | 146 +- src/models/operations/gethrisabsencetypes.ts | 142 +- .../gethrisemployeedocumentcategories.ts | 166 +- src/models/operations/gethrisemployees.ts | 147 +- src/models/operations/gethrisemployeesform.ts | 89 - src/models/operations/gethrisemployments.ts | 140 +- src/models/operations/gethrisgroups.ts | 142 +- src/models/operations/gethrislegalentities.ts | 145 +- src/models/operations/gethrislocations.ts | 141 +- .../gethrisperformancereviewcycles.ts | 153 +- .../operations/gethrisperformancereviews.ts | 148 +- .../operations/gethristimeoffbalances.ts | 145 +- src/models/operations/gethristimesheets.ts | 152 +- .../getintegrationsintegrationid.ts | 38 - ...etintegrationsintegrationidcustomfields.ts | 93 - ...egrationsintegrationidintegrationfields.ts | 93 - src/models/operations/gettoolscategory.ts | 35 - ...onidintegrationfieldsintegrationfieldid.ts | 65 +- ...atsapplicationsapplicationidattachments.ts | 135 +- .../postatsapplicationsapplicationidnotes.ts | 132 +- .../postatsapplicationsapplicationidreject.ts | 132 +- ...atsapplicationsapplicationidresultlinks.ts | 135 +- src/models/operations/postatscandidates.ts | 59 - ...postatscandidatescandidateidattachments.ts | 134 +- ...postatscandidatescandidateidresultlinks.ts | 134 +- .../postatscandidatescandidateidtags.ts | 130 +- .../postatsimporttrackedapplication.ts | 65 - .../postatsjobsjobidapplications.ts | 119 +- src/models/operations/postforcesync.ts | 59 - src/models/operations/posthrisabsences.ts | 59 - .../posthrisemployeesemployeeiddocuments.ts | 133 +- .../operations/posthrisemployeesform.ts | 61 - .../postintegrationsintegrationidrelink.ts | 63 +- .../operations/postpassthroughtoolapi.ts | 113 +- ...assessmentordersassessmentorderidresult.ts | 135 +- .../operations/putassessmentpackages.ts | 61 - .../putatsapplicationsapplicationidstage.ts | 133 +- ...sintegrationidcustomfieldscustomfieldid.ts | 66 +- ...ieldsintegrationfieldidpositiveresponse.ts | 126 - ...tionfieldsintegrationfieldidrequestbody.ts | 44 - ...pplicationidattachmentspositiveresponse.ts | 137 - ...ionsapplicationidattachmentsrequestbody.ts | 360 +- ...tionsapplicationidnotespositiveresponse.ts | 134 - ...plicationsapplicationidnotesrequestbody.ts | 374 +- ...ionsapplicationidrejectpositiveresponse.ts | 134 - ...licationsapplicationidrejectrequestbody.ts | 224 -- ...pplicationidresultlinkspositiveresponse.ts | 137 - ...ionsapplicationidresultlinksrequestbody.ts | 427 +-- ...scandidateidattachmentspositiveresponse.ts | 133 - ...idatescandidateidattachmentsrequestbody.ts | 291 +- ...scandidateidresultlinkspositiveresponse.ts | 133 - ...idatescandidateidresultlinksrequestbody.ts | 428 +-- ...ndidatescandidateidtagspositiveresponse.ts | 133 - ...atscandidatescandidateidtagsrequestbody.ts | 268 -- .../postatscandidatespositiveresponse.ts | 595 --- src/models/postatscandidatesrequestbody.ts | 3089 +-------------- ...mporttrackedapplicationpositiveresponse.ts | 791 ---- ...tatsimporttrackedapplicationrequestbody.ts | 615 --- ...tsjobsjobidapplicationspositiveresponse.ts | 1749 +-------- ...postatsjobsjobidapplicationsrequestbody.ts | 3309 +---------------- .../postconnectcreatelinkpositiveresponse.ts | 82 - .../postconnectcreatelinkrequestbody.ts | 130 +- src/models/postforcesyncpositiveresponse.ts | 98 - src/models/postforcesyncrequestbody.ts | 53 +- .../posthrisabsencespositiveresponse.ts | 201 +- src/models/posthrisabsencesrequestbody.ts | 167 +- ...yeesemployeeiddocumentspositiveresponse.ts | 134 - ...employeesemployeeiddocumentsrequestbody.ts | 81 - .../posthrisemployeesformpositiveresponse.ts | 127 - .../posthrisemployeesformrequestbody.ts | 36 - ...ionsintegrationidrelinkpositiveresponse.ts | 87 - ...egrationsintegrationidrelinkrequestbody.ts | 94 +- .../postpassthroughtoolapipositiveresponse.ts | 161 - .../postpassthroughtoolapirequestbody.ts | 156 +- ...assessmentorderidresultpositiveresponse.ts | 135 - ...rdersassessmentorderidresultrequestbody.ts | 370 +- .../putassessmentpackagespositiveresponse.ts | 123 - .../putassessmentpackagesrequestbody.ts | 100 +- ...tionsapplicationidstagepositiveresponse.ts | 134 - ...plicationsapplicationidstagerequestbody.ts | 223 -- ...stomfieldscustomfieldidpositiveresponse.ts | 180 - ...nidcustomfieldscustomfieldidrequestbody.ts | 44 - src/models/schema1.ts | 27 - src/models/schema1union1.ts | 976 +---- src/models/schema1union2.ts | 115 +- src/models/schema2union1.ts | 988 +---- src/models/schema2union2.ts | 174 +- src/models/schema4.ts | 36 - src/models/security.ts | 39 - src/models/syncfinishedwebhookpayload.ts | 72 - ...okassessmentorderreceivedwebhookpayload.ts | 34 +- ...bhookconnectionflowfailedwebhookpayload.ts | 34 +- .../webhookdatachangedwebhookpayload.ts | 27 +- ...neassessmentorderreceivedwebhookpayload.ts | 34 +- ...webhookintegrationcreatedwebhookpayload.ts | 31 +- ...webhookintegrationdeletedwebhookpayload.ts | 31 +- ...okintegrationstatechangedwebhookpayload.ts | 34 +- .../webhooksyncfinishedwebhookpayload.ts | 28 +- 251 files changed, 931 insertions(+), 39412 deletions(-) create mode 100644 docs/models/postatscandidatesrequestbodypiloga.md create mode 100644 docs/models/postatscandidatesrequestbodypilogacandidate.md create mode 100644 docs/models/postatsjobsjobidapplicationsrequestbodypiloga.md create mode 100644 docs/models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 2ab7b77..8bab954 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,20 +1,20 @@ lockVersion: 2.0.0 id: 79567c4a-05f9-4d65-864d-dfe107aa4e9d management: - docChecksum: 7e25cd419aa0f29cfceadc9629e30430 + docChecksum: 191627c0481c96451d5a70b924ab8859 docVersion: 1.0.0 - speakeasyVersion: 1.643.3 - generationVersion: 2.731.9 - releaseVersion: 0.1.1 - configChecksum: 89a2d3b45614aba017a1b4ba7cd0f189 - repoURL: https://github.com/kombohq/kombo-typescript-sdk.git - installationURL: https://github.com/kombohq/kombo-typescript-sdk + speakeasyVersion: 1.651.0 + generationVersion: 2.745.2 + releaseVersion: 0.2.0 + configChecksum: d5de43c14be2453ce05b64b74b594964 + repoURL: https://github.com/kombohq/typescript-sdk.git + installationURL: https://github.com/kombohq/typescript-sdk published: true features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.24.2 + core: 3.26.3 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 enumUnions: 0.1.0 @@ -23,7 +23,7 @@ features: globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 + globalServerURLs: 2.83.0 globals: 2.82.2 groups: 2.81.3 hiddenGlobals: 0.1.0 @@ -655,6 +655,8 @@ generatedFiles: - docs/models/postatscandidatesrequestbodynamedetaildata.md - docs/models/postatscandidatesrequestbodyperiod.md - docs/models/postatscandidatesrequestbodypersonio.md + - docs/models/postatscandidatesrequestbodypiloga.md + - docs/models/postatscandidatesrequestbodypilogacandidate.md - docs/models/postatscandidatesrequestbodypostheaders.md - docs/models/postatscandidatesrequestbodyrecruitee.md - docs/models/postatscandidatesrequestbodyrecruiteecandidate.md @@ -789,6 +791,8 @@ generatedFiles: - docs/models/postatsjobsjobidapplicationsrequestbodynamedetaildata.md - docs/models/postatsjobsjobidapplicationsrequestbodyperiod.md - docs/models/postatsjobsjobidapplicationsrequestbodypersonio.md + - docs/models/postatsjobsjobidapplicationsrequestbodypiloga.md + - docs/models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md - docs/models/postatsjobsjobidapplicationsrequestbodypostheaders.md - docs/models/postatsjobsjobidapplicationsrequestbodyrecruitee.md - docs/models/postatsjobsjobidapplicationsrequestbodyrecruiteecandidate.md @@ -7584,3 +7588,4 @@ generatedTests: unlinkSharedEnvVariable: "2025-10-24T00:07:28Z" updateStaticIps: "2025-10-24T00:07:28Z" getProjectClientCerts: "2025-10-27T19:04:15Z" +releaseNotes: "## Typescript SDK Changes Detected:\n* `kombo.ats.createCandidate()`: \n * `request.remoteFields.piloga` **Added**\n* `kombo.ats.createApplication()`: \n * `request.body.remoteFields.piloga` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index fb17665..6080f03 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -27,7 +27,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.1.1 + version: 0.2.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fcc9596..bf041ba 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.643.3 +speakeasyVersion: 1.651.0 sources: kombo-prepared-spec: sourceNamespace: kombo-api - sourceRevisionDigest: sha256:6a4ec4e32c5f00a86bcf939909f64e16f9aeb6dede882176a8b5197b2e8f2bc2 - sourceBlobDigest: sha256:8f38699f46ae3b8116996a054a4284aebb602990eab32ad5d187543889fdb350 + sourceRevisionDigest: sha256:300e3ee288c337a26e44e51212767370e6d6c078ffecc08939b1c51c1eb47ccf + sourceBlobDigest: sha256:f9b489e42fe38afc9701e659de06bbbe1286025e7e1e1e8aee2587b0a98657c2 tags: - latest - - speakeasy-sdk-regen-1761847666 + - speakeasy-sdk-regen-1762777325 - 1.0.0 targets: kombo-typescript: source: kombo-prepared-spec sourceNamespace: kombo-api - sourceRevisionDigest: sha256:6a4ec4e32c5f00a86bcf939909f64e16f9aeb6dede882176a8b5197b2e8f2bc2 - sourceBlobDigest: sha256:8f38699f46ae3b8116996a054a4284aebb602990eab32ad5d187543889fdb350 + sourceRevisionDigest: sha256:300e3ee288c337a26e44e51212767370e6d6c078ffecc08939b1c51c1eb47ccf + sourceBlobDigest: sha256:f9b489e42fe38afc9701e659de06bbbe1286025e7e1e1e8aee2587b0a98657c2 codeSamplesNamespace: kombo-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:70d935158321cb496d222754bc0c4ce4219f287f11be8f7b9cc3f8cb81c82908 + codeSamplesRevisionDigest: sha256:f66dfb3babcbe70833a5f19d3b175f45f75ac9b6bd7f826707e19520baccd5c8 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -23,9 +23,8 @@ workflow: kombo-prepared-spec: inputs: - location: https://api.kombo.dev/internal/sdk.openapi.yaml - auth: - authHeader: Authorization - authSecret: $openapi_doc_auth_token + authHeader: Authorization + authSecret: $openapi_doc_auth_token registry: location: registry.speakeasyapi.dev/kombo-ayg/api/kombo-api targets: diff --git a/RELEASES.md b/RELEASES.md index 1939c9e..96ca05d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -8,4 +8,14 @@ Based on: ### Generated - [typescript v0.1.1] . ### Releases -- [NPM v0.1.1] https://www.npmjs.com/package/@kombo-api/sdk/v/0.1.1 - . \ No newline at end of file +- [NPM v0.1.1] https://www.npmjs.com/package/@kombo-api/sdk/v/0.1.1 - . + +## 2025-11-10 12:38:40 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.651.0 (2.745.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.2.0] . +### Releases +- [NPM v0.2.0] https://www.npmjs.com/package/@kombo-api/sdk/v/0.2.0 - . \ No newline at end of file diff --git a/docs/models/operations/deleteatscandidatescandidateidtagsrequest.md b/docs/models/operations/deleteatscandidatescandidateidtagsrequest.md index 4a242dd..4524f17 100644 --- a/docs/models/operations/deleteatscandidatescandidateidtagsrequest.md +++ b/docs/models/operations/deleteatscandidatescandidateidtagsrequest.md @@ -7,7 +7,7 @@ import { DeleteAtsCandidatesCandidateIdTagsRequest } from "@kombo-api/sdk/models let value: DeleteAtsCandidatesCandidateIdTagsRequest = { candidate_id: "", - delete_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "", }, @@ -20,4 +20,4 @@ let value: DeleteAtsCandidatesCandidateIdTagsRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `candidate_id` | *string* | :heavy_check_mark: | The Kombo ID of the candidate you want to remove the tag from. | -| `delete_ats_candidates_candidate_id_tags_request_body` | [models.DeleteAtsCandidatesCandidateIdTagsRequestBody](../../models/deleteatscandidatescandidateidtagsrequestbody.md) | :heavy_check_mark: | DELETE /ats/candidates/:candidate_id/tags Request body | \ No newline at end of file +| `body` | [models.DeleteAtsCandidatesCandidateIdTagsRequestBody](../../models/deleteatscandidatescandidateidtagsrequestbody.md) | :heavy_check_mark: | DELETE /ats/candidates/:candidate_id/tags Request body | \ No newline at end of file diff --git a/docs/models/operations/deletehrisabsencesabsenceidrequest.md b/docs/models/operations/deletehrisabsencesabsenceidrequest.md index fcd1ee1..f949a8a 100644 --- a/docs/models/operations/deletehrisabsencesabsenceidrequest.md +++ b/docs/models/operations/deletehrisabsencesabsenceidrequest.md @@ -7,7 +7,7 @@ import { DeleteHrisAbsencesAbsenceIdRequest } from "@kombo-api/sdk/models/operat let value: DeleteHrisAbsencesAbsenceIdRequest = { absence_id: "", - delete_hris_absences_absence_id_request_body: {}, + body: {}, }; ``` @@ -16,4 +16,4 @@ let value: DeleteHrisAbsencesAbsenceIdRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | `absence_id` | *string* | :heavy_check_mark: | The Kombo ID of the absence | -| `delete_hris_absences_absence_id_request_body` | [models.DeleteHrisAbsencesAbsenceIdRequestBody](../../models/deletehrisabsencesabsenceidrequestbody.md) | :heavy_check_mark: | DELETE /hris/absences/:absence_id Request body | \ No newline at end of file +| `body` | [models.DeleteHrisAbsencesAbsenceIdRequestBody](../../models/deletehrisabsencesabsenceidrequestbody.md) | :heavy_check_mark: | DELETE /hris/absences/:absence_id Request body | \ No newline at end of file diff --git a/docs/models/operations/deleteintegrationsintegrationidrequest.md b/docs/models/operations/deleteintegrationsintegrationidrequest.md index b0b2655..b8ee675 100644 --- a/docs/models/operations/deleteintegrationsintegrationidrequest.md +++ b/docs/models/operations/deleteintegrationsintegrationidrequest.md @@ -7,7 +7,7 @@ import { DeleteIntegrationsIntegrationIdRequest } from "@kombo-api/sdk/models/op let value: DeleteIntegrationsIntegrationIdRequest = { integration_id: "", - delete_integrations_integration_id_request_body: {}, + body: {}, }; ``` @@ -16,4 +16,4 @@ let value: DeleteIntegrationsIntegrationIdRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `integration_id` | *string* | :heavy_check_mark: | DELETE /integrations/:integration_id Parameter | -| `delete_integrations_integration_id_request_body` | [models.DeleteIntegrationsIntegrationIdRequestBody](../../models/deleteintegrationsintegrationidrequestbody.md) | :heavy_check_mark: | DELETE /integrations/:integration_id Request body | \ No newline at end of file +| `body` | [models.DeleteIntegrationsIntegrationIdRequestBody](../../models/deleteintegrationsintegrationidrequestbody.md) | :heavy_check_mark: | DELETE /integrations/:integration_id Request body | \ No newline at end of file diff --git a/docs/models/operations/getatsapplicationsrequest.md b/docs/models/operations/getatsapplicationsrequest.md index 173bd69..0e9f919 100644 --- a/docs/models/operations/getatsapplicationsrequest.md +++ b/docs/models/operations/getatsapplicationsrequest.md @@ -10,16 +10,16 @@ let value: GetAtsApplicationsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `outcomes` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `PENDING`, `HIRED`, `DECLINED`
* `PENDING`: The application is still being processed.
* `HIRED`: The candidate was hired.
* `DECLINED`: The candidate was declined.


Leave this blank to get results matching all values. | -| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return applications that are related to _any_ of the jobs. | -| `job_remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job remote IDs. We will only return applications that are related to _any_ of the jobs. | -| `current_stage_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of application stage IDs. We will only return applications that are currently in _any_ of the stages. | -| `remote_created_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter applications by the day they were created in the remote system. This allows you to get applications that were created on or after a certain day. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `outcomes` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `PENDING`, `HIRED`, `DECLINED`
* `PENDING`: The application is still being processed.
* `HIRED`: The candidate was hired.
* `DECLINED`: The candidate was declined.


Leave this blank to get results matching all values. | +| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return applications that are related to _any_ of the jobs. | +| `job_remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job remote IDs. We will only return applications that are related to _any_ of the jobs. | +| `current_stage_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of application stage IDs. We will only return applications that are currently in _any_ of the stages. | +| `remote_created_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter applications by the day they were created in the remote system. This allows you to get applications that were created on or after a certain day. | \ No newline at end of file diff --git a/docs/models/operations/getatsapplicationstagesrequest.md b/docs/models/operations/getatsapplicationstagesrequest.md index e510243..a450fab 100644 --- a/docs/models/operations/getatsapplicationstagesrequest.md +++ b/docs/models/operations/getatsapplicationstagesrequest.md @@ -10,11 +10,11 @@ let value: GetAtsApplicationStagesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/getatscandidatesrequest.md b/docs/models/operations/getatscandidatesrequest.md index 829283c..97e0f8e 100644 --- a/docs/models/operations/getatscandidatesrequest.md +++ b/docs/models/operations/getatscandidatesrequest.md @@ -10,15 +10,15 @@ let value: GetAtsCandidatesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `email` | *string* | :heavy_minus_sign: | Filter the candidates based on an email address. When set, returns only the candidates where the given `email` is in `email_addresses`. This filter is case-insensitive. | -| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return candidates that have applied to _any_ of the jobs. | -| `first_name` | *string* | :heavy_minus_sign: | Filter candidates by first name. This filter is case-insensitive and matches the exact first name. Fuzzy matching might be enabled in the future, so consider this for your implementation. | -| `last_name` | *string* | :heavy_minus_sign: | Filter candidates by last name. This filter is case-insensitive and matches the exact last name. Fuzzy matching might be enabled in the future, so consider this for your implementation. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `email` | *string* | :heavy_minus_sign: | Filter the candidates based on an email address. When set, returns only the candidates where the given `email` is in `email_addresses`. This filter is case-insensitive. | +| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return candidates that have applied to _any_ of the jobs. | +| `first_name` | *string* | :heavy_minus_sign: | Filter candidates by first name. This filter is case-insensitive and matches the exact first name. Fuzzy matching might be enabled in the future, so consider this for your implementation. | +| `last_name` | *string* | :heavy_minus_sign: | Filter candidates by last name. This filter is case-insensitive and matches the exact last name. Fuzzy matching might be enabled in the future, so consider this for your implementation. | \ No newline at end of file diff --git a/docs/models/operations/getatsinterviewsrequest.md b/docs/models/operations/getatsinterviewsrequest.md index 688e1e2..e10b31a 100644 --- a/docs/models/operations/getatsinterviewsrequest.md +++ b/docs/models/operations/getatsinterviewsrequest.md @@ -10,12 +10,12 @@ let value: GetAtsInterviewsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return interviews for applications associated with any of these jobs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `job_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job IDs. We will only return interviews for applications associated with any of these jobs. | \ No newline at end of file diff --git a/docs/models/operations/getatsjobsrequest.md b/docs/models/operations/getatsjobsrequest.md index c5c03e1..e0b78f7 100644 --- a/docs/models/operations/getatsjobsrequest.md +++ b/docs/models/operations/getatsjobsrequest.md @@ -10,18 +10,18 @@ let value: GetAtsJobsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `job_codes` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job codes. | -| `post_url` | *string* | :heavy_minus_sign: | Filter by the `post_url` field. Can be used to find a job based on its public posting URL. | -| `statuses` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `OPEN`, `CLOSED`, `DRAFT`, `ARCHIVED`

Leave this blank to get results matching all values. | -| `employment_types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `FULL_TIME`, `PART_TIME`, `CONTRACT`, `SEASONAL`, `INTERNSHIP`

Leave this blank to get results matching all values. | -| `visibilities` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `PUBLIC`, `INTERNAL`, `UNLISTED`, `CONFIDENTIAL`

Leave this blank to get results matching all values. | -| `remote_created_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter jobs by the day they were created in the remote system. This allows you to get jobs that were created on or after a certain day. | -| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a job by keywords present in the job name. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `job_codes` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of job codes. | +| `post_url` | *string* | :heavy_minus_sign: | Filter by the `post_url` field. Can be used to find a job based on its public posting URL. | +| `statuses` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `OPEN`, `CLOSED`, `DRAFT`, `ARCHIVED`

Leave this blank to get results matching all values. | +| `employment_types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `FULL_TIME`, `PART_TIME`, `CONTRACT`, `SEASONAL`, `INTERNSHIP`

Leave this blank to get results matching all values. | +| `visibilities` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `PUBLIC`, `INTERNAL`, `UNLISTED`, `CONFIDENTIAL`

Leave this blank to get results matching all values. | +| `remote_created_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter jobs by the day they were created in the remote system. This allows you to get jobs that were created on or after a certain day. | +| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a job by keywords present in the job name. | \ No newline at end of file diff --git a/docs/models/operations/getatsoffersrequest.md b/docs/models/operations/getatsoffersrequest.md index 43a44b4..b3d8e4c 100644 --- a/docs/models/operations/getatsoffersrequest.md +++ b/docs/models/operations/getatsoffersrequest.md @@ -10,11 +10,11 @@ let value: GetAtsOffersRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/getatsrejectionreasonsrequest.md b/docs/models/operations/getatsrejectionreasonsrequest.md index 8d02f62..888eaa4 100644 --- a/docs/models/operations/getatsrejectionreasonsrequest.md +++ b/docs/models/operations/getatsrejectionreasonsrequest.md @@ -10,11 +10,11 @@ let value: GetAtsRejectionReasonsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/getatstagsrequest.md b/docs/models/operations/getatstagsrequest.md index c02baa0..0c9990f 100644 --- a/docs/models/operations/getatstagsrequest.md +++ b/docs/models/operations/getatstagsrequest.md @@ -10,11 +10,11 @@ let value: GetAtsTagsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/getatsusersrequest.md b/docs/models/operations/getatsusersrequest.md index 6c2dd6e..d917104 100644 --- a/docs/models/operations/getatsusersrequest.md +++ b/docs/models/operations/getatsusersrequest.md @@ -10,12 +10,12 @@ let value: GetAtsUsersRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `emails` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of emails. We will only return users who have _any_ of the emails. The format of the emails is case-insensitive. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `emails` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of emails. We will only return users who have _any_ of the emails. The format of the emails is case-insensitive. | \ No newline at end of file diff --git a/docs/models/operations/gethrisabsencesrequest.md b/docs/models/operations/gethrisabsencesrequest.md index 40147d3..41937fd 100644 --- a/docs/models/operations/gethrisabsencesrequest.md +++ b/docs/models/operations/gethrisabsencesrequest.md @@ -10,15 +10,15 @@ let value: GetHrisAbsencesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `date_from` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter for all the absences that either start _or_ haven't ended yet on/after this day. If you imagine a calendar displaying absences, this defines the left-most visible day. This is a plain date (i.e., `yyyy-MM-dd`), all time information is discarded. | -| `date_until` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter for absences that start on or before this day (but might continue after). If you imagine a calendar displaying absences, this defines the right-most visible day. This is a plain date (i.e., `yyyy-MM-dd`), all time information is discarded. | -| `type_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of absence type IDs. | -| `employee_id` | *string* | :heavy_minus_sign: | Filter by a specific employee using their ID. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `date_from` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter for all the absences that either start _or_ haven't ended yet on/after this day. If you imagine a calendar displaying absences, this defines the left-most visible day. This is a plain date (i.e., `yyyy-MM-dd`), all time information is discarded. | +| `date_until` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter for absences that start on or before this day (but might continue after). If you imagine a calendar displaying absences, this defines the right-most visible day. This is a plain date (i.e., `yyyy-MM-dd`), all time information is discarded. | +| `type_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of absence type IDs. | +| `employee_id` | *string* | :heavy_minus_sign: | Filter by a specific employee using their ID. | \ No newline at end of file diff --git a/docs/models/operations/gethrisabsencetypesrequest.md b/docs/models/operations/gethrisabsencetypesrequest.md index c67e774..dea8c32 100644 --- a/docs/models/operations/gethrisabsencetypesrequest.md +++ b/docs/models/operations/gethrisabsencetypesrequest.md @@ -10,11 +10,11 @@ let value: GetHrisAbsenceTypesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/gethrisemployeedocumentcategoriesrequest.md b/docs/models/operations/gethrisemployeedocumentcategoriesrequest.md index 23ef4bc..766d917 100644 --- a/docs/models/operations/gethrisemployeedocumentcategoriesrequest.md +++ b/docs/models/operations/gethrisemployeedocumentcategoriesrequest.md @@ -10,11 +10,11 @@ let value: GetHrisEmployeeDocumentCategoriesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/gethrisemployeesrequest.md b/docs/models/operations/gethrisemployeesrequest.md index e01ac2d..4a590b1 100644 --- a/docs/models/operations/gethrisemployeesrequest.md +++ b/docs/models/operations/gethrisemployeesrequest.md @@ -14,7 +14,7 @@ let value: GetHrisEmployeesRequest = {}; | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | | `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | | `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | | `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | | `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | diff --git a/docs/models/operations/gethrisemploymentsrequest.md b/docs/models/operations/gethrisemploymentsrequest.md index 3734dd7..2f98676 100644 --- a/docs/models/operations/gethrisemploymentsrequest.md +++ b/docs/models/operations/gethrisemploymentsrequest.md @@ -10,11 +10,11 @@ let value: GetHrisEmploymentsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/gethrisgroupsrequest.md b/docs/models/operations/gethrisgroupsrequest.md index 9ba47bc..be68555 100644 --- a/docs/models/operations/gethrisgroupsrequest.md +++ b/docs/models/operations/gethrisgroupsrequest.md @@ -10,13 +10,13 @@ let value: GetHrisGroupsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of group types: `DEPARTMENT`, `TEAM`, `COST_CENTER`, or `null` to filter groups without a type.

Leave this blank to get results matching all values. | -| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a group by keywords present in the group name. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of group types: `DEPARTMENT`, `TEAM`, `COST_CENTER`, or `null` to filter groups without a type.

Leave this blank to get results matching all values. | +| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a group by keywords present in the group name. | \ No newline at end of file diff --git a/docs/models/operations/gethrislegalentitiesrequest.md b/docs/models/operations/gethrislegalentitiesrequest.md index 2c2931c..afd1125 100644 --- a/docs/models/operations/gethrislegalentitiesrequest.md +++ b/docs/models/operations/gethrislegalentitiesrequest.md @@ -10,12 +10,12 @@ let value: GetHrisLegalEntitiesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a legal entity by keywords present in the legal entity name. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a legal entity by keywords present in the legal entity name. | \ No newline at end of file diff --git a/docs/models/operations/gethrislocationsrequest.md b/docs/models/operations/gethrislocationsrequest.md index d2912cb..24d5517 100644 --- a/docs/models/operations/gethrislocationsrequest.md +++ b/docs/models/operations/gethrislocationsrequest.md @@ -10,12 +10,12 @@ let value: GetHrisLocationsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a location by keywords present in the location name. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `name_contains` | *string* | :heavy_minus_sign: | Filter by the `name` field. Can be used to find a location by keywords present in the location name. | \ No newline at end of file diff --git a/docs/models/operations/gethrisperformancereviewcyclesrequest.md b/docs/models/operations/gethrisperformancereviewcyclesrequest.md index 479230c..544b79e 100644 --- a/docs/models/operations/gethrisperformancereviewcyclesrequest.md +++ b/docs/models/operations/gethrisperformancereviewcyclesrequest.md @@ -10,11 +10,11 @@ let value: GetHrisPerformanceReviewCyclesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | \ No newline at end of file diff --git a/docs/models/operations/gethrisperformancereviewsrequest.md b/docs/models/operations/gethrisperformancereviewsrequest.md index 798cac4..e6eeee7 100644 --- a/docs/models/operations/gethrisperformancereviewsrequest.md +++ b/docs/models/operations/gethrisperformancereviewsrequest.md @@ -10,14 +10,14 @@ let value: GetHrisPerformanceReviewsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `MANAGER`, `DIRECT_REPORT`, `PEER`, `SELF`

Leave this blank to get results matching all values. | -| `review_cycle_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of review cycle IDs. | -| `reviewee_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of reviewee IDs. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `types` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of `MANAGER`, `DIRECT_REPORT`, `PEER`, `SELF`

Leave this blank to get results matching all values. | +| `review_cycle_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of review cycle IDs. | +| `reviewee_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of reviewee IDs. | \ No newline at end of file diff --git a/docs/models/operations/gethristimeoffbalancesrequest.md b/docs/models/operations/gethristimeoffbalancesrequest.md index 4f654f2..a3f08fb 100644 --- a/docs/models/operations/gethristimeoffbalancesrequest.md +++ b/docs/models/operations/gethristimeoffbalancesrequest.md @@ -10,12 +10,12 @@ let value: GetHrisTimeOffBalancesRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `employee_id` | *string* | :heavy_minus_sign: | Filter by a specific employee using their ID. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `employee_id` | *string* | :heavy_minus_sign: | Filter by a specific employee using their ID. | \ No newline at end of file diff --git a/docs/models/operations/gethristimesheetsrequest.md b/docs/models/operations/gethristimesheetsrequest.md index 79b2df4..e3c8927 100644 --- a/docs/models/operations/gethristimesheetsrequest.md +++ b/docs/models/operations/gethristimesheetsrequest.md @@ -10,16 +10,16 @@ let value: GetHrisTimesheetsRequest = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | -| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | -| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | -| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | -| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | -| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | -| `employee_id` | *string* | :heavy_minus_sign: | Returns timesheets for a specific employee. | -| `started_before` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose start time is before the given timestamp. | -| `started_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose start time is on or after the given timestamp. | -| `ended_before` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose end time is on or before the given timestamp. | -| `ended_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose end time is on or after the given timestamp. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response. | +| `page_size` | *number* | :heavy_minus_sign: | The number of results to return per page. Maximum is 250. | +| `updated_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged.

If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden.

For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). | +| `include_deleted` | *boolean* | :heavy_minus_sign: | By default, deleted entries are not returned. Use the `include_deleted` query param to include deleted entries too. | +| `ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`. | +| `remote_ids` | *string*[] | :heavy_minus_sign: | Filter by a comma-separated list of remote IDs. | +| `employee_id` | *string* | :heavy_minus_sign: | Returns timesheets for a specific employee. | +| `started_before` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose start time is before the given timestamp. | +| `started_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose start time is on or after the given timestamp. | +| `ended_before` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose end time is on or before the given timestamp. | +| `ended_after` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return timesheets whose end time is on or after the given timestamp. | \ No newline at end of file diff --git a/docs/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequest.md b/docs/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequest.md index fc01b6b..c80c19c 100644 --- a/docs/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequest.md +++ b/docs/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequest.md @@ -9,10 +9,9 @@ let value: PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest = { integration_id: "", integration_field_id: "", - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: - { - enable_passthrough: true, - }, + body: { + enable_passthrough: true, + }, }; ``` @@ -22,4 +21,4 @@ let value: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `integration_id` | *string* | :heavy_check_mark: | PATCH /integrations/:integration_id/integration-fields/:integration_field_id Parameter | | `integration_field_id` | *string* | :heavy_check_mark: | PATCH /integrations/:integration_id/integration-fields/:integration_field_id Parameter | -| `patch_integrations_integration_id_integration_fields_integration_field_id_request_body` | [models.PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody](../../models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.md) | :heavy_check_mark: | PATCH /integrations/:integration_id/integration-fields/:integration_field_id Request body | \ No newline at end of file +| `body` | [models.PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody](../../models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.md) | :heavy_check_mark: | PATCH /integrations/:integration_id/integration-fields/:integration_field_id Request body | \ No newline at end of file diff --git a/docs/models/operations/postatsapplicationsapplicationidattachmentsrequest.md b/docs/models/operations/postatsapplicationsapplicationidattachmentsrequest.md index e605ee5..9875ec1 100644 --- a/docs/models/operations/postatsapplicationsapplicationidattachmentsrequest.md +++ b/docs/models/operations/postatsapplicationsapplicationidattachmentsrequest.md @@ -7,7 +7,7 @@ import { PostAtsApplicationsApplicationIdAttachmentsRequest } from "@kombo-api/s let value: PostAtsApplicationsApplicationIdAttachmentsRequest = { application_id: "", - post_ats_applications_application_id_attachments_request_body: { + body: { attachment: { name: "", type: "COVER_LETTER", @@ -21,4 +21,4 @@ let value: PostAtsApplicationsApplicationIdAttachmentsRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `application_id` | *string* | :heavy_check_mark: | POST /ats/applications/:application_id/attachments Parameter | -| `post_ats_applications_application_id_attachments_request_body` | [models.PostAtsApplicationsApplicationIdAttachmentsRequestBody](../../models/postatsapplicationsapplicationidattachmentsrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/attachments Request body | \ No newline at end of file +| `body` | [models.PostAtsApplicationsApplicationIdAttachmentsRequestBody](../../models/postatsapplicationsapplicationidattachmentsrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/attachments Request body | \ No newline at end of file diff --git a/docs/models/operations/postatsapplicationsapplicationidnotesrequest.md b/docs/models/operations/postatsapplicationsapplicationidnotesrequest.md index 71dc691..fad0308 100644 --- a/docs/models/operations/postatsapplicationsapplicationidnotesrequest.md +++ b/docs/models/operations/postatsapplicationsapplicationidnotesrequest.md @@ -7,7 +7,7 @@ import { PostAtsApplicationsApplicationIdNotesRequest } from "@kombo-api/sdk/mod let value: PostAtsApplicationsApplicationIdNotesRequest = { application_id: "", - post_ats_applications_application_id_notes_request_body: { + body: { content: "", content_type: "PLAIN_TEXT", }, @@ -19,4 +19,4 @@ let value: PostAtsApplicationsApplicationIdNotesRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `application_id` | *string* | :heavy_check_mark: | The Kombo ID of the application you want to create the note for. | -| `post_ats_applications_application_id_notes_request_body` | [models.PostAtsApplicationsApplicationIdNotesRequestBody](../../models/postatsapplicationsapplicationidnotesrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/notes Request body | \ No newline at end of file +| `body` | [models.PostAtsApplicationsApplicationIdNotesRequestBody](../../models/postatsapplicationsapplicationidnotesrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/notes Request body | \ No newline at end of file diff --git a/docs/models/operations/postatsapplicationsapplicationidrejectrequest.md b/docs/models/operations/postatsapplicationsapplicationidrejectrequest.md index ffa418b..5b37f4d 100644 --- a/docs/models/operations/postatsapplicationsapplicationidrejectrequest.md +++ b/docs/models/operations/postatsapplicationsapplicationidrejectrequest.md @@ -7,7 +7,7 @@ import { PostAtsApplicationsApplicationIdRejectRequest } from "@kombo-api/sdk/mo let value: PostAtsApplicationsApplicationIdRejectRequest = { application_id: "", - post_ats_applications_application_id_reject_request_body: { + body: { rejection_reason_id: "", }, }; @@ -18,4 +18,4 @@ let value: PostAtsApplicationsApplicationIdRejectRequest = { | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | `application_id` | *string* | :heavy_check_mark: | The Kombo ID of the application you want to reject. | -| `post_ats_applications_application_id_reject_request_body` | [models.PostAtsApplicationsApplicationIdRejectRequestBody](../../models/postatsapplicationsapplicationidrejectrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/reject Request body | \ No newline at end of file +| `body` | [models.PostAtsApplicationsApplicationIdRejectRequestBody](../../models/postatsapplicationsapplicationidrejectrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/reject Request body | \ No newline at end of file diff --git a/docs/models/operations/postatsapplicationsapplicationidresultlinksrequest.md b/docs/models/operations/postatsapplicationsapplicationidresultlinksrequest.md index 194ede8..20a905a 100644 --- a/docs/models/operations/postatsapplicationsapplicationidresultlinksrequest.md +++ b/docs/models/operations/postatsapplicationsapplicationidresultlinksrequest.md @@ -7,7 +7,7 @@ import { PostAtsApplicationsApplicationIdResultLinksRequest } from "@kombo-api/s let value: PostAtsApplicationsApplicationIdResultLinksRequest = { application_id: "", - post_ats_applications_application_id_result_links_request_body: { + body: { label: "", url: "https://elegant-litter.com/", }, @@ -19,4 +19,4 @@ let value: PostAtsApplicationsApplicationIdResultLinksRequest = { | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `application_id` | *string* | :heavy_check_mark: | The Kombo ID of the application you want to create the link for. | -| `post_ats_applications_application_id_result_links_request_body` | [models.PostAtsApplicationsApplicationIdResultLinksRequestBody](../../models/postatsapplicationsapplicationidresultlinksrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/result-links Request body | \ No newline at end of file +| `body` | [models.PostAtsApplicationsApplicationIdResultLinksRequestBody](../../models/postatsapplicationsapplicationidresultlinksrequestbody.md) | :heavy_check_mark: | POST /ats/applications/:application_id/result-links Request body | \ No newline at end of file diff --git a/docs/models/operations/postatscandidatescandidateidattachmentsrequest.md b/docs/models/operations/postatscandidatescandidateidattachmentsrequest.md index ca6cbf2..54e0b06 100644 --- a/docs/models/operations/postatscandidatescandidateidattachmentsrequest.md +++ b/docs/models/operations/postatscandidatescandidateidattachmentsrequest.md @@ -7,7 +7,7 @@ import { PostAtsCandidatesCandidateIdAttachmentsRequest } from "@kombo-api/sdk/m let value: PostAtsCandidatesCandidateIdAttachmentsRequest = { candidate_id: "", - post_ats_candidates_candidate_id_attachments_request_body: { + body: { attachment: { name: "", type: "COVER_LETTER", @@ -21,4 +21,4 @@ let value: PostAtsCandidatesCandidateIdAttachmentsRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `candidate_id` | *string* | :heavy_check_mark: | The Kombo ID of the candidate you want to add the attachment to. | -| `post_ats_candidates_candidate_id_attachments_request_body` | [models.PostAtsCandidatesCandidateIdAttachmentsRequestBody](../../models/postatscandidatescandidateidattachmentsrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/attachments Request body | \ No newline at end of file +| `body` | [models.PostAtsCandidatesCandidateIdAttachmentsRequestBody](../../models/postatscandidatescandidateidattachmentsrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/attachments Request body | \ No newline at end of file diff --git a/docs/models/operations/postatscandidatescandidateidresultlinksrequest.md b/docs/models/operations/postatscandidatescandidateidresultlinksrequest.md index 7e30553..2c52e4f 100644 --- a/docs/models/operations/postatscandidatescandidateidresultlinksrequest.md +++ b/docs/models/operations/postatscandidatescandidateidresultlinksrequest.md @@ -7,7 +7,7 @@ import { PostAtsCandidatesCandidateIdResultLinksRequest } from "@kombo-api/sdk/m let value: PostAtsCandidatesCandidateIdResultLinksRequest = { candidate_id: "", - post_ats_candidates_candidate_id_result_links_request_body: { + body: { label: "", url: "https://acceptable-excess.name", }, @@ -19,4 +19,4 @@ let value: PostAtsCandidatesCandidateIdResultLinksRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `candidate_id` | *string* | :heavy_check_mark: | The Kombo ID of the candidate you want to add the result link to. | -| `post_ats_candidates_candidate_id_result_links_request_body` | [models.PostAtsCandidatesCandidateIdResultLinksRequestBody](../../models/postatscandidatescandidateidresultlinksrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/result-links Request body | \ No newline at end of file +| `body` | [models.PostAtsCandidatesCandidateIdResultLinksRequestBody](../../models/postatscandidatescandidateidresultlinksrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/result-links Request body | \ No newline at end of file diff --git a/docs/models/operations/postatscandidatescandidateidtagsrequest.md b/docs/models/operations/postatscandidatescandidateidtagsrequest.md index dd42e91..16ce74c 100644 --- a/docs/models/operations/postatscandidatescandidateidtagsrequest.md +++ b/docs/models/operations/postatscandidatescandidateidtagsrequest.md @@ -7,7 +7,7 @@ import { PostAtsCandidatesCandidateIdTagsRequest } from "@kombo-api/sdk/models/o let value: PostAtsCandidatesCandidateIdTagsRequest = { candidate_id: "", - post_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "", }, @@ -20,4 +20,4 @@ let value: PostAtsCandidatesCandidateIdTagsRequest = { | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | `candidate_id` | *string* | :heavy_check_mark: | The Kombo ID of the candidate you want to add the tag to. | -| `post_ats_candidates_candidate_id_tags_request_body` | [models.PostAtsCandidatesCandidateIdTagsRequestBody](../../models/postatscandidatescandidateidtagsrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/tags Request body | \ No newline at end of file +| `body` | [models.PostAtsCandidatesCandidateIdTagsRequestBody](../../models/postatscandidatescandidateidtagsrequestbody.md) | :heavy_check_mark: | POST /ats/candidates/:candidate_id/tags Request body | \ No newline at end of file diff --git a/docs/models/operations/postatsjobsjobidapplicationsrequest.md b/docs/models/operations/postatsjobsjobidapplicationsrequest.md index 8aedef7..415f941 100644 --- a/docs/models/operations/postatsjobsjobidapplicationsrequest.md +++ b/docs/models/operations/postatsjobsjobidapplicationsrequest.md @@ -7,7 +7,7 @@ import { PostAtsJobsJobIdApplicationsRequest } from "@kombo-api/sdk/models/opera let value: PostAtsJobsJobIdApplicationsRequest = { job_id: "", - post_ats_jobs_job_id_applications_request_body: { + body: { candidate: { first_name: "Lorine", last_name: "Stanton", @@ -28,4 +28,4 @@ let value: PostAtsJobsJobIdApplicationsRequest = { | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `job_id` | *string* | :heavy_check_mark: | The Kombo ID or Remote ID of the Job this candidate should apply for. If you want to use the ID of the integrated system (remote_id) you need to prefix the id with "remote:". You can use the remote ID if you do not want to sync jobs. | -| `post_ats_jobs_job_id_applications_request_body` | [models.PostAtsJobsJobIdApplicationsRequestBody](../../models/postatsjobsjobidapplicationsrequestbody.md) | :heavy_check_mark: | POST /ats/jobs/:job_id/applications Request body | \ No newline at end of file +| `body` | [models.PostAtsJobsJobIdApplicationsRequestBody](../../models/postatsjobsjobidapplicationsrequestbody.md) | :heavy_check_mark: | POST /ats/jobs/:job_id/applications Request body | \ No newline at end of file diff --git a/docs/models/operations/posthrisemployeesemployeeiddocumentsrequest.md b/docs/models/operations/posthrisemployeesemployeeiddocumentsrequest.md index ca5acff..43be89d 100644 --- a/docs/models/operations/posthrisemployeesemployeeiddocumentsrequest.md +++ b/docs/models/operations/posthrisemployeesemployeeiddocumentsrequest.md @@ -7,7 +7,7 @@ import { PostHrisEmployeesEmployeeIdDocumentsRequest } from "@kombo-api/sdk/mode let value: PostHrisEmployeesEmployeeIdDocumentsRequest = { employee_id: "", - post_hris_employees_employee_id_documents_request_body: { + body: { category_id: "", document: { name: "", @@ -21,4 +21,4 @@ let value: PostHrisEmployeesEmployeeIdDocumentsRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `employee_id` | *string* | :heavy_check_mark: | POST /hris/employees/:employee_id/documents Parameter | -| `post_hris_employees_employee_id_documents_request_body` | [models.PostHrisEmployeesEmployeeIdDocumentsRequestBody](../../models/posthrisemployeesemployeeiddocumentsrequestbody.md) | :heavy_check_mark: | POST /hris/employees/:employee_id/documents Request body | \ No newline at end of file +| `body` | [models.PostHrisEmployeesEmployeeIdDocumentsRequestBody](../../models/posthrisemployeesemployeeiddocumentsrequestbody.md) | :heavy_check_mark: | POST /hris/employees/:employee_id/documents Request body | \ No newline at end of file diff --git a/docs/models/operations/postintegrationsintegrationidrelinkrequest.md b/docs/models/operations/postintegrationsintegrationidrelinkrequest.md index 5ee419c..cd9b873 100644 --- a/docs/models/operations/postintegrationsintegrationidrelinkrequest.md +++ b/docs/models/operations/postintegrationsintegrationidrelinkrequest.md @@ -7,7 +7,7 @@ import { PostIntegrationsIntegrationIdRelinkRequest } from "@kombo-api/sdk/model let value: PostIntegrationsIntegrationIdRelinkRequest = { integration_id: "", - post_integrations_integration_id_relink_request_body: {}, + body: {}, }; ``` @@ -16,4 +16,4 @@ let value: PostIntegrationsIntegrationIdRelinkRequest = { | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `integration_id` | *string* | :heavy_check_mark: | POST /integrations/:integration_id/relink Parameter | -| `post_integrations_integration_id_relink_request_body` | [models.PostIntegrationsIntegrationIdRelinkRequestBody](../../models/postintegrationsintegrationidrelinkrequestbody.md) | :heavy_check_mark: | POST /integrations/:integration_id/relink Request body | \ No newline at end of file +| `body` | [models.PostIntegrationsIntegrationIdRelinkRequestBody](../../models/postintegrationsintegrationidrelinkrequestbody.md) | :heavy_check_mark: | POST /integrations/:integration_id/relink Request body | \ No newline at end of file diff --git a/docs/models/operations/postpassthroughtoolapirequest.md b/docs/models/operations/postpassthroughtoolapirequest.md index caa71ed..35edadc 100644 --- a/docs/models/operations/postpassthroughtoolapirequest.md +++ b/docs/models/operations/postpassthroughtoolapirequest.md @@ -8,7 +8,7 @@ import { PostPassthroughToolApiRequest } from "@kombo-api/sdk/models/operations" let value: PostPassthroughToolApiRequest = { tool: "", api: "", - post_passthrough_tool_api_request_body: { + body: { method: "GET", path: "/boot", }, @@ -21,4 +21,4 @@ let value: PostPassthroughToolApiRequest = { | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | `tool` | *string* | :heavy_check_mark: | The ID of the tool whose passthrough API you want to call (e.g., `personio`). | | `api` | *string* | :heavy_check_mark: | The ID of the passthrough API you want to call (some tools provide multiple). Check the endpoint description for a list of all available APIs. | -| `post_passthrough_tool_api_request_body` | [models.PostPassthroughToolApiRequestBody](../../models/postpassthroughtoolapirequestbody.md) | :heavy_check_mark: | POST /passthrough/:tool/:api Request body | \ No newline at end of file +| `body` | [models.PostPassthroughToolApiRequestBody](../../models/postpassthroughtoolapirequestbody.md) | :heavy_check_mark: | POST /passthrough/:tool/:api Request body | \ No newline at end of file diff --git a/docs/models/operations/putassessmentordersassessmentorderidresultrequest.md b/docs/models/operations/putassessmentordersassessmentorderidresultrequest.md index 9c8979f..d7809da 100644 --- a/docs/models/operations/putassessmentordersassessmentorderidresultrequest.md +++ b/docs/models/operations/putassessmentordersassessmentorderidresultrequest.md @@ -7,7 +7,7 @@ import { PutAssessmentOrdersAssessmentOrderIdResultRequest } from "@kombo-api/sd let value: PutAssessmentOrdersAssessmentOrderIdResultRequest = { assessment_order_id: "", - put_assessment_orders_assessment_order_id_result_request_body: { + body: { status: "OPEN", result_url: "https://uniform-secrecy.info", }, @@ -19,4 +19,4 @@ let value: PutAssessmentOrdersAssessmentOrderIdResultRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `assessment_order_id` | *string* | :heavy_check_mark: | PUT /assessment/orders/:assessment_order_id/result Parameter | -| `put_assessment_orders_assessment_order_id_result_request_body` | [models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody](../../models/putassessmentordersassessmentorderidresultrequestbody.md) | :heavy_check_mark: | PUT /assessment/orders/:assessment_order_id/result Request body | \ No newline at end of file +| `body` | [models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody](../../models/putassessmentordersassessmentorderidresultrequestbody.md) | :heavy_check_mark: | PUT /assessment/orders/:assessment_order_id/result Request body | \ No newline at end of file diff --git a/docs/models/operations/putatsapplicationsapplicationidstagerequest.md b/docs/models/operations/putatsapplicationsapplicationidstagerequest.md index a8ac907..7f23d1b 100644 --- a/docs/models/operations/putatsapplicationsapplicationidstagerequest.md +++ b/docs/models/operations/putatsapplicationsapplicationidstagerequest.md @@ -7,7 +7,7 @@ import { PutAtsApplicationsApplicationIdStageRequest } from "@kombo-api/sdk/mode let value: PutAtsApplicationsApplicationIdStageRequest = { application_id: "", - put_ats_applications_application_id_stage_request_body: { + body: { stage_id: "", }, }; @@ -18,4 +18,4 @@ let value: PutAtsApplicationsApplicationIdStageRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `application_id` | *string* | :heavy_check_mark: | The Kombo ID of the application you want to move to a different stage. | -| `put_ats_applications_application_id_stage_request_body` | [models.PutAtsApplicationsApplicationIdStageRequestBody](../../models/putatsapplicationsapplicationidstagerequestbody.md) | :heavy_check_mark: | PUT /ats/applications/:application_id/stage Request body | \ No newline at end of file +| `body` | [models.PutAtsApplicationsApplicationIdStageRequestBody](../../models/putatsapplicationsapplicationidstagerequestbody.md) | :heavy_check_mark: | PUT /ats/applications/:application_id/stage Request body | \ No newline at end of file diff --git a/docs/models/operations/putintegrationsintegrationidcustomfieldscustomfieldidrequest.md b/docs/models/operations/putintegrationsintegrationidcustomfieldscustomfieldidrequest.md index abcd8f4..e4bd596 100644 --- a/docs/models/operations/putintegrationsintegrationidcustomfieldscustomfieldidrequest.md +++ b/docs/models/operations/putintegrationsintegrationidcustomfieldscustomfieldidrequest.md @@ -8,7 +8,7 @@ import { PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest } from "@k let value: PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest = { integration_id: "", custom_field_id: "", - put_integrations_integration_id_custom_fields_custom_field_id_request_body: { + body: { integration_field_id: "", }, }; @@ -20,4 +20,4 @@ let value: PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest = { | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `integration_id` | *string* | :heavy_check_mark: | The unique ID of the integration where the custom field mapping should be updated | | `custom_field_id` | *string* | :heavy_check_mark: | The unique ID of the custom field that should be updated | -| `put_integrations_integration_id_custom_fields_custom_field_id_request_body` | [models.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody](../../models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.md) | :heavy_check_mark: | PUT /integrations/:integration_id/custom-fields/:custom_field_id Request body | \ No newline at end of file +| `body` | [models.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody](../../models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.md) | :heavy_check_mark: | PUT /integrations/:integration_id/custom-fields/:custom_field_id Request body | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodypiloga.md b/docs/models/postatscandidatesrequestbodypiloga.md new file mode 100644 index 0000000..0e0cc0e --- /dev/null +++ b/docs/models/postatscandidatesrequestbodypiloga.md @@ -0,0 +1,17 @@ +# PostAtsCandidatesRequestBodyPiloga + +Fields specific to P&I Loga. + +## Example Usage + +```typescript +import { PostAtsCandidatesRequestBodyPiloga } from "@kombo-api/sdk/models"; + +let value: PostAtsCandidatesRequestBodyPiloga = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `candidate` | [models.PostAtsCandidatesRequestBodyPilogaCandidate](../models/postatscandidatesrequestbodypilogacandidate.md) | :heavy_minus_sign: | Additional candidate fields for P&I Loga that will be mapped to the application form. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodypilogacandidate.md b/docs/models/postatscandidatesrequestbodypilogacandidate.md new file mode 100644 index 0000000..fa607bd --- /dev/null +++ b/docs/models/postatscandidatesrequestbodypilogacandidate.md @@ -0,0 +1,17 @@ +# PostAtsCandidatesRequestBodyPilogaCandidate + +Additional candidate fields for P&I Loga that will be mapped to the application form. + +## Example Usage + +```typescript +import { PostAtsCandidatesRequestBodyPilogaCandidate } from "@kombo-api/sdk/models"; + +let value: PostAtsCandidatesRequestBodyPilogaCandidate = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `street` | *string* | :heavy_minus_sign: | The street address of the candidate. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodyremotefields.md b/docs/models/postatscandidatesrequestbodyremotefields.md index c075caa..ca7e01d 100644 --- a/docs/models/postatscandidatesrequestbodyremotefields.md +++ b/docs/models/postatscandidatesrequestbodyremotefields.md @@ -32,4 +32,5 @@ let value: PostAtsCandidatesRequestBodyRemoteFields = {}; | `jobylon` | [models.PostAtsCandidatesRequestBodyJobylon](../models/postatscandidatesrequestbodyjobylon.md) | :heavy_minus_sign: | Fields specific to Jobylon. | | `avature` | [models.PostAtsCandidatesRequestBodyAvature](../models/postatscandidatesrequestbodyavature.md) | :heavy_minus_sign: | Fields specific to Avature. | | `recruitee` | [models.PostAtsCandidatesRequestBodyRecruitee](../models/postatscandidatesrequestbodyrecruitee.md) | :heavy_minus_sign: | Fields specific to Recruitee. | -| `umantis` | [models.PostAtsCandidatesRequestBodyUmantis](../models/postatscandidatesrequestbodyumantis.md) | :heavy_minus_sign: | Fields specific to Abacus Umantis. | \ No newline at end of file +| `umantis` | [models.PostAtsCandidatesRequestBodyUmantis](../models/postatscandidatesrequestbodyumantis.md) | :heavy_minus_sign: | Fields specific to Abacus Umantis. | +| `piloga` | [models.PostAtsCandidatesRequestBodyPiloga](../models/postatscandidatesrequestbodypiloga.md) | :heavy_minus_sign: | Fields specific to P&I Loga. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodypiloga.md b/docs/models/postatsjobsjobidapplicationsrequestbodypiloga.md new file mode 100644 index 0000000..bf46ac6 --- /dev/null +++ b/docs/models/postatsjobsjobidapplicationsrequestbodypiloga.md @@ -0,0 +1,17 @@ +# PostAtsJobsJobIdApplicationsRequestBodyPiloga + +Fields specific to P&I Loga. + +## Example Usage + +```typescript +import { PostAtsJobsJobIdApplicationsRequestBodyPiloga } from "@kombo-api/sdk/models"; + +let value: PostAtsJobsJobIdApplicationsRequestBodyPiloga = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `candidate` | [models.PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate](../models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md) | :heavy_minus_sign: | Additional candidate fields for P&I Loga that will be mapped to the application form. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md b/docs/models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md new file mode 100644 index 0000000..33083f4 --- /dev/null +++ b/docs/models/postatsjobsjobidapplicationsrequestbodypilogacandidate.md @@ -0,0 +1,17 @@ +# PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate + +Additional candidate fields for P&I Loga that will be mapped to the application form. + +## Example Usage + +```typescript +import { PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate } from "@kombo-api/sdk/models"; + +let value: PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `street` | *string* | :heavy_minus_sign: | The street address of the candidate. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md b/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md index 3cf02fd..028e6be 100644 --- a/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md +++ b/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md @@ -32,4 +32,5 @@ let value: PostAtsJobsJobIdApplicationsRequestBodyRemoteFields = {}; | `jobylon` | [models.PostAtsJobsJobIdApplicationsRequestBodyJobylon](../models/postatsjobsjobidapplicationsrequestbodyjobylon.md) | :heavy_minus_sign: | Fields specific to Jobylon. | | `avature` | [models.PostAtsJobsJobIdApplicationsRequestBodyAvature](../models/postatsjobsjobidapplicationsrequestbodyavature.md) | :heavy_minus_sign: | Fields specific to Avature. | | `recruitee` | [models.PostAtsJobsJobIdApplicationsRequestBodyRecruitee](../models/postatsjobsjobidapplicationsrequestbodyrecruitee.md) | :heavy_minus_sign: | Fields specific to Recruitee. | -| `umantis` | [models.PostAtsJobsJobIdApplicationsRequestBodyUmantis](../models/postatsjobsjobidapplicationsrequestbodyumantis.md) | :heavy_minus_sign: | Fields specific to Abacus Umantis. | \ No newline at end of file +| `umantis` | [models.PostAtsJobsJobIdApplicationsRequestBodyUmantis](../models/postatsjobsjobidapplicationsrequestbodyumantis.md) | :heavy_minus_sign: | Fields specific to Abacus Umantis. | +| `piloga` | [models.PostAtsJobsJobIdApplicationsRequestBodyPiloga](../models/postatsjobsjobidapplicationsrequestbodypiloga.md) | :heavy_minus_sign: | Fields specific to P&I Loga. | \ No newline at end of file diff --git a/docs/models/webhooks/webhookassessmentorderreceivedwebhookpayloadrequest.md b/docs/models/webhooks/webhookassessmentorderreceivedwebhookpayloadrequest.md index 0d9257d..6eb4627 100644 --- a/docs/models/webhooks/webhookassessmentorderreceivedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookassessmentorderreceivedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookAssessmentOrderReceivedWebhookPayloadRequest } from "@kombo-api/ let value: WebhookAssessmentOrderReceivedWebhookPayloadRequest = { x_kombo_signature: "", - assessment_order_received_webhook_payload: { + body: { id: "", type: "assessment:order-received", data: { @@ -42,4 +42,4 @@ let value: WebhookAssessmentOrderReceivedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `assessment_order_received_webhook_payload` | [models.AssessmentOrderReceivedWebhookPayload](../../models/assessmentorderreceivedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.AssessmentOrderReceivedWebhookPayload](../../models/assessmentorderreceivedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookconnectionflowfailedwebhookpayloadrequest.md b/docs/models/webhooks/webhookconnectionflowfailedwebhookpayloadrequest.md index 95a768f..d04a4cc 100644 --- a/docs/models/webhooks/webhookconnectionflowfailedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookconnectionflowfailedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookConnectionFlowFailedWebhookPayloadRequest } from "@kombo-api/sdk let value: WebhookConnectionFlowFailedWebhookPayloadRequest = { x_kombo_signature: "", - connection_flow_failed_webhook_payload: { + body: { id: "", type: "connection-flow-failed", data: { @@ -29,4 +29,4 @@ let value: WebhookConnectionFlowFailedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `connection_flow_failed_webhook_payload` | [models.ConnectionFlowFailedWebhookPayload](../../models/connectionflowfailedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.ConnectionFlowFailedWebhookPayload](../../models/connectionflowfailedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookdatachangedwebhookpayloadrequest.md b/docs/models/webhooks/webhookdatachangedwebhookpayloadrequest.md index e631c82..e28bbe5 100644 --- a/docs/models/webhooks/webhookdatachangedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookdatachangedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookDataChangedWebhookPayloadRequest } from "@kombo-api/sdk/models/w let value: WebhookDataChangedWebhookPayloadRequest = { x_kombo_signature: "", - data_changed_webhook_payload: { + body: { id: "", type: "data-changed", data: { @@ -29,4 +29,4 @@ let value: WebhookDataChangedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `data_changed_webhook_payload` | [models.DataChangedWebhookPayload](../../models/datachangedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.DataChangedWebhookPayload](../../models/datachangedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayloadrequest.md b/docs/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayloadrequest.md index 17cf94b..5920ea9 100644 --- a/docs/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest } from "@komb let value: WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest = { x_kombo_signature: "", - inline_assessment_order_received_webhook_payload: { + body: { id: "", type: "inline-assessment:order-received", data: { @@ -32,4 +32,4 @@ let value: WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `inline_assessment_order_received_webhook_payload` | [models.InlineAssessmentOrderReceivedWebhookPayload](../../models/inlineassessmentorderreceivedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.InlineAssessmentOrderReceivedWebhookPayload](../../models/inlineassessmentorderreceivedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookintegrationcreatedwebhookpayloadrequest.md b/docs/models/webhooks/webhookintegrationcreatedwebhookpayloadrequest.md index 2dea150..cb4eeb0 100644 --- a/docs/models/webhooks/webhookintegrationcreatedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookintegrationcreatedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookIntegrationCreatedWebhookPayloadRequest } from "@kombo-api/sdk/m let value: WebhookIntegrationCreatedWebhookPayloadRequest = { x_kombo_signature: "", - integration_created_webhook_payload: { + body: { id: "", type: "integration-created", data: { @@ -29,4 +29,4 @@ let value: WebhookIntegrationCreatedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `integration_created_webhook_payload` | [models.IntegrationCreatedWebhookPayload](../../models/integrationcreatedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.IntegrationCreatedWebhookPayload](../../models/integrationcreatedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookintegrationdeletedwebhookpayloadrequest.md b/docs/models/webhooks/webhookintegrationdeletedwebhookpayloadrequest.md index f4f297e..31f6ea7 100644 --- a/docs/models/webhooks/webhookintegrationdeletedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookintegrationdeletedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookIntegrationDeletedWebhookPayloadRequest } from "@kombo-api/sdk/m let value: WebhookIntegrationDeletedWebhookPayloadRequest = { x_kombo_signature: "", - integration_deleted_webhook_payload: { + body: { id: "", type: "integration-deleted", data: { @@ -30,4 +30,4 @@ let value: WebhookIntegrationDeletedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `integration_deleted_webhook_payload` | [models.IntegrationDeletedWebhookPayload](../../models/integrationdeletedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.IntegrationDeletedWebhookPayload](../../models/integrationdeletedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhookintegrationstatechangedwebhookpayloadrequest.md b/docs/models/webhooks/webhookintegrationstatechangedwebhookpayloadrequest.md index 5cbc285..0faf8f3 100644 --- a/docs/models/webhooks/webhookintegrationstatechangedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhookintegrationstatechangedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookIntegrationStateChangedWebhookPayloadRequest } from "@kombo-api/ let value: WebhookIntegrationStateChangedWebhookPayloadRequest = { x_kombo_signature: "", - integration_state_changed_webhook_payload: { + body: { id: "", type: "integration-state-changed", data: { @@ -32,4 +32,4 @@ let value: WebhookIntegrationStateChangedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `integration_state_changed_webhook_payload` | [models.IntegrationStateChangedWebhookPayload](../../models/integrationstatechangedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.IntegrationStateChangedWebhookPayload](../../models/integrationstatechangedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/webhooksyncfinishedwebhookpayloadrequest.md b/docs/models/webhooks/webhooksyncfinishedwebhookpayloadrequest.md index 612ab41..c40bcf0 100644 --- a/docs/models/webhooks/webhooksyncfinishedwebhookpayloadrequest.md +++ b/docs/models/webhooks/webhooksyncfinishedwebhookpayloadrequest.md @@ -7,7 +7,7 @@ import { WebhookSyncFinishedWebhookPayloadRequest } from "@kombo-api/sdk/models/ let value: WebhookSyncFinishedWebhookPayloadRequest = { x_kombo_signature: "", - sync_finished_webhook_payload: { + body: { id: "", type: "sync-finished", data: { @@ -35,4 +35,4 @@ let value: WebhookSyncFinishedWebhookPayloadRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `x_kombo_signature` | *string* | :heavy_check_mark: | HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. | -| `sync_finished_webhook_payload` | [models.SyncFinishedWebhookPayload](../../models/syncfinishedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `body` | [models.SyncFinishedWebhookPayload](../../models/syncfinishedwebhookpayload.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/assessment/README.md b/docs/sdks/assessment/README.md index 37fcdec..fd0d905 100644 --- a/docs/sdks/assessment/README.md +++ b/docs/sdks/assessment/README.md @@ -341,7 +341,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.assessment.updateOrderResult({ assessment_order_id: "GRKdd9dibYKKCrmGRSMJf3wu", - put_assessment_orders_assessment_order_id_result_request_body: { + body: { status: "COMPLETED", result_url: "https://example.com", completed_at: new Date("2023-04-04T00:00:00Z"), @@ -398,7 +398,7 @@ const kombo = new KomboCore({ async function run() { const res = await assessmentUpdateOrderResult(kombo, { assessment_order_id: "GRKdd9dibYKKCrmGRSMJf3wu", - put_assessment_orders_assessment_order_id_result_request_body: { + body: { status: "COMPLETED", result_url: "https://example.com", completed_at: new Date("2023-04-04T00:00:00Z"), diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index 79c81f5..478220a 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -144,7 +144,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.moveApplicationToStage({ application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - put_ats_applications_application_id_stage_request_body: { + body: { stage_id: "3PJ8PZhZZa1eEdd2DtPNtVup", }, }); @@ -173,7 +173,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsMoveApplicationToStage(kombo, { application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - put_ats_applications_application_id_stage_request_body: { + body: { stage_id: "3PJ8PZhZZa1eEdd2DtPNtVup", }, }); @@ -256,7 +256,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addApplicationResultLink({ application_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_applications_application_id_result_links_request_body: { + body: { label: "Assessment Result", url: "https://example.com/test-results/5BtP1WC1UboS7CF3yxjKcvjG", details: { @@ -299,7 +299,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddApplicationResultLink(kombo, { application_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_applications_application_id_result_links_request_body: { + body: { label: "Assessment Result", url: "https://example.com/test-results/5BtP1WC1UboS7CF3yxjKcvjG", details: { @@ -382,7 +382,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addApplicationNote({ application_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_applications_application_id_notes_request_body: { + body: { content: "A new message from the candidate is available in YourChat!", content_type: "PLAIN_TEXT", }, @@ -412,7 +412,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddApplicationNote(kombo, { application_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_applications_application_id_notes_request_body: { + body: { content: "A new message from the candidate is available in YourChat!", content_type: "PLAIN_TEXT", }, @@ -571,7 +571,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addApplicationAttachment({ application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_applications_application_id_attachments_request_body: { + body: { attachment: { name: "Frank Doe CV.txt", content_type: "text/plain", @@ -605,7 +605,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddApplicationAttachment(kombo, { application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_applications_application_id_attachments_request_body: { + body: { attachment: { name: "Frank Doe CV.txt", content_type: "text/plain", @@ -679,7 +679,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.rejectApplication({ application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_applications_application_id_reject_request_body: { + body: { rejection_reason_id: "3PJ8PZhZZa1eEdd2DtPNtVup", note: "Candidate was a great culture fit but didn't bring the hard skills we need.", }, @@ -709,7 +709,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsRejectApplication(kombo, { application_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_applications_application_id_reject_request_body: { + body: { rejection_reason_id: "3PJ8PZhZZa1eEdd2DtPNtVup", note: "Candidate was a great culture fit but didn't bring the hard skills we need.", }, @@ -1198,7 +1198,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addCandidateAttachment({ candidate_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_candidates_candidate_id_attachments_request_body: { + body: { attachment: { name: "Frank Doe CV.txt", content_type: "text/plain", @@ -1232,7 +1232,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddCandidateAttachment(kombo, { candidate_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_ats_candidates_candidate_id_attachments_request_body: { + body: { attachment: { name: "Frank Doe CV.txt", content_type: "text/plain", @@ -1325,7 +1325,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addCandidateResultLink({ candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_candidates_candidate_id_result_links_request_body: { + body: { label: "Assessment Result", url: "https://example.com/test-results/5BtP1WC1UboS7CF3yxjKcvjG", details: { @@ -1368,7 +1368,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddCandidateResultLink(kombo, { candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_candidates_candidate_id_result_links_request_body: { + body: { label: "Assessment Result", url: "https://example.com/test-results/5BtP1WC1UboS7CF3yxjKcvjG", details: { @@ -1451,7 +1451,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.addCandidateTag({ candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "Excellent Fit", }, @@ -1482,7 +1482,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsAddCandidateTag(kombo, { candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - post_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "Excellent Fit", }, @@ -1553,7 +1553,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.removeCandidateTag({ candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - delete_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "Excellent Fit", }, @@ -1584,7 +1584,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsRemoveCandidateTag(kombo, { candidate_id: "8Xi6iZrwusZqJmDGXs49GBmJ", - delete_ats_candidates_candidate_id_tags_request_body: { + body: { tag: { name: "Excellent Fit", }, @@ -1952,7 +1952,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.ats.createApplication({ job_id: "BDpgnpZ148nrGh4mYHNxJBgx", - post_ats_jobs_job_id_applications_request_body: { + body: { stage_id: "8x3YKRDcuRnwShdh96ShBNn1", candidate: { first_name: "Frank", @@ -2021,7 +2021,7 @@ const kombo = new KomboCore({ async function run() { const res = await atsCreateApplication(kombo, { job_id: "BDpgnpZ148nrGh4mYHNxJBgx", - post_ats_jobs_job_id_applications_request_body: { + body: { stage_id: "8x3YKRDcuRnwShdh96ShBNn1", candidate: { first_name: "Frank", diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 5257666..5935c3b 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -330,7 +330,7 @@ async function run() { const result = await kombo.general.sendPassthroughRequest({ tool: "personio", api: "personnel", - post_passthrough_tool_api_request_body: { + body: { method: "GET", path: "/company/employees", }, @@ -361,7 +361,7 @@ async function run() { const res = await generalSendPassthroughRequest(kombo, { tool: "personio", api: "personnel", - post_passthrough_tool_api_request_body: { + body: { method: "GET", path: "/company/employees", }, @@ -415,7 +415,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.general.deleteIntegration({ integration_id: "", - delete_integrations_integration_id_request_body: {}, + body: {}, }); console.log(result); @@ -441,7 +441,7 @@ const kombo = new KomboCore({ async function run() { const res = await generalDeleteIntegration(kombo, { integration_id: "", - delete_integrations_integration_id_request_body: {}, + body: {}, }); if (res.ok) { const { value: result } = res; @@ -577,7 +577,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.general.createReconnectionLink({ integration_id: "personio:93fCvorjZ2jas7ZekX1V1n5d", - post_integrations_integration_id_relink_request_body: { + body: { scope_config_id: "9Pv6aCFwNDEzPNmwjSsY9SQx", }, }); @@ -605,7 +605,7 @@ const kombo = new KomboCore({ async function run() { const res = await generalCreateReconnectionLink(kombo, { integration_id: "personio:93fCvorjZ2jas7ZekX1V1n5d", - post_integrations_integration_id_relink_request_body: { + body: { scope_config_id: "9Pv6aCFwNDEzPNmwjSsY9SQx", }, }); @@ -737,7 +737,7 @@ async function run() { const result = await kombo.general.updateIntegrationField({ integration_id: "integration_id", integration_field_id: "integration_field_id", - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: { + body: { enable_passthrough: true, }, }); @@ -766,7 +766,7 @@ async function run() { const res = await generalUpdateIntegrationField(kombo, { integration_id: "integration_id", integration_field_id: "integration_field_id", - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: { + body: { enable_passthrough: true, }, }); @@ -898,7 +898,7 @@ async function run() { const result = await kombo.general.updateCustomFieldMapping({ integration_id: "integration_id", custom_field_id: "custom_field_id", - put_integrations_integration_id_custom_fields_custom_field_id_request_body: { + body: { integration_field_id: "integration_field_id", }, }); @@ -927,7 +927,7 @@ async function run() { const res = await generalUpdateCustomFieldMapping(kombo, { integration_id: "integration_id", custom_field_id: "custom_field_id", - put_integrations_integration_id_custom_fields_custom_field_id_request_body: { + body: { integration_field_id: "integration_field_id", }, }); diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index 0dc58d3..24575da 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -408,7 +408,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.hris.addEmployeeDocument({ employee_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_hris_employees_employee_id_documents_request_body: { + body: { category_id: "3Cjwu7nA7pH5cX5X1NAPmb7M", document: { name: "Frank Doe Employment Contract.txt", @@ -442,7 +442,7 @@ const kombo = new KomboCore({ async function run() { const res = await hrisAddEmployeeDocument(kombo, { employee_id: "GRKdd9dibYKKCrmGRSMJf3wu", - post_hris_employees_employee_id_documents_request_body: { + body: { category_id: "3Cjwu7nA7pH5cX5X1NAPmb7M", document: { name: "Frank Doe Employment Contract.txt", @@ -1168,7 +1168,7 @@ const kombo = new Kombo({ async function run() { const result = await kombo.hris.deleteAbsence({ absence_id: "wXJMxwDvPAjrJ4CyqdV9", - delete_hris_absences_absence_id_request_body: {}, + body: {}, }); console.log(result); @@ -1195,7 +1195,7 @@ const kombo = new KomboCore({ async function run() { const res = await hrisDeleteAbsence(kombo, { absence_id: "wXJMxwDvPAjrJ4CyqdV9", - delete_hris_absences_absence_id_request_body: {}, + body: {}, }); if (res.ok) { const { value: result } = res; diff --git a/examples/package-lock.json b/examples/package-lock.json index fb19dc0..55d0e12 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,8 @@ }, "..": { "name": "@kombo-api/sdk", - "version": "0.1.1", + "version": "0.2.0", + "license": "MIT", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index 70122b8..5efa913 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@kombo-api/sdk", - "version": "0.1.1", + "version": "0.2.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 015b41b..1228808 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,13 @@ { "name": "@kombo-api/sdk", - "version": "0.1.1", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kombo-api/sdk", - "version": "0.1.1", + "version": "0.2.0", + "license": "MIT", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 5ab886e..39c9989 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kombo-api/sdk", - "version": "0.1.1", + "version": "0.2.0", "author": "Kombo Technologies GmbH (https://www.kombo.dev)", "description": "The official TypeScript/JavaScript SDK for the Kombo Unified API", "homepage": "https://github.com/kombohq/typescript-sdk#readme", @@ -61,7 +61,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/kombohq/kombo-typescript-sdk.git" + "url": "https://github.com/kombohq/typescript-sdk.git" }, "scripts": { "lint": "eslint --cache --max-warnings=0 src", diff --git a/src/funcs/assessmentUpdateOrderResult.ts b/src/funcs/assessmentUpdateOrderResult.ts index 155a3b5..9d96bc6 100644 --- a/src/funcs/assessmentUpdateOrderResult.ts +++ b/src/funcs/assessmentUpdateOrderResult.ts @@ -127,11 +127,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PutAssessmentOrdersAssessmentOrderIdResultRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { assessment_order_id: encodeSimple( diff --git a/src/funcs/atsAddApplicationAttachment.ts b/src/funcs/atsAddApplicationAttachment.ts index fdf6ea9..c29acdc 100644 --- a/src/funcs/atsAddApplicationAttachment.ts +++ b/src/funcs/atsAddApplicationAttachment.ts @@ -113,11 +113,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsApplicationsApplicationIdAttachmentsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { application_id: encodeSimple("application_id", payload.application_id, { diff --git a/src/funcs/atsAddApplicationNote.ts b/src/funcs/atsAddApplicationNote.ts index 979a969..96fe01d 100644 --- a/src/funcs/atsAddApplicationNote.ts +++ b/src/funcs/atsAddApplicationNote.ts @@ -105,11 +105,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsApplicationsApplicationIdNotesRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { application_id: encodeSimple("application_id", payload.application_id, { diff --git a/src/funcs/atsAddApplicationResultLink.ts b/src/funcs/atsAddApplicationResultLink.ts index 58835a1..ac52431 100644 --- a/src/funcs/atsAddApplicationResultLink.ts +++ b/src/funcs/atsAddApplicationResultLink.ts @@ -120,11 +120,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsApplicationsApplicationIdResultLinksRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { application_id: encodeSimple("application_id", payload.application_id, { diff --git a/src/funcs/atsAddCandidateAttachment.ts b/src/funcs/atsAddCandidateAttachment.ts index 612c196..e0f10c2 100644 --- a/src/funcs/atsAddCandidateAttachment.ts +++ b/src/funcs/atsAddCandidateAttachment.ts @@ -113,11 +113,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsCandidatesCandidateIdAttachmentsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { candidate_id: encodeSimple("candidate_id", payload.candidate_id, { diff --git a/src/funcs/atsAddCandidateResultLink.ts b/src/funcs/atsAddCandidateResultLink.ts index 6d4804e..11d52d8 100644 --- a/src/funcs/atsAddCandidateResultLink.ts +++ b/src/funcs/atsAddCandidateResultLink.ts @@ -123,11 +123,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsCandidatesCandidateIdResultLinksRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { candidate_id: encodeSimple("candidate_id", payload.candidate_id, { diff --git a/src/funcs/atsAddCandidateTag.ts b/src/funcs/atsAddCandidateTag.ts index e133150..b1b2385 100644 --- a/src/funcs/atsAddCandidateTag.ts +++ b/src/funcs/atsAddCandidateTag.ts @@ -106,11 +106,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsCandidatesCandidateIdTagsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { candidate_id: encodeSimple("candidate_id", payload.candidate_id, { diff --git a/src/funcs/atsCreateApplication.ts b/src/funcs/atsCreateApplication.ts index d4f48bb..f85ffa6 100644 --- a/src/funcs/atsCreateApplication.ts +++ b/src/funcs/atsCreateApplication.ts @@ -151,11 +151,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsJobsJobIdApplicationsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { job_id: encodeSimple("job_id", payload.job_id, { diff --git a/src/funcs/atsMoveApplicationToStage.ts b/src/funcs/atsMoveApplicationToStage.ts index 8f7284b..9f5d8f5 100644 --- a/src/funcs/atsMoveApplicationToStage.ts +++ b/src/funcs/atsMoveApplicationToStage.ts @@ -101,11 +101,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PutAtsApplicationsApplicationIdStageRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { application_id: encodeSimple("application_id", payload.application_id, { diff --git a/src/funcs/atsRejectApplication.ts b/src/funcs/atsRejectApplication.ts index b0d9077..e661394 100644 --- a/src/funcs/atsRejectApplication.ts +++ b/src/funcs/atsRejectApplication.ts @@ -105,11 +105,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostAtsApplicationsApplicationIdRejectRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { application_id: encodeSimple("application_id", payload.application_id, { diff --git a/src/funcs/atsRemoveCandidateTag.ts b/src/funcs/atsRemoveCandidateTag.ts index 861612a..3dca3c6 100644 --- a/src/funcs/atsRemoveCandidateTag.ts +++ b/src/funcs/atsRemoveCandidateTag.ts @@ -106,11 +106,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.DeleteAtsCandidatesCandidateIdTagsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { candidate_id: encodeSimple("candidate_id", payload.candidate_id, { diff --git a/src/funcs/generalCreateReconnectionLink.ts b/src/funcs/generalCreateReconnectionLink.ts index dd22177..d623d00 100644 --- a/src/funcs/generalCreateReconnectionLink.ts +++ b/src/funcs/generalCreateReconnectionLink.ts @@ -101,11 +101,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostIntegrationsIntegrationIdRelinkRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { integration_id: encodeSimple("integration_id", payload.integration_id, { diff --git a/src/funcs/generalDeleteIntegration.ts b/src/funcs/generalDeleteIntegration.ts index 52060d8..530eb9e 100644 --- a/src/funcs/generalDeleteIntegration.ts +++ b/src/funcs/generalDeleteIntegration.ts @@ -91,11 +91,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.DeleteIntegrationsIntegrationIdRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { integration_id: encodeSimple("integration_id", payload.integration_id, { diff --git a/src/funcs/generalSendPassthroughRequest.ts b/src/funcs/generalSendPassthroughRequest.ts index cc48b9b..2dc5427 100644 --- a/src/funcs/generalSendPassthroughRequest.ts +++ b/src/funcs/generalSendPassthroughRequest.ts @@ -239,9 +239,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON("body", payload.PostPassthroughToolApiRequestBody, { - explode: true, - }); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { api: encodeSimple("api", payload.api, { diff --git a/src/funcs/generalUpdateCustomFieldMapping.ts b/src/funcs/generalUpdateCustomFieldMapping.ts index 7858353..b1cbf84 100644 --- a/src/funcs/generalUpdateCustomFieldMapping.ts +++ b/src/funcs/generalUpdateCustomFieldMapping.ts @@ -92,11 +92,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { custom_field_id: encodeSimple("custom_field_id", payload.custom_field_id, { diff --git a/src/funcs/generalUpdateIntegrationField.ts b/src/funcs/generalUpdateIntegrationField.ts index 063e5f0..34c3bbe 100644 --- a/src/funcs/generalUpdateIntegrationField.ts +++ b/src/funcs/generalUpdateIntegrationField.ts @@ -92,12 +92,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload - .PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { integration_field_id: encodeSimple( diff --git a/src/funcs/hrisAddEmployeeDocument.ts b/src/funcs/hrisAddEmployeeDocument.ts index 873ce2c..1696b97 100644 --- a/src/funcs/hrisAddEmployeeDocument.ts +++ b/src/funcs/hrisAddEmployeeDocument.ts @@ -106,11 +106,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.PostHrisEmployeesEmployeeIdDocumentsRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { employee_id: encodeSimple("employee_id", payload.employee_id, { diff --git a/src/funcs/hrisDeleteAbsence.ts b/src/funcs/hrisDeleteAbsence.ts index ffd7ecf..e70b27d 100644 --- a/src/funcs/hrisDeleteAbsence.ts +++ b/src/funcs/hrisDeleteAbsence.ts @@ -100,11 +100,7 @@ async function $do( return [parsed, { status: "invalid" }]; } const payload = parsed.value; - const body = encodeJSON( - "body", - payload.DeleteHrisAbsencesAbsenceIdRequestBody, - { explode: true }, - ); + const body = encodeJSON("body", payload.body, { explode: true }); const pathParams = { absence_id: encodeSimple("absence_id", payload.absence_id, { diff --git a/src/lib/config.ts b/src/lib/config.ts index f8b408c..6eb9b97 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -8,11 +8,11 @@ import { RetryConfig } from "./retries.js"; import { Params, pathToFunc } from "./url.js"; /** - * Kombo API Server + * Kombo EU Region */ export const ServerEu = "eu"; /** - * Kombo API Server + * Kombo US Region */ export const ServerUs = "us"; /** @@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "0.1.1", - genVersion: "2.731.9", - userAgent: "speakeasy-sdk/typescript 0.1.1 2.731.9 1.0.0 @kombo-api/sdk", + sdkVersion: "0.2.0", + genVersion: "2.745.2", + userAgent: "speakeasy-sdk/typescript 0.2.0 2.745.2 1.0.0 @kombo-api/sdk", } as const; diff --git a/src/models/assessmentorderreceivedwebhookpayload.ts b/src/models/assessmentorderreceivedwebhookpayload.ts index 8ae2917..f748745 100644 --- a/src/models/assessmentorderreceivedwebhookpayload.ts +++ b/src/models/assessmentorderreceivedwebhookpayload.ts @@ -198,48 +198,20 @@ export type AssessmentOrderReceivedWebhookPayload = { export const AssessmentOrderReceivedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AssessmentOrderReceivedWebhookPayloadType); - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = AssessmentOrderReceivedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadType$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadType$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AssessmentOrderReceivedWebhookPayloadStatus); - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadStatus$outboundSchema: z.ZodNativeEnum = AssessmentOrderReceivedWebhookPayloadStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadStatus$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadStatus$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadStatus$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadStatus$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadStatus$outboundSchema; -} - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema: z.ZodType< @@ -253,7 +225,6 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema: phone: z.nullable(z.string()).optional(), remote_id: z.nullable(z.string()).optional(), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadCandidate$Outbound = { email: string; @@ -277,22 +248,6 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema: remote_id: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadCandidate$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadCandidate$Outbound` instead. */ - export type Outbound = - AssessmentOrderReceivedWebhookPayloadCandidate$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadCandidateToJSON( assessmentOrderReceivedWebhookPayloadCandidate: AssessmentOrderReceivedWebhookPayloadCandidate, @@ -303,7 +258,6 @@ export function assessmentOrderReceivedWebhookPayloadCandidateToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -329,7 +283,6 @@ export const AssessmentOrderReceivedWebhookPayloadApplication$inboundSchema: > = z.object({ remote_id: z.nullable(z.string()).optional(), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadApplication$Outbound = { remote_id?: string | null | undefined; @@ -345,22 +298,6 @@ export const AssessmentOrderReceivedWebhookPayloadApplication$outboundSchema: remote_id: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadApplication$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadApplication$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadApplication$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadApplication$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadApplication$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadApplication$Outbound` instead. */ - export type Outbound = - AssessmentOrderReceivedWebhookPayloadApplication$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadApplicationToJSON( assessmentOrderReceivedWebhookPayloadApplication: AssessmentOrderReceivedWebhookPayloadApplication, @@ -371,7 +308,6 @@ export function assessmentOrderReceivedWebhookPayloadApplicationToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -403,7 +339,6 @@ export const AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema: street_2: z.nullable(z.string()).optional(), zip_code: z.nullable(z.string()).optional(), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadLocation$Outbound = { city?: string | null | undefined; @@ -431,21 +366,6 @@ export const AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadLocation$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadLocation$Outbound` instead. */ - export type Outbound = AssessmentOrderReceivedWebhookPayloadLocation$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadLocationToJSON( assessmentOrderReceivedWebhookPayloadLocation: AssessmentOrderReceivedWebhookPayloadLocation, @@ -456,7 +376,6 @@ export function assessmentOrderReceivedWebhookPayloadLocationToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -477,25 +396,11 @@ export function assessmentOrderReceivedWebhookPayloadLocationFromJSON( export const AssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema: z.ZodNativeEnum = z.nativeEnum(AssessmentOrderReceivedWebhookPayloadHiringTeamRole); - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema: z.ZodNativeEnum = AssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadHiringTeamRole$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema; -} - /** @internal */ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema: z.ZodType< @@ -511,7 +416,6 @@ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema: AssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema, ), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound = { remote_id: string; @@ -537,22 +441,6 @@ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema: ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadHiringTeam$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound` instead. */ - export type Outbound = - AssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadHiringTeamToJSON( assessmentOrderReceivedWebhookPayloadHiringTeam: AssessmentOrderReceivedWebhookPayloadHiringTeam, @@ -563,7 +451,6 @@ export function assessmentOrderReceivedWebhookPayloadHiringTeamToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadHiringTeamFromJSON( jsonString: string, ): SafeParseResult< @@ -595,7 +482,6 @@ export const AssessmentOrderReceivedWebhookPayloadJob$inboundSchema: z.ZodType< z.lazy(() => AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema), ), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadJob$Outbound = { remote_id?: string | null | undefined; @@ -625,21 +511,6 @@ export const AssessmentOrderReceivedWebhookPayloadJob$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadJob$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadJob$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadJob$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadJob$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadJob$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadJob$Outbound` instead. */ - export type Outbound = AssessmentOrderReceivedWebhookPayloadJob$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadJobToJSON( assessmentOrderReceivedWebhookPayloadJob: AssessmentOrderReceivedWebhookPayloadJob, @@ -650,7 +521,6 @@ export function assessmentOrderReceivedWebhookPayloadJobToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadJobFromJSON( jsonString: string, ): SafeParseResult< @@ -685,7 +555,6 @@ export const AssessmentOrderReceivedWebhookPayloadData$inboundSchema: z.ZodType< ), job: z.lazy(() => AssessmentOrderReceivedWebhookPayloadJob$inboundSchema), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayloadData$Outbound = { id: string; @@ -717,21 +586,6 @@ export const AssessmentOrderReceivedWebhookPayloadData$outboundSchema: job: z.lazy(() => AssessmentOrderReceivedWebhookPayloadJob$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayloadData$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayloadData$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayloadData$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayloadData$Outbound` instead. */ - export type Outbound = AssessmentOrderReceivedWebhookPayloadData$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadDataToJSON( assessmentOrderReceivedWebhookPayloadData: AssessmentOrderReceivedWebhookPayloadData, @@ -742,7 +596,6 @@ export function assessmentOrderReceivedWebhookPayloadDataToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult< @@ -769,7 +622,6 @@ export const AssessmentOrderReceivedWebhookPayload$inboundSchema: z.ZodType< type: AssessmentOrderReceivedWebhookPayloadType$inboundSchema, data: z.lazy(() => AssessmentOrderReceivedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type AssessmentOrderReceivedWebhookPayload$Outbound = { id: string; @@ -788,21 +640,6 @@ export const AssessmentOrderReceivedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => AssessmentOrderReceivedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssessmentOrderReceivedWebhookPayload$ { - /** @deprecated use `AssessmentOrderReceivedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = - AssessmentOrderReceivedWebhookPayload$inboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = - AssessmentOrderReceivedWebhookPayload$outboundSchema; - /** @deprecated use `AssessmentOrderReceivedWebhookPayload$Outbound` instead. */ - export type Outbound = AssessmentOrderReceivedWebhookPayload$Outbound; -} - export function assessmentOrderReceivedWebhookPayloadToJSON( assessmentOrderReceivedWebhookPayload: AssessmentOrderReceivedWebhookPayload, ): string { @@ -812,7 +649,6 @@ export function assessmentOrderReceivedWebhookPayloadToJSON( ), ); } - export function assessmentOrderReceivedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/connectionflowfailedwebhookpayload.ts b/src/models/connectionflowfailedwebhookpayload.ts index 07e3fdc..2df8aae 100644 --- a/src/models/connectionflowfailedwebhookpayload.ts +++ b/src/models/connectionflowfailedwebhookpayload.ts @@ -90,50 +90,22 @@ export const ConnectionFlowFailedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( ConnectionFlowFailedWebhookPayloadType, ); - /** @internal */ export const ConnectionFlowFailedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = ConnectionFlowFailedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionFlowFailedWebhookPayloadType$ { - /** @deprecated use `ConnectionFlowFailedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - ConnectionFlowFailedWebhookPayloadType$inboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - ConnectionFlowFailedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const ConnectionFlowFailedWebhookPayloadIntegrationCategory$inboundSchema: z.ZodNativeEnum< typeof ConnectionFlowFailedWebhookPayloadIntegrationCategory > = z.nativeEnum(ConnectionFlowFailedWebhookPayloadIntegrationCategory); - /** @internal */ export const ConnectionFlowFailedWebhookPayloadIntegrationCategory$outboundSchema: z.ZodNativeEnum< typeof ConnectionFlowFailedWebhookPayloadIntegrationCategory > = ConnectionFlowFailedWebhookPayloadIntegrationCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionFlowFailedWebhookPayloadIntegrationCategory$ { - /** @deprecated use `ConnectionFlowFailedWebhookPayloadIntegrationCategory$inboundSchema` instead. */ - export const inboundSchema = - ConnectionFlowFailedWebhookPayloadIntegrationCategory$inboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadIntegrationCategory$outboundSchema` instead. */ - export const outboundSchema = - ConnectionFlowFailedWebhookPayloadIntegrationCategory$outboundSchema; -} - /** @internal */ export const ConnectionFlowFailedWebhookPayloadEndUser$inboundSchema: z.ZodType< ConnectionFlowFailedWebhookPayloadEndUser, @@ -144,7 +116,6 @@ export const ConnectionFlowFailedWebhookPayloadEndUser$inboundSchema: z.ZodType< creator_email: z.nullable(z.string()), origin_id: z.nullable(z.string()), }); - /** @internal */ export type ConnectionFlowFailedWebhookPayloadEndUser$Outbound = { organization_name: string; @@ -164,21 +135,6 @@ export const ConnectionFlowFailedWebhookPayloadEndUser$outboundSchema: origin_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionFlowFailedWebhookPayloadEndUser$ { - /** @deprecated use `ConnectionFlowFailedWebhookPayloadEndUser$inboundSchema` instead. */ - export const inboundSchema = - ConnectionFlowFailedWebhookPayloadEndUser$inboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadEndUser$outboundSchema` instead. */ - export const outboundSchema = - ConnectionFlowFailedWebhookPayloadEndUser$outboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadEndUser$Outbound` instead. */ - export type Outbound = ConnectionFlowFailedWebhookPayloadEndUser$Outbound; -} - export function connectionFlowFailedWebhookPayloadEndUserToJSON( connectionFlowFailedWebhookPayloadEndUser: ConnectionFlowFailedWebhookPayloadEndUser, @@ -189,7 +145,6 @@ export function connectionFlowFailedWebhookPayloadEndUserToJSON( ), ); } - export function connectionFlowFailedWebhookPayloadEndUserFromJSON( jsonString: string, ): SafeParseResult< @@ -220,7 +175,6 @@ export const ConnectionFlowFailedWebhookPayloadData$inboundSchema: z.ZodType< ), log_url: z.string(), }); - /** @internal */ export type ConnectionFlowFailedWebhookPayloadData$Outbound = { integration_tool: string; @@ -244,21 +198,6 @@ export const ConnectionFlowFailedWebhookPayloadData$outboundSchema: z.ZodType< log_url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionFlowFailedWebhookPayloadData$ { - /** @deprecated use `ConnectionFlowFailedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - ConnectionFlowFailedWebhookPayloadData$inboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - ConnectionFlowFailedWebhookPayloadData$outboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayloadData$Outbound` instead. */ - export type Outbound = ConnectionFlowFailedWebhookPayloadData$Outbound; -} - export function connectionFlowFailedWebhookPayloadDataToJSON( connectionFlowFailedWebhookPayloadData: ConnectionFlowFailedWebhookPayloadData, @@ -269,7 +208,6 @@ export function connectionFlowFailedWebhookPayloadDataToJSON( ), ); } - export function connectionFlowFailedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult { @@ -291,7 +229,6 @@ export const ConnectionFlowFailedWebhookPayload$inboundSchema: z.ZodType< type: ConnectionFlowFailedWebhookPayloadType$inboundSchema, data: z.lazy(() => ConnectionFlowFailedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type ConnectionFlowFailedWebhookPayload$Outbound = { id: string; @@ -310,20 +247,6 @@ export const ConnectionFlowFailedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => ConnectionFlowFailedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConnectionFlowFailedWebhookPayload$ { - /** @deprecated use `ConnectionFlowFailedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = ConnectionFlowFailedWebhookPayload$inboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = - ConnectionFlowFailedWebhookPayload$outboundSchema; - /** @deprecated use `ConnectionFlowFailedWebhookPayload$Outbound` instead. */ - export type Outbound = ConnectionFlowFailedWebhookPayload$Outbound; -} - export function connectionFlowFailedWebhookPayloadToJSON( connectionFlowFailedWebhookPayload: ConnectionFlowFailedWebhookPayload, ): string { @@ -333,7 +256,6 @@ export function connectionFlowFailedWebhookPayloadToJSON( ), ); } - export function connectionFlowFailedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/datachangedwebhookpayload.ts b/src/models/datachangedwebhookpayload.ts index 620e127..8b601f1 100644 --- a/src/models/datachangedwebhookpayload.ts +++ b/src/models/datachangedwebhookpayload.ts @@ -120,66 +120,28 @@ export type DataChangedWebhookPayload = { export const DataChangedWebhookPayloadType$inboundSchema: z.ZodNativeEnum< typeof DataChangedWebhookPayloadType > = z.nativeEnum(DataChangedWebhookPayloadType); - /** @internal */ export const DataChangedWebhookPayloadType$outboundSchema: z.ZodNativeEnum< typeof DataChangedWebhookPayloadType > = DataChangedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataChangedWebhookPayloadType$ { - /** @deprecated use `DataChangedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = DataChangedWebhookPayloadType$inboundSchema; - /** @deprecated use `DataChangedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = DataChangedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const DataChangedWebhookPayloadIntegrationCategory$inboundSchema: z.ZodNativeEnum = z .nativeEnum(DataChangedWebhookPayloadIntegrationCategory); - /** @internal */ export const DataChangedWebhookPayloadIntegrationCategory$outboundSchema: z.ZodNativeEnum = DataChangedWebhookPayloadIntegrationCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataChangedWebhookPayloadIntegrationCategory$ { - /** @deprecated use `DataChangedWebhookPayloadIntegrationCategory$inboundSchema` instead. */ - export const inboundSchema = - DataChangedWebhookPayloadIntegrationCategory$inboundSchema; - /** @deprecated use `DataChangedWebhookPayloadIntegrationCategory$outboundSchema` instead. */ - export const outboundSchema = - DataChangedWebhookPayloadIntegrationCategory$outboundSchema; -} - /** @internal */ export const Name$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Name, ); - /** @internal */ export const Name$outboundSchema: z.ZodNativeEnum = Name$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Name$ { - /** @deprecated use `Name$inboundSchema` instead. */ - export const inboundSchema = Name$inboundSchema; - /** @deprecated use `Name$outboundSchema` instead. */ - export const outboundSchema = Name$outboundSchema; -} - /** @internal */ export const ChangedModel$inboundSchema: z.ZodType< ChangedModel, @@ -188,7 +150,6 @@ export const ChangedModel$inboundSchema: z.ZodType< > = z.object({ name: Name$inboundSchema, }); - /** @internal */ export type ChangedModel$Outbound = { name: string; @@ -203,23 +164,9 @@ export const ChangedModel$outboundSchema: z.ZodType< name: Name$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChangedModel$ { - /** @deprecated use `ChangedModel$inboundSchema` instead. */ - export const inboundSchema = ChangedModel$inboundSchema; - /** @deprecated use `ChangedModel$outboundSchema` instead. */ - export const outboundSchema = ChangedModel$outboundSchema; - /** @deprecated use `ChangedModel$Outbound` instead. */ - export type Outbound = ChangedModel$Outbound; -} - export function changedModelToJSON(changedModel: ChangedModel): string { return JSON.stringify(ChangedModel$outboundSchema.parse(changedModel)); } - export function changedModelFromJSON( jsonString: string, ): SafeParseResult { @@ -242,7 +189,6 @@ export const DataChangedWebhookPayloadData$inboundSchema: z.ZodType< DataChangedWebhookPayloadIntegrationCategory$inboundSchema, changed_models: z.array(z.lazy(() => ChangedModel$inboundSchema)), }); - /** @internal */ export type DataChangedWebhookPayloadData$Outbound = { integration_id: string; @@ -264,19 +210,6 @@ export const DataChangedWebhookPayloadData$outboundSchema: z.ZodType< changed_models: z.array(z.lazy(() => ChangedModel$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataChangedWebhookPayloadData$ { - /** @deprecated use `DataChangedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = DataChangedWebhookPayloadData$inboundSchema; - /** @deprecated use `DataChangedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = DataChangedWebhookPayloadData$outboundSchema; - /** @deprecated use `DataChangedWebhookPayloadData$Outbound` instead. */ - export type Outbound = DataChangedWebhookPayloadData$Outbound; -} - export function dataChangedWebhookPayloadDataToJSON( dataChangedWebhookPayloadData: DataChangedWebhookPayloadData, ): string { @@ -286,7 +219,6 @@ export function dataChangedWebhookPayloadDataToJSON( ), ); } - export function dataChangedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult { @@ -307,7 +239,6 @@ export const DataChangedWebhookPayload$inboundSchema: z.ZodType< type: DataChangedWebhookPayloadType$inboundSchema, data: z.lazy(() => DataChangedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type DataChangedWebhookPayload$Outbound = { id: string; @@ -326,19 +257,6 @@ export const DataChangedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => DataChangedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DataChangedWebhookPayload$ { - /** @deprecated use `DataChangedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = DataChangedWebhookPayload$inboundSchema; - /** @deprecated use `DataChangedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = DataChangedWebhookPayload$outboundSchema; - /** @deprecated use `DataChangedWebhookPayload$Outbound` instead. */ - export type Outbound = DataChangedWebhookPayload$Outbound; -} - export function dataChangedWebhookPayloadToJSON( dataChangedWebhookPayload: DataChangedWebhookPayload, ): string { @@ -346,7 +264,6 @@ export function dataChangedWebhookPayloadToJSON( DataChangedWebhookPayload$outboundSchema.parse(dataChangedWebhookPayload), ); } - export function dataChangedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/deleteatscandidatescandidateidtagspositiveresponse.ts b/src/models/deleteatscandidatescandidateidtagspositiveresponse.ts index 851b248..72c149b 100644 --- a/src/models/deleteatscandidatescandidateidtagspositiveresponse.ts +++ b/src/models/deleteatscandidatescandidateidtagspositiveresponse.ts @@ -30,45 +30,6 @@ export const DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchem unknown > = z.object({}); -/** @internal */ -export type DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound, - z.ZodTypeDef, - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound; -} - -export function deleteAtsCandidatesCandidateIdTagsPositiveResponseDataToJSON( - deleteAtsCandidatesCandidateIdTagsPositiveResponseData: - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData, -): string { - return JSON.stringify( - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema.parse( - deleteAtsCandidatesCandidateIdTagsPositiveResponseData, - ), - ); -} - export function deleteAtsCandidatesCandidateIdTagsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -94,48 +55,6 @@ export const DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSc message: z.string(), }); -/** @internal */ -export type DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound; -} - -export function deleteAtsCandidatesCandidateIdTagsPositiveResponseWarningToJSON( - deleteAtsCandidatesCandidateIdTagsPositiveResponseWarning: - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning, -): string { - return JSON.stringify( - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema - .parse(deleteAtsCandidatesCandidateIdTagsPositiveResponseWarning), - ); -} - export function deleteAtsCandidatesCandidateIdTagsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -169,60 +88,6 @@ export const DeleteAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type DeleteAtsCandidatesCandidateIdTagsPositiveResponse$Outbound = { - status: "success"; - data: DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound; - warnings: Array< - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsPositiveResponse$Outbound, - z.ZodTypeDef, - DeleteAtsCandidatesCandidateIdTagsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsPositiveResponse$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsPositiveResponse$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsPositiveResponse$Outbound; -} - -export function deleteAtsCandidatesCandidateIdTagsPositiveResponseToJSON( - deleteAtsCandidatesCandidateIdTagsPositiveResponse: - DeleteAtsCandidatesCandidateIdTagsPositiveResponse, -): string { - return JSON.stringify( - DeleteAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema.parse( - deleteAtsCandidatesCandidateIdTagsPositiveResponse, - ), - ); -} - export function deleteAtsCandidatesCandidateIdTagsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/deleteatscandidatescandidateidtagsrequestbody.ts b/src/models/deleteatscandidatescandidateidtagsrequestbody.ts index a25c13c..18a3993 100644 --- a/src/models/deleteatscandidatescandidateidtagsrequestbody.ts +++ b/src/models/deleteatscandidatescandidateidtagsrequestbody.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeleteAtsCandidatesCandidateIdTagsRequestBodyTag = { /** @@ -73,16 +70,6 @@ export type DeleteAtsCandidatesCandidateIdTagsRequestBody = { | undefined; }; -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound = { name: string; @@ -98,22 +85,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema: name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyTagToJSON( deleteAtsCandidatesCandidateIdTagsRequestBodyTag: DeleteAtsCandidatesCandidateIdTagsRequestBodyTag, @@ -125,36 +96,6 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyTagToJSON( ); } -export function deleteAtsCandidatesCandidateIdTagsRequestBodyTagFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBodyTag' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound = { @@ -175,22 +116,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSc }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyPostHeadersToJSON( deleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders: DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, @@ -201,33 +126,6 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyPostHeadersToJSON( ); } -export function deleteAtsCandidatesCandidateIdTagsRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound = { post_headers?: @@ -247,22 +145,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSch ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouseToJSON( deleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse: DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, @@ -273,31 +155,6 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouseToJSON( ); } -export function deleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound = { on_behalf_of_user_remote_id?: string | undefined; @@ -313,22 +170,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchem on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyWorkableToJSON( deleteAtsCandidatesCandidateIdTagsRequestBodyWorkable: DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable, @@ -340,37 +181,6 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyWorkableToJSON( ); } -export function deleteAtsCandidatesCandidateIdTagsRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - greenhouse: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound = { @@ -397,22 +207,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundS ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsToJSON( deleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields: DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, @@ -423,36 +217,6 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsToJSON( ); } -export function deleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequestBody$inboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - tag: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema - ), - remote_fields: z.lazy(() => - DeleteAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequestBody$Outbound = { tag: DeleteAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound; @@ -476,21 +240,6 @@ export const DeleteAtsCandidatesCandidateIdTagsRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequestBody$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBody$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequestBody$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequestBody$Outbound` instead. */ - export type Outbound = DeleteAtsCandidatesCandidateIdTagsRequestBody$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestBodyToJSON( deleteAtsCandidatesCandidateIdTagsRequestBody: DeleteAtsCandidatesCandidateIdTagsRequestBody, @@ -501,19 +250,3 @@ export function deleteAtsCandidatesCandidateIdTagsRequestBodyToJSON( ), ); } - -export function deleteAtsCandidatesCandidateIdTagsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequestBody' from JSON`, - ); -} diff --git a/src/models/deletehrisabsencesabsenceidpositiveresponse.ts b/src/models/deletehrisabsencesabsenceidpositiveresponse.ts index 8f9d75c..f0b838f 100644 --- a/src/models/deletehrisabsencesabsenceidpositiveresponse.ts +++ b/src/models/deletehrisabsencesabsenceidpositiveresponse.ts @@ -4,12 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - ClosedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -123,24 +118,6 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(DeleteHrisAbsencesAbsenceIdPositiveResponseUnit); -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$outboundSchema: - z.ZodNativeEnum = - DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$outboundSchema; -} - /** @internal */ export const DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$inboundSchema: z.ZodType< @@ -153,30 +130,6 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$outboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdPositiveResponseStatus, - z.ZodTypeDef, - DeleteHrisAbsencesAbsenceIdPositiveResponseStatus - > = z.union([ - z.nativeEnum(DeleteHrisAbsencesAbsenceIdPositiveResponseStatus), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const DeleteHrisAbsencesAbsenceIdPositiveResponseData$inboundSchema: z.ZodType< @@ -210,82 +163,6 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type DeleteHrisAbsencesAbsenceIdPositiveResponseData$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - start_date?: any | null | undefined; - end_date?: any | null | undefined; - start_half_day: boolean | null; - end_half_day: boolean | null; - start_time?: any | null | undefined; - end_time?: any | null | undefined; - amount: number | null; - unit: string | null; - status?: string | null | undefined; - employee_note: string | null; - type_id: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdPositiveResponseData$outboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdPositiveResponseData$Outbound, - z.ZodTypeDef, - DeleteHrisAbsencesAbsenceIdPositiveResponseData - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - start_date: z.nullable(z.any()).optional(), - end_date: z.nullable(z.any()).optional(), - start_half_day: z.nullable(z.boolean()), - end_half_day: z.nullable(z.boolean()), - start_time: z.nullable(z.any()).optional(), - end_time: z.nullable(z.any()).optional(), - amount: z.nullable(z.number()), - unit: z.nullable( - DeleteHrisAbsencesAbsenceIdPositiveResponseUnit$outboundSchema, - ), - status: z.nullable( - DeleteHrisAbsencesAbsenceIdPositiveResponseStatus$outboundSchema, - ).optional(), - employee_note: z.nullable(z.string()), - type_id: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdPositiveResponseData$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseData$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseData$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseData$Outbound` instead. */ - export type Outbound = - DeleteHrisAbsencesAbsenceIdPositiveResponseData$Outbound; -} - -export function deleteHrisAbsencesAbsenceIdPositiveResponseDataToJSON( - deleteHrisAbsencesAbsenceIdPositiveResponseData: - DeleteHrisAbsencesAbsenceIdPositiveResponseData, -): string { - return JSON.stringify( - DeleteHrisAbsencesAbsenceIdPositiveResponseData$outboundSchema.parse( - deleteHrisAbsencesAbsenceIdPositiveResponseData, - ), - ); -} - export function deleteHrisAbsencesAbsenceIdPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -312,48 +189,6 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$outboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$Outbound, - z.ZodTypeDef, - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$Outbound; -} - -export function deleteHrisAbsencesAbsenceIdPositiveResponseWarningToJSON( - deleteHrisAbsencesAbsenceIdPositiveResponseWarning: - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning, -): string { - return JSON.stringify( - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$outboundSchema.parse( - deleteHrisAbsencesAbsenceIdPositiveResponseWarning, - ), - ); -} - export function deleteHrisAbsencesAbsenceIdPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -388,57 +223,6 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type DeleteHrisAbsencesAbsenceIdPositiveResponse$Outbound = { - status: "success"; - data: DeleteHrisAbsencesAbsenceIdPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdPositiveResponse$outboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdPositiveResponse$Outbound, - z.ZodTypeDef, - DeleteHrisAbsencesAbsenceIdPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - DeleteHrisAbsencesAbsenceIdPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - DeleteHrisAbsencesAbsenceIdPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdPositiveResponse$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponse$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdPositiveResponse$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdPositiveResponse$Outbound` instead. */ - export type Outbound = DeleteHrisAbsencesAbsenceIdPositiveResponse$Outbound; -} - -export function deleteHrisAbsencesAbsenceIdPositiveResponseToJSON( - deleteHrisAbsencesAbsenceIdPositiveResponse: - DeleteHrisAbsencesAbsenceIdPositiveResponse, -): string { - return JSON.stringify( - DeleteHrisAbsencesAbsenceIdPositiveResponse$outboundSchema.parse( - deleteHrisAbsencesAbsenceIdPositiveResponse, - ), - ); -} - export function deleteHrisAbsencesAbsenceIdPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/deletehrisabsencesabsenceidrequestbody.ts b/src/models/deletehrisabsencesabsenceidrequestbody.ts index 386f35e..7537367 100644 --- a/src/models/deletehrisabsencesabsenceidrequestbody.ts +++ b/src/models/deletehrisabsencesabsenceidrequestbody.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Fields specific to ADP Workforce Now. @@ -38,16 +35,6 @@ export type DeleteHrisAbsencesAbsenceIdRequestBody = { | undefined; }; -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$inboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow, - z.ZodTypeDef, - unknown - > = z.object({ - employment_id: z.string().optional(), - }); - /** @internal */ export type DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$Outbound = { employment_id?: string | undefined; @@ -63,22 +50,6 @@ export const DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$outboundSchem employment_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$Outbound` instead. */ - export type Outbound = - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$Outbound; -} - export function deleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenowToJSON( deleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow: DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow, @@ -90,34 +61,6 @@ export function deleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenowToJSON( ); } -export function deleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenowFromJSON( - jsonString: string, -): SafeParseResult< - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow' from JSON`, - ); -} - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$inboundSchema: - z.ZodType< - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - adpworkforcenow: z.lazy(() => - DeleteHrisAbsencesAbsenceIdRequestBodyAdpworkforcenow$inboundSchema - ).optional(), - }); - /** @internal */ export type DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$Outbound = { adpworkforcenow?: @@ -137,22 +80,6 @@ export const DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$Outbound; -} - export function deleteHrisAbsencesAbsenceIdRequestBodyRemoteFieldsToJSON( deleteHrisAbsencesAbsenceIdRequestBodyRemoteFields: DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields, @@ -164,33 +91,6 @@ export function deleteHrisAbsencesAbsenceIdRequestBodyRemoteFieldsToJSON( ); } -export function deleteHrisAbsencesAbsenceIdRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdRequestBody$inboundSchema: z.ZodType< - DeleteHrisAbsencesAbsenceIdRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - remote_fields: z.lazy(() => - DeleteHrisAbsencesAbsenceIdRequestBodyRemoteFields$inboundSchema - ).optional(), -}); - /** @internal */ export type DeleteHrisAbsencesAbsenceIdRequestBody$Outbound = { remote_fields?: @@ -209,21 +109,6 @@ export const DeleteHrisAbsencesAbsenceIdRequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdRequestBody$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBody$inboundSchema` instead. */ - export const inboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBody$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBody$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdRequestBody$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequestBody$Outbound` instead. */ - export type Outbound = DeleteHrisAbsencesAbsenceIdRequestBody$Outbound; -} - export function deleteHrisAbsencesAbsenceIdRequestBodyToJSON( deleteHrisAbsencesAbsenceIdRequestBody: DeleteHrisAbsencesAbsenceIdRequestBody, @@ -234,14 +119,3 @@ export function deleteHrisAbsencesAbsenceIdRequestBodyToJSON( ), ); } - -export function deleteHrisAbsencesAbsenceIdRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DeleteHrisAbsencesAbsenceIdRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteHrisAbsencesAbsenceIdRequestBody' from JSON`, - ); -} diff --git a/src/models/deleteintegrationsintegrationidpositiveresponse.ts b/src/models/deleteintegrationsintegrationidpositiveresponse.ts index 351d7d1..f7c5c9a 100644 --- a/src/models/deleteintegrationsintegrationidpositiveresponse.ts +++ b/src/models/deleteintegrationsintegrationidpositiveresponse.ts @@ -22,44 +22,6 @@ export const DeleteIntegrationsIntegrationIdPositiveResponseData$inboundSchema: unknown > = z.object({}); -/** @internal */ -export type DeleteIntegrationsIntegrationIdPositiveResponseData$Outbound = {}; - -/** @internal */ -export const DeleteIntegrationsIntegrationIdPositiveResponseData$outboundSchema: - z.ZodType< - DeleteIntegrationsIntegrationIdPositiveResponseData$Outbound, - z.ZodTypeDef, - DeleteIntegrationsIntegrationIdPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntegrationsIntegrationIdPositiveResponseData$ { - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - DeleteIntegrationsIntegrationIdPositiveResponseData$inboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - DeleteIntegrationsIntegrationIdPositiveResponseData$outboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponseData$Outbound` instead. */ - export type Outbound = - DeleteIntegrationsIntegrationIdPositiveResponseData$Outbound; -} - -export function deleteIntegrationsIntegrationIdPositiveResponseDataToJSON( - deleteIntegrationsIntegrationIdPositiveResponseData: - DeleteIntegrationsIntegrationIdPositiveResponseData, -): string { - return JSON.stringify( - DeleteIntegrationsIntegrationIdPositiveResponseData$outboundSchema.parse( - deleteIntegrationsIntegrationIdPositiveResponseData, - ), - ); -} - export function deleteIntegrationsIntegrationIdPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -89,52 +51,6 @@ export const DeleteIntegrationsIntegrationIdPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type DeleteIntegrationsIntegrationIdPositiveResponse$Outbound = { - status: "success"; - data: DeleteIntegrationsIntegrationIdPositiveResponseData$Outbound; -}; - -/** @internal */ -export const DeleteIntegrationsIntegrationIdPositiveResponse$outboundSchema: - z.ZodType< - DeleteIntegrationsIntegrationIdPositiveResponse$Outbound, - z.ZodTypeDef, - DeleteIntegrationsIntegrationIdPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - DeleteIntegrationsIntegrationIdPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntegrationsIntegrationIdPositiveResponse$ { - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - DeleteIntegrationsIntegrationIdPositiveResponse$inboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - DeleteIntegrationsIntegrationIdPositiveResponse$outboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdPositiveResponse$Outbound` instead. */ - export type Outbound = - DeleteIntegrationsIntegrationIdPositiveResponse$Outbound; -} - -export function deleteIntegrationsIntegrationIdPositiveResponseToJSON( - deleteIntegrationsIntegrationIdPositiveResponse: - DeleteIntegrationsIntegrationIdPositiveResponse, -): string { - return JSON.stringify( - DeleteIntegrationsIntegrationIdPositiveResponse$outboundSchema.parse( - deleteIntegrationsIntegrationIdPositiveResponse, - ), - ); -} - export function deleteIntegrationsIntegrationIdPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/deleteintegrationsintegrationidrequestbody.ts b/src/models/deleteintegrationsintegrationidrequestbody.ts index 981d38c..e9055e2 100644 --- a/src/models/deleteintegrationsintegrationidrequestbody.ts +++ b/src/models/deleteintegrationsintegrationidrequestbody.ts @@ -3,17 +3,9 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeleteIntegrationsIntegrationIdRequestBody = {}; -/** @internal */ -export const DeleteIntegrationsIntegrationIdRequestBody$inboundSchema: - z.ZodType = - z.object({}); - /** @internal */ export type DeleteIntegrationsIntegrationIdRequestBody$Outbound = {}; @@ -25,21 +17,6 @@ export const DeleteIntegrationsIntegrationIdRequestBody$outboundSchema: DeleteIntegrationsIntegrationIdRequestBody > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntegrationsIntegrationIdRequestBody$ { - /** @deprecated use `DeleteIntegrationsIntegrationIdRequestBody$inboundSchema` instead. */ - export const inboundSchema = - DeleteIntegrationsIntegrationIdRequestBody$inboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdRequestBody$outboundSchema` instead. */ - export const outboundSchema = - DeleteIntegrationsIntegrationIdRequestBody$outboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdRequestBody$Outbound` instead. */ - export type Outbound = DeleteIntegrationsIntegrationIdRequestBody$Outbound; -} - export function deleteIntegrationsIntegrationIdRequestBodyToJSON( deleteIntegrationsIntegrationIdRequestBody: DeleteIntegrationsIntegrationIdRequestBody, @@ -50,19 +27,3 @@ export function deleteIntegrationsIntegrationIdRequestBodyToJSON( ), ); } - -export function deleteIntegrationsIntegrationIdRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - DeleteIntegrationsIntegrationIdRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteIntegrationsIntegrationIdRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteIntegrationsIntegrationIdRequestBody' from JSON`, - ); -} diff --git a/src/models/errors/komboatserror.ts b/src/models/errors/komboatserror.ts index f2c6ab6..cf0fcc3 100644 --- a/src/models/errors/komboatserror.ts +++ b/src/models/errors/komboatserror.ts @@ -64,34 +64,3 @@ export const KomboAtsError$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type KomboAtsError$Outbound = { - status: string; - error: models.KomboAtsErrorError$Outbound; -}; - -/** @internal */ -export const KomboAtsError$outboundSchema: z.ZodType< - KomboAtsError$Outbound, - z.ZodTypeDef, - KomboAtsError -> = z.instanceof(KomboAtsError) - .transform(v => v.data$) - .pipe(z.object({ - status: models.KomboAtsErrorStatus$outboundSchema, - error: z.lazy(() => models.KomboAtsErrorError$outboundSchema), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboAtsError$ { - /** @deprecated use `KomboAtsError$inboundSchema` instead. */ - export const inboundSchema = KomboAtsError$inboundSchema; - /** @deprecated use `KomboAtsError$outboundSchema` instead. */ - export const outboundSchema = KomboAtsError$outboundSchema; - /** @deprecated use `KomboAtsError$Outbound` instead. */ - export type Outbound = KomboAtsError$Outbound; -} diff --git a/src/models/errors/kombogeneralerror.ts b/src/models/errors/kombogeneralerror.ts index 8a1c16f..1a38849 100644 --- a/src/models/errors/kombogeneralerror.ts +++ b/src/models/errors/kombogeneralerror.ts @@ -64,34 +64,3 @@ export const KomboGeneralError$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type KomboGeneralError$Outbound = { - status: string; - error: models.KomboGeneralErrorError$Outbound; -}; - -/** @internal */ -export const KomboGeneralError$outboundSchema: z.ZodType< - KomboGeneralError$Outbound, - z.ZodTypeDef, - KomboGeneralError -> = z.instanceof(KomboGeneralError) - .transform(v => v.data$) - .pipe(z.object({ - status: models.KomboGeneralErrorStatus$outboundSchema, - error: z.lazy(() => models.KomboGeneralErrorError$outboundSchema), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboGeneralError$ { - /** @deprecated use `KomboGeneralError$inboundSchema` instead. */ - export const inboundSchema = KomboGeneralError$inboundSchema; - /** @deprecated use `KomboGeneralError$outboundSchema` instead. */ - export const outboundSchema = KomboGeneralError$outboundSchema; - /** @deprecated use `KomboGeneralError$Outbound` instead. */ - export type Outbound = KomboGeneralError$Outbound; -} diff --git a/src/models/errors/kombohriserror.ts b/src/models/errors/kombohriserror.ts index 532e0b4..cce0db8 100644 --- a/src/models/errors/kombohriserror.ts +++ b/src/models/errors/kombohriserror.ts @@ -64,34 +64,3 @@ export const KomboHrisError$inboundSchema: z.ZodType< body: v.body$, }); }); - -/** @internal */ -export type KomboHrisError$Outbound = { - status: string; - error: models.KomboHrisErrorError$Outbound; -}; - -/** @internal */ -export const KomboHrisError$outboundSchema: z.ZodType< - KomboHrisError$Outbound, - z.ZodTypeDef, - KomboHrisError -> = z.instanceof(KomboHrisError) - .transform(v => v.data$) - .pipe(z.object({ - status: models.KomboHrisErrorStatus$outboundSchema, - error: z.lazy(() => models.KomboHrisErrorError$outboundSchema), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboHrisError$ { - /** @deprecated use `KomboHrisError$inboundSchema` instead. */ - export const inboundSchema = KomboHrisError$inboundSchema; - /** @deprecated use `KomboHrisError$outboundSchema` instead. */ - export const outboundSchema = KomboHrisError$outboundSchema; - /** @deprecated use `KomboHrisError$Outbound` instead. */ - export type Outbound = KomboHrisError$Outbound; -} diff --git a/src/models/getassessmentordersopenpositiveresponse.ts b/src/models/getassessmentordersopenpositiveresponse.ts index 0be469d..1435d8d 100644 --- a/src/models/getassessmentordersopenpositiveresponse.ts +++ b/src/models/getassessmentordersopenpositiveresponse.ts @@ -171,56 +171,6 @@ export const GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema: remote_id: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseCandidate$Outbound = { - email: string; - first_name?: string | null | undefined; - last_name?: string | null | undefined; - phone?: string | null | undefined; - remote_id?: string | null | undefined; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseCandidate$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseCandidate$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseCandidate - > = z.object({ - email: z.string(), - first_name: z.nullable(z.string()).optional(), - last_name: z.nullable(z.string()).optional(), - phone: z.nullable(z.string()).optional(), - remote_id: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseCandidate$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseCandidate$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseCandidate$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseCandidate$Outbound` instead. */ - export type Outbound = - GetAssessmentOrdersOpenPositiveResponseCandidate$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseCandidateToJSON( - getAssessmentOrdersOpenPositiveResponseCandidate: - GetAssessmentOrdersOpenPositiveResponseCandidate, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseCandidate$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseCandidate, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -247,48 +197,6 @@ export const GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema: remote_id: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseApplication$Outbound = { - remote_id?: string | null | undefined; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseApplication$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseApplication$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseApplication - > = z.object({ - remote_id: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseApplication$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseApplication$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseApplication$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseApplication$Outbound` instead. */ - export type Outbound = - GetAssessmentOrdersOpenPositiveResponseApplication$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseApplicationToJSON( - getAssessmentOrdersOpenPositiveResponseApplication: - GetAssessmentOrdersOpenPositiveResponseApplication, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseApplication$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseApplication, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -321,60 +229,6 @@ export const GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseLocation$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseLocation$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseLocation - > = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseLocation$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseLocation$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseLocation$Outbound` instead. */ - export type Outbound = - GetAssessmentOrdersOpenPositiveResponseLocation$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseLocationToJSON( - getAssessmentOrdersOpenPositiveResponseLocation: - GetAssessmentOrdersOpenPositiveResponseLocation, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseLocation$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseLocation, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -397,25 +251,6 @@ export const GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema typeof GetAssessmentOrdersOpenPositiveResponseHiringTeamRole > = z.nativeEnum(GetAssessmentOrdersOpenPositiveResponseHiringTeamRole); -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$outboundSchema: - z.ZodNativeEnum< - typeof GetAssessmentOrdersOpenPositiveResponseHiringTeamRole - > = GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$outboundSchema; -} - /** @internal */ export const GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema: z.ZodType< @@ -432,58 +267,6 @@ export const GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema: ), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseHiringTeam$Outbound = { - remote_id: string; - email: string | null; - first_name: string | null; - last_name: string | null; - hiring_team_roles: Array; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseHiringTeam$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseHiringTeam$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseHiringTeam - > = z.object({ - remote_id: z.string(), - email: z.nullable(z.string()), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - hiring_team_roles: z.array( - GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$outboundSchema, - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseHiringTeam$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseHiringTeam$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseHiringTeam$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseHiringTeam$Outbound` instead. */ - export type Outbound = - GetAssessmentOrdersOpenPositiveResponseHiringTeam$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseHiringTeamToJSON( - getAssessmentOrdersOpenPositiveResponseHiringTeam: - GetAssessmentOrdersOpenPositiveResponseHiringTeam, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseHiringTeam$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseHiringTeam, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseHiringTeamFromJSON( jsonString: string, ): SafeParseResult< @@ -518,66 +301,6 @@ export const GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema: ), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseJob$Outbound = { - remote_id?: string | null | undefined; - name?: string | null | undefined; - location?: - | GetAssessmentOrdersOpenPositiveResponseLocation$Outbound - | null - | undefined; - hiring_team: Array< - GetAssessmentOrdersOpenPositiveResponseHiringTeam$Outbound - >; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseJob$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseJob$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseJob - > = z.object({ - remote_id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - location: z.nullable( - z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseLocation$outboundSchema - ), - ).optional(), - hiring_team: z.array( - z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseHiringTeam$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseJob$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseJob$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseJob$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenPositiveResponseJob$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseJobToJSON( - getAssessmentOrdersOpenPositiveResponseJob: - GetAssessmentOrdersOpenPositiveResponseJob, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseJob$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseJob, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult< @@ -612,61 +335,6 @@ export const GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema: job: z.lazy(() => GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseResult$Outbound = { - id: string; - package_id: string; - candidate: GetAssessmentOrdersOpenPositiveResponseCandidate$Outbound; - application: GetAssessmentOrdersOpenPositiveResponseApplication$Outbound; - job: GetAssessmentOrdersOpenPositiveResponseJob$Outbound; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseResult$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseResult - > = z.object({ - id: z.string(), - package_id: z.string(), - candidate: z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseCandidate$outboundSchema - ), - application: z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseApplication$outboundSchema - ), - job: z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseJob$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseResult$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenPositiveResponseResult$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseResultToJSON( - getAssessmentOrdersOpenPositiveResponseResult: - GetAssessmentOrdersOpenPositiveResponseResult, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseResult$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseResult, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -696,53 +364,6 @@ export const GetAssessmentOrdersOpenPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponseData$outboundSchema: - z.ZodType< - GetAssessmentOrdersOpenPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponseData$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponseData$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponseData$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenPositiveResponseData$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseDataToJSON( - getAssessmentOrdersOpenPositiveResponseData: - GetAssessmentOrdersOpenPositiveResponseData, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponseData$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponseData, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -769,50 +390,6 @@ export const GetAssessmentOrdersOpenPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAssessmentOrdersOpenPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAssessmentOrdersOpenPositiveResponse$Outbound = { - status: "success"; - data: GetAssessmentOrdersOpenPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenPositiveResponse$outboundSchema: z.ZodType< - GetAssessmentOrdersOpenPositiveResponse$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetAssessmentOrdersOpenPositiveResponseData$outboundSchema - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenPositiveResponse$ { - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentOrdersOpenPositiveResponse$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentOrdersOpenPositiveResponse$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenPositiveResponse$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenPositiveResponse$Outbound; -} - -export function getAssessmentOrdersOpenPositiveResponseToJSON( - getAssessmentOrdersOpenPositiveResponse: - GetAssessmentOrdersOpenPositiveResponse, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenPositiveResponse$outboundSchema.parse( - getAssessmentOrdersOpenPositiveResponse, - ), - ); -} - export function getAssessmentOrdersOpenPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getassessmentpackagespositiveresponse.ts b/src/models/getassessmentpackagespositiveresponse.ts index f7ab8a3..668f037 100644 --- a/src/models/getassessmentpackagespositiveresponse.ts +++ b/src/models/getassessmentpackagespositiveresponse.ts @@ -44,24 +44,6 @@ export const GetAssessmentPackagesPositiveResponseType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAssessmentPackagesPositiveResponseType); -/** @internal */ -export const GetAssessmentPackagesPositiveResponseType$outboundSchema: - z.ZodNativeEnum = - GetAssessmentPackagesPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesPositiveResponseType$ { - /** @deprecated use `GetAssessmentPackagesPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentPackagesPositiveResponseType$inboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentPackagesPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetAssessmentPackagesPositiveResponsePackage$inboundSchema: z.ZodType< @@ -78,55 +60,6 @@ export const GetAssessmentPackagesPositiveResponsePackage$inboundSchema: type: z.nullable(GetAssessmentPackagesPositiveResponseType$inboundSchema), }); -/** @internal */ -export type GetAssessmentPackagesPositiveResponsePackage$Outbound = { - id: string; - name: string; - description: string; - updated_at: string | null; - type: string | null; -}; - -/** @internal */ -export const GetAssessmentPackagesPositiveResponsePackage$outboundSchema: - z.ZodType< - GetAssessmentPackagesPositiveResponsePackage$Outbound, - z.ZodTypeDef, - GetAssessmentPackagesPositiveResponsePackage - > = z.object({ - id: z.string(), - name: z.string(), - description: z.string(), - updated_at: z.nullable(z.date().transform(v => v.toISOString())), - type: z.nullable(GetAssessmentPackagesPositiveResponseType$outboundSchema), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesPositiveResponsePackage$ { - /** @deprecated use `GetAssessmentPackagesPositiveResponsePackage$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentPackagesPositiveResponsePackage$inboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponsePackage$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentPackagesPositiveResponsePackage$outboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponsePackage$Outbound` instead. */ - export type Outbound = GetAssessmentPackagesPositiveResponsePackage$Outbound; -} - -export function getAssessmentPackagesPositiveResponsePackageToJSON( - getAssessmentPackagesPositiveResponsePackage: - GetAssessmentPackagesPositiveResponsePackage, -): string { - return JSON.stringify( - GetAssessmentPackagesPositiveResponsePackage$outboundSchema.parse( - getAssessmentPackagesPositiveResponsePackage, - ), - ); -} - export function getAssessmentPackagesPositiveResponsePackageFromJSON( jsonString: string, ): SafeParseResult< @@ -154,49 +87,6 @@ export const GetAssessmentPackagesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAssessmentPackagesPositiveResponseData$Outbound = { - packages: Array; -}; - -/** @internal */ -export const GetAssessmentPackagesPositiveResponseData$outboundSchema: - z.ZodType< - GetAssessmentPackagesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAssessmentPackagesPositiveResponseData - > = z.object({ - packages: z.array( - z.lazy(() => GetAssessmentPackagesPositiveResponsePackage$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesPositiveResponseData$ { - /** @deprecated use `GetAssessmentPackagesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentPackagesPositiveResponseData$inboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentPackagesPositiveResponseData$outboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAssessmentPackagesPositiveResponseData$Outbound; -} - -export function getAssessmentPackagesPositiveResponseDataToJSON( - getAssessmentPackagesPositiveResponseData: - GetAssessmentPackagesPositiveResponseData, -): string { - return JSON.stringify( - GetAssessmentPackagesPositiveResponseData$outboundSchema.parse( - getAssessmentPackagesPositiveResponseData, - ), - ); -} - export function getAssessmentPackagesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -223,47 +113,6 @@ export const GetAssessmentPackagesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAssessmentPackagesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAssessmentPackagesPositiveResponse$Outbound = { - status: "success"; - data: GetAssessmentPackagesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAssessmentPackagesPositiveResponse$outboundSchema: z.ZodType< - GetAssessmentPackagesPositiveResponse$Outbound, - z.ZodTypeDef, - GetAssessmentPackagesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAssessmentPackagesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesPositiveResponse$ { - /** @deprecated use `GetAssessmentPackagesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAssessmentPackagesPositiveResponse$inboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAssessmentPackagesPositiveResponse$outboundSchema; - /** @deprecated use `GetAssessmentPackagesPositiveResponse$Outbound` instead. */ - export type Outbound = GetAssessmentPackagesPositiveResponse$Outbound; -} - -export function getAssessmentPackagesPositiveResponseToJSON( - getAssessmentPackagesPositiveResponse: GetAssessmentPackagesPositiveResponse, -): string { - return JSON.stringify( - GetAssessmentPackagesPositiveResponse$outboundSchema.parse( - getAssessmentPackagesPositiveResponse, - ), - ); -} - export function getAssessmentPackagesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsapplicationsapplicationidattachmentspositiveresponse.ts b/src/models/getatsapplicationsapplicationidattachmentspositiveresponse.ts index 3ca58bc..714fa13 100644 --- a/src/models/getatsapplicationsapplicationidattachmentspositiveresponse.ts +++ b/src/models/getatsapplicationsapplicationidattachmentspositiveresponse.ts @@ -65,26 +65,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$inbo GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType, ); -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType - > = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$inboundSchema: z.ZodType< @@ -107,63 +87,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$in ), }); -/** @internal */ -export type GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$Outbound = - { - type: string; - id: string; - remote_id: string; - data_url: string; - file_name: string; - content_type: string; - remote_created_at: string | null; - remote_updated_at: string | null; - }; - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$outboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult - > = z.object({ - type: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseType$outboundSchema, - id: z.string(), - remote_id: z.string(), - data_url: z.string(), - file_name: z.string(), - content_type: z.string(), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$Outbound; -} - -export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseResultToJSON( - getAtsApplicationsApplicationIdAttachmentsPositiveResponseResult: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$outboundSchema - .parse(getAtsApplicationsApplicationIdAttachmentsPositiveResponseResult), - ); -} - export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -193,54 +116,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inbo ), }); -/** @internal */ -export type GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound = - { - results: Array< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$Outbound - >; - }; - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData - > = z.object({ - results: z.array( - z.lazy(() => - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound; -} - -export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseDataToJSON( - getAtsApplicationsApplicationIdAttachmentsPositiveResponseData: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema - .parse(getAtsApplicationsApplicationIdAttachmentsPositiveResponseData), - ); -} - export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -266,48 +141,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$i message: z.string(), }); -/** @internal */ -export type GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound; -} - -export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseWarningToJSON( - getAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning, -): string { - return JSON.stringify( - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema - .parse(getAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning), - ); -} - export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -341,61 +174,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound = - { - status: "success"; - data: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound; - warnings: Array< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound - >; - }; - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - GetAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound; -} - -export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseToJSON( - getAtsApplicationsApplicationIdAttachmentsPositiveResponse: - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse, -): string { - return JSON.stringify( - GetAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema - .parse(getAtsApplicationsApplicationIdAttachmentsPositiveResponse), - ); -} - export function getAtsApplicationsApplicationIdAttachmentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getatsapplicationspositiveresponse.ts b/src/models/getatsapplicationspositiveresponse.ts index 1cbdcd0..1158a51 100644 --- a/src/models/getatsapplicationspositiveresponse.ts +++ b/src/models/getatsapplicationspositiveresponse.ts @@ -485,24 +485,6 @@ export const GetAtsApplicationsPositiveResponseOutcome$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAtsApplicationsPositiveResponseOutcome); -/** @internal */ -export const GetAtsApplicationsPositiveResponseOutcome$outboundSchema: - z.ZodNativeEnum = - GetAtsApplicationsPositiveResponseOutcome$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseOutcome$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseOutcome$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseOutcome$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseOutcome$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseOutcome$outboundSchema; -} - /** @internal */ export const GetAtsApplicationsPositiveResponseAnswer7$inboundSchema: z.ZodType< GetAtsApplicationsPositiveResponseAnswer7, @@ -512,47 +494,6 @@ export const GetAtsApplicationsPositiveResponseAnswer7$inboundSchema: z.ZodType< raw: z.nullable(z.any()).optional(), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer7$Outbound = { - raw?: any | null | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer7$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer7$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer7 - > = z.object({ - raw: z.nullable(z.any()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer7$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer7$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer7$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer7$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer7$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer7$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer7$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer7ToJSON( - getAtsApplicationsPositiveResponseAnswer7: - GetAtsApplicationsPositiveResponseAnswer7, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer7$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer7, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer7FromJSON( jsonString: string, ): SafeParseResult< @@ -581,52 +522,6 @@ export const GetAtsApplicationsPositiveResponseQuestionUnknown$inboundSchema: type: z.literal("UNKNOWN"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionUnknown$Outbound = { - remote_id: string | null; - title: string; - type: "UNKNOWN"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionUnknown$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionUnknown$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionUnknown - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("UNKNOWN"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionUnknown$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionUnknown$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionUnknown$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionUnknown$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionUnknown$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionUnknown$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionUnknown$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionUnknownToJSON( - getAtsApplicationsPositiveResponseQuestionUnknown: - GetAtsApplicationsPositiveResponseQuestionUnknown, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionUnknown$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionUnknown, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionUnknownFromJSON( jsonString: string, ): SafeParseResult< @@ -658,54 +553,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer7$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionUnknown$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer7$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionUnknown$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer7ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer7: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer7), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer7FromJSON( jsonString: string, ): SafeParseResult< @@ -732,47 +579,6 @@ export const GetAtsApplicationsPositiveResponseAnswer6$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer6$Outbound = { - date: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer6$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer6$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer6 - > = z.object({ - date: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer6$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer6$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer6$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer6$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer6$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer6$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer6$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer6ToJSON( - getAtsApplicationsPositiveResponseAnswer6: - GetAtsApplicationsPositiveResponseAnswer6, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer6$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer6, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer6FromJSON( jsonString: string, ): SafeParseResult< @@ -801,52 +607,6 @@ export const GetAtsApplicationsPositiveResponseQuestionDate$inboundSchema: type: z.literal("DATE"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionDate$Outbound = { - remote_id: string | null; - title: string; - type: "DATE"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionDate$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionDate$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionDate - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("DATE"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionDate$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionDate$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionDate$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionDate$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionDate$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionDate$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionDate$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionDateToJSON( - getAtsApplicationsPositiveResponseQuestionDate: - GetAtsApplicationsPositiveResponseQuestionDate, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionDate$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionDate, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionDateFromJSON( jsonString: string, ): SafeParseResult< @@ -878,54 +638,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer6$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionDate$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer6$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionDate$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer6ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer6: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer6), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer6FromJSON( jsonString: string, ): SafeParseResult< @@ -950,47 +662,6 @@ export const GetAtsApplicationsPositiveResponseAnswer5$inboundSchema: z.ZodType< number: z.nullable(z.number()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer5$Outbound = { - number: number | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer5$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer5$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer5 - > = z.object({ - number: z.nullable(z.number()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer5$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer5$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer5$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer5$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer5$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer5$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer5$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer5ToJSON( - getAtsApplicationsPositiveResponseAnswer5: - GetAtsApplicationsPositiveResponseAnswer5, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer5$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer5, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer5FromJSON( jsonString: string, ): SafeParseResult< @@ -1019,52 +690,6 @@ export const GetAtsApplicationsPositiveResponseQuestionNumber$inboundSchema: type: z.literal("NUMBER"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionNumber$Outbound = { - remote_id: string | null; - title: string; - type: "NUMBER"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionNumber$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionNumber$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionNumber - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("NUMBER"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionNumber$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionNumber$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionNumber$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionNumber$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionNumber$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionNumber$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionNumber$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionNumberToJSON( - getAtsApplicationsPositiveResponseQuestionNumber: - GetAtsApplicationsPositiveResponseQuestionNumber, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionNumber$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionNumber, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionNumberFromJSON( jsonString: string, ): SafeParseResult< @@ -1096,54 +721,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer5$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionNumber$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer5$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionNumber$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer5ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer5: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer5), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer5FromJSON( jsonString: string, ): SafeParseResult< @@ -1168,47 +745,6 @@ export const GetAtsApplicationsPositiveResponseAnswer4$inboundSchema: z.ZodType< checked: z.nullable(z.boolean()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer4$Outbound = { - checked: boolean | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer4$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer4$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer4 - > = z.object({ - checked: z.nullable(z.boolean()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer4$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer4$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer4$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer4$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer4$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer4$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer4$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer4ToJSON( - getAtsApplicationsPositiveResponseAnswer4: - GetAtsApplicationsPositiveResponseAnswer4, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer4$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer4, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer4FromJSON( jsonString: string, ): SafeParseResult< @@ -1237,52 +773,6 @@ export const GetAtsApplicationsPositiveResponseQuestionBoolean$inboundSchema: type: z.literal("BOOLEAN"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionBoolean$Outbound = { - remote_id: string | null; - title: string; - type: "BOOLEAN"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionBoolean$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionBoolean$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionBoolean - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("BOOLEAN"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionBoolean$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionBoolean$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionBoolean$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionBoolean$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionBoolean$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionBoolean$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionBoolean$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionBooleanToJSON( - getAtsApplicationsPositiveResponseQuestionBoolean: - GetAtsApplicationsPositiveResponseQuestionBoolean, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionBoolean$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionBoolean, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionBooleanFromJSON( jsonString: string, ): SafeParseResult< @@ -1314,54 +804,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer4$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionBoolean$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer4$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionBoolean$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer4ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer4: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer4), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer4FromJSON( jsonString: string, ): SafeParseResult< @@ -1386,47 +828,6 @@ export const GetAtsApplicationsPositiveResponseAnswer3$inboundSchema: z.ZodType< choices: z.array(z.string()).optional(), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer3$Outbound = { - choices?: Array | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer3$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer3$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer3 - > = z.object({ - choices: z.array(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer3$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer3$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer3$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer3$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer3$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer3$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer3$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer3ToJSON( - getAtsApplicationsPositiveResponseAnswer3: - GetAtsApplicationsPositiveResponseAnswer3, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer3$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer3, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer3FromJSON( jsonString: string, ): SafeParseResult< @@ -1455,52 +856,6 @@ export const GetAtsApplicationsPositiveResponseQuestionMultiSelect$inboundSchema type: z.literal("MULTI_SELECT"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionMultiSelect$Outbound = { - remote_id: string | null; - title: string; - type: "MULTI_SELECT"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionMultiSelect$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionMultiSelect$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionMultiSelect - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("MULTI_SELECT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionMultiSelect$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionMultiSelect$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionMultiSelect$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionMultiSelect$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionMultiSelect$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionMultiSelect$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionMultiSelect$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionMultiSelectToJSON( - getAtsApplicationsPositiveResponseQuestionMultiSelect: - GetAtsApplicationsPositiveResponseQuestionMultiSelect, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionMultiSelect$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionMultiSelect, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionMultiSelectFromJSON( jsonString: string, ): SafeParseResult< @@ -1532,54 +887,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer3$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionMultiSelect$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer3$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionMultiSelect$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer3ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer3: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer3), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer3FromJSON( jsonString: string, ): SafeParseResult< @@ -1604,47 +911,6 @@ export const GetAtsApplicationsPositiveResponseAnswer2$inboundSchema: z.ZodType< choice: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer2$Outbound = { - choice: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer2$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer2$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer2 - > = z.object({ - choice: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer2$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer2$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer2$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer2$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer2$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer2$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer2$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer2ToJSON( - getAtsApplicationsPositiveResponseAnswer2: - GetAtsApplicationsPositiveResponseAnswer2, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer2$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer2, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer2FromJSON( jsonString: string, ): SafeParseResult< @@ -1673,52 +939,6 @@ export const GetAtsApplicationsPositiveResponseQuestionSingleSelect$inboundSchem type: z.literal("SINGLE_SELECT"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionSingleSelect$Outbound = { - remote_id: string | null; - title: string; - type: "SINGLE_SELECT"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionSingleSelect$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionSingleSelect$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionSingleSelect - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("SINGLE_SELECT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionSingleSelect$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionSingleSelect$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionSingleSelect$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionSingleSelect$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionSingleSelect$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionSingleSelect$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionSingleSelect$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionSingleSelectToJSON( - getAtsApplicationsPositiveResponseQuestionSingleSelect: - GetAtsApplicationsPositiveResponseQuestionSingleSelect, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionSingleSelect$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionSingleSelect, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionSingleSelectFromJSON( jsonString: string, ): SafeParseResult< @@ -1749,54 +969,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer2$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionSingleSelect$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer2$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionSingleSelect$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer2ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer2: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer2), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer2FromJSON( jsonString: string, ): SafeParseResult< @@ -1821,47 +993,6 @@ export const GetAtsApplicationsPositiveResponseAnswer1$inboundSchema: z.ZodType< content: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseAnswer1$Outbound = { - content: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseAnswer1$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseAnswer1$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseAnswer1 - > = z.object({ - content: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseAnswer1$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer1$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseAnswer1$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer1$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseAnswer1$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseAnswer1$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseAnswer1$Outbound; -} - -export function getAtsApplicationsPositiveResponseAnswer1ToJSON( - getAtsApplicationsPositiveResponseAnswer1: - GetAtsApplicationsPositiveResponseAnswer1, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseAnswer1$outboundSchema.parse( - getAtsApplicationsPositiveResponseAnswer1, - ), - ); -} - export function getAtsApplicationsPositiveResponseAnswer1FromJSON( jsonString: string, ): SafeParseResult< @@ -1890,52 +1021,6 @@ export const GetAtsApplicationsPositiveResponseQuestionText$inboundSchema: type: z.literal("TEXT"), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseQuestionText$Outbound = { - remote_id: string | null; - title: string; - type: "TEXT"; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseQuestionText$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseQuestionText$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseQuestionText - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("TEXT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseQuestionText$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionText$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseQuestionText$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionText$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseQuestionText$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseQuestionText$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseQuestionText$Outbound; -} - -export function getAtsApplicationsPositiveResponseQuestionTextToJSON( - getAtsApplicationsPositiveResponseQuestionText: - GetAtsApplicationsPositiveResponseQuestionText, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseQuestionText$outboundSchema.parse( - getAtsApplicationsPositiveResponseQuestionText, - ), - ); -} - export function getAtsApplicationsPositiveResponseQuestionTextFromJSON( jsonString: string, ): SafeParseResult< @@ -1967,54 +1052,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$inboundS ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound = - { - answer: GetAtsApplicationsPositiveResponseAnswer1$Outbound; - question: GetAtsApplicationsPositiveResponseQuestionText$Outbound; - }; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1 - > = z.object({ - answer: z.lazy(() => - GetAtsApplicationsPositiveResponseAnswer1$outboundSchema - ), - question: z.lazy(() => - GetAtsApplicationsPositiveResponseQuestionText$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer1ToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswer1: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswer1), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswer1FromJSON( jsonString: string, ): SafeParseResult< @@ -2060,72 +1097,6 @@ export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$inbo ), ]); -/** @internal */ -export type GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound = - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion - > = z.union([ - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - ), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound; -} - -export function getAtsApplicationsPositiveResponseScreeningQuestionAnswerUnionToJSON( - getAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion: - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema - .parse(getAtsApplicationsPositiveResponseScreeningQuestionAnswerUnion), - ); -} - export function getAtsApplicationsPositiveResponseScreeningQuestionAnswerUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2152,50 +1123,6 @@ export const GetAtsApplicationsPositiveResponseEmailAddress$inboundSchema: type: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseEmailAddress$Outbound = { - email_address?: string | null | undefined; - type: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseEmailAddress$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseEmailAddress - > = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseEmailAddress$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseEmailAddress$Outbound; -} - -export function getAtsApplicationsPositiveResponseEmailAddressToJSON( - getAtsApplicationsPositiveResponseEmailAddress: - GetAtsApplicationsPositiveResponseEmailAddress, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseEmailAddress$outboundSchema.parse( - getAtsApplicationsPositiveResponseEmailAddress, - ), - ); -} - export function getAtsApplicationsPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -2223,69 +1150,26 @@ export const GetAtsApplicationsPositiveResponsePhoneNumber$inboundSchema: type: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponsePhoneNumber$Outbound = { - phone_number: string; - type?: string | null | undefined; -}; +export function getAtsApplicationsPositiveResponsePhoneNumberFromJSON( + jsonString: string, +): SafeParseResult< + GetAtsApplicationsPositiveResponsePhoneNumber, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + GetAtsApplicationsPositiveResponsePhoneNumber$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'GetAtsApplicationsPositiveResponsePhoneNumber' from JSON`, + ); +} /** @internal */ -export const GetAtsApplicationsPositiveResponsePhoneNumber$outboundSchema: +export const GetAtsApplicationsPositiveResponseSocialMedia$inboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponsePhoneNumber$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponsePhoneNumber - > = z.object({ - phone_number: z.string(), - type: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponsePhoneNumber$ { - /** @deprecated use `GetAtsApplicationsPositiveResponsePhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponsePhoneNumber$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponsePhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponsePhoneNumber$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponsePhoneNumber$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponsePhoneNumber$Outbound; -} - -export function getAtsApplicationsPositiveResponsePhoneNumberToJSON( - getAtsApplicationsPositiveResponsePhoneNumber: - GetAtsApplicationsPositiveResponsePhoneNumber, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponsePhoneNumber$outboundSchema.parse( - getAtsApplicationsPositiveResponsePhoneNumber, - ), - ); -} - -export function getAtsApplicationsPositiveResponsePhoneNumberFromJSON( - jsonString: string, -): SafeParseResult< - GetAtsApplicationsPositiveResponsePhoneNumber, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetAtsApplicationsPositiveResponsePhoneNumber$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetAtsApplicationsPositiveResponsePhoneNumber' from JSON`, - ); -} - -/** @internal */ -export const GetAtsApplicationsPositiveResponseSocialMedia$inboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseSocialMedia, + GetAtsApplicationsPositiveResponseSocialMedia, z.ZodTypeDef, unknown > = z.object({ @@ -2294,51 +1178,6 @@ export const GetAtsApplicationsPositiveResponseSocialMedia$inboundSchema: username: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseSocialMedia$Outbound = { - link?: string | null | undefined; - type?: string | null | undefined; - username?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseSocialMedia$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseSocialMedia$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseSocialMedia - > = z.object({ - link: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseSocialMedia$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseSocialMedia$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseSocialMedia$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseSocialMedia$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseSocialMedia$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseSocialMedia$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseSocialMedia$Outbound; -} - -export function getAtsApplicationsPositiveResponseSocialMediaToJSON( - getAtsApplicationsPositiveResponseSocialMedia: - GetAtsApplicationsPositiveResponseSocialMedia, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseSocialMedia$outboundSchema.parse( - getAtsApplicationsPositiveResponseSocialMedia, - ), - ); -} - export function getAtsApplicationsPositiveResponseSocialMediaFromJSON( jsonString: string, ): SafeParseResult< @@ -2366,49 +1205,6 @@ export const GetAtsApplicationsPositiveResponseTag$inboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseTag$Outbound = { - id: string; - remote_id: string | null; - name: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseTag$outboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponseTag$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseTag -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseTag$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseTag$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseTag$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseTag$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseTag$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseTag$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseTag$Outbound; -} - -export function getAtsApplicationsPositiveResponseTagToJSON( - getAtsApplicationsPositiveResponseTag: GetAtsApplicationsPositiveResponseTag, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseTag$outboundSchema.parse( - getAtsApplicationsPositiveResponseTag, - ), - ); -} - export function getAtsApplicationsPositiveResponseTagFromJSON( jsonString: string, ): SafeParseResult { @@ -2453,88 +1249,6 @@ export const GetAtsApplicationsPositiveResponseCandidate$inboundSchema: ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseCandidate$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - email_addresses?: - | Array - | null - | undefined; - phone_numbers?: - | Array - | null - | undefined; - social_media?: - | Array - | null - | undefined; - source: string | null; - remote_url: string | null; - tags: Array; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseCandidate$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseCandidate$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseCandidate - > = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email_addresses: z.nullable( - z.array(z.lazy(() => - GetAtsApplicationsPositiveResponseEmailAddress$outboundSchema - )), - ).optional(), - phone_numbers: z.nullable( - z.array(z.lazy(() => - GetAtsApplicationsPositiveResponsePhoneNumber$outboundSchema - )), - ).optional(), - social_media: z.nullable( - z.array(z.lazy(() => - GetAtsApplicationsPositiveResponseSocialMedia$outboundSchema - )), - ).optional(), - source: z.nullable(z.string()), - remote_url: z.nullable(z.string()), - tags: z.array( - z.lazy(() => GetAtsApplicationsPositiveResponseTag$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseCandidate$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseCandidate$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseCandidate$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseCandidate$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseCandidate$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseCandidate$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseCandidate$Outbound; -} - -export function getAtsApplicationsPositiveResponseCandidateToJSON( - getAtsApplicationsPositiveResponseCandidate: - GetAtsApplicationsPositiveResponseCandidate, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseCandidate$outboundSchema.parse( - getAtsApplicationsPositiveResponseCandidate, - ), - ); -} - export function getAtsApplicationsPositiveResponseCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -2564,54 +1278,6 @@ export const GetAtsApplicationsPositiveResponseCurrentStage$inboundSchema: index: z.nullable(z.number().int()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseCurrentStage$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - index: number | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseCurrentStage$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseCurrentStage$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseCurrentStage - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - index: z.nullable(z.number().int()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseCurrentStage$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseCurrentStage$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseCurrentStage$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseCurrentStage$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseCurrentStage$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseCurrentStage$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsPositiveResponseCurrentStage$Outbound; -} - -export function getAtsApplicationsPositiveResponseCurrentStageToJSON( - getAtsApplicationsPositiveResponseCurrentStage: - GetAtsApplicationsPositiveResponseCurrentStage, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseCurrentStage$outboundSchema.parse( - getAtsApplicationsPositiveResponseCurrentStage, - ), - ); -} - export function getAtsApplicationsPositiveResponseCurrentStageFromJSON( jsonString: string, ): SafeParseResult< @@ -2639,49 +1305,6 @@ export const GetAtsApplicationsPositiveResponseJob$inboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseJob$Outbound = { - id: string; - remote_id: string; - name: string | null; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseJob$outboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponseJob$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseJob -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseJob$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseJob$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseJob$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseJob$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseJob$Outbound; -} - -export function getAtsApplicationsPositiveResponseJobToJSON( - getAtsApplicationsPositiveResponseJob: GetAtsApplicationsPositiveResponseJob, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseJob$outboundSchema.parse( - getAtsApplicationsPositiveResponseJob, - ), - ); -} - export function getAtsApplicationsPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult { @@ -2706,59 +1329,6 @@ export const GetAtsApplicationsPositiveResponseLocation$inboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseLocation$outboundSchema: - z.ZodType< - GetAtsApplicationsPositiveResponseLocation$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseLocation - > = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseLocation$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseLocation$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseLocation$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseLocation$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseLocation$Outbound; -} - -export function getAtsApplicationsPositiveResponseLocationToJSON( - getAtsApplicationsPositiveResponseLocation: - GetAtsApplicationsPositiveResponseLocation, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseLocation$outboundSchema.parse( - getAtsApplicationsPositiveResponseLocation, - ), - ); -} - export function getAtsApplicationsPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -2796,54 +1366,6 @@ export const Interview$inboundSchema: z.ZodType< canceled: z.nullable(z.boolean()), }); -/** @internal */ -export type Interview$Outbound = { - id: string; - remote_id: string | null; - title: string | null; - starting_at: string | null; - ending_at: string | null; - location?: - | GetAtsApplicationsPositiveResponseLocation$Outbound - | null - | undefined; - canceled: boolean | null; -}; - -/** @internal */ -export const Interview$outboundSchema: z.ZodType< - Interview$Outbound, - z.ZodTypeDef, - Interview -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - title: z.nullable(z.string()), - starting_at: z.nullable(z.date().transform(v => v.toISOString())), - ending_at: z.nullable(z.date().transform(v => v.toISOString())), - location: z.nullable( - z.lazy(() => GetAtsApplicationsPositiveResponseLocation$outboundSchema), - ).optional(), - canceled: z.nullable(z.boolean()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Interview$ { - /** @deprecated use `Interview$inboundSchema` instead. */ - export const inboundSchema = Interview$inboundSchema; - /** @deprecated use `Interview$outboundSchema` instead. */ - export const outboundSchema = Interview$outboundSchema; - /** @deprecated use `Interview$Outbound` instead. */ - export type Outbound = Interview$Outbound; -} - -export function interviewToJSON(interview: Interview): string { - return JSON.stringify(Interview$outboundSchema.parse(interview)); -} - export function interviewFromJSON( jsonString: string, ): SafeParseResult { @@ -2859,24 +1381,6 @@ export const GetAtsApplicationsPositiveResponseStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAtsApplicationsPositiveResponseStatus); -/** @internal */ -export const GetAtsApplicationsPositiveResponseStatus$outboundSchema: - z.ZodNativeEnum = - GetAtsApplicationsPositiveResponseStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseStatus$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const Offer$inboundSchema: z.ZodType = z .object({ @@ -2885,41 +1389,6 @@ export const Offer$inboundSchema: z.ZodType = z status: z.nullable(GetAtsApplicationsPositiveResponseStatus$inboundSchema), }); -/** @internal */ -export type Offer$Outbound = { - id: string; - remote_id: string | null; - status: string | null; -}; - -/** @internal */ -export const Offer$outboundSchema: z.ZodType< - Offer$Outbound, - z.ZodTypeDef, - Offer -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - status: z.nullable(GetAtsApplicationsPositiveResponseStatus$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Offer$ { - /** @deprecated use `Offer$inboundSchema` instead. */ - export const inboundSchema = Offer$inboundSchema; - /** @deprecated use `Offer$outboundSchema` instead. */ - export const outboundSchema = Offer$outboundSchema; - /** @deprecated use `Offer$Outbound` instead. */ - export type Outbound = Offer$Outbound; -} - -export function offerToJSON(offer: Offer): string { - return JSON.stringify(Offer$outboundSchema.parse(offer)); -} - export function offerFromJSON( jsonString: string, ): SafeParseResult { @@ -2996,125 +1465,6 @@ export const GetAtsApplicationsPositiveResponseResult$inboundSchema: z.ZodType< offers: z.array(z.lazy(() => Offer$inboundSchema)), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - outcome: string | null; - rejection_reason_name: string | null; - rejected_at: string | null; - current_stage_id: string | null; - job_id: string | null; - candidate_id: string | null; - screening_question_answers?: - | Array< - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound - | GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound - > - | null - | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - changed_at: string; - remote_deleted_at: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - candidate: GetAtsApplicationsPositiveResponseCandidate$Outbound | null; - current_stage: GetAtsApplicationsPositiveResponseCurrentStage$Outbound | null; - job: GetAtsApplicationsPositiveResponseJob$Outbound | null; - interviews: Array; - offers: Array; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - outcome: z.nullable(GetAtsApplicationsPositiveResponseOutcome$outboundSchema), - rejection_reason_name: z.nullable(z.string()), - rejected_at: z.nullable(z.date().transform(v => v.toISOString())), - current_stage_id: z.nullable(z.string()), - job_id: z.nullable(z.string()), - candidate_id: z.nullable(z.string()), - screening_question_answers: z.nullable( - z.array(z.union([ - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - ), - z.lazy(() => - GetAtsApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - ), - ])), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - candidate: z.nullable( - z.lazy(() => GetAtsApplicationsPositiveResponseCandidate$outboundSchema), - ), - current_stage: z.nullable( - z.lazy(() => GetAtsApplicationsPositiveResponseCurrentStage$outboundSchema), - ), - job: z.nullable( - z.lazy(() => GetAtsApplicationsPositiveResponseJob$outboundSchema), - ), - interviews: z.array(z.lazy(() => Interview$outboundSchema)), - offers: z.array(z.lazy(() => Offer$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseResult$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseResult$Outbound; -} - -export function getAtsApplicationsPositiveResponseResultToJSON( - getAtsApplicationsPositiveResponseResult: - GetAtsApplicationsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseResult$outboundSchema.parse( - getAtsApplicationsPositiveResponseResult, - ), - ); -} - export function getAtsApplicationsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -3143,50 +1493,6 @@ export const GetAtsApplicationsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponseData$outboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsApplicationsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponseData$ { - /** @deprecated use `GetAtsApplicationsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponseData$Outbound; -} - -export function getAtsApplicationsPositiveResponseDataToJSON( - getAtsApplicationsPositiveResponseData: - GetAtsApplicationsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponseData$outboundSchema.parse( - getAtsApplicationsPositiveResponseData, - ), - ); -} - export function getAtsApplicationsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -3208,46 +1514,6 @@ export const GetAtsApplicationsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsApplicationsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsApplicationsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsApplicationsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsApplicationsPositiveResponse$outboundSchema: z.ZodType< - GetAtsApplicationsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsApplicationsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsApplicationsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsPositiveResponse$ { - /** @deprecated use `GetAtsApplicationsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsApplicationsPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsApplicationsPositiveResponse$Outbound; -} - -export function getAtsApplicationsPositiveResponseToJSON( - getAtsApplicationsPositiveResponse: GetAtsApplicationsPositiveResponse, -): string { - return JSON.stringify( - GetAtsApplicationsPositiveResponse$outboundSchema.parse( - getAtsApplicationsPositiveResponse, - ), - ); -} - export function getAtsApplicationsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsapplicationstagespositiveresponse.ts b/src/models/getatsapplicationstagespositiveresponse.ts index b4680a4..5956135 100644 --- a/src/models/getatsapplicationstagespositiveresponse.ts +++ b/src/models/getatsapplicationstagespositiveresponse.ts @@ -61,55 +61,6 @@ export const GetAtsApplicationStagesPositiveResponseResult$inboundSchema: ), }); -/** @internal */ -export type GetAtsApplicationStagesPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetAtsApplicationStagesPositiveResponseResult$outboundSchema: - z.ZodType< - GetAtsApplicationStagesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsApplicationStagesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesPositiveResponseResult$ { - /** @deprecated use `GetAtsApplicationStagesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationStagesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationStagesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesPositiveResponseResult$Outbound; -} - -export function getAtsApplicationStagesPositiveResponseResultToJSON( - getAtsApplicationStagesPositiveResponseResult: - GetAtsApplicationStagesPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsApplicationStagesPositiveResponseResult$outboundSchema.parse( - getAtsApplicationStagesPositiveResponseResult, - ), - ); -} - export function getAtsApplicationStagesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -139,53 +90,6 @@ export const GetAtsApplicationStagesPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetAtsApplicationStagesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsApplicationStagesPositiveResponseData$outboundSchema: - z.ZodType< - GetAtsApplicationStagesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsApplicationStagesPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => - GetAtsApplicationStagesPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesPositiveResponseData$ { - /** @deprecated use `GetAtsApplicationStagesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationStagesPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationStagesPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesPositiveResponseData$Outbound; -} - -export function getAtsApplicationStagesPositiveResponseDataToJSON( - getAtsApplicationStagesPositiveResponseData: - GetAtsApplicationStagesPositiveResponseData, -): string { - return JSON.stringify( - GetAtsApplicationStagesPositiveResponseData$outboundSchema.parse( - getAtsApplicationStagesPositiveResponseData, - ), - ); -} - export function getAtsApplicationStagesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -212,50 +116,6 @@ export const GetAtsApplicationStagesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsApplicationStagesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsApplicationStagesPositiveResponse$Outbound = { - status: "success"; - data: GetAtsApplicationStagesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsApplicationStagesPositiveResponse$outboundSchema: z.ZodType< - GetAtsApplicationStagesPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsApplicationStagesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetAtsApplicationStagesPositiveResponseData$outboundSchema - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesPositiveResponse$ { - /** @deprecated use `GetAtsApplicationStagesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationStagesPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationStagesPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesPositiveResponse$Outbound; -} - -export function getAtsApplicationStagesPositiveResponseToJSON( - getAtsApplicationStagesPositiveResponse: - GetAtsApplicationStagesPositiveResponse, -): string { - return JSON.stringify( - GetAtsApplicationStagesPositiveResponse$outboundSchema.parse( - getAtsApplicationStagesPositiveResponse, - ), - ); -} - export function getAtsApplicationStagesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getatscandidatescandidateidattachmentspositiveresponse.ts b/src/models/getatscandidatescandidateidattachmentspositiveresponse.ts index e1a5642..d81a583 100644 --- a/src/models/getatscandidatescandidateidattachmentspositiveresponse.ts +++ b/src/models/getatscandidatescandidateidattachmentspositiveresponse.ts @@ -69,25 +69,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$inboundS typeof GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType > = z.nativeEnum(GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType); -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType - > = GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$inboundSchema: z.ZodType< @@ -112,67 +93,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$inboun ), }); -/** @internal */ -export type GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$Outbound = - { - id: string; - application_id: string | null; - candidate_id: string; - type: string; - remote_id: string; - data_url: string; - file_name: string; - content_type: string; - remote_created_at: string | null; - remote_updated_at: string | null; - }; - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$outboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult - > = z.object({ - id: z.string(), - application_id: z.nullable(z.string()), - candidate_id: z.string(), - type: - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseType$outboundSchema, - remote_id: z.string(), - data_url: z.string(), - file_name: z.string(), - content_type: z.string(), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$Outbound; -} - -export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseResultToJSON( - getAtsCandidatesCandidateIdAttachmentsPositiveResponseResult: - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$outboundSchema - .parse(getAtsCandidatesCandidateIdAttachmentsPositiveResponseResult), - ); -} - export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -202,54 +122,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inboundS ), }); -/** @internal */ -export type GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound = - { - results: Array< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$Outbound - >; - }; - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData - > = z.object({ - results: z.array( - z.lazy(() => - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound; -} - -export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseDataToJSON( - getAtsCandidatesCandidateIdAttachmentsPositiveResponseData: - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema - .parse(getAtsCandidatesCandidateIdAttachmentsPositiveResponseData), - ); -} - export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -275,48 +147,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inbou message: z.string(), }); -/** @internal */ -export type GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound; -} - -export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseWarningToJSON( - getAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning: - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning, -): string { - return JSON.stringify( - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema - .parse(getAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning), - ); -} - export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -350,60 +180,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSchem ), }); -/** @internal */ -export type GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound; - warnings: Array< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - GetAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound` instead. */ - export type Outbound = - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound; -} - -export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseToJSON( - getAtsCandidatesCandidateIdAttachmentsPositiveResponse: - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse, -): string { - return JSON.stringify( - GetAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema.parse( - getAtsCandidatesCandidateIdAttachmentsPositiveResponse, - ), - ); -} - export function getAtsCandidatesCandidateIdAttachmentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getatscandidatespositiveresponse.ts b/src/models/getatscandidatespositiveresponse.ts index c03252a..2fc9a05 100644 --- a/src/models/getatscandidatespositiveresponse.ts +++ b/src/models/getatscandidatespositiveresponse.ts @@ -270,49 +270,6 @@ export const GetAtsCandidatesPositiveResponsePhoneNumber$inboundSchema: type: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponsePhoneNumber$Outbound = { - phone_number: string; - type?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponsePhoneNumber$outboundSchema: - z.ZodType< - GetAtsCandidatesPositiveResponsePhoneNumber$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponsePhoneNumber - > = z.object({ - phone_number: z.string(), - type: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponsePhoneNumber$ { - /** @deprecated use `GetAtsCandidatesPositiveResponsePhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponsePhoneNumber$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponsePhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponsePhoneNumber$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponsePhoneNumber$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponsePhoneNumber$Outbound; -} - -export function getAtsCandidatesPositiveResponsePhoneNumberToJSON( - getAtsCandidatesPositiveResponsePhoneNumber: - GetAtsCandidatesPositiveResponsePhoneNumber, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponsePhoneNumber$outboundSchema.parse( - getAtsCandidatesPositiveResponsePhoneNumber, - ), - ); -} - export function getAtsCandidatesPositiveResponsePhoneNumberFromJSON( jsonString: string, ): SafeParseResult< @@ -340,49 +297,6 @@ export const GetAtsCandidatesPositiveResponseEmailAddress$inboundSchema: type: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseEmailAddress$Outbound = { - email_address?: string | null | undefined; - type: string | null; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseEmailAddress$outboundSchema: - z.ZodType< - GetAtsCandidatesPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseEmailAddress - > = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseEmailAddress$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseEmailAddress$Outbound; -} - -export function getAtsCandidatesPositiveResponseEmailAddressToJSON( - getAtsCandidatesPositiveResponseEmailAddress: - GetAtsCandidatesPositiveResponseEmailAddress, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseEmailAddress$outboundSchema.parse( - getAtsCandidatesPositiveResponseEmailAddress, - ), - ); -} - export function getAtsCandidatesPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -411,51 +325,6 @@ export const GetAtsCandidatesPositiveResponseSocialMedia$inboundSchema: username: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseSocialMedia$Outbound = { - link?: string | null | undefined; - type?: string | null | undefined; - username?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseSocialMedia$outboundSchema: - z.ZodType< - GetAtsCandidatesPositiveResponseSocialMedia$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseSocialMedia - > = z.object({ - link: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseSocialMedia$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseSocialMedia$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseSocialMedia$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseSocialMedia$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseSocialMedia$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseSocialMedia$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseSocialMedia$Outbound; -} - -export function getAtsCandidatesPositiveResponseSocialMediaToJSON( - getAtsCandidatesPositiveResponseSocialMedia: - GetAtsCandidatesPositiveResponseSocialMedia, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseSocialMedia$outboundSchema.parse( - getAtsCandidatesPositiveResponseSocialMedia, - ), - ); -} - export function getAtsCandidatesPositiveResponseSocialMediaFromJSON( jsonString: string, ): SafeParseResult< @@ -487,58 +356,6 @@ export const GetAtsCandidatesPositiveResponseLocation$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseLocation$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponseLocation$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseLocation -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseLocation$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseLocation$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseLocation$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseLocation$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseLocation$Outbound; -} - -export function getAtsCandidatesPositiveResponseLocationToJSON( - getAtsCandidatesPositiveResponseLocation: - GetAtsCandidatesPositiveResponseLocation, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseLocation$outboundSchema.parse( - getAtsCandidatesPositiveResponseLocation, - ), - ); -} - export function getAtsCandidatesPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -560,24 +377,6 @@ export const GetAtsCandidatesPositiveResponseOutcome$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAtsCandidatesPositiveResponseOutcome); -/** @internal */ -export const GetAtsCandidatesPositiveResponseOutcome$outboundSchema: - z.ZodNativeEnum = - GetAtsCandidatesPositiveResponseOutcome$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseOutcome$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseOutcome$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseOutcome$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseOutcome$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseOutcome$outboundSchema; -} - /** @internal */ export const GetAtsCandidatesPositiveResponseCurrentStage$inboundSchema: z.ZodType< @@ -591,53 +390,6 @@ export const GetAtsCandidatesPositiveResponseCurrentStage$inboundSchema: index: z.nullable(z.number().int()), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseCurrentStage$Outbound = { - id: string; - name: string | null; - remote_id: string | null; - index: number | null; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseCurrentStage$outboundSchema: - z.ZodType< - GetAtsCandidatesPositiveResponseCurrentStage$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseCurrentStage - > = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), - index: z.nullable(z.number().int()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseCurrentStage$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseCurrentStage$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseCurrentStage$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseCurrentStage$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseCurrentStage$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseCurrentStage$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseCurrentStage$Outbound; -} - -export function getAtsCandidatesPositiveResponseCurrentStageToJSON( - getAtsCandidatesPositiveResponseCurrentStage: - GetAtsCandidatesPositiveResponseCurrentStage, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseCurrentStage$outboundSchema.parse( - getAtsCandidatesPositiveResponseCurrentStage, - ), - ); -} - export function getAtsCandidatesPositiveResponseCurrentStageFromJSON( jsonString: string, ): SafeParseResult< @@ -665,49 +417,6 @@ export const GetAtsCandidatesPositiveResponseJob$inboundSchema: z.ZodType< remote_id: z.string(), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseJob$Outbound = { - id: string; - name: string | null; - remote_id: string; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseJob$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponseJob$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseJob -> = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseJob$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseJob$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseJob$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseJob$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseJob$Outbound; -} - -export function getAtsCandidatesPositiveResponseJobToJSON( - getAtsCandidatesPositiveResponseJob: GetAtsCandidatesPositiveResponseJob, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseJob$outboundSchema.parse( - getAtsCandidatesPositiveResponseJob, - ), - ); -} - export function getAtsCandidatesPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult { @@ -751,71 +460,6 @@ export const GetAtsCandidatesPositiveResponseApplication$inboundSchema: ), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseApplication$Outbound = { - id: string; - remote_id: string | null; - outcome: string | null; - rejection_reason_name: string | null; - rejected_at: string | null; - remote_url: string | null; - changed_at: string; - remote_created_at: string | null; - remote_updated_at: string | null; - current_stage: GetAtsCandidatesPositiveResponseCurrentStage$Outbound | null; - job: GetAtsCandidatesPositiveResponseJob$Outbound | null; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseApplication$outboundSchema: - z.ZodType< - GetAtsCandidatesPositiveResponseApplication$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseApplication - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - outcome: z.nullable(GetAtsCandidatesPositiveResponseOutcome$outboundSchema), - rejection_reason_name: z.nullable(z.string()), - rejected_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_url: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - current_stage: z.nullable( - z.lazy(() => GetAtsCandidatesPositiveResponseCurrentStage$outboundSchema), - ), - job: z.nullable( - z.lazy(() => GetAtsCandidatesPositiveResponseJob$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseApplication$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseApplication$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseApplication$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseApplication$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseApplication$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseApplication$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseApplication$Outbound; -} - -export function getAtsCandidatesPositiveResponseApplicationToJSON( - getAtsCandidatesPositiveResponseApplication: - GetAtsCandidatesPositiveResponseApplication, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseApplication$outboundSchema.parse( - getAtsCandidatesPositiveResponseApplication, - ), - ); -} - export function getAtsCandidatesPositiveResponseApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -843,49 +487,6 @@ export const GetAtsCandidatesPositiveResponseTag$inboundSchema: z.ZodType< remote_id: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseTag$Outbound = { - id: string; - name: string | null; - remote_id: string | null; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseTag$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponseTag$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseTag -> = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseTag$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseTag$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseTag$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseTag$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseTag$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseTag$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseTag$Outbound; -} - -export function getAtsCandidatesPositiveResponseTagToJSON( - getAtsCandidatesPositiveResponseTag: GetAtsCandidatesPositiveResponseTag, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseTag$outboundSchema.parse( - getAtsCandidatesPositiveResponseTag, - ), - ); -} - export function getAtsCandidatesPositiveResponseTagFromJSON( jsonString: string, ): SafeParseResult { @@ -949,114 +550,6 @@ export const GetAtsCandidatesPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - company: string | null; - title: string | null; - confidential: boolean | null; - source: string | null; - phone_numbers?: - | Array - | null - | undefined; - email_addresses?: - | Array - | null - | undefined; - social_media?: - | Array - | null - | undefined; - location?: - | GetAtsCandidatesPositiveResponseLocation$Outbound - | null - | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - changed_at: string; - remote_deleted_at: string | null; - applications: Array; - tags: Array; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - company: z.nullable(z.string()), - title: z.nullable(z.string()), - confidential: z.nullable(z.boolean()), - source: z.nullable(z.string()), - phone_numbers: z.nullable( - z.array(z.lazy(() => - GetAtsCandidatesPositiveResponsePhoneNumber$outboundSchema - )), - ).optional(), - email_addresses: z.nullable( - z.array(z.lazy(() => - GetAtsCandidatesPositiveResponseEmailAddress$outboundSchema - )), - ).optional(), - social_media: z.nullable( - z.array(z.lazy(() => - GetAtsCandidatesPositiveResponseSocialMedia$outboundSchema - )), - ).optional(), - location: z.nullable( - z.lazy(() => GetAtsCandidatesPositiveResponseLocation$outboundSchema), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - applications: z.array( - z.lazy(() => GetAtsCandidatesPositiveResponseApplication$outboundSchema), - ), - tags: z.array( - z.lazy(() => GetAtsCandidatesPositiveResponseTag$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseResult$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseResult$Outbound; -} - -export function getAtsCandidatesPositiveResponseResultToJSON( - getAtsCandidatesPositiveResponseResult: - GetAtsCandidatesPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseResult$outboundSchema.parse( - getAtsCandidatesPositiveResponseResult, - ), - ); -} - export function getAtsCandidatesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -1080,49 +573,6 @@ export const GetAtsCandidatesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponseData$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsCandidatesPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponseData$ { - /** @deprecated use `GetAtsCandidatesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponseData$Outbound; -} - -export function getAtsCandidatesPositiveResponseDataToJSON( - getAtsCandidatesPositiveResponseData: GetAtsCandidatesPositiveResponseData, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponseData$outboundSchema.parse( - getAtsCandidatesPositiveResponseData, - ), - ); -} - export function getAtsCandidatesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -1144,45 +594,6 @@ export const GetAtsCandidatesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsCandidatesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsCandidatesPositiveResponse$Outbound = { - status: "success"; - data: GetAtsCandidatesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsCandidatesPositiveResponse$outboundSchema: z.ZodType< - GetAtsCandidatesPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsCandidatesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsCandidatesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesPositiveResponse$ { - /** @deprecated use `GetAtsCandidatesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsCandidatesPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsCandidatesPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsCandidatesPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsCandidatesPositiveResponse$Outbound; -} - -export function getAtsCandidatesPositiveResponseToJSON( - getAtsCandidatesPositiveResponse: GetAtsCandidatesPositiveResponse, -): string { - return JSON.stringify( - GetAtsCandidatesPositiveResponse$outboundSchema.parse( - getAtsCandidatesPositiveResponse, - ), - ); -} - export function getAtsCandidatesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsinterviewspositiveresponse.ts b/src/models/getatsinterviewspositiveresponse.ts index e245627..04b1c28 100644 --- a/src/models/getatsinterviewspositiveresponse.ts +++ b/src/models/getatsinterviewspositiveresponse.ts @@ -232,58 +232,6 @@ export const GetAtsInterviewsPositiveResponseLocation$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseLocation$outboundSchema: z.ZodType< - GetAtsInterviewsPositiveResponseLocation$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseLocation -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseLocation$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseLocation$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseLocation$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseLocation$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseLocation$Outbound; -} - -export function getAtsInterviewsPositiveResponseLocationToJSON( - getAtsInterviewsPositiveResponseLocation: - GetAtsInterviewsPositiveResponseLocation, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseLocation$outboundSchema.parse( - getAtsInterviewsPositiveResponseLocation, - ), - ); -} - export function getAtsInterviewsPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -310,42 +258,6 @@ export const User$inboundSchema: z.ZodType = z email: z.nullable(z.string()).optional(), }); -/** @internal */ -export type User$Outbound = { - id: string; - remote_id: string | null; - first_name: string | null; - last_name: string | null; - email?: string | null | undefined; -}; - -/** @internal */ -export const User$outboundSchema: z.ZodType = - z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - -export function userToJSON(user: User): string { - return JSON.stringify(User$outboundSchema.parse(user)); -} - export function userFromJSON( jsonString: string, ): SafeParseResult { @@ -361,24 +273,6 @@ export const GetAtsInterviewsPositiveResponseOutcome$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAtsInterviewsPositiveResponseOutcome); -/** @internal */ -export const GetAtsInterviewsPositiveResponseOutcome$outboundSchema: - z.ZodNativeEnum = - GetAtsInterviewsPositiveResponseOutcome$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseOutcome$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseOutcome$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseOutcome$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseOutcome$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseOutcome$outboundSchema; -} - /** @internal */ export const GetAtsInterviewsPositiveResponseEmailAddress$inboundSchema: z.ZodType< @@ -390,49 +284,6 @@ export const GetAtsInterviewsPositiveResponseEmailAddress$inboundSchema: type: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseEmailAddress$Outbound = { - email_address?: string | null | undefined; - type: string | null; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseEmailAddress$outboundSchema: - z.ZodType< - GetAtsInterviewsPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseEmailAddress - > = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseEmailAddress$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseEmailAddress$Outbound; -} - -export function getAtsInterviewsPositiveResponseEmailAddressToJSON( - getAtsInterviewsPositiveResponseEmailAddress: - GetAtsInterviewsPositiveResponseEmailAddress, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseEmailAddress$outboundSchema.parse( - getAtsInterviewsPositiveResponseEmailAddress, - ), - ); -} - export function getAtsInterviewsPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -466,62 +317,6 @@ export const GetAtsInterviewsPositiveResponseCandidate$inboundSchema: z.ZodType< ).optional(), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseCandidate$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - email_addresses?: - | Array - | null - | undefined; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseCandidate$outboundSchema: - z.ZodType< - GetAtsInterviewsPositiveResponseCandidate$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseCandidate - > = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email_addresses: z.nullable( - z.array(z.lazy(() => - GetAtsInterviewsPositiveResponseEmailAddress$outboundSchema - )), - ).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseCandidate$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseCandidate$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseCandidate$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseCandidate$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseCandidate$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseCandidate$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseCandidate$Outbound; -} - -export function getAtsInterviewsPositiveResponseCandidateToJSON( - getAtsInterviewsPositiveResponseCandidate: - GetAtsInterviewsPositiveResponseCandidate, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseCandidate$outboundSchema.parse( - getAtsInterviewsPositiveResponseCandidate, - ), - ); -} - export function getAtsInterviewsPositiveResponseCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -549,49 +344,6 @@ export const GetAtsInterviewsPositiveResponseJob$inboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseJob$Outbound = { - id: string; - remote_id: string; - name: string | null; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseJob$outboundSchema: z.ZodType< - GetAtsInterviewsPositiveResponseJob$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseJob -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseJob$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseJob$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseJob$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseJob$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseJob$Outbound; -} - -export function getAtsInterviewsPositiveResponseJobToJSON( - getAtsInterviewsPositiveResponseJob: GetAtsInterviewsPositiveResponseJob, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseJob$outboundSchema.parse( - getAtsInterviewsPositiveResponseJob, - ), - ); -} - export function getAtsInterviewsPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult { @@ -622,61 +374,6 @@ export const GetAtsInterviewsPositiveResponseApplication$inboundSchema: ), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseApplication$Outbound = { - id: string; - remote_id: string | null; - outcome: string | null; - rejection_reason_name: string | null; - candidate: GetAtsInterviewsPositiveResponseCandidate$Outbound | null; - job: GetAtsInterviewsPositiveResponseJob$Outbound | null; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseApplication$outboundSchema: - z.ZodType< - GetAtsInterviewsPositiveResponseApplication$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseApplication - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - outcome: z.nullable(GetAtsInterviewsPositiveResponseOutcome$outboundSchema), - rejection_reason_name: z.nullable(z.string()), - candidate: z.nullable( - z.lazy(() => GetAtsInterviewsPositiveResponseCandidate$outboundSchema), - ), - job: z.nullable( - z.lazy(() => GetAtsInterviewsPositiveResponseJob$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseApplication$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseApplication$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseApplication$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseApplication$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseApplication$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseApplication$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseApplication$Outbound; -} - -export function getAtsInterviewsPositiveResponseApplicationToJSON( - getAtsInterviewsPositiveResponseApplication: - GetAtsInterviewsPositiveResponseApplication, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseApplication$outboundSchema.parse( - getAtsInterviewsPositiveResponseApplication, - ), - ); -} - export function getAtsInterviewsPositiveResponseApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -730,81 +427,6 @@ export const GetAtsInterviewsPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - title: string | null; - starting_at: string | null; - ending_at: string | null; - location?: - | GetAtsInterviewsPositiveResponseLocation$Outbound - | null - | undefined; - application_id: string | null; - stage_id: string | null; - canceled: boolean | null; - remote_created_at: string | null; - remote_updated_at: string | null; - changed_at: string; - remote_deleted_at: string | null; - users: Array; - application: GetAtsInterviewsPositiveResponseApplication$Outbound | null; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsInterviewsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - title: z.nullable(z.string()), - starting_at: z.nullable(z.date().transform(v => v.toISOString())), - ending_at: z.nullable(z.date().transform(v => v.toISOString())), - location: z.nullable( - z.lazy(() => GetAtsInterviewsPositiveResponseLocation$outboundSchema), - ).optional(), - application_id: z.nullable(z.string()), - stage_id: z.nullable(z.string()), - canceled: z.nullable(z.boolean()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - users: z.array(z.lazy(() => User$outboundSchema)), - application: z.nullable( - z.lazy(() => GetAtsInterviewsPositiveResponseApplication$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseResult$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseResult$Outbound; -} - -export function getAtsInterviewsPositiveResponseResultToJSON( - getAtsInterviewsPositiveResponseResult: - GetAtsInterviewsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseResult$outboundSchema.parse( - getAtsInterviewsPositiveResponseResult, - ), - ); -} - export function getAtsInterviewsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -828,49 +450,6 @@ export const GetAtsInterviewsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponseData$outboundSchema: z.ZodType< - GetAtsInterviewsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsInterviewsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponseData$ { - /** @deprecated use `GetAtsInterviewsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsInterviewsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsInterviewsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponseData$Outbound; -} - -export function getAtsInterviewsPositiveResponseDataToJSON( - getAtsInterviewsPositiveResponseData: GetAtsInterviewsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponseData$outboundSchema.parse( - getAtsInterviewsPositiveResponseData, - ), - ); -} - export function getAtsInterviewsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -892,45 +471,6 @@ export const GetAtsInterviewsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsInterviewsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsInterviewsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsInterviewsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsInterviewsPositiveResponse$outboundSchema: z.ZodType< - GetAtsInterviewsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsInterviewsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsInterviewsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsPositiveResponse$ { - /** @deprecated use `GetAtsInterviewsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsInterviewsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsInterviewsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsInterviewsPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsInterviewsPositiveResponse$Outbound; -} - -export function getAtsInterviewsPositiveResponseToJSON( - getAtsInterviewsPositiveResponse: GetAtsInterviewsPositiveResponse, -): string { - return JSON.stringify( - GetAtsInterviewsPositiveResponse$outboundSchema.parse( - getAtsInterviewsPositiveResponse, - ), - ); -} - export function getAtsInterviewsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsjobspositiveresponse.ts b/src/models/getatsjobspositiveresponse.ts index 7304c05..70b235f 100644 --- a/src/models/getatsjobspositiveresponse.ts +++ b/src/models/getatsjobspositiveresponse.ts @@ -4,12 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - ClosedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -553,29 +548,6 @@ export const GetAtsJobsPositiveResponseEmploymentType$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetAtsJobsPositiveResponseEmploymentType$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseEmploymentType, - z.ZodTypeDef, - GetAtsJobsPositiveResponseEmploymentType -> = z.union([ - z.nativeEnum(GetAtsJobsPositiveResponseEmploymentType), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseEmploymentType$ { - /** @deprecated use `GetAtsJobsPositiveResponseEmploymentType$inboundSchema` instead. */ - export const inboundSchema = - GetAtsJobsPositiveResponseEmploymentType$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseEmploymentType$outboundSchema` instead. */ - export const outboundSchema = - GetAtsJobsPositiveResponseEmploymentType$outboundSchema; -} - /** @internal */ export const GetAtsJobsPositiveResponseStatus$inboundSchema: z.ZodType< GetAtsJobsPositiveResponseStatus, @@ -587,27 +559,6 @@ export const GetAtsJobsPositiveResponseStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetAtsJobsPositiveResponseStatus$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseStatus, - z.ZodTypeDef, - GetAtsJobsPositiveResponseStatus -> = z.union([ - z.nativeEnum(GetAtsJobsPositiveResponseStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseStatus$ { - /** @deprecated use `GetAtsJobsPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const Visibility$inboundSchema: z.ZodType< Visibility, @@ -619,27 +570,6 @@ export const Visibility$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const Visibility$outboundSchema: z.ZodType< - Visibility, - z.ZodTypeDef, - Visibility -> = z.union([ - z.nativeEnum(Visibility), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Visibility$ { - /** @deprecated use `Visibility$inboundSchema` instead. */ - export const inboundSchema = Visibility$inboundSchema; - /** @deprecated use `Visibility$outboundSchema` instead. */ - export const outboundSchema = Visibility$outboundSchema; -} - /** @internal */ export const RemoteWorkStatus$inboundSchema: z.ZodType< RemoteWorkStatus, @@ -651,27 +581,6 @@ export const RemoteWorkStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const RemoteWorkStatus$outboundSchema: z.ZodType< - RemoteWorkStatus, - z.ZodTypeDef, - RemoteWorkStatus -> = z.union([ - z.nativeEnum(RemoteWorkStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoteWorkStatus$ { - /** @deprecated use `RemoteWorkStatus$inboundSchema` instead. */ - export const inboundSchema = RemoteWorkStatus$inboundSchema; - /** @deprecated use `RemoteWorkStatus$outboundSchema` instead. */ - export const outboundSchema = RemoteWorkStatus$outboundSchema; -} - /** @internal */ export const SalaryPeriod$inboundSchema: z.ZodType< SalaryPeriod, @@ -683,27 +592,6 @@ export const SalaryPeriod$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const SalaryPeriod$outboundSchema: z.ZodType< - SalaryPeriod, - z.ZodTypeDef, - SalaryPeriod -> = z.union([ - z.nativeEnum(SalaryPeriod), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SalaryPeriod$ { - /** @deprecated use `SalaryPeriod$inboundSchema` instead. */ - export const inboundSchema = SalaryPeriod$inboundSchema; - /** @deprecated use `SalaryPeriod$outboundSchema` instead. */ - export const outboundSchema = SalaryPeriod$outboundSchema; -} - /** @internal */ export const GetAtsJobsPositiveResponseLocation$inboundSchema: z.ZodType< GetAtsJobsPositiveResponseLocation, @@ -719,56 +607,6 @@ export const GetAtsJobsPositiveResponseLocation$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetAtsJobsPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetAtsJobsPositiveResponseLocation$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseLocation$Outbound, - z.ZodTypeDef, - GetAtsJobsPositiveResponseLocation -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseLocation$ { - /** @deprecated use `GetAtsJobsPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponseLocation$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - GetAtsJobsPositiveResponseLocation$outboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseLocation$Outbound` instead. */ - export type Outbound = GetAtsJobsPositiveResponseLocation$Outbound; -} - -export function getAtsJobsPositiveResponseLocationToJSON( - getAtsJobsPositiveResponseLocation: GetAtsJobsPositiveResponseLocation, -): string { - return JSON.stringify( - GetAtsJobsPositiveResponseLocation$outboundSchema.parse( - getAtsJobsPositiveResponseLocation, - ), - ); -} - export function getAtsJobsPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult { @@ -789,43 +627,6 @@ export const Stage$inboundSchema: z.ZodType = z index: z.nullable(z.number().int()).optional(), }); -/** @internal */ -export type Stage$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - index?: number | null | undefined; -}; - -/** @internal */ -export const Stage$outboundSchema: z.ZodType< - Stage$Outbound, - z.ZodTypeDef, - Stage -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - index: z.nullable(z.number().int()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Stage$ { - /** @deprecated use `Stage$inboundSchema` instead. */ - export const inboundSchema = Stage$inboundSchema; - /** @deprecated use `Stage$outboundSchema` instead. */ - export const outboundSchema = Stage$outboundSchema; - /** @deprecated use `Stage$Outbound` instead. */ - export type Outbound = Stage$Outbound; -} - -export function stageToJSON(stage: Stage): string { - return JSON.stringify(Stage$outboundSchema.parse(stage)); -} - export function stageFromJSON( jsonString: string, ): SafeParseResult { @@ -846,39 +647,6 @@ export const FormatUnknown$inboundSchema: z.ZodType< type: z.literal("UNKNOWN"), }); -/** @internal */ -export type FormatUnknown$Outbound = { - raw_question?: any | undefined; - type: "UNKNOWN"; -}; - -/** @internal */ -export const FormatUnknown$outboundSchema: z.ZodType< - FormatUnknown$Outbound, - z.ZodTypeDef, - FormatUnknown -> = z.object({ - raw_question: z.any().optional(), - type: z.literal("UNKNOWN"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatUnknown$ { - /** @deprecated use `FormatUnknown$inboundSchema` instead. */ - export const inboundSchema = FormatUnknown$inboundSchema; - /** @deprecated use `FormatUnknown$outboundSchema` instead. */ - export const outboundSchema = FormatUnknown$outboundSchema; - /** @deprecated use `FormatUnknown$Outbound` instead. */ - export type Outbound = FormatUnknown$Outbound; -} - -export function formatUnknownToJSON(formatUnknown: FormatUnknown): string { - return JSON.stringify(FormatUnknown$outboundSchema.parse(formatUnknown)); -} - export function formatUnknownFromJSON( jsonString: string, ): SafeParseResult { @@ -898,41 +666,6 @@ export const FormatInformation$inboundSchema: z.ZodType< type: z.literal("INFORMATION"), }); -/** @internal */ -export type FormatInformation$Outbound = { - type: "INFORMATION"; -}; - -/** @internal */ -export const FormatInformation$outboundSchema: z.ZodType< - FormatInformation$Outbound, - z.ZodTypeDef, - FormatInformation -> = z.object({ - type: z.literal("INFORMATION"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatInformation$ { - /** @deprecated use `FormatInformation$inboundSchema` instead. */ - export const inboundSchema = FormatInformation$inboundSchema; - /** @deprecated use `FormatInformation$outboundSchema` instead. */ - export const outboundSchema = FormatInformation$outboundSchema; - /** @deprecated use `FormatInformation$Outbound` instead. */ - export type Outbound = FormatInformation$Outbound; -} - -export function formatInformationToJSON( - formatInformation: FormatInformation, -): string { - return JSON.stringify( - FormatInformation$outboundSchema.parse(formatInformation), - ); -} - export function formatInformationFromJSON( jsonString: string, ): SafeParseResult { @@ -951,41 +684,6 @@ export const Option2$inboundSchema: z.ZodType = name: z.string(), }); -/** @internal */ -export type Option2$Outbound = { - id: string; - remote_id?: string | null | undefined; - name: string; -}; - -/** @internal */ -export const Option2$outboundSchema: z.ZodType< - Option2$Outbound, - z.ZodTypeDef, - Option2 -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()).optional(), - name: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Option2$ { - /** @deprecated use `Option2$inboundSchema` instead. */ - export const inboundSchema = Option2$inboundSchema; - /** @deprecated use `Option2$outboundSchema` instead. */ - export const outboundSchema = Option2$outboundSchema; - /** @deprecated use `Option2$Outbound` instead. */ - export type Outbound = Option2$Outbound; -} - -export function option2ToJSON(option2: Option2): string { - return JSON.stringify(Option2$outboundSchema.parse(option2)); -} - export function option2FromJSON( jsonString: string, ): SafeParseResult { @@ -1006,43 +704,6 @@ export const FormatMultiSelect$inboundSchema: z.ZodType< type: z.literal("MULTI_SELECT"), }); -/** @internal */ -export type FormatMultiSelect$Outbound = { - options: Array; - type: "MULTI_SELECT"; -}; - -/** @internal */ -export const FormatMultiSelect$outboundSchema: z.ZodType< - FormatMultiSelect$Outbound, - z.ZodTypeDef, - FormatMultiSelect -> = z.object({ - options: z.array(z.lazy(() => Option2$outboundSchema)), - type: z.literal("MULTI_SELECT"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatMultiSelect$ { - /** @deprecated use `FormatMultiSelect$inboundSchema` instead. */ - export const inboundSchema = FormatMultiSelect$inboundSchema; - /** @deprecated use `FormatMultiSelect$outboundSchema` instead. */ - export const outboundSchema = FormatMultiSelect$outboundSchema; - /** @deprecated use `FormatMultiSelect$Outbound` instead. */ - export type Outbound = FormatMultiSelect$Outbound; -} - -export function formatMultiSelectToJSON( - formatMultiSelect: FormatMultiSelect, -): string { - return JSON.stringify( - FormatMultiSelect$outboundSchema.parse(formatMultiSelect), - ); -} - export function formatMultiSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1062,37 +723,6 @@ export const FormatDate$inboundSchema: z.ZodType< type: z.literal("DATE"), }); -/** @internal */ -export type FormatDate$Outbound = { - type: "DATE"; -}; - -/** @internal */ -export const FormatDate$outboundSchema: z.ZodType< - FormatDate$Outbound, - z.ZodTypeDef, - FormatDate -> = z.object({ - type: z.literal("DATE"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatDate$ { - /** @deprecated use `FormatDate$inboundSchema` instead. */ - export const inboundSchema = FormatDate$inboundSchema; - /** @deprecated use `FormatDate$outboundSchema` instead. */ - export const outboundSchema = FormatDate$outboundSchema; - /** @deprecated use `FormatDate$Outbound` instead. */ - export type Outbound = FormatDate$Outbound; -} - -export function formatDateToJSON(formatDate: FormatDate): string { - return JSON.stringify(FormatDate$outboundSchema.parse(formatDate)); -} - export function formatDateFromJSON( jsonString: string, ): SafeParseResult { @@ -1112,37 +742,6 @@ export const FormatBoolean$inboundSchema: z.ZodType< type: z.literal("BOOLEAN"), }); -/** @internal */ -export type FormatBoolean$Outbound = { - type: "BOOLEAN"; -}; - -/** @internal */ -export const FormatBoolean$outboundSchema: z.ZodType< - FormatBoolean$Outbound, - z.ZodTypeDef, - FormatBoolean -> = z.object({ - type: z.literal("BOOLEAN"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatBoolean$ { - /** @deprecated use `FormatBoolean$inboundSchema` instead. */ - export const inboundSchema = FormatBoolean$inboundSchema; - /** @deprecated use `FormatBoolean$outboundSchema` instead. */ - export const outboundSchema = FormatBoolean$outboundSchema; - /** @deprecated use `FormatBoolean$Outbound` instead. */ - export type Outbound = FormatBoolean$Outbound; -} - -export function formatBooleanToJSON(formatBoolean: FormatBoolean): string { - return JSON.stringify(FormatBoolean$outboundSchema.parse(formatBoolean)); -} - export function formatBooleanFromJSON( jsonString: string, ): SafeParseResult { @@ -1157,21 +756,6 @@ export function formatBooleanFromJSON( export const DisplayType3$inboundSchema: z.ZodNativeEnum = z.nativeEnum(DisplayType3); -/** @internal */ -export const DisplayType3$outboundSchema: z.ZodNativeEnum = - DisplayType3$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DisplayType3$ { - /** @deprecated use `DisplayType3$inboundSchema` instead. */ - export const inboundSchema = DisplayType3$inboundSchema; - /** @deprecated use `DisplayType3$outboundSchema` instead. */ - export const outboundSchema = DisplayType3$outboundSchema; -} - /** @internal */ export const Option1$inboundSchema: z.ZodType = z.object({ @@ -1180,41 +764,6 @@ export const Option1$inboundSchema: z.ZodType = name: z.string(), }); -/** @internal */ -export type Option1$Outbound = { - id: string; - remote_id?: string | null | undefined; - name: string; -}; - -/** @internal */ -export const Option1$outboundSchema: z.ZodType< - Option1$Outbound, - z.ZodTypeDef, - Option1 -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()).optional(), - name: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Option1$ { - /** @deprecated use `Option1$inboundSchema` instead. */ - export const inboundSchema = Option1$inboundSchema; - /** @deprecated use `Option1$outboundSchema` instead. */ - export const outboundSchema = Option1$outboundSchema; - /** @deprecated use `Option1$Outbound` instead. */ - export type Outbound = Option1$Outbound; -} - -export function option1ToJSON(option1: Option1): string { - return JSON.stringify(Option1$outboundSchema.parse(option1)); -} - export function option1FromJSON( jsonString: string, ): SafeParseResult { @@ -1236,45 +785,6 @@ export const FormatSingleSelect$inboundSchema: z.ZodType< type: z.literal("SINGLE_SELECT"), }); -/** @internal */ -export type FormatSingleSelect$Outbound = { - display_type?: string | null | undefined; - options: Array; - type: "SINGLE_SELECT"; -}; - -/** @internal */ -export const FormatSingleSelect$outboundSchema: z.ZodType< - FormatSingleSelect$Outbound, - z.ZodTypeDef, - FormatSingleSelect -> = z.object({ - display_type: z.nullable(DisplayType3$outboundSchema).optional(), - options: z.array(z.lazy(() => Option1$outboundSchema)), - type: z.literal("SINGLE_SELECT"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatSingleSelect$ { - /** @deprecated use `FormatSingleSelect$inboundSchema` instead. */ - export const inboundSchema = FormatSingleSelect$inboundSchema; - /** @deprecated use `FormatSingleSelect$outboundSchema` instead. */ - export const outboundSchema = FormatSingleSelect$outboundSchema; - /** @deprecated use `FormatSingleSelect$Outbound` instead. */ - export type Outbound = FormatSingleSelect$Outbound; -} - -export function formatSingleSelectToJSON( - formatSingleSelect: FormatSingleSelect, -): string { - return JSON.stringify( - FormatSingleSelect$outboundSchema.parse(formatSingleSelect), - ); -} - export function formatSingleSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1296,41 +806,6 @@ export const FormatFile$inboundSchema: z.ZodType< type: z.literal("FILE"), }); -/** @internal */ -export type FormatFile$Outbound = { - accepted_mime_types?: Array | null | undefined; - max_file_size_bytes?: number | null | undefined; - type: "FILE"; -}; - -/** @internal */ -export const FormatFile$outboundSchema: z.ZodType< - FormatFile$Outbound, - z.ZodTypeDef, - FormatFile -> = z.object({ - accepted_mime_types: z.nullable(z.array(z.string())).optional(), - max_file_size_bytes: z.nullable(z.number().int()).optional(), - type: z.literal("FILE"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatFile$ { - /** @deprecated use `FormatFile$inboundSchema` instead. */ - export const inboundSchema = FormatFile$inboundSchema; - /** @deprecated use `FormatFile$outboundSchema` instead. */ - export const outboundSchema = FormatFile$outboundSchema; - /** @deprecated use `FormatFile$Outbound` instead. */ - export type Outbound = FormatFile$Outbound; -} - -export function formatFileToJSON(formatFile: FormatFile): string { - return JSON.stringify(FormatFile$outboundSchema.parse(formatFile)); -} - export function formatFileFromJSON( jsonString: string, ): SafeParseResult { @@ -1345,21 +820,6 @@ export function formatFileFromJSON( export const DisplayType2$inboundSchema: z.ZodNativeEnum = z.nativeEnum(DisplayType2); -/** @internal */ -export const DisplayType2$outboundSchema: z.ZodNativeEnum = - DisplayType2$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DisplayType2$ { - /** @deprecated use `DisplayType2$inboundSchema` instead. */ - export const inboundSchema = DisplayType2$inboundSchema; - /** @deprecated use `DisplayType2$outboundSchema` instead. */ - export const outboundSchema = DisplayType2$outboundSchema; -} - /** @internal */ export const FormatNumber$inboundSchema: z.ZodType< FormatNumber, @@ -1372,43 +832,6 @@ export const FormatNumber$inboundSchema: z.ZodType< type: z.literal("NUMBER"), }); -/** @internal */ -export type FormatNumber$Outbound = { - display_type: string | null; - max?: number | null | undefined; - min?: number | null | undefined; - type: "NUMBER"; -}; - -/** @internal */ -export const FormatNumber$outboundSchema: z.ZodType< - FormatNumber$Outbound, - z.ZodTypeDef, - FormatNumber -> = z.object({ - display_type: z.nullable(DisplayType2$outboundSchema.default("FIELD")), - max: z.nullable(z.number()).optional(), - min: z.nullable(z.number()).optional(), - type: z.literal("NUMBER"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatNumber$ { - /** @deprecated use `FormatNumber$inboundSchema` instead. */ - export const inboundSchema = FormatNumber$inboundSchema; - /** @deprecated use `FormatNumber$outboundSchema` instead. */ - export const outboundSchema = FormatNumber$outboundSchema; - /** @deprecated use `FormatNumber$Outbound` instead. */ - export type Outbound = FormatNumber$Outbound; -} - -export function formatNumberToJSON(formatNumber: FormatNumber): string { - return JSON.stringify(FormatNumber$outboundSchema.parse(formatNumber)); -} - export function formatNumberFromJSON( jsonString: string, ): SafeParseResult { @@ -1420,23 +843,8 @@ export function formatNumberFromJSON( } /** @internal */ -export const DisplayType1$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(DisplayType1); - -/** @internal */ -export const DisplayType1$outboundSchema: z.ZodNativeEnum = - DisplayType1$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DisplayType1$ { - /** @deprecated use `DisplayType1$inboundSchema` instead. */ - export const inboundSchema = DisplayType1$inboundSchema; - /** @deprecated use `DisplayType1$outboundSchema` instead. */ - export const outboundSchema = DisplayType1$outboundSchema; -} +export const DisplayType1$inboundSchema: z.ZodNativeEnum = + z.nativeEnum(DisplayType1); /** @internal */ export const FormatText$inboundSchema: z.ZodType< @@ -1449,41 +857,6 @@ export const FormatText$inboundSchema: z.ZodType< type: z.literal("TEXT"), }); -/** @internal */ -export type FormatText$Outbound = { - display_type?: string | null | undefined; - max_length?: number | null | undefined; - type: "TEXT"; -}; - -/** @internal */ -export const FormatText$outboundSchema: z.ZodType< - FormatText$Outbound, - z.ZodTypeDef, - FormatText -> = z.object({ - display_type: z.nullable(DisplayType1$outboundSchema).optional(), - max_length: z.nullable(z.number().int()).optional(), - type: z.literal("TEXT"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FormatText$ { - /** @deprecated use `FormatText$inboundSchema` instead. */ - export const inboundSchema = FormatText$inboundSchema; - /** @deprecated use `FormatText$outboundSchema` instead. */ - export const outboundSchema = FormatText$outboundSchema; - /** @deprecated use `FormatText$Outbound` instead. */ - export type Outbound = FormatText$Outbound; -} - -export function formatTextToJSON(formatText: FormatText): string { - return JSON.stringify(FormatText$outboundSchema.parse(formatText)); -} - export function formatTextFromJSON( jsonString: string, ): SafeParseResult { @@ -1508,52 +881,6 @@ export const Format$inboundSchema: z.ZodType = z z.lazy(() => FormatUnknown$inboundSchema), ]); -/** @internal */ -export type Format$Outbound = - | FormatSingleSelect$Outbound - | FormatMultiSelect$Outbound - | FormatText$Outbound - | FormatNumber$Outbound - | FormatFile$Outbound - | FormatBoolean$Outbound - | FormatDate$Outbound - | FormatInformation$Outbound - | FormatUnknown$Outbound; - -/** @internal */ -export const Format$outboundSchema: z.ZodType< - Format$Outbound, - z.ZodTypeDef, - Format -> = z.union([ - z.lazy(() => FormatSingleSelect$outboundSchema), - z.lazy(() => FormatMultiSelect$outboundSchema), - z.lazy(() => FormatText$outboundSchema), - z.lazy(() => FormatNumber$outboundSchema), - z.lazy(() => FormatFile$outboundSchema), - z.lazy(() => FormatBoolean$outboundSchema), - z.lazy(() => FormatDate$outboundSchema), - z.lazy(() => FormatInformation$outboundSchema), - z.lazy(() => FormatUnknown$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Format$ { - /** @deprecated use `Format$inboundSchema` instead. */ - export const inboundSchema = Format$inboundSchema; - /** @deprecated use `Format$outboundSchema` instead. */ - export const outboundSchema = Format$outboundSchema; - /** @deprecated use `Format$Outbound` instead. */ - export type Outbound = Format$Outbound; -} - -export function formatToJSON(format: Format): string { - return JSON.stringify(Format$outboundSchema.parse(format)); -} - export function formatFromJSON( jsonString: string, ): SafeParseResult { @@ -1569,23 +896,6 @@ export const GetAtsJobsPositiveResponseCategory$inboundSchema: z.ZodNativeEnum< typeof GetAtsJobsPositiveResponseCategory > = z.nativeEnum(GetAtsJobsPositiveResponseCategory); -/** @internal */ -export const GetAtsJobsPositiveResponseCategory$outboundSchema: z.ZodNativeEnum< - typeof GetAtsJobsPositiveResponseCategory -> = GetAtsJobsPositiveResponseCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseCategory$ { - /** @deprecated use `GetAtsJobsPositiveResponseCategory$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponseCategory$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseCategory$outboundSchema` instead. */ - export const outboundSchema = - GetAtsJobsPositiveResponseCategory$outboundSchema; -} - /** @internal */ export const PreconditionOptions$inboundSchema: z.ZodType< PreconditionOptions, @@ -1593,37 +903,6 @@ export const PreconditionOptions$inboundSchema: z.ZodType< unknown > = z.union([z.array(z.string()), z.array(z.boolean())]); -/** @internal */ -export type PreconditionOptions$Outbound = Array | Array; - -/** @internal */ -export const PreconditionOptions$outboundSchema: z.ZodType< - PreconditionOptions$Outbound, - z.ZodTypeDef, - PreconditionOptions -> = z.union([z.array(z.string()), z.array(z.boolean())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PreconditionOptions$ { - /** @deprecated use `PreconditionOptions$inboundSchema` instead. */ - export const inboundSchema = PreconditionOptions$inboundSchema; - /** @deprecated use `PreconditionOptions$outboundSchema` instead. */ - export const outboundSchema = PreconditionOptions$outboundSchema; - /** @deprecated use `PreconditionOptions$Outbound` instead. */ - export type Outbound = PreconditionOptions$Outbound; -} - -export function preconditionOptionsToJSON( - preconditionOptions: PreconditionOptions, -): string { - return JSON.stringify( - PreconditionOptions$outboundSchema.parse(preconditionOptions), - ); -} - export function preconditionOptionsFromJSON( jsonString: string, ): SafeParseResult { @@ -1666,84 +945,6 @@ export const ScreeningQuestion$inboundSchema: z.ZodType< ).optional(), }); -/** @internal */ -export type ScreeningQuestion$Outbound = { - id: string; - remote_id: string | null; - title: string | null; - description: string | null; - format?: - | FormatSingleSelect$Outbound - | FormatMultiSelect$Outbound - | FormatText$Outbound - | FormatNumber$Outbound - | FormatFile$Outbound - | FormatBoolean$Outbound - | FormatDate$Outbound - | FormatInformation$Outbound - | FormatUnknown$Outbound - | null - | undefined; - category: string | null; - index?: number | null | undefined; - required: boolean | null; - precondition_question_id?: string | null | undefined; - precondition_options?: Array | Array | null | undefined; -}; - -/** @internal */ -export const ScreeningQuestion$outboundSchema: z.ZodType< - ScreeningQuestion$Outbound, - z.ZodTypeDef, - ScreeningQuestion -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - title: z.nullable(z.string()), - description: z.nullable(z.string()), - format: z.nullable( - z.union([ - z.lazy(() => FormatSingleSelect$outboundSchema), - z.lazy(() => FormatMultiSelect$outboundSchema), - z.lazy(() => FormatText$outboundSchema), - z.lazy(() => FormatNumber$outboundSchema), - z.lazy(() => FormatFile$outboundSchema), - z.lazy(() => FormatBoolean$outboundSchema), - z.lazy(() => FormatDate$outboundSchema), - z.lazy(() => FormatInformation$outboundSchema), - z.lazy(() => FormatUnknown$outboundSchema), - ]), - ).optional(), - category: z.nullable(GetAtsJobsPositiveResponseCategory$outboundSchema), - index: z.nullable(z.number().int()).optional(), - required: z.nullable(z.boolean()), - precondition_question_id: z.nullable(z.string()).optional(), - precondition_options: z.nullable( - z.union([z.array(z.string()), z.array(z.boolean())]), - ).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScreeningQuestion$ { - /** @deprecated use `ScreeningQuestion$inboundSchema` instead. */ - export const inboundSchema = ScreeningQuestion$inboundSchema; - /** @deprecated use `ScreeningQuestion$outboundSchema` instead. */ - export const outboundSchema = ScreeningQuestion$outboundSchema; - /** @deprecated use `ScreeningQuestion$Outbound` instead. */ - export type Outbound = ScreeningQuestion$Outbound; -} - -export function screeningQuestionToJSON( - screeningQuestion: ScreeningQuestion, -): string { - return JSON.stringify( - ScreeningQuestion$outboundSchema.parse(screeningQuestion), - ); -} - export function screeningQuestionFromJSON( jsonString: string, ): SafeParseResult { @@ -1759,43 +960,11 @@ export const JobPostingStatus$inboundSchema: z.ZodNativeEnum< typeof JobPostingStatus > = z.nativeEnum(JobPostingStatus); -/** @internal */ -export const JobPostingStatus$outboundSchema: z.ZodNativeEnum< - typeof JobPostingStatus -> = JobPostingStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobPostingStatus$ { - /** @deprecated use `JobPostingStatus$inboundSchema` instead. */ - export const inboundSchema = JobPostingStatus$inboundSchema; - /** @deprecated use `JobPostingStatus$outboundSchema` instead. */ - export const outboundSchema = JobPostingStatus$outboundSchema; -} - /** @internal */ export const JobPostingVisibility$inboundSchema: z.ZodNativeEnum< typeof JobPostingVisibility > = z.nativeEnum(JobPostingVisibility); -/** @internal */ -export const JobPostingVisibility$outboundSchema: z.ZodNativeEnum< - typeof JobPostingVisibility -> = JobPostingVisibility$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobPostingVisibility$ { - /** @deprecated use `JobPostingVisibility$inboundSchema` instead. */ - export const inboundSchema = JobPostingVisibility$inboundSchema; - /** @deprecated use `JobPostingVisibility$outboundSchema` instead. */ - export const outboundSchema = JobPostingVisibility$outboundSchema; -} - /** @internal */ export const JobPosting$inboundSchema: z.ZodType< JobPosting, @@ -1811,49 +980,6 @@ export const JobPosting$inboundSchema: z.ZodType< url: z.nullable(z.string()), }); -/** @internal */ -export type JobPosting$Outbound = { - id: string; - remote_id: string | null; - title: string | null; - description_html: string | null; - status: string | null; - visibility: string | null; - url: string | null; -}; - -/** @internal */ -export const JobPosting$outboundSchema: z.ZodType< - JobPosting$Outbound, - z.ZodTypeDef, - JobPosting -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - title: z.nullable(z.string()), - description_html: z.nullable(z.string()), - status: z.nullable(JobPostingStatus$outboundSchema), - visibility: z.nullable(JobPostingVisibility$outboundSchema), - url: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace JobPosting$ { - /** @deprecated use `JobPosting$inboundSchema` instead. */ - export const inboundSchema = JobPosting$inboundSchema; - /** @deprecated use `JobPosting$outboundSchema` instead. */ - export const outboundSchema = JobPosting$outboundSchema; - /** @deprecated use `JobPosting$Outbound` instead. */ - export type Outbound = JobPosting$Outbound; -} - -export function jobPostingToJSON(jobPosting: JobPosting): string { - return JSON.stringify(JobPosting$outboundSchema.parse(jobPosting)); -} - export function jobPostingFromJSON( jsonString: string, ): SafeParseResult { @@ -1869,24 +995,6 @@ export const GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAtsJobsPositiveResponseHiringTeamRole); -/** @internal */ -export const GetAtsJobsPositiveResponseHiringTeamRole$outboundSchema: - z.ZodNativeEnum = - GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseHiringTeamRole$ { - /** @deprecated use `GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema` instead. */ - export const inboundSchema = - GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseHiringTeamRole$outboundSchema` instead. */ - export const outboundSchema = - GetAtsJobsPositiveResponseHiringTeamRole$outboundSchema; -} - /** @internal */ export const GetAtsJobsPositiveResponseHiringTeam$inboundSchema: z.ZodType< GetAtsJobsPositiveResponseHiringTeam, @@ -1903,57 +1011,6 @@ export const GetAtsJobsPositiveResponseHiringTeam$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsJobsPositiveResponseHiringTeam$Outbound = { - id: string; - remote_id: string | null; - first_name: string | null; - last_name: string | null; - email?: string | null | undefined; - hiring_team_roles: Array; -}; - -/** @internal */ -export const GetAtsJobsPositiveResponseHiringTeam$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseHiringTeam$Outbound, - z.ZodTypeDef, - GetAtsJobsPositiveResponseHiringTeam -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email: z.nullable(z.string()).optional(), - hiring_team_roles: z.array( - GetAtsJobsPositiveResponseHiringTeamRole$outboundSchema, - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseHiringTeam$ { - /** @deprecated use `GetAtsJobsPositiveResponseHiringTeam$inboundSchema` instead. */ - export const inboundSchema = - GetAtsJobsPositiveResponseHiringTeam$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseHiringTeam$outboundSchema` instead. */ - export const outboundSchema = - GetAtsJobsPositiveResponseHiringTeam$outboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseHiringTeam$Outbound` instead. */ - export type Outbound = GetAtsJobsPositiveResponseHiringTeam$Outbound; -} - -export function getAtsJobsPositiveResponseHiringTeamToJSON( - getAtsJobsPositiveResponseHiringTeam: GetAtsJobsPositiveResponseHiringTeam, -): string { - return JSON.stringify( - GetAtsJobsPositiveResponseHiringTeam$outboundSchema.parse( - getAtsJobsPositiveResponseHiringTeam, - ), - ); -} - export function getAtsJobsPositiveResponseHiringTeamFromJSON( jsonString: string, ): SafeParseResult { @@ -2023,116 +1080,6 @@ export const GetAtsJobsPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsJobsPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - name: string | null; - job_code: string | null; - description: string | null; - confidential: boolean | null; - weekly_hours: number | null; - employment_type?: string | null | undefined; - status?: string | null | undefined; - visibility?: string | null | undefined; - category: string | null; - department: string | null; - post_url: string | null; - experience_level: string | null; - remote_work_status?: string | null | undefined; - salary_amount: number | null; - salary_amount_from: number | null; - salary_amount_to: number | null; - salary_currency: string | null; - salary_period?: string | null | undefined; - location?: GetAtsJobsPositiveResponseLocation$Outbound | null | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - opened_at: string | null; - closed_at: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - contact_id: string | null; - changed_at: string; - remote_deleted_at: string | null; - stages: Array; - screening_questions: Array; - job_postings: Array; - hiring_team: Array; -}; - -/** @internal */ -export const GetAtsJobsPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsJobsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - job_code: z.nullable(z.string()), - description: z.nullable(z.string()), - confidential: z.nullable(z.boolean()), - weekly_hours: z.nullable(z.number()), - employment_type: z.nullable( - GetAtsJobsPositiveResponseEmploymentType$outboundSchema, - ).optional(), - status: z.nullable(GetAtsJobsPositiveResponseStatus$outboundSchema) - .optional(), - visibility: z.nullable(Visibility$outboundSchema).optional(), - category: z.nullable(z.string()), - department: z.nullable(z.string()), - post_url: z.nullable(z.string()), - experience_level: z.nullable(z.string()), - remote_work_status: z.nullable(RemoteWorkStatus$outboundSchema).optional(), - salary_amount: z.nullable(z.number()), - salary_amount_from: z.nullable(z.number()), - salary_amount_to: z.nullable(z.number()), - salary_currency: z.nullable(z.string()), - salary_period: z.nullable(SalaryPeriod$outboundSchema).optional(), - location: z.nullable( - z.lazy(() => GetAtsJobsPositiveResponseLocation$outboundSchema), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - opened_at: z.nullable(z.date().transform(v => v.toISOString())), - closed_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - contact_id: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - stages: z.array(z.lazy(() => Stage$outboundSchema)), - screening_questions: z.array(z.lazy(() => ScreeningQuestion$outboundSchema)), - job_postings: z.array(z.lazy(() => JobPosting$outboundSchema)), - hiring_team: z.array( - z.lazy(() => GetAtsJobsPositiveResponseHiringTeam$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseResult$ { - /** @deprecated use `GetAtsJobsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsJobsPositiveResponseResult$Outbound; -} - -export function getAtsJobsPositiveResponseResultToJSON( - getAtsJobsPositiveResponseResult: GetAtsJobsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsJobsPositiveResponseResult$outboundSchema.parse( - getAtsJobsPositiveResponseResult, - ), - ); -} - export function getAtsJobsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -2155,47 +1102,6 @@ export const GetAtsJobsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsJobsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsJobsPositiveResponseData$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsJobsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsJobsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponseData$ { - /** @deprecated use `GetAtsJobsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsJobsPositiveResponseData$Outbound; -} - -export function getAtsJobsPositiveResponseDataToJSON( - getAtsJobsPositiveResponseData: GetAtsJobsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsJobsPositiveResponseData$outboundSchema.parse( - getAtsJobsPositiveResponseData, - ), - ); -} - export function getAtsJobsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -2216,43 +1122,6 @@ export const GetAtsJobsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsJobsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsJobsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsJobsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsJobsPositiveResponse$outboundSchema: z.ZodType< - GetAtsJobsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsJobsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsJobsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsPositiveResponse$ { - /** @deprecated use `GetAtsJobsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsJobsPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsJobsPositiveResponse$Outbound; -} - -export function getAtsJobsPositiveResponseToJSON( - getAtsJobsPositiveResponse: GetAtsJobsPositiveResponse, -): string { - return JSON.stringify( - GetAtsJobsPositiveResponse$outboundSchema.parse(getAtsJobsPositiveResponse), - ); -} - export function getAtsJobsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsofferspositiveresponse.ts b/src/models/getatsofferspositiveresponse.ts index 8ad5e06..68c6cff 100644 --- a/src/models/getatsofferspositiveresponse.ts +++ b/src/models/getatsofferspositiveresponse.ts @@ -178,23 +178,6 @@ export const GetAtsOffersPositiveResponseStatus$inboundSchema: z.ZodNativeEnum< typeof GetAtsOffersPositiveResponseStatus > = z.nativeEnum(GetAtsOffersPositiveResponseStatus); -/** @internal */ -export const GetAtsOffersPositiveResponseStatus$outboundSchema: z.ZodNativeEnum< - typeof GetAtsOffersPositiveResponseStatus -> = GetAtsOffersPositiveResponseStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseStatus$ { - /** @deprecated use `GetAtsOffersPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - GetAtsOffersPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const GetAtsOffersPositiveResponseEmailAddress$inboundSchema: z.ZodType< GetAtsOffersPositiveResponseEmailAddress, @@ -205,48 +188,6 @@ export const GetAtsOffersPositiveResponseEmailAddress$inboundSchema: z.ZodType< type: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsOffersPositiveResponseEmailAddress$Outbound = { - email_address?: string | null | undefined; - type: string | null; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseEmailAddress$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseEmailAddress -> = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseEmailAddress$ { - /** @deprecated use `GetAtsOffersPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - GetAtsOffersPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - GetAtsOffersPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseEmailAddress$Outbound; -} - -export function getAtsOffersPositiveResponseEmailAddressToJSON( - getAtsOffersPositiveResponseEmailAddress: - GetAtsOffersPositiveResponseEmailAddress, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseEmailAddress$outboundSchema.parse( - getAtsOffersPositiveResponseEmailAddress, - ), - ); -} - export function getAtsOffersPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -280,60 +221,6 @@ export const GetAtsOffersPositiveResponseCandidate$inboundSchema: z.ZodType< ).optional(), }); -/** @internal */ -export type GetAtsOffersPositiveResponseCandidate$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - email_addresses?: - | Array - | null - | undefined; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseCandidate$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseCandidate$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseCandidate -> = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email_addresses: z.nullable( - z.array( - z.lazy(() => GetAtsOffersPositiveResponseEmailAddress$outboundSchema), - ), - ).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseCandidate$ { - /** @deprecated use `GetAtsOffersPositiveResponseCandidate$inboundSchema` instead. */ - export const inboundSchema = - GetAtsOffersPositiveResponseCandidate$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseCandidate$outboundSchema` instead. */ - export const outboundSchema = - GetAtsOffersPositiveResponseCandidate$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseCandidate$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseCandidate$Outbound; -} - -export function getAtsOffersPositiveResponseCandidateToJSON( - getAtsOffersPositiveResponseCandidate: GetAtsOffersPositiveResponseCandidate, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseCandidate$outboundSchema.parse( - getAtsOffersPositiveResponseCandidate, - ), - ); -} - export function getAtsOffersPositiveResponseCandidateFromJSON( jsonString: string, ): SafeParseResult { @@ -356,47 +243,6 @@ export const GetAtsOffersPositiveResponseJob$inboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** @internal */ -export type GetAtsOffersPositiveResponseJob$Outbound = { - id: string; - remote_id: string; - name: string | null; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseJob$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseJob$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseJob -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseJob$ { - /** @deprecated use `GetAtsOffersPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersPositiveResponseJob$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersPositiveResponseJob$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseJob$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseJob$Outbound; -} - -export function getAtsOffersPositiveResponseJobToJSON( - getAtsOffersPositiveResponseJob: GetAtsOffersPositiveResponseJob, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseJob$outboundSchema.parse( - getAtsOffersPositiveResponseJob, - ), - ); -} - export function getAtsOffersPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult { @@ -419,50 +265,6 @@ export const GetAtsOffersPositiveResponseApplication$inboundSchema: z.ZodType< job: z.nullable(z.lazy(() => GetAtsOffersPositiveResponseJob$inboundSchema)), }); -/** @internal */ -export type GetAtsOffersPositiveResponseApplication$Outbound = { - candidate: GetAtsOffersPositiveResponseCandidate$Outbound | null; - job: GetAtsOffersPositiveResponseJob$Outbound | null; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseApplication$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseApplication$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseApplication -> = z.object({ - candidate: z.nullable( - z.lazy(() => GetAtsOffersPositiveResponseCandidate$outboundSchema), - ), - job: z.nullable(z.lazy(() => GetAtsOffersPositiveResponseJob$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseApplication$ { - /** @deprecated use `GetAtsOffersPositiveResponseApplication$inboundSchema` instead. */ - export const inboundSchema = - GetAtsOffersPositiveResponseApplication$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseApplication$outboundSchema` instead. */ - export const outboundSchema = - GetAtsOffersPositiveResponseApplication$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseApplication$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseApplication$Outbound; -} - -export function getAtsOffersPositiveResponseApplicationToJSON( - getAtsOffersPositiveResponseApplication: - GetAtsOffersPositiveResponseApplication, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseApplication$outboundSchema.parse( - getAtsOffersPositiveResponseApplication, - ), - ); -} - export function getAtsOffersPositiveResponseApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -508,66 +310,6 @@ export const GetAtsOffersPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsOffersPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - status: string | null; - employment_start_date: string | null; - application_id: string | null; - custom_fields: { [k: string]: any } | null; - changed_at: string; - remote_deleted_at: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - application: GetAtsOffersPositiveResponseApplication$Outbound | null; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - status: z.nullable(GetAtsOffersPositiveResponseStatus$outboundSchema), - employment_start_date: z.nullable(z.date().transform(v => v.toISOString())), - application_id: z.nullable(z.string()), - custom_fields: z.nullable(z.record(z.any())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - application: z.nullable( - z.lazy(() => GetAtsOffersPositiveResponseApplication$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseResult$ { - /** @deprecated use `GetAtsOffersPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsOffersPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseResult$Outbound; -} - -export function getAtsOffersPositiveResponseResultToJSON( - getAtsOffersPositiveResponseResult: GetAtsOffersPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseResult$outboundSchema.parse( - getAtsOffersPositiveResponseResult, - ), - ); -} - export function getAtsOffersPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -591,47 +333,6 @@ export const GetAtsOffersPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsOffersPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponseData$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsOffersPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponseData$ { - /** @deprecated use `GetAtsOffersPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponseData$Outbound; -} - -export function getAtsOffersPositiveResponseDataToJSON( - getAtsOffersPositiveResponseData: GetAtsOffersPositiveResponseData, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponseData$outboundSchema.parse( - getAtsOffersPositiveResponseData, - ), - ); -} - export function getAtsOffersPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -652,45 +353,6 @@ export const GetAtsOffersPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsOffersPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsOffersPositiveResponse$Outbound = { - status: "success"; - data: GetAtsOffersPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsOffersPositiveResponse$outboundSchema: z.ZodType< - GetAtsOffersPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsOffersPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsOffersPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersPositiveResponse$ { - /** @deprecated use `GetAtsOffersPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsOffersPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsOffersPositiveResponse$Outbound; -} - -export function getAtsOffersPositiveResponseToJSON( - getAtsOffersPositiveResponse: GetAtsOffersPositiveResponse, -): string { - return JSON.stringify( - GetAtsOffersPositiveResponse$outboundSchema.parse( - getAtsOffersPositiveResponse, - ), - ); -} - export function getAtsOffersPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsrejectionreasonspositiveresponse.ts b/src/models/getatsrejectionreasonspositiveresponse.ts index e9a3f54..16099bc 100644 --- a/src/models/getatsrejectionreasonspositiveresponse.ts +++ b/src/models/getatsrejectionreasonspositiveresponse.ts @@ -61,55 +61,6 @@ export const GetAtsRejectionReasonsPositiveResponseResult$inboundSchema: ), }); -/** @internal */ -export type GetAtsRejectionReasonsPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - name: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetAtsRejectionReasonsPositiveResponseResult$outboundSchema: - z.ZodType< - GetAtsRejectionReasonsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsRejectionReasonsPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsPositiveResponseResult$ { - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetAtsRejectionReasonsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsRejectionReasonsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsPositiveResponseResult$Outbound; -} - -export function getAtsRejectionReasonsPositiveResponseResultToJSON( - getAtsRejectionReasonsPositiveResponseResult: - GetAtsRejectionReasonsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsRejectionReasonsPositiveResponseResult$outboundSchema.parse( - getAtsRejectionReasonsPositiveResponseResult, - ), - ); -} - export function getAtsRejectionReasonsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -138,51 +89,6 @@ export const GetAtsRejectionReasonsPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetAtsRejectionReasonsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsRejectionReasonsPositiveResponseData$outboundSchema: - z.ZodType< - GetAtsRejectionReasonsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsRejectionReasonsPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsRejectionReasonsPositiveResponseResult$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsPositiveResponseData$ { - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetAtsRejectionReasonsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetAtsRejectionReasonsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsPositiveResponseData$Outbound; -} - -export function getAtsRejectionReasonsPositiveResponseDataToJSON( - getAtsRejectionReasonsPositiveResponseData: - GetAtsRejectionReasonsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsRejectionReasonsPositiveResponseData$outboundSchema.parse( - getAtsRejectionReasonsPositiveResponseData, - ), - ); -} - export function getAtsRejectionReasonsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -209,48 +115,6 @@ export const GetAtsRejectionReasonsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsRejectionReasonsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsRejectionReasonsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsRejectionReasonsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsRejectionReasonsPositiveResponse$outboundSchema: z.ZodType< - GetAtsRejectionReasonsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsRejectionReasonsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsRejectionReasonsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsPositiveResponse$ { - /** @deprecated use `GetAtsRejectionReasonsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAtsRejectionReasonsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAtsRejectionReasonsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsPositiveResponse$Outbound; -} - -export function getAtsRejectionReasonsPositiveResponseToJSON( - getAtsRejectionReasonsPositiveResponse: - GetAtsRejectionReasonsPositiveResponse, -): string { - return JSON.stringify( - GetAtsRejectionReasonsPositiveResponse$outboundSchema.parse( - getAtsRejectionReasonsPositiveResponse, - ), - ); -} - export function getAtsRejectionReasonsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatstagspositiveresponse.ts b/src/models/getatstagspositiveresponse.ts index ec29ee9..e4f519b 100644 --- a/src/models/getatstagspositiveresponse.ts +++ b/src/models/getatstagspositiveresponse.ts @@ -55,51 +55,6 @@ export const GetAtsTagsPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsTagsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetAtsTagsPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsTagsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsTagsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsPositiveResponseResult$ { - /** @deprecated use `GetAtsTagsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsTagsPositiveResponseResult$Outbound; -} - -export function getAtsTagsPositiveResponseResultToJSON( - getAtsTagsPositiveResponseResult: GetAtsTagsPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsTagsPositiveResponseResult$outboundSchema.parse( - getAtsTagsPositiveResponseResult, - ), - ); -} - export function getAtsTagsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -122,47 +77,6 @@ export const GetAtsTagsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsTagsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsTagsPositiveResponseData$outboundSchema: z.ZodType< - GetAtsTagsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsTagsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsTagsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsPositiveResponseData$ { - /** @deprecated use `GetAtsTagsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsTagsPositiveResponseData$Outbound; -} - -export function getAtsTagsPositiveResponseDataToJSON( - getAtsTagsPositiveResponseData: GetAtsTagsPositiveResponseData, -): string { - return JSON.stringify( - GetAtsTagsPositiveResponseData$outboundSchema.parse( - getAtsTagsPositiveResponseData, - ), - ); -} - export function getAtsTagsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -183,43 +97,6 @@ export const GetAtsTagsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsTagsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsTagsPositiveResponse$Outbound = { - status: "success"; - data: GetAtsTagsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsTagsPositiveResponse$outboundSchema: z.ZodType< - GetAtsTagsPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsTagsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsTagsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsPositiveResponse$ { - /** @deprecated use `GetAtsTagsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsTagsPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsTagsPositiveResponse$Outbound; -} - -export function getAtsTagsPositiveResponseToJSON( - getAtsTagsPositiveResponse: GetAtsTagsPositiveResponse, -): string { - return JSON.stringify( - GetAtsTagsPositiveResponse$outboundSchema.parse(getAtsTagsPositiveResponse), - ); -} - export function getAtsTagsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getatsuserspositiveresponse.ts b/src/models/getatsuserspositiveresponse.ts index 2dc6e18..76ce095 100644 --- a/src/models/getatsuserspositiveresponse.ts +++ b/src/models/getatsuserspositiveresponse.ts @@ -75,23 +75,6 @@ export const GetAtsUsersPositiveResponseStatus$inboundSchema: z.ZodNativeEnum< typeof GetAtsUsersPositiveResponseStatus > = z.nativeEnum(GetAtsUsersPositiveResponseStatus); -/** @internal */ -export const GetAtsUsersPositiveResponseStatus$outboundSchema: z.ZodNativeEnum< - typeof GetAtsUsersPositiveResponseStatus -> = GetAtsUsersPositiveResponseStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersPositiveResponseStatus$ { - /** @deprecated use `GetAtsUsersPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - GetAtsUsersPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType< GetAtsUsersPositiveResponseResult, @@ -110,58 +93,6 @@ export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsUsersPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - first_name: string | null; - last_name: string | null; - email?: string | null | undefined; - status: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetAtsUsersPositiveResponseResult$outboundSchema: z.ZodType< - GetAtsUsersPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetAtsUsersPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - email: z.nullable(z.string()).optional(), - status: z.nullable(GetAtsUsersPositiveResponseStatus$outboundSchema), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersPositiveResponseResult$ { - /** @deprecated use `GetAtsUsersPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersPositiveResponseResult$inboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetAtsUsersPositiveResponseResult$outboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetAtsUsersPositiveResponseResult$Outbound; -} - -export function getAtsUsersPositiveResponseResultToJSON( - getAtsUsersPositiveResponseResult: GetAtsUsersPositiveResponseResult, -): string { - return JSON.stringify( - GetAtsUsersPositiveResponseResult$outboundSchema.parse( - getAtsUsersPositiveResponseResult, - ), - ); -} - export function getAtsUsersPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -184,47 +115,6 @@ export const GetAtsUsersPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetAtsUsersPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetAtsUsersPositiveResponseData$outboundSchema: z.ZodType< - GetAtsUsersPositiveResponseData$Outbound, - z.ZodTypeDef, - GetAtsUsersPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetAtsUsersPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersPositiveResponseData$ { - /** @deprecated use `GetAtsUsersPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersPositiveResponseData$inboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = GetAtsUsersPositiveResponseData$outboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponseData$Outbound` instead. */ - export type Outbound = GetAtsUsersPositiveResponseData$Outbound; -} - -export function getAtsUsersPositiveResponseDataToJSON( - getAtsUsersPositiveResponseData: GetAtsUsersPositiveResponseData, -): string { - return JSON.stringify( - GetAtsUsersPositiveResponseData$outboundSchema.parse( - getAtsUsersPositiveResponseData, - ), - ); -} - export function getAtsUsersPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -245,45 +135,6 @@ export const GetAtsUsersPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetAtsUsersPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetAtsUsersPositiveResponse$Outbound = { - status: "success"; - data: GetAtsUsersPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetAtsUsersPositiveResponse$outboundSchema: z.ZodType< - GetAtsUsersPositiveResponse$Outbound, - z.ZodTypeDef, - GetAtsUsersPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetAtsUsersPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersPositiveResponse$ { - /** @deprecated use `GetAtsUsersPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersPositiveResponse$inboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsUsersPositiveResponse$outboundSchema; - /** @deprecated use `GetAtsUsersPositiveResponse$Outbound` instead. */ - export type Outbound = GetAtsUsersPositiveResponse$Outbound; -} - -export function getAtsUsersPositiveResponseToJSON( - getAtsUsersPositiveResponse: GetAtsUsersPositiveResponse, -): string { - return JSON.stringify( - GetAtsUsersPositiveResponse$outboundSchema.parse( - getAtsUsersPositiveResponse, - ), - ); -} - export function getAtsUsersPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getcheckapikeypositiveresponse.ts b/src/models/getcheckapikeypositiveresponse.ts index 4e80ff0..6c94663 100644 --- a/src/models/getcheckapikeypositiveresponse.ts +++ b/src/models/getcheckapikeypositiveresponse.ts @@ -25,44 +25,6 @@ export const GetCheckApiKeyPositiveResponseData$inboundSchema: z.ZodType< environment_id: z.string(), }); -/** @internal */ -export type GetCheckApiKeyPositiveResponseData$Outbound = { - environment_id: string; -}; - -/** @internal */ -export const GetCheckApiKeyPositiveResponseData$outboundSchema: z.ZodType< - GetCheckApiKeyPositiveResponseData$Outbound, - z.ZodTypeDef, - GetCheckApiKeyPositiveResponseData -> = z.object({ - environment_id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCheckApiKeyPositiveResponseData$ { - /** @deprecated use `GetCheckApiKeyPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetCheckApiKeyPositiveResponseData$inboundSchema; - /** @deprecated use `GetCheckApiKeyPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetCheckApiKeyPositiveResponseData$outboundSchema; - /** @deprecated use `GetCheckApiKeyPositiveResponseData$Outbound` instead. */ - export type Outbound = GetCheckApiKeyPositiveResponseData$Outbound; -} - -export function getCheckApiKeyPositiveResponseDataToJSON( - getCheckApiKeyPositiveResponseData: GetCheckApiKeyPositiveResponseData, -): string { - return JSON.stringify( - GetCheckApiKeyPositiveResponseData$outboundSchema.parse( - getCheckApiKeyPositiveResponseData, - ), - ); -} - export function getCheckApiKeyPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -84,45 +46,6 @@ export const GetCheckApiKeyPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetCheckApiKeyPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetCheckApiKeyPositiveResponse$Outbound = { - status: "success"; - data: GetCheckApiKeyPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetCheckApiKeyPositiveResponse$outboundSchema: z.ZodType< - GetCheckApiKeyPositiveResponse$Outbound, - z.ZodTypeDef, - GetCheckApiKeyPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetCheckApiKeyPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetCheckApiKeyPositiveResponse$ { - /** @deprecated use `GetCheckApiKeyPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetCheckApiKeyPositiveResponse$inboundSchema; - /** @deprecated use `GetCheckApiKeyPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetCheckApiKeyPositiveResponse$outboundSchema; - /** @deprecated use `GetCheckApiKeyPositiveResponse$Outbound` instead. */ - export type Outbound = GetCheckApiKeyPositiveResponse$Outbound; -} - -export function getCheckApiKeyPositiveResponseToJSON( - getCheckApiKeyPositiveResponse: GetCheckApiKeyPositiveResponse, -): string { - return JSON.stringify( - GetCheckApiKeyPositiveResponse$outboundSchema.parse( - getCheckApiKeyPositiveResponse, - ), - ); -} - export function getCheckApiKeyPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getconnectintegrationbytokentokenpositiveresponse.ts b/src/models/getconnectintegrationbytokentokenpositiveresponse.ts index d1545cf..ce07d81 100644 --- a/src/models/getconnectintegrationbytokentokenpositiveresponse.ts +++ b/src/models/getconnectintegrationbytokentokenpositiveresponse.ts @@ -67,26 +67,6 @@ export const GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$inboun GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus, ); -/** @internal */ -export const GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$outboundSchema: - z.ZodNativeEnum< - typeof GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus - > = - GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$ { - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$inboundSchema` instead. */ - export const inboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$inboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$outboundSchema` instead. */ - export const outboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$outboundSchema; -} - /** @internal */ export const GetConnectIntegrationByTokenTokenPositiveResponseData$inboundSchema: z.ZodType< @@ -103,59 +83,6 @@ export const GetConnectIntegrationByTokenTokenPositiveResponseData$inboundSchema GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$inboundSchema, }); -/** @internal */ -export type GetConnectIntegrationByTokenTokenPositiveResponseData$Outbound = { - tool: string; - id: string; - end_user_origin_id: string | null; - end_user_organization_name: string; - end_user_email: string | null; - setup_status: string; -}; - -/** @internal */ -export const GetConnectIntegrationByTokenTokenPositiveResponseData$outboundSchema: - z.ZodType< - GetConnectIntegrationByTokenTokenPositiveResponseData$Outbound, - z.ZodTypeDef, - GetConnectIntegrationByTokenTokenPositiveResponseData - > = z.object({ - tool: z.string(), - id: z.string(), - end_user_origin_id: z.nullable(z.string()), - end_user_organization_name: z.string(), - end_user_email: z.nullable(z.string()), - setup_status: - GetConnectIntegrationByTokenTokenPositiveResponseSetupStatus$outboundSchema, - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectIntegrationByTokenTokenPositiveResponseData$ { - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponseData$inboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponseData$outboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetConnectIntegrationByTokenTokenPositiveResponseData$Outbound; -} - -export function getConnectIntegrationByTokenTokenPositiveResponseDataToJSON( - getConnectIntegrationByTokenTokenPositiveResponseData: - GetConnectIntegrationByTokenTokenPositiveResponseData, -): string { - return JSON.stringify( - GetConnectIntegrationByTokenTokenPositiveResponseData$outboundSchema.parse( - getConnectIntegrationByTokenTokenPositiveResponseData, - ), - ); -} - export function getConnectIntegrationByTokenTokenPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -185,52 +112,6 @@ export const GetConnectIntegrationByTokenTokenPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type GetConnectIntegrationByTokenTokenPositiveResponse$Outbound = { - status: "success"; - data: GetConnectIntegrationByTokenTokenPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetConnectIntegrationByTokenTokenPositiveResponse$outboundSchema: - z.ZodType< - GetConnectIntegrationByTokenTokenPositiveResponse$Outbound, - z.ZodTypeDef, - GetConnectIntegrationByTokenTokenPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetConnectIntegrationByTokenTokenPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectIntegrationByTokenTokenPositiveResponse$ { - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponse$inboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetConnectIntegrationByTokenTokenPositiveResponse$outboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenPositiveResponse$Outbound` instead. */ - export type Outbound = - GetConnectIntegrationByTokenTokenPositiveResponse$Outbound; -} - -export function getConnectIntegrationByTokenTokenPositiveResponseToJSON( - getConnectIntegrationByTokenTokenPositiveResponse: - GetConnectIntegrationByTokenTokenPositiveResponse, -): string { - return JSON.stringify( - GetConnectIntegrationByTokenTokenPositiveResponse$outboundSchema.parse( - getConnectIntegrationByTokenTokenPositiveResponse, - ), - ); -} - export function getConnectIntegrationByTokenTokenPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/gethrisabsencespositiveresponse.ts b/src/models/gethrisabsencespositiveresponse.ts index 4c634ae..771dc70 100644 --- a/src/models/gethrisabsencespositiveresponse.ts +++ b/src/models/gethrisabsencespositiveresponse.ts @@ -4,12 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - ClosedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -173,24 +168,6 @@ export const GetHrisAbsencesPositiveResponseUnit$inboundSchema: z.ZodNativeEnum< typeof GetHrisAbsencesPositiveResponseUnit > = z.nativeEnum(GetHrisAbsencesPositiveResponseUnit); -/** @internal */ -export const GetHrisAbsencesPositiveResponseUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisAbsencesPositiveResponseUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseUnit$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseUnit$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseUnit$outboundSchema; -} - /** @internal */ export const GetHrisAbsencesPositiveResponseStatus$inboundSchema: z.ZodType< GetHrisAbsencesPositiveResponseStatus, @@ -202,52 +179,11 @@ export const GetHrisAbsencesPositiveResponseStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisAbsencesPositiveResponseStatus$outboundSchema: z.ZodType< - GetHrisAbsencesPositiveResponseStatus, - z.ZodTypeDef, - GetHrisAbsencesPositiveResponseStatus -> = z.union([ - z.nativeEnum(GetHrisAbsencesPositiveResponseStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseStatus$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const GetHrisAbsencesPositiveResponseTypeUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisAbsencesPositiveResponseTypeUnit); -/** @internal */ -export const GetHrisAbsencesPositiveResponseTypeUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisAbsencesPositiveResponseTypeUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseTypeUnit$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseTypeUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseTypeUnit$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseTypeUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseTypeUnit$outboundSchema; -} - /** @internal */ export const GetHrisAbsencesPositiveResponseType$inboundSchema: z.ZodType< GetHrisAbsencesPositiveResponseType, @@ -266,59 +202,6 @@ export const GetHrisAbsencesPositiveResponseType$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisAbsencesPositiveResponseType$Outbound = { - id: string; - remote_id: string; - name: string | null; - unit: string | null; - half_days_supported: boolean | null; - exact_times_supported: boolean | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisAbsencesPositiveResponseType$outboundSchema: z.ZodType< - GetHrisAbsencesPositiveResponseType$Outbound, - z.ZodTypeDef, - GetHrisAbsencesPositiveResponseType -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - unit: z.nullable(GetHrisAbsencesPositiveResponseTypeUnit$outboundSchema), - half_days_supported: z.nullable(z.boolean()), - exact_times_supported: z.nullable(z.boolean()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseType$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseType$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseType$outboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseType$Outbound` instead. */ - export type Outbound = GetHrisAbsencesPositiveResponseType$Outbound; -} - -export function getHrisAbsencesPositiveResponseTypeToJSON( - getHrisAbsencesPositiveResponseType: GetHrisAbsencesPositiveResponseType, -): string { - return JSON.stringify( - GetHrisAbsencesPositiveResponseType$outboundSchema.parse( - getHrisAbsencesPositiveResponseType, - ), - ); -} - export function getHrisAbsencesPositiveResponseTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -360,80 +243,6 @@ export const GetHrisAbsencesPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisAbsencesPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - start_date?: any | null | undefined; - end_date?: any | null | undefined; - start_half_day: boolean | null; - end_half_day: boolean | null; - start_time?: any | null | undefined; - end_time?: any | null | undefined; - amount: number | null; - unit: string | null; - status?: string | null | undefined; - employee_note: string | null; - type_id: string | null; - changed_at: string; - remote_deleted_at: string | null; - type: GetHrisAbsencesPositiveResponseType$Outbound | null; -}; - -/** @internal */ -export const GetHrisAbsencesPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisAbsencesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisAbsencesPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - start_date: z.nullable(z.any()).optional(), - end_date: z.nullable(z.any()).optional(), - start_half_day: z.nullable(z.boolean()), - end_half_day: z.nullable(z.boolean()), - start_time: z.nullable(z.any()).optional(), - end_time: z.nullable(z.any()).optional(), - amount: z.nullable(z.number()), - unit: z.nullable(GetHrisAbsencesPositiveResponseUnit$outboundSchema), - status: z.nullable(GetHrisAbsencesPositiveResponseStatus$outboundSchema) - .optional(), - employee_note: z.nullable(z.string()), - type_id: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - type: z.nullable( - z.lazy(() => GetHrisAbsencesPositiveResponseType$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseResult$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisAbsencesPositiveResponseResult$Outbound; -} - -export function getHrisAbsencesPositiveResponseResultToJSON( - getHrisAbsencesPositiveResponseResult: GetHrisAbsencesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisAbsencesPositiveResponseResult$outboundSchema.parse( - getHrisAbsencesPositiveResponseResult, - ), - ); -} - export function getHrisAbsencesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -457,49 +266,6 @@ export const GetHrisAbsencesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisAbsencesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisAbsencesPositiveResponseData$outboundSchema: z.ZodType< - GetHrisAbsencesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisAbsencesPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisAbsencesPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponseData$ { - /** @deprecated use `GetHrisAbsencesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsencesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsencesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisAbsencesPositiveResponseData$Outbound; -} - -export function getHrisAbsencesPositiveResponseDataToJSON( - getHrisAbsencesPositiveResponseData: GetHrisAbsencesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisAbsencesPositiveResponseData$outboundSchema.parse( - getHrisAbsencesPositiveResponseData, - ), - ); -} - export function getHrisAbsencesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -521,45 +287,6 @@ export const GetHrisAbsencesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisAbsencesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisAbsencesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisAbsencesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisAbsencesPositiveResponse$outboundSchema: z.ZodType< - GetHrisAbsencesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisAbsencesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisAbsencesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesPositiveResponse$ { - /** @deprecated use `GetHrisAbsencesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsencesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsencesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisAbsencesPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisAbsencesPositiveResponse$Outbound; -} - -export function getHrisAbsencesPositiveResponseToJSON( - getHrisAbsencesPositiveResponse: GetHrisAbsencesPositiveResponse, -): string { - return JSON.stringify( - GetHrisAbsencesPositiveResponse$outboundSchema.parse( - getHrisAbsencesPositiveResponse, - ), - ); -} - export function getHrisAbsencesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisabsencetypespositiveresponse.ts b/src/models/gethrisabsencetypespositiveresponse.ts index e5c9063..085b42c 100644 --- a/src/models/gethrisabsencetypespositiveresponse.ts +++ b/src/models/gethrisabsencetypespositiveresponse.ts @@ -75,24 +75,6 @@ export const GetHrisAbsenceTypesPositiveResponseUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisAbsenceTypesPositiveResponseUnit); -/** @internal */ -export const GetHrisAbsenceTypesPositiveResponseUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisAbsenceTypesPositiveResponseUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesPositiveResponseUnit$ { - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsenceTypesPositiveResponseUnit$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsenceTypesPositiveResponseUnit$outboundSchema; -} - /** @internal */ export const GetHrisAbsenceTypesPositiveResponseResult$inboundSchema: z.ZodType< GetHrisAbsenceTypesPositiveResponseResult, @@ -111,61 +93,6 @@ export const GetHrisAbsenceTypesPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisAbsenceTypesPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - name: string | null; - unit: string | null; - half_days_supported: boolean | null; - exact_times_supported: boolean | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisAbsenceTypesPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisAbsenceTypesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisAbsenceTypesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - unit: z.nullable(GetHrisAbsenceTypesPositiveResponseUnit$outboundSchema), - half_days_supported: z.nullable(z.boolean()), - exact_times_supported: z.nullable(z.boolean()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesPositiveResponseResult$ { - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsenceTypesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsenceTypesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesPositiveResponseResult$Outbound; -} - -export function getHrisAbsenceTypesPositiveResponseResultToJSON( - getHrisAbsenceTypesPositiveResponseResult: - GetHrisAbsenceTypesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisAbsenceTypesPositiveResponseResult$outboundSchema.parse( - getHrisAbsenceTypesPositiveResponseResult, - ), - ); -} - export function getHrisAbsenceTypesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -194,50 +121,6 @@ export const GetHrisAbsenceTypesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisAbsenceTypesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisAbsenceTypesPositiveResponseData$outboundSchema: z.ZodType< - GetHrisAbsenceTypesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisAbsenceTypesPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisAbsenceTypesPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesPositiveResponseData$ { - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsenceTypesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsenceTypesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesPositiveResponseData$Outbound; -} - -export function getHrisAbsenceTypesPositiveResponseDataToJSON( - getHrisAbsenceTypesPositiveResponseData: - GetHrisAbsenceTypesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisAbsenceTypesPositiveResponseData$outboundSchema.parse( - getHrisAbsenceTypesPositiveResponseData, - ), - ); -} - export function getHrisAbsenceTypesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -264,47 +147,6 @@ export const GetHrisAbsenceTypesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisAbsenceTypesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisAbsenceTypesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisAbsenceTypesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisAbsenceTypesPositiveResponse$outboundSchema: z.ZodType< - GetHrisAbsenceTypesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisAbsenceTypesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisAbsenceTypesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesPositiveResponse$ { - /** @deprecated use `GetHrisAbsenceTypesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisAbsenceTypesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisAbsenceTypesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesPositiveResponse$Outbound; -} - -export function getHrisAbsenceTypesPositiveResponseToJSON( - getHrisAbsenceTypesPositiveResponse: GetHrisAbsenceTypesPositiveResponse, -): string { - return JSON.stringify( - GetHrisAbsenceTypesPositiveResponse$outboundSchema.parse( - getHrisAbsenceTypesPositiveResponse, - ), - ); -} - export function getHrisAbsenceTypesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisemployeedocumentcategoriespositiveresponse.ts b/src/models/gethrisemployeedocumentcategoriespositiveresponse.ts index 4dfea3b..f6c8166 100644 --- a/src/models/gethrisemployeedocumentcategoriespositiveresponse.ts +++ b/src/models/gethrisemployeedocumentcategoriespositiveresponse.ts @@ -61,55 +61,6 @@ export const GetHrisEmployeeDocumentCategoriesPositiveResponseResult$inboundSche ), }); -/** @internal */ -export type GetHrisEmployeeDocumentCategoriesPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisEmployeeDocumentCategoriesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesPositiveResponseResult$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$Outbound; -} - -export function getHrisEmployeeDocumentCategoriesPositiveResponseResultToJSON( - getHrisEmployeeDocumentCategoriesPositiveResponseResult: - GetHrisEmployeeDocumentCategoriesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$outboundSchema - .parse(getHrisEmployeeDocumentCategoriesPositiveResponseResult), - ); -} - export function getHrisEmployeeDocumentCategoriesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -140,56 +91,6 @@ export const GetHrisEmployeeDocumentCategoriesPositiveResponseData$inboundSchema ), }); -/** @internal */ -export type GetHrisEmployeeDocumentCategoriesPositiveResponseData$Outbound = { - next: string | null; - results: Array< - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$Outbound - >; -}; - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesPositiveResponseData$outboundSchema: - z.ZodType< - GetHrisEmployeeDocumentCategoriesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisEmployeeDocumentCategoriesPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => - GetHrisEmployeeDocumentCategoriesPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesPositiveResponseData$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetHrisEmployeeDocumentCategoriesPositiveResponseData$Outbound; -} - -export function getHrisEmployeeDocumentCategoriesPositiveResponseDataToJSON( - getHrisEmployeeDocumentCategoriesPositiveResponseData: - GetHrisEmployeeDocumentCategoriesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisEmployeeDocumentCategoriesPositiveResponseData$outboundSchema.parse( - getHrisEmployeeDocumentCategoriesPositiveResponseData, - ), - ); -} - export function getHrisEmployeeDocumentCategoriesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -219,52 +120,6 @@ export const GetHrisEmployeeDocumentCategoriesPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type GetHrisEmployeeDocumentCategoriesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisEmployeeDocumentCategoriesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesPositiveResponse$outboundSchema: - z.ZodType< - GetHrisEmployeeDocumentCategoriesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisEmployeeDocumentCategoriesPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetHrisEmployeeDocumentCategoriesPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesPositiveResponse$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesPositiveResponse$Outbound` instead. */ - export type Outbound = - GetHrisEmployeeDocumentCategoriesPositiveResponse$Outbound; -} - -export function getHrisEmployeeDocumentCategoriesPositiveResponseToJSON( - getHrisEmployeeDocumentCategoriesPositiveResponse: - GetHrisEmployeeDocumentCategoriesPositiveResponse, -): string { - return JSON.stringify( - GetHrisEmployeeDocumentCategoriesPositiveResponse$outboundSchema.parse( - getHrisEmployeeDocumentCategoriesPositiveResponse, - ), - ); -} - export function getHrisEmployeeDocumentCategoriesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/gethrisemployeesformpositiveresponse.ts b/src/models/gethrisemployeesformpositiveresponse.ts index c01fd93..0b668d6 100644 --- a/src/models/gethrisemployeesformpositiveresponse.ts +++ b/src/models/gethrisemployeesformpositiveresponse.ts @@ -7,18 +7,8 @@ import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; -import { - Schema1Union1, - Schema1Union1$inboundSchema, - Schema1Union1$Outbound, - Schema1Union1$outboundSchema, -} from "./schema1union1.js"; -import { - Schema2Union2, - Schema2Union2$inboundSchema, - Schema2Union2$Outbound, - Schema2Union2$outboundSchema, -} from "./schema2union2.js"; +import { Schema1Union1, Schema1Union1$inboundSchema } from "./schema1union1.js"; +import { Schema2Union2, Schema2Union2$inboundSchema } from "./schema2union2.js"; export const GetHrisEmployeesFormPositiveResponseUnifiedKey8 = { FirstName: "first_name", @@ -437,24 +427,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey8$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey8); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey8$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey8$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey8$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey8$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey8$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey8$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey8$outboundSchema; -} - /** @internal */ export const GetHrisEmployeesFormPositiveResponseFileRestrictions$inboundSchema: z.ZodType< @@ -466,50 +438,6 @@ export const GetHrisEmployeesFormPositiveResponseFileRestrictions$inboundSchema: max_file_size: z.nullable(z.number()).optional(), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseFileRestrictions$Outbound = { - accepted_mime_types: Array; - max_file_size?: number | null | undefined; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseFileRestrictions$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseFileRestrictions$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseFileRestrictions - > = z.object({ - accepted_mime_types: z.array(z.string()), - max_file_size: z.nullable(z.number()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseFileRestrictions$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseFileRestrictions$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseFileRestrictions$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseFileRestrictions$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseFileRestrictions$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseFileRestrictions$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseFileRestrictions$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseFileRestrictionsToJSON( - getHrisEmployeesFormPositiveResponseFileRestrictions: - GetHrisEmployeesFormPositiveResponseFileRestrictions, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseFileRestrictions$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseFileRestrictions, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseFileRestrictionsFromJSON( jsonString: string, ): SafeParseResult< @@ -544,52 +472,6 @@ export const PropertiesFile$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PropertiesFile$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "file"; - file_restrictions: - GetHrisEmployeesFormPositiveResponseFileRestrictions$Outbound; -}; - -/** @internal */ -export const PropertiesFile$outboundSchema: z.ZodType< - PropertiesFile$Outbound, - z.ZodTypeDef, - PropertiesFile -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey8$outboundSchema, - ).optional(), - type: z.literal("file"), - file_restrictions: z.lazy(() => - GetHrisEmployeesFormPositiveResponseFileRestrictions$outboundSchema - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesFile$ { - /** @deprecated use `PropertiesFile$inboundSchema` instead. */ - export const inboundSchema = PropertiesFile$inboundSchema; - /** @deprecated use `PropertiesFile$outboundSchema` instead. */ - export const outboundSchema = PropertiesFile$outboundSchema; - /** @deprecated use `PropertiesFile$Outbound` instead. */ - export type Outbound = PropertiesFile$Outbound; -} - -export function propertiesFileToJSON(propertiesFile: PropertiesFile): string { - return JSON.stringify(PropertiesFile$outboundSchema.parse(propertiesFile)); -} - export function propertiesFileFromJSON( jsonString: string, ): SafeParseResult { @@ -605,24 +487,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey7$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey7); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey7$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey7$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey7$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey7$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey7$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey7$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey7$outboundSchema; -} - /** @internal */ export const PropertiesArray$inboundSchema: z.ZodType< PropertiesArray, @@ -641,55 +505,6 @@ export const PropertiesArray$inboundSchema: z.ZodType< max_items: z.nullable(z.number()).optional(), }); -/** @internal */ -export type PropertiesArray$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "array"; - item_type: Schema2Union2$Outbound; - min_items?: number | null | undefined; - max_items?: number | null | undefined; -}; - -/** @internal */ -export const PropertiesArray$outboundSchema: z.ZodType< - PropertiesArray$Outbound, - z.ZodTypeDef, - PropertiesArray -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey7$outboundSchema, - ).optional(), - type: z.literal("array"), - item_type: Schema2Union2$outboundSchema, - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesArray$ { - /** @deprecated use `PropertiesArray$inboundSchema` instead. */ - export const inboundSchema = PropertiesArray$inboundSchema; - /** @deprecated use `PropertiesArray$outboundSchema` instead. */ - export const outboundSchema = PropertiesArray$outboundSchema; - /** @deprecated use `PropertiesArray$Outbound` instead. */ - export type Outbound = PropertiesArray$Outbound; -} - -export function propertiesArrayToJSON( - propertiesArray: PropertiesArray, -): string { - return JSON.stringify(PropertiesArray$outboundSchema.parse(propertiesArray)); -} - export function propertiesArrayFromJSON( jsonString: string, ): SafeParseResult { @@ -705,24 +520,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey6$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey6); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey6$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey6$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey6$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey6$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey6$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey6$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey6$outboundSchema; -} - /** @internal */ export const PropertiesObject$inboundSchema: z.ZodType< PropertiesObject, @@ -739,53 +536,6 @@ export const PropertiesObject$inboundSchema: z.ZodType< properties: z.record(Schema1Union1$inboundSchema), }); -/** @internal */ -export type PropertiesObject$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "object"; - properties: { [k: string]: Schema1Union1$Outbound }; -}; - -/** @internal */ -export const PropertiesObject$outboundSchema: z.ZodType< - PropertiesObject$Outbound, - z.ZodTypeDef, - PropertiesObject -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey6$outboundSchema, - ).optional(), - type: z.literal("object"), - properties: z.record(Schema1Union1$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesObject$ { - /** @deprecated use `PropertiesObject$inboundSchema` instead. */ - export const inboundSchema = PropertiesObject$inboundSchema; - /** @deprecated use `PropertiesObject$outboundSchema` instead. */ - export const outboundSchema = PropertiesObject$outboundSchema; - /** @deprecated use `PropertiesObject$Outbound` instead. */ - export type Outbound = PropertiesObject$Outbound; -} - -export function propertiesObjectToJSON( - propertiesObject: PropertiesObject, -): string { - return JSON.stringify( - PropertiesObject$outboundSchema.parse(propertiesObject), - ); -} - export function propertiesObjectFromJSON( jsonString: string, ): SafeParseResult { @@ -801,24 +551,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey5$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey5); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey5$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey5$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey5$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey5$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey5$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey5$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey5$outboundSchema; -} - /** @internal */ export const PropertiesCheckbox$inboundSchema: z.ZodType< PropertiesCheckbox, @@ -834,51 +566,6 @@ export const PropertiesCheckbox$inboundSchema: z.ZodType< type: z.literal("checkbox"), }); -/** @internal */ -export type PropertiesCheckbox$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "checkbox"; -}; - -/** @internal */ -export const PropertiesCheckbox$outboundSchema: z.ZodType< - PropertiesCheckbox$Outbound, - z.ZodTypeDef, - PropertiesCheckbox -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey5$outboundSchema, - ).optional(), - type: z.literal("checkbox"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesCheckbox$ { - /** @deprecated use `PropertiesCheckbox$inboundSchema` instead. */ - export const inboundSchema = PropertiesCheckbox$inboundSchema; - /** @deprecated use `PropertiesCheckbox$outboundSchema` instead. */ - export const outboundSchema = PropertiesCheckbox$outboundSchema; - /** @deprecated use `PropertiesCheckbox$Outbound` instead. */ - export type Outbound = PropertiesCheckbox$Outbound; -} - -export function propertiesCheckboxToJSON( - propertiesCheckbox: PropertiesCheckbox, -): string { - return JSON.stringify( - PropertiesCheckbox$outboundSchema.parse(propertiesCheckbox), - ); -} - export function propertiesCheckboxFromJSON( jsonString: string, ): SafeParseResult { @@ -900,50 +587,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsReferenced2$inboundSchem link: z.string(), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsReferenced2 - > = z.object({ - type: z.literal("referenced"), - link: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsReferenced2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsReferenced2ToJSON( - getHrisEmployeesFormPositiveResponseOptionsReferenced2: - GetHrisEmployeesFormPositiveResponseOptionsReferenced2, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsReferenced2, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsReferenced2FromJSON( jsonString: string, ): SafeParseResult< @@ -967,45 +610,6 @@ export const GetHrisEmployeesFormPositiveResponseRemoteId2$inboundSchema: unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseRemoteId2$Outbound = - | string - | number; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseRemoteId2$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseRemoteId2$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseRemoteId2 - > = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseRemoteId2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseRemoteId2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseRemoteId2$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId2$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseRemoteId2$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseRemoteId2ToJSON( - getHrisEmployeesFormPositiveResponseRemoteId2: - GetHrisEmployeesFormPositiveResponseRemoteId2, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseRemoteId2$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseRemoteId2, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseRemoteId2FromJSON( jsonString: string, ): SafeParseResult< @@ -1032,53 +636,6 @@ export const GetHrisEmployeesFormPositiveResponseEntry2$inboundSchema: remote_id: z.union([z.string(), z.number()]), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseEntry2$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseEntry2$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseEntry2$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseEntry2 - > = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseEntry2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseEntry2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseEntry2$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry2$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseEntry2$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseEntry2ToJSON( - getHrisEmployeesFormPositiveResponseEntry2: - GetHrisEmployeesFormPositiveResponseEntry2, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseEntry2$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseEntry2, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseEntry2FromJSON( jsonString: string, ): SafeParseResult< @@ -1108,52 +665,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsInline2$inboundSchema: ), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsInline2 - > = z.object({ - type: z.literal("inline"), - entries: z.array( - z.lazy(() => GetHrisEmployeesFormPositiveResponseEntry2$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsInline2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsInline2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsInline2ToJSON( - getHrisEmployeesFormPositiveResponseOptionsInline2: - GetHrisEmployeesFormPositiveResponseOptionsInline2, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsInline2, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsInline2FromJSON( jsonString: string, ): SafeParseResult< @@ -1185,53 +696,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsUnion2$inboundSchema: ), ]); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsUnion2$Outbound = - | GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound - | GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsUnion2$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsUnion2$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsUnion2 - > = z.union([ - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema - ), - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema - ), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsUnion2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsUnion2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsUnion2$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion2$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsUnion2$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsUnion2ToJSON( - getHrisEmployeesFormPositiveResponseOptionsUnion2: - GetHrisEmployeesFormPositiveResponseOptionsUnion2, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsUnion2$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsUnion2, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsUnion2FromJSON( jsonString: string, ): SafeParseResult< @@ -1271,64 +735,6 @@ export const PropertiesMultiSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type PropertiesMultiSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "multi_select"; - min_items?: number | null | undefined; - max_items?: number | null | undefined; - options: - | GetHrisEmployeesFormPositiveResponseOptionsInline2$Outbound - | GetHrisEmployeesFormPositiveResponseOptionsReferenced2$Outbound; -}; - -/** @internal */ -export const PropertiesMultiSelect$outboundSchema: z.ZodType< - PropertiesMultiSelect$Outbound, - z.ZodTypeDef, - PropertiesMultiSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(z.string()).optional(), - type: z.literal("multi_select"), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), - options: z.union([ - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsInline2$outboundSchema - ), - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsReferenced2$outboundSchema - ), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesMultiSelect$ { - /** @deprecated use `PropertiesMultiSelect$inboundSchema` instead. */ - export const inboundSchema = PropertiesMultiSelect$inboundSchema; - /** @deprecated use `PropertiesMultiSelect$outboundSchema` instead. */ - export const outboundSchema = PropertiesMultiSelect$outboundSchema; - /** @deprecated use `PropertiesMultiSelect$Outbound` instead. */ - export type Outbound = PropertiesMultiSelect$Outbound; -} - -export function propertiesMultiSelectToJSON( - propertiesMultiSelect: PropertiesMultiSelect, -): string { - return JSON.stringify( - PropertiesMultiSelect$outboundSchema.parse(propertiesMultiSelect), - ); -} - export function propertiesMultiSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1344,24 +750,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey4$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey4); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey4$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey4$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey4$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey4$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey4$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey4$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey4$outboundSchema; -} - /** @internal */ export const GetHrisEmployeesFormPositiveResponseOptionsReferenced1$inboundSchema: z.ZodType< @@ -1373,50 +761,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsReferenced1$inboundSchem link: z.string(), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsReferenced1 - > = z.object({ - type: z.literal("referenced"), - link: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsReferenced1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsReferenced1ToJSON( - getHrisEmployeesFormPositiveResponseOptionsReferenced1: - GetHrisEmployeesFormPositiveResponseOptionsReferenced1, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsReferenced1, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsReferenced1FromJSON( jsonString: string, ): SafeParseResult< @@ -1440,45 +784,6 @@ export const GetHrisEmployeesFormPositiveResponseRemoteId1$inboundSchema: unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseRemoteId1$Outbound = - | string - | number; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseRemoteId1$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseRemoteId1$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseRemoteId1 - > = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseRemoteId1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseRemoteId1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseRemoteId1$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseRemoteId1$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseRemoteId1$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseRemoteId1ToJSON( - getHrisEmployeesFormPositiveResponseRemoteId1: - GetHrisEmployeesFormPositiveResponseRemoteId1, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseRemoteId1$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseRemoteId1, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseRemoteId1FromJSON( jsonString: string, ): SafeParseResult< @@ -1489,69 +794,22 @@ export function getHrisEmployeesFormPositiveResponseRemoteId1FromJSON( jsonString, (x) => GetHrisEmployeesFormPositiveResponseRemoteId1$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetHrisEmployeesFormPositiveResponseRemoteId1' from JSON`, - ); -} - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseEntry1$inboundSchema: - z.ZodType = - z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), - }); - -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseEntry1$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseEntry1$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseEntry1$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseEntry1 - > = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseEntry1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseEntry1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseEntry1$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseEntry1$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseEntry1$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseEntry1ToJSON( - getHrisEmployeesFormPositiveResponseEntry1: - GetHrisEmployeesFormPositiveResponseEntry1, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseEntry1$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseEntry1, - ), + JSON.parse(x), + ), + `Failed to parse 'GetHrisEmployeesFormPositiveResponseRemoteId1' from JSON`, ); } +/** @internal */ +export const GetHrisEmployeesFormPositiveResponseEntry1$inboundSchema: + z.ZodType = + z.object({ + id: z.string(), + label: z.string(), + unified_value: z.string().optional(), + remote_id: z.union([z.string(), z.number()]), + }); + export function getHrisEmployeesFormPositiveResponseEntry1FromJSON( jsonString: string, ): SafeParseResult< @@ -1581,52 +839,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsInline1$inboundSchema: ), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsInline1 - > = z.object({ - type: z.literal("inline"), - entries: z.array( - z.lazy(() => GetHrisEmployeesFormPositiveResponseEntry1$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsInline1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsInline1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsInline1ToJSON( - getHrisEmployeesFormPositiveResponseOptionsInline1: - GetHrisEmployeesFormPositiveResponseOptionsInline1, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsInline1, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsInline1FromJSON( jsonString: string, ): SafeParseResult< @@ -1658,53 +870,6 @@ export const GetHrisEmployeesFormPositiveResponseOptionsUnion1$inboundSchema: ), ]); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseOptionsUnion1$Outbound = - | GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound - | GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseOptionsUnion1$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseOptionsUnion1$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseOptionsUnion1 - > = z.union([ - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema - ), - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema - ), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseOptionsUnion1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsUnion1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseOptionsUnion1$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseOptionsUnion1$Outbound` instead. */ - export type Outbound = - GetHrisEmployeesFormPositiveResponseOptionsUnion1$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseOptionsUnion1ToJSON( - getHrisEmployeesFormPositiveResponseOptionsUnion1: - GetHrisEmployeesFormPositiveResponseOptionsUnion1, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseOptionsUnion1$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseOptionsUnion1, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseOptionsUnion1FromJSON( jsonString: string, ): SafeParseResult< @@ -1744,62 +909,6 @@ export const PropertiesSingleSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type PropertiesSingleSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "single_select"; - options: - | GetHrisEmployeesFormPositiveResponseOptionsInline1$Outbound - | GetHrisEmployeesFormPositiveResponseOptionsReferenced1$Outbound; -}; - -/** @internal */ -export const PropertiesSingleSelect$outboundSchema: z.ZodType< - PropertiesSingleSelect$Outbound, - z.ZodTypeDef, - PropertiesSingleSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey4$outboundSchema, - ).optional(), - type: z.literal("single_select"), - options: z.union([ - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsInline1$outboundSchema - ), - z.lazy(() => - GetHrisEmployeesFormPositiveResponseOptionsReferenced1$outboundSchema - ), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesSingleSelect$ { - /** @deprecated use `PropertiesSingleSelect$inboundSchema` instead. */ - export const inboundSchema = PropertiesSingleSelect$inboundSchema; - /** @deprecated use `PropertiesSingleSelect$outboundSchema` instead. */ - export const outboundSchema = PropertiesSingleSelect$outboundSchema; - /** @deprecated use `PropertiesSingleSelect$Outbound` instead. */ - export type Outbound = PropertiesSingleSelect$Outbound; -} - -export function propertiesSingleSelectToJSON( - propertiesSingleSelect: PropertiesSingleSelect, -): string { - return JSON.stringify( - PropertiesSingleSelect$outboundSchema.parse(propertiesSingleSelect), - ); -} - export function propertiesSingleSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1815,24 +924,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey3$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey3); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey3$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey3$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey3$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey3$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey3$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey3$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey3$outboundSchema; -} - /** @internal */ export const PropertiesDate$inboundSchema: z.ZodType< PropertiesDate, @@ -1848,47 +939,6 @@ export const PropertiesDate$inboundSchema: z.ZodType< type: z.literal("date"), }); -/** @internal */ -export type PropertiesDate$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "date"; -}; - -/** @internal */ -export const PropertiesDate$outboundSchema: z.ZodType< - PropertiesDate$Outbound, - z.ZodTypeDef, - PropertiesDate -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey3$outboundSchema, - ).optional(), - type: z.literal("date"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesDate$ { - /** @deprecated use `PropertiesDate$inboundSchema` instead. */ - export const inboundSchema = PropertiesDate$inboundSchema; - /** @deprecated use `PropertiesDate$outboundSchema` instead. */ - export const outboundSchema = PropertiesDate$outboundSchema; - /** @deprecated use `PropertiesDate$Outbound` instead. */ - export type Outbound = PropertiesDate$Outbound; -} - -export function propertiesDateToJSON(propertiesDate: PropertiesDate): string { - return JSON.stringify(PropertiesDate$outboundSchema.parse(propertiesDate)); -} - export function propertiesDateFromJSON( jsonString: string, ): SafeParseResult { @@ -1904,24 +954,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey2$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey2); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey2$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey2$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey2$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey2$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey2$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey2$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey2$outboundSchema; -} - /** @internal */ export const PropertiesNumber$inboundSchema: z.ZodType< PropertiesNumber, @@ -1939,55 +971,6 @@ export const PropertiesNumber$inboundSchema: z.ZodType< max: z.nullable(z.number()).optional(), }); -/** @internal */ -export type PropertiesNumber$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "number"; - min?: number | null | undefined; - max?: number | null | undefined; -}; - -/** @internal */ -export const PropertiesNumber$outboundSchema: z.ZodType< - PropertiesNumber$Outbound, - z.ZodTypeDef, - PropertiesNumber -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey2$outboundSchema, - ).optional(), - type: z.literal("number"), - min: z.nullable(z.number()).optional(), - max: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesNumber$ { - /** @deprecated use `PropertiesNumber$inboundSchema` instead. */ - export const inboundSchema = PropertiesNumber$inboundSchema; - /** @deprecated use `PropertiesNumber$outboundSchema` instead. */ - export const outboundSchema = PropertiesNumber$outboundSchema; - /** @deprecated use `PropertiesNumber$Outbound` instead. */ - export type Outbound = PropertiesNumber$Outbound; -} - -export function propertiesNumberToJSON( - propertiesNumber: PropertiesNumber, -): string { - return JSON.stringify( - PropertiesNumber$outboundSchema.parse(propertiesNumber), - ); -} - export function propertiesNumberFromJSON( jsonString: string, ): SafeParseResult { @@ -2003,24 +986,6 @@ export const GetHrisEmployeesFormPositiveResponseUnifiedKey1$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesFormPositiveResponseUnifiedKey1); -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseUnifiedKey1$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesFormPositiveResponseUnifiedKey1$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseUnifiedKey1$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey1$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey1$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseUnifiedKey1$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseUnifiedKey1$outboundSchema; -} - /** @internal */ export const PropertiesText$inboundSchema: z.ZodType< PropertiesText, @@ -2039,53 +1004,6 @@ export const PropertiesText$inboundSchema: z.ZodType< reg_exp: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PropertiesText$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "text"; - min_length?: number | null | undefined; - max_length?: number | null | undefined; - reg_exp?: string | null | undefined; -}; - -/** @internal */ -export const PropertiesText$outboundSchema: z.ZodType< - PropertiesText$Outbound, - z.ZodTypeDef, - PropertiesText -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable( - GetHrisEmployeesFormPositiveResponseUnifiedKey1$outboundSchema, - ).optional(), - type: z.literal("text"), - min_length: z.nullable(z.number()).optional(), - max_length: z.nullable(z.number()).optional(), - reg_exp: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertiesText$ { - /** @deprecated use `PropertiesText$inboundSchema` instead. */ - export const inboundSchema = PropertiesText$inboundSchema; - /** @deprecated use `PropertiesText$outboundSchema` instead. */ - export const outboundSchema = PropertiesText$outboundSchema; - /** @deprecated use `PropertiesText$Outbound` instead. */ - export type Outbound = PropertiesText$Outbound; -} - -export function propertiesTextToJSON(propertiesText: PropertiesText): string { - return JSON.stringify(PropertiesText$outboundSchema.parse(propertiesText)); -} - export function propertiesTextFromJSON( jsonString: string, ): SafeParseResult { @@ -2113,52 +1031,6 @@ export const Properties$inboundSchema: z.ZodType< z.lazy(() => PropertiesCheckbox$inboundSchema), ]); -/** @internal */ -export type Properties$Outbound = - | PropertiesSingleSelect$Outbound - | PropertiesMultiSelect$Outbound - | PropertiesObject$Outbound - | PropertiesArray$Outbound - | PropertiesFile$Outbound - | PropertiesText$Outbound - | PropertiesNumber$Outbound - | PropertiesDate$Outbound - | PropertiesCheckbox$Outbound; - -/** @internal */ -export const Properties$outboundSchema: z.ZodType< - Properties$Outbound, - z.ZodTypeDef, - Properties -> = z.union([ - z.lazy(() => PropertiesSingleSelect$outboundSchema), - z.lazy(() => PropertiesMultiSelect$outboundSchema), - z.lazy(() => PropertiesObject$outboundSchema), - z.lazy(() => PropertiesArray$outboundSchema), - z.lazy(() => PropertiesFile$outboundSchema), - z.lazy(() => PropertiesText$outboundSchema), - z.lazy(() => PropertiesNumber$outboundSchema), - z.lazy(() => PropertiesDate$outboundSchema), - z.lazy(() => PropertiesCheckbox$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Properties$ { - /** @deprecated use `Properties$inboundSchema` instead. */ - export const inboundSchema = Properties$inboundSchema; - /** @deprecated use `Properties$outboundSchema` instead. */ - export const outboundSchema = Properties$outboundSchema; - /** @deprecated use `Properties$Outbound` instead. */ - export type Outbound = Properties$Outbound; -} - -export function propertiesToJSON(properties: Properties): string { - return JSON.stringify(Properties$outboundSchema.parse(properties)); -} - export function propertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -2190,69 +1062,6 @@ export const GetHrisEmployeesFormPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseData$Outbound = { - properties: { - [k: string]: - | PropertiesSingleSelect$Outbound - | PropertiesMultiSelect$Outbound - | PropertiesObject$Outbound - | PropertiesArray$Outbound - | PropertiesFile$Outbound - | PropertiesText$Outbound - | PropertiesNumber$Outbound - | PropertiesDate$Outbound - | PropertiesCheckbox$Outbound; - }; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseData$outboundSchema: z.ZodType< - GetHrisEmployeesFormPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseData -> = z.object({ - properties: z.record( - z.union([ - z.lazy(() => PropertiesSingleSelect$outboundSchema), - z.lazy(() => PropertiesMultiSelect$outboundSchema), - z.lazy(() => PropertiesObject$outboundSchema), - z.lazy(() => PropertiesArray$outboundSchema), - z.lazy(() => PropertiesFile$outboundSchema), - z.lazy(() => PropertiesText$outboundSchema), - z.lazy(() => PropertiesNumber$outboundSchema), - z.lazy(() => PropertiesDate$outboundSchema), - z.lazy(() => PropertiesCheckbox$outboundSchema), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseData$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseData$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseDataToJSON( - getHrisEmployeesFormPositiveResponseData: - GetHrisEmployeesFormPositiveResponseData, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseData$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseData, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -2279,47 +1088,6 @@ export const GetHrisEmployeesFormPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponseWarning$outboundSchema: - z.ZodType< - GetHrisEmployeesFormPositiveResponseWarning$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponseWarning$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponseWarning$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponseWarning$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponseWarning$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponseWarning$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseWarningToJSON( - getHrisEmployeesFormPositiveResponseWarning: - GetHrisEmployeesFormPositiveResponseWarning, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponseWarning$outboundSchema.parse( - getHrisEmployeesFormPositiveResponseWarning, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -2349,51 +1117,6 @@ export const GetHrisEmployeesFormPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisEmployeesFormPositiveResponse$Outbound = { - status: "success"; - data: GetHrisEmployeesFormPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const GetHrisEmployeesFormPositiveResponse$outboundSchema: z.ZodType< - GetHrisEmployeesFormPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisEmployeesFormPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => GetHrisEmployeesFormPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormPositiveResponse$ { - /** @deprecated use `GetHrisEmployeesFormPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesFormPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesFormPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormPositiveResponse$Outbound; -} - -export function getHrisEmployeesFormPositiveResponseToJSON( - getHrisEmployeesFormPositiveResponse: GetHrisEmployeesFormPositiveResponse, -): string { - return JSON.stringify( - GetHrisEmployeesFormPositiveResponse$outboundSchema.parse( - getHrisEmployeesFormPositiveResponse, - ), - ); -} - export function getHrisEmployeesFormPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisemployeespositiveresponse.ts b/src/models/gethrisemployeespositiveresponse.ts index 5f0d355..0038b88 100644 --- a/src/models/gethrisemployeespositiveresponse.ts +++ b/src/models/gethrisemployeespositiveresponse.ts @@ -4,12 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - ClosedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -699,29 +694,6 @@ export const GetHrisEmployeesPositiveResponseGender$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmployeesPositiveResponseGender$outboundSchema: z.ZodType< - GetHrisEmployeesPositiveResponseGender, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponseGender -> = z.union([ - z.nativeEnum(GetHrisEmployeesPositiveResponseGender), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseGender$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseGender$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseGender$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseGender$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseGender$outboundSchema; -} - /** @internal */ export const Ethnicity$inboundSchema: z.ZodType< Ethnicity, @@ -733,27 +705,6 @@ export const Ethnicity$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const Ethnicity$outboundSchema: z.ZodType< - Ethnicity, - z.ZodTypeDef, - Ethnicity -> = z.union([ - z.nativeEnum(Ethnicity), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Ethnicity$ { - /** @deprecated use `Ethnicity$inboundSchema` instead. */ - export const inboundSchema = Ethnicity$inboundSchema; - /** @deprecated use `Ethnicity$outboundSchema` instead. */ - export const outboundSchema = Ethnicity$outboundSchema; -} - /** @internal */ export const MaritalStatus$inboundSchema: z.ZodType< MaritalStatus, @@ -765,27 +716,6 @@ export const MaritalStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const MaritalStatus$outboundSchema: z.ZodType< - MaritalStatus, - z.ZodTypeDef, - MaritalStatus -> = z.union([ - z.nativeEnum(MaritalStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MaritalStatus$ { - /** @deprecated use `MaritalStatus$inboundSchema` instead. */ - export const inboundSchema = MaritalStatus$inboundSchema; - /** @deprecated use `MaritalStatus$outboundSchema` instead. */ - export const outboundSchema = MaritalStatus$outboundSchema; -} - /** @internal */ export const EmploymentStatus$inboundSchema: z.ZodType< EmploymentStatus, @@ -797,27 +727,6 @@ export const EmploymentStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const EmploymentStatus$outboundSchema: z.ZodType< - EmploymentStatus, - z.ZodTypeDef, - EmploymentStatus -> = z.union([ - z.nativeEnum(EmploymentStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentStatus$ { - /** @deprecated use `EmploymentStatus$inboundSchema` instead. */ - export const inboundSchema = EmploymentStatus$inboundSchema; - /** @deprecated use `EmploymentStatus$outboundSchema` instead. */ - export const outboundSchema = EmploymentStatus$outboundSchema; -} - /** @internal */ export const GetHrisEmployeesPositiveResponseEmploymentType$inboundSchema: z.ZodType< @@ -830,30 +739,6 @@ export const GetHrisEmployeesPositiveResponseEmploymentType$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmployeesPositiveResponseEmploymentType$outboundSchema: - z.ZodType< - GetHrisEmployeesPositiveResponseEmploymentType, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponseEmploymentType - > = z.union([ - z.nativeEnum(GetHrisEmployeesPositiveResponseEmploymentType), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseEmploymentType$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseEmploymentType$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseEmploymentType$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseEmploymentType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseEmploymentType$outboundSchema; -} - /** @internal */ export const HomeAddress$inboundSchema: z.ZodType< HomeAddress, @@ -869,49 +754,6 @@ export const HomeAddress$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type HomeAddress$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const HomeAddress$outboundSchema: z.ZodType< - HomeAddress$Outbound, - z.ZodTypeDef, - HomeAddress -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HomeAddress$ { - /** @deprecated use `HomeAddress$inboundSchema` instead. */ - export const inboundSchema = HomeAddress$inboundSchema; - /** @deprecated use `HomeAddress$outboundSchema` instead. */ - export const outboundSchema = HomeAddress$outboundSchema; - /** @deprecated use `HomeAddress$Outbound` instead. */ - export type Outbound = HomeAddress$Outbound; -} - -export function homeAddressToJSON(homeAddress: HomeAddress): string { - return JSON.stringify(HomeAddress$outboundSchema.parse(homeAddress)); -} - export function homeAddressFromJSON( jsonString: string, ): SafeParseResult { @@ -927,22 +769,6 @@ export const DomesticBankRoutingType$inboundSchema: z.ZodNativeEnum< typeof DomesticBankRoutingType > = z.nativeEnum(DomesticBankRoutingType); -/** @internal */ -export const DomesticBankRoutingType$outboundSchema: z.ZodNativeEnum< - typeof DomesticBankRoutingType -> = DomesticBankRoutingType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomesticBankRoutingType$ { - /** @deprecated use `DomesticBankRoutingType$inboundSchema` instead. */ - export const inboundSchema = DomesticBankRoutingType$inboundSchema; - /** @deprecated use `DomesticBankRoutingType$outboundSchema` instead. */ - export const outboundSchema = DomesticBankRoutingType$outboundSchema; -} - /** @internal */ export const DomesticBankRouting$inboundSchema: z.ZodType< DomesticBankRouting, @@ -953,43 +779,6 @@ export const DomesticBankRouting$inboundSchema: z.ZodType< type: z.nullable(DomesticBankRoutingType$inboundSchema), }); -/** @internal */ -export type DomesticBankRouting$Outbound = { - number: string; - type: string | null; -}; - -/** @internal */ -export const DomesticBankRouting$outboundSchema: z.ZodType< - DomesticBankRouting$Outbound, - z.ZodTypeDef, - DomesticBankRouting -> = z.object({ - number: z.string(), - type: z.nullable(DomesticBankRoutingType$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DomesticBankRouting$ { - /** @deprecated use `DomesticBankRouting$inboundSchema` instead. */ - export const inboundSchema = DomesticBankRouting$inboundSchema; - /** @deprecated use `DomesticBankRouting$outboundSchema` instead. */ - export const outboundSchema = DomesticBankRouting$outboundSchema; - /** @deprecated use `DomesticBankRouting$Outbound` instead. */ - export type Outbound = DomesticBankRouting$Outbound; -} - -export function domesticBankRoutingToJSON( - domesticBankRouting: DomesticBankRouting, -): string { - return JSON.stringify( - DomesticBankRouting$outboundSchema.parse(domesticBankRouting), - ); -} - export function domesticBankRoutingFromJSON( jsonString: string, ): SafeParseResult { @@ -1016,49 +805,6 @@ export const BankAccount$inboundSchema: z.ZodType< ).optional(), }); -/** @internal */ -export type BankAccount$Outbound = { - iban?: string | null | undefined; - bic?: string | null | undefined; - account_number?: string | null | undefined; - holder_name?: string | null | undefined; - bank_name?: string | null | undefined; - domestic_bank_routing?: DomesticBankRouting$Outbound | null | undefined; -}; - -/** @internal */ -export const BankAccount$outboundSchema: z.ZodType< - BankAccount$Outbound, - z.ZodTypeDef, - BankAccount -> = z.object({ - iban: z.nullable(z.string()).optional(), - bic: z.nullable(z.string()).optional(), - account_number: z.nullable(z.string()).optional(), - holder_name: z.nullable(z.string()).optional(), - bank_name: z.nullable(z.string()).optional(), - domestic_bank_routing: z.nullable( - z.lazy(() => DomesticBankRouting$outboundSchema), - ).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BankAccount$ { - /** @deprecated use `BankAccount$inboundSchema` instead. */ - export const inboundSchema = BankAccount$inboundSchema; - /** @deprecated use `BankAccount$outboundSchema` instead. */ - export const outboundSchema = BankAccount$outboundSchema; - /** @deprecated use `BankAccount$Outbound` instead. */ - export type Outbound = BankAccount$Outbound; -} - -export function bankAccountToJSON(bankAccount: BankAccount): string { - return JSON.stringify(BankAccount$outboundSchema.parse(bankAccount)); -} - export function bankAccountFromJSON( jsonString: string, ): SafeParseResult { @@ -1080,30 +826,6 @@ export const GetHrisEmployeesPositiveResponsePayPeriod$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmployeesPositiveResponsePayPeriod$outboundSchema: - z.ZodType< - GetHrisEmployeesPositiveResponsePayPeriod, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponsePayPeriod - > = z.union([ - z.nativeEnum(GetHrisEmployeesPositiveResponsePayPeriod), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponsePayPeriod$ { - /** @deprecated use `GetHrisEmployeesPositiveResponsePayPeriod$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponsePayPeriod$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponsePayPeriod$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponsePayPeriod$outboundSchema; -} - /** @internal */ export const GetHrisEmployeesPositiveResponsePayFrequency$inboundSchema: z.ZodType< @@ -1116,30 +838,6 @@ export const GetHrisEmployeesPositiveResponsePayFrequency$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmployeesPositiveResponsePayFrequency$outboundSchema: - z.ZodType< - GetHrisEmployeesPositiveResponsePayFrequency, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponsePayFrequency - > = z.union([ - z.nativeEnum(GetHrisEmployeesPositiveResponsePayFrequency), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponsePayFrequency$ { - /** @deprecated use `GetHrisEmployeesPositiveResponsePayFrequency$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponsePayFrequency$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponsePayFrequency$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponsePayFrequency$outboundSchema; -} - /** @internal */ export const EmploymentEmploymentType$inboundSchema: z.ZodType< EmploymentEmploymentType, @@ -1151,27 +849,6 @@ export const EmploymentEmploymentType$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const EmploymentEmploymentType$outboundSchema: z.ZodType< - EmploymentEmploymentType, - z.ZodTypeDef, - EmploymentEmploymentType -> = z.union([ - z.nativeEnum(EmploymentEmploymentType), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EmploymentEmploymentType$ { - /** @deprecated use `EmploymentEmploymentType$inboundSchema` instead. */ - export const inboundSchema = EmploymentEmploymentType$inboundSchema; - /** @deprecated use `EmploymentEmploymentType$outboundSchema` instead. */ - export const outboundSchema = EmploymentEmploymentType$outboundSchema; -} - /** @internal */ export const Employment$inboundSchema: z.ZodType< Employment, @@ -1202,66 +879,6 @@ export const Employment$inboundSchema: z.ZodType< custom_fields: z.nullable(z.record(z.any())), }); -/** @internal */ -export type Employment$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - job_title: string | null; - pay_rate: number | null; - pay_period?: string | null | undefined; - pay_frequency?: string | null | undefined; - employment_type?: string | null | undefined; - pay_currency: string | null; - effective_date: string | null; - changed_at: string; - remote_deleted_at: string | null; - custom_fields: { [k: string]: any } | null; -}; - -/** @internal */ -export const Employment$outboundSchema: z.ZodType< - Employment$Outbound, - z.ZodTypeDef, - Employment -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - job_title: z.nullable(z.string()), - pay_rate: z.nullable(z.number()), - pay_period: z.nullable( - GetHrisEmployeesPositiveResponsePayPeriod$outboundSchema, - ).optional(), - pay_frequency: z.nullable( - GetHrisEmployeesPositiveResponsePayFrequency$outboundSchema, - ).optional(), - employment_type: z.nullable(EmploymentEmploymentType$outboundSchema) - .optional(), - pay_currency: z.nullable(z.string()), - effective_date: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - custom_fields: z.nullable(z.record(z.any())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Employment$ { - /** @deprecated use `Employment$inboundSchema` instead. */ - export const inboundSchema = Employment$inboundSchema; - /** @deprecated use `Employment$outboundSchema` instead. */ - export const outboundSchema = Employment$outboundSchema; - /** @deprecated use `Employment$Outbound` instead. */ - export type Outbound = Employment$Outbound; -} - -export function employmentToJSON(employment: Employment): string { - return JSON.stringify(Employment$outboundSchema.parse(employment)); -} - export function employmentFromJSON( jsonString: string, ): SafeParseResult { @@ -1277,47 +894,11 @@ export const GetHrisEmployeesPositiveResponseBalanceUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesPositiveResponseBalanceUnit); -/** @internal */ -export const GetHrisEmployeesPositiveResponseBalanceUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesPositiveResponseBalanceUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseBalanceUnit$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseBalanceUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseBalanceUnit$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseBalanceUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseBalanceUnit$outboundSchema; -} - /** @internal */ export const GetHrisEmployeesPositiveResponseUsedUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisEmployeesPositiveResponseUsedUnit); -/** @internal */ -export const GetHrisEmployeesPositiveResponseUsedUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisEmployeesPositiveResponseUsedUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseUsedUnit$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseUsedUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseUsedUnit$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseUsedUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseUsedUnit$outboundSchema; -} - /** @internal */ export const TimeOffBalance$inboundSchema: z.ZodType< TimeOffBalance, @@ -1340,59 +921,6 @@ export const TimeOffBalance$inboundSchema: z.ZodType< used_unit: z.nullable(GetHrisEmployeesPositiveResponseUsedUnit$inboundSchema), }); -/** @internal */ -export type TimeOffBalance$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - type_id: string; - balance: number | null; - balance_unit: string | null; - changed_at: string; - remote_deleted_at: string | null; - used: number | null; - used_unit: string | null; -}; - -/** @internal */ -export const TimeOffBalance$outboundSchema: z.ZodType< - TimeOffBalance$Outbound, - z.ZodTypeDef, - TimeOffBalance -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - type_id: z.string(), - balance: z.nullable(z.number()), - balance_unit: z.nullable( - GetHrisEmployeesPositiveResponseBalanceUnit$outboundSchema, - ), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - used: z.nullable(z.number()), - used_unit: z.nullable( - GetHrisEmployeesPositiveResponseUsedUnit$outboundSchema, - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeOffBalance$ { - /** @deprecated use `TimeOffBalance$inboundSchema` instead. */ - export const inboundSchema = TimeOffBalance$inboundSchema; - /** @deprecated use `TimeOffBalance$outboundSchema` instead. */ - export const outboundSchema = TimeOffBalance$outboundSchema; - /** @deprecated use `TimeOffBalance$Outbound` instead. */ - export type Outbound = TimeOffBalance$Outbound; -} - -export function timeOffBalanceToJSON(timeOffBalance: TimeOffBalance): string { - return JSON.stringify(TimeOffBalance$outboundSchema.parse(timeOffBalance)); -} - export function timeOffBalanceFromJSON( jsonString: string, ): SafeParseResult { @@ -1414,27 +942,6 @@ export const ManagerEmploymentStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const ManagerEmploymentStatus$outboundSchema: z.ZodType< - ManagerEmploymentStatus, - z.ZodTypeDef, - ManagerEmploymentStatus -> = z.union([ - z.nativeEnum(ManagerEmploymentStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ManagerEmploymentStatus$ { - /** @deprecated use `ManagerEmploymentStatus$inboundSchema` instead. */ - export const inboundSchema = ManagerEmploymentStatus$inboundSchema; - /** @deprecated use `ManagerEmploymentStatus$outboundSchema` instead. */ - export const outboundSchema = ManagerEmploymentStatus$outboundSchema; -} - /** @internal */ export const Manager$inboundSchema: z.ZodType = z.object({ @@ -1451,52 +958,6 @@ export const Manager$inboundSchema: z.ZodType = ), }); -/** @internal */ -export type Manager$Outbound = { - first_name: string | null; - last_name: string | null; - display_full_name: string | null; - id: string; - work_email?: string | null | undefined; - remote_id: string; - employment_status?: string | null | undefined; - termination_date: string | null; -}; - -/** @internal */ -export const Manager$outboundSchema: z.ZodType< - Manager$Outbound, - z.ZodTypeDef, - Manager -> = z.object({ - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - display_full_name: z.nullable(z.string()), - id: z.string(), - work_email: z.nullable(z.string()).optional(), - remote_id: z.string(), - employment_status: z.nullable(ManagerEmploymentStatus$outboundSchema) - .optional(), - termination_date: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Manager$ { - /** @deprecated use `Manager$inboundSchema` instead. */ - export const inboundSchema = Manager$inboundSchema; - /** @deprecated use `Manager$outboundSchema` instead. */ - export const outboundSchema = Manager$outboundSchema; - /** @deprecated use `Manager$Outbound` instead. */ - export type Outbound = Manager$Outbound; -} - -export function managerToJSON(manager: Manager): string { - return JSON.stringify(Manager$outboundSchema.parse(manager)); -} - export function managerFromJSON( jsonString: string, ): SafeParseResult { @@ -1511,21 +972,6 @@ export function managerFromJSON( export const GroupType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GroupType); -/** @internal */ -export const GroupType$outboundSchema: z.ZodNativeEnum = - GroupType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupType$ { - /** @deprecated use `GroupType$inboundSchema` instead. */ - export const inboundSchema = GroupType$inboundSchema; - /** @deprecated use `GroupType$outboundSchema` instead. */ - export const outboundSchema = GroupType$outboundSchema; -} - /** @internal */ export const Group$inboundSchema: z.ZodType = z .object({ @@ -1535,43 +981,6 @@ export const Group$inboundSchema: z.ZodType = z type: z.nullable(GroupType$inboundSchema), }); -/** @internal */ -export type Group$Outbound = { - id: string; - remote_id: string; - name: string | null; - type: string | null; -}; - -/** @internal */ -export const Group$outboundSchema: z.ZodType< - Group$Outbound, - z.ZodTypeDef, - Group -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - type: z.nullable(GroupType$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Group$ { - /** @deprecated use `Group$inboundSchema` instead. */ - export const inboundSchema = Group$inboundSchema; - /** @deprecated use `Group$outboundSchema` instead. */ - export const outboundSchema = Group$outboundSchema; - /** @deprecated use `Group$Outbound` instead. */ - export type Outbound = Group$Outbound; -} - -export function groupToJSON(group: Group): string { - return JSON.stringify(Group$outboundSchema.parse(group)); -} - export function groupFromJSON( jsonString: string, ): SafeParseResult { @@ -1597,53 +1006,6 @@ export const LegalEntityAddress$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type LegalEntityAddress$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const LegalEntityAddress$outboundSchema: z.ZodType< - LegalEntityAddress$Outbound, - z.ZodTypeDef, - LegalEntityAddress -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LegalEntityAddress$ { - /** @deprecated use `LegalEntityAddress$inboundSchema` instead. */ - export const inboundSchema = LegalEntityAddress$inboundSchema; - /** @deprecated use `LegalEntityAddress$outboundSchema` instead. */ - export const outboundSchema = LegalEntityAddress$outboundSchema; - /** @deprecated use `LegalEntityAddress$Outbound` instead. */ - export type Outbound = LegalEntityAddress$Outbound; -} - -export function legalEntityAddressToJSON( - legalEntityAddress: LegalEntityAddress, -): string { - return JSON.stringify( - LegalEntityAddress$outboundSchema.parse(legalEntityAddress), - ); -} - export function legalEntityAddressFromJSON( jsonString: string, ): SafeParseResult { @@ -1667,44 +1029,6 @@ export const LegalEntity$inboundSchema: z.ZodType< .optional(), }); -/** @internal */ -export type LegalEntity$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - address?: LegalEntityAddress$Outbound | null | undefined; -}; - -/** @internal */ -export const LegalEntity$outboundSchema: z.ZodType< - LegalEntity$Outbound, - z.ZodTypeDef, - LegalEntity -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - address: z.nullable(z.lazy(() => LegalEntityAddress$outboundSchema)) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LegalEntity$ { - /** @deprecated use `LegalEntity$inboundSchema` instead. */ - export const inboundSchema = LegalEntity$inboundSchema; - /** @deprecated use `LegalEntity$outboundSchema` instead. */ - export const outboundSchema = LegalEntity$outboundSchema; - /** @deprecated use `LegalEntity$Outbound` instead. */ - export type Outbound = LegalEntity$Outbound; -} - -export function legalEntityToJSON(legalEntity: LegalEntity): string { - return JSON.stringify(LegalEntity$outboundSchema.parse(legalEntity)); -} - export function legalEntityFromJSON( jsonString: string, ): SafeParseResult { @@ -1730,53 +1054,6 @@ export const WorkLocationAddress$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type WorkLocationAddress$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const WorkLocationAddress$outboundSchema: z.ZodType< - WorkLocationAddress$Outbound, - z.ZodTypeDef, - WorkLocationAddress -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkLocationAddress$ { - /** @deprecated use `WorkLocationAddress$inboundSchema` instead. */ - export const inboundSchema = WorkLocationAddress$inboundSchema; - /** @deprecated use `WorkLocationAddress$outboundSchema` instead. */ - export const outboundSchema = WorkLocationAddress$outboundSchema; - /** @deprecated use `WorkLocationAddress$Outbound` instead. */ - export type Outbound = WorkLocationAddress$Outbound; -} - -export function workLocationAddressToJSON( - workLocationAddress: WorkLocationAddress, -): string { - return JSON.stringify( - WorkLocationAddress$outboundSchema.parse(workLocationAddress), - ); -} - export function workLocationAddressFromJSON( jsonString: string, ): SafeParseResult { @@ -1805,50 +1082,6 @@ export const WorkLocation$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type WorkLocation$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - address?: WorkLocationAddress$Outbound | null | undefined; - type: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const WorkLocation$outboundSchema: z.ZodType< - WorkLocation$Outbound, - z.ZodTypeDef, - WorkLocation -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - address: z.nullable(z.lazy(() => WorkLocationAddress$outboundSchema)) - .optional(), - type: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkLocation$ { - /** @deprecated use `WorkLocation$inboundSchema` instead. */ - export const inboundSchema = WorkLocation$inboundSchema; - /** @deprecated use `WorkLocation$outboundSchema` instead. */ - export const outboundSchema = WorkLocation$outboundSchema; - /** @deprecated use `WorkLocation$Outbound` instead. */ - export type Outbound = WorkLocation$Outbound; -} - -export function workLocationToJSON(workLocation: WorkLocation): string { - return JSON.stringify(WorkLocation$outboundSchema.parse(workLocation)); -} - export function workLocationFromJSON( jsonString: string, ): SafeParseResult { @@ -1919,124 +1152,6 @@ export const GetHrisEmployeesPositiveResponseResult$inboundSchema: z.ZodType< work_location: z.nullable(z.lazy(() => WorkLocation$inboundSchema)), }); -/** @internal */ -export type GetHrisEmployeesPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - employee_number: string | null; - first_name: string | null; - last_name: string | null; - nationality: string | null; - display_full_name: string | null; - job_title: string | null; - work_email?: string | null | undefined; - personal_email?: string | null | undefined; - mobile_phone_number: string | null; - ssn: string | null; - tax_id: string | null; - gender?: string | null | undefined; - ethnicity?: string | null | undefined; - marital_status?: string | null | undefined; - employment_status?: string | null | undefined; - employment_type?: string | null | undefined; - weekly_hours: number | null; - avatar: string | null; - work_location_id: string | null; - legal_entity_id: string | null; - manager_id: string | null; - home_address?: HomeAddress$Outbound | null | undefined; - bank_accounts?: Array | null | undefined; - date_of_birth: string | null; - start_date: string | null; - termination_date: string | null; - remote_created_at: string | null; - changed_at: string; - remote_deleted_at: string | null; - custom_fields: { [k: string]: any } | null; - employments: Array; - time_off_balances: Array; - manager: Manager$Outbound | null; - groups: Array; - legal_entity: LegalEntity$Outbound | null; - work_location: WorkLocation$Outbound | null; -}; - -/** @internal */ -export const GetHrisEmployeesPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisEmployeesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.string(), - employee_number: z.nullable(z.string()), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - nationality: z.nullable(z.string()), - display_full_name: z.nullable(z.string()), - job_title: z.nullable(z.string()), - work_email: z.nullable(z.string()).optional(), - personal_email: z.nullable(z.string()).optional(), - mobile_phone_number: z.nullable(z.string()), - ssn: z.nullable(z.string()), - tax_id: z.nullable(z.string()), - gender: z.nullable(GetHrisEmployeesPositiveResponseGender$outboundSchema) - .optional(), - ethnicity: z.nullable(Ethnicity$outboundSchema).optional(), - marital_status: z.nullable(MaritalStatus$outboundSchema).optional(), - employment_status: z.nullable(EmploymentStatus$outboundSchema).optional(), - employment_type: z.nullable( - GetHrisEmployeesPositiveResponseEmploymentType$outboundSchema, - ).optional(), - weekly_hours: z.nullable(z.number()), - avatar: z.nullable(z.string()), - work_location_id: z.nullable(z.string()), - legal_entity_id: z.nullable(z.string()), - manager_id: z.nullable(z.string()), - home_address: z.nullable(z.lazy(() => HomeAddress$outboundSchema)).optional(), - bank_accounts: z.nullable(z.array(z.lazy(() => BankAccount$outboundSchema))) - .optional(), - date_of_birth: z.nullable(z.date().transform(v => v.toISOString())), - start_date: z.nullable(z.date().transform(v => v.toISOString())), - termination_date: z.nullable(z.date().transform(v => v.toISOString())), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - custom_fields: z.nullable(z.record(z.any())), - employments: z.array(z.lazy(() => Employment$outboundSchema)), - time_off_balances: z.array(z.lazy(() => TimeOffBalance$outboundSchema)), - manager: z.nullable(z.lazy(() => Manager$outboundSchema)), - groups: z.array(z.lazy(() => Group$outboundSchema)), - legal_entity: z.nullable(z.lazy(() => LegalEntity$outboundSchema)), - work_location: z.nullable(z.lazy(() => WorkLocation$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseResult$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisEmployeesPositiveResponseResult$Outbound; -} - -export function getHrisEmployeesPositiveResponseResultToJSON( - getHrisEmployeesPositiveResponseResult: - GetHrisEmployeesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisEmployeesPositiveResponseResult$outboundSchema.parse( - getHrisEmployeesPositiveResponseResult, - ), - ); -} - export function getHrisEmployeesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -2060,49 +1175,6 @@ export const GetHrisEmployeesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisEmployeesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisEmployeesPositiveResponseData$outboundSchema: z.ZodType< - GetHrisEmployeesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisEmployeesPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponseData$ { - /** @deprecated use `GetHrisEmployeesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisEmployeesPositiveResponseData$Outbound; -} - -export function getHrisEmployeesPositiveResponseDataToJSON( - getHrisEmployeesPositiveResponseData: GetHrisEmployeesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisEmployeesPositiveResponseData$outboundSchema.parse( - getHrisEmployeesPositiveResponseData, - ), - ); -} - export function getHrisEmployeesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -2124,45 +1196,6 @@ export const GetHrisEmployeesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisEmployeesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisEmployeesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisEmployeesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisEmployeesPositiveResponse$outboundSchema: z.ZodType< - GetHrisEmployeesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisEmployeesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisEmployeesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesPositiveResponse$ { - /** @deprecated use `GetHrisEmployeesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisEmployeesPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisEmployeesPositiveResponse$Outbound; -} - -export function getHrisEmployeesPositiveResponseToJSON( - getHrisEmployeesPositiveResponse: GetHrisEmployeesPositiveResponse, -): string { - return JSON.stringify( - GetHrisEmployeesPositiveResponse$outboundSchema.parse( - getHrisEmployeesPositiveResponse, - ), - ); -} - export function getHrisEmployeesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisemploymentspositiveresponse.ts b/src/models/gethrisemploymentspositiveresponse.ts index 4b1e18c..1a9bc71 100644 --- a/src/models/gethrisemploymentspositiveresponse.ts +++ b/src/models/gethrisemploymentspositiveresponse.ts @@ -4,11 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -164,30 +160,6 @@ export const GetHrisEmploymentsPositiveResponsePayPeriod$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmploymentsPositiveResponsePayPeriod$outboundSchema: - z.ZodType< - GetHrisEmploymentsPositiveResponsePayPeriod, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponsePayPeriod - > = z.union([ - z.nativeEnum(GetHrisEmploymentsPositiveResponsePayPeriod), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponsePayPeriod$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponsePayPeriod$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmploymentsPositiveResponsePayPeriod$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponsePayPeriod$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponsePayPeriod$outboundSchema; -} - /** @internal */ export const GetHrisEmploymentsPositiveResponsePayFrequency$inboundSchema: z.ZodType< @@ -200,30 +172,6 @@ export const GetHrisEmploymentsPositiveResponsePayFrequency$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmploymentsPositiveResponsePayFrequency$outboundSchema: - z.ZodType< - GetHrisEmploymentsPositiveResponsePayFrequency, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponsePayFrequency - > = z.union([ - z.nativeEnum(GetHrisEmploymentsPositiveResponsePayFrequency), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponsePayFrequency$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponsePayFrequency$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmploymentsPositiveResponsePayFrequency$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponsePayFrequency$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponsePayFrequency$outboundSchema; -} - /** @internal */ export const GetHrisEmploymentsPositiveResponseEmploymentType$inboundSchema: z.ZodType< @@ -236,30 +184,6 @@ export const GetHrisEmploymentsPositiveResponseEmploymentType$inboundSchema: z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const GetHrisEmploymentsPositiveResponseEmploymentType$outboundSchema: - z.ZodType< - GetHrisEmploymentsPositiveResponseEmploymentType, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponseEmploymentType - > = z.union([ - z.nativeEnum(GetHrisEmploymentsPositiveResponseEmploymentType), - z.string().and(z.custom>()), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponseEmploymentType$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponseEmploymentType$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmploymentsPositiveResponseEmploymentType$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponseEmploymentType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponseEmploymentType$outboundSchema; -} - /** @internal */ export const GetHrisEmploymentsPositiveResponseResult$inboundSchema: z.ZodType< GetHrisEmploymentsPositiveResponseResult, @@ -291,76 +215,6 @@ export const GetHrisEmploymentsPositiveResponseResult$inboundSchema: z.ZodType< custom_fields: z.nullable(z.record(z.any())), }); -/** @internal */ -export type GetHrisEmploymentsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - job_title: string | null; - pay_rate: number | null; - pay_period?: string | null | undefined; - pay_frequency?: string | null | undefined; - employment_type?: string | null | undefined; - pay_currency: string | null; - effective_date: string | null; - changed_at: string; - remote_deleted_at: string | null; - custom_fields: { [k: string]: any } | null; -}; - -/** @internal */ -export const GetHrisEmploymentsPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisEmploymentsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - job_title: z.nullable(z.string()), - pay_rate: z.nullable(z.number()), - pay_period: z.nullable( - GetHrisEmploymentsPositiveResponsePayPeriod$outboundSchema, - ).optional(), - pay_frequency: z.nullable( - GetHrisEmploymentsPositiveResponsePayFrequency$outboundSchema, - ).optional(), - employment_type: z.nullable( - GetHrisEmploymentsPositiveResponseEmploymentType$outboundSchema, - ).optional(), - pay_currency: z.nullable(z.string()), - effective_date: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - custom_fields: z.nullable(z.record(z.any())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponseResult$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmploymentsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsPositiveResponseResult$Outbound; -} - -export function getHrisEmploymentsPositiveResponseResultToJSON( - getHrisEmploymentsPositiveResponseResult: - GetHrisEmploymentsPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisEmploymentsPositiveResponseResult$outboundSchema.parse( - getHrisEmploymentsPositiveResponseResult, - ), - ); -} - export function getHrisEmploymentsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -389,50 +243,6 @@ export const GetHrisEmploymentsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisEmploymentsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisEmploymentsPositiveResponseData$outboundSchema: z.ZodType< - GetHrisEmploymentsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisEmploymentsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponseData$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmploymentsPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsPositiveResponseData$Outbound; -} - -export function getHrisEmploymentsPositiveResponseDataToJSON( - getHrisEmploymentsPositiveResponseData: - GetHrisEmploymentsPositiveResponseData, -): string { - return JSON.stringify( - GetHrisEmploymentsPositiveResponseData$outboundSchema.parse( - getHrisEmploymentsPositiveResponseData, - ), - ); -} - export function getHrisEmploymentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -454,46 +264,6 @@ export const GetHrisEmploymentsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisEmploymentsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisEmploymentsPositiveResponse$Outbound = { - status: "success"; - data: GetHrisEmploymentsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisEmploymentsPositiveResponse$outboundSchema: z.ZodType< - GetHrisEmploymentsPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisEmploymentsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisEmploymentsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsPositiveResponse$ { - /** @deprecated use `GetHrisEmploymentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmploymentsPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmploymentsPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisEmploymentsPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsPositiveResponse$Outbound; -} - -export function getHrisEmploymentsPositiveResponseToJSON( - getHrisEmploymentsPositiveResponse: GetHrisEmploymentsPositiveResponse, -): string { - return JSON.stringify( - GetHrisEmploymentsPositiveResponse$outboundSchema.parse( - getHrisEmploymentsPositiveResponse, - ), - ); -} - export function getHrisEmploymentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisgroupspositiveresponse.ts b/src/models/gethrisgroupspositiveresponse.ts index 6b63912..89bf85e 100644 --- a/src/models/gethrisgroupspositiveresponse.ts +++ b/src/models/gethrisgroupspositiveresponse.ts @@ -72,23 +72,6 @@ export const GetHrisGroupsPositiveResponseType$inboundSchema: z.ZodNativeEnum< typeof GetHrisGroupsPositiveResponseType > = z.nativeEnum(GetHrisGroupsPositiveResponseType); -/** @internal */ -export const GetHrisGroupsPositiveResponseType$outboundSchema: z.ZodNativeEnum< - typeof GetHrisGroupsPositiveResponseType -> = GetHrisGroupsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsPositiveResponseType$ { - /** @deprecated use `GetHrisGroupsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsPositiveResponseType$inboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisGroupsPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetHrisGroupsPositiveResponseResult$inboundSchema: z.ZodType< GetHrisGroupsPositiveResponseResult, @@ -106,57 +89,6 @@ export const GetHrisGroupsPositiveResponseResult$inboundSchema: z.ZodType< parent_id: z.nullable(z.string()), }); -/** @internal */ -export type GetHrisGroupsPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - name: string | null; - changed_at: string; - remote_deleted_at: string | null; - type: string | null; - parent_id: string | null; -}; - -/** @internal */ -export const GetHrisGroupsPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisGroupsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisGroupsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - type: z.nullable(GetHrisGroupsPositiveResponseType$outboundSchema), - parent_id: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsPositiveResponseResult$ { - /** @deprecated use `GetHrisGroupsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisGroupsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisGroupsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisGroupsPositiveResponseResult$Outbound; -} - -export function getHrisGroupsPositiveResponseResultToJSON( - getHrisGroupsPositiveResponseResult: GetHrisGroupsPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisGroupsPositiveResponseResult$outboundSchema.parse( - getHrisGroupsPositiveResponseResult, - ), - ); -} - export function getHrisGroupsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -180,48 +112,6 @@ export const GetHrisGroupsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisGroupsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisGroupsPositiveResponseData$outboundSchema: z.ZodType< - GetHrisGroupsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisGroupsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisGroupsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsPositiveResponseData$ { - /** @deprecated use `GetHrisGroupsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisGroupsPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisGroupsPositiveResponseData$Outbound; -} - -export function getHrisGroupsPositiveResponseDataToJSON( - getHrisGroupsPositiveResponseData: GetHrisGroupsPositiveResponseData, -): string { - return JSON.stringify( - GetHrisGroupsPositiveResponseData$outboundSchema.parse( - getHrisGroupsPositiveResponseData, - ), - ); -} - export function getHrisGroupsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -242,45 +132,6 @@ export const GetHrisGroupsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisGroupsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisGroupsPositiveResponse$Outbound = { - status: "success"; - data: GetHrisGroupsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisGroupsPositiveResponse$outboundSchema: z.ZodType< - GetHrisGroupsPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisGroupsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisGroupsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsPositiveResponse$ { - /** @deprecated use `GetHrisGroupsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisGroupsPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisGroupsPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisGroupsPositiveResponse$Outbound; -} - -export function getHrisGroupsPositiveResponseToJSON( - getHrisGroupsPositiveResponse: GetHrisGroupsPositiveResponse, -): string { - return JSON.stringify( - GetHrisGroupsPositiveResponse$outboundSchema.parse( - getHrisGroupsPositiveResponse, - ), - ); -} - export function getHrisGroupsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrislegalentitiespositiveresponse.ts b/src/models/gethrislegalentitiespositiveresponse.ts index f0a708f..ce909ef 100644 --- a/src/models/gethrislegalentitiespositiveresponse.ts +++ b/src/models/gethrislegalentitiespositiveresponse.ts @@ -85,59 +85,6 @@ export const GetHrisLegalEntitiesPositiveResponseAddress$inboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetHrisLegalEntitiesPositiveResponseAddress$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetHrisLegalEntitiesPositiveResponseAddress$outboundSchema: - z.ZodType< - GetHrisLegalEntitiesPositiveResponseAddress$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesPositiveResponseAddress - > = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesPositiveResponseAddress$ { - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseAddress$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLegalEntitiesPositiveResponseAddress$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseAddress$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLegalEntitiesPositiveResponseAddress$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseAddress$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesPositiveResponseAddress$Outbound; -} - -export function getHrisLegalEntitiesPositiveResponseAddressToJSON( - getHrisLegalEntitiesPositiveResponseAddress: - GetHrisLegalEntitiesPositiveResponseAddress, -): string { - return JSON.stringify( - GetHrisLegalEntitiesPositiveResponseAddress$outboundSchema.parse( - getHrisLegalEntitiesPositiveResponseAddress, - ), - ); -} - export function getHrisLegalEntitiesPositiveResponseAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -172,62 +119,6 @@ export const GetHrisLegalEntitiesPositiveResponseResult$inboundSchema: ), }); -/** @internal */ -export type GetHrisLegalEntitiesPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - address?: - | GetHrisLegalEntitiesPositiveResponseAddress$Outbound - | null - | undefined; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisLegalEntitiesPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisLegalEntitiesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - address: z.nullable( - z.lazy(() => GetHrisLegalEntitiesPositiveResponseAddress$outboundSchema), - ).optional(), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesPositiveResponseResult$ { - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLegalEntitiesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLegalEntitiesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesPositiveResponseResult$Outbound; -} - -export function getHrisLegalEntitiesPositiveResponseResultToJSON( - getHrisLegalEntitiesPositiveResponseResult: - GetHrisLegalEntitiesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisLegalEntitiesPositiveResponseResult$outboundSchema.parse( - getHrisLegalEntitiesPositiveResponseResult, - ), - ); -} - export function getHrisLegalEntitiesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -256,50 +147,6 @@ export const GetHrisLegalEntitiesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisLegalEntitiesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisLegalEntitiesPositiveResponseData$outboundSchema: z.ZodType< - GetHrisLegalEntitiesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisLegalEntitiesPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesPositiveResponseData$ { - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLegalEntitiesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLegalEntitiesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesPositiveResponseData$Outbound; -} - -export function getHrisLegalEntitiesPositiveResponseDataToJSON( - getHrisLegalEntitiesPositiveResponseData: - GetHrisLegalEntitiesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisLegalEntitiesPositiveResponseData$outboundSchema.parse( - getHrisLegalEntitiesPositiveResponseData, - ), - ); -} - export function getHrisLegalEntitiesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -326,47 +173,6 @@ export const GetHrisLegalEntitiesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisLegalEntitiesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisLegalEntitiesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisLegalEntitiesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisLegalEntitiesPositiveResponse$outboundSchema: z.ZodType< - GetHrisLegalEntitiesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisLegalEntitiesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesPositiveResponse$ { - /** @deprecated use `GetHrisLegalEntitiesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLegalEntitiesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLegalEntitiesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesPositiveResponse$Outbound; -} - -export function getHrisLegalEntitiesPositiveResponseToJSON( - getHrisLegalEntitiesPositiveResponse: GetHrisLegalEntitiesPositiveResponse, -): string { - return JSON.stringify( - GetHrisLegalEntitiesPositiveResponse$outboundSchema.parse( - getHrisLegalEntitiesPositiveResponse, - ), - ); -} - export function getHrisLegalEntitiesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrislocationspositiveresponse.ts b/src/models/gethrislocationspositiveresponse.ts index 6075f7d..d767a49 100644 --- a/src/models/gethrislocationspositiveresponse.ts +++ b/src/models/gethrislocationspositiveresponse.ts @@ -88,58 +88,6 @@ export const GetHrisLocationsPositiveResponseAddress$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type GetHrisLocationsPositiveResponseAddress$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const GetHrisLocationsPositiveResponseAddress$outboundSchema: z.ZodType< - GetHrisLocationsPositiveResponseAddress$Outbound, - z.ZodTypeDef, - GetHrisLocationsPositiveResponseAddress -> = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsPositiveResponseAddress$ { - /** @deprecated use `GetHrisLocationsPositiveResponseAddress$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLocationsPositiveResponseAddress$inboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseAddress$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLocationsPositiveResponseAddress$outboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseAddress$Outbound` instead. */ - export type Outbound = GetHrisLocationsPositiveResponseAddress$Outbound; -} - -export function getHrisLocationsPositiveResponseAddressToJSON( - getHrisLocationsPositiveResponseAddress: - GetHrisLocationsPositiveResponseAddress, -): string { - return JSON.stringify( - GetHrisLocationsPositiveResponseAddress$outboundSchema.parse( - getHrisLocationsPositiveResponseAddress, - ), - ); -} - export function getHrisLocationsPositiveResponseAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -175,60 +123,6 @@ export const GetHrisLocationsPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisLocationsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - name: string | null; - address?: GetHrisLocationsPositiveResponseAddress$Outbound | null | undefined; - type: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisLocationsPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisLocationsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisLocationsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - name: z.nullable(z.string()), - address: z.nullable( - z.lazy(() => GetHrisLocationsPositiveResponseAddress$outboundSchema), - ).optional(), - type: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsPositiveResponseResult$ { - /** @deprecated use `GetHrisLocationsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLocationsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLocationsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisLocationsPositiveResponseResult$Outbound; -} - -export function getHrisLocationsPositiveResponseResultToJSON( - getHrisLocationsPositiveResponseResult: - GetHrisLocationsPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisLocationsPositiveResponseResult$outboundSchema.parse( - getHrisLocationsPositiveResponseResult, - ), - ); -} - export function getHrisLocationsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult { @@ -252,49 +146,6 @@ export const GetHrisLocationsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisLocationsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisLocationsPositiveResponseData$outboundSchema: z.ZodType< - GetHrisLocationsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisLocationsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisLocationsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsPositiveResponseData$ { - /** @deprecated use `GetHrisLocationsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisLocationsPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisLocationsPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisLocationsPositiveResponseData$Outbound; -} - -export function getHrisLocationsPositiveResponseDataToJSON( - getHrisLocationsPositiveResponseData: GetHrisLocationsPositiveResponseData, -): string { - return JSON.stringify( - GetHrisLocationsPositiveResponseData$outboundSchema.parse( - getHrisLocationsPositiveResponseData, - ), - ); -} - export function getHrisLocationsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -316,45 +167,6 @@ export const GetHrisLocationsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisLocationsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisLocationsPositiveResponse$Outbound = { - status: "success"; - data: GetHrisLocationsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisLocationsPositiveResponse$outboundSchema: z.ZodType< - GetHrisLocationsPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisLocationsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisLocationsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsPositiveResponse$ { - /** @deprecated use `GetHrisLocationsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisLocationsPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisLocationsPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisLocationsPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisLocationsPositiveResponse$Outbound; -} - -export function getHrisLocationsPositiveResponseToJSON( - getHrisLocationsPositiveResponse: GetHrisLocationsPositiveResponse, -): string { - return JSON.stringify( - GetHrisLocationsPositiveResponse$outboundSchema.parse( - getHrisLocationsPositiveResponse, - ), - ); -} - export function getHrisLocationsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethrisperformancereviewcyclespositiveresponse.ts b/src/models/gethrisperformancereviewcyclespositiveresponse.ts index eff68fa..22f47ad 100644 --- a/src/models/gethrisperformancereviewcyclespositiveresponse.ts +++ b/src/models/gethrisperformancereviewcyclespositiveresponse.ts @@ -68,60 +68,6 @@ export const GetHrisPerformanceReviewCyclesPositiveResponseResult$inboundSchema: ), }); -/** @internal */ -export type GetHrisPerformanceReviewCyclesPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - name: string | null; - review_period_start_date: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisPerformanceReviewCyclesPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewCyclesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewCyclesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - review_period_start_date: z.nullable( - z.date().transform(v => v.toISOString()), - ), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesPositiveResponseResult$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetHrisPerformanceReviewCyclesPositiveResponseResult$Outbound; -} - -export function getHrisPerformanceReviewCyclesPositiveResponseResultToJSON( - getHrisPerformanceReviewCyclesPositiveResponseResult: - GetHrisPerformanceReviewCyclesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisPerformanceReviewCyclesPositiveResponseResult$outboundSchema.parse( - getHrisPerformanceReviewCyclesPositiveResponseResult, - ), - ); -} - export function getHrisPerformanceReviewCyclesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -153,54 +99,6 @@ export const GetHrisPerformanceReviewCyclesPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetHrisPerformanceReviewCyclesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisPerformanceReviewCyclesPositiveResponseData$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewCyclesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewCyclesPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => - GetHrisPerformanceReviewCyclesPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesPositiveResponseData$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetHrisPerformanceReviewCyclesPositiveResponseData$Outbound; -} - -export function getHrisPerformanceReviewCyclesPositiveResponseDataToJSON( - getHrisPerformanceReviewCyclesPositiveResponseData: - GetHrisPerformanceReviewCyclesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisPerformanceReviewCyclesPositiveResponseData$outboundSchema.parse( - getHrisPerformanceReviewCyclesPositiveResponseData, - ), - ); -} - export function getHrisPerformanceReviewCyclesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -230,52 +128,6 @@ export const GetHrisPerformanceReviewCyclesPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type GetHrisPerformanceReviewCyclesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisPerformanceReviewCyclesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisPerformanceReviewCyclesPositiveResponse$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewCyclesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewCyclesPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetHrisPerformanceReviewCyclesPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesPositiveResponse$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesPositiveResponse$Outbound` instead. */ - export type Outbound = - GetHrisPerformanceReviewCyclesPositiveResponse$Outbound; -} - -export function getHrisPerformanceReviewCyclesPositiveResponseToJSON( - getHrisPerformanceReviewCyclesPositiveResponse: - GetHrisPerformanceReviewCyclesPositiveResponse, -): string { - return JSON.stringify( - GetHrisPerformanceReviewCyclesPositiveResponse$outboundSchema.parse( - getHrisPerformanceReviewCyclesPositiveResponse, - ), - ); -} - export function getHrisPerformanceReviewCyclesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/gethrisperformancereviewspositiveresponse.ts b/src/models/gethrisperformancereviewspositiveresponse.ts index c00986d..210eabc 100644 --- a/src/models/gethrisperformancereviewspositiveresponse.ts +++ b/src/models/gethrisperformancereviewspositiveresponse.ts @@ -214,24 +214,6 @@ export const GetHrisPerformanceReviewsPositiveResponseType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisPerformanceReviewsPositiveResponseType); -/** @internal */ -export const GetHrisPerformanceReviewsPositiveResponseType$outboundSchema: - z.ZodNativeEnum = - GetHrisPerformanceReviewsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsPositiveResponseType$ { - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewsPositiveResponseType$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewsPositiveResponseType$outboundSchema; -} - /** @internal */ export const SummaryRatingSingleSelect$inboundSchema: z.ZodType< SummaryRatingSingleSelect, @@ -243,45 +225,6 @@ export const SummaryRatingSingleSelect$inboundSchema: z.ZodType< value: z.nullable(z.string()), }); -/** @internal */ -export type SummaryRatingSingleSelect$Outbound = { - type: "SINGLE_SELECT"; - ordered_options: Array | null; - value: string | null; -}; - -/** @internal */ -export const SummaryRatingSingleSelect$outboundSchema: z.ZodType< - SummaryRatingSingleSelect$Outbound, - z.ZodTypeDef, - SummaryRatingSingleSelect -> = z.object({ - type: z.literal("SINGLE_SELECT"), - ordered_options: z.nullable(z.array(z.string())), - value: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SummaryRatingSingleSelect$ { - /** @deprecated use `SummaryRatingSingleSelect$inboundSchema` instead. */ - export const inboundSchema = SummaryRatingSingleSelect$inboundSchema; - /** @deprecated use `SummaryRatingSingleSelect$outboundSchema` instead. */ - export const outboundSchema = SummaryRatingSingleSelect$outboundSchema; - /** @deprecated use `SummaryRatingSingleSelect$Outbound` instead. */ - export type Outbound = SummaryRatingSingleSelect$Outbound; -} - -export function summaryRatingSingleSelectToJSON( - summaryRatingSingleSelect: SummaryRatingSingleSelect, -): string { - return JSON.stringify( - SummaryRatingSingleSelect$outboundSchema.parse(summaryRatingSingleSelect), - ); -} - export function summaryRatingSingleSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -304,47 +247,6 @@ export const SummaryRatingNumeric$inboundSchema: z.ZodType< value: z.nullable(z.number()), }); -/** @internal */ -export type SummaryRatingNumeric$Outbound = { - type: "NUMERIC"; - min: number | null; - max: number | null; - value: number | null; -}; - -/** @internal */ -export const SummaryRatingNumeric$outboundSchema: z.ZodType< - SummaryRatingNumeric$Outbound, - z.ZodTypeDef, - SummaryRatingNumeric -> = z.object({ - type: z.literal("NUMERIC"), - min: z.nullable(z.number()), - max: z.nullable(z.number()), - value: z.nullable(z.number()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SummaryRatingNumeric$ { - /** @deprecated use `SummaryRatingNumeric$inboundSchema` instead. */ - export const inboundSchema = SummaryRatingNumeric$inboundSchema; - /** @deprecated use `SummaryRatingNumeric$outboundSchema` instead. */ - export const outboundSchema = SummaryRatingNumeric$outboundSchema; - /** @deprecated use `SummaryRatingNumeric$Outbound` instead. */ - export type Outbound = SummaryRatingNumeric$Outbound; -} - -export function summaryRatingNumericToJSON( - summaryRatingNumeric: SummaryRatingNumeric, -): string { - return JSON.stringify( - SummaryRatingNumeric$outboundSchema.parse(summaryRatingNumeric), - ); -} - export function summaryRatingNumericFromJSON( jsonString: string, ): SafeParseResult { @@ -365,38 +267,6 @@ export const SummaryRating$inboundSchema: z.ZodType< z.lazy(() => SummaryRatingSingleSelect$inboundSchema), ]); -/** @internal */ -export type SummaryRating$Outbound = - | SummaryRatingNumeric$Outbound - | SummaryRatingSingleSelect$Outbound; - -/** @internal */ -export const SummaryRating$outboundSchema: z.ZodType< - SummaryRating$Outbound, - z.ZodTypeDef, - SummaryRating -> = z.union([ - z.lazy(() => SummaryRatingNumeric$outboundSchema), - z.lazy(() => SummaryRatingSingleSelect$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SummaryRating$ { - /** @deprecated use `SummaryRating$inboundSchema` instead. */ - export const inboundSchema = SummaryRating$inboundSchema; - /** @deprecated use `SummaryRating$outboundSchema` instead. */ - export const outboundSchema = SummaryRating$outboundSchema; - /** @deprecated use `SummaryRating$Outbound` instead. */ - export type Outbound = SummaryRating$Outbound; -} - -export function summaryRatingToJSON(summaryRating: SummaryRating): string { - return JSON.stringify(SummaryRating$outboundSchema.parse(summaryRating)); -} - export function summaryRatingFromJSON( jsonString: string, ): SafeParseResult { @@ -424,49 +294,6 @@ export const Reviewee$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type Reviewee$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - display_full_name: string | null; - work_email?: string | null | undefined; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const Reviewee$outboundSchema: z.ZodType< - Reviewee$Outbound, - z.ZodTypeDef, - Reviewee -> = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - display_full_name: z.nullable(z.string()), - work_email: z.nullable(z.string()).optional(), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Reviewee$ { - /** @deprecated use `Reviewee$inboundSchema` instead. */ - export const inboundSchema = Reviewee$inboundSchema; - /** @deprecated use `Reviewee$outboundSchema` instead. */ - export const outboundSchema = Reviewee$outboundSchema; - /** @deprecated use `Reviewee$Outbound` instead. */ - export type Outbound = Reviewee$Outbound; -} - -export function revieweeToJSON(reviewee: Reviewee): string { - return JSON.stringify(Reviewee$outboundSchema.parse(reviewee)); -} - export function revieweeFromJSON( jsonString: string, ): SafeParseResult { @@ -494,49 +321,6 @@ export const Reviewer$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type Reviewer$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - display_full_name: string | null; - work_email?: string | null | undefined; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const Reviewer$outboundSchema: z.ZodType< - Reviewer$Outbound, - z.ZodTypeDef, - Reviewer -> = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - display_full_name: z.nullable(z.string()), - work_email: z.nullable(z.string()).optional(), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Reviewer$ { - /** @deprecated use `Reviewer$inboundSchema` instead. */ - export const inboundSchema = Reviewer$inboundSchema; - /** @deprecated use `Reviewer$outboundSchema` instead. */ - export const outboundSchema = Reviewer$outboundSchema; - /** @deprecated use `Reviewer$Outbound` instead. */ - export type Outbound = Reviewer$Outbound; -} - -export function reviewerToJSON(reviewer: Reviewer): string { - return JSON.stringify(Reviewer$outboundSchema.parse(reviewer)); -} - export function reviewerFromJSON( jsonString: string, ): SafeParseResult { @@ -565,49 +349,6 @@ export const ReviewCycle$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type ReviewCycle$Outbound = { - id: string; - remote_id: string; - name: string | null; - review_period_start_date: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const ReviewCycle$outboundSchema: z.ZodType< - ReviewCycle$Outbound, - z.ZodTypeDef, - ReviewCycle -> = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - review_period_start_date: z.nullable( - z.date().transform(v => v.toISOString()), - ), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReviewCycle$ { - /** @deprecated use `ReviewCycle$inboundSchema` instead. */ - export const inboundSchema = ReviewCycle$inboundSchema; - /** @deprecated use `ReviewCycle$outboundSchema` instead. */ - export const outboundSchema = ReviewCycle$outboundSchema; - /** @deprecated use `ReviewCycle$Outbound` instead. */ - export type Outbound = ReviewCycle$Outbound; -} - -export function reviewCycleToJSON(reviewCycle: ReviewCycle): string { - return JSON.stringify(ReviewCycle$outboundSchema.parse(reviewCycle)); -} - export function reviewCycleFromJSON( jsonString: string, ): SafeParseResult { @@ -648,77 +389,6 @@ export const GetHrisPerformanceReviewsPositiveResponseResult$inboundSchema: review_cycle: z.nullable(z.lazy(() => ReviewCycle$inboundSchema)), }); -/** @internal */ -export type GetHrisPerformanceReviewsPositiveResponseResult$Outbound = { - id: string; - remote_id: string; - type: string | null; - summary_comment: string | null; - summary_rating?: - | SummaryRatingNumeric$Outbound - | SummaryRatingSingleSelect$Outbound - | null - | undefined; - changed_at: string; - remote_deleted_at: string | null; - reviewee: Reviewee$Outbound; - reviewer: Reviewer$Outbound | null; - review_cycle: ReviewCycle$Outbound | null; -}; - -/** @internal */ -export const GetHrisPerformanceReviewsPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewsPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.string(), - type: z.nullable( - GetHrisPerformanceReviewsPositiveResponseType$outboundSchema, - ), - summary_comment: z.nullable(z.string()), - summary_rating: z.nullable( - z.union([ - z.lazy(() => SummaryRatingNumeric$outboundSchema), - z.lazy(() => SummaryRatingSingleSelect$outboundSchema), - ]), - ).optional(), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - reviewee: z.lazy(() => Reviewee$outboundSchema), - reviewer: z.nullable(z.lazy(() => Reviewer$outboundSchema)), - review_cycle: z.nullable(z.lazy(() => ReviewCycle$outboundSchema)), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsPositiveResponseResult$ { - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetHrisPerformanceReviewsPositiveResponseResult$Outbound; -} - -export function getHrisPerformanceReviewsPositiveResponseResultToJSON( - getHrisPerformanceReviewsPositiveResponseResult: - GetHrisPerformanceReviewsPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisPerformanceReviewsPositiveResponseResult$outboundSchema.parse( - getHrisPerformanceReviewsPositiveResponseResult, - ), - ); -} - export function getHrisPerformanceReviewsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -750,53 +420,6 @@ export const GetHrisPerformanceReviewsPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetHrisPerformanceReviewsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisPerformanceReviewsPositiveResponseData$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewsPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => - GetHrisPerformanceReviewsPositiveResponseResult$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsPositiveResponseData$ { - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewsPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewsPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewsPositiveResponseData$Outbound; -} - -export function getHrisPerformanceReviewsPositiveResponseDataToJSON( - getHrisPerformanceReviewsPositiveResponseData: - GetHrisPerformanceReviewsPositiveResponseData, -): string { - return JSON.stringify( - GetHrisPerformanceReviewsPositiveResponseData$outboundSchema.parse( - getHrisPerformanceReviewsPositiveResponseData, - ), - ); -} - export function getHrisPerformanceReviewsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -825,51 +448,6 @@ export const GetHrisPerformanceReviewsPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisPerformanceReviewsPositiveResponse$Outbound = { - status: "success"; - data: GetHrisPerformanceReviewsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisPerformanceReviewsPositiveResponse$outboundSchema: - z.ZodType< - GetHrisPerformanceReviewsPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetHrisPerformanceReviewsPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsPositiveResponse$ { - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewsPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewsPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewsPositiveResponse$Outbound; -} - -export function getHrisPerformanceReviewsPositiveResponseToJSON( - getHrisPerformanceReviewsPositiveResponse: - GetHrisPerformanceReviewsPositiveResponse, -): string { - return JSON.stringify( - GetHrisPerformanceReviewsPositiveResponse$outboundSchema.parse( - getHrisPerformanceReviewsPositiveResponse, - ), - ); -} - export function getHrisPerformanceReviewsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/gethristimeoffbalancespositiveresponse.ts b/src/models/gethristimeoffbalancespositiveresponse.ts index c7eb7ec..45409f1 100644 --- a/src/models/gethristimeoffbalancespositiveresponse.ts +++ b/src/models/gethristimeoffbalancespositiveresponse.ts @@ -144,70 +144,16 @@ export const GetHrisTimeOffBalancesPositiveResponseBalanceUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisTimeOffBalancesPositiveResponseBalanceUnit); -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseBalanceUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisTimeOffBalancesPositiveResponseBalanceUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseBalanceUnit$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseBalanceUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseBalanceUnit$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseBalanceUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseBalanceUnit$outboundSchema; -} - /** @internal */ export const GetHrisTimeOffBalancesPositiveResponseUsedUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisTimeOffBalancesPositiveResponseUsedUnit); -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseUsedUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisTimeOffBalancesPositiveResponseUsedUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseUsedUnit$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseUsedUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseUsedUnit$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseUsedUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseUsedUnit$outboundSchema; -} - /** @internal */ export const GetHrisTimeOffBalancesPositiveResponseUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetHrisTimeOffBalancesPositiveResponseUnit); -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseUnit$outboundSchema: - z.ZodNativeEnum = - GetHrisTimeOffBalancesPositiveResponseUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseUnit$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseUnit$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseUnit$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseUnit$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseUnit$outboundSchema; -} - /** @internal */ export const GetHrisTimeOffBalancesPositiveResponseType$inboundSchema: z.ZodType = @@ -228,61 +174,6 @@ export const GetHrisTimeOffBalancesPositiveResponseType$inboundSchema: ), }); -/** @internal */ -export type GetHrisTimeOffBalancesPositiveResponseType$Outbound = { - id: string; - remote_id: string; - name: string | null; - unit: string | null; - half_days_supported: boolean | null; - exact_times_supported: boolean | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseType$outboundSchema: - z.ZodType< - GetHrisTimeOffBalancesPositiveResponseType$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesPositiveResponseType - > = z.object({ - id: z.string(), - remote_id: z.string(), - name: z.nullable(z.string()), - unit: z.nullable(GetHrisTimeOffBalancesPositiveResponseUnit$outboundSchema), - half_days_supported: z.nullable(z.boolean()), - exact_times_supported: z.nullable(z.boolean()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseType$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseType$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseType$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseType$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesPositiveResponseType$Outbound; -} - -export function getHrisTimeOffBalancesPositiveResponseTypeToJSON( - getHrisTimeOffBalancesPositiveResponseType: - GetHrisTimeOffBalancesPositiveResponseType, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesPositiveResponseType$outboundSchema.parse( - getHrisTimeOffBalancesPositiveResponseType, - ), - ); -} - export function getHrisTimeOffBalancesPositiveResponseTypeFromJSON( jsonString: string, ): SafeParseResult< @@ -329,73 +220,6 @@ export const GetHrisTimeOffBalancesPositiveResponseResult$inboundSchema: ), }); -/** @internal */ -export type GetHrisTimeOffBalancesPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - type_id: string; - balance: number | null; - balance_unit: string | null; - changed_at: string; - remote_deleted_at: string | null; - used: number | null; - used_unit: string | null; - type: GetHrisTimeOffBalancesPositiveResponseType$Outbound; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseResult$outboundSchema: - z.ZodType< - GetHrisTimeOffBalancesPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesPositiveResponseResult - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - type_id: z.string(), - balance: z.nullable(z.number()), - balance_unit: z.nullable( - GetHrisTimeOffBalancesPositiveResponseBalanceUnit$outboundSchema, - ), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - used: z.nullable(z.number()), - used_unit: z.nullable( - GetHrisTimeOffBalancesPositiveResponseUsedUnit$outboundSchema, - ), - type: z.lazy(() => - GetHrisTimeOffBalancesPositiveResponseType$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseResult$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesPositiveResponseResult$Outbound; -} - -export function getHrisTimeOffBalancesPositiveResponseResultToJSON( - getHrisTimeOffBalancesPositiveResponseResult: - GetHrisTimeOffBalancesPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesPositiveResponseResult$outboundSchema.parse( - getHrisTimeOffBalancesPositiveResponseResult, - ), - ); -} - export function getHrisTimeOffBalancesPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -424,51 +248,6 @@ export const GetHrisTimeOffBalancesPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetHrisTimeOffBalancesPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponseData$outboundSchema: - z.ZodType< - GetHrisTimeOffBalancesPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesPositiveResponseData - > = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisTimeOffBalancesPositiveResponseResult$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponseData$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesPositiveResponseData$Outbound; -} - -export function getHrisTimeOffBalancesPositiveResponseDataToJSON( - getHrisTimeOffBalancesPositiveResponseData: - GetHrisTimeOffBalancesPositiveResponseData, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesPositiveResponseData$outboundSchema.parse( - getHrisTimeOffBalancesPositiveResponseData, - ), - ); -} - export function getHrisTimeOffBalancesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -495,48 +274,6 @@ export const GetHrisTimeOffBalancesPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisTimeOffBalancesPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisTimeOffBalancesPositiveResponse$Outbound = { - status: "success"; - data: GetHrisTimeOffBalancesPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesPositiveResponse$outboundSchema: z.ZodType< - GetHrisTimeOffBalancesPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisTimeOffBalancesPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesPositiveResponse$ { - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimeOffBalancesPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimeOffBalancesPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesPositiveResponse$Outbound; -} - -export function getHrisTimeOffBalancesPositiveResponseToJSON( - getHrisTimeOffBalancesPositiveResponse: - GetHrisTimeOffBalancesPositiveResponse, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesPositiveResponse$outboundSchema.parse( - getHrisTimeOffBalancesPositiveResponse, - ), - ); -} - export function getHrisTimeOffBalancesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/gethristimesheetspositiveresponse.ts b/src/models/gethristimesheetspositiveresponse.ts index 69366cd..2790c3a 100644 --- a/src/models/gethristimesheetspositiveresponse.ts +++ b/src/models/gethristimesheetspositiveresponse.ts @@ -108,41 +108,6 @@ export const Break$inboundSchema: z.ZodType = z ), }); -/** @internal */ -export type Break$Outbound = { - ended_at: string; - paid: boolean; - started_at: string; -}; - -/** @internal */ -export const Break$outboundSchema: z.ZodType< - Break$Outbound, - z.ZodTypeDef, - Break -> = z.object({ - ended_at: z.date().transform(v => v.toISOString()), - paid: z.boolean(), - started_at: z.date().transform(v => v.toISOString()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Break$ { - /** @deprecated use `Break$inboundSchema` instead. */ - export const inboundSchema = Break$inboundSchema; - /** @deprecated use `Break$outboundSchema` instead. */ - export const outboundSchema = Break$outboundSchema; - /** @deprecated use `Break$Outbound` instead. */ - export type Outbound = Break$Outbound; -} - -export function breakToJSON(value: Break): string { - return JSON.stringify(Break$outboundSchema.parse(value)); -} - export function breakFromJSON( jsonString: string, ): SafeParseResult { @@ -184,74 +149,6 @@ export const GetHrisTimesheetsPositiveResponseResult$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisTimesheetsPositiveResponseResult$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - started_at: string | null; - ended_at: string | null; - timezone: string | null; - payable_hours: number | null; - unpaid_break_minutes: number | null; - breaks?: Array | null | undefined; - approval_status: string | null; - approved_at: string | null; - comment: string | null; - custom_fields: { [k: string]: any } | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const GetHrisTimesheetsPositiveResponseResult$outboundSchema: z.ZodType< - GetHrisTimesheetsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetHrisTimesheetsPositiveResponseResult -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - started_at: z.nullable(z.date().transform(v => v.toISOString())), - ended_at: z.nullable(z.date().transform(v => v.toISOString())), - timezone: z.nullable(z.string()), - payable_hours: z.nullable(z.number()), - unpaid_break_minutes: z.nullable(z.number()), - breaks: z.nullable(z.array(z.lazy(() => Break$outboundSchema))).optional(), - approval_status: z.nullable(z.string()), - approved_at: z.nullable(z.date().transform(v => v.toISOString())), - comment: z.nullable(z.string()), - custom_fields: z.nullable(z.record(z.any())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsPositiveResponseResult$ { - /** @deprecated use `GetHrisTimesheetsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimesheetsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimesheetsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponseResult$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsPositiveResponseResult$Outbound; -} - -export function getHrisTimesheetsPositiveResponseResultToJSON( - getHrisTimesheetsPositiveResponseResult: - GetHrisTimesheetsPositiveResponseResult, -): string { - return JSON.stringify( - GetHrisTimesheetsPositiveResponseResult$outboundSchema.parse( - getHrisTimesheetsPositiveResponseResult, - ), - ); -} - export function getHrisTimesheetsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -280,49 +177,6 @@ export const GetHrisTimesheetsPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetHrisTimesheetsPositiveResponseData$Outbound = { - next: string | null; - results: Array; -}; - -/** @internal */ -export const GetHrisTimesheetsPositiveResponseData$outboundSchema: z.ZodType< - GetHrisTimesheetsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetHrisTimesheetsPositiveResponseData -> = z.object({ - next: z.nullable(z.string()), - results: z.array( - z.lazy(() => GetHrisTimesheetsPositiveResponseResult$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsPositiveResponseData$ { - /** @deprecated use `GetHrisTimesheetsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetHrisTimesheetsPositiveResponseData$inboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimesheetsPositiveResponseData$outboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponseData$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsPositiveResponseData$Outbound; -} - -export function getHrisTimesheetsPositiveResponseDataToJSON( - getHrisTimesheetsPositiveResponseData: GetHrisTimesheetsPositiveResponseData, -): string { - return JSON.stringify( - GetHrisTimesheetsPositiveResponseData$outboundSchema.parse( - getHrisTimesheetsPositiveResponseData, - ), - ); -} - export function getHrisTimesheetsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -344,46 +198,6 @@ export const GetHrisTimesheetsPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetHrisTimesheetsPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetHrisTimesheetsPositiveResponse$Outbound = { - status: "success"; - data: GetHrisTimesheetsPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetHrisTimesheetsPositiveResponse$outboundSchema: z.ZodType< - GetHrisTimesheetsPositiveResponse$Outbound, - z.ZodTypeDef, - GetHrisTimesheetsPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetHrisTimesheetsPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsPositiveResponse$ { - /** @deprecated use `GetHrisTimesheetsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimesheetsPositiveResponse$inboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisTimesheetsPositiveResponse$outboundSchema; - /** @deprecated use `GetHrisTimesheetsPositiveResponse$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsPositiveResponse$Outbound; -} - -export function getHrisTimesheetsPositiveResponseToJSON( - getHrisTimesheetsPositiveResponse: GetHrisTimesheetsPositiveResponse, -): string { - return JSON.stringify( - GetHrisTimesheetsPositiveResponse$outboundSchema.parse( - getHrisTimesheetsPositiveResponse, - ), - ); -} - export function getHrisTimesheetsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/getintegrationsintegrationidcustomfieldspositiveresponse.ts b/src/models/getintegrationsintegrationidcustomfieldspositiveresponse.ts index 74c79fa..3ff6a65 100644 --- a/src/models/getintegrationsintegrationidcustomfieldspositiveresponse.ts +++ b/src/models/getintegrationsintegrationidcustomfieldspositiveresponse.ts @@ -98,26 +98,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$inboun GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType, ); -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType - > = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$inboundSchema: z.ZodType< @@ -132,57 +112,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegration label: z.nullable(z.string()), }); -/** @internal */ -export type GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$Outbound = - { - id: string; - key: string; - type: string; - label: string | null; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField - > = z.object({ - id: z.string(), - key: z.string(), - type: - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseType$outboundSchema, - label: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$Outbound; -} - -export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationFieldToJSON( - getIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField: - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$outboundSchema - .parse( - getIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField, - ), - ); -} - export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationFieldFromJSON( jsonString: string, ): SafeParseResult< @@ -217,64 +146,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$inbo description: z.nullable(z.string()), }); -/** @internal */ -export type GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$Outbound = - { - id: string; - key: string; - integration_field: - | GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$Outbound - | null; - model: string; - label: string | null; - description: string | null; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult - > = z.object({ - id: z.string(), - key: z.string(), - integration_field: z.nullable( - z.lazy(() => - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseIntegrationField$outboundSchema - ), - ), - model: z.string(), - label: z.nullable(z.string()), - description: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$Outbound; -} - -export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseResultToJSON( - getIntegrationsIntegrationIdCustomFieldsPositiveResponseResult: - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$outboundSchema - .parse(getIntegrationsIntegrationIdCustomFieldsPositiveResponseResult), - ); -} - export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -305,56 +176,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$inboun next: z.nullable(z.string()), }); -/** @internal */ -export type GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$Outbound = - { - results: Array< - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$Outbound - >; - next: string | null; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData - > = z.object({ - results: z.array( - z.lazy(() => - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseResult$outboundSchema - ), - ), - next: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$Outbound; -} - -export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseDataToJSON( - getIntegrationsIntegrationIdCustomFieldsPositiveResponseData: - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$outboundSchema - .parse(getIntegrationsIntegrationIdCustomFieldsPositiveResponseData), - ); -} - export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -383,52 +204,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$inboundSch ), }); -/** @internal */ -export type GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$Outbound = - { - status: "success"; - data: GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$Outbound; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetIntegrationsIntegrationIdCustomFieldsPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$Outbound; -} - -export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseToJSON( - getIntegrationsIntegrationIdCustomFieldsPositiveResponse: - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$outboundSchema - .parse(getIntegrationsIntegrationIdCustomFieldsPositiveResponse), - ); -} - export function getIntegrationsIntegrationIdCustomFieldsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getintegrationsintegrationidintegrationfieldspositiveresponse.ts b/src/models/getintegrationsintegrationidintegrationfieldspositiveresponse.ts index 420ddde..81fe68e 100644 --- a/src/models/getintegrationsintegrationidintegrationfieldspositiveresponse.ts +++ b/src/models/getintegrationsintegrationidintegrationfieldspositiveresponse.ts @@ -80,26 +80,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$i GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType, ); -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType - > = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$inboundSchema: z.ZodType< @@ -117,63 +97,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult is_writable: z.literal(false), }); -/** @internal */ -export type GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$Outbound = - { - id: string; - key: string; - model: string; - type: string; - label: string | null; - is_passthrough_enabled: boolean; - is_writable: false; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult - > = z.object({ - id: z.string(), - key: z.string(), - model: z.string(), - type: - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseType$outboundSchema, - label: z.nullable(z.string()), - is_passthrough_enabled: z.boolean(), - is_writable: z.literal(false), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$Outbound; -} - -export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResultToJSON( - getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult: - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$outboundSchema - .parse( - getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult, - ), - ); -} - export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResultFromJSON( jsonString: string, ): SafeParseResult< @@ -204,56 +127,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$i next: z.nullable(z.string()), }); -/** @internal */ -export type GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$Outbound = - { - results: Array< - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$Outbound - >; - next: string | null; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData - > = z.object({ - results: z.array( - z.lazy(() => - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseResult$outboundSchema - ), - ), - next: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$Outbound; -} - -export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseDataToJSON( - getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData: - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$outboundSchema - .parse(getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData), - ); -} - export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -282,53 +155,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$inbou ), }); -/** @internal */ -export type GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$Outbound = - { - status: "success"; - data: - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$Outbound; - }; - -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$Outbound; -} - -export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseToJSON( - getIntegrationsIntegrationIdIntegrationFieldsPositiveResponse: - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$outboundSchema - .parse(getIntegrationsIntegrationIdIntegrationFieldsPositiveResponse), - ); -} - export function getIntegrationsIntegrationIdIntegrationFieldsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/getintegrationsintegrationidpositiveresponse.ts b/src/models/getintegrationsintegrationidpositiveresponse.ts index e48de30..3c38465 100644 --- a/src/models/getintegrationsintegrationidpositiveresponse.ts +++ b/src/models/getintegrationsintegrationidpositiveresponse.ts @@ -311,56 +311,6 @@ export const GetIntegrationsIntegrationIdPositiveResponseTool$inboundSchema: icon_url: z.string(), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponseTool$Outbound = { - id: string; - label: string; - internal_label: string | null; - logo_url: string; - icon_url: string; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseTool$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponseTool$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponseTool - > = z.object({ - id: z.string(), - label: z.string(), - internal_label: z.nullable(z.string()), - logo_url: z.string(), - icon_url: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseTool$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseTool$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseTool$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseTool$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseTool$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseTool$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdPositiveResponseTool$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseToolToJSON( - getIntegrationsIntegrationIdPositiveResponseTool: - GetIntegrationsIntegrationIdPositiveResponseTool, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponseTool$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponseTool, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseToolFromJSON( jsonString: string, ): SafeParseResult< @@ -382,72 +332,17 @@ export const GetIntegrationsIntegrationIdPositiveResponseCategory$inboundSchema: z.ZodNativeEnum = z.nativeEnum(GetIntegrationsIntegrationIdPositiveResponseCategory); -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseCategory$outboundSchema: - z.ZodNativeEnum = - GetIntegrationsIntegrationIdPositiveResponseCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseCategory$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseCategory$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseCategory$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseCategory$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseCategory$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdPositiveResponseStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetIntegrationsIntegrationIdPositiveResponseStatus); -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseStatus$outboundSchema: - z.ZodNativeEnum = - GetIntegrationsIntegrationIdPositiveResponseStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseStatus$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseStatus$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdPositiveResponseSetupStatus$inboundSchema: z.ZodNativeEnum< typeof GetIntegrationsIntegrationIdPositiveResponseSetupStatus > = z.nativeEnum(GetIntegrationsIntegrationIdPositiveResponseSetupStatus); -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseSetupStatus$outboundSchema: - z.ZodNativeEnum< - typeof GetIntegrationsIntegrationIdPositiveResponseSetupStatus - > = GetIntegrationsIntegrationIdPositiveResponseSetupStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseSetupStatus$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseSetupStatus$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseSetupStatus$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseSetupStatus$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseSetupStatus$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdPositiveResponseEndUser$inboundSchema: z.ZodType< @@ -460,52 +355,6 @@ export const GetIntegrationsIntegrationIdPositiveResponseEndUser$inboundSchema: origin_id: z.nullable(z.string()), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponseEndUser$Outbound = { - organization_name: string; - creator_email: string | null; - origin_id: string | null; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseEndUser$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponseEndUser$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponseEndUser - > = z.object({ - organization_name: z.string(), - creator_email: z.nullable(z.string()), - origin_id: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseEndUser$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseEndUser$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseEndUser$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseEndUser$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseEndUser$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseEndUser$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdPositiveResponseEndUser$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseEndUserToJSON( - getIntegrationsIntegrationIdPositiveResponseEndUser: - GetIntegrationsIntegrationIdPositiveResponseEndUser, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponseEndUser$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponseEndUser, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseEndUserFromJSON( jsonString: string, ): SafeParseResult< @@ -532,39 +381,6 @@ export const ScopeConfig$inboundSchema: z.ZodType< name: z.nullable(z.string()), }); -/** @internal */ -export type ScopeConfig$Outbound = { - id: string; - name: string | null; -}; - -/** @internal */ -export const ScopeConfig$outboundSchema: z.ZodType< - ScopeConfig$Outbound, - z.ZodTypeDef, - ScopeConfig -> = z.object({ - id: z.string(), - name: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScopeConfig$ { - /** @deprecated use `ScopeConfig$inboundSchema` instead. */ - export const inboundSchema = ScopeConfig$inboundSchema; - /** @deprecated use `ScopeConfig$outboundSchema` instead. */ - export const outboundSchema = ScopeConfig$outboundSchema; - /** @deprecated use `ScopeConfig$Outbound` instead. */ - export type Outbound = ScopeConfig$Outbound; -} - -export function scopeConfigToJSON(scopeConfig: ScopeConfig): string { - return JSON.stringify(ScopeConfig$outboundSchema.parse(scopeConfig)); -} - export function scopeConfigFromJSON( jsonString: string, ): SafeParseResult { @@ -581,46 +397,11 @@ export const GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$inboundS typeof GetIntegrationsIntegrationIdPositiveResponseCoverageStatus > = z.nativeEnum(GetIntegrationsIntegrationIdPositiveResponseCoverageStatus); -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$outboundSchema: - z.ZodNativeEnum< - typeof GetIntegrationsIntegrationIdPositiveResponseCoverageStatus - > = GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$outboundSchema; -} - /** @internal */ export const ScopeConfigSetting$inboundSchema: z.ZodNativeEnum< typeof ScopeConfigSetting > = z.nativeEnum(ScopeConfigSetting); -/** @internal */ -export const ScopeConfigSetting$outboundSchema: z.ZodNativeEnum< - typeof ScopeConfigSetting -> = ScopeConfigSetting$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScopeConfigSetting$ { - /** @deprecated use `ScopeConfigSetting$inboundSchema` instead. */ - export const inboundSchema = ScopeConfigSetting$inboundSchema; - /** @deprecated use `ScopeConfigSetting$outboundSchema` instead. */ - export const outboundSchema = ScopeConfigSetting$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$inboundSchema: z.ZodNativeEnum< @@ -629,47 +410,11 @@ export const GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$inb GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus, ); -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$outboundSchema: - z.ZodNativeEnum< - typeof GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus - > = - GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$outboundSchema; -} - /** @internal */ export const FieldScopeConfigSetting$inboundSchema: z.ZodNativeEnum< typeof FieldScopeConfigSetting > = z.nativeEnum(FieldScopeConfigSetting); -/** @internal */ -export const FieldScopeConfigSetting$outboundSchema: z.ZodNativeEnum< - typeof FieldScopeConfigSetting -> = FieldScopeConfigSetting$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FieldScopeConfigSetting$ { - /** @deprecated use `FieldScopeConfigSetting$inboundSchema` instead. */ - export const inboundSchema = FieldScopeConfigSetting$inboundSchema; - /** @deprecated use `FieldScopeConfigSetting$outboundSchema` instead. */ - export const outboundSchema = FieldScopeConfigSetting$outboundSchema; -} - /** @internal */ export const GetIntegrationsIntegrationIdPositiveResponseField$inboundSchema: z.ZodType< @@ -685,57 +430,6 @@ export const GetIntegrationsIntegrationIdPositiveResponseField$inboundSchema: opted_out_by_customer: z.boolean(), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponseField$Outbound = { - id: string; - is_available: boolean; - coverage_status: string; - scope_config_setting: string; - opted_out_by_customer: boolean; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseField$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponseField$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponseField - > = z.object({ - id: z.string(), - is_available: z.boolean(), - coverage_status: - GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus$outboundSchema, - scope_config_setting: FieldScopeConfigSetting$outboundSchema, - opted_out_by_customer: z.boolean(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseField$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseField$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseField$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseField$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseField$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseField$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdPositiveResponseField$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseFieldToJSON( - getIntegrationsIntegrationIdPositiveResponseField: - GetIntegrationsIntegrationIdPositiveResponseField, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponseField$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponseField, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseFieldFromJSON( jsonString: string, ): SafeParseResult< @@ -773,65 +467,6 @@ export const GetIntegrationsIntegrationIdPositiveResponseReadModel$inboundSchema ), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponseReadModel$Outbound = { - id: string; - label: string; - is_available: boolean; - coverage_status: string; - scope_config_setting: string; - opted_out_by_customer: boolean; - fields: Array; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseReadModel$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponseReadModel$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponseReadModel - > = z.object({ - id: z.string(), - label: z.string(), - is_available: z.boolean(), - coverage_status: - GetIntegrationsIntegrationIdPositiveResponseCoverageStatus$outboundSchema, - scope_config_setting: ScopeConfigSetting$outboundSchema, - opted_out_by_customer: z.boolean(), - fields: z.array( - z.lazy(() => - GetIntegrationsIntegrationIdPositiveResponseField$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseReadModel$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseReadModel$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseReadModel$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseReadModel$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseReadModel$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseReadModel$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdPositiveResponseReadModel$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseReadModelToJSON( - getIntegrationsIntegrationIdPositiveResponseReadModel: - GetIntegrationsIntegrationIdPositiveResponseReadModel, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponseReadModel$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponseReadModel, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseReadModelFromJSON( jsonString: string, ): SafeParseResult< @@ -879,78 +514,6 @@ export const GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponseData$Outbound = { - id: string; - tool: GetIntegrationsIntegrationIdPositiveResponseTool$Outbound; - category: string; - status: string; - setup_status: string; - end_user: GetIntegrationsIntegrationIdPositiveResponseEndUser$Outbound; - scope_config: ScopeConfig$Outbound; - created_at: string; - beta: boolean; - read_models: Array< - GetIntegrationsIntegrationIdPositiveResponseReadModel$Outbound - >; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponseData$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponseData$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponseData - > = z.object({ - id: z.string(), - tool: z.lazy(() => - GetIntegrationsIntegrationIdPositiveResponseTool$outboundSchema - ), - category: - GetIntegrationsIntegrationIdPositiveResponseCategory$outboundSchema, - status: GetIntegrationsIntegrationIdPositiveResponseStatus$outboundSchema, - setup_status: - GetIntegrationsIntegrationIdPositiveResponseSetupStatus$outboundSchema, - end_user: z.lazy(() => - GetIntegrationsIntegrationIdPositiveResponseEndUser$outboundSchema - ), - scope_config: z.lazy(() => ScopeConfig$outboundSchema), - created_at: z.date().transform(v => v.toISOString()), - beta: z.boolean(), - read_models: z.array( - z.lazy(() => - GetIntegrationsIntegrationIdPositiveResponseReadModel$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponseData$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponseData$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponseData$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdPositiveResponseData$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseDataToJSON( - getIntegrationsIntegrationIdPositiveResponseData: - GetIntegrationsIntegrationIdPositiveResponseData, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponseData$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponseData, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -980,51 +543,6 @@ export const GetIntegrationsIntegrationIdPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type GetIntegrationsIntegrationIdPositiveResponse$Outbound = { - status: "success"; - data: GetIntegrationsIntegrationIdPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdPositiveResponse$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdPositiveResponse$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - GetIntegrationsIntegrationIdPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdPositiveResponse$ { - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdPositiveResponse$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdPositiveResponse$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdPositiveResponse$Outbound` instead. */ - export type Outbound = GetIntegrationsIntegrationIdPositiveResponse$Outbound; -} - -export function getIntegrationsIntegrationIdPositiveResponseToJSON( - getIntegrationsIntegrationIdPositiveResponse: - GetIntegrationsIntegrationIdPositiveResponse, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdPositiveResponse$outboundSchema.parse( - getIntegrationsIntegrationIdPositiveResponse, - ), - ); -} - export function getIntegrationsIntegrationIdPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/gettoolscategoryparametercategory.ts b/src/models/gettoolscategoryparametercategory.ts index 6e0227e..8942ae5 100644 --- a/src/models/gettoolscategoryparametercategory.ts +++ b/src/models/gettoolscategoryparametercategory.ts @@ -14,24 +14,7 @@ export type GetToolsCategoryParameterCategory = ClosedEnum< typeof GetToolsCategoryParameterCategory >; -/** @internal */ -export const GetToolsCategoryParameterCategory$inboundSchema: z.ZodNativeEnum< - typeof GetToolsCategoryParameterCategory -> = z.nativeEnum(GetToolsCategoryParameterCategory); - /** @internal */ export const GetToolsCategoryParameterCategory$outboundSchema: z.ZodNativeEnum< typeof GetToolsCategoryParameterCategory -> = GetToolsCategoryParameterCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryParameterCategory$ { - /** @deprecated use `GetToolsCategoryParameterCategory$inboundSchema` instead. */ - export const inboundSchema = GetToolsCategoryParameterCategory$inboundSchema; - /** @deprecated use `GetToolsCategoryParameterCategory$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryParameterCategory$outboundSchema; -} +> = z.nativeEnum(GetToolsCategoryParameterCategory); diff --git a/src/models/gettoolscategorypositiveresponse.ts b/src/models/gettoolscategorypositiveresponse.ts index 6f56477..643b21b 100644 --- a/src/models/gettoolscategorypositiveresponse.ts +++ b/src/models/gettoolscategorypositiveresponse.ts @@ -266,41 +266,6 @@ export const Assets$inboundSchema: z.ZodType = z icon_black_url: z.string(), }); -/** @internal */ -export type Assets$Outbound = { - logo_url: string; - icon_url: string; - icon_black_url: string; -}; - -/** @internal */ -export const Assets$outboundSchema: z.ZodType< - Assets$Outbound, - z.ZodTypeDef, - Assets -> = z.object({ - logo_url: z.string(), - icon_url: z.string(), - icon_black_url: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Assets$ { - /** @deprecated use `Assets$inboundSchema` instead. */ - export const inboundSchema = Assets$inboundSchema; - /** @deprecated use `Assets$outboundSchema` instead. */ - export const outboundSchema = Assets$outboundSchema; - /** @deprecated use `Assets$Outbound` instead. */ - export type Outbound = Assets$Outbound; -} - -export function assetsToJSON(assets: Assets): string { - return JSON.stringify(Assets$outboundSchema.parse(assets)); -} - export function assetsFromJSON( jsonString: string, ): SafeParseResult { @@ -317,48 +282,11 @@ export const GetToolsCategoryPositiveResponseReadModelCoverageStatus$inboundSche typeof GetToolsCategoryPositiveResponseReadModelCoverageStatus > = z.nativeEnum(GetToolsCategoryPositiveResponseReadModelCoverageStatus); -/** @internal */ -export const GetToolsCategoryPositiveResponseReadModelCoverageStatus$outboundSchema: - z.ZodNativeEnum< - typeof GetToolsCategoryPositiveResponseReadModelCoverageStatus - > = GetToolsCategoryPositiveResponseReadModelCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseReadModelCoverageStatus$ { - /** @deprecated use `GetToolsCategoryPositiveResponseReadModelCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseReadModelCoverageStatus$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseReadModelCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseReadModelCoverageStatus$outboundSchema; -} - /** @internal */ export const GetToolsCategoryPositiveResponseFieldCoverageStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum(GetToolsCategoryPositiveResponseFieldCoverageStatus); -/** @internal */ -export const GetToolsCategoryPositiveResponseFieldCoverageStatus$outboundSchema: - z.ZodNativeEnum = - GetToolsCategoryPositiveResponseFieldCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseFieldCoverageStatus$ { - /** @deprecated use `GetToolsCategoryPositiveResponseFieldCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseFieldCoverageStatus$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseFieldCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseFieldCoverageStatus$outboundSchema; -} - /** @internal */ export const GetToolsCategoryPositiveResponseField$inboundSchema: z.ZodType< GetToolsCategoryPositiveResponseField, @@ -370,48 +298,6 @@ export const GetToolsCategoryPositiveResponseField$inboundSchema: z.ZodType< GetToolsCategoryPositiveResponseFieldCoverageStatus$inboundSchema, }); -/** @internal */ -export type GetToolsCategoryPositiveResponseField$Outbound = { - id: string; - coverage_status: string; -}; - -/** @internal */ -export const GetToolsCategoryPositiveResponseField$outboundSchema: z.ZodType< - GetToolsCategoryPositiveResponseField$Outbound, - z.ZodTypeDef, - GetToolsCategoryPositiveResponseField -> = z.object({ - id: z.string(), - coverage_status: - GetToolsCategoryPositiveResponseFieldCoverageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseField$ { - /** @deprecated use `GetToolsCategoryPositiveResponseField$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseField$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseField$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseField$outboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseField$Outbound` instead. */ - export type Outbound = GetToolsCategoryPositiveResponseField$Outbound; -} - -export function getToolsCategoryPositiveResponseFieldToJSON( - getToolsCategoryPositiveResponseField: GetToolsCategoryPositiveResponseField, -): string { - return JSON.stringify( - GetToolsCategoryPositiveResponseField$outboundSchema.parse( - getToolsCategoryPositiveResponseField, - ), - ); -} - export function getToolsCategoryPositiveResponseFieldFromJSON( jsonString: string, ): SafeParseResult { @@ -438,56 +324,6 @@ export const GetToolsCategoryPositiveResponseReadModel$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetToolsCategoryPositiveResponseReadModel$Outbound = { - id: string; - label: string; - coverage_status: string; - fields: Array; -}; - -/** @internal */ -export const GetToolsCategoryPositiveResponseReadModel$outboundSchema: - z.ZodType< - GetToolsCategoryPositiveResponseReadModel$Outbound, - z.ZodTypeDef, - GetToolsCategoryPositiveResponseReadModel - > = z.object({ - id: z.string(), - label: z.string(), - coverage_status: - GetToolsCategoryPositiveResponseReadModelCoverageStatus$outboundSchema, - fields: z.array( - z.lazy(() => GetToolsCategoryPositiveResponseField$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseReadModel$ { - /** @deprecated use `GetToolsCategoryPositiveResponseReadModel$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseReadModel$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseReadModel$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseReadModel$outboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseReadModel$Outbound` instead. */ - export type Outbound = GetToolsCategoryPositiveResponseReadModel$Outbound; -} - -export function getToolsCategoryPositiveResponseReadModelToJSON( - getToolsCategoryPositiveResponseReadModel: - GetToolsCategoryPositiveResponseReadModel, -): string { - return JSON.stringify( - GetToolsCategoryPositiveResponseReadModel$outboundSchema.parse( - getToolsCategoryPositiveResponseReadModel, - ), - ); -} - export function getToolsCategoryPositiveResponseReadModelFromJSON( jsonString: string, ): SafeParseResult< @@ -509,22 +345,6 @@ export const WriteActionCoverageStatus$inboundSchema: z.ZodNativeEnum< typeof WriteActionCoverageStatus > = z.nativeEnum(WriteActionCoverageStatus); -/** @internal */ -export const WriteActionCoverageStatus$outboundSchema: z.ZodNativeEnum< - typeof WriteActionCoverageStatus -> = WriteActionCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteActionCoverageStatus$ { - /** @deprecated use `WriteActionCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = WriteActionCoverageStatus$inboundSchema; - /** @deprecated use `WriteActionCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = WriteActionCoverageStatus$outboundSchema; -} - /** @internal */ export const WriteAction$inboundSchema: z.ZodType< WriteAction, @@ -536,41 +356,6 @@ export const WriteAction$inboundSchema: z.ZodType< coverage_status: WriteActionCoverageStatus$inboundSchema, }); -/** @internal */ -export type WriteAction$Outbound = { - id: string; - label: string; - coverage_status: string; -}; - -/** @internal */ -export const WriteAction$outboundSchema: z.ZodType< - WriteAction$Outbound, - z.ZodTypeDef, - WriteAction -> = z.object({ - id: z.string(), - label: z.string(), - coverage_status: WriteActionCoverageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WriteAction$ { - /** @deprecated use `WriteAction$inboundSchema` instead. */ - export const inboundSchema = WriteAction$inboundSchema; - /** @deprecated use `WriteAction$outboundSchema` instead. */ - export const outboundSchema = WriteAction$outboundSchema; - /** @deprecated use `WriteAction$Outbound` instead. */ - export type Outbound = WriteAction$Outbound; -} - -export function writeActionToJSON(writeAction: WriteAction): string { - return JSON.stringify(WriteAction$outboundSchema.parse(writeAction)); -} - export function writeActionFromJSON( jsonString: string, ): SafeParseResult { @@ -586,22 +371,6 @@ export const FeatureCoverageStatus$inboundSchema: z.ZodNativeEnum< typeof FeatureCoverageStatus > = z.nativeEnum(FeatureCoverageStatus); -/** @internal */ -export const FeatureCoverageStatus$outboundSchema: z.ZodNativeEnum< - typeof FeatureCoverageStatus -> = FeatureCoverageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeatureCoverageStatus$ { - /** @deprecated use `FeatureCoverageStatus$inboundSchema` instead. */ - export const inboundSchema = FeatureCoverageStatus$inboundSchema; - /** @deprecated use `FeatureCoverageStatus$outboundSchema` instead. */ - export const outboundSchema = FeatureCoverageStatus$outboundSchema; -} - /** @internal */ export const Feature$inboundSchema: z.ZodType = z.object({ @@ -610,41 +379,6 @@ export const Feature$inboundSchema: z.ZodType = coverage_status: FeatureCoverageStatus$inboundSchema, }); -/** @internal */ -export type Feature$Outbound = { - id: string; - label: string; - coverage_status: string; -}; - -/** @internal */ -export const Feature$outboundSchema: z.ZodType< - Feature$Outbound, - z.ZodTypeDef, - Feature -> = z.object({ - id: z.string(), - label: z.string(), - coverage_status: FeatureCoverageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Feature$ { - /** @deprecated use `Feature$inboundSchema` instead. */ - export const inboundSchema = Feature$inboundSchema; - /** @deprecated use `Feature$outboundSchema` instead. */ - export const outboundSchema = Feature$outboundSchema; - /** @deprecated use `Feature$Outbound` instead. */ - export type Outbound = Feature$Outbound; -} - -export function featureToJSON(feature: Feature): string { - return JSON.stringify(Feature$outboundSchema.parse(feature)); -} - export function featureFromJSON( jsonString: string, ): SafeParseResult { @@ -668,43 +402,6 @@ export const Coverage$inboundSchema: z.ZodType< features: z.array(z.lazy(() => Feature$inboundSchema)), }); -/** @internal */ -export type Coverage$Outbound = { - read_models: Array; - write_actions: Array; - features: Array; -}; - -/** @internal */ -export const Coverage$outboundSchema: z.ZodType< - Coverage$Outbound, - z.ZodTypeDef, - Coverage -> = z.object({ - read_models: z.array( - z.lazy(() => GetToolsCategoryPositiveResponseReadModel$outboundSchema), - ), - write_actions: z.array(z.lazy(() => WriteAction$outboundSchema)), - features: z.array(z.lazy(() => Feature$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Coverage$ { - /** @deprecated use `Coverage$inboundSchema` instead. */ - export const inboundSchema = Coverage$inboundSchema; - /** @deprecated use `Coverage$outboundSchema` instead. */ - export const outboundSchema = Coverage$outboundSchema; - /** @deprecated use `Coverage$Outbound` instead. */ - export type Outbound = Coverage$Outbound; -} - -export function coverageToJSON(coverage: Coverage): string { - return JSON.stringify(Coverage$outboundSchema.parse(coverage)); -} - export function coverageFromJSON( jsonString: string, ): SafeParseResult { @@ -732,61 +429,6 @@ export const GetToolsCategoryPositiveResponseTool$inboundSchema: z.ZodType< coverage: z.lazy(() => Coverage$inboundSchema), }); -/** @internal */ -export type GetToolsCategoryPositiveResponseTool$Outbound = { - id: string; - label: string; - internal_label: string | null; - assets: Assets$Outbound; - paid_api_details_markdown: string | null; - fast_track_details_markdown: string | null; - partner_only_details_markdown: string | null; - connection_guide_url: string | null; - coverage: Coverage$Outbound; -}; - -/** @internal */ -export const GetToolsCategoryPositiveResponseTool$outboundSchema: z.ZodType< - GetToolsCategoryPositiveResponseTool$Outbound, - z.ZodTypeDef, - GetToolsCategoryPositiveResponseTool -> = z.object({ - id: z.string(), - label: z.string(), - internal_label: z.nullable(z.string()), - assets: z.lazy(() => Assets$outboundSchema), - paid_api_details_markdown: z.nullable(z.string()), - fast_track_details_markdown: z.nullable(z.string()), - partner_only_details_markdown: z.nullable(z.string()), - connection_guide_url: z.nullable(z.string()), - coverage: z.lazy(() => Coverage$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseTool$ { - /** @deprecated use `GetToolsCategoryPositiveResponseTool$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseTool$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseTool$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseTool$outboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseTool$Outbound` instead. */ - export type Outbound = GetToolsCategoryPositiveResponseTool$Outbound; -} - -export function getToolsCategoryPositiveResponseToolToJSON( - getToolsCategoryPositiveResponseTool: GetToolsCategoryPositiveResponseTool, -): string { - return JSON.stringify( - GetToolsCategoryPositiveResponseTool$outboundSchema.parse( - getToolsCategoryPositiveResponseTool, - ), - ); -} - export function getToolsCategoryPositiveResponseToolFromJSON( jsonString: string, ): SafeParseResult { @@ -809,47 +451,6 @@ export const GetToolsCategoryPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type GetToolsCategoryPositiveResponseData$Outbound = { - tools: Array; -}; - -/** @internal */ -export const GetToolsCategoryPositiveResponseData$outboundSchema: z.ZodType< - GetToolsCategoryPositiveResponseData$Outbound, - z.ZodTypeDef, - GetToolsCategoryPositiveResponseData -> = z.object({ - tools: z.array( - z.lazy(() => GetToolsCategoryPositiveResponseTool$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponseData$ { - /** @deprecated use `GetToolsCategoryPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - GetToolsCategoryPositiveResponseData$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - GetToolsCategoryPositiveResponseData$outboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponseData$Outbound` instead. */ - export type Outbound = GetToolsCategoryPositiveResponseData$Outbound; -} - -export function getToolsCategoryPositiveResponseDataToJSON( - getToolsCategoryPositiveResponseData: GetToolsCategoryPositiveResponseData, -): string { - return JSON.stringify( - GetToolsCategoryPositiveResponseData$outboundSchema.parse( - getToolsCategoryPositiveResponseData, - ), - ); -} - export function getToolsCategoryPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -871,45 +472,6 @@ export const GetToolsCategoryPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => GetToolsCategoryPositiveResponseData$inboundSchema), }); -/** @internal */ -export type GetToolsCategoryPositiveResponse$Outbound = { - status: "success"; - data: GetToolsCategoryPositiveResponseData$Outbound; -}; - -/** @internal */ -export const GetToolsCategoryPositiveResponse$outboundSchema: z.ZodType< - GetToolsCategoryPositiveResponse$Outbound, - z.ZodTypeDef, - GetToolsCategoryPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => GetToolsCategoryPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryPositiveResponse$ { - /** @deprecated use `GetToolsCategoryPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = GetToolsCategoryPositiveResponse$inboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = GetToolsCategoryPositiveResponse$outboundSchema; - /** @deprecated use `GetToolsCategoryPositiveResponse$Outbound` instead. */ - export type Outbound = GetToolsCategoryPositiveResponse$Outbound; -} - -export function getToolsCategoryPositiveResponseToJSON( - getToolsCategoryPositiveResponse: GetToolsCategoryPositiveResponse, -): string { - return JSON.stringify( - GetToolsCategoryPositiveResponse$outboundSchema.parse( - getToolsCategoryPositiveResponse, - ), - ); -} - export function getToolsCategoryPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/inlineassessmentorderreceivedwebhookpayload.ts b/src/models/inlineassessmentorderreceivedwebhookpayload.ts index d1b2ead..8e5dddf 100644 --- a/src/models/inlineassessmentorderreceivedwebhookpayload.ts +++ b/src/models/inlineassessmentorderreceivedwebhookpayload.ts @@ -202,48 +202,20 @@ export type InlineAssessmentOrderReceivedWebhookPayload = { export const InlineAssessmentOrderReceivedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(InlineAssessmentOrderReceivedWebhookPayloadType); - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = InlineAssessmentOrderReceivedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadType$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadType$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(InlineAssessmentOrderReceivedWebhookPayloadStatus); - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadStatus$outboundSchema: z.ZodNativeEnum = InlineAssessmentOrderReceivedWebhookPayloadStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadStatus$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadStatus$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadStatus$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadStatus$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadStatus$outboundSchema; -} - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema: z.ZodType< @@ -257,7 +229,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema: phone: z.nullable(z.string()).optional(), remote_id: z.nullable(z.string()).optional(), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadCandidate$Outbound = { email: string; @@ -281,22 +252,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema remote_id: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadCandidate$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadCandidate$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadCandidate$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadCandidateToJSON( inlineAssessmentOrderReceivedWebhookPayloadCandidate: InlineAssessmentOrderReceivedWebhookPayloadCandidate, @@ -307,7 +262,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadCandidateToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -333,7 +287,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadApplication$inboundSchem > = z.object({ remote_id: z.nullable(z.string()).optional(), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadApplication$Outbound = { remote_id?: string | null | undefined; @@ -349,22 +302,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadApplication$outboundSche remote_id: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadApplication$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadApplication$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadApplication$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadApplication$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadApplication$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadApplication$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadApplication$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadApplicationToJSON( inlineAssessmentOrderReceivedWebhookPayloadApplication: InlineAssessmentOrderReceivedWebhookPayloadApplication, @@ -375,7 +312,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadApplicationToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -406,7 +342,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadLocation$inboundSchema: street_2: z.nullable(z.string()).optional(), zip_code: z.nullable(z.string()).optional(), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadLocation$Outbound = { city?: string | null | undefined; @@ -434,22 +369,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadLocation$outboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadLocation$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadLocation$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadLocation$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadLocation$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadLocation$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadLocation$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadLocation$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadLocationToJSON( inlineAssessmentOrderReceivedWebhookPayloadLocation: InlineAssessmentOrderReceivedWebhookPayloadLocation, @@ -460,7 +379,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadLocationToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -482,26 +400,12 @@ export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSc z.ZodNativeEnum< typeof InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole > = z.nativeEnum(InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole); - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema: z.ZodNativeEnum< typeof InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole > = InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$outboundSchema; -} - /** @internal */ export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema: z.ZodType< @@ -517,7 +421,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole$inboundSchema, ), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound = { remote_id: string; @@ -543,22 +446,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchem ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadHiringTeamToJSON( inlineAssessmentOrderReceivedWebhookPayloadHiringTeam: InlineAssessmentOrderReceivedWebhookPayloadHiringTeam, @@ -569,7 +456,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadHiringTeamToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadHiringTeamFromJSON( jsonString: string, ): SafeParseResult< @@ -606,7 +492,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema: ), ), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadJob$Outbound = { remote_id?: string | null | undefined; @@ -641,22 +526,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadJob$outboundSchema: ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadJob$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadJob$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadJob$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadJob$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadJob$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadJobToJSON( inlineAssessmentOrderReceivedWebhookPayloadJob: InlineAssessmentOrderReceivedWebhookPayloadJob, @@ -667,7 +536,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadJobToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadJobFromJSON( jsonString: string, ): SafeParseResult< @@ -705,7 +573,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadData$inboundSchema: InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema ), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayloadData$Outbound = { id: string; @@ -739,22 +606,6 @@ export const InlineAssessmentOrderReceivedWebhookPayloadData$outboundSchema: ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayloadData$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadData$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayloadData$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayloadData$Outbound` instead. */ - export type Outbound = - InlineAssessmentOrderReceivedWebhookPayloadData$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadDataToJSON( inlineAssessmentOrderReceivedWebhookPayloadData: InlineAssessmentOrderReceivedWebhookPayloadData, @@ -765,7 +616,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadDataToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult< @@ -795,7 +645,6 @@ export const InlineAssessmentOrderReceivedWebhookPayload$inboundSchema: InlineAssessmentOrderReceivedWebhookPayloadData$inboundSchema ), }); - /** @internal */ export type InlineAssessmentOrderReceivedWebhookPayload$Outbound = { id: string; @@ -817,21 +666,6 @@ export const InlineAssessmentOrderReceivedWebhookPayload$outboundSchema: ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InlineAssessmentOrderReceivedWebhookPayload$ { - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = - InlineAssessmentOrderReceivedWebhookPayload$inboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = - InlineAssessmentOrderReceivedWebhookPayload$outboundSchema; - /** @deprecated use `InlineAssessmentOrderReceivedWebhookPayload$Outbound` instead. */ - export type Outbound = InlineAssessmentOrderReceivedWebhookPayload$Outbound; -} - export function inlineAssessmentOrderReceivedWebhookPayloadToJSON( inlineAssessmentOrderReceivedWebhookPayload: InlineAssessmentOrderReceivedWebhookPayload, @@ -842,7 +676,6 @@ export function inlineAssessmentOrderReceivedWebhookPayloadToJSON( ), ); } - export function inlineAssessmentOrderReceivedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/integrationcreatedwebhookpayload.ts b/src/models/integrationcreatedwebhookpayload.ts index f80661d..1cf834f 100644 --- a/src/models/integrationcreatedwebhookpayload.ts +++ b/src/models/integrationcreatedwebhookpayload.ts @@ -90,48 +90,20 @@ export const IntegrationCreatedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( IntegrationCreatedWebhookPayloadType, ); - /** @internal */ export const IntegrationCreatedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = IntegrationCreatedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationCreatedWebhookPayloadType$ { - /** @deprecated use `IntegrationCreatedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - IntegrationCreatedWebhookPayloadType$inboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - IntegrationCreatedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const IntegrationCreatedWebhookPayloadCategory$inboundSchema: z.ZodNativeEnum = z .nativeEnum(IntegrationCreatedWebhookPayloadCategory); - /** @internal */ export const IntegrationCreatedWebhookPayloadCategory$outboundSchema: z.ZodNativeEnum = IntegrationCreatedWebhookPayloadCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationCreatedWebhookPayloadCategory$ { - /** @deprecated use `IntegrationCreatedWebhookPayloadCategory$inboundSchema` instead. */ - export const inboundSchema = - IntegrationCreatedWebhookPayloadCategory$inboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadCategory$outboundSchema` instead. */ - export const outboundSchema = - IntegrationCreatedWebhookPayloadCategory$outboundSchema; -} - /** @internal */ export const IntegrationCreatedWebhookPayloadEndUser$inboundSchema: z.ZodType< IntegrationCreatedWebhookPayloadEndUser, @@ -142,7 +114,6 @@ export const IntegrationCreatedWebhookPayloadEndUser$inboundSchema: z.ZodType< creator_email: z.nullable(z.string()), origin_id: z.nullable(z.string()), }); - /** @internal */ export type IntegrationCreatedWebhookPayloadEndUser$Outbound = { organization_name: string; @@ -161,21 +132,6 @@ export const IntegrationCreatedWebhookPayloadEndUser$outboundSchema: z.ZodType< origin_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationCreatedWebhookPayloadEndUser$ { - /** @deprecated use `IntegrationCreatedWebhookPayloadEndUser$inboundSchema` instead. */ - export const inboundSchema = - IntegrationCreatedWebhookPayloadEndUser$inboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadEndUser$outboundSchema` instead. */ - export const outboundSchema = - IntegrationCreatedWebhookPayloadEndUser$outboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadEndUser$Outbound` instead. */ - export type Outbound = IntegrationCreatedWebhookPayloadEndUser$Outbound; -} - export function integrationCreatedWebhookPayloadEndUserToJSON( integrationCreatedWebhookPayloadEndUser: IntegrationCreatedWebhookPayloadEndUser, @@ -186,7 +142,6 @@ export function integrationCreatedWebhookPayloadEndUserToJSON( ), ); } - export function integrationCreatedWebhookPayloadEndUserFromJSON( jsonString: string, ): SafeParseResult< @@ -214,7 +169,6 @@ export const IntegrationCreatedWebhookPayloadData$inboundSchema: z.ZodType< category: IntegrationCreatedWebhookPayloadCategory$inboundSchema, end_user: z.lazy(() => IntegrationCreatedWebhookPayloadEndUser$inboundSchema), }); - /** @internal */ export type IntegrationCreatedWebhookPayloadData$Outbound = { id: string; @@ -237,21 +191,6 @@ export const IntegrationCreatedWebhookPayloadData$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationCreatedWebhookPayloadData$ { - /** @deprecated use `IntegrationCreatedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - IntegrationCreatedWebhookPayloadData$inboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - IntegrationCreatedWebhookPayloadData$outboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayloadData$Outbound` instead. */ - export type Outbound = IntegrationCreatedWebhookPayloadData$Outbound; -} - export function integrationCreatedWebhookPayloadDataToJSON( integrationCreatedWebhookPayloadData: IntegrationCreatedWebhookPayloadData, ): string { @@ -261,7 +200,6 @@ export function integrationCreatedWebhookPayloadDataToJSON( ), ); } - export function integrationCreatedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult { @@ -283,7 +221,6 @@ export const IntegrationCreatedWebhookPayload$inboundSchema: z.ZodType< type: IntegrationCreatedWebhookPayloadType$inboundSchema, data: z.lazy(() => IntegrationCreatedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type IntegrationCreatedWebhookPayload$Outbound = { id: string; @@ -302,19 +239,6 @@ export const IntegrationCreatedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => IntegrationCreatedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationCreatedWebhookPayload$ { - /** @deprecated use `IntegrationCreatedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = IntegrationCreatedWebhookPayload$inboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = IntegrationCreatedWebhookPayload$outboundSchema; - /** @deprecated use `IntegrationCreatedWebhookPayload$Outbound` instead. */ - export type Outbound = IntegrationCreatedWebhookPayload$Outbound; -} - export function integrationCreatedWebhookPayloadToJSON( integrationCreatedWebhookPayload: IntegrationCreatedWebhookPayload, ): string { @@ -324,7 +248,6 @@ export function integrationCreatedWebhookPayloadToJSON( ), ); } - export function integrationCreatedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/integrationdeletedwebhookpayload.ts b/src/models/integrationdeletedwebhookpayload.ts index 8a7925c..8e437f4 100644 --- a/src/models/integrationdeletedwebhookpayload.ts +++ b/src/models/integrationdeletedwebhookpayload.ts @@ -94,48 +94,20 @@ export const IntegrationDeletedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( IntegrationDeletedWebhookPayloadType, ); - /** @internal */ export const IntegrationDeletedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = IntegrationDeletedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationDeletedWebhookPayloadType$ { - /** @deprecated use `IntegrationDeletedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - IntegrationDeletedWebhookPayloadType$inboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - IntegrationDeletedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const IntegrationDeletedWebhookPayloadCategory$inboundSchema: z.ZodNativeEnum = z .nativeEnum(IntegrationDeletedWebhookPayloadCategory); - /** @internal */ export const IntegrationDeletedWebhookPayloadCategory$outboundSchema: z.ZodNativeEnum = IntegrationDeletedWebhookPayloadCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationDeletedWebhookPayloadCategory$ { - /** @deprecated use `IntegrationDeletedWebhookPayloadCategory$inboundSchema` instead. */ - export const inboundSchema = - IntegrationDeletedWebhookPayloadCategory$inboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadCategory$outboundSchema` instead. */ - export const outboundSchema = - IntegrationDeletedWebhookPayloadCategory$outboundSchema; -} - /** @internal */ export const IntegrationDeletedWebhookPayloadEndUser$inboundSchema: z.ZodType< IntegrationDeletedWebhookPayloadEndUser, @@ -146,7 +118,6 @@ export const IntegrationDeletedWebhookPayloadEndUser$inboundSchema: z.ZodType< creator_email: z.nullable(z.string()), origin_id: z.nullable(z.string()), }); - /** @internal */ export type IntegrationDeletedWebhookPayloadEndUser$Outbound = { organization_name: string; @@ -165,21 +136,6 @@ export const IntegrationDeletedWebhookPayloadEndUser$outboundSchema: z.ZodType< origin_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationDeletedWebhookPayloadEndUser$ { - /** @deprecated use `IntegrationDeletedWebhookPayloadEndUser$inboundSchema` instead. */ - export const inboundSchema = - IntegrationDeletedWebhookPayloadEndUser$inboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadEndUser$outboundSchema` instead. */ - export const outboundSchema = - IntegrationDeletedWebhookPayloadEndUser$outboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadEndUser$Outbound` instead. */ - export type Outbound = IntegrationDeletedWebhookPayloadEndUser$Outbound; -} - export function integrationDeletedWebhookPayloadEndUserToJSON( integrationDeletedWebhookPayloadEndUser: IntegrationDeletedWebhookPayloadEndUser, @@ -190,7 +146,6 @@ export function integrationDeletedWebhookPayloadEndUserToJSON( ), ); } - export function integrationDeletedWebhookPayloadEndUserFromJSON( jsonString: string, ): SafeParseResult< @@ -219,7 +174,6 @@ export const IntegrationDeletedWebhookPayloadData$inboundSchema: z.ZodType< end_user: z.lazy(() => IntegrationDeletedWebhookPayloadEndUser$inboundSchema), deleted_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), }); - /** @internal */ export type IntegrationDeletedWebhookPayloadData$Outbound = { id: string; @@ -244,21 +198,6 @@ export const IntegrationDeletedWebhookPayloadData$outboundSchema: z.ZodType< deleted_at: z.date().transform(v => v.toISOString()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationDeletedWebhookPayloadData$ { - /** @deprecated use `IntegrationDeletedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - IntegrationDeletedWebhookPayloadData$inboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - IntegrationDeletedWebhookPayloadData$outboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayloadData$Outbound` instead. */ - export type Outbound = IntegrationDeletedWebhookPayloadData$Outbound; -} - export function integrationDeletedWebhookPayloadDataToJSON( integrationDeletedWebhookPayloadData: IntegrationDeletedWebhookPayloadData, ): string { @@ -268,7 +207,6 @@ export function integrationDeletedWebhookPayloadDataToJSON( ), ); } - export function integrationDeletedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult { @@ -290,7 +228,6 @@ export const IntegrationDeletedWebhookPayload$inboundSchema: z.ZodType< type: IntegrationDeletedWebhookPayloadType$inboundSchema, data: z.lazy(() => IntegrationDeletedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type IntegrationDeletedWebhookPayload$Outbound = { id: string; @@ -309,19 +246,6 @@ export const IntegrationDeletedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => IntegrationDeletedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationDeletedWebhookPayload$ { - /** @deprecated use `IntegrationDeletedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = IntegrationDeletedWebhookPayload$inboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = IntegrationDeletedWebhookPayload$outboundSchema; - /** @deprecated use `IntegrationDeletedWebhookPayload$Outbound` instead. */ - export type Outbound = IntegrationDeletedWebhookPayload$Outbound; -} - export function integrationDeletedWebhookPayloadToJSON( integrationDeletedWebhookPayload: IntegrationDeletedWebhookPayload, ): string { @@ -331,7 +255,6 @@ export function integrationDeletedWebhookPayloadToJSON( ), ); } - export function integrationDeletedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/integrationstatechangedwebhookpayload.ts b/src/models/integrationstatechangedwebhookpayload.ts index 73cb342..6ac79cf 100644 --- a/src/models/integrationstatechangedwebhookpayload.ts +++ b/src/models/integrationstatechangedwebhookpayload.ts @@ -127,50 +127,22 @@ export type IntegrationStateChangedWebhookPayload = { export const IntegrationStateChangedWebhookPayloadType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(IntegrationStateChangedWebhookPayloadType); - /** @internal */ export const IntegrationStateChangedWebhookPayloadType$outboundSchema: z.ZodNativeEnum = IntegrationStateChangedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationStateChangedWebhookPayloadType$ { - /** @deprecated use `IntegrationStateChangedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = - IntegrationStateChangedWebhookPayloadType$inboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = - IntegrationStateChangedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const IntegrationStateChangedWebhookPayloadIntegrationCategory$inboundSchema: z.ZodNativeEnum< typeof IntegrationStateChangedWebhookPayloadIntegrationCategory > = z.nativeEnum(IntegrationStateChangedWebhookPayloadIntegrationCategory); - /** @internal */ export const IntegrationStateChangedWebhookPayloadIntegrationCategory$outboundSchema: z.ZodNativeEnum< typeof IntegrationStateChangedWebhookPayloadIntegrationCategory > = IntegrationStateChangedWebhookPayloadIntegrationCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationStateChangedWebhookPayloadIntegrationCategory$ { - /** @deprecated use `IntegrationStateChangedWebhookPayloadIntegrationCategory$inboundSchema` instead. */ - export const inboundSchema = - IntegrationStateChangedWebhookPayloadIntegrationCategory$inboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadIntegrationCategory$outboundSchema` instead. */ - export const outboundSchema = - IntegrationStateChangedWebhookPayloadIntegrationCategory$outboundSchema; -} - /** @internal */ export const IntegrationStateChangedWebhookPayloadEndUser$inboundSchema: z.ZodType< @@ -182,7 +154,6 @@ export const IntegrationStateChangedWebhookPayloadEndUser$inboundSchema: creator_email: z.nullable(z.string()), origin_id: z.nullable(z.string()), }); - /** @internal */ export type IntegrationStateChangedWebhookPayloadEndUser$Outbound = { organization_name: string; @@ -202,21 +173,6 @@ export const IntegrationStateChangedWebhookPayloadEndUser$outboundSchema: origin_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationStateChangedWebhookPayloadEndUser$ { - /** @deprecated use `IntegrationStateChangedWebhookPayloadEndUser$inboundSchema` instead. */ - export const inboundSchema = - IntegrationStateChangedWebhookPayloadEndUser$inboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadEndUser$outboundSchema` instead. */ - export const outboundSchema = - IntegrationStateChangedWebhookPayloadEndUser$outboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadEndUser$Outbound` instead. */ - export type Outbound = IntegrationStateChangedWebhookPayloadEndUser$Outbound; -} - export function integrationStateChangedWebhookPayloadEndUserToJSON( integrationStateChangedWebhookPayloadEndUser: IntegrationStateChangedWebhookPayloadEndUser, @@ -227,7 +183,6 @@ export function integrationStateChangedWebhookPayloadEndUserToJSON( ), ); } - export function integrationStateChangedWebhookPayloadEndUserFromJSON( jsonString: string, ): SafeParseResult< @@ -247,42 +202,18 @@ export function integrationStateChangedWebhookPayloadEndUserFromJSON( /** @internal */ export const QaStatus$inboundSchema: z.ZodNativeEnum = z .nativeEnum(QaStatus); - /** @internal */ export const QaStatus$outboundSchema: z.ZodNativeEnum = QaStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QaStatus$ { - /** @deprecated use `QaStatus$inboundSchema` instead. */ - export const inboundSchema = QaStatus$inboundSchema; - /** @deprecated use `QaStatus$outboundSchema` instead. */ - export const outboundSchema = QaStatus$outboundSchema; -} - /** @internal */ export const State$inboundSchema: z.ZodNativeEnum = z.nativeEnum( State, ); - /** @internal */ export const State$outboundSchema: z.ZodNativeEnum = State$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace State$ { - /** @deprecated use `State$inboundSchema` instead. */ - export const inboundSchema = State$inboundSchema; - /** @deprecated use `State$outboundSchema` instead. */ - export const outboundSchema = State$outboundSchema; -} - /** @internal */ export const IntegrationStateChangedWebhookPayloadData$inboundSchema: z.ZodType< IntegrationStateChangedWebhookPayloadData, @@ -300,7 +231,6 @@ export const IntegrationStateChangedWebhookPayloadData$inboundSchema: z.ZodType< state: State$inboundSchema, updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), }); - /** @internal */ export type IntegrationStateChangedWebhookPayloadData$Outbound = { integration_tool: string; @@ -331,21 +261,6 @@ export const IntegrationStateChangedWebhookPayloadData$outboundSchema: updated_at: z.date().transform(v => v.toISOString()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationStateChangedWebhookPayloadData$ { - /** @deprecated use `IntegrationStateChangedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = - IntegrationStateChangedWebhookPayloadData$inboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = - IntegrationStateChangedWebhookPayloadData$outboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayloadData$Outbound` instead. */ - export type Outbound = IntegrationStateChangedWebhookPayloadData$Outbound; -} - export function integrationStateChangedWebhookPayloadDataToJSON( integrationStateChangedWebhookPayloadData: IntegrationStateChangedWebhookPayloadData, @@ -356,7 +271,6 @@ export function integrationStateChangedWebhookPayloadDataToJSON( ), ); } - export function integrationStateChangedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult< @@ -383,7 +297,6 @@ export const IntegrationStateChangedWebhookPayload$inboundSchema: z.ZodType< type: IntegrationStateChangedWebhookPayloadType$inboundSchema, data: z.lazy(() => IntegrationStateChangedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type IntegrationStateChangedWebhookPayload$Outbound = { id: string; @@ -402,21 +315,6 @@ export const IntegrationStateChangedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => IntegrationStateChangedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationStateChangedWebhookPayload$ { - /** @deprecated use `IntegrationStateChangedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = - IntegrationStateChangedWebhookPayload$inboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = - IntegrationStateChangedWebhookPayload$outboundSchema; - /** @deprecated use `IntegrationStateChangedWebhookPayload$Outbound` instead. */ - export type Outbound = IntegrationStateChangedWebhookPayload$Outbound; -} - export function integrationStateChangedWebhookPayloadToJSON( integrationStateChangedWebhookPayload: IntegrationStateChangedWebhookPayload, ): string { @@ -426,7 +324,6 @@ export function integrationStateChangedWebhookPayloadToJSON( ), ); } - export function integrationStateChangedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/komboatserror.ts b/src/models/komboatserror.ts index 602795a..f7a7a99 100644 --- a/src/models/komboatserror.ts +++ b/src/models/komboatserror.ts @@ -72,43 +72,11 @@ export const KomboAtsErrorStatus$inboundSchema: z.ZodNativeEnum< typeof KomboAtsErrorStatus > = z.nativeEnum(KomboAtsErrorStatus); -/** @internal */ -export const KomboAtsErrorStatus$outboundSchema: z.ZodNativeEnum< - typeof KomboAtsErrorStatus -> = KomboAtsErrorStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboAtsErrorStatus$ { - /** @deprecated use `KomboAtsErrorStatus$inboundSchema` instead. */ - export const inboundSchema = KomboAtsErrorStatus$inboundSchema; - /** @deprecated use `KomboAtsErrorStatus$outboundSchema` instead. */ - export const outboundSchema = KomboAtsErrorStatus$outboundSchema; -} - /** @internal */ export const KomboAtsErrorCode$inboundSchema: z.ZodNativeEnum< typeof KomboAtsErrorCode > = z.nativeEnum(KomboAtsErrorCode); -/** @internal */ -export const KomboAtsErrorCode$outboundSchema: z.ZodNativeEnum< - typeof KomboAtsErrorCode -> = KomboAtsErrorCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboAtsErrorCode$ { - /** @deprecated use `KomboAtsErrorCode$inboundSchema` instead. */ - export const inboundSchema = KomboAtsErrorCode$inboundSchema; - /** @deprecated use `KomboAtsErrorCode$outboundSchema` instead. */ - export const outboundSchema = KomboAtsErrorCode$outboundSchema; -} - /** @internal */ export const KomboAtsErrorError$inboundSchema: z.ZodType< KomboAtsErrorError, @@ -121,47 +89,6 @@ export const KomboAtsErrorError$inboundSchema: z.ZodType< log_url: z.nullable(z.string()), }); -/** @internal */ -export type KomboAtsErrorError$Outbound = { - code: string | null; - title: string | null; - message: string; - log_url: string | null; -}; - -/** @internal */ -export const KomboAtsErrorError$outboundSchema: z.ZodType< - KomboAtsErrorError$Outbound, - z.ZodTypeDef, - KomboAtsErrorError -> = z.object({ - code: z.nullable(KomboAtsErrorCode$outboundSchema), - title: z.nullable(z.string()), - message: z.string(), - log_url: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboAtsErrorError$ { - /** @deprecated use `KomboAtsErrorError$inboundSchema` instead. */ - export const inboundSchema = KomboAtsErrorError$inboundSchema; - /** @deprecated use `KomboAtsErrorError$outboundSchema` instead. */ - export const outboundSchema = KomboAtsErrorError$outboundSchema; - /** @deprecated use `KomboAtsErrorError$Outbound` instead. */ - export type Outbound = KomboAtsErrorError$Outbound; -} - -export function komboAtsErrorErrorToJSON( - komboAtsErrorError: KomboAtsErrorError, -): string { - return JSON.stringify( - KomboAtsErrorError$outboundSchema.parse(komboAtsErrorError), - ); -} - export function komboAtsErrorErrorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/kombogeneralerror.ts b/src/models/kombogeneralerror.ts index d8fe15f..d49a87b 100644 --- a/src/models/kombogeneralerror.ts +++ b/src/models/kombogeneralerror.ts @@ -58,43 +58,11 @@ export const KomboGeneralErrorStatus$inboundSchema: z.ZodNativeEnum< typeof KomboGeneralErrorStatus > = z.nativeEnum(KomboGeneralErrorStatus); -/** @internal */ -export const KomboGeneralErrorStatus$outboundSchema: z.ZodNativeEnum< - typeof KomboGeneralErrorStatus -> = KomboGeneralErrorStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboGeneralErrorStatus$ { - /** @deprecated use `KomboGeneralErrorStatus$inboundSchema` instead. */ - export const inboundSchema = KomboGeneralErrorStatus$inboundSchema; - /** @deprecated use `KomboGeneralErrorStatus$outboundSchema` instead. */ - export const outboundSchema = KomboGeneralErrorStatus$outboundSchema; -} - /** @internal */ export const KomboGeneralErrorCode$inboundSchema: z.ZodNativeEnum< typeof KomboGeneralErrorCode > = z.nativeEnum(KomboGeneralErrorCode); -/** @internal */ -export const KomboGeneralErrorCode$outboundSchema: z.ZodNativeEnum< - typeof KomboGeneralErrorCode -> = KomboGeneralErrorCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboGeneralErrorCode$ { - /** @deprecated use `KomboGeneralErrorCode$inboundSchema` instead. */ - export const inboundSchema = KomboGeneralErrorCode$inboundSchema; - /** @deprecated use `KomboGeneralErrorCode$outboundSchema` instead. */ - export const outboundSchema = KomboGeneralErrorCode$outboundSchema; -} - /** @internal */ export const KomboGeneralErrorError$inboundSchema: z.ZodType< KomboGeneralErrorError, @@ -107,47 +75,6 @@ export const KomboGeneralErrorError$inboundSchema: z.ZodType< log_url: z.nullable(z.string()), }); -/** @internal */ -export type KomboGeneralErrorError$Outbound = { - code: string | null; - title: string | null; - message: string; - log_url: string | null; -}; - -/** @internal */ -export const KomboGeneralErrorError$outboundSchema: z.ZodType< - KomboGeneralErrorError$Outbound, - z.ZodTypeDef, - KomboGeneralErrorError -> = z.object({ - code: z.nullable(KomboGeneralErrorCode$outboundSchema), - title: z.nullable(z.string()), - message: z.string(), - log_url: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboGeneralErrorError$ { - /** @deprecated use `KomboGeneralErrorError$inboundSchema` instead. */ - export const inboundSchema = KomboGeneralErrorError$inboundSchema; - /** @deprecated use `KomboGeneralErrorError$outboundSchema` instead. */ - export const outboundSchema = KomboGeneralErrorError$outboundSchema; - /** @deprecated use `KomboGeneralErrorError$Outbound` instead. */ - export type Outbound = KomboGeneralErrorError$Outbound; -} - -export function komboGeneralErrorErrorToJSON( - komboGeneralErrorError: KomboGeneralErrorError, -): string { - return JSON.stringify( - KomboGeneralErrorError$outboundSchema.parse(komboGeneralErrorError), - ); -} - export function komboGeneralErrorErrorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/kombohriserror.ts b/src/models/kombohriserror.ts index ae4154f..429ed7c 100644 --- a/src/models/kombohriserror.ts +++ b/src/models/kombohriserror.ts @@ -70,43 +70,11 @@ export const KomboHrisErrorStatus$inboundSchema: z.ZodNativeEnum< typeof KomboHrisErrorStatus > = z.nativeEnum(KomboHrisErrorStatus); -/** @internal */ -export const KomboHrisErrorStatus$outboundSchema: z.ZodNativeEnum< - typeof KomboHrisErrorStatus -> = KomboHrisErrorStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboHrisErrorStatus$ { - /** @deprecated use `KomboHrisErrorStatus$inboundSchema` instead. */ - export const inboundSchema = KomboHrisErrorStatus$inboundSchema; - /** @deprecated use `KomboHrisErrorStatus$outboundSchema` instead. */ - export const outboundSchema = KomboHrisErrorStatus$outboundSchema; -} - /** @internal */ export const KomboHrisErrorCode$inboundSchema: z.ZodNativeEnum< typeof KomboHrisErrorCode > = z.nativeEnum(KomboHrisErrorCode); -/** @internal */ -export const KomboHrisErrorCode$outboundSchema: z.ZodNativeEnum< - typeof KomboHrisErrorCode -> = KomboHrisErrorCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboHrisErrorCode$ { - /** @deprecated use `KomboHrisErrorCode$inboundSchema` instead. */ - export const inboundSchema = KomboHrisErrorCode$inboundSchema; - /** @deprecated use `KomboHrisErrorCode$outboundSchema` instead. */ - export const outboundSchema = KomboHrisErrorCode$outboundSchema; -} - /** @internal */ export const KomboHrisErrorError$inboundSchema: z.ZodType< KomboHrisErrorError, @@ -119,47 +87,6 @@ export const KomboHrisErrorError$inboundSchema: z.ZodType< log_url: z.nullable(z.string()), }); -/** @internal */ -export type KomboHrisErrorError$Outbound = { - code: string | null; - title: string | null; - message: string; - log_url: string | null; -}; - -/** @internal */ -export const KomboHrisErrorError$outboundSchema: z.ZodType< - KomboHrisErrorError$Outbound, - z.ZodTypeDef, - KomboHrisErrorError -> = z.object({ - code: z.nullable(KomboHrisErrorCode$outboundSchema), - title: z.nullable(z.string()), - message: z.string(), - log_url: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace KomboHrisErrorError$ { - /** @deprecated use `KomboHrisErrorError$inboundSchema` instead. */ - export const inboundSchema = KomboHrisErrorError$inboundSchema; - /** @deprecated use `KomboHrisErrorError$outboundSchema` instead. */ - export const outboundSchema = KomboHrisErrorError$outboundSchema; - /** @deprecated use `KomboHrisErrorError$Outbound` instead. */ - export type Outbound = KomboHrisErrorError$Outbound; -} - -export function komboHrisErrorErrorToJSON( - komboHrisErrorError: KomboHrisErrorError, -): string { - return JSON.stringify( - KomboHrisErrorError$outboundSchema.parse(komboHrisErrorError), - ); -} - export function komboHrisErrorErrorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteatscandidatescandidateidtags.ts b/src/models/operations/deleteatscandidatescandidateidtags.ts index b6f2989..ba400b9 100644 --- a/src/models/operations/deleteatscandidatescandidateidtags.ts +++ b/src/models/operations/deleteatscandidatescandidateidtags.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type DeleteAtsCandidatesCandidateIdTagsGlobals = { @@ -24,97 +20,13 @@ export type DeleteAtsCandidatesCandidateIdTagsRequest = { /** * DELETE /ats/candidates/:candidate_id/tags Request body */ - delete_ats_candidates_candidate_id_tags_request_body: - models.DeleteAtsCandidatesCandidateIdTagsRequestBody; + body: models.DeleteAtsCandidatesCandidateIdTagsRequestBody; }; -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsGlobals$inboundSchema: z.ZodType< - DeleteAtsCandidatesCandidateIdTagsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type DeleteAtsCandidatesCandidateIdTagsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsGlobals$outboundSchema: - z.ZodType< - DeleteAtsCandidatesCandidateIdTagsGlobals$Outbound, - z.ZodTypeDef, - DeleteAtsCandidatesCandidateIdTagsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsGlobals$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsGlobals$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsGlobals$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsGlobals$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsGlobals$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsGlobals$Outbound` instead. */ - export type Outbound = DeleteAtsCandidatesCandidateIdTagsGlobals$Outbound; -} - -export function deleteAtsCandidatesCandidateIdTagsGlobalsToJSON( - deleteAtsCandidatesCandidateIdTagsGlobals: - DeleteAtsCandidatesCandidateIdTagsGlobals, -): string { - return JSON.stringify( - DeleteAtsCandidatesCandidateIdTagsGlobals$outboundSchema.parse( - deleteAtsCandidatesCandidateIdTagsGlobals, - ), - ); -} - -export function deleteAtsCandidatesCandidateIdTagsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteAtsCandidatesCandidateIdTagsRequest$inboundSchema: z.ZodType< - DeleteAtsCandidatesCandidateIdTagsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - candidate_id: z.string(), - DeleteAtsCandidatesCandidateIdTagsRequestBody: - models.DeleteAtsCandidatesCandidateIdTagsRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "DeleteAtsCandidatesCandidateIdTagsRequestBody": - "delete_ats_candidates_candidate_id_tags_request_body", - }); -}); - /** @internal */ export type DeleteAtsCandidatesCandidateIdTagsRequest$Outbound = { candidate_id: string; - DeleteAtsCandidatesCandidateIdTagsRequestBody: - models.DeleteAtsCandidatesCandidateIdTagsRequestBody$Outbound; + body: models.DeleteAtsCandidatesCandidateIdTagsRequestBody$Outbound; }; /** @internal */ @@ -125,30 +37,9 @@ export const DeleteAtsCandidatesCandidateIdTagsRequest$outboundSchema: DeleteAtsCandidatesCandidateIdTagsRequest > = z.object({ candidate_id: z.string(), - delete_ats_candidates_candidate_id_tags_request_body: - models.DeleteAtsCandidatesCandidateIdTagsRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - delete_ats_candidates_candidate_id_tags_request_body: - "DeleteAtsCandidatesCandidateIdTagsRequestBody", - }); + body: models.DeleteAtsCandidatesCandidateIdTagsRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteAtsCandidatesCandidateIdTagsRequest$ { - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequest$inboundSchema` instead. */ - export const inboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequest$inboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequest$outboundSchema` instead. */ - export const outboundSchema = - DeleteAtsCandidatesCandidateIdTagsRequest$outboundSchema; - /** @deprecated use `DeleteAtsCandidatesCandidateIdTagsRequest$Outbound` instead. */ - export type Outbound = DeleteAtsCandidatesCandidateIdTagsRequest$Outbound; -} - export function deleteAtsCandidatesCandidateIdTagsRequestToJSON( deleteAtsCandidatesCandidateIdTagsRequest: DeleteAtsCandidatesCandidateIdTagsRequest, @@ -159,19 +50,3 @@ export function deleteAtsCandidatesCandidateIdTagsRequestToJSON( ), ); } - -export function deleteAtsCandidatesCandidateIdTagsRequestFromJSON( - jsonString: string, -): SafeParseResult< - DeleteAtsCandidatesCandidateIdTagsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeleteAtsCandidatesCandidateIdTagsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeleteAtsCandidatesCandidateIdTagsRequest' from JSON`, - ); -} diff --git a/src/models/operations/deletehrisabsencesabsenceid.ts b/src/models/operations/deletehrisabsencesabsenceid.ts index d5c6038..431e4c1 100644 --- a/src/models/operations/deletehrisabsencesabsenceid.ts +++ b/src/models/operations/deletehrisabsencesabsenceid.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type DeleteHrisAbsencesAbsenceIdGlobals = { @@ -24,89 +20,13 @@ export type DeleteHrisAbsencesAbsenceIdRequest = { /** * DELETE /hris/absences/:absence_id Request body */ - delete_hris_absences_absence_id_request_body: - models.DeleteHrisAbsencesAbsenceIdRequestBody; + body: models.DeleteHrisAbsencesAbsenceIdRequestBody; }; -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdGlobals$inboundSchema: z.ZodType< - DeleteHrisAbsencesAbsenceIdGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type DeleteHrisAbsencesAbsenceIdGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdGlobals$outboundSchema: z.ZodType< - DeleteHrisAbsencesAbsenceIdGlobals$Outbound, - z.ZodTypeDef, - DeleteHrisAbsencesAbsenceIdGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdGlobals$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdGlobals$inboundSchema` instead. */ - export const inboundSchema = DeleteHrisAbsencesAbsenceIdGlobals$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdGlobals$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdGlobals$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdGlobals$Outbound` instead. */ - export type Outbound = DeleteHrisAbsencesAbsenceIdGlobals$Outbound; -} - -export function deleteHrisAbsencesAbsenceIdGlobalsToJSON( - deleteHrisAbsencesAbsenceIdGlobals: DeleteHrisAbsencesAbsenceIdGlobals, -): string { - return JSON.stringify( - DeleteHrisAbsencesAbsenceIdGlobals$outboundSchema.parse( - deleteHrisAbsencesAbsenceIdGlobals, - ), - ); -} - -export function deleteHrisAbsencesAbsenceIdGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DeleteHrisAbsencesAbsenceIdGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteHrisAbsencesAbsenceIdGlobals' from JSON`, - ); -} - -/** @internal */ -export const DeleteHrisAbsencesAbsenceIdRequest$inboundSchema: z.ZodType< - DeleteHrisAbsencesAbsenceIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - absence_id: z.string(), - DeleteHrisAbsencesAbsenceIdRequestBody: - models.DeleteHrisAbsencesAbsenceIdRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "DeleteHrisAbsencesAbsenceIdRequestBody": - "delete_hris_absences_absence_id_request_body", - }); -}); - /** @internal */ export type DeleteHrisAbsencesAbsenceIdRequest$Outbound = { absence_id: string; - DeleteHrisAbsencesAbsenceIdRequestBody: - models.DeleteHrisAbsencesAbsenceIdRequestBody$Outbound; + body: models.DeleteHrisAbsencesAbsenceIdRequestBody$Outbound; }; /** @internal */ @@ -116,29 +36,9 @@ export const DeleteHrisAbsencesAbsenceIdRequest$outboundSchema: z.ZodType< DeleteHrisAbsencesAbsenceIdRequest > = z.object({ absence_id: z.string(), - delete_hris_absences_absence_id_request_body: - models.DeleteHrisAbsencesAbsenceIdRequestBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - delete_hris_absences_absence_id_request_body: - "DeleteHrisAbsencesAbsenceIdRequestBody", - }); + body: models.DeleteHrisAbsencesAbsenceIdRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteHrisAbsencesAbsenceIdRequest$ { - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteHrisAbsencesAbsenceIdRequest$inboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequest$outboundSchema` instead. */ - export const outboundSchema = - DeleteHrisAbsencesAbsenceIdRequest$outboundSchema; - /** @deprecated use `DeleteHrisAbsencesAbsenceIdRequest$Outbound` instead. */ - export type Outbound = DeleteHrisAbsencesAbsenceIdRequest$Outbound; -} - export function deleteHrisAbsencesAbsenceIdRequestToJSON( deleteHrisAbsencesAbsenceIdRequest: DeleteHrisAbsencesAbsenceIdRequest, ): string { @@ -148,14 +48,3 @@ export function deleteHrisAbsencesAbsenceIdRequestToJSON( ), ); } - -export function deleteHrisAbsencesAbsenceIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DeleteHrisAbsencesAbsenceIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteHrisAbsencesAbsenceIdRequest' from JSON`, - ); -} diff --git a/src/models/operations/deleteintegrationsintegrationid.ts b/src/models/operations/deleteintegrationsintegrationid.ts index 8b93a41..6249bd2 100644 --- a/src/models/operations/deleteintegrationsintegrationid.ts +++ b/src/models/operations/deleteintegrationsintegrationid.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type DeleteIntegrationsIntegrationIdRequest = { @@ -17,31 +13,13 @@ export type DeleteIntegrationsIntegrationIdRequest = { /** * DELETE /integrations/:integration_id Request body */ - delete_integrations_integration_id_request_body: - models.DeleteIntegrationsIntegrationIdRequestBody; + body: models.DeleteIntegrationsIntegrationIdRequestBody; }; -/** @internal */ -export const DeleteIntegrationsIntegrationIdRequest$inboundSchema: z.ZodType< - DeleteIntegrationsIntegrationIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string(), - DeleteIntegrationsIntegrationIdRequestBody: - models.DeleteIntegrationsIntegrationIdRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "DeleteIntegrationsIntegrationIdRequestBody": - "delete_integrations_integration_id_request_body", - }); -}); - /** @internal */ export type DeleteIntegrationsIntegrationIdRequest$Outbound = { integration_id: string; - DeleteIntegrationsIntegrationIdRequestBody: - models.DeleteIntegrationsIntegrationIdRequestBody$Outbound; + body: models.DeleteIntegrationsIntegrationIdRequestBody$Outbound; }; /** @internal */ @@ -51,30 +29,9 @@ export const DeleteIntegrationsIntegrationIdRequest$outboundSchema: z.ZodType< DeleteIntegrationsIntegrationIdRequest > = z.object({ integration_id: z.string(), - delete_integrations_integration_id_request_body: - models.DeleteIntegrationsIntegrationIdRequestBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - delete_integrations_integration_id_request_body: - "DeleteIntegrationsIntegrationIdRequestBody", - }); + body: models.DeleteIntegrationsIntegrationIdRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIntegrationsIntegrationIdRequest$ { - /** @deprecated use `DeleteIntegrationsIntegrationIdRequest$inboundSchema` instead. */ - export const inboundSchema = - DeleteIntegrationsIntegrationIdRequest$inboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdRequest$outboundSchema` instead. */ - export const outboundSchema = - DeleteIntegrationsIntegrationIdRequest$outboundSchema; - /** @deprecated use `DeleteIntegrationsIntegrationIdRequest$Outbound` instead. */ - export type Outbound = DeleteIntegrationsIntegrationIdRequest$Outbound; -} - export function deleteIntegrationsIntegrationIdRequestToJSON( deleteIntegrationsIntegrationIdRequest: DeleteIntegrationsIntegrationIdRequest, @@ -85,14 +42,3 @@ export function deleteIntegrationsIntegrationIdRequestToJSON( ), ); } - -export function deleteIntegrationsIntegrationIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DeleteIntegrationsIntegrationIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeleteIntegrationsIntegrationIdRequest' from JSON`, - ); -} diff --git a/src/models/operations/getassessmentordersopen.ts b/src/models/operations/getassessmentordersopen.ts index e57a168..73131e1 100644 --- a/src/models/operations/getassessmentordersopen.ts +++ b/src/models/operations/getassessmentordersopen.ts @@ -31,72 +31,6 @@ export type GetAssessmentOrdersOpenResponse = { result: models.GetAssessmentOrdersOpenPositiveResponse; }; -/** @internal */ -export const GetAssessmentOrdersOpenGlobals$inboundSchema: z.ZodType< - GetAssessmentOrdersOpenGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAssessmentOrdersOpenGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenGlobals$outboundSchema: z.ZodType< - GetAssessmentOrdersOpenGlobals$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenGlobals$ { - /** @deprecated use `GetAssessmentOrdersOpenGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAssessmentOrdersOpenGlobals$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAssessmentOrdersOpenGlobals$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenGlobals$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenGlobals$Outbound; -} - -export function getAssessmentOrdersOpenGlobalsToJSON( - getAssessmentOrdersOpenGlobals: GetAssessmentOrdersOpenGlobals, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenGlobals$outboundSchema.parse( - getAssessmentOrdersOpenGlobals, - ), - ); -} - -export function getAssessmentOrdersOpenGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssessmentOrdersOpenGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssessmentOrdersOpenGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAssessmentOrdersOpenRequest$inboundSchema: z.ZodType< - GetAssessmentOrdersOpenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), -}); - /** @internal */ export type GetAssessmentOrdersOpenRequest$Outbound = { cursor?: string | undefined; @@ -113,19 +47,6 @@ export const GetAssessmentOrdersOpenRequest$outboundSchema: z.ZodType< page_size: z.number().int().default(100), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenRequest$ { - /** @deprecated use `GetAssessmentOrdersOpenRequest$inboundSchema` instead. */ - export const inboundSchema = GetAssessmentOrdersOpenRequest$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenRequest$outboundSchema` instead. */ - export const outboundSchema = GetAssessmentOrdersOpenRequest$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenRequest$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenRequest$Outbound; -} - export function getAssessmentOrdersOpenRequestToJSON( getAssessmentOrdersOpenRequest: GetAssessmentOrdersOpenRequest, ): string { @@ -136,16 +57,6 @@ export function getAssessmentOrdersOpenRequestToJSON( ); } -export function getAssessmentOrdersOpenRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssessmentOrdersOpenRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssessmentOrdersOpenRequest' from JSON`, - ); -} - /** @internal */ export const GetAssessmentOrdersOpenResponse$inboundSchema: z.ZodType< GetAssessmentOrdersOpenResponse, @@ -159,47 +70,6 @@ export const GetAssessmentOrdersOpenResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAssessmentOrdersOpenResponse$Outbound = { - Result: models.GetAssessmentOrdersOpenPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAssessmentOrdersOpenResponse$outboundSchema: z.ZodType< - GetAssessmentOrdersOpenResponse$Outbound, - z.ZodTypeDef, - GetAssessmentOrdersOpenResponse -> = z.object({ - result: models.GetAssessmentOrdersOpenPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentOrdersOpenResponse$ { - /** @deprecated use `GetAssessmentOrdersOpenResponse$inboundSchema` instead. */ - export const inboundSchema = GetAssessmentOrdersOpenResponse$inboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenResponse$outboundSchema` instead. */ - export const outboundSchema = GetAssessmentOrdersOpenResponse$outboundSchema; - /** @deprecated use `GetAssessmentOrdersOpenResponse$Outbound` instead. */ - export type Outbound = GetAssessmentOrdersOpenResponse$Outbound; -} - -export function getAssessmentOrdersOpenResponseToJSON( - getAssessmentOrdersOpenResponse: GetAssessmentOrdersOpenResponse, -): string { - return JSON.stringify( - GetAssessmentOrdersOpenResponse$outboundSchema.parse( - getAssessmentOrdersOpenResponse, - ), - ); -} - export function getAssessmentOrdersOpenResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getassessmentpackages.ts b/src/models/operations/getassessmentpackages.ts index abcb463..1cfcb51 100644 --- a/src/models/operations/getassessmentpackages.ts +++ b/src/models/operations/getassessmentpackages.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAssessmentPackagesGlobals = { /** @@ -16,69 +13,6 @@ export type GetAssessmentPackagesGlobals = { export type GetAssessmentPackagesRequest = {}; -/** @internal */ -export const GetAssessmentPackagesGlobals$inboundSchema: z.ZodType< - GetAssessmentPackagesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAssessmentPackagesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAssessmentPackagesGlobals$outboundSchema: z.ZodType< - GetAssessmentPackagesGlobals$Outbound, - z.ZodTypeDef, - GetAssessmentPackagesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesGlobals$ { - /** @deprecated use `GetAssessmentPackagesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAssessmentPackagesGlobals$inboundSchema; - /** @deprecated use `GetAssessmentPackagesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAssessmentPackagesGlobals$outboundSchema; - /** @deprecated use `GetAssessmentPackagesGlobals$Outbound` instead. */ - export type Outbound = GetAssessmentPackagesGlobals$Outbound; -} - -export function getAssessmentPackagesGlobalsToJSON( - getAssessmentPackagesGlobals: GetAssessmentPackagesGlobals, -): string { - return JSON.stringify( - GetAssessmentPackagesGlobals$outboundSchema.parse( - getAssessmentPackagesGlobals, - ), - ); -} - -export function getAssessmentPackagesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssessmentPackagesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssessmentPackagesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAssessmentPackagesRequest$inboundSchema: z.ZodType< - GetAssessmentPackagesRequest, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type GetAssessmentPackagesRequest$Outbound = {}; @@ -89,19 +23,6 @@ export const GetAssessmentPackagesRequest$outboundSchema: z.ZodType< GetAssessmentPackagesRequest > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssessmentPackagesRequest$ { - /** @deprecated use `GetAssessmentPackagesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAssessmentPackagesRequest$inboundSchema; - /** @deprecated use `GetAssessmentPackagesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAssessmentPackagesRequest$outboundSchema; - /** @deprecated use `GetAssessmentPackagesRequest$Outbound` instead. */ - export type Outbound = GetAssessmentPackagesRequest$Outbound; -} - export function getAssessmentPackagesRequestToJSON( getAssessmentPackagesRequest: GetAssessmentPackagesRequest, ): string { @@ -111,13 +32,3 @@ export function getAssessmentPackagesRequestToJSON( ), ); } - -export function getAssessmentPackagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssessmentPackagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssessmentPackagesRequest' from JSON`, - ); -} diff --git a/src/models/operations/getatsapplications.ts b/src/models/operations/getatsapplications.ts index 6bb65f2..e5d6d7b 100644 --- a/src/models/operations/getatsapplications.ts +++ b/src/models/operations/getatsapplications.ts @@ -26,7 +26,13 @@ export type GetAtsApplicationsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -74,83 +80,6 @@ export type GetAtsApplicationsResponse = { result: models.GetAtsApplicationsPositiveResponse; }; -/** @internal */ -export const GetAtsApplicationsGlobals$inboundSchema: z.ZodType< - GetAtsApplicationsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsApplicationsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsGlobals$outboundSchema: z.ZodType< - GetAtsApplicationsGlobals$Outbound, - z.ZodTypeDef, - GetAtsApplicationsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsGlobals$ { - /** @deprecated use `GetAtsApplicationsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationsGlobals$inboundSchema; - /** @deprecated use `GetAtsApplicationsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationsGlobals$outboundSchema; - /** @deprecated use `GetAtsApplicationsGlobals$Outbound` instead. */ - export type Outbound = GetAtsApplicationsGlobals$Outbound; -} - -export function getAtsApplicationsGlobalsToJSON( - getAtsApplicationsGlobals: GetAtsApplicationsGlobals, -): string { - return JSON.stringify( - GetAtsApplicationsGlobals$outboundSchema.parse(getAtsApplicationsGlobals), - ); -} - -export function getAtsApplicationsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsApplicationsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsApplicationsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsApplicationsRequest$inboundSchema: z.ZodType< - GetAtsApplicationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - outcomes: z.array(z.string()).optional(), - job_ids: z.array(z.string()).optional(), - job_remote_ids: z.array(z.string()).optional(), - current_stage_ids: z.array(z.string()).optional(), - remote_created_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), -}); - /** @internal */ export type GetAtsApplicationsRequest$Outbound = { cursor?: string | undefined; @@ -185,19 +114,6 @@ export const GetAtsApplicationsRequest$outboundSchema: z.ZodType< remote_created_after: z.date().transform(v => v.toISOString()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsRequest$ { - /** @deprecated use `GetAtsApplicationsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationsRequest$inboundSchema; - /** @deprecated use `GetAtsApplicationsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationsRequest$outboundSchema; - /** @deprecated use `GetAtsApplicationsRequest$Outbound` instead. */ - export type Outbound = GetAtsApplicationsRequest$Outbound; -} - export function getAtsApplicationsRequestToJSON( getAtsApplicationsRequest: GetAtsApplicationsRequest, ): string { @@ -206,16 +122,6 @@ export function getAtsApplicationsRequestToJSON( ); } -export function getAtsApplicationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsApplicationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsApplicationsRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsApplicationsResponse$inboundSchema: z.ZodType< GetAtsApplicationsResponse, @@ -229,45 +135,6 @@ export const GetAtsApplicationsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsApplicationsResponse$Outbound = { - Result: models.GetAtsApplicationsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsApplicationsResponse$outboundSchema: z.ZodType< - GetAtsApplicationsResponse$Outbound, - z.ZodTypeDef, - GetAtsApplicationsResponse -> = z.object({ - result: models.GetAtsApplicationsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsResponse$ { - /** @deprecated use `GetAtsApplicationsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationsResponse$inboundSchema; - /** @deprecated use `GetAtsApplicationsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationsResponse$outboundSchema; - /** @deprecated use `GetAtsApplicationsResponse$Outbound` instead. */ - export type Outbound = GetAtsApplicationsResponse$Outbound; -} - -export function getAtsApplicationsResponseToJSON( - getAtsApplicationsResponse: GetAtsApplicationsResponse, -): string { - return JSON.stringify( - GetAtsApplicationsResponse$outboundSchema.parse(getAtsApplicationsResponse), - ); -} - export function getAtsApplicationsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatsapplicationsapplicationidattachments.ts b/src/models/operations/getatsapplicationsapplicationidattachments.ts index faeff4f..84158e2 100644 --- a/src/models/operations/getatsapplicationsapplicationidattachments.ts +++ b/src/models/operations/getatsapplicationsapplicationidattachments.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAtsApplicationsApplicationIdAttachmentsGlobals = { /** @@ -21,84 +18,6 @@ export type GetAtsApplicationsApplicationIdAttachmentsRequest = { application_id: string; }; -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type GetAtsApplicationsApplicationIdAttachmentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsGlobals$Outbound, - z.ZodTypeDef, - GetAtsApplicationsApplicationIdAttachmentsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsGlobals$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsGlobals$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsGlobals$Outbound; -} - -export function getAtsApplicationsApplicationIdAttachmentsGlobalsToJSON( - getAtsApplicationsApplicationIdAttachmentsGlobals: - GetAtsApplicationsApplicationIdAttachmentsGlobals, -): string { - return JSON.stringify( - GetAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema.parse( - getAtsApplicationsApplicationIdAttachmentsGlobals, - ), - ); -} - -export function getAtsApplicationsApplicationIdAttachmentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - GetAtsApplicationsApplicationIdAttachmentsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetAtsApplicationsApplicationIdAttachmentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema: - z.ZodType< - GetAtsApplicationsApplicationIdAttachmentsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - }); - /** @internal */ export type GetAtsApplicationsApplicationIdAttachmentsRequest$Outbound = { application_id: string; @@ -114,22 +33,6 @@ export const GetAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema: application_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationsApplicationIdAttachmentsRequest$ { - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema; - /** @deprecated use `GetAtsApplicationsApplicationIdAttachmentsRequest$Outbound` instead. */ - export type Outbound = - GetAtsApplicationsApplicationIdAttachmentsRequest$Outbound; -} - export function getAtsApplicationsApplicationIdAttachmentsRequestToJSON( getAtsApplicationsApplicationIdAttachmentsRequest: GetAtsApplicationsApplicationIdAttachmentsRequest, @@ -140,19 +43,3 @@ export function getAtsApplicationsApplicationIdAttachmentsRequestToJSON( ), ); } - -export function getAtsApplicationsApplicationIdAttachmentsRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetAtsApplicationsApplicationIdAttachmentsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetAtsApplicationsApplicationIdAttachmentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/getatsapplicationstages.ts b/src/models/operations/getatsapplicationstages.ts index 15420e1..e7dc6b9 100644 --- a/src/models/operations/getatsapplicationstages.ts +++ b/src/models/operations/getatsapplicationstages.ts @@ -26,7 +26,13 @@ export type GetAtsApplicationStagesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,78 +53,6 @@ export type GetAtsApplicationStagesResponse = { result: models.GetAtsApplicationStagesPositiveResponse; }; -/** @internal */ -export const GetAtsApplicationStagesGlobals$inboundSchema: z.ZodType< - GetAtsApplicationStagesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsApplicationStagesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsApplicationStagesGlobals$outboundSchema: z.ZodType< - GetAtsApplicationStagesGlobals$Outbound, - z.ZodTypeDef, - GetAtsApplicationStagesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesGlobals$ { - /** @deprecated use `GetAtsApplicationStagesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationStagesGlobals$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationStagesGlobals$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesGlobals$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesGlobals$Outbound; -} - -export function getAtsApplicationStagesGlobalsToJSON( - getAtsApplicationStagesGlobals: GetAtsApplicationStagesGlobals, -): string { - return JSON.stringify( - GetAtsApplicationStagesGlobals$outboundSchema.parse( - getAtsApplicationStagesGlobals, - ), - ); -} - -export function getAtsApplicationStagesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsApplicationStagesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsApplicationStagesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsApplicationStagesRequest$inboundSchema: z.ZodType< - GetAtsApplicationStagesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsApplicationStagesRequest$Outbound = { cursor?: string | undefined; @@ -143,19 +77,6 @@ export const GetAtsApplicationStagesRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesRequest$ { - /** @deprecated use `GetAtsApplicationStagesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationStagesRequest$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationStagesRequest$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesRequest$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesRequest$Outbound; -} - export function getAtsApplicationStagesRequestToJSON( getAtsApplicationStagesRequest: GetAtsApplicationStagesRequest, ): string { @@ -166,16 +87,6 @@ export function getAtsApplicationStagesRequestToJSON( ); } -export function getAtsApplicationStagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsApplicationStagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsApplicationStagesRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsApplicationStagesResponse$inboundSchema: z.ZodType< GetAtsApplicationStagesResponse, @@ -189,47 +100,6 @@ export const GetAtsApplicationStagesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsApplicationStagesResponse$Outbound = { - Result: models.GetAtsApplicationStagesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsApplicationStagesResponse$outboundSchema: z.ZodType< - GetAtsApplicationStagesResponse$Outbound, - z.ZodTypeDef, - GetAtsApplicationStagesResponse -> = z.object({ - result: models.GetAtsApplicationStagesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsApplicationStagesResponse$ { - /** @deprecated use `GetAtsApplicationStagesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsApplicationStagesResponse$inboundSchema; - /** @deprecated use `GetAtsApplicationStagesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsApplicationStagesResponse$outboundSchema; - /** @deprecated use `GetAtsApplicationStagesResponse$Outbound` instead. */ - export type Outbound = GetAtsApplicationStagesResponse$Outbound; -} - -export function getAtsApplicationStagesResponseToJSON( - getAtsApplicationStagesResponse: GetAtsApplicationStagesResponse, -): string { - return JSON.stringify( - GetAtsApplicationStagesResponse$outboundSchema.parse( - getAtsApplicationStagesResponse, - ), - ); -} - export function getAtsApplicationStagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatscandidates.ts b/src/models/operations/getatscandidates.ts index 1aa96c5..94d86d3 100644 --- a/src/models/operations/getatscandidates.ts +++ b/src/models/operations/getatscandidates.ts @@ -26,7 +26,13 @@ export type GetAtsCandidatesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -63,80 +69,6 @@ export type GetAtsCandidatesResponse = { result: models.GetAtsCandidatesPositiveResponse; }; -/** @internal */ -export const GetAtsCandidatesGlobals$inboundSchema: z.ZodType< - GetAtsCandidatesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsCandidatesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsCandidatesGlobals$outboundSchema: z.ZodType< - GetAtsCandidatesGlobals$Outbound, - z.ZodTypeDef, - GetAtsCandidatesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesGlobals$ { - /** @deprecated use `GetAtsCandidatesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsCandidatesGlobals$inboundSchema; - /** @deprecated use `GetAtsCandidatesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsCandidatesGlobals$outboundSchema; - /** @deprecated use `GetAtsCandidatesGlobals$Outbound` instead. */ - export type Outbound = GetAtsCandidatesGlobals$Outbound; -} - -export function getAtsCandidatesGlobalsToJSON( - getAtsCandidatesGlobals: GetAtsCandidatesGlobals, -): string { - return JSON.stringify( - GetAtsCandidatesGlobals$outboundSchema.parse(getAtsCandidatesGlobals), - ); -} - -export function getAtsCandidatesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsCandidatesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsCandidatesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsCandidatesRequest$inboundSchema: z.ZodType< - GetAtsCandidatesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - email: z.string().optional(), - job_ids: z.array(z.string()).optional(), - first_name: z.string().optional(), - last_name: z.string().optional(), -}); - /** @internal */ export type GetAtsCandidatesRequest$Outbound = { cursor?: string | undefined; @@ -169,19 +101,6 @@ export const GetAtsCandidatesRequest$outboundSchema: z.ZodType< last_name: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesRequest$ { - /** @deprecated use `GetAtsCandidatesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsCandidatesRequest$inboundSchema; - /** @deprecated use `GetAtsCandidatesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsCandidatesRequest$outboundSchema; - /** @deprecated use `GetAtsCandidatesRequest$Outbound` instead. */ - export type Outbound = GetAtsCandidatesRequest$Outbound; -} - export function getAtsCandidatesRequestToJSON( getAtsCandidatesRequest: GetAtsCandidatesRequest, ): string { @@ -190,16 +109,6 @@ export function getAtsCandidatesRequestToJSON( ); } -export function getAtsCandidatesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsCandidatesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsCandidatesRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsCandidatesResponse$inboundSchema: z.ZodType< GetAtsCandidatesResponse, @@ -213,45 +122,6 @@ export const GetAtsCandidatesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsCandidatesResponse$Outbound = { - Result: models.GetAtsCandidatesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsCandidatesResponse$outboundSchema: z.ZodType< - GetAtsCandidatesResponse$Outbound, - z.ZodTypeDef, - GetAtsCandidatesResponse -> = z.object({ - result: models.GetAtsCandidatesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesResponse$ { - /** @deprecated use `GetAtsCandidatesResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsCandidatesResponse$inboundSchema; - /** @deprecated use `GetAtsCandidatesResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsCandidatesResponse$outboundSchema; - /** @deprecated use `GetAtsCandidatesResponse$Outbound` instead. */ - export type Outbound = GetAtsCandidatesResponse$Outbound; -} - -export function getAtsCandidatesResponseToJSON( - getAtsCandidatesResponse: GetAtsCandidatesResponse, -): string { - return JSON.stringify( - GetAtsCandidatesResponse$outboundSchema.parse(getAtsCandidatesResponse), - ); -} - export function getAtsCandidatesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatscandidatescandidateidattachments.ts b/src/models/operations/getatscandidatescandidateidattachments.ts index 3a55126..16db58e 100644 --- a/src/models/operations/getatscandidatescandidateidattachments.ts +++ b/src/models/operations/getatscandidatescandidateidattachments.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAtsCandidatesCandidateIdAttachmentsGlobals = { /** @@ -21,83 +18,6 @@ export type GetAtsCandidatesCandidateIdAttachmentsRequest = { candidate_id: string; }; -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type GetAtsCandidatesCandidateIdAttachmentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsGlobals$Outbound, - z.ZodTypeDef, - GetAtsCandidatesCandidateIdAttachmentsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsGlobals$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsGlobals$Outbound` instead. */ - export type Outbound = GetAtsCandidatesCandidateIdAttachmentsGlobals$Outbound; -} - -export function getAtsCandidatesCandidateIdAttachmentsGlobalsToJSON( - getAtsCandidatesCandidateIdAttachmentsGlobals: - GetAtsCandidatesCandidateIdAttachmentsGlobals, -): string { - return JSON.stringify( - GetAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema.parse( - getAtsCandidatesCandidateIdAttachmentsGlobals, - ), - ); -} - -export function getAtsCandidatesCandidateIdAttachmentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - GetAtsCandidatesCandidateIdAttachmentsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetAtsCandidatesCandidateIdAttachmentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema: - z.ZodType< - GetAtsCandidatesCandidateIdAttachmentsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - candidate_id: z.string(), - }); - /** @internal */ export type GetAtsCandidatesCandidateIdAttachmentsRequest$Outbound = { candidate_id: string; @@ -113,21 +33,6 @@ export const GetAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema: candidate_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsCandidatesCandidateIdAttachmentsRequest$ { - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema; - /** @deprecated use `GetAtsCandidatesCandidateIdAttachmentsRequest$Outbound` instead. */ - export type Outbound = GetAtsCandidatesCandidateIdAttachmentsRequest$Outbound; -} - export function getAtsCandidatesCandidateIdAttachmentsRequestToJSON( getAtsCandidatesCandidateIdAttachmentsRequest: GetAtsCandidatesCandidateIdAttachmentsRequest, @@ -138,19 +43,3 @@ export function getAtsCandidatesCandidateIdAttachmentsRequestToJSON( ), ); } - -export function getAtsCandidatesCandidateIdAttachmentsRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetAtsCandidatesCandidateIdAttachmentsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetAtsCandidatesCandidateIdAttachmentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/getatsinterviews.ts b/src/models/operations/getatsinterviews.ts index 5510a23..00d57ce 100644 --- a/src/models/operations/getatsinterviews.ts +++ b/src/models/operations/getatsinterviews.ts @@ -26,7 +26,13 @@ export type GetAtsInterviewsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -51,77 +57,6 @@ export type GetAtsInterviewsResponse = { result: models.GetAtsInterviewsPositiveResponse; }; -/** @internal */ -export const GetAtsInterviewsGlobals$inboundSchema: z.ZodType< - GetAtsInterviewsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsInterviewsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsInterviewsGlobals$outboundSchema: z.ZodType< - GetAtsInterviewsGlobals$Outbound, - z.ZodTypeDef, - GetAtsInterviewsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsGlobals$ { - /** @deprecated use `GetAtsInterviewsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsInterviewsGlobals$inboundSchema; - /** @deprecated use `GetAtsInterviewsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsInterviewsGlobals$outboundSchema; - /** @deprecated use `GetAtsInterviewsGlobals$Outbound` instead. */ - export type Outbound = GetAtsInterviewsGlobals$Outbound; -} - -export function getAtsInterviewsGlobalsToJSON( - getAtsInterviewsGlobals: GetAtsInterviewsGlobals, -): string { - return JSON.stringify( - GetAtsInterviewsGlobals$outboundSchema.parse(getAtsInterviewsGlobals), - ); -} - -export function getAtsInterviewsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsInterviewsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsInterviewsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsInterviewsRequest$inboundSchema: z.ZodType< - GetAtsInterviewsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - job_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsInterviewsRequest$Outbound = { cursor?: string | undefined; @@ -148,19 +83,6 @@ export const GetAtsInterviewsRequest$outboundSchema: z.ZodType< job_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsRequest$ { - /** @deprecated use `GetAtsInterviewsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsInterviewsRequest$inboundSchema; - /** @deprecated use `GetAtsInterviewsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsInterviewsRequest$outboundSchema; - /** @deprecated use `GetAtsInterviewsRequest$Outbound` instead. */ - export type Outbound = GetAtsInterviewsRequest$Outbound; -} - export function getAtsInterviewsRequestToJSON( getAtsInterviewsRequest: GetAtsInterviewsRequest, ): string { @@ -169,16 +91,6 @@ export function getAtsInterviewsRequestToJSON( ); } -export function getAtsInterviewsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsInterviewsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsInterviewsRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsInterviewsResponse$inboundSchema: z.ZodType< GetAtsInterviewsResponse, @@ -192,45 +104,6 @@ export const GetAtsInterviewsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsInterviewsResponse$Outbound = { - Result: models.GetAtsInterviewsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsInterviewsResponse$outboundSchema: z.ZodType< - GetAtsInterviewsResponse$Outbound, - z.ZodTypeDef, - GetAtsInterviewsResponse -> = z.object({ - result: models.GetAtsInterviewsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsInterviewsResponse$ { - /** @deprecated use `GetAtsInterviewsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsInterviewsResponse$inboundSchema; - /** @deprecated use `GetAtsInterviewsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsInterviewsResponse$outboundSchema; - /** @deprecated use `GetAtsInterviewsResponse$Outbound` instead. */ - export type Outbound = GetAtsInterviewsResponse$Outbound; -} - -export function getAtsInterviewsResponseToJSON( - getAtsInterviewsResponse: GetAtsInterviewsResponse, -): string { - return JSON.stringify( - GetAtsInterviewsResponse$outboundSchema.parse(getAtsInterviewsResponse), - ); -} - export function getAtsInterviewsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatsjobs.ts b/src/models/operations/getatsjobs.ts index 5294b11..1bb2d0f 100644 --- a/src/models/operations/getatsjobs.ts +++ b/src/models/operations/getatsjobs.ts @@ -26,7 +26,13 @@ export type GetAtsJobsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -87,85 +93,6 @@ export type GetAtsJobsResponse = { result: models.GetAtsJobsPositiveResponse; }; -/** @internal */ -export const GetAtsJobsGlobals$inboundSchema: z.ZodType< - GetAtsJobsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsJobsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsJobsGlobals$outboundSchema: z.ZodType< - GetAtsJobsGlobals$Outbound, - z.ZodTypeDef, - GetAtsJobsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsGlobals$ { - /** @deprecated use `GetAtsJobsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsGlobals$inboundSchema; - /** @deprecated use `GetAtsJobsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsGlobals$outboundSchema; - /** @deprecated use `GetAtsJobsGlobals$Outbound` instead. */ - export type Outbound = GetAtsJobsGlobals$Outbound; -} - -export function getAtsJobsGlobalsToJSON( - getAtsJobsGlobals: GetAtsJobsGlobals, -): string { - return JSON.stringify( - GetAtsJobsGlobals$outboundSchema.parse(getAtsJobsGlobals), - ); -} - -export function getAtsJobsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsJobsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsJobsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsJobsRequest$inboundSchema: z.ZodType< - GetAtsJobsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - job_codes: z.array(z.string()).optional(), - post_url: z.string().optional(), - statuses: z.array(z.string()).optional(), - employment_types: z.array(z.string()).optional(), - visibilities: z.array(z.string()).optional(), - remote_created_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - name_contains: z.string().optional(), -}); - /** @internal */ export type GetAtsJobsRequest$Outbound = { cursor?: string | undefined; @@ -204,19 +131,6 @@ export const GetAtsJobsRequest$outboundSchema: z.ZodType< name_contains: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsRequest$ { - /** @deprecated use `GetAtsJobsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsRequest$inboundSchema; - /** @deprecated use `GetAtsJobsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsRequest$outboundSchema; - /** @deprecated use `GetAtsJobsRequest$Outbound` instead. */ - export type Outbound = GetAtsJobsRequest$Outbound; -} - export function getAtsJobsRequestToJSON( getAtsJobsRequest: GetAtsJobsRequest, ): string { @@ -225,16 +139,6 @@ export function getAtsJobsRequestToJSON( ); } -export function getAtsJobsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsJobsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsJobsRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsJobsResponse$inboundSchema: z.ZodType< GetAtsJobsResponse, @@ -248,45 +152,6 @@ export const GetAtsJobsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsJobsResponse$Outbound = { - Result: models.GetAtsJobsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsJobsResponse$outboundSchema: z.ZodType< - GetAtsJobsResponse$Outbound, - z.ZodTypeDef, - GetAtsJobsResponse -> = z.object({ - result: models.GetAtsJobsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsJobsResponse$ { - /** @deprecated use `GetAtsJobsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsJobsResponse$inboundSchema; - /** @deprecated use `GetAtsJobsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsJobsResponse$outboundSchema; - /** @deprecated use `GetAtsJobsResponse$Outbound` instead. */ - export type Outbound = GetAtsJobsResponse$Outbound; -} - -export function getAtsJobsResponseToJSON( - getAtsJobsResponse: GetAtsJobsResponse, -): string { - return JSON.stringify( - GetAtsJobsResponse$outboundSchema.parse(getAtsJobsResponse), - ); -} - export function getAtsJobsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatsoffers.ts b/src/models/operations/getatsoffers.ts index ab3e319..ebe8310 100644 --- a/src/models/operations/getatsoffers.ts +++ b/src/models/operations/getatsoffers.ts @@ -26,7 +26,13 @@ export type GetAtsOffersRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,76 +53,6 @@ export type GetAtsOffersResponse = { result: models.GetAtsOffersPositiveResponse; }; -/** @internal */ -export const GetAtsOffersGlobals$inboundSchema: z.ZodType< - GetAtsOffersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsOffersGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsOffersGlobals$outboundSchema: z.ZodType< - GetAtsOffersGlobals$Outbound, - z.ZodTypeDef, - GetAtsOffersGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersGlobals$ { - /** @deprecated use `GetAtsOffersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersGlobals$inboundSchema; - /** @deprecated use `GetAtsOffersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersGlobals$outboundSchema; - /** @deprecated use `GetAtsOffersGlobals$Outbound` instead. */ - export type Outbound = GetAtsOffersGlobals$Outbound; -} - -export function getAtsOffersGlobalsToJSON( - getAtsOffersGlobals: GetAtsOffersGlobals, -): string { - return JSON.stringify( - GetAtsOffersGlobals$outboundSchema.parse(getAtsOffersGlobals), - ); -} - -export function getAtsOffersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsOffersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsOffersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsOffersRequest$inboundSchema: z.ZodType< - GetAtsOffersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsOffersRequest$Outbound = { cursor?: string | undefined; @@ -141,19 +77,6 @@ export const GetAtsOffersRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersRequest$ { - /** @deprecated use `GetAtsOffersRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersRequest$inboundSchema; - /** @deprecated use `GetAtsOffersRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersRequest$outboundSchema; - /** @deprecated use `GetAtsOffersRequest$Outbound` instead. */ - export type Outbound = GetAtsOffersRequest$Outbound; -} - export function getAtsOffersRequestToJSON( getAtsOffersRequest: GetAtsOffersRequest, ): string { @@ -162,16 +85,6 @@ export function getAtsOffersRequestToJSON( ); } -export function getAtsOffersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsOffersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsOffersRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsOffersResponse$inboundSchema: z.ZodType< GetAtsOffersResponse, @@ -185,45 +98,6 @@ export const GetAtsOffersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsOffersResponse$Outbound = { - Result: models.GetAtsOffersPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsOffersResponse$outboundSchema: z.ZodType< - GetAtsOffersResponse$Outbound, - z.ZodTypeDef, - GetAtsOffersResponse -> = z.object({ - result: models.GetAtsOffersPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsOffersResponse$ { - /** @deprecated use `GetAtsOffersResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsOffersResponse$inboundSchema; - /** @deprecated use `GetAtsOffersResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsOffersResponse$outboundSchema; - /** @deprecated use `GetAtsOffersResponse$Outbound` instead. */ - export type Outbound = GetAtsOffersResponse$Outbound; -} - -export function getAtsOffersResponseToJSON( - getAtsOffersResponse: GetAtsOffersResponse, -): string { - return JSON.stringify( - GetAtsOffersResponse$outboundSchema.parse(getAtsOffersResponse), - ); -} - export function getAtsOffersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatsrejectionreasons.ts b/src/models/operations/getatsrejectionreasons.ts index 5744e9c..efbb2b1 100644 --- a/src/models/operations/getatsrejectionreasons.ts +++ b/src/models/operations/getatsrejectionreasons.ts @@ -26,7 +26,13 @@ export type GetAtsRejectionReasonsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,78 +53,6 @@ export type GetAtsRejectionReasonsResponse = { result: models.GetAtsRejectionReasonsPositiveResponse; }; -/** @internal */ -export const GetAtsRejectionReasonsGlobals$inboundSchema: z.ZodType< - GetAtsRejectionReasonsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsRejectionReasonsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsRejectionReasonsGlobals$outboundSchema: z.ZodType< - GetAtsRejectionReasonsGlobals$Outbound, - z.ZodTypeDef, - GetAtsRejectionReasonsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsGlobals$ { - /** @deprecated use `GetAtsRejectionReasonsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsRejectionReasonsGlobals$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsRejectionReasonsGlobals$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsGlobals$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsGlobals$Outbound; -} - -export function getAtsRejectionReasonsGlobalsToJSON( - getAtsRejectionReasonsGlobals: GetAtsRejectionReasonsGlobals, -): string { - return JSON.stringify( - GetAtsRejectionReasonsGlobals$outboundSchema.parse( - getAtsRejectionReasonsGlobals, - ), - ); -} - -export function getAtsRejectionReasonsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsRejectionReasonsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsRejectionReasonsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsRejectionReasonsRequest$inboundSchema: z.ZodType< - GetAtsRejectionReasonsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsRejectionReasonsRequest$Outbound = { cursor?: string | undefined; @@ -143,19 +77,6 @@ export const GetAtsRejectionReasonsRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsRequest$ { - /** @deprecated use `GetAtsRejectionReasonsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsRejectionReasonsRequest$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsRejectionReasonsRequest$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsRequest$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsRequest$Outbound; -} - export function getAtsRejectionReasonsRequestToJSON( getAtsRejectionReasonsRequest: GetAtsRejectionReasonsRequest, ): string { @@ -166,16 +87,6 @@ export function getAtsRejectionReasonsRequestToJSON( ); } -export function getAtsRejectionReasonsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsRejectionReasonsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsRejectionReasonsRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsRejectionReasonsResponse$inboundSchema: z.ZodType< GetAtsRejectionReasonsResponse, @@ -189,47 +100,6 @@ export const GetAtsRejectionReasonsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsRejectionReasonsResponse$Outbound = { - Result: models.GetAtsRejectionReasonsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsRejectionReasonsResponse$outboundSchema: z.ZodType< - GetAtsRejectionReasonsResponse$Outbound, - z.ZodTypeDef, - GetAtsRejectionReasonsResponse -> = z.object({ - result: models.GetAtsRejectionReasonsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsRejectionReasonsResponse$ { - /** @deprecated use `GetAtsRejectionReasonsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsRejectionReasonsResponse$inboundSchema; - /** @deprecated use `GetAtsRejectionReasonsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsRejectionReasonsResponse$outboundSchema; - /** @deprecated use `GetAtsRejectionReasonsResponse$Outbound` instead. */ - export type Outbound = GetAtsRejectionReasonsResponse$Outbound; -} - -export function getAtsRejectionReasonsResponseToJSON( - getAtsRejectionReasonsResponse: GetAtsRejectionReasonsResponse, -): string { - return JSON.stringify( - GetAtsRejectionReasonsResponse$outboundSchema.parse( - getAtsRejectionReasonsResponse, - ), - ); -} - export function getAtsRejectionReasonsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatstags.ts b/src/models/operations/getatstags.ts index aad3c2e..80d09bf 100644 --- a/src/models/operations/getatstags.ts +++ b/src/models/operations/getatstags.ts @@ -26,7 +26,13 @@ export type GetAtsTagsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,76 +53,6 @@ export type GetAtsTagsResponse = { result: models.GetAtsTagsPositiveResponse; }; -/** @internal */ -export const GetAtsTagsGlobals$inboundSchema: z.ZodType< - GetAtsTagsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsTagsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsTagsGlobals$outboundSchema: z.ZodType< - GetAtsTagsGlobals$Outbound, - z.ZodTypeDef, - GetAtsTagsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsGlobals$ { - /** @deprecated use `GetAtsTagsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsGlobals$inboundSchema; - /** @deprecated use `GetAtsTagsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsGlobals$outboundSchema; - /** @deprecated use `GetAtsTagsGlobals$Outbound` instead. */ - export type Outbound = GetAtsTagsGlobals$Outbound; -} - -export function getAtsTagsGlobalsToJSON( - getAtsTagsGlobals: GetAtsTagsGlobals, -): string { - return JSON.stringify( - GetAtsTagsGlobals$outboundSchema.parse(getAtsTagsGlobals), - ); -} - -export function getAtsTagsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsTagsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsTagsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsTagsRequest$inboundSchema: z.ZodType< - GetAtsTagsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsTagsRequest$Outbound = { cursor?: string | undefined; @@ -141,19 +77,6 @@ export const GetAtsTagsRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsRequest$ { - /** @deprecated use `GetAtsTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsRequest$inboundSchema; - /** @deprecated use `GetAtsTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsRequest$outboundSchema; - /** @deprecated use `GetAtsTagsRequest$Outbound` instead. */ - export type Outbound = GetAtsTagsRequest$Outbound; -} - export function getAtsTagsRequestToJSON( getAtsTagsRequest: GetAtsTagsRequest, ): string { @@ -162,16 +85,6 @@ export function getAtsTagsRequestToJSON( ); } -export function getAtsTagsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsTagsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsTagsRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsTagsResponse$inboundSchema: z.ZodType< GetAtsTagsResponse, @@ -185,45 +98,6 @@ export const GetAtsTagsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsTagsResponse$Outbound = { - Result: models.GetAtsTagsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsTagsResponse$outboundSchema: z.ZodType< - GetAtsTagsResponse$Outbound, - z.ZodTypeDef, - GetAtsTagsResponse -> = z.object({ - result: models.GetAtsTagsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsTagsResponse$ { - /** @deprecated use `GetAtsTagsResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsTagsResponse$inboundSchema; - /** @deprecated use `GetAtsTagsResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsTagsResponse$outboundSchema; - /** @deprecated use `GetAtsTagsResponse$Outbound` instead. */ - export type Outbound = GetAtsTagsResponse$Outbound; -} - -export function getAtsTagsResponseToJSON( - getAtsTagsResponse: GetAtsTagsResponse, -): string { - return JSON.stringify( - GetAtsTagsResponse$outboundSchema.parse(getAtsTagsResponse), - ); -} - export function getAtsTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getatsusers.ts b/src/models/operations/getatsusers.ts index 9d32fa7..e51ba54 100644 --- a/src/models/operations/getatsusers.ts +++ b/src/models/operations/getatsusers.ts @@ -26,7 +26,13 @@ export type GetAtsUsersRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -51,77 +57,6 @@ export type GetAtsUsersResponse = { result: models.GetAtsUsersPositiveResponse; }; -/** @internal */ -export const GetAtsUsersGlobals$inboundSchema: z.ZodType< - GetAtsUsersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetAtsUsersGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetAtsUsersGlobals$outboundSchema: z.ZodType< - GetAtsUsersGlobals$Outbound, - z.ZodTypeDef, - GetAtsUsersGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersGlobals$ { - /** @deprecated use `GetAtsUsersGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersGlobals$inboundSchema; - /** @deprecated use `GetAtsUsersGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAtsUsersGlobals$outboundSchema; - /** @deprecated use `GetAtsUsersGlobals$Outbound` instead. */ - export type Outbound = GetAtsUsersGlobals$Outbound; -} - -export function getAtsUsersGlobalsToJSON( - getAtsUsersGlobals: GetAtsUsersGlobals, -): string { - return JSON.stringify( - GetAtsUsersGlobals$outboundSchema.parse(getAtsUsersGlobals), - ); -} - -export function getAtsUsersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsUsersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsUsersGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAtsUsersRequest$inboundSchema: z.ZodType< - GetAtsUsersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - emails: z.array(z.string()).optional(), -}); - /** @internal */ export type GetAtsUsersRequest$Outbound = { cursor?: string | undefined; @@ -148,19 +83,6 @@ export const GetAtsUsersRequest$outboundSchema: z.ZodType< emails: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersRequest$ { - /** @deprecated use `GetAtsUsersRequest$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersRequest$inboundSchema; - /** @deprecated use `GetAtsUsersRequest$outboundSchema` instead. */ - export const outboundSchema = GetAtsUsersRequest$outboundSchema; - /** @deprecated use `GetAtsUsersRequest$Outbound` instead. */ - export type Outbound = GetAtsUsersRequest$Outbound; -} - export function getAtsUsersRequestToJSON( getAtsUsersRequest: GetAtsUsersRequest, ): string { @@ -169,16 +91,6 @@ export function getAtsUsersRequestToJSON( ); } -export function getAtsUsersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAtsUsersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAtsUsersRequest' from JSON`, - ); -} - /** @internal */ export const GetAtsUsersResponse$inboundSchema: z.ZodType< GetAtsUsersResponse, @@ -192,45 +104,6 @@ export const GetAtsUsersResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetAtsUsersResponse$Outbound = { - Result: models.GetAtsUsersPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetAtsUsersResponse$outboundSchema: z.ZodType< - GetAtsUsersResponse$Outbound, - z.ZodTypeDef, - GetAtsUsersResponse -> = z.object({ - result: models.GetAtsUsersPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAtsUsersResponse$ { - /** @deprecated use `GetAtsUsersResponse$inboundSchema` instead. */ - export const inboundSchema = GetAtsUsersResponse$inboundSchema; - /** @deprecated use `GetAtsUsersResponse$outboundSchema` instead. */ - export const outboundSchema = GetAtsUsersResponse$outboundSchema; - /** @deprecated use `GetAtsUsersResponse$Outbound` instead. */ - export type Outbound = GetAtsUsersResponse$Outbound; -} - -export function getAtsUsersResponseToJSON( - getAtsUsersResponse: GetAtsUsersResponse, -): string { - return JSON.stringify( - GetAtsUsersResponse$outboundSchema.parse(getAtsUsersResponse), - ); -} - export function getAtsUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getconnectintegrationbytokentoken.ts b/src/models/operations/getconnectintegrationbytokentoken.ts index 80c3e89..aff3018 100644 --- a/src/models/operations/getconnectintegrationbytokentoken.ts +++ b/src/models/operations/getconnectintegrationbytokentoken.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetConnectIntegrationByTokenTokenRequest = { /** @@ -14,15 +11,6 @@ export type GetConnectIntegrationByTokenTokenRequest = { token: string; }; -/** @internal */ -export const GetConnectIntegrationByTokenTokenRequest$inboundSchema: z.ZodType< - GetConnectIntegrationByTokenTokenRequest, - z.ZodTypeDef, - unknown -> = z.object({ - token: z.string(), -}); - /** @internal */ export type GetConnectIntegrationByTokenTokenRequest$Outbound = { token: string; @@ -37,21 +25,6 @@ export const GetConnectIntegrationByTokenTokenRequest$outboundSchema: z.ZodType< token: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConnectIntegrationByTokenTokenRequest$ { - /** @deprecated use `GetConnectIntegrationByTokenTokenRequest$inboundSchema` instead. */ - export const inboundSchema = - GetConnectIntegrationByTokenTokenRequest$inboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenRequest$outboundSchema` instead. */ - export const outboundSchema = - GetConnectIntegrationByTokenTokenRequest$outboundSchema; - /** @deprecated use `GetConnectIntegrationByTokenTokenRequest$Outbound` instead. */ - export type Outbound = GetConnectIntegrationByTokenTokenRequest$Outbound; -} - export function getConnectIntegrationByTokenTokenRequestToJSON( getConnectIntegrationByTokenTokenRequest: GetConnectIntegrationByTokenTokenRequest, @@ -62,19 +35,3 @@ export function getConnectIntegrationByTokenTokenRequestToJSON( ), ); } - -export function getConnectIntegrationByTokenTokenRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetConnectIntegrationByTokenTokenRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetConnectIntegrationByTokenTokenRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetConnectIntegrationByTokenTokenRequest' from JSON`, - ); -} diff --git a/src/models/operations/gethrisabsences.ts b/src/models/operations/gethrisabsences.ts index e64d333..d666be8 100644 --- a/src/models/operations/gethrisabsences.ts +++ b/src/models/operations/gethrisabsences.ts @@ -26,7 +26,13 @@ export type GetHrisAbsencesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -63,82 +69,6 @@ export type GetHrisAbsencesResponse = { result: models.GetHrisAbsencesPositiveResponse; }; -/** @internal */ -export const GetHrisAbsencesGlobals$inboundSchema: z.ZodType< - GetHrisAbsencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisAbsencesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisAbsencesGlobals$outboundSchema: z.ZodType< - GetHrisAbsencesGlobals$Outbound, - z.ZodTypeDef, - GetHrisAbsencesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesGlobals$ { - /** @deprecated use `GetHrisAbsencesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsencesGlobals$inboundSchema; - /** @deprecated use `GetHrisAbsencesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsencesGlobals$outboundSchema; - /** @deprecated use `GetHrisAbsencesGlobals$Outbound` instead. */ - export type Outbound = GetHrisAbsencesGlobals$Outbound; -} - -export function getHrisAbsencesGlobalsToJSON( - getHrisAbsencesGlobals: GetHrisAbsencesGlobals, -): string { - return JSON.stringify( - GetHrisAbsencesGlobals$outboundSchema.parse(getHrisAbsencesGlobals), - ); -} - -export function getHrisAbsencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisAbsencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisAbsencesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisAbsencesRequest$inboundSchema: z.ZodType< - GetHrisAbsencesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - date_from: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - date_until: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - type_ids: z.array(z.string()).optional(), - employee_id: z.string().optional(), -}); - /** @internal */ export type GetHrisAbsencesRequest$Outbound = { cursor?: string | undefined; @@ -171,19 +101,6 @@ export const GetHrisAbsencesRequest$outboundSchema: z.ZodType< employee_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesRequest$ { - /** @deprecated use `GetHrisAbsencesRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsencesRequest$inboundSchema; - /** @deprecated use `GetHrisAbsencesRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsencesRequest$outboundSchema; - /** @deprecated use `GetHrisAbsencesRequest$Outbound` instead. */ - export type Outbound = GetHrisAbsencesRequest$Outbound; -} - export function getHrisAbsencesRequestToJSON( getHrisAbsencesRequest: GetHrisAbsencesRequest, ): string { @@ -192,16 +109,6 @@ export function getHrisAbsencesRequestToJSON( ); } -export function getHrisAbsencesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisAbsencesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisAbsencesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisAbsencesResponse$inboundSchema: z.ZodType< GetHrisAbsencesResponse, @@ -215,45 +122,6 @@ export const GetHrisAbsencesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisAbsencesResponse$Outbound = { - Result: models.GetHrisAbsencesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisAbsencesResponse$outboundSchema: z.ZodType< - GetHrisAbsencesResponse$Outbound, - z.ZodTypeDef, - GetHrisAbsencesResponse -> = z.object({ - result: models.GetHrisAbsencesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsencesResponse$ { - /** @deprecated use `GetHrisAbsencesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsencesResponse$inboundSchema; - /** @deprecated use `GetHrisAbsencesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsencesResponse$outboundSchema; - /** @deprecated use `GetHrisAbsencesResponse$Outbound` instead. */ - export type Outbound = GetHrisAbsencesResponse$Outbound; -} - -export function getHrisAbsencesResponseToJSON( - getHrisAbsencesResponse: GetHrisAbsencesResponse, -): string { - return JSON.stringify( - GetHrisAbsencesResponse$outboundSchema.parse(getHrisAbsencesResponse), - ); -} - export function getHrisAbsencesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisabsencetypes.ts b/src/models/operations/gethrisabsencetypes.ts index 70d10d5..7822176 100644 --- a/src/models/operations/gethrisabsencetypes.ts +++ b/src/models/operations/gethrisabsencetypes.ts @@ -26,7 +26,13 @@ export type GetHrisAbsenceTypesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,76 +53,6 @@ export type GetHrisAbsenceTypesResponse = { result: models.GetHrisAbsenceTypesPositiveResponse; }; -/** @internal */ -export const GetHrisAbsenceTypesGlobals$inboundSchema: z.ZodType< - GetHrisAbsenceTypesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisAbsenceTypesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisAbsenceTypesGlobals$outboundSchema: z.ZodType< - GetHrisAbsenceTypesGlobals$Outbound, - z.ZodTypeDef, - GetHrisAbsenceTypesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesGlobals$ { - /** @deprecated use `GetHrisAbsenceTypesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsenceTypesGlobals$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsenceTypesGlobals$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesGlobals$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesGlobals$Outbound; -} - -export function getHrisAbsenceTypesGlobalsToJSON( - getHrisAbsenceTypesGlobals: GetHrisAbsenceTypesGlobals, -): string { - return JSON.stringify( - GetHrisAbsenceTypesGlobals$outboundSchema.parse(getHrisAbsenceTypesGlobals), - ); -} - -export function getHrisAbsenceTypesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisAbsenceTypesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisAbsenceTypesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisAbsenceTypesRequest$inboundSchema: z.ZodType< - GetHrisAbsenceTypesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetHrisAbsenceTypesRequest$Outbound = { cursor?: string | undefined; @@ -141,19 +77,6 @@ export const GetHrisAbsenceTypesRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesRequest$ { - /** @deprecated use `GetHrisAbsenceTypesRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsenceTypesRequest$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsenceTypesRequest$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesRequest$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesRequest$Outbound; -} - export function getHrisAbsenceTypesRequestToJSON( getHrisAbsenceTypesRequest: GetHrisAbsenceTypesRequest, ): string { @@ -162,16 +85,6 @@ export function getHrisAbsenceTypesRequestToJSON( ); } -export function getHrisAbsenceTypesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisAbsenceTypesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisAbsenceTypesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisAbsenceTypesResponse$inboundSchema: z.ZodType< GetHrisAbsenceTypesResponse, @@ -185,47 +98,6 @@ export const GetHrisAbsenceTypesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisAbsenceTypesResponse$Outbound = { - Result: models.GetHrisAbsenceTypesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisAbsenceTypesResponse$outboundSchema: z.ZodType< - GetHrisAbsenceTypesResponse$Outbound, - z.ZodTypeDef, - GetHrisAbsenceTypesResponse -> = z.object({ - result: models.GetHrisAbsenceTypesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisAbsenceTypesResponse$ { - /** @deprecated use `GetHrisAbsenceTypesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisAbsenceTypesResponse$inboundSchema; - /** @deprecated use `GetHrisAbsenceTypesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisAbsenceTypesResponse$outboundSchema; - /** @deprecated use `GetHrisAbsenceTypesResponse$Outbound` instead. */ - export type Outbound = GetHrisAbsenceTypesResponse$Outbound; -} - -export function getHrisAbsenceTypesResponseToJSON( - getHrisAbsenceTypesResponse: GetHrisAbsenceTypesResponse, -): string { - return JSON.stringify( - GetHrisAbsenceTypesResponse$outboundSchema.parse( - getHrisAbsenceTypesResponse, - ), - ); -} - export function getHrisAbsenceTypesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisemployeedocumentcategories.ts b/src/models/operations/gethrisemployeedocumentcategories.ts index 288eda0..aa8cbf4 100644 --- a/src/models/operations/gethrisemployeedocumentcategories.ts +++ b/src/models/operations/gethrisemployeedocumentcategories.ts @@ -26,7 +26,13 @@ export type GetHrisEmployeeDocumentCategoriesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,87 +53,6 @@ export type GetHrisEmployeeDocumentCategoriesResponse = { result: models.GetHrisEmployeeDocumentCategoriesPositiveResponse; }; -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesGlobals$inboundSchema: z.ZodType< - GetHrisEmployeeDocumentCategoriesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisEmployeeDocumentCategoriesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesGlobals$outboundSchema: z.ZodType< - GetHrisEmployeeDocumentCategoriesGlobals$Outbound, - z.ZodTypeDef, - GetHrisEmployeeDocumentCategoriesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesGlobals$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesGlobals$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesGlobals$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesGlobals$Outbound` instead. */ - export type Outbound = GetHrisEmployeeDocumentCategoriesGlobals$Outbound; -} - -export function getHrisEmployeeDocumentCategoriesGlobalsToJSON( - getHrisEmployeeDocumentCategoriesGlobals: - GetHrisEmployeeDocumentCategoriesGlobals, -): string { - return JSON.stringify( - GetHrisEmployeeDocumentCategoriesGlobals$outboundSchema.parse( - getHrisEmployeeDocumentCategoriesGlobals, - ), - ); -} - -export function getHrisEmployeeDocumentCategoriesGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - GetHrisEmployeeDocumentCategoriesGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetHrisEmployeeDocumentCategoriesGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetHrisEmployeeDocumentCategoriesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesRequest$inboundSchema: z.ZodType< - GetHrisEmployeeDocumentCategoriesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetHrisEmployeeDocumentCategoriesRequest$Outbound = { cursor?: string | undefined; @@ -152,21 +77,6 @@ export const GetHrisEmployeeDocumentCategoriesRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesRequest$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesRequest$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesRequest$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesRequest$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesRequest$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesRequest$Outbound` instead. */ - export type Outbound = GetHrisEmployeeDocumentCategoriesRequest$Outbound; -} - export function getHrisEmployeeDocumentCategoriesRequestToJSON( getHrisEmployeeDocumentCategoriesRequest: GetHrisEmployeeDocumentCategoriesRequest, @@ -178,22 +88,6 @@ export function getHrisEmployeeDocumentCategoriesRequestToJSON( ); } -export function getHrisEmployeeDocumentCategoriesRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetHrisEmployeeDocumentCategoriesRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetHrisEmployeeDocumentCategoriesRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetHrisEmployeeDocumentCategoriesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisEmployeeDocumentCategoriesResponse$inboundSchema: z.ZodType< GetHrisEmployeeDocumentCategoriesResponse, @@ -208,52 +102,6 @@ export const GetHrisEmployeeDocumentCategoriesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisEmployeeDocumentCategoriesResponse$Outbound = { - Result: models.GetHrisEmployeeDocumentCategoriesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisEmployeeDocumentCategoriesResponse$outboundSchema: - z.ZodType< - GetHrisEmployeeDocumentCategoriesResponse$Outbound, - z.ZodTypeDef, - GetHrisEmployeeDocumentCategoriesResponse - > = z.object({ - result: - models.GetHrisEmployeeDocumentCategoriesPositiveResponse$outboundSchema, - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeeDocumentCategoriesResponse$ { - /** @deprecated use `GetHrisEmployeeDocumentCategoriesResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisEmployeeDocumentCategoriesResponse$inboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisEmployeeDocumentCategoriesResponse$outboundSchema; - /** @deprecated use `GetHrisEmployeeDocumentCategoriesResponse$Outbound` instead. */ - export type Outbound = GetHrisEmployeeDocumentCategoriesResponse$Outbound; -} - -export function getHrisEmployeeDocumentCategoriesResponseToJSON( - getHrisEmployeeDocumentCategoriesResponse: - GetHrisEmployeeDocumentCategoriesResponse, -): string { - return JSON.stringify( - GetHrisEmployeeDocumentCategoriesResponse$outboundSchema.parse( - getHrisEmployeeDocumentCategoriesResponse, - ), - ); -} - export function getHrisEmployeeDocumentCategoriesResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/gethrisemployees.ts b/src/models/operations/gethrisemployees.ts index 40a752a..006c0c0 100644 --- a/src/models/operations/gethrisemployees.ts +++ b/src/models/operations/gethrisemployees.ts @@ -26,7 +26,13 @@ export type GetHrisEmployeesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -83,83 +89,6 @@ export type GetHrisEmployeesResponse = { result: models.GetHrisEmployeesPositiveResponse; }; -/** @internal */ -export const GetHrisEmployeesGlobals$inboundSchema: z.ZodType< - GetHrisEmployeesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisEmployeesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisEmployeesGlobals$outboundSchema: z.ZodType< - GetHrisEmployeesGlobals$Outbound, - z.ZodTypeDef, - GetHrisEmployeesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesGlobals$ { - /** @deprecated use `GetHrisEmployeesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesGlobals$inboundSchema; - /** @deprecated use `GetHrisEmployeesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesGlobals$outboundSchema; - /** @deprecated use `GetHrisEmployeesGlobals$Outbound` instead. */ - export type Outbound = GetHrisEmployeesGlobals$Outbound; -} - -export function getHrisEmployeesGlobalsToJSON( - getHrisEmployeesGlobals: GetHrisEmployeesGlobals, -): string { - return JSON.stringify( - GetHrisEmployeesGlobals$outboundSchema.parse(getHrisEmployeesGlobals), - ); -} - -export function getHrisEmployeesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmployeesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmployeesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisEmployeesRequest$inboundSchema: z.ZodType< - GetHrisEmployeesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - employment_statuses: z.array(z.string()).optional(), - group_ids: z.array(z.string()).optional(), - legal_entity_ids: z.array(z.string()).optional(), - work_location_ids: z.array(z.string()).optional(), - work_emails: z.array(z.string()).optional(), - personal_emails: z.array(z.string()).optional(), - custom_fields: z.string().optional(), -}); - /** @internal */ export type GetHrisEmployeesRequest$Outbound = { cursor?: string | undefined; @@ -198,19 +127,6 @@ export const GetHrisEmployeesRequest$outboundSchema: z.ZodType< custom_fields: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesRequest$ { - /** @deprecated use `GetHrisEmployeesRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesRequest$inboundSchema; - /** @deprecated use `GetHrisEmployeesRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesRequest$outboundSchema; - /** @deprecated use `GetHrisEmployeesRequest$Outbound` instead. */ - export type Outbound = GetHrisEmployeesRequest$Outbound; -} - export function getHrisEmployeesRequestToJSON( getHrisEmployeesRequest: GetHrisEmployeesRequest, ): string { @@ -219,16 +135,6 @@ export function getHrisEmployeesRequestToJSON( ); } -export function getHrisEmployeesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmployeesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmployeesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisEmployeesResponse$inboundSchema: z.ZodType< GetHrisEmployeesResponse, @@ -242,45 +148,6 @@ export const GetHrisEmployeesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisEmployeesResponse$Outbound = { - Result: models.GetHrisEmployeesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisEmployeesResponse$outboundSchema: z.ZodType< - GetHrisEmployeesResponse$Outbound, - z.ZodTypeDef, - GetHrisEmployeesResponse -> = z.object({ - result: models.GetHrisEmployeesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesResponse$ { - /** @deprecated use `GetHrisEmployeesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesResponse$inboundSchema; - /** @deprecated use `GetHrisEmployeesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesResponse$outboundSchema; - /** @deprecated use `GetHrisEmployeesResponse$Outbound` instead. */ - export type Outbound = GetHrisEmployeesResponse$Outbound; -} - -export function getHrisEmployeesResponseToJSON( - getHrisEmployeesResponse: GetHrisEmployeesResponse, -): string { - return JSON.stringify( - GetHrisEmployeesResponse$outboundSchema.parse(getHrisEmployeesResponse), - ); -} - export function getHrisEmployeesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisemployeesform.ts b/src/models/operations/gethrisemployeesform.ts index 605cc89..c0ba872 100644 --- a/src/models/operations/gethrisemployeesform.ts +++ b/src/models/operations/gethrisemployeesform.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetHrisEmployeesFormGlobals = { /** @@ -16,69 +13,6 @@ export type GetHrisEmployeesFormGlobals = { export type GetHrisEmployeesFormRequest = {}; -/** @internal */ -export const GetHrisEmployeesFormGlobals$inboundSchema: z.ZodType< - GetHrisEmployeesFormGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisEmployeesFormGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisEmployeesFormGlobals$outboundSchema: z.ZodType< - GetHrisEmployeesFormGlobals$Outbound, - z.ZodTypeDef, - GetHrisEmployeesFormGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormGlobals$ { - /** @deprecated use `GetHrisEmployeesFormGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesFormGlobals$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesFormGlobals$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormGlobals$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormGlobals$Outbound; -} - -export function getHrisEmployeesFormGlobalsToJSON( - getHrisEmployeesFormGlobals: GetHrisEmployeesFormGlobals, -): string { - return JSON.stringify( - GetHrisEmployeesFormGlobals$outboundSchema.parse( - getHrisEmployeesFormGlobals, - ), - ); -} - -export function getHrisEmployeesFormGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmployeesFormGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmployeesFormGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisEmployeesFormRequest$inboundSchema: z.ZodType< - GetHrisEmployeesFormRequest, - z.ZodTypeDef, - unknown -> = z.object({}); - /** @internal */ export type GetHrisEmployeesFormRequest$Outbound = {}; @@ -89,19 +23,6 @@ export const GetHrisEmployeesFormRequest$outboundSchema: z.ZodType< GetHrisEmployeesFormRequest > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmployeesFormRequest$ { - /** @deprecated use `GetHrisEmployeesFormRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmployeesFormRequest$inboundSchema; - /** @deprecated use `GetHrisEmployeesFormRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmployeesFormRequest$outboundSchema; - /** @deprecated use `GetHrisEmployeesFormRequest$Outbound` instead. */ - export type Outbound = GetHrisEmployeesFormRequest$Outbound; -} - export function getHrisEmployeesFormRequestToJSON( getHrisEmployeesFormRequest: GetHrisEmployeesFormRequest, ): string { @@ -111,13 +32,3 @@ export function getHrisEmployeesFormRequestToJSON( ), ); } - -export function getHrisEmployeesFormRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmployeesFormRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmployeesFormRequest' from JSON`, - ); -} diff --git a/src/models/operations/gethrisemployments.ts b/src/models/operations/gethrisemployments.ts index 45c4823..598d9af 100644 --- a/src/models/operations/gethrisemployments.ts +++ b/src/models/operations/gethrisemployments.ts @@ -26,7 +26,13 @@ export type GetHrisEmploymentsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,76 +53,6 @@ export type GetHrisEmploymentsResponse = { result: models.GetHrisEmploymentsPositiveResponse; }; -/** @internal */ -export const GetHrisEmploymentsGlobals$inboundSchema: z.ZodType< - GetHrisEmploymentsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisEmploymentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisEmploymentsGlobals$outboundSchema: z.ZodType< - GetHrisEmploymentsGlobals$Outbound, - z.ZodTypeDef, - GetHrisEmploymentsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsGlobals$ { - /** @deprecated use `GetHrisEmploymentsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmploymentsGlobals$inboundSchema; - /** @deprecated use `GetHrisEmploymentsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmploymentsGlobals$outboundSchema; - /** @deprecated use `GetHrisEmploymentsGlobals$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsGlobals$Outbound; -} - -export function getHrisEmploymentsGlobalsToJSON( - getHrisEmploymentsGlobals: GetHrisEmploymentsGlobals, -): string { - return JSON.stringify( - GetHrisEmploymentsGlobals$outboundSchema.parse(getHrisEmploymentsGlobals), - ); -} - -export function getHrisEmploymentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmploymentsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmploymentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisEmploymentsRequest$inboundSchema: z.ZodType< - GetHrisEmploymentsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetHrisEmploymentsRequest$Outbound = { cursor?: string | undefined; @@ -141,19 +77,6 @@ export const GetHrisEmploymentsRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsRequest$ { - /** @deprecated use `GetHrisEmploymentsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmploymentsRequest$inboundSchema; - /** @deprecated use `GetHrisEmploymentsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmploymentsRequest$outboundSchema; - /** @deprecated use `GetHrisEmploymentsRequest$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsRequest$Outbound; -} - export function getHrisEmploymentsRequestToJSON( getHrisEmploymentsRequest: GetHrisEmploymentsRequest, ): string { @@ -162,16 +85,6 @@ export function getHrisEmploymentsRequestToJSON( ); } -export function getHrisEmploymentsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisEmploymentsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisEmploymentsRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisEmploymentsResponse$inboundSchema: z.ZodType< GetHrisEmploymentsResponse, @@ -185,45 +98,6 @@ export const GetHrisEmploymentsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisEmploymentsResponse$Outbound = { - Result: models.GetHrisEmploymentsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisEmploymentsResponse$outboundSchema: z.ZodType< - GetHrisEmploymentsResponse$Outbound, - z.ZodTypeDef, - GetHrisEmploymentsResponse -> = z.object({ - result: models.GetHrisEmploymentsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisEmploymentsResponse$ { - /** @deprecated use `GetHrisEmploymentsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisEmploymentsResponse$inboundSchema; - /** @deprecated use `GetHrisEmploymentsResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisEmploymentsResponse$outboundSchema; - /** @deprecated use `GetHrisEmploymentsResponse$Outbound` instead. */ - export type Outbound = GetHrisEmploymentsResponse$Outbound; -} - -export function getHrisEmploymentsResponseToJSON( - getHrisEmploymentsResponse: GetHrisEmploymentsResponse, -): string { - return JSON.stringify( - GetHrisEmploymentsResponse$outboundSchema.parse(getHrisEmploymentsResponse), - ); -} - export function getHrisEmploymentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisgroups.ts b/src/models/operations/gethrisgroups.ts index 164772a..56195d2 100644 --- a/src/models/operations/gethrisgroups.ts +++ b/src/models/operations/gethrisgroups.ts @@ -26,7 +26,13 @@ export type GetHrisGroupsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -59,78 +65,6 @@ export type GetHrisGroupsResponse = { result: models.GetHrisGroupsPositiveResponse; }; -/** @internal */ -export const GetHrisGroupsGlobals$inboundSchema: z.ZodType< - GetHrisGroupsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisGroupsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisGroupsGlobals$outboundSchema: z.ZodType< - GetHrisGroupsGlobals$Outbound, - z.ZodTypeDef, - GetHrisGroupsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsGlobals$ { - /** @deprecated use `GetHrisGroupsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsGlobals$inboundSchema; - /** @deprecated use `GetHrisGroupsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisGroupsGlobals$outboundSchema; - /** @deprecated use `GetHrisGroupsGlobals$Outbound` instead. */ - export type Outbound = GetHrisGroupsGlobals$Outbound; -} - -export function getHrisGroupsGlobalsToJSON( - getHrisGroupsGlobals: GetHrisGroupsGlobals, -): string { - return JSON.stringify( - GetHrisGroupsGlobals$outboundSchema.parse(getHrisGroupsGlobals), - ); -} - -export function getHrisGroupsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisGroupsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisGroupsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisGroupsRequest$inboundSchema: z.ZodType< - GetHrisGroupsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - types: z.array(z.string()).optional(), - name_contains: z.string().optional(), -}); - /** @internal */ export type GetHrisGroupsRequest$Outbound = { cursor?: string | undefined; @@ -159,19 +93,6 @@ export const GetHrisGroupsRequest$outboundSchema: z.ZodType< name_contains: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsRequest$ { - /** @deprecated use `GetHrisGroupsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsRequest$inboundSchema; - /** @deprecated use `GetHrisGroupsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisGroupsRequest$outboundSchema; - /** @deprecated use `GetHrisGroupsRequest$Outbound` instead. */ - export type Outbound = GetHrisGroupsRequest$Outbound; -} - export function getHrisGroupsRequestToJSON( getHrisGroupsRequest: GetHrisGroupsRequest, ): string { @@ -180,16 +101,6 @@ export function getHrisGroupsRequestToJSON( ); } -export function getHrisGroupsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisGroupsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisGroupsRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisGroupsResponse$inboundSchema: z.ZodType< GetHrisGroupsResponse, @@ -203,45 +114,6 @@ export const GetHrisGroupsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisGroupsResponse$Outbound = { - Result: models.GetHrisGroupsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisGroupsResponse$outboundSchema: z.ZodType< - GetHrisGroupsResponse$Outbound, - z.ZodTypeDef, - GetHrisGroupsResponse -> = z.object({ - result: models.GetHrisGroupsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisGroupsResponse$ { - /** @deprecated use `GetHrisGroupsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisGroupsResponse$inboundSchema; - /** @deprecated use `GetHrisGroupsResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisGroupsResponse$outboundSchema; - /** @deprecated use `GetHrisGroupsResponse$Outbound` instead. */ - export type Outbound = GetHrisGroupsResponse$Outbound; -} - -export function getHrisGroupsResponseToJSON( - getHrisGroupsResponse: GetHrisGroupsResponse, -): string { - return JSON.stringify( - GetHrisGroupsResponse$outboundSchema.parse(getHrisGroupsResponse), - ); -} - export function getHrisGroupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrislegalentities.ts b/src/models/operations/gethrislegalentities.ts index 83a73ab..1ecaac3 100644 --- a/src/models/operations/gethrislegalentities.ts +++ b/src/models/operations/gethrislegalentities.ts @@ -26,7 +26,13 @@ export type GetHrisLegalEntitiesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -51,79 +57,6 @@ export type GetHrisLegalEntitiesResponse = { result: models.GetHrisLegalEntitiesPositiveResponse; }; -/** @internal */ -export const GetHrisLegalEntitiesGlobals$inboundSchema: z.ZodType< - GetHrisLegalEntitiesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisLegalEntitiesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisLegalEntitiesGlobals$outboundSchema: z.ZodType< - GetHrisLegalEntitiesGlobals$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesGlobals$ { - /** @deprecated use `GetHrisLegalEntitiesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisLegalEntitiesGlobals$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisLegalEntitiesGlobals$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesGlobals$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesGlobals$Outbound; -} - -export function getHrisLegalEntitiesGlobalsToJSON( - getHrisLegalEntitiesGlobals: GetHrisLegalEntitiesGlobals, -): string { - return JSON.stringify( - GetHrisLegalEntitiesGlobals$outboundSchema.parse( - getHrisLegalEntitiesGlobals, - ), - ); -} - -export function getHrisLegalEntitiesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisLegalEntitiesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisLegalEntitiesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisLegalEntitiesRequest$inboundSchema: z.ZodType< - GetHrisLegalEntitiesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - name_contains: z.string().optional(), -}); - /** @internal */ export type GetHrisLegalEntitiesRequest$Outbound = { cursor?: string | undefined; @@ -150,19 +83,6 @@ export const GetHrisLegalEntitiesRequest$outboundSchema: z.ZodType< name_contains: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesRequest$ { - /** @deprecated use `GetHrisLegalEntitiesRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisLegalEntitiesRequest$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisLegalEntitiesRequest$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesRequest$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesRequest$Outbound; -} - export function getHrisLegalEntitiesRequestToJSON( getHrisLegalEntitiesRequest: GetHrisLegalEntitiesRequest, ): string { @@ -173,16 +93,6 @@ export function getHrisLegalEntitiesRequestToJSON( ); } -export function getHrisLegalEntitiesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisLegalEntitiesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisLegalEntitiesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisLegalEntitiesResponse$inboundSchema: z.ZodType< GetHrisLegalEntitiesResponse, @@ -196,47 +106,6 @@ export const GetHrisLegalEntitiesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisLegalEntitiesResponse$Outbound = { - Result: models.GetHrisLegalEntitiesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisLegalEntitiesResponse$outboundSchema: z.ZodType< - GetHrisLegalEntitiesResponse$Outbound, - z.ZodTypeDef, - GetHrisLegalEntitiesResponse -> = z.object({ - result: models.GetHrisLegalEntitiesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLegalEntitiesResponse$ { - /** @deprecated use `GetHrisLegalEntitiesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisLegalEntitiesResponse$inboundSchema; - /** @deprecated use `GetHrisLegalEntitiesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisLegalEntitiesResponse$outboundSchema; - /** @deprecated use `GetHrisLegalEntitiesResponse$Outbound` instead. */ - export type Outbound = GetHrisLegalEntitiesResponse$Outbound; -} - -export function getHrisLegalEntitiesResponseToJSON( - getHrisLegalEntitiesResponse: GetHrisLegalEntitiesResponse, -): string { - return JSON.stringify( - GetHrisLegalEntitiesResponse$outboundSchema.parse( - getHrisLegalEntitiesResponse, - ), - ); -} - export function getHrisLegalEntitiesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrislocations.ts b/src/models/operations/gethrislocations.ts index d8364fb..3a71988 100644 --- a/src/models/operations/gethrislocations.ts +++ b/src/models/operations/gethrislocations.ts @@ -26,7 +26,13 @@ export type GetHrisLocationsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -51,77 +57,6 @@ export type GetHrisLocationsResponse = { result: models.GetHrisLocationsPositiveResponse; }; -/** @internal */ -export const GetHrisLocationsGlobals$inboundSchema: z.ZodType< - GetHrisLocationsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisLocationsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisLocationsGlobals$outboundSchema: z.ZodType< - GetHrisLocationsGlobals$Outbound, - z.ZodTypeDef, - GetHrisLocationsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsGlobals$ { - /** @deprecated use `GetHrisLocationsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisLocationsGlobals$inboundSchema; - /** @deprecated use `GetHrisLocationsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisLocationsGlobals$outboundSchema; - /** @deprecated use `GetHrisLocationsGlobals$Outbound` instead. */ - export type Outbound = GetHrisLocationsGlobals$Outbound; -} - -export function getHrisLocationsGlobalsToJSON( - getHrisLocationsGlobals: GetHrisLocationsGlobals, -): string { - return JSON.stringify( - GetHrisLocationsGlobals$outboundSchema.parse(getHrisLocationsGlobals), - ); -} - -export function getHrisLocationsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisLocationsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisLocationsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisLocationsRequest$inboundSchema: z.ZodType< - GetHrisLocationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - name_contains: z.string().optional(), -}); - /** @internal */ export type GetHrisLocationsRequest$Outbound = { cursor?: string | undefined; @@ -148,19 +83,6 @@ export const GetHrisLocationsRequest$outboundSchema: z.ZodType< name_contains: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsRequest$ { - /** @deprecated use `GetHrisLocationsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisLocationsRequest$inboundSchema; - /** @deprecated use `GetHrisLocationsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisLocationsRequest$outboundSchema; - /** @deprecated use `GetHrisLocationsRequest$Outbound` instead. */ - export type Outbound = GetHrisLocationsRequest$Outbound; -} - export function getHrisLocationsRequestToJSON( getHrisLocationsRequest: GetHrisLocationsRequest, ): string { @@ -169,16 +91,6 @@ export function getHrisLocationsRequestToJSON( ); } -export function getHrisLocationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisLocationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisLocationsRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisLocationsResponse$inboundSchema: z.ZodType< GetHrisLocationsResponse, @@ -192,45 +104,6 @@ export const GetHrisLocationsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisLocationsResponse$Outbound = { - Result: models.GetHrisLocationsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisLocationsResponse$outboundSchema: z.ZodType< - GetHrisLocationsResponse$Outbound, - z.ZodTypeDef, - GetHrisLocationsResponse -> = z.object({ - result: models.GetHrisLocationsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisLocationsResponse$ { - /** @deprecated use `GetHrisLocationsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisLocationsResponse$inboundSchema; - /** @deprecated use `GetHrisLocationsResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisLocationsResponse$outboundSchema; - /** @deprecated use `GetHrisLocationsResponse$Outbound` instead. */ - export type Outbound = GetHrisLocationsResponse$Outbound; -} - -export function getHrisLocationsResponseToJSON( - getHrisLocationsResponse: GetHrisLocationsResponse, -): string { - return JSON.stringify( - GetHrisLocationsResponse$outboundSchema.parse(getHrisLocationsResponse), - ); -} - export function getHrisLocationsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisperformancereviewcycles.ts b/src/models/operations/gethrisperformancereviewcycles.ts index f672a81..a1d15c8 100644 --- a/src/models/operations/gethrisperformancereviewcycles.ts +++ b/src/models/operations/gethrisperformancereviewcycles.ts @@ -26,7 +26,13 @@ export type GetHrisPerformanceReviewCyclesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -47,81 +53,6 @@ export type GetHrisPerformanceReviewCyclesResponse = { result: models.GetHrisPerformanceReviewCyclesPositiveResponse; }; -/** @internal */ -export const GetHrisPerformanceReviewCyclesGlobals$inboundSchema: z.ZodType< - GetHrisPerformanceReviewCyclesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisPerformanceReviewCyclesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisPerformanceReviewCyclesGlobals$outboundSchema: z.ZodType< - GetHrisPerformanceReviewCyclesGlobals$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewCyclesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesGlobals$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesGlobals$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesGlobals$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesGlobals$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewCyclesGlobals$Outbound; -} - -export function getHrisPerformanceReviewCyclesGlobalsToJSON( - getHrisPerformanceReviewCyclesGlobals: GetHrisPerformanceReviewCyclesGlobals, -): string { - return JSON.stringify( - GetHrisPerformanceReviewCyclesGlobals$outboundSchema.parse( - getHrisPerformanceReviewCyclesGlobals, - ), - ); -} - -export function getHrisPerformanceReviewCyclesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetHrisPerformanceReviewCyclesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisPerformanceReviewCyclesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisPerformanceReviewCyclesRequest$inboundSchema: z.ZodType< - GetHrisPerformanceReviewCyclesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetHrisPerformanceReviewCyclesRequest$Outbound = { cursor?: string | undefined; @@ -146,21 +77,6 @@ export const GetHrisPerformanceReviewCyclesRequest$outboundSchema: z.ZodType< remote_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesRequest$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesRequest$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesRequest$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesRequest$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesRequest$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesRequest$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewCyclesRequest$Outbound; -} - export function getHrisPerformanceReviewCyclesRequestToJSON( getHrisPerformanceReviewCyclesRequest: GetHrisPerformanceReviewCyclesRequest, ): string { @@ -171,17 +87,6 @@ export function getHrisPerformanceReviewCyclesRequestToJSON( ); } -export function getHrisPerformanceReviewCyclesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetHrisPerformanceReviewCyclesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisPerformanceReviewCyclesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisPerformanceReviewCyclesResponse$inboundSchema: z.ZodType< GetHrisPerformanceReviewCyclesResponse, @@ -195,50 +100,6 @@ export const GetHrisPerformanceReviewCyclesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisPerformanceReviewCyclesResponse$Outbound = { - Result: models.GetHrisPerformanceReviewCyclesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisPerformanceReviewCyclesResponse$outboundSchema: z.ZodType< - GetHrisPerformanceReviewCyclesResponse$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewCyclesResponse -> = z.object({ - result: models.GetHrisPerformanceReviewCyclesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewCyclesResponse$ { - /** @deprecated use `GetHrisPerformanceReviewCyclesResponse$inboundSchema` instead. */ - export const inboundSchema = - GetHrisPerformanceReviewCyclesResponse$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewCyclesResponse$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewCyclesResponse$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewCyclesResponse$Outbound; -} - -export function getHrisPerformanceReviewCyclesResponseToJSON( - getHrisPerformanceReviewCyclesResponse: - GetHrisPerformanceReviewCyclesResponse, -): string { - return JSON.stringify( - GetHrisPerformanceReviewCyclesResponse$outboundSchema.parse( - getHrisPerformanceReviewCyclesResponse, - ), - ); -} - export function getHrisPerformanceReviewCyclesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethrisperformancereviews.ts b/src/models/operations/gethrisperformancereviews.ts index c0c15c5..cb416ad 100644 --- a/src/models/operations/gethrisperformancereviews.ts +++ b/src/models/operations/gethrisperformancereviews.ts @@ -26,7 +26,13 @@ export type GetHrisPerformanceReviewsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -63,81 +69,6 @@ export type GetHrisPerformanceReviewsResponse = { result: models.GetHrisPerformanceReviewsPositiveResponse; }; -/** @internal */ -export const GetHrisPerformanceReviewsGlobals$inboundSchema: z.ZodType< - GetHrisPerformanceReviewsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisPerformanceReviewsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisPerformanceReviewsGlobals$outboundSchema: z.ZodType< - GetHrisPerformanceReviewsGlobals$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsGlobals$ { - /** @deprecated use `GetHrisPerformanceReviewsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisPerformanceReviewsGlobals$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisPerformanceReviewsGlobals$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsGlobals$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewsGlobals$Outbound; -} - -export function getHrisPerformanceReviewsGlobalsToJSON( - getHrisPerformanceReviewsGlobals: GetHrisPerformanceReviewsGlobals, -): string { - return JSON.stringify( - GetHrisPerformanceReviewsGlobals$outboundSchema.parse( - getHrisPerformanceReviewsGlobals, - ), - ); -} - -export function getHrisPerformanceReviewsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisPerformanceReviewsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisPerformanceReviewsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisPerformanceReviewsRequest$inboundSchema: z.ZodType< - GetHrisPerformanceReviewsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - types: z.array(z.string()).optional(), - review_cycle_ids: z.array(z.string()).optional(), - reviewee_ids: z.array(z.string()).optional(), -}); - /** @internal */ export type GetHrisPerformanceReviewsRequest$Outbound = { cursor?: string | undefined; @@ -168,19 +99,6 @@ export const GetHrisPerformanceReviewsRequest$outboundSchema: z.ZodType< reviewee_ids: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsRequest$ { - /** @deprecated use `GetHrisPerformanceReviewsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisPerformanceReviewsRequest$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisPerformanceReviewsRequest$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsRequest$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewsRequest$Outbound; -} - export function getHrisPerformanceReviewsRequestToJSON( getHrisPerformanceReviewsRequest: GetHrisPerformanceReviewsRequest, ): string { @@ -191,16 +109,6 @@ export function getHrisPerformanceReviewsRequestToJSON( ); } -export function getHrisPerformanceReviewsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisPerformanceReviewsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisPerformanceReviewsRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisPerformanceReviewsResponse$inboundSchema: z.ZodType< GetHrisPerformanceReviewsResponse, @@ -214,48 +122,6 @@ export const GetHrisPerformanceReviewsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisPerformanceReviewsResponse$Outbound = { - Result: models.GetHrisPerformanceReviewsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisPerformanceReviewsResponse$outboundSchema: z.ZodType< - GetHrisPerformanceReviewsResponse$Outbound, - z.ZodTypeDef, - GetHrisPerformanceReviewsResponse -> = z.object({ - result: models.GetHrisPerformanceReviewsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisPerformanceReviewsResponse$ { - /** @deprecated use `GetHrisPerformanceReviewsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisPerformanceReviewsResponse$inboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsResponse$outboundSchema` instead. */ - export const outboundSchema = - GetHrisPerformanceReviewsResponse$outboundSchema; - /** @deprecated use `GetHrisPerformanceReviewsResponse$Outbound` instead. */ - export type Outbound = GetHrisPerformanceReviewsResponse$Outbound; -} - -export function getHrisPerformanceReviewsResponseToJSON( - getHrisPerformanceReviewsResponse: GetHrisPerformanceReviewsResponse, -): string { - return JSON.stringify( - GetHrisPerformanceReviewsResponse$outboundSchema.parse( - getHrisPerformanceReviewsResponse, - ), - ); -} - export function getHrisPerformanceReviewsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethristimeoffbalances.ts b/src/models/operations/gethristimeoffbalances.ts index d399ebb..eb6494d 100644 --- a/src/models/operations/gethristimeoffbalances.ts +++ b/src/models/operations/gethristimeoffbalances.ts @@ -26,7 +26,13 @@ export type GetHrisTimeOffBalancesRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -51,79 +57,6 @@ export type GetHrisTimeOffBalancesResponse = { result: models.GetHrisTimeOffBalancesPositiveResponse; }; -/** @internal */ -export const GetHrisTimeOffBalancesGlobals$inboundSchema: z.ZodType< - GetHrisTimeOffBalancesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisTimeOffBalancesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesGlobals$outboundSchema: z.ZodType< - GetHrisTimeOffBalancesGlobals$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesGlobals$ { - /** @deprecated use `GetHrisTimeOffBalancesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimeOffBalancesGlobals$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimeOffBalancesGlobals$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesGlobals$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesGlobals$Outbound; -} - -export function getHrisTimeOffBalancesGlobalsToJSON( - getHrisTimeOffBalancesGlobals: GetHrisTimeOffBalancesGlobals, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesGlobals$outboundSchema.parse( - getHrisTimeOffBalancesGlobals, - ), - ); -} - -export function getHrisTimeOffBalancesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisTimeOffBalancesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisTimeOffBalancesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisTimeOffBalancesRequest$inboundSchema: z.ZodType< - GetHrisTimeOffBalancesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - employee_id: z.string().optional(), -}); - /** @internal */ export type GetHrisTimeOffBalancesRequest$Outbound = { cursor?: string | undefined; @@ -150,19 +83,6 @@ export const GetHrisTimeOffBalancesRequest$outboundSchema: z.ZodType< employee_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesRequest$ { - /** @deprecated use `GetHrisTimeOffBalancesRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimeOffBalancesRequest$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimeOffBalancesRequest$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesRequest$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesRequest$Outbound; -} - export function getHrisTimeOffBalancesRequestToJSON( getHrisTimeOffBalancesRequest: GetHrisTimeOffBalancesRequest, ): string { @@ -173,16 +93,6 @@ export function getHrisTimeOffBalancesRequestToJSON( ); } -export function getHrisTimeOffBalancesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisTimeOffBalancesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisTimeOffBalancesRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisTimeOffBalancesResponse$inboundSchema: z.ZodType< GetHrisTimeOffBalancesResponse, @@ -196,47 +106,6 @@ export const GetHrisTimeOffBalancesResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisTimeOffBalancesResponse$Outbound = { - Result: models.GetHrisTimeOffBalancesPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisTimeOffBalancesResponse$outboundSchema: z.ZodType< - GetHrisTimeOffBalancesResponse$Outbound, - z.ZodTypeDef, - GetHrisTimeOffBalancesResponse -> = z.object({ - result: models.GetHrisTimeOffBalancesPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimeOffBalancesResponse$ { - /** @deprecated use `GetHrisTimeOffBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimeOffBalancesResponse$inboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimeOffBalancesResponse$outboundSchema; - /** @deprecated use `GetHrisTimeOffBalancesResponse$Outbound` instead. */ - export type Outbound = GetHrisTimeOffBalancesResponse$Outbound; -} - -export function getHrisTimeOffBalancesResponseToJSON( - getHrisTimeOffBalancesResponse: GetHrisTimeOffBalancesResponse, -): string { - return JSON.stringify( - GetHrisTimeOffBalancesResponse$outboundSchema.parse( - getHrisTimeOffBalancesResponse, - ), - ); -} - export function getHrisTimeOffBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gethristimesheets.ts b/src/models/operations/gethristimesheets.ts index 7d4be99..35c0d4f 100644 --- a/src/models/operations/gethristimesheets.ts +++ b/src/models/operations/gethristimesheets.ts @@ -26,7 +26,13 @@ export type GetHrisTimesheetsRequest = { */ page_size?: number | undefined; /** - * Filter the entries based on the modification date in format YYYY-MM-DDTHH:mm:ss.sssZ. Returns records where either the record itself OR its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). + * Filter the entries based on the modification date in format `YYYY-MM-DDTHH:mm:ss.sssZ`. Returns records where either the record itself **OR** its nested data has been updated since this timestamp, even if the record's own `changed_at` field remains unchanged. + * + * @remarks + * + * If you want to track entry deletion, also set the `include_deleted=true` query parameter, because otherwise, deleted entries will be hidden. + * + * For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior). */ updated_after?: Date | undefined; /** @@ -67,88 +73,6 @@ export type GetHrisTimesheetsResponse = { result: models.GetHrisTimesheetsPositiveResponse; }; -/** @internal */ -export const GetHrisTimesheetsGlobals$inboundSchema: z.ZodType< - GetHrisTimesheetsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type GetHrisTimesheetsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const GetHrisTimesheetsGlobals$outboundSchema: z.ZodType< - GetHrisTimesheetsGlobals$Outbound, - z.ZodTypeDef, - GetHrisTimesheetsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsGlobals$ { - /** @deprecated use `GetHrisTimesheetsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimesheetsGlobals$inboundSchema; - /** @deprecated use `GetHrisTimesheetsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimesheetsGlobals$outboundSchema; - /** @deprecated use `GetHrisTimesheetsGlobals$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsGlobals$Outbound; -} - -export function getHrisTimesheetsGlobalsToJSON( - getHrisTimesheetsGlobals: GetHrisTimesheetsGlobals, -): string { - return JSON.stringify( - GetHrisTimesheetsGlobals$outboundSchema.parse(getHrisTimesheetsGlobals), - ); -} - -export function getHrisTimesheetsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisTimesheetsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisTimesheetsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetHrisTimesheetsRequest$inboundSchema: z.ZodType< - GetHrisTimesheetsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - cursor: z.string().optional(), - page_size: z.number().int().default(100), - updated_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - include_deleted: z.boolean().default(false), - ids: z.array(z.string()).optional(), - remote_ids: z.array(z.string()).optional(), - employee_id: z.string().optional(), - started_before: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - started_after: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - ended_before: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - ended_after: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), -}); - /** @internal */ export type GetHrisTimesheetsRequest$Outbound = { cursor?: string | undefined; @@ -183,19 +107,6 @@ export const GetHrisTimesheetsRequest$outboundSchema: z.ZodType< ended_after: z.date().transform(v => v.toISOString()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsRequest$ { - /** @deprecated use `GetHrisTimesheetsRequest$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimesheetsRequest$inboundSchema; - /** @deprecated use `GetHrisTimesheetsRequest$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimesheetsRequest$outboundSchema; - /** @deprecated use `GetHrisTimesheetsRequest$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsRequest$Outbound; -} - export function getHrisTimesheetsRequestToJSON( getHrisTimesheetsRequest: GetHrisTimesheetsRequest, ): string { @@ -204,16 +115,6 @@ export function getHrisTimesheetsRequestToJSON( ); } -export function getHrisTimesheetsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetHrisTimesheetsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetHrisTimesheetsRequest' from JSON`, - ); -} - /** @internal */ export const GetHrisTimesheetsResponse$inboundSchema: z.ZodType< GetHrisTimesheetsResponse, @@ -227,45 +128,6 @@ export const GetHrisTimesheetsResponse$inboundSchema: z.ZodType< }); }); -/** @internal */ -export type GetHrisTimesheetsResponse$Outbound = { - Result: models.GetHrisTimesheetsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetHrisTimesheetsResponse$outboundSchema: z.ZodType< - GetHrisTimesheetsResponse$Outbound, - z.ZodTypeDef, - GetHrisTimesheetsResponse -> = z.object({ - result: models.GetHrisTimesheetsPositiveResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetHrisTimesheetsResponse$ { - /** @deprecated use `GetHrisTimesheetsResponse$inboundSchema` instead. */ - export const inboundSchema = GetHrisTimesheetsResponse$inboundSchema; - /** @deprecated use `GetHrisTimesheetsResponse$outboundSchema` instead. */ - export const outboundSchema = GetHrisTimesheetsResponse$outboundSchema; - /** @deprecated use `GetHrisTimesheetsResponse$Outbound` instead. */ - export type Outbound = GetHrisTimesheetsResponse$Outbound; -} - -export function getHrisTimesheetsResponseToJSON( - getHrisTimesheetsResponse: GetHrisTimesheetsResponse, -): string { - return JSON.stringify( - GetHrisTimesheetsResponse$outboundSchema.parse(getHrisTimesheetsResponse), - ); -} - export function getHrisTimesheetsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getintegrationsintegrationid.ts b/src/models/operations/getintegrationsintegrationid.ts index f287d41..58d4a7b 100644 --- a/src/models/operations/getintegrationsintegrationid.ts +++ b/src/models/operations/getintegrationsintegrationid.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetIntegrationsIntegrationIdRequest = { /** @@ -14,15 +11,6 @@ export type GetIntegrationsIntegrationIdRequest = { integration_id: string; }; -/** @internal */ -export const GetIntegrationsIntegrationIdRequest$inboundSchema: z.ZodType< - GetIntegrationsIntegrationIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string(), -}); - /** @internal */ export type GetIntegrationsIntegrationIdRequest$Outbound = { integration_id: string; @@ -37,21 +25,6 @@ export const GetIntegrationsIntegrationIdRequest$outboundSchema: z.ZodType< integration_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdRequest$ { - /** @deprecated use `GetIntegrationsIntegrationIdRequest$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdRequest$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdRequest$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdRequest$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdRequest$Outbound` instead. */ - export type Outbound = GetIntegrationsIntegrationIdRequest$Outbound; -} - export function getIntegrationsIntegrationIdRequestToJSON( getIntegrationsIntegrationIdRequest: GetIntegrationsIntegrationIdRequest, ): string { @@ -61,14 +34,3 @@ export function getIntegrationsIntegrationIdRequestToJSON( ), ); } - -export function getIntegrationsIntegrationIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetIntegrationsIntegrationIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetIntegrationsIntegrationIdRequest' from JSON`, - ); -} diff --git a/src/models/operations/getintegrationsintegrationidcustomfields.ts b/src/models/operations/getintegrationsintegrationidcustomfields.ts index b812a21..bd4a691 100644 --- a/src/models/operations/getintegrationsintegrationidcustomfields.ts +++ b/src/models/operations/getintegrationsintegrationidcustomfields.ts @@ -28,18 +28,6 @@ export type GetIntegrationsIntegrationIdCustomFieldsResponse = { result: models.GetIntegrationsIntegrationIdCustomFieldsPositiveResponse; }; -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsRequest$inboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string(), - cursor: z.string().optional(), - page_size: z.number().int().default(100), - }); - /** @internal */ export type GetIntegrationsIntegrationIdCustomFieldsRequest$Outbound = { integration_id: string; @@ -59,22 +47,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsRequest$outboundSchema: page_size: z.number().int().default(100), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsRequest$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsRequest$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsRequest$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsRequest$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsRequest$Outbound; -} - export function getIntegrationsIntegrationIdCustomFieldsRequestToJSON( getIntegrationsIntegrationIdCustomFieldsRequest: GetIntegrationsIntegrationIdCustomFieldsRequest, @@ -86,22 +58,6 @@ export function getIntegrationsIntegrationIdCustomFieldsRequestToJSON( ); } -export function getIntegrationsIntegrationIdCustomFieldsRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetIntegrationsIntegrationIdCustomFieldsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetIntegrationsIntegrationIdCustomFieldsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetIntegrationsIntegrationIdCustomFieldsRequest' from JSON`, - ); -} - /** @internal */ export const GetIntegrationsIntegrationIdCustomFieldsResponse$inboundSchema: z.ZodType< @@ -118,55 +74,6 @@ export const GetIntegrationsIntegrationIdCustomFieldsResponse$inboundSchema: }); }); -/** @internal */ -export type GetIntegrationsIntegrationIdCustomFieldsResponse$Outbound = { - Result: - models.GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdCustomFieldsResponse$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdCustomFieldsResponse$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdCustomFieldsResponse - > = z.object({ - result: - models - .GetIntegrationsIntegrationIdCustomFieldsPositiveResponse$outboundSchema, - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdCustomFieldsResponse$ { - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsResponse$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdCustomFieldsResponse$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsResponse$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdCustomFieldsResponse$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdCustomFieldsResponse$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdCustomFieldsResponse$Outbound; -} - -export function getIntegrationsIntegrationIdCustomFieldsResponseToJSON( - getIntegrationsIntegrationIdCustomFieldsResponse: - GetIntegrationsIntegrationIdCustomFieldsResponse, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdCustomFieldsResponse$outboundSchema.parse( - getIntegrationsIntegrationIdCustomFieldsResponse, - ), - ); -} - export function getIntegrationsIntegrationIdCustomFieldsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/getintegrationsintegrationidintegrationfields.ts b/src/models/operations/getintegrationsintegrationidintegrationfields.ts index 3118918..9e1b52d 100644 --- a/src/models/operations/getintegrationsintegrationidintegrationfields.ts +++ b/src/models/operations/getintegrationsintegrationidintegrationfields.ts @@ -28,18 +28,6 @@ export type GetIntegrationsIntegrationIdIntegrationFieldsResponse = { result: models.GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse; }; -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsRequest$inboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdIntegrationFieldsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string(), - cursor: z.string().optional(), - page_size: z.number().int().default(100), - }); - /** @internal */ export type GetIntegrationsIntegrationIdIntegrationFieldsRequest$Outbound = { integration_id: string; @@ -59,22 +47,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsRequest$outboundSchema page_size: z.number().int().default(100), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsRequest$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsRequest$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsRequest$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsRequest$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdIntegrationFieldsRequest$Outbound; -} - export function getIntegrationsIntegrationIdIntegrationFieldsRequestToJSON( getIntegrationsIntegrationIdIntegrationFieldsRequest: GetIntegrationsIntegrationIdIntegrationFieldsRequest, @@ -86,22 +58,6 @@ export function getIntegrationsIntegrationIdIntegrationFieldsRequestToJSON( ); } -export function getIntegrationsIntegrationIdIntegrationFieldsRequestFromJSON( - jsonString: string, -): SafeParseResult< - GetIntegrationsIntegrationIdIntegrationFieldsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - GetIntegrationsIntegrationIdIntegrationFieldsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetIntegrationsIntegrationIdIntegrationFieldsRequest' from JSON`, - ); -} - /** @internal */ export const GetIntegrationsIntegrationIdIntegrationFieldsResponse$inboundSchema: z.ZodType< @@ -118,55 +74,6 @@ export const GetIntegrationsIntegrationIdIntegrationFieldsResponse$inboundSchema }); }); -/** @internal */ -export type GetIntegrationsIntegrationIdIntegrationFieldsResponse$Outbound = { - Result: - models.GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$Outbound; -}; - -/** @internal */ -export const GetIntegrationsIntegrationIdIntegrationFieldsResponse$outboundSchema: - z.ZodType< - GetIntegrationsIntegrationIdIntegrationFieldsResponse$Outbound, - z.ZodTypeDef, - GetIntegrationsIntegrationIdIntegrationFieldsResponse - > = z.object({ - result: - models - .GetIntegrationsIntegrationIdIntegrationFieldsPositiveResponse$outboundSchema, - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIntegrationsIntegrationIdIntegrationFieldsResponse$ { - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsResponse$inboundSchema` instead. */ - export const inboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsResponse$inboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsResponse$outboundSchema` instead. */ - export const outboundSchema = - GetIntegrationsIntegrationIdIntegrationFieldsResponse$outboundSchema; - /** @deprecated use `GetIntegrationsIntegrationIdIntegrationFieldsResponse$Outbound` instead. */ - export type Outbound = - GetIntegrationsIntegrationIdIntegrationFieldsResponse$Outbound; -} - -export function getIntegrationsIntegrationIdIntegrationFieldsResponseToJSON( - getIntegrationsIntegrationIdIntegrationFieldsResponse: - GetIntegrationsIntegrationIdIntegrationFieldsResponse, -): string { - return JSON.stringify( - GetIntegrationsIntegrationIdIntegrationFieldsResponse$outboundSchema.parse( - getIntegrationsIntegrationIdIntegrationFieldsResponse, - ), - ); -} - export function getIntegrationsIntegrationIdIntegrationFieldsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/gettoolscategory.ts b/src/models/operations/gettoolscategory.ts index bddf14c..853bedf 100644 --- a/src/models/operations/gettoolscategory.ts +++ b/src/models/operations/gettoolscategory.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type GetToolsCategoryRequest = { @@ -15,15 +12,6 @@ export type GetToolsCategoryRequest = { category: models.GetToolsCategoryParameterCategory; }; -/** @internal */ -export const GetToolsCategoryRequest$inboundSchema: z.ZodType< - GetToolsCategoryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - category: models.GetToolsCategoryParameterCategory$inboundSchema, -}); - /** @internal */ export type GetToolsCategoryRequest$Outbound = { category: string; @@ -38,19 +26,6 @@ export const GetToolsCategoryRequest$outboundSchema: z.ZodType< category: models.GetToolsCategoryParameterCategory$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetToolsCategoryRequest$ { - /** @deprecated use `GetToolsCategoryRequest$inboundSchema` instead. */ - export const inboundSchema = GetToolsCategoryRequest$inboundSchema; - /** @deprecated use `GetToolsCategoryRequest$outboundSchema` instead. */ - export const outboundSchema = GetToolsCategoryRequest$outboundSchema; - /** @deprecated use `GetToolsCategoryRequest$Outbound` instead. */ - export type Outbound = GetToolsCategoryRequest$Outbound; -} - export function getToolsCategoryRequestToJSON( getToolsCategoryRequest: GetToolsCategoryRequest, ): string { @@ -58,13 +33,3 @@ export function getToolsCategoryRequestToJSON( GetToolsCategoryRequest$outboundSchema.parse(getToolsCategoryRequest), ); } - -export function getToolsCategoryRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetToolsCategoryRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetToolsCategoryRequest' from JSON`, - ); -} diff --git a/src/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldid.ts b/src/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldid.ts index f678e27..5fe66bc 100644 --- a/src/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldid.ts +++ b/src/models/operations/patchintegrationsintegrationidintegrationfieldsintegrationfieldid.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest = @@ -22,35 +18,16 @@ export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdReq /** * PATCH /integrations/:integration_id/integration-fields/:integration_field_id Request body */ - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: + body: models.PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody; }; -/** @internal */ -export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$inboundSchema: - z.ZodType< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string(), - integration_field_id: z.string(), - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody: - models - .PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody": - "patch_integrations_integration_id_integration_fields_integration_field_id_request_body", - }); - }); - /** @internal */ export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$Outbound = { integration_id: string; integration_field_id: string; - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody: + body: models.PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$Outbound; }; @@ -63,32 +40,11 @@ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRe > = z.object({ integration_id: z.string(), integration_field_id: z.string(), - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: + body: models .PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - patch_integrations_integration_id_integration_fields_integration_field_id_request_body: - "PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$ { - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$inboundSchema` instead. */ - export const inboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$inboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$outboundSchema` instead. */ - export const outboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$outboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$Outbound` instead. */ - export type Outbound = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$Outbound; -} - export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestToJSON( patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest: PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest, @@ -100,18 +56,3 @@ export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldI ), ); } - -export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestFromJSON( - jsonString: string, -): SafeParseResult< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatsapplicationsapplicationidattachments.ts b/src/models/operations/postatsapplicationsapplicationidattachments.ts index 623d1a0..e7ef131 100644 --- a/src/models/operations/postatsapplicationsapplicationidattachments.ts +++ b/src/models/operations/postatsapplicationsapplicationidattachments.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsApplicationsApplicationIdAttachmentsGlobals = { @@ -24,101 +20,13 @@ export type PostAtsApplicationsApplicationIdAttachmentsRequest = { /** * POST /ats/applications/:application_id/attachments Request body */ - post_ats_applications_application_id_attachments_request_body: - models.PostAtsApplicationsApplicationIdAttachmentsRequestBody; + body: models.PostAtsApplicationsApplicationIdAttachmentsRequestBody; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsApplicationsApplicationIdAttachmentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsGlobals$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdAttachmentsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsGlobals$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsGlobals$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsGlobals$Outbound; -} - -export function postAtsApplicationsApplicationIdAttachmentsGlobalsToJSON( - postAtsApplicationsApplicationIdAttachmentsGlobals: - PostAtsApplicationsApplicationIdAttachmentsGlobals, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdAttachmentsGlobals$outboundSchema.parse( - postAtsApplicationsApplicationIdAttachmentsGlobals, - ), - ); -} - -export function postAtsApplicationsApplicationIdAttachmentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - PostAtsApplicationsApplicationIdAttachmentsRequestBody: - models - .PostAtsApplicationsApplicationIdAttachmentsRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsApplicationsApplicationIdAttachmentsRequestBody": - "post_ats_applications_application_id_attachments_request_body", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequest$Outbound = { application_id: string; - PostAtsApplicationsApplicationIdAttachmentsRequestBody: - models.PostAtsApplicationsApplicationIdAttachmentsRequestBody$Outbound; + body: models.PostAtsApplicationsApplicationIdAttachmentsRequestBody$Outbound; }; /** @internal */ @@ -129,32 +37,11 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema: PostAtsApplicationsApplicationIdAttachmentsRequest > = z.object({ application_id: z.string(), - post_ats_applications_application_id_attachments_request_body: + body: models .PostAtsApplicationsApplicationIdAttachmentsRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_applications_application_id_attachments_request_body: - "PostAtsApplicationsApplicationIdAttachmentsRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequest$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequest$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequest$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequest$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestToJSON( postAtsApplicationsApplicationIdAttachmentsRequest: PostAtsApplicationsApplicationIdAttachmentsRequest, @@ -165,19 +52,3 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestToJSON( ), ); } - -export function postAtsApplicationsApplicationIdAttachmentsRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatsapplicationsapplicationidnotes.ts b/src/models/operations/postatsapplicationsapplicationidnotes.ts index b958caf..2aeb59b 100644 --- a/src/models/operations/postatsapplicationsapplicationidnotes.ts +++ b/src/models/operations/postatsapplicationsapplicationidnotes.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsApplicationsApplicationIdNotesGlobals = { @@ -24,99 +20,13 @@ export type PostAtsApplicationsApplicationIdNotesRequest = { /** * POST /ats/applications/:application_id/notes Request body */ - post_ats_applications_application_id_notes_request_body: - models.PostAtsApplicationsApplicationIdNotesRequestBody; + body: models.PostAtsApplicationsApplicationIdNotesRequestBody; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesGlobals$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsApplicationsApplicationIdNotesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesGlobals$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesGlobals$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdNotesGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesGlobals$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesGlobals$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesGlobals$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesGlobals$Outbound` instead. */ - export type Outbound = PostAtsApplicationsApplicationIdNotesGlobals$Outbound; -} - -export function postAtsApplicationsApplicationIdNotesGlobalsToJSON( - postAtsApplicationsApplicationIdNotesGlobals: - PostAtsApplicationsApplicationIdNotesGlobals, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdNotesGlobals$outboundSchema.parse( - postAtsApplicationsApplicationIdNotesGlobals, - ), - ); -} - -export function postAtsApplicationsApplicationIdNotesGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequest$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - PostAtsApplicationsApplicationIdNotesRequestBody: - models.PostAtsApplicationsApplicationIdNotesRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsApplicationsApplicationIdNotesRequestBody": - "post_ats_applications_application_id_notes_request_body", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequest$Outbound = { application_id: string; - PostAtsApplicationsApplicationIdNotesRequestBody: - models.PostAtsApplicationsApplicationIdNotesRequestBody$Outbound; + body: models.PostAtsApplicationsApplicationIdNotesRequestBody$Outbound; }; /** @internal */ @@ -127,30 +37,10 @@ export const PostAtsApplicationsApplicationIdNotesRequest$outboundSchema: PostAtsApplicationsApplicationIdNotesRequest > = z.object({ application_id: z.string(), - post_ats_applications_application_id_notes_request_body: + body: models.PostAtsApplicationsApplicationIdNotesRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_applications_application_id_notes_request_body: - "PostAtsApplicationsApplicationIdNotesRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequest$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequest$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequest$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequest$Outbound` instead. */ - export type Outbound = PostAtsApplicationsApplicationIdNotesRequest$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestToJSON( postAtsApplicationsApplicationIdNotesRequest: PostAtsApplicationsApplicationIdNotesRequest, @@ -161,19 +51,3 @@ export function postAtsApplicationsApplicationIdNotesRequestToJSON( ), ); } - -export function postAtsApplicationsApplicationIdNotesRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatsapplicationsapplicationidreject.ts b/src/models/operations/postatsapplicationsapplicationidreject.ts index 746dc8b..8841831 100644 --- a/src/models/operations/postatsapplicationsapplicationidreject.ts +++ b/src/models/operations/postatsapplicationsapplicationidreject.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsApplicationsApplicationIdRejectGlobals = { @@ -24,99 +20,13 @@ export type PostAtsApplicationsApplicationIdRejectRequest = { /** * POST /ats/applications/:application_id/reject Request body */ - post_ats_applications_application_id_reject_request_body: - models.PostAtsApplicationsApplicationIdRejectRequestBody; + body: models.PostAtsApplicationsApplicationIdRejectRequestBody; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectGlobals$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsApplicationsApplicationIdRejectGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectGlobals$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectGlobals$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdRejectGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectGlobals$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectGlobals$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectGlobals$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectGlobals$Outbound` instead. */ - export type Outbound = PostAtsApplicationsApplicationIdRejectGlobals$Outbound; -} - -export function postAtsApplicationsApplicationIdRejectGlobalsToJSON( - postAtsApplicationsApplicationIdRejectGlobals: - PostAtsApplicationsApplicationIdRejectGlobals, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdRejectGlobals$outboundSchema.parse( - postAtsApplicationsApplicationIdRejectGlobals, - ), - ); -} - -export function postAtsApplicationsApplicationIdRejectGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequest$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - PostAtsApplicationsApplicationIdRejectRequestBody: - models.PostAtsApplicationsApplicationIdRejectRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsApplicationsApplicationIdRejectRequestBody": - "post_ats_applications_application_id_reject_request_body", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequest$Outbound = { application_id: string; - PostAtsApplicationsApplicationIdRejectRequestBody: - models.PostAtsApplicationsApplicationIdRejectRequestBody$Outbound; + body: models.PostAtsApplicationsApplicationIdRejectRequestBody$Outbound; }; /** @internal */ @@ -127,30 +37,10 @@ export const PostAtsApplicationsApplicationIdRejectRequest$outboundSchema: PostAtsApplicationsApplicationIdRejectRequest > = z.object({ application_id: z.string(), - post_ats_applications_application_id_reject_request_body: + body: models.PostAtsApplicationsApplicationIdRejectRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_applications_application_id_reject_request_body: - "PostAtsApplicationsApplicationIdRejectRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequest$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequest$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequest$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequest$Outbound` instead. */ - export type Outbound = PostAtsApplicationsApplicationIdRejectRequest$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestToJSON( postAtsApplicationsApplicationIdRejectRequest: PostAtsApplicationsApplicationIdRejectRequest, @@ -161,19 +51,3 @@ export function postAtsApplicationsApplicationIdRejectRequestToJSON( ), ); } - -export function postAtsApplicationsApplicationIdRejectRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatsapplicationsapplicationidresultlinks.ts b/src/models/operations/postatsapplicationsapplicationidresultlinks.ts index ca647fb..444563e 100644 --- a/src/models/operations/postatsapplicationsapplicationidresultlinks.ts +++ b/src/models/operations/postatsapplicationsapplicationidresultlinks.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsApplicationsApplicationIdResultLinksGlobals = { @@ -24,101 +20,13 @@ export type PostAtsApplicationsApplicationIdResultLinksRequest = { /** * POST /ats/applications/:application_id/result-links Request body */ - post_ats_applications_application_id_result_links_request_body: - models.PostAtsApplicationsApplicationIdResultLinksRequestBody; + body: models.PostAtsApplicationsApplicationIdResultLinksRequestBody; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksGlobals$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsApplicationsApplicationIdResultLinksGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksGlobals$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksGlobals$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdResultLinksGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksGlobals$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksGlobals$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksGlobals$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksGlobals$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksGlobals$Outbound; -} - -export function postAtsApplicationsApplicationIdResultLinksGlobalsToJSON( - postAtsApplicationsApplicationIdResultLinksGlobals: - PostAtsApplicationsApplicationIdResultLinksGlobals, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdResultLinksGlobals$outboundSchema.parse( - postAtsApplicationsApplicationIdResultLinksGlobals, - ), - ); -} - -export function postAtsApplicationsApplicationIdResultLinksGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequest$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - PostAtsApplicationsApplicationIdResultLinksRequestBody: - models - .PostAtsApplicationsApplicationIdResultLinksRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsApplicationsApplicationIdResultLinksRequestBody": - "post_ats_applications_application_id_result_links_request_body", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequest$Outbound = { application_id: string; - PostAtsApplicationsApplicationIdResultLinksRequestBody: - models.PostAtsApplicationsApplicationIdResultLinksRequestBody$Outbound; + body: models.PostAtsApplicationsApplicationIdResultLinksRequestBody$Outbound; }; /** @internal */ @@ -129,32 +37,11 @@ export const PostAtsApplicationsApplicationIdResultLinksRequest$outboundSchema: PostAtsApplicationsApplicationIdResultLinksRequest > = z.object({ application_id: z.string(), - post_ats_applications_application_id_result_links_request_body: + body: models .PostAtsApplicationsApplicationIdResultLinksRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_applications_application_id_result_links_request_body: - "PostAtsApplicationsApplicationIdResultLinksRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequest$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequest$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequest$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequest$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequest$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestToJSON( postAtsApplicationsApplicationIdResultLinksRequest: PostAtsApplicationsApplicationIdResultLinksRequest, @@ -165,19 +52,3 @@ export function postAtsApplicationsApplicationIdResultLinksRequestToJSON( ), ); } - -export function postAtsApplicationsApplicationIdResultLinksRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatscandidates.ts b/src/models/operations/postatscandidates.ts index 4e583a7..3c4dd81 100644 --- a/src/models/operations/postatscandidates.ts +++ b/src/models/operations/postatscandidates.ts @@ -2,68 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PostAtsCandidatesGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PostAtsCandidatesGlobals$inboundSchema: z.ZodType< - PostAtsCandidatesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostAtsCandidatesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesGlobals$outboundSchema: z.ZodType< - PostAtsCandidatesGlobals$Outbound, - z.ZodTypeDef, - PostAtsCandidatesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesGlobals$ { - /** @deprecated use `PostAtsCandidatesGlobals$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesGlobals$inboundSchema; - /** @deprecated use `PostAtsCandidatesGlobals$outboundSchema` instead. */ - export const outboundSchema = PostAtsCandidatesGlobals$outboundSchema; - /** @deprecated use `PostAtsCandidatesGlobals$Outbound` instead. */ - export type Outbound = PostAtsCandidatesGlobals$Outbound; -} - -export function postAtsCandidatesGlobalsToJSON( - postAtsCandidatesGlobals: PostAtsCandidatesGlobals, -): string { - return JSON.stringify( - PostAtsCandidatesGlobals$outboundSchema.parse(postAtsCandidatesGlobals), - ); -} - -export function postAtsCandidatesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostAtsCandidatesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesGlobals' from JSON`, - ); -} diff --git a/src/models/operations/postatscandidatescandidateidattachments.ts b/src/models/operations/postatscandidatescandidateidattachments.ts index 154ef88..8cf72e9 100644 --- a/src/models/operations/postatscandidatescandidateidattachments.ts +++ b/src/models/operations/postatscandidatescandidateidattachments.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsCandidatesCandidateIdAttachmentsGlobals = { @@ -24,100 +20,13 @@ export type PostAtsCandidatesCandidateIdAttachmentsRequest = { /** * POST /ats/candidates/:candidate_id/attachments Request body */ - post_ats_candidates_candidate_id_attachments_request_body: - models.PostAtsCandidatesCandidateIdAttachmentsRequestBody; + body: models.PostAtsCandidatesCandidateIdAttachmentsRequestBody; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsCandidatesCandidateIdAttachmentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsGlobals$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdAttachmentsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsGlobals$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsGlobals$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsGlobals$Outbound; -} - -export function postAtsCandidatesCandidateIdAttachmentsGlobalsToJSON( - postAtsCandidatesCandidateIdAttachmentsGlobals: - PostAtsCandidatesCandidateIdAttachmentsGlobals, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdAttachmentsGlobals$outboundSchema.parse( - postAtsCandidatesCandidateIdAttachmentsGlobals, - ), - ); -} - -export function postAtsCandidatesCandidateIdAttachmentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - candidate_id: z.string(), - PostAtsCandidatesCandidateIdAttachmentsRequestBody: - models.PostAtsCandidatesCandidateIdAttachmentsRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsCandidatesCandidateIdAttachmentsRequestBody": - "post_ats_candidates_candidate_id_attachments_request_body", - }); - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequest$Outbound = { candidate_id: string; - PostAtsCandidatesCandidateIdAttachmentsRequestBody: - models.PostAtsCandidatesCandidateIdAttachmentsRequestBody$Outbound; + body: models.PostAtsCandidatesCandidateIdAttachmentsRequestBody$Outbound; }; /** @internal */ @@ -128,31 +37,10 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema: PostAtsCandidatesCandidateIdAttachmentsRequest > = z.object({ candidate_id: z.string(), - post_ats_candidates_candidate_id_attachments_request_body: + body: models.PostAtsCandidatesCandidateIdAttachmentsRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_candidates_candidate_id_attachments_request_body: - "PostAtsCandidatesCandidateIdAttachmentsRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequest$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequest$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequest$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequest$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestToJSON( postAtsCandidatesCandidateIdAttachmentsRequest: PostAtsCandidatesCandidateIdAttachmentsRequest, @@ -163,19 +51,3 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestToJSON( ), ); } - -export function postAtsCandidatesCandidateIdAttachmentsRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatscandidatescandidateidresultlinks.ts b/src/models/operations/postatscandidatescandidateidresultlinks.ts index 51005eb..7d4d613 100644 --- a/src/models/operations/postatscandidatescandidateidresultlinks.ts +++ b/src/models/operations/postatscandidatescandidateidresultlinks.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsCandidatesCandidateIdResultLinksGlobals = { @@ -24,100 +20,13 @@ export type PostAtsCandidatesCandidateIdResultLinksRequest = { /** * POST /ats/candidates/:candidate_id/result-links Request body */ - post_ats_candidates_candidate_id_result_links_request_body: - models.PostAtsCandidatesCandidateIdResultLinksRequestBody; + body: models.PostAtsCandidatesCandidateIdResultLinksRequestBody; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksGlobals$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostAtsCandidatesCandidateIdResultLinksGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksGlobals$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksGlobals$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdResultLinksGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksGlobals$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksGlobals$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksGlobals$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksGlobals$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksGlobals$Outbound; -} - -export function postAtsCandidatesCandidateIdResultLinksGlobalsToJSON( - postAtsCandidatesCandidateIdResultLinksGlobals: - PostAtsCandidatesCandidateIdResultLinksGlobals, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdResultLinksGlobals$outboundSchema.parse( - postAtsCandidatesCandidateIdResultLinksGlobals, - ), - ); -} - -export function postAtsCandidatesCandidateIdResultLinksGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequest$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequest, - z.ZodTypeDef, - unknown - > = z.object({ - candidate_id: z.string(), - PostAtsCandidatesCandidateIdResultLinksRequestBody: - models.PostAtsCandidatesCandidateIdResultLinksRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostAtsCandidatesCandidateIdResultLinksRequestBody": - "post_ats_candidates_candidate_id_result_links_request_body", - }); - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequest$Outbound = { candidate_id: string; - PostAtsCandidatesCandidateIdResultLinksRequestBody: - models.PostAtsCandidatesCandidateIdResultLinksRequestBody$Outbound; + body: models.PostAtsCandidatesCandidateIdResultLinksRequestBody$Outbound; }; /** @internal */ @@ -128,31 +37,10 @@ export const PostAtsCandidatesCandidateIdResultLinksRequest$outboundSchema: PostAtsCandidatesCandidateIdResultLinksRequest > = z.object({ candidate_id: z.string(), - post_ats_candidates_candidate_id_result_links_request_body: + body: models.PostAtsCandidatesCandidateIdResultLinksRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_ats_candidates_candidate_id_result_links_request_body: - "PostAtsCandidatesCandidateIdResultLinksRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequest$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequest$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequest$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequest$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequest$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestToJSON( postAtsCandidatesCandidateIdResultLinksRequest: PostAtsCandidatesCandidateIdResultLinksRequest, @@ -163,19 +51,3 @@ export function postAtsCandidatesCandidateIdResultLinksRequestToJSON( ), ); } - -export function postAtsCandidatesCandidateIdResultLinksRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatscandidatescandidateidtags.ts b/src/models/operations/postatscandidatescandidateidtags.ts index e17eb41..6896c8f 100644 --- a/src/models/operations/postatscandidatescandidateidtags.ts +++ b/src/models/operations/postatscandidatescandidateidtags.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsCandidatesCandidateIdTagsGlobals = { @@ -24,96 +20,13 @@ export type PostAtsCandidatesCandidateIdTagsRequest = { /** * POST /ats/candidates/:candidate_id/tags Request body */ - post_ats_candidates_candidate_id_tags_request_body: - models.PostAtsCandidatesCandidateIdTagsRequestBody; + body: models.PostAtsCandidatesCandidateIdTagsRequestBody; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsGlobals$inboundSchema: z.ZodType< - PostAtsCandidatesCandidateIdTagsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostAtsCandidatesCandidateIdTagsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsGlobals$outboundSchema: z.ZodType< - PostAtsCandidatesCandidateIdTagsGlobals$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdTagsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsGlobals$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsGlobals$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsGlobals$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsGlobals$Outbound` instead. */ - export type Outbound = PostAtsCandidatesCandidateIdTagsGlobals$Outbound; -} - -export function postAtsCandidatesCandidateIdTagsGlobalsToJSON( - postAtsCandidatesCandidateIdTagsGlobals: - PostAtsCandidatesCandidateIdTagsGlobals, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdTagsGlobals$outboundSchema.parse( - postAtsCandidatesCandidateIdTagsGlobals, - ), - ); -} - -export function postAtsCandidatesCandidateIdTagsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequest$inboundSchema: z.ZodType< - PostAtsCandidatesCandidateIdTagsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - candidate_id: z.string(), - PostAtsCandidatesCandidateIdTagsRequestBody: - models.PostAtsCandidatesCandidateIdTagsRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "PostAtsCandidatesCandidateIdTagsRequestBody": - "post_ats_candidates_candidate_id_tags_request_body", - }); -}); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequest$Outbound = { candidate_id: string; - PostAtsCandidatesCandidateIdTagsRequestBody: - models.PostAtsCandidatesCandidateIdTagsRequestBody$Outbound; + body: models.PostAtsCandidatesCandidateIdTagsRequestBody$Outbound; }; /** @internal */ @@ -123,30 +36,9 @@ export const PostAtsCandidatesCandidateIdTagsRequest$outboundSchema: z.ZodType< PostAtsCandidatesCandidateIdTagsRequest > = z.object({ candidate_id: z.string(), - post_ats_candidates_candidate_id_tags_request_body: - models.PostAtsCandidatesCandidateIdTagsRequestBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - post_ats_candidates_candidate_id_tags_request_body: - "PostAtsCandidatesCandidateIdTagsRequestBody", - }); + body: models.PostAtsCandidatesCandidateIdTagsRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequest$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequest$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequest$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequest$Outbound` instead. */ - export type Outbound = PostAtsCandidatesCandidateIdTagsRequest$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestToJSON( postAtsCandidatesCandidateIdTagsRequest: PostAtsCandidatesCandidateIdTagsRequest, @@ -157,19 +49,3 @@ export function postAtsCandidatesCandidateIdTagsRequestToJSON( ), ); } - -export function postAtsCandidatesCandidateIdTagsRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequest' from JSON`, - ); -} diff --git a/src/models/operations/postatsimporttrackedapplication.ts b/src/models/operations/postatsimporttrackedapplication.ts index 5cf1f05..4147d6f 100644 --- a/src/models/operations/postatsimporttrackedapplication.ts +++ b/src/models/operations/postatsimporttrackedapplication.ts @@ -2,74 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PostAtsImportTrackedApplicationGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PostAtsImportTrackedApplicationGlobals$inboundSchema: z.ZodType< - PostAtsImportTrackedApplicationGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostAtsImportTrackedApplicationGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsImportTrackedApplicationGlobals$outboundSchema: z.ZodType< - PostAtsImportTrackedApplicationGlobals$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationGlobals$ { - /** @deprecated use `PostAtsImportTrackedApplicationGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationGlobals$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationGlobals$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationGlobals$Outbound` instead. */ - export type Outbound = PostAtsImportTrackedApplicationGlobals$Outbound; -} - -export function postAtsImportTrackedApplicationGlobalsToJSON( - postAtsImportTrackedApplicationGlobals: - PostAtsImportTrackedApplicationGlobals, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationGlobals$outboundSchema.parse( - postAtsImportTrackedApplicationGlobals, - ), - ); -} - -export function postAtsImportTrackedApplicationGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationGlobals' from JSON`, - ); -} diff --git a/src/models/operations/postatsjobsjobidapplications.ts b/src/models/operations/postatsjobsjobidapplications.ts index 66995cf..555d97a 100644 --- a/src/models/operations/postatsjobsjobidapplications.ts +++ b/src/models/operations/postatsjobsjobidapplications.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostAtsJobsJobIdApplicationsGlobals = { @@ -24,90 +20,13 @@ export type PostAtsJobsJobIdApplicationsRequest = { /** * POST /ats/jobs/:job_id/applications Request body */ - post_ats_jobs_job_id_applications_request_body: - models.PostAtsJobsJobIdApplicationsRequestBody; + body: models.PostAtsJobsJobIdApplicationsRequestBody; }; -/** @internal */ -export const PostAtsJobsJobIdApplicationsGlobals$inboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostAtsJobsJobIdApplicationsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsGlobals$outboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsGlobals$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsGlobals$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsGlobals$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsGlobals$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsGlobals$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsGlobals$Outbound; -} - -export function postAtsJobsJobIdApplicationsGlobalsToJSON( - postAtsJobsJobIdApplicationsGlobals: PostAtsJobsJobIdApplicationsGlobals, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsGlobals$outboundSchema.parse( - postAtsJobsJobIdApplicationsGlobals, - ), - ); -} - -export function postAtsJobsJobIdApplicationsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequest$inboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - job_id: z.string(), - PostAtsJobsJobIdApplicationsRequestBody: - models.PostAtsJobsJobIdApplicationsRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "PostAtsJobsJobIdApplicationsRequestBody": - "post_ats_jobs_job_id_applications_request_body", - }); -}); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequest$Outbound = { job_id: string; - PostAtsJobsJobIdApplicationsRequestBody: - models.PostAtsJobsJobIdApplicationsRequestBody$Outbound; + body: models.PostAtsJobsJobIdApplicationsRequestBody$Outbound; }; /** @internal */ @@ -117,30 +36,9 @@ export const PostAtsJobsJobIdApplicationsRequest$outboundSchema: z.ZodType< PostAtsJobsJobIdApplicationsRequest > = z.object({ job_id: z.string(), - post_ats_jobs_job_id_applications_request_body: - models.PostAtsJobsJobIdApplicationsRequestBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - post_ats_jobs_job_id_applications_request_body: - "PostAtsJobsJobIdApplicationsRequestBody", - }); + body: models.PostAtsJobsJobIdApplicationsRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequest$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequest$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequest$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequest$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequest$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequest$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequest$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestToJSON( postAtsJobsJobIdApplicationsRequest: PostAtsJobsJobIdApplicationsRequest, ): string { @@ -150,14 +48,3 @@ export function postAtsJobsJobIdApplicationsRequestToJSON( ), ); } - -export function postAtsJobsJobIdApplicationsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequest' from JSON`, - ); -} diff --git a/src/models/operations/postforcesync.ts b/src/models/operations/postforcesync.ts index 68f3a66..fa7e744 100644 --- a/src/models/operations/postforcesync.ts +++ b/src/models/operations/postforcesync.ts @@ -2,68 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PostForceSyncGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PostForceSyncGlobals$inboundSchema: z.ZodType< - PostForceSyncGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostForceSyncGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostForceSyncGlobals$outboundSchema: z.ZodType< - PostForceSyncGlobals$Outbound, - z.ZodTypeDef, - PostForceSyncGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncGlobals$ { - /** @deprecated use `PostForceSyncGlobals$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncGlobals$inboundSchema; - /** @deprecated use `PostForceSyncGlobals$outboundSchema` instead. */ - export const outboundSchema = PostForceSyncGlobals$outboundSchema; - /** @deprecated use `PostForceSyncGlobals$Outbound` instead. */ - export type Outbound = PostForceSyncGlobals$Outbound; -} - -export function postForceSyncGlobalsToJSON( - postForceSyncGlobals: PostForceSyncGlobals, -): string { - return JSON.stringify( - PostForceSyncGlobals$outboundSchema.parse(postForceSyncGlobals), - ); -} - -export function postForceSyncGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostForceSyncGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostForceSyncGlobals' from JSON`, - ); -} diff --git a/src/models/operations/posthrisabsences.ts b/src/models/operations/posthrisabsences.ts index 66770a9..e26a37f 100644 --- a/src/models/operations/posthrisabsences.ts +++ b/src/models/operations/posthrisabsences.ts @@ -2,68 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PostHrisAbsencesGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PostHrisAbsencesGlobals$inboundSchema: z.ZodType< - PostHrisAbsencesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostHrisAbsencesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostHrisAbsencesGlobals$outboundSchema: z.ZodType< - PostHrisAbsencesGlobals$Outbound, - z.ZodTypeDef, - PostHrisAbsencesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesGlobals$ { - /** @deprecated use `PostHrisAbsencesGlobals$inboundSchema` instead. */ - export const inboundSchema = PostHrisAbsencesGlobals$inboundSchema; - /** @deprecated use `PostHrisAbsencesGlobals$outboundSchema` instead. */ - export const outboundSchema = PostHrisAbsencesGlobals$outboundSchema; - /** @deprecated use `PostHrisAbsencesGlobals$Outbound` instead. */ - export type Outbound = PostHrisAbsencesGlobals$Outbound; -} - -export function postHrisAbsencesGlobalsToJSON( - postHrisAbsencesGlobals: PostHrisAbsencesGlobals, -): string { - return JSON.stringify( - PostHrisAbsencesGlobals$outboundSchema.parse(postHrisAbsencesGlobals), - ); -} - -export function postHrisAbsencesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostHrisAbsencesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostHrisAbsencesGlobals' from JSON`, - ); -} diff --git a/src/models/operations/posthrisemployeesemployeeiddocuments.ts b/src/models/operations/posthrisemployeesemployeeiddocuments.ts index a5af6c4..2cabb13 100644 --- a/src/models/operations/posthrisemployeesemployeeiddocuments.ts +++ b/src/models/operations/posthrisemployeesemployeeiddocuments.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostHrisEmployeesEmployeeIdDocumentsGlobals = { @@ -24,99 +20,13 @@ export type PostHrisEmployeesEmployeeIdDocumentsRequest = { /** * POST /hris/employees/:employee_id/documents Request body */ - post_hris_employees_employee_id_documents_request_body: - models.PostHrisEmployeesEmployeeIdDocumentsRequestBody; + body: models.PostHrisEmployeesEmployeeIdDocumentsRequestBody; }; -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsGlobals$inboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PostHrisEmployeesEmployeeIdDocumentsGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsGlobals$outboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsGlobals$Outbound, - z.ZodTypeDef, - PostHrisEmployeesEmployeeIdDocumentsGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsGlobals$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsGlobals$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsGlobals$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsGlobals$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsGlobals$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsGlobals$Outbound` instead. */ - export type Outbound = PostHrisEmployeesEmployeeIdDocumentsGlobals$Outbound; -} - -export function postHrisEmployeesEmployeeIdDocumentsGlobalsToJSON( - postHrisEmployeesEmployeeIdDocumentsGlobals: - PostHrisEmployeesEmployeeIdDocumentsGlobals, -): string { - return JSON.stringify( - PostHrisEmployeesEmployeeIdDocumentsGlobals$outboundSchema.parse( - postHrisEmployeesEmployeeIdDocumentsGlobals, - ), - ); -} - -export function postHrisEmployeesEmployeeIdDocumentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PostHrisEmployeesEmployeeIdDocumentsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostHrisEmployeesEmployeeIdDocumentsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostHrisEmployeesEmployeeIdDocumentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsRequest$inboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - employee_id: z.string(), - PostHrisEmployeesEmployeeIdDocumentsRequestBody: - models.PostHrisEmployeesEmployeeIdDocumentsRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostHrisEmployeesEmployeeIdDocumentsRequestBody": - "post_hris_employees_employee_id_documents_request_body", - }); - }); - /** @internal */ export type PostHrisEmployeesEmployeeIdDocumentsRequest$Outbound = { employee_id: string; - PostHrisEmployeesEmployeeIdDocumentsRequestBody: - models.PostHrisEmployeesEmployeeIdDocumentsRequestBody$Outbound; + body: models.PostHrisEmployeesEmployeeIdDocumentsRequestBody$Outbound; }; /** @internal */ @@ -127,30 +37,9 @@ export const PostHrisEmployeesEmployeeIdDocumentsRequest$outboundSchema: PostHrisEmployeesEmployeeIdDocumentsRequest > = z.object({ employee_id: z.string(), - post_hris_employees_employee_id_documents_request_body: - models.PostHrisEmployeesEmployeeIdDocumentsRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_hris_employees_employee_id_documents_request_body: - "PostHrisEmployeesEmployeeIdDocumentsRequestBody", - }); + body: models.PostHrisEmployeesEmployeeIdDocumentsRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsRequest$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequest$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsRequest$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequest$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsRequest$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequest$Outbound` instead. */ - export type Outbound = PostHrisEmployeesEmployeeIdDocumentsRequest$Outbound; -} - export function postHrisEmployeesEmployeeIdDocumentsRequestToJSON( postHrisEmployeesEmployeeIdDocumentsRequest: PostHrisEmployeesEmployeeIdDocumentsRequest, @@ -161,19 +50,3 @@ export function postHrisEmployeesEmployeeIdDocumentsRequestToJSON( ), ); } - -export function postHrisEmployeesEmployeeIdDocumentsRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostHrisEmployeesEmployeeIdDocumentsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostHrisEmployeesEmployeeIdDocumentsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostHrisEmployeesEmployeeIdDocumentsRequest' from JSON`, - ); -} diff --git a/src/models/operations/posthrisemployeesform.ts b/src/models/operations/posthrisemployeesform.ts index 10bf6d7..674ec2b 100644 --- a/src/models/operations/posthrisemployeesform.ts +++ b/src/models/operations/posthrisemployeesform.ts @@ -2,70 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PostHrisEmployeesFormGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PostHrisEmployeesFormGlobals$inboundSchema: z.ZodType< - PostHrisEmployeesFormGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostHrisEmployeesFormGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostHrisEmployeesFormGlobals$outboundSchema: z.ZodType< - PostHrisEmployeesFormGlobals$Outbound, - z.ZodTypeDef, - PostHrisEmployeesFormGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesFormGlobals$ { - /** @deprecated use `PostHrisEmployeesFormGlobals$inboundSchema` instead. */ - export const inboundSchema = PostHrisEmployeesFormGlobals$inboundSchema; - /** @deprecated use `PostHrisEmployeesFormGlobals$outboundSchema` instead. */ - export const outboundSchema = PostHrisEmployeesFormGlobals$outboundSchema; - /** @deprecated use `PostHrisEmployeesFormGlobals$Outbound` instead. */ - export type Outbound = PostHrisEmployeesFormGlobals$Outbound; -} - -export function postHrisEmployeesFormGlobalsToJSON( - postHrisEmployeesFormGlobals: PostHrisEmployeesFormGlobals, -): string { - return JSON.stringify( - PostHrisEmployeesFormGlobals$outboundSchema.parse( - postHrisEmployeesFormGlobals, - ), - ); -} - -export function postHrisEmployeesFormGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostHrisEmployeesFormGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostHrisEmployeesFormGlobals' from JSON`, - ); -} diff --git a/src/models/operations/postintegrationsintegrationidrelink.ts b/src/models/operations/postintegrationsintegrationidrelink.ts index 134b097..024d096 100644 --- a/src/models/operations/postintegrationsintegrationidrelink.ts +++ b/src/models/operations/postintegrationsintegrationidrelink.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostIntegrationsIntegrationIdRelinkRequest = { @@ -17,29 +13,13 @@ export type PostIntegrationsIntegrationIdRelinkRequest = { /** * POST /integrations/:integration_id/relink Request body */ - post_integrations_integration_id_relink_request_body: - models.PostIntegrationsIntegrationIdRelinkRequestBody; + body: models.PostIntegrationsIntegrationIdRelinkRequestBody; }; -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkRequest$inboundSchema: - z.ZodType = - z.object({ - integration_id: z.string(), - PostIntegrationsIntegrationIdRelinkRequestBody: - models.PostIntegrationsIntegrationIdRelinkRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PostIntegrationsIntegrationIdRelinkRequestBody": - "post_integrations_integration_id_relink_request_body", - }); - }); - /** @internal */ export type PostIntegrationsIntegrationIdRelinkRequest$Outbound = { integration_id: string; - PostIntegrationsIntegrationIdRelinkRequestBody: - models.PostIntegrationsIntegrationIdRelinkRequestBody$Outbound; + body: models.PostIntegrationsIntegrationIdRelinkRequestBody$Outbound; }; /** @internal */ @@ -50,30 +30,9 @@ export const PostIntegrationsIntegrationIdRelinkRequest$outboundSchema: PostIntegrationsIntegrationIdRelinkRequest > = z.object({ integration_id: z.string(), - post_integrations_integration_id_relink_request_body: - models.PostIntegrationsIntegrationIdRelinkRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - post_integrations_integration_id_relink_request_body: - "PostIntegrationsIntegrationIdRelinkRequestBody", - }); + body: models.PostIntegrationsIntegrationIdRelinkRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkRequest$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequest$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkRequest$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequest$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkRequest$outboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequest$Outbound` instead. */ - export type Outbound = PostIntegrationsIntegrationIdRelinkRequest$Outbound; -} - export function postIntegrationsIntegrationIdRelinkRequestToJSON( postIntegrationsIntegrationIdRelinkRequest: PostIntegrationsIntegrationIdRelinkRequest, @@ -84,19 +43,3 @@ export function postIntegrationsIntegrationIdRelinkRequestToJSON( ), ); } - -export function postIntegrationsIntegrationIdRelinkRequestFromJSON( - jsonString: string, -): SafeParseResult< - PostIntegrationsIntegrationIdRelinkRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostIntegrationsIntegrationIdRelinkRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostIntegrationsIntegrationIdRelinkRequest' from JSON`, - ); -} diff --git a/src/models/operations/postpassthroughtoolapi.ts b/src/models/operations/postpassthroughtoolapi.ts index c697075..531434b 100644 --- a/src/models/operations/postpassthroughtoolapi.ts +++ b/src/models/operations/postpassthroughtoolapi.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PostPassthroughToolApiGlobals = { @@ -28,89 +24,14 @@ export type PostPassthroughToolApiRequest = { /** * POST /passthrough/:tool/:api Request body */ - post_passthrough_tool_api_request_body: - models.PostPassthroughToolApiRequestBody; + body: models.PostPassthroughToolApiRequestBody; }; -/** @internal */ -export const PostPassthroughToolApiGlobals$inboundSchema: z.ZodType< - PostPassthroughToolApiGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PostPassthroughToolApiGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PostPassthroughToolApiGlobals$outboundSchema: z.ZodType< - PostPassthroughToolApiGlobals$Outbound, - z.ZodTypeDef, - PostPassthroughToolApiGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiGlobals$ { - /** @deprecated use `PostPassthroughToolApiGlobals$inboundSchema` instead. */ - export const inboundSchema = PostPassthroughToolApiGlobals$inboundSchema; - /** @deprecated use `PostPassthroughToolApiGlobals$outboundSchema` instead. */ - export const outboundSchema = PostPassthroughToolApiGlobals$outboundSchema; - /** @deprecated use `PostPassthroughToolApiGlobals$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiGlobals$Outbound; -} - -export function postPassthroughToolApiGlobalsToJSON( - postPassthroughToolApiGlobals: PostPassthroughToolApiGlobals, -): string { - return JSON.stringify( - PostPassthroughToolApiGlobals$outboundSchema.parse( - postPassthroughToolApiGlobals, - ), - ); -} - -export function postPassthroughToolApiGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostPassthroughToolApiGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostPassthroughToolApiGlobals' from JSON`, - ); -} - -/** @internal */ -export const PostPassthroughToolApiRequest$inboundSchema: z.ZodType< - PostPassthroughToolApiRequest, - z.ZodTypeDef, - unknown -> = z.object({ - tool: z.string(), - api: z.string(), - PostPassthroughToolApiRequestBody: - models.PostPassthroughToolApiRequestBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "PostPassthroughToolApiRequestBody": - "post_passthrough_tool_api_request_body", - }); -}); - /** @internal */ export type PostPassthroughToolApiRequest$Outbound = { tool: string; api: string; - PostPassthroughToolApiRequestBody: - models.PostPassthroughToolApiRequestBody$Outbound; + body: models.PostPassthroughToolApiRequestBody$Outbound; }; /** @internal */ @@ -121,27 +42,9 @@ export const PostPassthroughToolApiRequest$outboundSchema: z.ZodType< > = z.object({ tool: z.string(), api: z.string(), - post_passthrough_tool_api_request_body: - models.PostPassthroughToolApiRequestBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - post_passthrough_tool_api_request_body: "PostPassthroughToolApiRequestBody", - }); + body: models.PostPassthroughToolApiRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiRequest$ { - /** @deprecated use `PostPassthroughToolApiRequest$inboundSchema` instead. */ - export const inboundSchema = PostPassthroughToolApiRequest$inboundSchema; - /** @deprecated use `PostPassthroughToolApiRequest$outboundSchema` instead. */ - export const outboundSchema = PostPassthroughToolApiRequest$outboundSchema; - /** @deprecated use `PostPassthroughToolApiRequest$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiRequest$Outbound; -} - export function postPassthroughToolApiRequestToJSON( postPassthroughToolApiRequest: PostPassthroughToolApiRequest, ): string { @@ -151,13 +54,3 @@ export function postPassthroughToolApiRequestToJSON( ), ); } - -export function postPassthroughToolApiRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostPassthroughToolApiRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostPassthroughToolApiRequest' from JSON`, - ); -} diff --git a/src/models/operations/putassessmentordersassessmentorderidresult.ts b/src/models/operations/putassessmentordersassessmentorderidresult.ts index e955514..85f8fb8 100644 --- a/src/models/operations/putassessmentordersassessmentorderidresult.ts +++ b/src/models/operations/putassessmentordersassessmentorderidresult.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PutAssessmentOrdersAssessmentOrderIdResultGlobals = { @@ -24,101 +20,13 @@ export type PutAssessmentOrdersAssessmentOrderIdResultRequest = { /** * PUT /assessment/orders/:assessment_order_id/result Request body */ - put_assessment_orders_assessment_order_id_result_request_body: - models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody; + body: models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody; }; -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultGlobals$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PutAssessmentOrdersAssessmentOrderIdResultGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultGlobals$outboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultGlobals$Outbound, - z.ZodTypeDef, - PutAssessmentOrdersAssessmentOrderIdResultGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultGlobals$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultGlobals$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultGlobals$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultGlobals$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultGlobals$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultGlobals$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultGlobals$Outbound; -} - -export function putAssessmentOrdersAssessmentOrderIdResultGlobalsToJSON( - putAssessmentOrdersAssessmentOrderIdResultGlobals: - PutAssessmentOrdersAssessmentOrderIdResultGlobals, -): string { - return JSON.stringify( - PutAssessmentOrdersAssessmentOrderIdResultGlobals$outboundSchema.parse( - putAssessmentOrdersAssessmentOrderIdResultGlobals, - ), - ); -} - -export function putAssessmentOrdersAssessmentOrderIdResultGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultGlobals' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequest$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultRequest, - z.ZodTypeDef, - unknown - > = z.object({ - assessment_order_id: z.string(), - PutAssessmentOrdersAssessmentOrderIdResultRequestBody: - models - .PutAssessmentOrdersAssessmentOrderIdResultRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PutAssessmentOrdersAssessmentOrderIdResultRequestBody": - "put_assessment_orders_assessment_order_id_result_request_body", - }); - }); - /** @internal */ export type PutAssessmentOrdersAssessmentOrderIdResultRequest$Outbound = { assessment_order_id: string; - PutAssessmentOrdersAssessmentOrderIdResultRequestBody: - models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody$Outbound; + body: models.PutAssessmentOrdersAssessmentOrderIdResultRequestBody$Outbound; }; /** @internal */ @@ -129,32 +37,11 @@ export const PutAssessmentOrdersAssessmentOrderIdResultRequest$outboundSchema: PutAssessmentOrdersAssessmentOrderIdResultRequest > = z.object({ assessment_order_id: z.string(), - put_assessment_orders_assessment_order_id_result_request_body: + body: models .PutAssessmentOrdersAssessmentOrderIdResultRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - put_assessment_orders_assessment_order_id_result_request_body: - "PutAssessmentOrdersAssessmentOrderIdResultRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequest$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequest$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequest$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequest$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequest$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequest$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultRequest$Outbound; -} - export function putAssessmentOrdersAssessmentOrderIdResultRequestToJSON( putAssessmentOrdersAssessmentOrderIdResultRequest: PutAssessmentOrdersAssessmentOrderIdResultRequest, @@ -165,19 +52,3 @@ export function putAssessmentOrdersAssessmentOrderIdResultRequestToJSON( ), ); } - -export function putAssessmentOrdersAssessmentOrderIdResultRequestFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultRequest' from JSON`, - ); -} diff --git a/src/models/operations/putassessmentpackages.ts b/src/models/operations/putassessmentpackages.ts index 5d8c584..74c1024 100644 --- a/src/models/operations/putassessmentpackages.ts +++ b/src/models/operations/putassessmentpackages.ts @@ -2,70 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - export type PutAssessmentPackagesGlobals = { /** * ID of the integration you want to interact with. */ integration_id?: string | undefined; }; - -/** @internal */ -export const PutAssessmentPackagesGlobals$inboundSchema: z.ZodType< - PutAssessmentPackagesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - integration_id: z.string().optional(), -}); - -/** @internal */ -export type PutAssessmentPackagesGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PutAssessmentPackagesGlobals$outboundSchema: z.ZodType< - PutAssessmentPackagesGlobals$Outbound, - z.ZodTypeDef, - PutAssessmentPackagesGlobals -> = z.object({ - integration_id: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesGlobals$ { - /** @deprecated use `PutAssessmentPackagesGlobals$inboundSchema` instead. */ - export const inboundSchema = PutAssessmentPackagesGlobals$inboundSchema; - /** @deprecated use `PutAssessmentPackagesGlobals$outboundSchema` instead. */ - export const outboundSchema = PutAssessmentPackagesGlobals$outboundSchema; - /** @deprecated use `PutAssessmentPackagesGlobals$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesGlobals$Outbound; -} - -export function putAssessmentPackagesGlobalsToJSON( - putAssessmentPackagesGlobals: PutAssessmentPackagesGlobals, -): string { - return JSON.stringify( - PutAssessmentPackagesGlobals$outboundSchema.parse( - putAssessmentPackagesGlobals, - ), - ); -} - -export function putAssessmentPackagesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PutAssessmentPackagesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PutAssessmentPackagesGlobals' from JSON`, - ); -} diff --git a/src/models/operations/putatsapplicationsapplicationidstage.ts b/src/models/operations/putatsapplicationsapplicationidstage.ts index 3f0aaba..da11d1f 100644 --- a/src/models/operations/putatsapplicationsapplicationidstage.ts +++ b/src/models/operations/putatsapplicationsapplicationidstage.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PutAtsApplicationsApplicationIdStageGlobals = { @@ -24,99 +20,13 @@ export type PutAtsApplicationsApplicationIdStageRequest = { /** * PUT /ats/applications/:application_id/stage Request body */ - put_ats_applications_application_id_stage_request_body: - models.PutAtsApplicationsApplicationIdStageRequestBody; + body: models.PutAtsApplicationsApplicationIdStageRequestBody; }; -/** @internal */ -export const PutAtsApplicationsApplicationIdStageGlobals$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string().optional(), - }); - -/** @internal */ -export type PutAtsApplicationsApplicationIdStageGlobals$Outbound = { - integration_id?: string | undefined; -}; - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageGlobals$outboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageGlobals$Outbound, - z.ZodTypeDef, - PutAtsApplicationsApplicationIdStageGlobals - > = z.object({ - integration_id: z.string().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageGlobals$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageGlobals$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageGlobals$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageGlobals$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageGlobals$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageGlobals$Outbound` instead. */ - export type Outbound = PutAtsApplicationsApplicationIdStageGlobals$Outbound; -} - -export function putAtsApplicationsApplicationIdStageGlobalsToJSON( - putAtsApplicationsApplicationIdStageGlobals: - PutAtsApplicationsApplicationIdStageGlobals, -): string { - return JSON.stringify( - PutAtsApplicationsApplicationIdStageGlobals$outboundSchema.parse( - putAtsApplicationsApplicationIdStageGlobals, - ), - ); -} - -export function putAtsApplicationsApplicationIdStageGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAtsApplicationsApplicationIdStageGlobals' from JSON`, - ); -} - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequest$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequest, - z.ZodTypeDef, - unknown - > = z.object({ - application_id: z.string(), - PutAtsApplicationsApplicationIdStageRequestBody: - models.PutAtsApplicationsApplicationIdStageRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PutAtsApplicationsApplicationIdStageRequestBody": - "put_ats_applications_application_id_stage_request_body", - }); - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequest$Outbound = { application_id: string; - PutAtsApplicationsApplicationIdStageRequestBody: - models.PutAtsApplicationsApplicationIdStageRequestBody$Outbound; + body: models.PutAtsApplicationsApplicationIdStageRequestBody$Outbound; }; /** @internal */ @@ -127,30 +37,9 @@ export const PutAtsApplicationsApplicationIdStageRequest$outboundSchema: PutAtsApplicationsApplicationIdStageRequest > = z.object({ application_id: z.string(), - put_ats_applications_application_id_stage_request_body: - models.PutAtsApplicationsApplicationIdStageRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - put_ats_applications_application_id_stage_request_body: - "PutAtsApplicationsApplicationIdStageRequestBody", - }); + body: models.PutAtsApplicationsApplicationIdStageRequestBody$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequest$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequest$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequest$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequest$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequest$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequest$Outbound` instead. */ - export type Outbound = PutAtsApplicationsApplicationIdStageRequest$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestToJSON( putAtsApplicationsApplicationIdStageRequest: PutAtsApplicationsApplicationIdStageRequest, @@ -161,19 +50,3 @@ export function putAtsApplicationsApplicationIdStageRequestToJSON( ), ); } - -export function putAtsApplicationsApplicationIdStageRequestFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequest' from JSON`, - ); -} diff --git a/src/models/operations/putintegrationsintegrationidcustomfieldscustomfieldid.ts b/src/models/operations/putintegrationsintegrationidcustomfieldscustomfieldid.ts index 148391d..2e520ac 100644 --- a/src/models/operations/putintegrationsintegrationidcustomfieldscustomfieldid.ts +++ b/src/models/operations/putintegrationsintegrationidcustomfieldscustomfieldid.ts @@ -3,10 +3,6 @@ */ import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest = { @@ -21,35 +17,15 @@ export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest = { /** * PUT /integrations/:integration_id/custom-fields/:custom_field_id Request body */ - put_integrations_integration_id_custom_fields_custom_field_id_request_body: - models.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody; + body: models.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody; }; -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$inboundSchema: - z.ZodType< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest, - z.ZodTypeDef, - unknown - > = z.object({ - integration_id: z.string(), - custom_field_id: z.string(), - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody: - models - .PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$inboundSchema, - }).transform((v) => { - return remap$(v, { - "PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody": - "put_integrations_integration_id_custom_fields_custom_field_id_request_body", - }); - }); - /** @internal */ export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$Outbound = { integration_id: string; custom_field_id: string; - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody: + body: models.PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$Outbound; }; @@ -62,32 +38,11 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$outbou > = z.object({ integration_id: z.string(), custom_field_id: z.string(), - put_integrations_integration_id_custom_fields_custom_field_id_request_body: + body: models .PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$outboundSchema, - }).transform((v) => { - return remap$(v, { - put_integrations_integration_id_custom_fields_custom_field_id_request_body: - "PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody", - }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$outboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$Outbound` instead. */ - export type Outbound = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$Outbound; -} - export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestToJSON( putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest: PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest, @@ -97,18 +52,3 @@ export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestToJS .parse(putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest), ); } - -export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestFromJSON( - jsonString: string, -): SafeParseResult< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequest' from JSON`, - ); -} diff --git a/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.ts b/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.ts index ebeeddf..f100333 100644 --- a/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.ts +++ b/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.ts @@ -72,26 +72,6 @@ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPo PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType, ); -/** @internal */ -export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType - > = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$ { - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$inboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$outboundSchema; -} - /** @internal */ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$inboundSchema: z.ZodType< @@ -109,63 +89,6 @@ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPo is_writable: z.literal(false), }); -/** @internal */ -export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$Outbound = - { - id: string; - key: string; - model: string; - type: string; - label: string | null; - is_passthrough_enabled: boolean; - is_writable: false; - }; - -/** @internal */ -export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$outboundSchema: - z.ZodType< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$Outbound, - z.ZodTypeDef, - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData - > = z.object({ - id: z.string(), - key: z.string(), - model: z.string(), - type: - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseType$outboundSchema, - label: z.nullable(z.string()), - is_passthrough_enabled: z.boolean(), - is_writable: z.literal(false), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$ { - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$inboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$outboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$Outbound` instead. */ - export type Outbound = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$Outbound; -} - -export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseDataToJSON( - patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData: - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData, -): string { - return JSON.stringify( - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$outboundSchema - .parse( - patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData, - ), - ); -} - export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -194,55 +117,6 @@ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPo ), }); -/** @internal */ -export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$Outbound = - { - status: "success"; - data: - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$Outbound; - }; - -/** @internal */ -export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$outboundSchema: - z.ZodType< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$Outbound, - z.ZodTypeDef, - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$ { - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$inboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$outboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$Outbound` instead. */ - export type Outbound = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$Outbound; -} - -export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseToJSON( - patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse: - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse, -): string { - return JSON.stringify( - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse$outboundSchema - .parse( - patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponse, - ), - ); -} - export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.ts b/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.ts index fa0953b..770458f 100644 --- a/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.ts +++ b/src/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.ts @@ -3,25 +3,12 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody = { enable_passthrough: boolean | null; }; -/** @internal */ -export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$inboundSchema: - z.ZodType< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - enable_passthrough: z.nullable(z.boolean()), - }); - /** @internal */ export type PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$Outbound = { @@ -38,22 +25,6 @@ export const PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRe enable_passthrough: z.nullable(z.boolean()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$ { - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$inboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$outboundSchema; - /** @deprecated use `PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$Outbound` instead. */ - export type Outbound = - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$Outbound; -} - export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBodyToJSON( patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody: PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody, @@ -65,18 +36,3 @@ export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldI ), ); } - -export function patchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PatchIntegrationsIntegrationIdIntegrationFieldsIntegrationFieldIdRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsapplicationsapplicationidattachmentspositiveresponse.ts b/src/models/postatsapplicationsapplicationidattachmentspositiveresponse.ts index e1064d9..8b21fa8 100644 --- a/src/models/postatsapplicationsapplicationidattachmentspositiveresponse.ts +++ b/src/models/postatsapplicationsapplicationidattachmentspositiveresponse.ts @@ -34,44 +34,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inb unknown > = z.object({}); -/** @internal */ -export type PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound; -} - -export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseDataToJSON( - postAtsApplicationsApplicationIdAttachmentsPositiveResponseData: - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema - .parse(postAtsApplicationsApplicationIdAttachmentsPositiveResponseData), - ); -} - export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -97,50 +59,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$ message: z.string(), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound; -} - -export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseWarningToJSON( - postAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning: - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema - .parse( - postAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning, - ), - ); -} - export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -174,61 +92,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$inbound ), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound = - { - status: "success"; - data: - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$Outbound; - warnings: Array< - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$Outbound - >; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$Outbound; -} - -export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseToJSON( - postAtsApplicationsApplicationIdAttachmentsPositiveResponse: - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdAttachmentsPositiveResponse$outboundSchema - .parse(postAtsApplicationsApplicationIdAttachmentsPositiveResponse), - ); -} - export function postAtsApplicationsApplicationIdAttachmentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsapplicationsapplicationidattachmentsrequestbody.ts b/src/models/postatsapplicationsapplicationidattachmentsrequestbody.ts index 9aebc0c..c597ffa 100644 --- a/src/models/postatsapplicationsapplicationidattachmentsrequestbody.ts +++ b/src/models/postatsapplicationsapplicationidattachmentsrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Type of the attachment in the ATS. This may affect where the uploaded file will be shown in your customer's system. @@ -161,45 +158,11 @@ export type PostAtsApplicationsApplicationIdAttachmentsRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$inboundSchema: - z.ZodNativeEnum< - typeof PostAtsApplicationsApplicationIdAttachmentsRequestBodyType - > = z.nativeEnum(PostAtsApplicationsApplicationIdAttachmentsRequestBodyType); - /** @internal */ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$outboundSchema: z.ZodNativeEnum< typeof PostAtsApplicationsApplicationIdAttachmentsRequestBodyType - > = PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$outboundSchema; -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - type: - PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$inboundSchema, - }); + > = z.nativeEnum(PostAtsApplicationsApplicationIdAttachmentsRequestBodyType); /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$Outbound = @@ -226,22 +189,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$ou PostAtsApplicationsApplicationIdAttachmentsRequestBodyType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyAttachmentToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment: PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment, @@ -252,62 +199,14 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyAttachmentFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment' from JSON`, - ); -} - /** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$inboundSchema: +export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$outboundSchema: z.ZodNativeEnum< typeof PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory > = z.nativeEnum( PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory, ); -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$outboundSchema: - z.ZodNativeEnum< - typeof PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory - > = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$outboundSchema; -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle, - z.ZodTypeDef, - unknown - > = z.object({ - override_document_category: - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOverrideDocumentCategory$inboundSchema - .optional(), - multi_post_to_all_current_applications: z.boolean().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$Outbound = { @@ -328,22 +227,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$outbou multi_post_to_all_current_applications: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyOracleToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyOracle: PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle, @@ -354,35 +237,6 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyOracleToJS ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyOracleFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$Outbound = { @@ -403,22 +257,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$o }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeadersToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders: PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders, @@ -429,33 +267,6 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeader ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$Outbound = { @@ -476,22 +287,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$ou ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouseToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse: PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse, @@ -502,31 +297,6 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$Outbound = { @@ -543,22 +313,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$outb on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyWorkableToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable: PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable, @@ -569,39 +323,6 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyWorkableTo ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - oracle: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyOracle$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$Outbound = { @@ -634,22 +355,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$ ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFieldsToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields: PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields, @@ -662,36 +367,6 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFiel ); } -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdAttachmentsRequestBody$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdAttachmentsRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - attachment: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyAttachment$inboundSchema - ), - remote_fields: z.lazy(() => - PostAtsApplicationsApplicationIdAttachmentsRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdAttachmentsRequestBody$Outbound = { attachment: @@ -716,22 +391,6 @@ export const PostAtsApplicationsApplicationIdAttachmentsRequestBody$outboundSche ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdAttachmentsRequestBody$ { - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBody$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdAttachmentsRequestBody$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdAttachmentsRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdAttachmentsRequestBody$Outbound; -} - export function postAtsApplicationsApplicationIdAttachmentsRequestBodyToJSON( postAtsApplicationsApplicationIdAttachmentsRequestBody: PostAtsApplicationsApplicationIdAttachmentsRequestBody, @@ -742,18 +401,3 @@ export function postAtsApplicationsApplicationIdAttachmentsRequestBodyToJSON( ), ); } - -export function postAtsApplicationsApplicationIdAttachmentsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdAttachmentsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdAttachmentsRequestBody$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdAttachmentsRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsapplicationsapplicationidnotespositiveresponse.ts b/src/models/postatsapplicationsapplicationidnotespositiveresponse.ts index 20ce464..2a0e2ad 100644 --- a/src/models/postatsapplicationsapplicationidnotespositiveresponse.ts +++ b/src/models/postatsapplicationsapplicationidnotespositiveresponse.ts @@ -30,44 +30,6 @@ export const PostAtsApplicationsApplicationIdNotesPositiveResponseData$inboundSc unknown > = z.object({}); -/** @internal */ -export type PostAtsApplicationsApplicationIdNotesPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdNotesPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesPositiveResponseData$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesPositiveResponseData$Outbound; -} - -export function postAtsApplicationsApplicationIdNotesPositiveResponseDataToJSON( - postAtsApplicationsApplicationIdNotesPositiveResponseData: - PostAtsApplicationsApplicationIdNotesPositiveResponseData, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdNotesPositiveResponseData$outboundSchema - .parse(postAtsApplicationsApplicationIdNotesPositiveResponseData), - ); -} - export function postAtsApplicationsApplicationIdNotesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -93,48 +55,6 @@ export const PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$inboun message: z.string(), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$Outbound; -} - -export function postAtsApplicationsApplicationIdNotesPositiveResponseWarningToJSON( - postAtsApplicationsApplicationIdNotesPositiveResponseWarning: - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$outboundSchema - .parse(postAtsApplicationsApplicationIdNotesPositiveResponseWarning), - ); -} - export function postAtsApplicationsApplicationIdNotesPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -168,60 +88,6 @@ export const PostAtsApplicationsApplicationIdNotesPositiveResponse$inboundSchema ), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdNotesPositiveResponse$Outbound = { - status: "success"; - data: PostAtsApplicationsApplicationIdNotesPositiveResponseData$Outbound; - warnings: Array< - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesPositiveResponse$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdNotesPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsApplicationsApplicationIdNotesPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsApplicationsApplicationIdNotesPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesPositiveResponse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesPositiveResponse$Outbound; -} - -export function postAtsApplicationsApplicationIdNotesPositiveResponseToJSON( - postAtsApplicationsApplicationIdNotesPositiveResponse: - PostAtsApplicationsApplicationIdNotesPositiveResponse, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdNotesPositiveResponse$outboundSchema.parse( - postAtsApplicationsApplicationIdNotesPositiveResponse, - ), - ); -} - export function postAtsApplicationsApplicationIdNotesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsapplicationsapplicationidnotesrequestbody.ts b/src/models/postatsapplicationsapplicationidnotesrequestbody.ts index 0c3c0b7..f97f9c8 100644 --- a/src/models/postatsapplicationsapplicationidnotesrequestbody.ts +++ b/src/models/postatsapplicationsapplicationidnotesrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Content type of the note. Currently only `PLAIN_TEXT` is supported. @@ -140,34 +137,9 @@ export type PostAtsApplicationsApplicationIdNotesRequestBody = { }; /** @internal */ -export const ContentType$inboundSchema: z.ZodNativeEnum = z +export const ContentType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(ContentType); -/** @internal */ -export const ContentType$outboundSchema: z.ZodNativeEnum = - ContentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ContentType$ { - /** @deprecated use `ContentType$inboundSchema` instead. */ - export const inboundSchema = ContentType$inboundSchema; - /** @deprecated use `ContentType$outboundSchema` instead. */ - export const outboundSchema = ContentType$outboundSchema; -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor, - z.ZodTypeDef, - unknown - > = z.object({ - user_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$Outbound = { @@ -184,22 +156,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$outbound user_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyTeamtailorToJSON( postAtsApplicationsApplicationIdNotesRequestBodyTeamtailor: PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor, @@ -210,35 +166,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyTeamtailorToJSON ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyTeamtailorFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$Outbound = { @@ -259,22 +186,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$outboun }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyPostHeadersToJSON( postAtsApplicationsApplicationIdNotesRequestBodyPostHeaders: PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders, @@ -285,33 +196,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyPostHeadersToJSO ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$Outbound = { @@ -332,22 +216,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$outbound ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyGreenhouseToJSON( postAtsApplicationsApplicationIdNotesRequestBodyGreenhouse: PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse, @@ -358,32 +226,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyGreenhouseToJSON ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee, - z.ZodTypeDef, - unknown - > = z.object({ - visibility: z.any().optional(), - is_json: z.boolean().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$Outbound = { @@ -402,22 +244,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$outboundS is_json: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyRecruiteeToJSON( postAtsApplicationsApplicationIdNotesRequestBodyRecruitee: PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee, @@ -428,31 +254,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyRecruiteeToJSON( ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyRecruiteeFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn, - z.ZodTypeDef, - unknown - > = z.object({ - action: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$Outbound = { @@ -469,22 +270,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$outboundSc action: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyBullhornToJSON( postAtsApplicationsApplicationIdNotesRequestBodyBullhorn: PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn, @@ -495,31 +280,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyBullhornToJSON( ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyBullhornFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$Outbound = { @@ -536,22 +296,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$outboundSc on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyWorkableToJSON( postAtsApplicationsApplicationIdNotesRequestBodyWorkable: PostAtsApplicationsApplicationIdNotesRequestBodyWorkable, @@ -562,45 +306,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyWorkableToJSON( ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - teamtailor: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyTeamtailor$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyGreenhouse$inboundSchema - ).optional(), - recruitee: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyRecruitee$inboundSchema - ).optional(), - bullhorn: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyBullhorn$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$Outbound = { @@ -645,22 +350,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$outbou ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyRemoteFieldsToJSON( postAtsApplicationsApplicationIdNotesRequestBodyRemoteFields: PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields, @@ -671,35 +360,6 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyRemoteFieldsToJS ); } -export function postAtsApplicationsApplicationIdNotesRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdNotesRequestBody$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdNotesRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - content: z.string(), - content_type: ContentType$inboundSchema, - remote_fields: z.lazy(() => - PostAtsApplicationsApplicationIdNotesRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdNotesRequestBody$Outbound = { content: string; @@ -723,22 +383,6 @@ export const PostAtsApplicationsApplicationIdNotesRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdNotesRequestBody$ { - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBody$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdNotesRequestBody$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdNotesRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdNotesRequestBody$Outbound; -} - export function postAtsApplicationsApplicationIdNotesRequestBodyToJSON( postAtsApplicationsApplicationIdNotesRequestBody: PostAtsApplicationsApplicationIdNotesRequestBody, @@ -749,19 +393,3 @@ export function postAtsApplicationsApplicationIdNotesRequestBodyToJSON( ), ); } - -export function postAtsApplicationsApplicationIdNotesRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdNotesRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdNotesRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdNotesRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsapplicationsapplicationidrejectpositiveresponse.ts b/src/models/postatsapplicationsapplicationidrejectpositiveresponse.ts index 4488b8c..5f68fe1 100644 --- a/src/models/postatsapplicationsapplicationidrejectpositiveresponse.ts +++ b/src/models/postatsapplicationsapplicationidrejectpositiveresponse.ts @@ -32,44 +32,6 @@ export const PostAtsApplicationsApplicationIdRejectPositiveResponseData$inboundS unknown > = z.object({}); -/** @internal */ -export type PostAtsApplicationsApplicationIdRejectPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdRejectPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectPositiveResponseData$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectPositiveResponseData$Outbound; -} - -export function postAtsApplicationsApplicationIdRejectPositiveResponseDataToJSON( - postAtsApplicationsApplicationIdRejectPositiveResponseData: - PostAtsApplicationsApplicationIdRejectPositiveResponseData, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdRejectPositiveResponseData$outboundSchema - .parse(postAtsApplicationsApplicationIdRejectPositiveResponseData), - ); -} - export function postAtsApplicationsApplicationIdRejectPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -95,48 +57,6 @@ export const PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$inbou message: z.string(), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$Outbound; -} - -export function postAtsApplicationsApplicationIdRejectPositiveResponseWarningToJSON( - postAtsApplicationsApplicationIdRejectPositiveResponseWarning: - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$outboundSchema - .parse(postAtsApplicationsApplicationIdRejectPositiveResponseWarning), - ); -} - export function postAtsApplicationsApplicationIdRejectPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -170,60 +90,6 @@ export const PostAtsApplicationsApplicationIdRejectPositiveResponse$inboundSchem ), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdRejectPositiveResponse$Outbound = { - status: "success"; - data: PostAtsApplicationsApplicationIdRejectPositiveResponseData$Outbound; - warnings: Array< - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectPositiveResponse$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdRejectPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsApplicationsApplicationIdRejectPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsApplicationsApplicationIdRejectPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectPositiveResponse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectPositiveResponse$Outbound; -} - -export function postAtsApplicationsApplicationIdRejectPositiveResponseToJSON( - postAtsApplicationsApplicationIdRejectPositiveResponse: - PostAtsApplicationsApplicationIdRejectPositiveResponse, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdRejectPositiveResponse$outboundSchema.parse( - postAtsApplicationsApplicationIdRejectPositiveResponse, - ), - ); -} - export function postAtsApplicationsApplicationIdRejectPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsapplicationsapplicationidrejectrequestbody.ts b/src/models/postatsapplicationsapplicationidrejectrequestbody.ts index b82f6b9..c4a4b02 100644 --- a/src/models/postatsapplicationsapplicationidrejectrequestbody.ts +++ b/src/models/postatsapplicationsapplicationidrejectrequestbody.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Headers we will pass with `POST` requests to Greenhouse. @@ -75,20 +72,6 @@ export type PostAtsApplicationsApplicationIdRejectRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$Outbound = { @@ -109,22 +92,6 @@ export const PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$outbou }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestBodyPostHeadersToJSON( postAtsApplicationsApplicationIdRejectRequestBodyPostHeaders: PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders, @@ -135,33 +102,6 @@ export function postAtsApplicationsApplicationIdRejectRequestBodyPostHeadersToJS ); } -export function postAtsApplicationsApplicationIdRejectRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsApplicationsApplicationIdRejectRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$Outbound = { @@ -182,22 +122,6 @@ export const PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$outboun ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestBodyGreenhouseToJSON( postAtsApplicationsApplicationIdRejectRequestBodyGreenhouse: PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse, @@ -208,31 +132,6 @@ export function postAtsApplicationsApplicationIdRejectRequestBodyGreenhouseToJSO ); } -export function postAtsApplicationsApplicationIdRejectRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$Outbound = { @@ -249,22 +148,6 @@ export const PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$outboundS on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestBodyWorkableToJSON( postAtsApplicationsApplicationIdRejectRequestBodyWorkable: PostAtsApplicationsApplicationIdRejectRequestBodyWorkable, @@ -275,36 +158,6 @@ export function postAtsApplicationsApplicationIdRejectRequestBodyWorkableToJSON( ); } -export function postAtsApplicationsApplicationIdRejectRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - greenhouse: z.lazy(() => - PostAtsApplicationsApplicationIdRejectRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsApplicationsApplicationIdRejectRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$Outbound = { @@ -331,22 +184,6 @@ export const PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$outbo ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestBodyRemoteFieldsToJSON( postAtsApplicationsApplicationIdRejectRequestBodyRemoteFields: PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields, @@ -357,35 +194,6 @@ export function postAtsApplicationsApplicationIdRejectRequestBodyRemoteFieldsToJ ); } -export function postAtsApplicationsApplicationIdRejectRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdRejectRequestBody$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdRejectRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - rejection_reason_id: z.string(), - note: z.string().optional(), - remote_fields: z.lazy(() => - PostAtsApplicationsApplicationIdRejectRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdRejectRequestBody$Outbound = { rejection_reason_id: string; @@ -409,22 +217,6 @@ export const PostAtsApplicationsApplicationIdRejectRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdRejectRequestBody$ { - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBody$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdRejectRequestBody$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdRejectRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdRejectRequestBody$Outbound; -} - export function postAtsApplicationsApplicationIdRejectRequestBodyToJSON( postAtsApplicationsApplicationIdRejectRequestBody: PostAtsApplicationsApplicationIdRejectRequestBody, @@ -435,19 +227,3 @@ export function postAtsApplicationsApplicationIdRejectRequestBodyToJSON( ), ); } - -export function postAtsApplicationsApplicationIdRejectRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdRejectRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdRejectRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsApplicationsApplicationIdRejectRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsapplicationsapplicationidresultlinkspositiveresponse.ts b/src/models/postatsapplicationsapplicationidresultlinkspositiveresponse.ts index 331094b..533e343 100644 --- a/src/models/postatsapplicationsapplicationidresultlinkspositiveresponse.ts +++ b/src/models/postatsapplicationsapplicationidresultlinkspositiveresponse.ts @@ -34,44 +34,6 @@ export const PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$inb unknown > = z.object({}); -/** @internal */ -export type PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$Outbound; -} - -export function postAtsApplicationsApplicationIdResultLinksPositiveResponseDataToJSON( - postAtsApplicationsApplicationIdResultLinksPositiveResponseData: - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$outboundSchema - .parse(postAtsApplicationsApplicationIdResultLinksPositiveResponseData), - ); -} - export function postAtsApplicationsApplicationIdResultLinksPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -97,50 +59,6 @@ export const PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$ message: z.string(), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$Outbound; -} - -export function postAtsApplicationsApplicationIdResultLinksPositiveResponseWarningToJSON( - postAtsApplicationsApplicationIdResultLinksPositiveResponseWarning: - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$outboundSchema - .parse( - postAtsApplicationsApplicationIdResultLinksPositiveResponseWarning, - ), - ); -} - export function postAtsApplicationsApplicationIdResultLinksPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -174,61 +92,6 @@ export const PostAtsApplicationsApplicationIdResultLinksPositiveResponse$inbound ), }); -/** @internal */ -export type PostAtsApplicationsApplicationIdResultLinksPositiveResponse$Outbound = - { - status: "success"; - data: - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$Outbound; - warnings: Array< - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$Outbound - >; - }; - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksPositiveResponse$outboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsApplicationsApplicationIdResultLinksPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksPositiveResponse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksPositiveResponse$Outbound; -} - -export function postAtsApplicationsApplicationIdResultLinksPositiveResponseToJSON( - postAtsApplicationsApplicationIdResultLinksPositiveResponse: - PostAtsApplicationsApplicationIdResultLinksPositiveResponse, -): string { - return JSON.stringify( - PostAtsApplicationsApplicationIdResultLinksPositiveResponse$outboundSchema - .parse(postAtsApplicationsApplicationIdResultLinksPositiveResponse), - ); -} - export function postAtsApplicationsApplicationIdResultLinksPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsapplicationsapplicationidresultlinksrequestbody.ts b/src/models/postatsapplicationsapplicationidresultlinksrequestbody.ts index d3df81c..50ef3a6 100644 --- a/src/models/postatsapplicationsapplicationidresultlinksrequestbody.ts +++ b/src/models/postatsapplicationsapplicationidresultlinksrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute = { /** @@ -172,17 +169,6 @@ export type PostAtsApplicationsApplicationIdResultLinksRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute, - z.ZodTypeDef, - unknown - > = z.object({ - key: z.string(), - value: z.string(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$Outbound = { @@ -201,22 +187,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$out value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyAttributeToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyAttribute: PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute, @@ -227,36 +197,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyAttributeT ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyAttributeFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails, - z.ZodTypeDef, - unknown - > = z.object({ - custom_field_name_prefix: z.string(), - attributes: z.array( - z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyAttribute$inboundSchema - ), - ), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$Outbound = { @@ -281,22 +221,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$outbo ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyDetailsToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyDetails: PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails, @@ -307,31 +231,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyDetailsToJ ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyDetailsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims, - z.ZodTypeDef, - unknown - > = z.object({ - assessment_package_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$Outbound = { @@ -348,22 +247,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$outboun assessment_package_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyIcimsToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyIcims: PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims, @@ -374,62 +257,14 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyIcimsToJSO ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyIcimsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims' from JSON`, - ); -} - /** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema: +export const PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema: z.ZodNativeEnum< typeof PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory > = z.nativeEnum( PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory, ); -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema: - z.ZodNativeEnum< - typeof PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory - > = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema; -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle, - z.ZodTypeDef, - unknown - > = z.object({ - override_document_category: - PostAtsApplicationsApplicationIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema - .optional(), - multi_post_to_all_current_applications: z.boolean().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$Outbound = { @@ -450,22 +285,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$outbou multi_post_to_all_current_applications: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyOracleToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyOracle: PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle, @@ -476,35 +295,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyOracleToJS ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyOracleFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$Outbound = { @@ -525,22 +315,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$o }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyPostHeadersToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders: PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders, @@ -551,33 +325,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyPostHeader ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$Outbound = { @@ -598,22 +345,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$ou ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouseToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse: PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse, @@ -624,31 +355,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$Outbound = { @@ -665,22 +371,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$outb on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyWorkableToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyWorkable: PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable, @@ -691,42 +381,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyWorkableTo ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - icims: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyIcims$inboundSchema - ).optional(), - oracle: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyOracle$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$Outbound = { @@ -765,22 +419,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$ ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFieldsToJSON( postAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields: PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields, @@ -793,38 +431,6 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFiel ); } -export function postAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsApplicationsApplicationIdResultLinksRequestBody$inboundSchema: - z.ZodType< - PostAtsApplicationsApplicationIdResultLinksRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - label: z.string(), - url: z.string(), - details: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyDetails$inboundSchema - ).optional(), - remote_fields: z.lazy(() => - PostAtsApplicationsApplicationIdResultLinksRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsApplicationsApplicationIdResultLinksRequestBody$Outbound = { label: string; @@ -854,22 +460,6 @@ export const PostAtsApplicationsApplicationIdResultLinksRequestBody$outboundSche ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsApplicationsApplicationIdResultLinksRequestBody$ { - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBody$inboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsApplicationsApplicationIdResultLinksRequestBody$outboundSchema; - /** @deprecated use `PostAtsApplicationsApplicationIdResultLinksRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsApplicationsApplicationIdResultLinksRequestBody$Outbound; -} - export function postAtsApplicationsApplicationIdResultLinksRequestBodyToJSON( postAtsApplicationsApplicationIdResultLinksRequestBody: PostAtsApplicationsApplicationIdResultLinksRequestBody, @@ -880,18 +470,3 @@ export function postAtsApplicationsApplicationIdResultLinksRequestBodyToJSON( ), ); } - -export function postAtsApplicationsApplicationIdResultLinksRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsApplicationsApplicationIdResultLinksRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsApplicationsApplicationIdResultLinksRequestBody$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsApplicationsApplicationIdResultLinksRequestBody' from JSON`, - ); -} diff --git a/src/models/postatscandidatescandidateidattachmentspositiveresponse.ts b/src/models/postatscandidatescandidateidattachmentspositiveresponse.ts index 387d826..ea9ca57 100644 --- a/src/models/postatscandidatescandidateidattachmentspositiveresponse.ts +++ b/src/models/postatscandidatescandidateidattachmentspositiveresponse.ts @@ -32,44 +32,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inbound unknown > = z.object({}); -/** @internal */ -export type PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound; -} - -export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseDataToJSON( - postAtsCandidatesCandidateIdAttachmentsPositiveResponseData: - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema - .parse(postAtsCandidatesCandidateIdAttachmentsPositiveResponseData), - ); -} - export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -95,48 +57,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inbo message: z.string(), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound; -} - -export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseWarningToJSON( - postAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning: - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema - .parse(postAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning), - ); -} - export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -170,59 +90,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSche ), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound = { - status: "success"; - data: PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$Outbound; - warnings: Array< - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$Outbound; -} - -export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseToJSON( - postAtsCandidatesCandidateIdAttachmentsPositiveResponse: - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdAttachmentsPositiveResponse$outboundSchema - .parse(postAtsCandidatesCandidateIdAttachmentsPositiveResponse), - ); -} - export function postAtsCandidatesCandidateIdAttachmentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatscandidatescandidateidattachmentsrequestbody.ts b/src/models/postatscandidatescandidateidattachmentsrequestbody.ts index 0dcce9d..cf0c42b 100644 --- a/src/models/postatscandidatescandidateidattachmentsrequestbody.ts +++ b/src/models/postatscandidatescandidateidattachmentsrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Type of the attachment in the ATS. This may affect where the uploaded file will be shown in your customer's system. @@ -123,44 +120,11 @@ export type PostAtsCandidatesCandidateIdAttachmentsRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$inboundSchema: - z.ZodNativeEnum< - typeof PostAtsCandidatesCandidateIdAttachmentsRequestBodyType - > = z.nativeEnum(PostAtsCandidatesCandidateIdAttachmentsRequestBodyType); - /** @internal */ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesCandidateIdAttachmentsRequestBodyType - > = PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - type: PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$inboundSchema, - }); + > = z.nativeEnum(PostAtsCandidatesCandidateIdAttachmentsRequestBodyType); /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$Outbound = @@ -186,22 +150,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$outbou type: PostAtsCandidatesCandidateIdAttachmentsRequestBodyType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyAttachmentToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment: PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment, @@ -212,35 +160,6 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyAttachmentToJS ); } -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyAttachmentFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$Outbound = { @@ -261,22 +180,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$outbo }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeadersToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders: PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders, @@ -287,33 +190,6 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeadersToJ ); } -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$Outbound = { @@ -334,22 +210,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$outbou ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouseToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse: PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse, @@ -360,31 +220,6 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouseToJS ); } -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$Outbound = { @@ -401,22 +236,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$outbound on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyWorkableToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable: PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable, @@ -427,36 +246,6 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyWorkableToJSON ); } -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - greenhouse: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$Outbound = { @@ -483,22 +272,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$outb ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFieldsToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields: PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields, @@ -509,36 +282,6 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFieldsTo ); } -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdAttachmentsRequestBody$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdAttachmentsRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - attachment: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyAttachment$inboundSchema - ), - remote_fields: z.lazy(() => - PostAtsCandidatesCandidateIdAttachmentsRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdAttachmentsRequestBody$Outbound = { attachment: @@ -563,22 +306,6 @@ export const PostAtsCandidatesCandidateIdAttachmentsRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdAttachmentsRequestBody$ { - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBody$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdAttachmentsRequestBody$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdAttachmentsRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdAttachmentsRequestBody$Outbound; -} - export function postAtsCandidatesCandidateIdAttachmentsRequestBodyToJSON( postAtsCandidatesCandidateIdAttachmentsRequestBody: PostAtsCandidatesCandidateIdAttachmentsRequestBody, @@ -589,19 +316,3 @@ export function postAtsCandidatesCandidateIdAttachmentsRequestBodyToJSON( ), ); } - -export function postAtsCandidatesCandidateIdAttachmentsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdAttachmentsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdAttachmentsRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdAttachmentsRequestBody' from JSON`, - ); -} diff --git a/src/models/postatscandidatescandidateidresultlinkspositiveresponse.ts b/src/models/postatscandidatescandidateidresultlinkspositiveresponse.ts index 479113d..f36d760 100644 --- a/src/models/postatscandidatescandidateidresultlinkspositiveresponse.ts +++ b/src/models/postatscandidatescandidateidresultlinkspositiveresponse.ts @@ -32,44 +32,6 @@ export const PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$inbound unknown > = z.object({}); -/** @internal */ -export type PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$Outbound; -} - -export function postAtsCandidatesCandidateIdResultLinksPositiveResponseDataToJSON( - postAtsCandidatesCandidateIdResultLinksPositiveResponseData: - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$outboundSchema - .parse(postAtsCandidatesCandidateIdResultLinksPositiveResponseData), - ); -} - export function postAtsCandidatesCandidateIdResultLinksPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -95,48 +57,6 @@ export const PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$inbo message: z.string(), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$Outbound; -} - -export function postAtsCandidatesCandidateIdResultLinksPositiveResponseWarningToJSON( - postAtsCandidatesCandidateIdResultLinksPositiveResponseWarning: - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$outboundSchema - .parse(postAtsCandidatesCandidateIdResultLinksPositiveResponseWarning), - ); -} - export function postAtsCandidatesCandidateIdResultLinksPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -170,59 +90,6 @@ export const PostAtsCandidatesCandidateIdResultLinksPositiveResponse$inboundSche ), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdResultLinksPositiveResponse$Outbound = { - status: "success"; - data: PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$Outbound; - warnings: Array< - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksPositiveResponse$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdResultLinksPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksPositiveResponse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksPositiveResponse$Outbound; -} - -export function postAtsCandidatesCandidateIdResultLinksPositiveResponseToJSON( - postAtsCandidatesCandidateIdResultLinksPositiveResponse: - PostAtsCandidatesCandidateIdResultLinksPositiveResponse, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdResultLinksPositiveResponse$outboundSchema - .parse(postAtsCandidatesCandidateIdResultLinksPositiveResponse), - ); -} - export function postAtsCandidatesCandidateIdResultLinksPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatscandidatescandidateidresultlinksrequestbody.ts b/src/models/postatscandidatescandidateidresultlinksrequestbody.ts index c364d6a..44e016c 100644 --- a/src/models/postatscandidatescandidateidresultlinksrequestbody.ts +++ b/src/models/postatscandidatescandidateidresultlinksrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute = { /** @@ -166,17 +163,6 @@ export type PostAtsCandidatesCandidateIdResultLinksRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute, - z.ZodTypeDef, - unknown - > = z.object({ - key: z.string(), - value: z.string(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$Outbound = { @@ -195,22 +181,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$outboun value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyAttributeToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyAttribute: PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute, @@ -221,36 +191,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyAttributeToJSO ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyAttributeFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails, - z.ZodTypeDef, - unknown - > = z.object({ - custom_field_name_prefix: z.string(), - attributes: z.array( - z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyAttribute$inboundSchema - ), - ), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$Outbound = { @@ -275,22 +215,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$outboundS ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyDetailsToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyDetails: PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails, @@ -301,31 +225,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyDetailsToJSON( ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyDetailsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims, - z.ZodTypeDef, - unknown - > = z.object({ - assessment_package_id: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$Outbound = { assessment_package_id?: string | undefined; @@ -341,22 +240,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$outboundSch assessment_package_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyIcimsToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyIcims: PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims, @@ -367,62 +250,14 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyIcimsToJSON( ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyIcimsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims' from JSON`, - ); -} - /** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema: +export const PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory > = z.nativeEnum( PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory, ); -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema: - z.ZodNativeEnum< - typeof PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory - > = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle, - z.ZodTypeDef, - unknown - > = z.object({ - override_document_category: - PostAtsCandidatesCandidateIdResultLinksRequestBodyOverrideDocumentCategory$inboundSchema - .optional(), - multi_post_to_all_current_applications: z.boolean().optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$Outbound = { @@ -443,22 +278,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$outboundSc multi_post_to_all_current_applications: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyOracleToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyOracle: PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle, @@ -469,35 +288,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyOracleToJSON( ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyOracleFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$Outbound = { @@ -518,22 +308,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$outbo }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyPostHeadersToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders: PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders, @@ -544,33 +318,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyPostHeadersToJ ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$Outbound = { @@ -591,22 +338,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$outbou ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouseToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse: PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse, @@ -617,31 +348,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouseToJS ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$Outbound = { @@ -658,22 +364,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$outbound on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyWorkableToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyWorkable: PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable, @@ -684,42 +374,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyWorkableToJSON ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - icims: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyIcims$inboundSchema - ).optional(), - oracle: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyOracle$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$Outbound = { @@ -758,22 +412,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$outb ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFieldsToJSON( postAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields: PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields, @@ -784,38 +422,6 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFieldsTo ); } -export function postAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdResultLinksRequestBody$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdResultLinksRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - label: z.string(), - url: z.string(), - details: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyDetails$inboundSchema - ).optional(), - remote_fields: z.lazy(() => - PostAtsCandidatesCandidateIdResultLinksRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdResultLinksRequestBody$Outbound = { label: string; @@ -845,22 +451,6 @@ export const PostAtsCandidatesCandidateIdResultLinksRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdResultLinksRequestBody$ { - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBody$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdResultLinksRequestBody$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdResultLinksRequestBody$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdResultLinksRequestBody$Outbound; -} - export function postAtsCandidatesCandidateIdResultLinksRequestBodyToJSON( postAtsCandidatesCandidateIdResultLinksRequestBody: PostAtsCandidatesCandidateIdResultLinksRequestBody, @@ -871,19 +461,3 @@ export function postAtsCandidatesCandidateIdResultLinksRequestBodyToJSON( ), ); } - -export function postAtsCandidatesCandidateIdResultLinksRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdResultLinksRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdResultLinksRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdResultLinksRequestBody' from JSON`, - ); -} diff --git a/src/models/postatscandidatescandidateidtagspositiveresponse.ts b/src/models/postatscandidatescandidateidtagspositiveresponse.ts index 72f999b..147bca3 100644 --- a/src/models/postatscandidatescandidateidtagspositiveresponse.ts +++ b/src/models/postatscandidatescandidateidtagspositiveresponse.ts @@ -30,44 +30,6 @@ export const PostAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchema: unknown > = z.object({}); -/** @internal */ -export type PostAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound = {}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdTagsPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsPositiveResponseData$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound; -} - -export function postAtsCandidatesCandidateIdTagsPositiveResponseDataToJSON( - postAtsCandidatesCandidateIdTagsPositiveResponseData: - PostAtsCandidatesCandidateIdTagsPositiveResponseData, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema.parse( - postAtsCandidatesCandidateIdTagsPositiveResponseData, - ), - ); -} - export function postAtsCandidatesCandidateIdTagsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -94,47 +56,6 @@ export const PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSche message: z.string(), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound; -} - -export function postAtsCandidatesCandidateIdTagsPositiveResponseWarningToJSON( - postAtsCandidatesCandidateIdTagsPositiveResponseWarning: - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema - .parse(postAtsCandidatesCandidateIdTagsPositiveResponseWarning), - ); -} - export function postAtsCandidatesCandidateIdTagsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -168,60 +89,6 @@ export const PostAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PostAtsCandidatesCandidateIdTagsPositiveResponse$Outbound = { - status: "success"; - data: PostAtsCandidatesCandidateIdTagsPositiveResponseData$Outbound; - warnings: Array< - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsCandidatesCandidateIdTagsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsCandidatesCandidateIdTagsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsCandidatesCandidateIdTagsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsPositiveResponse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsPositiveResponse$Outbound; -} - -export function postAtsCandidatesCandidateIdTagsPositiveResponseToJSON( - postAtsCandidatesCandidateIdTagsPositiveResponse: - PostAtsCandidatesCandidateIdTagsPositiveResponse, -): string { - return JSON.stringify( - PostAtsCandidatesCandidateIdTagsPositiveResponse$outboundSchema.parse( - postAtsCandidatesCandidateIdTagsPositiveResponse, - ), - ); -} - export function postAtsCandidatesCandidateIdTagsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatscandidatescandidateidtagsrequestbody.ts b/src/models/postatscandidatescandidateidtagsrequestbody.ts index 43ac83d..0a92f28 100644 --- a/src/models/postatscandidatescandidateidtagsrequestbody.ts +++ b/src/models/postatscandidatescandidateidtagsrequestbody.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PostAtsCandidatesCandidateIdTagsRequestBodyTag = { /** @@ -73,16 +70,6 @@ export type PostAtsCandidatesCandidateIdTagsRequestBody = { | undefined; }; -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBodyTag, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound = { name: string; @@ -98,22 +85,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema: name: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBodyTag$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyTag$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyTagToJSON( postAtsCandidatesCandidateIdTagsRequestBodyTag: PostAtsCandidatesCandidateIdTagsRequestBodyTag, @@ -125,36 +96,6 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyTagToJSON( ); } -export function postAtsCandidatesCandidateIdTagsRequestBodyTagFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBodyTag, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBodyTag' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound = { "On-Behalf-Of"?: string | null | undefined; @@ -174,22 +115,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSche }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyPostHeadersToJSON( postAtsCandidatesCandidateIdTagsRequestBodyPostHeaders: PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, @@ -201,33 +126,6 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyPostHeadersToJSON( ); } -export function postAtsCandidatesCandidateIdTagsRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsCandidatesCandidateIdTagsRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound = { post_headers?: @@ -247,22 +145,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSchem ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyGreenhouseToJSON( postAtsCandidatesCandidateIdTagsRequestBodyGreenhouse: PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, @@ -274,32 +156,6 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyGreenhouseToJSON( ); } -export function postAtsCandidatesCandidateIdTagsRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound = { on_behalf_of_user_remote_id?: string | undefined; @@ -315,22 +171,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchema: on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyWorkableToJSON( postAtsCandidatesCandidateIdTagsRequestBodyWorkable: PostAtsCandidatesCandidateIdTagsRequestBodyWorkable, @@ -342,37 +182,6 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyWorkableToJSON( ); } -export function postAtsCandidatesCandidateIdTagsRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - greenhouse: z.lazy(() => - PostAtsCandidatesCandidateIdTagsRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsCandidatesCandidateIdTagsRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound = { greenhouse?: @@ -398,22 +207,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundSch ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsToJSON( postAtsCandidatesCandidateIdTagsRequestBodyRemoteFields: PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, @@ -424,36 +217,6 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsToJSON( ); } -export function postAtsCandidatesCandidateIdTagsRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesCandidateIdTagsRequestBody$inboundSchema: - z.ZodType< - PostAtsCandidatesCandidateIdTagsRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - tag: z.lazy(() => - PostAtsCandidatesCandidateIdTagsRequestBodyTag$inboundSchema - ), - remote_fields: z.lazy(() => - PostAtsCandidatesCandidateIdTagsRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsCandidatesCandidateIdTagsRequestBody$Outbound = { tag: PostAtsCandidatesCandidateIdTagsRequestBodyTag$Outbound; @@ -477,21 +240,6 @@ export const PostAtsCandidatesCandidateIdTagsRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesCandidateIdTagsRequestBody$ { - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBody$inboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesCandidateIdTagsRequestBody$outboundSchema; - /** @deprecated use `PostAtsCandidatesCandidateIdTagsRequestBody$Outbound` instead. */ - export type Outbound = PostAtsCandidatesCandidateIdTagsRequestBody$Outbound; -} - export function postAtsCandidatesCandidateIdTagsRequestBodyToJSON( postAtsCandidatesCandidateIdTagsRequestBody: PostAtsCandidatesCandidateIdTagsRequestBody, @@ -502,19 +250,3 @@ export function postAtsCandidatesCandidateIdTagsRequestBodyToJSON( ), ); } - -export function postAtsCandidatesCandidateIdTagsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesCandidateIdTagsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesCandidateIdTagsRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesCandidateIdTagsRequestBody' from JSON`, - ); -} diff --git a/src/models/postatscandidatespositiveresponse.ts b/src/models/postatscandidatespositiveresponse.ts index b646b07..fbf556e 100644 --- a/src/models/postatscandidatespositiveresponse.ts +++ b/src/models/postatscandidatespositiveresponse.ts @@ -270,49 +270,6 @@ export const PostAtsCandidatesPositiveResponsePhoneNumber$inboundSchema: type: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponsePhoneNumber$Outbound = { - phone_number: string; - type?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponsePhoneNumber$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponsePhoneNumber$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponsePhoneNumber - > = z.object({ - phone_number: z.string(), - type: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponsePhoneNumber$ { - /** @deprecated use `PostAtsCandidatesPositiveResponsePhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponsePhoneNumber$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponsePhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponsePhoneNumber$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponsePhoneNumber$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponsePhoneNumber$Outbound; -} - -export function postAtsCandidatesPositiveResponsePhoneNumberToJSON( - postAtsCandidatesPositiveResponsePhoneNumber: - PostAtsCandidatesPositiveResponsePhoneNumber, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponsePhoneNumber$outboundSchema.parse( - postAtsCandidatesPositiveResponsePhoneNumber, - ), - ); -} - export function postAtsCandidatesPositiveResponsePhoneNumberFromJSON( jsonString: string, ): SafeParseResult< @@ -340,49 +297,6 @@ export const PostAtsCandidatesPositiveResponseEmailAddress$inboundSchema: type: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseEmailAddress$Outbound = { - email_address?: string | null | undefined; - type: string | null; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseEmailAddress$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseEmailAddress - > = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseEmailAddress$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseEmailAddress$Outbound; -} - -export function postAtsCandidatesPositiveResponseEmailAddressToJSON( - postAtsCandidatesPositiveResponseEmailAddress: - PostAtsCandidatesPositiveResponseEmailAddress, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseEmailAddress$outboundSchema.parse( - postAtsCandidatesPositiveResponseEmailAddress, - ), - ); -} - export function postAtsCandidatesPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -411,51 +325,6 @@ export const PostAtsCandidatesPositiveResponseSocialMedia$inboundSchema: username: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseSocialMedia$Outbound = { - link?: string | null | undefined; - type?: string | null | undefined; - username?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseSocialMedia$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponseSocialMedia$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseSocialMedia - > = z.object({ - link: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseSocialMedia$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseSocialMedia$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseSocialMedia$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseSocialMedia$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseSocialMedia$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseSocialMedia$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseSocialMedia$Outbound; -} - -export function postAtsCandidatesPositiveResponseSocialMediaToJSON( - postAtsCandidatesPositiveResponseSocialMedia: - PostAtsCandidatesPositiveResponseSocialMedia, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseSocialMedia$outboundSchema.parse( - postAtsCandidatesPositiveResponseSocialMedia, - ), - ); -} - export function postAtsCandidatesPositiveResponseSocialMediaFromJSON( jsonString: string, ): SafeParseResult< @@ -487,59 +356,6 @@ export const PostAtsCandidatesPositiveResponseLocation$inboundSchema: z.ZodType< zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseLocation$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponseLocation$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseLocation - > = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseLocation$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseLocation$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseLocation$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseLocation$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseLocation$Outbound; -} - -export function postAtsCandidatesPositiveResponseLocationToJSON( - postAtsCandidatesPositiveResponseLocation: - PostAtsCandidatesPositiveResponseLocation, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseLocation$outboundSchema.parse( - postAtsCandidatesPositiveResponseLocation, - ), - ); -} - export function postAtsCandidatesPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -561,24 +377,6 @@ export const PostAtsCandidatesPositiveResponseOutcome$inboundSchema: z.ZodNativeEnum = z .nativeEnum(PostAtsCandidatesPositiveResponseOutcome); -/** @internal */ -export const PostAtsCandidatesPositiveResponseOutcome$outboundSchema: - z.ZodNativeEnum = - PostAtsCandidatesPositiveResponseOutcome$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseOutcome$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseOutcome$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseOutcome$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseOutcome$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseOutcome$outboundSchema; -} - /** @internal */ export const PostAtsCandidatesPositiveResponseCurrentStage$inboundSchema: z.ZodType< @@ -592,53 +390,6 @@ export const PostAtsCandidatesPositiveResponseCurrentStage$inboundSchema: index: z.nullable(z.number().int()), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseCurrentStage$Outbound = { - id: string; - name: string | null; - remote_id: string | null; - index: number | null; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseCurrentStage$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponseCurrentStage$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseCurrentStage - > = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), - index: z.nullable(z.number().int()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseCurrentStage$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseCurrentStage$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseCurrentStage$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseCurrentStage$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseCurrentStage$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseCurrentStage$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseCurrentStage$Outbound; -} - -export function postAtsCandidatesPositiveResponseCurrentStageToJSON( - postAtsCandidatesPositiveResponseCurrentStage: - PostAtsCandidatesPositiveResponseCurrentStage, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseCurrentStage$outboundSchema.parse( - postAtsCandidatesPositiveResponseCurrentStage, - ), - ); -} - export function postAtsCandidatesPositiveResponseCurrentStageFromJSON( jsonString: string, ): SafeParseResult< @@ -666,49 +417,6 @@ export const PostAtsCandidatesPositiveResponseJob$inboundSchema: z.ZodType< remote_id: z.string(), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseJob$Outbound = { - id: string; - name: string | null; - remote_id: string; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseJob$outboundSchema: z.ZodType< - PostAtsCandidatesPositiveResponseJob$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseJob -> = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseJob$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseJob$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseJob$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseJob$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseJob$Outbound; -} - -export function postAtsCandidatesPositiveResponseJobToJSON( - postAtsCandidatesPositiveResponseJob: PostAtsCandidatesPositiveResponseJob, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseJob$outboundSchema.parse( - postAtsCandidatesPositiveResponseJob, - ), - ); -} - export function postAtsCandidatesPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult { @@ -752,75 +460,6 @@ export const PostAtsCandidatesPositiveResponseApplication$inboundSchema: ), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseApplication$Outbound = { - id: string; - remote_id: string | null; - outcome: string | null; - rejection_reason_name: string | null; - rejected_at: string | null; - remote_url: string | null; - changed_at: string; - remote_created_at: string | null; - remote_updated_at: string | null; - current_stage: PostAtsCandidatesPositiveResponseCurrentStage$Outbound | null; - job: PostAtsCandidatesPositiveResponseJob$Outbound | null; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseApplication$outboundSchema: - z.ZodType< - PostAtsCandidatesPositiveResponseApplication$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseApplication - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - outcome: z.nullable( - PostAtsCandidatesPositiveResponseOutcome$outboundSchema, - ), - rejection_reason_name: z.nullable(z.string()), - rejected_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_url: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - current_stage: z.nullable( - z.lazy(() => - PostAtsCandidatesPositiveResponseCurrentStage$outboundSchema - ), - ), - job: z.nullable( - z.lazy(() => PostAtsCandidatesPositiveResponseJob$outboundSchema), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseApplication$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseApplication$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseApplication$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseApplication$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseApplication$Outbound; -} - -export function postAtsCandidatesPositiveResponseApplicationToJSON( - postAtsCandidatesPositiveResponseApplication: - PostAtsCandidatesPositiveResponseApplication, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseApplication$outboundSchema.parse( - postAtsCandidatesPositiveResponseApplication, - ), - ); -} - export function postAtsCandidatesPositiveResponseApplicationFromJSON( jsonString: string, ): SafeParseResult< @@ -848,49 +487,6 @@ export const PostAtsCandidatesPositiveResponseTag$inboundSchema: z.ZodType< remote_id: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseTag$Outbound = { - id: string; - name: string | null; - remote_id: string | null; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseTag$outboundSchema: z.ZodType< - PostAtsCandidatesPositiveResponseTag$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseTag -> = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseTag$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseTag$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseTag$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseTag$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseTag$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseTag$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseTag$Outbound; -} - -export function postAtsCandidatesPositiveResponseTagToJSON( - postAtsCandidatesPositiveResponseTag: PostAtsCandidatesPositiveResponseTag, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseTag$outboundSchema.parse( - postAtsCandidatesPositiveResponseTag, - ), - ); -} - export function postAtsCandidatesPositiveResponseTagFromJSON( jsonString: string, ): SafeParseResult { @@ -954,113 +550,6 @@ export const PostAtsCandidatesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseData$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - company: string | null; - title: string | null; - confidential: boolean | null; - source: string | null; - phone_numbers?: - | Array - | null - | undefined; - email_addresses?: - | Array - | null - | undefined; - social_media?: - | Array - | null - | undefined; - location?: - | PostAtsCandidatesPositiveResponseLocation$Outbound - | null - | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - changed_at: string; - remote_deleted_at: string | null; - applications: Array; - tags: Array; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseData$outboundSchema: z.ZodType< - PostAtsCandidatesPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseData -> = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - company: z.nullable(z.string()), - title: z.nullable(z.string()), - confidential: z.nullable(z.boolean()), - source: z.nullable(z.string()), - phone_numbers: z.nullable( - z.array(z.lazy(() => - PostAtsCandidatesPositiveResponsePhoneNumber$outboundSchema - )), - ).optional(), - email_addresses: z.nullable( - z.array(z.lazy(() => - PostAtsCandidatesPositiveResponseEmailAddress$outboundSchema - )), - ).optional(), - social_media: z.nullable( - z.array(z.lazy(() => - PostAtsCandidatesPositiveResponseSocialMedia$outboundSchema - )), - ).optional(), - location: z.nullable( - z.lazy(() => PostAtsCandidatesPositiveResponseLocation$outboundSchema), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - applications: z.array( - z.lazy(() => PostAtsCandidatesPositiveResponseApplication$outboundSchema), - ), - tags: z.array( - z.lazy(() => PostAtsCandidatesPositiveResponseTag$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseData$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseData$Outbound; -} - -export function postAtsCandidatesPositiveResponseDataToJSON( - postAtsCandidatesPositiveResponseData: PostAtsCandidatesPositiveResponseData, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseData$outboundSchema.parse( - postAtsCandidatesPositiveResponseData, - ), - ); -} - export function postAtsCandidatesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -1081,46 +570,6 @@ export const PostAtsCandidatesPositiveResponseWarning$inboundSchema: z.ZodType< message: z.string(), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponseWarning$outboundSchema: z.ZodType< - PostAtsCandidatesPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponseWarning -> = z.object({ - message: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponseWarning$ { - /** @deprecated use `PostAtsCandidatesPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponseWarning$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponseWarning$Outbound; -} - -export function postAtsCandidatesPositiveResponseWarningToJSON( - postAtsCandidatesPositiveResponseWarning: - PostAtsCandidatesPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponseWarning$outboundSchema.parse( - postAtsCandidatesPositiveResponseWarning, - ), - ); -} - export function postAtsCandidatesPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -1150,50 +599,6 @@ export const PostAtsCandidatesPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostAtsCandidatesPositiveResponse$Outbound = { - status: "success"; - data: PostAtsCandidatesPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PostAtsCandidatesPositiveResponse$outboundSchema: z.ZodType< - PostAtsCandidatesPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsCandidatesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostAtsCandidatesPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => PostAtsCandidatesPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesPositiveResponse$ { - /** @deprecated use `PostAtsCandidatesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsCandidatesPositiveResponse$Outbound` instead. */ - export type Outbound = PostAtsCandidatesPositiveResponse$Outbound; -} - -export function postAtsCandidatesPositiveResponseToJSON( - postAtsCandidatesPositiveResponse: PostAtsCandidatesPositiveResponse, -): string { - return JSON.stringify( - PostAtsCandidatesPositiveResponse$outboundSchema.parse( - postAtsCandidatesPositiveResponse, - ), - ); -} - export function postAtsCandidatesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/postatscandidatesrequestbody.ts b/src/models/postatscandidatesrequestbody.ts index f9c96a3..ad5281c 100644 --- a/src/models/postatscandidatesrequestbody.ts +++ b/src/models/postatscandidatesrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; export const PostAtsCandidatesRequestBodyAdditionalEmailAddressType = { Personal: "PERSONAL", @@ -809,6 +806,26 @@ export type PostAtsCandidatesRequestBodyUmantis = { person?: { [k: string]: any } | undefined; }; +/** + * Additional candidate fields for P&I Loga that will be mapped to the application form. + */ +export type PostAtsCandidatesRequestBodyPilogaCandidate = { + /** + * The street address of the candidate. + */ + street?: string | undefined; +}; + +/** + * Fields specific to P&I Loga. + */ +export type PostAtsCandidatesRequestBodyPiloga = { + /** + * Additional candidate fields for P&I Loga that will be mapped to the application form. + */ + candidate?: PostAtsCandidatesRequestBodyPilogaCandidate | undefined; +}; + /** * Additional fields that we will pass through to specific ATS systems. */ @@ -886,6 +903,10 @@ export type PostAtsCandidatesRequestBodyRemoteFields = { * Fields specific to Abacus Umantis. */ umantis?: PostAtsCandidatesRequestBodyUmantis | undefined; + /** + * Fields specific to P&I Loga. + */ + piloga?: PostAtsCandidatesRequestBodyPiloga | undefined; }; export type PostAtsCandidatesRequestBody = { @@ -938,41 +959,11 @@ export type PostAtsCandidatesRequestBody = { remote_fields?: PostAtsCandidatesRequestBodyRemoteFields | undefined; }; -/** @internal */ -export const PostAtsCandidatesRequestBodyAdditionalEmailAddressType$inboundSchema: - z.ZodNativeEnum< - typeof PostAtsCandidatesRequestBodyAdditionalEmailAddressType - > = z.nativeEnum(PostAtsCandidatesRequestBodyAdditionalEmailAddressType); - /** @internal */ export const PostAtsCandidatesRequestBodyAdditionalEmailAddressType$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesRequestBodyAdditionalEmailAddressType - > = PostAtsCandidatesRequestBodyAdditionalEmailAddressType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAdditionalEmailAddressType$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalEmailAddressType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAdditionalEmailAddressType$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalEmailAddressType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAdditionalEmailAddressType$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAdditionalEmailAddress$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyAdditionalEmailAddress, - z.ZodTypeDef, - unknown - > = z.object({ - type: PostAtsCandidatesRequestBodyAdditionalEmailAddressType$inboundSchema, - email_address: z.string(), - }); + > = z.nativeEnum(PostAtsCandidatesRequestBodyAdditionalEmailAddressType); /** @internal */ export type PostAtsCandidatesRequestBodyAdditionalEmailAddress$Outbound = { @@ -991,22 +982,6 @@ export const PostAtsCandidatesRequestBodyAdditionalEmailAddress$outboundSchema: email_address: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAdditionalEmailAddress$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAdditionalEmailAddress$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAdditionalEmailAddress$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalEmailAddress$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyAdditionalEmailAddress$Outbound; -} - export function postAtsCandidatesRequestBodyAdditionalEmailAddressToJSON( postAtsCandidatesRequestBodyAdditionalEmailAddress: PostAtsCandidatesRequestBodyAdditionalEmailAddress, @@ -1018,57 +993,11 @@ export function postAtsCandidatesRequestBodyAdditionalEmailAddressToJSON( ); } -export function postAtsCandidatesRequestBodyAdditionalEmailAddressFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyAdditionalEmailAddress, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAdditionalEmailAddress$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyAdditionalEmailAddress' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$inboundSchema: - z.ZodNativeEnum< - typeof PostAtsCandidatesRequestBodyAdditionalPhoneNumberType - > = z.nativeEnum(PostAtsCandidatesRequestBodyAdditionalPhoneNumberType); - /** @internal */ export const PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesRequestBodyAdditionalPhoneNumberType - > = PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAdditionalPhoneNumber$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyAdditionalPhoneNumber, - z.ZodTypeDef, - unknown - > = z.object({ - type: PostAtsCandidatesRequestBodyAdditionalPhoneNumberType$inboundSchema, - phone_number: z.string(), - }); + > = z.nativeEnum(PostAtsCandidatesRequestBodyAdditionalPhoneNumberType); /** @internal */ export type PostAtsCandidatesRequestBodyAdditionalPhoneNumber$Outbound = { @@ -1087,22 +1016,6 @@ export const PostAtsCandidatesRequestBodyAdditionalPhoneNumber$outboundSchema: phone_number: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAdditionalPhoneNumber$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalPhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAdditionalPhoneNumber$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalPhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAdditionalPhoneNumber$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAdditionalPhoneNumber$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyAdditionalPhoneNumber$Outbound; -} - export function postAtsCandidatesRequestBodyAdditionalPhoneNumberToJSON( postAtsCandidatesRequestBodyAdditionalPhoneNumber: PostAtsCandidatesRequestBodyAdditionalPhoneNumber, @@ -1114,34 +1027,6 @@ export function postAtsCandidatesRequestBodyAdditionalPhoneNumberToJSON( ); } -export function postAtsCandidatesRequestBodyAdditionalPhoneNumberFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyAdditionalPhoneNumber, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAdditionalPhoneNumber$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyAdditionalPhoneNumber' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLocation$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyLocation, - z.ZodTypeDef, - unknown -> = z.object({ - city: z.string().optional(), - country: z.string(), - state: z.string().optional(), - zip_code: z.string().optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyLocation$Outbound = { city?: string | undefined; @@ -1162,21 +1047,6 @@ export const PostAtsCandidatesRequestBodyLocation$outboundSchema: z.ZodType< zip_code: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLocation$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLocation$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLocation$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLocation$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLocation$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLocation$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLocation$Outbound; -} - export function postAtsCandidatesRequestBodyLocationToJSON( postAtsCandidatesRequestBodyLocation: PostAtsCandidatesRequestBodyLocation, ): string { @@ -1187,71 +1057,15 @@ export function postAtsCandidatesRequestBodyLocationToJSON( ); } -export function postAtsCandidatesRequestBodyLocationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLocation$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLocation' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyGender$inboundSchema: z.ZodNativeEnum< - typeof PostAtsCandidatesRequestBodyGender -> = z.nativeEnum(PostAtsCandidatesRequestBodyGender); - /** @internal */ export const PostAtsCandidatesRequestBodyGender$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesRequestBodyGender -> = PostAtsCandidatesRequestBodyGender$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyGender$ { - /** @deprecated use `PostAtsCandidatesRequestBodyGender$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyGender$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGender$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyGender$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyPeriod$inboundSchema: z.ZodNativeEnum< - typeof PostAtsCandidatesRequestBodyPeriod -> = z.nativeEnum(PostAtsCandidatesRequestBodyPeriod); +> = z.nativeEnum(PostAtsCandidatesRequestBodyGender); /** @internal */ export const PostAtsCandidatesRequestBodyPeriod$outboundSchema: z.ZodNativeEnum< typeof PostAtsCandidatesRequestBodyPeriod -> = PostAtsCandidatesRequestBodyPeriod$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyPeriod$ { - /** @deprecated use `PostAtsCandidatesRequestBodyPeriod$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyPeriod$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyPeriod$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyPeriod$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySalaryExpectations$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodySalaryExpectations, - z.ZodTypeDef, - unknown - > = z.object({ - period: PostAtsCandidatesRequestBodyPeriod$inboundSchema, - amount: z.number(), - }); +> = z.nativeEnum(PostAtsCandidatesRequestBodyPeriod); /** @internal */ export type PostAtsCandidatesRequestBodySalaryExpectations$Outbound = { @@ -1270,22 +1084,6 @@ export const PostAtsCandidatesRequestBodySalaryExpectations$outboundSchema: amount: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySalaryExpectations$ { - /** @deprecated use `PostAtsCandidatesRequestBodySalaryExpectations$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySalaryExpectations$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySalaryExpectations$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySalaryExpectations$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySalaryExpectations$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodySalaryExpectations$Outbound; -} - export function postAtsCandidatesRequestBodySalaryExpectationsToJSON( postAtsCandidatesRequestBodySalaryExpectations: PostAtsCandidatesRequestBodySalaryExpectations, @@ -1297,31 +1095,6 @@ export function postAtsCandidatesRequestBodySalaryExpectationsToJSON( ); } -export function postAtsCandidatesRequestBodySalaryExpectationsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodySalaryExpectations, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySalaryExpectations$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodySalaryExpectations' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySocialLink$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodySocialLink, - z.ZodTypeDef, - unknown -> = z.object({ - url: z.string(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodySocialLink$Outbound = { url: string; @@ -1336,21 +1109,6 @@ export const PostAtsCandidatesRequestBodySocialLink$outboundSchema: z.ZodType< url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySocialLink$ { - /** @deprecated use `PostAtsCandidatesRequestBodySocialLink$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySocialLink$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySocialLink$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySocialLink$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySocialLink$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySocialLink$Outbound; -} - export function postAtsCandidatesRequestBodySocialLinkToJSON( postAtsCandidatesRequestBodySocialLink: PostAtsCandidatesRequestBodySocialLink, @@ -1362,53 +1120,6 @@ export function postAtsCandidatesRequestBodySocialLinkToJSON( ); } -export function postAtsCandidatesRequestBodySocialLinkFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySocialLink$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodySocialLink' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyCandidate$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyCandidate, - z.ZodTypeDef, - unknown -> = z.object({ - first_name: z.string(), - last_name: z.string(), - email_address: z.string(), - additional_email_addresses: z.array( - z.lazy(() => - PostAtsCandidatesRequestBodyAdditionalEmailAddress$inboundSchema - ), - ).optional(), - company: z.string().optional(), - title: z.string().optional(), - phone_number: z.string().optional(), - additional_phone_numbers: z.array( - z.lazy(() => - PostAtsCandidatesRequestBodyAdditionalPhoneNumber$inboundSchema - ), - ).optional(), - location: z.lazy(() => PostAtsCandidatesRequestBodyLocation$inboundSchema) - .optional(), - gender: PostAtsCandidatesRequestBodyGender$inboundSchema.optional(), - availability_date: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - salary_expectations: z.lazy(() => - PostAtsCandidatesRequestBodySalaryExpectations$inboundSchema - ).optional(), - social_links: z.array( - z.lazy(() => PostAtsCandidatesRequestBodySocialLink$inboundSchema), - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyCandidate$Outbound = { first_name: string; @@ -1468,21 +1179,6 @@ export const PostAtsCandidatesRequestBodyCandidate$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyCandidate$ { - /** @deprecated use `PostAtsCandidatesRequestBodyCandidate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyCandidate$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCandidate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyCandidate$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCandidate$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyCandidate$Outbound; -} - export function postAtsCandidatesRequestBodyCandidateToJSON( postAtsCandidatesRequestBodyCandidate: PostAtsCandidatesRequestBodyCandidate, ): string { @@ -1493,27 +1189,6 @@ export function postAtsCandidatesRequestBodyCandidateToJSON( ); } -export function postAtsCandidatesRequestBodyCandidateFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyCandidate$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyCandidate' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyApplication$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyApplication, - z.ZodTypeDef, - unknown -> = z.object({ - job_id: z.string(), - stage_id: z.string().optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyApplication$Outbound = { job_id: string; @@ -1530,21 +1205,6 @@ export const PostAtsCandidatesRequestBodyApplication$outboundSchema: z.ZodType< stage_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyApplication$ { - /** @deprecated use `PostAtsCandidatesRequestBodyApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyApplication$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyApplication$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyApplication$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyApplication$Outbound; -} - export function postAtsCandidatesRequestBodyApplicationToJSON( postAtsCandidatesRequestBodyApplication: PostAtsCandidatesRequestBodyApplication, @@ -1556,34 +1216,6 @@ export function postAtsCandidatesRequestBodyApplicationToJSON( ); } -export function postAtsCandidatesRequestBodyApplicationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyApplication, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyApplication$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyApplication' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAnswer$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyAnswer, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyAnswer$Outbound = { name: string; @@ -1604,20 +1236,6 @@ export const PostAtsCandidatesRequestBodyAnswer$outboundSchema: z.ZodType< data: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAnswer$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAnswer$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyAnswer$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAnswer$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAnswer$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAnswer$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyAnswer$Outbound; -} - export function postAtsCandidatesRequestBodyAnswerToJSON( postAtsCandidatesRequestBodyAnswer: PostAtsCandidatesRequestBodyAnswer, ): string { @@ -1628,31 +1246,6 @@ export function postAtsCandidatesRequestBodyAnswerToJSON( ); } -export function postAtsCandidatesRequestBodyAnswerFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAnswer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyAnswer' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAnswerUnion$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyAnswerUnion, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => PostAtsCandidatesRequestBodyAnswer$inboundSchema), - z.string(), - z.boolean(), - z.number(), - z.array(z.string()), - z.string().datetime({ offset: true }).transform(v => new Date(v)), -]); - /** @internal */ export type PostAtsCandidatesRequestBodyAnswerUnion$Outbound = | PostAtsCandidatesRequestBodyAnswer$Outbound @@ -1676,21 +1269,6 @@ export const PostAtsCandidatesRequestBodyAnswerUnion$outboundSchema: z.ZodType< z.date().transform(v => v.toISOString()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAnswerUnion$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAnswerUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAnswerUnion$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAnswerUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAnswerUnion$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAnswerUnion$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyAnswerUnion$Outbound; -} - export function postAtsCandidatesRequestBodyAnswerUnionToJSON( postAtsCandidatesRequestBodyAnswerUnion: PostAtsCandidatesRequestBodyAnswerUnion, @@ -1702,40 +1280,6 @@ export function postAtsCandidatesRequestBodyAnswerUnionToJSON( ); } -export function postAtsCandidatesRequestBodyAnswerUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyAnswerUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAnswerUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyAnswerUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyScreeningQuestionAnswer$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyScreeningQuestionAnswer, - z.ZodTypeDef, - unknown - > = z.object({ - question_id: z.string(), - answer: z.union([ - z.lazy(() => PostAtsCandidatesRequestBodyAnswer$inboundSchema), - z.string(), - z.boolean(), - z.number(), - z.array(z.string()), - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ]), - }); - /** @internal */ export type PostAtsCandidatesRequestBodyScreeningQuestionAnswer$Outbound = { question_id: string; @@ -1766,22 +1310,6 @@ export const PostAtsCandidatesRequestBodyScreeningQuestionAnswer$outboundSchema: ]), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyScreeningQuestionAnswer$ { - /** @deprecated use `PostAtsCandidatesRequestBodyScreeningQuestionAnswer$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyScreeningQuestionAnswer$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyScreeningQuestionAnswer$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyScreeningQuestionAnswer$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyScreeningQuestionAnswer$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyScreeningQuestionAnswer$Outbound; -} - export function postAtsCandidatesRequestBodyScreeningQuestionAnswerToJSON( postAtsCandidatesRequestBodyScreeningQuestionAnswer: PostAtsCandidatesRequestBodyScreeningQuestionAnswer, @@ -1793,58 +1321,11 @@ export function postAtsCandidatesRequestBodyScreeningQuestionAnswerToJSON( ); } -export function postAtsCandidatesRequestBodyScreeningQuestionAnswerFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyScreeningQuestionAnswer, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyScreeningQuestionAnswer$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyScreeningQuestionAnswer' from JSON`, - ); -} - /** @internal */ -export const PostAtsCandidatesRequestBodyAttachmentType$inboundSchema: +export const PostAtsCandidatesRequestBodyAttachmentType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostAtsCandidatesRequestBodyAttachmentType); -/** @internal */ -export const PostAtsCandidatesRequestBodyAttachmentType$outboundSchema: - z.ZodNativeEnum = - PostAtsCandidatesRequestBodyAttachmentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAttachmentType$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAttachmentType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAttachmentType$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAttachmentType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAttachmentType$outboundSchema; -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAttachment$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyAttachment, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - type: PostAtsCandidatesRequestBodyAttachmentType$inboundSchema, -}); - /** @internal */ export type PostAtsCandidatesRequestBodyAttachment$Outbound = { name: string; @@ -1867,21 +1348,6 @@ export const PostAtsCandidatesRequestBodyAttachment$outboundSchema: z.ZodType< type: PostAtsCandidatesRequestBodyAttachmentType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAttachment$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAttachment$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAttachment$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAttachment$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAttachment$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAttachment$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyAttachment$Outbound; -} - export function postAtsCandidatesRequestBodyAttachmentToJSON( postAtsCandidatesRequestBodyAttachment: PostAtsCandidatesRequestBodyAttachment, @@ -1893,38 +1359,16 @@ export function postAtsCandidatesRequestBodyAttachmentToJSON( ); } -export function postAtsCandidatesRequestBodyAttachmentFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAttachment$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyAttachment' from JSON`, - ); -} +/** @internal */ +export type PostAtsCandidatesRequestBodySource$Outbound = { + name?: string | undefined; + unified_key?: string | undefined; + id?: string | undefined; +}; /** @internal */ -export const PostAtsCandidatesRequestBodySource$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodySource, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - unified_key: z.string().optional(), - id: z.string().optional(), -}); - -/** @internal */ -export type PostAtsCandidatesRequestBodySource$Outbound = { - name?: string | undefined; - unified_key?: string | undefined; - id?: string | undefined; -}; - -/** @internal */ -export const PostAtsCandidatesRequestBodySource$outboundSchema: z.ZodType< - PostAtsCandidatesRequestBodySource$Outbound, +export const PostAtsCandidatesRequestBodySource$outboundSchema: z.ZodType< + PostAtsCandidatesRequestBodySource$Outbound, z.ZodTypeDef, PostAtsCandidatesRequestBodySource > = z.object({ @@ -1933,20 +1377,6 @@ export const PostAtsCandidatesRequestBodySource$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySource$ { - /** @deprecated use `PostAtsCandidatesRequestBodySource$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodySource$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySource$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySource$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySource$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySource$Outbound; -} - export function postAtsCandidatesRequestBodySourceToJSON( postAtsCandidatesRequestBodySource: PostAtsCandidatesRequestBodySource, ): string { @@ -1957,26 +1387,6 @@ export function postAtsCandidatesRequestBodySourceToJSON( ); } -export function postAtsCandidatesRequestBodySourceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySource$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodySource' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySourcedBy$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodySourcedBy, - z.ZodTypeDef, - unknown -> = z.object({ - user_id: z.string(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodySourcedBy$Outbound = { user_id: string; @@ -1991,21 +1401,6 @@ export const PostAtsCandidatesRequestBodySourcedBy$outboundSchema: z.ZodType< user_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySourcedBy$ { - /** @deprecated use `PostAtsCandidatesRequestBodySourcedBy$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySourcedBy$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySourcedBy$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySourcedBy$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySourcedBy$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySourcedBy$Outbound; -} - export function postAtsCandidatesRequestBodySourcedByToJSON( postAtsCandidatesRequestBodySourcedBy: PostAtsCandidatesRequestBodySourcedBy, ): string { @@ -2016,28 +1411,6 @@ export function postAtsCandidatesRequestBodySourcedByToJSON( ); } -export function postAtsCandidatesRequestBodySourcedByFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySourcedBy$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodySourcedBy' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyGdprConsent$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyGdprConsent, - z.ZodTypeDef, - unknown -> = z.object({ - expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - given: z.boolean().optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyGdprConsent$Outbound = { expires_at?: string | undefined; @@ -2054,21 +1427,6 @@ export const PostAtsCandidatesRequestBodyGdprConsent$outboundSchema: z.ZodType< given: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyGdprConsent$ { - /** @deprecated use `PostAtsCandidatesRequestBodyGdprConsent$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyGdprConsent$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGdprConsent$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyGdprConsent$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGdprConsent$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyGdprConsent$Outbound; -} - export function postAtsCandidatesRequestBodyGdprConsentToJSON( postAtsCandidatesRequestBodyGdprConsent: PostAtsCandidatesRequestBodyGdprConsent, @@ -2080,38 +1438,6 @@ export function postAtsCandidatesRequestBodyGdprConsentToJSON( ); } -export function postAtsCandidatesRequestBodyGdprConsentFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyGdprConsent, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyGdprConsent$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyGdprConsent' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySuccessfactors$inboundSchema: - z.ZodType = - z.object({ - Candidate: z.record(z.any()).optional(), - JobApplication: z.record(z.any()).optional(), - copyJobApplicationAttachments: z.boolean().optional(), - update_existing_candidate: z.nullable(z.boolean()).optional(), - }).transform((v) => { - return remap$(v, { - "Candidate": "candidate", - "JobApplication": "job_application", - "copyJobApplicationAttachments": "copy_job_application_attachments", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodySuccessfactors$Outbound = { Candidate?: { [k: string]: any } | undefined; @@ -2139,21 +1465,6 @@ export const PostAtsCandidatesRequestBodySuccessfactors$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySuccessfactors$ { - /** @deprecated use `PostAtsCandidatesRequestBodySuccessfactors$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySuccessfactors$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySuccessfactors$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySuccessfactors$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySuccessfactors$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySuccessfactors$Outbound; -} - export function postAtsCandidatesRequestBodySuccessfactorsToJSON( postAtsCandidatesRequestBodySuccessfactors: PostAtsCandidatesRequestBodySuccessfactors, @@ -2165,31 +1476,6 @@ export function postAtsCandidatesRequestBodySuccessfactorsToJSON( ); } -export function postAtsCandidatesRequestBodySuccessfactorsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodySuccessfactors, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySuccessfactors$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodySuccessfactors' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyPersonio$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyPersonio, - z.ZodTypeDef, - unknown -> = z.object({ - application: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyPersonio$Outbound = { application?: { [k: string]: any } | undefined; @@ -2204,21 +1490,6 @@ export const PostAtsCandidatesRequestBodyPersonio$outboundSchema: z.ZodType< application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyPersonio$ { - /** @deprecated use `PostAtsCandidatesRequestBodyPersonio$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyPersonio$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyPersonio$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyPersonio$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyPersonio$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyPersonio$Outbound; -} - export function postAtsCandidatesRequestBodyPersonioToJSON( postAtsCandidatesRequestBodyPersonio: PostAtsCandidatesRequestBodyPersonio, ): string { @@ -2229,27 +1500,6 @@ export function postAtsCandidatesRequestBodyPersonioToJSON( ); } -export function postAtsCandidatesRequestBodyPersonioFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyPersonio$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyPersonio' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyTalentsoft$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyTalentsoft, - z.ZodTypeDef, - unknown -> = z.object({ - applicant: z.record(z.any()).optional(), - application: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyTalentsoft$Outbound = { applicant?: { [k: string]: any } | undefined; @@ -2266,21 +1516,6 @@ export const PostAtsCandidatesRequestBodyTalentsoft$outboundSchema: z.ZodType< application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyTalentsoft$ { - /** @deprecated use `PostAtsCandidatesRequestBodyTalentsoft$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyTalentsoft$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTalentsoft$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyTalentsoft$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTalentsoft$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyTalentsoft$Outbound; -} - export function postAtsCandidatesRequestBodyTalentsoftToJSON( postAtsCandidatesRequestBodyTalentsoft: PostAtsCandidatesRequestBodyTalentsoft, @@ -2292,27 +1527,6 @@ export function postAtsCandidatesRequestBodyTalentsoftToJSON( ); } -export function postAtsCandidatesRequestBodyTalentsoftFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyTalentsoft$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyTalentsoft' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyTeamtailorApplication$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyTeamtailorApplication, - z.ZodTypeDef, - unknown - > = z.object({ - attributes: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsCandidatesRequestBodyTeamtailorApplication$Outbound = { attributes?: { [k: string]: any } | undefined; @@ -2328,22 +1542,6 @@ export const PostAtsCandidatesRequestBodyTeamtailorApplication$outboundSchema: attributes: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyTeamtailorApplication$ { - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailorApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyTeamtailorApplication$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailorApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyTeamtailorApplication$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailorApplication$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyTeamtailorApplication$Outbound; -} - export function postAtsCandidatesRequestBodyTeamtailorApplicationToJSON( postAtsCandidatesRequestBodyTeamtailorApplication: PostAtsCandidatesRequestBodyTeamtailorApplication, @@ -2355,34 +1553,6 @@ export function postAtsCandidatesRequestBodyTeamtailorApplicationToJSON( ); } -export function postAtsCandidatesRequestBodyTeamtailorApplicationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyTeamtailorApplication, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyTeamtailorApplication$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyTeamtailorApplication' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyTeamtailor$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyTeamtailor, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.record(z.any()).optional(), - application: z.lazy(() => - PostAtsCandidatesRequestBodyTeamtailorApplication$inboundSchema - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyTeamtailor$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -2403,21 +1573,6 @@ export const PostAtsCandidatesRequestBodyTeamtailor$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyTeamtailor$ { - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailor$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyTeamtailor$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailor$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyTeamtailor$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTeamtailor$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyTeamtailor$Outbound; -} - export function postAtsCandidatesRequestBodyTeamtailorToJSON( postAtsCandidatesRequestBodyTeamtailor: PostAtsCandidatesRequestBodyTeamtailor, @@ -2429,30 +1584,6 @@ export function postAtsCandidatesRequestBodyTeamtailorToJSON( ); } -export function postAtsCandidatesRequestBodyTeamtailorFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyTeamtailor$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyTeamtailor' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyPostHeaders$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyPostHeaders, - z.ZodTypeDef, - unknown -> = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyPostHeaders$Outbound = { "On-Behalf-Of"?: string | null | undefined; @@ -2471,21 +1602,6 @@ export const PostAtsCandidatesRequestBodyPostHeaders$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsCandidatesRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyPostHeaders$Outbound; -} - export function postAtsCandidatesRequestBodyPostHeadersToJSON( postAtsCandidatesRequestBodyPostHeaders: PostAtsCandidatesRequestBodyPostHeaders, @@ -2497,33 +1613,6 @@ export function postAtsCandidatesRequestBodyPostHeadersToJSON( ); } -export function postAtsCandidatesRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyPostHeaders$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyGreenhouse$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyGreenhouse, - z.ZodTypeDef, - unknown -> = z.object({ - post_headers: z.lazy(() => - PostAtsCandidatesRequestBodyPostHeaders$inboundSchema - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyGreenhouse$Outbound = { post_headers?: PostAtsCandidatesRequestBodyPostHeaders$Outbound | undefined; @@ -2540,21 +1629,6 @@ export const PostAtsCandidatesRequestBodyGreenhouse$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsCandidatesRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyGreenhouse$Outbound; -} - export function postAtsCandidatesRequestBodyGreenhouseToJSON( postAtsCandidatesRequestBodyGreenhouse: PostAtsCandidatesRequestBodyGreenhouse, @@ -2566,26 +1640,6 @@ export function postAtsCandidatesRequestBodyGreenhouseToJSON( ); } -export function postAtsCandidatesRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyGreenhouse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLever$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyLever, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyLever$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -2600,20 +1654,6 @@ export const PostAtsCandidatesRequestBodyLever$outboundSchema: z.ZodType< candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLever$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLever$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyLever$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLever$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLever$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLever$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLever$Outbound; -} - export function postAtsCandidatesRequestBodyLeverToJSON( postAtsCandidatesRequestBodyLever: PostAtsCandidatesRequestBodyLever, ): string { @@ -2624,25 +1664,6 @@ export function postAtsCandidatesRequestBodyLeverToJSON( ); } -export function postAtsCandidatesRequestBodyLeverFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostAtsCandidatesRequestBodyLever$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLever' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyWorkable$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyWorkable, - z.ZodTypeDef, - unknown -> = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyWorkable$Outbound = { on_behalf_of_user_remote_id?: string | undefined; @@ -2657,21 +1678,6 @@ export const PostAtsCandidatesRequestBodyWorkable$outboundSchema: z.ZodType< on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyWorkable$ { - /** @deprecated use `PostAtsCandidatesRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkable$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyWorkable$Outbound; -} - export function postAtsCandidatesRequestBodyWorkableToJSON( postAtsCandidatesRequestBodyWorkable: PostAtsCandidatesRequestBodyWorkable, ): string { @@ -2682,31 +1688,6 @@ export function postAtsCandidatesRequestBodyWorkableToJSON( ); } -export function postAtsCandidatesRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyWorkable$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySocialSuffixReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodySocialSuffixReference, - z.ZodTypeDef, - unknown - > = z.object({ - Predefined_Name_Component_ID: z.string(), - }).transform((v) => { - return remap$(v, { - "Predefined_Name_Component_ID": "predefined_name_component_id", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodySocialSuffixReference$Outbound = { Predefined_Name_Component_ID: string; @@ -2726,22 +1707,6 @@ export const PostAtsCandidatesRequestBodySocialSuffixReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySocialSuffixReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodySocialSuffixReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySocialSuffixReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySocialSuffixReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySocialSuffixReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySocialSuffixReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodySocialSuffixReference$Outbound; -} - export function postAtsCandidatesRequestBodySocialSuffixReferenceToJSON( postAtsCandidatesRequestBodySocialSuffixReference: PostAtsCandidatesRequestBodySocialSuffixReference, @@ -2753,37 +1718,6 @@ export function postAtsCandidatesRequestBodySocialSuffixReferenceToJSON( ); } -export function postAtsCandidatesRequestBodySocialSuffixReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodySocialSuffixReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySocialSuffixReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodySocialSuffixReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyNameDetailData$inboundSchema: - z.ZodType = - z.object({ - Middle_Name: z.string().optional(), - Social_Suffix_Reference: z.lazy(() => - PostAtsCandidatesRequestBodySocialSuffixReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Middle_Name": "middle_name", - "Social_Suffix_Reference": "social_suffix_reference", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyNameDetailData$Outbound = { Middle_Name?: string | undefined; @@ -2810,21 +1744,6 @@ export const PostAtsCandidatesRequestBodyNameDetailData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyNameDetailData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyNameDetailData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyNameDetailData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyNameDetailData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyNameDetailData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyNameDetailData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyNameDetailData$Outbound; -} - export function postAtsCandidatesRequestBodyNameDetailDataToJSON( postAtsCandidatesRequestBodyNameDetailData: PostAtsCandidatesRequestBodyNameDetailData, @@ -2836,36 +1755,6 @@ export function postAtsCandidatesRequestBodyNameDetailDataToJSON( ); } -export function postAtsCandidatesRequestBodyNameDetailDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyNameDetailData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyNameDetailData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyNameDetailData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageReference$Outbound = { WID: string; @@ -2885,21 +1774,6 @@ export const PostAtsCandidatesRequestBodyLanguageReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageReference$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLanguageReference$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageReferenceToJSON( postAtsCandidatesRequestBodyLanguageReference: PostAtsCandidatesRequestBodyLanguageReference, @@ -2911,36 +1785,6 @@ export function postAtsCandidatesRequestBodyLanguageReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyGlobalPersonalInformationData$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyGlobalPersonalInformationData, - z.ZodTypeDef, - unknown - > = z.object({ - Date_of_Birth: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Date_of_Birth": "date_of_birth", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyGlobalPersonalInformationData$Outbound = { @@ -2961,22 +1805,6 @@ export const PostAtsCandidatesRequestBodyGlobalPersonalInformationData$outboundS }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyGlobalPersonalInformationData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyGlobalPersonalInformationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyGlobalPersonalInformationData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGlobalPersonalInformationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyGlobalPersonalInformationData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGlobalPersonalInformationData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyGlobalPersonalInformationData$Outbound; -} - export function postAtsCandidatesRequestBodyGlobalPersonalInformationDataToJSON( postAtsCandidatesRequestBodyGlobalPersonalInformationData: PostAtsCandidatesRequestBodyGlobalPersonalInformationData, @@ -2987,37 +1815,6 @@ export function postAtsCandidatesRequestBodyGlobalPersonalInformationDataToJSON( ); } -export function postAtsCandidatesRequestBodyGlobalPersonalInformationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyGlobalPersonalInformationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyGlobalPersonalInformationData$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyGlobalPersonalInformationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyJobAppliedToData$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyJobAppliedToData, - z.ZodTypeDef, - unknown - > = z.object({ - Global_Personal_Information_Data: z.lazy(() => - PostAtsCandidatesRequestBodyGlobalPersonalInformationData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Global_Personal_Information_Data": "global_personal_information_data", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyJobAppliedToData$Outbound = { Global_Personal_Information_Data?: @@ -3041,21 +1838,6 @@ export const PostAtsCandidatesRequestBodyJobAppliedToData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyJobAppliedToData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyJobAppliedToData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyJobAppliedToData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobAppliedToData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyJobAppliedToData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobAppliedToData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyJobAppliedToData$Outbound; -} - export function postAtsCandidatesRequestBodyJobAppliedToDataToJSON( postAtsCandidatesRequestBodyJobAppliedToData: PostAtsCandidatesRequestBodyJobAppliedToData, @@ -3067,36 +1849,6 @@ export function postAtsCandidatesRequestBodyJobAppliedToDataToJSON( ); } -export function postAtsCandidatesRequestBodyJobAppliedToDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyJobAppliedToData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyJobAppliedToData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyJobAppliedToData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyFieldOfStudyReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyFieldOfStudyReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyFieldOfStudyReference$Outbound = { WID: string; @@ -3116,22 +1868,6 @@ export const PostAtsCandidatesRequestBodyFieldOfStudyReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyFieldOfStudyReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyFieldOfStudyReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyFieldOfStudyReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyFieldOfStudyReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyFieldOfStudyReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyFieldOfStudyReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyFieldOfStudyReference$Outbound; -} - export function postAtsCandidatesRequestBodyFieldOfStudyReferenceToJSON( postAtsCandidatesRequestBodyFieldOfStudyReference: PostAtsCandidatesRequestBodyFieldOfStudyReference, @@ -3143,36 +1879,6 @@ export function postAtsCandidatesRequestBodyFieldOfStudyReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyFieldOfStudyReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyFieldOfStudyReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyFieldOfStudyReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyFieldOfStudyReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyDegreeReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyDegreeReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyDegreeReference$Outbound = { WID: string; @@ -3192,21 +1898,6 @@ export const PostAtsCandidatesRequestBodyDegreeReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyDegreeReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyDegreeReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyDegreeReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyDegreeReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyDegreeReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyDegreeReference$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyDegreeReference$Outbound; -} - export function postAtsCandidatesRequestBodyDegreeReferenceToJSON( postAtsCandidatesRequestBodyDegreeReference: PostAtsCandidatesRequestBodyDegreeReference, @@ -3218,47 +1909,6 @@ export function postAtsCandidatesRequestBodyDegreeReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyDegreeReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyDegreeReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyDegreeReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyDegreeReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyEducationDatum$inboundSchema: - z.ZodType = - z.object({ - School_Name: z.string().optional(), - First_Year_Attended: z.number().optional(), - Last_Year_Attended: z.number().optional(), - Field_of_Study_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyFieldOfStudyReference$inboundSchema - ).optional(), - Degree_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyDegreeReference$inboundSchema - ).optional(), - Grade_Average: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "School_Name": "school_name", - "First_Year_Attended": "first_year_attended", - "Last_Year_Attended": "last_year_attended", - "Field_of_Study_Reference": "field_of_study_reference", - "Degree_Reference": "degree_reference", - "Grade_Average": "grade_average", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyEducationDatum$Outbound = { School_Name?: string | undefined; @@ -3301,21 +1951,6 @@ export const PostAtsCandidatesRequestBodyEducationDatum$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyEducationDatum$ { - /** @deprecated use `PostAtsCandidatesRequestBodyEducationDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyEducationDatum$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyEducationDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyEducationDatum$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyEducationDatum$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyEducationDatum$Outbound; -} - export function postAtsCandidatesRequestBodyEducationDatumToJSON( postAtsCandidatesRequestBodyEducationDatum: PostAtsCandidatesRequestBodyEducationDatum, @@ -3327,35 +1962,6 @@ export function postAtsCandidatesRequestBodyEducationDatumToJSON( ); } -export function postAtsCandidatesRequestBodyEducationDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyEducationDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyEducationDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyEducationDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodySkillDatum$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodySkillDatum, - z.ZodTypeDef, - unknown -> = z.object({ - Skill_Name: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Skill_Name": "skill_name", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodySkillDatum$Outbound = { Skill_Name?: string | undefined; @@ -3374,21 +1980,6 @@ export const PostAtsCandidatesRequestBodySkillDatum$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySkillDatum$ { - /** @deprecated use `PostAtsCandidatesRequestBodySkillDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySkillDatum$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySkillDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySkillDatum$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySkillDatum$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySkillDatum$Outbound; -} - export function postAtsCandidatesRequestBodySkillDatumToJSON( postAtsCandidatesRequestBodySkillDatum: PostAtsCandidatesRequestBodySkillDatum, @@ -3400,31 +1991,6 @@ export function postAtsCandidatesRequestBodySkillDatumToJSON( ); } -export function postAtsCandidatesRequestBodySkillDatumFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySkillDatum$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodySkillDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$Outbound = { @@ -3445,22 +2011,6 @@ export const PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$outbound }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageDatumLanguageReferenceToJSON( postAtsCandidatesRequestBodyLanguageDatumLanguageReference: PostAtsCandidatesRequestBodyLanguageDatumLanguageReference, @@ -3471,35 +2021,6 @@ export function postAtsCandidatesRequestBodyLanguageDatumLanguageReferenceToJSON ); } -export function postAtsCandidatesRequestBodyLanguageDatumLanguageReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageDatumLanguageReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageProficiencyReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageProficiencyReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageProficiencyReference$Outbound = { @@ -3520,22 +2041,6 @@ export const PostAtsCandidatesRequestBodyLanguageProficiencyReference$outboundSc }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageProficiencyReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageProficiencyReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageProficiencyReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageProficiencyReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageProficiencyReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageProficiencyReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyLanguageProficiencyReference$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageProficiencyReferenceToJSON( postAtsCandidatesRequestBodyLanguageProficiencyReference: PostAtsCandidatesRequestBodyLanguageProficiencyReference, @@ -3546,35 +2051,6 @@ export function postAtsCandidatesRequestBodyLanguageProficiencyReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageProficiencyReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageProficiencyReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageProficiencyReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageProficiencyReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$Outbound = { @@ -3595,22 +2071,6 @@ export const PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$outboundSc }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageAbilityTypeReferenceToJSON( postAtsCandidatesRequestBodyLanguageAbilityTypeReference: PostAtsCandidatesRequestBodyLanguageAbilityTypeReference, @@ -3621,41 +2081,6 @@ export function postAtsCandidatesRequestBodyLanguageAbilityTypeReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageAbilityTypeReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageAbilityTypeReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageAbilityData$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageAbilityData, - z.ZodTypeDef, - unknown - > = z.object({ - Language_Proficiency_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyLanguageProficiencyReference$inboundSchema - ).optional(), - Language_Ability_Type_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyLanguageAbilityTypeReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Language_Proficiency_Reference": "language_proficiency_reference", - "Language_Ability_Type_Reference": "language_ability_type_reference", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageAbilityData$Outbound = { Language_Proficiency_Reference?: @@ -3686,65 +2111,17 @@ export const PostAtsCandidatesRequestBodyLanguageAbilityData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageAbilityData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageAbilityData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageAbilityData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbilityData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyLanguageAbilityData$Outbound; -} - -export function postAtsCandidatesRequestBodyLanguageAbilityDataToJSON( - postAtsCandidatesRequestBodyLanguageAbilityData: - PostAtsCandidatesRequestBodyLanguageAbilityData, -): string { - return JSON.stringify( - PostAtsCandidatesRequestBodyLanguageAbilityData$outboundSchema.parse( - postAtsCandidatesRequestBodyLanguageAbilityData, - ), - ); -} - -export function postAtsCandidatesRequestBodyLanguageAbilityDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageAbilityData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageAbilityData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageAbilityData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageAbility$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyLanguageAbility, - z.ZodTypeDef, - unknown - > = z.object({ - Language_Ability_Data: z.lazy(() => - PostAtsCandidatesRequestBodyLanguageAbilityData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Language_Ability_Data": "language_ability_data", - }); - }); - +export function postAtsCandidatesRequestBodyLanguageAbilityDataToJSON( + postAtsCandidatesRequestBodyLanguageAbilityData: + PostAtsCandidatesRequestBodyLanguageAbilityData, +): string { + return JSON.stringify( + PostAtsCandidatesRequestBodyLanguageAbilityData$outboundSchema.parse( + postAtsCandidatesRequestBodyLanguageAbilityData, + ), + ); +} + /** @internal */ export type PostAtsCandidatesRequestBodyLanguageAbility$Outbound = { Language_Ability_Data?: @@ -3768,21 +2145,6 @@ export const PostAtsCandidatesRequestBodyLanguageAbility$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageAbility$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbility$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageAbility$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbility$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageAbility$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageAbility$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLanguageAbility$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageAbilityToJSON( postAtsCandidatesRequestBodyLanguageAbility: PostAtsCandidatesRequestBodyLanguageAbility, @@ -3794,39 +2156,6 @@ export function postAtsCandidatesRequestBodyLanguageAbilityToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageAbilityFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageAbility, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageAbility$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageAbility' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguage$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyLanguage, - z.ZodTypeDef, - unknown -> = z.object({ - Native: z.boolean().optional(), - Language_Ability: z.array( - z.lazy(() => PostAtsCandidatesRequestBodyLanguageAbility$inboundSchema), - ), -}).transform((v) => { - return remap$(v, { - "Native": "native", - "Language_Ability": "language_ability", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguage$Outbound = { Native?: boolean | undefined; @@ -3850,21 +2179,6 @@ export const PostAtsCandidatesRequestBodyLanguage$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguage$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguage$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguage$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguage$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguage$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguage$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLanguage$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageToJSON( postAtsCandidatesRequestBodyLanguage: PostAtsCandidatesRequestBodyLanguage, ): string { @@ -3875,35 +2189,6 @@ export function postAtsCandidatesRequestBodyLanguageToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguage' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLanguageDatum$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyLanguageDatum, - z.ZodTypeDef, - unknown -> = z.object({ - Language_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyLanguageDatumLanguageReference$inboundSchema - ).optional(), - Language: z.lazy(() => PostAtsCandidatesRequestBodyLanguage$inboundSchema) - .optional(), -}).transform((v) => { - return remap$(v, { - "Language_Reference": "language_reference", - "Language": "language", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyLanguageDatum$Outbound = { Language_Reference?: @@ -3931,21 +2216,6 @@ export const PostAtsCandidatesRequestBodyLanguageDatum$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLanguageDatum$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLanguageDatum$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLanguageDatum$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLanguageDatum$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLanguageDatum$Outbound; -} - export function postAtsCandidatesRequestBodyLanguageDatumToJSON( postAtsCandidatesRequestBodyLanguageDatum: PostAtsCandidatesRequestBodyLanguageDatum, @@ -3957,51 +2227,6 @@ export function postAtsCandidatesRequestBodyLanguageDatumToJSON( ); } -export function postAtsCandidatesRequestBodyLanguageDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLanguageDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLanguageDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyLanguageDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyExperienceDatum$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyExperienceDatum, - z.ZodTypeDef, - unknown - > = z.object({ - Company_Name: z.string(), - Title: z.string(), - Location: z.string().optional(), - Start_Date: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ), - End_Date: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - Currently_Work_Here: z.boolean().optional(), - Description: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Company_Name": "company_name", - "Title": "title", - "Location": "location", - "Start_Date": "start_date", - "End_Date": "end_date", - "Currently_Work_Here": "currently_work_here", - "Description": "description", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyExperienceDatum$Outbound = { Company_Name: string; @@ -4039,21 +2264,6 @@ export const PostAtsCandidatesRequestBodyExperienceDatum$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyExperienceDatum$ { - /** @deprecated use `PostAtsCandidatesRequestBodyExperienceDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyExperienceDatum$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyExperienceDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyExperienceDatum$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyExperienceDatum$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyExperienceDatum$Outbound; -} - export function postAtsCandidatesRequestBodyExperienceDatumToJSON( postAtsCandidatesRequestBodyExperienceDatum: PostAtsCandidatesRequestBodyExperienceDatum, @@ -4065,49 +2275,6 @@ export function postAtsCandidatesRequestBodyExperienceDatumToJSON( ); } -export function postAtsCandidatesRequestBodyExperienceDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyExperienceDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyExperienceDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyExperienceDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyResumeData$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyResumeData, - z.ZodTypeDef, - unknown -> = z.object({ - Education_Data: z.array( - z.lazy(() => PostAtsCandidatesRequestBodyEducationDatum$inboundSchema), - ).optional(), - Skill_Data: z.array( - z.lazy(() => PostAtsCandidatesRequestBodySkillDatum$inboundSchema), - ).optional(), - Language_Data: z.array( - z.lazy(() => PostAtsCandidatesRequestBodyLanguageDatum$inboundSchema), - ).optional(), - Experience_Data: z.array( - z.lazy(() => PostAtsCandidatesRequestBodyExperienceDatum$inboundSchema), - ).optional(), -}).transform((v) => { - return remap$(v, { - "Education_Data": "education_data", - "Skill_Data": "skill_data", - "Language_Data": "language_data", - "Experience_Data": "experience_data", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyResumeData$Outbound = { Education_Data?: @@ -4151,21 +2318,6 @@ export const PostAtsCandidatesRequestBodyResumeData$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyResumeData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyResumeData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyResumeData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyResumeData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyResumeData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyResumeData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyResumeData$Outbound; -} - export function postAtsCandidatesRequestBodyResumeDataToJSON( postAtsCandidatesRequestBodyResumeData: PostAtsCandidatesRequestBodyResumeData, @@ -4177,37 +2329,6 @@ export function postAtsCandidatesRequestBodyResumeDataToJSON( ); } -export function postAtsCandidatesRequestBodyResumeDataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyResumeData$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyResumeData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyJobApplicationData$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyJobApplicationData, - z.ZodTypeDef, - unknown - > = z.object({ - Job_Applied_To_Data: z.lazy(() => - PostAtsCandidatesRequestBodyJobAppliedToData$inboundSchema - ).optional(), - Resume_Data: z.lazy(() => - PostAtsCandidatesRequestBodyResumeData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Job_Applied_To_Data": "job_applied_to_data", - "Resume_Data": "resume_data", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyJobApplicationData$Outbound = { Job_Applied_To_Data?: @@ -4236,22 +2357,6 @@ export const PostAtsCandidatesRequestBodyJobApplicationData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyJobApplicationData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyJobApplicationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyJobApplicationData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobApplicationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyJobApplicationData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobApplicationData$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyJobApplicationData$Outbound; -} - export function postAtsCandidatesRequestBodyJobApplicationDataToJSON( postAtsCandidatesRequestBodyJobApplicationData: PostAtsCandidatesRequestBodyJobApplicationData, @@ -4263,36 +2368,6 @@ export function postAtsCandidatesRequestBodyJobApplicationDataToJSON( ); } -export function postAtsCandidatesRequestBodyJobApplicationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyJobApplicationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyJobApplicationData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyJobApplicationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyCountryRegionReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyCountryRegionReference, - z.ZodTypeDef, - unknown - > = z.object({ - Country_Region_ID: z.string(), - }).transform((v) => { - return remap$(v, { - "Country_Region_ID": "country_region_id", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyCountryRegionReference$Outbound = { Country_Region_ID: string; @@ -4312,22 +2387,6 @@ export const PostAtsCandidatesRequestBodyCountryRegionReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyCountryRegionReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyCountryRegionReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyCountryRegionReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCountryRegionReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyCountryRegionReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCountryRegionReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyCountryRegionReference$Outbound; -} - export function postAtsCandidatesRequestBodyCountryRegionReferenceToJSON( postAtsCandidatesRequestBodyCountryRegionReference: PostAtsCandidatesRequestBodyCountryRegionReference, @@ -4339,36 +2398,6 @@ export function postAtsCandidatesRequestBodyCountryRegionReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyCountryRegionReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyCountryRegionReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyCountryRegionReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyCountryRegionReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyCountryCityReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyCountryCityReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyCountryCityReference$Outbound = { WID: string; @@ -4388,22 +2417,6 @@ export const PostAtsCandidatesRequestBodyCountryCityReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyCountryCityReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyCountryCityReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyCountryCityReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCountryCityReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyCountryCityReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCountryCityReference$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyCountryCityReference$Outbound; -} - export function postAtsCandidatesRequestBodyCountryCityReferenceToJSON( postAtsCandidatesRequestBodyCountryCityReference: PostAtsCandidatesRequestBodyCountryCityReference, @@ -4415,47 +2428,6 @@ export function postAtsCandidatesRequestBodyCountryCityReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyCountryCityReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyCountryCityReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyCountryCityReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyCountryCityReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyLocationData$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyLocationData, - z.ZodTypeDef, - unknown -> = z.object({ - Address_Line_1: z.string().optional(), - Address_Line_2: z.string().optional(), - Region_Subdivision_1: z.string().optional(), - Country_Region_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyCountryRegionReference$inboundSchema - ).optional(), - Country_City_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyCountryCityReference$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "Address_Line_1": "address_line_1", - "Address_Line_2": "address_line_2", - "Region_Subdivision_1": "region_subdivision_1", - "Country_Region_Reference": "country_region_reference", - "Country_City_Reference": "country_city_reference", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyLocationData$Outbound = { Address_Line_1?: string | undefined; @@ -4494,21 +2466,6 @@ export const PostAtsCandidatesRequestBodyLocationData$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyLocationData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyLocationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyLocationData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLocationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyLocationData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyLocationData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyLocationData$Outbound; -} - export function postAtsCandidatesRequestBodyLocationDataToJSON( postAtsCandidatesRequestBodyLocationData: PostAtsCandidatesRequestBodyLocationData, @@ -4520,37 +2477,6 @@ export function postAtsCandidatesRequestBodyLocationDataToJSON( ); } -export function postAtsCandidatesRequestBodyLocationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyLocationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyLocationData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyLocationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyContactData$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyContactData, - z.ZodTypeDef, - unknown -> = z.object({ - Location_Data: z.lazy(() => - PostAtsCandidatesRequestBodyLocationData$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "Location_Data": "location_data", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyContactData$Outbound = { Location_Data?: PostAtsCandidatesRequestBodyLocationData$Outbound | undefined; @@ -4571,21 +2497,6 @@ export const PostAtsCandidatesRequestBodyContactData$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyContactData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyContactData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyContactData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyContactData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyContactData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyContactData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyContactData$Outbound; -} - export function postAtsCandidatesRequestBodyContactDataToJSON( postAtsCandidatesRequestBodyContactData: PostAtsCandidatesRequestBodyContactData, @@ -4597,38 +2508,6 @@ export function postAtsCandidatesRequestBodyContactDataToJSON( ); } -export function postAtsCandidatesRequestBodyContactDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyContactData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyContactData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyContactData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyWorkerReference$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyWorkerReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string().optional(), - Employee_ID: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - "Employee_ID": "employee_id", - }); - }); - /** @internal */ export type PostAtsCandidatesRequestBodyWorkerReference$Outbound = { WID?: string | undefined; @@ -4651,21 +2530,6 @@ export const PostAtsCandidatesRequestBodyWorkerReference$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyWorkerReference$ { - /** @deprecated use `PostAtsCandidatesRequestBodyWorkerReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyWorkerReference$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkerReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyWorkerReference$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkerReference$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyWorkerReference$Outbound; -} - export function postAtsCandidatesRequestBodyWorkerReferenceToJSON( postAtsCandidatesRequestBodyWorkerReference: PostAtsCandidatesRequestBodyWorkerReference, @@ -4677,53 +2541,6 @@ export function postAtsCandidatesRequestBodyWorkerReferenceToJSON( ); } -export function postAtsCandidatesRequestBodyWorkerReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyWorkerReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyWorkerReference$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyWorkerReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyCandidateData$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyCandidateData, - z.ZodTypeDef, - unknown -> = z.object({ - Name_Detail_Data: z.lazy(() => - PostAtsCandidatesRequestBodyNameDetailData$inboundSchema - ).optional(), - Language_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyLanguageReference$inboundSchema - ).optional(), - Job_Application_Data: z.lazy(() => - PostAtsCandidatesRequestBodyJobApplicationData$inboundSchema - ).optional(), - Contact_Data: z.lazy(() => - PostAtsCandidatesRequestBodyContactData$inboundSchema - ).optional(), - Worker_Reference: z.lazy(() => - PostAtsCandidatesRequestBodyWorkerReference$inboundSchema - ).optional(), -}).transform((v) => { - return remap$(v, { - "Name_Detail_Data": "name_detail_data", - "Language_Reference": "language_reference", - "Job_Application_Data": "job_application_data", - "Contact_Data": "contact_data", - "Worker_Reference": "worker_reference", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyCandidateData$Outbound = { Name_Detail_Data?: @@ -4773,21 +2590,6 @@ export const PostAtsCandidatesRequestBodyCandidateData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyCandidateData$ { - /** @deprecated use `PostAtsCandidatesRequestBodyCandidateData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyCandidateData$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCandidateData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyCandidateData$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyCandidateData$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyCandidateData$Outbound; -} - export function postAtsCandidatesRequestBodyCandidateDataToJSON( postAtsCandidatesRequestBodyCandidateData: PostAtsCandidatesRequestBodyCandidateData, @@ -4799,39 +2601,6 @@ export function postAtsCandidatesRequestBodyCandidateDataToJSON( ); } -export function postAtsCandidatesRequestBodyCandidateDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyCandidateData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyCandidateData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyCandidateData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyWorkday$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyWorkday, - z.ZodTypeDef, - unknown -> = z.object({ - Candidate_Data: z.lazy(() => - PostAtsCandidatesRequestBodyCandidateData$inboundSchema - ).optional(), - Override_Source_Reference_WID: z.string().optional(), -}).transform((v) => { - return remap$(v, { - "Candidate_Data": "candidate_data", - "Override_Source_Reference_WID": "override_source_reference_wid", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyWorkday$Outbound = { Candidate_Data?: @@ -4857,21 +2626,6 @@ export const PostAtsCandidatesRequestBodyWorkday$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyWorkday$ { - /** @deprecated use `PostAtsCandidatesRequestBodyWorkday$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyWorkday$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkday$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyWorkday$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkday$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyWorkday$Outbound; -} - export function postAtsCandidatesRequestBodyWorkdayToJSON( postAtsCandidatesRequestBodyWorkday: PostAtsCandidatesRequestBodyWorkday, ): string { @@ -4882,26 +2636,6 @@ export function postAtsCandidatesRequestBodyWorkdayToJSON( ); } -export function postAtsCandidatesRequestBodyWorkdayFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyWorkday$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyWorkday' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyZohorecruit$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyZohorecruit, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyZohorecruit$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -4916,21 +2650,6 @@ export const PostAtsCandidatesRequestBodyZohorecruit$outboundSchema: z.ZodType< candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyZohorecruit$ { - /** @deprecated use `PostAtsCandidatesRequestBodyZohorecruit$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyZohorecruit$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyZohorecruit$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyZohorecruit$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyZohorecruit$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyZohorecruit$Outbound; -} - export function postAtsCandidatesRequestBodyZohorecruitToJSON( postAtsCandidatesRequestBodyZohorecruit: PostAtsCandidatesRequestBodyZohorecruit, @@ -4942,32 +2661,6 @@ export function postAtsCandidatesRequestBodyZohorecruitToJSON( ); } -export function postAtsCandidatesRequestBodyZohorecruitFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyZohorecruit, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyZohorecruit$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyZohorecruit' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyBullhorn$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyBullhorn, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.record(z.any()).optional(), - job_submission: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyBullhorn$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -4984,54 +2677,16 @@ export const PostAtsCandidatesRequestBodyBullhorn$outboundSchema: z.ZodType< job_submission: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyBullhorn$ { - /** @deprecated use `PostAtsCandidatesRequestBodyBullhorn$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyBullhorn$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyBullhorn$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyBullhorn$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyBullhorn$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyBullhorn$Outbound; -} - export function postAtsCandidatesRequestBodyBullhornToJSON( postAtsCandidatesRequestBodyBullhorn: PostAtsCandidatesRequestBodyBullhorn, ): string { return JSON.stringify( PostAtsCandidatesRequestBodyBullhorn$outboundSchema.parse( postAtsCandidatesRequestBodyBullhorn, - ), - ); -} - -export function postAtsCandidatesRequestBodyBullhornFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyBullhorn$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyBullhorn' from JSON`, + ), ); } -/** @internal */ -export const PostAtsCandidatesRequestBodySmartrecruiters$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodySmartrecruiters, - z.ZodTypeDef, - unknown - > = z.object({ - candidate_with_questions: z.record(z.any()).optional(), - candidate_without_questions: z.record(z.any()).optional(), - candidate: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsCandidatesRequestBodySmartrecruiters$Outbound = { candidate_with_questions?: { [k: string]: any } | undefined; @@ -5051,21 +2706,6 @@ export const PostAtsCandidatesRequestBodySmartrecruiters$outboundSchema: candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodySmartrecruiters$ { - /** @deprecated use `PostAtsCandidatesRequestBodySmartrecruiters$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodySmartrecruiters$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySmartrecruiters$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodySmartrecruiters$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodySmartrecruiters$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodySmartrecruiters$Outbound; -} - export function postAtsCandidatesRequestBodySmartrecruitersToJSON( postAtsCandidatesRequestBodySmartrecruiters: PostAtsCandidatesRequestBodySmartrecruiters, @@ -5077,31 +2717,6 @@ export function postAtsCandidatesRequestBodySmartrecruitersToJSON( ); } -export function postAtsCandidatesRequestBodySmartrecruitersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodySmartrecruiters, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodySmartrecruiters$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodySmartrecruiters' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyTalentadore$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyTalentadore, - z.ZodTypeDef, - unknown -> = z.object({ - applications: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyTalentadore$Outbound = { applications?: { [k: string]: any } | undefined; @@ -5116,21 +2731,6 @@ export const PostAtsCandidatesRequestBodyTalentadore$outboundSchema: z.ZodType< applications: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyTalentadore$ { - /** @deprecated use `PostAtsCandidatesRequestBodyTalentadore$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyTalentadore$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTalentadore$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyTalentadore$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyTalentadore$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyTalentadore$Outbound; -} - export function postAtsCandidatesRequestBodyTalentadoreToJSON( postAtsCandidatesRequestBodyTalentadore: PostAtsCandidatesRequestBodyTalentadore, @@ -5142,31 +2742,6 @@ export function postAtsCandidatesRequestBodyTalentadoreToJSON( ); } -export function postAtsCandidatesRequestBodyTalentadoreFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyTalentadore, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyTalentadore$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyTalentadore' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyGuidecom$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyGuidecom, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyGuidecom$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -5181,21 +2756,6 @@ export const PostAtsCandidatesRequestBodyGuidecom$outboundSchema: z.ZodType< candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyGuidecom$ { - /** @deprecated use `PostAtsCandidatesRequestBodyGuidecom$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyGuidecom$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGuidecom$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyGuidecom$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyGuidecom$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyGuidecom$Outbound; -} - export function postAtsCandidatesRequestBodyGuidecomToJSON( postAtsCandidatesRequestBodyGuidecom: PostAtsCandidatesRequestBodyGuidecom, ): string { @@ -5206,26 +2766,6 @@ export function postAtsCandidatesRequestBodyGuidecomToJSON( ); } -export function postAtsCandidatesRequestBodyGuidecomFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyGuidecom$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyGuidecom' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyDvinci$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyDvinci, - z.ZodTypeDef, - unknown -> = z.object({ - application: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyDvinci$Outbound = { application?: { [k: string]: any } | undefined; @@ -5240,20 +2780,6 @@ export const PostAtsCandidatesRequestBodyDvinci$outboundSchema: z.ZodType< application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyDvinci$ { - /** @deprecated use `PostAtsCandidatesRequestBodyDvinci$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyDvinci$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyDvinci$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyDvinci$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyDvinci$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyDvinci$Outbound; -} - export function postAtsCandidatesRequestBodyDvinciToJSON( postAtsCandidatesRequestBodyDvinci: PostAtsCandidatesRequestBodyDvinci, ): string { @@ -5264,30 +2790,6 @@ export function postAtsCandidatesRequestBodyDvinciToJSON( ); } -export function postAtsCandidatesRequestBodyDvinciFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyDvinci$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyDvinci' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyHrworks$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyHrworks, - z.ZodTypeDef, - unknown -> = z.object({ - jobApplication: z.record(z.any()).optional(), -}).transform((v) => { - return remap$(v, { - "jobApplication": "job_application", - }); -}); - /** @internal */ export type PostAtsCandidatesRequestBodyHrworks$Outbound = { jobApplication?: { [k: string]: any } | undefined; @@ -5306,21 +2808,6 @@ export const PostAtsCandidatesRequestBodyHrworks$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyHrworks$ { - /** @deprecated use `PostAtsCandidatesRequestBodyHrworks$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyHrworks$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyHrworks$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyHrworks$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyHrworks$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyHrworks$Outbound; -} - export function postAtsCandidatesRequestBodyHrworksToJSON( postAtsCandidatesRequestBodyHrworks: PostAtsCandidatesRequestBodyHrworks, ): string { @@ -5331,27 +2818,6 @@ export function postAtsCandidatesRequestBodyHrworksToJSON( ); } -export function postAtsCandidatesRequestBodyHrworksFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyHrworks$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyHrworks' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyJobylonApplication$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyJobylonApplication, - z.ZodTypeDef, - unknown - > = z.object({ - message: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesRequestBodyJobylonApplication$Outbound = { message?: string | undefined; @@ -5367,22 +2833,6 @@ export const PostAtsCandidatesRequestBodyJobylonApplication$outboundSchema: message: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyJobylonApplication$ { - /** @deprecated use `PostAtsCandidatesRequestBodyJobylonApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyJobylonApplication$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobylonApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyJobylonApplication$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobylonApplication$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyJobylonApplication$Outbound; -} - export function postAtsCandidatesRequestBodyJobylonApplicationToJSON( postAtsCandidatesRequestBodyJobylonApplication: PostAtsCandidatesRequestBodyJobylonApplication, @@ -5394,33 +2844,6 @@ export function postAtsCandidatesRequestBodyJobylonApplicationToJSON( ); } -export function postAtsCandidatesRequestBodyJobylonApplicationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyJobylonApplication, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyJobylonApplication$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyJobylonApplication' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyJobylon$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyJobylon, - z.ZodTypeDef, - unknown -> = z.object({ - application: z.lazy(() => - PostAtsCandidatesRequestBodyJobylonApplication$inboundSchema - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyJobylon$Outbound = { application?: @@ -5439,21 +2862,6 @@ export const PostAtsCandidatesRequestBodyJobylon$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyJobylon$ { - /** @deprecated use `PostAtsCandidatesRequestBodyJobylon$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyJobylon$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobylon$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyJobylon$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyJobylon$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyJobylon$Outbound; -} - export function postAtsCandidatesRequestBodyJobylonToJSON( postAtsCandidatesRequestBodyJobylon: PostAtsCandidatesRequestBodyJobylon, ): string { @@ -5464,26 +2872,6 @@ export function postAtsCandidatesRequestBodyJobylonToJSON( ); } -export function postAtsCandidatesRequestBodyJobylonFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyJobylon$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyJobylon' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyStep$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyStep, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.number().int(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyStep$Outbound = { id: number; @@ -5498,19 +2886,6 @@ export const PostAtsCandidatesRequestBodyStep$outboundSchema: z.ZodType< id: z.number().int(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyStep$ { - /** @deprecated use `PostAtsCandidatesRequestBodyStep$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBodyStep$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyStep$outboundSchema` instead. */ - export const outboundSchema = PostAtsCandidatesRequestBodyStep$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyStep$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyStep$Outbound; -} - export function postAtsCandidatesRequestBodyStepToJSON( postAtsCandidatesRequestBodyStep: PostAtsCandidatesRequestBodyStep, ): string { @@ -5521,25 +2896,6 @@ export function postAtsCandidatesRequestBodyStepToJSON( ); } -export function postAtsCandidatesRequestBodyStepFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostAtsCandidatesRequestBodyStep$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyStep' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyWorkflow$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyWorkflow, - z.ZodTypeDef, - unknown -> = z.object({ - step: z.lazy(() => PostAtsCandidatesRequestBodyStep$inboundSchema).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyWorkflow$Outbound = { step?: PostAtsCandidatesRequestBodyStep$Outbound | undefined; @@ -5555,21 +2911,6 @@ export const PostAtsCandidatesRequestBodyWorkflow$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyWorkflow$ { - /** @deprecated use `PostAtsCandidatesRequestBodyWorkflow$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyWorkflow$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkflow$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyWorkflow$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyWorkflow$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyWorkflow$Outbound; -} - export function postAtsCandidatesRequestBodyWorkflowToJSON( postAtsCandidatesRequestBodyWorkflow: PostAtsCandidatesRequestBodyWorkflow, ): string { @@ -5580,27 +2921,6 @@ export function postAtsCandidatesRequestBodyWorkflowToJSON( ); } -export function postAtsCandidatesRequestBodyWorkflowFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyWorkflow$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyWorkflow' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyAvature$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyAvature, - z.ZodTypeDef, - unknown -> = z.object({ - workflow: z.lazy(() => PostAtsCandidatesRequestBodyWorkflow$inboundSchema) - .optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyAvature$Outbound = { workflow?: PostAtsCandidatesRequestBodyWorkflow$Outbound | undefined; @@ -5616,21 +2936,6 @@ export const PostAtsCandidatesRequestBodyAvature$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyAvature$ { - /** @deprecated use `PostAtsCandidatesRequestBodyAvature$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyAvature$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAvature$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyAvature$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyAvature$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyAvature$Outbound; -} - export function postAtsCandidatesRequestBodyAvatureToJSON( postAtsCandidatesRequestBodyAvature: PostAtsCandidatesRequestBodyAvature, ): string { @@ -5641,27 +2946,6 @@ export function postAtsCandidatesRequestBodyAvatureToJSON( ); } -export function postAtsCandidatesRequestBodyAvatureFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyAvature$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyAvature' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyRecruiteeCandidate$inboundSchema: - z.ZodType< - PostAtsCandidatesRequestBodyRecruiteeCandidate, - z.ZodTypeDef, - unknown - > = z.object({ - cover_letter_text: z.string().optional(), - }); - /** @internal */ export type PostAtsCandidatesRequestBodyRecruiteeCandidate$Outbound = { cover_letter_text?: string | undefined; @@ -5677,22 +2961,6 @@ export const PostAtsCandidatesRequestBodyRecruiteeCandidate$outboundSchema: cover_letter_text: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyRecruiteeCandidate$ { - /** @deprecated use `PostAtsCandidatesRequestBodyRecruiteeCandidate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyRecruiteeCandidate$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRecruiteeCandidate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyRecruiteeCandidate$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRecruiteeCandidate$Outbound` instead. */ - export type Outbound = - PostAtsCandidatesRequestBodyRecruiteeCandidate$Outbound; -} - export function postAtsCandidatesRequestBodyRecruiteeCandidateToJSON( postAtsCandidatesRequestBodyRecruiteeCandidate: PostAtsCandidatesRequestBodyRecruiteeCandidate, @@ -5704,33 +2972,6 @@ export function postAtsCandidatesRequestBodyRecruiteeCandidateToJSON( ); } -export function postAtsCandidatesRequestBodyRecruiteeCandidateFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyRecruiteeCandidate, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyRecruiteeCandidate$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyRecruiteeCandidate' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyRecruitee$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyRecruitee, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.lazy(() => - PostAtsCandidatesRequestBodyRecruiteeCandidate$inboundSchema - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyRecruitee$Outbound = { candidate?: @@ -5749,21 +2990,6 @@ export const PostAtsCandidatesRequestBodyRecruitee$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyRecruitee$ { - /** @deprecated use `PostAtsCandidatesRequestBodyRecruitee$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyRecruitee$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRecruitee$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyRecruitee$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRecruitee$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyRecruitee$Outbound; -} - export function postAtsCandidatesRequestBodyRecruiteeToJSON( postAtsCandidatesRequestBodyRecruitee: PostAtsCandidatesRequestBodyRecruitee, ): string { @@ -5774,26 +3000,6 @@ export function postAtsCandidatesRequestBodyRecruiteeToJSON( ); } -export function postAtsCandidatesRequestBodyRecruiteeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyRecruitee$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyRecruitee' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBodyUmantis$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyUmantis, - z.ZodTypeDef, - unknown -> = z.object({ - person: z.record(z.any()).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBodyUmantis$Outbound = { person?: { [k: string]: any } | undefined; @@ -5808,21 +3014,6 @@ export const PostAtsCandidatesRequestBodyUmantis$outboundSchema: z.ZodType< person: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyUmantis$ { - /** @deprecated use `PostAtsCandidatesRequestBodyUmantis$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyUmantis$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyUmantis$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyUmantis$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyUmantis$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyUmantis$Outbound; -} - export function postAtsCandidatesRequestBodyUmantisToJSON( postAtsCandidatesRequestBodyUmantis: PostAtsCandidatesRequestBodyUmantis, ): string { @@ -5833,67 +3024,58 @@ export function postAtsCandidatesRequestBodyUmantisToJSON( ); } -export function postAtsCandidatesRequestBodyUmantisFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyUmantis$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBodyUmantis' from JSON`, +/** @internal */ +export type PostAtsCandidatesRequestBodyPilogaCandidate$Outbound = { + street?: string | undefined; +}; + +/** @internal */ +export const PostAtsCandidatesRequestBodyPilogaCandidate$outboundSchema: + z.ZodType< + PostAtsCandidatesRequestBodyPilogaCandidate$Outbound, + z.ZodTypeDef, + PostAtsCandidatesRequestBodyPilogaCandidate + > = z.object({ + street: z.string().optional(), + }); + +export function postAtsCandidatesRequestBodyPilogaCandidateToJSON( + postAtsCandidatesRequestBodyPilogaCandidate: + PostAtsCandidatesRequestBodyPilogaCandidate, +): string { + return JSON.stringify( + PostAtsCandidatesRequestBodyPilogaCandidate$outboundSchema.parse( + postAtsCandidatesRequestBodyPilogaCandidate, + ), ); } /** @internal */ -export const PostAtsCandidatesRequestBodyRemoteFields$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBodyRemoteFields, +export type PostAtsCandidatesRequestBodyPiloga$Outbound = { + candidate?: PostAtsCandidatesRequestBodyPilogaCandidate$Outbound | undefined; +}; + +/** @internal */ +export const PostAtsCandidatesRequestBodyPiloga$outboundSchema: z.ZodType< + PostAtsCandidatesRequestBodyPiloga$Outbound, z.ZodTypeDef, - unknown + PostAtsCandidatesRequestBodyPiloga > = z.object({ - successfactors: z.lazy(() => - PostAtsCandidatesRequestBodySuccessfactors$inboundSchema - ).optional(), - personio: z.lazy(() => PostAtsCandidatesRequestBodyPersonio$inboundSchema) - .optional(), - talentsoft: z.lazy(() => PostAtsCandidatesRequestBodyTalentsoft$inboundSchema) - .optional(), - teamtailor: z.lazy(() => PostAtsCandidatesRequestBodyTeamtailor$inboundSchema) - .optional(), - greenhouse: z.lazy(() => PostAtsCandidatesRequestBodyGreenhouse$inboundSchema) - .optional(), - lever: z.lazy(() => PostAtsCandidatesRequestBodyLever$inboundSchema) - .optional(), - workable: z.lazy(() => PostAtsCandidatesRequestBodyWorkable$inboundSchema) - .optional(), - workday: z.lazy(() => PostAtsCandidatesRequestBodyWorkday$inboundSchema) - .optional(), - zohorecruit: z.lazy(() => - PostAtsCandidatesRequestBodyZohorecruit$inboundSchema - ).optional(), - bullhorn: z.lazy(() => PostAtsCandidatesRequestBodyBullhorn$inboundSchema) - .optional(), - smartrecruiters: z.lazy(() => - PostAtsCandidatesRequestBodySmartrecruiters$inboundSchema - ).optional(), - talentadore: z.lazy(() => - PostAtsCandidatesRequestBodyTalentadore$inboundSchema + candidate: z.lazy(() => + PostAtsCandidatesRequestBodyPilogaCandidate$outboundSchema ).optional(), - guidecom: z.lazy(() => PostAtsCandidatesRequestBodyGuidecom$inboundSchema) - .optional(), - dvinci: z.lazy(() => PostAtsCandidatesRequestBodyDvinci$inboundSchema) - .optional(), - hrworks: z.lazy(() => PostAtsCandidatesRequestBodyHrworks$inboundSchema) - .optional(), - jobylon: z.lazy(() => PostAtsCandidatesRequestBodyJobylon$inboundSchema) - .optional(), - avature: z.lazy(() => PostAtsCandidatesRequestBodyAvature$inboundSchema) - .optional(), - recruitee: z.lazy(() => PostAtsCandidatesRequestBodyRecruitee$inboundSchema) - .optional(), - umantis: z.lazy(() => PostAtsCandidatesRequestBodyUmantis$inboundSchema) - .optional(), }); +export function postAtsCandidatesRequestBodyPilogaToJSON( + postAtsCandidatesRequestBodyPiloga: PostAtsCandidatesRequestBodyPiloga, +): string { + return JSON.stringify( + PostAtsCandidatesRequestBodyPiloga$outboundSchema.parse( + postAtsCandidatesRequestBodyPiloga, + ), + ); +} + /** @internal */ export type PostAtsCandidatesRequestBodyRemoteFields$Outbound = { successfactors?: @@ -5919,6 +3101,7 @@ export type PostAtsCandidatesRequestBodyRemoteFields$Outbound = { avature?: PostAtsCandidatesRequestBodyAvature$Outbound | undefined; recruitee?: PostAtsCandidatesRequestBodyRecruitee$Outbound | undefined; umantis?: PostAtsCandidatesRequestBodyUmantis$Outbound | undefined; + piloga?: PostAtsCandidatesRequestBodyPiloga$Outbound | undefined; }; /** @internal */ @@ -5972,23 +3155,10 @@ export const PostAtsCandidatesRequestBodyRemoteFields$outboundSchema: z.ZodType< .optional(), umantis: z.lazy(() => PostAtsCandidatesRequestBodyUmantis$outboundSchema) .optional(), + piloga: z.lazy(() => PostAtsCandidatesRequestBodyPiloga$outboundSchema) + .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsCandidatesRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsCandidatesRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsCandidatesRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBodyRemoteFields$Outbound; -} - export function postAtsCandidatesRequestBodyRemoteFieldsToJSON( postAtsCandidatesRequestBodyRemoteFields: PostAtsCandidatesRequestBodyRemoteFields, @@ -6000,52 +3170,6 @@ export function postAtsCandidatesRequestBodyRemoteFieldsToJSON( ); } -export function postAtsCandidatesRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsCandidatesRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsCandidatesRequestBodyRemoteFields$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsCandidatesRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsCandidatesRequestBody$inboundSchema: z.ZodType< - PostAtsCandidatesRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - candidate: z.lazy(() => PostAtsCandidatesRequestBodyCandidate$inboundSchema), - application: z.lazy(() => - PostAtsCandidatesRequestBodyApplication$inboundSchema - ), - screening_question_answers: z.array( - z.lazy(() => - PostAtsCandidatesRequestBodyScreeningQuestionAnswer$inboundSchema - ), - ).optional(), - attachments: z.array( - z.lazy(() => PostAtsCandidatesRequestBodyAttachment$inboundSchema), - ).optional(), - source: z.lazy(() => PostAtsCandidatesRequestBodySource$inboundSchema) - .optional(), - sourced_by: z.lazy(() => PostAtsCandidatesRequestBodySourcedBy$inboundSchema) - .optional(), - gdpr_consent: z.lazy(() => - PostAtsCandidatesRequestBodyGdprConsent$inboundSchema - ).optional(), - remote_fields: z.lazy(() => - PostAtsCandidatesRequestBodyRemoteFields$inboundSchema - ).optional(), -}); - /** @internal */ export type PostAtsCandidatesRequestBody$Outbound = { candidate: PostAtsCandidatesRequestBodyCandidate$Outbound; @@ -6092,19 +3216,6 @@ export const PostAtsCandidatesRequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsCandidatesRequestBody$ { - /** @deprecated use `PostAtsCandidatesRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostAtsCandidatesRequestBody$inboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBody$outboundSchema` instead. */ - export const outboundSchema = PostAtsCandidatesRequestBody$outboundSchema; - /** @deprecated use `PostAtsCandidatesRequestBody$Outbound` instead. */ - export type Outbound = PostAtsCandidatesRequestBody$Outbound; -} - export function postAtsCandidatesRequestBodyToJSON( postAtsCandidatesRequestBody: PostAtsCandidatesRequestBody, ): string { @@ -6114,13 +3225,3 @@ export function postAtsCandidatesRequestBodyToJSON( ), ); } - -export function postAtsCandidatesRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostAtsCandidatesRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostAtsCandidatesRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsimporttrackedapplicationpositiveresponse.ts b/src/models/postatsimporttrackedapplicationpositiveresponse.ts index 1b88e0a..b62609e 100644 --- a/src/models/postatsimporttrackedapplicationpositiveresponse.ts +++ b/src/models/postatsimporttrackedapplicationpositiveresponse.ts @@ -148,54 +148,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicatio application_remote_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound = - { - id_type: "application_and_candidate_remote_ids"; - candidate_remote_id: string; - application_remote_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds - > = z.object({ - id_type: z.literal("application_and_candidate_remote_ids"), - candidate_remote_id: z.string(), - application_remote_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIdsToJSON( - postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds: - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIdsFromJSON( jsonString: string, ): SafeParseResult< @@ -223,54 +175,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicatio job_remote_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound = - { - id_type: "application_and_job_remote_ids"; - application_remote_id: string; - job_remote_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds - > = z.object({ - id_type: z.literal("application_and_job_remote_ids"), - application_remote_id: z.string(), - job_remote_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIdsToJSON( - postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds: - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIdsFromJSON( jsonString: string, ): SafeParseResult< @@ -301,52 +205,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$inbo ), ]); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$Outbound = - | PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound - | PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion - > = z.union([ - z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema - ), - z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema - ), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseErecruiterUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseErecruiterUnion: - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseErecruiterUnion$outboundSchema - .parse(postAtsImportTrackedApplicationPositiveResponseErecruiterUnion), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseErecruiterUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -373,52 +231,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplic application_remote_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound = - { - id_type: "application_remote_id"; - application_remote_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID - > = z.object({ - id_type: z.literal("application_remote_id"), - application_remote_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteIDToJSON( - postAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID: - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteIDFromJSON( jsonString: string, ): SafeParseResult< @@ -444,48 +256,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$ PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$inboundSchema ); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$Outbound = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion - > = z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion: - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnion, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseSuccessfactorsUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -512,52 +282,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID placement_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound = - { - id_type: "placement_id"; - placement_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID - > = z.object({ - id_type: z.literal("placement_id"), - placement_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseRecruiteePlacementIDToJSON( - postAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID: - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseRecruiteePlacementIDFromJSON( jsonString: string, ): SafeParseResult< @@ -583,46 +307,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$inbou PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$inboundSchema ); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$Outbound = - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion - > = z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseRecruiteeUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseRecruiteeUnion: - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseRecruiteeUnion$outboundSchema - .parse(postAtsImportTrackedApplicationPositiveResponseRecruiteeUnion), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseRecruiteeUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -649,52 +333,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicatio application_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound = - { - id_type: "application_id"; - application_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID - > = z.object({ - id_type: z.literal("application_id"), - application_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationIDToJSON( - postAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID: - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationIDFromJSON( jsonString: string, ): SafeParseResult< @@ -720,46 +358,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$inbo PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$inboundSchema ); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$Outbound = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion - > = z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseGreenhouseUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseGreenhouseUnion: - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseGreenhouseUnion$outboundSchema - .parse(postAtsImportTrackedApplicationPositiveResponseGreenhouseUnion), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseGreenhouseUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -786,52 +384,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$ application_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound = - { - id_type: "application_id"; - application_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID - > = z.object({ - id_type: z.literal("application_id"), - application_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationIDToJSON( - postAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID: - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationIDFromJSON( jsonString: string, ): SafeParseResult< @@ -857,46 +409,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$inboundS PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$inboundSchema ); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$Outbound = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion - > = z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseOnlyfyUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseOnlyfyUnion: - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseOnlyfyUnion$outboundSchema - .parse(postAtsImportTrackedApplicationPositiveResponseOnlyfyUnion), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseOnlyfyUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -924,54 +436,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandi job_remote_id: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound = - { - id_type: "candidate_and_job_remote_ids"; - candidate_remote_id: string; - job_remote_id: string; - }; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds - > = z.object({ - id_type: z.literal("candidate_and_job_remote_ids"), - candidate_remote_id: z.string(), - job_remote_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIdsToJSON( - postAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds: - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIdsFromJSON( jsonString: string, ): SafeParseResult< @@ -997,48 +461,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$inboundSchema ); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$Outbound = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion - > = z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema - ); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnionToJSON( - postAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion: - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion$outboundSchema - .parse( - postAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnion, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseSmartrecruitersUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -1085,77 +507,6 @@ export const ImportedId$inboundSchema: z.ZodType< ).optional(), }); -/** @internal */ -export type ImportedId$Outbound = { - erecruiter?: - | PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$Outbound - | PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$Outbound - | undefined; - successfactors?: - | PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$Outbound - | undefined; - recruitee?: - | PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$Outbound - | undefined; - greenhouse?: - | PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$Outbound - | undefined; - onlyfy?: - | PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$Outbound - | undefined; - smartrecruiters?: - | PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$Outbound - | undefined; -}; - -/** @internal */ -export const ImportedId$outboundSchema: z.ZodType< - ImportedId$Outbound, - z.ZodTypeDef, - ImportedId -> = z.object({ - erecruiter: z.union([ - z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndJobRemoteIds$outboundSchema - ), - z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseErecruiterApplicationAndCandidateRemoteIds$outboundSchema - ), - ]).optional(), - successfactors: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseSuccessfactorsApplicationRemoteID$outboundSchema - ).optional(), - recruitee: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseRecruiteePlacementID$outboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseGreenhouseApplicationID$outboundSchema - ).optional(), - onlyfy: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseOnlyfyApplicationID$outboundSchema - ).optional(), - smartrecruiters: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseSmartrecruitersCandidateAndJobRemoteIds$outboundSchema - ).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ImportedId$ { - /** @deprecated use `ImportedId$inboundSchema` instead. */ - export const inboundSchema = ImportedId$inboundSchema; - /** @deprecated use `ImportedId$outboundSchema` instead. */ - export const outboundSchema = ImportedId$outboundSchema; - /** @deprecated use `ImportedId$Outbound` instead. */ - export type Outbound = ImportedId$Outbound; -} - -export function importedIdToJSON(importedId: ImportedId): string { - return JSON.stringify(ImportedId$outboundSchema.parse(importedId)); -} - export function importedIdFromJSON( jsonString: string, ): SafeParseResult { @@ -1180,52 +531,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseData$inboundSchema: imported_id: z.lazy(() => ImportedId$inboundSchema), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseData$Outbound = { - id: string; - tracked_at: string | null; - imported_id: ImportedId$Outbound; -}; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseData - > = z.object({ - id: z.string(), - tracked_at: z.nullable(z.date().transform(v => v.toISOString())), - imported_id: z.lazy(() => ImportedId$outboundSchema), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseData$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseData$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseDataToJSON( - postAtsImportTrackedApplicationPositiveResponseData: - PostAtsImportTrackedApplicationPositiveResponseData, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseData$outboundSchema.parse( - postAtsImportTrackedApplicationPositiveResponseData, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -1252,48 +557,6 @@ export const PostAtsImportTrackedApplicationPositiveResponseWarning$inboundSchem message: z.string(), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponseWarning$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponseWarning$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseWarningToJSON( - postAtsImportTrackedApplicationPositiveResponseWarning: - PostAtsImportTrackedApplicationPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponseWarning$outboundSchema.parse( - postAtsImportTrackedApplicationPositiveResponseWarning, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -1327,60 +590,6 @@ export const PostAtsImportTrackedApplicationPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PostAtsImportTrackedApplicationPositiveResponse$Outbound = { - status: "success"; - data: PostAtsImportTrackedApplicationPositiveResponseData$Outbound; - warnings: Array< - PostAtsImportTrackedApplicationPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostAtsImportTrackedApplicationPositiveResponse$outboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsImportTrackedApplicationPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsImportTrackedApplicationPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationPositiveResponse$ { - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationPositiveResponse$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationPositiveResponse$Outbound; -} - -export function postAtsImportTrackedApplicationPositiveResponseToJSON( - postAtsImportTrackedApplicationPositiveResponse: - PostAtsImportTrackedApplicationPositiveResponse, -): string { - return JSON.stringify( - PostAtsImportTrackedApplicationPositiveResponse$outboundSchema.parse( - postAtsImportTrackedApplicationPositiveResponse, - ), - ); -} - export function postAtsImportTrackedApplicationPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsimporttrackedapplicationrequestbody.ts b/src/models/postatsimporttrackedapplicationrequestbody.ts index f340c7f..960af78 100644 --- a/src/models/postatsimporttrackedapplicationrequestbody.ts +++ b/src/models/postatsimporttrackedapplicationrequestbody.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds = { @@ -116,18 +113,6 @@ export type PostAtsImportTrackedApplicationRequestBody = { tracked_at: Date | null; }; -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("application_and_candidate_remote_ids"), - candidate_remote_id: z.string(), - application_remote_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$Outbound = { @@ -148,22 +133,6 @@ export const PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndC application_remote_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIdsToJSON( postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds: PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds, @@ -176,33 +145,6 @@ export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationA ); } -export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIdsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("application_and_job_remote_ids"), - application_remote_id: z.string(), - job_remote_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$Outbound = { @@ -223,22 +165,6 @@ export const PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJ job_remote_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIdsToJSON( postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds: PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds, @@ -251,36 +177,6 @@ export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationA ); } -export function postAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIdsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema - ), - z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema - ), - ]); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$Outbound = | PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$Outbound @@ -301,22 +197,6 @@ export const PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$outboundS ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyErecruiterUnionToJSON( postAtsImportTrackedApplicationRequestBodyErecruiterUnion: PostAtsImportTrackedApplicationRequestBodyErecruiterUnion, @@ -327,32 +207,6 @@ export function postAtsImportTrackedApplicationRequestBodyErecruiterUnionToJSON( ); } -export function postAtsImportTrackedApplicationRequestBodyErecruiterUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyErecruiterUnion$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyErecruiterUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("application_remote_id"), - application_remote_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$Outbound = { @@ -371,22 +225,6 @@ export const PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplication application_remote_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteIDToJSON( postAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID: PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID, @@ -399,31 +237,6 @@ export function postAtsImportTrackedApplicationRequestBodySuccessfactorsApplicat ); } -export function postAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteIDFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion, - z.ZodTypeDef, - unknown - > = z.lazy(() => - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema - ); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$Outbound = PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$Outbound; @@ -438,22 +251,6 @@ export const PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$outbo PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$outboundSchema ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodySuccessfactorsUnionToJSON( postAtsImportTrackedApplicationRequestBodySuccessfactorsUnion: PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion, @@ -464,32 +261,6 @@ export function postAtsImportTrackedApplicationRequestBodySuccessfactorsUnionToJ ); } -export function postAtsImportTrackedApplicationRequestBodySuccessfactorsUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodySuccessfactorsUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("placement_id"), - placement_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$Outbound = { @@ -508,22 +279,6 @@ export const PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$outb placement_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyRecruiteePlacementIDToJSON( postAtsImportTrackedApplicationRequestBodyRecruiteePlacementID: PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID, @@ -534,31 +289,6 @@ export function postAtsImportTrackedApplicationRequestBodyRecruiteePlacementIDTo ); } -export function postAtsImportTrackedApplicationRequestBodyRecruiteePlacementIDFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion, - z.ZodTypeDef, - unknown - > = z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema - ); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$Outbound = PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$Outbound; @@ -573,22 +303,6 @@ export const PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$outboundSc PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$outboundSchema ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyRecruiteeUnionToJSON( postAtsImportTrackedApplicationRequestBodyRecruiteeUnion: PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion, @@ -599,32 +313,6 @@ export function postAtsImportTrackedApplicationRequestBodyRecruiteeUnionToJSON( ); } -export function postAtsImportTrackedApplicationRequestBodyRecruiteeUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyRecruiteeUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("application_id"), - application_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$Outbound = { @@ -643,22 +331,6 @@ export const PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$o application_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyGreenhouseApplicationIDToJSON( postAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID: PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID, @@ -669,31 +341,6 @@ export function postAtsImportTrackedApplicationRequestBodyGreenhouseApplicationI ); } -export function postAtsImportTrackedApplicationRequestBodyGreenhouseApplicationIDFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion, - z.ZodTypeDef, - unknown - > = z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema - ); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$Outbound = PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$Outbound; @@ -708,22 +355,6 @@ export const PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$outboundS PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$outboundSchema ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyGreenhouseUnionToJSON( postAtsImportTrackedApplicationRequestBodyGreenhouseUnion: PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion, @@ -734,32 +365,6 @@ export function postAtsImportTrackedApplicationRequestBodyGreenhouseUnionToJSON( ); } -export function postAtsImportTrackedApplicationRequestBodyGreenhouseUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyGreenhouseUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("application_id"), - application_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$Outbound = { @@ -778,22 +383,6 @@ export const PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$outbo application_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyOnlyfyApplicationIDToJSON( postAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID: PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID, @@ -804,31 +393,6 @@ export function postAtsImportTrackedApplicationRequestBodyOnlyfyApplicationIDToJ ); } -export function postAtsImportTrackedApplicationRequestBodyOnlyfyApplicationIDFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion, - z.ZodTypeDef, - unknown - > = z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema - ); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$Outbound = PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$Outbound; @@ -843,22 +407,6 @@ export const PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$outboundSchem PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$outboundSchema ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyOnlyfyUnionToJSON( postAtsImportTrackedApplicationRequestBodyOnlyfyUnion: PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion, @@ -870,34 +418,6 @@ export function postAtsImportTrackedApplicationRequestBodyOnlyfyUnionToJSON( ); } -export function postAtsImportTrackedApplicationRequestBodyOnlyfyUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodyOnlyfyUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds, - z.ZodTypeDef, - unknown - > = z.object({ - id_type: z.literal("candidate_and_job_remote_ids"), - candidate_remote_id: z.string(), - job_remote_id: z.string(), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$Outbound = { @@ -918,22 +438,6 @@ export const PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateA job_remote_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIdsToJSON( postAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds: PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds, @@ -946,31 +450,6 @@ export function postAtsImportTrackedApplicationRequestBodySmartrecruitersCandida ); } -export function postAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIdsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$inboundSchema: - z.ZodType< - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion, - z.ZodTypeDef, - unknown - > = z.lazy(() => - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema - ); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$Outbound = PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$Outbound; @@ -985,22 +464,6 @@ export const PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$outb PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$outboundSchema ); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$Outbound` instead. */ - export type Outbound = - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodySmartrecruitersUnionToJSON( postAtsImportTrackedApplicationRequestBodySmartrecruitersUnion: PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion, @@ -1011,53 +474,6 @@ export function postAtsImportTrackedApplicationRequestBodySmartrecruitersUnionTo ); } -export function postAtsImportTrackedApplicationRequestBodySmartrecruitersUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBodySmartrecruitersUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsImportTrackedApplicationRequestBody$inboundSchema: - z.ZodType = - z.object({ - erecruiter: z.union([ - z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndJobRemoteIds$inboundSchema - ), - z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyErecruiterApplicationAndCandidateRemoteIds$inboundSchema - ), - ]).optional(), - successfactors: z.lazy(() => - PostAtsImportTrackedApplicationRequestBodySuccessfactorsApplicationRemoteID$inboundSchema - ).optional(), - recruitee: z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyRecruiteePlacementID$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyGreenhouseApplicationID$inboundSchema - ).optional(), - onlyfy: z.lazy(() => - PostAtsImportTrackedApplicationRequestBodyOnlyfyApplicationID$inboundSchema - ).optional(), - smartrecruiters: z.lazy(() => - PostAtsImportTrackedApplicationRequestBodySmartrecruitersCandidateAndJobRemoteIds$inboundSchema - ).optional(), - tracked_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ), - }); - /** @internal */ export type PostAtsImportTrackedApplicationRequestBody$Outbound = { erecruiter?: @@ -1115,21 +531,6 @@ export const PostAtsImportTrackedApplicationRequestBody$outboundSchema: tracked_at: z.nullable(z.date().transform(v => v.toISOString())), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsImportTrackedApplicationRequestBody$ { - /** @deprecated use `PostAtsImportTrackedApplicationRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsImportTrackedApplicationRequestBody$inboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsImportTrackedApplicationRequestBody$outboundSchema; - /** @deprecated use `PostAtsImportTrackedApplicationRequestBody$Outbound` instead. */ - export type Outbound = PostAtsImportTrackedApplicationRequestBody$Outbound; -} - export function postAtsImportTrackedApplicationRequestBodyToJSON( postAtsImportTrackedApplicationRequestBody: PostAtsImportTrackedApplicationRequestBody, @@ -1140,19 +541,3 @@ export function postAtsImportTrackedApplicationRequestBodyToJSON( ), ); } - -export function postAtsImportTrackedApplicationRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsImportTrackedApplicationRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsImportTrackedApplicationRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsImportTrackedApplicationRequestBody' from JSON`, - ); -} diff --git a/src/models/postatsjobsjobidapplicationspositiveresponse.ts b/src/models/postatsjobsjobidapplicationspositiveresponse.ts index 19de035..a87ef0a 100644 --- a/src/models/postatsjobsjobidapplicationspositiveresponse.ts +++ b/src/models/postatsjobsjobidapplicationspositiveresponse.ts @@ -431,24 +431,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseOutcome$inboundSchema: z.ZodNativeEnum = z.nativeEnum(PostAtsJobsJobIdApplicationsPositiveResponseOutcome); -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseOutcome$outboundSchema: - z.ZodNativeEnum = - PostAtsJobsJobIdApplicationsPositiveResponseOutcome$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseOutcome$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseOutcome$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseOutcome$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseOutcome$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseOutcome$outboundSchema; -} - /** @internal */ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$inboundSchema: z.ZodType< @@ -459,48 +441,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$inboundSchema: raw: z.nullable(z.any()).optional(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$Outbound = { - raw?: any | null | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7 - > = z.object({ - raw: z.nullable(z.any()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer7ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer7: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer7, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer7FromJSON( jsonString: string, ): SafeParseResult< @@ -529,52 +469,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$inbound type: z.literal("UNKNOWN"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$Outbound = - { - remote_id: string | null; - title: string; - type: "UNKNOWN"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("UNKNOWN"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionUnknownToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionUnknownFromJSON( jsonString: string, ): SafeParseResult< @@ -605,57 +499,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$Outbound; - question: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer7$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionUnknown$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7FromJSON( jsonString: string, ): SafeParseResult< @@ -683,48 +526,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$inboundSchema: ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$Outbound = { - date: string | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6 - > = z.object({ - date: z.nullable(z.date().transform(v => v.toISOString())), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer6ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer6: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer6, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer6FromJSON( jsonString: string, ): SafeParseResult< @@ -753,52 +554,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$inboundSch type: z.literal("DATE"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$Outbound = - { - remote_id: string | null; - title: string; - type: "DATE"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("DATE"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionDateToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionDate: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionDate), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionDateFromJSON( jsonString: string, ): SafeParseResult< @@ -829,56 +584,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$Outbound; - question: PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer6$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionDate$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6FromJSON( jsonString: string, ): SafeParseResult< @@ -904,48 +609,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$inboundSchema: number: z.nullable(z.number()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$Outbound = { - number: number | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5 - > = z.object({ - number: z.nullable(z.number()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer5ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer5: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer5, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer5FromJSON( jsonString: string, ): SafeParseResult< @@ -974,52 +637,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$inboundS type: z.literal("NUMBER"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$Outbound = - { - remote_id: string | null; - title: string; - type: "NUMBER"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("NUMBER"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionNumberToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionNumber: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionNumber), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionNumberFromJSON( jsonString: string, ): SafeParseResult< @@ -1050,57 +667,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$Outbound; - question: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer5$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionNumber$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5FromJSON( jsonString: string, ): SafeParseResult< @@ -1126,48 +692,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$inboundSchema: checked: z.nullable(z.boolean()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$Outbound = { - checked: boolean | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4 - > = z.object({ - checked: z.nullable(z.boolean()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer4ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer4: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer4, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer4FromJSON( jsonString: string, ): SafeParseResult< @@ -1196,52 +720,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$inbound type: z.literal("BOOLEAN"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$Outbound = - { - remote_id: string | null; - title: string; - type: "BOOLEAN"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("BOOLEAN"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionBooleanToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionBooleanFromJSON( jsonString: string, ): SafeParseResult< @@ -1272,74 +750,23 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$Outbound; - question: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$Outbound; - }; +export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4FromJSON( + jsonString: string, +): SafeParseResult< + PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4' from JSON`, + ); +} /** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer4$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionBoolean$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4, - ), - ); -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4FromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$inboundSchema: +export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$inboundSchema: z.ZodType< PostAtsJobsJobIdApplicationsPositiveResponseAnswer3, z.ZodTypeDef, @@ -1348,48 +775,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$inboundSchema: choices: z.array(z.string()).optional(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$Outbound = { - choices?: Array | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3 - > = z.object({ - choices: z.array(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer3ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer3: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer3, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer3FromJSON( jsonString: string, ): SafeParseResult< @@ -1418,52 +803,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$inb type: z.literal("MULTI_SELECT"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$Outbound = - { - remote_id: string | null; - title: string; - type: "MULTI_SELECT"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("MULTI_SELECT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelectToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelectFromJSON( jsonString: string, ): SafeParseResult< @@ -1494,57 +833,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$Outbound; - question: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer3$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionMultiSelect$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3FromJSON( jsonString: string, ): SafeParseResult< @@ -1570,48 +858,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$inboundSchema: choice: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$Outbound = { - choice: string | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2 - > = z.object({ - choice: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer2ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer2: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer2, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer2FromJSON( jsonString: string, ): SafeParseResult< @@ -1640,52 +886,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$in type: z.literal("SINGLE_SELECT"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$Outbound = - { - remote_id: string | null; - title: string; - type: "SINGLE_SELECT"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("SINGLE_SELECT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelectToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelectFromJSON( jsonString: string, ): SafeParseResult< @@ -1716,57 +916,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$Outbound; - question: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer2$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionSingleSelect$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2FromJSON( jsonString: string, ): SafeParseResult< @@ -1792,48 +941,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$inboundSchema: content: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$Outbound = { - content: string | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1 - > = z.object({ - content: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseAnswer1ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseAnswer1: - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseAnswer1, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseAnswer1FromJSON( jsonString: string, ): SafeParseResult< @@ -1862,52 +969,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$inboundSch type: z.literal("TEXT"), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$Outbound = - { - remote_id: string | null; - title: string; - type: "TEXT"; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText - > = z.object({ - remote_id: z.nullable(z.string()), - title: z.string(), - type: z.literal("TEXT"), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseQuestionTextToJSON( - postAtsJobsJobIdApplicationsPositiveResponseQuestionText: - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseQuestionText), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseQuestionTextFromJSON( jsonString: string, ): SafeParseResult< @@ -1938,56 +999,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound = - { - answer: PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$Outbound; - question: PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$Outbound; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1 - > = z.object({ - answer: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseAnswer1$outboundSchema - ), - question: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseQuestionText$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1ToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1FromJSON( jsonString: string, ): SafeParseResult< @@ -2033,74 +1044,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer ), ]); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound = - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion - > = z.union([ - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - ), - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnionToJSON( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion: - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion$outboundSchema - .parse( - postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnion, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswerUnionFromJSON( jsonString: string, ): SafeParseResult< @@ -2129,54 +1072,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$inboundSch index: z.nullable(z.number().int()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$Outbound = - { - id: string; - name: string | null; - remote_id: string | null; - index: number | null; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage - > = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), - index: z.nullable(z.number().int()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseCurrentStageToJSON( - postAtsJobsJobIdApplicationsPositiveResponseCurrentStage: - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseCurrentStage), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseCurrentStageFromJSON( jsonString: string, ): SafeParseResult< @@ -2204,52 +1099,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseJob$inboundSchema: remote_id: z.string(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseJob$Outbound = { - id: string; - name: string | null; - remote_id: string; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseJob$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseJob$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseJob - > = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseJob$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseJob$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseJob$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseJob$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseJob$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseJob$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseJob$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseJobToJSON( - postAtsJobsJobIdApplicationsPositiveResponseJob: - PostAtsJobsJobIdApplicationsPositiveResponseJob, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseJob$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseJob, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseJobFromJSON( jsonString: string, ): SafeParseResult< @@ -2277,49 +1126,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$inboundSche type: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$Outbound = { - phone_number: string; - type?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber - > = z.object({ - phone_number: z.string(), - type: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponsePhoneNumberToJSON( - postAtsJobsJobIdApplicationsPositiveResponsePhoneNumber: - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponsePhoneNumber), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponsePhoneNumberFromJSON( jsonString: string, ): SafeParseResult< @@ -2346,50 +1152,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$inboundSch type: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$Outbound = - { - email_address?: string | null | undefined; - type: string | null; - }; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress - > = z.object({ - email_address: z.nullable(z.string()).optional(), - type: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseEmailAddressToJSON( - postAtsJobsJobIdApplicationsPositiveResponseEmailAddress: - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseEmailAddress), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseEmailAddressFromJSON( jsonString: string, ): SafeParseResult< @@ -2408,60 +1170,15 @@ export function postAtsJobsJobIdApplicationsPositiveResponseEmailAddressFromJSON /** @internal */ export const PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$inboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia, - z.ZodTypeDef, - unknown - > = z.object({ - link: z.nullable(z.string()).optional(), - type: z.nullable(z.string()).optional(), - username: z.nullable(z.string()).optional(), - }); - -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$Outbound = { - link?: string | null | undefined; - type?: string | null | undefined; - username?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$Outbound, + PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia, z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia + unknown > = z.object({ link: z.nullable(z.string()).optional(), type: z.nullable(z.string()).optional(), username: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseSocialMediaToJSON( - postAtsJobsJobIdApplicationsPositiveResponseSocialMedia: - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$outboundSchema - .parse(postAtsJobsJobIdApplicationsPositiveResponseSocialMedia), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseSocialMediaFromJSON( jsonString: string, ): SafeParseResult< @@ -2493,60 +1210,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseLocation$inboundSchema: zip_code: z.nullable(z.string()).optional(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseLocation$Outbound = { - city?: string | null | undefined; - country?: string | null | undefined; - raw?: string | null | undefined; - state?: string | null | undefined; - street_1?: string | null | undefined; - street_2?: string | null | undefined; - zip_code?: string | null | undefined; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseLocation$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseLocation$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseLocation - > = z.object({ - city: z.nullable(z.string()).optional(), - country: z.nullable(z.string()).optional(), - raw: z.nullable(z.string()).optional(), - state: z.nullable(z.string()).optional(), - street_1: z.nullable(z.string()).optional(), - street_2: z.nullable(z.string()).optional(), - zip_code: z.nullable(z.string()).optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseLocation$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseLocation$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseLocation$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseLocation$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseLocation$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseLocation$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseLocation$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseLocationToJSON( - postAtsJobsJobIdApplicationsPositiveResponseLocation: - PostAtsJobsJobIdApplicationsPositiveResponseLocation, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseLocation$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseLocation, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseLocationFromJSON( jsonString: string, ): SafeParseResult< @@ -2575,52 +1238,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseTag$inboundSchema: remote_id: z.nullable(z.string()), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseTag$Outbound = { - id: string; - name: string | null; - remote_id: string | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseTag$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseTag$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseTag - > = z.object({ - id: z.string(), - name: z.nullable(z.string()), - remote_id: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseTag$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseTag$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseTag$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseTag$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseTag$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseTag$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseTag$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseTagToJSON( - postAtsJobsJobIdApplicationsPositiveResponseTag: - PostAtsJobsJobIdApplicationsPositiveResponseTag, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseTag$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseTag, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseTagFromJSON( jsonString: string, ): SafeParseResult< @@ -2693,116 +1310,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseCandidate$inboundSchema ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseCandidate$Outbound = { - id: string; - remote_id: string; - first_name: string | null; - last_name: string | null; - company: string | null; - title: string | null; - confidential: boolean | null; - source: string | null; - phone_numbers?: - | Array - | null - | undefined; - email_addresses?: - | Array - | null - | undefined; - social_media?: - | Array - | null - | undefined; - location?: - | PostAtsJobsJobIdApplicationsPositiveResponseLocation$Outbound - | null - | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - changed_at: string; - remote_deleted_at: string | null; - tags: Array; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseCandidate$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseCandidate - > = z.object({ - id: z.string(), - remote_id: z.string(), - first_name: z.nullable(z.string()), - last_name: z.nullable(z.string()), - company: z.nullable(z.string()), - title: z.nullable(z.string()), - confidential: z.nullable(z.boolean()), - source: z.nullable(z.string()), - phone_numbers: z.nullable( - z.array(z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponsePhoneNumber$outboundSchema - )), - ).optional(), - email_addresses: z.nullable( - z.array(z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseEmailAddress$outboundSchema - )), - ).optional(), - social_media: z.nullable( - z.array(z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseSocialMedia$outboundSchema - )), - ).optional(), - location: z.nullable( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseLocation$outboundSchema - ), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - tags: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseTag$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseCandidate$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCandidate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCandidate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseCandidate$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseCandidateToJSON( - postAtsJobsJobIdApplicationsPositiveResponseCandidate: - PostAtsJobsJobIdApplicationsPositiveResponseCandidate, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseCandidate, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseCandidateFromJSON( jsonString: string, ): SafeParseResult< @@ -2894,135 +1401,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseData$inboundSchema: ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseData$Outbound = { - id: string; - remote_id: string | null; - outcome: string | null; - rejection_reason_name: string | null; - rejected_at: string | null; - current_stage_id: string | null; - job_id: string | null; - candidate_id: string | null; - screening_question_answers?: - | Array< - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$Outbound - | PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$Outbound - > - | null - | undefined; - custom_fields: { [k: string]: any } | null; - remote_url: string | null; - changed_at: string; - remote_deleted_at: string | null; - remote_created_at: string | null; - remote_updated_at: string | null; - current_stage: - | PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$Outbound - | null; - job: PostAtsJobsJobIdApplicationsPositiveResponseJob$Outbound | null; - candidate: - | PostAtsJobsJobIdApplicationsPositiveResponseCandidate$Outbound - | null; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseData$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseData$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseData - > = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - outcome: z.nullable( - PostAtsJobsJobIdApplicationsPositiveResponseOutcome$outboundSchema, - ), - rejection_reason_name: z.nullable(z.string()), - rejected_at: z.nullable(z.date().transform(v => v.toISOString())), - current_stage_id: z.nullable(z.string()), - job_id: z.nullable(z.string()), - candidate_id: z.nullable(z.string()), - screening_question_answers: z.nullable( - z.array(z.union([ - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer1$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer2$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer3$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer4$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer5$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer6$outboundSchema - ), - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseScreeningQuestionAnswer7$outboundSchema - ), - ])), - ).optional(), - custom_fields: z.nullable(z.record(z.any())), - remote_url: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_created_at: z.nullable(z.date().transform(v => v.toISOString())), - remote_updated_at: z.nullable(z.date().transform(v => v.toISOString())), - current_stage: z.nullable( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseCurrentStage$outboundSchema - ), - ), - job: z.nullable( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseJob$outboundSchema - ), - ), - candidate: z.nullable( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseCandidate$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseData$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseDataToJSON( - postAtsJobsJobIdApplicationsPositiveResponseData: - PostAtsJobsJobIdApplicationsPositiveResponseData, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseData$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseData, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -3049,48 +1427,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponseWarning$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponseWarning$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsPositiveResponseWarning$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseWarningToJSON( - postAtsJobsJobIdApplicationsPositiveResponseWarning: - PostAtsJobsJobIdApplicationsPositiveResponseWarning, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponseWarning$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponseWarning, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -3125,57 +1461,6 @@ export const PostAtsJobsJobIdApplicationsPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PostAtsJobsJobIdApplicationsPositiveResponse$Outbound = { - status: "success"; - data: PostAtsJobsJobIdApplicationsPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PostAtsJobsJobIdApplicationsPositiveResponse$outboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsPositiveResponse$Outbound, - z.ZodTypeDef, - PostAtsJobsJobIdApplicationsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsPositiveResponse$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponse$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsPositiveResponse$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsPositiveResponse$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsPositiveResponse$Outbound; -} - -export function postAtsJobsJobIdApplicationsPositiveResponseToJSON( - postAtsJobsJobIdApplicationsPositiveResponse: - PostAtsJobsJobIdApplicationsPositiveResponse, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsPositiveResponse$outboundSchema.parse( - postAtsJobsJobIdApplicationsPositiveResponse, - ), - ); -} - export function postAtsJobsJobIdApplicationsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postatsjobsjobidapplicationsrequestbody.ts b/src/models/postatsjobsjobidapplicationsrequestbody.ts index abf651d..4d2adc8 100644 --- a/src/models/postatsjobsjobidapplicationsrequestbody.ts +++ b/src/models/postatsjobsjobidapplicationsrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType = { @@ -729,6 +726,28 @@ export type PostAtsJobsJobIdApplicationsRequestBodyUmantis = { person?: { [k: string]: any } | undefined; }; +/** + * Additional candidate fields for P&I Loga that will be mapped to the application form. + */ +export type PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate = { + /** + * The street address of the candidate. + */ + street?: string | undefined; +}; + +/** + * Fields specific to P&I Loga. + */ +export type PostAtsJobsJobIdApplicationsRequestBodyPiloga = { + /** + * Additional candidate fields for P&I Loga that will be mapped to the application form. + */ + candidate?: + | PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate + | undefined; +}; + /** * Additional fields that we will pass through to specific ATS systems. */ @@ -810,6 +829,10 @@ export type PostAtsJobsJobIdApplicationsRequestBodyRemoteFields = { * Fields specific to Abacus Umantis. */ umantis?: PostAtsJobsJobIdApplicationsRequestBodyUmantis | undefined; + /** + * Fields specific to P&I Loga. + */ + piloga?: PostAtsJobsJobIdApplicationsRequestBodyPiloga | undefined; }; /** @@ -965,45 +988,13 @@ export type PostAtsJobsJobIdApplicationsRequestBody = { }; /** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$inboundSchema: +export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$outboundSchema: z.ZodNativeEnum< typeof PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType > = z.nativeEnum( PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType, ); -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$outboundSchema: - z.ZodNativeEnum< - typeof PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType - > = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$outboundSchema; -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress, - z.ZodTypeDef, - unknown - > = z.object({ - type: - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressType$inboundSchema, - email_address: z.string(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$Outbound = { @@ -1023,22 +1014,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$outbo email_address: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressToJSON( postAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress: PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress, @@ -1049,61 +1024,14 @@ export function postAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressToJ ); } -export function postAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddressFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress' from JSON`, - ); -} - /** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$inboundSchema: +export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$outboundSchema: z.ZodNativeEnum< typeof PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType > = z.nativeEnum( PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType, ); -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$outboundSchema: - z.ZodNativeEnum< - typeof PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType - > = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$outboundSchema; -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber, - z.ZodTypeDef, - unknown - > = z.object({ - type: - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberType$inboundSchema, - phone_number: z.string(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$Outbound = { @@ -1123,22 +1051,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$outbou phone_number: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberToJSON( postAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber: PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber, @@ -1149,34 +1061,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberToJS ); } -export function postAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumberFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLocation$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLocation, - z.ZodTypeDef, - unknown - > = z.object({ - city: z.string().optional(), - country: z.string(), - state: z.string().optional(), - zip_code: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLocation$Outbound = { city?: string | undefined; @@ -1198,22 +1082,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLocation$outboundSchema: zip_code: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLocation$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocation$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLocation$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocation$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLocation$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocation$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLocation$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLocationToJSON( postAtsJobsJobIdApplicationsRequestBodyLocation: PostAtsJobsJobIdApplicationsRequestBodyLocation, @@ -1225,79 +1093,16 @@ export function postAtsJobsJobIdApplicationsRequestBodyLocationToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLocationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLocation, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLocation$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLocation' from JSON`, - ); -} - /** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGender$inboundSchema: +export const PostAtsJobsJobIdApplicationsRequestBodyGender$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostAtsJobsJobIdApplicationsRequestBodyGender); /** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGender$outboundSchema: - z.ZodNativeEnum = - PostAtsJobsJobIdApplicationsRequestBodyGender$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyGender$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGender$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGender$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGender$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGender$outboundSchema; -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyPeriod$inboundSchema: +export const PostAtsJobsJobIdApplicationsRequestBodyPeriod$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostAtsJobsJobIdApplicationsRequestBodyPeriod); -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyPeriod$outboundSchema: - z.ZodNativeEnum = - PostAtsJobsJobIdApplicationsRequestBodyPeriod$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyPeriod$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPeriod$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPeriod$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPeriod$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPeriod$outboundSchema; -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations, - z.ZodTypeDef, - unknown - > = z.object({ - period: PostAtsJobsJobIdApplicationsRequestBodyPeriod$inboundSchema, - amount: z.number(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$Outbound = { @@ -1316,22 +1121,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$outboundS amount: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySalaryExpectationsToJSON( postAtsJobsJobIdApplicationsRequestBodySalaryExpectations: PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations, @@ -1342,31 +1131,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySalaryExpectationsToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySalaryExpectationsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySocialLink$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySocialLink, - z.ZodTypeDef, - unknown - > = z.object({ - url: z.string(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySocialLink$Outbound = { url: string; @@ -1382,22 +1146,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySocialLink$outboundSchema: url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySocialLink$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialLink$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySocialLink$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialLink$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySocialLink$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialLink$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySocialLink$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySocialLinkToJSON( postAtsJobsJobIdApplicationsRequestBodySocialLink: PostAtsJobsJobIdApplicationsRequestBodySocialLink, @@ -1409,63 +1157,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySocialLinkToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySocialLinkFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySocialLink, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySocialLink$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySocialLink' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyCandidate$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyCandidate, - z.ZodTypeDef, - unknown - > = z.object({ - first_name: z.string(), - last_name: z.string(), - email_address: z.string(), - additional_email_addresses: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyAdditionalEmailAddress$inboundSchema - ), - ).optional(), - company: z.string().optional(), - title: z.string().optional(), - phone_number: z.string().optional(), - additional_phone_numbers: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyAdditionalPhoneNumber$inboundSchema - ), - ).optional(), - location: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLocation$inboundSchema - ).optional(), - gender: PostAtsJobsJobIdApplicationsRequestBodyGender$inboundSchema - .optional(), - availability_date: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - salary_expectations: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySalaryExpectations$inboundSchema - ).optional(), - social_links: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySocialLink$inboundSchema - ), - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyCandidate$Outbound = { first_name: string; @@ -1536,22 +1227,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyCandidate$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyCandidate$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCandidate$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCandidate$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidate$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyCandidate$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyCandidateToJSON( postAtsJobsJobIdApplicationsRequestBodyCandidate: PostAtsJobsJobIdApplicationsRequestBodyCandidate, @@ -1563,60 +1238,11 @@ export function postAtsJobsJobIdApplicationsRequestBodyCandidateToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyCandidateFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyCandidate, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyCandidate$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyCandidate' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$inboundSchema: - z.ZodNativeEnum< - typeof PostAtsJobsJobIdApplicationsRequestBodyAttachmentType - > = z.nativeEnum(PostAtsJobsJobIdApplicationsRequestBodyAttachmentType); - /** @internal */ export const PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$outboundSchema: z.ZodNativeEnum< typeof PostAtsJobsJobIdApplicationsRequestBodyAttachmentType - > = PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$outboundSchema; -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAttachment$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAttachment, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - type: PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$inboundSchema, - }); + > = z.nativeEnum(PostAtsJobsJobIdApplicationsRequestBodyAttachmentType); /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAttachment$Outbound = { @@ -1641,22 +1267,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAttachment$outboundSchema: type: PostAtsJobsJobIdApplicationsRequestBodyAttachmentType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAttachment$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAttachment$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAttachment$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAttachment$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAttachment$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAttachment$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyAttachment$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAttachmentToJSON( postAtsJobsJobIdApplicationsRequestBodyAttachment: PostAtsJobsJobIdApplicationsRequestBodyAttachment, @@ -1668,34 +1278,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyAttachmentToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyAttachmentFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAttachment, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAttachment$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAttachment' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySource$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySource, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string().optional(), - unified_key: z.string().optional(), - id: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySource$Outbound = { name?: string | undefined; @@ -1715,21 +1297,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySource$outboundSchema: id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySource$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySource$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySource$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySource$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySource$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySource$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBodySource$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySourceToJSON( postAtsJobsJobIdApplicationsRequestBodySource: PostAtsJobsJobIdApplicationsRequestBodySource, @@ -1741,32 +1308,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySourceToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySourceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySource, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySource$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySource' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySourcedBy$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySourcedBy, - z.ZodTypeDef, - unknown - > = z.object({ - user_id: z.string(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySourcedBy$Outbound = { user_id: string; @@ -1782,22 +1323,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySourcedBy$outboundSchema: user_id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySourcedBy$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySourcedBy$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySourcedBy$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySourcedBy$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySourcedBy$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySourcedBy$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySourcedBy$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySourcedByToJSON( postAtsJobsJobIdApplicationsRequestBodySourcedBy: PostAtsJobsJobIdApplicationsRequestBodySourcedBy, @@ -1809,35 +1334,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySourcedByToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySourcedByFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySourcedBy, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySourcedBy$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySourcedBy' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent, - z.ZodTypeDef, - unknown - > = z.object({ - expires_at: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - given: z.boolean().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$Outbound = { expires_at?: string | undefined; @@ -1855,22 +1351,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$outboundSchema: given: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyGdprConsentToJSON( postAtsJobsJobIdApplicationsRequestBodyGdprConsent: PostAtsJobsJobIdApplicationsRequestBodyGdprConsent, @@ -1882,41 +1362,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyGdprConsentToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyGdprConsentFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyGdprConsent' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors, - z.ZodTypeDef, - unknown - > = z.object({ - Candidate: z.record(z.any()).optional(), - JobApplication: z.record(z.any()).optional(), - copyJobApplicationAttachments: z.boolean().optional(), - update_existing_candidate: z.nullable(z.boolean()).optional(), - }).transform((v) => { - return remap$(v, { - "Candidate": "candidate", - "JobApplication": "job_application", - "copyJobApplicationAttachments": "copy_job_application_attachments", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$Outbound = { Candidate?: { [k: string]: any } | undefined; @@ -1944,22 +1389,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$outboundSchem }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySuccessfactorsToJSON( postAtsJobsJobIdApplicationsRequestBodySuccessfactors: PostAtsJobsJobIdApplicationsRequestBodySuccessfactors, @@ -1971,32 +1400,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySuccessfactorsToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySuccessfactorsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySuccessfactors' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyPersonio$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyPersonio, - z.ZodTypeDef, - unknown - > = z.object({ - application: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyPersonio$Outbound = { application?: { [k: string]: any } | undefined; @@ -2012,22 +1415,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyPersonio$outboundSchema: application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyPersonio$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPersonio$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPersonio$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPersonio$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPersonio$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPersonio$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyPersonio$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyPersonioToJSON( postAtsJobsJobIdApplicationsRequestBodyPersonio: PostAtsJobsJobIdApplicationsRequestBodyPersonio, @@ -2039,33 +1426,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyPersonioToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyPersonioFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyPersonio, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyPersonio$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyPersonio' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft, - z.ZodTypeDef, - unknown - > = z.object({ - applicant: z.record(z.any()).optional(), - application: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$Outbound = { applicant?: { [k: string]: any } | undefined; @@ -2083,22 +1443,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$outboundSchema: application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyTalentsoftToJSON( postAtsJobsJobIdApplicationsRequestBodyTalentsoft: PostAtsJobsJobIdApplicationsRequestBodyTalentsoft, @@ -2110,32 +1454,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyTalentsoftToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyTalentsoftFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyTalentsoft' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication, - z.ZodTypeDef, - unknown - > = z.object({ - attributes: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$Outbound = { @@ -2152,22 +1470,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$outbou attributes: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorApplicationToJSON( postAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication: PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication, @@ -2178,34 +1480,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorApplicationToJS ); } -export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorApplicationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.record(z.any()).optional(), - application: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyTeamtailorApplication$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -2227,22 +1501,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorToJSON( postAtsJobsJobIdApplicationsRequestBodyTeamtailor: PostAtsJobsJobIdApplicationsRequestBodyTeamtailor, @@ -2254,36 +1512,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyTeamtailorFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyTeamtailor' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$Outbound = { "On-Behalf-Of"?: string | null | undefined; @@ -2303,22 +1531,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyPostHeadersToJSON( postAtsJobsJobIdApplicationsRequestBodyPostHeaders: PostAtsJobsJobIdApplicationsRequestBodyPostHeaders, @@ -2330,34 +1542,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyPostHeadersToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$Outbound = { post_headers?: @@ -2377,22 +1561,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyGreenhouseToJSON( postAtsJobsJobIdApplicationsRequestBodyGreenhouse: PostAtsJobsJobIdApplicationsRequestBodyGreenhouse, @@ -2404,32 +1572,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyGreenhouseToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLever$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLever, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLever$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -2445,21 +1587,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLever$outboundSchema: candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLever$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLever$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLever$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLever$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLever$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLever$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBodyLever$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLeverToJSON( postAtsJobsJobIdApplicationsRequestBodyLever: PostAtsJobsJobIdApplicationsRequestBodyLever, @@ -2471,32 +1598,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLeverToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLeverFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLever, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLever$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLever' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyWorkable$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyWorkable$Outbound = { on_behalf_of_user_remote_id?: string | undefined; @@ -2512,22 +1613,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyWorkable$outboundSchema: on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyWorkable$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkable$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkable$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyWorkable$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyWorkableToJSON( postAtsJobsJobIdApplicationsRequestBodyWorkable: PostAtsJobsJobIdApplicationsRequestBodyWorkable, @@ -2539,36 +1624,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyWorkableToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyWorkable$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference, - z.ZodTypeDef, - unknown - > = z.object({ - Predefined_Name_Component_ID: z.string(), - }).transform((v) => { - return remap$(v, { - "Predefined_Name_Component_ID": "predefined_name_component_id", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$Outbound = { @@ -2589,22 +1644,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$outbou }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySocialSuffixReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodySocialSuffixReference: PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference, @@ -2615,39 +1654,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySocialSuffixReferenceToJS ); } -export function postAtsJobsJobIdApplicationsRequestBodySocialSuffixReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData, - z.ZodTypeDef, - unknown - > = z.object({ - Middle_Name: z.string().optional(), - Social_Suffix_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySocialSuffixReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Middle_Name": "middle_name", - "Social_Suffix_Reference": "social_suffix_reference", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$Outbound = { Middle_Name?: string | undefined; @@ -2674,22 +1680,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$outboundSchem }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyNameDetailDataToJSON( postAtsJobsJobIdApplicationsRequestBodyNameDetailData: PostAtsJobsJobIdApplicationsRequestBodyNameDetailData, @@ -2701,36 +1691,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyNameDetailDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyNameDetailDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyNameDetailData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$Outbound = { @@ -2751,22 +1711,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$outboundSc }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageReference: PostAtsJobsJobIdApplicationsRequestBodyLanguageReference, @@ -2777,35 +1721,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageReferenceToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData, - z.ZodTypeDef, - unknown - > = z.object({ - Date_of_Birth: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Date_of_Birth": "date_of_birth", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$Outbound = { @@ -2826,22 +1741,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationDat }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationDataToJSON( postAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData: PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData, @@ -2854,37 +1753,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformation ); } -export function postAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData, - z.ZodTypeDef, - unknown - > = z.object({ - Global_Personal_Information_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyGlobalPersonalInformationData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Global_Personal_Information_Data": "global_personal_information_data", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$Outbound = { Global_Personal_Information_Data?: @@ -2908,22 +1776,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$outboundSch }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyJobAppliedToDataToJSON( postAtsJobsJobIdApplicationsRequestBodyJobAppliedToData: PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData, @@ -2934,35 +1786,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyJobAppliedToDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyJobAppliedToDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$Outbound = { @@ -2983,22 +1806,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$outbou }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference: PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference, @@ -3009,35 +1816,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReferenceToJS ); } -export function postAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$Outbound = { WID: string; @@ -3057,22 +1835,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$outboundSche }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyDegreeReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyDegreeReference: PostAtsJobsJobIdApplicationsRequestBodyDegreeReference, @@ -3084,49 +1846,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyDegreeReferenceToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyDegreeReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyDegreeReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum, - z.ZodTypeDef, - unknown - > = z.object({ - School_Name: z.string().optional(), - First_Year_Attended: z.number().optional(), - Last_Year_Attended: z.number().optional(), - Field_of_Study_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyFieldOfStudyReference$inboundSchema - ).optional(), - Degree_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyDegreeReference$inboundSchema - ).optional(), - Grade_Average: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "School_Name": "school_name", - "First_Year_Attended": "first_year_attended", - "Last_Year_Attended": "last_year_attended", - "Field_of_Study_Reference": "field_of_study_reference", - "Degree_Reference": "degree_reference", - "Grade_Average": "grade_average", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$Outbound = { School_Name?: string | undefined; @@ -3169,22 +1888,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$outboundSchem }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyEducationDatumToJSON( postAtsJobsJobIdApplicationsRequestBodyEducationDatum: PostAtsJobsJobIdApplicationsRequestBodyEducationDatum, @@ -3196,36 +1899,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyEducationDatumToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyEducationDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyEducationDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySkillDatum$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySkillDatum, - z.ZodTypeDef, - unknown - > = z.object({ - Skill_Name: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Skill_Name": "skill_name", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySkillDatum$Outbound = { Skill_Name?: string | undefined; @@ -3242,24 +1915,8 @@ export const PostAtsJobsJobIdApplicationsRequestBodySkillDatum$outboundSchema: }).transform((v) => { return remap$(v, { skill_name: "Skill_Name", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySkillDatum$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySkillDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySkillDatum$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySkillDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySkillDatum$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySkillDatum$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySkillDatum$Outbound; -} + }); + }); export function postAtsJobsJobIdApplicationsRequestBodySkillDatumToJSON( postAtsJobsJobIdApplicationsRequestBodySkillDatum: @@ -3272,36 +1929,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySkillDatumToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySkillDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySkillDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySkillDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySkillDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$Outbound = { @@ -3322,22 +1949,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReferen }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference: PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference, @@ -3350,35 +1961,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageRefe ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$Outbound = { @@ -3399,22 +1981,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference: PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference, @@ -3427,35 +1993,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyRefere ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$Outbound = { @@ -3476,22 +2013,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference: PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference, @@ -3504,41 +2025,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeRefere ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData, - z.ZodTypeDef, - unknown - > = z.object({ - Language_Proficiency_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageProficiencyReference$inboundSchema - ).optional(), - Language_Ability_Type_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityTypeReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Language_Proficiency_Reference": "language_proficiency_reference", - "Language_Ability_Type_Reference": "language_ability_type_reference", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$Outbound = { @@ -3570,22 +2056,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$outbound }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityDataToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData: PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData, @@ -3596,37 +2066,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityDataToJSON ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility, - z.ZodTypeDef, - unknown - > = z.object({ - Language_Ability_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbilityData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Language_Ability_Data": "language_ability_data", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$Outbound = { Language_Ability_Data?: @@ -3650,22 +2089,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$outboundSche }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageAbility: PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility, @@ -3677,41 +2100,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageAbilityFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguage$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguage, - z.ZodTypeDef, - unknown - > = z.object({ - Native: z.boolean().optional(), - Language_Ability: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageAbility$inboundSchema - ), - ), - }).transform((v) => { - return remap$(v, { - "Native": "native", - "Language_Ability": "language_ability", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguage$Outbound = { Native?: boolean | undefined; @@ -3740,22 +2128,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguage$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguage$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguage$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguage$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguage$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguage$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguage$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguage$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguage: PostAtsJobsJobIdApplicationsRequestBodyLanguage, @@ -3767,42 +2139,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguage, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguage$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguage' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum, - z.ZodTypeDef, - unknown - > = z.object({ - Language_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatumLanguageReference$inboundSchema - ).optional(), - Language: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguage$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Language_Reference": "language_reference", - "Language": "language", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$Outbound = { Language_Reference?: @@ -3833,22 +2169,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$outboundSchema }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumToJSON( postAtsJobsJobIdApplicationsRequestBodyLanguageDatum: PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum, @@ -3860,51 +2180,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLanguageDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum, - z.ZodTypeDef, - unknown - > = z.object({ - Company_Name: z.string(), - Title: z.string(), - Location: z.string().optional(), - Start_Date: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ), - End_Date: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), - Currently_Work_Here: z.boolean().optional(), - Description: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Company_Name": "company_name", - "Title": "title", - "Location": "location", - "Start_Date": "start_date", - "End_Date": "end_date", - "Currently_Work_Here": "currently_work_here", - "Description": "description", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$Outbound = { Company_Name: string; @@ -3942,22 +2217,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$outboundSche }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyExperienceDatumToJSON( postAtsJobsJobIdApplicationsRequestBodyExperienceDatum: PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum, @@ -3969,57 +2228,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyExperienceDatumToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyExperienceDatumFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyResumeData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyResumeData, - z.ZodTypeDef, - unknown - > = z.object({ - Education_Data: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyEducationDatum$inboundSchema - ), - ).optional(), - Skill_Data: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySkillDatum$inboundSchema - ), - ).optional(), - Language_Data: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageDatum$inboundSchema - ), - ).optional(), - Experience_Data: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyExperienceDatum$inboundSchema - ), - ).optional(), - }).transform((v) => { - return remap$(v, { - "Education_Data": "education_data", - "Skill_Data": "skill_data", - "Language_Data": "language_data", - "Experience_Data": "experience_data", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyResumeData$Outbound = { Education_Data?: @@ -4072,22 +2280,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyResumeData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyResumeData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyResumeData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyResumeData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyResumeData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyResumeData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyResumeData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyResumeData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyResumeDataToJSON( postAtsJobsJobIdApplicationsRequestBodyResumeData: PostAtsJobsJobIdApplicationsRequestBodyResumeData, @@ -4099,42 +2291,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyResumeDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyResumeDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyResumeData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyResumeData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyResumeData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData, - z.ZodTypeDef, - unknown - > = z.object({ - Job_Applied_To_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyJobAppliedToData$inboundSchema - ).optional(), - Resume_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyResumeData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Job_Applied_To_Data": "job_applied_to_data", - "Resume_Data": "resume_data", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$Outbound = { @@ -4166,22 +2322,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$outboundS }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyJobApplicationDataToJSON( postAtsJobsJobIdApplicationsRequestBodyJobApplicationData: PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData, @@ -4192,35 +2332,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyJobApplicationDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyJobApplicationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference, - z.ZodTypeDef, - unknown - > = z.object({ - Country_Region_ID: z.string(), - }).transform((v) => { - return remap$(v, { - "Country_Region_ID": "country_region_id", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$Outbound = { @@ -4241,22 +2352,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$outbo }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyCountryRegionReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyCountryRegionReference: PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference, @@ -4267,35 +2362,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyCountryRegionReferenceToJ ); } -export function postAtsJobsJobIdApplicationsRequestBodyCountryRegionReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$Outbound = { @@ -4316,72 +2382,15 @@ export const PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$outboun }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyCountryCityReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyCountryCityReference: - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$outboundSchema - .parse(postAtsJobsJobIdApplicationsRequestBodyCountryCityReference), - ); -} - -export function postAtsJobsJobIdApplicationsRequestBodyCountryCityReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyLocationData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyLocationData, - z.ZodTypeDef, - unknown - > = z.object({ - Address_Line_1: z.string().optional(), - Address_Line_2: z.string().optional(), - Region_Subdivision_1: z.string().optional(), - Country_Region_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyCountryRegionReference$inboundSchema - ).optional(), - Country_City_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Address_Line_1": "address_line_1", - "Address_Line_2": "address_line_2", - "Region_Subdivision_1": "region_subdivision_1", - "Country_Region_Reference": "country_region_reference", - "Country_City_Reference": "country_city_reference", - }); - }); + PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference, +): string { + return JSON.stringify( + PostAtsJobsJobIdApplicationsRequestBodyCountryCityReference$outboundSchema + .parse(postAtsJobsJobIdApplicationsRequestBodyCountryCityReference), + ); +} /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyLocationData$Outbound = { @@ -4422,22 +2431,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyLocationData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyLocationData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocationData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLocationData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocationData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyLocationData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyLocationData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyLocationData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyLocationDataToJSON( postAtsJobsJobIdApplicationsRequestBodyLocationData: PostAtsJobsJobIdApplicationsRequestBodyLocationData, @@ -4449,38 +2442,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyLocationDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyLocationDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyLocationData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyLocationData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyLocationData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyContactData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyContactData, - z.ZodTypeDef, - unknown - > = z.object({ - Location_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLocationData$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Location_Data": "location_data", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyContactData$Outbound = { Location_Data?: @@ -4504,22 +2465,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyContactData$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyContactData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyContactData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyContactData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyContactData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyContactData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyContactData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyContactData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyContactDataToJSON( postAtsJobsJobIdApplicationsRequestBodyContactData: PostAtsJobsJobIdApplicationsRequestBodyContactData, @@ -4531,38 +2476,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyContactDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyContactDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyContactData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyContactData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyContactData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference, - z.ZodTypeDef, - unknown - > = z.object({ - WID: z.string().optional(), - Employee_ID: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "WID": "wid", - "Employee_ID": "employee_id", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$Outbound = { WID?: string | undefined; @@ -4585,22 +2498,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$outboundSche }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyWorkerReferenceToJSON( postAtsJobsJobIdApplicationsRequestBodyWorkerReference: PostAtsJobsJobIdApplicationsRequestBodyWorkerReference, @@ -4612,53 +2509,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyWorkerReferenceToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyWorkerReferenceFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyWorkerReference' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyCandidateData$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyCandidateData, - z.ZodTypeDef, - unknown - > = z.object({ - Name_Detail_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyNameDetailData$inboundSchema - ).optional(), - Language_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLanguageReference$inboundSchema - ).optional(), - Job_Application_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyJobApplicationData$inboundSchema - ).optional(), - Contact_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyContactData$inboundSchema - ).optional(), - Worker_Reference: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyWorkerReference$inboundSchema - ).optional(), - }).transform((v) => { - return remap$(v, { - "Name_Detail_Data": "name_detail_data", - "Language_Reference": "language_reference", - "Job_Application_Data": "job_application_data", - "Contact_Data": "contact_data", - "Worker_Reference": "worker_reference", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyCandidateData$Outbound = { Name_Detail_Data?: @@ -4710,22 +2560,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyCandidateData$outboundSchema }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyCandidateData$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidateData$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCandidateData$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidateData$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyCandidateData$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyCandidateData$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyCandidateData$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyCandidateDataToJSON( postAtsJobsJobIdApplicationsRequestBodyCandidateData: PostAtsJobsJobIdApplicationsRequestBodyCandidateData, @@ -4737,40 +2571,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyCandidateDataToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyCandidateDataFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyCandidateData, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyCandidateData$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyCandidateData' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyWorkday$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyWorkday, - z.ZodTypeDef, - unknown - > = z.object({ - Candidate_Data: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyCandidateData$inboundSchema - ).optional(), - Override_Source_Reference_WID: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "Candidate_Data": "candidate_data", - "Override_Source_Reference_WID": "override_source_reference_wid", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyWorkday$Outbound = { Candidate_Data?: @@ -4797,22 +2597,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyWorkday$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyWorkday$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkday$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkday$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkday$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkday$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkday$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyWorkday$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyWorkdayToJSON( postAtsJobsJobIdApplicationsRequestBodyWorkday: PostAtsJobsJobIdApplicationsRequestBodyWorkday, @@ -4824,32 +2608,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyWorkdayToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyWorkdayFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyWorkday, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyWorkday$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyWorkday' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -4865,22 +2623,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$outboundSchema: candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyZohorecruitToJSON( postAtsJobsJobIdApplicationsRequestBodyZohorecruit: PostAtsJobsJobIdApplicationsRequestBodyZohorecruit, @@ -4892,33 +2634,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyZohorecruitToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyZohorecruitFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyZohorecruit' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyBullhorn$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyBullhorn, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.record(z.any()).optional(), - job_submission: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyBullhorn$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -4936,22 +2651,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyBullhorn$outboundSchema: job_submission: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyBullhorn$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyBullhorn$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyBullhorn$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyBullhorn$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyBullhorn$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyBullhorn$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyBullhorn$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyBullhornToJSON( postAtsJobsJobIdApplicationsRequestBodyBullhorn: PostAtsJobsJobIdApplicationsRequestBodyBullhorn, @@ -4963,34 +2662,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyBullhornToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyBullhornFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyBullhorn, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyBullhorn$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyBullhorn' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters, - z.ZodTypeDef, - unknown - > = z.object({ - candidate_with_questions: z.record(z.any()).optional(), - candidate_without_questions: z.record(z.any()).optional(), - candidate: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$Outbound = { candidate_with_questions?: { [k: string]: any } | undefined; @@ -5010,22 +2681,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$outboundSche candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodySmartrecruitersToJSON( postAtsJobsJobIdApplicationsRequestBodySmartrecruiters: PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters, @@ -5037,31 +2692,6 @@ export function postAtsJobsJobIdApplicationsRequestBodySmartrecruitersToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodySmartrecruitersFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyTalentadore$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyTalentadore, - z.ZodTypeDef, - unknown - > = z.object({ - applications: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyTalentadore$Outbound = { applications?: { [k: string]: any } | undefined; @@ -5077,22 +2707,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyTalentadore$outboundSchema: applications: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyTalentadore$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentadore$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTalentadore$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentadore$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyTalentadore$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyTalentadore$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyTalentadore$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyTalentadoreToJSON( postAtsJobsJobIdApplicationsRequestBodyTalentadore: PostAtsJobsJobIdApplicationsRequestBodyTalentadore, @@ -5104,32 +2718,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyTalentadoreToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyTalentadoreFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyTalentadore, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyTalentadore$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyTalentadore' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyGuidecom$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyGuidecom, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyGuidecom$Outbound = { candidate?: { [k: string]: any } | undefined; @@ -5145,22 +2733,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyGuidecom$outboundSchema: candidate: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyGuidecom$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGuidecom$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGuidecom$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGuidecom$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyGuidecom$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyGuidecom$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyGuidecom$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyGuidecomToJSON( postAtsJobsJobIdApplicationsRequestBodyGuidecom: PostAtsJobsJobIdApplicationsRequestBodyGuidecom, @@ -5172,32 +2744,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyGuidecomToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyGuidecomFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyGuidecom, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyGuidecom$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyGuidecom' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyDvinci$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyDvinci, - z.ZodTypeDef, - unknown - > = z.object({ - application: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyDvinci$Outbound = { application?: { [k: string]: any } | undefined; @@ -5213,21 +2759,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyDvinci$outboundSchema: application: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyDvinci$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDvinci$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyDvinci$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDvinci$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyDvinci$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyDvinci$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBodyDvinci$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyDvinciToJSON( postAtsJobsJobIdApplicationsRequestBodyDvinci: PostAtsJobsJobIdApplicationsRequestBodyDvinci, @@ -5239,36 +2770,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyDvinciToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyDvinciFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyDvinci, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyDvinci$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyDvinci' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyHrworks$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyHrworks, - z.ZodTypeDef, - unknown - > = z.object({ - jobApplication: z.record(z.any()).optional(), - }).transform((v) => { - return remap$(v, { - "jobApplication": "job_application", - }); - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyHrworks$Outbound = { jobApplication?: { [k: string]: any } | undefined; @@ -5288,22 +2789,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyHrworks$outboundSchema: }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyHrworks$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyHrworks$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyHrworks$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyHrworks$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyHrworks$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyHrworks$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyHrworks$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyHrworksToJSON( postAtsJobsJobIdApplicationsRequestBodyHrworks: PostAtsJobsJobIdApplicationsRequestBodyHrworks, @@ -5315,32 +2800,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyHrworksToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyHrworksFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyHrworks, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyHrworks$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyHrworks' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication, - z.ZodTypeDef, - unknown - > = z.object({ - message: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$Outbound = { @@ -5357,22 +2816,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$outboundS message: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyJobylonApplicationToJSON( postAtsJobsJobIdApplicationsRequestBodyJobylonApplication: PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication, @@ -5383,33 +2826,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyJobylonApplicationToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyJobylonApplicationFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyJobylon$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyJobylon, - z.ZodTypeDef, - unknown - > = z.object({ - application: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyJobylonApplication$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyJobylon$Outbound = { application?: @@ -5429,58 +2845,16 @@ export const PostAtsJobsJobIdApplicationsRequestBodyJobylon$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyJobylon$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylon$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobylon$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylon$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyJobylon$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyJobylon$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyJobylon$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyJobylonToJSON( postAtsJobsJobIdApplicationsRequestBodyJobylon: PostAtsJobsJobIdApplicationsRequestBodyJobylon, -): string { - return JSON.stringify( - PostAtsJobsJobIdApplicationsRequestBodyJobylon$outboundSchema.parse( - postAtsJobsJobIdApplicationsRequestBodyJobylon, - ), - ); -} - -export function postAtsJobsJobIdApplicationsRequestBodyJobylonFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyJobylon, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyJobylon$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyJobylon' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyStep$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyStep, - z.ZodTypeDef, - unknown - > = z.object({ - id: z.number().int(), - }); +): string { + return JSON.stringify( + PostAtsJobsJobIdApplicationsRequestBodyJobylon$outboundSchema.parse( + postAtsJobsJobIdApplicationsRequestBodyJobylon, + ), + ); +} /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyStep$Outbound = { @@ -5497,21 +2871,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyStep$outboundSchema: id: z.number().int(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyStep$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyStep$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyStep$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyStep$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyStep$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyStep$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBodyStep$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyStepToJSON( postAtsJobsJobIdApplicationsRequestBodyStep: PostAtsJobsJobIdApplicationsRequestBodyStep, @@ -5523,34 +2882,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyStepToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyStepFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyStep, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyStep$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyStep' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyWorkflow$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyWorkflow, - z.ZodTypeDef, - unknown - > = z.object({ - step: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyStep$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyWorkflow$Outbound = { step?: PostAtsJobsJobIdApplicationsRequestBodyStep$Outbound | undefined; @@ -5568,22 +2899,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyWorkflow$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyWorkflow$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkflow$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkflow$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkflow$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyWorkflow$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyWorkflow$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyWorkflow$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyWorkflowToJSON( postAtsJobsJobIdApplicationsRequestBodyWorkflow: PostAtsJobsJobIdApplicationsRequestBodyWorkflow, @@ -5595,34 +2910,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyWorkflowToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyWorkflowFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyWorkflow, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyWorkflow$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyWorkflow' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAvature$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAvature, - z.ZodTypeDef, - unknown - > = z.object({ - workflow: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyWorkflow$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAvature$Outbound = { workflow?: @@ -5642,22 +2929,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAvature$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAvature$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAvature$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAvature$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAvature$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAvature$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAvature$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyAvature$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAvatureToJSON( postAtsJobsJobIdApplicationsRequestBodyAvature: PostAtsJobsJobIdApplicationsRequestBodyAvature, @@ -5669,32 +2940,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyAvatureToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyAvatureFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAvature, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAvature$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAvature' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate, - z.ZodTypeDef, - unknown - > = z.object({ - cover_letter_text: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$Outbound = { @@ -5711,22 +2956,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$outboundS cover_letter_text: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidateToJSON( postAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate: PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate, @@ -5737,33 +2966,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidateToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidateFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyRecruitee$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyRecruitee, - z.ZodTypeDef, - unknown - > = z.object({ - candidate: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyRecruiteeCandidate$inboundSchema - ).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyRecruitee$Outbound = { candidate?: @@ -5783,22 +2985,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyRecruitee$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyRecruitee$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruitee$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRecruitee$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruitee$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRecruitee$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRecruitee$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyRecruitee$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeToJSON( postAtsJobsJobIdApplicationsRequestBodyRecruitee: PostAtsJobsJobIdApplicationsRequestBodyRecruitee, @@ -5810,32 +2996,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyRecruiteeFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyRecruitee, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyRecruitee$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyRecruitee' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyUmantis$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyUmantis, - z.ZodTypeDef, - unknown - > = z.object({ - person: z.record(z.any()).optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyUmantis$Outbound = { person?: { [k: string]: any } | undefined; @@ -5851,22 +3011,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyUmantis$outboundSchema: person: z.record(z.any()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyUmantis$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyUmantis$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyUmantis$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyUmantis$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyUmantis$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyUmantis$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyUmantis$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyUmantisToJSON( postAtsJobsJobIdApplicationsRequestBodyUmantis: PostAtsJobsJobIdApplicationsRequestBodyUmantis, @@ -5878,88 +3022,62 @@ export function postAtsJobsJobIdApplicationsRequestBodyUmantisToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyUmantisFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyUmantis, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyUmantis$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyUmantis' from JSON`, +/** @internal */ +export type PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$Outbound = { + street?: string | undefined; +}; + +/** @internal */ +export const PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$outboundSchema: + z.ZodType< + PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$Outbound, + z.ZodTypeDef, + PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate + > = z.object({ + street: z.string().optional(), + }); + +export function postAtsJobsJobIdApplicationsRequestBodyPilogaCandidateToJSON( + postAtsJobsJobIdApplicationsRequestBodyPilogaCandidate: + PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate, +): string { + return JSON.stringify( + PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$outboundSchema.parse( + postAtsJobsJobIdApplicationsRequestBodyPilogaCandidate, + ), ); } /** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$inboundSchema: +export type PostAtsJobsJobIdApplicationsRequestBodyPiloga$Outbound = { + candidate?: + | PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$Outbound + | undefined; +}; + +/** @internal */ +export const PostAtsJobsJobIdApplicationsRequestBodyPiloga$outboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields, + PostAtsJobsJobIdApplicationsRequestBodyPiloga$Outbound, z.ZodTypeDef, - unknown + PostAtsJobsJobIdApplicationsRequestBodyPiloga > = z.object({ - successfactors: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySuccessfactors$inboundSchema - ).optional(), - personio: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyPersonio$inboundSchema - ).optional(), - talentsoft: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyTalentsoft$inboundSchema - ).optional(), - teamtailor: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyTeamtailor$inboundSchema - ).optional(), - greenhouse: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyGreenhouse$inboundSchema - ).optional(), - lever: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyLever$inboundSchema - ).optional(), - workable: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyWorkable$inboundSchema - ).optional(), - workday: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyWorkday$inboundSchema - ).optional(), - zohorecruit: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyZohorecruit$inboundSchema - ).optional(), - bullhorn: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyBullhorn$inboundSchema - ).optional(), - smartrecruiters: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySmartrecruiters$inboundSchema - ).optional(), - talentadore: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyTalentadore$inboundSchema - ).optional(), - guidecom: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyGuidecom$inboundSchema - ).optional(), - dvinci: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyDvinci$inboundSchema - ).optional(), - hrworks: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyHrworks$inboundSchema - ).optional(), - jobylon: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyJobylon$inboundSchema - ).optional(), - avature: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyAvature$inboundSchema - ).optional(), - recruitee: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyRecruitee$inboundSchema - ).optional(), - umantis: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyUmantis$inboundSchema + candidate: z.lazy(() => + PostAtsJobsJobIdApplicationsRequestBodyPilogaCandidate$outboundSchema ).optional(), }); +export function postAtsJobsJobIdApplicationsRequestBodyPilogaToJSON( + postAtsJobsJobIdApplicationsRequestBodyPiloga: + PostAtsJobsJobIdApplicationsRequestBodyPiloga, +): string { + return JSON.stringify( + PostAtsJobsJobIdApplicationsRequestBodyPiloga$outboundSchema.parse( + postAtsJobsJobIdApplicationsRequestBodyPiloga, + ), + ); +} + /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$Outbound = { successfactors?: @@ -6005,6 +3123,7 @@ export type PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$Outbound = { | PostAtsJobsJobIdApplicationsRequestBodyRecruitee$Outbound | undefined; umantis?: PostAtsJobsJobIdApplicationsRequestBodyUmantis$Outbound | undefined; + piloga?: PostAtsJobsJobIdApplicationsRequestBodyPiloga$Outbound | undefined; }; /** @internal */ @@ -6071,24 +3190,11 @@ export const PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$outboundSchema: umantis: z.lazy(() => PostAtsJobsJobIdApplicationsRequestBodyUmantis$outboundSchema ).optional(), + piloga: z.lazy(() => + PostAtsJobsJobIdApplicationsRequestBodyPiloga$outboundSchema + ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyRemoteFieldsToJSON( postAtsJobsJobIdApplicationsRequestBodyRemoteFields: PostAtsJobsJobIdApplicationsRequestBodyRemoteFields, @@ -6100,35 +3206,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyRemoteFieldsToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAnswer, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAnswer$Outbound = { name: string; @@ -6150,21 +3227,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAnswer$outboundSchema: data: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAnswer$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswer$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAnswer$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswer$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBodyAnswer$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAnswerToJSON( postAtsJobsJobIdApplicationsRequestBodyAnswer: PostAtsJobsJobIdApplicationsRequestBodyAnswer, @@ -6176,37 +3238,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyAnswerToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyAnswerFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAnswer, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAnswer' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion, - z.ZodTypeDef, - unknown - > = z.union([ - z.lazy(() => PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema), - z.string(), - z.boolean(), - z.number(), - z.array(z.string()), - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ]); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$Outbound = | PostAtsJobsJobIdApplicationsRequestBodyAnswer$Outbound @@ -6231,22 +3262,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$outboundSchema: z.date().transform(v => v.toISOString()), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyAnswerUnionToJSON( postAtsJobsJobIdApplicationsRequestBodyAnswerUnion: PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion, @@ -6258,40 +3273,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyAnswerUnionToJSON( ); } -export function postAtsJobsJobIdApplicationsRequestBodyAnswerUnionFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyAnswerUnion' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$inboundSchema: - z.ZodType< - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer, - z.ZodTypeDef, - unknown - > = z.object({ - question_id: z.string(), - answer: z.union([ - z.lazy(() => PostAtsJobsJobIdApplicationsRequestBodyAnswer$inboundSchema), - z.string(), - z.boolean(), - z.number(), - z.array(z.string()), - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ]), - }); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$Outbound = { @@ -6325,22 +3306,6 @@ export const PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$outb ]), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$Outbound` instead. */ - export type Outbound = - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswerToJSON( postAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer: PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer, @@ -6351,55 +3316,6 @@ export function postAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswerTo ); } -export function postAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswerFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer' from JSON`, - ); -} - -/** @internal */ -export const PostAtsJobsJobIdApplicationsRequestBody$inboundSchema: z.ZodType< - PostAtsJobsJobIdApplicationsRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - stage_id: z.string().optional(), - candidate: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyCandidate$inboundSchema - ), - attachments: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyAttachment$inboundSchema - ), - ).optional(), - source: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySource$inboundSchema - ).optional(), - sourced_by: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodySourcedBy$inboundSchema - ).optional(), - gdpr_consent: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyGdprConsent$inboundSchema - ).optional(), - remote_fields: z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyRemoteFields$inboundSchema - ).optional(), - screening_question_answers: z.array( - z.lazy(() => - PostAtsJobsJobIdApplicationsRequestBodyScreeningQuestionAnswer$inboundSchema - ), - ).optional(), -}); - /** @internal */ export type PostAtsJobsJobIdApplicationsRequestBody$Outbound = { stage_id?: string | undefined; @@ -6458,21 +3374,6 @@ export const PostAtsJobsJobIdApplicationsRequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostAtsJobsJobIdApplicationsRequestBody$ { - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostAtsJobsJobIdApplicationsRequestBody$inboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostAtsJobsJobIdApplicationsRequestBody$outboundSchema; - /** @deprecated use `PostAtsJobsJobIdApplicationsRequestBody$Outbound` instead. */ - export type Outbound = PostAtsJobsJobIdApplicationsRequestBody$Outbound; -} - export function postAtsJobsJobIdApplicationsRequestBodyToJSON( postAtsJobsJobIdApplicationsRequestBody: PostAtsJobsJobIdApplicationsRequestBody, @@ -6483,19 +3384,3 @@ export function postAtsJobsJobIdApplicationsRequestBodyToJSON( ), ); } - -export function postAtsJobsJobIdApplicationsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostAtsJobsJobIdApplicationsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostAtsJobsJobIdApplicationsRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostAtsJobsJobIdApplicationsRequestBody' from JSON`, - ); -} diff --git a/src/models/postconnectcreatelinkpositiveresponse.ts b/src/models/postconnectcreatelinkpositiveresponse.ts index 62f415c..0cfa81b 100644 --- a/src/models/postconnectcreatelinkpositiveresponse.ts +++ b/src/models/postconnectcreatelinkpositiveresponse.ts @@ -25,47 +25,6 @@ export const PostConnectCreateLinkPositiveResponseData$inboundSchema: z.ZodType< link: z.string(), }); -/** @internal */ -export type PostConnectCreateLinkPositiveResponseData$Outbound = { - link: string; -}; - -/** @internal */ -export const PostConnectCreateLinkPositiveResponseData$outboundSchema: - z.ZodType< - PostConnectCreateLinkPositiveResponseData$Outbound, - z.ZodTypeDef, - PostConnectCreateLinkPositiveResponseData - > = z.object({ - link: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkPositiveResponseData$ { - /** @deprecated use `PostConnectCreateLinkPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostConnectCreateLinkPositiveResponseData$inboundSchema; - /** @deprecated use `PostConnectCreateLinkPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostConnectCreateLinkPositiveResponseData$outboundSchema; - /** @deprecated use `PostConnectCreateLinkPositiveResponseData$Outbound` instead. */ - export type Outbound = PostConnectCreateLinkPositiveResponseData$Outbound; -} - -export function postConnectCreateLinkPositiveResponseDataToJSON( - postConnectCreateLinkPositiveResponseData: - PostConnectCreateLinkPositiveResponseData, -): string { - return JSON.stringify( - PostConnectCreateLinkPositiveResponseData$outboundSchema.parse( - postConnectCreateLinkPositiveResponseData, - ), - ); -} - export function postConnectCreateLinkPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -92,47 +51,6 @@ export const PostConnectCreateLinkPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => PostConnectCreateLinkPositiveResponseData$inboundSchema), }); -/** @internal */ -export type PostConnectCreateLinkPositiveResponse$Outbound = { - status: "success"; - data: PostConnectCreateLinkPositiveResponseData$Outbound; -}; - -/** @internal */ -export const PostConnectCreateLinkPositiveResponse$outboundSchema: z.ZodType< - PostConnectCreateLinkPositiveResponse$Outbound, - z.ZodTypeDef, - PostConnectCreateLinkPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostConnectCreateLinkPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkPositiveResponse$ { - /** @deprecated use `PostConnectCreateLinkPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostConnectCreateLinkPositiveResponse$inboundSchema; - /** @deprecated use `PostConnectCreateLinkPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostConnectCreateLinkPositiveResponse$outboundSchema; - /** @deprecated use `PostConnectCreateLinkPositiveResponse$Outbound` instead. */ - export type Outbound = PostConnectCreateLinkPositiveResponse$Outbound; -} - -export function postConnectCreateLinkPositiveResponseToJSON( - postConnectCreateLinkPositiveResponse: PostConnectCreateLinkPositiveResponse, -): string { - return JSON.stringify( - PostConnectCreateLinkPositiveResponse$outboundSchema.parse( - postConnectCreateLinkPositiveResponse, - ), - ); -} - export function postConnectCreateLinkPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/postconnectcreatelinkrequestbody.ts b/src/models/postconnectcreatelinkrequestbody.ts index c989644..a314c67 100644 --- a/src/models/postconnectcreatelinkrequestbody.ts +++ b/src/models/postconnectcreatelinkrequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Category of the integration you want your customer to create. @@ -291,122 +288,26 @@ export type PostConnectCreateLinkRequestBody = { link_type?: PostConnectCreateLinkRequestBodyLinkType | undefined; }; -/** @internal */ -export const PostConnectCreateLinkRequestBodyIntegrationCategory$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(PostConnectCreateLinkRequestBodyIntegrationCategory); - /** @internal */ export const PostConnectCreateLinkRequestBodyIntegrationCategory$outboundSchema: z.ZodNativeEnum = - PostConnectCreateLinkRequestBodyIntegrationCategory$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkRequestBodyIntegrationCategory$ { - /** @deprecated use `PostConnectCreateLinkRequestBodyIntegrationCategory$inboundSchema` instead. */ - export const inboundSchema = - PostConnectCreateLinkRequestBodyIntegrationCategory$inboundSchema; - /** @deprecated use `PostConnectCreateLinkRequestBodyIntegrationCategory$outboundSchema` instead. */ - export const outboundSchema = - PostConnectCreateLinkRequestBodyIntegrationCategory$outboundSchema; -} - -/** @internal */ -export const IntegrationTool$inboundSchema: z.ZodNativeEnum< - typeof IntegrationTool -> = z.nativeEnum(IntegrationTool); + z.nativeEnum(PostConnectCreateLinkRequestBodyIntegrationCategory); /** @internal */ export const IntegrationTool$outboundSchema: z.ZodNativeEnum< typeof IntegrationTool -> = IntegrationTool$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IntegrationTool$ { - /** @deprecated use `IntegrationTool$inboundSchema` instead. */ - export const inboundSchema = IntegrationTool$inboundSchema; - /** @deprecated use `IntegrationTool$outboundSchema` instead. */ - export const outboundSchema = IntegrationTool$outboundSchema; -} +> = z.nativeEnum(IntegrationTool); /** @internal */ -export const PostConnectCreateLinkRequestBodyLanguage$inboundSchema: +export const PostConnectCreateLinkRequestBodyLanguage$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostConnectCreateLinkRequestBodyLanguage); /** @internal */ -export const PostConnectCreateLinkRequestBodyLanguage$outboundSchema: - z.ZodNativeEnum = - PostConnectCreateLinkRequestBodyLanguage$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkRequestBodyLanguage$ { - /** @deprecated use `PostConnectCreateLinkRequestBodyLanguage$inboundSchema` instead. */ - export const inboundSchema = - PostConnectCreateLinkRequestBodyLanguage$inboundSchema; - /** @deprecated use `PostConnectCreateLinkRequestBodyLanguage$outboundSchema` instead. */ - export const outboundSchema = - PostConnectCreateLinkRequestBodyLanguage$outboundSchema; -} - -/** @internal */ -export const PostConnectCreateLinkRequestBodyLinkType$inboundSchema: +export const PostConnectCreateLinkRequestBodyLinkType$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PostConnectCreateLinkRequestBodyLinkType); -/** @internal */ -export const PostConnectCreateLinkRequestBodyLinkType$outboundSchema: - z.ZodNativeEnum = - PostConnectCreateLinkRequestBodyLinkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkRequestBodyLinkType$ { - /** @deprecated use `PostConnectCreateLinkRequestBodyLinkType$inboundSchema` instead. */ - export const inboundSchema = - PostConnectCreateLinkRequestBodyLinkType$inboundSchema; - /** @deprecated use `PostConnectCreateLinkRequestBodyLinkType$outboundSchema` instead. */ - export const outboundSchema = - PostConnectCreateLinkRequestBodyLinkType$outboundSchema; -} - -/** @internal */ -export const PostConnectCreateLinkRequestBody$inboundSchema: z.ZodType< - PostConnectCreateLinkRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - end_user_email: z.string(), - end_user_organization_name: z.string(), - end_user_origin_id: z.nullable(z.string()).optional(), - remote_environment: z.nullable(z.string()).optional(), - integration_category: - PostConnectCreateLinkRequestBodyIntegrationCategory$inboundSchema.default( - "HRIS", - ), - integration_tool: z.nullable(IntegrationTool$inboundSchema).optional(), - language: z.nullable( - PostConnectCreateLinkRequestBodyLanguage$inboundSchema.default("en"), - ), - scope_config_id: z.nullable(z.string()).optional(), - enable_filtering: z.boolean().default(false), - enable_field_mapping: z.boolean().default(false), - link_type: PostConnectCreateLinkRequestBodyLinkType$inboundSchema.default( - "EMBEDDED", - ), -}); - /** @internal */ export type PostConnectCreateLinkRequestBody$Outbound = { end_user_email: string; @@ -448,19 +349,6 @@ export const PostConnectCreateLinkRequestBody$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostConnectCreateLinkRequestBody$ { - /** @deprecated use `PostConnectCreateLinkRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostConnectCreateLinkRequestBody$inboundSchema; - /** @deprecated use `PostConnectCreateLinkRequestBody$outboundSchema` instead. */ - export const outboundSchema = PostConnectCreateLinkRequestBody$outboundSchema; - /** @deprecated use `PostConnectCreateLinkRequestBody$Outbound` instead. */ - export type Outbound = PostConnectCreateLinkRequestBody$Outbound; -} - export function postConnectCreateLinkRequestBodyToJSON( postConnectCreateLinkRequestBody: PostConnectCreateLinkRequestBody, ): string { @@ -470,13 +358,3 @@ export function postConnectCreateLinkRequestBodyToJSON( ), ); } - -export function postConnectCreateLinkRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostConnectCreateLinkRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostConnectCreateLinkRequestBody' from JSON`, - ); -} diff --git a/src/models/postforcesyncpositiveresponse.ts b/src/models/postforcesyncpositiveresponse.ts index 8f25729..abdec53 100644 --- a/src/models/postforcesyncpositiveresponse.ts +++ b/src/models/postforcesyncpositiveresponse.ts @@ -47,23 +47,6 @@ export const PostForceSyncPositiveResponseType$inboundSchema: z.ZodNativeEnum< typeof PostForceSyncPositiveResponseType > = z.nativeEnum(PostForceSyncPositiveResponseType); -/** @internal */ -export const PostForceSyncPositiveResponseType$outboundSchema: z.ZodNativeEnum< - typeof PostForceSyncPositiveResponseType -> = PostForceSyncPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncPositiveResponseType$ { - /** @deprecated use `PostForceSyncPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncPositiveResponseType$inboundSchema; - /** @deprecated use `PostForceSyncPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - PostForceSyncPositiveResponseType$outboundSchema; -} - /** @internal */ export const PostForceSyncPositiveResponseData$inboundSchema: z.ZodType< PostForceSyncPositiveResponseData, @@ -75,48 +58,6 @@ export const PostForceSyncPositiveResponseData$inboundSchema: z.ZodType< type: PostForceSyncPositiveResponseType$inboundSchema, }); -/** @internal */ -export type PostForceSyncPositiveResponseData$Outbound = { - already_queued: boolean; - sync_id: string; - type: string; -}; - -/** @internal */ -export const PostForceSyncPositiveResponseData$outboundSchema: z.ZodType< - PostForceSyncPositiveResponseData$Outbound, - z.ZodTypeDef, - PostForceSyncPositiveResponseData -> = z.object({ - already_queued: z.boolean(), - sync_id: z.string(), - type: PostForceSyncPositiveResponseType$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncPositiveResponseData$ { - /** @deprecated use `PostForceSyncPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncPositiveResponseData$inboundSchema; - /** @deprecated use `PostForceSyncPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostForceSyncPositiveResponseData$outboundSchema; - /** @deprecated use `PostForceSyncPositiveResponseData$Outbound` instead. */ - export type Outbound = PostForceSyncPositiveResponseData$Outbound; -} - -export function postForceSyncPositiveResponseDataToJSON( - postForceSyncPositiveResponseData: PostForceSyncPositiveResponseData, -): string { - return JSON.stringify( - PostForceSyncPositiveResponseData$outboundSchema.parse( - postForceSyncPositiveResponseData, - ), - ); -} - export function postForceSyncPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -137,45 +78,6 @@ export const PostForceSyncPositiveResponse$inboundSchema: z.ZodType< data: z.lazy(() => PostForceSyncPositiveResponseData$inboundSchema), }); -/** @internal */ -export type PostForceSyncPositiveResponse$Outbound = { - status: "success"; - data: PostForceSyncPositiveResponseData$Outbound; -}; - -/** @internal */ -export const PostForceSyncPositiveResponse$outboundSchema: z.ZodType< - PostForceSyncPositiveResponse$Outbound, - z.ZodTypeDef, - PostForceSyncPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostForceSyncPositiveResponseData$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncPositiveResponse$ { - /** @deprecated use `PostForceSyncPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncPositiveResponse$inboundSchema; - /** @deprecated use `PostForceSyncPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = PostForceSyncPositiveResponse$outboundSchema; - /** @deprecated use `PostForceSyncPositiveResponse$Outbound` instead. */ - export type Outbound = PostForceSyncPositiveResponse$Outbound; -} - -export function postForceSyncPositiveResponseToJSON( - postForceSyncPositiveResponse: PostForceSyncPositiveResponse, -): string { - return JSON.stringify( - PostForceSyncPositiveResponse$outboundSchema.parse( - postForceSyncPositiveResponse, - ), - ); -} - export function postForceSyncPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/postforcesyncrequestbody.ts b/src/models/postforcesyncrequestbody.ts index 989fb76..228e459 100644 --- a/src/models/postforcesyncrequestbody.ts +++ b/src/models/postforcesyncrequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * The type of the triggered sync. @@ -29,35 +26,10 @@ export type PostForceSyncRequestBody = { type?: PostForceSyncRequestBodyType | undefined; }; -/** @internal */ -export const PostForceSyncRequestBodyType$inboundSchema: z.ZodNativeEnum< - typeof PostForceSyncRequestBodyType -> = z.nativeEnum(PostForceSyncRequestBodyType); - /** @internal */ export const PostForceSyncRequestBodyType$outboundSchema: z.ZodNativeEnum< typeof PostForceSyncRequestBodyType -> = PostForceSyncRequestBodyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncRequestBodyType$ { - /** @deprecated use `PostForceSyncRequestBodyType$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncRequestBodyType$inboundSchema; - /** @deprecated use `PostForceSyncRequestBodyType$outboundSchema` instead. */ - export const outboundSchema = PostForceSyncRequestBodyType$outboundSchema; -} - -/** @internal */ -export const PostForceSyncRequestBody$inboundSchema: z.ZodType< - PostForceSyncRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - type: PostForceSyncRequestBodyType$inboundSchema.default("FULL"), -}); +> = z.nativeEnum(PostForceSyncRequestBodyType); /** @internal */ export type PostForceSyncRequestBody$Outbound = { @@ -73,19 +45,6 @@ export const PostForceSyncRequestBody$outboundSchema: z.ZodType< type: PostForceSyncRequestBodyType$outboundSchema.default("FULL"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostForceSyncRequestBody$ { - /** @deprecated use `PostForceSyncRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostForceSyncRequestBody$inboundSchema; - /** @deprecated use `PostForceSyncRequestBody$outboundSchema` instead. */ - export const outboundSchema = PostForceSyncRequestBody$outboundSchema; - /** @deprecated use `PostForceSyncRequestBody$Outbound` instead. */ - export type Outbound = PostForceSyncRequestBody$Outbound; -} - export function postForceSyncRequestBodyToJSON( postForceSyncRequestBody: PostForceSyncRequestBody, ): string { @@ -93,13 +52,3 @@ export function postForceSyncRequestBodyToJSON( PostForceSyncRequestBody$outboundSchema.parse(postForceSyncRequestBody), ); } - -export function postForceSyncRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostForceSyncRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostForceSyncRequestBody' from JSON`, - ); -} diff --git a/src/models/posthrisabsencespositiveresponse.ts b/src/models/posthrisabsencespositiveresponse.ts index b7b7b0a..15cce59 100644 --- a/src/models/posthrisabsencespositiveresponse.ts +++ b/src/models/posthrisabsencespositiveresponse.ts @@ -4,12 +4,7 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; -import { - catchUnrecognizedEnum, - ClosedEnum, - OpenEnum, - Unrecognized, -} from "../types/enums.js"; +import { catchUnrecognizedEnum, ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; @@ -124,24 +119,6 @@ export const PostHrisAbsencesPositiveResponseUnit$inboundSchema: PostHrisAbsencesPositiveResponseUnit, ); -/** @internal */ -export const PostHrisAbsencesPositiveResponseUnit$outboundSchema: - z.ZodNativeEnum = - PostHrisAbsencesPositiveResponseUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesPositiveResponseUnit$ { - /** @deprecated use `PostHrisAbsencesPositiveResponseUnit$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesPositiveResponseUnit$inboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseUnit$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesPositiveResponseUnit$outboundSchema; -} - /** @internal */ export const PostHrisAbsencesPositiveResponseStatus$inboundSchema: z.ZodType< PostHrisAbsencesPositiveResponseStatus, @@ -153,29 +130,6 @@ export const PostHrisAbsencesPositiveResponseStatus$inboundSchema: z.ZodType< z.string().transform(catchUnrecognizedEnum), ]); -/** @internal */ -export const PostHrisAbsencesPositiveResponseStatus$outboundSchema: z.ZodType< - PostHrisAbsencesPositiveResponseStatus, - z.ZodTypeDef, - PostHrisAbsencesPositiveResponseStatus -> = z.union([ - z.nativeEnum(PostHrisAbsencesPositiveResponseStatus), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesPositiveResponseStatus$ { - /** @deprecated use `PostHrisAbsencesPositiveResponseStatus$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesPositiveResponseStatus$inboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseStatus$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesPositiveResponseStatus$outboundSchema; -} - /** @internal */ export const PostHrisAbsencesPositiveResponseData$inboundSchema: z.ZodType< PostHrisAbsencesPositiveResponseData, @@ -203,76 +157,6 @@ export const PostHrisAbsencesPositiveResponseData$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostHrisAbsencesPositiveResponseData$Outbound = { - id: string; - remote_id: string | null; - employee_id: string; - start_date?: any | null | undefined; - end_date?: any | null | undefined; - start_half_day: boolean | null; - end_half_day: boolean | null; - start_time?: any | null | undefined; - end_time?: any | null | undefined; - amount: number | null; - unit: string | null; - status?: string | null | undefined; - employee_note: string | null; - type_id: string | null; - changed_at: string; - remote_deleted_at: string | null; -}; - -/** @internal */ -export const PostHrisAbsencesPositiveResponseData$outboundSchema: z.ZodType< - PostHrisAbsencesPositiveResponseData$Outbound, - z.ZodTypeDef, - PostHrisAbsencesPositiveResponseData -> = z.object({ - id: z.string(), - remote_id: z.nullable(z.string()), - employee_id: z.string(), - start_date: z.nullable(z.any()).optional(), - end_date: z.nullable(z.any()).optional(), - start_half_day: z.nullable(z.boolean()), - end_half_day: z.nullable(z.boolean()), - start_time: z.nullable(z.any()).optional(), - end_time: z.nullable(z.any()).optional(), - amount: z.nullable(z.number()), - unit: z.nullable(PostHrisAbsencesPositiveResponseUnit$outboundSchema), - status: z.nullable(PostHrisAbsencesPositiveResponseStatus$outboundSchema) - .optional(), - employee_note: z.nullable(z.string()), - type_id: z.nullable(z.string()), - changed_at: z.date().transform(v => v.toISOString()), - remote_deleted_at: z.nullable(z.date().transform(v => v.toISOString())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesPositiveResponseData$ { - /** @deprecated use `PostHrisAbsencesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesPositiveResponseData$inboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesPositiveResponseData$outboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseData$Outbound` instead. */ - export type Outbound = PostHrisAbsencesPositiveResponseData$Outbound; -} - -export function postHrisAbsencesPositiveResponseDataToJSON( - postHrisAbsencesPositiveResponseData: PostHrisAbsencesPositiveResponseData, -): string { - return JSON.stringify( - PostHrisAbsencesPositiveResponseData$outboundSchema.parse( - postHrisAbsencesPositiveResponseData, - ), - ); -} - export function postHrisAbsencesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult { @@ -293,46 +177,6 @@ export const PostHrisAbsencesPositiveResponseWarning$inboundSchema: z.ZodType< message: z.string(), }); -/** @internal */ -export type PostHrisAbsencesPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostHrisAbsencesPositiveResponseWarning$outboundSchema: z.ZodType< - PostHrisAbsencesPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostHrisAbsencesPositiveResponseWarning -> = z.object({ - message: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesPositiveResponseWarning$ { - /** @deprecated use `PostHrisAbsencesPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponseWarning$Outbound` instead. */ - export type Outbound = PostHrisAbsencesPositiveResponseWarning$Outbound; -} - -export function postHrisAbsencesPositiveResponseWarningToJSON( - postHrisAbsencesPositiveResponseWarning: - PostHrisAbsencesPositiveResponseWarning, -): string { - return JSON.stringify( - PostHrisAbsencesPositiveResponseWarning$outboundSchema.parse( - postHrisAbsencesPositiveResponseWarning, - ), - ); -} - export function postHrisAbsencesPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -362,49 +206,6 @@ export const PostHrisAbsencesPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostHrisAbsencesPositiveResponse$Outbound = { - status: "success"; - data: PostHrisAbsencesPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PostHrisAbsencesPositiveResponse$outboundSchema: z.ZodType< - PostHrisAbsencesPositiveResponse$Outbound, - z.ZodTypeDef, - PostHrisAbsencesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostHrisAbsencesPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => PostHrisAbsencesPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesPositiveResponse$ { - /** @deprecated use `PostHrisAbsencesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = PostHrisAbsencesPositiveResponse$inboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = PostHrisAbsencesPositiveResponse$outboundSchema; - /** @deprecated use `PostHrisAbsencesPositiveResponse$Outbound` instead. */ - export type Outbound = PostHrisAbsencesPositiveResponse$Outbound; -} - -export function postHrisAbsencesPositiveResponseToJSON( - postHrisAbsencesPositiveResponse: PostHrisAbsencesPositiveResponse, -): string { - return JSON.stringify( - PostHrisAbsencesPositiveResponse$outboundSchema.parse( - postHrisAbsencesPositiveResponse, - ), - ); -} - export function postHrisAbsencesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/posthrisabsencesrequestbody.ts b/src/models/posthrisabsencesrequestbody.ts index de0c713..923a038 100644 --- a/src/models/posthrisabsencesrequestbody.ts +++ b/src/models/posthrisabsencesrequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * The state that the absence should be created in. Some tools may approve absences automatically if they were created for an absence type that does not require approval. @@ -115,56 +112,15 @@ export type PostHrisAbsencesRequestBody = { remote_fields?: PostHrisAbsencesRequestBodyRemoteFields | undefined; }; -/** @internal */ -export const PostHrisAbsencesRequestBodyStatus$inboundSchema: z.ZodNativeEnum< - typeof PostHrisAbsencesRequestBodyStatus -> = z.nativeEnum(PostHrisAbsencesRequestBodyStatus); - /** @internal */ export const PostHrisAbsencesRequestBodyStatus$outboundSchema: z.ZodNativeEnum< typeof PostHrisAbsencesRequestBodyStatus -> = PostHrisAbsencesRequestBodyStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesRequestBodyStatus$ { - /** @deprecated use `PostHrisAbsencesRequestBodyStatus$inboundSchema` instead. */ - export const inboundSchema = PostHrisAbsencesRequestBodyStatus$inboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyStatus$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesRequestBodyStatus$outboundSchema; -} - -/** @internal */ -export const PostHrisAbsencesRequestBodyUnit$inboundSchema: z.ZodNativeEnum< - typeof PostHrisAbsencesRequestBodyUnit -> = z.nativeEnum(PostHrisAbsencesRequestBodyUnit); +> = z.nativeEnum(PostHrisAbsencesRequestBodyStatus); /** @internal */ export const PostHrisAbsencesRequestBodyUnit$outboundSchema: z.ZodNativeEnum< typeof PostHrisAbsencesRequestBodyUnit -> = PostHrisAbsencesRequestBodyUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesRequestBodyUnit$ { - /** @deprecated use `PostHrisAbsencesRequestBodyUnit$inboundSchema` instead. */ - export const inboundSchema = PostHrisAbsencesRequestBodyUnit$inboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyUnit$outboundSchema` instead. */ - export const outboundSchema = PostHrisAbsencesRequestBodyUnit$outboundSchema; -} - -/** @internal */ -export const PostHrisAbsencesRequestBodyAdpworkforcenow$inboundSchema: - z.ZodType = - z.object({ - employment_id: z.string().optional(), - paid_leave: z.boolean().optional(), - }); +> = z.nativeEnum(PostHrisAbsencesRequestBodyUnit); /** @internal */ export type PostHrisAbsencesRequestBodyAdpworkforcenow$Outbound = { @@ -183,21 +139,6 @@ export const PostHrisAbsencesRequestBodyAdpworkforcenow$outboundSchema: paid_leave: z.boolean().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesRequestBodyAdpworkforcenow$ { - /** @deprecated use `PostHrisAbsencesRequestBodyAdpworkforcenow$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesRequestBodyAdpworkforcenow$inboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyAdpworkforcenow$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesRequestBodyAdpworkforcenow$outboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyAdpworkforcenow$Outbound` instead. */ - export type Outbound = PostHrisAbsencesRequestBodyAdpworkforcenow$Outbound; -} - export function postHrisAbsencesRequestBodyAdpworkforcenowToJSON( postHrisAbsencesRequestBodyAdpworkforcenow: PostHrisAbsencesRequestBodyAdpworkforcenow, @@ -209,33 +150,6 @@ export function postHrisAbsencesRequestBodyAdpworkforcenowToJSON( ); } -export function postHrisAbsencesRequestBodyAdpworkforcenowFromJSON( - jsonString: string, -): SafeParseResult< - PostHrisAbsencesRequestBodyAdpworkforcenow, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostHrisAbsencesRequestBodyAdpworkforcenow$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostHrisAbsencesRequestBodyAdpworkforcenow' from JSON`, - ); -} - -/** @internal */ -export const PostHrisAbsencesRequestBodyRemoteFields$inboundSchema: z.ZodType< - PostHrisAbsencesRequestBodyRemoteFields, - z.ZodTypeDef, - unknown -> = z.object({ - adpworkforcenow: z.lazy(() => - PostHrisAbsencesRequestBodyAdpworkforcenow$inboundSchema - ).optional(), -}); - /** @internal */ export type PostHrisAbsencesRequestBodyRemoteFields$Outbound = { adpworkforcenow?: @@ -254,21 +168,6 @@ export const PostHrisAbsencesRequestBodyRemoteFields$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesRequestBodyRemoteFields$ { - /** @deprecated use `PostHrisAbsencesRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PostHrisAbsencesRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PostHrisAbsencesRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = PostHrisAbsencesRequestBodyRemoteFields$Outbound; -} - export function postHrisAbsencesRequestBodyRemoteFieldsToJSON( postHrisAbsencesRequestBodyRemoteFields: PostHrisAbsencesRequestBodyRemoteFields, @@ -280,45 +179,6 @@ export function postHrisAbsencesRequestBodyRemoteFieldsToJSON( ); } -export function postHrisAbsencesRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PostHrisAbsencesRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostHrisAbsencesRequestBodyRemoteFields$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostHrisAbsencesRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PostHrisAbsencesRequestBody$inboundSchema: z.ZodType< - PostHrisAbsencesRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - employee_id: z.string(), - absence_type_id: z.string(), - status: PostHrisAbsencesRequestBodyStatus$inboundSchema.default("REQUESTED"), - start_date: z.string().datetime({ offset: true }).transform(v => new Date(v)), - end_date: z.string().datetime({ offset: true }).transform(v => new Date(v)), - start_half_day: z.boolean().default(false), - end_half_day: z.boolean().default(false), - amount: z.number().optional(), - unit: PostHrisAbsencesRequestBodyUnit$inboundSchema.optional(), - employee_note: z.nullable(z.string()), - start_time: z.string().optional(), - end_time: z.string().optional(), - remote_fields: z.lazy(() => - PostHrisAbsencesRequestBodyRemoteFields$inboundSchema - ).optional(), -}); - /** @internal */ export type PostHrisAbsencesRequestBody$Outbound = { employee_id: string; @@ -359,19 +219,6 @@ export const PostHrisAbsencesRequestBody$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisAbsencesRequestBody$ { - /** @deprecated use `PostHrisAbsencesRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostHrisAbsencesRequestBody$inboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBody$outboundSchema` instead. */ - export const outboundSchema = PostHrisAbsencesRequestBody$outboundSchema; - /** @deprecated use `PostHrisAbsencesRequestBody$Outbound` instead. */ - export type Outbound = PostHrisAbsencesRequestBody$Outbound; -} - export function postHrisAbsencesRequestBodyToJSON( postHrisAbsencesRequestBody: PostHrisAbsencesRequestBody, ): string { @@ -381,13 +228,3 @@ export function postHrisAbsencesRequestBodyToJSON( ), ); } - -export function postHrisAbsencesRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostHrisAbsencesRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostHrisAbsencesRequestBody' from JSON`, - ); -} diff --git a/src/models/posthrisemployeesemployeeiddocumentspositiveresponse.ts b/src/models/posthrisemployeesemployeeiddocumentspositiveresponse.ts index a7d9c71..d7189d1 100644 --- a/src/models/posthrisemployeesemployeeiddocumentspositiveresponse.ts +++ b/src/models/posthrisemployeesemployeeiddocumentspositiveresponse.ts @@ -30,44 +30,6 @@ export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$inboundSch unknown > = z.object({}); -/** @internal */ -export type PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$outboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$Outbound, - z.ZodTypeDef, - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$Outbound; -} - -export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseDataToJSON( - postHrisEmployeesEmployeeIdDocumentsPositiveResponseData: - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData, -): string { - return JSON.stringify( - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$outboundSchema - .parse(postHrisEmployeesEmployeeIdDocumentsPositiveResponseData), - ); -} - export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -93,48 +55,6 @@ export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$inbound message: z.string(), }); -/** @internal */ -export type PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$outboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$Outbound; -} - -export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseWarningToJSON( - postHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning: - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning, -): string { - return JSON.stringify( - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$outboundSchema - .parse(postHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning), - ); -} - export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -168,60 +88,6 @@ export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$Outbound = { - status: "success"; - data: PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$Outbound; - warnings: Array< - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$outboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$Outbound, - z.ZodTypeDef, - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PostHrisEmployeesEmployeeIdDocumentsPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$Outbound` instead. */ - export type Outbound = - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$Outbound; -} - -export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseToJSON( - postHrisEmployeesEmployeeIdDocumentsPositiveResponse: - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse, -): string { - return JSON.stringify( - PostHrisEmployeesEmployeeIdDocumentsPositiveResponse$outboundSchema.parse( - postHrisEmployeesEmployeeIdDocumentsPositiveResponse, - ), - ); -} - export function postHrisEmployeesEmployeeIdDocumentsPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/posthrisemployeesemployeeiddocumentsrequestbody.ts b/src/models/posthrisemployeesemployeeiddocumentsrequestbody.ts index f613dff..691c472 100644 --- a/src/models/posthrisemployeesemployeeiddocumentsrequestbody.ts +++ b/src/models/posthrisemployeesemployeeiddocumentsrequestbody.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Document = { /** @@ -47,18 +44,6 @@ export type PostHrisEmployeesEmployeeIdDocumentsRequestBody = { document: Document; }; -/** @internal */ -export const Document$inboundSchema: z.ZodType< - Document, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), -}); - /** @internal */ export type Document$Outbound = { name: string; @@ -79,44 +64,10 @@ export const Document$outboundSchema: z.ZodType< data: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Document$ { - /** @deprecated use `Document$inboundSchema` instead. */ - export const inboundSchema = Document$inboundSchema; - /** @deprecated use `Document$outboundSchema` instead. */ - export const outboundSchema = Document$outboundSchema; - /** @deprecated use `Document$Outbound` instead. */ - export type Outbound = Document$Outbound; -} - export function documentToJSON(document: Document): string { return JSON.stringify(Document$outboundSchema.parse(document)); } -export function documentFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Document$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Document' from JSON`, - ); -} - -/** @internal */ -export const PostHrisEmployeesEmployeeIdDocumentsRequestBody$inboundSchema: - z.ZodType< - PostHrisEmployeesEmployeeIdDocumentsRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - category_id: z.string(), - document: z.lazy(() => Document$inboundSchema), - }); - /** @internal */ export type PostHrisEmployeesEmployeeIdDocumentsRequestBody$Outbound = { category_id: string; @@ -134,22 +85,6 @@ export const PostHrisEmployeesEmployeeIdDocumentsRequestBody$outboundSchema: document: z.lazy(() => Document$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesEmployeeIdDocumentsRequestBody$ { - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesEmployeeIdDocumentsRequestBody$inboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesEmployeeIdDocumentsRequestBody$outboundSchema; - /** @deprecated use `PostHrisEmployeesEmployeeIdDocumentsRequestBody$Outbound` instead. */ - export type Outbound = - PostHrisEmployeesEmployeeIdDocumentsRequestBody$Outbound; -} - export function postHrisEmployeesEmployeeIdDocumentsRequestBodyToJSON( postHrisEmployeesEmployeeIdDocumentsRequestBody: PostHrisEmployeesEmployeeIdDocumentsRequestBody, @@ -160,19 +95,3 @@ export function postHrisEmployeesEmployeeIdDocumentsRequestBodyToJSON( ), ); } - -export function postHrisEmployeesEmployeeIdDocumentsRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostHrisEmployeesEmployeeIdDocumentsRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostHrisEmployeesEmployeeIdDocumentsRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostHrisEmployeesEmployeeIdDocumentsRequestBody' from JSON`, - ); -} diff --git a/src/models/posthrisemployeesformpositiveresponse.ts b/src/models/posthrisemployeesformpositiveresponse.ts index b88ad06..7063de4 100644 --- a/src/models/posthrisemployeesformpositiveresponse.ts +++ b/src/models/posthrisemployeesformpositiveresponse.ts @@ -36,47 +36,6 @@ export const PostHrisEmployeesFormPositiveResponseData$inboundSchema: z.ZodType< id: z.nullable(z.string()), }); -/** @internal */ -export type PostHrisEmployeesFormPositiveResponseData$Outbound = { - id: string | null; -}; - -/** @internal */ -export const PostHrisEmployeesFormPositiveResponseData$outboundSchema: - z.ZodType< - PostHrisEmployeesFormPositiveResponseData$Outbound, - z.ZodTypeDef, - PostHrisEmployeesFormPositiveResponseData - > = z.object({ - id: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesFormPositiveResponseData$ { - /** @deprecated use `PostHrisEmployeesFormPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesFormPositiveResponseData$inboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesFormPositiveResponseData$outboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponseData$Outbound` instead. */ - export type Outbound = PostHrisEmployeesFormPositiveResponseData$Outbound; -} - -export function postHrisEmployeesFormPositiveResponseDataToJSON( - postHrisEmployeesFormPositiveResponseData: - PostHrisEmployeesFormPositiveResponseData, -): string { - return JSON.stringify( - PostHrisEmployeesFormPositiveResponseData$outboundSchema.parse( - postHrisEmployeesFormPositiveResponseData, - ), - ); -} - export function postHrisEmployeesFormPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -103,47 +62,6 @@ export const PostHrisEmployeesFormPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type PostHrisEmployeesFormPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostHrisEmployeesFormPositiveResponseWarning$outboundSchema: - z.ZodType< - PostHrisEmployeesFormPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostHrisEmployeesFormPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesFormPositiveResponseWarning$ { - /** @deprecated use `PostHrisEmployeesFormPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesFormPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesFormPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponseWarning$Outbound` instead. */ - export type Outbound = PostHrisEmployeesFormPositiveResponseWarning$Outbound; -} - -export function postHrisEmployeesFormPositiveResponseWarningToJSON( - postHrisEmployeesFormPositiveResponseWarning: - PostHrisEmployeesFormPositiveResponseWarning, -): string { - return JSON.stringify( - PostHrisEmployeesFormPositiveResponseWarning$outboundSchema.parse( - postHrisEmployeesFormPositiveResponseWarning, - ), - ); -} - export function postHrisEmployeesFormPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -173,51 +91,6 @@ export const PostHrisEmployeesFormPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostHrisEmployeesFormPositiveResponse$Outbound = { - status: "success"; - data: PostHrisEmployeesFormPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PostHrisEmployeesFormPositiveResponse$outboundSchema: z.ZodType< - PostHrisEmployeesFormPositiveResponse$Outbound, - z.ZodTypeDef, - PostHrisEmployeesFormPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostHrisEmployeesFormPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => PostHrisEmployeesFormPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesFormPositiveResponse$ { - /** @deprecated use `PostHrisEmployeesFormPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostHrisEmployeesFormPositiveResponse$inboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostHrisEmployeesFormPositiveResponse$outboundSchema; - /** @deprecated use `PostHrisEmployeesFormPositiveResponse$Outbound` instead. */ - export type Outbound = PostHrisEmployeesFormPositiveResponse$Outbound; -} - -export function postHrisEmployeesFormPositiveResponseToJSON( - postHrisEmployeesFormPositiveResponse: PostHrisEmployeesFormPositiveResponse, -): string { - return JSON.stringify( - PostHrisEmployeesFormPositiveResponse$outboundSchema.parse( - postHrisEmployeesFormPositiveResponse, - ), - ); -} - export function postHrisEmployeesFormPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/posthrisemployeesformrequestbody.ts b/src/models/posthrisemployeesformrequestbody.ts index ad9d410..0df4f40 100644 --- a/src/models/posthrisemployeesformrequestbody.ts +++ b/src/models/posthrisemployeesformrequestbody.ts @@ -3,12 +3,8 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { Schema4, - Schema4$inboundSchema, Schema4$Outbound, Schema4$outboundSchema, } from "./schema4.js"; @@ -17,15 +13,6 @@ export type PostHrisEmployeesFormRequestBody = { properties: { [k: string]: Schema4 }; }; -/** @internal */ -export const PostHrisEmployeesFormRequestBody$inboundSchema: z.ZodType< - PostHrisEmployeesFormRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - properties: z.record(Schema4$inboundSchema), -}); - /** @internal */ export type PostHrisEmployeesFormRequestBody$Outbound = { properties: { [k: string]: Schema4$Outbound }; @@ -40,19 +27,6 @@ export const PostHrisEmployeesFormRequestBody$outboundSchema: z.ZodType< properties: z.record(Schema4$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostHrisEmployeesFormRequestBody$ { - /** @deprecated use `PostHrisEmployeesFormRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostHrisEmployeesFormRequestBody$inboundSchema; - /** @deprecated use `PostHrisEmployeesFormRequestBody$outboundSchema` instead. */ - export const outboundSchema = PostHrisEmployeesFormRequestBody$outboundSchema; - /** @deprecated use `PostHrisEmployeesFormRequestBody$Outbound` instead. */ - export type Outbound = PostHrisEmployeesFormRequestBody$Outbound; -} - export function postHrisEmployeesFormRequestBodyToJSON( postHrisEmployeesFormRequestBody: PostHrisEmployeesFormRequestBody, ): string { @@ -62,13 +36,3 @@ export function postHrisEmployeesFormRequestBodyToJSON( ), ); } - -export function postHrisEmployeesFormRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostHrisEmployeesFormRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostHrisEmployeesFormRequestBody' from JSON`, - ); -} diff --git a/src/models/postintegrationsintegrationidrelinkpositiveresponse.ts b/src/models/postintegrationsintegrationidrelinkpositiveresponse.ts index ddae86a..cb5ba14 100644 --- a/src/models/postintegrationsintegrationidrelinkpositiveresponse.ts +++ b/src/models/postintegrationsintegrationidrelinkpositiveresponse.ts @@ -26,47 +26,6 @@ export const PostIntegrationsIntegrationIdRelinkPositiveResponseData$inboundSche link: z.string(), }); -/** @internal */ -export type PostIntegrationsIntegrationIdRelinkPositiveResponseData$Outbound = { - link: string; -}; - -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkPositiveResponseData$outboundSchema: - z.ZodType< - PostIntegrationsIntegrationIdRelinkPositiveResponseData$Outbound, - z.ZodTypeDef, - PostIntegrationsIntegrationIdRelinkPositiveResponseData - > = z.object({ - link: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkPositiveResponseData$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkPositiveResponseData$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkPositiveResponseData$outboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponseData$Outbound` instead. */ - export type Outbound = - PostIntegrationsIntegrationIdRelinkPositiveResponseData$Outbound; -} - -export function postIntegrationsIntegrationIdRelinkPositiveResponseDataToJSON( - postIntegrationsIntegrationIdRelinkPositiveResponseData: - PostIntegrationsIntegrationIdRelinkPositiveResponseData, -): string { - return JSON.stringify( - PostIntegrationsIntegrationIdRelinkPositiveResponseData$outboundSchema - .parse(postIntegrationsIntegrationIdRelinkPositiveResponseData), - ); -} - export function postIntegrationsIntegrationIdRelinkPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -95,52 +54,6 @@ export const PostIntegrationsIntegrationIdRelinkPositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PostIntegrationsIntegrationIdRelinkPositiveResponse$Outbound = { - status: "success"; - data: PostIntegrationsIntegrationIdRelinkPositiveResponseData$Outbound; -}; - -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkPositiveResponse$outboundSchema: - z.ZodType< - PostIntegrationsIntegrationIdRelinkPositiveResponse$Outbound, - z.ZodTypeDef, - PostIntegrationsIntegrationIdRelinkPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PostIntegrationsIntegrationIdRelinkPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkPositiveResponse$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkPositiveResponse$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkPositiveResponse$outboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkPositiveResponse$Outbound` instead. */ - export type Outbound = - PostIntegrationsIntegrationIdRelinkPositiveResponse$Outbound; -} - -export function postIntegrationsIntegrationIdRelinkPositiveResponseToJSON( - postIntegrationsIntegrationIdRelinkPositiveResponse: - PostIntegrationsIntegrationIdRelinkPositiveResponse, -): string { - return JSON.stringify( - PostIntegrationsIntegrationIdRelinkPositiveResponse$outboundSchema.parse( - postIntegrationsIntegrationIdRelinkPositiveResponse, - ), - ); -} - export function postIntegrationsIntegrationIdRelinkPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/postintegrationsintegrationidrelinkrequestbody.ts b/src/models/postintegrationsintegrationidrelinkrequestbody.ts index 499378a..26dcd4b 100644 --- a/src/models/postintegrationsintegrationidrelinkrequestbody.ts +++ b/src/models/postintegrationsintegrationidrelinkrequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Language of the connection flow UI. @@ -75,72 +72,17 @@ export type PostIntegrationsIntegrationIdRelinkRequestBody = { | undefined; }; -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$inboundSchema: - z.ZodNativeEnum< - typeof PostIntegrationsIntegrationIdRelinkRequestBodyLanguage - > = z.nativeEnum(PostIntegrationsIntegrationIdRelinkRequestBodyLanguage); - /** @internal */ export const PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$outboundSchema: z.ZodNativeEnum< typeof PostIntegrationsIntegrationIdRelinkRequestBodyLanguage - > = PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$outboundSchema; -} - -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$inboundSchema: - z.ZodNativeEnum< - typeof PostIntegrationsIntegrationIdRelinkRequestBodyLinkType - > = z.nativeEnum(PostIntegrationsIntegrationIdRelinkRequestBodyLinkType); + > = z.nativeEnum(PostIntegrationsIntegrationIdRelinkRequestBodyLanguage); /** @internal */ export const PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$outboundSchema: z.ZodNativeEnum< typeof PostIntegrationsIntegrationIdRelinkRequestBodyLinkType - > = PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$outboundSchema; -} - -/** @internal */ -export const PostIntegrationsIntegrationIdRelinkRequestBody$inboundSchema: - z.ZodType< - PostIntegrationsIntegrationIdRelinkRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - language: z.nullable( - PostIntegrationsIntegrationIdRelinkRequestBodyLanguage$inboundSchema - .default("en"), - ), - scope_config_id: z.nullable(z.string()).optional(), - link_type: - PostIntegrationsIntegrationIdRelinkRequestBodyLinkType$inboundSchema - .default("EMBEDDED"), - }); + > = z.nativeEnum(PostIntegrationsIntegrationIdRelinkRequestBodyLinkType); /** @internal */ export type PostIntegrationsIntegrationIdRelinkRequestBody$Outbound = { @@ -166,22 +108,6 @@ export const PostIntegrationsIntegrationIdRelinkRequestBody$outboundSchema: .default("EMBEDDED"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostIntegrationsIntegrationIdRelinkRequestBody$ { - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBody$inboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostIntegrationsIntegrationIdRelinkRequestBody$outboundSchema; - /** @deprecated use `PostIntegrationsIntegrationIdRelinkRequestBody$Outbound` instead. */ - export type Outbound = - PostIntegrationsIntegrationIdRelinkRequestBody$Outbound; -} - export function postIntegrationsIntegrationIdRelinkRequestBodyToJSON( postIntegrationsIntegrationIdRelinkRequestBody: PostIntegrationsIntegrationIdRelinkRequestBody, @@ -192,19 +118,3 @@ export function postIntegrationsIntegrationIdRelinkRequestBodyToJSON( ), ); } - -export function postIntegrationsIntegrationIdRelinkRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PostIntegrationsIntegrationIdRelinkRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PostIntegrationsIntegrationIdRelinkRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PostIntegrationsIntegrationIdRelinkRequestBody' from JSON`, - ); -} diff --git a/src/models/postpassthroughtoolapipositiveresponse.ts b/src/models/postpassthroughtoolapipositiveresponse.ts index 4746b9c..681b25f 100644 --- a/src/models/postpassthroughtoolapipositiveresponse.ts +++ b/src/models/postpassthroughtoolapipositiveresponse.ts @@ -45,33 +45,6 @@ export type PostPassthroughToolApiPositiveResponse = { export const Headers$inboundSchema: z.ZodType = z.union([z.string(), z.array(z.string())]); -/** @internal */ -export type Headers$Outbound = string | Array; - -/** @internal */ -export const Headers$outboundSchema: z.ZodType< - Headers$Outbound, - z.ZodTypeDef, - Headers -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Headers$ { - /** @deprecated use `Headers$inboundSchema` instead. */ - export const inboundSchema = Headers$inboundSchema; - /** @deprecated use `Headers$outboundSchema` instead. */ - export const outboundSchema = Headers$outboundSchema; - /** @deprecated use `Headers$Outbound` instead. */ - export type Outbound = Headers$Outbound; -} - -export function headersToJSON(headers: Headers): string { - return JSON.stringify(Headers$outboundSchema.parse(headers)); -} - export function headersFromJSON( jsonString: string, ): SafeParseResult { @@ -92,53 +65,6 @@ export const PostPassthroughToolApiPositiveResponseData$inboundSchema: data: z.any().optional(), }); -/** @internal */ -export type PostPassthroughToolApiPositiveResponseData$Outbound = { - url: string; - status: number; - headers: { [k: string]: string | Array }; - data?: any | undefined; -}; - -/** @internal */ -export const PostPassthroughToolApiPositiveResponseData$outboundSchema: - z.ZodType< - PostPassthroughToolApiPositiveResponseData$Outbound, - z.ZodTypeDef, - PostPassthroughToolApiPositiveResponseData - > = z.object({ - url: z.string(), - status: z.number().int(), - headers: z.record(z.union([z.string(), z.array(z.string())])), - data: z.any().optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiPositiveResponseData$ { - /** @deprecated use `PostPassthroughToolApiPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PostPassthroughToolApiPositiveResponseData$inboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PostPassthroughToolApiPositiveResponseData$outboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponseData$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiPositiveResponseData$Outbound; -} - -export function postPassthroughToolApiPositiveResponseDataToJSON( - postPassthroughToolApiPositiveResponseData: - PostPassthroughToolApiPositiveResponseData, -): string { - return JSON.stringify( - PostPassthroughToolApiPositiveResponseData$outboundSchema.parse( - postPassthroughToolApiPositiveResponseData, - ), - ); -} - export function postPassthroughToolApiPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -165,47 +91,6 @@ export const PostPassthroughToolApiPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type PostPassthroughToolApiPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PostPassthroughToolApiPositiveResponseWarning$outboundSchema: - z.ZodType< - PostPassthroughToolApiPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PostPassthroughToolApiPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiPositiveResponseWarning$ { - /** @deprecated use `PostPassthroughToolApiPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PostPassthroughToolApiPositiveResponseWarning$inboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PostPassthroughToolApiPositiveResponseWarning$outboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponseWarning$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiPositiveResponseWarning$Outbound; -} - -export function postPassthroughToolApiPositiveResponseWarningToJSON( - postPassthroughToolApiPositiveResponseWarning: - PostPassthroughToolApiPositiveResponseWarning, -): string { - return JSON.stringify( - PostPassthroughToolApiPositiveResponseWarning$outboundSchema.parse( - postPassthroughToolApiPositiveResponseWarning, - ), - ); -} - export function postPassthroughToolApiPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -235,52 +120,6 @@ export const PostPassthroughToolApiPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PostPassthroughToolApiPositiveResponse$Outbound = { - status: "success"; - data: PostPassthroughToolApiPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PostPassthroughToolApiPositiveResponse$outboundSchema: z.ZodType< - PostPassthroughToolApiPositiveResponse$Outbound, - z.ZodTypeDef, - PostPassthroughToolApiPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PostPassthroughToolApiPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => PostPassthroughToolApiPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiPositiveResponse$ { - /** @deprecated use `PostPassthroughToolApiPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PostPassthroughToolApiPositiveResponse$inboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PostPassthroughToolApiPositiveResponse$outboundSchema; - /** @deprecated use `PostPassthroughToolApiPositiveResponse$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiPositiveResponse$Outbound; -} - -export function postPassthroughToolApiPositiveResponseToJSON( - postPassthroughToolApiPositiveResponse: - PostPassthroughToolApiPositiveResponse, -): string { - return JSON.stringify( - PostPassthroughToolApiPositiveResponse$outboundSchema.parse( - postPassthroughToolApiPositiveResponse, - ), - ); -} - export function postPassthroughToolApiPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/postpassthroughtoolapirequestbody.ts b/src/models/postpassthroughtoolapirequestbody.ts index 206ed9a..5260f27 100644 --- a/src/models/postpassthroughtoolapirequestbody.ts +++ b/src/models/postpassthroughtoolapirequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * The HTTP method (e.g., `GET`) of the request. @@ -104,33 +101,9 @@ export type PostPassthroughToolApiRequestBody = { }; /** @internal */ -export const Method$inboundSchema: z.ZodNativeEnum = z +export const Method$outboundSchema: z.ZodNativeEnum = z .nativeEnum(Method); -/** @internal */ -export const Method$outboundSchema: z.ZodNativeEnum = - Method$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Method$ { - /** @deprecated use `Method$inboundSchema` instead. */ - export const inboundSchema = Method$inboundSchema; - /** @deprecated use `Method$outboundSchema` instead. */ - export const outboundSchema = Method$outboundSchema; -} - -/** @internal */ -export const Value$inboundSchema: z.ZodType = z - .object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - }); - /** @internal */ export type Value$Outbound = { name: string; @@ -151,40 +124,10 @@ export const Value$outboundSchema: z.ZodType< data: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value$ { - /** @deprecated use `Value$inboundSchema` instead. */ - export const inboundSchema = Value$inboundSchema; - /** @deprecated use `Value$outboundSchema` instead. */ - export const outboundSchema = Value$outboundSchema; - /** @deprecated use `Value$Outbound` instead. */ - export type Outbound = Value$Outbound; -} - export function valueToJSON(value: Value): string { return JSON.stringify(Value$outboundSchema.parse(value)); } -export function valueFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Value$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Value' from JSON`, - ); -} - -/** @internal */ -export const ValueUnion$inboundSchema: z.ZodType< - ValueUnion, - z.ZodTypeDef, - unknown -> = z.union([z.lazy(() => Value$inboundSchema), z.string()]); - /** @internal */ export type ValueUnion$Outbound = Value$Outbound | string; @@ -195,43 +138,10 @@ export const ValueUnion$outboundSchema: z.ZodType< ValueUnion > = z.union([z.lazy(() => Value$outboundSchema), z.string()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValueUnion$ { - /** @deprecated use `ValueUnion$inboundSchema` instead. */ - export const inboundSchema = ValueUnion$inboundSchema; - /** @deprecated use `ValueUnion$outboundSchema` instead. */ - export const outboundSchema = ValueUnion$outboundSchema; - /** @deprecated use `ValueUnion$Outbound` instead. */ - export type Outbound = ValueUnion$Outbound; -} - export function valueUnionToJSON(valueUnion: ValueUnion): string { return JSON.stringify(ValueUnion$outboundSchema.parse(valueUnion)); } -export function valueUnionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValueUnion$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValueUnion' from JSON`, - ); -} - -/** @internal */ -export const MultipartFormDatum$inboundSchema: z.ZodType< - MultipartFormDatum, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - value: z.union([z.lazy(() => Value$inboundSchema), z.string()]), -}); - /** @internal */ export type MultipartFormDatum$Outbound = { name: string; @@ -248,19 +158,6 @@ export const MultipartFormDatum$outboundSchema: z.ZodType< value: z.union([z.lazy(() => Value$outboundSchema), z.string()]), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MultipartFormDatum$ { - /** @deprecated use `MultipartFormDatum$inboundSchema` instead. */ - export const inboundSchema = MultipartFormDatum$inboundSchema; - /** @deprecated use `MultipartFormDatum$outboundSchema` instead. */ - export const outboundSchema = MultipartFormDatum$outboundSchema; - /** @deprecated use `MultipartFormDatum$Outbound` instead. */ - export type Outbound = MultipartFormDatum$Outbound; -} - export function multipartFormDatumToJSON( multipartFormDatum: MultipartFormDatum, ): string { @@ -269,33 +166,6 @@ export function multipartFormDatumToJSON( ); } -export function multipartFormDatumFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MultipartFormDatum$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MultipartFormDatum' from JSON`, - ); -} - -/** @internal */ -export const PostPassthroughToolApiRequestBody$inboundSchema: z.ZodType< - PostPassthroughToolApiRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - method: Method$inboundSchema, - path: z.string(), - headers: z.record(z.string()).optional(), - params: z.record(z.string()).optional(), - data: z.any().optional(), - response_as_base64: z.boolean().optional(), - multipart_form_data: z.array(z.lazy(() => MultipartFormDatum$inboundSchema)) - .optional(), - api_options: z.record(z.string()).optional(), -}); - /** @internal */ export type PostPassthroughToolApiRequestBody$Outbound = { method: string; @@ -325,20 +195,6 @@ export const PostPassthroughToolApiRequestBody$outboundSchema: z.ZodType< api_options: z.record(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostPassthroughToolApiRequestBody$ { - /** @deprecated use `PostPassthroughToolApiRequestBody$inboundSchema` instead. */ - export const inboundSchema = PostPassthroughToolApiRequestBody$inboundSchema; - /** @deprecated use `PostPassthroughToolApiRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PostPassthroughToolApiRequestBody$outboundSchema; - /** @deprecated use `PostPassthroughToolApiRequestBody$Outbound` instead. */ - export type Outbound = PostPassthroughToolApiRequestBody$Outbound; -} - export function postPassthroughToolApiRequestBodyToJSON( postPassthroughToolApiRequestBody: PostPassthroughToolApiRequestBody, ): string { @@ -348,13 +204,3 @@ export function postPassthroughToolApiRequestBodyToJSON( ), ); } - -export function postPassthroughToolApiRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostPassthroughToolApiRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostPassthroughToolApiRequestBody' from JSON`, - ); -} diff --git a/src/models/putassessmentordersassessmentorderidresultpositiveresponse.ts b/src/models/putassessmentordersassessmentorderidresultpositiveresponse.ts index e6c7bb3..685bfdd 100644 --- a/src/models/putassessmentordersassessmentorderidresultpositiveresponse.ts +++ b/src/models/putassessmentordersassessmentorderidresultpositiveresponse.ts @@ -33,44 +33,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$inbo unknown > = z.object({}); -/** @internal */ -export type PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$outboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$Outbound, - z.ZodTypeDef, - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$Outbound; -} - -export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseDataToJSON( - putAssessmentOrdersAssessmentOrderIdResultPositiveResponseData: - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData, -): string { - return JSON.stringify( - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$outboundSchema - .parse(putAssessmentOrdersAssessmentOrderIdResultPositiveResponseData), - ); -} - export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -96,48 +58,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$i message: z.string(), }); -/** @internal */ -export type PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$outboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$Outbound; -} - -export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarningToJSON( - putAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning: - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning, -): string { - return JSON.stringify( - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$outboundSchema - .parse(putAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning), - ); -} - export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -171,61 +91,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$inboundS ), }); -/** @internal */ -export type PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$Outbound = - { - status: "success"; - data: - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$Outbound; - warnings: Array< - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$Outbound - >; - }; - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$outboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$Outbound, - z.ZodTypeDef, - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$Outbound; -} - -export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseToJSON( - putAssessmentOrdersAssessmentOrderIdResultPositiveResponse: - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse, -): string { - return JSON.stringify( - PutAssessmentOrdersAssessmentOrderIdResultPositiveResponse$outboundSchema - .parse(putAssessmentOrdersAssessmentOrderIdResultPositiveResponse), - ); -} - export function putAssessmentOrdersAssessmentOrderIdResultPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/putassessmentordersassessmentorderidresultrequestbody.ts b/src/models/putassessmentordersassessmentorderidresultrequestbody.ts index a99654d..a50a237 100644 --- a/src/models/putassessmentordersassessmentorderidresultrequestbody.ts +++ b/src/models/putassessmentordersassessmentorderidresultrequestbody.ts @@ -4,10 +4,7 @@ import * as z from "zod/v3"; 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 { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Status of the assessment. @@ -155,37 +152,11 @@ export type PutAssessmentOrdersAssessmentOrderIdResultRequestBody = { | undefined; }; -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$inboundSchema: - z.ZodNativeEnum< - typeof PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus - > = z.nativeEnum(PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus); - /** @internal */ export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$outboundSchema: z.ZodNativeEnum< typeof PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus - > = PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$outboundSchema; -} - -/** @internal */ -export const Score$inboundSchema: z.ZodType = z - .object({ - value: z.number(), - max: z.number(), - }); + > = z.nativeEnum(PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus); /** @internal */ export type Score$Outbound = { @@ -203,66 +174,14 @@ export const Score$outboundSchema: z.ZodType< max: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Score$ { - /** @deprecated use `Score$inboundSchema` instead. */ - export const inboundSchema = Score$inboundSchema; - /** @deprecated use `Score$outboundSchema` instead. */ - export const outboundSchema = Score$outboundSchema; - /** @deprecated use `Score$Outbound` instead. */ - export type Outbound = Score$Outbound; -} - export function scoreToJSON(score: Score): string { return JSON.stringify(Score$outboundSchema.parse(score)); } -export function scoreFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Score$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Score' from JSON`, - ); -} - -/** @internal */ -export const AttributeStatus$inboundSchema: z.ZodNativeEnum< - typeof AttributeStatus -> = z.nativeEnum(AttributeStatus); - /** @internal */ export const AttributeStatus$outboundSchema: z.ZodNativeEnum< typeof AttributeStatus -> = AttributeStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AttributeStatus$ { - /** @deprecated use `AttributeStatus$inboundSchema` instead. */ - export const inboundSchema = AttributeStatus$inboundSchema; - /** @deprecated use `AttributeStatus$outboundSchema` instead. */ - export const outboundSchema = AttributeStatus$outboundSchema; -} - -/** @internal */ -export const AttributeSubResult$inboundSchema: z.ZodType< - AttributeSubResult, - z.ZodTypeDef, - unknown -> = z.object({ - type: z.literal("SUB_RESULT"), - id: z.string(), - label: z.string(), - score: z.lazy(() => Score$inboundSchema), - status: AttributeStatus$inboundSchema, -}); +> = z.nativeEnum(AttributeStatus); /** @internal */ export type AttributeSubResult$Outbound = { @@ -286,19 +205,6 @@ export const AttributeSubResult$outboundSchema: z.ZodType< status: AttributeStatus$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AttributeSubResult$ { - /** @deprecated use `AttributeSubResult$inboundSchema` instead. */ - export const inboundSchema = AttributeSubResult$inboundSchema; - /** @deprecated use `AttributeSubResult$outboundSchema` instead. */ - export const outboundSchema = AttributeSubResult$outboundSchema; - /** @deprecated use `AttributeSubResult$Outbound` instead. */ - export type Outbound = AttributeSubResult$Outbound; -} - export function attributeSubResultToJSON( attributeSubResult: AttributeSubResult, ): string { @@ -307,27 +213,6 @@ export function attributeSubResultToJSON( ); } -export function attributeSubResultFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AttributeSubResult$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AttributeSubResult' from JSON`, - ); -} - -/** @internal */ -export const AttributeText$inboundSchema: z.ZodType< - AttributeText, - z.ZodTypeDef, - unknown -> = z.object({ - type: z.literal("TEXT"), - label: z.string(), - value: z.string(), -}); - /** @internal */ export type AttributeText$Outbound = { type: "TEXT"; @@ -346,43 +231,10 @@ export const AttributeText$outboundSchema: z.ZodType< value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AttributeText$ { - /** @deprecated use `AttributeText$inboundSchema` instead. */ - export const inboundSchema = AttributeText$inboundSchema; - /** @deprecated use `AttributeText$outboundSchema` instead. */ - export const outboundSchema = AttributeText$outboundSchema; - /** @deprecated use `AttributeText$Outbound` instead. */ - export type Outbound = AttributeText$Outbound; -} - export function attributeTextToJSON(attributeText: AttributeText): string { return JSON.stringify(AttributeText$outboundSchema.parse(attributeText)); } -export function attributeTextFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AttributeText$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AttributeText' from JSON`, - ); -} - -/** @internal */ -export const Attribute$inboundSchema: z.ZodType< - Attribute, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => AttributeSubResult$inboundSchema), - z.lazy(() => AttributeText$inboundSchema), -]); - /** @internal */ export type Attribute$Outbound = | AttributeSubResult$Outbound @@ -398,46 +250,10 @@ export const Attribute$outboundSchema: z.ZodType< z.lazy(() => AttributeText$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Attribute$ { - /** @deprecated use `Attribute$inboundSchema` instead. */ - export const inboundSchema = Attribute$inboundSchema; - /** @deprecated use `Attribute$outboundSchema` instead. */ - export const outboundSchema = Attribute$outboundSchema; - /** @deprecated use `Attribute$Outbound` instead. */ - export type Outbound = Attribute$Outbound; -} - export function attributeToJSON(attribute: Attribute): string { return JSON.stringify(Attribute$outboundSchema.parse(attribute)); } -export function attributeFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Attribute$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Attribute' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment, - z.ZodTypeDef, - unknown - > = z.object({ - name: z.string(), - content_type: z.string().optional(), - data_url: z.string().optional(), - data: z.string().optional(), - }); - /** @internal */ export type PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$Outbound = { @@ -460,22 +276,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$out data: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$Outbound; -} - export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachmentToJSON( putAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment: PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment, @@ -486,35 +286,6 @@ export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachmentT ); } -export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachmentFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters, - z.ZodTypeDef, - unknown - > = z.object({ - scoreLabel: z.string().optional(), - }).transform((v) => { - return remap$(v, { - "scoreLabel": "score_label", - }); - }); - /** @internal */ export type PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$Outbound = { @@ -535,22 +306,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiter }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$Outbound; -} - export function putAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruitersToJSON( putAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters: PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters, @@ -563,33 +318,6 @@ export function putAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecrui ); } -export function putAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruitersFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - smartrecruiters: z.lazy(() => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodySmartrecruiters$inboundSchema - ).optional(), - }); - /** @internal */ export type PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$Outbound = { @@ -610,22 +338,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$o ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$Outbound; -} - export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFieldsToJSON( putAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields: PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields, @@ -636,52 +348,6 @@ export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteField ); } -export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentOrdersAssessmentOrderIdResultRequestBody$inboundSchema: - z.ZodType< - PutAssessmentOrdersAssessmentOrderIdResultRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - status: - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyStatus$inboundSchema, - result_url: z.string(), - completed_at: z.string().datetime({ offset: true }).transform(v => - new Date(v) - ).optional(), - score: z.number().optional(), - max_score: z.number().optional(), - attributes: z.array( - z.union([ - z.lazy(() => AttributeSubResult$inboundSchema), - z.lazy(() => AttributeText$inboundSchema), - ]), - ).optional(), - attachments: z.array( - z.lazy(() => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyAttachment$inboundSchema - ), - ).optional(), - remote_fields: z.lazy(() => - PutAssessmentOrdersAssessmentOrderIdResultRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PutAssessmentOrdersAssessmentOrderIdResultRequestBody$Outbound = { status: string; @@ -731,22 +397,6 @@ export const PutAssessmentOrdersAssessmentOrderIdResultRequestBody$outboundSchem ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentOrdersAssessmentOrderIdResultRequestBody$ { - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBody$inboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentOrdersAssessmentOrderIdResultRequestBody$outboundSchema; - /** @deprecated use `PutAssessmentOrdersAssessmentOrderIdResultRequestBody$Outbound` instead. */ - export type Outbound = - PutAssessmentOrdersAssessmentOrderIdResultRequestBody$Outbound; -} - export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyToJSON( putAssessmentOrdersAssessmentOrderIdResultRequestBody: PutAssessmentOrdersAssessmentOrderIdResultRequestBody, @@ -757,19 +407,3 @@ export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyToJSON( ), ); } - -export function putAssessmentOrdersAssessmentOrderIdResultRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentOrdersAssessmentOrderIdResultRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentOrdersAssessmentOrderIdResultRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAssessmentOrdersAssessmentOrderIdResultRequestBody' from JSON`, - ); -} diff --git a/src/models/putassessmentpackagespositiveresponse.ts b/src/models/putassessmentpackagespositiveresponse.ts index bd96c30..beeafa0 100644 --- a/src/models/putassessmentpackagespositiveresponse.ts +++ b/src/models/putassessmentpackagespositiveresponse.ts @@ -29,43 +29,6 @@ export const PutAssessmentPackagesPositiveResponseData$inboundSchema: z.ZodType< unknown > = z.object({}); -/** @internal */ -export type PutAssessmentPackagesPositiveResponseData$Outbound = {}; - -/** @internal */ -export const PutAssessmentPackagesPositiveResponseData$outboundSchema: - z.ZodType< - PutAssessmentPackagesPositiveResponseData$Outbound, - z.ZodTypeDef, - PutAssessmentPackagesPositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesPositiveResponseData$ { - /** @deprecated use `PutAssessmentPackagesPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentPackagesPositiveResponseData$inboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentPackagesPositiveResponseData$outboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponseData$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesPositiveResponseData$Outbound; -} - -export function putAssessmentPackagesPositiveResponseDataToJSON( - putAssessmentPackagesPositiveResponseData: - PutAssessmentPackagesPositiveResponseData, -): string { - return JSON.stringify( - PutAssessmentPackagesPositiveResponseData$outboundSchema.parse( - putAssessmentPackagesPositiveResponseData, - ), - ); -} - export function putAssessmentPackagesPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -92,47 +55,6 @@ export const PutAssessmentPackagesPositiveResponseWarning$inboundSchema: message: z.string(), }); -/** @internal */ -export type PutAssessmentPackagesPositiveResponseWarning$Outbound = { - message: string; -}; - -/** @internal */ -export const PutAssessmentPackagesPositiveResponseWarning$outboundSchema: - z.ZodType< - PutAssessmentPackagesPositiveResponseWarning$Outbound, - z.ZodTypeDef, - PutAssessmentPackagesPositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesPositiveResponseWarning$ { - /** @deprecated use `PutAssessmentPackagesPositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentPackagesPositiveResponseWarning$inboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentPackagesPositiveResponseWarning$outboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponseWarning$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesPositiveResponseWarning$Outbound; -} - -export function putAssessmentPackagesPositiveResponseWarningToJSON( - putAssessmentPackagesPositiveResponseWarning: - PutAssessmentPackagesPositiveResponseWarning, -): string { - return JSON.stringify( - PutAssessmentPackagesPositiveResponseWarning$outboundSchema.parse( - putAssessmentPackagesPositiveResponseWarning, - ), - ); -} - export function putAssessmentPackagesPositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -162,51 +84,6 @@ export const PutAssessmentPackagesPositiveResponse$inboundSchema: z.ZodType< ), }); -/** @internal */ -export type PutAssessmentPackagesPositiveResponse$Outbound = { - status: "success"; - data: PutAssessmentPackagesPositiveResponseData$Outbound; - warnings: Array; -}; - -/** @internal */ -export const PutAssessmentPackagesPositiveResponse$outboundSchema: z.ZodType< - PutAssessmentPackagesPositiveResponse$Outbound, - z.ZodTypeDef, - PutAssessmentPackagesPositiveResponse -> = z.object({ - status: z.literal("success"), - data: z.lazy(() => PutAssessmentPackagesPositiveResponseData$outboundSchema), - warnings: z.array( - z.lazy(() => PutAssessmentPackagesPositiveResponseWarning$outboundSchema), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesPositiveResponse$ { - /** @deprecated use `PutAssessmentPackagesPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentPackagesPositiveResponse$inboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentPackagesPositiveResponse$outboundSchema; - /** @deprecated use `PutAssessmentPackagesPositiveResponse$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesPositiveResponse$Outbound; -} - -export function putAssessmentPackagesPositiveResponseToJSON( - putAssessmentPackagesPositiveResponse: PutAssessmentPackagesPositiveResponse, -): string { - return JSON.stringify( - PutAssessmentPackagesPositiveResponse$outboundSchema.parse( - putAssessmentPackagesPositiveResponse, - ), - ); -} - export function putAssessmentPackagesPositiveResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/putassessmentpackagesrequestbody.ts b/src/models/putassessmentpackagesrequestbody.ts index f0311ce..5d8d6d8 100644 --- a/src/models/putassessmentpackagesrequestbody.ts +++ b/src/models/putassessmentpackagesrequestbody.ts @@ -3,10 +3,7 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export const PutAssessmentPackagesRequestBodyType = { Behavioral: "BEHAVIORAL", @@ -40,41 +37,11 @@ export type PutAssessmentPackagesRequestBody = { }; /** @internal */ -export const PutAssessmentPackagesRequestBodyType$inboundSchema: +export const PutAssessmentPackagesRequestBodyType$outboundSchema: z.ZodNativeEnum = z.nativeEnum( PutAssessmentPackagesRequestBodyType, ); -/** @internal */ -export const PutAssessmentPackagesRequestBodyType$outboundSchema: - z.ZodNativeEnum = - PutAssessmentPackagesRequestBodyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesRequestBodyType$ { - /** @deprecated use `PutAssessmentPackagesRequestBodyType$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentPackagesRequestBodyType$inboundSchema; - /** @deprecated use `PutAssessmentPackagesRequestBodyType$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentPackagesRequestBodyType$outboundSchema; -} - -/** @internal */ -export const PutAssessmentPackagesRequestBodyPackage$inboundSchema: z.ZodType< - PutAssessmentPackagesRequestBodyPackage, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - type: PutAssessmentPackagesRequestBodyType$inboundSchema, - name: z.string(), - description: z.string(), -}); - /** @internal */ export type PutAssessmentPackagesRequestBodyPackage$Outbound = { id: string; @@ -95,21 +62,6 @@ export const PutAssessmentPackagesRequestBodyPackage$outboundSchema: z.ZodType< description: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesRequestBodyPackage$ { - /** @deprecated use `PutAssessmentPackagesRequestBodyPackage$inboundSchema` instead. */ - export const inboundSchema = - PutAssessmentPackagesRequestBodyPackage$inboundSchema; - /** @deprecated use `PutAssessmentPackagesRequestBodyPackage$outboundSchema` instead. */ - export const outboundSchema = - PutAssessmentPackagesRequestBodyPackage$outboundSchema; - /** @deprecated use `PutAssessmentPackagesRequestBodyPackage$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesRequestBodyPackage$Outbound; -} - export function putAssessmentPackagesRequestBodyPackageToJSON( putAssessmentPackagesRequestBodyPackage: PutAssessmentPackagesRequestBodyPackage, @@ -121,33 +73,6 @@ export function putAssessmentPackagesRequestBodyPackageToJSON( ); } -export function putAssessmentPackagesRequestBodyPackageFromJSON( - jsonString: string, -): SafeParseResult< - PutAssessmentPackagesRequestBodyPackage, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAssessmentPackagesRequestBodyPackage$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAssessmentPackagesRequestBodyPackage' from JSON`, - ); -} - -/** @internal */ -export const PutAssessmentPackagesRequestBody$inboundSchema: z.ZodType< - PutAssessmentPackagesRequestBody, - z.ZodTypeDef, - unknown -> = z.object({ - packages: z.array( - z.lazy(() => PutAssessmentPackagesRequestBodyPackage$inboundSchema), - ), -}); - /** @internal */ export type PutAssessmentPackagesRequestBody$Outbound = { packages: Array; @@ -164,19 +89,6 @@ export const PutAssessmentPackagesRequestBody$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAssessmentPackagesRequestBody$ { - /** @deprecated use `PutAssessmentPackagesRequestBody$inboundSchema` instead. */ - export const inboundSchema = PutAssessmentPackagesRequestBody$inboundSchema; - /** @deprecated use `PutAssessmentPackagesRequestBody$outboundSchema` instead. */ - export const outboundSchema = PutAssessmentPackagesRequestBody$outboundSchema; - /** @deprecated use `PutAssessmentPackagesRequestBody$Outbound` instead. */ - export type Outbound = PutAssessmentPackagesRequestBody$Outbound; -} - export function putAssessmentPackagesRequestBodyToJSON( putAssessmentPackagesRequestBody: PutAssessmentPackagesRequestBody, ): string { @@ -186,13 +98,3 @@ export function putAssessmentPackagesRequestBodyToJSON( ), ); } - -export function putAssessmentPackagesRequestBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PutAssessmentPackagesRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PutAssessmentPackagesRequestBody' from JSON`, - ); -} diff --git a/src/models/putatsapplicationsapplicationidstagepositiveresponse.ts b/src/models/putatsapplicationsapplicationidstagepositiveresponse.ts index 08a37b4..159f195 100644 --- a/src/models/putatsapplicationsapplicationidstagepositiveresponse.ts +++ b/src/models/putatsapplicationsapplicationidstagepositiveresponse.ts @@ -30,44 +30,6 @@ export const PutAtsApplicationsApplicationIdStagePositiveResponseData$inboundSch unknown > = z.object({}); -/** @internal */ -export type PutAtsApplicationsApplicationIdStagePositiveResponseData$Outbound = - {}; - -/** @internal */ -export const PutAtsApplicationsApplicationIdStagePositiveResponseData$outboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStagePositiveResponseData$Outbound, - z.ZodTypeDef, - PutAtsApplicationsApplicationIdStagePositiveResponseData - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStagePositiveResponseData$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponseData$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponseData$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseData$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStagePositiveResponseData$Outbound; -} - -export function putAtsApplicationsApplicationIdStagePositiveResponseDataToJSON( - putAtsApplicationsApplicationIdStagePositiveResponseData: - PutAtsApplicationsApplicationIdStagePositiveResponseData, -): string { - return JSON.stringify( - PutAtsApplicationsApplicationIdStagePositiveResponseData$outboundSchema - .parse(putAtsApplicationsApplicationIdStagePositiveResponseData), - ); -} - export function putAtsApplicationsApplicationIdStagePositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -93,48 +55,6 @@ export const PutAtsApplicationsApplicationIdStagePositiveResponseWarning$inbound message: z.string(), }); -/** @internal */ -export type PutAtsApplicationsApplicationIdStagePositiveResponseWarning$Outbound = - { - message: string; - }; - -/** @internal */ -export const PutAtsApplicationsApplicationIdStagePositiveResponseWarning$outboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$Outbound, - z.ZodTypeDef, - PutAtsApplicationsApplicationIdStagePositiveResponseWarning - > = z.object({ - message: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStagePositiveResponseWarning$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseWarning$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseWarning$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponseWarning$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$Outbound; -} - -export function putAtsApplicationsApplicationIdStagePositiveResponseWarningToJSON( - putAtsApplicationsApplicationIdStagePositiveResponseWarning: - PutAtsApplicationsApplicationIdStagePositiveResponseWarning, -): string { - return JSON.stringify( - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$outboundSchema - .parse(putAtsApplicationsApplicationIdStagePositiveResponseWarning), - ); -} - export function putAtsApplicationsApplicationIdStagePositiveResponseWarningFromJSON( jsonString: string, ): SafeParseResult< @@ -168,60 +88,6 @@ export const PutAtsApplicationsApplicationIdStagePositiveResponse$inboundSchema: ), }); -/** @internal */ -export type PutAtsApplicationsApplicationIdStagePositiveResponse$Outbound = { - status: "success"; - data: PutAtsApplicationsApplicationIdStagePositiveResponseData$Outbound; - warnings: Array< - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$Outbound - >; -}; - -/** @internal */ -export const PutAtsApplicationsApplicationIdStagePositiveResponse$outboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStagePositiveResponse$Outbound, - z.ZodTypeDef, - PutAtsApplicationsApplicationIdStagePositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PutAtsApplicationsApplicationIdStagePositiveResponseData$outboundSchema - ), - warnings: z.array( - z.lazy(() => - PutAtsApplicationsApplicationIdStagePositiveResponseWarning$outboundSchema - ), - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStagePositiveResponse$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponse$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStagePositiveResponse$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStagePositiveResponse$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStagePositiveResponse$Outbound; -} - -export function putAtsApplicationsApplicationIdStagePositiveResponseToJSON( - putAtsApplicationsApplicationIdStagePositiveResponse: - PutAtsApplicationsApplicationIdStagePositiveResponse, -): string { - return JSON.stringify( - PutAtsApplicationsApplicationIdStagePositiveResponse$outboundSchema.parse( - putAtsApplicationsApplicationIdStagePositiveResponse, - ), - ); -} - export function putAtsApplicationsApplicationIdStagePositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/putatsapplicationsapplicationidstagerequestbody.ts b/src/models/putatsapplicationsapplicationidstagerequestbody.ts index cfae862..8e4cf1b 100644 --- a/src/models/putatsapplicationsapplicationidstagerequestbody.ts +++ b/src/models/putatsapplicationsapplicationidstagerequestbody.ts @@ -4,9 +4,6 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Headers we will pass with `POST` requests to Greenhouse. @@ -71,20 +68,6 @@ export type PutAtsApplicationsApplicationIdStageRequestBody = { | undefined; }; -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders, - z.ZodTypeDef, - unknown - > = z.object({ - "On-Behalf-Of": z.nullable(z.string()).optional(), - }).transform((v) => { - return remap$(v, { - "On-Behalf-Of": "on_behalf_of", - }); - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$Outbound = { @@ -105,22 +88,6 @@ export const PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$outbound }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestBodyPostHeadersToJSON( putAtsApplicationsApplicationIdStageRequestBodyPostHeaders: PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders, @@ -131,33 +98,6 @@ export function putAtsApplicationsApplicationIdStageRequestBodyPostHeadersToJSON ); } -export function putAtsApplicationsApplicationIdStageRequestBodyPostHeadersFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders' from JSON`, - ); -} - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse, - z.ZodTypeDef, - unknown - > = z.object({ - post_headers: z.lazy(() => - PutAtsApplicationsApplicationIdStageRequestBodyPostHeaders$inboundSchema - ).optional(), - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$Outbound = { @@ -178,22 +118,6 @@ export const PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$outboundS ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestBodyGreenhouseToJSON( putAtsApplicationsApplicationIdStageRequestBodyGreenhouse: PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse, @@ -204,31 +128,6 @@ export function putAtsApplicationsApplicationIdStageRequestBodyGreenhouseToJSON( ); } -export function putAtsApplicationsApplicationIdStageRequestBodyGreenhouseFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse' from JSON`, - ); -} - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequestBodyWorkable$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequestBodyWorkable, - z.ZodTypeDef, - unknown - > = z.object({ - on_behalf_of_user_remote_id: z.string().optional(), - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequestBodyWorkable$Outbound = { on_behalf_of_user_remote_id?: string | undefined; @@ -244,22 +143,6 @@ export const PutAtsApplicationsApplicationIdStageRequestBodyWorkable$outboundSch on_behalf_of_user_remote_id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequestBodyWorkable$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyWorkable$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyWorkable$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyWorkable$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyWorkable$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyWorkable$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStageRequestBodyWorkable$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestBodyWorkableToJSON( putAtsApplicationsApplicationIdStageRequestBodyWorkable: PutAtsApplicationsApplicationIdStageRequestBodyWorkable, @@ -270,36 +153,6 @@ export function putAtsApplicationsApplicationIdStageRequestBodyWorkableToJSON( ); } -export function putAtsApplicationsApplicationIdStageRequestBodyWorkableFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequestBodyWorkable, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequestBodyWorkable$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequestBodyWorkable' from JSON`, - ); -} - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields, - z.ZodTypeDef, - unknown - > = z.object({ - greenhouse: z.lazy(() => - PutAtsApplicationsApplicationIdStageRequestBodyGreenhouse$inboundSchema - ).optional(), - workable: z.lazy(() => - PutAtsApplicationsApplicationIdStageRequestBodyWorkable$inboundSchema - ).optional(), - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$Outbound = { @@ -326,22 +179,6 @@ export const PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$outboun ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestBodyRemoteFieldsToJSON( putAtsApplicationsApplicationIdStageRequestBodyRemoteFields: PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields, @@ -352,34 +189,6 @@ export function putAtsApplicationsApplicationIdStageRequestBodyRemoteFieldsToJSO ); } -export function putAtsApplicationsApplicationIdStageRequestBodyRemoteFieldsFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields' from JSON`, - ); -} - -/** @internal */ -export const PutAtsApplicationsApplicationIdStageRequestBody$inboundSchema: - z.ZodType< - PutAtsApplicationsApplicationIdStageRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - stage_id: z.string(), - remote_fields: z.lazy(() => - PutAtsApplicationsApplicationIdStageRequestBodyRemoteFields$inboundSchema - ).optional(), - }); - /** @internal */ export type PutAtsApplicationsApplicationIdStageRequestBody$Outbound = { stage_id: string; @@ -401,22 +210,6 @@ export const PutAtsApplicationsApplicationIdStageRequestBody$outboundSchema: ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutAtsApplicationsApplicationIdStageRequestBody$ { - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PutAtsApplicationsApplicationIdStageRequestBody$inboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PutAtsApplicationsApplicationIdStageRequestBody$outboundSchema; - /** @deprecated use `PutAtsApplicationsApplicationIdStageRequestBody$Outbound` instead. */ - export type Outbound = - PutAtsApplicationsApplicationIdStageRequestBody$Outbound; -} - export function putAtsApplicationsApplicationIdStageRequestBodyToJSON( putAtsApplicationsApplicationIdStageRequestBody: PutAtsApplicationsApplicationIdStageRequestBody, @@ -427,19 +220,3 @@ export function putAtsApplicationsApplicationIdStageRequestBodyToJSON( ), ); } - -export function putAtsApplicationsApplicationIdStageRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PutAtsApplicationsApplicationIdStageRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutAtsApplicationsApplicationIdStageRequestBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PutAtsApplicationsApplicationIdStageRequestBody' from JSON`, - ); -} diff --git a/src/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.ts b/src/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.ts index 01ac578..99437b1 100644 --- a/src/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.ts +++ b/src/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.ts @@ -93,26 +93,6 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveRespon PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType, ); -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$outboundSchema: - z.ZodNativeEnum< - typeof PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType - > = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$outboundSchema; -} - /** @internal */ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$inboundSchema: z.ZodType< @@ -127,57 +107,6 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveRespon label: z.nullable(z.string()), }); -/** @internal */ -export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$Outbound = - { - id: string; - key: string; - type: string; - label: string | null; - }; - -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$outboundSchema: - z.ZodType< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$Outbound, - z.ZodTypeDef, - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField - > = z.object({ - id: z.string(), - key: z.string(), - type: - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseType$outboundSchema, - label: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$outboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$Outbound` instead. */ - export type Outbound = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$Outbound; -} - -export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationFieldToJSON( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField: - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField, -): string { - return JSON.stringify( - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$outboundSchema - .parse( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField, - ), - ); -} - export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationFieldFromJSON( jsonString: string, ): SafeParseResult< @@ -212,66 +141,6 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveRespon description: z.nullable(z.string()), }); -/** @internal */ -export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$Outbound = - { - id: string; - key: string; - integration_field: - | PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$Outbound - | null; - model: string; - label: string | null; - description: string | null; - }; - -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$outboundSchema: - z.ZodType< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$Outbound, - z.ZodTypeDef, - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData - > = z.object({ - id: z.string(), - key: z.string(), - integration_field: z.nullable( - z.lazy(() => - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseIntegrationField$outboundSchema - ), - ), - model: z.string(), - label: z.nullable(z.string()), - description: z.nullable(z.string()), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$outboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$Outbound` instead. */ - export type Outbound = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$Outbound; -} - -export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseDataToJSON( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData: - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData, -): string { - return JSON.stringify( - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$outboundSchema - .parse( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData, - ), - ); -} - export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseDataFromJSON( jsonString: string, ): SafeParseResult< @@ -300,55 +169,6 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveRespon ), }); -/** @internal */ -export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$Outbound = - { - status: "success"; - data: - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$Outbound; - }; - -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$outboundSchema: - z.ZodType< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$Outbound, - z.ZodTypeDef, - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse - > = z.object({ - status: z.literal("success"), - data: z.lazy(() => - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseData$outboundSchema - ), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$outboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$Outbound` instead. */ - export type Outbound = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$Outbound; -} - -export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseToJSON( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse: - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse, -): string { - return JSON.stringify( - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse$outboundSchema - .parse( - putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponse, - ), - ); -} - export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdPositiveResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.ts b/src/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.ts index 551a4dd..4adf98d 100644 --- a/src/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.ts +++ b/src/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody = { /** @@ -14,16 +11,6 @@ export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody = { integration_field_id: string | null; }; -/** @internal */ -export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$inboundSchema: - z.ZodType< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody, - z.ZodTypeDef, - unknown - > = z.object({ - integration_field_id: z.nullable(z.string()), - }); - /** @internal */ export type PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$Outbound = { @@ -40,22 +27,6 @@ export const PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$ou integration_field_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$ { - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$inboundSchema` instead. */ - export const inboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$inboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$outboundSchema` instead. */ - export const outboundSchema = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$outboundSchema; - /** @deprecated use `PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$Outbound` instead. */ - export type Outbound = - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$Outbound; -} - export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBodyToJSON( putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody: PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody, @@ -65,18 +36,3 @@ export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody .parse(putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody), ); } - -export function putIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBodyFromJSON( - jsonString: string, -): SafeParseResult< - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'PutIntegrationsIntegrationIdCustomFieldsCustomFieldIdRequestBody' from JSON`, - ); -} diff --git a/src/models/schema1.ts b/src/models/schema1.ts index f6374a4..31ea5d2 100644 --- a/src/models/schema1.ts +++ b/src/models/schema1.ts @@ -13,33 +13,6 @@ export type Schema1 = {}; export const Schema1$inboundSchema: z.ZodType = z.object({}); -/** @internal */ -export type Schema1$Outbound = {}; - -/** @internal */ -export const Schema1$outboundSchema: z.ZodType< - Schema1$Outbound, - z.ZodTypeDef, - Schema1 -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1$ { - /** @deprecated use `Schema1$inboundSchema` instead. */ - export const inboundSchema = Schema1$inboundSchema; - /** @deprecated use `Schema1$outboundSchema` instead. */ - export const outboundSchema = Schema1$outboundSchema; - /** @deprecated use `Schema1$Outbound` instead. */ - export type Outbound = Schema1$Outbound; -} - -export function schema1ToJSON(schema1: Schema1): string { - return JSON.stringify(Schema1$outboundSchema.parse(schema1)); -} - export function schema1FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/schema1union1.ts b/src/models/schema1union1.ts index b15ccc2..00c74d0 100644 --- a/src/models/schema1union1.ts +++ b/src/models/schema1union1.ts @@ -7,18 +7,8 @@ import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; -import { - Schema1, - Schema1$inboundSchema, - Schema1$Outbound, - Schema1$outboundSchema, -} from "./schema1.js"; -import { - Schema2Union1, - Schema2Union1$inboundSchema, - Schema2Union1$Outbound, - Schema2Union1$outboundSchema, -} from "./schema2union1.js"; +import { Schema1, Schema1$inboundSchema } from "./schema1.js"; +import { Schema2Union1, Schema2Union1$inboundSchema } from "./schema2union1.js"; export const Schema1UnifiedKey8 = { FirstName: "first_name", @@ -365,22 +355,6 @@ export const Schema1UnifiedKey8$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey8 > = z.nativeEnum(Schema1UnifiedKey8); -/** @internal */ -export const Schema1UnifiedKey8$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey8 -> = Schema1UnifiedKey8$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey8$ { - /** @deprecated use `Schema1UnifiedKey8$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey8$inboundSchema; - /** @deprecated use `Schema1UnifiedKey8$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey8$outboundSchema; -} - /** @internal */ export const Schema1FileRestrictions$inboundSchema: z.ZodType< Schema1FileRestrictions, @@ -391,43 +365,6 @@ export const Schema1FileRestrictions$inboundSchema: z.ZodType< max_file_size: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema1FileRestrictions$Outbound = { - accepted_mime_types: Array; - max_file_size?: number | null | undefined; -}; - -/** @internal */ -export const Schema1FileRestrictions$outboundSchema: z.ZodType< - Schema1FileRestrictions$Outbound, - z.ZodTypeDef, - Schema1FileRestrictions -> = z.object({ - accepted_mime_types: z.array(z.string()), - max_file_size: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1FileRestrictions$ { - /** @deprecated use `Schema1FileRestrictions$inboundSchema` instead. */ - export const inboundSchema = Schema1FileRestrictions$inboundSchema; - /** @deprecated use `Schema1FileRestrictions$outboundSchema` instead. */ - export const outboundSchema = Schema1FileRestrictions$outboundSchema; - /** @deprecated use `Schema1FileRestrictions$Outbound` instead. */ - export type Outbound = Schema1FileRestrictions$Outbound; -} - -export function schema1FileRestrictionsToJSON( - schema1FileRestrictions: Schema1FileRestrictions, -): string { - return JSON.stringify( - Schema1FileRestrictions$outboundSchema.parse(schema1FileRestrictions), - ); -} - export function schema1FileRestrictionsFromJSON( jsonString: string, ): SafeParseResult { @@ -452,47 +389,6 @@ export const Schema1File$inboundSchema: z.ZodType< file_restrictions: z.lazy(() => Schema1FileRestrictions$inboundSchema), }); -/** @internal */ -export type Schema1File$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "file"; - file_restrictions: Schema1FileRestrictions$Outbound; -}; - -/** @internal */ -export const Schema1File$outboundSchema: z.ZodType< - Schema1File$Outbound, - z.ZodTypeDef, - Schema1File -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey8$outboundSchema).optional(), - type: z.literal("file"), - file_restrictions: z.lazy(() => Schema1FileRestrictions$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1File$ { - /** @deprecated use `Schema1File$inboundSchema` instead. */ - export const inboundSchema = Schema1File$inboundSchema; - /** @deprecated use `Schema1File$outboundSchema` instead. */ - export const outboundSchema = Schema1File$outboundSchema; - /** @deprecated use `Schema1File$Outbound` instead. */ - export type Outbound = Schema1File$Outbound; -} - -export function schema1FileToJSON(schema1File: Schema1File): string { - return JSON.stringify(Schema1File$outboundSchema.parse(schema1File)); -} - export function schema1FileFromJSON( jsonString: string, ): SafeParseResult { @@ -508,22 +404,6 @@ export const Schema1UnifiedKey7$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey7 > = z.nativeEnum(Schema1UnifiedKey7); -/** @internal */ -export const Schema1UnifiedKey7$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey7 -> = Schema1UnifiedKey7$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey7$ { - /** @deprecated use `Schema1UnifiedKey7$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey7$inboundSchema; - /** @deprecated use `Schema1UnifiedKey7$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey7$outboundSchema; -} - /** @internal */ export const Schema1Array1$inboundSchema: z.ZodType< Schema1Array1, @@ -540,51 +420,6 @@ export const Schema1Array1$inboundSchema: z.ZodType< max_items: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema1Array1$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "array"; - item_type: Schema2Union1$Outbound; - min_items?: number | null | undefined; - max_items?: number | null | undefined; -}; - -/** @internal */ -export const Schema1Array1$outboundSchema: z.ZodType< - Schema1Array1$Outbound, - z.ZodTypeDef, - Schema1Array1 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey7$outboundSchema).optional(), - type: z.literal("array"), - item_type: Schema2Union1$outboundSchema, - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Array1$ { - /** @deprecated use `Schema1Array1$inboundSchema` instead. */ - export const inboundSchema = Schema1Array1$inboundSchema; - /** @deprecated use `Schema1Array1$outboundSchema` instead. */ - export const outboundSchema = Schema1Array1$outboundSchema; - /** @deprecated use `Schema1Array1$Outbound` instead. */ - export type Outbound = Schema1Array1$Outbound; -} - -export function schema1Array1ToJSON(schema1Array1: Schema1Array1): string { - return JSON.stringify(Schema1Array1$outboundSchema.parse(schema1Array1)); -} - export function schema1Array1FromJSON( jsonString: string, ): SafeParseResult { @@ -600,22 +435,6 @@ export const Schema1UnifiedKey6$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey6 > = z.nativeEnum(Schema1UnifiedKey6); -/** @internal */ -export const Schema1UnifiedKey6$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey6 -> = Schema1UnifiedKey6$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey6$ { - /** @deprecated use `Schema1UnifiedKey6$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey6$inboundSchema; - /** @deprecated use `Schema1UnifiedKey6$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey6$outboundSchema; -} - /** @internal */ export const Schema1Object$inboundSchema: z.ZodType< Schema1Object, @@ -630,47 +449,6 @@ export const Schema1Object$inboundSchema: z.ZodType< properties: Schema1$inboundSchema, }); -/** @internal */ -export type Schema1Object$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "object"; - properties: Schema1$Outbound; -}; - -/** @internal */ -export const Schema1Object$outboundSchema: z.ZodType< - Schema1Object$Outbound, - z.ZodTypeDef, - Schema1Object -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey6$outboundSchema).optional(), - type: z.literal("object"), - properties: Schema1$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Object$ { - /** @deprecated use `Schema1Object$inboundSchema` instead. */ - export const inboundSchema = Schema1Object$inboundSchema; - /** @deprecated use `Schema1Object$outboundSchema` instead. */ - export const outboundSchema = Schema1Object$outboundSchema; - /** @deprecated use `Schema1Object$Outbound` instead. */ - export type Outbound = Schema1Object$Outbound; -} - -export function schema1ObjectToJSON(schema1Object: Schema1Object): string { - return JSON.stringify(Schema1Object$outboundSchema.parse(schema1Object)); -} - export function schema1ObjectFromJSON( jsonString: string, ): SafeParseResult { @@ -686,22 +464,6 @@ export const Schema1UnifiedKey5$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey5 > = z.nativeEnum(Schema1UnifiedKey5); -/** @internal */ -export const Schema1UnifiedKey5$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey5 -> = Schema1UnifiedKey5$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey5$ { - /** @deprecated use `Schema1UnifiedKey5$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey5$inboundSchema; - /** @deprecated use `Schema1UnifiedKey5$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey5$outboundSchema; -} - /** @internal */ export const Schema1Checkbox$inboundSchema: z.ZodType< Schema1Checkbox, @@ -715,47 +477,6 @@ export const Schema1Checkbox$inboundSchema: z.ZodType< type: z.literal("checkbox"), }); -/** @internal */ -export type Schema1Checkbox$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "checkbox"; -}; - -/** @internal */ -export const Schema1Checkbox$outboundSchema: z.ZodType< - Schema1Checkbox$Outbound, - z.ZodTypeDef, - Schema1Checkbox -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey5$outboundSchema).optional(), - type: z.literal("checkbox"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Checkbox$ { - /** @deprecated use `Schema1Checkbox$inboundSchema` instead. */ - export const inboundSchema = Schema1Checkbox$inboundSchema; - /** @deprecated use `Schema1Checkbox$outboundSchema` instead. */ - export const outboundSchema = Schema1Checkbox$outboundSchema; - /** @deprecated use `Schema1Checkbox$Outbound` instead. */ - export type Outbound = Schema1Checkbox$Outbound; -} - -export function schema1CheckboxToJSON( - schema1Checkbox: Schema1Checkbox, -): string { - return JSON.stringify(Schema1Checkbox$outboundSchema.parse(schema1Checkbox)); -} - export function schema1CheckboxFromJSON( jsonString: string, ): SafeParseResult { @@ -776,43 +497,6 @@ export const Schema1OptionsReferenced2$inboundSchema: z.ZodType< link: z.string(), }); -/** @internal */ -export type Schema1OptionsReferenced2$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const Schema1OptionsReferenced2$outboundSchema: z.ZodType< - Schema1OptionsReferenced2$Outbound, - z.ZodTypeDef, - Schema1OptionsReferenced2 -> = z.object({ - type: z.literal("referenced"), - link: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsReferenced2$ { - /** @deprecated use `Schema1OptionsReferenced2$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsReferenced2$inboundSchema; - /** @deprecated use `Schema1OptionsReferenced2$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsReferenced2$outboundSchema; - /** @deprecated use `Schema1OptionsReferenced2$Outbound` instead. */ - export type Outbound = Schema1OptionsReferenced2$Outbound; -} - -export function schema1OptionsReferenced2ToJSON( - schema1OptionsReferenced2: Schema1OptionsReferenced2, -): string { - return JSON.stringify( - Schema1OptionsReferenced2$outboundSchema.parse(schema1OptionsReferenced2), - ); -} - export function schema1OptionsReferenced2FromJSON( jsonString: string, ): SafeParseResult { @@ -830,37 +514,6 @@ export const Schema1RemoteId2$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type Schema1RemoteId2$Outbound = string | number; - -/** @internal */ -export const Schema1RemoteId2$outboundSchema: z.ZodType< - Schema1RemoteId2$Outbound, - z.ZodTypeDef, - Schema1RemoteId2 -> = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1RemoteId2$ { - /** @deprecated use `Schema1RemoteId2$inboundSchema` instead. */ - export const inboundSchema = Schema1RemoteId2$inboundSchema; - /** @deprecated use `Schema1RemoteId2$outboundSchema` instead. */ - export const outboundSchema = Schema1RemoteId2$outboundSchema; - /** @deprecated use `Schema1RemoteId2$Outbound` instead. */ - export type Outbound = Schema1RemoteId2$Outbound; -} - -export function schema1RemoteId2ToJSON( - schema1RemoteId2: Schema1RemoteId2, -): string { - return JSON.stringify( - Schema1RemoteId2$outboundSchema.parse(schema1RemoteId2), - ); -} - export function schema1RemoteId2FromJSON( jsonString: string, ): SafeParseResult { @@ -883,43 +536,6 @@ export const Schema1Entry2$inboundSchema: z.ZodType< remote_id: z.union([z.string(), z.number()]), }); -/** @internal */ -export type Schema1Entry2$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const Schema1Entry2$outboundSchema: z.ZodType< - Schema1Entry2$Outbound, - z.ZodTypeDef, - Schema1Entry2 -> = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Entry2$ { - /** @deprecated use `Schema1Entry2$inboundSchema` instead. */ - export const inboundSchema = Schema1Entry2$inboundSchema; - /** @deprecated use `Schema1Entry2$outboundSchema` instead. */ - export const outboundSchema = Schema1Entry2$outboundSchema; - /** @deprecated use `Schema1Entry2$Outbound` instead. */ - export type Outbound = Schema1Entry2$Outbound; -} - -export function schema1Entry2ToJSON(schema1Entry2: Schema1Entry2): string { - return JSON.stringify(Schema1Entry2$outboundSchema.parse(schema1Entry2)); -} - export function schema1Entry2FromJSON( jsonString: string, ): SafeParseResult { @@ -940,43 +556,6 @@ export const Schema1OptionsInline2$inboundSchema: z.ZodType< entries: z.array(z.lazy(() => Schema1Entry2$inboundSchema)), }); -/** @internal */ -export type Schema1OptionsInline2$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const Schema1OptionsInline2$outboundSchema: z.ZodType< - Schema1OptionsInline2$Outbound, - z.ZodTypeDef, - Schema1OptionsInline2 -> = z.object({ - type: z.literal("inline"), - entries: z.array(z.lazy(() => Schema1Entry2$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsInline2$ { - /** @deprecated use `Schema1OptionsInline2$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsInline2$inboundSchema; - /** @deprecated use `Schema1OptionsInline2$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsInline2$outboundSchema; - /** @deprecated use `Schema1OptionsInline2$Outbound` instead. */ - export type Outbound = Schema1OptionsInline2$Outbound; -} - -export function schema1OptionsInline2ToJSON( - schema1OptionsInline2: Schema1OptionsInline2, -): string { - return JSON.stringify( - Schema1OptionsInline2$outboundSchema.parse(schema1OptionsInline2), - ); -} - export function schema1OptionsInline2FromJSON( jsonString: string, ): SafeParseResult { @@ -997,42 +576,6 @@ export const Schema1OptionsUnion2$inboundSchema: z.ZodType< z.lazy(() => Schema1OptionsReferenced2$inboundSchema), ]); -/** @internal */ -export type Schema1OptionsUnion2$Outbound = - | Schema1OptionsInline2$Outbound - | Schema1OptionsReferenced2$Outbound; - -/** @internal */ -export const Schema1OptionsUnion2$outboundSchema: z.ZodType< - Schema1OptionsUnion2$Outbound, - z.ZodTypeDef, - Schema1OptionsUnion2 -> = z.union([ - z.lazy(() => Schema1OptionsInline2$outboundSchema), - z.lazy(() => Schema1OptionsReferenced2$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsUnion2$ { - /** @deprecated use `Schema1OptionsUnion2$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsUnion2$inboundSchema; - /** @deprecated use `Schema1OptionsUnion2$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsUnion2$outboundSchema; - /** @deprecated use `Schema1OptionsUnion2$Outbound` instead. */ - export type Outbound = Schema1OptionsUnion2$Outbound; -} - -export function schema1OptionsUnion2ToJSON( - schema1OptionsUnion2: Schema1OptionsUnion2, -): string { - return JSON.stringify( - Schema1OptionsUnion2$outboundSchema.parse(schema1OptionsUnion2), - ); -} - export function schema1OptionsUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1062,58 +605,6 @@ export const Schema1MultiSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type Schema1MultiSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "multi_select"; - min_items?: number | null | undefined; - max_items?: number | null | undefined; - options: Schema1OptionsInline2$Outbound | Schema1OptionsReferenced2$Outbound; -}; - -/** @internal */ -export const Schema1MultiSelect$outboundSchema: z.ZodType< - Schema1MultiSelect$Outbound, - z.ZodTypeDef, - Schema1MultiSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(z.string()).optional(), - type: z.literal("multi_select"), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), - options: z.union([ - z.lazy(() => Schema1OptionsInline2$outboundSchema), - z.lazy(() => Schema1OptionsReferenced2$outboundSchema), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1MultiSelect$ { - /** @deprecated use `Schema1MultiSelect$inboundSchema` instead. */ - export const inboundSchema = Schema1MultiSelect$inboundSchema; - /** @deprecated use `Schema1MultiSelect$outboundSchema` instead. */ - export const outboundSchema = Schema1MultiSelect$outboundSchema; - /** @deprecated use `Schema1MultiSelect$Outbound` instead. */ - export type Outbound = Schema1MultiSelect$Outbound; -} - -export function schema1MultiSelectToJSON( - schema1MultiSelect: Schema1MultiSelect, -): string { - return JSON.stringify( - Schema1MultiSelect$outboundSchema.parse(schema1MultiSelect), - ); -} - export function schema1MultiSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1129,22 +620,6 @@ export const Schema1UnifiedKey4$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey4 > = z.nativeEnum(Schema1UnifiedKey4); -/** @internal */ -export const Schema1UnifiedKey4$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey4 -> = Schema1UnifiedKey4$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey4$ { - /** @deprecated use `Schema1UnifiedKey4$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey4$inboundSchema; - /** @deprecated use `Schema1UnifiedKey4$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey4$outboundSchema; -} - /** @internal */ export const Schema1OptionsReferenced1$inboundSchema: z.ZodType< Schema1OptionsReferenced1, @@ -1155,43 +630,6 @@ export const Schema1OptionsReferenced1$inboundSchema: z.ZodType< link: z.string(), }); -/** @internal */ -export type Schema1OptionsReferenced1$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const Schema1OptionsReferenced1$outboundSchema: z.ZodType< - Schema1OptionsReferenced1$Outbound, - z.ZodTypeDef, - Schema1OptionsReferenced1 -> = z.object({ - type: z.literal("referenced"), - link: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsReferenced1$ { - /** @deprecated use `Schema1OptionsReferenced1$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsReferenced1$inboundSchema; - /** @deprecated use `Schema1OptionsReferenced1$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsReferenced1$outboundSchema; - /** @deprecated use `Schema1OptionsReferenced1$Outbound` instead. */ - export type Outbound = Schema1OptionsReferenced1$Outbound; -} - -export function schema1OptionsReferenced1ToJSON( - schema1OptionsReferenced1: Schema1OptionsReferenced1, -): string { - return JSON.stringify( - Schema1OptionsReferenced1$outboundSchema.parse(schema1OptionsReferenced1), - ); -} - export function schema1OptionsReferenced1FromJSON( jsonString: string, ): SafeParseResult { @@ -1209,37 +647,6 @@ export const Schema1RemoteId1$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type Schema1RemoteId1$Outbound = string | number; - -/** @internal */ -export const Schema1RemoteId1$outboundSchema: z.ZodType< - Schema1RemoteId1$Outbound, - z.ZodTypeDef, - Schema1RemoteId1 -> = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1RemoteId1$ { - /** @deprecated use `Schema1RemoteId1$inboundSchema` instead. */ - export const inboundSchema = Schema1RemoteId1$inboundSchema; - /** @deprecated use `Schema1RemoteId1$outboundSchema` instead. */ - export const outboundSchema = Schema1RemoteId1$outboundSchema; - /** @deprecated use `Schema1RemoteId1$Outbound` instead. */ - export type Outbound = Schema1RemoteId1$Outbound; -} - -export function schema1RemoteId1ToJSON( - schema1RemoteId1: Schema1RemoteId1, -): string { - return JSON.stringify( - Schema1RemoteId1$outboundSchema.parse(schema1RemoteId1), - ); -} - export function schema1RemoteId1FromJSON( jsonString: string, ): SafeParseResult { @@ -1262,43 +669,6 @@ export const Schema1Entry1$inboundSchema: z.ZodType< remote_id: z.union([z.string(), z.number()]), }); -/** @internal */ -export type Schema1Entry1$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const Schema1Entry1$outboundSchema: z.ZodType< - Schema1Entry1$Outbound, - z.ZodTypeDef, - Schema1Entry1 -> = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Entry1$ { - /** @deprecated use `Schema1Entry1$inboundSchema` instead. */ - export const inboundSchema = Schema1Entry1$inboundSchema; - /** @deprecated use `Schema1Entry1$outboundSchema` instead. */ - export const outboundSchema = Schema1Entry1$outboundSchema; - /** @deprecated use `Schema1Entry1$Outbound` instead. */ - export type Outbound = Schema1Entry1$Outbound; -} - -export function schema1Entry1ToJSON(schema1Entry1: Schema1Entry1): string { - return JSON.stringify(Schema1Entry1$outboundSchema.parse(schema1Entry1)); -} - export function schema1Entry1FromJSON( jsonString: string, ): SafeParseResult { @@ -1319,43 +689,6 @@ export const Schema1OptionsInline1$inboundSchema: z.ZodType< entries: z.array(z.lazy(() => Schema1Entry1$inboundSchema)), }); -/** @internal */ -export type Schema1OptionsInline1$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const Schema1OptionsInline1$outboundSchema: z.ZodType< - Schema1OptionsInline1$Outbound, - z.ZodTypeDef, - Schema1OptionsInline1 -> = z.object({ - type: z.literal("inline"), - entries: z.array(z.lazy(() => Schema1Entry1$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsInline1$ { - /** @deprecated use `Schema1OptionsInline1$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsInline1$inboundSchema; - /** @deprecated use `Schema1OptionsInline1$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsInline1$outboundSchema; - /** @deprecated use `Schema1OptionsInline1$Outbound` instead. */ - export type Outbound = Schema1OptionsInline1$Outbound; -} - -export function schema1OptionsInline1ToJSON( - schema1OptionsInline1: Schema1OptionsInline1, -): string { - return JSON.stringify( - Schema1OptionsInline1$outboundSchema.parse(schema1OptionsInline1), - ); -} - export function schema1OptionsInline1FromJSON( jsonString: string, ): SafeParseResult { @@ -1376,42 +709,6 @@ export const Schema1OptionsUnion1$inboundSchema: z.ZodType< z.lazy(() => Schema1OptionsReferenced1$inboundSchema), ]); -/** @internal */ -export type Schema1OptionsUnion1$Outbound = - | Schema1OptionsInline1$Outbound - | Schema1OptionsReferenced1$Outbound; - -/** @internal */ -export const Schema1OptionsUnion1$outboundSchema: z.ZodType< - Schema1OptionsUnion1$Outbound, - z.ZodTypeDef, - Schema1OptionsUnion1 -> = z.union([ - z.lazy(() => Schema1OptionsInline1$outboundSchema), - z.lazy(() => Schema1OptionsReferenced1$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1OptionsUnion1$ { - /** @deprecated use `Schema1OptionsUnion1$inboundSchema` instead. */ - export const inboundSchema = Schema1OptionsUnion1$inboundSchema; - /** @deprecated use `Schema1OptionsUnion1$outboundSchema` instead. */ - export const outboundSchema = Schema1OptionsUnion1$outboundSchema; - /** @deprecated use `Schema1OptionsUnion1$Outbound` instead. */ - export type Outbound = Schema1OptionsUnion1$Outbound; -} - -export function schema1OptionsUnion1ToJSON( - schema1OptionsUnion1: Schema1OptionsUnion1, -): string { - return JSON.stringify( - Schema1OptionsUnion1$outboundSchema.parse(schema1OptionsUnion1), - ); -} - export function schema1OptionsUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1439,54 +736,6 @@ export const Schema1SingleSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type Schema1SingleSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "single_select"; - options: Schema1OptionsInline1$Outbound | Schema1OptionsReferenced1$Outbound; -}; - -/** @internal */ -export const Schema1SingleSelect$outboundSchema: z.ZodType< - Schema1SingleSelect$Outbound, - z.ZodTypeDef, - Schema1SingleSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey4$outboundSchema).optional(), - type: z.literal("single_select"), - options: z.union([ - z.lazy(() => Schema1OptionsInline1$outboundSchema), - z.lazy(() => Schema1OptionsReferenced1$outboundSchema), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1SingleSelect$ { - /** @deprecated use `Schema1SingleSelect$inboundSchema` instead. */ - export const inboundSchema = Schema1SingleSelect$inboundSchema; - /** @deprecated use `Schema1SingleSelect$outboundSchema` instead. */ - export const outboundSchema = Schema1SingleSelect$outboundSchema; - /** @deprecated use `Schema1SingleSelect$Outbound` instead. */ - export type Outbound = Schema1SingleSelect$Outbound; -} - -export function schema1SingleSelectToJSON( - schema1SingleSelect: Schema1SingleSelect, -): string { - return JSON.stringify( - Schema1SingleSelect$outboundSchema.parse(schema1SingleSelect), - ); -} - export function schema1SingleSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1502,22 +751,6 @@ export const Schema1UnifiedKey3$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey3 > = z.nativeEnum(Schema1UnifiedKey3); -/** @internal */ -export const Schema1UnifiedKey3$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey3 -> = Schema1UnifiedKey3$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey3$ { - /** @deprecated use `Schema1UnifiedKey3$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey3$inboundSchema; - /** @deprecated use `Schema1UnifiedKey3$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey3$outboundSchema; -} - /** @internal */ export const Schema1Date$inboundSchema: z.ZodType< Schema1Date, @@ -1531,45 +764,6 @@ export const Schema1Date$inboundSchema: z.ZodType< type: z.literal("date"), }); -/** @internal */ -export type Schema1Date$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "date"; -}; - -/** @internal */ -export const Schema1Date$outboundSchema: z.ZodType< - Schema1Date$Outbound, - z.ZodTypeDef, - Schema1Date -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey3$outboundSchema).optional(), - type: z.literal("date"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Date$ { - /** @deprecated use `Schema1Date$inboundSchema` instead. */ - export const inboundSchema = Schema1Date$inboundSchema; - /** @deprecated use `Schema1Date$outboundSchema` instead. */ - export const outboundSchema = Schema1Date$outboundSchema; - /** @deprecated use `Schema1Date$Outbound` instead. */ - export type Outbound = Schema1Date$Outbound; -} - -export function schema1DateToJSON(schema1Date: Schema1Date): string { - return JSON.stringify(Schema1Date$outboundSchema.parse(schema1Date)); -} - export function schema1DateFromJSON( jsonString: string, ): SafeParseResult { @@ -1585,22 +779,6 @@ export const Schema1UnifiedKey2$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey2 > = z.nativeEnum(Schema1UnifiedKey2); -/** @internal */ -export const Schema1UnifiedKey2$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey2 -> = Schema1UnifiedKey2$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey2$ { - /** @deprecated use `Schema1UnifiedKey2$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey2$inboundSchema; - /** @deprecated use `Schema1UnifiedKey2$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey2$outboundSchema; -} - /** @internal */ export const Schema1Number$inboundSchema: z.ZodType< Schema1Number, @@ -1616,49 +794,6 @@ export const Schema1Number$inboundSchema: z.ZodType< max: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema1Number$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "number"; - min?: number | null | undefined; - max?: number | null | undefined; -}; - -/** @internal */ -export const Schema1Number$outboundSchema: z.ZodType< - Schema1Number$Outbound, - z.ZodTypeDef, - Schema1Number -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey2$outboundSchema).optional(), - type: z.literal("number"), - min: z.nullable(z.number()).optional(), - max: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Number$ { - /** @deprecated use `Schema1Number$inboundSchema` instead. */ - export const inboundSchema = Schema1Number$inboundSchema; - /** @deprecated use `Schema1Number$outboundSchema` instead. */ - export const outboundSchema = Schema1Number$outboundSchema; - /** @deprecated use `Schema1Number$Outbound` instead. */ - export type Outbound = Schema1Number$Outbound; -} - -export function schema1NumberToJSON(schema1Number: Schema1Number): string { - return JSON.stringify(Schema1Number$outboundSchema.parse(schema1Number)); -} - export function schema1NumberFromJSON( jsonString: string, ): SafeParseResult { @@ -1674,22 +809,6 @@ export const Schema1UnifiedKey1$inboundSchema: z.ZodNativeEnum< typeof Schema1UnifiedKey1 > = z.nativeEnum(Schema1UnifiedKey1); -/** @internal */ -export const Schema1UnifiedKey1$outboundSchema: z.ZodNativeEnum< - typeof Schema1UnifiedKey1 -> = Schema1UnifiedKey1$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1UnifiedKey1$ { - /** @deprecated use `Schema1UnifiedKey1$inboundSchema` instead. */ - export const inboundSchema = Schema1UnifiedKey1$inboundSchema; - /** @deprecated use `Schema1UnifiedKey1$outboundSchema` instead. */ - export const outboundSchema = Schema1UnifiedKey1$outboundSchema; -} - /** @internal */ export const Schema1Text$inboundSchema: z.ZodType< Schema1Text, @@ -1706,51 +825,6 @@ export const Schema1Text$inboundSchema: z.ZodType< reg_exp: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Schema1Text$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "text"; - min_length?: number | null | undefined; - max_length?: number | null | undefined; - reg_exp?: string | null | undefined; -}; - -/** @internal */ -export const Schema1Text$outboundSchema: z.ZodType< - Schema1Text$Outbound, - z.ZodTypeDef, - Schema1Text -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey1$outboundSchema).optional(), - type: z.literal("text"), - min_length: z.nullable(z.number()).optional(), - max_length: z.nullable(z.number()).optional(), - reg_exp: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Text$ { - /** @deprecated use `Schema1Text$inboundSchema` instead. */ - export const inboundSchema = Schema1Text$inboundSchema; - /** @deprecated use `Schema1Text$outboundSchema` instead. */ - export const outboundSchema = Schema1Text$outboundSchema; - /** @deprecated use `Schema1Text$Outbound` instead. */ - export type Outbound = Schema1Text$Outbound; -} - -export function schema1TextToJSON(schema1Text: Schema1Text): string { - return JSON.stringify(Schema1Text$outboundSchema.parse(schema1Text)); -} - export function schema1TextFromJSON( jsonString: string, ): SafeParseResult { @@ -1778,52 +852,6 @@ export const Schema1Union1$inboundSchema: z.ZodType< z.lazy(() => Schema1Checkbox$inboundSchema), ]); -/** @internal */ -export type Schema1Union1$Outbound = - | Schema1SingleSelect$Outbound - | Schema1MultiSelect$Outbound - | Schema1Object$Outbound - | Schema1Array1$Outbound - | Schema1File$Outbound - | Schema1Text$Outbound - | Schema1Number$Outbound - | Schema1Date$Outbound - | Schema1Checkbox$Outbound; - -/** @internal */ -export const Schema1Union1$outboundSchema: z.ZodType< - Schema1Union1$Outbound, - z.ZodTypeDef, - Schema1Union1 -> = z.union([ - z.lazy(() => Schema1SingleSelect$outboundSchema), - z.lazy(() => Schema1MultiSelect$outboundSchema), - z.lazy(() => Schema1Object$outboundSchema), - z.lazy(() => Schema1Array1$outboundSchema), - z.lazy(() => Schema1File$outboundSchema), - z.lazy(() => Schema1Text$outboundSchema), - z.lazy(() => Schema1Number$outboundSchema), - z.lazy(() => Schema1Date$outboundSchema), - z.lazy(() => Schema1Checkbox$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Union1$ { - /** @deprecated use `Schema1Union1$inboundSchema` instead. */ - export const inboundSchema = Schema1Union1$inboundSchema; - /** @deprecated use `Schema1Union1$outboundSchema` instead. */ - export const outboundSchema = Schema1Union1$outboundSchema; - /** @deprecated use `Schema1Union1$Outbound` instead. */ - export type Outbound = Schema1Union1$Outbound; -} - -export function schema1Union1ToJSON(schema1Union1: Schema1Union1): string { - return JSON.stringify(Schema1Union1$outboundSchema.parse(schema1Union1)); -} - export function schema1Union1FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/schema1union2.ts b/src/models/schema1union2.ts index 9d35afa..e969882 100644 --- a/src/models/schema1union2.ts +++ b/src/models/schema1union2.ts @@ -9,46 +9,24 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { Schema1Checkbox, Schema1Checkbox$inboundSchema, - Schema1Checkbox$Outbound, - Schema1Checkbox$outboundSchema, Schema1Date, Schema1Date$inboundSchema, - Schema1Date$Outbound, - Schema1Date$outboundSchema, Schema1File, Schema1File$inboundSchema, - Schema1File$Outbound, - Schema1File$outboundSchema, Schema1MultiSelect, Schema1MultiSelect$inboundSchema, - Schema1MultiSelect$Outbound, - Schema1MultiSelect$outboundSchema, Schema1Number, Schema1Number$inboundSchema, - Schema1Number$Outbound, - Schema1Number$outboundSchema, Schema1Object, Schema1Object$inboundSchema, - Schema1Object$Outbound, - Schema1Object$outboundSchema, Schema1SingleSelect, Schema1SingleSelect$inboundSchema, - Schema1SingleSelect$Outbound, - Schema1SingleSelect$outboundSchema, Schema1Text, Schema1Text$inboundSchema, - Schema1Text$Outbound, - Schema1Text$outboundSchema, Schema1UnifiedKey7, Schema1UnifiedKey7$inboundSchema, - Schema1UnifiedKey7$outboundSchema, } from "./schema1union1.js"; -import { - Schema2Union2, - Schema2Union2$inboundSchema, - Schema2Union2$Outbound, - Schema2Union2$outboundSchema, -} from "./schema2union2.js"; +import { Schema2Union2, Schema2Union2$inboundSchema } from "./schema2union2.js"; export type Schema1Union2 = | Schema1SingleSelect @@ -89,52 +67,6 @@ export const Schema1Union2$inboundSchema: z.ZodType< Schema1Checkbox$inboundSchema, ]); -/** @internal */ -export type Schema1Union2$Outbound = - | Schema1SingleSelect$Outbound - | Schema1MultiSelect$Outbound - | Schema1Object$Outbound - | Schema1Array2$Outbound - | Schema1File$Outbound - | Schema1Text$Outbound - | Schema1Number$Outbound - | Schema1Date$Outbound - | Schema1Checkbox$Outbound; - -/** @internal */ -export const Schema1Union2$outboundSchema: z.ZodType< - Schema1Union2$Outbound, - z.ZodTypeDef, - Schema1Union2 -> = z.union([ - Schema1SingleSelect$outboundSchema, - Schema1MultiSelect$outboundSchema, - Schema1Object$outboundSchema, - z.lazy(() => Schema1Array2$outboundSchema), - Schema1File$outboundSchema, - Schema1Text$outboundSchema, - Schema1Number$outboundSchema, - Schema1Date$outboundSchema, - Schema1Checkbox$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Union2$ { - /** @deprecated use `Schema1Union2$inboundSchema` instead. */ - export const inboundSchema = Schema1Union2$inboundSchema; - /** @deprecated use `Schema1Union2$outboundSchema` instead. */ - export const outboundSchema = Schema1Union2$outboundSchema; - /** @deprecated use `Schema1Union2$Outbound` instead. */ - export type Outbound = Schema1Union2$Outbound; -} - -export function schema1Union2ToJSON(schema1Union2: Schema1Union2): string { - return JSON.stringify(Schema1Union2$outboundSchema.parse(schema1Union2)); -} - export function schema1Union2FromJSON( jsonString: string, ): SafeParseResult { @@ -161,51 +93,6 @@ export const Schema1Array2$inboundSchema: z.ZodType< max_items: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema1Array2$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "array"; - item_type: Schema2Union2$Outbound; - min_items?: number | null | undefined; - max_items?: number | null | undefined; -}; - -/** @internal */ -export const Schema1Array2$outboundSchema: z.ZodType< - Schema1Array2$Outbound, - z.ZodTypeDef, - Schema1Array2 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema1UnifiedKey7$outboundSchema).optional(), - type: z.literal("array"), - item_type: z.lazy(() => Schema2Union2$outboundSchema), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema1Array2$ { - /** @deprecated use `Schema1Array2$inboundSchema` instead. */ - export const inboundSchema = Schema1Array2$inboundSchema; - /** @deprecated use `Schema1Array2$outboundSchema` instead. */ - export const outboundSchema = Schema1Array2$outboundSchema; - /** @deprecated use `Schema1Array2$Outbound` instead. */ - export type Outbound = Schema1Array2$Outbound; -} - -export function schema1Array2ToJSON(schema1Array2: Schema1Array2): string { - return JSON.stringify(Schema1Array2$outboundSchema.parse(schema1Array2)); -} - export function schema1Array2FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/schema2union1.ts b/src/models/schema2union1.ts index 3404e85..b7cee78 100644 --- a/src/models/schema2union1.ts +++ b/src/models/schema2union1.ts @@ -7,12 +7,7 @@ import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; -import { - Schema1, - Schema1$inboundSchema, - Schema1$Outbound, - Schema1$outboundSchema, -} from "./schema1.js"; +import { Schema1, Schema1$inboundSchema } from "./schema1.js"; export const Schema2UnifiedKey8 = { FirstName: "first_name", @@ -368,22 +363,6 @@ export const Schema2UnifiedKey8$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey8 > = z.nativeEnum(Schema2UnifiedKey8); -/** @internal */ -export const Schema2UnifiedKey8$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey8 -> = Schema2UnifiedKey8$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey8$ { - /** @deprecated use `Schema2UnifiedKey8$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey8$inboundSchema; - /** @deprecated use `Schema2UnifiedKey8$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey8$outboundSchema; -} - /** @internal */ export const Schema2FileRestrictions$inboundSchema: z.ZodType< Schema2FileRestrictions, @@ -394,43 +373,6 @@ export const Schema2FileRestrictions$inboundSchema: z.ZodType< max_file_size: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema2FileRestrictions$Outbound = { - accepted_mime_types: Array; - max_file_size?: number | null | undefined; -}; - -/** @internal */ -export const Schema2FileRestrictions$outboundSchema: z.ZodType< - Schema2FileRestrictions$Outbound, - z.ZodTypeDef, - Schema2FileRestrictions -> = z.object({ - accepted_mime_types: z.array(z.string()), - max_file_size: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2FileRestrictions$ { - /** @deprecated use `Schema2FileRestrictions$inboundSchema` instead. */ - export const inboundSchema = Schema2FileRestrictions$inboundSchema; - /** @deprecated use `Schema2FileRestrictions$outboundSchema` instead. */ - export const outboundSchema = Schema2FileRestrictions$outboundSchema; - /** @deprecated use `Schema2FileRestrictions$Outbound` instead. */ - export type Outbound = Schema2FileRestrictions$Outbound; -} - -export function schema2FileRestrictionsToJSON( - schema2FileRestrictions: Schema2FileRestrictions, -): string { - return JSON.stringify( - Schema2FileRestrictions$outboundSchema.parse(schema2FileRestrictions), - ); -} - export function schema2FileRestrictionsFromJSON( jsonString: string, ): SafeParseResult { @@ -455,47 +397,6 @@ export const Schema2File$inboundSchema: z.ZodType< file_restrictions: z.lazy(() => Schema2FileRestrictions$inboundSchema), }); -/** @internal */ -export type Schema2File$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "file"; - file_restrictions: Schema2FileRestrictions$Outbound; -}; - -/** @internal */ -export const Schema2File$outboundSchema: z.ZodType< - Schema2File$Outbound, - z.ZodTypeDef, - Schema2File -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey8$outboundSchema).optional(), - type: z.literal("file"), - file_restrictions: z.lazy(() => Schema2FileRestrictions$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2File$ { - /** @deprecated use `Schema2File$inboundSchema` instead. */ - export const inboundSchema = Schema2File$inboundSchema; - /** @deprecated use `Schema2File$outboundSchema` instead. */ - export const outboundSchema = Schema2File$outboundSchema; - /** @deprecated use `Schema2File$Outbound` instead. */ - export type Outbound = Schema2File$Outbound; -} - -export function schema2FileToJSON(schema2File: Schema2File): string { - return JSON.stringify(Schema2File$outboundSchema.parse(schema2File)); -} - export function schema2FileFromJSON( jsonString: string, ): SafeParseResult { @@ -511,43 +412,11 @@ export const Schema2UnifiedKey7$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey7 > = z.nativeEnum(Schema2UnifiedKey7); -/** @internal */ -export const Schema2UnifiedKey7$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey7 -> = Schema2UnifiedKey7$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey7$ { - /** @deprecated use `Schema2UnifiedKey7$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey7$inboundSchema; - /** @deprecated use `Schema2UnifiedKey7$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey7$outboundSchema; -} - /** @internal */ export const Schema2UnifiedKey1$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey1 > = z.nativeEnum(Schema2UnifiedKey1); -/** @internal */ -export const Schema2UnifiedKey1$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey1 -> = Schema2UnifiedKey1$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey1$ { - /** @deprecated use `Schema2UnifiedKey1$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey1$inboundSchema; - /** @deprecated use `Schema2UnifiedKey1$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey1$outboundSchema; -} - /** @internal */ export const Schema2Text$inboundSchema: z.ZodType< Schema2Text, @@ -564,51 +433,6 @@ export const Schema2Text$inboundSchema: z.ZodType< reg_exp: z.nullable(z.string()).optional(), }); -/** @internal */ -export type Schema2Text$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "text"; - min_length?: number | null | undefined; - max_length?: number | null | undefined; - reg_exp?: string | null | undefined; -}; - -/** @internal */ -export const Schema2Text$outboundSchema: z.ZodType< - Schema2Text$Outbound, - z.ZodTypeDef, - Schema2Text -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey1$outboundSchema).optional(), - type: z.literal("text"), - min_length: z.nullable(z.number()).optional(), - max_length: z.nullable(z.number()).optional(), - reg_exp: z.nullable(z.string()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Text$ { - /** @deprecated use `Schema2Text$inboundSchema` instead. */ - export const inboundSchema = Schema2Text$inboundSchema; - /** @deprecated use `Schema2Text$outboundSchema` instead. */ - export const outboundSchema = Schema2Text$outboundSchema; - /** @deprecated use `Schema2Text$Outbound` instead. */ - export type Outbound = Schema2Text$Outbound; -} - -export function schema2TextToJSON(schema2Text: Schema2Text): string { - return JSON.stringify(Schema2Text$outboundSchema.parse(schema2Text)); -} - export function schema2TextFromJSON( jsonString: string, ): SafeParseResult { @@ -624,22 +448,6 @@ export const Schema2UnifiedKey2$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey2 > = z.nativeEnum(Schema2UnifiedKey2); -/** @internal */ -export const Schema2UnifiedKey2$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey2 -> = Schema2UnifiedKey2$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey2$ { - /** @deprecated use `Schema2UnifiedKey2$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey2$inboundSchema; - /** @deprecated use `Schema2UnifiedKey2$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey2$outboundSchema; -} - /** @internal */ export const Schema2Number$inboundSchema: z.ZodType< Schema2Number, @@ -655,49 +463,6 @@ export const Schema2Number$inboundSchema: z.ZodType< max: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema2Number$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "number"; - min?: number | null | undefined; - max?: number | null | undefined; -}; - -/** @internal */ -export const Schema2Number$outboundSchema: z.ZodType< - Schema2Number$Outbound, - z.ZodTypeDef, - Schema2Number -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey2$outboundSchema).optional(), - type: z.literal("number"), - min: z.nullable(z.number()).optional(), - max: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Number$ { - /** @deprecated use `Schema2Number$inboundSchema` instead. */ - export const inboundSchema = Schema2Number$inboundSchema; - /** @deprecated use `Schema2Number$outboundSchema` instead. */ - export const outboundSchema = Schema2Number$outboundSchema; - /** @deprecated use `Schema2Number$Outbound` instead. */ - export type Outbound = Schema2Number$Outbound; -} - -export function schema2NumberToJSON(schema2Number: Schema2Number): string { - return JSON.stringify(Schema2Number$outboundSchema.parse(schema2Number)); -} - export function schema2NumberFromJSON( jsonString: string, ): SafeParseResult { @@ -713,22 +478,6 @@ export const Schema2UnifiedKey3$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey3 > = z.nativeEnum(Schema2UnifiedKey3); -/** @internal */ -export const Schema2UnifiedKey3$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey3 -> = Schema2UnifiedKey3$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey3$ { - /** @deprecated use `Schema2UnifiedKey3$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey3$inboundSchema; - /** @deprecated use `Schema2UnifiedKey3$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey3$outboundSchema; -} - /** @internal */ export const Schema2Date$inboundSchema: z.ZodType< Schema2Date, @@ -742,45 +491,6 @@ export const Schema2Date$inboundSchema: z.ZodType< type: z.literal("date"), }); -/** @internal */ -export type Schema2Date$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "date"; -}; - -/** @internal */ -export const Schema2Date$outboundSchema: z.ZodType< - Schema2Date$Outbound, - z.ZodTypeDef, - Schema2Date -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey3$outboundSchema).optional(), - type: z.literal("date"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Date$ { - /** @deprecated use `Schema2Date$inboundSchema` instead. */ - export const inboundSchema = Schema2Date$inboundSchema; - /** @deprecated use `Schema2Date$outboundSchema` instead. */ - export const outboundSchema = Schema2Date$outboundSchema; - /** @deprecated use `Schema2Date$Outbound` instead. */ - export type Outbound = Schema2Date$Outbound; -} - -export function schema2DateToJSON(schema2Date: Schema2Date): string { - return JSON.stringify(Schema2Date$outboundSchema.parse(schema2Date)); -} - export function schema2DateFromJSON( jsonString: string, ): SafeParseResult { @@ -796,22 +506,6 @@ export const Schema2UnifiedKey4$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey4 > = z.nativeEnum(Schema2UnifiedKey4); -/** @internal */ -export const Schema2UnifiedKey4$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey4 -> = Schema2UnifiedKey4$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey4$ { - /** @deprecated use `Schema2UnifiedKey4$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey4$inboundSchema; - /** @deprecated use `Schema2UnifiedKey4$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey4$outboundSchema; -} - /** @internal */ export const Schema2RemoteId1$inboundSchema: z.ZodType< Schema2RemoteId1, @@ -819,37 +513,6 @@ export const Schema2RemoteId1$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type Schema2RemoteId1$Outbound = string | number; - -/** @internal */ -export const Schema2RemoteId1$outboundSchema: z.ZodType< - Schema2RemoteId1$Outbound, - z.ZodTypeDef, - Schema2RemoteId1 -> = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2RemoteId1$ { - /** @deprecated use `Schema2RemoteId1$inboundSchema` instead. */ - export const inboundSchema = Schema2RemoteId1$inboundSchema; - /** @deprecated use `Schema2RemoteId1$outboundSchema` instead. */ - export const outboundSchema = Schema2RemoteId1$outboundSchema; - /** @deprecated use `Schema2RemoteId1$Outbound` instead. */ - export type Outbound = Schema2RemoteId1$Outbound; -} - -export function schema2RemoteId1ToJSON( - schema2RemoteId1: Schema2RemoteId1, -): string { - return JSON.stringify( - Schema2RemoteId1$outboundSchema.parse(schema2RemoteId1), - ); -} - export function schema2RemoteId1FromJSON( jsonString: string, ): SafeParseResult { @@ -872,43 +535,6 @@ export const Schema2Entry1$inboundSchema: z.ZodType< remote_id: z.union([z.string(), z.number()]), }); -/** @internal */ -export type Schema2Entry1$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const Schema2Entry1$outboundSchema: z.ZodType< - Schema2Entry1$Outbound, - z.ZodTypeDef, - Schema2Entry1 -> = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Entry1$ { - /** @deprecated use `Schema2Entry1$inboundSchema` instead. */ - export const inboundSchema = Schema2Entry1$inboundSchema; - /** @deprecated use `Schema2Entry1$outboundSchema` instead. */ - export const outboundSchema = Schema2Entry1$outboundSchema; - /** @deprecated use `Schema2Entry1$Outbound` instead. */ - export type Outbound = Schema2Entry1$Outbound; -} - -export function schema2Entry1ToJSON(schema2Entry1: Schema2Entry1): string { - return JSON.stringify(Schema2Entry1$outboundSchema.parse(schema2Entry1)); -} - export function schema2Entry1FromJSON( jsonString: string, ): SafeParseResult { @@ -929,43 +555,6 @@ export const Schema2OptionsInline1$inboundSchema: z.ZodType< entries: z.array(z.lazy(() => Schema2Entry1$inboundSchema)), }); -/** @internal */ -export type Schema2OptionsInline1$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const Schema2OptionsInline1$outboundSchema: z.ZodType< - Schema2OptionsInline1$Outbound, - z.ZodTypeDef, - Schema2OptionsInline1 -> = z.object({ - type: z.literal("inline"), - entries: z.array(z.lazy(() => Schema2Entry1$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsInline1$ { - /** @deprecated use `Schema2OptionsInline1$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsInline1$inboundSchema; - /** @deprecated use `Schema2OptionsInline1$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsInline1$outboundSchema; - /** @deprecated use `Schema2OptionsInline1$Outbound` instead. */ - export type Outbound = Schema2OptionsInline1$Outbound; -} - -export function schema2OptionsInline1ToJSON( - schema2OptionsInline1: Schema2OptionsInline1, -): string { - return JSON.stringify( - Schema2OptionsInline1$outboundSchema.parse(schema2OptionsInline1), - ); -} - export function schema2OptionsInline1FromJSON( jsonString: string, ): SafeParseResult { @@ -986,43 +575,6 @@ export const Schema2OptionsReferenced1$inboundSchema: z.ZodType< link: z.string(), }); -/** @internal */ -export type Schema2OptionsReferenced1$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const Schema2OptionsReferenced1$outboundSchema: z.ZodType< - Schema2OptionsReferenced1$Outbound, - z.ZodTypeDef, - Schema2OptionsReferenced1 -> = z.object({ - type: z.literal("referenced"), - link: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsReferenced1$ { - /** @deprecated use `Schema2OptionsReferenced1$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsReferenced1$inboundSchema; - /** @deprecated use `Schema2OptionsReferenced1$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsReferenced1$outboundSchema; - /** @deprecated use `Schema2OptionsReferenced1$Outbound` instead. */ - export type Outbound = Schema2OptionsReferenced1$Outbound; -} - -export function schema2OptionsReferenced1ToJSON( - schema2OptionsReferenced1: Schema2OptionsReferenced1, -): string { - return JSON.stringify( - Schema2OptionsReferenced1$outboundSchema.parse(schema2OptionsReferenced1), - ); -} - export function schema2OptionsReferenced1FromJSON( jsonString: string, ): SafeParseResult { @@ -1043,42 +595,6 @@ export const Schema2OptionsUnion1$inboundSchema: z.ZodType< z.lazy(() => Schema2OptionsReferenced1$inboundSchema), ]); -/** @internal */ -export type Schema2OptionsUnion1$Outbound = - | Schema2OptionsInline1$Outbound - | Schema2OptionsReferenced1$Outbound; - -/** @internal */ -export const Schema2OptionsUnion1$outboundSchema: z.ZodType< - Schema2OptionsUnion1$Outbound, - z.ZodTypeDef, - Schema2OptionsUnion1 -> = z.union([ - z.lazy(() => Schema2OptionsInline1$outboundSchema), - z.lazy(() => Schema2OptionsReferenced1$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsUnion1$ { - /** @deprecated use `Schema2OptionsUnion1$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsUnion1$inboundSchema; - /** @deprecated use `Schema2OptionsUnion1$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsUnion1$outboundSchema; - /** @deprecated use `Schema2OptionsUnion1$Outbound` instead. */ - export type Outbound = Schema2OptionsUnion1$Outbound; -} - -export function schema2OptionsUnion1ToJSON( - schema2OptionsUnion1: Schema2OptionsUnion1, -): string { - return JSON.stringify( - Schema2OptionsUnion1$outboundSchema.parse(schema2OptionsUnion1), - ); -} - export function schema2OptionsUnion1FromJSON( jsonString: string, ): SafeParseResult { @@ -1106,54 +622,6 @@ export const Schema2SingleSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type Schema2SingleSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "single_select"; - options: Schema2OptionsInline1$Outbound | Schema2OptionsReferenced1$Outbound; -}; - -/** @internal */ -export const Schema2SingleSelect$outboundSchema: z.ZodType< - Schema2SingleSelect$Outbound, - z.ZodTypeDef, - Schema2SingleSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey4$outboundSchema).optional(), - type: z.literal("single_select"), - options: z.union([ - z.lazy(() => Schema2OptionsInline1$outboundSchema), - z.lazy(() => Schema2OptionsReferenced1$outboundSchema), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2SingleSelect$ { - /** @deprecated use `Schema2SingleSelect$inboundSchema` instead. */ - export const inboundSchema = Schema2SingleSelect$inboundSchema; - /** @deprecated use `Schema2SingleSelect$outboundSchema` instead. */ - export const outboundSchema = Schema2SingleSelect$outboundSchema; - /** @deprecated use `Schema2SingleSelect$Outbound` instead. */ - export type Outbound = Schema2SingleSelect$Outbound; -} - -export function schema2SingleSelectToJSON( - schema2SingleSelect: Schema2SingleSelect, -): string { - return JSON.stringify( - Schema2SingleSelect$outboundSchema.parse(schema2SingleSelect), - ); -} - export function schema2SingleSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1171,37 +639,6 @@ export const Schema2RemoteId2$inboundSchema: z.ZodType< unknown > = z.union([z.string(), z.number()]); -/** @internal */ -export type Schema2RemoteId2$Outbound = string | number; - -/** @internal */ -export const Schema2RemoteId2$outboundSchema: z.ZodType< - Schema2RemoteId2$Outbound, - z.ZodTypeDef, - Schema2RemoteId2 -> = z.union([z.string(), z.number()]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2RemoteId2$ { - /** @deprecated use `Schema2RemoteId2$inboundSchema` instead. */ - export const inboundSchema = Schema2RemoteId2$inboundSchema; - /** @deprecated use `Schema2RemoteId2$outboundSchema` instead. */ - export const outboundSchema = Schema2RemoteId2$outboundSchema; - /** @deprecated use `Schema2RemoteId2$Outbound` instead. */ - export type Outbound = Schema2RemoteId2$Outbound; -} - -export function schema2RemoteId2ToJSON( - schema2RemoteId2: Schema2RemoteId2, -): string { - return JSON.stringify( - Schema2RemoteId2$outboundSchema.parse(schema2RemoteId2), - ); -} - export function schema2RemoteId2FromJSON( jsonString: string, ): SafeParseResult { @@ -1224,43 +661,6 @@ export const Schema2Entry2$inboundSchema: z.ZodType< remote_id: z.union([z.string(), z.number()]), }); -/** @internal */ -export type Schema2Entry2$Outbound = { - id: string; - label: string; - unified_value?: string | undefined; - remote_id: string | number; -}; - -/** @internal */ -export const Schema2Entry2$outboundSchema: z.ZodType< - Schema2Entry2$Outbound, - z.ZodTypeDef, - Schema2Entry2 -> = z.object({ - id: z.string(), - label: z.string(), - unified_value: z.string().optional(), - remote_id: z.union([z.string(), z.number()]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Entry2$ { - /** @deprecated use `Schema2Entry2$inboundSchema` instead. */ - export const inboundSchema = Schema2Entry2$inboundSchema; - /** @deprecated use `Schema2Entry2$outboundSchema` instead. */ - export const outboundSchema = Schema2Entry2$outboundSchema; - /** @deprecated use `Schema2Entry2$Outbound` instead. */ - export type Outbound = Schema2Entry2$Outbound; -} - -export function schema2Entry2ToJSON(schema2Entry2: Schema2Entry2): string { - return JSON.stringify(Schema2Entry2$outboundSchema.parse(schema2Entry2)); -} - export function schema2Entry2FromJSON( jsonString: string, ): SafeParseResult { @@ -1281,43 +681,6 @@ export const Schema2OptionsInline2$inboundSchema: z.ZodType< entries: z.array(z.lazy(() => Schema2Entry2$inboundSchema)), }); -/** @internal */ -export type Schema2OptionsInline2$Outbound = { - type: "inline"; - entries: Array; -}; - -/** @internal */ -export const Schema2OptionsInline2$outboundSchema: z.ZodType< - Schema2OptionsInline2$Outbound, - z.ZodTypeDef, - Schema2OptionsInline2 -> = z.object({ - type: z.literal("inline"), - entries: z.array(z.lazy(() => Schema2Entry2$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsInline2$ { - /** @deprecated use `Schema2OptionsInline2$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsInline2$inboundSchema; - /** @deprecated use `Schema2OptionsInline2$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsInline2$outboundSchema; - /** @deprecated use `Schema2OptionsInline2$Outbound` instead. */ - export type Outbound = Schema2OptionsInline2$Outbound; -} - -export function schema2OptionsInline2ToJSON( - schema2OptionsInline2: Schema2OptionsInline2, -): string { - return JSON.stringify( - Schema2OptionsInline2$outboundSchema.parse(schema2OptionsInline2), - ); -} - export function schema2OptionsInline2FromJSON( jsonString: string, ): SafeParseResult { @@ -1338,43 +701,6 @@ export const Schema2OptionsReferenced2$inboundSchema: z.ZodType< link: z.string(), }); -/** @internal */ -export type Schema2OptionsReferenced2$Outbound = { - type: "referenced"; - link: string; -}; - -/** @internal */ -export const Schema2OptionsReferenced2$outboundSchema: z.ZodType< - Schema2OptionsReferenced2$Outbound, - z.ZodTypeDef, - Schema2OptionsReferenced2 -> = z.object({ - type: z.literal("referenced"), - link: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsReferenced2$ { - /** @deprecated use `Schema2OptionsReferenced2$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsReferenced2$inboundSchema; - /** @deprecated use `Schema2OptionsReferenced2$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsReferenced2$outboundSchema; - /** @deprecated use `Schema2OptionsReferenced2$Outbound` instead. */ - export type Outbound = Schema2OptionsReferenced2$Outbound; -} - -export function schema2OptionsReferenced2ToJSON( - schema2OptionsReferenced2: Schema2OptionsReferenced2, -): string { - return JSON.stringify( - Schema2OptionsReferenced2$outboundSchema.parse(schema2OptionsReferenced2), - ); -} - export function schema2OptionsReferenced2FromJSON( jsonString: string, ): SafeParseResult { @@ -1395,42 +721,6 @@ export const Schema2OptionsUnion2$inboundSchema: z.ZodType< z.lazy(() => Schema2OptionsReferenced2$inboundSchema), ]); -/** @internal */ -export type Schema2OptionsUnion2$Outbound = - | Schema2OptionsInline2$Outbound - | Schema2OptionsReferenced2$Outbound; - -/** @internal */ -export const Schema2OptionsUnion2$outboundSchema: z.ZodType< - Schema2OptionsUnion2$Outbound, - z.ZodTypeDef, - Schema2OptionsUnion2 -> = z.union([ - z.lazy(() => Schema2OptionsInline2$outboundSchema), - z.lazy(() => Schema2OptionsReferenced2$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2OptionsUnion2$ { - /** @deprecated use `Schema2OptionsUnion2$inboundSchema` instead. */ - export const inboundSchema = Schema2OptionsUnion2$inboundSchema; - /** @deprecated use `Schema2OptionsUnion2$outboundSchema` instead. */ - export const outboundSchema = Schema2OptionsUnion2$outboundSchema; - /** @deprecated use `Schema2OptionsUnion2$Outbound` instead. */ - export type Outbound = Schema2OptionsUnion2$Outbound; -} - -export function schema2OptionsUnion2ToJSON( - schema2OptionsUnion2: Schema2OptionsUnion2, -): string { - return JSON.stringify( - Schema2OptionsUnion2$outboundSchema.parse(schema2OptionsUnion2), - ); -} - export function schema2OptionsUnion2FromJSON( jsonString: string, ): SafeParseResult { @@ -1460,58 +750,6 @@ export const Schema2MultiSelect$inboundSchema: z.ZodType< ]), }); -/** @internal */ -export type Schema2MultiSelect$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "multi_select"; - min_items?: number | null | undefined; - max_items?: number | null | undefined; - options: Schema2OptionsInline2$Outbound | Schema2OptionsReferenced2$Outbound; -}; - -/** @internal */ -export const Schema2MultiSelect$outboundSchema: z.ZodType< - Schema2MultiSelect$Outbound, - z.ZodTypeDef, - Schema2MultiSelect -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(z.string()).optional(), - type: z.literal("multi_select"), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), - options: z.union([ - z.lazy(() => Schema2OptionsInline2$outboundSchema), - z.lazy(() => Schema2OptionsReferenced2$outboundSchema), - ]), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2MultiSelect$ { - /** @deprecated use `Schema2MultiSelect$inboundSchema` instead. */ - export const inboundSchema = Schema2MultiSelect$inboundSchema; - /** @deprecated use `Schema2MultiSelect$outboundSchema` instead. */ - export const outboundSchema = Schema2MultiSelect$outboundSchema; - /** @deprecated use `Schema2MultiSelect$Outbound` instead. */ - export type Outbound = Schema2MultiSelect$Outbound; -} - -export function schema2MultiSelectToJSON( - schema2MultiSelect: Schema2MultiSelect, -): string { - return JSON.stringify( - Schema2MultiSelect$outboundSchema.parse(schema2MultiSelect), - ); -} - export function schema2MultiSelectFromJSON( jsonString: string, ): SafeParseResult { @@ -1527,22 +765,6 @@ export const Schema2UnifiedKey5$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey5 > = z.nativeEnum(Schema2UnifiedKey5); -/** @internal */ -export const Schema2UnifiedKey5$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey5 -> = Schema2UnifiedKey5$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey5$ { - /** @deprecated use `Schema2UnifiedKey5$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey5$inboundSchema; - /** @deprecated use `Schema2UnifiedKey5$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey5$outboundSchema; -} - /** @internal */ export const Schema2Checkbox$inboundSchema: z.ZodType< Schema2Checkbox, @@ -1556,47 +778,6 @@ export const Schema2Checkbox$inboundSchema: z.ZodType< type: z.literal("checkbox"), }); -/** @internal */ -export type Schema2Checkbox$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "checkbox"; -}; - -/** @internal */ -export const Schema2Checkbox$outboundSchema: z.ZodType< - Schema2Checkbox$Outbound, - z.ZodTypeDef, - Schema2Checkbox -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey5$outboundSchema).optional(), - type: z.literal("checkbox"), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Checkbox$ { - /** @deprecated use `Schema2Checkbox$inboundSchema` instead. */ - export const inboundSchema = Schema2Checkbox$inboundSchema; - /** @deprecated use `Schema2Checkbox$outboundSchema` instead. */ - export const outboundSchema = Schema2Checkbox$outboundSchema; - /** @deprecated use `Schema2Checkbox$Outbound` instead. */ - export type Outbound = Schema2Checkbox$Outbound; -} - -export function schema2CheckboxToJSON( - schema2Checkbox: Schema2Checkbox, -): string { - return JSON.stringify(Schema2Checkbox$outboundSchema.parse(schema2Checkbox)); -} - export function schema2CheckboxFromJSON( jsonString: string, ): SafeParseResult { @@ -1612,22 +793,6 @@ export const Schema2UnifiedKey6$inboundSchema: z.ZodNativeEnum< typeof Schema2UnifiedKey6 > = z.nativeEnum(Schema2UnifiedKey6); -/** @internal */ -export const Schema2UnifiedKey6$outboundSchema: z.ZodNativeEnum< - typeof Schema2UnifiedKey6 -> = Schema2UnifiedKey6$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2UnifiedKey6$ { - /** @deprecated use `Schema2UnifiedKey6$inboundSchema` instead. */ - export const inboundSchema = Schema2UnifiedKey6$inboundSchema; - /** @deprecated use `Schema2UnifiedKey6$outboundSchema` instead. */ - export const outboundSchema = Schema2UnifiedKey6$outboundSchema; -} - /** @internal */ export const Schema2Object1$inboundSchema: z.ZodType< Schema2Object1, @@ -1642,47 +807,6 @@ export const Schema2Object1$inboundSchema: z.ZodType< properties: Schema1$inboundSchema, }); -/** @internal */ -export type Schema2Object1$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "object"; - properties: Schema1$Outbound; -}; - -/** @internal */ -export const Schema2Object1$outboundSchema: z.ZodType< - Schema2Object1$Outbound, - z.ZodTypeDef, - Schema2Object1 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey6$outboundSchema).optional(), - type: z.literal("object"), - properties: Schema1$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Object1$ { - /** @deprecated use `Schema2Object1$inboundSchema` instead. */ - export const inboundSchema = Schema2Object1$inboundSchema; - /** @deprecated use `Schema2Object1$outboundSchema` instead. */ - export const outboundSchema = Schema2Object1$outboundSchema; - /** @deprecated use `Schema2Object1$Outbound` instead. */ - export type Outbound = Schema2Object1$Outbound; -} - -export function schema2Object1ToJSON(schema2Object1: Schema2Object1): string { - return JSON.stringify(Schema2Object1$outboundSchema.parse(schema2Object1)); -} - export function schema2Object1FromJSON( jsonString: string, ): SafeParseResult { @@ -1710,52 +834,6 @@ export const Schema2Union1$inboundSchema: z.ZodType< z.lazy(() => Schema2Checkbox$inboundSchema), ]); -/** @internal */ -export type Schema2Union1$Outbound = - | Schema2SingleSelect$Outbound - | Schema2MultiSelect$Outbound - | Schema2Object1$Outbound - | Schema2Array1$Outbound - | Schema2File$Outbound - | Schema2Text$Outbound - | Schema2Number$Outbound - | Schema2Date$Outbound - | Schema2Checkbox$Outbound; - -/** @internal */ -export const Schema2Union1$outboundSchema: z.ZodType< - Schema2Union1$Outbound, - z.ZodTypeDef, - Schema2Union1 -> = z.union([ - z.lazy(() => Schema2SingleSelect$outboundSchema), - z.lazy(() => Schema2MultiSelect$outboundSchema), - z.lazy(() => Schema2Object1$outboundSchema), - z.lazy(() => Schema2Array1$outboundSchema), - z.lazy(() => Schema2File$outboundSchema), - z.lazy(() => Schema2Text$outboundSchema), - z.lazy(() => Schema2Number$outboundSchema), - z.lazy(() => Schema2Date$outboundSchema), - z.lazy(() => Schema2Checkbox$outboundSchema), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Union1$ { - /** @deprecated use `Schema2Union1$inboundSchema` instead. */ - export const inboundSchema = Schema2Union1$inboundSchema; - /** @deprecated use `Schema2Union1$outboundSchema` instead. */ - export const outboundSchema = Schema2Union1$outboundSchema; - /** @deprecated use `Schema2Union1$Outbound` instead. */ - export type Outbound = Schema2Union1$Outbound; -} - -export function schema2Union1ToJSON(schema2Union1: Schema2Union1): string { - return JSON.stringify(Schema2Union1$outboundSchema.parse(schema2Union1)); -} - export function schema2Union1FromJSON( jsonString: string, ): SafeParseResult { @@ -1792,70 +870,6 @@ export const Schema2Array1$inboundSchema: z.ZodType< max_items: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema2Array1$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "array"; - item_type: - | Schema2SingleSelect$Outbound - | Schema2MultiSelect$Outbound - | Schema2Object1$Outbound - | Schema2Array1$Outbound - | Schema2File$Outbound - | Schema2Text$Outbound - | Schema2Number$Outbound - | Schema2Date$Outbound - | Schema2Checkbox$Outbound; - min_items?: number | null | undefined; - max_items?: number | null | undefined; -}; - -/** @internal */ -export const Schema2Array1$outboundSchema: z.ZodType< - Schema2Array1$Outbound, - z.ZodTypeDef, - Schema2Array1 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey7$outboundSchema).optional(), - type: z.literal("array"), - item_type: z.union([ - z.lazy(() => Schema2SingleSelect$outboundSchema), - z.lazy(() => Schema2MultiSelect$outboundSchema), - z.lazy(() => Schema2Object1$outboundSchema), - z.lazy(() => Schema2Array1$outboundSchema), - z.lazy(() => Schema2File$outboundSchema), - z.lazy(() => Schema2Text$outboundSchema), - z.lazy(() => Schema2Number$outboundSchema), - z.lazy(() => Schema2Date$outboundSchema), - z.lazy(() => Schema2Checkbox$outboundSchema), - ]), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Array1$ { - /** @deprecated use `Schema2Array1$inboundSchema` instead. */ - export const inboundSchema = Schema2Array1$inboundSchema; - /** @deprecated use `Schema2Array1$outboundSchema` instead. */ - export const outboundSchema = Schema2Array1$outboundSchema; - /** @deprecated use `Schema2Array1$Outbound` instead. */ - export type Outbound = Schema2Array1$Outbound; -} - -export function schema2Array1ToJSON(schema2Array1: Schema2Array1): string { - return JSON.stringify(Schema2Array1$outboundSchema.parse(schema2Array1)); -} - export function schema2Array1FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/schema2union2.ts b/src/models/schema2union2.ts index 4f0f112..6d348ef 100644 --- a/src/models/schema2union2.ts +++ b/src/models/schema2union2.ts @@ -6,47 +6,26 @@ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; -import { - Schema1Union2, - Schema1Union2$inboundSchema, - Schema1Union2$Outbound, - Schema1Union2$outboundSchema, -} from "./schema1union2.js"; +import { Schema1Union2, Schema1Union2$inboundSchema } from "./schema1union2.js"; import { Schema2Checkbox, Schema2Checkbox$inboundSchema, - Schema2Checkbox$Outbound, - Schema2Checkbox$outboundSchema, Schema2Date, Schema2Date$inboundSchema, - Schema2Date$Outbound, - Schema2Date$outboundSchema, Schema2File, Schema2File$inboundSchema, - Schema2File$Outbound, - Schema2File$outboundSchema, Schema2MultiSelect, Schema2MultiSelect$inboundSchema, - Schema2MultiSelect$Outbound, - Schema2MultiSelect$outboundSchema, Schema2Number, Schema2Number$inboundSchema, - Schema2Number$Outbound, - Schema2Number$outboundSchema, Schema2SingleSelect, Schema2SingleSelect$inboundSchema, - Schema2SingleSelect$Outbound, - Schema2SingleSelect$outboundSchema, Schema2Text, Schema2Text$inboundSchema, - Schema2Text$Outbound, - Schema2Text$outboundSchema, Schema2UnifiedKey6, Schema2UnifiedKey6$inboundSchema, - Schema2UnifiedKey6$outboundSchema, Schema2UnifiedKey7, Schema2UnifiedKey7$inboundSchema, - Schema2UnifiedKey7$outboundSchema, } from "./schema2union1.js"; export type Schema2Object2 = { @@ -103,47 +82,6 @@ export const Schema2Object2$inboundSchema: z.ZodType< properties: z.record(z.lazy(() => Schema1Union2$inboundSchema)), }); -/** @internal */ -export type Schema2Object2$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "object"; - properties: { [k: string]: Schema1Union2$Outbound }; -}; - -/** @internal */ -export const Schema2Object2$outboundSchema: z.ZodType< - Schema2Object2$Outbound, - z.ZodTypeDef, - Schema2Object2 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey6$outboundSchema).optional(), - type: z.literal("object"), - properties: z.record(z.lazy(() => Schema1Union2$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Object2$ { - /** @deprecated use `Schema2Object2$inboundSchema` instead. */ - export const inboundSchema = Schema2Object2$inboundSchema; - /** @deprecated use `Schema2Object2$outboundSchema` instead. */ - export const outboundSchema = Schema2Object2$outboundSchema; - /** @deprecated use `Schema2Object2$Outbound` instead. */ - export type Outbound = Schema2Object2$Outbound; -} - -export function schema2Object2ToJSON(schema2Object2: Schema2Object2): string { - return JSON.stringify(Schema2Object2$outboundSchema.parse(schema2Object2)); -} - export function schema2Object2FromJSON( jsonString: string, ): SafeParseResult { @@ -171,52 +109,6 @@ export const Schema2Union2$inboundSchema: z.ZodType< Schema2Checkbox$inboundSchema, ]); -/** @internal */ -export type Schema2Union2$Outbound = - | Schema2SingleSelect$Outbound - | Schema2MultiSelect$Outbound - | Schema2Object2$Outbound - | Schema2Array2$Outbound - | Schema2File$Outbound - | Schema2Text$Outbound - | Schema2Number$Outbound - | Schema2Date$Outbound - | Schema2Checkbox$Outbound; - -/** @internal */ -export const Schema2Union2$outboundSchema: z.ZodType< - Schema2Union2$Outbound, - z.ZodTypeDef, - Schema2Union2 -> = z.union([ - Schema2SingleSelect$outboundSchema, - Schema2MultiSelect$outboundSchema, - z.lazy(() => Schema2Object2$outboundSchema), - z.lazy(() => Schema2Array2$outboundSchema), - Schema2File$outboundSchema, - Schema2Text$outboundSchema, - Schema2Number$outboundSchema, - Schema2Date$outboundSchema, - Schema2Checkbox$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Union2$ { - /** @deprecated use `Schema2Union2$inboundSchema` instead. */ - export const inboundSchema = Schema2Union2$inboundSchema; - /** @deprecated use `Schema2Union2$outboundSchema` instead. */ - export const outboundSchema = Schema2Union2$outboundSchema; - /** @deprecated use `Schema2Union2$Outbound` instead. */ - export type Outbound = Schema2Union2$Outbound; -} - -export function schema2Union2ToJSON(schema2Union2: Schema2Union2): string { - return JSON.stringify(Schema2Union2$outboundSchema.parse(schema2Union2)); -} - export function schema2Union2FromJSON( jsonString: string, ): SafeParseResult { @@ -253,70 +145,6 @@ export const Schema2Array2$inboundSchema: z.ZodType< max_items: z.nullable(z.number()).optional(), }); -/** @internal */ -export type Schema2Array2$Outbound = { - label: string; - required: boolean; - description?: string | null | undefined; - unified_key?: string | null | undefined; - type: "array"; - item_type: - | Schema2SingleSelect$Outbound - | Schema2MultiSelect$Outbound - | Schema2Object2$Outbound - | Schema2Array2$Outbound - | Schema2File$Outbound - | Schema2Text$Outbound - | Schema2Number$Outbound - | Schema2Date$Outbound - | Schema2Checkbox$Outbound; - min_items?: number | null | undefined; - max_items?: number | null | undefined; -}; - -/** @internal */ -export const Schema2Array2$outboundSchema: z.ZodType< - Schema2Array2$Outbound, - z.ZodTypeDef, - Schema2Array2 -> = z.object({ - label: z.string(), - required: z.boolean(), - description: z.nullable(z.string()).optional(), - unified_key: z.nullable(Schema2UnifiedKey7$outboundSchema).optional(), - type: z.literal("array"), - item_type: z.union([ - Schema2SingleSelect$outboundSchema, - Schema2MultiSelect$outboundSchema, - z.lazy(() => Schema2Object2$outboundSchema), - z.lazy(() => Schema2Array2$outboundSchema), - Schema2File$outboundSchema, - Schema2Text$outboundSchema, - Schema2Number$outboundSchema, - Schema2Date$outboundSchema, - Schema2Checkbox$outboundSchema, - ]), - min_items: z.nullable(z.number()).optional(), - max_items: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema2Array2$ { - /** @deprecated use `Schema2Array2$inboundSchema` instead. */ - export const inboundSchema = Schema2Array2$inboundSchema; - /** @deprecated use `Schema2Array2$outboundSchema` instead. */ - export const outboundSchema = Schema2Array2$outboundSchema; - /** @deprecated use `Schema2Array2$Outbound` instead. */ - export type Outbound = Schema2Array2$Outbound; -} - -export function schema2Array2ToJSON(schema2Array2: Schema2Array2): string { - return JSON.stringify(Schema2Array2$outboundSchema.parse(schema2Array2)); -} - export function schema2Array2FromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/schema4.ts b/src/models/schema4.ts index 1a46ca1..5a8edef 100644 --- a/src/models/schema4.ts +++ b/src/models/schema4.ts @@ -3,9 +3,6 @@ */ import * as z from "zod/v3"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Schema4 = | string @@ -14,16 +11,6 @@ export type Schema4 = | { [k: string]: Schema4 } | Array; -/** @internal */ -export const Schema4$inboundSchema: z.ZodType = - z.union([ - z.string(), - z.number(), - z.boolean(), - z.record(z.lazy(() => Schema4$inboundSchema)), - z.array(z.lazy(() => Schema4$inboundSchema)), - ]); - /** @internal */ export type Schema4$Outbound = string | number | boolean | { [k: string]: Schema4$Outbound; @@ -42,29 +29,6 @@ export const Schema4$outboundSchema: z.ZodType< z.array(z.lazy(() => Schema4$outboundSchema)), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Schema4$ { - /** @deprecated use `Schema4$inboundSchema` instead. */ - export const inboundSchema = Schema4$inboundSchema; - /** @deprecated use `Schema4$outboundSchema` instead. */ - export const outboundSchema = Schema4$outboundSchema; - /** @deprecated use `Schema4$Outbound` instead. */ - export type Outbound = Schema4$Outbound; -} - export function schema4ToJSON(schema4: Schema4): string { return JSON.stringify(Schema4$outboundSchema.parse(schema4)); } - -export function schema4FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Schema4$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Schema4' from JSON`, - ); -} diff --git a/src/models/security.ts b/src/models/security.ts index cb1eec6..cd9ef6f 100644 --- a/src/models/security.ts +++ b/src/models/security.ts @@ -4,27 +4,11 @@ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { Result as SafeParseResult } from "../types/fp.js"; -import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Security = { api_key: string; }; -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - ApiKey: z.string(), -}).transform((v) => { - return remap$(v, { - "ApiKey": "api_key", - }); -}); - /** @internal */ export type Security$Outbound = { ApiKey: string; @@ -43,29 +27,6 @@ export const Security$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/src/models/syncfinishedwebhookpayload.ts b/src/models/syncfinishedwebhookpayload.ts index 50f15d9..917f926 100644 --- a/src/models/syncfinishedwebhookpayload.ts +++ b/src/models/syncfinishedwebhookpayload.ts @@ -113,46 +113,20 @@ export type SyncFinishedWebhookPayload = { export const SyncFinishedWebhookPayloadType$inboundSchema: z.ZodNativeEnum< typeof SyncFinishedWebhookPayloadType > = z.nativeEnum(SyncFinishedWebhookPayloadType); - /** @internal */ export const SyncFinishedWebhookPayloadType$outboundSchema: z.ZodNativeEnum< typeof SyncFinishedWebhookPayloadType > = SyncFinishedWebhookPayloadType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncFinishedWebhookPayloadType$ { - /** @deprecated use `SyncFinishedWebhookPayloadType$inboundSchema` instead. */ - export const inboundSchema = SyncFinishedWebhookPayloadType$inboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadType$outboundSchema` instead. */ - export const outboundSchema = SyncFinishedWebhookPayloadType$outboundSchema; -} - /** @internal */ export const SyncFinishedWebhookPayloadIntegrationCategory$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SyncFinishedWebhookPayloadIntegrationCategory); - /** @internal */ export const SyncFinishedWebhookPayloadIntegrationCategory$outboundSchema: z.ZodNativeEnum = SyncFinishedWebhookPayloadIntegrationCategory$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncFinishedWebhookPayloadIntegrationCategory$ { - /** @deprecated use `SyncFinishedWebhookPayloadIntegrationCategory$inboundSchema` instead. */ - export const inboundSchema = - SyncFinishedWebhookPayloadIntegrationCategory$inboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadIntegrationCategory$outboundSchema` instead. */ - export const outboundSchema = - SyncFinishedWebhookPayloadIntegrationCategory$outboundSchema; -} - /** @internal */ export const SyncFinishedWebhookPayloadEndUser$inboundSchema: z.ZodType< SyncFinishedWebhookPayloadEndUser, @@ -163,7 +137,6 @@ export const SyncFinishedWebhookPayloadEndUser$inboundSchema: z.ZodType< creator_email: z.nullable(z.string()), origin_id: z.nullable(z.string()), }); - /** @internal */ export type SyncFinishedWebhookPayloadEndUser$Outbound = { organization_name: string; @@ -182,20 +155,6 @@ export const SyncFinishedWebhookPayloadEndUser$outboundSchema: z.ZodType< origin_id: z.nullable(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncFinishedWebhookPayloadEndUser$ { - /** @deprecated use `SyncFinishedWebhookPayloadEndUser$inboundSchema` instead. */ - export const inboundSchema = SyncFinishedWebhookPayloadEndUser$inboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadEndUser$outboundSchema` instead. */ - export const outboundSchema = - SyncFinishedWebhookPayloadEndUser$outboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadEndUser$Outbound` instead. */ - export type Outbound = SyncFinishedWebhookPayloadEndUser$Outbound; -} - export function syncFinishedWebhookPayloadEndUserToJSON( syncFinishedWebhookPayloadEndUser: SyncFinishedWebhookPayloadEndUser, ): string { @@ -205,7 +164,6 @@ export function syncFinishedWebhookPayloadEndUserToJSON( ), ); } - export function syncFinishedWebhookPayloadEndUserFromJSON( jsonString: string, ): SafeParseResult { @@ -238,7 +196,6 @@ export const SyncFinishedWebhookPayloadData$inboundSchema: z.ZodType< end_user: z.lazy(() => SyncFinishedWebhookPayloadEndUser$inboundSchema), log_url: z.string(), }); - /** @internal */ export type SyncFinishedWebhookPayloadData$Outbound = { sync_id: string; @@ -272,19 +229,6 @@ export const SyncFinishedWebhookPayloadData$outboundSchema: z.ZodType< log_url: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncFinishedWebhookPayloadData$ { - /** @deprecated use `SyncFinishedWebhookPayloadData$inboundSchema` instead. */ - export const inboundSchema = SyncFinishedWebhookPayloadData$inboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadData$outboundSchema` instead. */ - export const outboundSchema = SyncFinishedWebhookPayloadData$outboundSchema; - /** @deprecated use `SyncFinishedWebhookPayloadData$Outbound` instead. */ - export type Outbound = SyncFinishedWebhookPayloadData$Outbound; -} - export function syncFinishedWebhookPayloadDataToJSON( syncFinishedWebhookPayloadData: SyncFinishedWebhookPayloadData, ): string { @@ -294,7 +238,6 @@ export function syncFinishedWebhookPayloadDataToJSON( ), ); } - export function syncFinishedWebhookPayloadDataFromJSON( jsonString: string, ): SafeParseResult { @@ -315,7 +258,6 @@ export const SyncFinishedWebhookPayload$inboundSchema: z.ZodType< type: SyncFinishedWebhookPayloadType$inboundSchema, data: z.lazy(() => SyncFinishedWebhookPayloadData$inboundSchema), }); - /** @internal */ export type SyncFinishedWebhookPayload$Outbound = { id: string; @@ -334,19 +276,6 @@ export const SyncFinishedWebhookPayload$outboundSchema: z.ZodType< data: z.lazy(() => SyncFinishedWebhookPayloadData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncFinishedWebhookPayload$ { - /** @deprecated use `SyncFinishedWebhookPayload$inboundSchema` instead. */ - export const inboundSchema = SyncFinishedWebhookPayload$inboundSchema; - /** @deprecated use `SyncFinishedWebhookPayload$outboundSchema` instead. */ - export const outboundSchema = SyncFinishedWebhookPayload$outboundSchema; - /** @deprecated use `SyncFinishedWebhookPayload$Outbound` instead. */ - export type Outbound = SyncFinishedWebhookPayload$Outbound; -} - export function syncFinishedWebhookPayloadToJSON( syncFinishedWebhookPayload: SyncFinishedWebhookPayload, ): string { @@ -354,7 +283,6 @@ export function syncFinishedWebhookPayloadToJSON( SyncFinishedWebhookPayload$outboundSchema.parse(syncFinishedWebhookPayload), ); } - export function syncFinishedWebhookPayloadFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/webhooks/webhookassessmentorderreceivedwebhookpayload.ts b/src/models/webhooks/webhookassessmentorderreceivedwebhookpayload.ts index 9945dec..e025073 100644 --- a/src/models/webhooks/webhookassessmentorderreceivedwebhookpayload.ts +++ b/src/models/webhooks/webhookassessmentorderreceivedwebhookpayload.ts @@ -14,8 +14,7 @@ export type WebhookAssessmentOrderReceivedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - assessment_order_received_webhook_payload: - models.AssessmentOrderReceivedWebhookPayload; + body: models.AssessmentOrderReceivedWebhookPayload; }; /** @internal */ @@ -26,21 +25,16 @@ export const WebhookAssessmentOrderReceivedWebhookPayloadRequest$inboundSchema: unknown > = z.object({ "X-Kombo-Signature": z.string(), - AssessmentOrderReceivedWebhookPayload: - models.AssessmentOrderReceivedWebhookPayload$inboundSchema, + body: models.AssessmentOrderReceivedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "AssessmentOrderReceivedWebhookPayload": - "assessment_order_received_webhook_payload", }); }); - /** @internal */ export type WebhookAssessmentOrderReceivedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - AssessmentOrderReceivedWebhookPayload: - models.AssessmentOrderReceivedWebhookPayload$Outbound; + body: models.AssessmentOrderReceivedWebhookPayload$Outbound; }; /** @internal */ @@ -51,32 +45,13 @@ export const WebhookAssessmentOrderReceivedWebhookPayloadRequest$outboundSchema: WebhookAssessmentOrderReceivedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - assessment_order_received_webhook_payload: - models.AssessmentOrderReceivedWebhookPayload$outboundSchema, + body: models.AssessmentOrderReceivedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - assessment_order_received_webhook_payload: - "AssessmentOrderReceivedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookAssessmentOrderReceivedWebhookPayloadRequest$ { - /** @deprecated use `WebhookAssessmentOrderReceivedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookAssessmentOrderReceivedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookAssessmentOrderReceivedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookAssessmentOrderReceivedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookAssessmentOrderReceivedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookAssessmentOrderReceivedWebhookPayloadRequest$Outbound; -} - export function webhookAssessmentOrderReceivedWebhookPayloadRequestToJSON( webhookAssessmentOrderReceivedWebhookPayloadRequest: WebhookAssessmentOrderReceivedWebhookPayloadRequest, @@ -87,7 +62,6 @@ export function webhookAssessmentOrderReceivedWebhookPayloadRequestToJSON( ), ); } - export function webhookAssessmentOrderReceivedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookconnectionflowfailedwebhookpayload.ts b/src/models/webhooks/webhookconnectionflowfailedwebhookpayload.ts index 5b56ab6..5965955 100644 --- a/src/models/webhooks/webhookconnectionflowfailedwebhookpayload.ts +++ b/src/models/webhooks/webhookconnectionflowfailedwebhookpayload.ts @@ -14,8 +14,7 @@ export type WebhookConnectionFlowFailedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - connection_flow_failed_webhook_payload: - models.ConnectionFlowFailedWebhookPayload; + body: models.ConnectionFlowFailedWebhookPayload; }; /** @internal */ @@ -26,21 +25,16 @@ export const WebhookConnectionFlowFailedWebhookPayloadRequest$inboundSchema: unknown > = z.object({ "X-Kombo-Signature": z.string(), - ConnectionFlowFailedWebhookPayload: - models.ConnectionFlowFailedWebhookPayload$inboundSchema, + body: models.ConnectionFlowFailedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "ConnectionFlowFailedWebhookPayload": - "connection_flow_failed_webhook_payload", }); }); - /** @internal */ export type WebhookConnectionFlowFailedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - ConnectionFlowFailedWebhookPayload: - models.ConnectionFlowFailedWebhookPayload$Outbound; + body: models.ConnectionFlowFailedWebhookPayload$Outbound; }; /** @internal */ @@ -51,32 +45,13 @@ export const WebhookConnectionFlowFailedWebhookPayloadRequest$outboundSchema: WebhookConnectionFlowFailedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - connection_flow_failed_webhook_payload: - models.ConnectionFlowFailedWebhookPayload$outboundSchema, + body: models.ConnectionFlowFailedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - connection_flow_failed_webhook_payload: - "ConnectionFlowFailedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookConnectionFlowFailedWebhookPayloadRequest$ { - /** @deprecated use `WebhookConnectionFlowFailedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookConnectionFlowFailedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookConnectionFlowFailedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookConnectionFlowFailedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookConnectionFlowFailedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookConnectionFlowFailedWebhookPayloadRequest$Outbound; -} - export function webhookConnectionFlowFailedWebhookPayloadRequestToJSON( webhookConnectionFlowFailedWebhookPayloadRequest: WebhookConnectionFlowFailedWebhookPayloadRequest, @@ -87,7 +62,6 @@ export function webhookConnectionFlowFailedWebhookPayloadRequestToJSON( ), ); } - export function webhookConnectionFlowFailedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookdatachangedwebhookpayload.ts b/src/models/webhooks/webhookdatachangedwebhookpayload.ts index aef88d5..2e31224 100644 --- a/src/models/webhooks/webhookdatachangedwebhookpayload.ts +++ b/src/models/webhooks/webhookdatachangedwebhookpayload.ts @@ -14,7 +14,7 @@ export type WebhookDataChangedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - data_changed_webhook_payload: models.DataChangedWebhookPayload; + body: models.DataChangedWebhookPayload; }; /** @internal */ @@ -24,18 +24,16 @@ export const WebhookDataChangedWebhookPayloadRequest$inboundSchema: z.ZodType< unknown > = z.object({ "X-Kombo-Signature": z.string(), - DataChangedWebhookPayload: models.DataChangedWebhookPayload$inboundSchema, + body: models.DataChangedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "DataChangedWebhookPayload": "data_changed_webhook_payload", }); }); - /** @internal */ export type WebhookDataChangedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - DataChangedWebhookPayload: models.DataChangedWebhookPayload$Outbound; + body: models.DataChangedWebhookPayload$Outbound; }; /** @internal */ @@ -45,29 +43,13 @@ export const WebhookDataChangedWebhookPayloadRequest$outboundSchema: z.ZodType< WebhookDataChangedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - data_changed_webhook_payload: models.DataChangedWebhookPayload$outboundSchema, + body: models.DataChangedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - data_changed_webhook_payload: "DataChangedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookDataChangedWebhookPayloadRequest$ { - /** @deprecated use `WebhookDataChangedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookDataChangedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookDataChangedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookDataChangedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookDataChangedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = WebhookDataChangedWebhookPayloadRequest$Outbound; -} - export function webhookDataChangedWebhookPayloadRequestToJSON( webhookDataChangedWebhookPayloadRequest: WebhookDataChangedWebhookPayloadRequest, @@ -78,7 +60,6 @@ export function webhookDataChangedWebhookPayloadRequestToJSON( ), ); } - export function webhookDataChangedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayload.ts b/src/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayload.ts index 8c0508c..47274bd 100644 --- a/src/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayload.ts +++ b/src/models/webhooks/webhookinlineassessmentorderreceivedwebhookpayload.ts @@ -14,8 +14,7 @@ export type WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - inline_assessment_order_received_webhook_payload: - models.InlineAssessmentOrderReceivedWebhookPayload; + body: models.InlineAssessmentOrderReceivedWebhookPayload; }; /** @internal */ @@ -26,22 +25,17 @@ export const WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$inboundSc unknown > = z.object({ "X-Kombo-Signature": z.string(), - InlineAssessmentOrderReceivedWebhookPayload: - models.InlineAssessmentOrderReceivedWebhookPayload$inboundSchema, + body: models.InlineAssessmentOrderReceivedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "InlineAssessmentOrderReceivedWebhookPayload": - "inline_assessment_order_received_webhook_payload", }); }); - /** @internal */ export type WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - InlineAssessmentOrderReceivedWebhookPayload: - models.InlineAssessmentOrderReceivedWebhookPayload$Outbound; + body: models.InlineAssessmentOrderReceivedWebhookPayload$Outbound; }; /** @internal */ @@ -52,32 +46,13 @@ export const WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$outboundS WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - inline_assessment_order_received_webhook_payload: - models.InlineAssessmentOrderReceivedWebhookPayload$outboundSchema, + body: models.InlineAssessmentOrderReceivedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - inline_assessment_order_received_webhook_payload: - "InlineAssessmentOrderReceivedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$ { - /** @deprecated use `WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest$Outbound; -} - export function webhookInlineAssessmentOrderReceivedWebhookPayloadRequestToJSON( webhookInlineAssessmentOrderReceivedWebhookPayloadRequest: WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest, @@ -87,7 +62,6 @@ export function webhookInlineAssessmentOrderReceivedWebhookPayloadRequestToJSON( .parse(webhookInlineAssessmentOrderReceivedWebhookPayloadRequest), ); } - export function webhookInlineAssessmentOrderReceivedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookintegrationcreatedwebhookpayload.ts b/src/models/webhooks/webhookintegrationcreatedwebhookpayload.ts index be66781..27fd9b3 100644 --- a/src/models/webhooks/webhookintegrationcreatedwebhookpayload.ts +++ b/src/models/webhooks/webhookintegrationcreatedwebhookpayload.ts @@ -14,7 +14,7 @@ export type WebhookIntegrationCreatedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - integration_created_webhook_payload: models.IntegrationCreatedWebhookPayload; + body: models.IntegrationCreatedWebhookPayload; }; /** @internal */ @@ -25,20 +25,16 @@ export const WebhookIntegrationCreatedWebhookPayloadRequest$inboundSchema: unknown > = z.object({ "X-Kombo-Signature": z.string(), - IntegrationCreatedWebhookPayload: - models.IntegrationCreatedWebhookPayload$inboundSchema, + body: models.IntegrationCreatedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "IntegrationCreatedWebhookPayload": "integration_created_webhook_payload", }); }); - /** @internal */ export type WebhookIntegrationCreatedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - IntegrationCreatedWebhookPayload: - models.IntegrationCreatedWebhookPayload$Outbound; + body: models.IntegrationCreatedWebhookPayload$Outbound; }; /** @internal */ @@ -49,31 +45,13 @@ export const WebhookIntegrationCreatedWebhookPayloadRequest$outboundSchema: WebhookIntegrationCreatedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - integration_created_webhook_payload: - models.IntegrationCreatedWebhookPayload$outboundSchema, + body: models.IntegrationCreatedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - integration_created_webhook_payload: "IntegrationCreatedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookIntegrationCreatedWebhookPayloadRequest$ { - /** @deprecated use `WebhookIntegrationCreatedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookIntegrationCreatedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookIntegrationCreatedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookIntegrationCreatedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookIntegrationCreatedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookIntegrationCreatedWebhookPayloadRequest$Outbound; -} - export function webhookIntegrationCreatedWebhookPayloadRequestToJSON( webhookIntegrationCreatedWebhookPayloadRequest: WebhookIntegrationCreatedWebhookPayloadRequest, @@ -84,7 +62,6 @@ export function webhookIntegrationCreatedWebhookPayloadRequestToJSON( ), ); } - export function webhookIntegrationCreatedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookintegrationdeletedwebhookpayload.ts b/src/models/webhooks/webhookintegrationdeletedwebhookpayload.ts index 42b3b35..a957438 100644 --- a/src/models/webhooks/webhookintegrationdeletedwebhookpayload.ts +++ b/src/models/webhooks/webhookintegrationdeletedwebhookpayload.ts @@ -14,7 +14,7 @@ export type WebhookIntegrationDeletedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - integration_deleted_webhook_payload: models.IntegrationDeletedWebhookPayload; + body: models.IntegrationDeletedWebhookPayload; }; /** @internal */ @@ -25,20 +25,16 @@ export const WebhookIntegrationDeletedWebhookPayloadRequest$inboundSchema: unknown > = z.object({ "X-Kombo-Signature": z.string(), - IntegrationDeletedWebhookPayload: - models.IntegrationDeletedWebhookPayload$inboundSchema, + body: models.IntegrationDeletedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "IntegrationDeletedWebhookPayload": "integration_deleted_webhook_payload", }); }); - /** @internal */ export type WebhookIntegrationDeletedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - IntegrationDeletedWebhookPayload: - models.IntegrationDeletedWebhookPayload$Outbound; + body: models.IntegrationDeletedWebhookPayload$Outbound; }; /** @internal */ @@ -49,31 +45,13 @@ export const WebhookIntegrationDeletedWebhookPayloadRequest$outboundSchema: WebhookIntegrationDeletedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - integration_deleted_webhook_payload: - models.IntegrationDeletedWebhookPayload$outboundSchema, + body: models.IntegrationDeletedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - integration_deleted_webhook_payload: "IntegrationDeletedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookIntegrationDeletedWebhookPayloadRequest$ { - /** @deprecated use `WebhookIntegrationDeletedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookIntegrationDeletedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookIntegrationDeletedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookIntegrationDeletedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookIntegrationDeletedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookIntegrationDeletedWebhookPayloadRequest$Outbound; -} - export function webhookIntegrationDeletedWebhookPayloadRequestToJSON( webhookIntegrationDeletedWebhookPayloadRequest: WebhookIntegrationDeletedWebhookPayloadRequest, @@ -84,7 +62,6 @@ export function webhookIntegrationDeletedWebhookPayloadRequestToJSON( ), ); } - export function webhookIntegrationDeletedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhookintegrationstatechangedwebhookpayload.ts b/src/models/webhooks/webhookintegrationstatechangedwebhookpayload.ts index 296fe39..f3cbf68 100644 --- a/src/models/webhooks/webhookintegrationstatechangedwebhookpayload.ts +++ b/src/models/webhooks/webhookintegrationstatechangedwebhookpayload.ts @@ -14,8 +14,7 @@ export type WebhookIntegrationStateChangedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - integration_state_changed_webhook_payload: - models.IntegrationStateChangedWebhookPayload; + body: models.IntegrationStateChangedWebhookPayload; }; /** @internal */ @@ -26,21 +25,16 @@ export const WebhookIntegrationStateChangedWebhookPayloadRequest$inboundSchema: unknown > = z.object({ "X-Kombo-Signature": z.string(), - IntegrationStateChangedWebhookPayload: - models.IntegrationStateChangedWebhookPayload$inboundSchema, + body: models.IntegrationStateChangedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "IntegrationStateChangedWebhookPayload": - "integration_state_changed_webhook_payload", }); }); - /** @internal */ export type WebhookIntegrationStateChangedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - IntegrationStateChangedWebhookPayload: - models.IntegrationStateChangedWebhookPayload$Outbound; + body: models.IntegrationStateChangedWebhookPayload$Outbound; }; /** @internal */ @@ -51,32 +45,13 @@ export const WebhookIntegrationStateChangedWebhookPayloadRequest$outboundSchema: WebhookIntegrationStateChangedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - integration_state_changed_webhook_payload: - models.IntegrationStateChangedWebhookPayload$outboundSchema, + body: models.IntegrationStateChangedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - integration_state_changed_webhook_payload: - "IntegrationStateChangedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookIntegrationStateChangedWebhookPayloadRequest$ { - /** @deprecated use `WebhookIntegrationStateChangedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookIntegrationStateChangedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookIntegrationStateChangedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookIntegrationStateChangedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookIntegrationStateChangedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = - WebhookIntegrationStateChangedWebhookPayloadRequest$Outbound; -} - export function webhookIntegrationStateChangedWebhookPayloadRequestToJSON( webhookIntegrationStateChangedWebhookPayloadRequest: WebhookIntegrationStateChangedWebhookPayloadRequest, @@ -87,7 +62,6 @@ export function webhookIntegrationStateChangedWebhookPayloadRequestToJSON( ), ); } - export function webhookIntegrationStateChangedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/webhooks/webhooksyncfinishedwebhookpayload.ts b/src/models/webhooks/webhooksyncfinishedwebhookpayload.ts index 4c4bc8e..45a334d 100644 --- a/src/models/webhooks/webhooksyncfinishedwebhookpayload.ts +++ b/src/models/webhooks/webhooksyncfinishedwebhookpayload.ts @@ -14,7 +14,7 @@ export type WebhookSyncFinishedWebhookPayloadRequest = { * HMAC signature for webhook verification. See the webhook documentation for details on how to verify this signature. */ x_kombo_signature: string; - sync_finished_webhook_payload: models.SyncFinishedWebhookPayload; + body: models.SyncFinishedWebhookPayload; }; /** @internal */ @@ -24,18 +24,16 @@ export const WebhookSyncFinishedWebhookPayloadRequest$inboundSchema: z.ZodType< unknown > = z.object({ "X-Kombo-Signature": z.string(), - SyncFinishedWebhookPayload: models.SyncFinishedWebhookPayload$inboundSchema, + body: models.SyncFinishedWebhookPayload$inboundSchema, }).transform((v) => { return remap$(v, { "X-Kombo-Signature": "x_kombo_signature", - "SyncFinishedWebhookPayload": "sync_finished_webhook_payload", }); }); - /** @internal */ export type WebhookSyncFinishedWebhookPayloadRequest$Outbound = { "X-Kombo-Signature": string; - SyncFinishedWebhookPayload: models.SyncFinishedWebhookPayload$Outbound; + body: models.SyncFinishedWebhookPayload$Outbound; }; /** @internal */ @@ -45,30 +43,13 @@ export const WebhookSyncFinishedWebhookPayloadRequest$outboundSchema: z.ZodType< WebhookSyncFinishedWebhookPayloadRequest > = z.object({ x_kombo_signature: z.string(), - sync_finished_webhook_payload: - models.SyncFinishedWebhookPayload$outboundSchema, + body: models.SyncFinishedWebhookPayload$outboundSchema, }).transform((v) => { return remap$(v, { x_kombo_signature: "X-Kombo-Signature", - sync_finished_webhook_payload: "SyncFinishedWebhookPayload", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookSyncFinishedWebhookPayloadRequest$ { - /** @deprecated use `WebhookSyncFinishedWebhookPayloadRequest$inboundSchema` instead. */ - export const inboundSchema = - WebhookSyncFinishedWebhookPayloadRequest$inboundSchema; - /** @deprecated use `WebhookSyncFinishedWebhookPayloadRequest$outboundSchema` instead. */ - export const outboundSchema = - WebhookSyncFinishedWebhookPayloadRequest$outboundSchema; - /** @deprecated use `WebhookSyncFinishedWebhookPayloadRequest$Outbound` instead. */ - export type Outbound = WebhookSyncFinishedWebhookPayloadRequest$Outbound; -} - export function webhookSyncFinishedWebhookPayloadRequestToJSON( webhookSyncFinishedWebhookPayloadRequest: WebhookSyncFinishedWebhookPayloadRequest, @@ -79,7 +60,6 @@ export function webhookSyncFinishedWebhookPayloadRequestToJSON( ), ); } - export function webhookSyncFinishedWebhookPayloadRequestFromJSON( jsonString: string, ): SafeParseResult<