@veritree/services 2.51.0 → 2.52.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.51.0",
3
+ "version": "2.52.0",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -56,14 +56,24 @@ class OrganizationsApi extends Api {
56
56
  }
57
57
 
58
58
  pins(orgId) {
59
+ const all = async (params) => {
60
+ const url = `${this.getUrl()}/${orgId}/pins/${this.getUrlParams(
61
+ params
62
+ )}`;
63
+
64
+ return await this.get(url);
65
+ };
66
+
59
67
  const single = async (pinId, params) => {
60
68
  const url = `${this.getUrl()}/${orgId}/pins/${pinId}${this.getUrlParams(
61
69
  params
62
70
  )}`;
71
+
63
72
  return await this.get(url);
64
73
  };
65
74
 
66
75
  return {
76
+ all,
67
77
  single,
68
78
  };
69
79
  }