@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 +1 -1
- package/src/endpoints/tasks.js +6 -0
package/package.json
CHANGED
package/src/endpoints/tasks.js
CHANGED
|
@@ -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
|
}
|