candidhealth 0.24.2 → 0.24.3
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 +45 -40
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/commons/types/Primitive.d.ts +14 -0
- package/api/resources/commons/types/Primitive.js +12 -0
- package/api/resources/commons/types/SchemaId.d.ts +8 -0
- package/api/resources/commons/types/SchemaId.js +10 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/client/Client.d.ts +26 -0
- package/api/resources/customSchemas/client/Client.js +17 -0
- package/api/resources/customSchemas/client/index.d.ts +1 -0
- package/api/resources/customSchemas/client/index.js +2 -0
- package/api/resources/customSchemas/index.d.ts +2 -0
- package/api/resources/customSchemas/index.js +18 -0
- package/api/resources/customSchemas/resources/index.d.ts +1 -0
- package/api/resources/customSchemas/resources/index.js +27 -0
- package/api/resources/customSchemas/resources/v1/client/Client.d.ts +80 -0
- package/api/resources/customSchemas/resources/v1/client/Client.js +325 -0
- package/api/resources/customSchemas/resources/v1/client/create.d.ts +28 -0
- package/api/resources/customSchemas/resources/v1/client/create.js +58 -0
- package/api/resources/customSchemas/resources/v1/client/get.d.ts +34 -0
- package/api/resources/customSchemas/resources/v1/client/get.js +69 -0
- package/api/resources/customSchemas/resources/v1/client/getMulti.d.ts +28 -0
- package/api/resources/customSchemas/resources/v1/client/getMulti.js +58 -0
- package/api/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/api/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +20 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +5 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +21 -0
- package/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +5 -0
- package/api/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/api/resources/customSchemas/resources/v1/client/requests/index.js +2 -0
- package/api/resources/customSchemas/resources/v1/client/update.d.ts +40 -0
- package/api/resources/customSchemas/resources/v1/client/update.js +80 -0
- package/api/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/api/resources/customSchemas/resources/v1/index.js +18 -0
- package/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/Schema.d.ts +10 -0
- package/api/resources/customSchemas/resources/v1/types/Schema.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaField.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +7 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +22 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaInstance.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +13 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +7 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/api/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.d.ts +19 -1
- package/api/resources/encounters/resources/v4/client/Client.js +25 -5
- 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 +15 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -1
- 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 +15 -1
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +10 -1
- package/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +5 -0
- package/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +22 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +5 -0
- package/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +5 -0
- package/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +10 -0
- package/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +5 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/index.js +7 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +7 -7
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +45 -40
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/commons/types/Primitive.d.ts +14 -0
- package/dist/api/resources/commons/types/Primitive.js +12 -0
- package/dist/api/resources/commons/types/SchemaId.d.ts +8 -0
- package/dist/api/resources/commons/types/SchemaId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/client/Client.d.ts +26 -0
- package/dist/api/resources/customSchemas/client/Client.js +17 -0
- package/dist/api/resources/customSchemas/client/index.d.ts +1 -0
- package/dist/api/resources/customSchemas/client/index.js +2 -0
- package/dist/api/resources/customSchemas/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/index.js +18 -0
- package/dist/api/resources/customSchemas/resources/index.d.ts +1 -0
- package/dist/api/resources/customSchemas/resources/index.js +27 -0
- package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +80 -0
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +325 -0
- package/dist/api/resources/customSchemas/resources/v1/client/create.d.ts +28 -0
- package/dist/api/resources/customSchemas/resources/v1/client/create.js +58 -0
- package/dist/api/resources/customSchemas/resources/v1/client/get.d.ts +34 -0
- package/dist/api/resources/customSchemas/resources/v1/client/get.js +69 -0
- package/dist/api/resources/customSchemas/resources/v1/client/getMulti.d.ts +28 -0
- package/dist/api/resources/customSchemas/resources/v1/client/getMulti.js +58 -0
- package/dist/api/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +20 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +21 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/customSchemas/resources/v1/client/update.d.ts +40 -0
- package/dist/api/resources/customSchemas/resources/v1/client/update.js +80 -0
- package/dist/api/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/customSchemas/resources/v1/index.js +18 -0
- package/dist/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/Schema.d.ts +10 -0
- package/dist/api/resources/customSchemas/resources/v1/types/Schema.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaField.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +7 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +22 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstance.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +13 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +7 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +19 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +25 -5
- 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 +15 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -1
- 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 +15 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +10 -1
- package/dist/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +22 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +10 -0
- package/dist/api/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +7 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +7 -7
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/commons/types/Primitive.d.ts +10 -0
- package/dist/serialization/resources/commons/types/Primitive.js +31 -0
- package/dist/serialization/resources/commons/types/SchemaId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/SchemaId.js +37 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/customSchemas/index.d.ts +1 -0
- package/dist/serialization/resources/customSchemas/index.js +17 -0
- package/dist/serialization/resources/customSchemas/resources/index.d.ts +1 -0
- package/dist/serialization/resources/customSchemas/resources/index.js +27 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/create.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/create.js +61 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/get.d.ts +20 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/get.js +67 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/getMulti.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/getMulti.js +61 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +36 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +15 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +36 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/requests/index.js +7 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/update.d.ts +25 -0
- package/dist/serialization/resources/customSchemas/resources/v1/client/update.js +73 -0
- package/dist/serialization/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/customSchemas/resources/v1/index.js +18 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/Schema.d.ts +17 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/Schema.js +38 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaField.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaField.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +13 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +18 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.js +41 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +13 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +34 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +35 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- 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 +2 -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 +6 -1
- package/dist/serialization/resources/encounters/resources/v4/client/update.js +6 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +35 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +30 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +47 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +13 -0
- package/dist/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +34 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +17 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +38 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +7 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/package.json +1 -1
- package/reference.md +295 -0
- package/serialization/resources/commons/types/Primitive.d.ts +10 -0
- package/serialization/resources/commons/types/Primitive.js +31 -0
- package/serialization/resources/commons/types/SchemaId.d.ts +10 -0
- package/serialization/resources/commons/types/SchemaId.js +37 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/customSchemas/index.d.ts +1 -0
- package/serialization/resources/customSchemas/index.js +17 -0
- package/serialization/resources/customSchemas/resources/index.d.ts +1 -0
- package/serialization/resources/customSchemas/resources/index.js +27 -0
- package/serialization/resources/customSchemas/resources/v1/client/create.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/create.js +61 -0
- package/serialization/resources/customSchemas/resources/v1/client/get.d.ts +20 -0
- package/serialization/resources/customSchemas/resources/v1/client/get.js +67 -0
- package/serialization/resources/customSchemas/resources/v1/client/getMulti.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/getMulti.js +61 -0
- package/serialization/resources/customSchemas/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/customSchemas/resources/v1/client/index.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaCreate.js +36 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.d.ts +15 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/SchemaUpdate.js +36 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/index.d.ts +2 -0
- package/serialization/resources/customSchemas/resources/v1/client/requests/index.js +7 -0
- package/serialization/resources/customSchemas/resources/v1/client/update.d.ts +25 -0
- package/serialization/resources/customSchemas/resources/v1/client/update.js +73 -0
- package/serialization/resources/customSchemas/resources/v1/index.d.ts +2 -0
- package/serialization/resources/customSchemas/resources/v1/index.js +18 -0
- package/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/KeyWithNameAlreadyExistsError.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/Schema.d.ts +17 -0
- package/serialization/resources/customSchemas/resources/v1/types/Schema.js +38 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaField.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaField.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.d.ts +13 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaGetMultiResponse.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstance.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.d.ts +18 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationError.js +41 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.d.ts +13 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaValidationFailure.js +34 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js +35 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +8 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.js +24 -0
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -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 +6 -1
- package/serialization/resources/encounters/resources/v4/client/update.js +6 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/types/KeyDoesNotExistError.js +35 -0
- package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaDoesNotExistError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts +30 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js +47 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.d.ts +13 -0
- package/serialization/resources/encounters/resources/v4/types/SchemaUnauthorizedAccessError.js +34 -0
- package/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.d.ts +17 -0
- package/serialization/resources/encounters/resources/v4/types/ValueDoesNotMatchKeyTypeError.js +38 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +7 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
package/reference.md
CHANGED
|
@@ -462,6 +462,279 @@ await client.contracts.v2.update(CandidApi.ContractId("d5e9c84f-c2b2-4bf4-b4b0-7
|
|
|
462
462
|
</dl>
|
|
463
463
|
</details>
|
|
464
464
|
|
|
465
|
+
## CustomSchemas V1
|
|
466
|
+
|
|
467
|
+
<details><summary><code>client.customSchemas.v1.<a href="/src/api/resources/customSchemas/resources/v1/client/Client.ts">getMulti</a>() -> core.APIResponse<CandidApi.SchemaGetMultiResponse, CandidApi.customSchemas.v1.getMulti.Error></code></summary>
|
|
468
|
+
<dl>
|
|
469
|
+
<dd>
|
|
470
|
+
|
|
471
|
+
#### 📝 Description
|
|
472
|
+
|
|
473
|
+
<dl>
|
|
474
|
+
<dd>
|
|
475
|
+
|
|
476
|
+
<dl>
|
|
477
|
+
<dd>
|
|
478
|
+
|
|
479
|
+
Returns all custom schemas.
|
|
480
|
+
|
|
481
|
+
</dd>
|
|
482
|
+
</dl>
|
|
483
|
+
</dd>
|
|
484
|
+
</dl>
|
|
485
|
+
|
|
486
|
+
#### 🔌 Usage
|
|
487
|
+
|
|
488
|
+
<dl>
|
|
489
|
+
<dd>
|
|
490
|
+
|
|
491
|
+
<dl>
|
|
492
|
+
<dd>
|
|
493
|
+
|
|
494
|
+
```typescript
|
|
495
|
+
await client.customSchemas.v1.getMulti();
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
</dd>
|
|
499
|
+
</dl>
|
|
500
|
+
</dd>
|
|
501
|
+
</dl>
|
|
502
|
+
|
|
503
|
+
#### ⚙️ Parameters
|
|
504
|
+
|
|
505
|
+
<dl>
|
|
506
|
+
<dd>
|
|
507
|
+
|
|
508
|
+
<dl>
|
|
509
|
+
<dd>
|
|
510
|
+
|
|
511
|
+
**requestOptions:** `V1.RequestOptions`
|
|
512
|
+
|
|
513
|
+
</dd>
|
|
514
|
+
</dl>
|
|
515
|
+
</dd>
|
|
516
|
+
</dl>
|
|
517
|
+
|
|
518
|
+
</dd>
|
|
519
|
+
</dl>
|
|
520
|
+
</details>
|
|
521
|
+
|
|
522
|
+
<details><summary><code>client.customSchemas.v1.<a href="/src/api/resources/customSchemas/resources/v1/client/Client.ts">get</a>(schemaId) -> core.APIResponse<CandidApi.Schema, CandidApi.customSchemas.v1.get.Error></code></summary>
|
|
523
|
+
<dl>
|
|
524
|
+
<dd>
|
|
525
|
+
|
|
526
|
+
#### 📝 Description
|
|
527
|
+
|
|
528
|
+
<dl>
|
|
529
|
+
<dd>
|
|
530
|
+
|
|
531
|
+
<dl>
|
|
532
|
+
<dd>
|
|
533
|
+
|
|
534
|
+
Return a custom schema with a given ID.
|
|
535
|
+
|
|
536
|
+
</dd>
|
|
537
|
+
</dl>
|
|
538
|
+
</dd>
|
|
539
|
+
</dl>
|
|
540
|
+
|
|
541
|
+
#### 🔌 Usage
|
|
542
|
+
|
|
543
|
+
<dl>
|
|
544
|
+
<dd>
|
|
545
|
+
|
|
546
|
+
<dl>
|
|
547
|
+
<dd>
|
|
548
|
+
|
|
549
|
+
```typescript
|
|
550
|
+
await client.customSchemas.v1.get(CandidApi.SchemaId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"));
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
</dd>
|
|
554
|
+
</dl>
|
|
555
|
+
</dd>
|
|
556
|
+
</dl>
|
|
557
|
+
|
|
558
|
+
#### ⚙️ Parameters
|
|
559
|
+
|
|
560
|
+
<dl>
|
|
561
|
+
<dd>
|
|
562
|
+
|
|
563
|
+
<dl>
|
|
564
|
+
<dd>
|
|
565
|
+
|
|
566
|
+
**schemaId:** `CandidApi.SchemaId`
|
|
567
|
+
|
|
568
|
+
</dd>
|
|
569
|
+
</dl>
|
|
570
|
+
|
|
571
|
+
<dl>
|
|
572
|
+
<dd>
|
|
573
|
+
|
|
574
|
+
**requestOptions:** `V1.RequestOptions`
|
|
575
|
+
|
|
576
|
+
</dd>
|
|
577
|
+
</dl>
|
|
578
|
+
</dd>
|
|
579
|
+
</dl>
|
|
580
|
+
|
|
581
|
+
</dd>
|
|
582
|
+
</dl>
|
|
583
|
+
</details>
|
|
584
|
+
|
|
585
|
+
<details><summary><code>client.customSchemas.v1.<a href="/src/api/resources/customSchemas/resources/v1/client/Client.ts">create</a>({ ...params }) -> core.APIResponse<CandidApi.Schema, CandidApi.customSchemas.v1.create.Error></code></summary>
|
|
586
|
+
<dl>
|
|
587
|
+
<dd>
|
|
588
|
+
|
|
589
|
+
#### 📝 Description
|
|
590
|
+
|
|
591
|
+
<dl>
|
|
592
|
+
<dd>
|
|
593
|
+
|
|
594
|
+
<dl>
|
|
595
|
+
<dd>
|
|
596
|
+
|
|
597
|
+
Create a custom schema. Schema keys can be referenced as inputs in user-configurable rules in the Rules
|
|
598
|
+
Engine, and key-value pairs can be attached to claims via the Encounters API.
|
|
599
|
+
|
|
600
|
+
</dd>
|
|
601
|
+
</dl>
|
|
602
|
+
</dd>
|
|
603
|
+
</dl>
|
|
604
|
+
|
|
605
|
+
#### 🔌 Usage
|
|
606
|
+
|
|
607
|
+
<dl>
|
|
608
|
+
<dd>
|
|
609
|
+
|
|
610
|
+
<dl>
|
|
611
|
+
<dd>
|
|
612
|
+
|
|
613
|
+
```typescript
|
|
614
|
+
await client.customSchemas.v1.create({
|
|
615
|
+
name: "string",
|
|
616
|
+
description: "string",
|
|
617
|
+
fields: [
|
|
618
|
+
{
|
|
619
|
+
key: "string",
|
|
620
|
+
type: CandidApi.Primitive.Boolean,
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
});
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
</dd>
|
|
627
|
+
</dl>
|
|
628
|
+
</dd>
|
|
629
|
+
</dl>
|
|
630
|
+
|
|
631
|
+
#### ⚙️ Parameters
|
|
632
|
+
|
|
633
|
+
<dl>
|
|
634
|
+
<dd>
|
|
635
|
+
|
|
636
|
+
<dl>
|
|
637
|
+
<dd>
|
|
638
|
+
|
|
639
|
+
**request:** `CandidApi.customSchemas.v1.SchemaCreate`
|
|
640
|
+
|
|
641
|
+
</dd>
|
|
642
|
+
</dl>
|
|
643
|
+
|
|
644
|
+
<dl>
|
|
645
|
+
<dd>
|
|
646
|
+
|
|
647
|
+
**requestOptions:** `V1.RequestOptions`
|
|
648
|
+
|
|
649
|
+
</dd>
|
|
650
|
+
</dl>
|
|
651
|
+
</dd>
|
|
652
|
+
</dl>
|
|
653
|
+
|
|
654
|
+
</dd>
|
|
655
|
+
</dl>
|
|
656
|
+
</details>
|
|
657
|
+
|
|
658
|
+
<details><summary><code>client.customSchemas.v1.<a href="/src/api/resources/customSchemas/resources/v1/client/Client.ts">update</a>(schemaId, { ...params }) -> core.APIResponse<CandidApi.Schema, CandidApi.customSchemas.v1.update.Error></code></summary>
|
|
659
|
+
<dl>
|
|
660
|
+
<dd>
|
|
661
|
+
|
|
662
|
+
#### 📝 Description
|
|
663
|
+
|
|
664
|
+
<dl>
|
|
665
|
+
<dd>
|
|
666
|
+
|
|
667
|
+
<dl>
|
|
668
|
+
<dd>
|
|
669
|
+
|
|
670
|
+
Update the name, description, or keys on a preexisting schema.
|
|
671
|
+
|
|
672
|
+
</dd>
|
|
673
|
+
</dl>
|
|
674
|
+
</dd>
|
|
675
|
+
</dl>
|
|
676
|
+
|
|
677
|
+
#### 🔌 Usage
|
|
678
|
+
|
|
679
|
+
<dl>
|
|
680
|
+
<dd>
|
|
681
|
+
|
|
682
|
+
<dl>
|
|
683
|
+
<dd>
|
|
684
|
+
|
|
685
|
+
```typescript
|
|
686
|
+
await client.customSchemas.v1.update(CandidApi.SchemaId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
687
|
+
name: "string",
|
|
688
|
+
description: "string",
|
|
689
|
+
fieldsToAdd: [
|
|
690
|
+
{
|
|
691
|
+
key: "string",
|
|
692
|
+
type: CandidApi.Primitive.Boolean,
|
|
693
|
+
},
|
|
694
|
+
],
|
|
695
|
+
});
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
</dd>
|
|
699
|
+
</dl>
|
|
700
|
+
</dd>
|
|
701
|
+
</dl>
|
|
702
|
+
|
|
703
|
+
#### ⚙️ Parameters
|
|
704
|
+
|
|
705
|
+
<dl>
|
|
706
|
+
<dd>
|
|
707
|
+
|
|
708
|
+
<dl>
|
|
709
|
+
<dd>
|
|
710
|
+
|
|
711
|
+
**schemaId:** `CandidApi.SchemaId`
|
|
712
|
+
|
|
713
|
+
</dd>
|
|
714
|
+
</dl>
|
|
715
|
+
|
|
716
|
+
<dl>
|
|
717
|
+
<dd>
|
|
718
|
+
|
|
719
|
+
**request:** `CandidApi.customSchemas.v1.SchemaUpdate`
|
|
720
|
+
|
|
721
|
+
</dd>
|
|
722
|
+
</dl>
|
|
723
|
+
|
|
724
|
+
<dl>
|
|
725
|
+
<dd>
|
|
726
|
+
|
|
727
|
+
**requestOptions:** `V1.RequestOptions`
|
|
728
|
+
|
|
729
|
+
</dd>
|
|
730
|
+
</dl>
|
|
731
|
+
</dd>
|
|
732
|
+
</dl>
|
|
733
|
+
|
|
734
|
+
</dd>
|
|
735
|
+
</dl>
|
|
736
|
+
</details>
|
|
737
|
+
|
|
465
738
|
## Eligibility V2
|
|
466
739
|
|
|
467
740
|
<details><summary><code>client.eligibility.v2.<a href="/src/api/resources/eligibility/resources/v2/client/Client.ts">submitEligibilityCheck</a>({ ...params }) -> core.APIResponse<unknown, CandidApi.eligibility.v2.submitEligibilityCheck.Error></code></summary>
|
|
@@ -1146,6 +1419,17 @@ await client.encounters.v4.create({
|
|
|
1146
1419
|
],
|
|
1147
1420
|
},
|
|
1148
1421
|
tagIds: [CandidApi.TagId("string")],
|
|
1422
|
+
schemaInstances: [
|
|
1423
|
+
{
|
|
1424
|
+
schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
1425
|
+
content: {
|
|
1426
|
+
provider_category: "internist",
|
|
1427
|
+
is_urgent_care: true,
|
|
1428
|
+
bmi: 24.2,
|
|
1429
|
+
age: 38,
|
|
1430
|
+
},
|
|
1431
|
+
},
|
|
1432
|
+
],
|
|
1149
1433
|
externalId: CandidApi.EncounterExternalId("string"),
|
|
1150
1434
|
priorAuthorizationNumber: CandidApi.PriorAuthorizationNumber("string"),
|
|
1151
1435
|
patientAuthorizedRelease: true,
|
|
@@ -1353,6 +1637,17 @@ await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0
|
|
|
1353
1637
|
lastMenstrualPeriodDate: "2023-01-15",
|
|
1354
1638
|
delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
1355
1639
|
patientAuthorizedRelease: true,
|
|
1640
|
+
schemaInstances: [
|
|
1641
|
+
{
|
|
1642
|
+
schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
1643
|
+
content: {
|
|
1644
|
+
provider_category: "internist",
|
|
1645
|
+
is_urgent_care: true,
|
|
1646
|
+
bmi: 24.2,
|
|
1647
|
+
age: 38,
|
|
1648
|
+
},
|
|
1649
|
+
},
|
|
1650
|
+
],
|
|
1356
1651
|
});
|
|
1357
1652
|
```
|
|
1358
1653
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Primitive: core.serialization.Schema<serializers.Primitive.Raw, CandidApi.Primitive>;
|
|
8
|
+
export declare namespace Primitive {
|
|
9
|
+
type Raw = "BOOLEAN" | "DOUBLE" | "INTEGER" | "STRING";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Primitive = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.Primitive = core.serialization.enum_(["BOOLEAN", "DOUBLE", "INTEGER", "STRING"]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const SchemaId: core.serialization.Schema<serializers.SchemaId.Raw, CandidApi.SchemaId>;
|
|
8
|
+
export declare namespace SchemaId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SchemaId = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api/index"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.SchemaId = core.serialization
|
|
33
|
+
.string()
|
|
34
|
+
.transform({
|
|
35
|
+
transform: CandidApi.SchemaId,
|
|
36
|
+
untransform: (value) => value,
|
|
37
|
+
});
|
|
@@ -14,6 +14,8 @@ export * from "./TaskNoteId";
|
|
|
14
14
|
export * from "./ProviderId";
|
|
15
15
|
export * from "./InvoiceId";
|
|
16
16
|
export * from "./RateId";
|
|
17
|
+
export * from "./SchemaId";
|
|
18
|
+
export * from "./Primitive";
|
|
17
19
|
export * from "./LinkUrl";
|
|
18
20
|
export * from "./PageToken";
|
|
19
21
|
export * from "./SortDirection";
|
|
@@ -30,6 +30,8 @@ __exportStar(require("./TaskNoteId"), exports);
|
|
|
30
30
|
__exportStar(require("./ProviderId"), exports);
|
|
31
31
|
__exportStar(require("./InvoiceId"), exports);
|
|
32
32
|
__exportStar(require("./RateId"), exports);
|
|
33
|
+
__exportStar(require("./SchemaId"), exports);
|
|
34
|
+
__exportStar(require("./Primitive"), exports);
|
|
33
35
|
__exportStar(require("./LinkUrl"), exports);
|
|
34
36
|
__exportStar(require("./PageToken"), exports);
|
|
35
37
|
__exportStar(require("./SortDirection"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v1 = void 0;
|
|
27
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { SchemaValidationFailure } from "../types/SchemaValidationFailure";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.customSchemas.v1.create.Error.Raw, CandidApi.customSchemas.v1.create.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.SchemaValidationHttpFailure;
|
|
11
|
+
interface SchemaValidationHttpFailure {
|
|
12
|
+
errorName: "SchemaValidationHttpFailure";
|
|
13
|
+
content: SchemaValidationFailure.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../core"));
|
|
43
|
+
const SchemaValidationFailure_1 = require("../types/SchemaValidationFailure");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
SchemaValidationHttpFailure: core.serialization.object({
|
|
47
|
+
content: SchemaValidationFailure_1.SchemaValidationFailure,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "SchemaValidationHttpFailure":
|
|
54
|
+
return CandidApi.customSchemas.v1.create.Error.schemaValidationHttpFailure(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
8
|
+
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
9
|
+
export declare const Error: core.serialization.Schema<serializers.customSchemas.v1.get.Error.Raw, CandidApi.customSchemas.v1.get.Error>;
|
|
10
|
+
export declare namespace Error {
|
|
11
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
|
|
12
|
+
interface EntityNotFoundError {
|
|
13
|
+
errorName: "EntityNotFoundError";
|
|
14
|
+
content: EntityNotFoundErrorMessage.Raw;
|
|
15
|
+
}
|
|
16
|
+
interface UnauthorizedError {
|
|
17
|
+
errorName: "UnauthorizedError";
|
|
18
|
+
content: UnauthorizedErrorMessage.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../core"));
|
|
43
|
+
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
44
|
+
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
45
|
+
exports.Error = core.serialization
|
|
46
|
+
.union("errorName", {
|
|
47
|
+
EntityNotFoundError: core.serialization.object({
|
|
48
|
+
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
49
|
+
}),
|
|
50
|
+
UnauthorizedError: core.serialization.object({
|
|
51
|
+
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
52
|
+
}),
|
|
53
|
+
})
|
|
54
|
+
.transform({
|
|
55
|
+
transform: (value) => {
|
|
56
|
+
switch (value.errorName) {
|
|
57
|
+
case "EntityNotFoundError":
|
|
58
|
+
return CandidApi.customSchemas.v1.get.Error.entityNotFoundError(value.content);
|
|
59
|
+
case "UnauthorizedError":
|
|
60
|
+
return CandidApi.customSchemas.v1.get.Error.unauthorizedError(value.content);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
untransform: (_a) => {
|
|
64
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
65
|
+
return value;
|
|
66
|
+
},
|
|
67
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.customSchemas.v1.getMulti.Error.Raw, CandidApi.customSchemas.v1.getMulti.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.UnauthorizedError;
|
|
11
|
+
interface UnauthorizedError {
|
|
12
|
+
errorName: "UnauthorizedError";
|
|
13
|
+
content: UnauthorizedErrorMessage.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|