saferx-pharma-sdk 0.0.36 → 0.0.42
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/drugSafety/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/drugSafety/client/Client.js +2 -0
- package/dist/cjs/api/types/ReproductiveSafetyData.d.ts +3 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/drugSafety/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/drugSafety/client/Client.mjs +2 -0
- package/dist/esm/api/types/ReproductiveSafetyData.d.mts +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "saferx-pharma-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "saferx-pharma-sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.42",
|
|
47
|
+
"User-Agent": "saferx-pharma-sdk/0.0.42",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -20,6 +20,8 @@ export declare class DrugSafetyClient {
|
|
|
20
20
|
* checks in parallel, and returns a unified response with alerts bubbled to
|
|
21
21
|
* the top for easy triage.
|
|
22
22
|
*
|
|
23
|
+
* This endpoint is API-key only. It does not require `X-SafeRx-Token`.
|
|
24
|
+
*
|
|
23
25
|
* **Typical response time:** ~40ms (warm cache, 3 drugs, all domains).
|
|
24
26
|
*
|
|
25
27
|
* @param {SafeRx.DrugSafetyCheckRequest} request
|
|
@@ -65,6 +65,8 @@ class DrugSafetyClient {
|
|
|
65
65
|
* checks in parallel, and returns a unified response with alerts bubbled to
|
|
66
66
|
* the top for easy triage.
|
|
67
67
|
*
|
|
68
|
+
* This endpoint is API-key only. It does not require `X-SafeRx-Token`.
|
|
69
|
+
*
|
|
68
70
|
* **Typical response time:** ~40ms (warm cache, 3 drugs, all domains).
|
|
69
71
|
*
|
|
70
72
|
* @param {SafeRx.DrugSafetyCheckRequest} request
|
|
@@ -32,19 +32,19 @@ export interface ReproductiveSafetyData {
|
|
|
32
32
|
pregnancy_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
33
33
|
lactation_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
34
34
|
/** First trimester pregnancy risk classification */
|
|
35
|
-
preg_t1_risk?: (
|
|
35
|
+
preg_t1_risk?: (number | null) | undefined;
|
|
36
36
|
/** First trimester clinical note */
|
|
37
37
|
preg_t1_note?: (string | null) | undefined;
|
|
38
38
|
/** First trimester note in Arabic */
|
|
39
39
|
preg_t1_note_ar?: (string | null) | undefined;
|
|
40
40
|
/** Second trimester pregnancy risk classification */
|
|
41
|
-
preg_t2_risk?: (
|
|
41
|
+
preg_t2_risk?: (number | null) | undefined;
|
|
42
42
|
/** Second trimester clinical note */
|
|
43
43
|
preg_t2_note?: (string | null) | undefined;
|
|
44
44
|
/** Second trimester note in Arabic */
|
|
45
45
|
preg_t2_note_ar?: (string | null) | undefined;
|
|
46
46
|
/** Third trimester pregnancy risk classification */
|
|
47
|
-
preg_t3_risk?: (
|
|
47
|
+
preg_t3_risk?: (number | null) | undefined;
|
|
48
48
|
/** Third trimester clinical note */
|
|
49
49
|
preg_t3_note?: (string | null) | undefined;
|
|
50
50
|
/** Third trimester note in Arabic */
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.42";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "saferx-pharma-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "saferx-pharma-sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.42",
|
|
10
|
+
"User-Agent": "saferx-pharma-sdk/0.0.42",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -20,6 +20,8 @@ export declare class DrugSafetyClient {
|
|
|
20
20
|
* checks in parallel, and returns a unified response with alerts bubbled to
|
|
21
21
|
* the top for easy triage.
|
|
22
22
|
*
|
|
23
|
+
* This endpoint is API-key only. It does not require `X-SafeRx-Token`.
|
|
24
|
+
*
|
|
23
25
|
* **Typical response time:** ~40ms (warm cache, 3 drugs, all domains).
|
|
24
26
|
*
|
|
25
27
|
* @param {SafeRx.DrugSafetyCheckRequest} request
|
|
@@ -29,6 +29,8 @@ export class DrugSafetyClient {
|
|
|
29
29
|
* checks in parallel, and returns a unified response with alerts bubbled to
|
|
30
30
|
* the top for easy triage.
|
|
31
31
|
*
|
|
32
|
+
* This endpoint is API-key only. It does not require `X-SafeRx-Token`.
|
|
33
|
+
*
|
|
32
34
|
* **Typical response time:** ~40ms (warm cache, 3 drugs, all domains).
|
|
33
35
|
*
|
|
34
36
|
* @param {SafeRx.DrugSafetyCheckRequest} request
|
|
@@ -32,19 +32,19 @@ export interface ReproductiveSafetyData {
|
|
|
32
32
|
pregnancy_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
33
33
|
lactation_warning?: SafeRx.ReproductiveWarning | undefined;
|
|
34
34
|
/** First trimester pregnancy risk classification */
|
|
35
|
-
preg_t1_risk?: (
|
|
35
|
+
preg_t1_risk?: (number | null) | undefined;
|
|
36
36
|
/** First trimester clinical note */
|
|
37
37
|
preg_t1_note?: (string | null) | undefined;
|
|
38
38
|
/** First trimester note in Arabic */
|
|
39
39
|
preg_t1_note_ar?: (string | null) | undefined;
|
|
40
40
|
/** Second trimester pregnancy risk classification */
|
|
41
|
-
preg_t2_risk?: (
|
|
41
|
+
preg_t2_risk?: (number | null) | undefined;
|
|
42
42
|
/** Second trimester clinical note */
|
|
43
43
|
preg_t2_note?: (string | null) | undefined;
|
|
44
44
|
/** Second trimester note in Arabic */
|
|
45
45
|
preg_t2_note_ar?: (string | null) | undefined;
|
|
46
46
|
/** Third trimester pregnancy risk classification */
|
|
47
|
-
preg_t3_risk?: (
|
|
47
|
+
preg_t3_risk?: (number | null) | undefined;
|
|
48
48
|
/** Third trimester clinical note */
|
|
49
49
|
preg_t3_note?: (string | null) | undefined;
|
|
50
50
|
/** Third trimester note in Arabic */
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.42";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.42";
|