backendless 6.6.2 → 6.6.3
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/dist/backendless.js +13 -10
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/data/store.js +12 -9
- package/lib/data/store.js +12 -9
- package/package.json +1 -1
- package/src/data/store.js +3 -1
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 6.6.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 6.6.3
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -16927,46 +16927,49 @@ var DataStore = /*#__PURE__*/function () {
|
|
|
16927
16927
|
key: "getObjectCount",
|
|
16928
16928
|
value: function () {
|
|
16929
16929
|
var _getObjectCount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(condition) {
|
|
16930
|
-
var distinct;
|
|
16930
|
+
var distinct, groupBy;
|
|
16931
16931
|
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
16932
16932
|
while (1) {
|
|
16933
16933
|
switch (_context10.prev = _context10.next) {
|
|
16934
16934
|
case 0:
|
|
16935
16935
|
distinct = undefined;
|
|
16936
|
+
groupBy = undefined;
|
|
16936
16937
|
|
|
16937
16938
|
if (!condition) {
|
|
16938
|
-
_context10.next =
|
|
16939
|
+
_context10.next = 11;
|
|
16939
16940
|
break;
|
|
16940
16941
|
}
|
|
16941
16942
|
|
|
16942
16943
|
if (!(condition instanceof _dataQueryBuilder["default"])) {
|
|
16943
|
-
_context10.next =
|
|
16944
|
+
_context10.next = 9;
|
|
16944
16945
|
break;
|
|
16945
16946
|
}
|
|
16946
16947
|
|
|
16947
16948
|
distinct = condition.getDistinct() || undefined;
|
|
16949
|
+
groupBy = condition.getGroupBy() || undefined;
|
|
16948
16950
|
condition = condition.getWhereClause() || undefined;
|
|
16949
|
-
_context10.next =
|
|
16951
|
+
_context10.next = 11;
|
|
16950
16952
|
break;
|
|
16951
16953
|
|
|
16952
|
-
case
|
|
16954
|
+
case 9:
|
|
16953
16955
|
if (!(typeof condition !== 'string')) {
|
|
16954
|
-
_context10.next =
|
|
16956
|
+
_context10.next = 11;
|
|
16955
16957
|
break;
|
|
16956
16958
|
}
|
|
16957
16959
|
|
|
16958
16960
|
throw new Error('Condition must be a string or an instance of DataQueryBuilder.');
|
|
16959
16961
|
|
|
16960
|
-
case
|
|
16962
|
+
case 11:
|
|
16961
16963
|
return _context10.abrupt("return", this.app.request.post({
|
|
16962
16964
|
url: this.app.urls.dataTableCount(this.className),
|
|
16963
16965
|
data: {
|
|
16964
16966
|
where: condition,
|
|
16965
|
-
distinct: distinct
|
|
16967
|
+
distinct: distinct,
|
|
16968
|
+
groupBy: groupBy
|
|
16966
16969
|
}
|
|
16967
16970
|
}));
|
|
16968
16971
|
|
|
16969
|
-
case
|
|
16972
|
+
case 12:
|
|
16970
16973
|
case "end":
|
|
16971
16974
|
return _context10.stop();
|
|
16972
16975
|
}
|