@veritree/services 2.80.0 → 2.81.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.80.0",
3
+ "version": "2.81.0",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -138,10 +138,16 @@ class TasksApi extends Api {
138
138
  return await this.post(imageUrl, null, 'delete');
139
139
  };
140
140
 
141
+ const detach = async (type, evidenceId) => {
142
+ const path = `${taskPublicId}/evidence/${type}/${evidenceId}${this.getUrlParams()}`;
143
+ return await this.delete(path);
144
+ };
145
+
141
146
  return {
142
147
  all,
143
148
  attach,
144
149
  deleteImage,
150
+ detach,
145
151
  };
146
152
  }
147
153
  }