flamerest 1.0.46 → 1.0.47
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/REST.js +6 -1
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -295,9 +295,10 @@ class FLAMEREST {
|
|
|
295
295
|
* @param RemoveDuplicates
|
|
296
296
|
* @param format
|
|
297
297
|
* @param titles Это чтобы мы могли контроллить какие названия полей мы будет загружать при экспорте, чтобы они были как в таблице
|
|
298
|
+
* @param tree дерево
|
|
298
299
|
* @return Promise<>
|
|
299
300
|
*/
|
|
300
|
-
get(table, where, expand, fields, sortfields, page, perPage, RemoveDuplicates, format, titles) {
|
|
301
|
+
get(table, where, expand, fields, sortfields, page, perPage, RemoveDuplicates, format, titles, tree) {
|
|
301
302
|
|
|
302
303
|
// Нормализуем имена таблиц
|
|
303
304
|
table = table.replace(/_/g, "");
|
|
@@ -313,6 +314,10 @@ class FLAMEREST {
|
|
|
313
314
|
if (where !== undefined && where !== null)
|
|
314
315
|
json.where = where;
|
|
315
316
|
|
|
317
|
+
// Генерим условия
|
|
318
|
+
if (tree !== undefined && tree !== null)
|
|
319
|
+
json.tree = tree;
|
|
320
|
+
|
|
316
321
|
if (fields !== undefined && fields !== null)
|
|
317
322
|
json.fields = fields;
|
|
318
323
|
|