kuzzle-device-manager 2.0.0-rc22 → 2.0.0-rc23

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.
@@ -243,9 +243,14 @@ class AssetController extends RelationalController_1.RelationalController {
243
243
  */
244
244
  async search(request) {
245
245
  const engineId = request.getString('engineId');
246
- const { searchBody } = request.getSearchParams();
246
+ const { searchBody, from, size, scrollTTL: scroll } = request.getSearchParams();
247
247
  const category = this.getFieldPath(request, 'category', null, 'asset-category');
248
- const res = await this.sdk.document.search(engineId, this.collection, searchBody);
248
+ const res = await this.sdk.document.search(engineId, this.collection, searchBody, {
249
+ from,
250
+ lang: request.getLangParam(),
251
+ scroll,
252
+ size,
253
+ });
249
254
  for (const hit of res.hits) {
250
255
  const document = await this.esDocumentToFormatted(engineId, this.collection, hit, [category]);
251
256
  this.assetCategoryService.formatDocumentMetadata(document);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager",
3
- "version": "2.0.0-rc22",
3
+ "version": "2.0.0-rc23",
4
4
  "description": "Manage your IoT devices and assets. Choose a provisioning strategy, receive and decode payload, handle your IoT business logic.",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "repository": {