candidhealth 0.24.1 → 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
|
@@ -0,0 +1,41 @@
|
|
|
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.SchemaValidationError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaWithNameAlreadyExistsError_1 = require("./SchemaWithNameAlreadyExistsError");
|
|
32
|
+
const KeyWithNameAlreadyExistsError_1 = require("./KeyWithNameAlreadyExistsError");
|
|
33
|
+
exports.SchemaValidationError = core.serialization
|
|
34
|
+
.union("type", {
|
|
35
|
+
schema_name_already_exists: SchemaWithNameAlreadyExistsError_1.SchemaWithNameAlreadyExistsError,
|
|
36
|
+
key_name_already_exists: KeyWithNameAlreadyExistsError_1.KeyWithNameAlreadyExistsError,
|
|
37
|
+
})
|
|
38
|
+
.transform({
|
|
39
|
+
transform: (value) => value,
|
|
40
|
+
untransform: (value) => value,
|
|
41
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { SchemaValidationError } from "./SchemaValidationError";
|
|
8
|
+
export declare const SchemaValidationFailure: core.serialization.ObjectSchema<serializers.customSchemas.v1.SchemaValidationFailure.Raw, CandidApi.customSchemas.v1.SchemaValidationFailure>;
|
|
9
|
+
export declare namespace SchemaValidationFailure {
|
|
10
|
+
interface Raw {
|
|
11
|
+
errors: SchemaValidationError.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.SchemaValidationFailure = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaValidationError_1 = require("./SchemaValidationError");
|
|
32
|
+
exports.SchemaValidationFailure = core.serialization.object({
|
|
33
|
+
errors: core.serialization.list(SchemaValidationError_1.SchemaValidationError),
|
|
34
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { SchemaId } from "../../../../commons/types/SchemaId";
|
|
8
|
+
export declare const SchemaWithNameAlreadyExistsError: core.serialization.ObjectSchema<serializers.customSchemas.v1.SchemaWithNameAlreadyExistsError.Raw, CandidApi.customSchemas.v1.SchemaWithNameAlreadyExistsError>;
|
|
9
|
+
export declare namespace SchemaWithNameAlreadyExistsError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
id: SchemaId.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/serialization/resources/customSchemas/resources/v1/types/SchemaWithNameAlreadyExistsError.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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.SchemaWithNameAlreadyExistsError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaId_1 = require("../../../../commons/types/SchemaId");
|
|
32
|
+
exports.SchemaWithNameAlreadyExistsError = core.serialization.object({
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
id: SchemaId_1.SchemaId,
|
|
35
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Schema";
|
|
2
|
+
export * from "./SchemaInstance";
|
|
3
|
+
export * from "./SchemaField";
|
|
4
|
+
export * from "./SchemaGetMultiResponse";
|
|
5
|
+
export * from "./SchemaWithNameAlreadyExistsError";
|
|
6
|
+
export * from "./KeyWithNameAlreadyExistsError";
|
|
7
|
+
export * from "./SchemaValidationFailure";
|
|
8
|
+
export * from "./SchemaValidationError";
|
|
@@ -0,0 +1,24 @@
|
|
|
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("./Schema"), exports);
|
|
18
|
+
__exportStar(require("./SchemaInstance"), exports);
|
|
19
|
+
__exportStar(require("./SchemaField"), exports);
|
|
20
|
+
__exportStar(require("./SchemaGetMultiResponse"), exports);
|
|
21
|
+
__exportStar(require("./SchemaWithNameAlreadyExistsError"), exports);
|
|
22
|
+
__exportStar(require("./KeyWithNameAlreadyExistsError"), exports);
|
|
23
|
+
__exportStar(require("./SchemaValidationFailure"), exports);
|
|
24
|
+
__exportStar(require("./SchemaValidationError"), exports);
|
|
@@ -10,9 +10,10 @@ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotF
|
|
|
10
10
|
import { EncounterGuarantorMissingContactInfoErrorType } from "../types/EncounterGuarantorMissingContactInfoErrorType";
|
|
11
11
|
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
12
12
|
import { CashPayPayerErrorMessage } from "../types/CashPayPayerErrorMessage";
|
|
13
|
+
import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
|
|
13
14
|
export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
|
|
14
15
|
export declare namespace Error {
|
|
15
|
-
type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError;
|
|
16
|
+
type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError | Error.SchemaInstanceValidationHttpFailure;
|
|
16
17
|
interface EncounterExternalIdUniquenessError {
|
|
17
18
|
errorName: "EncounterExternalIdUniquenessError";
|
|
18
19
|
content: EncounterExternalIdUniquenessErrorType.Raw;
|
|
@@ -37,4 +38,8 @@ export declare namespace Error {
|
|
|
37
38
|
errorName: "CashPayPayerError";
|
|
38
39
|
content: CashPayPayerErrorMessage.Raw;
|
|
39
40
|
}
|
|
41
|
+
interface SchemaInstanceValidationHttpFailure {
|
|
42
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
43
|
+
content: SchemaInstanceValidationFailure.Raw;
|
|
44
|
+
}
|
|
40
45
|
}
|
|
@@ -46,6 +46,7 @@ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNo
|
|
|
46
46
|
const EncounterGuarantorMissingContactInfoErrorType_1 = require("../types/EncounterGuarantorMissingContactInfoErrorType");
|
|
47
47
|
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
48
48
|
const CashPayPayerErrorMessage_1 = require("../types/CashPayPayerErrorMessage");
|
|
49
|
+
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
49
50
|
exports.Error = core.serialization
|
|
50
51
|
.union("errorName", {
|
|
51
52
|
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
@@ -66,6 +67,9 @@ exports.Error = core.serialization
|
|
|
66
67
|
CashPayPayerError: core.serialization.object({
|
|
67
68
|
content: CashPayPayerErrorMessage_1.CashPayPayerErrorMessage,
|
|
68
69
|
}),
|
|
70
|
+
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
71
|
+
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
72
|
+
}),
|
|
69
73
|
})
|
|
70
74
|
.transform({
|
|
71
75
|
transform: (value) => {
|
|
@@ -82,6 +86,8 @@ exports.Error = core.serialization
|
|
|
82
86
|
return CandidApi.encounters.v4.create.Error.httpRequestValidationsError(value.content);
|
|
83
87
|
case "CashPayPayerError":
|
|
84
88
|
return CandidApi.encounters.v4.create.Error.cashPayPayerError(value.content);
|
|
89
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
90
|
+
return CandidApi.encounters.v4.create.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
85
91
|
}
|
|
86
92
|
},
|
|
87
93
|
untransform: (_a) => {
|
package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { ServiceLineCreate } from "../../../../../serviceLines/resources/v2/type
|
|
|
21
21
|
import { GuarantorCreate } from "../../../../../guarantor/resources/v1/types/GuarantorCreate";
|
|
22
22
|
import { ExternalClaimSubmissionCreate } from "../../../../../claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate";
|
|
23
23
|
import { TagId } from "../../../../../tags/types/TagId";
|
|
24
|
+
import { SchemaInstance } from "../../../../../customSchemas/resources/v1/types/SchemaInstance";
|
|
24
25
|
import { EncounterBase } from "../../types/EncounterBase";
|
|
25
26
|
export declare const EncounterCreate: core.serialization.Schema<serializers.encounters.v4.EncounterCreate.Raw, CandidApi.encounters.v4.EncounterCreate>;
|
|
26
27
|
export declare namespace EncounterCreate {
|
|
@@ -45,5 +46,6 @@ export declare namespace EncounterCreate {
|
|
|
45
46
|
guarantor?: GuarantorCreate.Raw | null;
|
|
46
47
|
external_claim_submission?: ExternalClaimSubmissionCreate.Raw | null;
|
|
47
48
|
tag_ids?: TagId.Raw[] | null;
|
|
49
|
+
schema_instances?: SchemaInstance.Raw[] | null;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -45,6 +45,7 @@ const ServiceLineCreate_1 = require("../../../../../serviceLines/resources/v2/ty
|
|
|
45
45
|
const GuarantorCreate_1 = require("../../../../../guarantor/resources/v1/types/GuarantorCreate");
|
|
46
46
|
const ExternalClaimSubmissionCreate_1 = require("../../../../../claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate");
|
|
47
47
|
const TagId_1 = require("../../../../../tags/types/TagId");
|
|
48
|
+
const SchemaInstance_1 = require("../../../../../customSchemas/resources/v1/types/SchemaInstance");
|
|
48
49
|
const EncounterBase_1 = require("../../types/EncounterBase");
|
|
49
50
|
exports.EncounterCreate = core.serialization
|
|
50
51
|
.object({
|
|
@@ -68,5 +69,6 @@ exports.EncounterCreate = core.serialization
|
|
|
68
69
|
guarantor: GuarantorCreate_1.GuarantorCreate.optional(),
|
|
69
70
|
externalClaimSubmission: core.serialization.property("external_claim_submission", ExternalClaimSubmissionCreate_1.ExternalClaimSubmissionCreate.optional()),
|
|
70
71
|
tagIds: core.serialization.property("tag_ids", core.serialization.list(TagId_1.TagId).optional()),
|
|
72
|
+
schemaInstances: core.serialization.property("schema_instances", core.serialization.list(SchemaInstance_1.SchemaInstance).optional()),
|
|
71
73
|
})
|
|
72
74
|
.extend(EncounterBase_1.EncounterBase);
|
package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { FacilityTypeCode } from "../../../../../commons/types/FacilityTypeCode"
|
|
|
17
17
|
import { SubscriberCreate } from "../../../../../individual/types/SubscriberCreate";
|
|
18
18
|
import { ServiceAuthorizationExceptionCode } from "../../types/ServiceAuthorizationExceptionCode";
|
|
19
19
|
import { DelayReasonCode } from "../../../../../commons/types/DelayReasonCode";
|
|
20
|
+
import { SchemaInstance } from "../../../../../customSchemas/resources/v1/types/SchemaInstance";
|
|
20
21
|
export declare const EncounterUpdate: core.serialization.Schema<serializers.encounters.v4.EncounterUpdate.Raw, CandidApi.encounters.v4.EncounterUpdate>;
|
|
21
22
|
export declare namespace EncounterUpdate {
|
|
22
23
|
interface Raw {
|
|
@@ -46,5 +47,6 @@ export declare namespace EncounterUpdate {
|
|
|
46
47
|
last_menstrual_period_date?: string | null;
|
|
47
48
|
delay_reason_code?: DelayReasonCode.Raw | null;
|
|
48
49
|
patient_authorized_release?: boolean | null;
|
|
50
|
+
schema_instances?: SchemaInstance.Raw[] | null;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -41,6 +41,7 @@ const FacilityTypeCode_1 = require("../../../../../commons/types/FacilityTypeCod
|
|
|
41
41
|
const SubscriberCreate_1 = require("../../../../../individual/types/SubscriberCreate");
|
|
42
42
|
const ServiceAuthorizationExceptionCode_1 = require("../../types/ServiceAuthorizationExceptionCode");
|
|
43
43
|
const DelayReasonCode_1 = require("../../../../../commons/types/DelayReasonCode");
|
|
44
|
+
const SchemaInstance_1 = require("../../../../../customSchemas/resources/v1/types/SchemaInstance");
|
|
44
45
|
exports.EncounterUpdate = core.serialization.object({
|
|
45
46
|
priorAuthorizationNumber: core.serialization.property("prior_authorization_number", PriorAuthorizationNumber_1.PriorAuthorizationNumber.optional()),
|
|
46
47
|
externalId: core.serialization.property("external_id", EncounterExternalId_1.EncounterExternalId.optional()),
|
|
@@ -68,4 +69,5 @@ exports.EncounterUpdate = core.serialization.object({
|
|
|
68
69
|
lastMenstrualPeriodDate: core.serialization.property("last_menstrual_period_date", core.serialization.string().optional()),
|
|
69
70
|
delayReasonCode: core.serialization.property("delay_reason_code", DelayReasonCode_1.DelayReasonCode.optional()),
|
|
70
71
|
patientAuthorizedRelease: core.serialization.property("patient_authorized_release", core.serialization.boolean().optional()),
|
|
72
|
+
schemaInstances: core.serialization.property("schema_instances", core.serialization.list(SchemaInstance_1.SchemaInstance).optional()),
|
|
71
73
|
});
|
|
@@ -8,9 +8,10 @@ import { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExtern
|
|
|
8
8
|
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
9
9
|
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
10
10
|
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
11
|
+
import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
|
|
11
12
|
export declare const Error: core.serialization.Schema<serializers.encounters.v4.update.Error.Raw, CandidApi.encounters.v4.update.Error>;
|
|
12
13
|
export declare namespace Error {
|
|
13
|
-
type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError;
|
|
14
|
+
type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure;
|
|
14
15
|
interface EncounterExternalIdUniquenessError {
|
|
15
16
|
errorName: "EncounterExternalIdUniquenessError";
|
|
16
17
|
content: EncounterExternalIdUniquenessErrorType.Raw;
|
|
@@ -27,4 +28,8 @@ export declare namespace Error {
|
|
|
27
28
|
errorName: "HttpRequestValidationsError";
|
|
28
29
|
content: RequestValidationError.Raw[];
|
|
29
30
|
}
|
|
31
|
+
interface SchemaInstanceValidationHttpFailure {
|
|
32
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
33
|
+
content: SchemaInstanceValidationFailure.Raw;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
@@ -44,6 +44,7 @@ const EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExte
|
|
|
44
44
|
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
45
45
|
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
46
46
|
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
47
|
+
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
47
48
|
exports.Error = core.serialization
|
|
48
49
|
.union("errorName", {
|
|
49
50
|
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
@@ -58,6 +59,9 @@ exports.Error = core.serialization
|
|
|
58
59
|
HttpRequestValidationsError: core.serialization.object({
|
|
59
60
|
content: core.serialization.list(RequestValidationError_1.RequestValidationError),
|
|
60
61
|
}),
|
|
62
|
+
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
63
|
+
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
64
|
+
}),
|
|
61
65
|
})
|
|
62
66
|
.transform({
|
|
63
67
|
transform: (value) => {
|
|
@@ -70,6 +74,8 @@ exports.Error = core.serialization
|
|
|
70
74
|
return CandidApi.encounters.v4.update.Error.unauthorizedError(value.content);
|
|
71
75
|
case "HttpRequestValidationsError":
|
|
72
76
|
return CandidApi.encounters.v4.update.Error.httpRequestValidationsError(value.content);
|
|
77
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
78
|
+
return CandidApi.encounters.v4.update.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
73
79
|
}
|
|
74
80
|
},
|
|
75
81
|
untransform: (_a) => {
|
|
@@ -23,6 +23,7 @@ import { CodingAttributionType } from "./CodingAttributionType";
|
|
|
23
23
|
import { WorkQueueId } from "../../../../commons/types/WorkQueueId";
|
|
24
24
|
import { EncounterOwnerOfNextActionType } from "./EncounterOwnerOfNextActionType";
|
|
25
25
|
import { EncounterSubmissionOriginType } from "./EncounterSubmissionOriginType";
|
|
26
|
+
import { SchemaInstance } from "../../../../customSchemas/resources/v1/types/SchemaInstance";
|
|
26
27
|
import { EncounterBase } from "./EncounterBase";
|
|
27
28
|
export declare const Encounter: core.serialization.ObjectSchema<serializers.encounters.v4.Encounter.Raw, CandidApi.encounters.v4.Encounter>;
|
|
28
29
|
export declare namespace Encounter {
|
|
@@ -56,5 +57,6 @@ export declare namespace Encounter {
|
|
|
56
57
|
work_queue_membership_activated_at?: string | null;
|
|
57
58
|
owner_of_next_action: EncounterOwnerOfNextActionType.Raw;
|
|
58
59
|
submission_origin: EncounterSubmissionOriginType.Raw;
|
|
60
|
+
schema_instances: SchemaInstance.Raw[];
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -47,6 +47,7 @@ const CodingAttributionType_1 = require("./CodingAttributionType");
|
|
|
47
47
|
const WorkQueueId_1 = require("../../../../commons/types/WorkQueueId");
|
|
48
48
|
const EncounterOwnerOfNextActionType_1 = require("./EncounterOwnerOfNextActionType");
|
|
49
49
|
const EncounterSubmissionOriginType_1 = require("./EncounterSubmissionOriginType");
|
|
50
|
+
const SchemaInstance_1 = require("../../../../customSchemas/resources/v1/types/SchemaInstance");
|
|
50
51
|
const EncounterBase_1 = require("./EncounterBase");
|
|
51
52
|
exports.Encounter = core.serialization
|
|
52
53
|
.object({
|
|
@@ -79,5 +80,6 @@ exports.Encounter = core.serialization
|
|
|
79
80
|
workQueueMembershipActivatedAt: core.serialization.property("work_queue_membership_activated_at", core.serialization.date().optional()),
|
|
80
81
|
ownerOfNextAction: core.serialization.property("owner_of_next_action", EncounterOwnerOfNextActionType_1.EncounterOwnerOfNextActionType),
|
|
81
82
|
submissionOrigin: core.serialization.property("submission_origin", EncounterSubmissionOriginType_1.EncounterSubmissionOriginType),
|
|
83
|
+
schemaInstances: core.serialization.property("schema_instances", core.serialization.list(SchemaInstance_1.SchemaInstance)),
|
|
82
84
|
})
|
|
83
85
|
.extend(EncounterBase_1.EncounterBase);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { SchemaId } from "../../../../commons/types/SchemaId";
|
|
8
|
+
export declare const KeyDoesNotExistError: core.serialization.ObjectSchema<serializers.encounters.v4.KeyDoesNotExistError.Raw, CandidApi.encounters.v4.KeyDoesNotExistError>;
|
|
9
|
+
export declare namespace KeyDoesNotExistError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
key: string;
|
|
12
|
+
schema_id: SchemaId.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.KeyDoesNotExistError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaId_1 = require("../../../../commons/types/SchemaId");
|
|
32
|
+
exports.KeyDoesNotExistError = core.serialization.object({
|
|
33
|
+
key: core.serialization.string(),
|
|
34
|
+
schemaId: core.serialization.property("schema_id", SchemaId_1.SchemaId),
|
|
35
|
+
});
|
package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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 { SchemaId } from "../../../../commons/types/SchemaId";
|
|
8
|
+
export declare const MultipleInstancesForSchemaError: core.serialization.ObjectSchema<serializers.encounters.v4.MultipleInstancesForSchemaError.Raw, CandidApi.encounters.v4.MultipleInstancesForSchemaError>;
|
|
9
|
+
export declare namespace MultipleInstancesForSchemaError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
schema_id: SchemaId.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/serialization/resources/encounters/resources/v4/types/MultipleInstancesForSchemaError.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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.MultipleInstancesForSchemaError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaId_1 = require("../../../../commons/types/SchemaId");
|
|
32
|
+
exports.MultipleInstancesForSchemaError = core.serialization.object({
|
|
33
|
+
schemaId: core.serialization.property("schema_id", SchemaId_1.SchemaId),
|
|
34
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { SchemaId } from "../../../../commons/types/SchemaId";
|
|
8
|
+
export declare const SchemaDoesNotExistError: core.serialization.ObjectSchema<serializers.encounters.v4.SchemaDoesNotExistError.Raw, CandidApi.encounters.v4.SchemaDoesNotExistError>;
|
|
9
|
+
export declare namespace SchemaDoesNotExistError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
schema_id: SchemaId.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.SchemaDoesNotExistError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const SchemaId_1 = require("../../../../commons/types/SchemaId");
|
|
32
|
+
exports.SchemaDoesNotExistError = core.serialization.object({
|
|
33
|
+
schemaId: core.serialization.property("schema_id", SchemaId_1.SchemaId),
|
|
34
|
+
});
|
package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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 { MultipleInstancesForSchemaError } from "./MultipleInstancesForSchemaError";
|
|
8
|
+
import { ValueDoesNotMatchKeyTypeError } from "./ValueDoesNotMatchKeyTypeError";
|
|
9
|
+
import { KeyDoesNotExistError } from "./KeyDoesNotExistError";
|
|
10
|
+
import { SchemaDoesNotExistError } from "./SchemaDoesNotExistError";
|
|
11
|
+
import { SchemaUnauthorizedAccessError } from "./SchemaUnauthorizedAccessError";
|
|
12
|
+
export declare const SchemaInstanceValidationError: core.serialization.Schema<serializers.encounters.v4.SchemaInstanceValidationError.Raw, CandidApi.encounters.v4.SchemaInstanceValidationError>;
|
|
13
|
+
export declare namespace SchemaInstanceValidationError {
|
|
14
|
+
type Raw = SchemaInstanceValidationError.MultipleInstancesForSchema | SchemaInstanceValidationError.ValueDoesNotMatchKeyType | SchemaInstanceValidationError.KeyDoesNotExist | SchemaInstanceValidationError.SchemaDoesNotExist | SchemaInstanceValidationError.SchemaUnauthorizedAccess;
|
|
15
|
+
interface MultipleInstancesForSchema extends MultipleInstancesForSchemaError.Raw {
|
|
16
|
+
type: "multiple_instances_for_schema";
|
|
17
|
+
}
|
|
18
|
+
interface ValueDoesNotMatchKeyType extends ValueDoesNotMatchKeyTypeError.Raw {
|
|
19
|
+
type: "value_does_not_match_key_type";
|
|
20
|
+
}
|
|
21
|
+
interface KeyDoesNotExist extends KeyDoesNotExistError.Raw {
|
|
22
|
+
type: "key_does_not_exist";
|
|
23
|
+
}
|
|
24
|
+
interface SchemaDoesNotExist extends SchemaDoesNotExistError.Raw {
|
|
25
|
+
type: "schema_does_not_exist";
|
|
26
|
+
}
|
|
27
|
+
interface SchemaUnauthorizedAccess extends SchemaUnauthorizedAccessError.Raw {
|
|
28
|
+
type: "schema_unauthorized_access";
|
|
29
|
+
}
|
|
30
|
+
}
|
package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationError.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SchemaInstanceValidationError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const MultipleInstancesForSchemaError_1 = require("./MultipleInstancesForSchemaError");
|
|
32
|
+
const ValueDoesNotMatchKeyTypeError_1 = require("./ValueDoesNotMatchKeyTypeError");
|
|
33
|
+
const KeyDoesNotExistError_1 = require("./KeyDoesNotExistError");
|
|
34
|
+
const SchemaDoesNotExistError_1 = require("./SchemaDoesNotExistError");
|
|
35
|
+
const SchemaUnauthorizedAccessError_1 = require("./SchemaUnauthorizedAccessError");
|
|
36
|
+
exports.SchemaInstanceValidationError = core.serialization
|
|
37
|
+
.union("type", {
|
|
38
|
+
multiple_instances_for_schema: MultipleInstancesForSchemaError_1.MultipleInstancesForSchemaError,
|
|
39
|
+
value_does_not_match_key_type: ValueDoesNotMatchKeyTypeError_1.ValueDoesNotMatchKeyTypeError,
|
|
40
|
+
key_does_not_exist: KeyDoesNotExistError_1.KeyDoesNotExistError,
|
|
41
|
+
schema_does_not_exist: SchemaDoesNotExistError_1.SchemaDoesNotExistError,
|
|
42
|
+
schema_unauthorized_access: SchemaUnauthorizedAccessError_1.SchemaUnauthorizedAccessError,
|
|
43
|
+
})
|
|
44
|
+
.transform({
|
|
45
|
+
transform: (value) => value,
|
|
46
|
+
untransform: (value) => value,
|
|
47
|
+
});
|
package/serialization/resources/encounters/resources/v4/types/SchemaInstanceValidationFailure.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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 { SchemaInstanceValidationError } from "./SchemaInstanceValidationError";
|
|
8
|
+
export declare const SchemaInstanceValidationFailure: core.serialization.ObjectSchema<serializers.encounters.v4.SchemaInstanceValidationFailure.Raw, CandidApi.encounters.v4.SchemaInstanceValidationFailure>;
|
|
9
|
+
export declare namespace SchemaInstanceValidationFailure {
|
|
10
|
+
interface Raw {
|
|
11
|
+
errors: SchemaInstanceValidationError.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|