oro-sdk-apis 5.13.4 → 5.13.5

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.
@@ -41,6 +41,7 @@ export declare class ConsultService {
41
41
  */
42
42
  getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], uuidParent?: Uuid, typesConsult?: ConsultType[]): Promise<Consult[]>;
43
43
  getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
44
+ getConsultByPracticePaymentID(idPracticePayment: Number, uuidPractice?: Uuid): Promise<Consult>;
44
45
  updateConsultByUUID(uuidConsult: Uuid, consult: {
45
46
  statusMedical?: MedicalStatus;
46
47
  closedReasonType?: ClosedReasonType;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.13.4",
2
+ "version": "5.13.5",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -30,6 +30,7 @@ export enum PaymentStatus {
30
30
  Success = 'Success',
31
31
  Failure = 'Failure',
32
32
  Canceled = 'Canceled',
33
+ SuccessAndDelivered = 'SuccessAndDelivered',
33
34
  }
34
35
 
35
36
  export enum PractitionerStatus {
@@ -12,7 +12,7 @@ import {
12
12
  } from '../models'
13
13
 
14
14
  export class ConsultService {
15
- constructor(private api: APIService, private baseURL: string) { }
15
+ constructor(private api: APIService, private baseURL: string) {}
16
16
 
17
17
  public consultCreate(c: ConsultRequest): Promise<Consult> {
18
18
  return this.api.post<Consult>(`${this.baseURL}/v1/consults`, c)
@@ -71,7 +71,7 @@ export class ConsultService {
71
71
  filterIsoLocality,
72
72
  filterAssignee,
73
73
  typesConsult,
74
- uuidParent
74
+ uuidParent,
75
75
  },
76
76
  },
77
77
  'Content-Range'
@@ -120,7 +120,7 @@ export class ConsultService {
120
120
  filterIsoLocality?: string[],
121
121
  filterAssignee?: string[],
122
122
  uuidParent?: Uuid,
123
- typesConsult?: ConsultType[],
123
+ typesConsult?: ConsultType[]
124
124
  ): Promise<Consult[]> {
125
125
  return this.api.get<Consult[]>(`${this.baseURL}/v1/consults`, {
126
126
  params: {
@@ -147,6 +147,12 @@ export class ConsultService {
147
147
  return this.api.get<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, { params: { uuidPractice } })
148
148
  }
149
149
 
150
+ public getConsultByPracticePaymentID(idPracticePayment: Number, uuidPractice?: Uuid): Promise<Consult> {
151
+ return this.api.get<Consult>(`${this.baseURL}/v1/consults/payment-${idPracticePayment}`, {
152
+ params: { uuidPractice },
153
+ })
154
+ }
155
+
150
156
  public updateConsultByUUID(
151
157
  uuidConsult: Uuid,
152
158
  consult: {