oro-sdk-apis 3.6.0 → 3.7.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/dist/oro-sdk-apis.cjs.development.js +10 -2
- 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 +10 -2
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +6 -0
- package/package.json +1 -1
- package/src/services/practice.ts +13 -4
@@ -1929,6 +1929,15 @@ var PracticeService = /*#__PURE__*/function () {
|
|
1929
1929
|
this.api = api;
|
1930
1930
|
this.baseURL = baseURL;
|
1931
1931
|
}
|
1932
|
+
/**
|
1933
|
+
* This function will only work if the service is initialized with
|
1934
|
+
* an M2M with the scope `practice.practices.get`
|
1935
|
+
* @returns an array of practices
|
1936
|
+
*/
|
1937
|
+
var _proto = PracticeService.prototype;
|
1938
|
+
_proto.practiceGetAll = function practiceGetAll() {
|
1939
|
+
return this.api.get(this.baseURL + "/v1/practices");
|
1940
|
+
}
|
1932
1941
|
/**
|
1933
1942
|
* This function get the practice from the URL of a practice
|
1934
1943
|
* It is the entry point of our web apps
|
@@ -1936,8 +1945,7 @@ var PracticeService = /*#__PURE__*/function () {
|
|
1936
1945
|
* @param hydratePracticeConfigs (optional) if set true it the Practice field configs will be set
|
1937
1946
|
* @param accounts (optional) if set true it the Practice field accounts will be set
|
1938
1947
|
* @returns the found practice or undefined
|
1939
|
-
|
1940
|
-
var _proto = PracticeService.prototype;
|
1948
|
+
*/;
|
1941
1949
|
_proto.practiceGetFromURL = function practiceGetFromURL(practiceURL, params) {
|
1942
1950
|
return this.api.get(this.baseURL + "/v1/practices", {
|
1943
1951
|
params: _extends({
|