backendless 6.3.5 → 6.3.8

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/backendless.d.ts CHANGED
@@ -269,6 +269,8 @@ declare module Backendless {
269
269
 
270
270
  function describe(model: string | Object | Function): Promise<Object>;
271
271
 
272
+ function getTableNameById(tableId: string): Promise<string>;
273
+
272
274
  function mapTableToClass(tableName: string, clientClass: Function): void;
273
275
  function mapTableToClass(clientClass: Function): void;
274
276
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 6.3.5
3
+ * Backendless SDK for JavaScript. Version: 6.3.8
4
4
  *
5
- * Copyright 2012-2021 BACKENDLESS.COM. All Rights Reserved.
5
+ * Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
7
7
  * NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
8
8
  * if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
@@ -15098,6 +15098,32 @@ var Data = /*#__PURE__*/function () {
15098
15098
 
15099
15099
  return describe;
15100
15100
  }()
15101
+ }, {
15102
+ key: "getTableNameById",
15103
+ value: function () {
15104
+ var _getTableNameById = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(tableId) {
15105
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
15106
+ while (1) {
15107
+ switch (_context2.prev = _context2.next) {
15108
+ case 0:
15109
+ return _context2.abrupt("return", this.app.request.get({
15110
+ url: this.app.urls.dataTableNameById(tableId)
15111
+ }));
15112
+
15113
+ case 1:
15114
+ case "end":
15115
+ return _context2.stop();
15116
+ }
15117
+ }
15118
+ }, _callee2, this);
15119
+ }));
15120
+
15121
+ function getTableNameById(_x2) {
15122
+ return _getTableNameById.apply(this, arguments);
15123
+ }
15124
+
15125
+ return getTableNameById;
15126
+ }()
15101
15127
  }, {
15102
15128
  key: "mapTableToClass",
15103
15129
  value: function mapTableToClass(tableName, clientClass) {
@@ -16164,7 +16190,7 @@ var DataStore = /*#__PURE__*/function () {
16164
16190
 
16165
16191
  case 5:
16166
16192
  result = _context7.sent;
16167
- _context7.next = 13;
16193
+ _context7.next = 14;
16168
16194
  break;
16169
16195
 
16170
16196
  case 8:
@@ -16176,19 +16202,24 @@ var DataStore = /*#__PURE__*/function () {
16176
16202
  throw new Error('Object Id must be provided and must be a string or an object of primary keys.');
16177
16203
 
16178
16204
  case 10:
16179
- _context7.next = 12;
16205
+ if (query) {
16206
+ query.pageSize = null;
16207
+ query.offset = null;
16208
+ }
16209
+
16210
+ _context7.next = 13;
16180
16211
  return this.app.request.get({
16181
16212
  url: this.app.urls.dataTableObject(this.className, objectId),
16182
16213
  queryString: _dataQueryBuilder["default"].toQueryString(query)
16183
16214
  });
16184
16215
 
16185
- case 12:
16216
+ case 13:
16186
16217
  result = _context7.sent;
16187
16218
 
16188
- case 13:
16219
+ case 14:
16189
16220
  return _context7.abrupt("return", this.parseResponse(result));
16190
16221
 
16191
- case 14:
16222
+ case 15:
16192
16223
  case "end":
16193
16224
  return _context7.stop();
16194
16225
  }
@@ -18616,6 +18647,10 @@ var Logging = /*#__PURE__*/function () {
18616
18647
  }, {
18617
18648
  key: "push",
18618
18649
  value: function push(logger, logLevel, message, exception) {
18650
+ if (typeof message !== 'string') {
18651
+ throw new Error('"message" must be a string');
18652
+ }
18653
+
18619
18654
  this.pool.push({
18620
18655
  logger: logger,
18621
18656
  message: message,
@@ -22027,6 +22062,11 @@ var Urls = /*#__PURE__*/function () {
22027
22062
  value: function dataObjectPermission(tableName, permissionType, objectId) {
22028
22063
  return "".concat(this.dataTable(tableName), "/permissions/").concat(permissionType, "/").concat(objectId);
22029
22064
  }
22065
+ }, {
22066
+ key: "dataTableNameById",
22067
+ value: function dataTableNameById(tableId) {
22068
+ return "".concat(this.data(), "/").concat(tableId, "/table-name");
22069
+ }
22030
22070
  }, {
22031
22071
  key: "transactions",
22032
22072
  value: function transactions() {