@veritree/services 2.14.1 → 2.16.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/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { ExternalReports } from './src/endpoints/external-reports';
|
|
|
27
27
|
import { Evidence } from './src/endpoints/evidence';
|
|
28
28
|
import { Crumbs } from './src/endpoints/crumbs';
|
|
29
29
|
import { Verifications } from './src/endpoints/verifications';
|
|
30
|
+
import { ImagesAggregated } from './src/endpoints/images-aggregated';
|
|
30
31
|
|
|
31
32
|
export {
|
|
32
33
|
BulkUploads,
|
|
@@ -57,5 +58,6 @@ export {
|
|
|
57
58
|
ExternalReports,
|
|
58
59
|
Evidence,
|
|
59
60
|
Crumbs,
|
|
60
|
-
Verifications
|
|
61
|
+
Verifications,
|
|
62
|
+
ImagesAggregated
|
|
61
63
|
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Api from '../helpers/api';
|
|
2
|
+
import { createParamsStringFromArgs } from '../utils/args';
|
|
2
3
|
|
|
3
4
|
class SubsitesApi extends Api {
|
|
4
5
|
constructor(resource) {
|
|
@@ -18,8 +19,10 @@ class SubsitesApi extends Api {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
indicators() {
|
|
21
|
-
const all = async (subsite) => {
|
|
22
|
-
const url = `${this.getUrl()}/${subsite}/indicators
|
|
22
|
+
const all = async (subsite, args) => {
|
|
23
|
+
const url = `${this.getUrl()}/${subsite}/indicators?${createParamsStringFromArgs(
|
|
24
|
+
args
|
|
25
|
+
)}`;
|
|
23
26
|
return await this.get(url);
|
|
24
27
|
};
|
|
25
28
|
|
|
@@ -53,7 +56,9 @@ class SubsitesApi extends Api {
|
|
|
53
56
|
|
|
54
57
|
evidence(subsiteId) {
|
|
55
58
|
const all = async () => {
|
|
56
|
-
const url = `${this.getUrl()}/${subsiteId}/evidence${this.getUrlParams(
|
|
59
|
+
const url = `${this.getUrl()}/${subsiteId}/evidence${this.getUrlParams(
|
|
60
|
+
args
|
|
61
|
+
)}`;
|
|
57
62
|
return await this.get(url);
|
|
58
63
|
};
|
|
59
64
|
|