oro-sdk-apis 1.16.1 → 1.18.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 ORO Health Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -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;
@@ -1245,14 +1245,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
1245
1245
  return function authTokenFunc() {
1246
1246
  return _ref.apply(this, arguments);
1247
1247
  };
1248
- }(); // Set the refresh tokens callback
1248
+ }(); // Initialize the M2M token
1249
1249
 
1250
1250
 
1251
+ _context2.next = 7;
1252
+ return authTokenFunc();
1253
+
1254
+ case 7:
1255
+ // Set the refresh tokens callback
1251
1256
  newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
1252
1257
  this.practiceInstances.set(practiceUuid, newPracticeInstance);
1253
1258
  return _context2.abrupt("return", newPracticeInstance);
1254
1259
 
1255
- case 8:
1260
+ case 10:
1256
1261
  case "end":
1257
1262
  return _context2.stop();
1258
1263
  }
@@ -1511,6 +1516,12 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1511
1516
  PracticeEmailKind["FollowedUp"] = "FollowedUp";
1512
1517
  PracticeEmailKind["Renewed"] = "Renewed";
1513
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";
1514
1525
  })(exports.PracticeEmailKind || (exports.PracticeEmailKind = {}));
1515
1526
 
1516
1527
  (function (PracticeConfigKind) {
@@ -2894,6 +2905,7 @@ var TellerService = /*#__PURE__*/function () {
2894
2905
  }
2895
2906
  /**
2896
2907
  * This function notifies teller that the fax sent for a specific consult did not get through
2908
+ * @todo - Make service only exposed route
2897
2909
  * @param practiceUuid the practice uuid linked to the consult
2898
2910
  * @param consultationUuid the consultation uuid
2899
2911
  * @param consultationShortId the consultation short id
@@ -2912,6 +2924,34 @@ var TellerService = /*#__PURE__*/function () {
2912
2924
  practice_uuid: practiceUuid
2913
2925
  }
2914
2926
  });
2927
+ }
2928
+ /**
2929
+ * This function let's you reassign a practictioner to a consult and send a notification email
2930
+ * @todo - Make service only exposed route
2931
+ * @param uuidConsult the uuid of the consult to reassign
2932
+ * @param newPractitionerUuid the uuid of the practitioner that will get reassigned
2933
+ */
2934
+ ;
2935
+
2936
+ _proto.reassignmentEmail = function reassignmentEmail(uuidConsult, newPractitionerUuid) {
2937
+ return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
2938
+ newPractitionerUuid: newPractitionerUuid
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
+ });
2915
2955
  };
2916
2956
 
2917
2957
  return TellerService;