saferx-pharma-sdk 2.0.5 → 2.1.1
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/client.d.ts +1 -1
- package/dist/client.js +6 -1
- package/package.json +1 -1
- package/src/client.ts +6 -1
package/dist/client.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type EnterpriseOperation = {
|
|
|
5
5
|
path: string;
|
|
6
6
|
idempotencyRequired: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const SDK_VERSION = "2.
|
|
8
|
+
export declare const SDK_VERSION = "2.1.1";
|
|
9
9
|
export declare const CLIENT_KIND = "typescript_sdk";
|
|
10
10
|
export declare const SDK_LANGUAGE = "typescript";
|
|
11
11
|
export declare const MAX_ATTEMPTS = 3;
|
package/dist/client.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.
|
|
1
|
+
export const SDK_VERSION = "2.1.1";
|
|
2
2
|
export const CLIENT_KIND = "typescript_sdk";
|
|
3
3
|
export const SDK_LANGUAGE = "typescript";
|
|
4
4
|
export const MAX_ATTEMPTS = 3;
|
|
5
5
|
export const RETRY_BACKOFF_BASE_SECONDS = 0.1;
|
|
6
6
|
export const RETRY_BACKOFF_MAX_SECONDS = 2.0;
|
|
7
7
|
export const OPERATIONS = {
|
|
8
|
+
enterprise_allergy_families: { operationId: 'enterprise_allergy_families', method: 'GET', path: '/allergies/families', idempotencyRequired: false },
|
|
9
|
+
enterprise_allergy_resolve: { operationId: 'enterprise_allergy_resolve', method: 'POST', path: '/allergies/resolve', idempotencyRequired: false },
|
|
10
|
+
enterprise_allergy_substances: { operationId: 'enterprise_allergy_substances', method: 'GET', path: '/allergies/substances', idempotencyRequired: false },
|
|
8
11
|
enterprise_capabilities: { operationId: 'enterprise_capabilities', method: 'GET', path: '/capabilities', idempotencyRequired: false },
|
|
9
12
|
enterprise_erx_safety_check: { operationId: 'enterprise_erx_safety_check', method: 'POST', path: '/erx/safety-checks', idempotencyRequired: true },
|
|
10
13
|
enterprise_ocr_prescription_create: { operationId: 'enterprise_ocr_prescription_create', method: 'POST', path: '/ocr/prescriptions', idempotencyRequired: true },
|
|
@@ -20,6 +23,8 @@ export const OPERATIONS = {
|
|
|
20
23
|
enterprise_registry_search: { operationId: 'enterprise_registry_search', method: 'GET', path: '/registry/search', idempotencyRequired: false },
|
|
21
24
|
enterprise_safety_capabilities: { operationId: 'enterprise_safety_capabilities', method: 'GET', path: '/safety/capabilities', idempotencyRequired: false },
|
|
22
25
|
enterprise_safety_check: { operationId: 'enterprise_safety_check', method: 'POST', path: '/safety/checks', idempotencyRequired: true },
|
|
26
|
+
enterprise_safety_check_batch: { operationId: 'enterprise_safety_check_batch', method: 'POST', path: '/safety/check-batches', idempotencyRequired: true },
|
|
27
|
+
enterprise_safety_check_read: { operationId: 'enterprise_safety_check_read', method: 'GET', path: '/safety/checks/{check_id}', idempotencyRequired: false },
|
|
23
28
|
enterprise_status: { operationId: 'enterprise_status', method: 'GET', path: '/status', idempotencyRequired: false },
|
|
24
29
|
};
|
|
25
30
|
export class SafeRxProblemDetailsError extends Error {
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4,13 +4,16 @@ export type EnterpriseOperation = {
|
|
|
4
4
|
operationId: string; method: string; path: string; idempotencyRequired: boolean;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
export const SDK_VERSION = "2.
|
|
7
|
+
export const SDK_VERSION = "2.1.1";
|
|
8
8
|
export const CLIENT_KIND = "typescript_sdk";
|
|
9
9
|
export const SDK_LANGUAGE = "typescript";
|
|
10
10
|
export const MAX_ATTEMPTS = 3;
|
|
11
11
|
export const RETRY_BACKOFF_BASE_SECONDS = 0.1;
|
|
12
12
|
export const RETRY_BACKOFF_MAX_SECONDS = 2.0;
|
|
13
13
|
export const OPERATIONS: Record<string, EnterpriseOperation> = {
|
|
14
|
+
enterprise_allergy_families: { operationId: 'enterprise_allergy_families', method: 'GET', path: '/allergies/families', idempotencyRequired: false },
|
|
15
|
+
enterprise_allergy_resolve: { operationId: 'enterprise_allergy_resolve', method: 'POST', path: '/allergies/resolve', idempotencyRequired: false },
|
|
16
|
+
enterprise_allergy_substances: { operationId: 'enterprise_allergy_substances', method: 'GET', path: '/allergies/substances', idempotencyRequired: false },
|
|
14
17
|
enterprise_capabilities: { operationId: 'enterprise_capabilities', method: 'GET', path: '/capabilities', idempotencyRequired: false },
|
|
15
18
|
enterprise_erx_safety_check: { operationId: 'enterprise_erx_safety_check', method: 'POST', path: '/erx/safety-checks', idempotencyRequired: true },
|
|
16
19
|
enterprise_ocr_prescription_create: { operationId: 'enterprise_ocr_prescription_create', method: 'POST', path: '/ocr/prescriptions', idempotencyRequired: true },
|
|
@@ -26,6 +29,8 @@ export const OPERATIONS: Record<string, EnterpriseOperation> = {
|
|
|
26
29
|
enterprise_registry_search: { operationId: 'enterprise_registry_search', method: 'GET', path: '/registry/search', idempotencyRequired: false },
|
|
27
30
|
enterprise_safety_capabilities: { operationId: 'enterprise_safety_capabilities', method: 'GET', path: '/safety/capabilities', idempotencyRequired: false },
|
|
28
31
|
enterprise_safety_check: { operationId: 'enterprise_safety_check', method: 'POST', path: '/safety/checks', idempotencyRequired: true },
|
|
32
|
+
enterprise_safety_check_batch: { operationId: 'enterprise_safety_check_batch', method: 'POST', path: '/safety/check-batches', idempotencyRequired: true },
|
|
33
|
+
enterprise_safety_check_read: { operationId: 'enterprise_safety_check_read', method: 'GET', path: '/safety/checks/{check_id}', idempotencyRequired: false },
|
|
29
34
|
enterprise_status: { operationId: 'enterprise_status', method: 'GET', path: '/status', idempotencyRequired: false },
|
|
30
35
|
};
|
|
31
36
|
|