@veritree/services 2.35.4-0 → 2.35.4-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/services",
3
- "version": "2.35.4-0",
3
+ "version": "2.35.4-1",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -5,6 +5,18 @@ class RegionsApi extends Api {
5
5
  super(resource);
6
6
  this.resource = 'regions';
7
7
  }
8
+
9
+ public() {
10
+ const single = async (plantingSiteId) => {
11
+ const url = `${this.getUrl()}/public/${plantingSiteId}`;
12
+ return await this.get(url);
13
+ };
14
+
15
+ return {
16
+ single,
17
+ };
18
+ }
19
+
8
20
  stats(region) {
9
21
  const all = async () => {
10
22
  const url = `${this.getUrl()}/${region}/stats`;
@@ -15,6 +27,7 @@ class RegionsApi extends Api {
15
27
  all,
16
28
  };
17
29
  }
30
+
18
31
  stakeholders(region) {
19
32
  const all = async (params) => {
20
33
  const url = `${this.getUrl()}/${region}/stakeholders${this.getUrlParams(
@@ -13,7 +13,7 @@ function addVersionParam(url) {
13
13
  return url;
14
14
  }
15
15
 
16
- const version = '10.0.0';
16
+ const version = '26.0.0';
17
17
 
18
18
  // Append version parameter to URL
19
19
  const urlVersionParam = url.includes('?')