oro-sdk-apis 1.36.0 → 1.38.1
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/dist/models/diagnosis.d.ts +9 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/init.d.ts +3 -1
- package/dist/models/practice.d.ts +4 -1
- package/dist/models/search.d.ts +28 -0
- package/dist/oro-sdk-apis.cjs.development.js +67 -3
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +76 -4
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/practice.d.ts +11 -1
- package/dist/services/search.d.ts +18 -0
- package/package.json +1 -1
- package/src/helpers/init.ts +3 -0
- package/src/models/diagnosis.ts +11 -1
- package/src/models/index.ts +1 -0
- package/src/models/init.ts +3 -0
- package/src/models/practice.ts +94 -91
- package/src/models/search.ts +34 -0
- package/src/services/index.ts +1 -0
- package/src/services/practice.ts +13 -2
- package/src/services/search.ts +39 -0
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -965,6 +965,18 @@ var DrugType;
|
|
965
965
|
DrugType["Generic"] = "Generic";
|
966
966
|
DrugType["Instance"] = "Instance";
|
967
967
|
})(DrugType || (DrugType = {}));
|
968
|
+
/**
|
969
|
+
* Status of the prescription
|
970
|
+
* Right now, it only serves a soft delete flag
|
971
|
+
*/
|
972
|
+
|
973
|
+
|
974
|
+
var PrescriptionStatus;
|
975
|
+
|
976
|
+
(function (PrescriptionStatus) {
|
977
|
+
PrescriptionStatus["Existing"] = "Existing";
|
978
|
+
PrescriptionStatus["Deleted"] = "Deleted";
|
979
|
+
})(PrescriptionStatus || (PrescriptionStatus = {}));
|
968
980
|
|
969
981
|
var PlanStatus;
|
970
982
|
|
@@ -1250,6 +1262,17 @@ var MetadataCategory;
|
|
1250
1262
|
MetadataCategory["Raw"] = "Raw";
|
1251
1263
|
})(MetadataCategory || (MetadataCategory = {}));
|
1252
1264
|
|
1265
|
+
var IndexKind;
|
1266
|
+
|
1267
|
+
(function (IndexKind) {
|
1268
|
+
IndexKind[IndexKind["consultUuid"] = 0] = "consultUuid";
|
1269
|
+
IndexKind[IndexKind["consultShortid"] = 1] = "consultShortid";
|
1270
|
+
IndexKind[IndexKind["firstName"] = 2] = "firstName";
|
1271
|
+
IndexKind[IndexKind["lastName"] = 3] = "lastName";
|
1272
|
+
IndexKind[IndexKind["healthId"] = 4] = "healthId";
|
1273
|
+
IndexKind[IndexKind["dob"] = 5] = "dob";
|
1274
|
+
})(IndexKind || (IndexKind = {}));
|
1275
|
+
|
1253
1276
|
var ConsultService = /*#__PURE__*/function () {
|
1254
1277
|
function ConsultService(api, baseURL) {
|
1255
1278
|
this.api = api;
|
@@ -2224,6 +2247,41 @@ var GuardService = /*#__PURE__*/function () {
|
|
2224
2247
|
return GuardService;
|
2225
2248
|
}();
|
2226
2249
|
|
2250
|
+
var SearchService = /*#__PURE__*/function () {
|
2251
|
+
function SearchService(api, baseURL) {
|
2252
|
+
this.api = api;
|
2253
|
+
this.baseURL = baseURL;
|
2254
|
+
}
|
2255
|
+
/**
|
2256
|
+
* Creates search indexes for the terms passed in order to be able to search for it in the future
|
2257
|
+
* @param consultUUID
|
2258
|
+
* @param terms the search terms to be indexed
|
2259
|
+
*/
|
2260
|
+
|
2261
|
+
|
2262
|
+
var _proto = SearchService.prototype;
|
2263
|
+
|
2264
|
+
_proto.index = function index(consultUUID, terms) {
|
2265
|
+
return this.api.post(this.baseURL + "/v1/search", {
|
2266
|
+
consultUUID: consultUUID,
|
2267
|
+
terms: terms
|
2268
|
+
});
|
2269
|
+
}
|
2270
|
+
/**
|
2271
|
+
* Searches for the consultations corresponding to the search terms entered in the query
|
2272
|
+
* @param terms array of search terms
|
2273
|
+
*/
|
2274
|
+
;
|
2275
|
+
|
2276
|
+
_proto.search = function search(terms) {
|
2277
|
+
return this.api.post(this.baseURL + "/v1/search", {
|
2278
|
+
terms: terms
|
2279
|
+
});
|
2280
|
+
};
|
2281
|
+
|
2282
|
+
return SearchService;
|
2283
|
+
}();
|
2284
|
+
|
2227
2285
|
var PracticeService = /*#__PURE__*/function () {
|
2228
2286
|
function PracticeService(api, baseURL) {
|
2229
2287
|
this.api = api;
|
@@ -2400,14 +2458,26 @@ var PracticeService = /*#__PURE__*/function () {
|
|
2400
2458
|
|
2401
2459
|
_proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
|
2402
2460
|
return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
|
2403
|
-
}
|
2461
|
+
}
|
2462
|
+
/**
|
2463
|
+
* Updates a PracticePaymentIntent
|
2464
|
+
* @param practiceUuid the practice uuid
|
2465
|
+
* @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
|
2466
|
+
* @param practicePaymentIntent the desired PracticePaymentIntent
|
2467
|
+
* @param userEmail the email of the user
|
2468
|
+
* @param promotionCode (optional) promotional code to apply
|
2469
|
+
* @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
|
2470
|
+
* @returns the updated PracticePaymentIntent
|
2471
|
+
*/
|
2472
|
+
;
|
2404
2473
|
|
2405
|
-
_proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
|
2474
|
+
_proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
|
2406
2475
|
return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
|
2407
2476
|
hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
|
2408
2477
|
}), {
|
2409
2478
|
params: {
|
2410
|
-
promotionCode: promotionCode
|
2479
|
+
promotionCode: promotionCode,
|
2480
|
+
finalize: finalize
|
2411
2481
|
}
|
2412
2482
|
});
|
2413
2483
|
}
|
@@ -3104,6 +3174,7 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
|
|
3104
3174
|
consultBaseURL = services.consultBaseURL,
|
3105
3175
|
vaultBaseURL = services.vaultBaseURL,
|
3106
3176
|
guardBaseURL = services.guardBaseURL,
|
3177
|
+
searchBaseURL = services.searchBaseURL,
|
3107
3178
|
workflowBaseURL = services.workflowBaseURL,
|
3108
3179
|
diagnosisBaseURL = services.diagnosisBaseURL;
|
3109
3180
|
var apiService = new APIService(useLocalStorage, undefined, authenticationCallback);
|
@@ -3114,11 +3185,12 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
|
|
3114
3185
|
consultService: consultBaseURL ? new ConsultService(apiService, consultBaseURL) : undefined,
|
3115
3186
|
vaultService: vaultBaseURL ? new VaultService(apiService, vaultBaseURL) : undefined,
|
3116
3187
|
guardService: guardBaseURL ? new GuardService(apiService, guardBaseURL) : undefined,
|
3188
|
+
searchService: searchBaseURL ? new SearchService(apiService, searchBaseURL) : undefined,
|
3117
3189
|
workflowService: workflowBaseURL ? new WorkflowService(apiService, workflowBaseURL) : undefined,
|
3118
3190
|
diagnosisService: diagnosisBaseURL ? new DiagnosisService(apiService, diagnosisBaseURL) : undefined
|
3119
3191
|
};
|
3120
3192
|
};
|
3121
3193
|
|
3122
3194
|
export default init;
|
3123
|
-
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, 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, hashToBase64String, init };
|
3195
|
+
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
|
3124
3196
|
//# sourceMappingURL=oro-sdk-apis.esm.js.map
|