candidhealth 0.1.1 → 0.2.1
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 +11 -6
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/client/Client.js +1 -1
- package/api/resources/commons/types/ContactInfo.d.ts +10 -0
- package/api/resources/commons/types/Email.d.ts +8 -0
- package/api/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
- package/api/resources/commons/types/PhoneNumber.d.ts +8 -0
- package/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
- package/api/resources/commons/types/PhoneNumberType.js +11 -0
- package/api/resources/commons/types/index.d.ts +4 -1
- package/api/resources/commons/types/index.js +4 -1
- package/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +36 -8
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
- package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/api/resources/guarantor/client/Client.d.ts +18 -0
- package/api/resources/guarantor/client/Client.js +18 -0
- package/api/resources/guarantor/client/index.d.ts +1 -0
- package/api/resources/guarantor/client/index.js +2 -0
- package/api/resources/guarantor/index.d.ts +2 -0
- package/api/resources/guarantor/index.js +18 -0
- package/api/resources/guarantor/resources/index.d.ts +1 -0
- package/api/resources/guarantor/resources/index.js +27 -0
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +144 -0
- package/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/create.js +47 -0
- package/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/get.js +47 -0
- package/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
- package/api/resources/guarantor/resources/v1/client/index.js +33 -0
- package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
- package/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
- package/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/update.js +47 -0
- package/api/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/api/resources/guarantor/resources/v1/index.js +18 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
- package/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/api/resources/guarantor/resources/v1/types/index.js +20 -0
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/individual/types/Patient.d.ts +1 -1
- package/api/resources/individual/types/PatientBase.d.ts +17 -0
- package/api/resources/individual/types/PatientBase.js +5 -0
- package/api/resources/individual/types/PatientCreate.d.ts +1 -11
- package/api/resources/individual/types/index.d.ts +1 -0
- package/api/resources/individual/types/index.js +1 -0
- package/api/resources/patientPayments/resources/index.d.ts +1 -1
- package/api/resources/patientPayments/resources/index.js +2 -2
- package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
- package/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
- package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
- package/api/resources/payers/client/Client.d.ts +1 -1
- package/api/resources/payers/client/Client.js +4 -4
- package/api/resources/payers/types/Payer.d.ts +2 -1
- package/api/resources/payers/types/PayerUuid.d.ts +8 -0
- package/api/resources/payers/types/PayerUuid.js +10 -0
- package/api/resources/payers/types/index.d.ts +1 -0
- package/api/resources/payers/types/index.js +1 -0
- package/api/resources/users/index.d.ts +1 -1
- package/api/resources/users/index.js +1 -1
- package/api/resources/users/resources/index.d.ts +1 -0
- package/api/resources/users/resources/index.js +27 -0
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
- package/{dist/api/resources/users/types/User.d.ts → api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
- package/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
- package/{dist/api/resources/commons/types/Auth0Id.js → api/resources/users/resources/v2/types/UserId.js} +3 -3
- package/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
- package/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
- package/api/resources/users/resources/v2/types/UserV2.js +5 -0
- package/api/resources/users/resources/v2/types/index.d.ts +9 -0
- package/api/resources/users/resources/v2/types/index.js +25 -0
- package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/client/Client.js +1 -1
- package/dist/api/resources/commons/types/ContactInfo.d.ts +10 -0
- package/dist/api/resources/commons/types/ContactInfo.js +5 -0
- package/dist/api/resources/commons/types/Email.d.ts +8 -0
- package/dist/api/resources/commons/types/Email.js +10 -0
- package/dist/api/resources/commons/types/PhoneNumber.d.ts +8 -0
- package/dist/api/resources/commons/types/PhoneNumber.js +5 -0
- package/dist/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
- package/dist/api/resources/commons/types/PhoneNumberType.js +11 -0
- package/dist/api/resources/commons/types/index.d.ts +4 -1
- package/dist/api/resources/commons/types/index.js +4 -1
- package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -8
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/dist/api/resources/guarantor/client/Client.d.ts +18 -0
- package/dist/api/resources/guarantor/client/Client.js +18 -0
- package/dist/api/resources/guarantor/client/index.d.ts +1 -0
- package/dist/api/resources/guarantor/client/index.js +2 -0
- package/dist/api/resources/guarantor/index.d.ts +2 -0
- package/dist/api/resources/guarantor/index.js +18 -0
- package/dist/api/resources/guarantor/resources/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/index.js +27 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +144 -0
- package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/create.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/get.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
- package/dist/api/resources/guarantor/resources/v1/client/index.js +33 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/update.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/guarantor/resources/v1/index.js +18 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.js +20 -0
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/individual/types/Patient.d.ts +1 -1
- package/dist/api/resources/individual/types/PatientBase.d.ts +17 -0
- package/dist/api/resources/individual/types/PatientBase.js +5 -0
- package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -11
- package/dist/api/resources/individual/types/index.d.ts +1 -0
- package/dist/api/resources/individual/types/index.js +1 -0
- package/dist/api/resources/patientPayments/resources/index.d.ts +1 -1
- package/dist/api/resources/patientPayments/resources/index.js +2 -2
- package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
- package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
- package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
- package/dist/api/resources/payers/client/Client.d.ts +1 -1
- package/dist/api/resources/payers/client/Client.js +4 -4
- package/dist/api/resources/payers/types/Payer.d.ts +2 -1
- package/dist/api/resources/payers/types/PayerUuid.d.ts +8 -0
- package/dist/api/resources/payers/types/PayerUuid.js +10 -0
- package/dist/api/resources/payers/types/index.d.ts +1 -0
- package/dist/api/resources/payers/types/index.js +1 -0
- package/dist/api/resources/users/index.d.ts +1 -1
- package/dist/api/resources/users/index.js +1 -1
- package/dist/api/resources/users/resources/index.d.ts +1 -0
- package/dist/api/resources/users/resources/index.js +27 -0
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
- package/{api/resources/users/types/User.d.ts → dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
- package/dist/api/resources/users/resources/v2/types/UserId.js +10 -0
- package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
- package/dist/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.js +5 -0
- package/dist/api/resources/users/resources/v2/types/index.d.ts +9 -0
- package/dist/api/resources/users/resources/v2/types/index.js +25 -0
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
- package/dist/serialization/resources/commons/types/ContactInfo.js +36 -0
- package/dist/serialization/resources/commons/types/{Auth0Id.d.ts → Email.d.ts} +2 -2
- package/dist/serialization/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
- package/dist/serialization/resources/{users/types/User.d.ts → commons/types/PhoneNumber.d.ts} +4 -5
- package/dist/serialization/resources/commons/types/PhoneNumber.js +34 -0
- package/dist/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/PhoneNumberType.js +31 -0
- package/dist/serialization/resources/commons/types/index.d.ts +4 -1
- package/dist/serialization/resources/commons/types/index.js +4 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +3 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/client/update.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/guarantor/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/index.js +17 -0
- package/dist/serialization/resources/guarantor/resources/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/index.js +27 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/{api/resources/users/types → dist/serialization/resources/guarantor/resources/v1/client}/index.js +1 -1
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/guarantor/resources/v1/index.js +18 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
- package/dist/serialization/resources/index.d.ts +2 -2
- package/dist/serialization/resources/index.js +3 -3
- package/dist/serialization/resources/individual/types/Patient.d.ts +1 -1
- package/dist/serialization/resources/individual/types/Patient.js +1 -1
- package/dist/serialization/resources/individual/types/PatientBase.d.ts +15 -0
- package/dist/serialization/resources/individual/types/PatientBase.js +38 -0
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
- package/dist/serialization/resources/individual/types/PatientCreate.js +2 -6
- package/dist/serialization/resources/individual/types/index.d.ts +1 -0
- package/dist/serialization/resources/individual/types/index.js +1 -0
- package/dist/serialization/resources/patientPayments/resources/index.d.ts +1 -1
- package/dist/serialization/resources/patientPayments/resources/index.js +2 -2
- package/dist/serialization/resources/patientPayments/resources/v3/index.d.ts +1 -0
- package/dist/serialization/resources/patientPayments/resources/v3/index.js +17 -0
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPayment.d.ts +5 -5
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPayment.js +4 -4
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.d.ts +1 -1
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.js +1 -1
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
- package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +1 -1
- package/dist/serialization/resources/payers/types/Payer.d.ts +1 -1
- package/dist/serialization/resources/payers/types/Payer.js +1 -1
- package/dist/serialization/resources/payers/types/PayerUuid.d.ts +10 -0
- package/dist/serialization/resources/payers/types/PayerUuid.js +37 -0
- package/dist/serialization/resources/payers/types/index.d.ts +1 -0
- package/dist/serialization/resources/payers/types/index.js +1 -0
- package/dist/serialization/resources/users/index.d.ts +1 -1
- package/dist/serialization/resources/users/index.js +1 -1
- package/dist/serialization/resources/users/resources/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/index.js +27 -0
- package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/v2/index.js +17 -0
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/dist/serialization/resources/users/{types/User.js → resources/v2/types/HumanUserMetadata.js} +3 -4
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
- package/dist/serialization/resources/users/resources/v2/types/UserId.js +35 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
- package/dist/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/index.js +25 -0
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
- package/serialization/resources/commons/types/ContactInfo.js +36 -0
- package/serialization/resources/commons/types/{Auth0Id.d.ts → Email.d.ts} +2 -2
- package/serialization/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
- package/serialization/resources/{users/types/User.d.ts → commons/types/PhoneNumber.d.ts} +4 -5
- package/serialization/resources/commons/types/PhoneNumber.js +34 -0
- package/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
- package/serialization/resources/commons/types/PhoneNumberType.js +31 -0
- package/serialization/resources/commons/types/index.d.ts +4 -1
- package/serialization/resources/commons/types/index.js +4 -1
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/client/create.js +46 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/index.js +3 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/client/update.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/guarantor/index.d.ts +1 -0
- package/serialization/resources/guarantor/index.js +17 -0
- package/serialization/resources/guarantor/resources/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/index.js +27 -0
- package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/{dist/api/resources/users/types → serialization/resources/guarantor/resources/v1/client}/index.js +1 -1
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/serialization/resources/guarantor/resources/v1/index.js +18 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
- package/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
- package/serialization/resources/index.d.ts +2 -2
- package/serialization/resources/index.js +3 -3
- package/serialization/resources/individual/types/Patient.d.ts +1 -1
- package/serialization/resources/individual/types/Patient.js +1 -1
- package/serialization/resources/individual/types/PatientBase.d.ts +15 -0
- package/serialization/resources/individual/types/PatientBase.js +38 -0
- package/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
- package/serialization/resources/individual/types/PatientCreate.js +2 -6
- package/serialization/resources/individual/types/index.d.ts +1 -0
- package/serialization/resources/individual/types/index.js +1 -0
- package/serialization/resources/patientPayments/resources/index.d.ts +1 -1
- package/serialization/resources/patientPayments/resources/index.js +2 -2
- package/serialization/resources/patientPayments/resources/v3/index.d.ts +1 -0
- package/serialization/resources/patientPayments/resources/v3/index.js +17 -0
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPayment.d.ts +5 -5
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPayment.js +4 -4
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.d.ts +1 -1
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.js +1 -1
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
- package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +1 -1
- package/serialization/resources/payers/types/Payer.d.ts +1 -1
- package/serialization/resources/payers/types/Payer.js +1 -1
- package/serialization/resources/payers/types/PayerUuid.d.ts +10 -0
- package/serialization/resources/payers/types/PayerUuid.js +37 -0
- package/serialization/resources/payers/types/index.d.ts +1 -0
- package/serialization/resources/payers/types/index.js +1 -0
- package/serialization/resources/users/index.d.ts +1 -1
- package/serialization/resources/users/index.js +1 -1
- package/serialization/resources/users/resources/index.d.ts +1 -0
- package/serialization/resources/users/resources/index.js +27 -0
- package/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/serialization/resources/users/resources/v2/index.js +17 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/serialization/resources/users/{types/User.js → resources/v2/types/HumanUserMetadata.js} +3 -4
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
- package/serialization/resources/users/resources/v2/types/UserId.js +35 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
- package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
- package/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/index.js +25 -0
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/api/resources/commons/types/Auth0Id.d.ts +0 -8
- package/api/resources/users/types/index.d.ts +0 -1
- package/dist/api/resources/commons/types/Auth0Id.d.ts +0 -8
- package/dist/api/resources/users/types/index.d.ts +0 -1
- package/dist/serialization/resources/users/types/index.d.ts +0 -1
- package/dist/serialization/resources/users/types/index.js +0 -17
- package/serialization/resources/users/types/index.d.ts +0 -1
- package/serialization/resources/users/types/index.js +0 -17
- /package/api/resources/{patientPayments/resources/v2/types/PatientPayment.js → commons/types/ContactInfo.js} +0 -0
- /package/api/resources/{users/types/User.js → commons/types/PhoneNumber.js} +0 -0
- /package/{dist/api/resources/patientPayments/resources/v2/types/PatientPayment.js → api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js} +0 -0
- /package/{dist/api/resources/users/types/User.js → api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js} +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/{dist/api/resources/patientPayments → api/resources/users}/resources/v2/index.d.ts +0 -0
- /package/{dist/api/resources/patientPayments → api/resources/users}/resources/v2/index.js +0 -0
- /package/dist/{serialization/resources/patientPayments/resources/v2 → api/resources/patientPayments/resources/v3}/index.d.ts +0 -0
- /package/dist/{serialization/resources/patientPayments/resources/v2 → api/resources/patientPayments/resources/v3}/index.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/{serialization/resources/patientPayments → dist/api/resources/users}/resources/v2/index.d.ts +0 -0
- /package/{serialization/resources/patientPayments → dist/api/resources/users}/resources/v2/index.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
|
@@ -97,7 +97,7 @@ class V4 {
|
|
|
97
97
|
Authorization: await this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "candidhealth",
|
|
100
|
-
"X-Fern-SDK-Version": "0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
@@ -127,7 +127,7 @@ class V4 {
|
|
|
127
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
131
131
|
},
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: 60000,
|
|
@@ -156,7 +156,7 @@ class V4 {
|
|
|
156
156
|
Authorization: await this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
159
|
-
"X-Fern-SDK-Version": "0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -175,6 +175,20 @@ class V4 {
|
|
|
175
175
|
}),
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.body?.errorName) {
|
|
180
|
+
case "EncounterExternalIdUniquenessError":
|
|
181
|
+
return {
|
|
182
|
+
ok: false,
|
|
183
|
+
error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
187
|
+
breadcrumbsPrefix: ["response"],
|
|
188
|
+
}),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
178
192
|
return {
|
|
179
193
|
ok: false,
|
|
180
194
|
error: CandidApi.encounters.v4.create.Error._unknown(_response.error),
|
|
@@ -188,7 +202,7 @@ class V4 {
|
|
|
188
202
|
Authorization: await this._getAuthorizationHeader(),
|
|
189
203
|
"X-Fern-Language": "JavaScript",
|
|
190
204
|
"X-Fern-SDK-Name": "candidhealth",
|
|
191
|
-
"X-Fern-SDK-Version": "0.
|
|
205
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
192
206
|
},
|
|
193
207
|
contentType: "application/json",
|
|
194
208
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -207,6 +221,20 @@ class V4 {
|
|
|
207
221
|
}),
|
|
208
222
|
};
|
|
209
223
|
}
|
|
224
|
+
if (_response.error.reason === "status-code") {
|
|
225
|
+
switch (_response.error.body?.errorName) {
|
|
226
|
+
case "EncounterExternalIdUniquenessError":
|
|
227
|
+
return {
|
|
228
|
+
ok: false,
|
|
229
|
+
error: await serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
230
|
+
unrecognizedObjectKeys: "passthrough",
|
|
231
|
+
allowUnrecognizedUnionMembers: true,
|
|
232
|
+
allowUnrecognizedEnumValues: true,
|
|
233
|
+
breadcrumbsPrefix: ["response"],
|
|
234
|
+
}),
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
210
238
|
return {
|
|
211
239
|
ok: false,
|
|
212
240
|
error: CandidApi.encounters.v4.update.Error._unknown(_response.error),
|
|
@@ -220,7 +248,7 @@ class V4 {
|
|
|
220
248
|
Authorization: await this._getAuthorizationHeader(),
|
|
221
249
|
"X-Fern-Language": "JavaScript",
|
|
222
250
|
"X-Fern-SDK-Name": "candidhealth",
|
|
223
|
-
"X-Fern-SDK-Version": "0.
|
|
251
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
224
252
|
},
|
|
225
253
|
contentType: "application/json",
|
|
226
254
|
timeoutMs: 60000,
|
|
@@ -249,7 +277,7 @@ class V4 {
|
|
|
249
277
|
Authorization: await this._getAuthorizationHeader(),
|
|
250
278
|
"X-Fern-Language": "JavaScript",
|
|
251
279
|
"X-Fern-SDK-Name": "candidhealth",
|
|
252
|
-
"X-Fern-SDK-Version": "0.
|
|
280
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
253
281
|
},
|
|
254
282
|
contentType: "application/json",
|
|
255
283
|
timeoutMs: 60000,
|
|
@@ -281,7 +309,7 @@ class V4 {
|
|
|
281
309
|
Authorization: await this._getAuthorizationHeader(),
|
|
282
310
|
"X-Fern-Language": "JavaScript",
|
|
283
311
|
"X-Fern-SDK-Name": "candidhealth",
|
|
284
|
-
"X-Fern-SDK-Version": "0.
|
|
312
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
285
313
|
},
|
|
286
314
|
contentType: "application/json",
|
|
287
315
|
timeoutMs: 60000,
|
|
@@ -310,7 +338,7 @@ class V4 {
|
|
|
310
338
|
Authorization: await this._getAuthorizationHeader(),
|
|
311
339
|
"X-Fern-Language": "JavaScript",
|
|
312
340
|
"X-Fern-SDK-Name": "candidhealth",
|
|
313
|
-
"X-Fern-SDK-Version": "0.
|
|
341
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
314
342
|
},
|
|
315
343
|
contentType: "application/json",
|
|
316
344
|
timeoutMs: 60000,
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "EncounterExternalIdUniquenessError":
|
|
53
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as CandidApi from "../../../../../..";
|
|
5
5
|
export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
6
6
|
patient: CandidApi.PatientCreate;
|
|
7
|
+
patientIsSelfGuarantor?: boolean;
|
|
7
8
|
billingProvider: CandidApi.encounterProviders.v2.BillingProvider;
|
|
8
9
|
renderingProvider: CandidApi.encounterProviders.v2.RenderingProvider;
|
|
9
10
|
/**
|
|
@@ -51,4 +52,9 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
51
52
|
*
|
|
52
53
|
*/
|
|
53
54
|
serviceLines?: CandidApi.ServiceLineCreate[];
|
|
55
|
+
/**
|
|
56
|
+
* Personal and contact info for the guarantor of the patient responsibility.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
guarantor?: CandidApi.guarantor.v1.GuarantorCreate;
|
|
54
60
|
}
|
|
@@ -30,4 +30,11 @@ export interface EncounterUpdate {
|
|
|
30
30
|
tagIds?: CandidApi.TagId[];
|
|
31
31
|
clinicalNotes?: CandidApi.encounters.v4.ClinicalNoteCategoryCreate[];
|
|
32
32
|
payToAddress?: CandidApi.StreetAddressLongZip;
|
|
33
|
+
patientIsSelfGuarantor?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If a patient is no longer a self-guarantor, a newly-created guarantor object can be passed
|
|
36
|
+
* via this field. Note that patient_is_self_guarantor should be toggled to False
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
guarantorId?: CandidApi.guarantor.v1.GuarantorId;
|
|
33
40
|
}
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.update.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.update.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.update.Error, visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "EncounterExternalIdUniquenessError":
|
|
53
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -25,7 +25,7 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
25
25
|
placeOfServiceCode?: CandidApi.FacilityTypeCode;
|
|
26
26
|
placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
|
|
27
27
|
patientHistories: CandidApi.encounters.v4.PatientHistoryCategory[];
|
|
28
|
-
patientPayments: CandidApi.patientPayments.
|
|
28
|
+
patientPayments: CandidApi.patientPayments.v3.PatientPayment[];
|
|
29
29
|
tags: CandidApi.Tag[];
|
|
30
30
|
codingAttribution?: CandidApi.encounters.v4.CodingAttributionType;
|
|
31
31
|
workQueue?: CandidApi.workQueues.v1.WorkQueue;
|
|
@@ -50,7 +50,7 @@ export interface EncounterBase {
|
|
|
50
50
|
*/
|
|
51
51
|
providerAcceptsAssignment: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* Human-readable description of the appointment
|
|
53
|
+
* Human-readable description of the appointment type (ex: "Acupuncture - Headaches")
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
56
|
appointmentType?: string;
|
|
@@ -52,3 +52,4 @@ __exportStar(require("./PriorAuthorizationNumber"), exports);
|
|
|
52
52
|
__exportStar(require("./RxCui"), exports);
|
|
53
53
|
__exportStar(require("./IntakeQuestionId"), exports);
|
|
54
54
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
55
|
+
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
|
+
export declare namespace Guarantor {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class Guarantor {
|
|
14
|
+
protected readonly options: Guarantor.Options;
|
|
15
|
+
constructor(options: Guarantor.Options);
|
|
16
|
+
protected _v1: V1 | undefined;
|
|
17
|
+
get v1(): V1;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Guarantor = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class Guarantor {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_v1;
|
|
14
|
+
get v1() {
|
|
15
|
+
return (this._v1 ??= new Client_1.V1(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Guarantor = Guarantor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,27 @@
|
|
|
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 __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v1 = void 0;
|
|
27
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../..";
|
|
7
|
+
export declare namespace V1 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class V1 {
|
|
14
|
+
protected readonly options: V1.Options;
|
|
15
|
+
constructor(options: V1.Options);
|
|
16
|
+
create(request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
|
|
17
|
+
get(guarantorId: CandidApi.guarantor.v1.GuarantorId): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
|
|
18
|
+
update(guarantorId: CandidApi.guarantor.v1.GuarantorId, request: CandidApi.guarantor.v1.GuarantorUpdate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.update.Error>>;
|
|
19
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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.V1 = 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
|
+
class V1 {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
async create(request) {
|
|
44
|
+
const _response = await core.fetcher({
|
|
45
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/guarantors/v1"),
|
|
46
|
+
method: "POST",
|
|
47
|
+
headers: {
|
|
48
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
49
|
+
"X-Fern-Language": "JavaScript",
|
|
50
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
52
|
+
},
|
|
53
|
+
contentType: "application/json",
|
|
54
|
+
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
55
|
+
unrecognizedObjectKeys: "strip",
|
|
56
|
+
}),
|
|
57
|
+
timeoutMs: 60000,
|
|
58
|
+
});
|
|
59
|
+
if (_response.ok) {
|
|
60
|
+
return {
|
|
61
|
+
ok: true,
|
|
62
|
+
body: await serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
63
|
+
unrecognizedObjectKeys: "passthrough",
|
|
64
|
+
allowUnrecognizedUnionMembers: true,
|
|
65
|
+
allowUnrecognizedEnumValues: true,
|
|
66
|
+
breadcrumbsPrefix: ["response"],
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
ok: false,
|
|
72
|
+
error: CandidApi.guarantor.v1.create.Error._unknown(_response.error),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
async get(guarantorId) {
|
|
76
|
+
const _response = await core.fetcher({
|
|
77
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: {
|
|
80
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
81
|
+
"X-Fern-Language": "JavaScript",
|
|
82
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
83
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
84
|
+
},
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
timeoutMs: 60000,
|
|
87
|
+
});
|
|
88
|
+
if (_response.ok) {
|
|
89
|
+
return {
|
|
90
|
+
ok: true,
|
|
91
|
+
body: await serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
breadcrumbsPrefix: ["response"],
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
ok: false,
|
|
101
|
+
error: CandidApi.guarantor.v1.get.Error._unknown(_response.error),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
async update(guarantorId, request) {
|
|
105
|
+
const _response = await core.fetcher({
|
|
106
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
|
|
107
|
+
method: "PATCH",
|
|
108
|
+
headers: {
|
|
109
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
110
|
+
"X-Fern-Language": "JavaScript",
|
|
111
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
113
|
+
},
|
|
114
|
+
contentType: "application/json",
|
|
115
|
+
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
116
|
+
unrecognizedObjectKeys: "strip",
|
|
117
|
+
}),
|
|
118
|
+
timeoutMs: 60000,
|
|
119
|
+
});
|
|
120
|
+
if (_response.ok) {
|
|
121
|
+
return {
|
|
122
|
+
ok: true,
|
|
123
|
+
body: await serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
124
|
+
unrecognizedObjectKeys: "passthrough",
|
|
125
|
+
allowUnrecognizedUnionMembers: true,
|
|
126
|
+
allowUnrecognizedEnumValues: true,
|
|
127
|
+
breadcrumbsPrefix: ["response"],
|
|
128
|
+
}),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
ok: false,
|
|
133
|
+
error: CandidApi.guarantor.v1.update.Error._unknown(_response.error),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
async _getAuthorizationHeader() {
|
|
137
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
138
|
+
if (bearer != null) {
|
|
139
|
+
return `Bearer ${bearer}`;
|
|
140
|
+
}
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.V1 = V1;
|
|
@@ -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.guarantor.v1.create.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.guarantor.v1.create.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.guarantor.v1.create.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.guarantor.v1.create.Error, visitor: CandidApi.guarantor.v1.create.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.guarantor.v1.create.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
|
+
};
|