saferx-pharma-sdk 1.4.3 → 2.0.2
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/README.md +31 -0
- package/dist/client.d.ts +47 -0
- package/dist/client.js +166 -0
- package/package.json +11 -85
- package/src/client.ts +117 -0
- package/dist/cjs/BaseClient.d.ts +0 -39
- package/dist/cjs/BaseClient.js +0 -62
- package/dist/cjs/Client.d.ts +0 -29
- package/dist/cjs/Client.js +0 -88
- package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
- package/dist/cjs/api/errors/BadRequestError.js +0 -54
- package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
- package/dist/cjs/api/errors/ForbiddenError.js +0 -54
- package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
- package/dist/cjs/api/errors/InternalServerError.js +0 -54
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -5
- package/dist/cjs/api/errors/TooManyRequestsError.js +0 -54
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +0 -6
- package/dist/cjs/api/errors/UnauthorizedError.js +0 -54
- package/dist/cjs/api/errors/index.d.ts +0 -5
- package/dist/cjs/api/errors/index.js +0 -21
- package/dist/cjs/api/index.d.ts +0 -3
- package/dist/cjs/api/index.js +0 -19
- package/dist/cjs/api/resources/developers/client/Client.d.ts +0 -56
- package/dist/cjs/api/resources/developers/client/Client.js +0 -186
- package/dist/cjs/api/resources/developers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/developers/client/index.js +0 -17
- package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.ts +0 -10
- package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.js +0 -3
- package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.ts +0 -13
- package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.js +0 -3
- package/dist/cjs/api/resources/developers/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/developers/exports.d.ts +0 -2
- package/dist/cjs/api/resources/developers/exports.js +0 -21
- package/dist/cjs/api/resources/developers/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/index.js +0 -18
- package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.ts +0 -18
- package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.js +0 -3
- package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.ts +0 -12
- package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.js +0 -3
- package/dist/cjs/api/resources/developers/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/developers/types/index.js +0 -18
- package/dist/cjs/api/resources/drugSafety/client/Client.d.ts +0 -132
- package/dist/cjs/api/resources/drugSafety/client/Client.js +0 -290
- package/dist/cjs/api/resources/drugSafety/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/client/index.js +0 -17
- package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.ts +0 -98
- package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.js +0 -15
- package/dist/cjs/api/resources/drugSafety/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/drugSafety/exports.d.ts +0 -2
- package/dist/cjs/api/resources/drugSafety/exports.js +0 -21
- package/dist/cjs/api/resources/drugSafety/index.d.ts +0 -2
- package/dist/cjs/api/resources/drugSafety/index.js +0 -18
- package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.ts +0 -14
- package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.js +0 -11
- package/dist/cjs/api/resources/drugSafety/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/drugSafety/types/index.js +0 -17
- package/dist/cjs/api/resources/index.d.ts +0 -6
- package/dist/cjs/api/resources/index.js +0 -45
- package/dist/cjs/api/types/AdverseEffect.d.ts +0 -43
- package/dist/cjs/api/types/AdverseEffect.js +0 -3
- package/dist/cjs/api/types/Alert.d.ts +0 -70
- package/dist/cjs/api/types/Alert.js +0 -41
- package/dist/cjs/api/types/AllergyCrossReactivityReference.d.ts +0 -16
- package/dist/cjs/api/types/AllergyCrossReactivityReference.js +0 -3
- package/dist/cjs/api/types/AllergyData.d.ts +0 -24
- package/dist/cjs/api/types/AllergyData.js +0 -11
- package/dist/cjs/api/types/AllergyFamilyReference.d.ts +0 -10
- package/dist/cjs/api/types/AllergyFamilyReference.js +0 -3
- package/dist/cjs/api/types/AllergyInputEntry.d.ts +0 -10
- package/dist/cjs/api/types/AllergyInputEntry.js +0 -3
- package/dist/cjs/api/types/AllergyProductFamilyReference.d.ts +0 -9
- package/dist/cjs/api/types/AllergyProductFamilyReference.js +0 -3
- package/dist/cjs/api/types/AllergySummary.d.ts +0 -14
- package/dist/cjs/api/types/AllergySummary.js +0 -3
- package/dist/cjs/api/types/AllergyWarning.d.ts +0 -30
- package/dist/cjs/api/types/AllergyWarning.js +0 -11
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
- package/dist/cjs/api/types/BlackBoxWarning.d.ts +0 -15
- package/dist/cjs/api/types/BlackBoxWarning.js +0 -3
- package/dist/cjs/api/types/BlockedResponse.d.ts +0 -9
- package/dist/cjs/api/types/BlockedResponse.js +0 -3
- package/dist/cjs/api/types/ClinicalAlert.d.ts +0 -56
- package/dist/cjs/api/types/ClinicalAlert.js +0 -3
- package/dist/cjs/api/types/ClinicalConcern.d.ts +0 -15
- package/dist/cjs/api/types/ClinicalConcern.js +0 -3
- package/dist/cjs/api/types/ClinicalContextApplied.d.ts +0 -10
- package/dist/cjs/api/types/ClinicalContextApplied.js +0 -3
- package/dist/cjs/api/types/ClinicalData.d.ts +0 -17
- package/dist/cjs/api/types/ClinicalData.js +0 -3
- package/dist/cjs/api/types/Condition.d.ts +0 -22
- package/dist/cjs/api/types/Condition.js +0 -25
- package/dist/cjs/api/types/DailyLimit.d.ts +0 -20
- package/dist/cjs/api/types/DailyLimit.js +0 -13
- package/dist/cjs/api/types/DomainCode.d.ts +0 -20
- package/dist/cjs/api/types/DomainCode.js +0 -23
- package/dist/cjs/api/types/DoseClassification.d.ts +0 -40
- package/dist/cjs/api/types/DoseClassification.js +0 -22
- package/dist/cjs/api/types/DoseComponent.d.ts +0 -30
- package/dist/cjs/api/types/DoseComponent.js +0 -12
- package/dist/cjs/api/types/DosingData.d.ts +0 -63
- package/dist/cjs/api/types/DosingData.js +0 -18
- package/dist/cjs/api/types/DrugClinicalData.d.ts +0 -7
- package/dist/cjs/api/types/DrugClinicalData.js +0 -3
- package/dist/cjs/api/types/DrugSafetyCheckResponse.d.ts +0 -29
- package/dist/cjs/api/types/DrugSafetyCheckResponse.js +0 -11
- package/dist/cjs/api/types/ErrorResponse.d.ts +0 -29
- package/dist/cjs/api/types/ErrorResponse.js +0 -3
- package/dist/cjs/api/types/FoodConflict.d.ts +0 -21
- package/dist/cjs/api/types/FoodConflict.js +0 -3
- package/dist/cjs/api/types/FoodData.d.ts +0 -11
- package/dist/cjs/api/types/FoodData.js +0 -3
- package/dist/cjs/api/types/ForbiddenErrorBody.d.ts +0 -4
- package/dist/cjs/api/types/ForbiddenErrorBody.js +0 -3
- package/dist/cjs/api/types/IdentityMatch.d.ts +0 -13
- package/dist/cjs/api/types/IdentityMatch.js +0 -3
- package/dist/cjs/api/types/IntelligenceClinicalProfile.d.ts +0 -24
- package/dist/cjs/api/types/IntelligenceClinicalProfile.js +0 -13
- package/dist/cjs/api/types/IntelligenceContext.d.ts +0 -17
- package/dist/cjs/api/types/IntelligenceContext.js +0 -3
- package/dist/cjs/api/types/IntelligenceProcessorError.d.ts +0 -4
- package/dist/cjs/api/types/IntelligenceProcessorError.js +0 -3
- package/dist/cjs/api/types/IntelligenceResult.d.ts +0 -16
- package/dist/cjs/api/types/IntelligenceResult.js +0 -3
- package/dist/cjs/api/types/IntelligenceSynthesis.d.ts +0 -6
- package/dist/cjs/api/types/IntelligenceSynthesis.js +0 -3
- package/dist/cjs/api/types/Interaction.d.ts +0 -59
- package/dist/cjs/api/types/Interaction.js +0 -14
- package/dist/cjs/api/types/InteractionSummary.d.ts +0 -13
- package/dist/cjs/api/types/InteractionSummary.js +0 -3
- package/dist/cjs/api/types/InteractionsData.d.ts +0 -11
- package/dist/cjs/api/types/InteractionsData.js +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
- package/dist/cjs/api/types/MealTiming.d.ts +0 -26
- package/dist/cjs/api/types/MealTiming.js +0 -3
- package/dist/cjs/api/types/MedicationHistoryItem.d.ts +0 -22
- package/dist/cjs/api/types/MedicationHistoryItem.js +0 -15
- package/dist/cjs/api/types/Meta.d.ts +0 -29
- package/dist/cjs/api/types/Meta.js +0 -14
- package/dist/cjs/api/types/MetadataResponse.d.ts +0 -93
- package/dist/cjs/api/types/MetadataResponse.js +0 -17
- package/dist/cjs/api/types/Monitoring.d.ts +0 -22
- package/dist/cjs/api/types/Monitoring.js +0 -3
- package/dist/cjs/api/types/PatientProfile.d.ts +0 -43
- package/dist/cjs/api/types/PatientProfile.js +0 -20
- package/dist/cjs/api/types/Population.d.ts +0 -16
- package/dist/cjs/api/types/Population.js +0 -19
- package/dist/cjs/api/types/PopulationMonitoring.d.ts +0 -26
- package/dist/cjs/api/types/PopulationMonitoring.js +0 -3
- package/dist/cjs/api/types/QuotaMeta.d.ts +0 -11
- package/dist/cjs/api/types/QuotaMeta.js +0 -3
- package/dist/cjs/api/types/RateLimitResponse.d.ts +0 -37
- package/dist/cjs/api/types/RateLimitResponse.js +0 -13
- package/dist/cjs/api/types/ReferenceDose.d.ts +0 -11
- package/dist/cjs/api/types/ReferenceDose.js +0 -3
- package/dist/cjs/api/types/ReproductiveSafetyData.d.ts +0 -58
- package/dist/cjs/api/types/ReproductiveSafetyData.js +0 -3
- package/dist/cjs/api/types/ReproductiveWarning.d.ts +0 -13
- package/dist/cjs/api/types/ReproductiveWarning.js +0 -3
- package/dist/cjs/api/types/ResolvedDrug.d.ts +0 -70
- package/dist/cjs/api/types/ResolvedDrug.js +0 -3
- package/dist/cjs/api/types/SafetyData.d.ts +0 -23
- package/dist/cjs/api/types/SafetyData.js +0 -3
- package/dist/cjs/api/types/SideEffectsData.d.ts +0 -38
- package/dist/cjs/api/types/SideEffectsData.js +0 -18
- package/dist/cjs/api/types/TooManyRequestsErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/TooManyRequestsErrorBody.js +0 -3
- package/dist/cjs/api/types/index.d.ts +0 -55
- package/dist/cjs/api/types/index.js +0 -71
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +0 -20
- package/dist/cjs/auth/HeaderAuthProvider.js +0 -80
- package/dist/cjs/auth/index.d.ts +0 -1
- package/dist/cjs/auth/index.js +0 -5
- package/dist/cjs/core/auth/AuthProvider.d.ts +0 -7
- package/dist/cjs/core/auth/AuthProvider.js +0 -2
- package/dist/cjs/core/auth/AuthRequest.d.ts +0 -9
- package/dist/cjs/core/auth/AuthRequest.js +0 -2
- package/dist/cjs/core/auth/BasicAuth.d.ts +0 -8
- package/dist/cjs/core/auth/BasicAuth.js +0 -27
- package/dist/cjs/core/auth/BearerToken.d.ts +0 -7
- package/dist/cjs/core/auth/BearerToken.js +0 -16
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +0 -5
- package/dist/cjs/core/auth/NoOpAuthProvider.js +0 -9
- package/dist/cjs/core/auth/index.d.ts +0 -5
- package/dist/cjs/core/auth/index.js +0 -9
- package/dist/cjs/core/base64.d.ts +0 -2
- package/dist/cjs/core/base64.js +0 -26
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/APIResponse.js +0 -2
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -19
- package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
- package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
- package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
- package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -48
- package/dist/cjs/core/fetcher/Fetcher.js +0 -322
- package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
- package/dist/cjs/core/fetcher/Headers.js +0 -84
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
- package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
- package/dist/cjs/core/fetcher/RawResponse.js +0 -44
- package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
- package/dist/cjs/core/fetcher/Supplier.js +0 -22
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
- package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
- package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
- package/dist/cjs/core/fetcher/getHeader.js +0 -11
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +0 -69
- package/dist/cjs/core/fetcher/index.d.ts +0 -13
- package/dist/cjs/core/fetcher/index.js +0 -19
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +0 -49
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +0 -135
- package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -6
- package/dist/cjs/core/fetcher/makeRequest.js +0 -61
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
- package/dist/cjs/core/fetcher/signals.d.ts +0 -5
- package/dist/cjs/core/fetcher/signals.js +0 -24
- package/dist/cjs/core/headers.d.ts +0 -2
- package/dist/cjs/core/headers.js +0 -31
- package/dist/cjs/core/index.d.ts +0 -6
- package/dist/cjs/core/index.js +0 -45
- package/dist/cjs/core/json.d.ts +0 -15
- package/dist/cjs/core/json.js +0 -24
- package/dist/cjs/core/logging/exports.d.ts +0 -18
- package/dist/cjs/core/logging/exports.js +0 -45
- package/dist/cjs/core/logging/index.d.ts +0 -1
- package/dist/cjs/core/logging/index.js +0 -17
- package/dist/cjs/core/logging/logger.d.ts +0 -126
- package/dist/cjs/core/logging/logger.js +0 -144
- package/dist/cjs/core/runtime/index.d.ts +0 -1
- package/dist/cjs/core/runtime/index.js +0 -5
- package/dist/cjs/core/runtime/runtime.d.ts +0 -9
- package/dist/cjs/core/runtime/runtime.js +0 -104
- package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
- package/dist/cjs/core/url/encodePathParam.js +0 -21
- package/dist/cjs/core/url/index.d.ts +0 -3
- package/dist/cjs/core/url/index.js +0 -9
- package/dist/cjs/core/url/join.d.ts +0 -1
- package/dist/cjs/core/url/join.js +0 -68
- package/dist/cjs/core/url/qs.d.ts +0 -6
- package/dist/cjs/core/url/qs.js +0 -64
- package/dist/cjs/environments.d.ts +0 -4
- package/dist/cjs/environments.js +0 -7
- package/dist/cjs/errors/SafeRxError.d.ts +0 -12
- package/dist/cjs/errors/SafeRxError.js +0 -32
- package/dist/cjs/errors/SafeRxTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/SafeRxTimeoutError.js +0 -15
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +0 -2
- package/dist/cjs/errors/handleNonStatusCodeError.js +0 -65
- package/dist/cjs/errors/index.d.ts +0 -2
- package/dist/cjs/errors/index.js +0 -7
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/cjs/exports.js +0 -17
- package/dist/cjs/index.d.ts +0 -6
- package/dist/cjs/index.js +0 -48
- package/dist/cjs/version.d.ts +0 -1
- package/dist/cjs/version.js +0 -4
- package/dist/esm/BaseClient.d.mts +0 -39
- package/dist/esm/BaseClient.mjs +0 -25
- package/dist/esm/Client.d.mts +0 -29
- package/dist/esm/Client.mjs +0 -51
- package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
- package/dist/esm/api/errors/BadRequestError.mjs +0 -17
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -17
- package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
- package/dist/esm/api/errors/InternalServerError.mjs +0 -17
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -5
- package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -17
- package/dist/esm/api/errors/UnauthorizedError.d.mts +0 -6
- package/dist/esm/api/errors/UnauthorizedError.mjs +0 -17
- package/dist/esm/api/errors/index.d.mts +0 -5
- package/dist/esm/api/errors/index.mjs +0 -5
- package/dist/esm/api/index.d.mts +0 -3
- package/dist/esm/api/index.mjs +0 -3
- package/dist/esm/api/resources/developers/client/Client.d.mts +0 -56
- package/dist/esm/api/resources/developers/client/Client.mjs +0 -149
- package/dist/esm/api/resources/developers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/developers/client/index.mjs +0 -1
- package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.mts +0 -10
- package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.mjs +0 -2
- package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.mts +0 -13
- package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.mjs +0 -2
- package/dist/esm/api/resources/developers/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/developers/exports.d.mts +0 -2
- package/dist/esm/api/resources/developers/exports.mjs +0 -3
- package/dist/esm/api/resources/developers/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/index.mjs +0 -2
- package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.mts +0 -18
- package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.mjs +0 -2
- package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.mts +0 -12
- package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.mjs +0 -2
- package/dist/esm/api/resources/developers/types/index.d.mts +0 -2
- package/dist/esm/api/resources/developers/types/index.mjs +0 -2
- package/dist/esm/api/resources/drugSafety/client/Client.d.mts +0 -132
- package/dist/esm/api/resources/drugSafety/client/Client.mjs +0 -253
- package/dist/esm/api/resources/drugSafety/client/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/client/index.mjs +0 -1
- package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.mts +0 -98
- package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.mjs +0 -12
- package/dist/esm/api/resources/drugSafety/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/drugSafety/exports.d.mts +0 -2
- package/dist/esm/api/resources/drugSafety/exports.mjs +0 -3
- package/dist/esm/api/resources/drugSafety/index.d.mts +0 -2
- package/dist/esm/api/resources/drugSafety/index.mjs +0 -2
- package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.mts +0 -14
- package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.mjs +0 -8
- package/dist/esm/api/resources/drugSafety/types/index.d.mts +0 -1
- package/dist/esm/api/resources/drugSafety/types/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +0 -6
- package/dist/esm/api/resources/index.mjs +0 -6
- package/dist/esm/api/types/AdverseEffect.d.mts +0 -43
- package/dist/esm/api/types/AdverseEffect.mjs +0 -2
- package/dist/esm/api/types/Alert.d.mts +0 -70
- package/dist/esm/api/types/Alert.mjs +0 -38
- package/dist/esm/api/types/AllergyCrossReactivityReference.d.mts +0 -16
- package/dist/esm/api/types/AllergyCrossReactivityReference.mjs +0 -2
- package/dist/esm/api/types/AllergyData.d.mts +0 -24
- package/dist/esm/api/types/AllergyData.mjs +0 -8
- package/dist/esm/api/types/AllergyFamilyReference.d.mts +0 -10
- package/dist/esm/api/types/AllergyFamilyReference.mjs +0 -2
- package/dist/esm/api/types/AllergyInputEntry.d.mts +0 -10
- package/dist/esm/api/types/AllergyInputEntry.mjs +0 -2
- package/dist/esm/api/types/AllergyProductFamilyReference.d.mts +0 -9
- package/dist/esm/api/types/AllergyProductFamilyReference.mjs +0 -2
- package/dist/esm/api/types/AllergySummary.d.mts +0 -14
- package/dist/esm/api/types/AllergySummary.mjs +0 -2
- package/dist/esm/api/types/AllergyWarning.d.mts +0 -30
- package/dist/esm/api/types/AllergyWarning.mjs +0 -8
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -3
- package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
- package/dist/esm/api/types/BlackBoxWarning.d.mts +0 -15
- package/dist/esm/api/types/BlackBoxWarning.mjs +0 -2
- package/dist/esm/api/types/BlockedResponse.d.mts +0 -9
- package/dist/esm/api/types/BlockedResponse.mjs +0 -2
- package/dist/esm/api/types/ClinicalAlert.d.mts +0 -56
- package/dist/esm/api/types/ClinicalAlert.mjs +0 -2
- package/dist/esm/api/types/ClinicalConcern.d.mts +0 -15
- package/dist/esm/api/types/ClinicalConcern.mjs +0 -2
- package/dist/esm/api/types/ClinicalContextApplied.d.mts +0 -10
- package/dist/esm/api/types/ClinicalContextApplied.mjs +0 -2
- package/dist/esm/api/types/ClinicalData.d.mts +0 -17
- package/dist/esm/api/types/ClinicalData.mjs +0 -2
- package/dist/esm/api/types/Condition.d.mts +0 -22
- package/dist/esm/api/types/Condition.mjs +0 -22
- package/dist/esm/api/types/DailyLimit.d.mts +0 -20
- package/dist/esm/api/types/DailyLimit.mjs +0 -10
- package/dist/esm/api/types/DomainCode.d.mts +0 -20
- package/dist/esm/api/types/DomainCode.mjs +0 -20
- package/dist/esm/api/types/DoseClassification.d.mts +0 -40
- package/dist/esm/api/types/DoseClassification.mjs +0 -19
- package/dist/esm/api/types/DoseComponent.d.mts +0 -30
- package/dist/esm/api/types/DoseComponent.mjs +0 -9
- package/dist/esm/api/types/DosingData.d.mts +0 -63
- package/dist/esm/api/types/DosingData.mjs +0 -15
- package/dist/esm/api/types/DrugClinicalData.d.mts +0 -7
- package/dist/esm/api/types/DrugClinicalData.mjs +0 -2
- package/dist/esm/api/types/DrugSafetyCheckResponse.d.mts +0 -29
- package/dist/esm/api/types/DrugSafetyCheckResponse.mjs +0 -8
- package/dist/esm/api/types/ErrorResponse.d.mts +0 -29
- package/dist/esm/api/types/ErrorResponse.mjs +0 -2
- package/dist/esm/api/types/FoodConflict.d.mts +0 -21
- package/dist/esm/api/types/FoodConflict.mjs +0 -2
- package/dist/esm/api/types/FoodData.d.mts +0 -11
- package/dist/esm/api/types/FoodData.mjs +0 -2
- package/dist/esm/api/types/ForbiddenErrorBody.d.mts +0 -4
- package/dist/esm/api/types/ForbiddenErrorBody.mjs +0 -2
- package/dist/esm/api/types/IdentityMatch.d.mts +0 -13
- package/dist/esm/api/types/IdentityMatch.mjs +0 -2
- package/dist/esm/api/types/IntelligenceClinicalProfile.d.mts +0 -24
- package/dist/esm/api/types/IntelligenceClinicalProfile.mjs +0 -10
- package/dist/esm/api/types/IntelligenceContext.d.mts +0 -17
- package/dist/esm/api/types/IntelligenceContext.mjs +0 -2
- package/dist/esm/api/types/IntelligenceProcessorError.d.mts +0 -4
- package/dist/esm/api/types/IntelligenceProcessorError.mjs +0 -2
- package/dist/esm/api/types/IntelligenceResult.d.mts +0 -16
- package/dist/esm/api/types/IntelligenceResult.mjs +0 -2
- package/dist/esm/api/types/IntelligenceSynthesis.d.mts +0 -6
- package/dist/esm/api/types/IntelligenceSynthesis.mjs +0 -2
- package/dist/esm/api/types/Interaction.d.mts +0 -59
- package/dist/esm/api/types/Interaction.mjs +0 -11
- package/dist/esm/api/types/InteractionSummary.d.mts +0 -13
- package/dist/esm/api/types/InteractionSummary.mjs +0 -2
- package/dist/esm/api/types/InteractionsData.d.mts +0 -11
- package/dist/esm/api/types/InteractionsData.mjs +0 -2
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -3
- package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
- package/dist/esm/api/types/MealTiming.d.mts +0 -26
- package/dist/esm/api/types/MealTiming.mjs +0 -2
- package/dist/esm/api/types/MedicationHistoryItem.d.mts +0 -22
- package/dist/esm/api/types/MedicationHistoryItem.mjs +0 -12
- package/dist/esm/api/types/Meta.d.mts +0 -29
- package/dist/esm/api/types/Meta.mjs +0 -11
- package/dist/esm/api/types/MetadataResponse.d.mts +0 -93
- package/dist/esm/api/types/MetadataResponse.mjs +0 -14
- package/dist/esm/api/types/Monitoring.d.mts +0 -22
- package/dist/esm/api/types/Monitoring.mjs +0 -2
- package/dist/esm/api/types/PatientProfile.d.mts +0 -43
- package/dist/esm/api/types/PatientProfile.mjs +0 -17
- package/dist/esm/api/types/Population.d.mts +0 -16
- package/dist/esm/api/types/Population.mjs +0 -16
- package/dist/esm/api/types/PopulationMonitoring.d.mts +0 -26
- package/dist/esm/api/types/PopulationMonitoring.mjs +0 -2
- package/dist/esm/api/types/QuotaMeta.d.mts +0 -11
- package/dist/esm/api/types/QuotaMeta.mjs +0 -2
- package/dist/esm/api/types/RateLimitResponse.d.mts +0 -37
- package/dist/esm/api/types/RateLimitResponse.mjs +0 -10
- package/dist/esm/api/types/ReferenceDose.d.mts +0 -11
- package/dist/esm/api/types/ReferenceDose.mjs +0 -2
- package/dist/esm/api/types/ReproductiveSafetyData.d.mts +0 -58
- package/dist/esm/api/types/ReproductiveSafetyData.mjs +0 -2
- package/dist/esm/api/types/ReproductiveWarning.d.mts +0 -13
- package/dist/esm/api/types/ReproductiveWarning.mjs +0 -2
- package/dist/esm/api/types/ResolvedDrug.d.mts +0 -70
- package/dist/esm/api/types/ResolvedDrug.mjs +0 -2
- package/dist/esm/api/types/SafetyData.d.mts +0 -23
- package/dist/esm/api/types/SafetyData.mjs +0 -2
- package/dist/esm/api/types/SideEffectsData.d.mts +0 -38
- package/dist/esm/api/types/SideEffectsData.mjs +0 -15
- package/dist/esm/api/types/TooManyRequestsErrorBody.d.mts +0 -3
- package/dist/esm/api/types/TooManyRequestsErrorBody.mjs +0 -2
- package/dist/esm/api/types/index.d.mts +0 -55
- package/dist/esm/api/types/index.mjs +0 -55
- package/dist/esm/auth/HeaderAuthProvider.d.mts +0 -20
- package/dist/esm/auth/HeaderAuthProvider.mjs +0 -43
- package/dist/esm/auth/index.d.mts +0 -1
- package/dist/esm/auth/index.mjs +0 -1
- package/dist/esm/core/auth/AuthProvider.d.mts +0 -7
- package/dist/esm/core/auth/AuthProvider.mjs +0 -1
- package/dist/esm/core/auth/AuthRequest.d.mts +0 -9
- package/dist/esm/core/auth/AuthRequest.mjs +0 -1
- package/dist/esm/core/auth/BasicAuth.d.mts +0 -8
- package/dist/esm/core/auth/BasicAuth.mjs +0 -24
- package/dist/esm/core/auth/BearerToken.d.mts +0 -7
- package/dist/esm/core/auth/BearerToken.mjs +0 -13
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +0 -5
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +0 -5
- package/dist/esm/core/auth/index.d.mts +0 -5
- package/dist/esm/core/auth/index.mjs +0 -3
- package/dist/esm/core/base64.d.mts +0 -2
- package/dist/esm/core/base64.mjs +0 -22
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -19
- package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -48
- package/dist/esm/core/fetcher/Fetcher.mjs +0 -318
- package/dist/esm/core/fetcher/Headers.d.mts +0 -2
- package/dist/esm/core/fetcher/Headers.mjs +0 -82
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
- package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
- package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
- package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
- package/dist/esm/core/fetcher/Supplier.mjs +0 -19
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
- package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
- package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
- package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
- package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
- package/dist/esm/core/fetcher/getHeader.mjs +0 -8
- package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
- package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +0 -66
- package/dist/esm/core/fetcher/index.d.mts +0 -13
- package/dist/esm/core/fetcher/index.mjs +0 -7
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +0 -49
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +0 -132
- package/dist/esm/core/fetcher/makeRequest.d.mts +0 -6
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -55
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
- package/dist/esm/core/fetcher/signals.d.mts +0 -5
- package/dist/esm/core/fetcher/signals.mjs +0 -20
- package/dist/esm/core/headers.d.mts +0 -2
- package/dist/esm/core/headers.mjs +0 -27
- package/dist/esm/core/index.d.mts +0 -6
- package/dist/esm/core/index.mjs +0 -6
- package/dist/esm/core/json.d.mts +0 -15
- package/dist/esm/core/json.mjs +0 -19
- package/dist/esm/core/logging/exports.d.mts +0 -18
- package/dist/esm/core/logging/exports.mjs +0 -9
- package/dist/esm/core/logging/index.d.mts +0 -1
- package/dist/esm/core/logging/index.mjs +0 -1
- package/dist/esm/core/logging/logger.d.mts +0 -126
- package/dist/esm/core/logging/logger.mjs +0 -138
- package/dist/esm/core/runtime/index.d.mts +0 -1
- package/dist/esm/core/runtime/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.d.mts +0 -9
- package/dist/esm/core/runtime/runtime.mjs +0 -101
- package/dist/esm/core/url/encodePathParam.d.mts +0 -1
- package/dist/esm/core/url/encodePathParam.mjs +0 -18
- package/dist/esm/core/url/index.d.mts +0 -3
- package/dist/esm/core/url/index.mjs +0 -3
- package/dist/esm/core/url/join.d.mts +0 -1
- package/dist/esm/core/url/join.mjs +0 -65
- package/dist/esm/core/url/qs.d.mts +0 -6
- package/dist/esm/core/url/qs.mjs +0 -61
- package/dist/esm/environments.d.mts +0 -4
- package/dist/esm/environments.mjs +0 -4
- package/dist/esm/errors/SafeRxError.d.mts +0 -12
- package/dist/esm/errors/SafeRxError.mjs +0 -28
- package/dist/esm/errors/SafeRxTimeoutError.d.mts +0 -3
- package/dist/esm/errors/SafeRxTimeoutError.mjs +0 -11
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +0 -2
- package/dist/esm/errors/handleNonStatusCodeError.mjs +0 -29
- package/dist/esm/errors/index.d.mts +0 -2
- package/dist/esm/errors/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- package/dist/esm/index.d.mts +0 -6
- package/dist/esm/index.mjs +0 -5
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
package/dist/cjs/core/url/qs.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toQueryString = toQueryString;
|
|
4
|
-
const defaultQsOptions = {
|
|
5
|
-
arrayFormat: "indices",
|
|
6
|
-
encode: true,
|
|
7
|
-
};
|
|
8
|
-
function encodeValue(value, shouldEncode) {
|
|
9
|
-
if (value === undefined) {
|
|
10
|
-
return "";
|
|
11
|
-
}
|
|
12
|
-
if (value === null) {
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
15
|
-
const stringValue = String(value);
|
|
16
|
-
return shouldEncode ? encodeURIComponent(stringValue) : stringValue;
|
|
17
|
-
}
|
|
18
|
-
function stringifyObject(obj, prefix = "", options) {
|
|
19
|
-
const parts = [];
|
|
20
|
-
for (const [key, value] of Object.entries(obj)) {
|
|
21
|
-
const fullKey = prefix ? `${prefix}[${key}]` : key;
|
|
22
|
-
if (value === undefined) {
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
if (Array.isArray(value)) {
|
|
26
|
-
if (value.length === 0) {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
for (let i = 0; i < value.length; i++) {
|
|
30
|
-
const item = value[i];
|
|
31
|
-
if (item === undefined) {
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (typeof item === "object" && !Array.isArray(item) && item !== null) {
|
|
35
|
-
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
36
|
-
parts.push(...stringifyObject(item, arrayKey, options));
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
40
|
-
const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
|
|
41
|
-
parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else if (typeof value === "object" && value !== null) {
|
|
46
|
-
if (Object.keys(value).length === 0) {
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
parts.push(...stringifyObject(value, fullKey, options));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
const encodedKey = options.encode ? encodeURIComponent(fullKey) : fullKey;
|
|
53
|
-
parts.push(`${encodedKey}=${encodeValue(value, options.encode)}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return parts;
|
|
57
|
-
}
|
|
58
|
-
function toQueryString(obj, options) {
|
|
59
|
-
if (obj == null || typeof obj !== "object") {
|
|
60
|
-
return "";
|
|
61
|
-
}
|
|
62
|
-
const parts = stringifyObject(obj, "", Object.assign(Object.assign({}, defaultQsOptions), options));
|
|
63
|
-
return parts.join("&");
|
|
64
|
-
}
|
package/dist/cjs/environments.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type * as core from "../core/index.js";
|
|
2
|
-
export declare class SafeRxError extends Error {
|
|
3
|
-
readonly statusCode?: number;
|
|
4
|
-
readonly body?: unknown;
|
|
5
|
-
readonly rawResponse?: core.RawResponse;
|
|
6
|
-
constructor({ message, statusCode, body, rawResponse, }: {
|
|
7
|
-
message?: string;
|
|
8
|
-
statusCode?: number;
|
|
9
|
-
body?: unknown;
|
|
10
|
-
rawResponse?: core.RawResponse;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SafeRxError = void 0;
|
|
5
|
-
const json_js_1 = require("../core/json.js");
|
|
6
|
-
class SafeRxError extends Error {
|
|
7
|
-
constructor({ message, statusCode, body, rawResponse, }) {
|
|
8
|
-
super(buildMessage({ message, statusCode, body }));
|
|
9
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
10
|
-
if (Error.captureStackTrace) {
|
|
11
|
-
Error.captureStackTrace(this, this.constructor);
|
|
12
|
-
}
|
|
13
|
-
this.name = this.constructor.name;
|
|
14
|
-
this.statusCode = statusCode;
|
|
15
|
-
this.body = body;
|
|
16
|
-
this.rawResponse = rawResponse;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.SafeRxError = SafeRxError;
|
|
20
|
-
function buildMessage({ message, statusCode, body, }) {
|
|
21
|
-
const lines = [];
|
|
22
|
-
if (message != null) {
|
|
23
|
-
lines.push(message);
|
|
24
|
-
}
|
|
25
|
-
if (statusCode != null) {
|
|
26
|
-
lines.push(`Status code: ${statusCode.toString()}`);
|
|
27
|
-
}
|
|
28
|
-
if (body != null) {
|
|
29
|
-
lines.push(`Body: ${(0, json_js_1.toJson)(body, undefined, 2)}`);
|
|
30
|
-
}
|
|
31
|
-
return lines.join("\n");
|
|
32
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SafeRxTimeoutError = void 0;
|
|
5
|
-
class SafeRxTimeoutError extends Error {
|
|
6
|
-
constructor(message) {
|
|
7
|
-
super(message);
|
|
8
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
-
if (Error.captureStackTrace) {
|
|
10
|
-
Error.captureStackTrace(this, this.constructor);
|
|
11
|
-
}
|
|
12
|
-
this.name = this.constructor.name;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.SafeRxTimeoutError = SafeRxTimeoutError;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.handleNonStatusCodeError = handleNonStatusCodeError;
|
|
38
|
-
const errors = __importStar(require("./index.js"));
|
|
39
|
-
function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
40
|
-
switch (error.reason) {
|
|
41
|
-
case "non-json":
|
|
42
|
-
throw new errors.SafeRxError({
|
|
43
|
-
statusCode: error.statusCode,
|
|
44
|
-
body: error.rawBody,
|
|
45
|
-
rawResponse: rawResponse,
|
|
46
|
-
});
|
|
47
|
-
case "body-is-null":
|
|
48
|
-
throw new errors.SafeRxError({
|
|
49
|
-
statusCode: error.statusCode,
|
|
50
|
-
rawResponse: rawResponse,
|
|
51
|
-
});
|
|
52
|
-
case "timeout":
|
|
53
|
-
throw new errors.SafeRxTimeoutError(`Timeout exceeded when calling ${method} ${path}.`);
|
|
54
|
-
case "unknown":
|
|
55
|
-
throw new errors.SafeRxError({
|
|
56
|
-
message: error.errorMessage,
|
|
57
|
-
rawResponse: rawResponse,
|
|
58
|
-
});
|
|
59
|
-
default:
|
|
60
|
-
throw new errors.SafeRxError({
|
|
61
|
-
message: "Unknown error",
|
|
62
|
-
rawResponse: rawResponse,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
package/dist/cjs/errors/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SafeRxTimeoutError = exports.SafeRxError = void 0;
|
|
4
|
-
var SafeRxError_js_1 = require("./SafeRxError.js");
|
|
5
|
-
Object.defineProperty(exports, "SafeRxError", { enumerable: true, get: function () { return SafeRxError_js_1.SafeRxError; } });
|
|
6
|
-
var SafeRxTimeoutError_js_1 = require("./SafeRxTimeoutError.js");
|
|
7
|
-
Object.defineProperty(exports, "SafeRxTimeoutError", { enumerable: true, get: function () { return SafeRxTimeoutError_js_1.SafeRxTimeoutError; } });
|
package/dist/cjs/exports.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./core/exports.js";
|
package/dist/cjs/exports.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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("./core/exports.js"), exports);
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * as SafeRx from "./api/index.js";
|
|
2
|
-
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
3
|
-
export { SafeRxClient } from "./Client.js";
|
|
4
|
-
export { SafeRxEnvironment } from "./environments.js";
|
|
5
|
-
export { SafeRxError, SafeRxTimeoutError } from "./errors/index.js";
|
|
6
|
-
export * from "./exports.js";
|
package/dist/cjs/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SafeRxTimeoutError = exports.SafeRxError = exports.SafeRxEnvironment = exports.SafeRxClient = exports.SafeRx = void 0;
|
|
40
|
-
exports.SafeRx = __importStar(require("./api/index.js"));
|
|
41
|
-
var Client_js_1 = require("./Client.js");
|
|
42
|
-
Object.defineProperty(exports, "SafeRxClient", { enumerable: true, get: function () { return Client_js_1.SafeRxClient; } });
|
|
43
|
-
var environments_js_1 = require("./environments.js");
|
|
44
|
-
Object.defineProperty(exports, "SafeRxEnvironment", { enumerable: true, get: function () { return environments_js_1.SafeRxEnvironment; } });
|
|
45
|
-
var index_js_1 = require("./errors/index.js");
|
|
46
|
-
Object.defineProperty(exports, "SafeRxError", { enumerable: true, get: function () { return index_js_1.SafeRxError; } });
|
|
47
|
-
Object.defineProperty(exports, "SafeRxTimeoutError", { enumerable: true, get: function () { return index_js_1.SafeRxTimeoutError; } });
|
|
48
|
-
__exportStar(require("./exports.js"), exports);
|
package/dist/cjs/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.4.3";
|
package/dist/cjs/version.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
2
|
-
import * as core from "./core/index.mjs";
|
|
3
|
-
import type * as environments from "./environments.mjs";
|
|
4
|
-
export type BaseClientOptions = {
|
|
5
|
-
environment?: core.Supplier<environments.SafeRxEnvironment | string>;
|
|
6
|
-
/** Specify a custom URL to connect the client to. */
|
|
7
|
-
baseUrl?: core.Supplier<string>;
|
|
8
|
-
/** Additional headers to include in requests. */
|
|
9
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
|
-
/** The default maximum time to wait for a response in seconds. */
|
|
11
|
-
timeoutInSeconds?: number;
|
|
12
|
-
/** The default number of times to retry the request. Defaults to 2. */
|
|
13
|
-
maxRetries?: number;
|
|
14
|
-
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
15
|
-
fetch?: typeof fetch;
|
|
16
|
-
/** Configure logging for the client. */
|
|
17
|
-
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
18
|
-
} & HeaderAuthProvider.AuthOptions;
|
|
19
|
-
export interface BaseRequestOptions {
|
|
20
|
-
/** The maximum time to wait for a response in seconds. */
|
|
21
|
-
timeoutInSeconds?: number;
|
|
22
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
23
|
-
maxRetries?: number;
|
|
24
|
-
/** A hook to abort the request. */
|
|
25
|
-
abortSignal?: AbortSignal;
|
|
26
|
-
/** Additional query string parameters to include in the request. */
|
|
27
|
-
queryParams?: Record<string, unknown>;
|
|
28
|
-
/** Additional headers to include in the request. */
|
|
29
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
30
|
-
}
|
|
31
|
-
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
32
|
-
logging: core.logging.Logger;
|
|
33
|
-
authProvider?: core.AuthProvider;
|
|
34
|
-
};
|
|
35
|
-
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
36
|
-
authProvider: core.AuthProvider;
|
|
37
|
-
};
|
|
38
|
-
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
39
|
-
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
package/dist/esm/BaseClient.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
3
|
-
import { mergeHeaders } from "./core/headers.mjs";
|
|
4
|
-
import * as core from "./core/index.mjs";
|
|
5
|
-
export function normalizeClientOptions(options) {
|
|
6
|
-
const headers = mergeHeaders({
|
|
7
|
-
"X-Fern-Language": "JavaScript",
|
|
8
|
-
"X-Fern-SDK-Name": "saferx-pharma-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.4.3",
|
|
10
|
-
"User-Agent": "saferx-pharma-sdk/1.4.3",
|
|
11
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
|
-
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
14
|
-
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
15
|
-
}
|
|
16
|
-
export function normalizeClientOptionsWithAuth(options) {
|
|
17
|
-
var _a;
|
|
18
|
-
const normalized = normalizeClientOptions(options);
|
|
19
|
-
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
20
|
-
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new HeaderAuthProvider(normalizedWithNoOpAuthProvider));
|
|
21
|
-
return normalized;
|
|
22
|
-
}
|
|
23
|
-
function withNoOpAuthProvider(options) {
|
|
24
|
-
return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
|
|
25
|
-
}
|
package/dist/esm/Client.d.mts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DevelopersClient } from "./api/resources/developers/client/Client.mjs";
|
|
2
|
-
import { DrugSafetyClient } from "./api/resources/drugSafety/client/Client.mjs";
|
|
3
|
-
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
4
|
-
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
5
|
-
import * as core from "./core/index.mjs";
|
|
6
|
-
export declare namespace SafeRxClient {
|
|
7
|
-
type Options = BaseClientOptions;
|
|
8
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare class SafeRxClient {
|
|
12
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<SafeRxClient.Options>;
|
|
13
|
-
protected _drugSafety: DrugSafetyClient | undefined;
|
|
14
|
-
protected _developers: DevelopersClient | undefined;
|
|
15
|
-
constructor(options?: SafeRxClient.Options);
|
|
16
|
-
get drugSafety(): DrugSafetyClient;
|
|
17
|
-
get developers(): DevelopersClient;
|
|
18
|
-
/**
|
|
19
|
-
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
20
|
-
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
21
|
-
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
22
|
-
*
|
|
23
|
-
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
24
|
-
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
25
|
-
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
26
|
-
* @returns {Promise<Response>} A standard Response object.
|
|
27
|
-
*/
|
|
28
|
-
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
29
|
-
}
|
package/dist/esm/Client.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
import { DevelopersClient } from "./api/resources/developers/client/Client.mjs";
|
|
12
|
-
import { DrugSafetyClient } from "./api/resources/drugSafety/client/Client.mjs";
|
|
13
|
-
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
14
|
-
import * as core from "./core/index.mjs";
|
|
15
|
-
export class SafeRxClient {
|
|
16
|
-
constructor(options = {}) {
|
|
17
|
-
this._options = normalizeClientOptionsWithAuth(options);
|
|
18
|
-
}
|
|
19
|
-
get drugSafety() {
|
|
20
|
-
var _a;
|
|
21
|
-
return ((_a = this._drugSafety) !== null && _a !== void 0 ? _a : (this._drugSafety = new DrugSafetyClient(this._options)));
|
|
22
|
-
}
|
|
23
|
-
get developers() {
|
|
24
|
-
var _a;
|
|
25
|
-
return ((_a = this._developers) !== null && _a !== void 0 ? _a : (this._developers = new DevelopersClient(this._options)));
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
29
|
-
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
30
|
-
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
31
|
-
*
|
|
32
|
-
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
33
|
-
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
34
|
-
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
35
|
-
* @returns {Promise<Response>} A standard Response object.
|
|
36
|
-
*/
|
|
37
|
-
fetch(input, init, requestOptions) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
var _a;
|
|
40
|
-
return core.makePassthroughRequest(input, init, {
|
|
41
|
-
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : this._options.environment,
|
|
42
|
-
headers: this._options.headers,
|
|
43
|
-
timeoutInSeconds: this._options.timeoutInSeconds,
|
|
44
|
-
maxRetries: this._options.maxRetries,
|
|
45
|
-
fetch: this._options.fetch,
|
|
46
|
-
logging: this._options.logging,
|
|
47
|
-
getAuthHeaders: () => __awaiter(this, void 0, void 0, function* () { return (yield this._options.authProvider.getAuthRequest()).headers; }),
|
|
48
|
-
}, requestOptions);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
export class BadRequestError extends errors.SafeRxError {
|
|
4
|
-
constructor(body, rawResponse) {
|
|
5
|
-
super({
|
|
6
|
-
message: "BadRequestError",
|
|
7
|
-
statusCode: 400,
|
|
8
|
-
body: body,
|
|
9
|
-
rawResponse: rawResponse,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
export class ForbiddenError extends errors.SafeRxError {
|
|
4
|
-
constructor(body, rawResponse) {
|
|
5
|
-
super({
|
|
6
|
-
message: "ForbiddenError",
|
|
7
|
-
statusCode: 403,
|
|
8
|
-
body: body,
|
|
9
|
-
rawResponse: rawResponse,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
export class InternalServerError extends errors.SafeRxError {
|
|
4
|
-
constructor(body, rawResponse) {
|
|
5
|
-
super({
|
|
6
|
-
message: "InternalServerError",
|
|
7
|
-
statusCode: 500,
|
|
8
|
-
body: body,
|
|
9
|
-
rawResponse: rawResponse,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
export class TooManyRequestsError extends errors.SafeRxError {
|
|
4
|
-
constructor(body, rawResponse) {
|
|
5
|
-
super({
|
|
6
|
-
message: "TooManyRequestsError",
|
|
7
|
-
statusCode: 429,
|
|
8
|
-
body: body,
|
|
9
|
-
rawResponse: rawResponse,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type * as core from "../../core/index.mjs";
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
import type * as SafeRx from "../index.mjs";
|
|
4
|
-
export declare class UnauthorizedError extends errors.SafeRxError {
|
|
5
|
-
constructor(body: SafeRx.ErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
export class UnauthorizedError extends errors.SafeRxError {
|
|
4
|
-
constructor(body, rawResponse) {
|
|
5
|
-
super({
|
|
6
|
-
message: "UnauthorizedError",
|
|
7
|
-
statusCode: 401,
|
|
8
|
-
body: body,
|
|
9
|
-
rawResponse: rawResponse,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
}
|
|
17
|
-
}
|
package/dist/esm/api/index.d.mts
DELETED
package/dist/esm/api/index.mjs
DELETED