oro-sdk-apis 1.0.0 → 1.4.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.
@@ -1197,13 +1197,13 @@ var TaskStatus;
1197
1197
  TaskStatus["Done"] = "Done";
1198
1198
  })(TaskStatus || (TaskStatus = {}));
1199
1199
 
1200
- var DiagnosisType;
1200
+ var VisibilityType;
1201
1201
 
1202
- (function (DiagnosisType) {
1203
- DiagnosisType["Generic"] = "Generic";
1204
- DiagnosisType["Private"] = "Private";
1205
- DiagnosisType["Instance"] = "Instance";
1206
- })(DiagnosisType || (DiagnosisType = {}));
1202
+ (function (VisibilityType) {
1203
+ VisibilityType["Generic"] = "Generic";
1204
+ VisibilityType["Private"] = "Private";
1205
+ VisibilityType["Instance"] = "Instance";
1206
+ })(VisibilityType || (VisibilityType = {}));
1207
1207
 
1208
1208
  var DrugType;
1209
1209
 
@@ -1247,29 +1247,38 @@ var AuthenticationServerError = /*#__PURE__*/function (_Error3) {
1247
1247
 
1248
1248
  return AuthenticationServerError;
1249
1249
  }( /*#__PURE__*/_wrapNativeSuper(Error));
1250
- var IdentityCreationFailed = /*#__PURE__*/function (_Error4) {
1251
- _inheritsLoose(IdentityCreationFailed, _Error4);
1250
+ var AuthenticationUnconfirmedEmail = /*#__PURE__*/function (_Error4) {
1251
+ _inheritsLoose(AuthenticationUnconfirmedEmail, _Error4);
1252
1252
 
1253
- function IdentityCreationFailed() {
1253
+ function AuthenticationUnconfirmedEmail() {
1254
1254
  return _Error4.apply(this, arguments) || this;
1255
1255
  }
1256
1256
 
1257
+ return AuthenticationUnconfirmedEmail;
1258
+ }( /*#__PURE__*/_wrapNativeSuper(Error));
1259
+ var IdentityCreationFailed = /*#__PURE__*/function (_Error5) {
1260
+ _inheritsLoose(IdentityCreationFailed, _Error5);
1261
+
1262
+ function IdentityCreationFailed() {
1263
+ return _Error5.apply(this, arguments) || this;
1264
+ }
1265
+
1257
1266
  return IdentityCreationFailed;
1258
1267
  }( /*#__PURE__*/_wrapNativeSuper(Error));
1259
- var IdentityCreationBadRequest = /*#__PURE__*/function (_Error5) {
1260
- _inheritsLoose(IdentityCreationBadRequest, _Error5);
1268
+ var IdentityCreationBadRequest = /*#__PURE__*/function (_Error6) {
1269
+ _inheritsLoose(IdentityCreationBadRequest, _Error6);
1261
1270
 
1262
1271
  function IdentityCreationBadRequest() {
1263
- return _Error5.apply(this, arguments) || this;
1272
+ return _Error6.apply(this, arguments) || this;
1264
1273
  }
1265
1274
 
1266
1275
  return IdentityCreationBadRequest;
1267
1276
  }( /*#__PURE__*/_wrapNativeSuper(Error));
1268
- var IdentityCreationConflict = /*#__PURE__*/function (_Error6) {
1269
- _inheritsLoose(IdentityCreationConflict, _Error6);
1277
+ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1278
+ _inheritsLoose(IdentityCreationConflict, _Error7);
1270
1279
 
1271
1280
  function IdentityCreationConflict() {
1272
- return _Error6.apply(this, arguments) || this;
1281
+ return _Error7.apply(this, arguments) || this;
1273
1282
  }
1274
1283
 
1275
1284
  return IdentityCreationConflict;
@@ -1839,7 +1848,7 @@ var GuardService = /*#__PURE__*/function () {
1839
1848
  accessToken: resp.accessToken,
1840
1849
  refreshToken: resp.refreshToken
1841
1850
  });
1842
- _context.next = 19;
1851
+ _context.next = 20;
1843
1852
  break;
1844
1853
 
1845
1854
  case 8:
@@ -1847,31 +1856,34 @@ var GuardService = /*#__PURE__*/function () {
1847
1856
  _context.t0 = _context["catch"](0);
1848
1857
 
1849
1858
  if (!_context.t0.isAxiosError) {
1850
- _context.next = 18;
1859
+ _context.next = 19;
1851
1860
  break;
1852
1861
  }
1853
1862
 
1854
1863
  code = (_e$response = _context.t0.response) == null ? void 0 : _e$response.status;
1855
1864
  _context.t1 = code;
1856
- _context.next = _context.t1 === 400 ? 15 : _context.t1 === 500 ? 16 : _context.t1 === 401 ? 17 : 17;
1865
+ _context.next = _context.t1 === 400 ? 15 : _context.t1 === 424 ? 16 : _context.t1 === 500 ? 17 : _context.t1 === 401 ? 18 : 18;
1857
1866
  break;
1858
1867
 
1859
1868
  case 15:
1860
1869
  throw new AuthenticationBadRequest();
1861
1870
 
1862
1871
  case 16:
1863
- throw new AuthenticationServerError();
1872
+ throw new AuthenticationUnconfirmedEmail();
1864
1873
 
1865
1874
  case 17:
1866
- throw new AuthenticationFailed();
1875
+ throw new AuthenticationServerError();
1867
1876
 
1868
1877
  case 18:
1869
1878
  throw new AuthenticationFailed();
1870
1879
 
1871
1880
  case 19:
1872
- return _context.abrupt("return", resp);
1881
+ throw new AuthenticationFailed();
1873
1882
 
1874
1883
  case 20:
1884
+ return _context.abrupt("return", resp);
1885
+
1886
+ case 21:
1875
1887
  case "end":
1876
1888
  return _context.stop();
1877
1889
  }
@@ -2236,6 +2248,38 @@ var GuardService = /*#__PURE__*/function () {
2236
2248
  }
2237
2249
 
2238
2250
  return identityMFAQRCode;
2251
+ }()
2252
+ /**
2253
+ * Attempt to resend the email confirmation email
2254
+ *
2255
+ * @param req IdentityResendConfirmEmailRequest
2256
+ * @return void
2257
+ */
2258
+ ;
2259
+
2260
+ _proto.identitySendConfirmEmail =
2261
+ /*#__PURE__*/
2262
+ function () {
2263
+ var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(req) {
2264
+ return runtime_1.wrap(function _callee10$(_context10) {
2265
+ while (1) {
2266
+ switch (_context10.prev = _context10.next) {
2267
+ case 0:
2268
+ return _context10.abrupt("return", this.api.post(this.baseURL + "/v1/identity/confirm", req));
2269
+
2270
+ case 1:
2271
+ case "end":
2272
+ return _context10.stop();
2273
+ }
2274
+ }
2275
+ }, _callee10, this);
2276
+ }));
2277
+
2278
+ function identitySendConfirmEmail(_x11) {
2279
+ return _identitySendConfirmEmail.apply(this, arguments);
2280
+ }
2281
+
2282
+ return identitySendConfirmEmail;
2239
2283
  }();
2240
2284
 
2241
2285
  return GuardService;
@@ -3047,5 +3091,5 @@ var init = function init(services, authenticationCallback) {
3047
3091
  };
3048
3092
 
3049
3093
  export default init;
3050
- export { APIService, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AxiosService, ConsultService, DiagnosisService, DiagnosisType, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, RateDimension, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, WorkflowService, WorkflowType };
3094
+ export { APIService, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, RateDimension, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType };
3051
3095
  //# sourceMappingURL=oro-sdk-apis.esm.js.map