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.
@@ -1,10 +1,10 @@
1
1
  import { APIService } from './api';
2
- import { DataCreateResponse, DataResponse, GrantedLockboxes, LockboxCreateResponse, LockboxDataRequest, LockboxGrantRequest, LockboxManifest, SharedSecretResponse, Uuid, EncryptedVaultIndex, IndexKey, EncryptedIndexEntry } from '../models';
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(lockboxMetadata?: Object): Promise<LockboxCreateResponse>;
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.4.2",
2
+ "version": "8.0.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -56,4 +56,4 @@
56
56
  "hash.js": "^1.1.7",
57
57
  "uuid": "^8.3.2"
58
58
  }
59
- }
59
+ }
@@ -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
@@ -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
  }
@@ -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(lockboxMetadata?: Object): Promise<LockboxCreateResponse> {
21
- return this.api.post<LockboxCreateResponse>(
22
- `${this.baseURL}/v1/lockbox`,
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