@veritree/services 2.57.0 → 2.58.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/services",
3
- "version": "2.57.0",
3
+ "version": "2.58.0",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -43,8 +43,13 @@ class TreeCodesApi extends Api {
43
43
  return await this.get(url);
44
44
  }
45
45
 
46
+ const create = async (data) => {
47
+ return await this.post(url, data);
48
+ }
49
+
46
50
  return {
47
51
  all,
52
+ create
48
53
  };
49
54
  }
50
55