oro-sdk-apis 1.17.1 → 1.20.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.
@@ -90,7 +90,13 @@ export declare enum PracticeEmailKind {
90
90
  ToAnswer = "ToAnswer",
91
91
  FollowedUp = "FollowedUp",
92
92
  Renewed = "Renewed",
93
- DataRetrieved = "DataRetrieved"
93
+ DataRetrieved = "DataRetrieved",
94
+ Closed = "Closed",
95
+ PasswordRecovery = "PasswordRecovery",
96
+ FaxFailed = "FaxFailed",
97
+ ExamResult = "ExamResult",
98
+ Reassigned = "Reassigned",
99
+ OnlinePharmacyFaxSent = "OnlinePharmacyFaxSent"
94
100
  }
95
101
  export interface PracticeAccount {
96
102
  id?: number;
@@ -1,3 +1,36 @@
1
+ /**
2
+ * This type represents all the patient profile kind
3
+ */
4
+ export declare type ProfileKind = 'myself' | 'child' | 'other';
5
+ /**
6
+ * this type is done as an example on how to add another data kind
7
+ */
8
+ export declare type OtherKind = 'otherKindOfType';
9
+ /**
10
+ * This type represents all the kind a data that can define `ChoiceInputData` (`OtherKind` is here only as an example on how to add a new kind)
11
+ */
12
+ export declare type AllChoiceInputDataKind = ProfileKind | OtherKind;
13
+ /**
14
+ * This interface represents a `StateTrigger` on selected profile kind
15
+ */
16
+ export interface ProfileTrigger {
17
+ kind: 'profileTrigger';
18
+ value: ProfileKind;
19
+ }
20
+ /**
21
+ * This interface is meant as an example of another kind of `StateTrigger`
22
+ */
23
+ export interface OtherTrigger {
24
+ kind: 'otherTrigger';
25
+ field1: number;
26
+ field2: string;
27
+ }
28
+ /**
29
+ * This type represents all the state triggers that are defined.
30
+ *
31
+ * A state trigger is triggered onto app states. In other words, it is for triggers that cannot be defined thanks to pure workflow answers.
32
+ */
33
+ export declare type StateTrigger = ProfileTrigger | OtherTrigger;
1
34
  export interface IndexedData<T> {
2
35
  [key: string]: T;
3
36
  }
@@ -7,6 +40,8 @@ export interface ChoiceInputData {
7
40
  text: string;
8
41
  className?: string;
9
42
  order?: number;
43
+ /** If defined, the choice input contains a kind that can be used into app. For instance, to check if a specific `kind` of answer has been selected */
44
+ kind?: AllChoiceInputDataKind;
10
45
  }
11
46
  export interface RadioInputIconOptionsData {
12
47
  variant: 'icon';
@@ -30,7 +65,14 @@ export interface EntryData {
30
65
  summaryLabel?: string;
31
66
  summaryHidden?: boolean;
32
67
  className?: string;
68
+ /**
69
+ * This field represents a list of `selectedAnswers` that must be set for this entry to be displayed.
70
+ */
33
71
  triggers?: string[];
72
+ /**
73
+ * This field represents a list of `StateTrigger` that must be fulfilled for this entry to be displayed.
74
+ */
75
+ stateTriggers?: StateTrigger[];
34
76
  }
35
77
  export interface SlideData {
36
78
  header: string;
@@ -89,6 +131,10 @@ export interface WorkflowPageData {
89
131
  questions: IndexedData<QuestionData>;
90
132
  title?: string;
91
133
  triggers?: string[];
134
+ /**
135
+ * This field represents a list of `ids` which will be spliced from the workflow groups and inserted into a designated location
136
+ */
137
+ prioritizeIds?: string[];
92
138
  }
93
139
  export interface WorkflowData {
94
140
  createdAt: string;
@@ -1516,6 +1516,12 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1516
1516
  PracticeEmailKind["FollowedUp"] = "FollowedUp";
1517
1517
  PracticeEmailKind["Renewed"] = "Renewed";
1518
1518
  PracticeEmailKind["DataRetrieved"] = "DataRetrieved";
1519
+ PracticeEmailKind["Closed"] = "Closed";
1520
+ PracticeEmailKind["PasswordRecovery"] = "PasswordRecovery";
1521
+ PracticeEmailKind["FaxFailed"] = "FaxFailed";
1522
+ PracticeEmailKind["ExamResult"] = "ExamResult";
1523
+ PracticeEmailKind["Reassigned"] = "Reassigned";
1524
+ PracticeEmailKind["OnlinePharmacyFaxSent"] = "OnlinePharmacyFaxSent";
1519
1525
  })(exports.PracticeEmailKind || (exports.PracticeEmailKind = {}));
1520
1526
 
1521
1527
  (function (PracticeConfigKind) {
@@ -2899,6 +2905,7 @@ var TellerService = /*#__PURE__*/function () {
2899
2905
  }
2900
2906
  /**
2901
2907
  * This function notifies teller that the fax sent for a specific consult did not get through
2908
+ * @todo - Make service only exposed route
2902
2909
  * @param practiceUuid the practice uuid linked to the consult
2903
2910
  * @param consultationUuid the consultation uuid
2904
2911
  * @param consultationShortId the consultation short id
@@ -2920,6 +2927,7 @@ var TellerService = /*#__PURE__*/function () {
2920
2927
  }
2921
2928
  /**
2922
2929
  * This function let's you reassign a practictioner to a consult and send a notification email
2930
+ * @todo - Make service only exposed route
2923
2931
  * @param uuidConsult the uuid of the consult to reassign
2924
2932
  * @param newPractitionerUuid the uuid of the practitioner that will get reassigned
2925
2933
  */
@@ -2929,6 +2937,21 @@ var TellerService = /*#__PURE__*/function () {
2929
2937
  return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
2930
2938
  newPractitionerUuid: newPractitionerUuid
2931
2939
  });
2940
+ }
2941
+ /**
2942
+ * This function will send an email to the patientUuid, saying that the online practice has been sent a fax successfully
2943
+ * @todo - Make service only exposed route
2944
+ * @param consult
2945
+ * @param patientUuid
2946
+ * @returns void
2947
+ */
2948
+ ;
2949
+
2950
+ _proto.sendOnlineFaxSuccessfulEmail = function sendOnlineFaxSuccessfulEmail(consult, patientUuid) {
2951
+ return this.api.post(this.baseURL + "/v1/online-fax-notify", {
2952
+ consult: consult,
2953
+ patient_uuid: patientUuid
2954
+ });
2932
2955
  };
2933
2956
 
2934
2957
  return TellerService;