backendless 6.3.6 → 6.3.7

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.6
3
+ * Backendless SDK for JavaScript. Version: 6.3.7
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) {
@@ -22031,6 +22057,11 @@ var Urls = /*#__PURE__*/function () {
22031
22057
  value: function dataObjectPermission(tableName, permissionType, objectId) {
22032
22058
  return "".concat(this.dataTable(tableName), "/permissions/").concat(permissionType, "/").concat(objectId);
22033
22059
  }
22060
+ }, {
22061
+ key: "dataTableNameById",
22062
+ value: function dataTableNameById(tableId) {
22063
+ return "".concat(this.data(), "/").concat(tableId, "/table-name");
22064
+ }
22034
22065
  }, {
22035
22066
  key: "transactions",
22036
22067
  value: function transactions() {