@veritree/services 2.31.1-1 → 2.31.1-2

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.31.1-1",
3
+ "version": "2.31.1-2",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -27,6 +27,17 @@ class TreeCodesApi extends Api {
27
27
  all
28
28
  }
29
29
  }
30
+
31
+ status() {
32
+ const single = async (treeCodeHolder) => {
33
+ const url = `${this.getUrl()}/status/${treeCodeHolder}`;
34
+ return await this.get(url);
35
+ }
36
+
37
+ return {
38
+ single
39
+ }
40
+ }
30
41
  }
31
42
 
32
43
  export const TreeCodes = new TreeCodesApi();