@jd-data-limited/easy-fm 1.2.2-alpha4 → 1.2.2-alpha5
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.ts +3 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -906,11 +906,13 @@ class recordGetOperation {
|
|
|
906
906
|
addToPortalLimit(portal: portal, offset = 0, limit = 100) {
|
|
907
907
|
if (offset < 0) throw "Portal offset cannot be less than 0"
|
|
908
908
|
this.limitPortals.push({portal, offset, limit})
|
|
909
|
+
return this
|
|
909
910
|
}
|
|
910
911
|
|
|
911
912
|
setLimit(limit: number) {
|
|
912
913
|
if (limit < 1) throw "Record limit too low"
|
|
913
914
|
this.limit = limit
|
|
915
|
+
return this
|
|
914
916
|
}
|
|
915
917
|
|
|
916
918
|
addSort(fieldName, sortOrder) {
|
|
@@ -921,6 +923,7 @@ class recordGetOperation {
|
|
|
921
923
|
setOffset(offset: number) {
|
|
922
924
|
if (offset < 0) throw "Record offset too low"
|
|
923
925
|
this.limit = offset
|
|
926
|
+
return this
|
|
924
927
|
}
|
|
925
928
|
}
|
|
926
929
|
|