oro-sdk-apis 3.3.1 → 3.5.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.
@@ -4,7 +4,9 @@ export declare class TellerService {
4
4
  private api;
5
5
  private baseURL;
6
6
  constructor(api: APIService, baseURL: string);
7
- lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
7
+ lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid, options?: {
8
+ updateMedicalStatus: boolean;
9
+ }): Promise<DataCreateResponse>;
8
10
  updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, closedReasonType?: ClosedReasonType, closedReasonDescription?: string, neverExpires?: boolean): Promise<Consult>;
9
11
  /**
10
12
  * This function notifies teller that the fax sent for a specific consult did not get through
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.3.1",
2
+ "version": "3.5.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -27,7 +27,7 @@ export interface M2MTokenRequest {
27
27
  clientId: string
28
28
  clientSecret: string
29
29
  requestedScopes: string[]
30
- practiceUuid: string
30
+ practiceUuid?: string
31
31
  }
32
32
 
33
33
  export interface AuthRecoverRequest {
@@ -9,18 +9,22 @@ import {
9
9
  Uuid,
10
10
  } from '../models'
11
11
  export class TellerService {
12
- constructor(private api: APIService, private baseURL: string) {}
12
+ constructor(private api: APIService, private baseURL: string) { }
13
13
 
14
14
  public async lockboxDataStore(
15
15
  lockboxUuid: Uuid,
16
16
  req: LockboxDataRequest,
17
17
  lockboxOwnerUuid?: Uuid,
18
- previousDataUuid?: Uuid
18
+ previousDataUuid?: Uuid,
19
+ options: {
20
+ updateMedicalStatus: boolean
21
+ } = { updateMedicalStatus: true },
19
22
  ): Promise<DataCreateResponse> {
20
23
  return this.api.post<DataCreateResponse>(`${this.baseURL}/v1/lockboxes/${lockboxUuid}/data`, req, {
21
24
  params: {
22
25
  lockbox_owner_uuid: lockboxOwnerUuid,
23
26
  data_uuid: previousDataUuid,
27
+ update_medical_status: options.updateMedicalStatus,
24
28
  },
25
29
  })
26
30
  }