candidhealth 0.5.0 → 0.6.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 +6 -6
- package/Client.js +20 -20
- package/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
- package/api/resources/auth/resources/v2/client/Client.js +15 -1
- package/api/resources/billingNotes/client/Client.d.ts +3 -3
- package/api/resources/billingNotes/client/Client.js +4 -69
- package/api/resources/billingNotes/client/index.d.ts +1 -2
- package/api/resources/billingNotes/client/index.js +0 -29
- package/api/resources/billingNotes/index.d.ts +1 -1
- package/api/resources/billingNotes/index.js +1 -1
- package/api/resources/billingNotes/resources/index.d.ts +1 -0
- package/api/resources/billingNotes/resources/index.js +27 -0
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
- package/{dist/api/resources/tasks/resources/v3 → api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
- package/{dist/api/resources/payers/client/get.d.ts → api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
- package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/client/create.js +2 -2
- package/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
- package/api/resources/billingNotes/resources/v2/client/index.js +31 -0
- package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
- package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
- package/api/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/index.d.ts +1 -1
- package/api/resources/commons/types/index.js +1 -1
- package/api/resources/{tasks → eligibility}/client/Client.d.ts +7 -7
- package/{dist/api/resources/tasks → api/resources/eligibility}/client/Client.js +7 -7
- package/api/resources/eligibility/resources/index.d.ts +1 -0
- package/api/resources/eligibility/resources/index.js +27 -0
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +35 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +107 -0
- package/api/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/api/resources/{tasks/resources/v3 → eligibility/resources/v2}/client/index.js +2 -2
- package/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +28 -0
- package/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +58 -0
- package/api/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/api/resources/eligibility/resources/v2/index.js +17 -0
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
- package/api/resources/exports/resources/v3/client/Client.js +16 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +3 -7
- package/api/resources/index.js +4 -8
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/payers/client/Client.d.ts +3 -4
- package/api/resources/payers/client/Client.js +4 -108
- package/api/resources/payers/client/index.d.ts +1 -3
- package/api/resources/payers/client/index.js +0 -30
- package/api/resources/payers/index.d.ts +1 -1
- package/api/resources/payers/index.js +1 -1
- package/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
- package/api/resources/payers/resources/v3/client/Client.js +122 -0
- package/api/resources/{tasks/resources/v3/client/getActions.d.ts → payers/resources/v3/client/get.d.ts} +4 -4
- package/api/resources/{tasks/resources/v3/client/getActions.js → payers/resources/v3/client/get.js} +1 -1
- package/{dist/api/resources/tasks/resources/v3/client/getActions.d.ts → api/resources/payers/resources/v3/client/getAll.d.ts} +4 -4
- package/{dist/api/resources/tasks/resources/v3/client/getActions.js → api/resources/payers/resources/v3/client/getAll.js} +1 -1
- package/api/resources/payers/resources/v3/client/index.d.ts +3 -0
- package/api/resources/payers/resources/v3/client/index.js +32 -0
- package/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
- package/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
- package/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
- package/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
- package/dist/Client.d.ts +6 -6
- package/dist/Client.js +20 -20
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +15 -1
- package/dist/api/resources/billingNotes/client/Client.d.ts +3 -3
- package/dist/api/resources/billingNotes/client/Client.js +4 -69
- package/dist/api/resources/billingNotes/client/index.d.ts +1 -2
- package/dist/api/resources/billingNotes/client/index.js +0 -29
- package/dist/api/resources/billingNotes/index.d.ts +1 -1
- package/dist/api/resources/billingNotes/index.js +1 -1
- package/dist/api/resources/billingNotes/resources/index.d.ts +1 -0
- package/dist/api/resources/billingNotes/resources/index.js +27 -0
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
- package/{api/resources/tasks/resources/v3 → dist/api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
- package/{api/resources/payers/client/get.d.ts → dist/api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
- package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/client/create.js +2 -2
- package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/billingNotes/resources/v2/client/index.js +31 -0
- package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
- package/dist/api/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/dist/api/resources/billingNotes/resources/v2/index.js +18 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
- package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
- package/dist/api/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -1
- package/dist/api/resources/commons/types/index.js +1 -1
- package/dist/api/resources/{tasks → eligibility}/client/Client.d.ts +7 -7
- package/{api/resources/tasks → dist/api/resources/eligibility}/client/Client.js +7 -7
- package/dist/api/resources/eligibility/resources/index.d.ts +1 -0
- package/dist/api/resources/eligibility/resources/index.js +27 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +35 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +107 -0
- package/dist/api/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/dist/api/resources/{tasks/resources/v3 → eligibility/resources/v2}/client/index.js +2 -2
- package/dist/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +28 -0
- package/dist/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +58 -0
- package/dist/api/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/eligibility/resources/v2/index.js +17 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
- package/dist/api/resources/exports/resources/v3/client/Client.js +16 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +3 -7
- package/dist/api/resources/index.js +4 -8
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/payers/client/Client.d.ts +3 -4
- package/dist/api/resources/payers/client/Client.js +4 -108
- package/dist/api/resources/payers/client/index.d.ts +1 -3
- package/dist/api/resources/payers/client/index.js +0 -30
- package/dist/api/resources/payers/index.d.ts +1 -1
- package/dist/api/resources/payers/index.js +1 -1
- package/dist/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
- package/dist/api/resources/payers/resources/v3/client/Client.js +122 -0
- package/dist/api/resources/payers/{client/getAll.d.ts → resources/v3/client/get.d.ts} +6 -6
- package/{api/resources/payers/client/getAll.js → dist/api/resources/payers/resources/v3/client/get.js} +2 -2
- package/dist/api/resources/payers/resources/v3/client/getAll.d.ts +22 -0
- package/dist/api/resources/payers/{client → resources/v3/client}/getAll.js +2 -2
- package/dist/api/resources/payers/resources/v3/client/index.d.ts +3 -0
- package/dist/api/resources/payers/resources/v3/client/index.js +32 -0
- package/dist/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
- package/dist/api/resources/payers/resources/v3/index.d.ts +2 -0
- package/dist/api/resources/payers/resources/v3/index.js +18 -0
- package/dist/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
- package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
- package/dist/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
- package/dist/serialization/resources/billingNotes/index.d.ts +1 -2
- package/dist/serialization/resources/billingNotes/index.js +1 -2
- package/dist/serialization/resources/billingNotes/resources/index.d.ts +1 -0
- package/dist/serialization/resources/billingNotes/resources/index.js +27 -0
- package/dist/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
- package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
- package/dist/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/dist/serialization/resources/billingNotes/resources/v2/index.js +18 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
- package/{serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
- package/dist/serialization/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/{TaskId.js → HttpServiceUnavailableErrorMessage.js} +3 -7
- package/dist/serialization/resources/commons/types/index.d.ts +1 -1
- package/dist/serialization/resources/commons/types/index.js +1 -1
- package/dist/serialization/resources/eligibility/resources/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/index.js +27 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/index.js +27 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +14 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +46 -0
- package/dist/serialization/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/v2/index.js +17 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
- 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/index.d.ts +3 -6
- package/dist/serialization/resources/index.js +4 -7
- package/dist/serialization/resources/payers/index.d.ts +1 -1
- package/dist/serialization/resources/payers/index.js +1 -1
- package/dist/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
- package/{serialization/resources/payers → dist/serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
- package/dist/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
- package/dist/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
- package/dist/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
- package/dist/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
- package/package.json +1 -1
- package/serialization/resources/billingNotes/index.d.ts +1 -2
- package/serialization/resources/billingNotes/index.js +1 -2
- package/serialization/resources/billingNotes/resources/index.d.ts +1 -0
- package/serialization/resources/billingNotes/resources/index.js +27 -0
- package/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
- package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
- package/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/serialization/resources/billingNotes/resources/v2/index.js +18 -0
- package/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
- package/{dist/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
- package/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
- package/serialization/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/{TaskId.js → HttpServiceUnavailableErrorMessage.js} +3 -7
- package/serialization/resources/commons/types/index.d.ts +1 -1
- package/serialization/resources/commons/types/index.js +1 -1
- package/serialization/resources/eligibility/resources/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/index.js +27 -0
- package/serialization/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/v2/client/index.js +27 -0
- package/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +14 -0
- package/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +46 -0
- package/serialization/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/v2/index.js +17 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
- 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/index.d.ts +3 -6
- package/serialization/resources/index.js +4 -7
- package/serialization/resources/payers/index.d.ts +1 -1
- package/serialization/resources/payers/index.js +1 -1
- package/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
- package/{dist/serialization/resources/payers → serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
- package/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
- package/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
- package/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
- package/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
- package/api/resources/billingNotes/client/create.d.ts +0 -22
- package/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
- package/api/resources/commons/types/TaskId.d.ts +0 -8
- package/api/resources/commons/types/TaskId.js +0 -10
- package/api/resources/payers/client/get.js +0 -47
- package/api/resources/payers/client/getAll.d.ts +0 -22
- package/api/resources/payers/types/PayerUuid.d.ts +0 -8
- package/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
- package/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
- package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
- package/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
- package/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
- package/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/api/resources/tasks/resources/v3/types/index.js +0 -19
- package/dist/api/resources/billingNotes/client/create.d.ts +0 -22
- package/dist/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
- package/dist/api/resources/commons/types/TaskId.d.ts +0 -8
- package/dist/api/resources/commons/types/TaskId.js +0 -10
- package/dist/api/resources/payers/client/get.js +0 -47
- package/dist/api/resources/payers/types/PayerUuid.d.ts +0 -8
- package/dist/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/dist/api/resources/tasks/resources/v3/types/index.js +0 -19
- package/dist/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
- package/dist/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
- package/dist/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
- package/dist/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
- package/dist/serialization/resources/commons/types/TaskId.d.ts +0 -10
- package/dist/serialization/resources/payers/types/Payer.d.ts +0 -14
- package/dist/serialization/resources/payers/types/PayerPage.d.ts +0 -12
- package/dist/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
- package/dist/serialization/resources/payers/types/PayerUuid.js +0 -37
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
- package/dist/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/dist/serialization/resources/tasks/resources/v3/types/index.js +0 -19
- package/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
- package/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
- package/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
- package/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
- package/serialization/resources/commons/types/TaskId.d.ts +0 -10
- package/serialization/resources/payers/types/Payer.d.ts +0 -14
- package/serialization/resources/payers/types/PayerPage.d.ts +0 -12
- package/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
- package/serialization/resources/payers/types/PayerUuid.js +0 -37
- package/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
- package/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
- package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
- package/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
- package/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/serialization/resources/tasks/resources/v3/types/index.js +0 -19
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.d.ts +0 -0
- package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- package/api/resources/{payers/client/requests/GetAllPayersRequest.js → commons/types/HttpServiceUnavailableErrorMessage.js} +0 -0
- package/api/resources/{tasks → eligibility}/client/index.d.ts +0 -0
- package/api/resources/{payers/client/requests → eligibility/client}/index.js +0 -0
- package/api/resources/{tasks → eligibility}/index.d.ts +1 -1
- package/{dist/api/resources/tasks → api/resources/eligibility}/index.js +1 -1
- package/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
- package/api/resources/{tasks → payers}/resources/index.js +0 -0
- package/{dist/api/resources/payers → api/resources/payers/resources/v3}/client/requests/GetAllPayersRequest.js +0 -0
- package/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
- package/api/resources/{tasks/client → payers/resources/v3/client/requests}/index.js +0 -0
- package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.d.ts +0 -0
- package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- package/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- package/{api/resources/tasks/resources/v3/types/TaskAction.js → dist/api/resources/commons/types/HttpServiceUnavailableErrorMessage.js} +0 -0
- package/dist/api/resources/{tasks → eligibility}/client/index.d.ts +0 -0
- package/dist/api/resources/{payers/client/requests → eligibility/client}/index.js +0 -0
- package/dist/api/resources/{tasks → eligibility}/index.d.ts +1 -1
- package/{api/resources/tasks → dist/api/resources/eligibility}/index.js +1 -1
- /package/dist/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/dist/api/resources/{tasks → payers}/resources/index.js +0 -0
- /package/{api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js → dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.js} +0 -0
- /package/dist/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/{tasks/client → payers/resources/v3/client/requests}/index.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- /package/dist/serialization/resources/{tasks → eligibility}/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → eligibility}/index.js +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/index.js +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
- /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- /package/serialization/resources/{tasks → eligibility}/index.d.ts +0 -0
- /package/serialization/resources/{tasks → eligibility}/index.js +0 -0
- /package/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/serialization/resources/{tasks → payers}/resources/index.js +0 -0
- /package/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
- /package/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
- /package/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
|
@@ -2,121 +2,17 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
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
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
6
|
exports.Payers = void 0;
|
|
33
|
-
const
|
|
34
|
-
const core = __importStar(require("../../../../core"));
|
|
35
|
-
const CandidApi = __importStar(require("../../.."));
|
|
36
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
7
|
+
const Client_1 = require("../resources/v3/client/Client");
|
|
39
8
|
class Payers {
|
|
40
9
|
options;
|
|
41
10
|
constructor(options) {
|
|
42
11
|
this.options = options;
|
|
43
12
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
method: "GET",
|
|
48
|
-
headers: {
|
|
49
|
-
Authorization: await this._getAuthorizationHeader(),
|
|
50
|
-
"X-Fern-Language": "JavaScript",
|
|
51
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.5.0",
|
|
53
|
-
},
|
|
54
|
-
contentType: "application/json",
|
|
55
|
-
timeoutMs: 60000,
|
|
56
|
-
});
|
|
57
|
-
if (_response.ok) {
|
|
58
|
-
return {
|
|
59
|
-
ok: true,
|
|
60
|
-
body: await serializers.Payer.parseOrThrow(_response.body, {
|
|
61
|
-
unrecognizedObjectKeys: "passthrough",
|
|
62
|
-
allowUnrecognizedUnionMembers: true,
|
|
63
|
-
allowUnrecognizedEnumValues: true,
|
|
64
|
-
breadcrumbsPrefix: ["response"],
|
|
65
|
-
}),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
ok: false,
|
|
70
|
-
error: CandidApi.payers.get.Error._unknown(_response.error),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
async getAll(request = {}) {
|
|
74
|
-
const { limit, searchTerm, pageToken } = request;
|
|
75
|
-
const _queryParams = new url_search_params_1.default();
|
|
76
|
-
if (limit != null) {
|
|
77
|
-
_queryParams.append("limit", limit.toString());
|
|
78
|
-
}
|
|
79
|
-
if (searchTerm != null) {
|
|
80
|
-
_queryParams.append("search_term", searchTerm);
|
|
81
|
-
}
|
|
82
|
-
if (pageToken != null) {
|
|
83
|
-
_queryParams.append("page_token", pageToken);
|
|
84
|
-
}
|
|
85
|
-
const _response = await core.fetcher({
|
|
86
|
-
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/payers/v3"),
|
|
87
|
-
method: "GET",
|
|
88
|
-
headers: {
|
|
89
|
-
Authorization: await this._getAuthorizationHeader(),
|
|
90
|
-
"X-Fern-Language": "JavaScript",
|
|
91
|
-
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.5.0",
|
|
93
|
-
},
|
|
94
|
-
contentType: "application/json",
|
|
95
|
-
queryParameters: _queryParams,
|
|
96
|
-
timeoutMs: 60000,
|
|
97
|
-
});
|
|
98
|
-
if (_response.ok) {
|
|
99
|
-
return {
|
|
100
|
-
ok: true,
|
|
101
|
-
body: await serializers.PayerPage.parseOrThrow(_response.body, {
|
|
102
|
-
unrecognizedObjectKeys: "passthrough",
|
|
103
|
-
allowUnrecognizedUnionMembers: true,
|
|
104
|
-
allowUnrecognizedEnumValues: true,
|
|
105
|
-
breadcrumbsPrefix: ["response"],
|
|
106
|
-
}),
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
ok: false,
|
|
111
|
-
error: CandidApi.payers.getAll.Error._unknown(_response.error),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
async _getAuthorizationHeader() {
|
|
115
|
-
const bearer = await core.Supplier.get(this.options.token);
|
|
116
|
-
if (bearer != null) {
|
|
117
|
-
return `Bearer ${bearer}`;
|
|
118
|
-
}
|
|
119
|
-
return undefined;
|
|
13
|
+
_v3;
|
|
14
|
+
get v3() {
|
|
15
|
+
return (this._v3 ??= new Client_1.V3(this.options));
|
|
120
16
|
}
|
|
121
17
|
}
|
|
122
18
|
exports.Payers = Payers;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.getAll = exports.get = void 0;
|
|
30
|
-
__exportStar(require("./requests"), exports);
|
|
31
|
-
exports.get = __importStar(require("./get"));
|
|
32
|
-
exports.getAll = __importStar(require("./getAll"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./resources";
|
|
2
2
|
export * from "./client";
|
|
@@ -14,5 +14,5 @@ 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);
|
|
18
18
|
__exportStar(require("./client"), exports);
|
|
@@ -13,6 +13,7 @@ export declare namespace V3 {
|
|
|
13
13
|
export declare class V3 {
|
|
14
14
|
protected readonly options: V3.Options;
|
|
15
15
|
constructor(options: V3.Options);
|
|
16
|
-
|
|
16
|
+
get(payerUuid: CandidApi.payers.v3.PayerUuid): Promise<core.APIResponse<CandidApi.payers.v3.Payer, CandidApi.payers.v3.get.Error>>;
|
|
17
|
+
getAll(request?: CandidApi.payers.v3.GetAllPayersRequest): Promise<core.APIResponse<CandidApi.payers.v3.PayerPage, CandidApi.payers.v3.getAll.Error>>;
|
|
17
18
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
18
19
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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.V3 = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
39
|
+
class V3 {
|
|
40
|
+
options;
|
|
41
|
+
constructor(options) {
|
|
42
|
+
this.options = options;
|
|
43
|
+
}
|
|
44
|
+
async get(payerUuid) {
|
|
45
|
+
const _response = await core.fetcher({
|
|
46
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/payers/v3/${await serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid)}`),
|
|
47
|
+
method: "GET",
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
50
|
+
"X-Fern-Language": "JavaScript",
|
|
51
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
53
|
+
},
|
|
54
|
+
contentType: "application/json",
|
|
55
|
+
timeoutMs: 60000,
|
|
56
|
+
});
|
|
57
|
+
if (_response.ok) {
|
|
58
|
+
return {
|
|
59
|
+
ok: true,
|
|
60
|
+
body: await serializers.payers.v3.Payer.parseOrThrow(_response.body, {
|
|
61
|
+
unrecognizedObjectKeys: "passthrough",
|
|
62
|
+
allowUnrecognizedUnionMembers: true,
|
|
63
|
+
allowUnrecognizedEnumValues: true,
|
|
64
|
+
breadcrumbsPrefix: ["response"],
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
ok: false,
|
|
70
|
+
error: CandidApi.payers.v3.get.Error._unknown(_response.error),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
async getAll(request = {}) {
|
|
74
|
+
const { limit, searchTerm, pageToken } = request;
|
|
75
|
+
const _queryParams = new url_search_params_1.default();
|
|
76
|
+
if (limit != null) {
|
|
77
|
+
_queryParams.append("limit", limit.toString());
|
|
78
|
+
}
|
|
79
|
+
if (searchTerm != null) {
|
|
80
|
+
_queryParams.append("search_term", searchTerm);
|
|
81
|
+
}
|
|
82
|
+
if (pageToken != null) {
|
|
83
|
+
_queryParams.append("page_token", pageToken);
|
|
84
|
+
}
|
|
85
|
+
const _response = await core.fetcher({
|
|
86
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/payers/v3"),
|
|
87
|
+
method: "GET",
|
|
88
|
+
headers: {
|
|
89
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
90
|
+
"X-Fern-Language": "JavaScript",
|
|
91
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
93
|
+
},
|
|
94
|
+
contentType: "application/json",
|
|
95
|
+
queryParameters: _queryParams,
|
|
96
|
+
timeoutMs: 60000,
|
|
97
|
+
});
|
|
98
|
+
if (_response.ok) {
|
|
99
|
+
return {
|
|
100
|
+
ok: true,
|
|
101
|
+
body: await serializers.payers.v3.PayerPage.parseOrThrow(_response.body, {
|
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
|
104
|
+
allowUnrecognizedEnumValues: true,
|
|
105
|
+
breadcrumbsPrefix: ["response"],
|
|
106
|
+
}),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
ok: false,
|
|
111
|
+
error: CandidApi.payers.v3.getAll.Error._unknown(_response.error),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
async _getAuthorizationHeader() {
|
|
115
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
116
|
+
if (bearer != null) {
|
|
117
|
+
return `Bearer ${bearer}`;
|
|
118
|
+
}
|
|
119
|
+
return undefined;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.V3 = V3;
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.
|
|
6
|
+
export declare type Error = CandidApi.payers.v3.get.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface _Unknown extends _Utils {
|
|
9
9
|
errorName: void;
|
|
10
10
|
content: core.Fetcher.Error;
|
|
11
11
|
}
|
|
12
12
|
interface _Utils {
|
|
13
|
-
_visit: <_Result>(visitor: CandidApi.
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.payers.v3.get.Error._Visitor<_Result>) => _Result;
|
|
14
14
|
}
|
|
15
15
|
interface _Visitor<_Result> {
|
|
16
16
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
export declare const Error: {
|
|
20
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.
|
|
21
|
-
readonly _visit: <_Result>(value: CandidApi.
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payers.v3.get.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.payers.v3.get.Error, visitor: CandidApi.payers.v3.get.Error._Visitor<_Result>) => _Result;
|
|
22
22
|
};
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.
|
|
6
|
+
export declare type Error = CandidApi.payers.v3.getAll.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface _Unknown extends _Utils {
|
|
9
9
|
errorName: void;
|
|
10
10
|
content: core.Fetcher.Error;
|
|
11
11
|
}
|
|
12
12
|
interface _Utils {
|
|
13
|
-
_visit: <_Result>(visitor: CandidApi.
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.payers.v3.getAll.Error._Visitor<_Result>) => _Result;
|
|
14
14
|
}
|
|
15
15
|
interface _Visitor<_Result> {
|
|
16
16
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
export declare const Error: {
|
|
20
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.
|
|
21
|
-
readonly _visit: <_Result>(value: CandidApi.
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payers.v3.getAll.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.payers.v3.getAll.Error, visitor: CandidApi.payers.v3.getAll.Error._Visitor<_Result>) => _Result;
|
|
22
22
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.getAll = exports.get = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.get = __importStar(require("./get"));
|
|
32
|
+
exports.getAll = __importStar(require("./getAll"));
|
|
@@ -1,10 +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
|
+
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface Payer {
|
|
6
6
|
/** Auto-generated ID set on creation */
|
|
7
|
-
payerUuid: CandidApi.PayerUuid;
|
|
7
|
+
payerUuid: CandidApi.payers.v3.PayerUuid;
|
|
8
8
|
/** The primary national payer ID of the payer */
|
|
9
9
|
payerId: string;
|
|
10
10
|
/** The primary display name of the payer */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as CandidApi from "
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface PayerPage extends CandidApi.ResourcePage {
|
|
6
|
-
items: CandidApi.Payer[];
|
|
6
|
+
items: CandidApi.payers.v3.Payer[];
|
|
7
7
|
}
|
|
@@ -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 PayerUuid = string & {
|
|
6
|
+
payers_v3_PayerUuid: void;
|
|
7
|
+
};
|
|
8
|
+
export declare function PayerUuid(value: string): CandidApi.payers.v3.PayerUuid;
|
package/dist/Client.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Auth } from "./api/resources/auth/client/Client";
|
|
7
|
+
import { BillingNotes } from "./api/resources/billingNotes/client/Client";
|
|
8
|
+
import { Eligibility } from "./api/resources/eligibility/client/Client";
|
|
7
9
|
import { Encounters } from "./api/resources/encounters/client/Client";
|
|
8
10
|
import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
|
|
9
11
|
import { Exports } from "./api/resources/exports/client/Client";
|
|
10
12
|
import { Guarantor } from "./api/resources/guarantor/client/Client";
|
|
11
13
|
import { OrganizationProviders } from "./api/resources/organizationProviders/client/Client";
|
|
12
|
-
import { Tasks } from "./api/resources/tasks/client/Client";
|
|
13
|
-
import { BillingNotes } from "./api/resources/billingNotes/client/Client";
|
|
14
14
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
15
15
|
export declare namespace CandidApiClient {
|
|
16
16
|
interface Options {
|
|
@@ -23,6 +23,10 @@ export declare class CandidApiClient {
|
|
|
23
23
|
constructor(options: CandidApiClient.Options);
|
|
24
24
|
protected _auth: Auth | undefined;
|
|
25
25
|
get auth(): Auth;
|
|
26
|
+
protected _billingNotes: BillingNotes | undefined;
|
|
27
|
+
get billingNotes(): BillingNotes;
|
|
28
|
+
protected _eligibility: Eligibility | undefined;
|
|
29
|
+
get eligibility(): Eligibility;
|
|
26
30
|
protected _encounters: Encounters | undefined;
|
|
27
31
|
get encounters(): Encounters;
|
|
28
32
|
protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
|
|
@@ -33,10 +37,6 @@ export declare class CandidApiClient {
|
|
|
33
37
|
get guarantor(): Guarantor;
|
|
34
38
|
protected _organizationProviders: OrganizationProviders | undefined;
|
|
35
39
|
get organizationProviders(): OrganizationProviders;
|
|
36
|
-
protected _tasks: Tasks | undefined;
|
|
37
|
-
get tasks(): Tasks;
|
|
38
|
-
protected _billingNotes: BillingNotes | undefined;
|
|
39
|
-
get billingNotes(): BillingNotes;
|
|
40
40
|
protected _payers: Payers | undefined;
|
|
41
41
|
get payers(): Payers;
|
|
42
42
|
}
|
package/dist/Client.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CandidApiClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/auth/client/Client");
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
8
|
+
const Client_2 = require("./api/resources/billingNotes/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/eligibility/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/encounters/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/exports/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/guarantor/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/organizationProviders/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/payers/client/Client");
|
|
16
16
|
class CandidApiClient {
|
|
17
17
|
options;
|
|
@@ -22,33 +22,33 @@ class CandidApiClient {
|
|
|
22
22
|
get auth() {
|
|
23
23
|
return (this._auth ??= new Client_1.Auth(this.options));
|
|
24
24
|
}
|
|
25
|
+
_billingNotes;
|
|
26
|
+
get billingNotes() {
|
|
27
|
+
return (this._billingNotes ??= new Client_2.BillingNotes(this.options));
|
|
28
|
+
}
|
|
29
|
+
_eligibility;
|
|
30
|
+
get eligibility() {
|
|
31
|
+
return (this._eligibility ??= new Client_3.Eligibility(this.options));
|
|
32
|
+
}
|
|
25
33
|
_encounters;
|
|
26
34
|
get encounters() {
|
|
27
|
-
return (this._encounters ??= new
|
|
35
|
+
return (this._encounters ??= new Client_4.Encounters(this.options));
|
|
28
36
|
}
|
|
29
37
|
_expectedNetworkStatus;
|
|
30
38
|
get expectedNetworkStatus() {
|
|
31
|
-
return (this._expectedNetworkStatus ??= new
|
|
39
|
+
return (this._expectedNetworkStatus ??= new Client_5.ExpectedNetworkStatus(this.options));
|
|
32
40
|
}
|
|
33
41
|
_exports;
|
|
34
42
|
get exports() {
|
|
35
|
-
return (this._exports ??= new
|
|
43
|
+
return (this._exports ??= new Client_6.Exports(this.options));
|
|
36
44
|
}
|
|
37
45
|
_guarantor;
|
|
38
46
|
get guarantor() {
|
|
39
|
-
return (this._guarantor ??= new
|
|
47
|
+
return (this._guarantor ??= new Client_7.Guarantor(this.options));
|
|
40
48
|
}
|
|
41
49
|
_organizationProviders;
|
|
42
50
|
get organizationProviders() {
|
|
43
|
-
return (this._organizationProviders ??= new
|
|
44
|
-
}
|
|
45
|
-
_tasks;
|
|
46
|
-
get tasks() {
|
|
47
|
-
return (this._tasks ??= new Client_7.Tasks(this.options));
|
|
48
|
-
}
|
|
49
|
-
_billingNotes;
|
|
50
|
-
get billingNotes() {
|
|
51
|
-
return (this._billingNotes ??= new Client_8.BillingNotes(this.options));
|
|
51
|
+
return (this._organizationProviders ??= new Client_8.OrganizationProviders(this.options));
|
|
52
52
|
}
|
|
53
53
|
_payers;
|
|
54
54
|
get payers() {
|
|
@@ -13,6 +13,20 @@ export declare namespace V2 {
|
|
|
13
13
|
export declare class V2 {
|
|
14
14
|
protected readonly options: V2.Options;
|
|
15
15
|
constructor(options: V2.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Authenticating with the Candid Health API.
|
|
18
|
+
*
|
|
19
|
+
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
20
|
+
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
|
|
21
|
+
*
|
|
22
|
+
* The bearer token should be provided in the `Authorization` header for all subsequent API calls.
|
|
23
|
+
*
|
|
24
|
+
* **Warning:**
|
|
25
|
+
*
|
|
26
|
+
* The bearer token expires 5 hours after it has been created. After it has expired, the client will receive an "HTTP 401
|
|
27
|
+
* Unauthorized" error, at which point the client should generate a new token. It is important that tokens be reused between requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an "HTTP 429 Too Many Requests" error.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
16
30
|
getToken(request: CandidApi.auth.v2.AuthGetTokenRequest): Promise<core.APIResponse<CandidApi.auth.v2.AuthGetTokenResponse, CandidApi.auth.v2.getToken.Error>>;
|
|
17
31
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
18
32
|
}
|
|
@@ -40,6 +40,20 @@ class V2 {
|
|
|
40
40
|
constructor(options) {
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Authenticating with the Candid Health API.
|
|
45
|
+
*
|
|
46
|
+
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
47
|
+
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
|
|
48
|
+
*
|
|
49
|
+
* The bearer token should be provided in the `Authorization` header for all subsequent API calls.
|
|
50
|
+
*
|
|
51
|
+
* **Warning:**
|
|
52
|
+
*
|
|
53
|
+
* The bearer token expires 5 hours after it has been created. After it has expired, the client will receive an "HTTP 401
|
|
54
|
+
* Unauthorized" error, at which point the client should generate a new token. It is important that tokens be reused between requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an "HTTP 429 Too Many Requests" error.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
43
57
|
async getToken(request) {
|
|
44
58
|
const _response = await core.fetcher({
|
|
45
59
|
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/auth/v2/token"),
|
|
@@ -48,7 +62,7 @@ class V2 {
|
|
|
48
62
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
63
|
"X-Fern-Language": "JavaScript",
|
|
50
64
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
65
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
52
66
|
},
|
|
53
67
|
contentType: "application/json",
|
|
54
68
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import
|
|
6
|
+
import { V2 } from "../resources/v2/client/Client";
|
|
7
7
|
export declare namespace BillingNotes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: environments.CandidApiEnvironment | string;
|
|
@@ -13,6 +13,6 @@ export declare namespace BillingNotes {
|
|
|
13
13
|
export declare class BillingNotes {
|
|
14
14
|
protected readonly options: BillingNotes.Options;
|
|
15
15
|
constructor(options: BillingNotes.Options);
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
protected _v2: V2 | undefined;
|
|
17
|
+
get v2(): V2;
|
|
18
18
|
}
|