eservices-core 1.0.431 → 1.0.432

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.
@@ -80,6 +80,8 @@ export interface IReadParams {
80
80
  fields?: string[];
81
81
  order?: ISortConfig;
82
82
  filter?: string;
83
+ limit?: number;
84
+ offset?: number;
83
85
  }
84
86
  export interface ISortConfig {
85
87
  name: string;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.431
2
+ * eservices-core v1.0.432
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3110,6 +3110,10 @@ class List$1 extends EventEmitter {
3110
3110
  options.fields = ReadParams.fields;
3111
3111
  if (ReadParams.filter)
3112
3112
  options.filter = ReadParams.filter;
3113
+ if (ReadParams.limit)
3114
+ options.limit = ReadParams.limit;
3115
+ if (ReadParams.offset)
3116
+ options.limit = ReadParams.offset;
3113
3117
  return dataService.getList(this.name, options)
3114
3118
  .then(v => this.array = v)
3115
3119
  .then(() => this.emit(List$1.EVENT_DATA, this.array))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.431",
3
+ "version": "1.0.432",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {