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.
@@ -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.36",
47
- "User-Agent": "saferx-pharma-sdk/0.0.36",
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?: (string | null) | undefined;
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?: (string | null) | undefined;
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?: (string | null) | undefined;
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 */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.36";
1
+ export declare const SDK_VERSION = "0.0.42";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.36";
4
+ exports.SDK_VERSION = "0.0.42";
@@ -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.36",
10
- "User-Agent": "saferx-pharma-sdk/0.0.36",
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?: (string | null) | undefined;
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?: (string | null) | undefined;
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?: (string | null) | undefined;
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 */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.36";
1
+ export declare const SDK_VERSION = "0.0.42";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.36";
1
+ export const SDK_VERSION = "0.0.42";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saferx-pharma-sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.42",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",