oro-sdk-apis 7.4.2 → 8.0.0
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/models/practice.d.ts +6 -1
- package/dist/models/teller.d.ts +2 -2
- package/dist/oro-sdk-apis.cjs.development.js +14 -13
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +14 -13
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/vault.d.ts +2 -2
- package/package.json +2 -2
- package/src/models/practice.ts +8 -0
- package/src/models/teller.ts +3 -2
- package/src/services/vault.ts +6 -6
package/dist/services/vault.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { DataCreateResponse, DataResponse, GrantedLockboxes,
|
2
|
+
import { DataCreateResponse, DataResponse, GrantedLockboxes, LockboxDataRequest, LockboxGrantRequest, LockboxManifest, SharedSecretResponse, Uuid, EncryptedVaultIndex, IndexKey, EncryptedIndexEntry, Grant, LockboxCreateResponse } from '../models';
|
3
3
|
export declare class VaultService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
6
6
|
constructor(api: APIService, baseURL: string);
|
7
|
-
lockboxCreate(
|
7
|
+
lockboxCreate(): Promise<Grant>;
|
8
8
|
lockboxMetadataAdd(lockboxUuid: Uuid, lockboxMetadata: Object, lockboxOwnerUuid?: Uuid): Promise<LockboxCreateResponse>;
|
9
9
|
lockboxSecretGet(lockboxUuid: Uuid, lockboxOwnerUuid?: Uuid): Promise<SharedSecretResponse>;
|
10
10
|
lockboxGrant(lockboxUuid: Uuid, req: LockboxGrantRequest, lockboxOwnerUuid?: Uuid): Promise<void>;
|
package/package.json
CHANGED
package/src/models/practice.ts
CHANGED
@@ -137,6 +137,7 @@ export interface PracticeAccount {
|
|
137
137
|
*/
|
138
138
|
export enum PracticeConfigKind {
|
139
139
|
PatientConsultCard = 'PatientConsultCard',
|
140
|
+
PracticeChatSupport = 'PracticeChatSupport',
|
140
141
|
PracticeCloseConsultationTypes = 'PracticeCloseConsultationTypes',
|
141
142
|
PracticeConsultTabs = 'PracticeConsultTabs',
|
142
143
|
PracticeConfigExample = 'PracticeConfigExample',
|
@@ -216,6 +217,11 @@ export type PracticeConfigPatientConsultCard = PracticeConfig<
|
|
216
217
|
{ hideDiagnosis?: boolean }
|
217
218
|
>
|
218
219
|
|
220
|
+
export type PracticeConfigPracticeChatSupport = PracticeConfig<
|
221
|
+
PracticeConfigKind.PracticeChatSupport,
|
222
|
+
{ enableChatSupport?: boolean }
|
223
|
+
>
|
224
|
+
|
219
225
|
export type PracticeConfigPracticeConsultTabs = PracticeConfig<
|
220
226
|
PracticeConfigKind.PracticeConsultTabs,
|
221
227
|
{ hideDxTx?: boolean }
|
@@ -479,6 +485,7 @@ export type PracticeConfigs =
|
|
479
485
|
| PracticeConfigPracticeConfigExample // Here for integration tests only
|
480
486
|
| PracticeConfigPracticeConsultTabs
|
481
487
|
| PracticeConfigPatientConsultCard
|
488
|
+
| PracticeConfigPracticeChatSupport
|
482
489
|
| PracticeConfigPracticeExamsAndResults
|
483
490
|
| PracticeConfigPracticeLayout
|
484
491
|
| PracticeConfigPracticeAddressField
|
@@ -732,6 +739,7 @@ export interface Practitioner {
|
|
732
739
|
|
733
740
|
export interface HydratedPracticeConfigs {
|
734
741
|
[PracticeConfigKind.PatientConsultCard]?: PracticeConfigPatientConsultCard
|
742
|
+
[PracticeConfigKind.PracticeChatSupport]?: PracticeConfigPracticeChatSupport
|
735
743
|
[PracticeConfigKind.PracticeCloseConsultationTypes]?: PracticeConfigPracticeCloseConsultationTypes
|
736
744
|
[PracticeConfigKind.PracticeConsultTabs]?: PracticeConfigPracticeConsultTabs
|
737
745
|
[PracticeConfigKind.PracticeConfigExample]?: PracticeConfigPracticeConfigExample
|
package/src/models/teller.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import {Consult} from "./consult"
|
2
|
+
|
1
3
|
export interface ResumeConsultEmailRequest {
|
2
4
|
patientEmail: string
|
3
5
|
locale: string
|
@@ -5,7 +7,6 @@ export interface ResumeConsultEmailRequest {
|
|
5
7
|
}
|
6
8
|
|
7
9
|
export interface ResumeTransmissionEmailRequest {
|
10
|
+
consult: Consult
|
8
11
|
patientEmail: string
|
9
|
-
locale: string
|
10
|
-
resumeTransmissionConsultUrl: string
|
11
12
|
}
|
package/src/services/vault.ts
CHANGED
@@ -3,7 +3,6 @@ import {
|
|
3
3
|
DataCreateResponse,
|
4
4
|
DataResponse,
|
5
5
|
GrantedLockboxes,
|
6
|
-
LockboxCreateResponse,
|
7
6
|
LockboxDataRequest,
|
8
7
|
LockboxGrantRequest,
|
9
8
|
LockboxManifest,
|
@@ -11,16 +10,17 @@ import {
|
|
11
10
|
Uuid,
|
12
11
|
EncryptedVaultIndex,
|
13
12
|
IndexKey,
|
14
|
-
EncryptedIndexEntry
|
13
|
+
EncryptedIndexEntry,
|
14
|
+
Grant,
|
15
|
+
LockboxCreateResponse
|
15
16
|
} from '../models'
|
16
17
|
|
17
18
|
export class VaultService {
|
18
19
|
constructor(private api: APIService, private baseURL: string) { }
|
19
20
|
|
20
|
-
public async lockboxCreate(
|
21
|
-
return this.api.post<
|
22
|
-
`${this.baseURL}/v1/
|
23
|
-
lockboxMetadata
|
21
|
+
public async lockboxCreate(): Promise<Grant> {
|
22
|
+
return this.api.post<Grant>(
|
23
|
+
`${this.baseURL}/v1/lockboxes`
|
24
24
|
)
|
25
25
|
}
|
26
26
|
|