@veritree/services 2.79.0 → 2.80.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
|
@@ -51,11 +51,13 @@ class EvidenceApi extends Api {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const update = async (data) => {
|
|
54
|
-
|
|
54
|
+
const urlWithParams = `${url}${this.getUrlParams()}`;
|
|
55
|
+
return await this.post(urlWithParams, data, 'patch');
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
const remove = async () => {
|
|
58
|
-
|
|
59
|
+
const urlWithParams = `${url}${this.getUrlParams()}`;
|
|
60
|
+
return await this.post(urlWithParams, null, 'delete');
|
|
59
61
|
};
|
|
60
62
|
|
|
61
63
|
return {
|
package/src/endpoints/tasks.js
CHANGED
|
@@ -133,9 +133,15 @@ class TasksApi extends Api {
|
|
|
133
133
|
return await this.post(url, data);
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
+
const deleteImage = async (imageId) => {
|
|
137
|
+
const imageUrl = `${url}/images/${imageId}${this.getUrlParams()}`;
|
|
138
|
+
return await this.post(imageUrl, null, 'delete');
|
|
139
|
+
};
|
|
140
|
+
|
|
136
141
|
return {
|
|
137
142
|
all,
|
|
138
143
|
attach,
|
|
144
|
+
deleteImage,
|
|
139
145
|
};
|
|
140
146
|
}
|
|
141
147
|
}
|