oro-sdk-apis 3.6.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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({