docta-package 1.2.54 → 1.2.56

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.
@@ -11,7 +11,6 @@ interface ISessionConfigOutput {
11
11
  export declare class SessionOutputDto {
12
12
  id: string;
13
13
  period: PeriodOutputDto;
14
- patient: PatientOutputDto;
15
14
  status: string;
16
15
  isDeleted: boolean;
17
16
  createdAt: number;
@@ -21,15 +20,17 @@ export declare class SessionOutputDto {
21
20
  export declare class SessionPatientOutputDto extends SessionOutputDto {
22
21
  pricing: {
23
22
  totalPrice: number;
24
- platformPrice: number;
23
+ paymentApiPrice: number;
25
24
  };
26
25
  constructor(session: ISessionDocument);
27
26
  }
28
27
  export declare class SessionDoctorOutputDto extends SessionOutputDto {
29
28
  price: number;
29
+ patient: PatientOutputDto;
30
30
  constructor(session: ISessionDocument);
31
31
  }
32
32
  export declare class SessionAdminOutputDto extends SessionOutputDto {
33
+ patient: PatientOutputDto;
33
34
  pricing: {
34
35
  totalPrice: number;
35
36
  doctorPrice: number;
@@ -9,7 +9,6 @@ class SessionOutputDto {
9
9
  constructor(session) {
10
10
  this.id = session.id.toString();
11
11
  this.period = new period_1.PeriodOutputDto(session.period);
12
- this.patient = new patient_1.PatientOutputDto(session.patient);
13
12
  this.status = session.status;
14
13
  this.isDeleted = session.isDeleted;
15
14
  this.createdAt = session.createdAt;
@@ -23,7 +22,7 @@ class SessionPatientOutputDto extends SessionOutputDto {
23
22
  super(session); // call base constructor
24
23
  this.pricing = {
25
24
  totalPrice: session.pricing.totalPrice,
26
- platformPrice: session.pricing.platformPrice,
25
+ paymentApiPrice: session.pricing.paymentApiPrice,
27
26
  };
28
27
  }
29
28
  }
@@ -32,6 +31,7 @@ exports.SessionPatientOutputDto = SessionPatientOutputDto;
32
31
  class SessionDoctorOutputDto extends SessionOutputDto {
33
32
  constructor(session) {
34
33
  super(session); // call base constructor
34
+ this.patient = new patient_1.PatientOutputDto(session.patient);
35
35
  this.price = session.pricing.doctorPrice;
36
36
  }
37
37
  }
@@ -40,6 +40,7 @@ exports.SessionDoctorOutputDto = SessionDoctorOutputDto;
40
40
  class SessionAdminOutputDto extends SessionOutputDto {
41
41
  constructor(session) {
42
42
  super(session); // call base constructor
43
+ this.patient = new patient_1.PatientOutputDto(session.patient);
43
44
  this.pricing = {
44
45
  totalPrice: session.pricing.totalPrice,
45
46
  doctorPrice: session.pricing.doctorPrice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.54",
3
+ "version": "1.2.56",
4
4
  "description": "This package will contail all the required files to run the docta micro-service app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",