candidhealth 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +15 -10
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/commons/types/ResourcePage.d.ts +7 -0
- package/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +18 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/insuranceAdjudication/resources/v1/client/Client.js +6 -3
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -3
- package/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
- package/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
- package/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
- package/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
- package/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
- package/api/resources/organizationServiceFacilities/client/Client.d.ts +18 -0
- package/api/resources/organizationServiceFacilities/client/Client.js +18 -0
- package/api/resources/organizationServiceFacilities/client/index.d.ts +1 -0
- package/api/resources/organizationServiceFacilities/client/index.js +2 -0
- package/api/resources/organizationServiceFacilities/index.d.ts +2 -0
- package/api/resources/organizationServiceFacilities/index.js +18 -0
- package/api/resources/organizationServiceFacilities/resources/index.d.ts +1 -0
- package/api/resources/organizationServiceFacilities/resources/index.js +27 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +22 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +263 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/create.d.ts +28 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/create.js +58 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/delete.d.ts +28 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/delete.js +58 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/get.d.ts +28 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/get.js +58 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/getMulti.d.ts +22 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/getMulti.js +47 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +6 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/index.js +35 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +18 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.js +5 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/requests/index.d.ts +1 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/requests/index.js +2 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/update.d.ts +34 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/update.js +69 -0
- package/api/resources/organizationServiceFacilities/resources/v2/index.d.ts +2 -0
- package/api/resources/organizationServiceFacilities/resources/v2/index.js +18 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +50 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +5 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +48 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +5 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.d.ts +12 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.js +10 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.d.ts +32 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.js +5 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +48 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +5 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.d.ts +18 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.js +10 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.d.ts +34 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.js +14 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +66 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.js +22 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.d.ts +22 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.js +11 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +502 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.js +131 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/index.d.ts +10 -0
- package/api/resources/organizationServiceFacilities/resources/v2/types/index.js +26 -0
- package/api/resources/patientPayments/resources/v4/client/Client.d.ts +3 -0
- package/api/resources/patientPayments/resources/v4/client/Client.js +6 -3
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +6 -3
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -3
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +15 -10
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/commons/types/ResourcePage.d.ts +7 -0
- package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +18 -3
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.js +6 -3
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -3
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
- package/dist/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
- package/dist/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
- package/dist/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
- package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +18 -0
- package/dist/api/resources/organizationServiceFacilities/client/Client.js +18 -0
- package/dist/api/resources/organizationServiceFacilities/client/index.d.ts +1 -0
- package/dist/api/resources/organizationServiceFacilities/client/index.js +2 -0
- package/dist/api/resources/organizationServiceFacilities/index.d.ts +2 -0
- package/dist/api/resources/organizationServiceFacilities/index.js +18 -0
- package/dist/api/resources/organizationServiceFacilities/resources/index.d.ts +1 -0
- package/dist/api/resources/organizationServiceFacilities/resources/index.js +27 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +22 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +263 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/create.d.ts +28 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/create.js +58 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/delete.d.ts +28 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/delete.js +58 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/get.d.ts +28 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/get.js +58 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getMulti.d.ts +22 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getMulti.js +47 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +6 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.js +35 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +18 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.js +5 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/index.d.ts +1 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/index.js +2 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/update.d.ts +34 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/update.js +69 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/index.d.ts +2 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/index.js +18 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +50 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +5 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +48 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +5 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.d.ts +12 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.js +10 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.d.ts +32 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.js +5 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +48 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +5 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.d.ts +18 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.js +10 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.d.ts +34 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.js +14 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +66 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.js +22 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.d.ts +22 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.js +11 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +502 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.js +131 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/index.d.ts +10 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/index.js +26 -0
- package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +3 -0
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +6 -3
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +6 -3
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -3
- package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
- package/dist/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
- package/dist/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
- package/dist/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
- package/dist/serialization/resources/organizationServiceFacilities/index.d.ts +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/index.js +17 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/index.d.ts +1 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/index.js +27 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/create.d.ts +14 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/create.js +46 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/delete.d.ts +14 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/delete.js +46 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/get.d.ts +14 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/get.js +46 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +4 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +30 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/update.d.ts +18 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/update.js +51 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/index.d.ts +2 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/index.js +18 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +22 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +53 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +21 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +52 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.js +35 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.d.ts +12 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.js +35 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +21 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +54 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.js +31 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.js +31 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.js +31 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.js +31 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.js +155 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/index.d.ts +10 -0
- package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/index.js +26 -0
- package/package.json +1 -1
- package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
- package/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
- package/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
- package/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
- package/serialization/resources/organizationServiceFacilities/index.d.ts +1 -0
- package/serialization/resources/organizationServiceFacilities/index.js +17 -0
- package/serialization/resources/organizationServiceFacilities/resources/index.d.ts +1 -0
- package/serialization/resources/organizationServiceFacilities/resources/index.js +27 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/create.d.ts +14 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/create.js +46 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/delete.d.ts +14 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/delete.js +46 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/get.d.ts +14 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/get.js +46 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +4 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +30 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/update.d.ts +18 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/client/update.js +51 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/index.d.ts +2 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/index.js +18 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +22 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +53 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +21 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +52 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityId.js +35 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.d.ts +12 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityPage.js +35 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +21 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +54 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityMode.js +31 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityOperationalStatus.js +31 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.js +31 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityStatus.js +31 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.js +155 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/index.d.ts +10 -0
- package/serialization/resources/organizationServiceFacilities/resources/v2/types/index.js +26 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.V2 = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
39
|
+
class V2 {
|
|
40
|
+
options;
|
|
41
|
+
constructor(options) {
|
|
42
|
+
this.options = options;
|
|
43
|
+
}
|
|
44
|
+
async get(organizationServiceFacilityId) {
|
|
45
|
+
const _response = await core.fetcher({
|
|
46
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId)}`),
|
|
47
|
+
method: "GET",
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
50
|
+
"X-Fern-Language": "JavaScript",
|
|
51
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
+
"X-Fern-SDK-Version": "0.8.0",
|
|
53
|
+
},
|
|
54
|
+
contentType: "application/json",
|
|
55
|
+
timeoutMs: 60000,
|
|
56
|
+
});
|
|
57
|
+
if (_response.ok) {
|
|
58
|
+
return {
|
|
59
|
+
ok: true,
|
|
60
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
61
|
+
unrecognizedObjectKeys: "passthrough",
|
|
62
|
+
allowUnrecognizedUnionMembers: true,
|
|
63
|
+
allowUnrecognizedEnumValues: true,
|
|
64
|
+
breadcrumbsPrefix: ["response"],
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (_response.error.reason === "status-code") {
|
|
69
|
+
switch (_response.error.body?.errorName) {
|
|
70
|
+
case "EntityNotFoundError":
|
|
71
|
+
return {
|
|
72
|
+
ok: false,
|
|
73
|
+
error: await serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
|
|
74
|
+
unrecognizedObjectKeys: "passthrough",
|
|
75
|
+
allowUnrecognizedUnionMembers: true,
|
|
76
|
+
allowUnrecognizedEnumValues: true,
|
|
77
|
+
breadcrumbsPrefix: ["response"],
|
|
78
|
+
}),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
ok: false,
|
|
84
|
+
error: CandidApi.organizationServiceFacilities.v2.get.Error._unknown(_response.error),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
async getMulti(request = {}) {
|
|
88
|
+
const { limit, name, pageToken } = request;
|
|
89
|
+
const _queryParams = new url_search_params_1.default();
|
|
90
|
+
if (limit != null) {
|
|
91
|
+
_queryParams.append("limit", limit.toString());
|
|
92
|
+
}
|
|
93
|
+
if (name != null) {
|
|
94
|
+
_queryParams.append("name", name);
|
|
95
|
+
}
|
|
96
|
+
if (pageToken != null) {
|
|
97
|
+
_queryParams.append("page_token", pageToken);
|
|
98
|
+
}
|
|
99
|
+
const _response = await core.fetcher({
|
|
100
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/organization-service-facilities/v2"),
|
|
101
|
+
method: "GET",
|
|
102
|
+
headers: {
|
|
103
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
104
|
+
"X-Fern-Language": "JavaScript",
|
|
105
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
+
"X-Fern-SDK-Version": "0.8.0",
|
|
107
|
+
},
|
|
108
|
+
contentType: "application/json",
|
|
109
|
+
queryParameters: _queryParams,
|
|
110
|
+
timeoutMs: 60000,
|
|
111
|
+
});
|
|
112
|
+
if (_response.ok) {
|
|
113
|
+
return {
|
|
114
|
+
ok: true,
|
|
115
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
|
|
116
|
+
unrecognizedObjectKeys: "passthrough",
|
|
117
|
+
allowUnrecognizedUnionMembers: true,
|
|
118
|
+
allowUnrecognizedEnumValues: true,
|
|
119
|
+
breadcrumbsPrefix: ["response"],
|
|
120
|
+
}),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
ok: false,
|
|
125
|
+
error: CandidApi.organizationServiceFacilities.v2.getMulti.Error._unknown(_response.error),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
async create(request) {
|
|
129
|
+
const _response = await core.fetcher({
|
|
130
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/organization-service-facilities/v2"),
|
|
131
|
+
method: "POST",
|
|
132
|
+
headers: {
|
|
133
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
134
|
+
"X-Fern-Language": "JavaScript",
|
|
135
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
+
"X-Fern-SDK-Version": "0.8.0",
|
|
137
|
+
},
|
|
138
|
+
contentType: "application/json",
|
|
139
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
140
|
+
timeoutMs: 60000,
|
|
141
|
+
});
|
|
142
|
+
if (_response.ok) {
|
|
143
|
+
return {
|
|
144
|
+
ok: true,
|
|
145
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
146
|
+
unrecognizedObjectKeys: "passthrough",
|
|
147
|
+
allowUnrecognizedUnionMembers: true,
|
|
148
|
+
allowUnrecognizedEnumValues: true,
|
|
149
|
+
breadcrumbsPrefix: ["response"],
|
|
150
|
+
}),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
if (_response.error.reason === "status-code") {
|
|
154
|
+
switch (_response.error.body?.errorName) {
|
|
155
|
+
case "HttpRequestValidationError":
|
|
156
|
+
return {
|
|
157
|
+
ok: false,
|
|
158
|
+
error: await serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
|
|
159
|
+
unrecognizedObjectKeys: "passthrough",
|
|
160
|
+
allowUnrecognizedUnionMembers: true,
|
|
161
|
+
allowUnrecognizedEnumValues: true,
|
|
162
|
+
breadcrumbsPrefix: ["response"],
|
|
163
|
+
}),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
ok: false,
|
|
169
|
+
error: CandidApi.organizationServiceFacilities.v2.create.Error._unknown(_response.error),
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
async update(organizationServiceFacilityId, request) {
|
|
173
|
+
const _response = await core.fetcher({
|
|
174
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId)}`),
|
|
175
|
+
method: "PATCH",
|
|
176
|
+
headers: {
|
|
177
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
178
|
+
"X-Fern-Language": "JavaScript",
|
|
179
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
+
"X-Fern-SDK-Version": "0.8.0",
|
|
181
|
+
},
|
|
182
|
+
contentType: "application/json",
|
|
183
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
184
|
+
timeoutMs: 60000,
|
|
185
|
+
});
|
|
186
|
+
if (_response.ok) {
|
|
187
|
+
return {
|
|
188
|
+
ok: true,
|
|
189
|
+
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
190
|
+
unrecognizedObjectKeys: "passthrough",
|
|
191
|
+
allowUnrecognizedUnionMembers: true,
|
|
192
|
+
allowUnrecognizedEnumValues: true,
|
|
193
|
+
breadcrumbsPrefix: ["response"],
|
|
194
|
+
}),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
if (_response.error.reason === "status-code") {
|
|
198
|
+
switch (_response.error.body?.errorName) {
|
|
199
|
+
case "HttpRequestValidationError":
|
|
200
|
+
case "EntityNotFoundError":
|
|
201
|
+
return {
|
|
202
|
+
ok: false,
|
|
203
|
+
error: await serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
|
|
204
|
+
unrecognizedObjectKeys: "passthrough",
|
|
205
|
+
allowUnrecognizedUnionMembers: true,
|
|
206
|
+
allowUnrecognizedEnumValues: true,
|
|
207
|
+
breadcrumbsPrefix: ["response"],
|
|
208
|
+
}),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
ok: false,
|
|
214
|
+
error: CandidApi.organizationServiceFacilities.v2.update.Error._unknown(_response.error),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
async delete(organizationServiceFacilityId) {
|
|
218
|
+
const _response = await core.fetcher({
|
|
219
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId)}`),
|
|
220
|
+
method: "DELETE",
|
|
221
|
+
headers: {
|
|
222
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
223
|
+
"X-Fern-Language": "JavaScript",
|
|
224
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
225
|
+
"X-Fern-SDK-Version": "0.8.0",
|
|
226
|
+
},
|
|
227
|
+
contentType: "application/json",
|
|
228
|
+
timeoutMs: 60000,
|
|
229
|
+
});
|
|
230
|
+
if (_response.ok) {
|
|
231
|
+
return {
|
|
232
|
+
ok: true,
|
|
233
|
+
body: undefined,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
if (_response.error.reason === "status-code") {
|
|
237
|
+
switch (_response.error.body?.errorName) {
|
|
238
|
+
case "EntityNotFoundError":
|
|
239
|
+
return {
|
|
240
|
+
ok: false,
|
|
241
|
+
error: await serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
|
|
242
|
+
unrecognizedObjectKeys: "passthrough",
|
|
243
|
+
allowUnrecognizedUnionMembers: true,
|
|
244
|
+
allowUnrecognizedEnumValues: true,
|
|
245
|
+
breadcrumbsPrefix: ["response"],
|
|
246
|
+
}),
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
ok: false,
|
|
252
|
+
error: CandidApi.organizationServiceFacilities.v2.delete.Error._unknown(_response.error),
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
async _getAuthorizationHeader() {
|
|
256
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
257
|
+
if (bearer != null) {
|
|
258
|
+
return `Bearer ${bearer}`;
|
|
259
|
+
}
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.V2 = V2;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.organizationServiceFacilities.v2.create.Error.HttpRequestValidationError | CandidApi.organizationServiceFacilities.v2.create.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface HttpRequestValidationError extends _Utils {
|
|
9
|
+
errorName: "HttpRequestValidationError";
|
|
10
|
+
content: CandidApi.RequestValidationError;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.organizationServiceFacilities.v2.create.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.organizationServiceFacilities.v2.create.Error.HttpRequestValidationError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationServiceFacilities.v2.create.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.organizationServiceFacilities.v2.create.Error, visitor: CandidApi.organizationServiceFacilities.v2.create.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
httpRequestValidationError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "HttpRequestValidationError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.organizationServiceFacilities.v2.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.organizationServiceFacilities.v2.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "HttpRequestValidationError":
|
|
53
|
+
return visitor.httpRequestValidationError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.organizationServiceFacilities.v2.delete.Error.EntityNotFoundError | CandidApi.organizationServiceFacilities.v2.delete.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.organizationServiceFacilities.v2.delete.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.organizationServiceFacilities.v2.delete.Error.EntityNotFoundError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationServiceFacilities.v2.delete.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.organizationServiceFacilities.v2.delete.Error, visitor: CandidApi.organizationServiceFacilities.v2.delete.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.organizationServiceFacilities.v2.delete.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.organizationServiceFacilities.v2.delete.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "EntityNotFoundError":
|
|
53
|
+
return visitor.entityNotFoundError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.organizationServiceFacilities.v2.get.Error.EntityNotFoundError | CandidApi.organizationServiceFacilities.v2.get.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.organizationServiceFacilities.v2.get.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.organizationServiceFacilities.v2.get.Error.EntityNotFoundError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationServiceFacilities.v2.get.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.organizationServiceFacilities.v2.get.Error, visitor: CandidApi.organizationServiceFacilities.v2.get.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.organizationServiceFacilities.v2.get.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.organizationServiceFacilities.v2.get.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "EntityNotFoundError":
|
|
53
|
+
return visitor.entityNotFoundError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.organizationServiceFacilities.v2.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.organizationServiceFacilities.v2.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationServiceFacilities.v2.getMulti.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.organizationServiceFacilities.v2.getMulti.Error, visitor: CandidApi.organizationServiceFacilities.v2.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.organizationServiceFacilities.v2.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.delete = exports.update = exports.create = exports.getMulti = exports.get = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.get = __importStar(require("./get"));
|
|
32
|
+
exports.getMulti = __importStar(require("./getMulti"));
|
|
33
|
+
exports.create = __importStar(require("./create"));
|
|
34
|
+
exports.update = __importStar(require("./update"));
|
|
35
|
+
exports.delete = __importStar(require("./delete"));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../..";
|
|
5
|
+
export interface GetAllOrganizationServiceFacilitiesRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Limit the number of results returned. Defaults to 100.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Filter to a name or a part of a name.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The page token to continue paging through a previous request.
|
|
16
|
+
*/
|
|
17
|
+
pageToken?: CandidApi.PageToken;
|
|
18
|
+
}
|
package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetAllOrganizationServiceFacilitiesRequest } from "./GetAllOrganizationServiceFacilitiesRequest";
|