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
|
@@ -20,5 +20,6 @@ __exportStar(require("./SubscriberBase"), exports);
|
|
|
20
20
|
__exportStar(require("./SubscriberCreate"), exports);
|
|
21
21
|
__exportStar(require("./Subscriber"), exports);
|
|
22
22
|
__exportStar(require("./PatientCreate"), exports);
|
|
23
|
+
__exportStar(require("./PatientBase"), exports);
|
|
23
24
|
__exportStar(require("./Patient"), exports);
|
|
24
25
|
__exportStar(require("./Gender"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as v3 from "./v3";
|
|
@@ -23,5 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
26
|
+
exports.v3 = void 0;
|
|
27
|
+
exports.v3 = __importStar(require("./v3"));
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface PatientPayment {
|
|
6
|
-
patientPaymentId: CandidApi.patientPayments.
|
|
6
|
+
patientPaymentId: CandidApi.patientPayments.v3.PatientPaymentId;
|
|
7
7
|
organizationId: CandidApi.OrganizationId;
|
|
8
8
|
sourceInternalId: string;
|
|
9
|
-
source: CandidApi.patientPayments.
|
|
9
|
+
source: CandidApi.patientPayments.v3.PatientPaymentSource;
|
|
10
10
|
amountCents: number;
|
|
11
11
|
paymentTimestamp?: Date;
|
|
12
|
-
status?: CandidApi.patientPayments.
|
|
12
|
+
status?: CandidApi.patientPayments.v3.PatientPaymentStatus;
|
|
13
13
|
paymentName?: string;
|
|
14
14
|
paymentNote?: string;
|
|
15
15
|
patientExternalId?: CandidApi.PatientExternalId;
|
|
16
|
-
|
|
16
|
+
encounterExternalId?: CandidApi.EncounterExternalId;
|
|
17
17
|
serviceLineId?: CandidApi.ServiceLineId;
|
|
18
18
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export declare type PatientPaymentId = string & {
|
|
6
|
-
|
|
6
|
+
patientPayments_v3_PatientPaymentId: void;
|
|
7
7
|
};
|
|
8
|
-
export declare function PatientPaymentId(value: string): CandidApi.patientPayments.
|
|
8
|
+
export declare function PatientPaymentId(value: string): CandidApi.patientPayments.v3.PatientPaymentId;
|
|
@@ -13,7 +13,7 @@ export declare namespace Payers {
|
|
|
13
13
|
export declare class Payers {
|
|
14
14
|
protected readonly options: Payers.Options;
|
|
15
15
|
constructor(options: Payers.Options);
|
|
16
|
-
get(payerUuid:
|
|
16
|
+
get(payerUuid: CandidApi.PayerUuid): Promise<core.APIResponse<CandidApi.Payer, CandidApi.payers.get.Error>>;
|
|
17
17
|
getAll(request?: CandidApi.GetAllPayersRequest): Promise<core.APIResponse<CandidApi.PayerPage, CandidApi.payers.getAll.Error>>;
|
|
18
18
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
19
19
|
}
|
|
@@ -33,8 +33,8 @@ exports.Payers = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../.."));
|
|
36
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
37
36
|
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
38
|
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
39
39
|
class Payers {
|
|
40
40
|
options;
|
|
@@ -43,13 +43,13 @@ class Payers {
|
|
|
43
43
|
}
|
|
44
44
|
async get(payerUuid) {
|
|
45
45
|
const _response = await core.fetcher({
|
|
46
|
-
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/payers/v3/${payerUuid}`),
|
|
46
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/payers/v3/${await serializers.PayerUuid.jsonOrThrow(payerUuid)}`),
|
|
47
47
|
method: "GET",
|
|
48
48
|
headers: {
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class Payers {
|
|
|
89
89
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
90
|
"X-Fern-Language": "JavaScript",
|
|
91
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
92
|
+
"X-Fern-SDK-Version": "0.2.1",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
4
5
|
export interface Payer {
|
|
5
6
|
/** Auto-generated ID set on creation */
|
|
6
|
-
payerUuid
|
|
7
|
+
payerUuid: CandidApi.PayerUuid;
|
|
7
8
|
/** The primary national payer ID of the payer */
|
|
8
9
|
payerId: string;
|
|
9
10
|
/** The primary display name of the payer */
|
|
@@ -0,0 +1,10 @@
|
|
|
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.PayerUuid = void 0;
|
|
7
|
+
function PayerUuid(value) {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
exports.PayerUuid = PayerUuid;
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PayerUuid"), exports);
|
|
17
18
|
__exportStar(require("./PayerPage"), exports);
|
|
18
19
|
__exportStar(require("./Payer"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./resources";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v2 from "./v2";
|
|
@@ -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.v2 = void 0;
|
|
27
|
+
exports.v2 = __importStar(require("./v2"));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
export declare type IdpUserMetadata = CandidApi.users.v2.IdpUserMetadata.AuthZeroMetadata | CandidApi.users.v2.IdpUserMetadata.GoogleAppsMetadata | CandidApi.users.v2.IdpUserMetadata.OtherIdpMetadata;
|
|
6
|
+
export declare namespace IdpUserMetadata {
|
|
7
|
+
interface AuthZeroMetadata extends CandidApi.users.v2.AuthZeroMetadata {
|
|
8
|
+
type: "auth_zero_metadata";
|
|
9
|
+
}
|
|
10
|
+
interface GoogleAppsMetadata extends CandidApi.users.v2.GoogleAppsMetadata {
|
|
11
|
+
type: "google_apps_metadata";
|
|
12
|
+
}
|
|
13
|
+
interface OtherIdpMetadata extends CandidApi.users.v2.OtherIdpMetadata {
|
|
14
|
+
type: "other_idp_metadata";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
export declare type UserId = string & {
|
|
6
|
+
users_v2_UserId: void;
|
|
7
|
+
};
|
|
8
|
+
export declare function UserId(value: string): CandidApi.users.v2.UserId;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
function
|
|
6
|
+
exports.UserId = void 0;
|
|
7
|
+
function UserId(value) {
|
|
8
8
|
return value;
|
|
9
9
|
}
|
|
10
|
-
exports.
|
|
10
|
+
exports.UserId = UserId;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
export declare type UserMetadata = CandidApi.users.v2.UserMetadata.MachineUserMetadata | CandidApi.users.v2.UserMetadata.HumanUserMetadata;
|
|
6
|
+
export declare namespace UserMetadata {
|
|
7
|
+
interface MachineUserMetadata extends CandidApi.users.v2.MachineUserMetadata {
|
|
8
|
+
type: "machine_user_metadata";
|
|
9
|
+
}
|
|
10
|
+
interface HumanUserMetadata extends CandidApi.users.v2.HumanUserMetadata {
|
|
11
|
+
type: "human_user_metadata";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
export interface UserV2 {
|
|
6
|
+
userId: CandidApi.users.v2.UserId;
|
|
7
|
+
idpMetadata: CandidApi.users.v2.IdpUserMetadata[];
|
|
8
|
+
primaryOrganizationId: CandidApi.OrganizationId;
|
|
9
|
+
userMetadata: CandidApi.users.v2.UserMetadata;
|
|
10
|
+
accessibleOrganizationIds: CandidApi.OrganizationId[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./HumanUserMetadata";
|
|
2
|
+
export * from "./UserId";
|
|
3
|
+
export * from "./MachineUserMetadata";
|
|
4
|
+
export * from "./UserMetadata";
|
|
5
|
+
export * from "./AuthZeroMetadata";
|
|
6
|
+
export * from "./GoogleAppsMetadata";
|
|
7
|
+
export * from "./OtherIdpMetadata";
|
|
8
|
+
export * from "./IdpUserMetadata";
|
|
9
|
+
export * from "./UserV2";
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./HumanUserMetadata"), exports);
|
|
18
|
+
__exportStar(require("./UserId"), exports);
|
|
19
|
+
__exportStar(require("./MachineUserMetadata"), exports);
|
|
20
|
+
__exportStar(require("./UserMetadata"), exports);
|
|
21
|
+
__exportStar(require("./AuthZeroMetadata"), exports);
|
|
22
|
+
__exportStar(require("./GoogleAppsMetadata"), exports);
|
|
23
|
+
__exportStar(require("./OtherIdpMetadata"), exports);
|
|
24
|
+
__exportStar(require("./IdpUserMetadata"), exports);
|
|
25
|
+
__exportStar(require("./UserV2"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Auth } from "./api/resources/auth/client/Client";
|
|
7
7
|
import { Encounters } from "./api/resources/encounters/client/Client";
|
|
8
|
+
import { Guarantor } from "./api/resources/guarantor/client/Client";
|
|
8
9
|
import { BillingNotes } from "./api/resources/billingNotes/client/Client";
|
|
9
10
|
import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
|
|
10
11
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
@@ -21,6 +22,8 @@ export declare class CandidApiClient {
|
|
|
21
22
|
get auth(): Auth;
|
|
22
23
|
protected _encounters: Encounters | undefined;
|
|
23
24
|
get encounters(): Encounters;
|
|
25
|
+
protected _guarantor: Guarantor | undefined;
|
|
26
|
+
get guarantor(): Guarantor;
|
|
24
27
|
protected _billingNotes: BillingNotes | undefined;
|
|
25
28
|
get billingNotes(): BillingNotes;
|
|
26
29
|
protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
|
package/dist/Client.js
CHANGED
|
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CandidApiClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/auth/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/encounters/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/guarantor/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/billingNotes/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/payers/client/Client");
|
|
12
13
|
class CandidApiClient {
|
|
13
14
|
options;
|
|
14
15
|
constructor(options) {
|
|
@@ -22,17 +23,21 @@ class CandidApiClient {
|
|
|
22
23
|
get encounters() {
|
|
23
24
|
return (this._encounters ??= new Client_2.Encounters(this.options));
|
|
24
25
|
}
|
|
26
|
+
_guarantor;
|
|
27
|
+
get guarantor() {
|
|
28
|
+
return (this._guarantor ??= new Client_3.Guarantor(this.options));
|
|
29
|
+
}
|
|
25
30
|
_billingNotes;
|
|
26
31
|
get billingNotes() {
|
|
27
|
-
return (this._billingNotes ??= new
|
|
32
|
+
return (this._billingNotes ??= new Client_4.BillingNotes(this.options));
|
|
28
33
|
}
|
|
29
34
|
_expectedNetworkStatus;
|
|
30
35
|
get expectedNetworkStatus() {
|
|
31
|
-
return (this._expectedNetworkStatus ??= new
|
|
36
|
+
return (this._expectedNetworkStatus ??= new Client_5.ExpectedNetworkStatus(this.options));
|
|
32
37
|
}
|
|
33
38
|
_payers;
|
|
34
39
|
get payers() {
|
|
35
|
-
return (this._payers ??= new
|
|
40
|
+
return (this._payers ??= new Client_6.Payers(this.options));
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
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.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class BillingNotes {
|
|
|
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.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
5
|
+
export interface ContactInfo {
|
|
6
|
+
phoneNumbers: CandidApi.PhoneNumber[];
|
|
7
|
+
phoneConsent: boolean;
|
|
8
|
+
email: CandidApi.Email;
|
|
9
|
+
emailConsent: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type PhoneNumberType = "Home" | "Mobile" | "Work";
|
|
5
|
+
export declare const PhoneNumberType: {
|
|
6
|
+
readonly Home: "Home";
|
|
7
|
+
readonly Mobile: "Mobile";
|
|
8
|
+
readonly Work: "Work";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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.PhoneNumberType = void 0;
|
|
7
|
+
exports.PhoneNumberType = {
|
|
8
|
+
Home: "Home",
|
|
9
|
+
Mobile: "Mobile",
|
|
10
|
+
Work: "Work",
|
|
11
|
+
};
|
|
@@ -4,7 +4,6 @@ export * from "./ClaimId";
|
|
|
4
4
|
export * from "./ServiceLineId";
|
|
5
5
|
export * from "./PatientExternalId";
|
|
6
6
|
export * from "./EncounterExternalId";
|
|
7
|
-
export * from "./Auth0Id";
|
|
8
7
|
export * from "./Npi";
|
|
9
8
|
export * from "./WorkQueueId";
|
|
10
9
|
export * from "./LinkUrl";
|
|
@@ -25,3 +24,7 @@ export * from "./PatientRelationshipToInsuredCodeAll";
|
|
|
25
24
|
export * from "./ProcedureModifier";
|
|
26
25
|
export * from "./ServiceLineUnits";
|
|
27
26
|
export * from "./InsuranceTypeCode";
|
|
27
|
+
export * from "./PhoneNumber";
|
|
28
|
+
export * from "./PhoneNumberType";
|
|
29
|
+
export * from "./Email";
|
|
30
|
+
export * from "./ContactInfo";
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./ClaimId"), exports);
|
|
|
20
20
|
__exportStar(require("./ServiceLineId"), exports);
|
|
21
21
|
__exportStar(require("./PatientExternalId"), exports);
|
|
22
22
|
__exportStar(require("./EncounterExternalId"), exports);
|
|
23
|
-
__exportStar(require("./Auth0Id"), exports);
|
|
24
23
|
__exportStar(require("./Npi"), exports);
|
|
25
24
|
__exportStar(require("./WorkQueueId"), exports);
|
|
26
25
|
__exportStar(require("./LinkUrl"), exports);
|
|
@@ -41,3 +40,7 @@ __exportStar(require("./PatientRelationshipToInsuredCodeAll"), exports);
|
|
|
41
40
|
__exportStar(require("./ProcedureModifier"), exports);
|
|
42
41
|
__exportStar(require("./ServiceLineUnits"), exports);
|
|
43
42
|
__exportStar(require("./InsuranceTypeCode"), exports);
|
|
43
|
+
__exportStar(require("./PhoneNumber"), exports);
|
|
44
|
+
__exportStar(require("./PhoneNumberType"), exports);
|
|
45
|
+
__exportStar(require("./Email"), exports);
|
|
46
|
+
__exportStar(require("./ContactInfo"), exports);
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface EncounterProviderBase {
|
|
5
5
|
/**
|
|
6
|
-
* If the
|
|
6
|
+
* If the provider is an individual, this should be set instead of organization name
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
firstName?: string;
|
|
10
10
|
/**
|
|
11
|
-
* If the
|
|
11
|
+
* If the provider is an individual, this should be set instead of organization name
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
lastName?: string;
|
|
15
15
|
/**
|
|
16
|
-
* If the
|
|
16
|
+
* If the provider is an organization, this should be set instead of first + last name
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
organizationName?: string;
|