@hapl/api-queries 0.1.73 → 0.1.74
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/CHANGELOG.md +12 -0
- package/dist/api-queries.cjs.development.js +22 -21
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +22 -21
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/experts/findPublishedExperts/index.d.ts +14 -15
- package/package.json +1 -1
- package/src/clients/v1/api/experts/findPublishedExperts/index.ts +27 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.1.74 (Wed Oct 20 2021)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `main`
|
|
4
|
+
|
|
5
|
+
- refactor published experts api ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ivan Ignatev ([@yeshkarluk](https://github.com/yeshkarluk))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.1.73 (Tue Sep 21 2021)
|
|
2
14
|
|
|
3
15
|
#### ⚠️ Pushed to `main`
|
|
@@ -304,29 +304,30 @@ function findPublishedExpertsRequest(_ref) {
|
|
|
304
304
|
},
|
|
305
305
|
headers: {
|
|
306
306
|
Accept: 'application/json'
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
byId
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
},
|
|
308
|
+
transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
|
|
309
|
+
if (data.success) {
|
|
310
|
+
var ids = [];
|
|
311
|
+
var byId = {};
|
|
312
|
+
data.data.forEach(function (entity) {
|
|
313
|
+
byId[entity.id] = entity;
|
|
314
|
+
ids.push(entity.id);
|
|
315
|
+
});
|
|
316
|
+
return {
|
|
317
|
+
ids: ids,
|
|
318
|
+
byId: byId,
|
|
319
|
+
meta: {
|
|
320
|
+
total: data.pageParams.length
|
|
321
|
+
}
|
|
322
|
+
};
|
|
316
323
|
}
|
|
317
|
-
};
|
|
318
|
-
res.data.data.forEach(function (entity) {
|
|
319
|
-
data.data.byId[entity.id] = entity;
|
|
320
|
-
data.data.ids.push(entity.id);
|
|
321
|
-
});
|
|
322
|
-
return data;
|
|
323
|
-
})["catch"](function (err) {
|
|
324
|
-
var _err$response$status, _err$response, _err$response$data$da, _err$response2;
|
|
325
324
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
return data.data.error;
|
|
326
|
+
}])
|
|
327
|
+
}).then(function (res) {
|
|
328
|
+
return res;
|
|
329
|
+
})["catch"](function (err) {
|
|
330
|
+
throw err;
|
|
330
331
|
});
|
|
331
332
|
}
|
|
332
333
|
|