@veritree/services 2.44.0 → 2.46.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
|
@@ -92,11 +92,9 @@ class PlantingSitesApi extends Api {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
const remove = async (evidenceType, evidenceId) => {
|
|
95
|
-
url = `${url}/${evidenceType}/${evidenceId}${this.getUrlParams(
|
|
96
|
-
params
|
|
97
|
-
)}`;
|
|
95
|
+
url = `${url}/${evidenceType}/${evidenceId}${this.getUrlParams(params)}`;
|
|
98
96
|
|
|
99
|
-
return await this.post(url, null,
|
|
97
|
+
return await this.post(url, null, 'delete');
|
|
100
98
|
};
|
|
101
99
|
|
|
102
100
|
return {
|
|
@@ -108,7 +106,22 @@ class PlantingSitesApi extends Api {
|
|
|
108
106
|
|
|
109
107
|
stats(subsiteId) {
|
|
110
108
|
const all = async (args) => {
|
|
111
|
-
const url = `${this.getUrl()}/${subsiteId}/stats${this.getUrlParams(
|
|
109
|
+
const url = `${this.getUrl()}/${subsiteId}/stats${this.getUrlParams(
|
|
110
|
+
args
|
|
111
|
+
)}`;
|
|
112
|
+
return await this.get(url);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
all,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
pstats(subsiteId) {
|
|
121
|
+
const all = async (args) => {
|
|
122
|
+
const url = `${this.getUrl()}/${subsiteId}/pstats${this.getUrlParams(
|
|
123
|
+
args
|
|
124
|
+
)}`;
|
|
112
125
|
return await this.get(url);
|
|
113
126
|
};
|
|
114
127
|
|
|
@@ -93,8 +93,8 @@ class StandardsApi extends Api {
|
|
|
93
93
|
return await this.get(url);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
const update = async (data) => {
|
|
97
|
-
const url = `${this.getUrl()}/goals/${goalId}`;
|
|
96
|
+
const update = async (data, args) => {
|
|
97
|
+
const url = `${this.getUrl()}/goals/${goalId}${this.getUrlParams(args)}`;
|
|
98
98
|
return await this.post(url, data, 'patch');
|
|
99
99
|
};
|
|
100
100
|
|